marko 6.4.9 → 6.4.11
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/cheatsheet.md +1 -1
- package/dist/common/accessor.d.ts +0 -3
- package/dist/common/accessor.debug.d.ts +0 -3
- package/dist/common/helpers.d.ts +1 -1
- package/dist/common/types.d.ts +4 -3
- package/dist/debug/dom/catch.feat.js +2 -3
- package/dist/debug/dom/catch.feat.mjs +2 -3
- package/dist/debug/dom/controllable-input.feat.js +2 -3
- package/dist/debug/dom/controllable-input.feat.mjs +2 -3
- package/dist/debug/dom/controllable-open.feat.js +2 -3
- package/dist/debug/dom/controllable-open.feat.mjs +2 -3
- package/dist/debug/dom/controllable-select.feat.js +2 -3
- package/dist/debug/dom/controllable-select.feat.mjs +2 -3
- package/dist/debug/dom/controllable-textarea.feat.js +2 -3
- package/dist/debug/dom/controllable-textarea.feat.mjs +2 -3
- package/dist/debug/dom/controllable.feat.js +2 -3
- package/dist/debug/dom/controllable.feat.mjs +2 -3
- package/dist/debug/dom/dynamic-tag-script.feat.js +2 -3
- package/dist/debug/dom/dynamic-tag-script.feat.mjs +2 -3
- package/dist/debug/dom/dynamic-tag-var.feat.js +2 -3
- package/dist/debug/dom/dynamic-tag-var.feat.mjs +2 -3
- package/dist/debug/dom/lazy.feat.js +2 -3
- package/dist/debug/dom/lazy.feat.mjs +2 -3
- package/dist/debug/dom/placeholder.feat.js +2 -3
- package/dist/debug/dom/placeholder.feat.mjs +2 -3
- package/dist/debug/{dom-VKjkbuuo.mjs → dom-DjUZd-9y.mjs} +221 -261
- package/dist/debug/{dom-QkYva5Qx.js → dom-mQ5mPBTF.js} +226 -260
- package/dist/debug/dom.js +10 -18
- package/dist/debug/dom.mjs +10 -19
- package/dist/debug/html.js +87 -125
- package/dist/debug/html.mjs +87 -125
- package/dist/dom/abort-signal.d.ts +1 -1
- package/dist/dom/catch.feat.js +4 -5
- package/dist/dom/catch.feat.mjs +2 -3
- package/dist/dom/control-flow.d.ts +4 -4
- package/dist/dom/controllable-input.feat.js +1 -2
- package/dist/dom/controllable-input.feat.mjs +1 -2
- package/dist/dom/controllable-open.feat.js +2 -3
- package/dist/dom/controllable-open.feat.mjs +2 -3
- package/dist/dom/controllable-select.feat.js +2 -3
- package/dist/dom/controllable-select.feat.mjs +2 -3
- package/dist/dom/controllable-textarea.feat.js +2 -3
- package/dist/dom/controllable-textarea.feat.mjs +2 -3
- package/dist/dom/controllable.feat.js +1 -2
- package/dist/dom/controllable.feat.mjs +1 -2
- package/dist/dom/dynamic-tag-script.feat.js +3 -4
- package/dist/dom/dynamic-tag-script.feat.mjs +2 -3
- package/dist/dom/dynamic-tag-var.feat.js +3 -4
- package/dist/dom/dynamic-tag-var.feat.mjs +1 -2
- package/dist/dom/lazy.feat.js +2 -3
- package/dist/dom/lazy.feat.mjs +2 -3
- package/dist/dom/load.d.ts +3 -4
- package/dist/dom/placeholder.feat.js +2 -3
- package/dist/dom/placeholder.feat.mjs +2 -3
- package/dist/dom/queue.d.ts +1 -2
- package/dist/dom/signals.d.ts +5 -7
- package/dist/{dom-IujlfJ6b.js → dom-B8j2453O.js} +158 -190
- package/dist/{dom-DtKQb840.mjs → dom-HEWdZCCb.mjs} +134 -172
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +22 -30
- package/dist/dom.mjs +10 -19
- package/dist/html/assets.d.ts +3 -4
- package/dist/html/for.d.ts +0 -1
- package/dist/html/writer.d.ts +2 -2
- package/dist/html.d.ts +1 -1
- package/dist/html.js +99 -131
- package/dist/html.mjs +99 -132
- package/dist/translator/index.d.ts +0 -1
- package/dist/translator/index.js +4771 -4760
- package/dist/translator/interop/out-global.d.ts +5 -0
- package/dist/translator/util/assert.d.ts +13 -2
- package/dist/translator/util/entry-builder.d.ts +1 -1
- package/dist/translator/util/finalize-references.d.ts +2 -1
- package/dist/translator/util/for-selector.d.ts +1 -1
- package/dist/translator/util/known-tag.d.ts +10 -1
- package/dist/translator/util/references.d.ts +11 -5
- package/dist/translator/util/runtime.d.ts +1 -0
- package/dist/translator/util/sections.d.ts +6 -1
- package/dist/translator/util/signals.d.ts +2 -1
- package/dist/translator/util/sources.d.ts +1 -1
- package/dist/translator/util/style-interpolation.d.ts +1 -1
- package/dist/translator/util/tag-name-type.d.ts +4 -0
- package/dist/translator/util/visitors.d.ts +1 -1
- package/dist/translator/util/write-guard.d.ts +2 -0
- package/dist/translator/visitors/program/index.d.ts +0 -4
- package/dist/translator/visitors/referenced-identifier.d.ts +3 -1
- package/package.json +6 -6
- package/tags/lifecycle.d.marko +2 -0
- package/dist/common/constants/keyed-scopes-prop.d.ts +0 -4
- package/dist/common/constants/keyed-scopes-prop.debug.d.ts +0 -4
package/cheatsheet.md
CHANGED
|
@@ -165,7 +165,7 @@ Imperative libs (charts, maps) needing mount/update/destroy: use `<lifecycle>`,
|
|
|
165
165
|
<canvas/canvas/>
|
|
166
166
|
<lifecycle
|
|
167
167
|
onMount() { return { chart: new Chart(canvas(), data) } }
|
|
168
|
-
onUpdate() { this.chart.setData(data) } //
|
|
168
|
+
onUpdate() { this.chart.setData(data) } // runs when anything its attributes read changes
|
|
169
169
|
onDestroy() { this.chart.destroy() }
|
|
170
170
|
/>
|
|
171
171
|
```
|
|
@@ -2,7 +2,6 @@ import * as AccessorPrefix from "./constants/accessor-prefix";
|
|
|
2
2
|
import * as AccessorProp from "./constants/accessor-prop";
|
|
3
3
|
import * as ClosureScopesProp from "./constants/closure-scopes-prop";
|
|
4
4
|
import * as ClosureSignalProp from "./constants/closure-signal-prop";
|
|
5
|
-
import * as KeyedScopesProp from "./constants/keyed-scopes-prop";
|
|
6
5
|
import * as PendingRenderProp from "./constants/pending-render-prop";
|
|
7
6
|
import * as RendererProp from "./constants/renderer-prop";
|
|
8
7
|
type AccessorPrefix = AccessorPrefix.Value;
|
|
@@ -17,5 +16,3 @@ type ClosureSignalProp = ClosureSignalProp.Value;
|
|
|
17
16
|
export { ClosureSignalProp };
|
|
18
17
|
type ClosureScopesProp = ClosureScopesProp.Value;
|
|
19
18
|
export { ClosureScopesProp };
|
|
20
|
-
type KeyedScopesProp = KeyedScopesProp.Value;
|
|
21
|
-
export { KeyedScopesProp };
|
|
@@ -2,7 +2,6 @@ import * as AccessorPrefix from "./constants/accessor-prefix.debug";
|
|
|
2
2
|
import * as AccessorProp from "./constants/accessor-prop.debug";
|
|
3
3
|
import * as ClosureScopesProp from "./constants/closure-scopes-prop.debug";
|
|
4
4
|
import * as ClosureSignalProp from "./constants/closure-signal-prop.debug";
|
|
5
|
-
import * as KeyedScopesProp from "./constants/keyed-scopes-prop.debug";
|
|
6
5
|
import * as PendingRenderProp from "./constants/pending-render-prop.debug";
|
|
7
6
|
import * as RendererProp from "./constants/renderer-prop.debug";
|
|
8
7
|
type AccessorPrefix = AccessorPrefix.Value;
|
|
@@ -17,5 +16,3 @@ type ClosureSignalProp = ClosureSignalProp.Value;
|
|
|
17
16
|
export { ClosureSignalProp };
|
|
18
17
|
type ClosureScopesProp = ClosureScopesProp.Value;
|
|
19
18
|
export { ClosureScopesProp };
|
|
20
|
-
type KeyedScopesProp = KeyedScopesProp.Value;
|
|
21
|
-
export { KeyedScopesProp };
|
package/dist/common/helpers.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare function _call<T>(fn: (v: T) => unknown, v: T): T;
|
|
|
5
5
|
export declare function stringifyClassEntry(name: string, value: unknown): string;
|
|
6
6
|
export declare function stringifyStyleEntry(name: string, value: unknown): string;
|
|
7
7
|
export declare function escapeStyleValue(str: string): string;
|
|
8
|
-
export declare
|
|
8
|
+
export declare function toDelimitedString(val: unknown, delimiter: string, stringify: (n: string, v: unknown) => string | undefined): string;
|
|
9
9
|
export declare function isEventHandler(name: string): name is `on${string}`;
|
|
10
10
|
export declare function getEventType(name: `on${string}`): string;
|
|
11
11
|
export declare function hasKeys(obj: object): boolean;
|
package/dist/common/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PendingRender } from "../dom/queue";
|
|
2
|
-
import type { Renderer
|
|
2
|
+
import type { Renderer } from "../dom/renderer";
|
|
3
3
|
import type { SignalFn } from "../dom/signals";
|
|
4
4
|
import type { AccessorProp } from "./accessor.debug";
|
|
5
5
|
import * as ControlledType from "./constants/controlled-type";
|
|
@@ -15,7 +15,7 @@ export interface BranchScope extends Scope {
|
|
|
15
15
|
[AccessorProp.ParentBranch]: BranchScope | undefined;
|
|
16
16
|
[AccessorProp.AbortScopes]: Set<Scope> | undefined;
|
|
17
17
|
[AccessorProp.BranchScopes]: Set<BranchScope> | undefined;
|
|
18
|
-
[AccessorProp.Renderer]:
|
|
18
|
+
[AccessorProp.Renderer]: Renderer | string;
|
|
19
19
|
[AccessorProp.AwaitCounter]: AwaitCounter | undefined;
|
|
20
20
|
[AccessorProp.PendingEffectScopes]: Scope[] | null | undefined;
|
|
21
21
|
[AccessorProp.PlaceholderBranch]: BranchScope | undefined | 0;
|
|
@@ -40,6 +40,7 @@ export interface Scope {
|
|
|
40
40
|
[AccessorProp.Subscriptions]: Set<Scope>[] | undefined;
|
|
41
41
|
[x: `___${string}`]: never;
|
|
42
42
|
[x: string | number]: any;
|
|
43
|
+
[x: symbol]: unknown;
|
|
43
44
|
}
|
|
44
45
|
type ResumeSymbol = ResumeSymbol.Value;
|
|
45
46
|
export { ResumeSymbol };
|
|
@@ -48,7 +49,7 @@ export interface AwaitCounter {
|
|
|
48
49
|
i: number;
|
|
49
50
|
c: () => void | 1;
|
|
50
51
|
}
|
|
51
|
-
export { AccessorPrefix, AccessorProp, ClosureScopesProp, ClosureSignalProp,
|
|
52
|
+
export { AccessorPrefix, AccessorProp, ClosureScopesProp, ClosureSignalProp, PendingRenderProp, RendererProp, } from "./accessor.debug";
|
|
52
53
|
type NodeType = NodeType.Value;
|
|
53
54
|
export { NodeType };
|
|
54
55
|
type WalkCode = WalkCode.Value;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
3
|
-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
|
+
// src/dom/catch.feat.ts
|
|
4
4
|
const deferToPendingTry = (fn, scope, branch) => {
|
|
5
5
|
while (branch) {
|
|
6
6
|
if (branch["#AwaitCounter"]?.i) return (scope[require_control_flow.PendingEffects] ||= ((branch[require_control_flow.PendingEffectScopes] ||= (branch["#AwaitCounter"].m && ((complete) => branch["#AwaitCounter"].c = (_) => complete() || require_control_flow.queueAsyncRender(branch, require_control_flow.queueEffect, require_control_flow.runPendingEffects))(branch["#AwaitCounter"].c), [])).push(scope), /* @__PURE__ */ new Set())).add(fn);
|
|
@@ -33,4 +33,3 @@ require_control_flow.installCatch((effects) => {
|
|
|
33
33
|
require_control_flow.renderCatch(render[require_control_flow.Scope], error);
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Hn as PendingEffectScopes, In as ClosestBranch, Mn as Pending, Nn as Scope, Un as PendingEffects, Vn as ParentBranch, Wn as PendingRenders, ln as queueAsyncRender, sn as installCatch, un as queueEffect, v as renderCatch, y as runPendingEffects } from "../dom-DjUZd-9y.mjs";
|
|
2
|
+
// src/dom/catch.feat.ts
|
|
3
3
|
const deferToPendingTry = (fn, scope, branch) => {
|
|
4
4
|
while (branch) {
|
|
5
5
|
if (branch["#AwaitCounter"]?.i) return (scope[PendingEffects] ||= ((branch[PendingEffectScopes] ||= (branch["#AwaitCounter"].m && ((complete) => branch["#AwaitCounter"].c = (_) => complete() || queueAsyncRender(branch, queueEffect, runPendingEffects))(branch["#AwaitCounter"].c), [])).push(scope), /* @__PURE__ */ new Set())).add(fn);
|
|
@@ -32,4 +32,3 @@ installCatch((effects) => {
|
|
|
32
32
|
renderCatch(render[Scope], error);
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
//#endregion
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
3
|
-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
|
+
// src/dom/controllable-input.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[0] = require_control_flow._attr_input_checked_script;
|
|
5
5
|
require_control_flow.controllableScripts[1] = require_control_flow._attr_input_checkedValue_script;
|
|
6
6
|
require_control_flow.controllableScripts[2] = require_control_flow._attr_input_value_script;
|
|
7
|
-
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { D as _attr_input_checkedValue_script, H as controllableScripts, P as _attr_input_value_script, k as _attr_input_checked_script } from "../dom-
|
|
2
|
-
|
|
1
|
+
import { D as _attr_input_checkedValue_script, H as controllableScripts, P as _attr_input_value_script, k as _attr_input_checked_script } from "../dom-DjUZd-9y.mjs";
|
|
2
|
+
// src/dom/controllable-input.feat.ts
|
|
3
3
|
controllableScripts[0] = _attr_input_checked_script;
|
|
4
4
|
controllableScripts[1] = _attr_input_checkedValue_script;
|
|
5
5
|
controllableScripts[2] = _attr_input_value_script;
|
|
6
|
-
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
3
|
-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
|
+
// src/dom/controllable-open.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[4] = require_control_flow._attr_details_or_dialog_open_script;
|
|
5
|
-
//#endregion
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { C as _attr_details_or_dialog_open_script, H as controllableScripts } from "../dom-
|
|
2
|
-
|
|
1
|
+
import { C as _attr_details_or_dialog_open_script, H as controllableScripts } from "../dom-DjUZd-9y.mjs";
|
|
2
|
+
// src/dom/controllable-open.feat.ts
|
|
3
3
|
controllableScripts[4] = _attr_details_or_dialog_open_script;
|
|
4
|
-
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
3
|
-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
|
+
// src/dom/controllable-select.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[3] = require_control_flow._attr_select_value_script;
|
|
5
|
-
//#endregion
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { H as controllableScripts, L as _attr_select_value_script } from "../dom-
|
|
2
|
-
|
|
1
|
+
import { H as controllableScripts, L as _attr_select_value_script } from "../dom-DjUZd-9y.mjs";
|
|
2
|
+
// src/dom/controllable-select.feat.ts
|
|
3
3
|
controllableScripts[3] = _attr_select_value_script;
|
|
4
|
-
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
3
|
-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
|
+
// src/dom/controllable-textarea.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[2] = require_control_flow._attr_input_value_script;
|
|
5
|
-
//#endregion
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { H as controllableScripts, P as _attr_input_value_script } from "../dom-
|
|
2
|
-
|
|
1
|
+
import { H as controllableScripts, P as _attr_input_value_script } from "../dom-DjUZd-9y.mjs";
|
|
2
|
+
// src/dom/controllable-textarea.feat.ts
|
|
3
3
|
controllableScripts[2] = _attr_input_value_script;
|
|
4
|
-
//#endregion
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
3
|
require("./controllable-input.feat.js");
|
|
4
4
|
require("./controllable-open.feat.js");
|
|
5
5
|
require("./controllable-select.feat.js");
|
|
6
|
-
|
|
6
|
+
// src/dom/controllable.feat.ts
|
|
7
7
|
require_control_flow.controllableSpreadHelpers.INPUT = require_control_flow._controllable_input;
|
|
8
8
|
require_control_flow.controllableSpreadHelpers.TEXTAREA = require_control_flow._controllable_textarea;
|
|
9
9
|
require_control_flow.controllableSpreadHelpers.SELECT = require_control_flow._controllable_select;
|
|
10
10
|
require_control_flow.controllableSpreadHelpers.DETAILS = require_control_flow.controllableSpreadHelpers.DIALOG = require_control_flow._controllable_open;
|
|
11
|
-
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { B as _controllable_select, R as _controllable_input, U as controllableSpreadHelpers, V as _controllable_textarea, z as _controllable_open } from "../dom-
|
|
1
|
+
import { B as _controllable_select, R as _controllable_input, U as controllableSpreadHelpers, V as _controllable_textarea, z as _controllable_open } from "../dom-DjUZd-9y.mjs";
|
|
2
2
|
import "./controllable-input.feat.mjs";
|
|
3
3
|
import "./controllable-open.feat.mjs";
|
|
4
4
|
import "./controllable-select.feat.mjs";
|
|
5
|
-
|
|
5
|
+
// src/dom/controllable.feat.ts
|
|
6
6
|
controllableSpreadHelpers.INPUT = _controllable_input;
|
|
7
7
|
controllableSpreadHelpers.TEXTAREA = _controllable_textarea;
|
|
8
8
|
controllableSpreadHelpers.SELECT = _controllable_select;
|
|
9
9
|
controllableSpreadHelpers.DETAILS = controllableSpreadHelpers.DIALOG = _controllable_open;
|
|
10
|
-
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
3
|
-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
|
+
// src/dom/dynamic-tag-script.feat.ts
|
|
4
4
|
require_control_flow._resumed[require_control_flow.DYNAMIC_TAG_SCRIPT_REGISTER_ID] = require_control_flow.withBranches(require_control_flow.dynamicTagScript);
|
|
5
|
-
//#endregion
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { $t as DYNAMIC_TAG_SCRIPT_REGISTER_ID,
|
|
2
|
-
|
|
1
|
+
import { $t as DYNAMIC_TAG_SCRIPT_REGISTER_ID, h as dynamicTagScript, wn as withBranches, xt as _resumed } from "../dom-DjUZd-9y.mjs";
|
|
2
|
+
// src/dom/dynamic-tag-script.feat.ts
|
|
3
3
|
_resumed[DYNAMIC_TAG_SCRIPT_REGISTER_ID] = withBranches(dynamicTagScript);
|
|
4
|
-
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
3
|
-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
|
+
// src/dom/dynamic-tag-var.feat.ts
|
|
4
4
|
require_control_flow.installBranchRenders();
|
|
5
5
|
require_control_flow.installDynamicTagVar((scope, branch, scopeKey, renderer) => {
|
|
6
6
|
branch[require_control_flow.BranchRenders] = require_control_flow.createBranchRenders(scope, scopeKey);
|
|
@@ -10,4 +10,3 @@ require_control_flow.installDynamicTagVar((scope, branch, scopeKey, renderer) =>
|
|
|
10
10
|
if (!(renderer["setup"] || renderer["params"])?.["returns"]) throw new Error(`A dynamic tag with a [tag variable](https://markojs.com/docs/reference/language#tag-variables) rendered \`${renderer["id"]}\`, which does not [\`<return>\`](https://markojs.com/docs/reference/core-tag#return) a value. Add a \`<return>\` to it, or remove the variable.`);
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Fn as BranchRenders, Kn as StartNode, Mt as _el_read, an as createBranchRenders, g as installDynamicTagVar, on as installBranchRenders, qn as TagVariable } from "../dom-DjUZd-9y.mjs";
|
|
2
|
+
// src/dom/dynamic-tag-var.feat.ts
|
|
3
3
|
installBranchRenders();
|
|
4
4
|
installDynamicTagVar((scope, branch, scopeKey, renderer) => {
|
|
5
5
|
branch[BranchRenders] = createBranchRenders(scope, scopeKey);
|
|
@@ -9,4 +9,3 @@ installDynamicTagVar((scope, branch, scopeKey, renderer) => {
|
|
|
9
9
|
if (!(renderer["setup"] || renderer["params"])?.["returns"]) throw new Error(`A dynamic tag with a [tag variable](https://markojs.com/docs/reference/language#tag-variables) rendered \`${renderer["id"]}\`, which does not [\`<return>\`](https://markojs.com/docs/reference/core-tag#return) a value. Add a \`<return>\` to it, or remove the variable.`);
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
//#endregion
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
3
|
-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
|
+
// src/dom/placeholder.feat.ts
|
|
4
4
|
require_control_flow._resumed[require_control_flow.PLACEHOLDER_DISMISS_REGISTER_ID] = (tryBranch) => {
|
|
5
5
|
if (tryBranch["#PlaceholderBranch"]) {
|
|
6
6
|
require_control_flow.destroyBranch(tryBranch[require_control_flow.PlaceholderBranch]);
|
|
7
7
|
tryBranch[require_control_flow.PlaceholderBranch] = 0;
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
|
-
//#endregion
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Gn as PlaceholderBranch, Yt as destroyBranch, en as PLACEHOLDER_DISMISS_REGISTER_ID, xt as _resumed } from "../dom-DjUZd-9y.mjs";
|
|
2
|
+
// src/dom/placeholder.feat.ts
|
|
3
3
|
_resumed[PLACEHOLDER_DISMISS_REGISTER_ID] = (tryBranch) => {
|
|
4
4
|
if (tryBranch["#PlaceholderBranch"]) {
|
|
5
5
|
destroyBranch(tryBranch[PlaceholderBranch]);
|
|
6
6
|
tryBranch[PlaceholderBranch] = 0;
|
|
7
7
|
}
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|