@marko/runtime-tags 6.2.4 → 6.2.5
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/debug/dom.js +6 -6
- package/dist/debug/dom.mjs +6 -6
- package/dist/dom.js +5 -5
- package/dist/dom.mjs +5 -5
- package/package.json +1 -1
package/dist/debug/dom.js
CHANGED
|
@@ -431,9 +431,9 @@ function _const(valueAccessor, fn) {
|
|
|
431
431
|
}
|
|
432
432
|
function _or(id, fn, defaultPending = 1, scopeIdAccessor = "#Id") {
|
|
433
433
|
return (scope) => {
|
|
434
|
-
if (scope["#Gen"] === runId) if (id in scope) {
|
|
435
|
-
if (!--scope[id]) fn(scope);
|
|
436
|
-
} else scope[id] = defaultPending;
|
|
434
|
+
if (scope["#Gen"] === runId) if (~id in scope) {
|
|
435
|
+
if (!--scope[~id]) fn(scope);
|
|
436
|
+
} else scope[~id] = defaultPending;
|
|
437
437
|
else queueRender(scope, fn, id, 0, scope[scopeIdAccessor]);
|
|
438
438
|
};
|
|
439
439
|
}
|
|
@@ -1809,10 +1809,10 @@ const caughtError = /* @__PURE__ */ new WeakSet();
|
|
|
1809
1809
|
const placeholderShown = /* @__PURE__ */ new WeakSet();
|
|
1810
1810
|
let pendingEffects = [];
|
|
1811
1811
|
let pendingRenders = [];
|
|
1812
|
-
const scopeKeyOffset =
|
|
1812
|
+
const scopeKeyOffset = 1e6;
|
|
1813
1813
|
function queueRender(scope, signal, signalKey, value, scopeKey = scope["#Id"]) {
|
|
1814
1814
|
let render;
|
|
1815
|
-
if (signalKey >= 0 && (render = scope[signalKey
|
|
1815
|
+
if (signalKey >= 0 && (render = scope[signalKey])) {
|
|
1816
1816
|
render["value"] = value;
|
|
1817
1817
|
if (render["gen"] === runId || catchEnabled && render["pending"]) return;
|
|
1818
1818
|
render["gen"] = runId;
|
|
@@ -1824,7 +1824,7 @@ function queueRender(scope, signal, signalKey, value, scopeKey = scope["#Id"]) {
|
|
|
1824
1824
|
["value"]: value,
|
|
1825
1825
|
["gen"]: runId
|
|
1826
1826
|
};
|
|
1827
|
-
if (signalKey >= 0) scope[signalKey
|
|
1827
|
+
if (signalKey >= 0) scope[signalKey] = render;
|
|
1828
1828
|
}
|
|
1829
1829
|
queuePendingRender(render);
|
|
1830
1830
|
}
|
package/dist/debug/dom.mjs
CHANGED
|
@@ -429,9 +429,9 @@ function _const(valueAccessor, fn) {
|
|
|
429
429
|
}
|
|
430
430
|
function _or(id, fn, defaultPending = 1, scopeIdAccessor = "#Id") {
|
|
431
431
|
return (scope) => {
|
|
432
|
-
if (scope["#Gen"] === runId) if (id in scope) {
|
|
433
|
-
if (!--scope[id]) fn(scope);
|
|
434
|
-
} else scope[id] = defaultPending;
|
|
432
|
+
if (scope["#Gen"] === runId) if (~id in scope) {
|
|
433
|
+
if (!--scope[~id]) fn(scope);
|
|
434
|
+
} else scope[~id] = defaultPending;
|
|
435
435
|
else queueRender(scope, fn, id, 0, scope[scopeIdAccessor]);
|
|
436
436
|
};
|
|
437
437
|
}
|
|
@@ -1807,10 +1807,10 @@ const caughtError = /* @__PURE__ */ new WeakSet();
|
|
|
1807
1807
|
const placeholderShown = /* @__PURE__ */ new WeakSet();
|
|
1808
1808
|
let pendingEffects = [];
|
|
1809
1809
|
let pendingRenders = [];
|
|
1810
|
-
const scopeKeyOffset =
|
|
1810
|
+
const scopeKeyOffset = 1e6;
|
|
1811
1811
|
function queueRender(scope, signal, signalKey, value, scopeKey = scope["#Id"]) {
|
|
1812
1812
|
let render;
|
|
1813
|
-
if (signalKey >= 0 && (render = scope[signalKey
|
|
1813
|
+
if (signalKey >= 0 && (render = scope[signalKey])) {
|
|
1814
1814
|
render["value"] = value;
|
|
1815
1815
|
if (render["gen"] === runId || catchEnabled && render["pending"]) return;
|
|
1816
1816
|
render["gen"] = runId;
|
|
@@ -1822,7 +1822,7 @@ function queueRender(scope, signal, signalKey, value, scopeKey = scope["#Id"]) {
|
|
|
1822
1822
|
["value"]: value,
|
|
1823
1823
|
["gen"]: runId
|
|
1824
1824
|
};
|
|
1825
|
-
if (signalKey >= 0) scope[signalKey
|
|
1825
|
+
if (signalKey >= 0) scope[signalKey] = render;
|
|
1826
1826
|
}
|
|
1827
1827
|
queuePendingRender(render);
|
|
1828
1828
|
}
|
package/dist/dom.js
CHANGED
|
@@ -49,7 +49,7 @@ let empty = [], rest = Symbol(), toDelimitedString = function toDelimitedString(
|
|
|
49
49
|
};
|
|
50
50
|
}, _for_of = /* @__PURE__ */ loop(([all, by = bySecondArg], cb) => {
|
|
51
51
|
typeof by == "string" ? forOf(all, (item, i) => cb(item[by], [item, i])) : forOf(all, (item, i) => cb(by(item, i), [item, i]));
|
|
52
|
-
}), _for_in = /* @__PURE__ */ loop(([obj, by = byFirstArg], cb) => forIn(obj, (key, value) => cb(by(key, value), [key, value]))), _for_to = /* @__PURE__ */ loop(([to, from, step, by = byFirstArg], cb) => forTo(to, from, step, (v) => cb(by(v), [v]))), _for_until = /* @__PURE__ */ loop(([until, from, step, by = byFirstArg], cb) => forUntil(until, from, step, (v) => cb(by(v), [v]))), rendering, runId = 2, caughtError = /* @__PURE__ */ new WeakSet(), placeholderShown = /* @__PURE__ */ new WeakSet(), pendingEffects = [], pendingRenders = [],
|
|
52
|
+
}), _for_in = /* @__PURE__ */ loop(([obj, by = byFirstArg], cb) => forIn(obj, (key, value) => cb(by(key, value), [key, value]))), _for_to = /* @__PURE__ */ loop(([to, from, step, by = byFirstArg], cb) => forTo(to, from, step, (v) => cb(by(v), [v]))), _for_until = /* @__PURE__ */ loop(([until, from, step, by = byFirstArg], cb) => forUntil(until, from, step, (v) => cb(by(v), [v]))), rendering, runId = 2, caughtError = /* @__PURE__ */ new WeakSet(), placeholderShown = /* @__PURE__ */ new WeakSet(), pendingEffects = [], pendingRenders = [], runEffects = ((effects) => {
|
|
53
53
|
for (let i = 0; i < effects.length;) effects[i++](effects[i++]);
|
|
54
54
|
}), runRender = (render) => render.c(render.b, render.d), catchEnabled, classIdToBranch = /* @__PURE__ */ new Map(), scopesByRender = /* @__PURE__ */ new WeakMap(), getRenderScopes = ($global) => {
|
|
55
55
|
let render = self[$global.runtimeId]?.[$global.renderId], scopes = render && scopesByRender.get(render);
|
|
@@ -299,7 +299,7 @@ function _const(valueAccessor, fn) {
|
|
|
299
299
|
}
|
|
300
300
|
function _or(id, fn, defaultPending = 1, scopeIdAccessor = "L") {
|
|
301
301
|
return scopeIdAccessor !== "L" && (scopeIdAccessor = decodeAccessor(scopeIdAccessor)), (scope) => {
|
|
302
|
-
scope.H === runId ? id in scope ? --scope[id] || fn(scope) : scope[id] = defaultPending : queueRender(scope, fn, id, 0, scope[scopeIdAccessor]);
|
|
302
|
+
scope.H === runId ? ~id in scope ? --scope[~id] || fn(scope) : scope[~id] = defaultPending : queueRender(scope, fn, id, 0, scope[scopeIdAccessor]);
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
305
|
function _for_closure(ownerLoopNodeAccessor, fn) {
|
|
@@ -1117,16 +1117,16 @@ function byFirstArg(name) {
|
|
|
1117
1117
|
//#region src/dom/queue.ts
|
|
1118
1118
|
function queueRender(scope, signal, signalKey, value, scopeKey = scope.L) {
|
|
1119
1119
|
let render;
|
|
1120
|
-
if (signalKey >= 0 && (render = scope[signalKey
|
|
1120
|
+
if (signalKey >= 0 && (render = scope[signalKey])) {
|
|
1121
1121
|
if (render.d = value, render.e === runId || catchEnabled && render.f) return;
|
|
1122
1122
|
render.e = runId;
|
|
1123
1123
|
} else render = {
|
|
1124
|
-
a: scopeKey *
|
|
1124
|
+
a: scopeKey * 1e6 + signalKey,
|
|
1125
1125
|
b: scope,
|
|
1126
1126
|
c: signal,
|
|
1127
1127
|
d: value,
|
|
1128
1128
|
e: runId
|
|
1129
|
-
}, signalKey >= 0 && (scope[signalKey
|
|
1129
|
+
}, signalKey >= 0 && (scope[signalKey] = render);
|
|
1130
1130
|
queuePendingRender(render);
|
|
1131
1131
|
}
|
|
1132
1132
|
function queuePendingRender(render) {
|
package/dist/dom.mjs
CHANGED
|
@@ -49,7 +49,7 @@ let empty = [], rest = Symbol(), toDelimitedString = function toDelimitedString(
|
|
|
49
49
|
};
|
|
50
50
|
}, _for_of = /* @__PURE__ */ loop(([all, by = bySecondArg], cb) => {
|
|
51
51
|
typeof by == "string" ? forOf(all, (item, i) => cb(item[by], [item, i])) : forOf(all, (item, i) => cb(by(item, i), [item, i]));
|
|
52
|
-
}), _for_in = /* @__PURE__ */ loop(([obj, by = byFirstArg], cb) => forIn(obj, (key, value) => cb(by(key, value), [key, value]))), _for_to = /* @__PURE__ */ loop(([to, from, step, by = byFirstArg], cb) => forTo(to, from, step, (v) => cb(by(v), [v]))), _for_until = /* @__PURE__ */ loop(([until, from, step, by = byFirstArg], cb) => forUntil(until, from, step, (v) => cb(by(v), [v]))), rendering, runId = 2, caughtError = /* @__PURE__ */ new WeakSet(), placeholderShown = /* @__PURE__ */ new WeakSet(), pendingEffects = [], pendingRenders = [],
|
|
52
|
+
}), _for_in = /* @__PURE__ */ loop(([obj, by = byFirstArg], cb) => forIn(obj, (key, value) => cb(by(key, value), [key, value]))), _for_to = /* @__PURE__ */ loop(([to, from, step, by = byFirstArg], cb) => forTo(to, from, step, (v) => cb(by(v), [v]))), _for_until = /* @__PURE__ */ loop(([until, from, step, by = byFirstArg], cb) => forUntil(until, from, step, (v) => cb(by(v), [v]))), rendering, runId = 2, caughtError = /* @__PURE__ */ new WeakSet(), placeholderShown = /* @__PURE__ */ new WeakSet(), pendingEffects = [], pendingRenders = [], runEffects = ((effects) => {
|
|
53
53
|
for (let i = 0; i < effects.length;) effects[i++](effects[i++]);
|
|
54
54
|
}), runRender = (render) => render.c(render.b, render.d), catchEnabled, classIdToBranch = /* @__PURE__ */ new Map(), scopesByRender = /* @__PURE__ */ new WeakMap(), getRenderScopes = ($global) => {
|
|
55
55
|
let render = self[$global.runtimeId]?.[$global.renderId], scopes = render && scopesByRender.get(render);
|
|
@@ -298,7 +298,7 @@ function _const(valueAccessor, fn) {
|
|
|
298
298
|
}
|
|
299
299
|
function _or(id, fn, defaultPending = 1, scopeIdAccessor = "L") {
|
|
300
300
|
return scopeIdAccessor !== "L" && (scopeIdAccessor = decodeAccessor(scopeIdAccessor)), (scope) => {
|
|
301
|
-
scope.H === runId ? id in scope ? --scope[id] || fn(scope) : scope[id] = defaultPending : queueRender(scope, fn, id, 0, scope[scopeIdAccessor]);
|
|
301
|
+
scope.H === runId ? ~id in scope ? --scope[~id] || fn(scope) : scope[~id] = defaultPending : queueRender(scope, fn, id, 0, scope[scopeIdAccessor]);
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
304
|
function _for_closure(ownerLoopNodeAccessor, fn) {
|
|
@@ -1116,16 +1116,16 @@ function byFirstArg(name) {
|
|
|
1116
1116
|
//#region src/dom/queue.ts
|
|
1117
1117
|
function queueRender(scope, signal, signalKey, value, scopeKey = scope.L) {
|
|
1118
1118
|
let render;
|
|
1119
|
-
if (signalKey >= 0 && (render = scope[signalKey
|
|
1119
|
+
if (signalKey >= 0 && (render = scope[signalKey])) {
|
|
1120
1120
|
if (render.d = value, render.e === runId || catchEnabled && render.f) return;
|
|
1121
1121
|
render.e = runId;
|
|
1122
1122
|
} else render = {
|
|
1123
|
-
a: scopeKey *
|
|
1123
|
+
a: scopeKey * 1e6 + signalKey,
|
|
1124
1124
|
b: scope,
|
|
1125
1125
|
c: signal,
|
|
1126
1126
|
d: value,
|
|
1127
1127
|
e: runId
|
|
1128
|
-
}, signalKey >= 0 && (scope[signalKey
|
|
1128
|
+
}, signalKey >= 0 && (scope[signalKey] = render);
|
|
1129
1129
|
queuePendingRender(render);
|
|
1130
1130
|
}
|
|
1131
1131
|
function queuePendingRender(render) {
|