marko 6.4.6 → 6.4.7
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 +2 -1
- package/dist/common/errors.d.ts +1 -0
- package/dist/debug/dom/catch.feat.js +2 -2
- package/dist/debug/dom/catch.feat.mjs +2 -2
- 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 +2 -2
- package/dist/debug/dom/dynamic-tag-var.feat.mjs +2 -2
- 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-o9jQjchF.mjs → dom-CFCBDift.mjs} +97 -99
- package/dist/debug/{dom-CNgQ6lj9.js → dom-D8znnhpf.js} +102 -104
- package/dist/debug/dom.js +18 -19
- package/dist/debug/dom.mjs +19 -19
- package/dist/debug/html.js +15 -12
- package/dist/debug/html.mjs +15 -13
- package/dist/dom/catch.feat.js +3 -3
- package/dist/dom/catch.feat.mjs +2 -2
- package/dist/dom/control-flow.d.ts +1 -1
- 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 +2 -2
- package/dist/dom/lazy.feat.js +1 -1
- package/dist/dom/lazy.feat.mjs +1 -1
- package/dist/dom/placeholder.feat.js +2 -2
- package/dist/dom/placeholder.feat.mjs +1 -1
- package/dist/dom/renderer.d.ts +1 -3
- package/dist/dom/resume.d.ts +2 -3
- package/dist/dom/signals.d.ts +2 -7
- package/dist/{dom-60R4bRWD.js → dom-Bpkm72vV.js} +123 -132
- package/dist/{dom-Ci2W4l1P.mjs → dom-CVAevsbz.mjs} +77 -81
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +33 -33
- package/dist/dom.mjs +19 -19
- package/dist/html/assets.d.ts +1 -1
- package/dist/html/control-flow.d.ts +1 -1
- package/dist/html/inlined-runtimes.d.ts +2 -2
- package/dist/html/inlined-runtimes.debug.d.ts +2 -2
- package/dist/html/template.d.ts +1 -1
- package/dist/html.d.ts +1 -1
- package/dist/html.js +16 -19
- package/dist/html.mjs +16 -19
- package/dist/translator/index.js +6946 -6830
- package/dist/translator/util/assert.d.ts +7 -0
- package/dist/translator/util/bindings.d.ts +11 -3
- package/dist/translator/util/cyclic-memo.d.ts +6 -2
- package/dist/translator/util/entry-builder.d.ts +0 -1
- package/dist/translator/util/finalize-references.d.ts +4 -2
- package/dist/translator/util/for-selector.d.ts +1 -1
- package/dist/translator/util/generate-uid.d.ts +1 -0
- package/dist/translator/util/known-tag.d.ts +4 -1
- package/dist/translator/util/optional.d.ts +1 -1
- package/dist/translator/util/reasons.d.ts +4 -1
- package/dist/translator/util/references.d.ts +2 -0
- package/dist/translator/util/sections.d.ts +5 -5
- package/dist/translator/util/signals.d.ts +3 -3
- package/dist/translator/util/slots.d.ts +2 -2
- package/dist/translator/util/state.d.ts +4 -2
- package/dist/translator/visitors/import-declaration.d.ts +2 -0
- package/dist/translator/visitors/program/pre-analyze.d.ts +2 -0
- package/dist/translator/visitors/tag/dynamic-tag.d.ts +1 -0
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
let require_control_flow = require("../dom-
|
|
2
|
+
let require_control_flow = require("../dom-Bpkm72vV.js");
|
|
3
3
|
//#region src/dom/placeholder.feat.ts
|
|
4
4
|
require_control_flow.Ct._f = (tryBranch) => {
|
|
5
|
-
tryBranch.P &&= (require_control_flow.
|
|
5
|
+
tryBranch.P &&= (require_control_flow.Zt(tryBranch.P), 0);
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as _resumed,
|
|
1
|
+
import { Ct as _resumed, Zt as destroyBranch } from "../dom-CVAevsbz.mjs";
|
|
2
2
|
//#region src/dom/placeholder.feat.ts
|
|
3
3
|
_resumed._f = (tryBranch) => {
|
|
4
4
|
tryBranch.P &&= (destroyBranch(tryBranch.P), 0);
|
package/dist/dom/renderer.d.ts
CHANGED
|
@@ -18,9 +18,7 @@ export declare function createBranch($global: Scope[typeof AccessorProp.Global],
|
|
|
18
18
|
export declare function setParentBranch(branch: BranchScope, parentBranch: BranchScope | undefined): void;
|
|
19
19
|
export declare function createAndSetupBranch($global: Scope[typeof AccessorProp.Global], renderer: Renderer, parentScope: Scope | undefined, parentNode: ParentNode): BranchScope;
|
|
20
20
|
export declare function setupBranch(renderer: Renderer, branch: BranchScope): BranchScope;
|
|
21
|
-
export declare function _return_setup<T extends ((...args: any[]) => unknown)
|
|
22
|
-
_: SetupFn;
|
|
23
|
-
}>(setup: T): T;
|
|
21
|
+
export declare function _return_setup<T extends ((...args: any[]) => unknown) & ReturnMark>(setup: T): T;
|
|
24
22
|
export declare function _content(id: string, template?: string | 0, walks?: string | 0, setup?: {
|
|
25
23
|
_: Signal<unknown>;
|
|
26
24
|
} | SetupFn | 0, params?: Signal<unknown> | 0, dynamicScopesAccessor?: Accessor): (owner?: Scope) => Renderer;
|
package/dist/dom/resume.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export interface RenderData {
|
|
|
17
17
|
w(): void;
|
|
18
18
|
m?(effects: unknown[]): unknown[];
|
|
19
19
|
b?: Record<string, ResumeData>;
|
|
20
|
-
d: never;
|
|
21
20
|
l: never;
|
|
22
21
|
x: never;
|
|
23
22
|
j?: never;
|
|
@@ -30,8 +29,8 @@ export declare function withLazy(): void;
|
|
|
30
29
|
export declare function initEmbedded(readyId: string, runtimeId?: string): void;
|
|
31
30
|
export declare function init(runtimeId?: string): void;
|
|
32
31
|
export declare let isResuming: undefined | 0 | 1;
|
|
33
|
-
export declare function getRegisteredWithScope(id: string, scope?: Scope):
|
|
32
|
+
export declare function getRegisteredWithScope<T = unknown>(id: string, scope?: Scope): T;
|
|
34
33
|
export declare function _var_resume<T extends Signal<unknown>>(id: string, signal: T): T;
|
|
35
|
-
export declare function _el(id: string, accessor: EncodedAccessor): (scope: Scope) => () => any;
|
|
34
|
+
export declare function _el(id: string, accessor: EncodedAccessor): (scope: Scope) => (_?: never) => any;
|
|
36
35
|
export declare function _dynamic_tag_var_resume(accessor: EncodedAccessor): void;
|
|
37
36
|
export {};
|
package/dist/dom/signals.d.ts
CHANGED
|
@@ -9,20 +9,15 @@ export declare function _let_change<T>(id: EncodedAccessor, fn?: SignalFn): (sco
|
|
|
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
11
|
export declare function _for_closure(ownerLoopNodeAccessor: EncodedAccessor, fn: SignalFn): SignalFn;
|
|
12
|
-
export declare function _for_selector(ownerLoopNodeAccessor: EncodedAccessor, ownerValueAccessor: EncodedAccessor,
|
|
12
|
+
export declare function _for_selector(ownerLoopNodeAccessor: EncodedAccessor, ownerValueAccessor: EncodedAccessor, fn: SignalFn): SignalFn;
|
|
13
13
|
export declare function _if_closure(ownerConditionalNodeAccessor: EncodedAccessor, branch: number, fn: SignalFn): SignalFn;
|
|
14
|
-
export declare function subscribeToScopeSet(
|
|
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
|
scopeInstancesAccessor: string;
|
|
18
18
|
signalIndexAccessor: string;
|
|
19
19
|
index: number;
|
|
20
20
|
};
|
|
21
|
-
export declare function _child_setup(setup: Signal<never> & {
|
|
22
|
-
_: Signal<Scope>;
|
|
23
|
-
}): Signal<never, Scope> & {
|
|
24
|
-
_: Signal<Scope>;
|
|
25
|
-
};
|
|
26
21
|
export declare function _var(scope: Scope, childAccessor: EncodedAccessor, signal: Signal<unknown>): void;
|
|
27
22
|
export declare const _return: (scope: Scope, value: unknown) => any;
|
|
28
23
|
export declare function _return_change(scope: Scope, changeHandler?: ((value: unknown) => void) | null | false): void;
|