@vue/runtime-vapor 3.6.0-beta.1 → 3.6.0-beta.3
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 +6 -5
- package/dist/runtime-vapor.esm-bundler.js +644 -479
- package/package.json +4 -4
package/dist/runtime-vapor.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { VNode, GenericComponentInstance, TransitionHooks, TransitionState, TransitionProps, Plugin, SchedulerJob, EmitsOptions, ComponentObjectPropsOptions, ExtractPropTypes, ReservedProps, AllowedComponentProps, ComponentCustomProps, EmitsToProps, ExtractDefaultPropTypes, EmitFn, ComponentTypeEmits, TypeEmitsToOptions, GenericAppContext, EffectScope as EffectScope$1, ShallowUnwrapRef, SuspenseBoundary, LifecycleHook, NormalizedPropsOptions, ObjectEmitsOptions, ComponentInternalOptions, AsyncComponentInternalOptions, ComponentPropsOptions, CreateAppFunction, AsyncComponentLoader, AsyncComponentOptions, DirectiveModifiers, CustomElementOptions, VueElementBase } from '@vue/runtime-dom';
|
|
1
|
+
import { VNode, GenericComponentInstance, TransitionHooks, TransitionState, TransitionProps, Plugin, SchedulerJob, EmitsOptions, ComponentObjectPropsOptions, ExtractPropTypes, ReservedProps, AllowedComponentProps, ComponentCustomProps, EmitsToProps, ExtractDefaultPropTypes, EmitFn, ComponentTypeEmits, TypeEmitsToOptions, GenericAppContext, EffectScope as EffectScope$1, ShallowUnwrapRef, SuspenseBoundary, LifecycleHook, NormalizedPropsOptions, ObjectEmitsOptions, ComponentInternalOptions, AsyncComponentInternalOptions, ComponentPropsOptions, NULL_DYNAMIC_COMPONENT, CreateAppFunction, AsyncComponentLoader, AsyncComponentOptions, DirectiveModifiers, CustomElementOptions, VueElementBase } from '@vue/runtime-dom';
|
|
2
2
|
import { Ref, EffectScope, ReactiveEffect, ShallowRef } from '@vue/reactivity';
|
|
3
3
|
import { Prettify, IsKeyValues, Namespace, NormalizedStyle } from '@vue/shared';
|
|
4
4
|
|
|
5
5
|
type NodeRef = string | Ref | ((ref: Element | VaporComponentInstance, refs: Record<string, any>) => void);
|
|
6
6
|
type RefEl = Element | VaporComponentInstance;
|
|
7
|
-
type setRefFn = (el: RefEl, ref: NodeRef,
|
|
7
|
+
type setRefFn = (el: RefEl, ref: NodeRef, refFor?: boolean, refKey?: string) => NodeRef | undefined;
|
|
8
8
|
export declare function createTemplateRefSetter(): setRefFn;
|
|
9
9
|
|
|
10
10
|
export declare class VaporFragment<T extends Block = Block> implements TransitionOptions {
|
|
@@ -35,13 +35,14 @@ declare class DynamicFragment extends VaporFragment {
|
|
|
35
35
|
};
|
|
36
36
|
fallback?: BlockFn;
|
|
37
37
|
anchorLabel?: string;
|
|
38
|
+
keyed?: boolean;
|
|
38
39
|
attrs?: Record<string, any>;
|
|
39
40
|
setAsyncRef?: (instance: VaporComponentInstance) => void;
|
|
40
41
|
getScope?: (key: any) => EffectScope | undefined;
|
|
41
42
|
onBeforeTeardown?: ((oldKey: any, nodes: Block, scope: EffectScope) => boolean)[];
|
|
42
43
|
onBeforeMount?: ((newKey: any, nodes: Block, scope: EffectScope) => void)[];
|
|
43
44
|
slotOwner: VaporComponentInstance | null;
|
|
44
|
-
constructor(anchorLabel?: string);
|
|
45
|
+
constructor(anchorLabel?: string, keyed?: boolean);
|
|
45
46
|
update(render?: BlockFn, key?: any): void;
|
|
46
47
|
renderBranch(render: BlockFn | undefined, transition: VaporTransitionHooks | undefined, parent: ParentNode | null, instance: GenericComponentInstance | null): void;
|
|
47
48
|
hydrate: (isEmpty?: boolean) => void;
|
|
@@ -130,6 +131,7 @@ declare class TeleportFragment extends VaporFragment {
|
|
|
130
131
|
constructor(props: LooseRawProps, slots: LooseRawSlots);
|
|
131
132
|
get parent(): ParentNode | null;
|
|
132
133
|
private initChildren;
|
|
134
|
+
private registerUpdateCssVars;
|
|
133
135
|
private handleChildrenUpdate;
|
|
134
136
|
private mount;
|
|
135
137
|
private mountToTarget;
|
|
@@ -313,7 +315,7 @@ export declare function isVaporComponent(value: unknown): value is VaporComponen
|
|
|
313
315
|
* and needs rely on runtime resolution - where it might fallback to a plain
|
|
314
316
|
* element if the resolution fails.
|
|
315
317
|
*/
|
|
316
|
-
export declare function createComponentWithFallback(comp: VaporComponent | string, rawProps?: LooseRawProps | null, rawSlots?: LooseRawSlots | null, isSingleRoot?: boolean, once?: boolean, appContext?: GenericAppContext): HTMLElement | VaporComponentInstance;
|
|
318
|
+
export declare function createComponentWithFallback(comp: VaporComponent | typeof NULL_DYNAMIC_COMPONENT | string, rawProps?: LooseRawProps | null, rawSlots?: LooseRawSlots | null, isSingleRoot?: boolean, once?: boolean, appContext?: GenericAppContext): HTMLElement | VaporComponentInstance;
|
|
317
319
|
export declare function createPlainElement(comp: string, rawProps?: LooseRawProps | null, rawSlots?: LooseRawSlots | null, isSingleRoot?: boolean, once?: boolean): HTMLElement;
|
|
318
320
|
|
|
319
321
|
export declare const createVaporApp: CreateAppFunction<ParentNode, VaporComponent>;
|
|
@@ -396,7 +398,6 @@ export declare function setInsertionState(parent: ParentNode & {
|
|
|
396
398
|
$fc?: Node | null;
|
|
397
399
|
}, anchor?: Node | 0 | null | number, last?: boolean): void;
|
|
398
400
|
|
|
399
|
-
/*! #__NO_SIDE_EFFECTS__ */
|
|
400
401
|
export declare function template(html: string, root?: boolean, ns?: Namespace): () => Node & {
|
|
401
402
|
$root?: true;
|
|
402
403
|
};
|