marko 6.0.81 → 6.0.82
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/html.js +6 -7
- package/dist/debug/html.mjs +6 -7
- package/dist/html.js +1 -1
- package/dist/html.mjs +1 -1
- package/dist/translator/index.js +2 -2
- package/package.json +1 -1
package/dist/debug/html.js
CHANGED
@@ -243,8 +243,7 @@ function forStepBy(by, index) {
|
|
243
243
|
// src/html/inlined-runtimes.ts
|
244
244
|
var WALKER_RUNTIME_CODE = true ? (
|
245
245
|
/* js */
|
246
|
-
`((runtimeId) => (
|
247
|
-
(self[runtimeId] = (
|
246
|
+
`((runtimeId) => (self[runtimeId] || (self[runtimeId] = (
|
248
247
|
renderId,
|
249
248
|
prefix = runtimeId + renderId,
|
250
249
|
prefixLen = prefix.length,
|
@@ -278,13 +277,13 @@ var WALKER_RUNTIME_CODE = true ? (
|
|
278
277
|
}
|
279
278
|
}
|
280
279
|
},
|
281
|
-
})
|
282
|
-
|
283
|
-
))
|
284
|
-
) : `(e=>(self[e]=(l,d=e+l,f=d.length,o={},n=[],s=document,t=s.createTreeWalker(s,129))=>s=self[e][l]={i:d,d:s,l:o,v:n,x(){},w(e,l,x){for(;e=t.nextNode();)s.x(l=(l=e.data)&&!l.indexOf(d)&&(o[x=l.slice(f+1)]=e,l[f]),x,e),l>"#"&&n.push(e)}},self[e]))`;
|
280
|
+
})
|
281
|
+
)))`
|
282
|
+
) : `(e=>(self[e]||(self[e]=(o,l=e+o,d=l.length,n={},f=[],s=document,a=s.createTreeWalker(s,129))=>s=self[e][o]={i:l,d:s,l:n,v:f,x(){},w(e,o,i){for(;e=a.nextNode();)s.x(o=(o=e.data)&&!o.indexOf(l)&&(n[i=o.slice(d+1)]=e,o[d]),i,e),o>"#"&&f.push(e)}})))`;
|
285
283
|
var REORDER_RUNTIME_CODE = true ? (
|
286
284
|
/* js */
|
287
285
|
`((runtime) => {
|
286
|
+
if (runtime.j) return;
|
288
287
|
let onNextSibling,
|
289
288
|
placeholder,
|
290
289
|
nextSibling,
|
@@ -338,7 +337,7 @@ runtime.x = (op, id, node, start, placeholderCallback) => {
|
|
338
337
|
}
|
339
338
|
};
|
340
339
|
})`
|
341
|
-
) : `(e=>{let i,l,
|
340
|
+
) : `(e=>{if(e.j)return;let i,o,l,r={},t=(e,i)=>{e.replaceWith(...i.childNodes),i.remove()};e.d.head.append(e.d.querySelector("style["+e.i+"]")||""),e.j={},e.x=(c,d,n,a,g)=>{"#"==c?(r[d]=o).i++:n==l&&i(),"T"==n.tagName&&(d=n.getAttribute(e.i))&&((a=e.l["^"+d])&&(r[d]={i:1,c(i=e.l[d]||n){for(;(l=i.previousSibling||a).remove(),a!=l;);t(i,n)}}),l=n.nextSibling,o=r[d],i=()=>{a||t(e.l[d],n),--o.i||o.c()},(c=e.j[d])&&(g=o.c,o.c=()=>g()+c(e.r)))}})`;
|
342
341
|
|
343
342
|
// src/html/serializer.ts
|
344
343
|
var kTouchedIterator = Symbol();
|
package/dist/debug/html.mjs
CHANGED
@@ -154,8 +154,7 @@ function forStepBy(by, index) {
|
|
154
154
|
// src/html/inlined-runtimes.ts
|
155
155
|
var WALKER_RUNTIME_CODE = true ? (
|
156
156
|
/* js */
|
157
|
-
`((runtimeId) => (
|
158
|
-
(self[runtimeId] = (
|
157
|
+
`((runtimeId) => (self[runtimeId] || (self[runtimeId] = (
|
159
158
|
renderId,
|
160
159
|
prefix = runtimeId + renderId,
|
161
160
|
prefixLen = prefix.length,
|
@@ -189,13 +188,13 @@ var WALKER_RUNTIME_CODE = true ? (
|
|
189
188
|
}
|
190
189
|
}
|
191
190
|
},
|
192
|
-
})
|
193
|
-
|
194
|
-
))
|
195
|
-
) : `(e=>(self[e]=(l,d=e+l,f=d.length,o={},n=[],s=document,t=s.createTreeWalker(s,129))=>s=self[e][l]={i:d,d:s,l:o,v:n,x(){},w(e,l,x){for(;e=t.nextNode();)s.x(l=(l=e.data)&&!l.indexOf(d)&&(o[x=l.slice(f+1)]=e,l[f]),x,e),l>"#"&&n.push(e)}},self[e]))`;
|
191
|
+
})
|
192
|
+
)))`
|
193
|
+
) : `(e=>(self[e]||(self[e]=(o,l=e+o,d=l.length,n={},f=[],s=document,a=s.createTreeWalker(s,129))=>s=self[e][o]={i:l,d:s,l:n,v:f,x(){},w(e,o,i){for(;e=a.nextNode();)s.x(o=(o=e.data)&&!o.indexOf(l)&&(n[i=o.slice(d+1)]=e,o[d]),i,e),o>"#"&&f.push(e)}})))`;
|
196
194
|
var REORDER_RUNTIME_CODE = true ? (
|
197
195
|
/* js */
|
198
196
|
`((runtime) => {
|
197
|
+
if (runtime.j) return;
|
199
198
|
let onNextSibling,
|
200
199
|
placeholder,
|
201
200
|
nextSibling,
|
@@ -249,7 +248,7 @@ runtime.x = (op, id, node, start, placeholderCallback) => {
|
|
249
248
|
}
|
250
249
|
};
|
251
250
|
})`
|
252
|
-
) : `(e=>{let i,l,
|
251
|
+
) : `(e=>{if(e.j)return;let i,o,l,r={},t=(e,i)=>{e.replaceWith(...i.childNodes),i.remove()};e.d.head.append(e.d.querySelector("style["+e.i+"]")||""),e.j={},e.x=(c,d,n,a,g)=>{"#"==c?(r[d]=o).i++:n==l&&i(),"T"==n.tagName&&(d=n.getAttribute(e.i))&&((a=e.l["^"+d])&&(r[d]={i:1,c(i=e.l[d]||n){for(;(l=i.previousSibling||a).remove(),a!=l;);t(i,n)}}),l=n.nextSibling,o=r[d],i=()=>{a||t(e.l[d],n),--o.i||o.c()},(c=e.j[d])&&(g=o.c,o.c=()=>g()+c(e.r)))}})`;
|
253
252
|
|
254
253
|
// src/html/serializer.ts
|
255
254
|
var kTouchedIterator = Symbol();
|
package/dist/html.js
CHANGED
@@ -190,7 +190,7 @@ function forStepBy(by, index) {
|
|
190
190
|
}
|
191
191
|
|
192
192
|
// src/html/inlined-runtimes.ts
|
193
|
-
var WALKER_RUNTIME_CODE = '(e=>(self[e]=(l
|
193
|
+
var WALKER_RUNTIME_CODE = '(e=>(self[e]||(self[e]=(o,l=e+o,d=l.length,n={},f=[],s=document,a=s.createTreeWalker(s,129))=>s=self[e][o]={i:l,d:s,l:n,v:f,x(){},w(e,o,i){for(;e=a.nextNode();)s.x(o=(o=e.data)&&!o.indexOf(l)&&(n[i=o.slice(d+1)]=e,o[d]),i,e),o>"#"&&f.push(e)}})))', REORDER_RUNTIME_CODE = '(e=>{if(e.j)return;let i,o,l,r={},t=(e,i)=>{e.replaceWith(...i.childNodes),i.remove()};e.d.head.append(e.d.querySelector("style["+e.i+"]")||""),e.j={},e.x=(c,d,n,a,g)=>{"#"==c?(r[d]=o).i++:n==l&&i(),"T"==n.tagName&&(d=n.getAttribute(e.i))&&((a=e.l["^"+d])&&(r[d]={i:1,c(i=e.l[d]||n){for(;(l=i.previousSibling||a).remove(),a!=l;);t(i,n)}}),l=n.nextSibling,o=r[d],i=()=>{a||t(e.l[d],n),--o.i||o.c()},(c=e.j[d])&&(g=o.c,o.c=()=>g()+c(e.r)))}})';
|
194
194
|
|
195
195
|
// src/html/serializer.ts
|
196
196
|
var kTouchedIterator = Symbol(), { hasOwnProperty } = {}, Generator = (function* () {
|
package/dist/html.mjs
CHANGED
@@ -104,7 +104,7 @@ function forStepBy(by, index) {
|
|
104
104
|
}
|
105
105
|
|
106
106
|
// src/html/inlined-runtimes.ts
|
107
|
-
var WALKER_RUNTIME_CODE = '(e=>(self[e]=(l
|
107
|
+
var WALKER_RUNTIME_CODE = '(e=>(self[e]||(self[e]=(o,l=e+o,d=l.length,n={},f=[],s=document,a=s.createTreeWalker(s,129))=>s=self[e][o]={i:l,d:s,l:n,v:f,x(){},w(e,o,i){for(;e=a.nextNode();)s.x(o=(o=e.data)&&!o.indexOf(l)&&(n[i=o.slice(d+1)]=e,o[d]),i,e),o>"#"&&f.push(e)}})))', REORDER_RUNTIME_CODE = '(e=>{if(e.j)return;let i,o,l,r={},t=(e,i)=>{e.replaceWith(...i.childNodes),i.remove()};e.d.head.append(e.d.querySelector("style["+e.i+"]")||""),e.j={},e.x=(c,d,n,a,g)=>{"#"==c?(r[d]=o).i++:n==l&&i(),"T"==n.tagName&&(d=n.getAttribute(e.i))&&((a=e.l["^"+d])&&(r[d]={i:1,c(i=e.l[d]||n){for(;(l=i.previousSibling||a).remove(),a!=l;);t(i,n)}}),l=n.nextSibling,o=r[d],i=()=>{a||t(e.l[d],n),--o.i||o.c()},(c=e.j[d])&&(g=o.c,o.c=()=>g()+c(e.r)))}})';
|
108
108
|
|
109
109
|
// src/html/serializer.ts
|
110
110
|
var kTouchedIterator = Symbol(), { hasOwnProperty } = {}, Generator = (function* () {
|
package/dist/translator/index.js
CHANGED
@@ -4405,7 +4405,7 @@ var html_default = {
|
|
4405
4405
|
traverseReplace(program.node, "body", replaceNode);
|
4406
4406
|
const renderContent = [];
|
4407
4407
|
const section = getSection(program);
|
4408
|
-
let dynamicSerializeReason = isReasonDynamic(section.serializeReason);
|
4408
|
+
let dynamicSerializeReason = !!section.paramReasonGroups || isReasonDynamic(section.serializeReason);
|
4409
4409
|
if (!dynamicSerializeReason) {
|
4410
4410
|
for (const reason of section.serializeReasons.values()) {
|
4411
4411
|
if (isReasonDynamic(reason)) {
|
@@ -7991,7 +7991,7 @@ function buildContent(body) {
|
|
7991
7991
|
if (bodySection) {
|
7992
7992
|
if (isOutputHTML()) {
|
7993
7993
|
const serialized = getSectionRegisterReasons(bodySection);
|
7994
|
-
let dynamicSerializeReason = isReasonDynamic(bodySection.serializeReason);
|
7994
|
+
let dynamicSerializeReason = !!bodySection.paramReasonGroups || isReasonDynamic(bodySection.serializeReason);
|
7995
7995
|
if (!dynamicSerializeReason) {
|
7996
7996
|
for (const reason of bodySection.serializeReasons.values()) {
|
7997
7997
|
if (isReasonDynamic(reason)) {
|