marko 6.0.85 → 6.0.87
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 +5 -5
- package/dist/debug/html.mjs +4 -4
- package/dist/html/writer.d.ts +1 -1
- package/dist/html.d.ts +1 -1
- package/dist/html.js +4 -4
- package/dist/html.mjs +3 -3
- package/dist/translator/core/index.d.ts +1 -0
- package/dist/translator/core/textarea.d.ts +3 -0
- package/dist/translator/index.d.ts +1 -0
- package/dist/translator/index.js +881 -762
- package/dist/translator/util/serialize-guard.d.ts +4 -3
- package/dist/translator/visitors/program/index.d.ts +4 -0
- package/dist/translator/visitors/program/pre-analyze.d.ts +3 -0
- package/dist/translator/visitors/tag/index.d.ts +0 -3
- package/dist/translator/visitors/tag/native-tag.d.ts +0 -3
- package/package.json +1 -1
package/dist/debug/html.js
CHANGED
|
@@ -52,7 +52,6 @@ __export(html_exports, {
|
|
|
52
52
|
_for_of: () => _for_of,
|
|
53
53
|
_for_to: () => _for_to,
|
|
54
54
|
_for_until: () => _for_until,
|
|
55
|
-
_get_serialize_reason: () => _get_serialize_reason,
|
|
56
55
|
_hoist: () => _hoist,
|
|
57
56
|
_html: () => _html,
|
|
58
57
|
_id: () => _id,
|
|
@@ -62,6 +61,7 @@ __export(html_exports, {
|
|
|
62
61
|
_resume_branch: () => _resume_branch,
|
|
63
62
|
_scope: () => writeScope,
|
|
64
63
|
_scope_id: () => _scope_id,
|
|
64
|
+
_scope_reason: () => _scope_reason,
|
|
65
65
|
_scope_with_id: () => _scope_with_id,
|
|
66
66
|
_script: () => _script,
|
|
67
67
|
_sep: () => _sep,
|
|
@@ -284,8 +284,8 @@ var WALKER_RUNTIME_CODE = true ? (
|
|
|
284
284
|
}
|
|
285
285
|
},
|
|
286
286
|
})
|
|
287
|
-
)))`
|
|
288
|
-
) : `(e=>(self[e]||(self[e]=(
|
|
287
|
+
), self[runtimeId]))`
|
|
288
|
+
) : `(e=>(self[e]||(self[e]=(l,s=e+l,f=s.length,o={},d=[],n=document,t=n.createTreeWalker(n,129))=>n=self[e][l]={i:s,d:n,l:o,v:d,x(){},w(e,l,a){for(;e=t.nextNode();)n.x(l=(l=e.data)&&!l.indexOf(s)&&(o[a=l.slice(f+1)]=e,l[f]),a,e),l>"#"&&d.push(e)}}),self[e]))`;
|
|
289
289
|
var REORDER_RUNTIME_CODE = true ? (
|
|
290
290
|
/* js */
|
|
291
291
|
`((runtime) => {
|
|
@@ -1804,7 +1804,7 @@ function getScopeById(scopeId) {
|
|
|
1804
1804
|
function _set_serialize_reason(reason) {
|
|
1805
1805
|
$chunk.boundary.state.serializeReason = reason;
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1807
|
+
function _scope_reason() {
|
|
1808
1808
|
const reason = $chunk.boundary.state.serializeReason;
|
|
1809
1809
|
$chunk.boundary.state.serializeReason = void 0;
|
|
1810
1810
|
return reason;
|
|
@@ -3480,7 +3480,6 @@ function NOOP3() {
|
|
|
3480
3480
|
_for_of,
|
|
3481
3481
|
_for_to,
|
|
3482
3482
|
_for_until,
|
|
3483
|
-
_get_serialize_reason,
|
|
3484
3483
|
_hoist,
|
|
3485
3484
|
_html,
|
|
3486
3485
|
_id,
|
|
@@ -3490,6 +3489,7 @@ function NOOP3() {
|
|
|
3490
3489
|
_resume_branch,
|
|
3491
3490
|
_scope,
|
|
3492
3491
|
_scope_id,
|
|
3492
|
+
_scope_reason,
|
|
3493
3493
|
_scope_with_id,
|
|
3494
3494
|
_script,
|
|
3495
3495
|
_sep,
|
package/dist/debug/html.mjs
CHANGED
|
@@ -195,8 +195,8 @@ var WALKER_RUNTIME_CODE = true ? (
|
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
})
|
|
198
|
-
)))`
|
|
199
|
-
) : `(e=>(self[e]||(self[e]=(
|
|
198
|
+
), self[runtimeId]))`
|
|
199
|
+
) : `(e=>(self[e]||(self[e]=(l,s=e+l,f=s.length,o={},d=[],n=document,t=n.createTreeWalker(n,129))=>n=self[e][l]={i:s,d:n,l:o,v:d,x(){},w(e,l,a){for(;e=t.nextNode();)n.x(l=(l=e.data)&&!l.indexOf(s)&&(o[a=l.slice(f+1)]=e,l[f]),a,e),l>"#"&&d.push(e)}}),self[e]))`;
|
|
200
200
|
var REORDER_RUNTIME_CODE = true ? (
|
|
201
201
|
/* js */
|
|
202
202
|
`((runtime) => {
|
|
@@ -1715,7 +1715,7 @@ function getScopeById(scopeId) {
|
|
|
1715
1715
|
function _set_serialize_reason(reason) {
|
|
1716
1716
|
$chunk.boundary.state.serializeReason = reason;
|
|
1717
1717
|
}
|
|
1718
|
-
function
|
|
1718
|
+
function _scope_reason() {
|
|
1719
1719
|
const reason = $chunk.boundary.state.serializeReason;
|
|
1720
1720
|
$chunk.boundary.state.serializeReason = void 0;
|
|
1721
1721
|
return reason;
|
|
@@ -3390,7 +3390,6 @@ export {
|
|
|
3390
3390
|
_for_of,
|
|
3391
3391
|
_for_to,
|
|
3392
3392
|
_for_until,
|
|
3393
|
-
_get_serialize_reason,
|
|
3394
3393
|
_hoist,
|
|
3395
3394
|
_html,
|
|
3396
3395
|
_id,
|
|
@@ -3400,6 +3399,7 @@ export {
|
|
|
3400
3399
|
_resume_branch,
|
|
3401
3400
|
writeScope as _scope,
|
|
3402
3401
|
_scope_id,
|
|
3402
|
+
_scope_reason,
|
|
3403
3403
|
_scope_with_id,
|
|
3404
3404
|
_script,
|
|
3405
3405
|
_sep,
|
package/dist/html/writer.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare function _scope_id(): number;
|
|
|
28
28
|
export declare function _peek_scope_id(): number;
|
|
29
29
|
export declare function getScopeById(scopeId: number | undefined): PartialScope | undefined;
|
|
30
30
|
export declare function _set_serialize_reason(reason: undefined | 0 | 1): void;
|
|
31
|
-
export declare function
|
|
31
|
+
export declare function _scope_reason(): 0 | 1 | undefined;
|
|
32
32
|
export declare function _serialize_if(condition: undefined | 1 | Record<string, 1>, key: string): 1 | undefined;
|
|
33
33
|
export declare function _serialize_guard(condition: undefined | 1 | Record<string, 1>, key: string): 0 | 1;
|
|
34
34
|
export declare function _el_resume(scopeId: number, accessor: Accessor, shouldResume?: 0 | 1): string;
|
package/dist/html.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export { _escape, _escape_script, _escape_style, _escape_textarea_value, _unesca
|
|
|
5
5
|
export { _content, _content_resume, _dynamic_tag } from "./html/dynamic-tag";
|
|
6
6
|
export { forIn, forInBy, forOf, forOfBy, forStepBy, forTo, forUntil, } from "./html/for";
|
|
7
7
|
export { _template } from "./html/template";
|
|
8
|
-
export { _attr_content, _await, _el, _el_resume, _existing_scope, _for_in, _for_of, _for_to, _for_until,
|
|
8
|
+
export { _attr_content, _await, _el, _el_resume, _existing_scope, _for_in, _for_of, _for_to, _for_until, _hoist, _html, _id, _if, _peek_scope_id, _resume, _resume_branch, _scope, _scope_id, _scope_reason, _scope_with_id, _script, _sep, _serialize_guard, _serialize_if, _set_serialize_reason, _subscribe, _trailers, _try, _var, $global, } from "./html/writer";
|
package/dist/html.js
CHANGED
|
@@ -49,7 +49,6 @@ __export(html_exports, {
|
|
|
49
49
|
_for_of: () => _for_of,
|
|
50
50
|
_for_to: () => _for_to,
|
|
51
51
|
_for_until: () => _for_until,
|
|
52
|
-
_get_serialize_reason: () => _get_serialize_reason,
|
|
53
52
|
_hoist: () => _hoist,
|
|
54
53
|
_html: () => _html,
|
|
55
54
|
_id: () => _id,
|
|
@@ -59,6 +58,7 @@ __export(html_exports, {
|
|
|
59
58
|
_resume_branch: () => _resume_branch,
|
|
60
59
|
_scope: () => writeScope,
|
|
61
60
|
_scope_id: () => _scope_id,
|
|
61
|
+
_scope_reason: () => _scope_reason,
|
|
62
62
|
_scope_with_id: () => _scope_with_id,
|
|
63
63
|
_script: () => _script,
|
|
64
64
|
_sep: () => _sep,
|
|
@@ -195,7 +195,7 @@ function forStepBy(by, index) {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
// src/html/inlined-runtimes.ts
|
|
198
|
-
var WALKER_RUNTIME_CODE = '(e=>(self[e]||(self[e]=(
|
|
198
|
+
var WALKER_RUNTIME_CODE = '(e=>(self[e]||(self[e]=(l,s=e+l,f=s.length,o={},d=[],n=document,t=n.createTreeWalker(n,129))=>n=self[e][l]={i:s,d:n,l:o,v:d,x(){},w(e,l,a){for(;e=t.nextNode();)n.x(l=(l=e.data)&&!l.indexOf(s)&&(o[a=l.slice(f+1)]=e,l[f]),a,e),l>"#"&&d.push(e)}}),self[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)))}})';
|
|
199
199
|
|
|
200
200
|
// src/html/serializer.ts
|
|
201
201
|
var kTouchedIterator = Symbol(), { hasOwnProperty } = {}, Generator = (function* () {
|
|
@@ -1173,7 +1173,7 @@ function getScopeById(scopeId) {
|
|
|
1173
1173
|
function _set_serialize_reason(reason) {
|
|
1174
1174
|
$chunk.boundary.state.serializeReason = reason;
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1176
|
+
function _scope_reason() {
|
|
1177
1177
|
let reason = $chunk.boundary.state.serializeReason;
|
|
1178
1178
|
return $chunk.boundary.state.serializeReason = void 0, reason;
|
|
1179
1179
|
}
|
|
@@ -2275,7 +2275,6 @@ function NOOP3() {
|
|
|
2275
2275
|
_for_of,
|
|
2276
2276
|
_for_to,
|
|
2277
2277
|
_for_until,
|
|
2278
|
-
_get_serialize_reason,
|
|
2279
2278
|
_hoist,
|
|
2280
2279
|
_html,
|
|
2281
2280
|
_id,
|
|
@@ -2285,6 +2284,7 @@ function NOOP3() {
|
|
|
2285
2284
|
_resume_branch,
|
|
2286
2285
|
_scope,
|
|
2287
2286
|
_scope_id,
|
|
2287
|
+
_scope_reason,
|
|
2288
2288
|
_scope_with_id,
|
|
2289
2289
|
_script,
|
|
2290
2290
|
_sep,
|
package/dist/html.mjs
CHANGED
|
@@ -109,7 +109,7 @@ function forStepBy(by, index) {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
// src/html/inlined-runtimes.ts
|
|
112
|
-
var WALKER_RUNTIME_CODE = '(e=>(self[e]||(self[e]=(
|
|
112
|
+
var WALKER_RUNTIME_CODE = '(e=>(self[e]||(self[e]=(l,s=e+l,f=s.length,o={},d=[],n=document,t=n.createTreeWalker(n,129))=>n=self[e][l]={i:s,d:n,l:o,v:d,x(){},w(e,l,a){for(;e=t.nextNode();)n.x(l=(l=e.data)&&!l.indexOf(s)&&(o[a=l.slice(f+1)]=e,l[f]),a,e),l>"#"&&d.push(e)}}),self[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)))}})';
|
|
113
113
|
|
|
114
114
|
// src/html/serializer.ts
|
|
115
115
|
var kTouchedIterator = Symbol(), { hasOwnProperty } = {}, Generator = (function* () {
|
|
@@ -1087,7 +1087,7 @@ function getScopeById(scopeId) {
|
|
|
1087
1087
|
function _set_serialize_reason(reason) {
|
|
1088
1088
|
$chunk.boundary.state.serializeReason = reason;
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function _scope_reason() {
|
|
1091
1091
|
let reason = $chunk.boundary.state.serializeReason;
|
|
1092
1092
|
return $chunk.boundary.state.serializeReason = void 0, reason;
|
|
1093
1093
|
}
|
|
@@ -2188,7 +2188,6 @@ export {
|
|
|
2188
2188
|
_for_of,
|
|
2189
2189
|
_for_to,
|
|
2190
2190
|
_for_until,
|
|
2191
|
-
_get_serialize_reason,
|
|
2192
2191
|
_hoist,
|
|
2193
2192
|
_html,
|
|
2194
2193
|
_id,
|
|
@@ -2198,6 +2197,7 @@ export {
|
|
|
2198
2197
|
_resume_branch,
|
|
2199
2198
|
writeScope as _scope,
|
|
2200
2199
|
_scope_id,
|
|
2200
|
+
_scope_reason,
|
|
2201
2201
|
_scope_with_id,
|
|
2202
2202
|
_script,
|
|
2203
2203
|
_sep,
|
|
@@ -161,6 +161,7 @@ export declare const taglibs: (string | {
|
|
|
161
161
|
}[];
|
|
162
162
|
};
|
|
163
163
|
"<style>": import("@marko/compiler/babel-utils").Tag;
|
|
164
|
+
"<textarea>": import("@marko/compiler/babel-utils").Tag;
|
|
164
165
|
"<try>": import("@marko/compiler/babel-utils").Tag;
|
|
165
166
|
})[][];
|
|
166
167
|
export declare function getRuntimeEntryFiles(output: Config["output"], optimize: boolean): string[];
|