marko 6.0.0-next.3.67 → 6.0.0-next.3.68
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 +0 -7
- package/dist/debug/dom.mjs +0 -7
- package/dist/debug/html.js +5 -9
- package/dist/debug/html.mjs +5 -9
- package/dist/dom.js +2 -6
- package/dist/dom.mjs +2 -6
- package/dist/html.js +3 -2
- package/dist/html.mjs +3 -2
- package/package.json +1 -1
package/dist/debug/dom.js
CHANGED
@@ -1654,7 +1654,6 @@ function awaitTag(nodeAccessor, renderer) {
|
|
1654
1654
|
})
|
1655
1655
|
);
|
1656
1656
|
if (tryWithPlaceholder) {
|
1657
|
-
tryWithPlaceholder;
|
1658
1657
|
if (!--tryWithPlaceholder.___pendingAsyncCount) {
|
1659
1658
|
const placeholderBranch = tryWithPlaceholder["#PlaceholderBranch" /* PlaceholderBranch */];
|
1660
1659
|
tryWithPlaceholder["#PlaceholderBranch" /* PlaceholderBranch */] = void 0;
|
@@ -1665,12 +1664,6 @@ function awaitTag(nodeAccessor, renderer) {
|
|
1665
1664
|
placeholderBranch.___startNode
|
1666
1665
|
);
|
1667
1666
|
removeAndDestroyBranch(placeholderBranch);
|
1668
|
-
} else {
|
1669
|
-
insertBranchBefore(
|
1670
|
-
tryWithPlaceholder,
|
1671
|
-
referenceNode.parentNode,
|
1672
|
-
referenceNode
|
1673
|
-
);
|
1674
1667
|
}
|
1675
1668
|
if (tryWithPlaceholder.___effects) {
|
1676
1669
|
runEffects(tryWithPlaceholder.___effects, true);
|
package/dist/debug/dom.mjs
CHANGED
@@ -1566,7 +1566,6 @@ function awaitTag(nodeAccessor, renderer) {
|
|
1566
1566
|
})
|
1567
1567
|
);
|
1568
1568
|
if (tryWithPlaceholder) {
|
1569
|
-
tryWithPlaceholder;
|
1570
1569
|
if (!--tryWithPlaceholder.___pendingAsyncCount) {
|
1571
1570
|
const placeholderBranch = tryWithPlaceholder["#PlaceholderBranch" /* PlaceholderBranch */];
|
1572
1571
|
tryWithPlaceholder["#PlaceholderBranch" /* PlaceholderBranch */] = void 0;
|
@@ -1577,12 +1576,6 @@ function awaitTag(nodeAccessor, renderer) {
|
|
1577
1576
|
placeholderBranch.___startNode
|
1578
1577
|
);
|
1579
1578
|
removeAndDestroyBranch(placeholderBranch);
|
1580
|
-
} else {
|
1581
|
-
insertBranchBefore(
|
1582
|
-
tryWithPlaceholder,
|
1583
|
-
referenceNode.parentNode,
|
1584
|
-
referenceNode
|
1585
|
-
);
|
1586
1579
|
}
|
1587
1580
|
if (tryWithPlaceholder.___effects) {
|
1588
1581
|
runEffects(tryWithPlaceholder.___effects, true);
|
package/dist/debug/html.js
CHANGED
@@ -279,16 +279,12 @@ runtime.x = (op, id, node, start, placeholderCallback) => {
|
|
279
279
|
placeholders[id] = {
|
280
280
|
i: 1,
|
281
281
|
c(end = runtime.l[id] || node) {
|
282
|
-
while (end.parentNode !== start.parentNode) {
|
283
|
-
end = end.parentNode;
|
284
|
-
}
|
285
|
-
|
286
282
|
for (
|
287
283
|
;
|
288
|
-
end
|
289
|
-
|
284
|
+
(nextSibling = end.previousSibling || start).remove(),
|
285
|
+
start != nextSibling;
|
290
286
|
);
|
291
|
-
replace(
|
287
|
+
replace(end, node);
|
292
288
|
},
|
293
289
|
};
|
294
290
|
}
|
@@ -310,7 +306,7 @@ runtime.x = (op, id, node, start, placeholderCallback) => {
|
|
310
306
|
}
|
311
307
|
};
|
312
308
|
})`
|
313
|
-
) : `(e=>{let i,t,r
|
309
|
+
) : `(e=>{let i,l,t,r={},c=(e,i)=>{e.replaceWith(...i.childNodes),i.remove()};e.d.head.append(e.d.querySelector("style["+e.i+"]")||""),e.j={},e.x=(d,o,n,a,g)=>{"#"==d?(r[o]=l).i++:n==t&&i(),"T"==n.tagName&&(o=n.getAttribute(e.i))&&((a=e.l["^"+o])&&(r[o]={i:1,c(i=e.l[o]||n){for(;(t=i.previousSibling||a).remove(),a!=t;);c(i,n)}}),t=n.nextSibling,l=r[o],i=()=>{a||c(e.l[o],n),--l.i||l.c()},(d=e.j[o])&&(g=l.c,l.c=()=>g()+d(e.r)))}})`;
|
314
310
|
|
315
311
|
// src/html/serializer.ts
|
316
312
|
var { hasOwnProperty } = {};
|
@@ -2341,8 +2337,8 @@ function prepareChunk(chunk) {
|
|
2341
2337
|
let cur = reorderedChunk;
|
2342
2338
|
reorderedChunk.reorderId = null;
|
2343
2339
|
for (; ; ) {
|
2344
|
-
const { next } = cur;
|
2345
2340
|
cur.flushPlaceholder();
|
2341
|
+
const { next } = cur;
|
2346
2342
|
cur.consumed = true;
|
2347
2343
|
reorderHTML += cur.html;
|
2348
2344
|
reorderEffects = concatEffects(reorderEffects, cur.effects);
|
package/dist/debug/html.mjs
CHANGED
@@ -195,16 +195,12 @@ runtime.x = (op, id, node, start, placeholderCallback) => {
|
|
195
195
|
placeholders[id] = {
|
196
196
|
i: 1,
|
197
197
|
c(end = runtime.l[id] || node) {
|
198
|
-
while (end.parentNode !== start.parentNode) {
|
199
|
-
end = end.parentNode;
|
200
|
-
}
|
201
|
-
|
202
198
|
for (
|
203
199
|
;
|
204
|
-
end
|
205
|
-
|
200
|
+
(nextSibling = end.previousSibling || start).remove(),
|
201
|
+
start != nextSibling;
|
206
202
|
);
|
207
|
-
replace(
|
203
|
+
replace(end, node);
|
208
204
|
},
|
209
205
|
};
|
210
206
|
}
|
@@ -226,7 +222,7 @@ runtime.x = (op, id, node, start, placeholderCallback) => {
|
|
226
222
|
}
|
227
223
|
};
|
228
224
|
})`
|
229
|
-
) : `(e=>{let i,t,r
|
225
|
+
) : `(e=>{let i,l,t,r={},c=(e,i)=>{e.replaceWith(...i.childNodes),i.remove()};e.d.head.append(e.d.querySelector("style["+e.i+"]")||""),e.j={},e.x=(d,o,n,a,g)=>{"#"==d?(r[o]=l).i++:n==t&&i(),"T"==n.tagName&&(o=n.getAttribute(e.i))&&((a=e.l["^"+o])&&(r[o]={i:1,c(i=e.l[o]||n){for(;(t=i.previousSibling||a).remove(),a!=t;);c(i,n)}}),t=n.nextSibling,l=r[o],i=()=>{a||c(e.l[o],n),--l.i||l.c()},(d=e.j[o])&&(g=l.c,l.c=()=>g()+d(e.r)))}})`;
|
230
226
|
|
231
227
|
// src/html/serializer.ts
|
232
228
|
var { hasOwnProperty } = {};
|
@@ -2257,8 +2253,8 @@ function prepareChunk(chunk) {
|
|
2257
2253
|
let cur = reorderedChunk;
|
2258
2254
|
reorderedChunk.reorderId = null;
|
2259
2255
|
for (; ; ) {
|
2260
|
-
const { next } = cur;
|
2261
2256
|
cur.flushPlaceholder();
|
2257
|
+
const { next } = cur;
|
2262
2258
|
cur.consumed = true;
|
2263
2259
|
reorderHTML += cur.html;
|
2264
2260
|
reorderEffects = concatEffects(reorderEffects, cur.effects);
|
package/dist/dom.js
CHANGED
@@ -1112,15 +1112,11 @@ function awaitTag(nodeAccessor, renderer) {
|
|
1112
1112
|
})
|
1113
1113
|
), tryWithPlaceholder && !--tryWithPlaceholder.q)) {
|
1114
1114
|
let placeholderBranch = tryWithPlaceholder.c;
|
1115
|
-
tryWithPlaceholder.c = void 0, placeholderBranch
|
1115
|
+
tryWithPlaceholder.c = void 0, placeholderBranch && (insertBranchBefore(
|
1116
1116
|
tryWithPlaceholder,
|
1117
1117
|
placeholderBranch.h.parentNode,
|
1118
1118
|
placeholderBranch.h
|
1119
|
-
), removeAndDestroyBranch(placeholderBranch))
|
1120
|
-
tryWithPlaceholder,
|
1121
|
-
referenceNode.parentNode,
|
1122
|
-
referenceNode
|
1123
|
-
), tryWithPlaceholder.H && runEffects(tryWithPlaceholder.H, !0);
|
1119
|
+
), removeAndDestroyBranch(placeholderBranch)), tryWithPlaceholder.H && runEffects(tryWithPlaceholder.H, !0);
|
1124
1120
|
}
|
1125
1121
|
}).catch((error) => {
|
1126
1122
|
renderCatch(scope, error, !0);
|
package/dist/dom.mjs
CHANGED
@@ -1027,15 +1027,11 @@ function awaitTag(nodeAccessor, renderer) {
|
|
1027
1027
|
})
|
1028
1028
|
), tryWithPlaceholder && !--tryWithPlaceholder.q)) {
|
1029
1029
|
let placeholderBranch = tryWithPlaceholder.c;
|
1030
|
-
tryWithPlaceholder.c = void 0, placeholderBranch
|
1030
|
+
tryWithPlaceholder.c = void 0, placeholderBranch && (insertBranchBefore(
|
1031
1031
|
tryWithPlaceholder,
|
1032
1032
|
placeholderBranch.h.parentNode,
|
1033
1033
|
placeholderBranch.h
|
1034
|
-
), removeAndDestroyBranch(placeholderBranch))
|
1035
|
-
tryWithPlaceholder,
|
1036
|
-
referenceNode.parentNode,
|
1037
|
-
referenceNode
|
1038
|
-
), tryWithPlaceholder.H && runEffects(tryWithPlaceholder.H, !0);
|
1034
|
+
), removeAndDestroyBranch(placeholderBranch)), tryWithPlaceholder.H && runEffects(tryWithPlaceholder.H, !0);
|
1039
1035
|
}
|
1040
1036
|
}).catch((error) => {
|
1041
1037
|
renderCatch(scope, error, !0);
|
package/dist/html.js
CHANGED
@@ -178,7 +178,7 @@ function forTo(to, from, step, cb) {
|
|
178
178
|
}
|
179
179
|
|
180
180
|
// src/html/inlined-runtimes.ts
|
181
|
-
var WALKER_RUNTIME_CODE = '(e=>self[e]=self[e]||(l=>{let t,d={},s=[],f=document,i=f.createTreeWalker(f,129),n=self[e][l]={i:l=e+l,d:f,l:d,v:s,x(){},w(e){for(;e=i.nextNode();)this.x(n=(n=e.data)&&!n.indexOf(l)&&(d[t=n.slice(x+1)]=e,n[x]),t,e),n>"#"&&s.push(e)}},x=l.length}))', REORDER_RUNTIME_CODE = '(e=>{let i,t,r
|
181
|
+
var WALKER_RUNTIME_CODE = '(e=>self[e]=self[e]||(l=>{let t,d={},s=[],f=document,i=f.createTreeWalker(f,129),n=self[e][l]={i:l=e+l,d:f,l:d,v:s,x(){},w(e){for(;e=i.nextNode();)this.x(n=(n=e.data)&&!n.indexOf(l)&&(d[t=n.slice(x+1)]=e,n[x]),t,e),n>"#"&&s.push(e)}},x=l.length}))', REORDER_RUNTIME_CODE = '(e=>{let i,l,t,r={},c=(e,i)=>{e.replaceWith(...i.childNodes),i.remove()};e.d.head.append(e.d.querySelector("style["+e.i+"]")||""),e.j={},e.x=(d,o,n,a,g)=>{"#"==d?(r[o]=l).i++:n==t&&i(),"T"==n.tagName&&(o=n.getAttribute(e.i))&&((a=e.l["^"+o])&&(r[o]={i:1,c(i=e.l[o]||n){for(;(t=i.previousSibling||a).remove(),a!=t;);c(i,n)}}),t=n.nextSibling,l=r[o],i=()=>{a||c(e.l[o],n),--l.i||l.c()},(d=e.j[o])&&(g=l.c,l.c=()=>g()+d(e.r)))}})';
|
182
182
|
|
183
183
|
// src/html/serializer.ts
|
184
184
|
var { hasOwnProperty } = {}, Generator = function* () {
|
@@ -1519,8 +1519,9 @@ function prepareChunk(chunk) {
|
|
1519
1519
|
for (let reorderedChunk of state.writeReorders) {
|
1520
1520
|
let { reorderId } = reorderedChunk, reorderHTML = "", reorderEffects = "", reorderScripts = "", cur = reorderedChunk;
|
1521
1521
|
for (reorderedChunk.reorderId = null; ; ) {
|
1522
|
+
cur.flushPlaceholder();
|
1522
1523
|
let { next } = cur;
|
1523
|
-
if (cur.
|
1524
|
+
if (cur.consumed = !0, reorderHTML += cur.html, reorderEffects = concatEffects(reorderEffects, cur.effects), reorderScripts = concatScripts(reorderScripts, cur.scripts), cur.async && (reorderHTML += state.mark(
|
1524
1525
|
"#" /* ReorderMarker */,
|
1525
1526
|
cur.reorderId = state.nextReorderId()
|
1526
1527
|
), cur.html = cur.effects = cur.scripts = "", cur.next = null), next)
|
package/dist/html.mjs
CHANGED
@@ -97,7 +97,7 @@ function forTo(to, from, step, cb) {
|
|
97
97
|
}
|
98
98
|
|
99
99
|
// src/html/inlined-runtimes.ts
|
100
|
-
var WALKER_RUNTIME_CODE = '(e=>self[e]=self[e]||(l=>{let t,d={},s=[],f=document,i=f.createTreeWalker(f,129),n=self[e][l]={i:l=e+l,d:f,l:d,v:s,x(){},w(e){for(;e=i.nextNode();)this.x(n=(n=e.data)&&!n.indexOf(l)&&(d[t=n.slice(x+1)]=e,n[x]),t,e),n>"#"&&s.push(e)}},x=l.length}))', REORDER_RUNTIME_CODE = '(e=>{let i,t,r
|
100
|
+
var WALKER_RUNTIME_CODE = '(e=>self[e]=self[e]||(l=>{let t,d={},s=[],f=document,i=f.createTreeWalker(f,129),n=self[e][l]={i:l=e+l,d:f,l:d,v:s,x(){},w(e){for(;e=i.nextNode();)this.x(n=(n=e.data)&&!n.indexOf(l)&&(d[t=n.slice(x+1)]=e,n[x]),t,e),n>"#"&&s.push(e)}},x=l.length}))', REORDER_RUNTIME_CODE = '(e=>{let i,l,t,r={},c=(e,i)=>{e.replaceWith(...i.childNodes),i.remove()};e.d.head.append(e.d.querySelector("style["+e.i+"]")||""),e.j={},e.x=(d,o,n,a,g)=>{"#"==d?(r[o]=l).i++:n==t&&i(),"T"==n.tagName&&(o=n.getAttribute(e.i))&&((a=e.l["^"+o])&&(r[o]={i:1,c(i=e.l[o]||n){for(;(t=i.previousSibling||a).remove(),a!=t;);c(i,n)}}),t=n.nextSibling,l=r[o],i=()=>{a||c(e.l[o],n),--l.i||l.c()},(d=e.j[o])&&(g=l.c,l.c=()=>g()+d(e.r)))}})';
|
101
101
|
|
102
102
|
// src/html/serializer.ts
|
103
103
|
var { hasOwnProperty } = {}, Generator = function* () {
|
@@ -1438,8 +1438,9 @@ function prepareChunk(chunk) {
|
|
1438
1438
|
for (let reorderedChunk of state.writeReorders) {
|
1439
1439
|
let { reorderId } = reorderedChunk, reorderHTML = "", reorderEffects = "", reorderScripts = "", cur = reorderedChunk;
|
1440
1440
|
for (reorderedChunk.reorderId = null; ; ) {
|
1441
|
+
cur.flushPlaceholder();
|
1441
1442
|
let { next } = cur;
|
1442
|
-
if (cur.
|
1443
|
+
if (cur.consumed = !0, reorderHTML += cur.html, reorderEffects = concatEffects(reorderEffects, cur.effects), reorderScripts = concatScripts(reorderScripts, cur.scripts), cur.async && (reorderHTML += state.mark(
|
1443
1444
|
"#" /* ReorderMarker */,
|
1444
1445
|
cur.reorderId = state.nextReorderId()
|
1445
1446
|
), cur.html = cur.effects = cur.scripts = "", cur.next = null), next)
|