@vue/runtime-core 3.2.25 → 3.2.29
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 +6471 -6459
- package/dist/runtime-core.cjs.prod.js +5324 -5315
- package/dist/runtime-core.d.ts +19 -26
- package/dist/runtime-core.esm-bundler.js +6618 -6607
- package/package.json +6 -6
package/dist/runtime-core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { camelize } from '@vue/shared';
|
|
2
2
|
import { capitalize } from '@vue/shared';
|
|
3
3
|
import { ComponentPropsOptions as ComponentPropsOptions_2 } from '@vue/runtime-core';
|
|
4
|
-
import { computed } from '@vue/reactivity';
|
|
4
|
+
import { computed as computed_2 } from '@vue/reactivity';
|
|
5
5
|
import { ComputedGetter } from '@vue/reactivity';
|
|
6
6
|
import { ComputedRef } from '@vue/reactivity';
|
|
7
7
|
import { ComputedSetter } from '@vue/reactivity';
|
|
@@ -16,10 +16,13 @@ import { EffectScheduler } from '@vue/reactivity';
|
|
|
16
16
|
import { EffectScope } from '@vue/reactivity';
|
|
17
17
|
import { effectScope } from '@vue/reactivity';
|
|
18
18
|
import { getCurrentScope } from '@vue/reactivity';
|
|
19
|
+
import { IfAny } from '@vue/shared';
|
|
19
20
|
import { isProxy } from '@vue/reactivity';
|
|
20
21
|
import { isReactive } from '@vue/reactivity';
|
|
21
22
|
import { isReadonly } from '@vue/reactivity';
|
|
22
23
|
import { isRef } from '@vue/reactivity';
|
|
24
|
+
import { isShallow } from '@vue/reactivity';
|
|
25
|
+
import { LooseRequired } from '@vue/shared';
|
|
23
26
|
import { markRaw } from '@vue/reactivity';
|
|
24
27
|
import { normalizeClass } from '@vue/shared';
|
|
25
28
|
import { normalizeProps } from '@vue/shared';
|
|
@@ -53,6 +56,7 @@ import { toRefs } from '@vue/reactivity';
|
|
|
53
56
|
import { TrackOpTypes } from '@vue/reactivity';
|
|
54
57
|
import { TriggerOpTypes } from '@vue/reactivity';
|
|
55
58
|
import { triggerRef } from '@vue/reactivity';
|
|
59
|
+
import { UnionToIntersection } from '@vue/shared';
|
|
56
60
|
import { unref } from '@vue/reactivity';
|
|
57
61
|
import { UnwrapNestedRefs } from '@vue/reactivity';
|
|
58
62
|
import { UnwrapRef } from '@vue/reactivity';
|
|
@@ -499,7 +503,7 @@ declare type ComponentWatchOptionItem = WatchOptionItem | WatchOptionItem[];
|
|
|
499
503
|
|
|
500
504
|
declare type ComponentWatchOptions = Record<string, ComponentWatchOptionItem>;
|
|
501
505
|
|
|
502
|
-
export
|
|
506
|
+
export declare const computed: typeof computed_2;
|
|
503
507
|
|
|
504
508
|
export { ComputedGetter }
|
|
505
509
|
|
|
@@ -685,7 +689,7 @@ export declare function defineEmits<TypeEmit>(): TypeEmit;
|
|
|
685
689
|
* instance properties when it is accessed by a parent component via template
|
|
686
690
|
* refs.
|
|
687
691
|
*
|
|
688
|
-
* `<script setup>` components are closed by default - i.e.
|
|
692
|
+
* `<script setup>` components are closed by default - i.e. variables inside
|
|
689
693
|
* the `<script setup>` scope is not exposed to parent unless explicitly exposed
|
|
690
694
|
* via `defineExpose`.
|
|
691
695
|
*
|
|
@@ -872,15 +876,10 @@ any, // Mixin
|
|
|
872
876
|
any, // Extends
|
|
873
877
|
any> ? unknown extends P ? {} : P : {};
|
|
874
878
|
|
|
875
|
-
export declare type ExtractPropTypes<O> =
|
|
876
|
-
[K in keyof O]
|
|
877
|
-
} & // This is needed to keep the relation between the option prop and the props, allowing to use ctrl+click to navigate to the prop options. see: #3656
|
|
878
|
-
{
|
|
879
|
-
[K in RequiredKeys<O>]: InferPropType<O[K]>;
|
|
879
|
+
export declare type ExtractPropTypes<O> = {
|
|
880
|
+
[K in keyof Pick<O, RequiredKeys<O>>]: InferPropType<O[K]>;
|
|
880
881
|
} & {
|
|
881
|
-
[K in OptionalKeys<O
|
|
882
|
-
} : {
|
|
883
|
-
[K in string]: any;
|
|
882
|
+
[K in keyof Pick<O, OptionalKeys<O>>]?: InferPropType<O[K]>;
|
|
884
883
|
};
|
|
885
884
|
|
|
886
885
|
export declare const Fragment: {
|
|
@@ -965,8 +964,6 @@ export declare interface HydrationRenderer extends Renderer<Element | ShadowRoot
|
|
|
965
964
|
hydrate: RootHydrateFunction;
|
|
966
965
|
}
|
|
967
966
|
|
|
968
|
-
declare type IfAny<T, Y, N> = 0 extends (1 & T) ? Y : N;
|
|
969
|
-
|
|
970
967
|
declare type InferDefault<P, T> = T extends null | number | string | boolean | symbol | Function ? T : (props: P) => T;
|
|
971
968
|
|
|
972
969
|
declare type InferDefaults<T> = {
|
|
@@ -1004,8 +1001,6 @@ declare type InternalSlots = {
|
|
|
1004
1001
|
|
|
1005
1002
|
declare type IntersectionMixin<T> = IsDefaultMixinComponent<T> extends true ? OptionTypesType<{}, {}, {}, {}, {}> : UnionToIntersection<ExtractMixin<T>>;
|
|
1006
1003
|
|
|
1007
|
-
declare type InvalidateCbRegistrator = (cb: () => void) => void;
|
|
1008
|
-
|
|
1009
1004
|
declare function isCompatEnabled(key: DeprecationTypes, instance: ComponentInternalInstance | null, enableForBuiltIn?: boolean): boolean;
|
|
1010
1005
|
|
|
1011
1006
|
declare type IsDefaultMixinComponent<T> = T extends ComponentOptionsMixin ? ComponentOptionsMixin extends T ? true : false : false;
|
|
@@ -1022,6 +1017,8 @@ export { isRef }
|
|
|
1022
1017
|
|
|
1023
1018
|
export declare const isRuntimeOnly: () => boolean;
|
|
1024
1019
|
|
|
1020
|
+
export { isShallow }
|
|
1021
|
+
|
|
1025
1022
|
export declare function isVNode(value: any): value is VNode;
|
|
1026
1023
|
|
|
1027
1024
|
export declare const KeepAlive: {
|
|
@@ -1044,7 +1041,7 @@ export declare type LegacyConfig = {
|
|
|
1044
1041
|
silent?: boolean;
|
|
1045
1042
|
/**
|
|
1046
1043
|
* @deprecated use __VUE_PROD_DEVTOOLS__ compile-time feature flag instead
|
|
1047
|
-
* https://github.com/vuejs/
|
|
1044
|
+
* https://github.com/vuejs/core/tree/main/packages/vue#bundler-build-feature-flags
|
|
1048
1045
|
*/
|
|
1049
1046
|
devtools?: boolean;
|
|
1050
1047
|
/**
|
|
@@ -1143,17 +1140,13 @@ declare const enum LifecycleHooks {
|
|
|
1143
1140
|
SERVER_PREFETCH = "sp"
|
|
1144
1141
|
}
|
|
1145
1142
|
|
|
1146
|
-
declare type LooseRequired<T> = {
|
|
1147
|
-
[P in string & keyof T]: T[P];
|
|
1148
|
-
};
|
|
1149
|
-
|
|
1150
1143
|
declare type MapSources<T, Immediate> = {
|
|
1151
1144
|
[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;
|
|
1152
1145
|
};
|
|
1153
1146
|
|
|
1154
1147
|
export { markRaw }
|
|
1155
1148
|
|
|
1156
|
-
declare type MatchPattern = string | RegExp | string
|
|
1149
|
+
declare type MatchPattern = string | RegExp | (string | RegExp)[];
|
|
1157
1150
|
|
|
1158
1151
|
declare type MergedComponentOptions = ComponentOptions & MergedComponentOptionsOverride;
|
|
1159
1152
|
|
|
@@ -1263,6 +1256,8 @@ export declare const onBeforeUnmount: (hook: () => any, target?: ComponentIntern
|
|
|
1263
1256
|
|
|
1264
1257
|
export declare const onBeforeUpdate: (hook: () => any, target?: ComponentInternalInstance | null) => false | Function | undefined;
|
|
1265
1258
|
|
|
1259
|
+
declare type OnCleanup = (cleanupFn: () => void) => void;
|
|
1260
|
+
|
|
1266
1261
|
export declare function onDeactivated(hook: Function, target?: ComponentInternalInstance | null): void;
|
|
1267
1262
|
|
|
1268
1263
|
export declare function onErrorCaptured<TError = Error>(hook: ErrorCapturedHook<TError>, target?: ComponentInternalInstance | null): void;
|
|
@@ -1463,7 +1458,7 @@ export declare interface RendererOptions<HostNode = RendererNode, HostElement =
|
|
|
1463
1458
|
querySelector?(selector: string): HostElement | null;
|
|
1464
1459
|
setScopeId?(el: HostElement, id: string): void;
|
|
1465
1460
|
cloneNode?(node: HostNode): HostNode;
|
|
1466
|
-
insertStaticContent?(content: string, parent: HostElement, anchor: HostNode | null, isSVG: boolean): [HostNode, HostNode];
|
|
1461
|
+
insertStaticContent?(content: string, parent: HostElement, anchor: HostNode | null, isSVG: boolean, start?: HostNode | null, end?: HostNode | null): [HostNode, HostNode];
|
|
1467
1462
|
}
|
|
1468
1463
|
|
|
1469
1464
|
export declare type RenderFunction = () => VNodeChild;
|
|
@@ -1788,8 +1783,6 @@ export { TriggerOpTypes }
|
|
|
1788
1783
|
|
|
1789
1784
|
export { triggerRef }
|
|
1790
1785
|
|
|
1791
|
-
declare type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
1792
|
-
|
|
1793
1786
|
declare type UnmountChildrenFn = (children: VNode[], parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean, start?: number) => void;
|
|
1794
1787
|
|
|
1795
1788
|
declare type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
|
|
@@ -1901,9 +1894,9 @@ export declare function watch<T, Immediate extends Readonly<boolean> = false>(so
|
|
|
1901
1894
|
|
|
1902
1895
|
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;
|
|
1903
1896
|
|
|
1904
|
-
export declare type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV,
|
|
1897
|
+
export declare type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => any;
|
|
1905
1898
|
|
|
1906
|
-
export declare type WatchEffect = (
|
|
1899
|
+
export declare type WatchEffect = (onCleanup: OnCleanup) => void;
|
|
1907
1900
|
|
|
1908
1901
|
export declare function watchEffect(effect: WatchEffect, options?: WatchOptionsBase): WatchStopHandle;
|
|
1909
1902
|
|