@vue/runtime-vapor 3.6.0-beta.8 → 3.6.0-beta.9
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/runtime-vapor.d.ts +21 -9
- package/dist/runtime-vapor.esm-bundler.js +638 -326
- package/package.json +4 -4
package/dist/runtime-vapor.d.ts
CHANGED
|
@@ -75,12 +75,12 @@ export declare function defineVaporComponent<TypeProps, RuntimePropsOptions exte
|
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region temp/packages/runtime-vapor/src/components/KeepAlive.d.ts
|
|
77
77
|
export interface VaporKeepAliveContext {
|
|
78
|
-
processShapeFlag(block: Block):
|
|
78
|
+
processShapeFlag(block: Block): CacheKey | false;
|
|
79
79
|
cacheBlock(): void;
|
|
80
|
-
cacheScope(
|
|
80
|
+
cacheScope(cacheKey: CacheKey, scopeLookupKey: any, scope: EffectScope$1): void;
|
|
81
81
|
getScope(key: any): EffectScope$1 | undefined;
|
|
82
|
-
setCurrentBranchKey(key: any): any;
|
|
83
82
|
}
|
|
83
|
+
type CacheKey = any;
|
|
84
84
|
export declare const VaporKeepAlive: DefineVaporComponent<{}, string, KeepAliveProps>;
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region temp/packages/runtime-vapor/src/fragment.d.ts
|
|
@@ -97,7 +97,10 @@ export declare class VaporFragment<T extends Block = Block> implements Transitio
|
|
|
97
97
|
hydrate?: (...args: any[]) => void;
|
|
98
98
|
setRef?: (instance: VaporComponentInstance, ref: NodeRef, refFor: boolean, refKey: string | undefined) => void;
|
|
99
99
|
onUpdated?: ((nodes?: Block) => void)[];
|
|
100
|
+
readonly slotOwner: VaporComponentInstance | null;
|
|
101
|
+
readonly keepAliveCtx: VaporKeepAliveContext | null;
|
|
100
102
|
constructor(nodes: T);
|
|
103
|
+
protected runWithRenderCtx<R>(fn: () => R): R;
|
|
101
104
|
}
|
|
102
105
|
declare class ForFragment extends VaporFragment<Block[]> {
|
|
103
106
|
constructor(nodes: Block[]);
|
|
@@ -113,11 +116,9 @@ export declare class DynamicFragment extends VaporFragment {
|
|
|
113
116
|
anchorLabel?: string;
|
|
114
117
|
keyed?: boolean;
|
|
115
118
|
attrs?: Record<string, any>;
|
|
116
|
-
keepAliveCtx: VaporKeepAliveContext | null;
|
|
117
|
-
slotOwner: VaporComponentInstance | null;
|
|
118
119
|
constructor(anchorLabel?: string, keyed?: boolean, locate?: boolean);
|
|
119
120
|
update(render?: BlockFn, key?: any): void;
|
|
120
|
-
renderBranch(render: BlockFn | undefined, transition: VaporTransitionHooks | undefined, parent: ParentNode | null): void;
|
|
121
|
+
renderBranch(render: BlockFn | undefined, transition: VaporTransitionHooks | undefined, parent: ParentNode | null, key: any): void;
|
|
121
122
|
hydrate: (isEmpty?: boolean) => void;
|
|
122
123
|
}
|
|
123
124
|
export declare function isFragment(val: NonNullable<unknown>): val is VaporFragment;
|
|
@@ -128,7 +129,7 @@ export interface VaporTransitionHooks extends TransitionHooks {
|
|
|
128
129
|
props: TransitionProps;
|
|
129
130
|
instance: VaporComponentInstance;
|
|
130
131
|
disabled?: boolean;
|
|
131
|
-
applyGroup?: (block: Block,
|
|
132
|
+
applyGroup?: (block: Block, props: TransitionProps, state: TransitionState, instance: VaporComponentInstance) => void;
|
|
132
133
|
}
|
|
133
134
|
interface TransitionOptions {
|
|
134
135
|
$key?: any;
|
|
@@ -174,22 +175,28 @@ declare class TeleportFragment extends VaporFragment {
|
|
|
174
175
|
private rawSlots?;
|
|
175
176
|
isDisabled?: boolean;
|
|
176
177
|
private isMounted;
|
|
178
|
+
private childrenInitialized;
|
|
179
|
+
private readonly ownerInstance;
|
|
177
180
|
target?: ParentNode | null;
|
|
178
181
|
targetAnchor?: Node | null;
|
|
179
182
|
targetStart?: Node | null;
|
|
180
183
|
placeholder?: Node;
|
|
181
184
|
mountContainer?: ParentNode | null;
|
|
182
185
|
mountAnchor?: Node | null;
|
|
183
|
-
|
|
186
|
+
private mountToTargetJob?;
|
|
187
|
+
constructor(props: LooseRawProps, slots?: LooseRawSlots | null);
|
|
184
188
|
get parent(): ParentNode | null;
|
|
185
189
|
private initChildren;
|
|
190
|
+
private ensureChildrenInitialized;
|
|
186
191
|
private registerUpdateCssVars;
|
|
192
|
+
private bindChildren;
|
|
187
193
|
private handleChildrenUpdate;
|
|
188
194
|
private mount;
|
|
189
195
|
private mountToTarget;
|
|
190
196
|
private handlePropsUpdate;
|
|
191
197
|
insert: (container: ParentNode, anchor: Node | null) => void;
|
|
192
198
|
remove: (parent?: ParentNode | undefined) => void;
|
|
199
|
+
private hydrateTargetAnchors;
|
|
193
200
|
private hydrateDisabledTeleport;
|
|
194
201
|
private mountChildren;
|
|
195
202
|
hydrate: () => void;
|
|
@@ -278,7 +285,7 @@ export declare class VaporComponentInstance<Props extends Record<string, any> =
|
|
|
278
285
|
renderEffects?: RenderEffect[];
|
|
279
286
|
hasFallthrough: boolean;
|
|
280
287
|
shapeFlag?: number;
|
|
281
|
-
key?: any;
|
|
288
|
+
$key?: any;
|
|
282
289
|
oncePropsCache?: Record<string | symbol, any>;
|
|
283
290
|
isMounted: boolean;
|
|
284
291
|
isUnmounted: boolean;
|
|
@@ -492,6 +499,11 @@ export declare function getDefaultValue(val: any, defaultVal: any): any;
|
|
|
492
499
|
//#region temp/packages/runtime-vapor/src/helpers/useCssVars.d.ts
|
|
493
500
|
export declare function useVaporCssVars(getter: () => Record<string, string>): void;
|
|
494
501
|
//#endregion
|
|
502
|
+
//#region temp/packages/runtime-vapor/src/helpers/setKey.d.ts
|
|
503
|
+
export declare function setBlockKey(block: (Block & {
|
|
504
|
+
$key?: any;
|
|
505
|
+
}) | null | undefined, key: any): void;
|
|
506
|
+
//#endregion
|
|
495
507
|
//#region temp/packages/runtime-vapor/src/apiCreateDynamicComponent.d.ts
|
|
496
508
|
export declare function createDynamicComponent(getter: () => any, rawProps?: RawProps | null, rawSlots?: RawSlots | null, isSingleRoot?: boolean, once?: boolean): VaporFragment;
|
|
497
509
|
//#endregion
|