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
|
@@ -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-HEWdZCCb.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-B8j2453O.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-HEWdZCCb.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
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
3
|
-
|
|
4
|
-
require_control_flow.xt._d = require_control_flow.
|
|
5
|
-
//#endregion
|
|
2
|
+
let require_control_flow = require("../dom-B8j2453O.js");
|
|
3
|
+
// src/dom/dynamic-tag-script.feat.ts
|
|
4
|
+
require_control_flow.xt._d = require_control_flow.Sn(require_control_flow.h);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Sn as withBranches, h as dynamicTagScript, xt as _resumed } from "../dom-HEWdZCCb.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-B8j2453O.js");
|
|
3
|
+
require_control_flow.in(), require_control_flow.g((scope, branch, scopeKey, renderer) => {
|
|
4
|
+
branch.BR = require_control_flow.rn(scope, scopeKey), typeof renderer == "string" && branch.T((_) => branch.S);
|
|
5
5
|
});
|
|
6
|
-
//#endregion
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { g as installDynamicTagVar,
|
|
1
|
+
import { g as installDynamicTagVar, in as installBranchRenders, rn as createBranchRenders } from "../dom-HEWdZCCb.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
package/dist/dom/load.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { type BranchScope, type Scope, type Template } from "../common/types";
|
|
2
2
|
import { type Renderer, type SetupFn } from "./renderer";
|
|
3
3
|
import type { Signal } from "./signals";
|
|
4
|
-
interface LoadModule {
|
|
5
|
-
_: [template: string, walks: string, setup: SetupFn];
|
|
6
|
-
}
|
|
7
4
|
interface LoadSignal {
|
|
8
5
|
_: Signal;
|
|
9
6
|
}
|
|
@@ -11,7 +8,9 @@ export interface LoadTrigger {
|
|
|
11
8
|
<T>(load: () => Promise<T>): () => Promise<T>;
|
|
12
9
|
}
|
|
13
10
|
export declare function _load_template(id: string, load: () => Promise<Renderer>): Template & Renderer;
|
|
14
|
-
export declare function _load_setup(load: () => Promise<
|
|
11
|
+
export declare function _load_setup(load: () => Promise<{
|
|
12
|
+
_: [template: string, walks: string, setup: SetupFn];
|
|
13
|
+
}>): (owner: Scope, child: BranchScope, marker: ChildNode) => void;
|
|
15
14
|
export declare function _load_signal(load: () => Promise<LoadSignal>): Signal;
|
|
16
15
|
export declare function _load_visible_trigger(selector: string, options?: IntersectionObserverInit): LoadTrigger;
|
|
17
16
|
export declare function _load_idle_trigger(options?: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
3
|
-
|
|
2
|
+
let require_control_flow = require("../dom-B8j2453O.js");
|
|
3
|
+
// src/dom/placeholder.feat.ts
|
|
4
4
|
require_control_flow.xt._f = (tryBranch) => {
|
|
5
5
|
tryBranch.P &&= (require_control_flow.Yt(tryBranch.P), 0);
|
|
6
6
|
};
|
|
7
|
-
//#endregion
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Yt as destroyBranch, xt as _resumed } from "../dom-
|
|
2
|
-
|
|
1
|
+
import { Yt as destroyBranch, xt as _resumed } from "../dom-HEWdZCCb.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/queue.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PendingRenderProp, type Scope } from "../common/types";
|
|
2
2
|
import type { Signal } from "./signals";
|
|
3
|
-
type ExecFn<S extends Scope = Scope> = (scope: S, arg?: any) => void;
|
|
4
3
|
export type PendingRender = {
|
|
5
4
|
[PendingRenderProp.Key]: number;
|
|
6
5
|
[PendingRenderProp.Scope]: Scope;
|
|
@@ -16,7 +15,7 @@ export declare function queueRender<T, U extends Scope = Scope>(scope: U, signal
|
|
|
16
15
|
export declare let queuePendingRender: (render: PendingRender) => void;
|
|
17
16
|
export declare function createBranchRenders(scope: Scope, scopeKey: number): PendingRender;
|
|
18
17
|
export declare function installBranchRenders(): void;
|
|
19
|
-
export declare function queueEffect<S extends Scope
|
|
18
|
+
export declare function queueEffect<S extends Scope>(scope: S, fn: (scope: S) => void): void;
|
|
20
19
|
export declare function run(): void;
|
|
21
20
|
export declare function queueAsyncRender<T, U extends Scope = Scope>(scope: U, signal: Signal<T, U>, value?: T): void;
|
|
22
21
|
export declare function prepareEffects(fn: () => void): unknown[];
|
package/dist/dom/signals.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export declare function _let<T>(id: EncodedAccessor, fn?: SignalFn): (scope: Sco
|
|
|
8
8
|
export declare function _let_change<T>(id: EncodedAccessor, fn?: SignalFn): (scope: Scope, value: T, valueChange?: (v: T) => void) => T;
|
|
9
9
|
export declare function _const<T>(valueAccessor: EncodedAccessor, fn?: SignalFn): Signal<T>;
|
|
10
10
|
export declare function _or(id: number, fn: SignalFn, defaultPending?: number, scopeIdAccessor?: EncodedAccessor): Signal<never>;
|
|
11
|
-
export declare function _for_closure(ownerLoopNodeAccessor: EncodedAccessor, fn: SignalFn): SignalFn;
|
|
12
|
-
export declare function _for_selector(ownerLoopNodeAccessor: EncodedAccessor, ownerValueAccessor: EncodedAccessor, fn: SignalFn): SignalFn;
|
|
11
|
+
export declare function _for_closure(ownerLoopNodeAccessor: EncodedAccessor, fn: SignalFn, id: number, scopeIdAccessor?: EncodedAccessor): SignalFn;
|
|
12
|
+
export declare function _for_selector(ownerLoopNodeAccessor: EncodedAccessor, ownerValueAccessor: EncodedAccessor, fn: SignalFn, getValueScope?: (scope: Scope) => Scope): SignalFn;
|
|
13
13
|
export declare function _if_closure(ownerConditionalNodeAccessor: EncodedAccessor, branch: number, fn: SignalFn): SignalFn;
|
|
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;
|
|
@@ -26,9 +26,7 @@ export declare function _id(scope: Scope, accessor?: Accessor): string;
|
|
|
26
26
|
export declare function _script(id: string, fn: (scope: Scope) => void): (scope: Scope) => void;
|
|
27
27
|
export declare function _global_read($global: Record<string, unknown>, key: string): unknown;
|
|
28
28
|
export declare function _el_read<T>(value: T): T;
|
|
29
|
-
type
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export declare function _hoist<T>(...path: HoistStep[]): (scope: Scope) => Hoisted<T>;
|
|
33
|
-
export declare function _hoist_resume<T>(id: string, ...path: HoistStep[]): (scope: Scope) => Hoisted<T>;
|
|
29
|
+
type HoistStep = EncodedAccessor | [Accessor, Accessor, number];
|
|
30
|
+
export declare function _hoist<T>(...path: HoistStep[]): (scope: Scope) => ((...args: unknown[]) => T) & Iterable<T>;
|
|
31
|
+
export declare function _hoist_resume<T>(id: string, ...path: HoistStep[]): (scope: Scope) => ((...args: unknown[]) => T) & Iterable<T>;
|
|
34
32
|
export {};
|