marko 6.0.54 → 6.0.56
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 +9 -0
- package/dist/debug/html.mjs +9 -0
- package/dist/html/compat.d.ts +1 -0
- package/dist/html.js +8 -0
- package/dist/html.mjs +8 -0
- package/dist/translator/index.js +2040 -1824
- package/dist/translator/util/get-parent-tag.d.ts +1 -0
- package/dist/translator/util/get-root.d.ts +2 -2
- package/dist/translator/util/references.d.ts +6 -1
- package/dist/translator/visitors/function.d.ts +1 -0
- package/package.json +1 -1
package/dist/debug/html.js
CHANGED
@@ -3307,6 +3307,15 @@ var compat = {
|
|
3307
3307
|
return compatRegistered;
|
3308
3308
|
};
|
3309
3309
|
},
|
3310
|
+
flushScript($global2) {
|
3311
|
+
const boundary = new Boundary(this.ensureState($global2));
|
3312
|
+
if (!boundary.done) {
|
3313
|
+
throw new Error(
|
3314
|
+
"Cannot serialize promise across tags/class compat layer."
|
3315
|
+
);
|
3316
|
+
}
|
3317
|
+
return new Chunk(boundary, null, null).flushScript().scripts;
|
3318
|
+
},
|
3310
3319
|
render(renderer, willRerender, classAPIOut, component, input, completeChunks) {
|
3311
3320
|
const boundary = new Boundary(this.ensureState(classAPIOut.global));
|
3312
3321
|
let head = new Chunk(
|
package/dist/debug/html.mjs
CHANGED
@@ -3223,6 +3223,15 @@ var compat = {
|
|
3223
3223
|
return compatRegistered;
|
3224
3224
|
};
|
3225
3225
|
},
|
3226
|
+
flushScript($global2) {
|
3227
|
+
const boundary = new Boundary(this.ensureState($global2));
|
3228
|
+
if (!boundary.done) {
|
3229
|
+
throw new Error(
|
3230
|
+
"Cannot serialize promise across tags/class compat layer."
|
3231
|
+
);
|
3232
|
+
}
|
3233
|
+
return new Chunk(boundary, null, null).flushScript().scripts;
|
3234
|
+
},
|
3226
3235
|
render(renderer, willRerender, classAPIOut, component, input, completeChunks) {
|
3227
3236
|
const boundary = new Boundary(this.ensureState(classAPIOut.global));
|
3228
3237
|
let head = new Chunk(
|
package/dist/html/compat.d.ts
CHANGED
@@ -15,6 +15,7 @@ export declare const compat: {
|
|
15
15
|
patchDynamicTag: typeof patchDynamicTag;
|
16
16
|
writeSetScopeForComponent(branchId: number, m5c: string): void;
|
17
17
|
toJSON(state: State): (this: WeakKey) => [registryId: string, scopeId: unknown] | undefined;
|
18
|
+
flushScript($global: any): string;
|
18
19
|
render(renderer: ServerRenderer, willRerender: boolean, classAPIOut: any, component: any, input: any, completeChunks: Chunk[]): void;
|
19
20
|
registerRenderer(renderer: any, id: string): any;
|
20
21
|
registerRenderBody(fn: any): void;
|
package/dist/html.js
CHANGED
@@ -2131,6 +2131,14 @@ var K_TAGS_API_STATE = Symbol(), COMPAT_REGISTRY = /* @__PURE__ */ new WeakMap()
|
|
2131
2131
|
return compatRegistered;
|
2132
2132
|
};
|
2133
2133
|
},
|
2134
|
+
flushScript($global2) {
|
2135
|
+
let boundary = new Boundary(this.ensureState($global2));
|
2136
|
+
if (!boundary.done)
|
2137
|
+
throw new Error(
|
2138
|
+
"Cannot serialize promise across tags/class compat layer."
|
2139
|
+
);
|
2140
|
+
return new Chunk(boundary, null, null).flushScript().scripts;
|
2141
|
+
},
|
2134
2142
|
render(renderer, willRerender, classAPIOut, component, input, completeChunks) {
|
2135
2143
|
let boundary = new Boundary(this.ensureState(classAPIOut.global)), head = new Chunk(
|
2136
2144
|
boundary,
|
package/dist/html.mjs
CHANGED
@@ -2050,6 +2050,14 @@ var K_TAGS_API_STATE = Symbol(), COMPAT_REGISTRY = /* @__PURE__ */ new WeakMap()
|
|
2050
2050
|
return compatRegistered;
|
2051
2051
|
};
|
2052
2052
|
},
|
2053
|
+
flushScript($global2) {
|
2054
|
+
let boundary = new Boundary(this.ensureState($global2));
|
2055
|
+
if (!boundary.done)
|
2056
|
+
throw new Error(
|
2057
|
+
"Cannot serialize promise across tags/class compat layer."
|
2058
|
+
);
|
2059
|
+
return new Chunk(boundary, null, null).flushScript().scripts;
|
2060
|
+
},
|
2053
2061
|
render(renderer, willRerender, classAPIOut, component, input, completeChunks) {
|
2054
2062
|
let boundary = new Boundary(this.ensureState(classAPIOut.global)), head = new Chunk(
|
2055
2063
|
boundary,
|