@vue/runtime-vapor 3.6.0-alpha.1 → 3.6.0-alpha.2
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 +10 -5
- package/dist/runtime-vapor.esm-bundler.js +628 -631
- package/package.json +4 -4
package/dist/runtime-vapor.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GenericComponentInstance, GenericAppContext, EffectScope as EffectScope$1, EmitFn, SuspenseBoundary, LifecycleHook, NormalizedPropsOptions, ObjectEmitsOptions, ComponentInternalOptions, ComponentPropsOptions, EmitsOptions, CreateAppFunction,
|
|
1
|
+
import { Plugin, GenericComponentInstance, GenericAppContext, EffectScope as EffectScope$1, EmitFn, SuspenseBoundary, LifecycleHook, NormalizedPropsOptions, ObjectEmitsOptions, ComponentInternalOptions, ComponentPropsOptions, EmitsOptions, CreateAppFunction, DirectiveModifiers } from '@vue/runtime-dom';
|
|
2
2
|
import { EffectScope, ShallowRef, Ref } from '@vue/reactivity';
|
|
3
3
|
import { NormalizedStyle } from '@vue/shared';
|
|
4
4
|
|
|
@@ -24,8 +24,13 @@ export declare function insert(block: Block, parent: ParentNode, anchor?: Node |
|
|
|
24
24
|
export declare function prepend(parent: ParentNode, ...blocks: Block[]): void;
|
|
25
25
|
export declare function remove(block: Block, parent?: ParentNode): void;
|
|
26
26
|
|
|
27
|
+
declare const interopKey: unique symbol;
|
|
28
|
+
export declare const vaporInteropPlugin: Plugin;
|
|
29
|
+
|
|
27
30
|
type RawProps = Record<string, () => unknown> & {
|
|
28
|
-
$?: DynamicPropsSource[]
|
|
31
|
+
$?: DynamicPropsSource[] & {
|
|
32
|
+
[interopKey]?: boolean;
|
|
33
|
+
};
|
|
29
34
|
};
|
|
30
35
|
type DynamicPropsSource = (() => Record<string, unknown>) | Record<string, () => unknown>;
|
|
31
36
|
|
|
@@ -152,8 +157,6 @@ export declare const createVaporSSRApp: CreateAppFunction<ParentNode, VaporCompo
|
|
|
152
157
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
153
158
|
export declare function defineVaporComponent(comp: VaporComponent, extraOptions?: Omit<ObjectVaporComponent, 'setup'>): VaporComponent;
|
|
154
159
|
|
|
155
|
-
export declare const vaporInteropPlugin: Plugin;
|
|
156
|
-
|
|
157
160
|
export type VaporDirective = (node: Element | VaporComponentInstance, value?: () => any, argument?: string, modifiers?: DirectiveModifiers) => (() => void) | void;
|
|
158
161
|
type VaporDirectiveArguments = Array<[VaporDirective | undefined] | [VaporDirective | undefined, () => any] | [VaporDirective | undefined, (() => any) | undefined, argument: string] | [
|
|
159
162
|
VaporDirective | undefined,
|
|
@@ -221,7 +224,9 @@ export declare function setDynamicEvents(el: HTMLElement, events: Record<string,
|
|
|
221
224
|
export declare function createIf(condition: () => any, b1: BlockFn, b2?: BlockFn, once?: boolean): Block;
|
|
222
225
|
|
|
223
226
|
type Source = any[] | Record<any, any> | number | Set<any> | Map<any, any>;
|
|
224
|
-
export declare const createFor: (src: () => Source, renderItem: (item: ShallowRef<any>, key: ShallowRef<any>, index: ShallowRef<number | undefined>) => Block, getKey?: (item: any, key: any, index?: number) => any, flags?: number
|
|
227
|
+
export declare const createFor: (src: () => Source, renderItem: (item: ShallowRef<any>, key: ShallowRef<any>, index: ShallowRef<number | undefined>) => Block, getKey?: (item: any, key: any, index?: number) => any, flags?: number, setup?: (_: {
|
|
228
|
+
createSelector: (source: () => any) => (cb: () => void) => void;
|
|
229
|
+
}) => void) => VaporFragment;
|
|
225
230
|
export declare function createForSlots(rawSource: Source, getSlot: (item: any, key: any, index?: number) => DynamicSlot): DynamicSlot[];
|
|
226
231
|
export declare function getRestElement(val: any, keys: string[]): any;
|
|
227
232
|
export declare function getDefaultValue(val: any, defaultVal: any): any;
|