marko 6.4.8 → 6.4.10
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/constants/closure-signal-prop.d.ts +1 -1
- package/dist/common/constants/closure-signal-prop.debug.d.ts +1 -1
- 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-CFCBDift.mjs → dom-C1V5vpFs.mjs} +60 -98
- package/dist/debug/{dom-D8znnhpf.js → dom-DNB5yq3U.js} +59 -109
- package/dist/debug/dom.js +9 -14
- package/dist/debug/dom.mjs +9 -14
- package/dist/debug/html.js +39 -51
- package/dist/debug/html.mjs +37 -49
- package/dist/dom/catch.feat.js +4 -5
- package/dist/dom/catch.feat.mjs +2 -3
- package/dist/dom/compat.d.ts +1 -1
- package/dist/dom/control-flow.d.ts +1 -1
- 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/dom.d.ts +2 -3
- 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/placeholder.feat.js +4 -5
- package/dist/dom/placeholder.feat.mjs +2 -3
- package/dist/dom/resume.d.ts +1 -1
- package/dist/dom/scope.d.ts +1 -1
- package/dist/dom/signals.d.ts +1 -1
- package/dist/{dom-Bpkm72vV.js → dom-C2-Flitp.js} +122 -166
- package/dist/{dom-CVAevsbz.mjs → dom-DsHYWMCR.mjs} +59 -94
- package/dist/dom.js +36 -40
- package/dist/dom.mjs +9 -14
- package/dist/html/serializer.d.ts +1 -1
- package/dist/html/writer.d.ts +3 -3
- package/dist/html.d.ts +1 -1
- package/dist/html.js +60 -74
- package/dist/html.mjs +60 -75
- package/dist/translator/core/show.d.ts +3 -4
- package/dist/translator/index.js +1193 -1295
- package/dist/translator/util/assert.d.ts +9 -2
- package/dist/translator/util/bindings.d.ts +6 -5
- package/dist/translator/util/branch-tag.d.ts +1 -1
- package/dist/translator/util/constants/slot-kind.d.ts +1 -1
- package/dist/translator/util/known-tag.d.ts +3 -0
- package/dist/translator/util/module-registrations.d.ts +1 -1
- package/dist/translator/util/optional.d.ts +1 -0
- package/dist/translator/util/params-tree.d.ts +3 -3
- package/dist/translator/util/reasons.d.ts +2 -2
- package/dist/translator/util/references.d.ts +13 -10
- package/dist/translator/util/replace-with-statements.d.ts +4 -0
- package/dist/translator/util/runtime.d.ts +1 -0
- package/dist/translator/util/scope-accessor.d.ts +1 -1
- package/dist/translator/util/sections.d.ts +38 -14
- package/dist/translator/util/signals.d.ts +3 -11
- package/dist/translator/util/slots.d.ts +1 -1
- package/dist/translator/util/solve-reasons.d.ts +5 -0
- package/dist/translator/util/sources.d.ts +1 -1
- package/dist/translator/util/static-text.d.ts +1 -0
- package/dist/translator/util/structure.d.ts +3 -2
- package/dist/translator/util/tag-import.d.ts +0 -2
- package/dist/translator/util/tag-name-type.d.ts +3 -0
- package/dist/translator/util/write-guard.d.ts +2 -0
- package/dist/translator/visitors/placeholder.d.ts +4 -4
- package/package.json +6 -6
- package/tags/lifecycle.d.marko +2 -0
- package/dist/translator/visitors/constants/sibling-text.d.ts +0 -6
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
3
|
-
|
|
2
|
+
let require_control_flow = require("../dom-C2-Flitp.js");
|
|
3
|
+
// src/dom/controllable-select.feat.ts
|
|
4
4
|
require_control_flow.H[3] = require_control_flow.L;
|
|
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-DsHYWMCR.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
|
-
let require_control_flow = require("../dom-
|
|
3
|
-
|
|
2
|
+
let require_control_flow = require("../dom-C2-Flitp.js");
|
|
3
|
+
// src/dom/controllable-textarea.feat.ts
|
|
4
4
|
require_control_flow.H[2] = require_control_flow.P;
|
|
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-DsHYWMCR.mjs";
|
|
2
|
+
// src/dom/controllable-textarea.feat.ts
|
|
3
3
|
controllableScripts[2] = _attr_input_value_script;
|
|
4
|
-
//#endregion
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-C2-Flitp.js");
|
|
3
3
|
require("./controllable-input.feat.js"), require("./controllable-open.feat.js"), require("./controllable-select.feat.js"), require_control_flow.U.INPUT = require_control_flow.R, require_control_flow.U.TEXTAREA = require_control_flow.V, require_control_flow.U.SELECT = require_control_flow.B, require_control_flow.U.DETAILS = require_control_flow.U.DIALOG = require_control_flow.z;
|
|
4
|
-
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
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-DsHYWMCR.mjs";
|
|
2
2
|
import "./controllable-input.feat.mjs";
|
|
3
3
|
import "./controllable-open.feat.mjs";
|
|
4
4
|
import "./controllable-select.feat.mjs";
|
|
5
5
|
controllableSpreadHelpers.INPUT = _controllable_input, controllableSpreadHelpers.TEXTAREA = _controllable_textarea, controllableSpreadHelpers.SELECT = _controllable_select, controllableSpreadHelpers.DETAILS = controllableSpreadHelpers.DIALOG = _controllable_open;
|
|
6
|
-
//#endregion
|
package/dist/dom/dom.d.ts
CHANGED
|
@@ -27,6 +27,5 @@ export declare function _lifecycle(scope: Scope, thisObj: Record<string, unknown
|
|
|
27
27
|
onUpdate?: (this: unknown) => void;
|
|
28
28
|
onDestroy?: (this: unknown) => void;
|
|
29
29
|
}, index?: number): void;
|
|
30
|
-
export declare function removeChildNodes(startNode: ChildNode, endNode: ChildNode): void;
|
|
31
|
-
export declare function insertChildNodes(parentNode: ParentNode, referenceNode: Node | null, startNode: Node, endNode: Node):
|
|
32
|
-
export declare function toInsertNode(startNode: Node, endNode: Node): Node;
|
|
30
|
+
export declare function removeChildNodes(startNode: ChildNode, endNode: ChildNode | null): void;
|
|
31
|
+
export declare function insertChildNodes(parentNode: ParentNode, referenceNode: Node | null, startNode: Node, endNode: Node | null): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
3
|
-
|
|
4
|
-
require_control_flow.
|
|
5
|
-
//#endregion
|
|
2
|
+
let require_control_flow = require("../dom-C2-Flitp.js");
|
|
3
|
+
// src/dom/dynamic-tag-script.feat.ts
|
|
4
|
+
require_control_flow.xt._d = require_control_flow.xn(require_control_flow.h);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { h as dynamicTagScript, xn as withBranches, xt as _resumed } from "../dom-DsHYWMCR.mjs";
|
|
2
|
+
// src/dom/dynamic-tag-script.feat.ts
|
|
3
3
|
_resumed._d = withBranches(dynamicTagScript);
|
|
4
|
-
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
3
|
-
require_control_flow.
|
|
4
|
-
branch.BR = require_control_flow.
|
|
2
|
+
let require_control_flow = require("../dom-C2-Flitp.js");
|
|
3
|
+
require_control_flow.rn(), require_control_flow.g((scope, branch, scopeKey, renderer) => {
|
|
4
|
+
branch.BR = require_control_flow.nn(scope, scopeKey), typeof renderer == "string" && branch.T((_) => branch.S);
|
|
5
5
|
});
|
|
6
|
-
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as installDynamicTagVar, nn as createBranchRenders, rn as installBranchRenders } from "../dom-DsHYWMCR.mjs";
|
|
2
2
|
installBranchRenders(), installDynamicTagVar((scope, branch, scopeKey, renderer) => {
|
|
3
3
|
branch.BR = createBranchRenders(scope, scopeKey), typeof renderer == "string" && branch.T((_) => branch.S);
|
|
4
4
|
});
|
|
5
|
-
//#endregion
|
package/dist/dom/lazy.feat.js
CHANGED
package/dist/dom/lazy.feat.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
3
|
-
|
|
4
|
-
require_control_flow.
|
|
5
|
-
tryBranch.P &&= (require_control_flow.
|
|
2
|
+
let require_control_flow = require("../dom-C2-Flitp.js");
|
|
3
|
+
// src/dom/placeholder.feat.ts
|
|
4
|
+
require_control_flow.xt._f = (tryBranch) => {
|
|
5
|
+
tryBranch.P &&= (require_control_flow.Yt(tryBranch.P), 0);
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Yt as destroyBranch, xt as _resumed } from "../dom-DsHYWMCR.mjs";
|
|
2
|
+
// src/dom/placeholder.feat.ts
|
|
3
3
|
_resumed._f = (tryBranch) => {
|
|
4
4
|
tryBranch.P &&= (destroyBranch(tryBranch.P), 0);
|
|
5
5
|
};
|
|
6
|
-
//#endregion
|
package/dist/dom/resume.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare function withLazy(): void;
|
|
|
29
29
|
export declare function initEmbedded(readyId: string, runtimeId?: string): void;
|
|
30
30
|
export declare function init(runtimeId?: string): void;
|
|
31
31
|
export declare let isResuming: undefined | 0 | 1;
|
|
32
|
-
export declare function getRegisteredWithScope<T = unknown>(
|
|
32
|
+
export declare function getRegisteredWithScope<T = unknown>(scope: Scope | undefined, id: string): T;
|
|
33
33
|
export declare function _var_resume<T extends Signal<unknown>>(id: string, signal: T): T;
|
|
34
34
|
export declare function _el(id: string, accessor: EncodedAccessor): (scope: Scope) => (_?: never) => any;
|
|
35
35
|
export declare function _dynamic_tag_var_resume(accessor: EncodedAccessor): void;
|
package/dist/dom/scope.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export declare function destroyBranch(branch: BranchScope): void;
|
|
|
8
8
|
export declare function destroyScope(scope: Scope): void;
|
|
9
9
|
export declare function removeAndDestroyBranch(branch: BranchScope): void;
|
|
10
10
|
export declare function insertBranchBefore(branch: BranchScope, parentNode: ParentNode, nextSibling: Node | null): void;
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function detachBranch(branch: BranchScope): void;
|
package/dist/dom/signals.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare function _if_closure(ownerConditionalNodeAccessor: EncodedAccesso
|
|
|
14
14
|
export declare function subscribeToScopeSet(owner: Record<Accessor, unknown>, accessor: Accessor, scope: Scope): void;
|
|
15
15
|
export declare function _closure(...closureSignals: ReturnType<typeof _closure_get>[]): (scope: Scope) => void;
|
|
16
16
|
export declare function _closure_get(valueAccessor: EncodedAccessor, fn: SignalFn, getOwnerScope?: (scope: Scope) => Scope, resumeId?: string): ((scope: Scope, resumed?: 1) => void) & {
|
|
17
|
-
|
|
17
|
+
scopesAccessor: string;
|
|
18
18
|
signalIndexAccessor: string;
|
|
19
19
|
index: number;
|
|
20
20
|
};
|