@histoire/vendors 0.17.4 → 0.17.6
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/client/b-pinia.js +9 -8
- package/dist/client/b-vue-router.js +13 -13
- package/dist/client/node_modules/@babel/parser/package.json +4 -4
- package/dist/client/node_modules/@vue/compiler-core/dist/compiler-core.d.ts +9 -3
- package/dist/client/node_modules/@vue/compiler-core/package.json +4 -4
- package/dist/client/node_modules/@vue/compiler-dom/package.json +3 -3
- package/dist/client/node_modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +8 -7
- package/dist/client/node_modules/@vue/compiler-sfc/package.json +16 -18
- package/dist/client/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/dist/client/node_modules/@vue/reactivity/dist/reactivity.d.ts +50 -74
- package/dist/client/node_modules/@vue/reactivity/package.json +2 -2
- package/dist/client/node_modules/@vue/reactivity-transform/dist/reactivity-transform.d.ts +9 -0
- package/dist/client/node_modules/@vue/reactivity-transform/package.json +7 -7
- package/dist/client/node_modules/@vue/runtime-core/dist/runtime-core.d.ts +77 -204
- package/dist/client/node_modules/@vue/runtime-core/package.json +3 -3
- package/dist/client/node_modules/@vue/runtime-dom/dist/runtime-dom.d.ts +16 -14
- package/dist/client/node_modules/@vue/runtime-dom/package.json +4 -4
- package/dist/client/node_modules/@vue/server-renderer/dist/server-renderer.d.ts +0 -2
- package/dist/client/node_modules/@vue/server-renderer/package.json +4 -4
- package/dist/client/node_modules/@vue/shared/dist/shared.d.ts +8 -3
- package/dist/client/node_modules/@vue/shared/package.json +1 -1
- package/dist/client/node_modules/nanoid/package.json +33 -11
- package/dist/client/node_modules/pinia/dist/pinia.d.ts +9 -0
- package/dist/client/node_modules/pinia/package.json +1 -1
- package/dist/client/node_modules/vue/jsx-runtime/index.d.ts +1 -6
- package/dist/client/node_modules/vue/jsx.d.ts +1 -6
- package/dist/client/node_modules/vue/package.json +16 -6
- package/dist/client/node_modules/vue-router/dist/vue-router.d.ts +21 -16
- package/dist/client/node_modules/vue-router/package.json +19 -15
- package/dist/client/vue.runtime.esm-bundler.js +707 -645
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed as computed$1, ShallowUnwrapRef, UnwrapNestedRefs, DebuggerEvent, ComputedGetter, WritableComputedOptions, Ref,
|
|
1
|
+
import { computed as computed$1, ShallowUnwrapRef, UnwrapNestedRefs, DebuggerEvent, ComputedGetter, WritableComputedOptions, Ref, ReactiveEffect, ComputedRef, DebuggerOptions, reactive } from '@vue/reactivity';
|
|
2
2
|
export { ComputedGetter, ComputedRef, ComputedSetter, CustomRefFactory, DebuggerEvent, DebuggerEventExtraInfo, DebuggerOptions, DeepReadonly, EffectScheduler, EffectScope, MaybeRef, MaybeRefOrGetter, Raw, ReactiveEffect, ReactiveEffectOptions, ReactiveEffectRunner, ReactiveFlags, Ref, ShallowReactive, ShallowRef, ShallowUnwrapRef, ToRef, ToRefs, TrackOpTypes, TriggerOpTypes, UnwrapNestedRefs, UnwrapRef, WritableComputedOptions, WritableComputedRef, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
|
|
3
|
-
import { IfAny, Prettify,
|
|
3
|
+
import { IfAny, Prettify, Awaited, UnionToIntersection, LooseRequired } from '@vue/shared';
|
|
4
4
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
5
5
|
|
|
6
6
|
export declare const computed: typeof computed$1;
|
|
@@ -21,8 +21,6 @@ type UnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>>
|
|
|
21
21
|
type RawSlots = {
|
|
22
22
|
[name: string]: unknown;
|
|
23
23
|
$stable?: boolean;
|
|
24
|
-
/* removed internal: _ctx */
|
|
25
|
-
/* removed internal: _ */
|
|
26
24
|
};
|
|
27
25
|
|
|
28
26
|
interface SchedulerJob extends Function {
|
|
@@ -54,7 +52,7 @@ interface SchedulerJob extends Function {
|
|
|
54
52
|
ownerInstance?: ComponentInternalInstance;
|
|
55
53
|
}
|
|
56
54
|
type SchedulerJobs = SchedulerJob | SchedulerJob[];
|
|
57
|
-
export declare function nextTick<T = void>(this: T, fn?: (this: T) =>
|
|
55
|
+
export declare function nextTick<T = void, R = void>(this: T, fn?: (this: T) => R): Promise<Awaited<R>>;
|
|
58
56
|
export declare function queuePostFlushCb(cb: SchedulerJobs): void;
|
|
59
57
|
|
|
60
58
|
export type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
|
|
@@ -100,7 +98,7 @@ type MixinToOptionTypes<T> = T extends ComponentOptionsBase<infer P, infer B, in
|
|
|
100
98
|
type ExtractMixin<T> = {
|
|
101
99
|
Mixin: MixinToOptionTypes<T>;
|
|
102
100
|
}[T extends ComponentOptionsMixin ? 'Mixin' : never];
|
|
103
|
-
type IntersectionMixin<T> = IsDefaultMixinComponent<T> extends true ? OptionTypesType
|
|
101
|
+
type IntersectionMixin<T> = IsDefaultMixinComponent<T> extends true ? OptionTypesType : UnionToIntersection<ExtractMixin<T>>;
|
|
104
102
|
type UnwrapMixinsType<T, Type extends OptionTypesKeys> = T extends OptionTypesType ? T[Type] : never;
|
|
105
103
|
type EnsureNonVoid<T> = T extends void ? {} : T;
|
|
106
104
|
type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props, RawBindings, D, C, M> = ComponentPublicInstance<any>, Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = {
|
|
@@ -116,7 +114,7 @@ D = {}, // return from data()
|
|
|
116
114
|
C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>, I extends ComponentInjectOptions = {}, S extends SlotsType = {}> = {
|
|
117
115
|
$: ComponentInternalInstance;
|
|
118
116
|
$data: D;
|
|
119
|
-
$props:
|
|
117
|
+
$props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<Prettify<P> & PublicProps, keyof Defaults> : Prettify<P> & PublicProps;
|
|
120
118
|
$attrs: Data;
|
|
121
119
|
$refs: Data;
|
|
122
120
|
$slots: UnwrapSlotsType<S>;
|
|
@@ -209,6 +207,69 @@ export type RootHydrateFunction = (vnode: VNode<Node, Element>, container: (Elem
|
|
|
209
207
|
_vnode?: VNode;
|
|
210
208
|
}) => void;
|
|
211
209
|
|
|
210
|
+
type Hook<T = () => void> = T | T[];
|
|
211
|
+
export interface BaseTransitionProps<HostElement = RendererElement> {
|
|
212
|
+
mode?: 'in-out' | 'out-in' | 'default';
|
|
213
|
+
appear?: boolean;
|
|
214
|
+
persisted?: boolean;
|
|
215
|
+
onBeforeEnter?: Hook<(el: HostElement) => void>;
|
|
216
|
+
onEnter?: Hook<(el: HostElement, done: () => void) => void>;
|
|
217
|
+
onAfterEnter?: Hook<(el: HostElement) => void>;
|
|
218
|
+
onEnterCancelled?: Hook<(el: HostElement) => void>;
|
|
219
|
+
onBeforeLeave?: Hook<(el: HostElement) => void>;
|
|
220
|
+
onLeave?: Hook<(el: HostElement, done: () => void) => void>;
|
|
221
|
+
onAfterLeave?: Hook<(el: HostElement) => void>;
|
|
222
|
+
onLeaveCancelled?: Hook<(el: HostElement) => void>;
|
|
223
|
+
onBeforeAppear?: Hook<(el: HostElement) => void>;
|
|
224
|
+
onAppear?: Hook<(el: HostElement, done: () => void) => void>;
|
|
225
|
+
onAfterAppear?: Hook<(el: HostElement) => void>;
|
|
226
|
+
onAppearCancelled?: Hook<(el: HostElement) => void>;
|
|
227
|
+
}
|
|
228
|
+
export interface TransitionHooks<HostElement = RendererElement> {
|
|
229
|
+
mode: BaseTransitionProps['mode'];
|
|
230
|
+
persisted: boolean;
|
|
231
|
+
beforeEnter(el: HostElement): void;
|
|
232
|
+
enter(el: HostElement): void;
|
|
233
|
+
leave(el: HostElement, remove: () => void): void;
|
|
234
|
+
clone(vnode: VNode): TransitionHooks<HostElement>;
|
|
235
|
+
afterLeave?(): void;
|
|
236
|
+
delayLeave?(el: HostElement, earlyRemove: () => void, delayedLeave: () => void): void;
|
|
237
|
+
delayedLeave?(): void;
|
|
238
|
+
}
|
|
239
|
+
export interface TransitionState {
|
|
240
|
+
isMounted: boolean;
|
|
241
|
+
isLeaving: boolean;
|
|
242
|
+
isUnmounting: boolean;
|
|
243
|
+
leavingVNodes: Map<any, Record<string, VNode>>;
|
|
244
|
+
}
|
|
245
|
+
export declare function useTransitionState(): TransitionState;
|
|
246
|
+
export declare const BaseTransitionPropsValidators: {
|
|
247
|
+
mode: StringConstructor;
|
|
248
|
+
appear: BooleanConstructor;
|
|
249
|
+
persisted: BooleanConstructor;
|
|
250
|
+
onBeforeEnter: (ArrayConstructor | FunctionConstructor)[];
|
|
251
|
+
onEnter: (ArrayConstructor | FunctionConstructor)[];
|
|
252
|
+
onAfterEnter: (ArrayConstructor | FunctionConstructor)[];
|
|
253
|
+
onEnterCancelled: (ArrayConstructor | FunctionConstructor)[];
|
|
254
|
+
onBeforeLeave: (ArrayConstructor | FunctionConstructor)[];
|
|
255
|
+
onLeave: (ArrayConstructor | FunctionConstructor)[];
|
|
256
|
+
onAfterLeave: (ArrayConstructor | FunctionConstructor)[];
|
|
257
|
+
onLeaveCancelled: (ArrayConstructor | FunctionConstructor)[];
|
|
258
|
+
onBeforeAppear: (ArrayConstructor | FunctionConstructor)[];
|
|
259
|
+
onAppear: (ArrayConstructor | FunctionConstructor)[];
|
|
260
|
+
onAfterAppear: (ArrayConstructor | FunctionConstructor)[];
|
|
261
|
+
onAppearCancelled: (ArrayConstructor | FunctionConstructor)[];
|
|
262
|
+
};
|
|
263
|
+
export declare const BaseTransition: new () => {
|
|
264
|
+
$props: BaseTransitionProps<any>;
|
|
265
|
+
$slots: {
|
|
266
|
+
default(): VNode[];
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks;
|
|
270
|
+
export declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): void;
|
|
271
|
+
export declare function getTransitionRawChildren(children: VNode[], keepComment?: boolean, parentKey?: VNode['key']): VNode[];
|
|
272
|
+
|
|
212
273
|
export interface Renderer<HostElement = RendererElement> {
|
|
213
274
|
render: RootRenderFunction<HostElement>;
|
|
214
275
|
createApp: CreateAppFunction<HostElement>;
|
|
@@ -329,8 +390,6 @@ interface PropOptions<T = any, D = T> {
|
|
|
329
390
|
required?: boolean;
|
|
330
391
|
default?: D | DefaultFactory<D> | null | undefined | object;
|
|
331
392
|
validator?(value: unknown): boolean;
|
|
332
|
-
/* removed internal: skipCheck */
|
|
333
|
-
/* removed internal: skipFactory */
|
|
334
393
|
}
|
|
335
394
|
export type PropType<T> = PropConstructor<T> | PropConstructor<T>[];
|
|
336
395
|
type PropConstructor<T = any> = {
|
|
@@ -408,19 +467,9 @@ export type ExtractPublicPropTypes<O> = {
|
|
|
408
467
|
} & {
|
|
409
468
|
[K in keyof Pick<O, PublicOptionalKeys<O>>]?: InferPropType<O[K]>;
|
|
410
469
|
};
|
|
411
|
-
declare const enum BooleanFlags {
|
|
412
|
-
shouldCast = 0,
|
|
413
|
-
shouldCastTrue = 1
|
|
414
|
-
}
|
|
415
470
|
export type ExtractDefaultPropTypes<O> = O extends object ? {
|
|
416
471
|
[K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]>;
|
|
417
472
|
} : {};
|
|
418
|
-
type NormalizedProp = null | (PropOptions & {
|
|
419
|
-
[BooleanFlags.shouldCast]?: boolean;
|
|
420
|
-
[BooleanFlags.shouldCastTrue]?: boolean;
|
|
421
|
-
});
|
|
422
|
-
type NormalizedProps = Record<string, NormalizedProp>;
|
|
423
|
-
type NormalizedPropsOptions = [NormalizedProps, string[]] | [];
|
|
424
473
|
|
|
425
474
|
/**
|
|
426
475
|
Runtime helper for applying directives to a vnode. Example usage:
|
|
@@ -509,23 +558,10 @@ export declare const enum DeprecationTypes {
|
|
|
509
558
|
FILTERS = "FILTERS",
|
|
510
559
|
PRIVATE_APIS = "PRIVATE_APIS"
|
|
511
560
|
}
|
|
512
|
-
declare function warnDeprecation(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): void;
|
|
513
561
|
type CompatConfig = Partial<Record<DeprecationTypes, boolean | 'suppress-warning'>> & {
|
|
514
562
|
MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3);
|
|
515
563
|
};
|
|
516
564
|
declare function configureCompat(config: CompatConfig): void;
|
|
517
|
-
declare function isCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, enableForBuiltIn?: boolean): boolean;
|
|
518
|
-
/**
|
|
519
|
-
* Use this for features where legacy usage is still possible, but will likely
|
|
520
|
-
* lead to runtime error if compat is disabled. (warn in all cases)
|
|
521
|
-
*/
|
|
522
|
-
declare function softAssertCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): boolean;
|
|
523
|
-
/**
|
|
524
|
-
* Use this for features with the same syntax but with mutually exclusive
|
|
525
|
-
* behavior in 2 vs 3. Only warn if compat is enabled.
|
|
526
|
-
* e.g. render function
|
|
527
|
-
*/
|
|
528
|
-
declare function checkCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): boolean;
|
|
529
565
|
|
|
530
566
|
/**
|
|
531
567
|
* Interface for declaring custom options.
|
|
@@ -559,10 +595,6 @@ export interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedO
|
|
|
559
595
|
expose?: string[];
|
|
560
596
|
serverPrefetch?(): void | Promise<any>;
|
|
561
597
|
compilerOptions?: RuntimeCompilerOptions;
|
|
562
|
-
/* removed internal: ssrRender */
|
|
563
|
-
/* removed internal: __ssrInlineRender */
|
|
564
|
-
/* removed internal: __asyncLoader */
|
|
565
|
-
/* removed internal: __asyncResolved */
|
|
566
598
|
call?: (this: unknown, ...args: unknown[]) => never;
|
|
567
599
|
__isFragment?: never;
|
|
568
600
|
__isTeleport?: never;
|
|
@@ -663,7 +695,6 @@ interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOpt
|
|
|
663
695
|
__differentiator?: keyof D | keyof C | keyof M;
|
|
664
696
|
}
|
|
665
697
|
type MergedHook<T = () => void> = T | T[];
|
|
666
|
-
type MergedComponentOptions = ComponentOptions & MergedComponentOptionsOverride;
|
|
667
698
|
type MergedComponentOptionsOverride = {
|
|
668
699
|
beforeCreate?: MergedHook;
|
|
669
700
|
created?: MergedHook;
|
|
@@ -737,7 +768,6 @@ export interface App<HostElement = any> {
|
|
|
737
768
|
*/
|
|
738
769
|
filter?(name: string): Function | undefined;
|
|
739
770
|
filter?(name: string, filter: Function): this;
|
|
740
|
-
/* removed internal: _createRoot */
|
|
741
771
|
}
|
|
742
772
|
export type OptionMergeFunction = (to: unknown, from: unknown) => any;
|
|
743
773
|
export interface AppConfig {
|
|
@@ -769,11 +799,6 @@ export interface AppContext {
|
|
|
769
799
|
components: Record<string, Component>;
|
|
770
800
|
directives: Record<string, Directive>;
|
|
771
801
|
provides: Record<string | symbol, any>;
|
|
772
|
-
/* removed internal: optionsCache */
|
|
773
|
-
/* removed internal: propsCache */
|
|
774
|
-
/* removed internal: emitsCache */
|
|
775
|
-
/* removed internal: reload */
|
|
776
|
-
/* removed internal: filters */
|
|
777
802
|
}
|
|
778
803
|
type PluginInstallFunction<Options> = Options extends unknown[] ? (app: App, ...options: Options) => any : (app: App, options: Options) => any;
|
|
779
804
|
export type Plugin<Options = any[]> = (PluginInstallFunction<Options> & {
|
|
@@ -783,69 +808,6 @@ export type Plugin<Options = any[]> = (PluginInstallFunction<Options> & {
|
|
|
783
808
|
};
|
|
784
809
|
export type CreateAppFunction<HostElement> = (rootComponent: Component, rootProps?: Data | null) => App<HostElement>;
|
|
785
810
|
|
|
786
|
-
type Hook<T = () => void> = T | T[];
|
|
787
|
-
export interface BaseTransitionProps<HostElement = RendererElement> {
|
|
788
|
-
mode?: 'in-out' | 'out-in' | 'default';
|
|
789
|
-
appear?: boolean;
|
|
790
|
-
persisted?: boolean;
|
|
791
|
-
onBeforeEnter?: Hook<(el: HostElement) => void>;
|
|
792
|
-
onEnter?: Hook<(el: HostElement, done: () => void) => void>;
|
|
793
|
-
onAfterEnter?: Hook<(el: HostElement) => void>;
|
|
794
|
-
onEnterCancelled?: Hook<(el: HostElement) => void>;
|
|
795
|
-
onBeforeLeave?: Hook<(el: HostElement) => void>;
|
|
796
|
-
onLeave?: Hook<(el: HostElement, done: () => void) => void>;
|
|
797
|
-
onAfterLeave?: Hook<(el: HostElement) => void>;
|
|
798
|
-
onLeaveCancelled?: Hook<(el: HostElement) => void>;
|
|
799
|
-
onBeforeAppear?: Hook<(el: HostElement) => void>;
|
|
800
|
-
onAppear?: Hook<(el: HostElement, done: () => void) => void>;
|
|
801
|
-
onAfterAppear?: Hook<(el: HostElement) => void>;
|
|
802
|
-
onAppearCancelled?: Hook<(el: HostElement) => void>;
|
|
803
|
-
}
|
|
804
|
-
export interface TransitionHooks<HostElement = RendererElement> {
|
|
805
|
-
mode: BaseTransitionProps['mode'];
|
|
806
|
-
persisted: boolean;
|
|
807
|
-
beforeEnter(el: HostElement): void;
|
|
808
|
-
enter(el: HostElement): void;
|
|
809
|
-
leave(el: HostElement, remove: () => void): void;
|
|
810
|
-
clone(vnode: VNode): TransitionHooks<HostElement>;
|
|
811
|
-
afterLeave?(): void;
|
|
812
|
-
delayLeave?(el: HostElement, earlyRemove: () => void, delayedLeave: () => void): void;
|
|
813
|
-
delayedLeave?(): void;
|
|
814
|
-
}
|
|
815
|
-
export interface TransitionState {
|
|
816
|
-
isMounted: boolean;
|
|
817
|
-
isLeaving: boolean;
|
|
818
|
-
isUnmounting: boolean;
|
|
819
|
-
leavingVNodes: Map<any, Record<string, VNode>>;
|
|
820
|
-
}
|
|
821
|
-
export declare function useTransitionState(): TransitionState;
|
|
822
|
-
export declare const BaseTransitionPropsValidators: {
|
|
823
|
-
mode: StringConstructor;
|
|
824
|
-
appear: BooleanConstructor;
|
|
825
|
-
persisted: BooleanConstructor;
|
|
826
|
-
onBeforeEnter: (ArrayConstructor | FunctionConstructor)[];
|
|
827
|
-
onEnter: (ArrayConstructor | FunctionConstructor)[];
|
|
828
|
-
onAfterEnter: (ArrayConstructor | FunctionConstructor)[];
|
|
829
|
-
onEnterCancelled: (ArrayConstructor | FunctionConstructor)[];
|
|
830
|
-
onBeforeLeave: (ArrayConstructor | FunctionConstructor)[];
|
|
831
|
-
onLeave: (ArrayConstructor | FunctionConstructor)[];
|
|
832
|
-
onAfterLeave: (ArrayConstructor | FunctionConstructor)[];
|
|
833
|
-
onLeaveCancelled: (ArrayConstructor | FunctionConstructor)[];
|
|
834
|
-
onBeforeAppear: (ArrayConstructor | FunctionConstructor)[];
|
|
835
|
-
onAppear: (ArrayConstructor | FunctionConstructor)[];
|
|
836
|
-
onAfterAppear: (ArrayConstructor | FunctionConstructor)[];
|
|
837
|
-
onAppearCancelled: (ArrayConstructor | FunctionConstructor)[];
|
|
838
|
-
};
|
|
839
|
-
export declare const BaseTransition: new () => {
|
|
840
|
-
$props: BaseTransitionProps<any>;
|
|
841
|
-
$slots: {
|
|
842
|
-
default(): VNode[];
|
|
843
|
-
};
|
|
844
|
-
};
|
|
845
|
-
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks;
|
|
846
|
-
export declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): void;
|
|
847
|
-
export declare function getTransitionRawChildren(children: VNode[], keepComment?: boolean, parentKey?: VNode['key']): VNode[];
|
|
848
|
-
|
|
849
811
|
type TeleportVNode = VNode<RendererNode, RendererElement, TeleportProps>;
|
|
850
812
|
export interface TeleportProps {
|
|
851
813
|
to: string | RendererElement | null | undefined;
|
|
@@ -854,7 +816,7 @@ export interface TeleportProps {
|
|
|
854
816
|
declare const TeleportImpl: {
|
|
855
817
|
__isTeleport: boolean;
|
|
856
818
|
process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
|
|
857
|
-
remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove:
|
|
819
|
+
remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, optimized: boolean, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: boolean): void;
|
|
858
820
|
move: typeof moveTeleport;
|
|
859
821
|
hydrate: typeof hydrateTeleport;
|
|
860
822
|
};
|
|
@@ -888,7 +850,6 @@ export declare function resolveDynamicComponent(component: unknown): VNodeTypes;
|
|
|
888
850
|
* @private
|
|
889
851
|
*/
|
|
890
852
|
export declare function resolveDirective(name: string): Directive | undefined;
|
|
891
|
-
/* removed internal: resolveFilter$1 */
|
|
892
853
|
|
|
893
854
|
export declare const Fragment: {
|
|
894
855
|
new (): {
|
|
@@ -922,15 +883,13 @@ export type VNodeProps = {
|
|
|
922
883
|
onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[];
|
|
923
884
|
onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
|
|
924
885
|
};
|
|
925
|
-
type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
|
|
886
|
+
type VNodeChildAtom = VNode | typeof NULL_DYNAMIC_COMPONENT | string | number | boolean | null | undefined | void;
|
|
926
887
|
export type VNodeArrayChildren = Array<VNodeArrayChildren | VNodeChildAtom>;
|
|
927
888
|
export type VNodeChild = VNodeChildAtom | VNodeArrayChildren;
|
|
928
889
|
export type VNodeNormalizedChildren = string | VNodeArrayChildren | RawSlots | null;
|
|
929
890
|
export interface VNode<HostNode = RendererNode, HostElement = RendererElement, ExtraProps = {
|
|
930
891
|
[key: string]: any;
|
|
931
892
|
}> {
|
|
932
|
-
/* removed internal: __v_isVNode */
|
|
933
|
-
|
|
934
893
|
type: VNodeTypes;
|
|
935
894
|
props: (VNodeProps & ExtraProps) | null;
|
|
936
895
|
key: string | number | symbol | null;
|
|
@@ -940,7 +899,6 @@ export interface VNode<HostNode = RendererNode, HostElement = RendererElement, E
|
|
|
940
899
|
* which is set alongside currentRenderingInstance.
|
|
941
900
|
*/
|
|
942
901
|
scopeId: string | null;
|
|
943
|
-
/* removed internal: slotScopeIds */
|
|
944
902
|
children: VNodeNormalizedChildren;
|
|
945
903
|
component: ComponentInternalInstance | null;
|
|
946
904
|
dirs: DirectiveBinding[] | null;
|
|
@@ -949,19 +907,10 @@ export interface VNode<HostNode = RendererNode, HostElement = RendererElement, E
|
|
|
949
907
|
anchor: HostNode | null;
|
|
950
908
|
target: HostElement | null;
|
|
951
909
|
targetAnchor: HostNode | null;
|
|
952
|
-
/* removed internal: staticCount */
|
|
953
910
|
suspense: SuspenseBoundary | null;
|
|
954
|
-
/* removed internal: ssContent */
|
|
955
|
-
/* removed internal: ssFallback */
|
|
956
911
|
shapeFlag: number;
|
|
957
912
|
patchFlag: number;
|
|
958
|
-
/* removed internal: dynamicProps */
|
|
959
|
-
/* removed internal: dynamicChildren */
|
|
960
913
|
appContext: AppContext | null;
|
|
961
|
-
/* removed internal: ctx */
|
|
962
|
-
/* removed internal: memo */
|
|
963
|
-
/* removed internal: isCompatRoot */
|
|
964
|
-
/* removed internal: ce */
|
|
965
914
|
}
|
|
966
915
|
/**
|
|
967
916
|
* Open a block.
|
|
@@ -1040,7 +989,6 @@ export declare function createStaticVNode(content: string, numberOfNodes: number
|
|
|
1040
989
|
* @private
|
|
1041
990
|
*/
|
|
1042
991
|
export declare function createCommentVNode(text?: string, asBlock?: boolean): VNode;
|
|
1043
|
-
declare function normalizeVNode(child: VNodeChild): VNode;
|
|
1044
992
|
export declare function mergeProps(...args: (Data & VNodeProps)[]): Data;
|
|
1045
993
|
|
|
1046
994
|
type Data = Record<string, unknown>;
|
|
@@ -1057,9 +1005,6 @@ export interface AllowedComponentProps {
|
|
|
1057
1005
|
style?: unknown;
|
|
1058
1006
|
}
|
|
1059
1007
|
interface ComponentInternalOptions {
|
|
1060
|
-
/* removed internal: __scopeId */
|
|
1061
|
-
/* removed internal: __cssModules */
|
|
1062
|
-
/* removed internal: __hmrId */
|
|
1063
1008
|
/**
|
|
1064
1009
|
* Compat build only, for bailing out of certain compatibility behavior
|
|
1065
1010
|
*/
|
|
@@ -1092,21 +1037,19 @@ interface ClassComponent {
|
|
|
1092
1037
|
* values, e.g. checking if its a function or not. This is mostly for internal
|
|
1093
1038
|
* implementation code.
|
|
1094
1039
|
*/
|
|
1095
|
-
export type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = ComponentOptions<Props, RawBindings, D, C, M> | FunctionalComponent<Props, any
|
|
1040
|
+
export type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = ComponentOptions<Props, RawBindings, D, C, M> | FunctionalComponent<Props, any>;
|
|
1096
1041
|
/**
|
|
1097
1042
|
* A type used in public APIs where a component type is expected.
|
|
1098
1043
|
* The constructor type is an artificial type returned by defineComponent().
|
|
1099
1044
|
*/
|
|
1100
1045
|
export type Component<Props = any, RawBindings = any, D = any, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions> = ConcreteComponent<Props, RawBindings, D, C, M> | ComponentPublicInstanceConstructor<Props>;
|
|
1101
1046
|
|
|
1102
|
-
type LifecycleHook<TFn = Function> = TFn[] | null;
|
|
1103
1047
|
export type SetupContext<E = EmitsOptions, S extends SlotsType = {}> = E extends any ? {
|
|
1104
1048
|
attrs: Data;
|
|
1105
1049
|
slots: UnwrapSlotsType<S>;
|
|
1106
1050
|
emit: EmitFn<E>;
|
|
1107
1051
|
expose: (exposed?: Record<string, any>) => void;
|
|
1108
1052
|
} : never;
|
|
1109
|
-
/* removed internal: InternalRenderFunction */
|
|
1110
1053
|
/**
|
|
1111
1054
|
* We expose a subset of properties on the internal instance as they are
|
|
1112
1055
|
* useful for advanced external libraries and tools.
|
|
@@ -1121,7 +1064,6 @@ export interface ComponentInternalInstance {
|
|
|
1121
1064
|
* Vnode representing this component in its parent's vdom tree
|
|
1122
1065
|
*/
|
|
1123
1066
|
vnode: VNode;
|
|
1124
|
-
/* removed internal: next */
|
|
1125
1067
|
/**
|
|
1126
1068
|
* Root vnode of this component's own vdom tree
|
|
1127
1069
|
*/
|
|
@@ -1134,25 +1076,9 @@ export interface ComponentInternalInstance {
|
|
|
1134
1076
|
* Bound effect runner to be passed to schedulers
|
|
1135
1077
|
*/
|
|
1136
1078
|
update: SchedulerJob;
|
|
1137
|
-
/* removed internal: render */
|
|
1138
|
-
/* removed internal: ssrRender */
|
|
1139
|
-
/* removed internal: provides */
|
|
1140
|
-
/* removed internal: scope */
|
|
1141
|
-
/* removed internal: accessCache */
|
|
1142
|
-
/* removed internal: renderCache */
|
|
1143
|
-
/* removed internal: components */
|
|
1144
|
-
/* removed internal: directives */
|
|
1145
|
-
/* removed internal: filters */
|
|
1146
|
-
/* removed internal: propsOptions */
|
|
1147
|
-
/* removed internal: emitsOptions */
|
|
1148
|
-
/* removed internal: inheritAttrs */
|
|
1149
|
-
/* removed internal: isCE */
|
|
1150
|
-
/* removed internal: ceReload */
|
|
1151
1079
|
proxy: ComponentPublicInstance | null;
|
|
1152
1080
|
exposed: Record<string, any> | null;
|
|
1153
1081
|
exposeProxy: Record<string, any> | null;
|
|
1154
|
-
/* removed internal: withProxy */
|
|
1155
|
-
/* removed internal: ctx */
|
|
1156
1082
|
data: Data;
|
|
1157
1083
|
props: Data;
|
|
1158
1084
|
attrs: Data;
|
|
@@ -1161,39 +1087,11 @@ export interface ComponentInternalInstance {
|
|
|
1161
1087
|
emit: EmitFn;
|
|
1162
1088
|
attrsProxy: Data | null;
|
|
1163
1089
|
slotsProxy: Slots | null;
|
|
1164
|
-
/* removed internal: emitted */
|
|
1165
|
-
/* removed internal: propsDefaults */
|
|
1166
|
-
/* removed internal: setupState */
|
|
1167
|
-
/* removed internal: devtoolsRawSetupState */
|
|
1168
|
-
/* removed internal: setupContext */
|
|
1169
|
-
/* removed internal: suspense */
|
|
1170
|
-
/* removed internal: suspenseId */
|
|
1171
|
-
/* removed internal: asyncDep */
|
|
1172
|
-
/* removed internal: asyncResolved */
|
|
1173
1090
|
isMounted: boolean;
|
|
1174
1091
|
isUnmounted: boolean;
|
|
1175
1092
|
isDeactivated: boolean;
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
/* removed internal: f */
|
|
1191
|
-
/* removed internal: n */
|
|
1192
|
-
/* removed internal: ut */
|
|
1193
1093
|
}
|
|
1194
|
-
declare function createComponentInstance(vnode: VNode, parent: ComponentInternalInstance | null, suspense: SuspenseBoundary | null): ComponentInternalInstance;
|
|
1195
1094
|
export declare const getCurrentInstance: () => ComponentInternalInstance | null;
|
|
1196
|
-
declare function setupComponent(instance: ComponentInternalInstance, isSSR?: boolean): Promise<void> | undefined;
|
|
1197
1095
|
/**
|
|
1198
1096
|
* For runtime-dom to register the compiler.
|
|
1199
1097
|
* Note the exported method uses any to avoid d.ts relying on the compiler types.
|
|
@@ -1257,6 +1155,7 @@ export interface AsyncComponentOptions<T = any> {
|
|
|
1257
1155
|
suspensible?: boolean;
|
|
1258
1156
|
onError?: (error: Error, retry: () => void, fail: () => void, attempts: number) => any;
|
|
1259
1157
|
}
|
|
1158
|
+
/*! #__NO_SIDE_EFFECTS__ */
|
|
1260
1159
|
export declare function defineAsyncComponent<T extends Component = {
|
|
1261
1160
|
new (): ComponentPublicInstance;
|
|
1262
1161
|
}>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T;
|
|
@@ -1383,7 +1282,7 @@ export declare function defineSlots<S extends Record<string, any> = Record<strin
|
|
|
1383
1282
|
* modelValue.value = "hello"
|
|
1384
1283
|
*
|
|
1385
1284
|
* // default model with options
|
|
1386
|
-
* const modelValue = defineModel<
|
|
1285
|
+
* const modelValue = defineModel<string>({ required: true })
|
|
1387
1286
|
*
|
|
1388
1287
|
* // with specified name (consumed via `v-model:count`)
|
|
1389
1288
|
* const count = defineModel<number>('count')
|
|
@@ -1423,7 +1322,7 @@ type InferDefault<P, T> = ((props: P) => T & {}) | (T extends NativeType ? T : n
|
|
|
1423
1322
|
type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof T> = Omit<T, keyof Defaults> & {
|
|
1424
1323
|
[K in keyof Defaults]-?: K extends keyof T ? Defaults[K] extends undefined ? T[K] : NotUndefined<T[K]> : never;
|
|
1425
1324
|
} & {
|
|
1426
|
-
readonly [K in BKeys]-?: boolean;
|
|
1325
|
+
readonly [K in BKeys]-?: K extends keyof Defaults ? Defaults[K] extends undefined ? boolean | undefined : boolean : boolean;
|
|
1427
1326
|
};
|
|
1428
1327
|
/**
|
|
1429
1328
|
* Vue `<script setup>` compiler macro for providing props default values when
|
|
@@ -1451,10 +1350,6 @@ export declare function useAttrs(): SetupContext['attrs'];
|
|
|
1451
1350
|
export declare function useModel<T extends Record<string, any>, K extends keyof T>(props: T, name: K, options?: {
|
|
1452
1351
|
local?: boolean;
|
|
1453
1352
|
}): Ref<T[K]>;
|
|
1454
|
-
/* removed internal: mergeDefaults */
|
|
1455
|
-
/* removed internal: mergeModels */
|
|
1456
|
-
/* removed internal: createPropsRestProxy */
|
|
1457
|
-
/* removed internal: withAsyncContext */
|
|
1458
1353
|
|
|
1459
1354
|
type RawProps = VNodeProps & {
|
|
1460
1355
|
__v_isVNode?: never;
|
|
@@ -1488,12 +1383,13 @@ export declare function h(type: Constructor, children?: RawChildren): VNode;
|
|
|
1488
1383
|
export declare function h<P>(type: Constructor<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
1489
1384
|
export declare function h(type: DefineComponent, children?: RawChildren): VNode;
|
|
1490
1385
|
export declare function h<P>(type: DefineComponent<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
1386
|
+
export declare function h(type: string | Component, children?: RawChildren): VNode;
|
|
1387
|
+
export declare function h<P>(type: string | Component<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
1491
1388
|
|
|
1492
1389
|
export declare const ssrContextKey: unique symbol;
|
|
1493
1390
|
export declare const useSSRContext: <T = Record<string, any>>() => T | undefined;
|
|
1494
1391
|
|
|
1495
1392
|
export declare function warn(msg: string, ...args: any[]): void;
|
|
1496
|
-
/* removed internal: assertNumber */
|
|
1497
1393
|
|
|
1498
1394
|
export declare const enum ErrorCodes {
|
|
1499
1395
|
SETUP_FUNCTION = 0,
|
|
@@ -1534,7 +1430,7 @@ interface DevtoolsHook {
|
|
|
1534
1430
|
appRecords: AppRecord[];
|
|
1535
1431
|
/**
|
|
1536
1432
|
* Added at https://github.com/vuejs/devtools/commit/f2ad51eea789006ab66942e5a27c0f0986a257f9
|
|
1537
|
-
* Returns
|
|
1433
|
+
* Returns whether the arg was buffered or not
|
|
1538
1434
|
*/
|
|
1539
1435
|
cleanupBuffer?: (matchArg: unknown) => boolean;
|
|
1540
1436
|
}
|
|
@@ -1551,17 +1447,6 @@ declare function createRecord(id: string, initialDef: HMRComponent): boolean;
|
|
|
1551
1447
|
declare function rerender(id: string, newRender?: Function): void;
|
|
1552
1448
|
declare function reload(id: string, newComp: HMRComponent): void;
|
|
1553
1449
|
|
|
1554
|
-
/**
|
|
1555
|
-
* Note: rendering calls maybe nested. The function returns the parent rendering
|
|
1556
|
-
* instance if present, which should be restored after the render is done:
|
|
1557
|
-
*
|
|
1558
|
-
* ```js
|
|
1559
|
-
* const prev = setCurrentRenderingInstance(i)
|
|
1560
|
-
* // ...render
|
|
1561
|
-
* setCurrentRenderingInstance(prev)
|
|
1562
|
-
* ```
|
|
1563
|
-
*/
|
|
1564
|
-
declare function setCurrentRenderingInstance(instance: ComponentInternalInstance | null): ComponentInternalInstance | null;
|
|
1565
1450
|
/**
|
|
1566
1451
|
* Set scope id when creating hoisted vnodes.
|
|
1567
1452
|
* @private compiler helper
|
|
@@ -1635,8 +1520,6 @@ export declare function withMemo(memo: any[], render: () => VNode<any, any>, cac
|
|
|
1635
1520
|
}>;
|
|
1636
1521
|
export declare function isMemoSame(cached: VNode, memo: any[]): boolean;
|
|
1637
1522
|
|
|
1638
|
-
declare function renderComponentRoot(instance: ComponentInternalInstance): VNode;
|
|
1639
|
-
|
|
1640
1523
|
export type LegacyConfig = {
|
|
1641
1524
|
/**
|
|
1642
1525
|
* @deprecated `config.silent` option has been removed
|
|
@@ -1716,12 +1599,7 @@ export type CompatVue = Pick<App, 'version' | 'component' | 'directive'> & {
|
|
|
1716
1599
|
* @deprecated filters have been removed from Vue 3.
|
|
1717
1600
|
*/
|
|
1718
1601
|
filter(name: string, arg?: any): null;
|
|
1719
|
-
/* removed internal: cid */
|
|
1720
|
-
/* removed internal: options */
|
|
1721
|
-
/* removed internal: util */
|
|
1722
|
-
/* removed internal: super */
|
|
1723
1602
|
};
|
|
1724
|
-
declare function createCompatVue(createApp: CreateAppFunction<Element>, createSingletonApp: CreateAppFunction<Element>): CompatVue;
|
|
1725
1603
|
|
|
1726
1604
|
export declare const version: string;
|
|
1727
1605
|
|
|
@@ -1733,11 +1611,6 @@ declare module '@vue/reactivity' {
|
|
|
1733
1611
|
}
|
|
1734
1612
|
}
|
|
1735
1613
|
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
1614
|
export { createBaseVNode as createElementVNode, };
|
|
1742
1615
|
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
1743
1616
|
// build.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.8",
|
|
4
4
|
"description": "@vue/runtime-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/runtime-core.esm-bundler.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vue/shared": "3.3.
|
|
36
|
-
"@vue/reactivity": "3.3.
|
|
35
|
+
"@vue/shared": "3.3.8",
|
|
36
|
+
"@vue/reactivity": "3.3.8"
|
|
37
37
|
}
|
|
38
38
|
}
|