Fix async lifecycle ordering, add _spa_init boot phase, update to jqhtml _load_only/_load_render_only flags

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2026-03-06 22:33:38 +00:00
parent 11c95a2886
commit d1ac456279
2718 changed files with 70593 additions and 6320 deletions

View File

@@ -26,12 +26,6 @@ function processChildren(node, delimeter) {
node.children.forEach(this.node, this);
}
function processChunk(chunk) {
index.tokenize(chunk, (type, start, end) => {
this.token(type, chunk.slice(start, end));
});
}
function createGenerator(config) {
const types$1 = new Map();
@@ -55,9 +49,13 @@ function createGenerator(config) {
}
},
tokenBefore: tokenBefore.safe,
token(type, value) {
token(type, value, suppressAutoWhiteSpace) {
prevCode = this.tokenBefore(prevCode, type, value);
if (!suppressAutoWhiteSpace && prevCode & 1) {
this.emit(' ', types.WhiteSpace, true);
}
this.emit(value, type, false);
if (type === types.Delim && value.charCodeAt(0) === REVERSESOLIDUS) {
@@ -90,7 +88,14 @@ function createGenerator(config) {
node: (node) => handlers.node(node),
children: processChildren,
token: (type, value) => handlers.token(type, value),
tokenize: processChunk
tokenize: (raw) =>
index.tokenize(raw, (type, start, end) => {
handlers.token(
type,
raw.slice(start, end),
start !== 0 // suppress auto whitespace for internal value tokens
);
})
};
handlers.node(node);