marko 6.4.10 → 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/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 +1 -1
- package/dist/debug/dom/catch.feat.mjs +1 -1
- package/dist/debug/dom/controllable-input.feat.js +1 -1
- package/dist/debug/dom/controllable-input.feat.mjs +1 -1
- package/dist/debug/dom/controllable-open.feat.js +1 -1
- package/dist/debug/dom/controllable-open.feat.mjs +1 -1
- package/dist/debug/dom/controllable-select.feat.js +1 -1
- package/dist/debug/dom/controllable-select.feat.mjs +1 -1
- package/dist/debug/dom/controllable-textarea.feat.js +1 -1
- package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/debug/dom/controllable.feat.js +1 -1
- package/dist/debug/dom/controllable.feat.mjs +1 -1
- package/dist/debug/dom/dynamic-tag-script.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/debug/dom/lazy.feat.js +1 -1
- package/dist/debug/dom/lazy.feat.mjs +1 -1
- package/dist/debug/dom/placeholder.feat.js +1 -1
- package/dist/debug/dom/placeholder.feat.mjs +1 -1
- package/dist/debug/{dom-C1V5vpFs.mjs → dom-DjUZd-9y.mjs} +198 -214
- package/dist/debug/{dom-DNB5yq3U.js → dom-mQ5mPBTF.js} +203 -213
- package/dist/debug/dom.js +5 -8
- package/dist/debug/dom.mjs +5 -9
- package/dist/debug/html.js +68 -87
- package/dist/debug/html.mjs +68 -87
- package/dist/dom/abort-signal.d.ts +1 -1
- package/dist/dom/catch.feat.js +3 -3
- package/dist/dom/catch.feat.mjs +1 -1
- package/dist/dom/control-flow.d.ts +4 -4
- package/dist/dom/controllable-input.feat.js +1 -1
- package/dist/dom/controllable-input.feat.mjs +1 -1
- package/dist/dom/controllable-open.feat.js +1 -1
- package/dist/dom/controllable-open.feat.mjs +1 -1
- package/dist/dom/controllable-select.feat.js +1 -1
- package/dist/dom/controllable-select.feat.mjs +1 -1
- package/dist/dom/controllable-textarea.feat.js +1 -1
- package/dist/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/dom/controllable.feat.js +1 -1
- package/dist/dom/controllable.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-script.feat.js +2 -2
- package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-var.feat.js +3 -3
- package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/dom/lazy.feat.js +1 -1
- package/dist/dom/lazy.feat.mjs +1 -1
- package/dist/dom/load.d.ts +3 -4
- package/dist/dom/placeholder.feat.js +1 -1
- package/dist/dom/placeholder.feat.mjs +1 -1
- package/dist/dom/queue.d.ts +1 -2
- package/dist/dom/signals.d.ts +5 -7
- package/dist/{dom-C2-Flitp.js → dom-B8j2453O.js} +143 -155
- package/dist/{dom-DsHYWMCR.mjs → dom-HEWdZCCb.mjs} +119 -136
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +17 -21
- package/dist/dom.mjs +5 -9
- 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 +60 -72
- package/dist/html.mjs +60 -72
- package/dist/translator/index.d.ts +0 -1
- package/dist/translator/index.js +4629 -4485
- package/dist/translator/interop/out-global.d.ts +5 -0
- package/dist/translator/util/assert.d.ts +4 -0
- 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 +7 -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/style-interpolation.d.ts +1 -1
- package/dist/translator/util/tag-name-type.d.ts +1 -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 +4 -4
- package/dist/common/constants/keyed-scopes-prop.d.ts +0 -4
- package/dist/common/constants/keyed-scopes-prop.debug.d.ts +0 -4
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
2
|
// src/dom/catch.feat.ts
|
|
3
3
|
const deferToPendingTry = (fn, scope, branch) => {
|
|
4
4
|
while (branch) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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
2
|
// src/dom/controllable-input.feat.ts
|
|
3
3
|
controllableScripts[0] = _attr_input_checked_script;
|
|
4
4
|
controllableScripts[1] = _attr_input_checkedValue_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
3
|
// src/dom/controllable-open.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[4] = require_control_flow._attr_details_or_dialog_open_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as _attr_details_or_dialog_open_script, H as controllableScripts } from "../dom-
|
|
1
|
+
import { C as _attr_details_or_dialog_open_script, H as controllableScripts } from "../dom-DjUZd-9y.mjs";
|
|
2
2
|
// src/dom/controllable-open.feat.ts
|
|
3
3
|
controllableScripts[4] = _attr_details_or_dialog_open_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
3
|
// src/dom/controllable-select.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[3] = require_control_flow._attr_select_value_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { H as controllableScripts, L as _attr_select_value_script } from "../dom-
|
|
1
|
+
import { H as controllableScripts, L as _attr_select_value_script } from "../dom-DjUZd-9y.mjs";
|
|
2
2
|
// src/dom/controllable-select.feat.ts
|
|
3
3
|
controllableScripts[3] = _attr_select_value_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
3
|
// src/dom/controllable-textarea.feat.ts
|
|
4
4
|
require_control_flow.controllableScripts[2] = require_control_flow._attr_input_value_script;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { H as controllableScripts, P as _attr_input_value_script } from "../dom-
|
|
1
|
+
import { H as controllableScripts, P as _attr_input_value_script } from "../dom-DjUZd-9y.mjs";
|
|
2
2
|
// src/dom/controllable-textarea.feat.ts
|
|
3
3
|
controllableScripts[2] = _attr_input_value_script;
|
|
@@ -1,4 +1,4 @@
|
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
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);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $t as DYNAMIC_TAG_SCRIPT_REGISTER_ID,
|
|
1
|
+
import { $t as DYNAMIC_TAG_SCRIPT_REGISTER_ID, h as dynamicTagScript, wn as withBranches, xt as _resumed } from "../dom-DjUZd-9y.mjs";
|
|
2
2
|
// src/dom/dynamic-tag-script.feat.ts
|
|
3
3
|
_resumed[DYNAMIC_TAG_SCRIPT_REGISTER_ID] = withBranches(dynamicTagScript);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
3
|
// src/dom/dynamic-tag-var.feat.ts
|
|
4
4
|
require_control_flow.installBranchRenders();
|
|
5
5
|
require_control_flow.installDynamicTagVar((scope, branch, scopeKey, renderer) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
2
|
// src/dom/dynamic-tag-var.feat.ts
|
|
3
3
|
installBranchRenders();
|
|
4
4
|
installDynamicTagVar((scope, branch, scopeKey, renderer) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_control_flow = require("../dom-
|
|
2
|
+
const require_control_flow = require("../dom-mQ5mPBTF.js");
|
|
3
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"]) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gn as PlaceholderBranch, Yt as destroyBranch, en as PLACEHOLDER_DISMISS_REGISTER_ID, xt as _resumed } from "../dom-DjUZd-9y.mjs";
|
|
2
2
|
// src/dom/placeholder.feat.ts
|
|
3
3
|
_resumed[PLACEHOLDER_DISMISS_REGISTER_ID] = (tryBranch) => {
|
|
4
4
|
if (tryBranch["#PlaceholderBranch"]) {
|