@vue/runtime-core 3.3.0-alpha.5 → 3.3.0-alpha.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/runtime-core.cjs.js +20 -9
- package/dist/runtime-core.cjs.prod.js +15 -7
- package/dist/runtime-core.d.ts +230 -213
- package/dist/runtime-core.esm-bundler.js +20 -10
- package/package.json +3 -3
package/dist/runtime-core.cjs.js
CHANGED
|
@@ -2191,8 +2191,8 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
2191
2191
|
return ret;
|
|
2192
2192
|
}
|
|
2193
2193
|
|
|
2194
|
-
function defineComponent(options) {
|
|
2195
|
-
return shared.isFunction(options) ? { setup: options, name: options.name } : options;
|
|
2194
|
+
function defineComponent(options, extraOptions) {
|
|
2195
|
+
return shared.isFunction(options) ? shared.extend({}, extraOptions, { setup: options, name: options.name }) : options;
|
|
2196
2196
|
}
|
|
2197
2197
|
|
|
2198
2198
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
@@ -3695,7 +3695,7 @@ function resolvePropValue(options, props, key, value, instance, isAbsent) {
|
|
|
3695
3695
|
const hasDefault = shared.hasOwn(opt, "default");
|
|
3696
3696
|
if (hasDefault && value === void 0) {
|
|
3697
3697
|
const defaultValue = opt.default;
|
|
3698
|
-
if (opt.type !== Function && shared.isFunction(defaultValue)) {
|
|
3698
|
+
if (opt.type !== Function && !opt.skipFactory && shared.isFunction(defaultValue)) {
|
|
3699
3699
|
const { propsDefaults } = instance;
|
|
3700
3700
|
if (key in propsDefaults) {
|
|
3701
3701
|
value = propsDefaults[key];
|
|
@@ -3831,7 +3831,7 @@ function validateProps(rawProps, props, instance) {
|
|
|
3831
3831
|
}
|
|
3832
3832
|
}
|
|
3833
3833
|
function validateProp(name, value, prop, isAbsent) {
|
|
3834
|
-
const { type, required, validator } = prop;
|
|
3834
|
+
const { type, required, validator, skipCheck } = prop;
|
|
3835
3835
|
if (required && isAbsent) {
|
|
3836
3836
|
warn('Missing required prop: "' + name + '"');
|
|
3837
3837
|
return;
|
|
@@ -3839,7 +3839,7 @@ function validateProp(name, value, prop, isAbsent) {
|
|
|
3839
3839
|
if (value == null && !prop.required) {
|
|
3840
3840
|
return;
|
|
3841
3841
|
}
|
|
3842
|
-
if (type != null && type !== true) {
|
|
3842
|
+
if (type != null && type !== true && !skipCheck) {
|
|
3843
3843
|
let isValid = false;
|
|
3844
3844
|
const types = shared.isArray(type) ? type : [type];
|
|
3845
3845
|
const expectedTypes = [];
|
|
@@ -7240,6 +7240,11 @@ function defineExpose(exposed) {
|
|
|
7240
7240
|
warnRuntimeUsage(`defineExpose`);
|
|
7241
7241
|
}
|
|
7242
7242
|
}
|
|
7243
|
+
function defineOptions(options) {
|
|
7244
|
+
{
|
|
7245
|
+
warnRuntimeUsage(`defineOptions`);
|
|
7246
|
+
}
|
|
7247
|
+
}
|
|
7243
7248
|
function withDefaults(props, defaults) {
|
|
7244
7249
|
{
|
|
7245
7250
|
warnRuntimeUsage(`withDefaults`);
|
|
@@ -7265,18 +7270,23 @@ function mergeDefaults(raw, defaults) {
|
|
|
7265
7270
|
{}
|
|
7266
7271
|
) : raw;
|
|
7267
7272
|
for (const key in defaults) {
|
|
7268
|
-
|
|
7273
|
+
if (key.startsWith("__skip"))
|
|
7274
|
+
continue;
|
|
7275
|
+
let opt = props[key];
|
|
7269
7276
|
if (opt) {
|
|
7270
7277
|
if (shared.isArray(opt) || shared.isFunction(opt)) {
|
|
7271
|
-
props[key] = { type: opt, default: defaults[key] };
|
|
7278
|
+
opt = props[key] = { type: opt, default: defaults[key] };
|
|
7272
7279
|
} else {
|
|
7273
7280
|
opt.default = defaults[key];
|
|
7274
7281
|
}
|
|
7275
7282
|
} else if (opt === null) {
|
|
7276
|
-
props[key] = { default: defaults[key] };
|
|
7283
|
+
opt = props[key] = { default: defaults[key] };
|
|
7277
7284
|
} else {
|
|
7278
7285
|
warn(`props default key "${key}" has no corresponding declaration.`);
|
|
7279
7286
|
}
|
|
7287
|
+
if (opt && defaults[`__skip_${key}`]) {
|
|
7288
|
+
opt.skipFactory = true;
|
|
7289
|
+
}
|
|
7280
7290
|
}
|
|
7281
7291
|
return props;
|
|
7282
7292
|
}
|
|
@@ -7549,7 +7559,7 @@ function isMemoSame(cached, memo) {
|
|
|
7549
7559
|
return true;
|
|
7550
7560
|
}
|
|
7551
7561
|
|
|
7552
|
-
const version = "3.3.0-alpha.
|
|
7562
|
+
const version = "3.3.0-alpha.6";
|
|
7553
7563
|
const _ssrUtils = {
|
|
7554
7564
|
createComponentInstance,
|
|
7555
7565
|
setupComponent,
|
|
@@ -7625,6 +7635,7 @@ exports.defineAsyncComponent = defineAsyncComponent;
|
|
|
7625
7635
|
exports.defineComponent = defineComponent;
|
|
7626
7636
|
exports.defineEmits = defineEmits;
|
|
7627
7637
|
exports.defineExpose = defineExpose;
|
|
7638
|
+
exports.defineOptions = defineOptions;
|
|
7628
7639
|
exports.defineProps = defineProps;
|
|
7629
7640
|
exports.getCurrentInstance = getCurrentInstance;
|
|
7630
7641
|
exports.getTransitionRawChildren = getTransitionRawChildren;
|
|
@@ -1631,8 +1631,8 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
1631
1631
|
return ret;
|
|
1632
1632
|
}
|
|
1633
1633
|
|
|
1634
|
-
function defineComponent(options) {
|
|
1635
|
-
return shared.isFunction(options) ? { setup: options, name: options.name } : options;
|
|
1634
|
+
function defineComponent(options, extraOptions) {
|
|
1635
|
+
return shared.isFunction(options) ? shared.extend({}, extraOptions, { setup: options, name: options.name }) : options;
|
|
1636
1636
|
}
|
|
1637
1637
|
|
|
1638
1638
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
@@ -2883,7 +2883,7 @@ function resolvePropValue(options, props, key, value, instance, isAbsent) {
|
|
|
2883
2883
|
const hasDefault = shared.hasOwn(opt, "default");
|
|
2884
2884
|
if (hasDefault && value === void 0) {
|
|
2885
2885
|
const defaultValue = opt.default;
|
|
2886
|
-
if (opt.type !== Function && shared.isFunction(defaultValue)) {
|
|
2886
|
+
if (opt.type !== Function && !opt.skipFactory && shared.isFunction(defaultValue)) {
|
|
2887
2887
|
const { propsDefaults } = instance;
|
|
2888
2888
|
if (key in propsDefaults) {
|
|
2889
2889
|
value = propsDefaults[key];
|
|
@@ -5807,6 +5807,8 @@ function defineEmits() {
|
|
|
5807
5807
|
}
|
|
5808
5808
|
function defineExpose(exposed) {
|
|
5809
5809
|
}
|
|
5810
|
+
function defineOptions(options) {
|
|
5811
|
+
}
|
|
5810
5812
|
function withDefaults(props, defaults) {
|
|
5811
5813
|
return null;
|
|
5812
5814
|
}
|
|
@@ -5826,16 +5828,21 @@ function mergeDefaults(raw, defaults) {
|
|
|
5826
5828
|
{}
|
|
5827
5829
|
) : raw;
|
|
5828
5830
|
for (const key in defaults) {
|
|
5829
|
-
|
|
5831
|
+
if (key.startsWith("__skip"))
|
|
5832
|
+
continue;
|
|
5833
|
+
let opt = props[key];
|
|
5830
5834
|
if (opt) {
|
|
5831
5835
|
if (shared.isArray(opt) || shared.isFunction(opt)) {
|
|
5832
|
-
props[key] = { type: opt, default: defaults[key] };
|
|
5836
|
+
opt = props[key] = { type: opt, default: defaults[key] };
|
|
5833
5837
|
} else {
|
|
5834
5838
|
opt.default = defaults[key];
|
|
5835
5839
|
}
|
|
5836
5840
|
} else if (opt === null) {
|
|
5837
|
-
props[key] = { default: defaults[key] };
|
|
5841
|
+
opt = props[key] = { default: defaults[key] };
|
|
5838
5842
|
} else ;
|
|
5843
|
+
if (opt && defaults[`__skip_${key}`]) {
|
|
5844
|
+
opt.skipFactory = true;
|
|
5845
|
+
}
|
|
5839
5846
|
}
|
|
5840
5847
|
return props;
|
|
5841
5848
|
}
|
|
@@ -5924,7 +5931,7 @@ function isMemoSame(cached, memo) {
|
|
|
5924
5931
|
return true;
|
|
5925
5932
|
}
|
|
5926
5933
|
|
|
5927
|
-
const version = "3.3.0-alpha.
|
|
5934
|
+
const version = "3.3.0-alpha.6";
|
|
5928
5935
|
const _ssrUtils = {
|
|
5929
5936
|
createComponentInstance,
|
|
5930
5937
|
setupComponent,
|
|
@@ -6000,6 +6007,7 @@ exports.defineAsyncComponent = defineAsyncComponent;
|
|
|
6000
6007
|
exports.defineComponent = defineComponent;
|
|
6001
6008
|
exports.defineEmits = defineEmits;
|
|
6002
6009
|
exports.defineExpose = defineExpose;
|
|
6010
|
+
exports.defineOptions = defineOptions;
|
|
6003
6011
|
exports.defineProps = defineProps;
|
|
6004
6012
|
exports.getCurrentInstance = getCurrentInstance;
|
|
6005
6013
|
exports.getTransitionRawChildren = getTransitionRawChildren;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -3,21 +3,21 @@ export { ComputedGetter, ComputedRef, ComputedSetter, CustomRefFactory, Debugger
|
|
|
3
3
|
import { SlotFlags, UnionToIntersection, Prettify, IfAny, LooseRequired } from '@vue/shared';
|
|
4
4
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
5
5
|
|
|
6
|
-
declare const computed: typeof computed$1;
|
|
6
|
+
export declare const computed: typeof computed$1;
|
|
7
7
|
|
|
8
8
|
export type Slot = (...args: any[]) => VNode[];
|
|
9
|
-
|
|
9
|
+
type InternalSlots = {
|
|
10
10
|
[name: string]: Slot | undefined;
|
|
11
11
|
};
|
|
12
12
|
export type Slots = Readonly<InternalSlots>;
|
|
13
|
-
|
|
13
|
+
type RawSlots = {
|
|
14
14
|
[name: string]: unknown;
|
|
15
15
|
$stable?: boolean;
|
|
16
16
|
/* removed internal: _ctx */
|
|
17
17
|
/* removed internal: _ */
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
interface SchedulerJob extends Function {
|
|
21
21
|
id?: number;
|
|
22
22
|
pre?: boolean;
|
|
23
23
|
active?: boolean;
|
|
@@ -45,18 +45,18 @@ export interface SchedulerJob extends Function {
|
|
|
45
45
|
*/
|
|
46
46
|
ownerInstance?: ComponentInternalInstance;
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
declare function nextTick<T = void>(this: T, fn?: (this: T) => void): Promise<void>;
|
|
50
|
-
declare function queuePostFlushCb(cb: SchedulerJobs): void;
|
|
48
|
+
type SchedulerJobs = SchedulerJob | SchedulerJob[];
|
|
49
|
+
export declare function nextTick<T = void>(this: T, fn?: (this: T) => void): Promise<void>;
|
|
50
|
+
export declare function queuePostFlushCb(cb: SchedulerJobs): void;
|
|
51
51
|
|
|
52
52
|
export type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
|
|
53
53
|
export type EmitsOptions = ObjectEmitsOptions | string[];
|
|
54
|
-
|
|
54
|
+
type EmitsToProps<T extends EmitsOptions> = T extends string[] ? {
|
|
55
55
|
[K in string & `on${Capitalize<T[number]>}`]?: (...args: any[]) => any;
|
|
56
56
|
} : T extends ObjectEmitsOptions ? {
|
|
57
57
|
[K in string & `on${Capitalize<string & keyof T>}`]?: K extends `on${infer C}` ? T[Uncapitalize<C>] extends null ? (...args: any[]) => any : (...args: T[Uncapitalize<C>] extends (...args: infer P) => any ? P : never) => any : never;
|
|
58
58
|
} : {};
|
|
59
|
-
|
|
59
|
+
type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{
|
|
60
60
|
[key in Event]: Options[key] extends (...args: infer Args) => any ? (event: key, ...args: Args) => void : (event: key, ...args: any[]) => void;
|
|
61
61
|
}[Event]>;
|
|
62
62
|
|
|
@@ -87,15 +87,15 @@ export type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = k
|
|
|
87
87
|
*/
|
|
88
88
|
export interface ComponentCustomProperties {
|
|
89
89
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
type IsDefaultMixinComponent<T> = T extends ComponentOptionsMixin ? ComponentOptionsMixin extends T ? true : false : false;
|
|
91
|
+
type MixinToOptionTypes<T> = T extends ComponentOptionsBase<infer P, infer B, infer D, infer C, infer M, infer Mixin, infer Extends, any, any, infer Defaults> ? OptionTypesType<P & {}, B & {}, D & {}, C & {}, M & {}, Defaults & {}> & IntersectionMixin<Mixin> & IntersectionMixin<Extends> : never;
|
|
92
|
+
type ExtractMixin<T> = {
|
|
93
93
|
Mixin: MixinToOptionTypes<T>;
|
|
94
94
|
}[T extends ComponentOptionsMixin ? 'Mixin' : never];
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
type IntersectionMixin<T> = IsDefaultMixinComponent<T> extends true ? OptionTypesType<{}, {}, {}, {}, {}> : UnionToIntersection<ExtractMixin<T>>;
|
|
96
|
+
type UnwrapMixinsType<T, Type extends OptionTypesKeys> = T extends OptionTypesType ? T[Type] : never;
|
|
97
|
+
type EnsureNonVoid<T> = T extends void ? {} : T;
|
|
98
|
+
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> = {
|
|
99
99
|
__isFragment?: never;
|
|
100
100
|
__isTeleport?: never;
|
|
101
101
|
__isSuspense?: never;
|
|
@@ -153,7 +153,7 @@ declare const SuspenseImpl: {
|
|
|
153
153
|
create: typeof createSuspenseBoundary;
|
|
154
154
|
normalize: typeof normalizeSuspenseChildren;
|
|
155
155
|
};
|
|
156
|
-
declare const Suspense: {
|
|
156
|
+
export declare const Suspense: {
|
|
157
157
|
new (): {
|
|
158
158
|
$props: VNodeProps & SuspenseProps;
|
|
159
159
|
};
|
|
@@ -222,7 +222,7 @@ export interface RendererNode {
|
|
|
222
222
|
}
|
|
223
223
|
export interface RendererElement extends RendererNode {
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
interface RendererInternals<HostNode = RendererNode, HostElement = RendererElement> {
|
|
226
226
|
p: PatchFn;
|
|
227
227
|
um: UnmountFn;
|
|
228
228
|
r: RemoveFn;
|
|
@@ -234,18 +234,18 @@ export interface RendererInternals<HostNode = RendererNode, HostElement = Render
|
|
|
234
234
|
n: NextFn;
|
|
235
235
|
o: RendererOptions<HostNode, HostElement>;
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
type PatchFn = (n1: VNode | null, // null means this is a mount
|
|
238
238
|
n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, isSVG?: boolean, slotScopeIds?: string[] | null, optimized?: boolean) => void;
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
239
|
+
type MountChildrenFn = (children: VNodeArrayChildren, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, start?: number) => void;
|
|
240
|
+
type PatchChildrenFn = (n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean) => void;
|
|
241
|
+
type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null) => void;
|
|
242
|
+
type MoveFn = (vnode: VNode, container: RendererElement, anchor: RendererNode | null, type: MoveType, parentSuspense?: SuspenseBoundary | null) => void;
|
|
243
|
+
type NextFn = (vnode: VNode) => RendererNode | null;
|
|
244
|
+
type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
|
|
245
|
+
type RemoveFn = (vnode: VNode) => void;
|
|
246
|
+
type UnmountChildrenFn = (children: VNode[], parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean, start?: number) => void;
|
|
247
|
+
type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
|
|
248
|
+
type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
|
|
249
249
|
declare const enum MoveType {
|
|
250
250
|
ENTER = 0,
|
|
251
251
|
LEAVE = 1,
|
|
@@ -266,63 +266,65 @@ declare const enum MoveType {
|
|
|
266
266
|
* })
|
|
267
267
|
* ```
|
|
268
268
|
*/
|
|
269
|
-
declare function createRenderer<HostNode = RendererNode, HostElement = RendererElement>(options: RendererOptions<HostNode, HostElement>): Renderer<HostElement>;
|
|
270
|
-
declare function createHydrationRenderer(options: RendererOptions<Node, Element>): HydrationRenderer;
|
|
269
|
+
export declare function createRenderer<HostNode = RendererNode, HostElement = RendererElement>(options: RendererOptions<HostNode, HostElement>): Renderer<HostElement>;
|
|
270
|
+
export declare function createHydrationRenderer(options: RendererOptions<Node, Element>): HydrationRenderer;
|
|
271
271
|
|
|
272
|
-
|
|
272
|
+
type MatchPattern = string | RegExp | (string | RegExp)[];
|
|
273
273
|
export interface KeepAliveProps {
|
|
274
274
|
include?: MatchPattern;
|
|
275
275
|
exclude?: MatchPattern;
|
|
276
276
|
max?: number | string;
|
|
277
277
|
}
|
|
278
|
-
declare const KeepAlive: {
|
|
278
|
+
export declare const KeepAlive: {
|
|
279
279
|
new (): {
|
|
280
280
|
$props: VNodeProps & KeepAliveProps;
|
|
281
281
|
};
|
|
282
282
|
__isKeepAlive: true;
|
|
283
283
|
};
|
|
284
|
-
declare function onActivated(hook: Function, target?: ComponentInternalInstance | null): void;
|
|
285
|
-
declare function onDeactivated(hook: Function, target?: ComponentInternalInstance | null): void;
|
|
284
|
+
export declare function onActivated(hook: Function, target?: ComponentInternalInstance | null): void;
|
|
285
|
+
export declare function onDeactivated(hook: Function, target?: ComponentInternalInstance | null): void;
|
|
286
286
|
|
|
287
|
-
declare const onBeforeMount: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
288
|
-
declare const onMounted: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
289
|
-
declare const onBeforeUpdate: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
290
|
-
declare const onUpdated: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
291
|
-
declare const onBeforeUnmount: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
292
|
-
declare const onUnmounted: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
293
|
-
declare const onServerPrefetch: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
294
|
-
|
|
295
|
-
declare const onRenderTriggered: (hook: DebuggerHook, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
296
|
-
declare const onRenderTracked: (hook: DebuggerHook, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
297
|
-
|
|
298
|
-
declare function onErrorCaptured<TError = Error>(hook: ErrorCapturedHook<TError>, target?: ComponentInternalInstance | null): void;
|
|
287
|
+
export declare const onBeforeMount: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
288
|
+
export declare const onMounted: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
289
|
+
export declare const onBeforeUpdate: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
290
|
+
export declare const onUpdated: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
291
|
+
export declare const onBeforeUnmount: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
292
|
+
export declare const onUnmounted: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
293
|
+
export declare const onServerPrefetch: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
294
|
+
type DebuggerHook = (e: DebuggerEvent) => void;
|
|
295
|
+
export declare const onRenderTriggered: (hook: DebuggerHook, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
296
|
+
export declare const onRenderTracked: (hook: DebuggerHook, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
297
|
+
type ErrorCapturedHook<TError = unknown> = (err: TError, instance: ComponentPublicInstance | null, info: string) => boolean | void;
|
|
298
|
+
export declare function onErrorCaptured<TError = Error>(hook: ErrorCapturedHook<TError>, target?: ComponentInternalInstance | null): void;
|
|
299
299
|
|
|
300
300
|
export type ComponentPropsOptions<P = Data> = ComponentObjectPropsOptions<P> | string[];
|
|
301
301
|
export type ComponentObjectPropsOptions<P = Data> = {
|
|
302
302
|
[K in keyof P]: Prop<P[K]> | null;
|
|
303
303
|
};
|
|
304
304
|
export type Prop<T, D = T> = PropOptions<T, D> | PropType<T>;
|
|
305
|
-
|
|
306
|
-
|
|
305
|
+
type DefaultFactory<T> = (props: Data) => T | null | undefined;
|
|
306
|
+
interface PropOptions<T = any, D = T> {
|
|
307
307
|
type?: PropType<T> | true | null;
|
|
308
308
|
required?: boolean;
|
|
309
309
|
default?: D | DefaultFactory<D> | null | undefined | object;
|
|
310
310
|
validator?(value: unknown): boolean;
|
|
311
|
+
/* removed internal: skipCheck */
|
|
312
|
+
/* removed internal: skipFactory */
|
|
311
313
|
}
|
|
312
314
|
export type PropType<T> = PropConstructor<T> | PropConstructor<T>[];
|
|
313
|
-
|
|
315
|
+
type PropConstructor<T = any> = {
|
|
314
316
|
new (...args: any[]): T & {};
|
|
315
317
|
} | {
|
|
316
318
|
(): T;
|
|
317
319
|
} | PropMethod<T>;
|
|
318
|
-
|
|
320
|
+
type PropMethod<T, TConstructor = any> = [T] extends [
|
|
319
321
|
((...args: any) => any) | undefined
|
|
320
322
|
] ? {
|
|
321
323
|
new (): TConstructor;
|
|
322
324
|
(): T;
|
|
323
325
|
readonly prototype: TConstructor;
|
|
324
326
|
} : never;
|
|
325
|
-
|
|
327
|
+
type RequiredKeys<T> = {
|
|
326
328
|
[K in keyof T]: T[K] extends {
|
|
327
329
|
required: true;
|
|
328
330
|
} | {
|
|
@@ -333,8 +335,8 @@ export type RequiredKeys<T> = {
|
|
|
333
335
|
default: undefined | (() => undefined);
|
|
334
336
|
} ? never : K : never;
|
|
335
337
|
}[keyof T];
|
|
336
|
-
|
|
337
|
-
|
|
338
|
+
type OptionalKeys<T> = Exclude<keyof T, RequiredKeys<T>>;
|
|
339
|
+
type DefaultKeys<T> = {
|
|
338
340
|
[K in keyof T]: T[K] extends {
|
|
339
341
|
default: any;
|
|
340
342
|
} | BooleanConstructor | {
|
|
@@ -344,7 +346,7 @@ export type DefaultKeys<T> = {
|
|
|
344
346
|
required: true;
|
|
345
347
|
} ? never : K : never;
|
|
346
348
|
}[keyof T];
|
|
347
|
-
|
|
349
|
+
type InferPropType<T> = [T] extends [null] ? any : [T] extends [{
|
|
348
350
|
type: null | true;
|
|
349
351
|
}] ? any : [T] extends [ObjectConstructor | {
|
|
350
352
|
type: ObjectConstructor;
|
|
@@ -367,12 +369,12 @@ declare const enum BooleanFlags {
|
|
|
367
369
|
export type ExtractDefaultPropTypes<O> = O extends object ? {
|
|
368
370
|
[K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]>;
|
|
369
371
|
} : {};
|
|
370
|
-
|
|
372
|
+
type NormalizedProp = null | (PropOptions & {
|
|
371
373
|
[BooleanFlags.shouldCast]?: boolean;
|
|
372
374
|
[BooleanFlags.shouldCastTrue]?: boolean;
|
|
373
375
|
});
|
|
374
|
-
|
|
375
|
-
|
|
376
|
+
type NormalizedProps = Record<string, NormalizedProp>;
|
|
377
|
+
type NormalizedPropsOptions = [NormalizedProps, string[]] | [];
|
|
376
378
|
|
|
377
379
|
/**
|
|
378
380
|
Runtime helper for applying directives to a vnode. Example usage:
|
|
@@ -396,7 +398,7 @@ export interface DirectiveBinding<V = any> {
|
|
|
396
398
|
dir: ObjectDirective<any, V>;
|
|
397
399
|
}
|
|
398
400
|
export type DirectiveHook<T = any, Prev = VNode<any, T> | null, V = any> = (el: T, binding: DirectiveBinding<V>, vnode: VNode<any, T>, prevVNode: Prev) => void;
|
|
399
|
-
|
|
401
|
+
type SSRDirectiveHook = (binding: DirectiveBinding, vnode: VNode) => Data | undefined;
|
|
400
402
|
export interface ObjectDirective<T = any, V = any> {
|
|
401
403
|
created?: DirectiveHook<T, null, V>;
|
|
402
404
|
beforeMount?: DirectiveHook<T, null, V>;
|
|
@@ -410,14 +412,14 @@ export interface ObjectDirective<T = any, V = any> {
|
|
|
410
412
|
}
|
|
411
413
|
export type FunctionDirective<T = any, V = any> = DirectiveHook<T, any, V>;
|
|
412
414
|
export type Directive<T = any, V = any> = ObjectDirective<T, V> | FunctionDirective<T, V>;
|
|
413
|
-
|
|
415
|
+
type DirectiveModifiers = Record<string, boolean>;
|
|
414
416
|
export type DirectiveArguments = Array<[Directive | undefined] | [Directive | undefined, any] | [Directive | undefined, any, string] | [Directive | undefined, any, string, DirectiveModifiers]>;
|
|
415
417
|
/**
|
|
416
418
|
* Adds directives to a VNode.
|
|
417
419
|
*/
|
|
418
|
-
declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T;
|
|
420
|
+
export declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T;
|
|
419
421
|
|
|
420
|
-
declare const enum DeprecationTypes {
|
|
422
|
+
export declare const enum DeprecationTypes {
|
|
421
423
|
GLOBAL_MOUNT = "GLOBAL_MOUNT",
|
|
422
424
|
GLOBAL_MOUNT_CONTAINER = "GLOBAL_MOUNT_CONTAINER",
|
|
423
425
|
GLOBAL_EXTEND = "GLOBAL_EXTEND",
|
|
@@ -462,7 +464,7 @@ declare const enum DeprecationTypes {
|
|
|
462
464
|
PRIVATE_APIS = "PRIVATE_APIS"
|
|
463
465
|
}
|
|
464
466
|
declare function warnDeprecation(key: DeprecationTypes, instance: ComponentInternalInstance | null, ...args: any[]): void;
|
|
465
|
-
|
|
467
|
+
type CompatConfig = Partial<Record<DeprecationTypes, boolean | 'suppress-warning'>> & {
|
|
466
468
|
MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3);
|
|
467
469
|
};
|
|
468
470
|
declare function configureCompat(config: CompatConfig): void;
|
|
@@ -546,30 +548,30 @@ export type ComputedOptions = Record<string, ComputedGetter<any> | WritableCompu
|
|
|
546
548
|
export interface MethodOptions {
|
|
547
549
|
[key: string]: Function;
|
|
548
550
|
}
|
|
549
|
-
|
|
551
|
+
type ExtractComputedReturns<T extends any> = {
|
|
550
552
|
[key in keyof T]: T[key] extends {
|
|
551
553
|
get: (...args: any[]) => infer TReturn;
|
|
552
554
|
} ? TReturn : T[key] extends (...args: any[]) => infer TReturn ? TReturn : never;
|
|
553
555
|
};
|
|
554
|
-
|
|
556
|
+
type ObjectWatchOptionItem = {
|
|
555
557
|
handler: WatchCallback | string;
|
|
556
558
|
} & WatchOptions;
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
559
|
+
type WatchOptionItem = string | WatchCallback | ObjectWatchOptionItem;
|
|
560
|
+
type ComponentWatchOptionItem = WatchOptionItem | WatchOptionItem[];
|
|
561
|
+
type ComponentWatchOptions = Record<string, ComponentWatchOptionItem>;
|
|
560
562
|
export type ComponentProvideOptions = ObjectProvideOptions | Function;
|
|
561
|
-
|
|
563
|
+
type ObjectProvideOptions = Record<string | symbol, unknown>;
|
|
562
564
|
export type ComponentInjectOptions = string[] | ObjectInjectOptions;
|
|
563
|
-
|
|
565
|
+
type ObjectInjectOptions = Record<string | symbol, string | symbol | {
|
|
564
566
|
from?: string | symbol;
|
|
565
567
|
default?: unknown;
|
|
566
568
|
}>;
|
|
567
|
-
|
|
569
|
+
type InjectToObject<T extends ComponentInjectOptions> = T extends string[] ? {
|
|
568
570
|
[K in T[number]]?: unknown;
|
|
569
571
|
} : T extends ObjectInjectOptions ? {
|
|
570
572
|
[K in keyof T]?: unknown;
|
|
571
573
|
} : never;
|
|
572
|
-
|
|
574
|
+
interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, I extends ComponentInjectOptions, II extends string> {
|
|
573
575
|
compatConfig?: CompatConfig;
|
|
574
576
|
[key: string]: any;
|
|
575
577
|
data?: (this: CreateComponentPublicInstance<Props, {}, {}, {}, MethodOptions, Mixin, Extends>, vm: CreateComponentPublicInstance<Props, {}, {}, {}, MethodOptions, Mixin, Extends>) => D;
|
|
@@ -613,9 +615,9 @@ export interface LegacyOptions<Props, D, C extends ComputedOptions, M extends Me
|
|
|
613
615
|
*/
|
|
614
616
|
__differentiator?: keyof D | keyof C | keyof M;
|
|
615
617
|
}
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
618
|
+
type MergedHook<T = () => void> = T | T[];
|
|
619
|
+
type MergedComponentOptions = ComponentOptions & MergedComponentOptionsOverride;
|
|
620
|
+
type MergedComponentOptionsOverride = {
|
|
619
621
|
beforeCreate?: MergedHook;
|
|
620
622
|
created?: MergedHook;
|
|
621
623
|
beforeMount?: MergedHook;
|
|
@@ -634,8 +636,8 @@ export type MergedComponentOptionsOverride = {
|
|
|
634
636
|
renderTriggered?: MergedHook<DebuggerHook>;
|
|
635
637
|
errorCaptured?: MergedHook<ErrorCapturedHook>;
|
|
636
638
|
};
|
|
637
|
-
|
|
638
|
-
|
|
639
|
+
type OptionTypesKeys = 'P' | 'B' | 'D' | 'C' | 'M' | 'Defaults';
|
|
640
|
+
type OptionTypesType<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Defaults = {}> = {
|
|
639
641
|
P: P;
|
|
640
642
|
B: B;
|
|
641
643
|
D: D;
|
|
@@ -646,10 +648,10 @@ export type OptionTypesType<P = {}, B = {}, D = {}, C extends ComputedOptions =
|
|
|
646
648
|
|
|
647
649
|
export interface InjectionKey<T> extends Symbol {
|
|
648
650
|
}
|
|
649
|
-
declare function provide<T>(key: InjectionKey<T> | string | number, value: T): void;
|
|
650
|
-
declare function inject<T>(key: InjectionKey<T> | string): T | undefined;
|
|
651
|
-
declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T, treatDefaultAsFactory?: false): T;
|
|
652
|
-
declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T | (() => T), treatDefaultAsFactory: true): T;
|
|
651
|
+
export declare function provide<T>(key: InjectionKey<T> | string | number, value: T): void;
|
|
652
|
+
export declare function inject<T>(key: InjectionKey<T> | string): T | undefined;
|
|
653
|
+
export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T, treatDefaultAsFactory?: false): T;
|
|
654
|
+
export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T | (() => T), treatDefaultAsFactory: true): T;
|
|
653
655
|
|
|
654
656
|
export interface App<HostElement = any> {
|
|
655
657
|
version: string;
|
|
@@ -713,7 +715,7 @@ export interface AppContext {
|
|
|
713
715
|
/* removed internal: reload */
|
|
714
716
|
/* removed internal: filters */
|
|
715
717
|
}
|
|
716
|
-
|
|
718
|
+
type PluginInstallFunction<Options> = Options extends unknown[] ? (app: App, ...options: Options) => any : (app: App, options: Options) => any;
|
|
717
719
|
export type Plugin<Options = any[]> = (PluginInstallFunction<Options> & {
|
|
718
720
|
install?: PluginInstallFunction<Options>;
|
|
719
721
|
}) | {
|
|
@@ -721,7 +723,7 @@ export type Plugin<Options = any[]> = (PluginInstallFunction<Options> & {
|
|
|
721
723
|
};
|
|
722
724
|
export type CreateAppFunction<HostElement> = (rootComponent: Component, rootProps?: Data | null) => App<HostElement>;
|
|
723
725
|
|
|
724
|
-
|
|
726
|
+
type Hook<T = () => void> = T | T[];
|
|
725
727
|
export interface BaseTransitionProps<HostElement = RendererElement> {
|
|
726
728
|
mode?: 'in-out' | 'out-in' | 'default';
|
|
727
729
|
appear?: boolean;
|
|
@@ -756,8 +758,8 @@ export interface TransitionState {
|
|
|
756
758
|
isUnmounting: boolean;
|
|
757
759
|
leavingVNodes: Map<any, Record<string, VNode>>;
|
|
758
760
|
}
|
|
759
|
-
declare function useTransitionState(): TransitionState;
|
|
760
|
-
declare const BaseTransitionPropsValidators: {
|
|
761
|
+
export declare function useTransitionState(): TransitionState;
|
|
762
|
+
export declare const BaseTransitionPropsValidators: {
|
|
761
763
|
mode: StringConstructor;
|
|
762
764
|
appear: BooleanConstructor;
|
|
763
765
|
persisted: BooleanConstructor;
|
|
@@ -774,14 +776,14 @@ declare const BaseTransitionPropsValidators: {
|
|
|
774
776
|
onAfterAppear: (ArrayConstructor | FunctionConstructor)[];
|
|
775
777
|
onAppearCancelled: (ArrayConstructor | FunctionConstructor)[];
|
|
776
778
|
};
|
|
777
|
-
declare const BaseTransition: new () => {
|
|
779
|
+
export declare const BaseTransition: new () => {
|
|
778
780
|
$props: BaseTransitionProps<any>;
|
|
779
781
|
};
|
|
780
|
-
declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks;
|
|
781
|
-
declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): void;
|
|
782
|
-
declare function getTransitionRawChildren(children: VNode[], keepComment?: boolean, parentKey?: VNode['key']): VNode[];
|
|
782
|
+
export declare function resolveTransitionHooks(vnode: VNode, props: BaseTransitionProps<any>, state: TransitionState, instance: ComponentInternalInstance): TransitionHooks;
|
|
783
|
+
export declare function setTransitionHooks(vnode: VNode, hooks: TransitionHooks): void;
|
|
784
|
+
export declare function getTransitionRawChildren(children: VNode[], keepComment?: boolean, parentKey?: VNode['key']): VNode[];
|
|
783
785
|
|
|
784
|
-
|
|
786
|
+
type TeleportVNode = VNode<RendererNode, RendererElement, TeleportProps>;
|
|
785
787
|
export interface TeleportProps {
|
|
786
788
|
to: string | RendererElement | null | undefined;
|
|
787
789
|
disabled?: boolean;
|
|
@@ -800,7 +802,7 @@ declare const enum TeleportMoveTypes {
|
|
|
800
802
|
}
|
|
801
803
|
declare function moveTeleport(vnode: VNode, container: RendererElement, parentAnchor: RendererNode | null, { o: { insert }, m: move }: RendererInternals, moveType?: TeleportMoveTypes): void;
|
|
802
804
|
declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean, { o: { nextSibling, parentNode, querySelector } }: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
|
|
803
|
-
declare const Teleport: {
|
|
805
|
+
export declare const Teleport: {
|
|
804
806
|
new (): {
|
|
805
807
|
$props: VNodeProps & TeleportProps;
|
|
806
808
|
};
|
|
@@ -810,38 +812,38 @@ declare const Teleport: {
|
|
|
810
812
|
/**
|
|
811
813
|
* @private
|
|
812
814
|
*/
|
|
813
|
-
declare function resolveComponent(name: string, maybeSelfReference?: boolean): ConcreteComponent | string;
|
|
815
|
+
export declare function resolveComponent(name: string, maybeSelfReference?: boolean): ConcreteComponent | string;
|
|
814
816
|
declare const NULL_DYNAMIC_COMPONENT: unique symbol;
|
|
815
817
|
/**
|
|
816
818
|
* @private
|
|
817
819
|
*/
|
|
818
|
-
declare function resolveDynamicComponent(component: unknown): VNodeTypes;
|
|
820
|
+
export declare function resolveDynamicComponent(component: unknown): VNodeTypes;
|
|
819
821
|
/**
|
|
820
822
|
* @private
|
|
821
823
|
*/
|
|
822
|
-
declare function resolveDirective(name: string): Directive | undefined;
|
|
824
|
+
export declare function resolveDirective(name: string): Directive | undefined;
|
|
823
825
|
/* removed internal: resolveFilter$1 */
|
|
824
826
|
|
|
825
|
-
declare const Fragment: {
|
|
827
|
+
export declare const Fragment: {
|
|
826
828
|
new (): {
|
|
827
829
|
$props: VNodeProps;
|
|
828
830
|
};
|
|
829
831
|
__isFragment: true;
|
|
830
832
|
};
|
|
831
|
-
declare const Text: unique symbol;
|
|
832
|
-
declare const Comment: unique symbol;
|
|
833
|
-
declare const Static: unique symbol;
|
|
833
|
+
export declare const Text: unique symbol;
|
|
834
|
+
export declare const Comment: unique symbol;
|
|
835
|
+
export declare const Static: unique symbol;
|
|
834
836
|
export type VNodeTypes = string | VNode | Component | typeof Text | typeof Static | typeof Comment | typeof Fragment | typeof Teleport | typeof TeleportImpl | typeof Suspense | typeof SuspenseImpl;
|
|
835
837
|
export type VNodeRef = string | Ref | ((ref: Element | ComponentPublicInstance | null, refs: Record<string, any>) => void);
|
|
836
|
-
|
|
838
|
+
type VNodeNormalizedRefAtom = {
|
|
837
839
|
i: ComponentInternalInstance;
|
|
838
840
|
r: VNodeRef;
|
|
839
841
|
k?: string;
|
|
840
842
|
f?: boolean;
|
|
841
843
|
};
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
844
|
+
type VNodeNormalizedRef = VNodeNormalizedRefAtom | VNodeNormalizedRefAtom[];
|
|
845
|
+
type VNodeMountHook = (vnode: VNode) => void;
|
|
846
|
+
type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
|
|
845
847
|
export type VNodeProps = {
|
|
846
848
|
key?: string | number | symbol;
|
|
847
849
|
ref?: VNodeRef;
|
|
@@ -854,7 +856,7 @@ export type VNodeProps = {
|
|
|
854
856
|
onVnodeBeforeUnmount?: VNodeMountHook | VNodeMountHook[];
|
|
855
857
|
onVnodeUnmounted?: VNodeMountHook | VNodeMountHook[];
|
|
856
858
|
};
|
|
857
|
-
|
|
859
|
+
type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
|
|
858
860
|
export type VNodeArrayChildren = Array<VNodeArrayChildren | VNodeChildAtom>;
|
|
859
861
|
export type VNodeChild = VNodeChildAtom | VNodeArrayChildren;
|
|
860
862
|
export type VNodeNormalizedChildren = string | VNodeArrayChildren | RawSlots | null;
|
|
@@ -911,7 +913,7 @@ export interface VNode<HostNode = RendererNode, HostElement = RendererElement, E
|
|
|
911
913
|
*
|
|
912
914
|
* @private
|
|
913
915
|
*/
|
|
914
|
-
declare function openBlock(disableTracking?: boolean): void;
|
|
916
|
+
export declare function openBlock(disableTracking?: boolean): void;
|
|
915
917
|
/**
|
|
916
918
|
* Block tracking sometimes needs to be disabled, for example during the
|
|
917
919
|
* creation of a tree that needs to be cached by v-once. The compiler generates
|
|
@@ -928,11 +930,11 @@ declare function openBlock(disableTracking?: boolean): void;
|
|
|
928
930
|
*
|
|
929
931
|
* @private
|
|
930
932
|
*/
|
|
931
|
-
declare function setBlockTracking(value: number): void;
|
|
933
|
+
export declare function setBlockTracking(value: number): void;
|
|
932
934
|
/**
|
|
933
935
|
* @private
|
|
934
936
|
*/
|
|
935
|
-
declare function createElementBlock(type: string | typeof Fragment, props?: Record<string, any> | null, children?: any, patchFlag?: number, dynamicProps?: string[], shapeFlag?: number): VNode<RendererNode, RendererElement, {
|
|
937
|
+
export declare function createElementBlock(type: string | typeof Fragment, props?: Record<string, any> | null, children?: any, patchFlag?: number, dynamicProps?: string[], shapeFlag?: number): VNode<RendererNode, RendererElement, {
|
|
936
938
|
[key: string]: any;
|
|
937
939
|
}>;
|
|
938
940
|
/**
|
|
@@ -942,8 +944,8 @@ declare function createElementBlock(type: string | typeof Fragment, props?: Reco
|
|
|
942
944
|
*
|
|
943
945
|
* @private
|
|
944
946
|
*/
|
|
945
|
-
declare function createBlock(type: VNodeTypes | ClassComponent, props?: Record<string, any> | null, children?: any, patchFlag?: number, dynamicProps?: string[]): VNode;
|
|
946
|
-
declare function isVNode(value: any): value is VNode;
|
|
947
|
+
export declare function createBlock(type: VNodeTypes | ClassComponent, props?: Record<string, any> | null, children?: any, patchFlag?: number, dynamicProps?: string[]): VNode;
|
|
948
|
+
export declare function isVNode(value: any): value is VNode;
|
|
947
949
|
declare let vnodeArgsTransformer: ((args: Parameters<typeof _createVNode>, instance: ComponentInternalInstance | null) => Parameters<typeof _createVNode>) | undefined;
|
|
948
950
|
/**
|
|
949
951
|
* Internal API for registering an arguments transform for createVNode
|
|
@@ -951,31 +953,31 @@ declare let vnodeArgsTransformer: ((args: Parameters<typeof _createVNode>, insta
|
|
|
951
953
|
* It is *internal* but needs to be exposed for test-utils to pick up proper
|
|
952
954
|
* typings
|
|
953
955
|
*/
|
|
954
|
-
declare function transformVNodeArgs(transformer?: typeof vnodeArgsTransformer): void;
|
|
955
|
-
declare function createBaseVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, shapeFlag?: number, isBlockNode?: boolean, needFullChildrenNormalization?: boolean): VNode<RendererNode, RendererElement, {
|
|
956
|
+
export declare function transformVNodeArgs(transformer?: typeof vnodeArgsTransformer): void;
|
|
957
|
+
export declare function createBaseVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, shapeFlag?: number, isBlockNode?: boolean, needFullChildrenNormalization?: boolean): VNode<RendererNode, RendererElement, {
|
|
956
958
|
[key: string]: any;
|
|
957
959
|
}>;
|
|
958
960
|
|
|
959
|
-
declare const createVNode: typeof _createVNode;
|
|
961
|
+
export declare const createVNode: typeof _createVNode;
|
|
960
962
|
declare function _createVNode(type: VNodeTypes | ClassComponent | typeof NULL_DYNAMIC_COMPONENT, props?: (Data & VNodeProps) | null, children?: unknown, patchFlag?: number, dynamicProps?: string[] | null, isBlockNode?: boolean): VNode;
|
|
961
|
-
declare function guardReactiveProps(props: (Data & VNodeProps) | null): (Data & VNodeProps) | null;
|
|
962
|
-
declare function cloneVNode<T, U>(vnode: VNode<T, U>, extraProps?: (Data & VNodeProps) | null, mergeRef?: boolean): VNode<T, U>;
|
|
963
|
+
export declare function guardReactiveProps(props: (Data & VNodeProps) | null): (Data & VNodeProps) | null;
|
|
964
|
+
export declare function cloneVNode<T, U>(vnode: VNode<T, U>, extraProps?: (Data & VNodeProps) | null, mergeRef?: boolean): VNode<T, U>;
|
|
963
965
|
/**
|
|
964
966
|
* @private
|
|
965
967
|
*/
|
|
966
|
-
declare function createTextVNode(text?: string, flag?: number): VNode;
|
|
968
|
+
export declare function createTextVNode(text?: string, flag?: number): VNode;
|
|
967
969
|
/**
|
|
968
970
|
* @private
|
|
969
971
|
*/
|
|
970
|
-
declare function createStaticVNode(content: string, numberOfNodes: number): VNode;
|
|
972
|
+
export declare function createStaticVNode(content: string, numberOfNodes: number): VNode;
|
|
971
973
|
/**
|
|
972
974
|
* @private
|
|
973
975
|
*/
|
|
974
|
-
declare function createCommentVNode(text?: string, asBlock?: boolean): VNode;
|
|
976
|
+
export declare function createCommentVNode(text?: string, asBlock?: boolean): VNode;
|
|
975
977
|
declare function normalizeVNode(child: VNodeChild): VNode;
|
|
976
|
-
declare function mergeProps(...args: (Data & VNodeProps)[]): Data;
|
|
978
|
+
export declare function mergeProps(...args: (Data & VNodeProps)[]): Data;
|
|
977
979
|
|
|
978
|
-
|
|
980
|
+
type Data = Record<string, unknown>;
|
|
979
981
|
/**
|
|
980
982
|
* For extending allowed non-declared props on components in TSX
|
|
981
983
|
*/
|
|
@@ -988,7 +990,7 @@ export interface AllowedComponentProps {
|
|
|
988
990
|
class?: unknown;
|
|
989
991
|
style?: unknown;
|
|
990
992
|
}
|
|
991
|
-
|
|
993
|
+
interface ComponentInternalOptions {
|
|
992
994
|
/* removed internal: __scopeId */
|
|
993
995
|
/* removed internal: __cssModules */
|
|
994
996
|
/* removed internal: __hmrId */
|
|
@@ -1013,7 +1015,7 @@ export interface FunctionalComponent<P = {}, E extends EmitsOptions = {}> extend
|
|
|
1013
1015
|
displayName?: string;
|
|
1014
1016
|
compatConfig?: CompatConfig;
|
|
1015
1017
|
}
|
|
1016
|
-
|
|
1018
|
+
interface ClassComponent {
|
|
1017
1019
|
new (...args: any[]): ComponentPublicInstance<any, any, any, any, any>;
|
|
1018
1020
|
__vccOpts: ComponentOptions;
|
|
1019
1021
|
}
|
|
@@ -1030,7 +1032,7 @@ export type ConcreteComponent<Props = {}, RawBindings = any, D = any, C extends
|
|
|
1030
1032
|
*/
|
|
1031
1033
|
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>;
|
|
1032
1034
|
|
|
1033
|
-
|
|
1035
|
+
type LifecycleHook<TFn = Function> = TFn[] | null;
|
|
1034
1036
|
export type SetupContext<E = EmitsOptions> = E extends any ? {
|
|
1035
1037
|
attrs: Data;
|
|
1036
1038
|
slots: Slots;
|
|
@@ -1121,22 +1123,22 @@ export interface ComponentInternalInstance {
|
|
|
1121
1123
|
/* removed internal: ut */
|
|
1122
1124
|
}
|
|
1123
1125
|
declare function createComponentInstance(vnode: VNode, parent: ComponentInternalInstance | null, suspense: SuspenseBoundary | null): ComponentInternalInstance;
|
|
1124
|
-
declare const getCurrentInstance: () => ComponentInternalInstance | null;
|
|
1126
|
+
export declare const getCurrentInstance: () => ComponentInternalInstance | null;
|
|
1125
1127
|
declare function setupComponent(instance: ComponentInternalInstance, isSSR?: boolean): Promise<void> | undefined;
|
|
1126
1128
|
/**
|
|
1127
1129
|
* For runtime-dom to register the compiler.
|
|
1128
1130
|
* Note the exported method uses any to avoid d.ts relying on the compiler types.
|
|
1129
1131
|
*/
|
|
1130
|
-
declare function registerRuntimeCompiler(_compile: any): void;
|
|
1131
|
-
declare const isRuntimeOnly: () => boolean;
|
|
1132
|
+
export declare function registerRuntimeCompiler(_compile: any): void;
|
|
1133
|
+
export declare const isRuntimeOnly: () => boolean;
|
|
1132
1134
|
|
|
1133
1135
|
export type WatchEffect = (onCleanup: OnCleanup) => void;
|
|
1134
1136
|
export type WatchSource<T = any> = Ref<T> | ComputedRef<T> | (() => T);
|
|
1135
1137
|
export type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => any;
|
|
1136
|
-
|
|
1138
|
+
type MapSources<T, Immediate> = {
|
|
1137
1139
|
[K in keyof T]: T[K] extends WatchSource<infer V> ? Immediate extends true ? V | undefined : V : T[K] extends object ? Immediate extends true ? T[K] | undefined : T[K] : never;
|
|
1138
1140
|
};
|
|
1139
|
-
|
|
1141
|
+
type OnCleanup = (cleanupFn: () => void) => void;
|
|
1140
1142
|
export interface WatchOptionsBase extends DebuggerOptions {
|
|
1141
1143
|
flush?: 'pre' | 'post' | 'sync';
|
|
1142
1144
|
}
|
|
@@ -1145,25 +1147,32 @@ export interface WatchOptions<Immediate = boolean> extends WatchOptionsBase {
|
|
|
1145
1147
|
deep?: boolean;
|
|
1146
1148
|
}
|
|
1147
1149
|
export type WatchStopHandle = () => void;
|
|
1148
|
-
declare function watchEffect(effect: WatchEffect, options?: WatchOptionsBase): WatchStopHandle;
|
|
1149
|
-
declare function watchPostEffect(effect: WatchEffect, options?: DebuggerOptions): WatchStopHandle;
|
|
1150
|
-
declare function watchSyncEffect(effect: WatchEffect, options?: DebuggerOptions): WatchStopHandle;
|
|
1151
|
-
|
|
1152
|
-
declare function watch<T extends MultiWatchSources, Immediate extends Readonly<boolean> = false>(sources: [...T], cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1153
|
-
declare function watch<T extends Readonly<MultiWatchSources>, Immediate extends Readonly<boolean> = false>(source: T, cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1154
|
-
declare function watch<T, Immediate extends Readonly<boolean> = false>(source: WatchSource<T>, cb: WatchCallback<T, Immediate extends true ? T | undefined : T>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1155
|
-
declare function watch<T extends object, Immediate extends Readonly<boolean> = false>(source: T, cb: WatchCallback<T, Immediate extends true ? T | undefined : T>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1150
|
+
export declare function watchEffect(effect: WatchEffect, options?: WatchOptionsBase): WatchStopHandle;
|
|
1151
|
+
export declare function watchPostEffect(effect: WatchEffect, options?: DebuggerOptions): WatchStopHandle;
|
|
1152
|
+
export declare function watchSyncEffect(effect: WatchEffect, options?: DebuggerOptions): WatchStopHandle;
|
|
1153
|
+
type MultiWatchSources = (WatchSource<unknown> | object)[];
|
|
1154
|
+
export declare function watch<T extends MultiWatchSources, Immediate extends Readonly<boolean> = false>(sources: [...T], cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1155
|
+
export declare function watch<T extends Readonly<MultiWatchSources>, Immediate extends Readonly<boolean> = false>(source: T, cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1156
|
+
export declare function watch<T, Immediate extends Readonly<boolean> = false>(source: WatchSource<T>, cb: WatchCallback<T, Immediate extends true ? T | undefined : T>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1157
|
+
export declare function watch<T extends object, Immediate extends Readonly<boolean> = false>(source: T, cb: WatchCallback<T, Immediate extends true ? T | undefined : T>, options?: WatchOptions<Immediate>): WatchStopHandle;
|
|
1156
1158
|
|
|
1157
|
-
|
|
1159
|
+
type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1158
1160
|
export type DefineComponent<PropsOrPropOptions = {}, RawBindings = {}, D = {}, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, PP = PublicProps, Props = Readonly<PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions> & ({} extends E ? {} : EmitsToProps<E>), Defaults = ExtractDefaultPropTypes<PropsOrPropOptions>> = ComponentPublicInstanceConstructor<CreateComponentPublicInstance<Props, RawBindings, D, C, M, Mixin, Extends, E, PP & Props, Defaults, true> & Props> & ComponentOptionsBase<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults> & PP;
|
|
1159
|
-
declare function defineComponent<Props,
|
|
1160
|
-
|
|
1161
|
-
|
|
1161
|
+
export declare function defineComponent<Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string>(setup: (props: Props, ctx: SetupContext<E>) => RenderFunction | Promise<RenderFunction>, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs'> & {
|
|
1162
|
+
props?: (keyof Props)[];
|
|
1163
|
+
emits?: E | EE[];
|
|
1164
|
+
}): (props: Props & EmitsToProps<E>) => any;
|
|
1165
|
+
export declare function defineComponent<Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string>(setup: (props: Props, ctx: SetupContext<E>) => RenderFunction | Promise<RenderFunction>, options?: Pick<ComponentOptions, 'name' | 'inheritAttrs'> & {
|
|
1166
|
+
props?: ComponentObjectPropsOptions<Props>;
|
|
1167
|
+
emits?: E | EE[];
|
|
1168
|
+
}): (props: Props & EmitsToProps<E>) => any;
|
|
1169
|
+
export declare function defineComponent<Props = {}, RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string>(options: ComponentOptionsWithoutProps<Props, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II>): DefineComponent<Props, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
1170
|
+
export declare function defineComponent<PropNames extends string, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string>(options: ComponentOptionsWithArrayProps<PropNames, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II>): DefineComponent<Readonly<{
|
|
1162
1171
|
[key in PropNames]?: any;
|
|
1163
1172
|
}>, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
1164
|
-
declare function defineComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II>): DefineComponent<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
1173
|
+
export declare function defineComponent<PropsOptions extends Readonly<ComponentPropsOptions>, RawBindings, D, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, EE extends string = string, I extends ComponentInjectOptions = {}, II extends string = string>(options: ComponentOptionsWithObjectProps<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, I, II>): DefineComponent<PropsOptions, RawBindings, D, C, M, Mixin, Extends, E, EE>;
|
|
1165
1174
|
|
|
1166
|
-
|
|
1175
|
+
type AsyncComponentResolveResult<T = Component> = T | {
|
|
1167
1176
|
default: T;
|
|
1168
1177
|
};
|
|
1169
1178
|
export type AsyncComponentLoader<T = any> = () => Promise<AsyncComponentResolveResult<T>>;
|
|
@@ -1176,7 +1185,7 @@ export interface AsyncComponentOptions<T = any> {
|
|
|
1176
1185
|
suspensible?: boolean;
|
|
1177
1186
|
onError?: (error: Error, retry: () => void, fail: () => void, attempts: number) => any;
|
|
1178
1187
|
}
|
|
1179
|
-
declare function defineAsyncComponent<T extends Component = {
|
|
1188
|
+
export declare function defineAsyncComponent<T extends Component = {
|
|
1180
1189
|
new (): ComponentPublicInstance;
|
|
1181
1190
|
}>(source: AsyncComponentLoader<T> | AsyncComponentOptions<T>): T;
|
|
1182
1191
|
|
|
@@ -1210,15 +1219,15 @@ declare function defineAsyncComponent<T extends Component = {
|
|
|
1210
1219
|
* This is only usable inside `<script setup>`, is compiled away in the
|
|
1211
1220
|
* output and should **not** be actually called at runtime.
|
|
1212
1221
|
*/
|
|
1213
|
-
declare function defineProps<PropNames extends string = string>(props: PropNames[]): Prettify<Readonly<{
|
|
1222
|
+
export declare function defineProps<PropNames extends string = string>(props: PropNames[]): Prettify<Readonly<{
|
|
1214
1223
|
[key in PropNames]?: any;
|
|
1215
1224
|
}>>;
|
|
1216
|
-
declare function defineProps<PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions>(props: PP): Prettify<Readonly<ExtractPropTypes<PP>>>;
|
|
1217
|
-
declare function defineProps<TypeProps>(): ResolveProps<TypeProps>;
|
|
1218
|
-
|
|
1225
|
+
export declare function defineProps<PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions>(props: PP): Prettify<Readonly<ExtractPropTypes<PP>>>;
|
|
1226
|
+
export declare function defineProps<TypeProps>(): ResolveProps<TypeProps>;
|
|
1227
|
+
type ResolveProps<T, BooleanKeys extends keyof T = BooleanKey<T>> = Prettify<Readonly<T & {
|
|
1219
1228
|
[K in BooleanKeys]-?: boolean;
|
|
1220
1229
|
}>>;
|
|
1221
|
-
|
|
1230
|
+
type BooleanKey<T, K extends keyof T = keyof T> = K extends any ? [T[K]] extends [boolean | undefined] ? K : never : never;
|
|
1222
1231
|
/**
|
|
1223
1232
|
* Vue `<script setup>` compiler macro for declaring a component's emitted
|
|
1224
1233
|
* events. The expected argument is the same as the component `emits` option.
|
|
@@ -1242,9 +1251,9 @@ export type BooleanKey<T, K extends keyof T = keyof T> = K extends any ? [T[K]]
|
|
|
1242
1251
|
* This is only usable inside `<script setup>`, is compiled away in the
|
|
1243
1252
|
* output and should **not** be actually called at runtime.
|
|
1244
1253
|
*/
|
|
1245
|
-
declare function defineEmits<EE extends string = string>(emitOptions: EE[]): EmitFn<EE[]>;
|
|
1246
|
-
declare function defineEmits<E extends EmitsOptions = EmitsOptions>(emitOptions: E): EmitFn<E>;
|
|
1247
|
-
declare function defineEmits<TypeEmit>(): TypeEmit;
|
|
1254
|
+
export declare function defineEmits<EE extends string = string>(emitOptions: EE[]): EmitFn<EE[]>;
|
|
1255
|
+
export declare function defineEmits<E extends EmitsOptions = EmitsOptions>(emitOptions: E): EmitFn<E>;
|
|
1256
|
+
export declare function defineEmits<TypeEmit>(): TypeEmit;
|
|
1248
1257
|
/**
|
|
1249
1258
|
* Vue `<script setup>` compiler macro for declaring a component's exposed
|
|
1250
1259
|
* instance properties when it is accessed by a parent component via template
|
|
@@ -1257,13 +1266,17 @@ declare function defineEmits<TypeEmit>(): TypeEmit;
|
|
|
1257
1266
|
* This is only usable inside `<script setup>`, is compiled away in the
|
|
1258
1267
|
* output and should **not** be actually called at runtime.
|
|
1259
1268
|
*/
|
|
1260
|
-
declare function defineExpose<Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed): void;
|
|
1261
|
-
export
|
|
1262
|
-
|
|
1269
|
+
export declare function defineExpose<Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed): void;
|
|
1270
|
+
export declare function defineOptions<RawBindings = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string>(options?: ComponentOptionsWithoutProps<{}, RawBindings, D, C, M, Mixin, Extends, E, EE> & {
|
|
1271
|
+
emits?: undefined;
|
|
1272
|
+
expose?: undefined;
|
|
1273
|
+
}): void;
|
|
1274
|
+
type NotUndefined<T> = T extends undefined ? never : T;
|
|
1275
|
+
type InferDefaults<T> = {
|
|
1263
1276
|
[K in keyof T]?: InferDefault<T, NotUndefined<T[K]>>;
|
|
1264
1277
|
};
|
|
1265
|
-
|
|
1266
|
-
|
|
1278
|
+
type InferDefault<P, T> = T extends null | number | string | boolean | symbol | Function ? T | ((props: P) => T) : (props: P) => T;
|
|
1279
|
+
type PropsWithDefaults<Base, Defaults> = Base & {
|
|
1267
1280
|
[K in keyof Defaults]: K extends keyof Base ? Defaults[K] extends undefined ? Base[K] : NotUndefined<Base[K]> : never;
|
|
1268
1281
|
};
|
|
1269
1282
|
/**
|
|
@@ -1283,20 +1296,22 @@ export type PropsWithDefaults<Base, Defaults> = Base & {
|
|
|
1283
1296
|
*
|
|
1284
1297
|
* This is only usable inside `<script setup>`, is compiled away in the output
|
|
1285
1298
|
* and should **not** be actually called at runtime.
|
|
1299
|
+
*
|
|
1300
|
+
* @deprecated use reactive props destructure instead.
|
|
1286
1301
|
*/
|
|
1287
|
-
declare function withDefaults<Props, Defaults extends InferDefaults<Props>>(props: Props, defaults: Defaults): PropsWithDefaults<Props, Defaults>;
|
|
1288
|
-
declare function useSlots(): SetupContext['slots'];
|
|
1289
|
-
declare function useAttrs(): SetupContext['attrs'];
|
|
1302
|
+
export declare function withDefaults<Props, Defaults extends InferDefaults<Props>>(props: Props, defaults: Defaults): PropsWithDefaults<Props, Defaults>;
|
|
1303
|
+
export declare function useSlots(): SetupContext['slots'];
|
|
1304
|
+
export declare function useAttrs(): SetupContext['attrs'];
|
|
1290
1305
|
/* removed internal: mergeDefaults */
|
|
1291
1306
|
/* removed internal: createPropsRestProxy */
|
|
1292
1307
|
/* removed internal: withAsyncContext */
|
|
1293
1308
|
|
|
1294
|
-
|
|
1309
|
+
type RawProps = VNodeProps & {
|
|
1295
1310
|
__v_isVNode?: never;
|
|
1296
1311
|
[Symbol.iterator]?: never;
|
|
1297
1312
|
} & Record<string, any>;
|
|
1298
|
-
|
|
1299
|
-
|
|
1313
|
+
type RawChildren = string | number | boolean | VNode | VNodeArrayChildren | (() => any);
|
|
1314
|
+
interface Constructor<P = any> {
|
|
1300
1315
|
__isFragment?: never;
|
|
1301
1316
|
__isTeleport?: never;
|
|
1302
1317
|
__isSuspense?: never;
|
|
@@ -1304,33 +1319,33 @@ export interface Constructor<P = any> {
|
|
|
1304
1319
|
$props: P;
|
|
1305
1320
|
};
|
|
1306
1321
|
}
|
|
1307
|
-
declare function h(type: string, children?: RawChildren): VNode;
|
|
1308
|
-
declare function h(type: string, props?: RawProps | null, children?: RawChildren | RawSlots): VNode;
|
|
1309
|
-
declare function h(type: typeof Text | typeof Comment, children?: string | number | boolean): VNode;
|
|
1310
|
-
declare function h(type: typeof Text | typeof Comment, props?: null, children?: string | number | boolean): VNode;
|
|
1311
|
-
declare function h(type: typeof Fragment, children?: VNodeArrayChildren): VNode;
|
|
1312
|
-
declare function h(type: typeof Fragment, props?: RawProps | null, children?: VNodeArrayChildren): VNode;
|
|
1313
|
-
declare function h(type: typeof Teleport, props: RawProps & TeleportProps, children: RawChildren | RawSlots): VNode;
|
|
1314
|
-
declare function h(type: typeof Suspense, children?: RawChildren): VNode;
|
|
1315
|
-
declare function h(type: typeof Suspense, props?: (RawProps & SuspenseProps) | null, children?: RawChildren | RawSlots): VNode;
|
|
1316
|
-
declare function h<P, E extends EmitsOptions = {}>(type: FunctionalComponent<P, E>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
1317
|
-
declare function h(type: Component, children?: RawChildren): VNode;
|
|
1318
|
-
declare function h<P>(type: ConcreteComponent | string, children?: RawChildren): VNode;
|
|
1319
|
-
declare function h<P>(type: ConcreteComponent<P> | string, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren): VNode;
|
|
1320
|
-
declare function h<P>(type: Component<P>, props?: (RawProps & P) | null, children?: RawChildren | RawSlots): VNode;
|
|
1321
|
-
declare function h<P>(type: ComponentOptions<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
1322
|
-
declare function h(type: Constructor, children?: RawChildren): VNode;
|
|
1323
|
-
declare function h<P>(type: Constructor<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
1324
|
-
declare function h(type: DefineComponent, children?: RawChildren): VNode;
|
|
1325
|
-
declare function h<P>(type: DefineComponent<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
1322
|
+
export declare function h(type: string, children?: RawChildren): VNode;
|
|
1323
|
+
export declare function h(type: string, props?: RawProps | null, children?: RawChildren | RawSlots): VNode;
|
|
1324
|
+
export declare function h(type: typeof Text | typeof Comment, children?: string | number | boolean): VNode;
|
|
1325
|
+
export declare function h(type: typeof Text | typeof Comment, props?: null, children?: string | number | boolean): VNode;
|
|
1326
|
+
export declare function h(type: typeof Fragment, children?: VNodeArrayChildren): VNode;
|
|
1327
|
+
export declare function h(type: typeof Fragment, props?: RawProps | null, children?: VNodeArrayChildren): VNode;
|
|
1328
|
+
export declare function h(type: typeof Teleport, props: RawProps & TeleportProps, children: RawChildren | RawSlots): VNode;
|
|
1329
|
+
export declare function h(type: typeof Suspense, children?: RawChildren): VNode;
|
|
1330
|
+
export declare function h(type: typeof Suspense, props?: (RawProps & SuspenseProps) | null, children?: RawChildren | RawSlots): VNode;
|
|
1331
|
+
export declare function h<P, E extends EmitsOptions = {}>(type: FunctionalComponent<P, E>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
1332
|
+
export declare function h(type: Component, children?: RawChildren): VNode;
|
|
1333
|
+
export declare function h<P>(type: ConcreteComponent | string, children?: RawChildren): VNode;
|
|
1334
|
+
export declare function h<P>(type: ConcreteComponent<P> | string, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren): VNode;
|
|
1335
|
+
export declare function h<P>(type: Component<P>, props?: (RawProps & P) | null, children?: RawChildren | RawSlots): VNode;
|
|
1336
|
+
export declare function h<P>(type: ComponentOptions<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
1337
|
+
export declare function h(type: Constructor, children?: RawChildren): VNode;
|
|
1338
|
+
export declare function h<P>(type: Constructor<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
1339
|
+
export declare function h(type: DefineComponent, children?: RawChildren): VNode;
|
|
1340
|
+
export declare function h<P>(type: DefineComponent<P>, props?: (RawProps & P) | ({} extends P ? null : never), children?: RawChildren | RawSlots): VNode;
|
|
1326
1341
|
|
|
1327
|
-
declare const ssrContextKey: unique symbol;
|
|
1328
|
-
declare const useSSRContext: <T = Record<string, any>>() => T | undefined;
|
|
1342
|
+
export declare const ssrContextKey: unique symbol;
|
|
1343
|
+
export declare const useSSRContext: <T = Record<string, any>>() => T | undefined;
|
|
1329
1344
|
|
|
1330
|
-
declare function warn(msg: string, ...args: any[]): void;
|
|
1345
|
+
export declare function warn(msg: string, ...args: any[]): void;
|
|
1331
1346
|
/* removed internal: assertNumber */
|
|
1332
1347
|
|
|
1333
|
-
declare const enum ErrorCodes {
|
|
1348
|
+
export declare const enum ErrorCodes {
|
|
1334
1349
|
SETUP_FUNCTION = 0,
|
|
1335
1350
|
RENDER_FUNCTION = 1,
|
|
1336
1351
|
WATCH_GETTER = 2,
|
|
@@ -1347,20 +1362,20 @@ declare const enum ErrorCodes {
|
|
|
1347
1362
|
ASYNC_COMPONENT_LOADER = 13,
|
|
1348
1363
|
SCHEDULER = 14
|
|
1349
1364
|
}
|
|
1350
|
-
|
|
1351
|
-
declare function callWithErrorHandling(fn: Function, instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any;
|
|
1352
|
-
declare function callWithAsyncErrorHandling(fn: Function | Function[], instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any[];
|
|
1353
|
-
declare function handleError(err: unknown, instance: ComponentInternalInstance | null, type: ErrorTypes, throwInDev?: boolean): void;
|
|
1365
|
+
type ErrorTypes = LifecycleHooks | ErrorCodes;
|
|
1366
|
+
export declare function callWithErrorHandling(fn: Function, instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any;
|
|
1367
|
+
export declare function callWithAsyncErrorHandling(fn: Function | Function[], instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any[];
|
|
1368
|
+
export declare function handleError(err: unknown, instance: ComponentInternalInstance | null, type: ErrorTypes, throwInDev?: boolean): void;
|
|
1354
1369
|
|
|
1355
|
-
declare function initCustomFormatter(): void;
|
|
1370
|
+
export declare function initCustomFormatter(): void;
|
|
1356
1371
|
|
|
1357
|
-
|
|
1372
|
+
interface AppRecord {
|
|
1358
1373
|
id: number;
|
|
1359
1374
|
app: App;
|
|
1360
1375
|
version: string;
|
|
1361
1376
|
types: Record<string, string | Symbol>;
|
|
1362
1377
|
}
|
|
1363
|
-
|
|
1378
|
+
interface DevtoolsHook {
|
|
1364
1379
|
enabled?: boolean;
|
|
1365
1380
|
emit: (event: string, ...payload: any[]) => void;
|
|
1366
1381
|
on: (event: string, handler: Function) => void;
|
|
@@ -1373,10 +1388,10 @@ export interface DevtoolsHook {
|
|
|
1373
1388
|
*/
|
|
1374
1389
|
cleanupBuffer?: (matchArg: unknown) => boolean;
|
|
1375
1390
|
}
|
|
1376
|
-
declare let devtools: DevtoolsHook;
|
|
1377
|
-
declare function setDevtoolsHook(hook: DevtoolsHook, target: any): void;
|
|
1391
|
+
export declare let devtools: DevtoolsHook;
|
|
1392
|
+
export declare function setDevtoolsHook(hook: DevtoolsHook, target: any): void;
|
|
1378
1393
|
|
|
1379
|
-
|
|
1394
|
+
type HMRComponent = ComponentOptions | ClassComponent;
|
|
1380
1395
|
export interface HMRRuntime {
|
|
1381
1396
|
createRecord: typeof createRecord;
|
|
1382
1397
|
rerender: typeof rerender;
|
|
@@ -1401,60 +1416,60 @@ declare function setCurrentRenderingInstance(instance: ComponentInternalInstance
|
|
|
1401
1416
|
* Set scope id when creating hoisted vnodes.
|
|
1402
1417
|
* @private compiler helper
|
|
1403
1418
|
*/
|
|
1404
|
-
declare function pushScopeId(id: string | null): void;
|
|
1419
|
+
export declare function pushScopeId(id: string | null): void;
|
|
1405
1420
|
/**
|
|
1406
1421
|
* Technically we no longer need this after 3.0.8 but we need to keep the same
|
|
1407
1422
|
* API for backwards compat w/ code generated by compilers.
|
|
1408
1423
|
* @private
|
|
1409
1424
|
*/
|
|
1410
|
-
declare function popScopeId(): void;
|
|
1425
|
+
export declare function popScopeId(): void;
|
|
1411
1426
|
/**
|
|
1412
1427
|
* Only for backwards compat
|
|
1413
1428
|
* @private
|
|
1414
1429
|
*/
|
|
1415
|
-
declare const withScopeId: (_id: string) => typeof withCtx;
|
|
1430
|
+
export declare const withScopeId: (_id: string) => typeof withCtx;
|
|
1416
1431
|
/**
|
|
1417
1432
|
* Wrap a slot function to memoize current rendering instance
|
|
1418
1433
|
* @private compiler helper
|
|
1419
1434
|
*/
|
|
1420
|
-
declare function withCtx(fn: Function, ctx?: ComponentInternalInstance | null, isNonScopedSlot?: boolean): Function;
|
|
1435
|
+
export declare function withCtx(fn: Function, ctx?: ComponentInternalInstance | null, isNonScopedSlot?: boolean): Function;
|
|
1421
1436
|
|
|
1422
1437
|
/**
|
|
1423
1438
|
* v-for string
|
|
1424
1439
|
* @private
|
|
1425
1440
|
*/
|
|
1426
|
-
declare function renderList(source: string, renderItem: (value: string, index: number) => VNodeChild): VNodeChild[];
|
|
1441
|
+
export declare function renderList(source: string, renderItem: (value: string, index: number) => VNodeChild): VNodeChild[];
|
|
1427
1442
|
/**
|
|
1428
1443
|
* v-for number
|
|
1429
1444
|
*/
|
|
1430
|
-
declare function renderList(source: number, renderItem: (value: number, index: number) => VNodeChild): VNodeChild[];
|
|
1445
|
+
export declare function renderList(source: number, renderItem: (value: number, index: number) => VNodeChild): VNodeChild[];
|
|
1431
1446
|
/**
|
|
1432
1447
|
* v-for array
|
|
1433
1448
|
*/
|
|
1434
|
-
declare function renderList<T>(source: T[], renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
|
|
1449
|
+
export declare function renderList<T>(source: T[], renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
|
|
1435
1450
|
/**
|
|
1436
1451
|
* v-for iterable
|
|
1437
1452
|
*/
|
|
1438
|
-
declare function renderList<T>(source: Iterable<T>, renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
|
|
1453
|
+
export declare function renderList<T>(source: Iterable<T>, renderItem: (value: T, index: number) => VNodeChild): VNodeChild[];
|
|
1439
1454
|
/**
|
|
1440
1455
|
* v-for object
|
|
1441
1456
|
*/
|
|
1442
|
-
declare function renderList<T>(source: T, renderItem: <K extends keyof T>(value: T[K], key: K, index: number) => VNodeChild): VNodeChild[];
|
|
1457
|
+
export declare function renderList<T>(source: T, renderItem: <K extends keyof T>(value: T[K], key: K, index: number) => VNodeChild): VNodeChild[];
|
|
1443
1458
|
|
|
1444
1459
|
/**
|
|
1445
1460
|
* For prefixing keys in v-on="obj" with "on"
|
|
1446
1461
|
* @private
|
|
1447
1462
|
*/
|
|
1448
|
-
declare function toHandlers(obj: Record<string, any>, preserveCaseIfNecessary?: boolean): Record<string, any>;
|
|
1463
|
+
export declare function toHandlers(obj: Record<string, any>, preserveCaseIfNecessary?: boolean): Record<string, any>;
|
|
1449
1464
|
|
|
1450
1465
|
/**
|
|
1451
1466
|
* Compiler runtime helper for rendering `<slot/>`
|
|
1452
1467
|
* @private
|
|
1453
1468
|
*/
|
|
1454
|
-
declare function renderSlot(slots: Slots, name: string, props?: Data, fallback?: () => VNodeArrayChildren, noSlotted?: boolean): VNode;
|
|
1469
|
+
export declare function renderSlot(slots: Slots, name: string, props?: Data, fallback?: () => VNodeArrayChildren, noSlotted?: boolean): VNode;
|
|
1455
1470
|
|
|
1456
|
-
|
|
1457
|
-
|
|
1471
|
+
type SSRSlot = (...args: any[]) => VNode[] | undefined;
|
|
1472
|
+
interface CompiledSlotDescriptor {
|
|
1458
1473
|
name: string;
|
|
1459
1474
|
fn: SSRSlot;
|
|
1460
1475
|
key?: string;
|
|
@@ -1463,12 +1478,12 @@ export interface CompiledSlotDescriptor {
|
|
|
1463
1478
|
* Compiler runtime helper for creating dynamic slots object
|
|
1464
1479
|
* @private
|
|
1465
1480
|
*/
|
|
1466
|
-
declare function createSlots(slots: Record<string, SSRSlot>, dynamicSlots: (CompiledSlotDescriptor | CompiledSlotDescriptor[] | undefined)[]): Record<string, SSRSlot>;
|
|
1481
|
+
export declare function createSlots(slots: Record<string, SSRSlot>, dynamicSlots: (CompiledSlotDescriptor | CompiledSlotDescriptor[] | undefined)[]): Record<string, SSRSlot>;
|
|
1467
1482
|
|
|
1468
|
-
declare function withMemo(memo: any[], render: () => VNode<any, any>, cache: any[], index: number): VNode<any, any, {
|
|
1483
|
+
export declare function withMemo(memo: any[], render: () => VNode<any, any>, cache: any[], index: number): VNode<any, any, {
|
|
1469
1484
|
[key: string]: any;
|
|
1470
1485
|
}>;
|
|
1471
|
-
declare function isMemoSame(cached: VNode, memo: any[]): boolean;
|
|
1486
|
+
export declare function isMemoSame(cached: VNode, memo: any[]): boolean;
|
|
1472
1487
|
|
|
1473
1488
|
declare function renderComponentRoot(instance: ComponentInternalInstance): VNode;
|
|
1474
1489
|
|
|
@@ -1499,8 +1514,8 @@ export type LegacyConfig = {
|
|
|
1499
1514
|
productionTip?: boolean;
|
|
1500
1515
|
};
|
|
1501
1516
|
|
|
1502
|
-
|
|
1503
|
-
|
|
1517
|
+
type LegacyPublicInstance = ComponentPublicInstance & LegacyPublicProperties;
|
|
1518
|
+
interface LegacyPublicProperties {
|
|
1504
1519
|
$set(target: object, key: string, value: any): void;
|
|
1505
1520
|
$delete(target: object, key: string): void;
|
|
1506
1521
|
$mount(el?: string | Element): this;
|
|
@@ -1558,7 +1573,7 @@ export type CompatVue = Pick<App, 'version' | 'component' | 'directive'> & {
|
|
|
1558
1573
|
};
|
|
1559
1574
|
declare function createCompatVue(createApp: CreateAppFunction<Element>, createSingletonApp: CreateAppFunction<Element>): CompatVue;
|
|
1560
1575
|
|
|
1561
|
-
declare const version: string;
|
|
1576
|
+
export declare const version: string;
|
|
1562
1577
|
|
|
1563
1578
|
declare module '@vue/reactivity' {
|
|
1564
1579
|
interface RefUnwrapBailTypes {
|
|
@@ -1573,17 +1588,19 @@ declare module '@vue/reactivity' {
|
|
|
1573
1588
|
|
|
1574
1589
|
|
|
1575
1590
|
|
|
1576
|
-
export {
|
|
1591
|
+
export { createBaseVNode as createElementVNode, };
|
|
1577
1592
|
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
1578
1593
|
// build.
|
|
1579
1594
|
type _defineProps = typeof defineProps
|
|
1580
1595
|
type _defineEmits = typeof defineEmits
|
|
1581
1596
|
type _defineExpose = typeof defineExpose
|
|
1597
|
+
type _defineOptions = typeof defineOptions
|
|
1582
1598
|
type _withDefaults = typeof withDefaults
|
|
1583
1599
|
|
|
1584
1600
|
declare global {
|
|
1585
1601
|
const defineProps: _defineProps
|
|
1586
1602
|
const defineEmits: _defineEmits
|
|
1587
1603
|
const defineExpose: _defineExpose
|
|
1604
|
+
const defineOptions: _defineOptions
|
|
1588
1605
|
const withDefaults: _withDefaults
|
|
1589
1606
|
}
|
|
@@ -2197,8 +2197,8 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
2197
2197
|
return ret;
|
|
2198
2198
|
}
|
|
2199
2199
|
|
|
2200
|
-
function defineComponent(options) {
|
|
2201
|
-
return isFunction(options) ? { setup: options, name: options.name } : options;
|
|
2200
|
+
function defineComponent(options, extraOptions) {
|
|
2201
|
+
return isFunction(options) ? extend({}, extraOptions, { setup: options, name: options.name }) : options;
|
|
2202
2202
|
}
|
|
2203
2203
|
|
|
2204
2204
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
@@ -3703,7 +3703,7 @@ function resolvePropValue(options, props, key, value, instance, isAbsent) {
|
|
|
3703
3703
|
const hasDefault = hasOwn(opt, "default");
|
|
3704
3704
|
if (hasDefault && value === void 0) {
|
|
3705
3705
|
const defaultValue = opt.default;
|
|
3706
|
-
if (opt.type !== Function && isFunction(defaultValue)) {
|
|
3706
|
+
if (opt.type !== Function && !opt.skipFactory && isFunction(defaultValue)) {
|
|
3707
3707
|
const { propsDefaults } = instance;
|
|
3708
3708
|
if (key in propsDefaults) {
|
|
3709
3709
|
value = propsDefaults[key];
|
|
@@ -3839,7 +3839,7 @@ function validateProps(rawProps, props, instance) {
|
|
|
3839
3839
|
}
|
|
3840
3840
|
}
|
|
3841
3841
|
function validateProp(name, value, prop, isAbsent) {
|
|
3842
|
-
const { type, required, validator } = prop;
|
|
3842
|
+
const { type, required, validator, skipCheck } = prop;
|
|
3843
3843
|
if (required && isAbsent) {
|
|
3844
3844
|
warn('Missing required prop: "' + name + '"');
|
|
3845
3845
|
return;
|
|
@@ -3847,7 +3847,7 @@ function validateProp(name, value, prop, isAbsent) {
|
|
|
3847
3847
|
if (value == null && !prop.required) {
|
|
3848
3848
|
return;
|
|
3849
3849
|
}
|
|
3850
|
-
if (type != null && type !== true) {
|
|
3850
|
+
if (type != null && type !== true && !skipCheck) {
|
|
3851
3851
|
let isValid = false;
|
|
3852
3852
|
const types = isArray(type) ? type : [type];
|
|
3853
3853
|
const expectedTypes = [];
|
|
@@ -7287,6 +7287,11 @@ function defineExpose(exposed) {
|
|
|
7287
7287
|
warnRuntimeUsage(`defineExpose`);
|
|
7288
7288
|
}
|
|
7289
7289
|
}
|
|
7290
|
+
function defineOptions(options) {
|
|
7291
|
+
if (process.env.NODE_ENV !== "production") {
|
|
7292
|
+
warnRuntimeUsage(`defineOptions`);
|
|
7293
|
+
}
|
|
7294
|
+
}
|
|
7290
7295
|
function withDefaults(props, defaults) {
|
|
7291
7296
|
if (process.env.NODE_ENV !== "production") {
|
|
7292
7297
|
warnRuntimeUsage(`withDefaults`);
|
|
@@ -7312,18 +7317,23 @@ function mergeDefaults(raw, defaults) {
|
|
|
7312
7317
|
{}
|
|
7313
7318
|
) : raw;
|
|
7314
7319
|
for (const key in defaults) {
|
|
7315
|
-
|
|
7320
|
+
if (key.startsWith("__skip"))
|
|
7321
|
+
continue;
|
|
7322
|
+
let opt = props[key];
|
|
7316
7323
|
if (opt) {
|
|
7317
7324
|
if (isArray(opt) || isFunction(opt)) {
|
|
7318
|
-
props[key] = { type: opt, default: defaults[key] };
|
|
7325
|
+
opt = props[key] = { type: opt, default: defaults[key] };
|
|
7319
7326
|
} else {
|
|
7320
7327
|
opt.default = defaults[key];
|
|
7321
7328
|
}
|
|
7322
7329
|
} else if (opt === null) {
|
|
7323
|
-
props[key] = { default: defaults[key] };
|
|
7330
|
+
opt = props[key] = { default: defaults[key] };
|
|
7324
7331
|
} else if (process.env.NODE_ENV !== "production") {
|
|
7325
7332
|
warn(`props default key "${key}" has no corresponding declaration.`);
|
|
7326
7333
|
}
|
|
7334
|
+
if (opt && defaults[`__skip_${key}`]) {
|
|
7335
|
+
opt.skipFactory = true;
|
|
7336
|
+
}
|
|
7327
7337
|
}
|
|
7328
7338
|
return props;
|
|
7329
7339
|
}
|
|
@@ -7596,7 +7606,7 @@ function isMemoSame(cached, memo) {
|
|
|
7596
7606
|
return true;
|
|
7597
7607
|
}
|
|
7598
7608
|
|
|
7599
|
-
const version = "3.3.0-alpha.
|
|
7609
|
+
const version = "3.3.0-alpha.6";
|
|
7600
7610
|
const _ssrUtils = {
|
|
7601
7611
|
createComponentInstance,
|
|
7602
7612
|
setupComponent,
|
|
@@ -7609,4 +7619,4 @@ const ssrUtils = _ssrUtils ;
|
|
|
7609
7619
|
const resolveFilter = null;
|
|
7610
7620
|
const compatUtils = null;
|
|
7611
7621
|
|
|
7612
|
-
export { BaseTransition, BaseTransitionPropsValidators, Comment, Fragment, KeepAlive, Static, Suspense, Teleport, Text, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, cloneVNode, compatUtils, computed, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, defineEmits, defineExpose, defineProps, devtools, getCurrentInstance, getTransitionRawChildren, guardReactiveProps, h, handleError, initCustomFormatter, inject, isMemoSame, isRuntimeOnly, isVNode, mergeDefaults, mergeProps, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, pushScopeId, queuePostFlushCb, registerRuntimeCompiler, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, ssrContextKey, ssrUtils, toHandlers, transformVNodeArgs, useAttrs, useSSRContext, useSlots, useTransitionState, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withMemo, withScopeId };
|
|
7622
|
+
export { BaseTransition, BaseTransitionPropsValidators, Comment, Fragment, KeepAlive, Static, Suspense, Teleport, Text, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, cloneVNode, compatUtils, computed, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSlots, createStaticVNode, createTextVNode, createVNode, defineAsyncComponent, defineComponent, defineEmits, defineExpose, defineOptions, defineProps, devtools, getCurrentInstance, getTransitionRawChildren, guardReactiveProps, h, handleError, initCustomFormatter, inject, isMemoSame, isRuntimeOnly, isVNode, mergeDefaults, mergeProps, nextTick, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, pushScopeId, queuePostFlushCb, registerRuntimeCompiler, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, ssrContextKey, ssrUtils, toHandlers, transformVNodeArgs, useAttrs, useSSRContext, useSlots, useTransitionState, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withMemo, withScopeId };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/runtime-core",
|
|
3
|
-
"version": "3.3.0-alpha.
|
|
3
|
+
"version": "3.3.0-alpha.6",
|
|
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.0-alpha.
|
|
36
|
-
"@vue/reactivity": "3.3.0-alpha.
|
|
35
|
+
"@vue/shared": "3.3.0-alpha.6",
|
|
36
|
+
"@vue/reactivity": "3.3.0-alpha.6"
|
|
37
37
|
}
|
|
38
38
|
}
|