marko 6.0.0-next.3.39 → 6.0.0-next.3.41
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/debug/dom.js +810 -863
- package/dist/debug/dom.mjs +810 -863
- package/dist/debug/html.js +1 -1
- package/dist/debug/html.mjs +1 -1
- package/dist/dom/control-flow.d.ts +1 -2
- package/dist/dom/scope.d.ts +0 -1
- package/dist/dom.js +308 -334
- package/dist/dom.mjs +308 -334
- package/dist/html.js +1 -1
- package/dist/html.mjs +1 -1
- package/dist/translator/index.js +8 -1
- package/package.json +1 -1
package/dist/debug/html.js
CHANGED
package/dist/debug/html.mjs
CHANGED
@@ -4,8 +4,7 @@ import { type Signal, type SignalOp } from "./signals";
|
|
4
4
|
export declare function conditional(nodeAccessor: Accessor, ...branches: Renderer[]): Signal<number>;
|
5
5
|
export declare function patchDynamicTag(fn: <T extends typeof dynamicTag>(cond: T) => T): void;
|
6
6
|
export declare let dynamicTag: (nodeAccessor: Accessor, fn?: ((scope: Scope) => void) | 0, getIntersection?: () => Signal<never>) => Signal<Renderer | string | undefined>;
|
7
|
-
export declare function
|
8
|
-
export declare const emptyMarkerArray: BranchScope[];
|
7
|
+
export declare function setConditionalRenderer<T>(scope: Scope, nodeAccessor: Accessor, newRenderer: T, createBranch: (renderer: NonNullable<T>, $global: Scope["$global"], parentScope: Scope, parentNode: ParentNode) => BranchScope): void;
|
9
8
|
export declare function loopOf(nodeAccessor: Accessor, renderer: Renderer): (scope: Scope, valueOrOp: SignalOp | [all: unknown[], by?: ((item: unknown, index: number) => unknown) | undefined]) => void;
|
10
9
|
export declare function loopIn(nodeAccessor: Accessor, renderer: Renderer): (scope: Scope, valueOrOp: SignalOp | [obj: {}, by?: ((key: string, v: unknown) => unknown) | undefined]) => void;
|
11
10
|
export declare function loopTo(nodeAccessor: Accessor, renderer: Renderer): (scope: Scope, valueOrOp: SignalOp | [to: number, from: number, step: number, by?: ((v: number) => unknown) | undefined]) => void;
|
package/dist/dom/scope.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import type { BranchScope, Scope } from "../common/types";
|
2
2
|
export declare function createScope($global: Scope["$global"], closestBranch?: BranchScope): Scope;
|
3
3
|
export declare function finishPendingScopes(): void;
|
4
|
-
export declare function getEmptyBranch(marker: Comment): BranchScope;
|
5
4
|
export declare function destroyBranch(branch: BranchScope): void;
|
6
5
|
export declare function removeAndDestroyBranch(branch: BranchScope): void;
|
7
6
|
export declare function insertBranchBefore(branch: BranchScope, parentNode: ParentNode, nextSibling: Node | null): void;
|