@vue/runtime-core 3.4.0-alpha.3 → 3.4.0-alpha.4
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 +48 -19
- package/dist/runtime-core.cjs.prod.js +45 -4
- package/dist/runtime-core.d.ts +9 -12
- package/dist/runtime-core.esm-bundler.js +46 -21
- package/package.json +3 -3
package/dist/runtime-core.cjs.js
CHANGED
|
@@ -119,6 +119,38 @@ function assertNumber(val, type) {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
const ErrorCodes = {
|
|
123
|
+
"SETUP_FUNCTION": 0,
|
|
124
|
+
"0": "SETUP_FUNCTION",
|
|
125
|
+
"RENDER_FUNCTION": 1,
|
|
126
|
+
"1": "RENDER_FUNCTION",
|
|
127
|
+
"WATCH_GETTER": 2,
|
|
128
|
+
"2": "WATCH_GETTER",
|
|
129
|
+
"WATCH_CALLBACK": 3,
|
|
130
|
+
"3": "WATCH_CALLBACK",
|
|
131
|
+
"WATCH_CLEANUP": 4,
|
|
132
|
+
"4": "WATCH_CLEANUP",
|
|
133
|
+
"NATIVE_EVENT_HANDLER": 5,
|
|
134
|
+
"5": "NATIVE_EVENT_HANDLER",
|
|
135
|
+
"COMPONENT_EVENT_HANDLER": 6,
|
|
136
|
+
"6": "COMPONENT_EVENT_HANDLER",
|
|
137
|
+
"VNODE_HOOK": 7,
|
|
138
|
+
"7": "VNODE_HOOK",
|
|
139
|
+
"DIRECTIVE_HOOK": 8,
|
|
140
|
+
"8": "DIRECTIVE_HOOK",
|
|
141
|
+
"TRANSITION_HOOK": 9,
|
|
142
|
+
"9": "TRANSITION_HOOK",
|
|
143
|
+
"APP_ERROR_HANDLER": 10,
|
|
144
|
+
"10": "APP_ERROR_HANDLER",
|
|
145
|
+
"APP_WARN_HANDLER": 11,
|
|
146
|
+
"11": "APP_WARN_HANDLER",
|
|
147
|
+
"FUNCTION_REF": 12,
|
|
148
|
+
"12": "FUNCTION_REF",
|
|
149
|
+
"ASYNC_COMPONENT_LOADER": 13,
|
|
150
|
+
"13": "ASYNC_COMPONENT_LOADER",
|
|
151
|
+
"SCHEDULER": 14,
|
|
152
|
+
"14": "SCHEDULER"
|
|
153
|
+
};
|
|
122
154
|
const ErrorTypeStrings$1 = {
|
|
123
155
|
["sp"]: "serverPrefetch hook",
|
|
124
156
|
["bc"]: "beforeCreate hook",
|
|
@@ -1438,7 +1470,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1438
1470
|
if (delayEnter) {
|
|
1439
1471
|
activeBranch.transition.afterLeave = () => {
|
|
1440
1472
|
if (pendingId === suspense.pendingId) {
|
|
1441
|
-
move(
|
|
1473
|
+
move(
|
|
1474
|
+
pendingBranch,
|
|
1475
|
+
container2,
|
|
1476
|
+
next(activeBranch),
|
|
1477
|
+
0
|
|
1478
|
+
);
|
|
1442
1479
|
queuePostFlushCb(effects);
|
|
1443
1480
|
}
|
|
1444
1481
|
};
|
|
@@ -1485,7 +1522,6 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1485
1522
|
}
|
|
1486
1523
|
const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
|
|
1487
1524
|
triggerEvent(vnode2, "onFallback");
|
|
1488
|
-
const anchor2 = next(activeBranch);
|
|
1489
1525
|
const mountFallback = () => {
|
|
1490
1526
|
if (!suspense.isInFallback) {
|
|
1491
1527
|
return;
|
|
@@ -1494,7 +1530,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1494
1530
|
null,
|
|
1495
1531
|
fallbackVNode,
|
|
1496
1532
|
container2,
|
|
1497
|
-
|
|
1533
|
+
next(activeBranch),
|
|
1498
1534
|
parentComponent2,
|
|
1499
1535
|
null,
|
|
1500
1536
|
// fallback tree will not have suspense context
|
|
@@ -3749,18 +3785,6 @@ function createAppAPI(render, hydrate) {
|
|
|
3749
3785
|
rootProps = null;
|
|
3750
3786
|
}
|
|
3751
3787
|
const context = createAppContext();
|
|
3752
|
-
{
|
|
3753
|
-
Object.defineProperty(context.config, "unwrapInjectedRef", {
|
|
3754
|
-
get() {
|
|
3755
|
-
return true;
|
|
3756
|
-
},
|
|
3757
|
-
set() {
|
|
3758
|
-
warn(
|
|
3759
|
-
`app.config.unwrapInjectedRef has been deprecated. 3.3 now always unwraps injected refs in Options API.`
|
|
3760
|
-
);
|
|
3761
|
-
}
|
|
3762
|
-
});
|
|
3763
|
-
}
|
|
3764
3788
|
const installedPlugins = /* @__PURE__ */ new WeakSet();
|
|
3765
3789
|
let isMounted = false;
|
|
3766
3790
|
const app = context.app = {
|
|
@@ -7583,9 +7607,9 @@ function initCustomFormatter() {
|
|
|
7583
7607
|
return;
|
|
7584
7608
|
}
|
|
7585
7609
|
const vueStyle = { style: "color:#3ba776" };
|
|
7586
|
-
const numberStyle = { style: "color:#
|
|
7587
|
-
const stringStyle = { style: "color:#
|
|
7588
|
-
const keywordStyle = { style: "color:#
|
|
7610
|
+
const numberStyle = { style: "color:#1677ff" };
|
|
7611
|
+
const stringStyle = { style: "color:#f5222d" };
|
|
7612
|
+
const keywordStyle = { style: "color:#eb2f96" };
|
|
7589
7613
|
const formatter = {
|
|
7590
7614
|
header(obj) {
|
|
7591
7615
|
if (!shared.isObject(obj)) {
|
|
@@ -7779,7 +7803,7 @@ function isMemoSame(cached, memo) {
|
|
|
7779
7803
|
return true;
|
|
7780
7804
|
}
|
|
7781
7805
|
|
|
7782
|
-
const version = "3.4.0-alpha.
|
|
7806
|
+
const version = "3.4.0-alpha.4";
|
|
7783
7807
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
7784
7808
|
const _ssrUtils = {
|
|
7785
7809
|
createComponentInstance,
|
|
@@ -7792,9 +7816,12 @@ const _ssrUtils = {
|
|
|
7792
7816
|
const ssrUtils = _ssrUtils ;
|
|
7793
7817
|
const resolveFilter = null;
|
|
7794
7818
|
const compatUtils = null;
|
|
7819
|
+
const DeprecationTypes = null;
|
|
7795
7820
|
|
|
7796
7821
|
exports.EffectScope = reactivity.EffectScope;
|
|
7797
7822
|
exports.ReactiveEffect = reactivity.ReactiveEffect;
|
|
7823
|
+
exports.TrackOpTypes = reactivity.TrackOpTypes;
|
|
7824
|
+
exports.TriggerOpTypes = reactivity.TriggerOpTypes;
|
|
7798
7825
|
exports.customRef = reactivity.customRef;
|
|
7799
7826
|
exports.effect = reactivity.effect;
|
|
7800
7827
|
exports.effectScope = reactivity.effectScope;
|
|
@@ -7830,6 +7857,8 @@ exports.toHandlerKey = shared.toHandlerKey;
|
|
|
7830
7857
|
exports.BaseTransition = BaseTransition;
|
|
7831
7858
|
exports.BaseTransitionPropsValidators = BaseTransitionPropsValidators;
|
|
7832
7859
|
exports.Comment = Comment;
|
|
7860
|
+
exports.DeprecationTypes = DeprecationTypes;
|
|
7861
|
+
exports.ErrorCodes = ErrorCodes;
|
|
7833
7862
|
exports.ErrorTypeStrings = ErrorTypeStrings;
|
|
7834
7863
|
exports.Fragment = Fragment;
|
|
7835
7864
|
exports.KeepAlive = KeepAlive;
|
|
@@ -12,6 +12,38 @@ function assertNumber(val, type) {
|
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
const ErrorCodes = {
|
|
16
|
+
"SETUP_FUNCTION": 0,
|
|
17
|
+
"0": "SETUP_FUNCTION",
|
|
18
|
+
"RENDER_FUNCTION": 1,
|
|
19
|
+
"1": "RENDER_FUNCTION",
|
|
20
|
+
"WATCH_GETTER": 2,
|
|
21
|
+
"2": "WATCH_GETTER",
|
|
22
|
+
"WATCH_CALLBACK": 3,
|
|
23
|
+
"3": "WATCH_CALLBACK",
|
|
24
|
+
"WATCH_CLEANUP": 4,
|
|
25
|
+
"4": "WATCH_CLEANUP",
|
|
26
|
+
"NATIVE_EVENT_HANDLER": 5,
|
|
27
|
+
"5": "NATIVE_EVENT_HANDLER",
|
|
28
|
+
"COMPONENT_EVENT_HANDLER": 6,
|
|
29
|
+
"6": "COMPONENT_EVENT_HANDLER",
|
|
30
|
+
"VNODE_HOOK": 7,
|
|
31
|
+
"7": "VNODE_HOOK",
|
|
32
|
+
"DIRECTIVE_HOOK": 8,
|
|
33
|
+
"8": "DIRECTIVE_HOOK",
|
|
34
|
+
"TRANSITION_HOOK": 9,
|
|
35
|
+
"9": "TRANSITION_HOOK",
|
|
36
|
+
"APP_ERROR_HANDLER": 10,
|
|
37
|
+
"10": "APP_ERROR_HANDLER",
|
|
38
|
+
"APP_WARN_HANDLER": 11,
|
|
39
|
+
"11": "APP_WARN_HANDLER",
|
|
40
|
+
"FUNCTION_REF": 12,
|
|
41
|
+
"12": "FUNCTION_REF",
|
|
42
|
+
"ASYNC_COMPONENT_LOADER": 13,
|
|
43
|
+
"13": "ASYNC_COMPONENT_LOADER",
|
|
44
|
+
"SCHEDULER": 14,
|
|
45
|
+
"14": "SCHEDULER"
|
|
46
|
+
};
|
|
15
47
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
16
48
|
let res;
|
|
17
49
|
try {
|
|
@@ -923,7 +955,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
923
955
|
if (delayEnter) {
|
|
924
956
|
activeBranch.transition.afterLeave = () => {
|
|
925
957
|
if (pendingId === suspense.pendingId) {
|
|
926
|
-
move(
|
|
958
|
+
move(
|
|
959
|
+
pendingBranch,
|
|
960
|
+
container2,
|
|
961
|
+
next(activeBranch),
|
|
962
|
+
0
|
|
963
|
+
);
|
|
927
964
|
queuePostFlushCb(effects);
|
|
928
965
|
}
|
|
929
966
|
};
|
|
@@ -970,7 +1007,6 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
970
1007
|
}
|
|
971
1008
|
const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
|
|
972
1009
|
triggerEvent(vnode2, "onFallback");
|
|
973
|
-
const anchor2 = next(activeBranch);
|
|
974
1010
|
const mountFallback = () => {
|
|
975
1011
|
if (!suspense.isInFallback) {
|
|
976
1012
|
return;
|
|
@@ -979,7 +1015,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
979
1015
|
null,
|
|
980
1016
|
fallbackVNode,
|
|
981
1017
|
container2,
|
|
982
|
-
|
|
1018
|
+
next(activeBranch),
|
|
983
1019
|
parentComponent2,
|
|
984
1020
|
null,
|
|
985
1021
|
// fallback tree will not have suspense context
|
|
@@ -6104,7 +6140,7 @@ function isMemoSame(cached, memo) {
|
|
|
6104
6140
|
return true;
|
|
6105
6141
|
}
|
|
6106
6142
|
|
|
6107
|
-
const version = "3.4.0-alpha.
|
|
6143
|
+
const version = "3.4.0-alpha.4";
|
|
6108
6144
|
const ErrorTypeStrings = null;
|
|
6109
6145
|
const _ssrUtils = {
|
|
6110
6146
|
createComponentInstance,
|
|
@@ -6117,9 +6153,12 @@ const _ssrUtils = {
|
|
|
6117
6153
|
const ssrUtils = _ssrUtils ;
|
|
6118
6154
|
const resolveFilter = null;
|
|
6119
6155
|
const compatUtils = null;
|
|
6156
|
+
const DeprecationTypes = null;
|
|
6120
6157
|
|
|
6121
6158
|
exports.EffectScope = reactivity.EffectScope;
|
|
6122
6159
|
exports.ReactiveEffect = reactivity.ReactiveEffect;
|
|
6160
|
+
exports.TrackOpTypes = reactivity.TrackOpTypes;
|
|
6161
|
+
exports.TriggerOpTypes = reactivity.TriggerOpTypes;
|
|
6123
6162
|
exports.customRef = reactivity.customRef;
|
|
6124
6163
|
exports.effect = reactivity.effect;
|
|
6125
6164
|
exports.effectScope = reactivity.effectScope;
|
|
@@ -6155,6 +6194,8 @@ exports.toHandlerKey = shared.toHandlerKey;
|
|
|
6155
6194
|
exports.BaseTransition = BaseTransition;
|
|
6156
6195
|
exports.BaseTransitionPropsValidators = BaseTransitionPropsValidators;
|
|
6157
6196
|
exports.Comment = Comment;
|
|
6197
|
+
exports.DeprecationTypes = DeprecationTypes;
|
|
6198
|
+
exports.ErrorCodes = ErrorCodes;
|
|
6158
6199
|
exports.ErrorTypeStrings = ErrorTypeStrings;
|
|
6159
6200
|
exports.Fragment = Fragment;
|
|
6160
6201
|
exports.KeepAlive = KeepAlive;
|
package/dist/runtime-core.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOpt
|
|
|
128
128
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R]) => any : (...args: any) => any, options?: WatchOptions): WatchStopHandle;
|
|
129
129
|
} & IfAny<P, P, Omit<P, keyof ShallowUnwrapRef<B>>> & ShallowUnwrapRef<B> & UnwrapNestedRefs<D> & ExtractComputedReturns<C> & M & ComponentCustomProperties & InjectToObject<I>;
|
|
130
130
|
|
|
131
|
-
declare
|
|
131
|
+
declare enum LifecycleHooks {
|
|
132
132
|
BEFORE_CREATE = "bc",
|
|
133
133
|
CREATED = "c",
|
|
134
134
|
BEFORE_MOUNT = "bm",
|
|
@@ -325,7 +325,7 @@ type RemoveFn = (vnode: VNode) => void;
|
|
|
325
325
|
type UnmountChildrenFn = (children: VNode[], parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean, start?: number) => void;
|
|
326
326
|
type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
|
|
327
327
|
type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
|
|
328
|
-
declare
|
|
328
|
+
declare enum MoveType {
|
|
329
329
|
ENTER = 0,
|
|
330
330
|
LEAVE = 1,
|
|
331
331
|
REORDER = 2
|
|
@@ -514,7 +514,7 @@ export type DirectiveArguments = Array<[Directive | undefined] | [Directive | un
|
|
|
514
514
|
*/
|
|
515
515
|
export declare function withDirectives<T extends VNode>(vnode: T, directives: DirectiveArguments): T;
|
|
516
516
|
|
|
517
|
-
|
|
517
|
+
declare enum DeprecationTypes$1 {
|
|
518
518
|
GLOBAL_MOUNT = "GLOBAL_MOUNT",
|
|
519
519
|
GLOBAL_MOUNT_CONTAINER = "GLOBAL_MOUNT_CONTAINER",
|
|
520
520
|
GLOBAL_EXTEND = "GLOBAL_EXTEND",
|
|
@@ -558,7 +558,7 @@ export declare const enum DeprecationTypes {
|
|
|
558
558
|
FILTERS = "FILTERS",
|
|
559
559
|
PRIVATE_APIS = "PRIVATE_APIS"
|
|
560
560
|
}
|
|
561
|
-
type CompatConfig = Partial<Record<DeprecationTypes, boolean | 'suppress-warning'>> & {
|
|
561
|
+
type CompatConfig = Partial<Record<DeprecationTypes$1, boolean | 'suppress-warning'>> & {
|
|
562
562
|
MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3);
|
|
563
563
|
};
|
|
564
564
|
declare function configureCompat(config: CompatConfig): void;
|
|
@@ -805,11 +805,6 @@ export interface AppConfig {
|
|
|
805
805
|
* @deprecated use config.compilerOptions.isCustomElement
|
|
806
806
|
*/
|
|
807
807
|
isCustomElement?: (tag: string) => boolean;
|
|
808
|
-
/**
|
|
809
|
-
* Temporary config for opt-in to unwrap injected refs.
|
|
810
|
-
* @deprecated this no longer has effect. 3.3 always unwraps injected refs.
|
|
811
|
-
*/
|
|
812
|
-
unwrapInjectedRef?: boolean;
|
|
813
808
|
}
|
|
814
809
|
export interface AppContext {
|
|
815
810
|
app: App;
|
|
@@ -840,7 +835,7 @@ declare const TeleportImpl: {
|
|
|
840
835
|
move: typeof moveTeleport;
|
|
841
836
|
hydrate: typeof hydrateTeleport;
|
|
842
837
|
};
|
|
843
|
-
declare
|
|
838
|
+
declare enum TeleportMoveTypes {
|
|
844
839
|
TARGET_CHANGE = 0,
|
|
845
840
|
TOGGLE = 1,
|
|
846
841
|
REORDER = 2
|
|
@@ -1039,7 +1034,7 @@ interface ComponentInternalOptions {
|
|
|
1039
1034
|
__name?: string;
|
|
1040
1035
|
}
|
|
1041
1036
|
export interface FunctionalComponent<P = {}, E extends EmitsOptions = {}, S extends Record<string, any> = any> extends ComponentInternalOptions {
|
|
1042
|
-
(props: P
|
|
1037
|
+
(props: P & EmitsToProps<E>, ctx: Omit<SetupContext<E, IfAny<S, {}, SlotsType<S>>>, 'expose'>): any;
|
|
1043
1038
|
props?: ComponentPropsOptions<P>;
|
|
1044
1039
|
emits?: E | (keyof E)[];
|
|
1045
1040
|
slots?: IfAny<S, Slots, SlotsType<S>>;
|
|
@@ -1393,7 +1388,7 @@ export declare const useSSRContext: <T = Record<string, any>>() => T | undefined
|
|
|
1393
1388
|
|
|
1394
1389
|
export declare function warn(msg: string, ...args: any[]): void;
|
|
1395
1390
|
|
|
1396
|
-
export declare
|
|
1391
|
+
export declare enum ErrorCodes {
|
|
1397
1392
|
SETUP_FUNCTION = 0,
|
|
1398
1393
|
RENDER_FUNCTION = 1,
|
|
1399
1394
|
WATCH_GETTER = 2,
|
|
@@ -1613,6 +1608,8 @@ declare module '@vue/reactivity' {
|
|
|
1613
1608
|
}
|
|
1614
1609
|
}
|
|
1615
1610
|
|
|
1611
|
+
export declare const DeprecationTypes: typeof DeprecationTypes$1;
|
|
1612
|
+
|
|
1616
1613
|
export { createBaseVNode as createElementVNode, };
|
|
1617
1614
|
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
1618
1615
|
// build.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { pauseTracking, resetTracking, isRef, toRaw, getCurrentScope, isShallow as isShallow$1, isReactive, ReactiveEffect, ref, shallowReadonly, track, reactive, shallowReactive, trigger, isProxy, proxyRefs, markRaw, EffectScope, computed as computed$1, isReadonly } from '@vue/reactivity';
|
|
2
|
-
export { EffectScope, ReactiveEffect, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
|
|
2
|
+
export { EffectScope, ReactiveEffect, TrackOpTypes, TriggerOpTypes, customRef, effect, effectScope, getCurrentScope, isProxy, isReactive, isReadonly, isRef, isShallow, markRaw, onScopeDispose, proxyRefs, reactive, readonly, ref, shallowReactive, shallowReadonly, shallowRef, stop, toRaw, toRef, toRefs, toValue, triggerRef, unref } from '@vue/reactivity';
|
|
3
3
|
import { isString, isFunction, isPromise, isArray, NOOP, getGlobalThis, extend, EMPTY_OBJ, toHandlerKey, looseToNumber, hyphenate, camelize, isObject, isOn, hasOwn, isModelListener, capitalize, toNumber, hasChanged, remove, isSet, isMap, isPlainObject, isBuiltInDirective, invokeArrayFns, isRegExp, isGloballyAllowed, NO, def, isReservedProp, EMPTY_ARR, toRawType, makeMap, normalizeClass, normalizeStyle } from '@vue/shared';
|
|
4
4
|
export { camelize, capitalize, normalizeClass, normalizeProps, normalizeStyle, toDisplayString, toHandlerKey } from '@vue/shared';
|
|
5
5
|
|
|
@@ -121,6 +121,38 @@ function assertNumber(val, type) {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
const ErrorCodes = {
|
|
125
|
+
"SETUP_FUNCTION": 0,
|
|
126
|
+
"0": "SETUP_FUNCTION",
|
|
127
|
+
"RENDER_FUNCTION": 1,
|
|
128
|
+
"1": "RENDER_FUNCTION",
|
|
129
|
+
"WATCH_GETTER": 2,
|
|
130
|
+
"2": "WATCH_GETTER",
|
|
131
|
+
"WATCH_CALLBACK": 3,
|
|
132
|
+
"3": "WATCH_CALLBACK",
|
|
133
|
+
"WATCH_CLEANUP": 4,
|
|
134
|
+
"4": "WATCH_CLEANUP",
|
|
135
|
+
"NATIVE_EVENT_HANDLER": 5,
|
|
136
|
+
"5": "NATIVE_EVENT_HANDLER",
|
|
137
|
+
"COMPONENT_EVENT_HANDLER": 6,
|
|
138
|
+
"6": "COMPONENT_EVENT_HANDLER",
|
|
139
|
+
"VNODE_HOOK": 7,
|
|
140
|
+
"7": "VNODE_HOOK",
|
|
141
|
+
"DIRECTIVE_HOOK": 8,
|
|
142
|
+
"8": "DIRECTIVE_HOOK",
|
|
143
|
+
"TRANSITION_HOOK": 9,
|
|
144
|
+
"9": "TRANSITION_HOOK",
|
|
145
|
+
"APP_ERROR_HANDLER": 10,
|
|
146
|
+
"10": "APP_ERROR_HANDLER",
|
|
147
|
+
"APP_WARN_HANDLER": 11,
|
|
148
|
+
"11": "APP_WARN_HANDLER",
|
|
149
|
+
"FUNCTION_REF": 12,
|
|
150
|
+
"12": "FUNCTION_REF",
|
|
151
|
+
"ASYNC_COMPONENT_LOADER": 13,
|
|
152
|
+
"13": "ASYNC_COMPONENT_LOADER",
|
|
153
|
+
"SCHEDULER": 14,
|
|
154
|
+
"14": "SCHEDULER"
|
|
155
|
+
};
|
|
124
156
|
const ErrorTypeStrings$1 = {
|
|
125
157
|
["sp"]: "serverPrefetch hook",
|
|
126
158
|
["bc"]: "beforeCreate hook",
|
|
@@ -1442,7 +1474,12 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1442
1474
|
if (delayEnter) {
|
|
1443
1475
|
activeBranch.transition.afterLeave = () => {
|
|
1444
1476
|
if (pendingId === suspense.pendingId) {
|
|
1445
|
-
move(
|
|
1477
|
+
move(
|
|
1478
|
+
pendingBranch,
|
|
1479
|
+
container2,
|
|
1480
|
+
next(activeBranch),
|
|
1481
|
+
0
|
|
1482
|
+
);
|
|
1446
1483
|
queuePostFlushCb(effects);
|
|
1447
1484
|
}
|
|
1448
1485
|
};
|
|
@@ -1489,7 +1526,6 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1489
1526
|
}
|
|
1490
1527
|
const { vnode: vnode2, activeBranch, parentComponent: parentComponent2, container: container2, isSVG: isSVG2 } = suspense;
|
|
1491
1528
|
triggerEvent(vnode2, "onFallback");
|
|
1492
|
-
const anchor2 = next(activeBranch);
|
|
1493
1529
|
const mountFallback = () => {
|
|
1494
1530
|
if (!suspense.isInFallback) {
|
|
1495
1531
|
return;
|
|
@@ -1498,7 +1534,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
1498
1534
|
null,
|
|
1499
1535
|
fallbackVNode,
|
|
1500
1536
|
container2,
|
|
1501
|
-
|
|
1537
|
+
next(activeBranch),
|
|
1502
1538
|
parentComponent2,
|
|
1503
1539
|
null,
|
|
1504
1540
|
// fallback tree will not have suspense context
|
|
@@ -3757,18 +3793,6 @@ function createAppAPI(render, hydrate) {
|
|
|
3757
3793
|
rootProps = null;
|
|
3758
3794
|
}
|
|
3759
3795
|
const context = createAppContext();
|
|
3760
|
-
if (!!(process.env.NODE_ENV !== "production")) {
|
|
3761
|
-
Object.defineProperty(context.config, "unwrapInjectedRef", {
|
|
3762
|
-
get() {
|
|
3763
|
-
return true;
|
|
3764
|
-
},
|
|
3765
|
-
set() {
|
|
3766
|
-
warn(
|
|
3767
|
-
`app.config.unwrapInjectedRef has been deprecated. 3.3 now always unwraps injected refs in Options API.`
|
|
3768
|
-
);
|
|
3769
|
-
}
|
|
3770
|
-
});
|
|
3771
|
-
}
|
|
3772
3796
|
const installedPlugins = /* @__PURE__ */ new WeakSet();
|
|
3773
3797
|
let isMounted = false;
|
|
3774
3798
|
const app = context.app = {
|
|
@@ -7643,9 +7667,9 @@ function initCustomFormatter() {
|
|
|
7643
7667
|
return;
|
|
7644
7668
|
}
|
|
7645
7669
|
const vueStyle = { style: "color:#3ba776" };
|
|
7646
|
-
const numberStyle = { style: "color:#
|
|
7647
|
-
const stringStyle = { style: "color:#
|
|
7648
|
-
const keywordStyle = { style: "color:#
|
|
7670
|
+
const numberStyle = { style: "color:#1677ff" };
|
|
7671
|
+
const stringStyle = { style: "color:#f5222d" };
|
|
7672
|
+
const keywordStyle = { style: "color:#eb2f96" };
|
|
7649
7673
|
const formatter = {
|
|
7650
7674
|
header(obj) {
|
|
7651
7675
|
if (!isObject(obj)) {
|
|
@@ -7839,7 +7863,7 @@ function isMemoSame(cached, memo) {
|
|
|
7839
7863
|
return true;
|
|
7840
7864
|
}
|
|
7841
7865
|
|
|
7842
|
-
const version = "3.4.0-alpha.
|
|
7866
|
+
const version = "3.4.0-alpha.4";
|
|
7843
7867
|
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
|
7844
7868
|
const _ssrUtils = {
|
|
7845
7869
|
createComponentInstance,
|
|
@@ -7852,5 +7876,6 @@ const _ssrUtils = {
|
|
|
7852
7876
|
const ssrUtils = _ssrUtils ;
|
|
7853
7877
|
const resolveFilter = null;
|
|
7854
7878
|
const compatUtils = null;
|
|
7879
|
+
const DeprecationTypes = null;
|
|
7855
7880
|
|
|
7856
|
-
export { BaseTransition, BaseTransitionPropsValidators, Comment, ErrorTypeStrings, 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, defineModel, defineOptions, defineProps, defineSlots, devtools, getCurrentInstance, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, initCustomFormatter, inject, isMemoSame, isRuntimeOnly, isVNode, mergeDefaults, mergeModels, 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, useModel, useSSRContext, useSlots, useTransitionState, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withMemo, withScopeId };
|
|
7881
|
+
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, ErrorCodes, ErrorTypeStrings, 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, defineModel, defineOptions, defineProps, defineSlots, devtools, getCurrentInstance, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, initCustomFormatter, inject, isMemoSame, isRuntimeOnly, isVNode, mergeDefaults, mergeModels, 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, useModel, 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.4.0-alpha.
|
|
3
|
+
"version": "3.4.0-alpha.4",
|
|
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/
|
|
36
|
-
"@vue/
|
|
35
|
+
"@vue/reactivity": "3.4.0-alpha.4",
|
|
36
|
+
"@vue/shared": "3.4.0-alpha.4"
|
|
37
37
|
}
|
|
38
38
|
}
|