marko 6.4.10 → 6.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/accessor.d.ts +0 -3
- package/dist/common/accessor.debug.d.ts +0 -3
- package/dist/common/attr-tag.d.ts +1 -0
- package/dist/common/errors.d.ts +2 -0
- package/dist/common/helpers.d.ts +3 -1
- package/dist/common/types.d.ts +4 -3
- package/dist/debug/dom/catch.feat.js +1 -1
- package/dist/debug/dom/catch.feat.mjs +1 -1
- package/dist/debug/dom/compat.feat.js +143 -0
- package/dist/debug/dom/compat.feat.mjs +141 -0
- package/dist/debug/dom/controllable-input.feat.js +1 -1
- package/dist/debug/dom/controllable-input.feat.mjs +1 -1
- package/dist/debug/dom/controllable-open.feat.js +1 -1
- package/dist/debug/dom/controllable-open.feat.mjs +1 -1
- package/dist/debug/dom/controllable-select.feat.js +1 -1
- package/dist/debug/dom/controllable-select.feat.mjs +1 -1
- package/dist/debug/dom/controllable-textarea.feat.js +1 -1
- package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/debug/dom/controllable.feat.js +1 -1
- package/dist/debug/dom/controllable.feat.mjs +1 -1
- package/dist/debug/dom/dynamic-tag-script.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/debug/dom/lazy.feat.js +1 -1
- package/dist/debug/dom/lazy.feat.mjs +1 -1
- package/dist/debug/dom/placeholder.feat.js +1 -1
- package/dist/debug/dom/placeholder.feat.mjs +1 -1
- package/dist/debug/{dom-DNB5yq3U.js → dom-CtXOr4Nm.js} +257 -230
- package/dist/debug/{dom-C1V5vpFs.mjs → dom-DaHYZpf2.mjs} +238 -229
- package/dist/debug/dom.js +8 -134
- package/dist/debug/dom.mjs +5 -126
- package/dist/debug/html/compat.feat.js +222 -0
- package/dist/debug/html/compat.feat.mjs +220 -0
- package/dist/debug/html-DMo6pc_h.mjs +3931 -0
- package/dist/debug/html-DfZjMkhx.js +4513 -0
- package/dist/debug/html.js +83 -4239
- package/dist/debug/html.mjs +1 -4152
- package/dist/dom/abort-signal.d.ts +1 -1
- package/dist/dom/catch.feat.js +3 -3
- package/dist/dom/catch.feat.mjs +1 -1
- package/dist/dom/{compat.d.ts → compat.feat.d.ts} +18 -9
- package/dist/dom/compat.feat.js +101 -0
- package/dist/dom/compat.feat.mjs +100 -0
- package/dist/dom/control-flow.d.ts +4 -5
- package/dist/dom/controllable-input.feat.js +2 -2
- package/dist/dom/controllable-input.feat.mjs +1 -1
- package/dist/dom/controllable-open.feat.js +2 -2
- package/dist/dom/controllable-open.feat.mjs +1 -1
- package/dist/dom/controllable-select.feat.js +2 -2
- package/dist/dom/controllable-select.feat.mjs +1 -1
- package/dist/dom/controllable-textarea.feat.js +2 -2
- package/dist/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/dom/controllable.feat.js +2 -2
- package/dist/dom/controllable.feat.mjs +1 -1
- package/dist/dom/dom.d.ts +2 -1
- package/dist/dom/dynamic-tag-script.feat.js +2 -2
- package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-var.feat.js +1 -1
- package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/dom/lazy.feat.js +1 -1
- package/dist/dom/lazy.feat.mjs +1 -1
- package/dist/dom/load.d.ts +3 -4
- package/dist/dom/placeholder.feat.js +3 -3
- package/dist/dom/placeholder.feat.mjs +1 -1
- package/dist/dom/queue.d.ts +1 -2
- package/dist/dom/resume.d.ts +3 -1
- package/dist/dom/signals.d.ts +5 -7
- package/dist/{dom-C2-Flitp.js → dom-BB-Te-3z.js} +222 -239
- package/dist/{dom-DsHYWMCR.mjs → dom-BO-0hzLZ.mjs} +124 -146
- package/dist/dom.d.ts +1 -2
- package/dist/dom.js +17 -95
- package/dist/dom.mjs +6 -79
- package/dist/html/assets.d.ts +3 -4
- package/dist/html/{compat.d.ts → compat.feat.d.ts} +5 -4
- package/dist/html/compat.feat.js +165 -0
- package/dist/html/compat.feat.mjs +164 -0
- package/dist/html/dynamic-tag.d.ts +1 -2
- package/dist/html/for.d.ts +0 -1
- package/dist/html/writer.d.ts +4 -3
- package/dist/html-DMDc0zKs.mjs +2404 -0
- package/dist/html-DrHsybFm.js +2880 -0
- package/dist/html.d.ts +1 -2
- package/dist/html.js +2 -2578
- package/dist/html.mjs +3 -2573
- package/dist/translator/index.d.ts +0 -1
- package/dist/translator/index.js +4889 -4733
- package/dist/translator/interop/out-global.d.ts +5 -0
- package/dist/translator/util/assert.d.ts +6 -0
- package/dist/translator/util/branch-tag.d.ts +1 -1
- package/dist/translator/util/entry-builder.d.ts +1 -1
- package/dist/translator/util/finalize-references.d.ts +2 -1
- package/dist/translator/util/for-selector.d.ts +1 -1
- package/dist/translator/util/known-tag.d.ts +10 -1
- package/dist/translator/util/optional.d.ts +0 -1
- package/dist/translator/util/reasons.d.ts +0 -1
- package/dist/translator/util/references.d.ts +12 -5
- package/dist/translator/util/runtime.d.ts +1 -0
- package/dist/translator/util/sections.d.ts +11 -2
- package/dist/translator/util/signals.d.ts +2 -1
- package/dist/translator/util/style-interpolation.d.ts +1 -1
- package/dist/translator/util/tag-facts.d.ts +2 -0
- package/dist/translator/util/tag-name-type.d.ts +1 -0
- package/dist/translator/util/translate-attrs.d.ts +1 -4
- package/dist/translator/util/visitors.d.ts +1 -1
- package/dist/translator/util/write-guard.d.ts +2 -0
- package/dist/translator/visitors/program/index.d.ts +2 -6
- package/dist/translator/visitors/referenced-identifier.d.ts +3 -1
- package/index.d.ts +2 -7
- package/package.json +4 -4
- package/dist/common/constants/keyed-scopes-prop.d.ts +0 -4
- package/dist/common/constants/keyed-scopes-prop.debug.d.ts +0 -4
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\",
|
|
2
|
-
let str = "", sep = "", part;
|
|
3
|
-
if (val) {
|
|
4
|
-
if (typeof val != "object") str += val;
|
|
5
|
-
else if (Array.isArray(val)) for (let v of val) part = toDelimitedString(v, delimiter, stringify), part && (str += sep + part, sep = delimiter);
|
|
6
|
-
else for (let name in val) part = stringify(name, val[name]), part && (str += sep + part, sep = delimiter);
|
|
7
|
-
}
|
|
8
|
-
return str;
|
|
9
|
-
}, decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), branchesEnabled, dynamicHtmlEnabled, rendering, runId = 2, pendingEffects = [], pendingRenders = [], queuePendingRender = (render) => {
|
|
1
|
+
let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", classAPIRenderer, decodeAccessor = (num) => (num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36), branchesEnabled, dynamicHtmlEnabled, rendering, runId = 2, pendingEffects = [], pendingRenders = [], queuePendingRender = (render) => {
|
|
10
2
|
let i = pendingRenders.push(render) - 1;
|
|
11
3
|
for (; i;) {
|
|
12
4
|
let parentIndex = i - 1 >> 1, parent = pendingRenders[parentIndex];
|
|
@@ -14,29 +6,11 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
|
|
|
14
6
|
pendingRenders[i] = parent, i = parentIndex;
|
|
15
7
|
}
|
|
16
8
|
pendingRenders[i] = render;
|
|
17
|
-
}, runEffects = (
|
|
9
|
+
}, runEffects = (effects) => {
|
|
18
10
|
for (let i = 0; i < effects.length;) effects[i++](effects[i++]);
|
|
19
|
-
}
|
|
11
|
+
}, runRender = (render) => {
|
|
20
12
|
branchesEnabled && render.b.F?.H === 0 || render.c(render.b, render.d);
|
|
21
|
-
}, catchEnabled, abortsEnabled, subscriptionsEnabled, delegate = (type, handler) => handler[1 + type] ||= (document.addEventListener(type, handler, !0), 1), parsers = {}, nextScopeId = 1e6, collectingScopes,
|
|
22
|
-
scope.H = 0, scope.D?.forEach(destroyNestedScopes), scope.B?.forEach(cleanupScope);
|
|
23
|
-
}, isScheduled, channel, _return = (scope, value) => scope.T ? scope.T(value) : scope.RV = value, _var_change = (scope, value) => scope.U?.(value), tagIdsByGlobal = /* @__PURE__ */ new WeakMap(), currentNode, walkInternal = function walkInternal(currentWalkIndex, walkCodes, scope) {
|
|
24
|
-
let value, currentMultiplier, storedMultiplier = 0, currentScopeIndex = 0;
|
|
25
|
-
for (; currentWalkIndex < walkCodes.length;) if (value = walkCodes.charCodeAt(currentWalkIndex++), currentMultiplier = storedMultiplier, storedMultiplier = 0, value === 32) scope[decodeAccessor(currentScopeIndex++)] = currentNode;
|
|
26
|
-
else if (value === 37 || value === 49) currentNode.replaceWith(currentNode = scope[decodeAccessor(currentScopeIndex++)] = new Text()), value === 49 && (scope[decodeAccessor(currentScopeIndex++)] = skipScope());
|
|
27
|
-
else if (value === 38) return currentWalkIndex;
|
|
28
|
-
else if (value === 47 || value === 48) currentWalkIndex = walkInternal(currentWalkIndex, walkCodes, scope[decodeAccessor(currentScopeIndex++)] = createScope(scope.$, scope.F)), value === 48 && (scope[decodeAccessor(currentScopeIndex++)] = skipScope());
|
|
29
|
-
else if (value < 92) for (value = 25 * currentMultiplier + value - 67; value--;) if (currentNode.firstChild) currentNode = currentNode.firstChild;
|
|
30
|
-
else {
|
|
31
|
-
for (; !currentNode.nextSibling && currentNode.parentNode;) currentNode = currentNode.parentNode;
|
|
32
|
-
walkNextSibling();
|
|
33
|
-
}
|
|
34
|
-
else if (value < 107) for (value = 10 * currentMultiplier + value - 97; value--;) walkNextSibling();
|
|
35
|
-
else if (value < 117) {
|
|
36
|
-
for (value = 10 * currentMultiplier + value - 107; value--;) currentNode = currentNode.parentNode || currentNode;
|
|
37
|
-
walkNextSibling();
|
|
38
|
-
} else storedMultiplier = currentMultiplier * 10 + value - 117;
|
|
39
|
-
}, walkNextSibling = (_) => currentNode = currentNode.nextSibling || currentNode, _resumed = {}, curRenders, embedRenders, readyIds, lazyEnabled, isResuming, cloneCache = {}, _html = /*@__PURE__*/ withDynamicHtml(function(scope, value, accessor) {
|
|
13
|
+
}, catchEnabled, abortsEnabled, subscriptionsEnabled, delegate = (type, handler) => handler[1 + type] ||= (document.addEventListener(type, handler, !0), 1), parsers = {}, nextScopeId = 1e6, collectingScopes, isScheduled, channel, _return = (scope, value) => scope.T ? scope.T(value) : scope.RV = value, _var_change = (scope, value) => scope.U?.(value), tagIdsByGlobal = /* @__PURE__ */ new WeakMap(), currentNode, walkNextSibling = (_) => currentNode = currentNode.nextSibling || currentNode, _resumed = {}, curRenders, embedRenders, readyIds, lazyEnabled, isResuming, _html = /*@__PURE__*/ withDynamicHtml(function(scope, value, accessor) {
|
|
40
14
|
let prevValue = scope["R" + accessor];
|
|
41
15
|
if (prevValue !== (scope["R" + accessor] = _to_text(value))) {
|
|
42
16
|
let firstChild = scope[accessor], parentNode = firstChild.parentNode, lastChild = scope["H" + accessor] || firstChild, newContent = parseHTML(scope["R" + accessor], parentNode.namespaceURI);
|
|
@@ -59,7 +33,7 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
|
|
|
59
33
|
nodeAccessor = decodeAccessor(nodeAccessor), startNodeAccessor !== void 0 && (startNodeAccessor = decodeAccessor(startNodeAccessor));
|
|
60
34
|
let rangeAccessor = "A" + nodeAccessor;
|
|
61
35
|
return (scope, display) => {
|
|
62
|
-
let referenceNode = scope[nodeAccessor], onlyChild = referenceNode.nodeType
|
|
36
|
+
let referenceNode = scope[nodeAccessor], onlyChild = referenceNode.nodeType < 3, parentNode = onlyChild ? referenceNode : referenceNode.parentNode, range = scope[rangeAccessor];
|
|
63
37
|
range || (range = scope[rangeAccessor] = {}, range.S = onlyChild ? parentNode.insertBefore(new Text(), parentNode.firstChild) : startNodeAccessor ? scope[startNodeAccessor] : referenceNode.previousSibling);
|
|
64
38
|
let startNode = range.S;
|
|
65
39
|
range.L && startNode.tagName === "T" ? display && startNode.replaceWith(range.S = new Text(), ...startNode.childNodes) : display ? startNode.parentNode !== parentNode && parentNode.insertBefore(startNode.parentNode, onlyChild ? null : referenceNode) : startNode.parentNode === parentNode && (range.K = onlyChild ? parentNode.lastChild : referenceNode.previousSibling, detachBranch(range));
|
|
@@ -69,12 +43,7 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
|
|
|
69
43
|
nodeAccessor = decodeAccessor(nodeAccessor);
|
|
70
44
|
let childScopeAccessor = "A" + nodeAccessor, rendererAccessor = "D" + nodeAccessor, createTagBranch = ($global, tagNameOrRenderer, scope, parentNode) => {
|
|
71
45
|
let branch = createBranch($global, tagNameOrRenderer, scope, parentNode);
|
|
72
|
-
|
|
73
|
-
else if (getContent) {
|
|
74
|
-
let content = getContent(scope);
|
|
75
|
-
setBranch(branch, "a", content, createAndSetupBranch), content.f && subscribeToScopeSet(content.e, content.f, branch.Aa);
|
|
76
|
-
}
|
|
77
|
-
return branch;
|
|
46
|
+
return typeof tagNameOrRenderer == "string" && (branch.a = branch.S = branch.K = document.createElementNS(tagNameOrRenderer === "svg" ? "http://www.w3.org/2000/svg" : tagNameOrRenderer === "math" ? "http://www.w3.org/1998/Math/MathML" : parentNode.namespaceURI, tagNameOrRenderer)), getTagVar && (branch.T = (value) => getTagVar()(scope, value), bindTagVar(scope, branch, scope[scopeOffsetAccessor], tagNameOrRenderer)), typeof tagNameOrRenderer == "string" ? getContent && _attr_content(branch, "a", getContent(scope)) : setupBranch(tagNameOrRenderer, branch), branch;
|
|
78
47
|
};
|
|
79
48
|
return (scope, newRenderer, getInput) => {
|
|
80
49
|
let normalizedRenderer = normalizeDynamicRenderer(newRenderer);
|
|
@@ -112,7 +81,7 @@ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "
|
|
|
112
81
|
let oldLen = oldScopes.length, parentNode = referenceNode.nodeType > 1 ? referenceNode.parentNode || oldScopes[0]?.S.parentNode : referenceNode, oldScopesByKey, hasPotentialMoves, start = 0;
|
|
113
82
|
forEach(value, (key, args) => {
|
|
114
83
|
let i = newScopes.length, oldScope = oldScopes[i], branch = oldLen && (oldScopesByKey || key !== (oldScope?.M ?? i) ? (oldScopesByKey ||= oldScopes.reduce((map, scope, j) => j < i ? map : (scope.I = j, map.set(scope.M ?? j, scope)), /* @__PURE__ */ new Map())).get(key) : oldScope && (start++, oldScope));
|
|
115
|
-
branch ? (hasPotentialMoves =
|
|
84
|
+
branch ? (hasPotentialMoves = 1, oldScopesByKey?.delete(key), branch.M = key) : ((branch = createBranch(scope.$, renderer, scope, parentNode)).M = key, setupBranch(renderer, branch)), newScopes.push(branch), params?.(branch, args);
|
|
116
85
|
}), scope[scopesAccessor] = newScopes;
|
|
117
86
|
let newLen = newScopes.length, hasSiblings = referenceNode !== parentNode, afterReference = null, oldEnd = oldLen - 1, newEnd = newLen - 1;
|
|
118
87
|
if (hasSiblings && (oldLen ? (afterReference = oldScopes[oldEnd].K.nextSibling, newLen || parentNode.insertBefore(referenceNode, afterReference)) : newLen && (afterReference = referenceNode.nextSibling, referenceNode.remove())), !hasPotentialMoves) {
|
|
@@ -153,6 +122,15 @@ function escapeStyleValue(str) {
|
|
|
153
122
|
for (let c of result) c === "(" ? closers = ")" + closers : c === "[" ? closers = "]" + closers : c === closers[0] && (closers = closers.slice(1));
|
|
154
123
|
return result + closers;
|
|
155
124
|
}
|
|
125
|
+
function toDelimitedString(val, delimiter, stringify) {
|
|
126
|
+
let str = "", sep = "", part;
|
|
127
|
+
if (val) {
|
|
128
|
+
if (typeof val != "object") str += val;
|
|
129
|
+
else if (Array.isArray(val)) for (let v of val) part = toDelimitedString(v, delimiter, stringify), part && (str += sep + part, sep = delimiter);
|
|
130
|
+
else for (let name in val) part = stringify(name, val[name]), part && (str += sep + part, sep = delimiter);
|
|
131
|
+
}
|
|
132
|
+
return str;
|
|
133
|
+
}
|
|
156
134
|
function isEventHandler(name) {
|
|
157
135
|
return /^on[A-Z-]/.test(name);
|
|
158
136
|
}
|
|
@@ -165,10 +143,14 @@ function isNotNullishOrFalse(value) {
|
|
|
165
143
|
function isPromise(value) {
|
|
166
144
|
return value != null && typeof value.then == "function";
|
|
167
145
|
}
|
|
146
|
+
function setClassAPIRenderer(render) {
|
|
147
|
+
classAPIRenderer = render;
|
|
148
|
+
}
|
|
168
149
|
function normalizeDynamicRenderer(value) {
|
|
169
150
|
if (value) {
|
|
170
151
|
if (typeof value == "string") return value;
|
|
171
152
|
let normalized = value.content || value.default || value;
|
|
153
|
+
if (classAPIRenderer) return classAPIRenderer(normalized);
|
|
172
154
|
if ("a" in normalized) return normalized;
|
|
173
155
|
}
|
|
174
156
|
}
|
|
@@ -292,7 +274,7 @@ function $signal(scope, id) {
|
|
|
292
274
|
return abortsEnabled = 1, trackCleanup(scope), ((scope.A ||= {})[id] ||= new AbortController()).signal;
|
|
293
275
|
}
|
|
294
276
|
/** Runs `abort` as a destroyed scope's `$signal` would fire, without creating one. */
|
|
295
|
-
function
|
|
277
|
+
function onAbort(scope, id, abort) {
|
|
296
278
|
abortsEnabled = 1, trackCleanup(scope), (scope.A ||= {})[id] = { abort };
|
|
297
279
|
}
|
|
298
280
|
/** Enrols `scope` with its branch so destroying the branch cleans it up. */
|
|
@@ -358,11 +340,14 @@ function skipScope() {
|
|
|
358
340
|
return nextScopeId++;
|
|
359
341
|
}
|
|
360
342
|
function destroyBranch(branch) {
|
|
361
|
-
branch.N?.D
|
|
343
|
+
branch.N?.D.delete(branch), destroyNestedScopes(branch);
|
|
362
344
|
}
|
|
363
345
|
function destroyScope(scope) {
|
|
364
346
|
scope.H && (destroyNestedScopes(scope), cleanupScope(scope));
|
|
365
347
|
}
|
|
348
|
+
function destroyNestedScopes(scope) {
|
|
349
|
+
scope.H = 0, scope.D?.forEach(destroyNestedScopes), scope.B?.forEach(cleanupScope);
|
|
350
|
+
}
|
|
366
351
|
function cleanupScope(scope) {
|
|
367
352
|
if (subscriptionsEnabled && scope.Z?.forEach(unsubscribe, scope), abortsEnabled) for (let id in scope.A) $signalReset(scope, id);
|
|
368
353
|
}
|
|
@@ -405,34 +390,28 @@ function _const(valueAccessor, fn) {
|
|
|
405
390
|
scope[valueAccessor] === value && valueAccessor in scope || (scope[valueAccessor] = value, fn?.(scope));
|
|
406
391
|
});
|
|
407
392
|
}
|
|
408
|
-
function _or(id, fn, defaultPending = 1, scopeIdAccessor
|
|
409
|
-
return scopeIdAccessor
|
|
393
|
+
function _or(id, fn, defaultPending = 1, scopeIdAccessor) {
|
|
394
|
+
return scopeIdAccessor = scopeIdAccessor ? decodeAccessor(scopeIdAccessor) : "L", (scope) => {
|
|
410
395
|
scope.H === runId ? ~id in scope ? --scope[~id] || fn(scope) : scope[~id] = defaultPending : queueRender(scope, fn, id, 0, scope[scopeIdAccessor]);
|
|
411
396
|
};
|
|
412
397
|
}
|
|
413
|
-
function _for_closure(ownerLoopNodeAccessor, fn) {
|
|
414
|
-
ownerLoopNodeAccessor = decodeAccessor(ownerLoopNodeAccessor);
|
|
415
|
-
let scopeAccessor = "A" + ownerLoopNodeAccessor,
|
|
416
|
-
let
|
|
417
|
-
|
|
418
|
-
for (let scope of scopes) scope.H > 0 && scope.H < runId && fn(scope);
|
|
419
|
-
}, -1);
|
|
420
|
-
};
|
|
398
|
+
function _for_closure(ownerLoopNodeAccessor, fn, id, scopeIdAccessor) {
|
|
399
|
+
ownerLoopNodeAccessor = decodeAccessor(ownerLoopNodeAccessor), scopeIdAccessor = scopeIdAccessor ? decodeAccessor(scopeIdAccessor) : "L";
|
|
400
|
+
let scopeAccessor = "A" + ownerLoopNodeAccessor, render = (ownerScope) => {
|
|
401
|
+
for (let scope of toArray(ownerScope[scopeAccessor])) scope.H < runId && fn(scope);
|
|
402
|
+
}, ownerSignal = (ownerScope) => queueRender(ownerScope, render, id, 0, ownerScope[scopeIdAccessor]);
|
|
421
403
|
return ownerSignal._ = (scope) => queueRender(scope, fn, -1), ownerSignal;
|
|
422
404
|
}
|
|
423
|
-
function _for_selector(ownerLoopNodeAccessor, ownerValueAccessor, fn) {
|
|
405
|
+
function _for_selector(ownerLoopNodeAccessor, ownerValueAccessor, fn, getValueScope) {
|
|
424
406
|
ownerLoopNodeAccessor = decodeAccessor(ownerLoopNodeAccessor), ownerValueAccessor = decodeAccessor(ownerValueAccessor);
|
|
425
|
-
let scopeAccessor = "A" + ownerLoopNodeAccessor, mapAccessor = "O" + ownerLoopNodeAccessor,
|
|
407
|
+
let scopeAccessor = "A" + ownerLoopNodeAccessor, mapAccessor = "O" + ownerLoopNodeAccessor, prevKey = Symbol(), ownerSignal = (ownerScope) => {
|
|
426
408
|
if (ownerScope.H < runId) {
|
|
427
|
-
let nextKey = ownerScope[ownerValueAccessor];
|
|
428
|
-
|
|
429
|
-
let
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
} else for (let scope of toArray(ownerScope[scopeAccessor])) runLiveBranch(scope, fn);
|
|
434
|
-
map && (map[prevKeyProp] = nextKey);
|
|
435
|
-
}, -1);
|
|
409
|
+
let nextKey = (getValueScope ? getValueScope(ownerScope) : ownerScope)[ownerValueAccessor], map = keyedScopes(ownerScope, scopeAccessor, mapAccessor);
|
|
410
|
+
if (map && prevKey in ownerScope) {
|
|
411
|
+
let prevScope = map.get(ownerScope[prevKey]), nextScope = map.get(nextKey);
|
|
412
|
+
prevScope !== nextScope && (queueLiveBranch(prevScope, fn), queueLiveBranch(nextScope, fn));
|
|
413
|
+
} else for (let scope of toArray(ownerScope[scopeAccessor])) queueLiveBranch(scope, fn);
|
|
414
|
+
ownerScope[prevKey] = nextKey;
|
|
436
415
|
}
|
|
437
416
|
};
|
|
438
417
|
return ownerSignal._ = (scope) => queueRender(scope, fn, -1), ownerSignal;
|
|
@@ -446,8 +425,8 @@ function keyedScopes(ownerScope, scopeAccessor, mapAccessor) {
|
|
|
446
425
|
}
|
|
447
426
|
return map;
|
|
448
427
|
}
|
|
449
|
-
function
|
|
450
|
-
scope
|
|
428
|
+
function queueLiveBranch(scope, fn) {
|
|
429
|
+
scope?.H < runId && queueRender(scope, fn, -1);
|
|
451
430
|
}
|
|
452
431
|
function _if_closure(ownerConditionalNodeAccessor, branch, fn) {
|
|
453
432
|
ownerConditionalNodeAccessor = decodeAccessor(ownerConditionalNodeAccessor);
|
|
@@ -495,9 +474,7 @@ function _id(scope, accessor) {
|
|
|
495
474
|
return id;
|
|
496
475
|
}
|
|
497
476
|
function _script(id, fn) {
|
|
498
|
-
return _resumed[id] = fn, (scope) =>
|
|
499
|
-
queueEffect(scope, fn);
|
|
500
|
-
};
|
|
477
|
+
return _resumed[id] = fn, (scope) => queueEffect(scope, fn);
|
|
501
478
|
}
|
|
502
479
|
function _global_read($global, key) {
|
|
503
480
|
return $global[key];
|
|
@@ -528,6 +505,23 @@ function _hoist_resume(id, ...path) {
|
|
|
528
505
|
function walk(startNode, walkCodes, branch) {
|
|
529
506
|
currentNode = startNode, walkInternal(0, walkCodes, branch);
|
|
530
507
|
}
|
|
508
|
+
function walkInternal(currentWalkIndex, walkCodes, scope) {
|
|
509
|
+
let value, currentMultiplier, storedMultiplier = 0, currentScopeIndex = 0;
|
|
510
|
+
for (; currentWalkIndex < walkCodes.length;) if (value = walkCodes.charCodeAt(currentWalkIndex++), currentMultiplier = storedMultiplier, storedMultiplier = 0, value === 32) scope[decodeAccessor(currentScopeIndex++)] = currentNode;
|
|
511
|
+
else if (value === 37 || value === 49) currentNode.replaceWith(currentNode = scope[decodeAccessor(currentScopeIndex++)] = new Text()), value === 49 && (scope[decodeAccessor(currentScopeIndex++)] = skipScope());
|
|
512
|
+
else if (value === 38) return currentWalkIndex;
|
|
513
|
+
else if (value === 47 || value === 48) currentWalkIndex = walkInternal(currentWalkIndex, walkCodes, scope[decodeAccessor(currentScopeIndex++)] = createScope(scope.$, scope.F)), value === 48 && (scope[decodeAccessor(currentScopeIndex++)] = skipScope());
|
|
514
|
+
else if (value < 92) for (value = 25 * currentMultiplier + value - 67; value--;) if (currentNode.firstChild) currentNode = currentNode.firstChild;
|
|
515
|
+
else {
|
|
516
|
+
for (; !currentNode.nextSibling && currentNode.parentNode;) currentNode = currentNode.parentNode;
|
|
517
|
+
walkNextSibling();
|
|
518
|
+
}
|
|
519
|
+
else if (value < 107) for (value = 10 * currentMultiplier + value - 97; value--;) walkNextSibling();
|
|
520
|
+
else if (value < 117) {
|
|
521
|
+
for (value = 10 * currentMultiplier + value - 107; value--;) currentNode = currentNode.parentNode || currentNode;
|
|
522
|
+
walkNextSibling();
|
|
523
|
+
} else storedMultiplier = currentMultiplier * 10 + value - 117;
|
|
524
|
+
}
|
|
531
525
|
// src/dom/resume.ts
|
|
532
526
|
function ready(readyId) {
|
|
533
527
|
(readyIds ||= /* @__PURE__ */ new Set()).add(readyId);
|
|
@@ -550,67 +544,65 @@ function initEmbedded(readyId, runtimeId) {
|
|
|
550
544
|
}
|
|
551
545
|
function init(runtimeId = "M") {
|
|
552
546
|
if (curRenders) return;
|
|
553
|
-
let renders = self[runtimeId], defineRuntime = (desc) => Object.defineProperty(self, runtimeId, desc), initRuntime = (renders) => {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
547
|
+
let renders = self[runtimeId], defineRuntime = (desc) => Object.defineProperty(self, runtimeId, desc), initRuntime = (renders) => defineRuntime({ value: curRenders = ((renderId) => {
|
|
548
|
+
let render = curRenders[renderId] = renders[renderId] || renders(renderId), walk = render.w, scopeLookup = {}, pending = [], getScope = (id) => scopeLookup[id] || (+id ? initScope(scopeLookup[id] = { L: +id }) : initGlobal()), initGlobal = (_) => scopeLookup[0] ||= {
|
|
549
|
+
runtimeId,
|
|
550
|
+
renderId
|
|
551
|
+
}, initScope = (scope) => (scope.H ??= 1, scope.$ = initGlobal(), branchesEnabled && scope.G && (scope.F = getScope(scope.G)), scope), applyScopes = (partials) => {
|
|
552
|
+
let scopeId = partials[0];
|
|
553
|
+
for (let i = 1; i < partials.length; i++) {
|
|
554
|
+
let partial = partials[i];
|
|
555
|
+
typeof partial == "number" ? scopeId += partial : (scopeId ? initScope(Object.assign(scopeLookup[scopeId] ||= (partial.L = scopeId, partial), partial)) : Object.assign(initGlobal(), partial), scopeId++);
|
|
556
|
+
}
|
|
557
|
+
}, serializeContext = ((data, registryId) => typeof data == "number" ? registryId ? _resumed[registryId](getScope(data)) : getScope(data) : applyScopes(data)), createVisitBranches = (branchScopesStack = [], branchStarts = [], curBranchScopes, reorderBranch, reorderDepth = 0, adopt = (scope, branch) => scope.F === scope ? scope !== branch && setParentBranch(scope, branch) : scope.F = branch) => (branchId, branch, endedBranches, accessor, nodeAccessor, singleNode, parent = visit.parentNode, startVisit = visit) => {
|
|
558
|
+
if (visitType === "*") {
|
|
559
|
+
for (; reorderBranch && pending.length >= reorderDepth;) adopt(pending.pop(), reorderBranch);
|
|
560
|
+
(reorderBranch = +lastToken && visitScope) && (reorderDepth = pending.push(reorderBranch));
|
|
561
|
+
} else {
|
|
562
|
+
for (visitType !== "[" && (visitScope[nextToken()] = visitType === ")" || visitType === "}" ? parent : visit, accessor = "A" + (nodeAccessor = lastToken), singleNode = visitType !== "]" && visitType !== ")", nextToken()); branchId = +lastToken;) {
|
|
563
|
+
if ((endedBranches ||= []).push(branch = getScope(branchId)), setParentBranch(branch, branch.F), (branch.O = render.p?.[branchId]) && (branch.O.m = render.m), singleNode) {
|
|
564
|
+
for (; startVisit.previousSibling && (startVisit = startVisit.previousSibling).nodeType > 1;);
|
|
565
|
+
branch._ ??= visitScope, branch.K = branch.S = startVisit, visitType === "(" && (branch.a = startVisit);
|
|
566
|
+
} else branch.C = nodeAccessor, curBranchScopes = push(curBranchScopes, branch), accessor && (visitScope[accessor] = curBranchScopes, forEach(curBranchScopes, (scope) => scope._ ??= visitScope), curBranchScopes = branchScopesStack.pop()), startVisit = branchStarts.pop(), parent !== startVisit.parentNode && parent.prepend(startVisit), branch.S = startVisit, branch.K = visit.previousSibling === startVisit ? startVisit : parent.insertBefore(new Text(), visit);
|
|
567
|
+
for (; pending.at(-1)?.L >= branchId;) adopt(pending.pop(), branch);
|
|
568
|
+
nextToken();
|
|
563
569
|
}
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
(reorderBranch = +lastToken && visitScope) && (reorderDepth = pending.push(reorderBranch));
|
|
568
|
-
} else {
|
|
569
|
-
for (visitType !== "[" && (visitScope[nextToken()] = visitType === ")" || visitType === "}" ? parent : visit, accessor = "A" + (nodeAccessor = lastToken), singleNode = visitType !== "]" && visitType !== ")", nextToken()); branchId = +lastToken;) {
|
|
570
|
-
if ((endedBranches ||= []).push(branch = getScope(branchId)), setParentBranch(branch, branch.F), (branch.O = render.p?.[branchId]) && (branch.O.m = render.m), singleNode) {
|
|
571
|
-
for (; startVisit.previousSibling && (startVisit = startVisit.previousSibling).nodeType > 1;);
|
|
572
|
-
branch._ ??= visitScope, branch.K = branch.S = startVisit, visitType === "(" && (branch.a = startVisit);
|
|
573
|
-
} else branch.C = nodeAccessor, curBranchScopes = push(curBranchScopes, branch), accessor && (visitScope[accessor] = curBranchScopes, forEach(curBranchScopes, (scope) => scope._ ??= visitScope), curBranchScopes = branchScopesStack.pop()), startVisit = branchStarts.pop(), parent !== startVisit.parentNode && parent.prepend(startVisit), branch.S = startVisit, branch.K = visit.previousSibling === startVisit ? startVisit : parent.insertBefore(new Text(), visit);
|
|
574
|
-
for (; pending.at(-1)?.L >= branchId;) adopt(pending.pop(), branch);
|
|
575
|
-
nextToken();
|
|
576
|
-
}
|
|
577
|
-
if (endedBranches) {
|
|
578
|
-
for (let ended of endedBranches) pending.push(ended);
|
|
579
|
-
singleNode && (visitScope[accessor] = endedBranches.length > 1 ? endedBranches.reverse() : endedBranches[0]);
|
|
580
|
-
}
|
|
581
|
-
visitType === "[" ? (endedBranches || (branchScopesStack.push(curBranchScopes), curBranchScopes = void 0), branchStarts.push(visit)) : pending.push(visitScope);
|
|
570
|
+
if (endedBranches) {
|
|
571
|
+
for (let ended of endedBranches) pending.push(ended);
|
|
572
|
+
singleNode && (visitScope[accessor] = endedBranches.length > 1 ? endedBranches.reverse() : endedBranches[0]);
|
|
582
573
|
}
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
574
|
+
visitType === "[" ? (endedBranches || (branchScopesStack.push(curBranchScopes), curBranchScopes = void 0), branchStarts.push(visit)) : pending.push(visitScope);
|
|
575
|
+
}
|
|
576
|
+
}, nextToken = (_) => lastToken = visitText.slice(lastTokenIndex, (lastTokenIndex = visitText.indexOf(" ", lastTokenIndex) + 1 || visitText.length + 1) - 1), processResumes = (resumes = [], effects) => {
|
|
577
|
+
let i = 0;
|
|
578
|
+
for (; i < resumes.length; i++) {
|
|
579
|
+
let serialized = resumes[i];
|
|
580
|
+
if (typeof serialized == "string") for (lastTokenIndex = 0, visitText = serialized; nextToken();) /\D/.test(lastToken) ? lastEffect = _resumed[lastToken] : effects.push(lastEffect, getScope(lastToken));
|
|
581
|
+
else if (readyIds && typeof serialized != "function") {
|
|
582
|
+
if (typeof serialized == "number" || !Object.keys(serialized).every((dep) => readyIds.has(dep) && (render.b[dep]?.n || 0) >= serialized[dep])) break;
|
|
583
|
+
} else {
|
|
584
|
+
readyIds && (resumes.n = (resumes.n || 0) + 1);
|
|
585
|
+
let scopes = serialized(serializeContext);
|
|
586
|
+
Array.isArray(scopes) && applyScopes(scopes);
|
|
595
587
|
}
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
588
|
+
}
|
|
589
|
+
return resumes.splice(0, i), i;
|
|
590
|
+
}, lastEffect, visits, visit, visitText, visitType, visitScope, lastToken, lastTokenIndex, visitBranches, htmlStart, embedAnchor;
|
|
591
|
+
return serializeContext._ = _resumed, render.m = (effects) => {
|
|
592
|
+
if (processResumes(render.r, effects), readyIds && render.b) for (let progress = 1; progress;) {
|
|
593
|
+
progress = 0;
|
|
594
|
+
for (let readyId of readyIds) {
|
|
595
|
+
let resumes = render.b[readyId];
|
|
596
|
+
resumes && processResumes(resumes, effects) && (progress = 1);
|
|
605
597
|
}
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
}
|
|
613
|
-
};
|
|
598
|
+
}
|
|
599
|
+
let retained = 0;
|
|
600
|
+
for (visit of visits = render.v) lastTokenIndex = render.i.length, visitText = visit.data, visitType = visitText[lastTokenIndex++], visitScope = getScope(nextToken()), dynamicHtmlEnabled && visitType > "%" && visitType <= "'" ? visitType === "&" ? htmlStart = visit : (visitScope[nextToken()] = htmlStart, visitScope["H" + lastToken] = visit, (branchesEnabled || lazyEnabled) && pending[pending.length - 1] !== visitScope && pending.push(visitScope)) : branchesEnabled && visitType > "'" ? (visitBranches ||= createVisitBranches())() : lazyEnabled && render.b && visitType > "%" ? visits[retained++] = visit : (visitScope[nextToken()] = visitType === "%" ? visit.parentNode.insertBefore(new Text(), visit) : visit.previousSibling, (branchesEnabled || lazyEnabled) && pending[pending.length - 1] !== visitScope && pending.push(visitScope)), embedRenders && !embedAnchor && visit.parentNode && embedRenders.set(embedAnchor = visit.parentNode.insertBefore(new Text(), visit), [renderId, scopeLookup]);
|
|
601
|
+
return branchesEnabled && visitBranches && (visitType = "*", lastToken = "", visitBranches()), visits.length = retained, effects;
|
|
602
|
+
}, render.w = (_) => {
|
|
603
|
+
walk(), runResumeEffects(render);
|
|
604
|
+
}, render;
|
|
605
|
+
}) });
|
|
614
606
|
if (renders) {
|
|
615
607
|
initRuntime(renders);
|
|
616
608
|
for (let renderId in renders) runResumeEffects(curRenders(renderId));
|
|
@@ -638,7 +630,7 @@ function _el(id, accessor) {
|
|
|
638
630
|
function _dynamic_tag_var_resume(accessor) {
|
|
639
631
|
accessor = decodeAccessor(accessor), _resumed["-" + accessor] = (scope) => (_) => {
|
|
640
632
|
let node = scope[accessor];
|
|
641
|
-
return node.nodeType
|
|
633
|
+
return node.nodeType > 1 ? node.previousSibling : node;
|
|
642
634
|
};
|
|
643
635
|
}
|
|
644
636
|
// src/dom/renderer.ts
|
|
@@ -660,11 +652,7 @@ function _return_setup(setup) {
|
|
|
660
652
|
}
|
|
661
653
|
function _content(id, template, walks, setup, params, dynamicScopesAccessor) {
|
|
662
654
|
walks = walks ? walks.replace(/[^\0-1]+$/, "") : "", setup = setup ? setup._ || setup : void 0, params ||= void 0;
|
|
663
|
-
let clone = template ? (branch, ns) =>
|
|
664
|
-
((cloneCache[ns] ||= {})[1 + template] ||= createCloneableHTML(template, ns))(branch, walks);
|
|
665
|
-
} : (branch) => {
|
|
666
|
-
walk(branch.S = branch.K = new Text(), walks, branch);
|
|
667
|
-
};
|
|
655
|
+
let cloneables = {}, clone = template ? (branch, ns) => (cloneables[ns] ||= createCloneableHTML(template, walks, ns))(branch) : (branch) => walk(branch.S = branch.K = new Text(), walks, branch);
|
|
668
656
|
return _resumed[id] = (owner) => ({
|
|
669
657
|
a: id,
|
|
670
658
|
b: clone,
|
|
@@ -696,11 +684,9 @@ function _content_closures(renderer, closureFns) {
|
|
|
696
684
|
}, instance;
|
|
697
685
|
};
|
|
698
686
|
}
|
|
699
|
-
function createCloneableHTML(html, ns) {
|
|
687
|
+
function createCloneableHTML(html, walks, ns) {
|
|
700
688
|
let { firstChild, lastChild } = parseHTML(html, ns), parent = new DocumentFragment();
|
|
701
|
-
return insertChildNodes(parent, null, firstChild, lastChild), firstChild === lastChild && firstChild.nodeType < 8 ? (branch, walks) => {
|
|
702
|
-
walk(branch.S = branch.K = firstChild.cloneNode(!0), walks, branch);
|
|
703
|
-
} : (branch, walks) => {
|
|
689
|
+
return insertChildNodes(parent, null, firstChild, lastChild), firstChild === lastChild && firstChild.nodeType < 8 ? (branch) => walk(branch.S = branch.K = firstChild.cloneNode(!0), walks, branch) : (branch) => {
|
|
704
690
|
let clone = parent.cloneNode(!0);
|
|
705
691
|
clone.namespaceURI = ns, walk(clone.firstChild, walks, branch), branch.S = clone.firstChild, branch.K = clone.lastChild;
|
|
706
692
|
};
|
|
@@ -804,25 +790,20 @@ function attrsInternal(scope, nodeAccessor, nextAttrs, controllable) {
|
|
|
804
790
|
}
|
|
805
791
|
}
|
|
806
792
|
}
|
|
807
|
-
function _attr_content(scope, nodeAccessor,
|
|
808
|
-
|
|
809
|
-
scope["D" + nodeAccessor] !== (scope["D" + nodeAccessor] = rendererKey(content)) && (setBranch(scope, nodeAccessor, content, createAndSetupBranch), content?.f && subscribeToScopeSet(content.e, content.f, scope["A" + nodeAccessor])), content?.g?.(scope["A" + nodeAccessor]);
|
|
793
|
+
function _attr_content(scope, nodeAccessor, content) {
|
|
794
|
+
content = content?.content || content, classAPIRenderer && content && (content = classAPIRenderer(content)), scope["D" + nodeAccessor] !== (scope["D" + nodeAccessor] = rendererKey(content)) && (setBranch(scope, nodeAccessor, content, createAndSetupBranch), content?.f && subscribeToScopeSet(content.e, content.f, scope["A" + nodeAccessor])), content?.g?.(scope["A" + nodeAccessor]);
|
|
810
795
|
}
|
|
811
796
|
function _attrs_script(scope, nodeAccessor) {
|
|
812
797
|
let el = scope[nodeAccessor], events = scope["I" + nodeAccessor];
|
|
813
798
|
controllableScripts[scope["F" + nodeAccessor]]?.(scope, nodeAccessor);
|
|
814
799
|
for (let name in events) _on(el, name, events[name]);
|
|
815
800
|
}
|
|
816
|
-
function normalizeClientRender(value) {
|
|
817
|
-
let renderer = normalizeDynamicRenderer(value);
|
|
818
|
-
if (renderer && renderer.a) return renderer;
|
|
819
|
-
}
|
|
820
801
|
function normalizeAttrValue(value) {
|
|
821
802
|
if (isNotNullishOrFalse(value)) return value === !0 ? "" : value + "";
|
|
822
803
|
}
|
|
823
804
|
function _lifecycle(scope, thisObj, index = 0) {
|
|
824
805
|
let accessor = "K" + index, instance = scope[accessor];
|
|
825
|
-
instance ? (Object.assign(instance, thisObj), instance.onUpdate?.()) : (scope[accessor] = thisObj, Object.assign(thisObj, thisObj.onMount?.()),
|
|
806
|
+
instance ? (Object.assign(instance, thisObj), instance.onUpdate?.()) : (scope[accessor] = thisObj, Object.assign(thisObj, thisObj.onMount?.()), onAbort(scope, accessor, (_) => thisObj.onDestroy?.()));
|
|
826
807
|
}
|
|
827
808
|
function removeChildNodes(startNode, endNode) {
|
|
828
809
|
for (endNode = endNode.nextSibling; startNode !== endNode;) {
|
|
@@ -1058,7 +1039,7 @@ function _await_promise(nodeAccessor, params) {
|
|
|
1058
1039
|
}
|
|
1059
1040
|
if (!isPromise(promise)) return scope[tryAccessor] ? awaitPromise(scope, Promise.resolve(promise)) : resolveAwait(scope, scope[nodeAccessor], promise);
|
|
1060
1041
|
let awaitCounter = tryBranch.O;
|
|
1061
|
-
scope[tryAccessor] || (scope[tryAccessor] = tryBranch,
|
|
1042
|
+
scope[tryAccessor] || (scope[tryAccessor] = tryBranch, onAbort(scope, promiseAccessor, (_) => {
|
|
1062
1043
|
scope[promiseAccessor] = 0, scope[tryAccessor] && queueAsyncRender(scope[tryAccessor], completeAwaitCounter, awaitCounter);
|
|
1063
1044
|
}), awaitBranch && (awaitBranch.W ||= []), tryBranch === awaitBranch ? (awaitCounter?.i || (awaitCounter = createAwaitCounter(tryBranch, (_) => {
|
|
1064
1045
|
if (tryBranch === scope[branchAccessor]) {
|
|
@@ -1172,9 +1153,6 @@ function findTryWithCatch(scope) {
|
|
|
1172
1153
|
function rendererKey(renderer) {
|
|
1173
1154
|
return renderer?.e ? renderer.a + " " + renderer.e.L : renderer?.a || renderer;
|
|
1174
1155
|
}
|
|
1175
|
-
function patchDynamicTag(fn) {
|
|
1176
|
-
_dynamic_tag = fn(_dynamic_tag);
|
|
1177
|
-
}
|
|
1178
1156
|
function installDynamicTagVar(bind) {
|
|
1179
1157
|
bindTagVar = bind;
|
|
1180
1158
|
}
|
|
@@ -1204,4 +1182,4 @@ function bySecondArg(_item, index) {
|
|
|
1204
1182
|
function byFirstArg(name) {
|
|
1205
1183
|
return name;
|
|
1206
1184
|
}
|
|
1207
|
-
export {
|
|
1185
|
+
export { _attrs as $, $signal as $t, _attr_input_value_attribute_default as A, _const as At, _controllable_textarea as B, _let_change as Bt, _attr_input_checked as C, init as Ct, _attr_input_checked_default as D, withLazy as Dt, _attr_input_checkedValue_script as E, readyFailed as Et, _attr_select_value_default as F, _hoist as Ft, _attr_class_item as G, _var as Gt, controllableSpreadHelpers as H, _return as Ht, _attr_select_value_script as I, _hoist_resume as It, _attr_content as J, destroyBranch as Jt, _attr_class_items as K, _var_change as Kt, _controllable_input as L, _id as Lt, _attr_input_value_dynamic_default as M, _for_closure as Mt, _attr_input_value_script as N, _for_selector as Nt, _attr_input_checked_script as O, _closure as Ot, _attr_select_value as P, _global_read as Pt, _attr_style_items as Q, _on as Qt, _controllable_open as R, _if_closure as Rt, _attr_details_or_dialog_open_script as S, withBranches as Sn, getRegisteredWithScope as St, _attr_input_checkedValue_default as T, ready as Tt, _attr as U, _return_change as Ut, controllableScripts as V, _or as Vt, _attr_class as W, _script as Wt, _attr_style as X, removeAndDestroyBranch as Xt, _attr_nonce as Y, insertBranchBefore as Yt, _attr_style_item as Z, syncGen as Zt, renderCatch as _, _assert_class_toggles as _n, setupBranch as _t, _for_in as a, prepareEffects as an, _lifecycle as at, _attr_details_or_dialog_open as b, _call as bn, _resumed as bt, _for_to as c, queueRender as cn, _text as ct, _for_until_unkeyed as d, runEffects as dn, _content as dt, $signalReset as en, _attrs_content as et, _if as f, runId as fn, _content_closures as ft, installDynamicTagVar as g, forUntil as gn, createBranch as gt, dynamicTagScript as h, forTo as hn, createAndSetupBranch as ht, _dynamic_tag_content as i, installCatch as in, _html as it, _attr_input_value_default as j, _el_read as jt, _attr_input_value as k, _closure_get as kt, _for_to_unkeyed as l, rendering as ln, _text_content as lt, _try as m, forOf as mn, _return_setup as mt, _await_promise as n, createBranchRenders as nn, _attrs_partial_content as nt, _for_of as o, queueAsyncRender as on, _style_rule_item as ot, _show as p, forIn as pn, _content_resume as pt, _attr_class_names as q, _assert_init as qt, _dynamic_tag as r, installBranchRenders as rn, _attrs_script as rt, _for_of_unkeyed as s, queueEffect as sn, _style_shell as st, _await_content as t, onAbort as tn, _attrs_partial as tt, _for_until as u, run as un, _to_text as ut, runPendingEffects as v, _assert_hoist as vn, _dynamic_tag_var_resume as vt, _attr_input_checkedValue as w, initEmbedded as wt, _attr_details_or_dialog_open_default as x, setClassAPIRenderer as xn, _var_resume as xt, startAwait as y, _hoist_read_error as yn, _el as yt, _controllable_select as z, _let as zt };
|
package/dist/dom.d.ts
CHANGED
|
@@ -2,8 +2,7 @@ export { attrTag, attrTags } from "./common/attr-tag";
|
|
|
2
2
|
export { _assert_class_toggles, _assert_hoist, _hoist_read_error, } from "./common/errors";
|
|
3
3
|
export { forIn, forOf, forTo, forUntil } from "./common/for";
|
|
4
4
|
export { _call } from "./common/helpers";
|
|
5
|
-
export { $signal, $signalReset } from "./dom/abort-signal";
|
|
6
|
-
export { compat } from "./dom/compat";
|
|
5
|
+
export { $signal, $signalReset, onAbort } from "./dom/abort-signal";
|
|
7
6
|
export { _await_content, _await_promise, _dynamic_tag, _dynamic_tag_content, _for_in, _for_of, _for_of_unkeyed, _for_to, _for_to_unkeyed, _for_until, _for_until_unkeyed, _if, _show, _try, } from "./dom/control-flow";
|
|
8
7
|
export { _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open_default as _attr_details_open_default, _attr_details_or_dialog_open_script as _attr_details_open_script, _attr_details_or_dialog_open as _attr_dialog_open, _attr_details_or_dialog_open_default as _attr_dialog_open_default, _attr_details_or_dialog_open_script as _attr_dialog_open_script, _attr_input_checked, _attr_input_checked_default, _attr_input_checked_script, _attr_input_checkedValue, _attr_input_checkedValue_default, _attr_input_checkedValue_script, _attr_input_value, _attr_input_value_attribute_default, _attr_input_value_default, _attr_input_value_dynamic_default, _attr_input_value_script, _attr_select_value, _attr_select_value_default, _attr_select_value_script, _attr_input_value as _attr_textarea_value, _attr_input_value_default as _attr_textarea_value_default, _attr_input_value_script as _attr_textarea_value_script, _controllable_input, _controllable_open, _controllable_select, _controllable_textarea, } from "./dom/controllable";
|
|
9
8
|
export { _attr, _attr_class, _attr_class_item, _attr_class_items, _attr_class_names, _attr_content, _attr_nonce, _attr_style, _attr_style_item, _attr_style_items, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_script, _html, _lifecycle, _style_rule_item, _style_shell, _text, _text_content, _to_text, } from "./dom/dom";
|