@vue/runtime-core 3.1.0-beta.5 → 3.1.1
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 +360 -319
- package/dist/runtime-core.cjs.prod.js +325 -280
- package/dist/runtime-core.d.ts +40 -10
- package/dist/runtime-core.esm-bundler.js +364 -322
- package/package.json +3 -3
package/dist/runtime-core.d.ts
CHANGED
|
@@ -96,7 +96,9 @@ export declare interface AppContext {
|
|
|
96
96
|
components: Record<string, Component>;
|
|
97
97
|
directives: Record<string, Directive>;
|
|
98
98
|
provides: Record<string | symbol, any>;
|
|
99
|
-
/* Excluded from this release type:
|
|
99
|
+
/* Excluded from this release type: optionsCache */
|
|
100
|
+
/* Excluded from this release type: propsCache */
|
|
101
|
+
/* Excluded from this release type: emitsCache */
|
|
100
102
|
/* Excluded from this release type: reload */
|
|
101
103
|
/* Excluded from this release type: filters */
|
|
102
104
|
}
|
|
@@ -288,10 +290,7 @@ export declare interface ComponentCustomProperties {
|
|
|
288
290
|
export declare interface ComponentCustomProps {
|
|
289
291
|
}
|
|
290
292
|
|
|
291
|
-
declare type ComponentInjectOptions = string[] |
|
|
292
|
-
from?: string | symbol;
|
|
293
|
-
default?: unknown;
|
|
294
|
-
}>;
|
|
293
|
+
declare type ComponentInjectOptions = string[] | ObjectInjectOptions;
|
|
295
294
|
|
|
296
295
|
/**
|
|
297
296
|
* We expose a subset of properties on the internal instance as they are
|
|
@@ -327,6 +326,7 @@ export declare interface ComponentInternalInstance {
|
|
|
327
326
|
/* Excluded from this release type: filters */
|
|
328
327
|
/* Excluded from this release type: propsOptions */
|
|
329
328
|
/* Excluded from this release type: emitsOptions */
|
|
329
|
+
/* Excluded from this release type: inheritAttrs */
|
|
330
330
|
proxy: ComponentPublicInstance | null;
|
|
331
331
|
exposed: Record<string, any> | null;
|
|
332
332
|
/* Excluded from this release type: withProxy */
|
|
@@ -366,8 +366,6 @@ export declare interface ComponentInternalInstance {
|
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
declare interface ComponentInternalOptions {
|
|
369
|
-
/* Excluded from this release type: __props */
|
|
370
|
-
/* Excluded from this release type: __emits */
|
|
371
369
|
/* Excluded from this release type: __scopeId */
|
|
372
370
|
/* Excluded from this release type: __cssModules */
|
|
373
371
|
/* Excluded from this release type: __hmrId */
|
|
@@ -403,7 +401,6 @@ export declare interface ComponentOptionsBase<Props, RawBindings, D, C extends C
|
|
|
403
401
|
/* Excluded from this release type: __ssrInlineRender */
|
|
404
402
|
/* Excluded from this release type: __asyncLoader */
|
|
405
403
|
/* Excluded from this release type: __asyncResolved */
|
|
406
|
-
/* Excluded from this release type: __merged */
|
|
407
404
|
call?: (this: unknown, ...args: unknown[]) => never;
|
|
408
405
|
__isFragment?: never;
|
|
409
406
|
__isTeleport?: never;
|
|
@@ -443,7 +440,7 @@ C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOpt
|
|
|
443
440
|
$parent: ComponentPublicInstance | null;
|
|
444
441
|
$emit: EmitFn<E>;
|
|
445
442
|
$el: any;
|
|
446
|
-
$options: Options;
|
|
443
|
+
$options: Options & MergedComponentOptionsOverride;
|
|
447
444
|
$forceUpdate: ReactiveEffect;
|
|
448
445
|
$nextTick: typeof nextTick;
|
|
449
446
|
$watch(source: string | Function, cb: Function, options?: WatchOptions): WatchStopHandle;
|
|
@@ -975,6 +972,30 @@ export { markRaw }
|
|
|
975
972
|
|
|
976
973
|
declare type MatchPattern = string | RegExp | string[] | RegExp[];
|
|
977
974
|
|
|
975
|
+
declare type MergedComponentOptions = ComponentOptions & MergedComponentOptionsOverride;
|
|
976
|
+
|
|
977
|
+
declare type MergedComponentOptionsOverride = {
|
|
978
|
+
beforeCreate?: MergedHook;
|
|
979
|
+
created?: MergedHook;
|
|
980
|
+
beforeMount?: MergedHook;
|
|
981
|
+
mounted?: MergedHook;
|
|
982
|
+
beforeUpdate?: MergedHook;
|
|
983
|
+
updated?: MergedHook;
|
|
984
|
+
activated?: MergedHook;
|
|
985
|
+
deactivated?: MergedHook;
|
|
986
|
+
/** @deprecated use `beforeUnmount` instead */
|
|
987
|
+
beforeDestroy?: MergedHook;
|
|
988
|
+
beforeUnmount?: MergedHook;
|
|
989
|
+
/** @deprecated use `unmounted` instead */
|
|
990
|
+
destroyed?: MergedHook;
|
|
991
|
+
unmounted?: MergedHook;
|
|
992
|
+
renderTracked?: MergedHook<DebuggerHook>;
|
|
993
|
+
renderTriggered?: MergedHook<DebuggerHook>;
|
|
994
|
+
errorCaptured?: MergedHook<ErrorCapturedHook>;
|
|
995
|
+
};
|
|
996
|
+
|
|
997
|
+
declare type MergedHook<T = (() => void)> = T | T[];
|
|
998
|
+
|
|
978
999
|
export declare function mergeProps(...args: (Data & VNodeProps)[]): Data & VNodeProps;
|
|
979
1000
|
|
|
980
1001
|
export declare interface MethodOptions {
|
|
@@ -1012,6 +1033,8 @@ declare type NormalizedProps = Record<string, NormalizedProp>;
|
|
|
1012
1033
|
|
|
1013
1034
|
declare type NormalizedPropsOptions = [NormalizedProps, string[]] | [];
|
|
1014
1035
|
|
|
1036
|
+
declare function normalizeSuspenseChildren(vnode: VNode): void;
|
|
1037
|
+
|
|
1015
1038
|
declare function normalizeVNode(child: VNodeChild): VNode;
|
|
1016
1039
|
|
|
1017
1040
|
declare const NULL_DYNAMIC_COMPONENT: unique symbol;
|
|
@@ -1029,6 +1052,11 @@ export declare interface ObjectDirective<T = any, V = any> {
|
|
|
1029
1052
|
|
|
1030
1053
|
export declare type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
|
|
1031
1054
|
|
|
1055
|
+
declare type ObjectInjectOptions = Record<string | symbol, string | symbol | {
|
|
1056
|
+
from?: string | symbol;
|
|
1057
|
+
default?: unknown;
|
|
1058
|
+
}>;
|
|
1059
|
+
|
|
1032
1060
|
declare type ObjectWatchOptionItem = {
|
|
1033
1061
|
handler: WatchCallback | string;
|
|
1034
1062
|
} & WatchOptions;
|
|
@@ -1077,7 +1105,7 @@ export declare function openBlock(disableTracking?: boolean): void;
|
|
|
1077
1105
|
|
|
1078
1106
|
declare type OptionalKeys<T> = Exclude<keyof T, RequiredKeys<T>>;
|
|
1079
1107
|
|
|
1080
|
-
export declare type OptionMergeFunction = (to: unknown, from: unknown
|
|
1108
|
+
export declare type OptionMergeFunction = (to: unknown, from: unknown) => any;
|
|
1081
1109
|
|
|
1082
1110
|
declare type OptionTypesKeys = 'P' | 'B' | 'D' | 'C' | 'M' | 'Defaults';
|
|
1083
1111
|
|
|
@@ -1420,6 +1448,7 @@ declare const SuspenseImpl: {
|
|
|
1420
1448
|
process(n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, rendererInternals: RendererInternals): void;
|
|
1421
1449
|
hydrate: typeof hydrateSuspense;
|
|
1422
1450
|
create: typeof createSuspenseBoundary;
|
|
1451
|
+
normalize: typeof normalizeSuspenseChildren;
|
|
1423
1452
|
};
|
|
1424
1453
|
|
|
1425
1454
|
export declare interface SuspenseProps {
|
|
@@ -1525,6 +1554,7 @@ export declare interface VNode<HostNode = RendererNode, HostElement = RendererEl
|
|
|
1525
1554
|
}> {
|
|
1526
1555
|
/* Excluded from this release type: __v_isVNode */
|
|
1527
1556
|
/* Excluded from this release type: __v_skip */
|
|
1557
|
+
/* Excluded from this release type: isCompatRoot */
|
|
1528
1558
|
type: VNodeTypes;
|
|
1529
1559
|
props: (VNodeProps & ExtraProps) | null;
|
|
1530
1560
|
key: string | number | null;
|