@vue/compat 3.3.0-alpha.3 → 3.3.0-alpha.5
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/vue.cjs.js +626 -610
- package/dist/vue.cjs.prod.js +592 -594
- package/dist/vue.esm-browser.js +566 -560
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +577 -561
- package/dist/vue.global.js +566 -560
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +157 -151
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +168 -152
- package/dist/vue.runtime.global.js +157 -151
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +2 -2
|
@@ -7,6 +7,96 @@ function makeMap(str, expectsLowerCase) {
|
|
|
7
7
|
return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
const EMPTY_OBJ = Object.freeze({}) ;
|
|
11
|
+
const EMPTY_ARR = Object.freeze([]) ;
|
|
12
|
+
const NOOP = () => {
|
|
13
|
+
};
|
|
14
|
+
const NO = () => false;
|
|
15
|
+
const onRE = /^on[^a-z]/;
|
|
16
|
+
const isOn = (key) => onRE.test(key);
|
|
17
|
+
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
18
|
+
const extend = Object.assign;
|
|
19
|
+
const remove = (arr, el) => {
|
|
20
|
+
const i = arr.indexOf(el);
|
|
21
|
+
if (i > -1) {
|
|
22
|
+
arr.splice(i, 1);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
26
|
+
const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
|
|
27
|
+
const isArray = Array.isArray;
|
|
28
|
+
const isMap = (val) => toTypeString(val) === "[object Map]";
|
|
29
|
+
const isSet = (val) => toTypeString(val) === "[object Set]";
|
|
30
|
+
const isDate = (val) => toTypeString(val) === "[object Date]";
|
|
31
|
+
const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
|
|
32
|
+
const isFunction = (val) => typeof val === "function";
|
|
33
|
+
const isString = (val) => typeof val === "string";
|
|
34
|
+
const isSymbol = (val) => typeof val === "symbol";
|
|
35
|
+
const isObject = (val) => val !== null && typeof val === "object";
|
|
36
|
+
const isPromise = (val) => {
|
|
37
|
+
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
38
|
+
};
|
|
39
|
+
const objectToString = Object.prototype.toString;
|
|
40
|
+
const toTypeString = (value) => objectToString.call(value);
|
|
41
|
+
const toRawType = (value) => {
|
|
42
|
+
return toTypeString(value).slice(8, -1);
|
|
43
|
+
};
|
|
44
|
+
const isPlainObject = (val) => toTypeString(val) === "[object Object]";
|
|
45
|
+
const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
|
|
46
|
+
const isReservedProp = /* @__PURE__ */ makeMap(
|
|
47
|
+
// the leading comma is intentional so empty string "" is also included
|
|
48
|
+
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
49
|
+
);
|
|
50
|
+
const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
51
|
+
"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
|
|
52
|
+
);
|
|
53
|
+
const cacheStringFunction = (fn) => {
|
|
54
|
+
const cache = /* @__PURE__ */ Object.create(null);
|
|
55
|
+
return (str) => {
|
|
56
|
+
const hit = cache[str];
|
|
57
|
+
return hit || (cache[str] = fn(str));
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
const camelizeRE = /-(\w)/g;
|
|
61
|
+
const camelize = cacheStringFunction((str) => {
|
|
62
|
+
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
63
|
+
});
|
|
64
|
+
const hyphenateRE = /\B([A-Z])/g;
|
|
65
|
+
const hyphenate = cacheStringFunction(
|
|
66
|
+
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
67
|
+
);
|
|
68
|
+
const capitalize = cacheStringFunction(
|
|
69
|
+
(str) => str.charAt(0).toUpperCase() + str.slice(1)
|
|
70
|
+
);
|
|
71
|
+
const toHandlerKey = cacheStringFunction(
|
|
72
|
+
(str) => str ? `on${capitalize(str)}` : ``
|
|
73
|
+
);
|
|
74
|
+
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
75
|
+
const invokeArrayFns = (fns, arg) => {
|
|
76
|
+
for (let i = 0; i < fns.length; i++) {
|
|
77
|
+
fns[i](arg);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const def = (obj, key, value) => {
|
|
81
|
+
Object.defineProperty(obj, key, {
|
|
82
|
+
configurable: true,
|
|
83
|
+
enumerable: false,
|
|
84
|
+
value
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
const looseToNumber = (val) => {
|
|
88
|
+
const n = parseFloat(val);
|
|
89
|
+
return isNaN(n) ? val : n;
|
|
90
|
+
};
|
|
91
|
+
const toNumber = (val) => {
|
|
92
|
+
const n = isString(val) ? Number(val) : NaN;
|
|
93
|
+
return isNaN(n) ? val : n;
|
|
94
|
+
};
|
|
95
|
+
let _globalThis;
|
|
96
|
+
const getGlobalThis = () => {
|
|
97
|
+
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
98
|
+
};
|
|
99
|
+
|
|
10
100
|
const GLOBALS_WHITE_LISTED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt";
|
|
11
101
|
const isGloballyWhitelisted = /* @__PURE__ */ makeMap(GLOBALS_WHITE_LISTED);
|
|
12
102
|
|
|
@@ -161,96 +251,6 @@ const replacer = (_key, val) => {
|
|
|
161
251
|
return val;
|
|
162
252
|
};
|
|
163
253
|
|
|
164
|
-
const EMPTY_OBJ = Object.freeze({}) ;
|
|
165
|
-
const EMPTY_ARR = Object.freeze([]) ;
|
|
166
|
-
const NOOP = () => {
|
|
167
|
-
};
|
|
168
|
-
const NO = () => false;
|
|
169
|
-
const onRE = /^on[^a-z]/;
|
|
170
|
-
const isOn = (key) => onRE.test(key);
|
|
171
|
-
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
172
|
-
const extend = Object.assign;
|
|
173
|
-
const remove = (arr, el) => {
|
|
174
|
-
const i = arr.indexOf(el);
|
|
175
|
-
if (i > -1) {
|
|
176
|
-
arr.splice(i, 1);
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
180
|
-
const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
|
|
181
|
-
const isArray = Array.isArray;
|
|
182
|
-
const isMap = (val) => toTypeString(val) === "[object Map]";
|
|
183
|
-
const isSet = (val) => toTypeString(val) === "[object Set]";
|
|
184
|
-
const isDate = (val) => toTypeString(val) === "[object Date]";
|
|
185
|
-
const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
|
|
186
|
-
const isFunction = (val) => typeof val === "function";
|
|
187
|
-
const isString = (val) => typeof val === "string";
|
|
188
|
-
const isSymbol = (val) => typeof val === "symbol";
|
|
189
|
-
const isObject = (val) => val !== null && typeof val === "object";
|
|
190
|
-
const isPromise = (val) => {
|
|
191
|
-
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
192
|
-
};
|
|
193
|
-
const objectToString = Object.prototype.toString;
|
|
194
|
-
const toTypeString = (value) => objectToString.call(value);
|
|
195
|
-
const toRawType = (value) => {
|
|
196
|
-
return toTypeString(value).slice(8, -1);
|
|
197
|
-
};
|
|
198
|
-
const isPlainObject = (val) => toTypeString(val) === "[object Object]";
|
|
199
|
-
const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
|
|
200
|
-
const isReservedProp = /* @__PURE__ */ makeMap(
|
|
201
|
-
// the leading comma is intentional so empty string "" is also included
|
|
202
|
-
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
203
|
-
);
|
|
204
|
-
const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
205
|
-
"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
|
|
206
|
-
);
|
|
207
|
-
const cacheStringFunction = (fn) => {
|
|
208
|
-
const cache = /* @__PURE__ */ Object.create(null);
|
|
209
|
-
return (str) => {
|
|
210
|
-
const hit = cache[str];
|
|
211
|
-
return hit || (cache[str] = fn(str));
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
const camelizeRE = /-(\w)/g;
|
|
215
|
-
const camelize = cacheStringFunction((str) => {
|
|
216
|
-
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
217
|
-
});
|
|
218
|
-
const hyphenateRE = /\B([A-Z])/g;
|
|
219
|
-
const hyphenate = cacheStringFunction(
|
|
220
|
-
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
221
|
-
);
|
|
222
|
-
const capitalize = cacheStringFunction(
|
|
223
|
-
(str) => str.charAt(0).toUpperCase() + str.slice(1)
|
|
224
|
-
);
|
|
225
|
-
const toHandlerKey = cacheStringFunction(
|
|
226
|
-
(str) => str ? `on${capitalize(str)}` : ``
|
|
227
|
-
);
|
|
228
|
-
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
229
|
-
const invokeArrayFns = (fns, arg) => {
|
|
230
|
-
for (let i = 0; i < fns.length; i++) {
|
|
231
|
-
fns[i](arg);
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
const def = (obj, key, value) => {
|
|
235
|
-
Object.defineProperty(obj, key, {
|
|
236
|
-
configurable: true,
|
|
237
|
-
enumerable: false,
|
|
238
|
-
value
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
const looseToNumber = (val) => {
|
|
242
|
-
const n = parseFloat(val);
|
|
243
|
-
return isNaN(n) ? val : n;
|
|
244
|
-
};
|
|
245
|
-
const toNumber = (val) => {
|
|
246
|
-
const n = isString(val) ? Number(val) : NaN;
|
|
247
|
-
return isNaN(n) ? val : n;
|
|
248
|
-
};
|
|
249
|
-
let _globalThis;
|
|
250
|
-
const getGlobalThis = () => {
|
|
251
|
-
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
252
|
-
};
|
|
253
|
-
|
|
254
254
|
function warn$1(msg, ...args) {
|
|
255
255
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
256
256
|
}
|
|
@@ -1400,7 +1400,7 @@ function warn(msg, ...args) {
|
|
|
1400
1400
|
callWithErrorHandling(
|
|
1401
1401
|
appWarnHandler,
|
|
1402
1402
|
instance,
|
|
1403
|
-
|
|
1403
|
+
11,
|
|
1404
1404
|
[
|
|
1405
1405
|
msg + args.join(""),
|
|
1406
1406
|
instance && instance.proxy,
|
|
@@ -1513,21 +1513,21 @@ const ErrorTypeStrings = {
|
|
|
1513
1513
|
["ec"]: "errorCaptured hook",
|
|
1514
1514
|
["rtc"]: "renderTracked hook",
|
|
1515
1515
|
["rtg"]: "renderTriggered hook",
|
|
1516
|
-
[
|
|
1517
|
-
[
|
|
1518
|
-
[
|
|
1519
|
-
[
|
|
1520
|
-
[
|
|
1521
|
-
[
|
|
1522
|
-
[
|
|
1523
|
-
[
|
|
1524
|
-
[
|
|
1525
|
-
[
|
|
1526
|
-
[
|
|
1527
|
-
[
|
|
1528
|
-
[
|
|
1529
|
-
[
|
|
1530
|
-
[
|
|
1516
|
+
[0]: "setup function",
|
|
1517
|
+
[1]: "render function",
|
|
1518
|
+
[2]: "watcher getter",
|
|
1519
|
+
[3]: "watcher callback",
|
|
1520
|
+
[4]: "watcher cleanup function",
|
|
1521
|
+
[5]: "native event handler",
|
|
1522
|
+
[6]: "component event handler",
|
|
1523
|
+
[7]: "vnode hook",
|
|
1524
|
+
[8]: "directive hook",
|
|
1525
|
+
[9]: "transition hook",
|
|
1526
|
+
[10]: "app errorHandler",
|
|
1527
|
+
[11]: "app warnHandler",
|
|
1528
|
+
[12]: "ref function",
|
|
1529
|
+
[13]: "async component loader",
|
|
1530
|
+
[14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
|
|
1531
1531
|
};
|
|
1532
1532
|
function callWithErrorHandling(fn, instance, type, args) {
|
|
1533
1533
|
let res;
|
|
@@ -1576,7 +1576,7 @@ function handleError(err, instance, type, throwInDev = true) {
|
|
|
1576
1576
|
callWithErrorHandling(
|
|
1577
1577
|
appErrorHandler,
|
|
1578
1578
|
null,
|
|
1579
|
-
|
|
1579
|
+
10,
|
|
1580
1580
|
[err, exposedInstance, errorInfo]
|
|
1581
1581
|
);
|
|
1582
1582
|
return;
|
|
@@ -1729,7 +1729,7 @@ function flushJobs(seen) {
|
|
|
1729
1729
|
if (check(job)) {
|
|
1730
1730
|
continue;
|
|
1731
1731
|
}
|
|
1732
|
-
callWithErrorHandling(job, null,
|
|
1732
|
+
callWithErrorHandling(job, null, 14);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
1735
|
} finally {
|
|
@@ -2347,7 +2347,7 @@ function emit$1(instance, event, args) {
|
|
|
2347
2347
|
callWithAsyncErrorHandling(
|
|
2348
2348
|
cbs.map((cb) => cb.bind(instance.proxy)),
|
|
2349
2349
|
instance,
|
|
2350
|
-
|
|
2350
|
+
6,
|
|
2351
2351
|
args
|
|
2352
2352
|
);
|
|
2353
2353
|
}
|
|
@@ -2409,7 +2409,7 @@ function compatModelEmit(instance, event, args) {
|
|
|
2409
2409
|
callWithErrorHandling(
|
|
2410
2410
|
modelHandler,
|
|
2411
2411
|
instance,
|
|
2412
|
-
|
|
2412
|
+
6,
|
|
2413
2413
|
args
|
|
2414
2414
|
);
|
|
2415
2415
|
}
|
|
@@ -2481,7 +2481,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2481
2481
|
callWithAsyncErrorHandling(
|
|
2482
2482
|
handler,
|
|
2483
2483
|
instance,
|
|
2484
|
-
|
|
2484
|
+
6,
|
|
2485
2485
|
args
|
|
2486
2486
|
);
|
|
2487
2487
|
}
|
|
@@ -2496,7 +2496,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2496
2496
|
callWithAsyncErrorHandling(
|
|
2497
2497
|
onceHandler,
|
|
2498
2498
|
instance,
|
|
2499
|
-
|
|
2499
|
+
6,
|
|
2500
2500
|
args
|
|
2501
2501
|
);
|
|
2502
2502
|
}
|
|
@@ -2680,7 +2680,7 @@ function renderComponentRoot(instance) {
|
|
|
2680
2680
|
}
|
|
2681
2681
|
} catch (err) {
|
|
2682
2682
|
blockStack.length = 0;
|
|
2683
|
-
handleError(err, instance,
|
|
2683
|
+
handleError(err, instance, 1);
|
|
2684
2684
|
result = createVNode(Comment);
|
|
2685
2685
|
}
|
|
2686
2686
|
let root = result;
|
|
@@ -3207,7 +3207,7 @@ function createSuspenseBoundary(vnode, parent, parentComponent, container, hidde
|
|
|
3207
3207
|
if (delayEnter) {
|
|
3208
3208
|
activeBranch.transition.afterLeave = () => {
|
|
3209
3209
|
if (pendingId === suspense.pendingId) {
|
|
3210
|
-
move(pendingBranch, container2, anchor2,
|
|
3210
|
+
move(pendingBranch, container2, anchor2, 0);
|
|
3211
3211
|
}
|
|
3212
3212
|
};
|
|
3213
3213
|
}
|
|
@@ -3217,7 +3217,7 @@ function createSuspenseBoundary(vnode, parent, parentComponent, container, hidde
|
|
|
3217
3217
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
3218
3218
|
}
|
|
3219
3219
|
if (!delayEnter) {
|
|
3220
|
-
move(pendingBranch, container2, anchor2,
|
|
3220
|
+
move(pendingBranch, container2, anchor2, 0);
|
|
3221
3221
|
}
|
|
3222
3222
|
}
|
|
3223
3223
|
setActiveBranch(suspense, pendingBranch);
|
|
@@ -3295,7 +3295,7 @@ function createSuspenseBoundary(vnode, parent, parentComponent, container, hidde
|
|
|
3295
3295
|
}
|
|
3296
3296
|
const hydratedEl = instance.vnode.el;
|
|
3297
3297
|
instance.asyncDep.catch((err) => {
|
|
3298
|
-
handleError(err, instance,
|
|
3298
|
+
handleError(err, instance, 0);
|
|
3299
3299
|
}).then((asyncSetupResult) => {
|
|
3300
3300
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
3301
3301
|
return;
|
|
@@ -3539,14 +3539,14 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3539
3539
|
} else if (isReactive(s)) {
|
|
3540
3540
|
return traverse(s);
|
|
3541
3541
|
} else if (isFunction(s)) {
|
|
3542
|
-
return callWithErrorHandling(s, instance,
|
|
3542
|
+
return callWithErrorHandling(s, instance, 2);
|
|
3543
3543
|
} else {
|
|
3544
3544
|
warnInvalidSource(s);
|
|
3545
3545
|
}
|
|
3546
3546
|
});
|
|
3547
3547
|
} else if (isFunction(source)) {
|
|
3548
3548
|
if (cb) {
|
|
3549
|
-
getter = () => callWithErrorHandling(source, instance,
|
|
3549
|
+
getter = () => callWithErrorHandling(source, instance, 2);
|
|
3550
3550
|
} else {
|
|
3551
3551
|
getter = () => {
|
|
3552
3552
|
if (instance && instance.isUnmounted) {
|
|
@@ -3558,7 +3558,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3558
3558
|
return callWithAsyncErrorHandling(
|
|
3559
3559
|
source,
|
|
3560
3560
|
instance,
|
|
3561
|
-
|
|
3561
|
+
3,
|
|
3562
3562
|
[onCleanup]
|
|
3563
3563
|
);
|
|
3564
3564
|
};
|
|
@@ -3584,7 +3584,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3584
3584
|
let cleanup;
|
|
3585
3585
|
let onCleanup = (fn) => {
|
|
3586
3586
|
cleanup = effect.onStop = () => {
|
|
3587
|
-
callWithErrorHandling(fn, instance,
|
|
3587
|
+
callWithErrorHandling(fn, instance, 4);
|
|
3588
3588
|
};
|
|
3589
3589
|
};
|
|
3590
3590
|
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
@@ -3600,7 +3600,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3600
3600
|
if (cleanup) {
|
|
3601
3601
|
cleanup();
|
|
3602
3602
|
}
|
|
3603
|
-
callWithAsyncErrorHandling(cb, instance,
|
|
3603
|
+
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
3604
3604
|
newValue,
|
|
3605
3605
|
// pass undefined as the old value when it's changed for the first time
|
|
3606
3606
|
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
@@ -3878,7 +3878,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
|
|
|
3878
3878
|
hook && callWithAsyncErrorHandling(
|
|
3879
3879
|
hook,
|
|
3880
3880
|
instance,
|
|
3881
|
-
|
|
3881
|
+
9,
|
|
3882
3882
|
args
|
|
3883
3883
|
);
|
|
3884
3884
|
};
|
|
@@ -4110,7 +4110,7 @@ function defineAsyncComponent(source) {
|
|
|
4110
4110
|
handleError(
|
|
4111
4111
|
err,
|
|
4112
4112
|
instance,
|
|
4113
|
-
|
|
4113
|
+
13,
|
|
4114
4114
|
!errorComponent
|
|
4115
4115
|
/* do not throw in dev if user provided error component */
|
|
4116
4116
|
);
|
|
@@ -4209,7 +4209,7 @@ const KeepAliveImpl = {
|
|
|
4209
4209
|
const storageContainer = createElement("div");
|
|
4210
4210
|
sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => {
|
|
4211
4211
|
const instance2 = vnode.component;
|
|
4212
|
-
move(vnode, container, anchor,
|
|
4212
|
+
move(vnode, container, anchor, 0, parentSuspense);
|
|
4213
4213
|
patch(
|
|
4214
4214
|
instance2.vnode,
|
|
4215
4215
|
vnode,
|
|
@@ -4237,7 +4237,7 @@ const KeepAliveImpl = {
|
|
|
4237
4237
|
};
|
|
4238
4238
|
sharedContext.deactivate = (vnode) => {
|
|
4239
4239
|
const instance2 = vnode.component;
|
|
4240
|
-
move(vnode, storageContainer, null,
|
|
4240
|
+
move(vnode, storageContainer, null, 1, parentSuspense);
|
|
4241
4241
|
queuePostRenderEffect(() => {
|
|
4242
4242
|
if (instance2.da) {
|
|
4243
4243
|
invokeArrayFns(instance2.da);
|
|
@@ -4595,7 +4595,7 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
4595
4595
|
}
|
|
4596
4596
|
if (hook) {
|
|
4597
4597
|
pauseTracking();
|
|
4598
|
-
callWithAsyncErrorHandling(hook, instance,
|
|
4598
|
+
callWithAsyncErrorHandling(hook, instance, 8, [
|
|
4599
4599
|
vnode.el,
|
|
4600
4600
|
binding,
|
|
4601
4601
|
vnode,
|
|
@@ -4612,7 +4612,7 @@ const FILTERS = "filters";
|
|
|
4612
4612
|
function resolveComponent(name, maybeSelfReference) {
|
|
4613
4613
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
4614
4614
|
}
|
|
4615
|
-
const NULL_DYNAMIC_COMPONENT = Symbol();
|
|
4615
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
4616
4616
|
function resolveDynamicComponent(component) {
|
|
4617
4617
|
if (isString(component)) {
|
|
4618
4618
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -6578,7 +6578,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6578
6578
|
return vm;
|
|
6579
6579
|
}
|
|
6580
6580
|
}
|
|
6581
|
-
Vue.version = `2.6.14-compat:${"3.3.0-alpha.
|
|
6581
|
+
Vue.version = `2.6.14-compat:${"3.3.0-alpha.5"}`;
|
|
6582
6582
|
Vue.config = singletonApp.config;
|
|
6583
6583
|
Vue.use = (p, ...options) => {
|
|
6584
6584
|
if (p && isFunction(p.install)) {
|
|
@@ -7159,7 +7159,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
7159
7159
|
}
|
|
7160
7160
|
}
|
|
7161
7161
|
if (isFunction(ref)) {
|
|
7162
|
-
callWithErrorHandling(ref, owner,
|
|
7162
|
+
callWithErrorHandling(ref, owner, 12, [value, refs]);
|
|
7163
7163
|
} else {
|
|
7164
7164
|
const _isString = isString(ref);
|
|
7165
7165
|
const _isRef = isRef(ref);
|
|
@@ -8832,7 +8832,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8832
8832
|
);
|
|
8833
8833
|
} else if (moved) {
|
|
8834
8834
|
if (j < 0 || i !== increasingNewIndexSequence[j]) {
|
|
8835
|
-
move(nextChild, container, anchor,
|
|
8835
|
+
move(nextChild, container, anchor, 2);
|
|
8836
8836
|
} else {
|
|
8837
8837
|
j--;
|
|
8838
8838
|
}
|
|
@@ -8866,9 +8866,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
8866
8866
|
moveStaticNode(vnode, container, anchor);
|
|
8867
8867
|
return;
|
|
8868
8868
|
}
|
|
8869
|
-
const needTransition = moveType !==
|
|
8869
|
+
const needTransition = moveType !== 2 && shapeFlag & 1 && transition;
|
|
8870
8870
|
if (needTransition) {
|
|
8871
|
-
if (moveType ===
|
|
8871
|
+
if (moveType === 0) {
|
|
8872
8872
|
transition.beforeEnter(el);
|
|
8873
8873
|
hostInsert(el, container, anchor);
|
|
8874
8874
|
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
@@ -9275,7 +9275,7 @@ const TeleportImpl = {
|
|
|
9275
9275
|
container,
|
|
9276
9276
|
mainAnchor,
|
|
9277
9277
|
internals,
|
|
9278
|
-
|
|
9278
|
+
1
|
|
9279
9279
|
);
|
|
9280
9280
|
}
|
|
9281
9281
|
} else {
|
|
@@ -9290,7 +9290,7 @@ const TeleportImpl = {
|
|
|
9290
9290
|
nextTarget,
|
|
9291
9291
|
null,
|
|
9292
9292
|
internals,
|
|
9293
|
-
|
|
9293
|
+
0
|
|
9294
9294
|
);
|
|
9295
9295
|
} else {
|
|
9296
9296
|
warn(
|
|
@@ -9305,7 +9305,7 @@ const TeleportImpl = {
|
|
|
9305
9305
|
target,
|
|
9306
9306
|
targetAnchor,
|
|
9307
9307
|
internals,
|
|
9308
|
-
|
|
9308
|
+
1
|
|
9309
9309
|
);
|
|
9310
9310
|
}
|
|
9311
9311
|
}
|
|
@@ -9336,12 +9336,12 @@ const TeleportImpl = {
|
|
|
9336
9336
|
move: moveTeleport,
|
|
9337
9337
|
hydrate: hydrateTeleport
|
|
9338
9338
|
};
|
|
9339
|
-
function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType =
|
|
9340
|
-
if (moveType ===
|
|
9339
|
+
function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) {
|
|
9340
|
+
if (moveType === 0) {
|
|
9341
9341
|
insert(vnode.targetAnchor, container, parentAnchor);
|
|
9342
9342
|
}
|
|
9343
9343
|
const { el, anchor, shapeFlag, children, props } = vnode;
|
|
9344
|
-
const isReorder = moveType ===
|
|
9344
|
+
const isReorder = moveType === 2;
|
|
9345
9345
|
if (isReorder) {
|
|
9346
9346
|
insert(el, container, parentAnchor);
|
|
9347
9347
|
}
|
|
@@ -9352,7 +9352,7 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
|
|
|
9352
9352
|
children[i],
|
|
9353
9353
|
container,
|
|
9354
9354
|
parentAnchor,
|
|
9355
|
-
|
|
9355
|
+
2
|
|
9356
9356
|
);
|
|
9357
9357
|
}
|
|
9358
9358
|
}
|
|
@@ -9473,10 +9473,10 @@ function convertLegacyComponent(comp, instance) {
|
|
|
9473
9473
|
return comp;
|
|
9474
9474
|
}
|
|
9475
9475
|
|
|
9476
|
-
const Fragment = Symbol("
|
|
9477
|
-
const Text = Symbol("
|
|
9478
|
-
const Comment = Symbol("
|
|
9479
|
-
const Static = Symbol("
|
|
9476
|
+
const Fragment = Symbol.for("v-fgt");
|
|
9477
|
+
const Text = Symbol.for("v-txt");
|
|
9478
|
+
const Comment = Symbol.for("v-cmt");
|
|
9479
|
+
const Static = Symbol.for("v-stc");
|
|
9480
9480
|
const blockStack = [];
|
|
9481
9481
|
let currentBlock = null;
|
|
9482
9482
|
function openBlock(disableTracking = false) {
|
|
@@ -9841,7 +9841,7 @@ function mergeProps(...args) {
|
|
|
9841
9841
|
return ret;
|
|
9842
9842
|
}
|
|
9843
9843
|
function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
9844
|
-
callWithAsyncErrorHandling(hook, instance,
|
|
9844
|
+
callWithAsyncErrorHandling(hook, instance, 7, [
|
|
9845
9845
|
vnode,
|
|
9846
9846
|
prevVNode
|
|
9847
9847
|
]);
|
|
@@ -9938,13 +9938,19 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
9938
9938
|
}
|
|
9939
9939
|
let currentInstance = null;
|
|
9940
9940
|
const getCurrentInstance = () => currentInstance || currentRenderingInstance;
|
|
9941
|
+
let internalSetCurrentInstance;
|
|
9942
|
+
{
|
|
9943
|
+
internalSetCurrentInstance = (i) => {
|
|
9944
|
+
currentInstance = i;
|
|
9945
|
+
};
|
|
9946
|
+
}
|
|
9941
9947
|
const setCurrentInstance = (instance) => {
|
|
9942
|
-
|
|
9948
|
+
internalSetCurrentInstance(instance);
|
|
9943
9949
|
instance.scope.on();
|
|
9944
9950
|
};
|
|
9945
9951
|
const unsetCurrentInstance = () => {
|
|
9946
9952
|
currentInstance && currentInstance.scope.off();
|
|
9947
|
-
|
|
9953
|
+
internalSetCurrentInstance(null);
|
|
9948
9954
|
};
|
|
9949
9955
|
const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
|
|
9950
9956
|
function validateComponentName(name, config) {
|
|
@@ -10007,7 +10013,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10007
10013
|
const setupResult = callWithErrorHandling(
|
|
10008
10014
|
setup,
|
|
10009
10015
|
instance,
|
|
10010
|
-
|
|
10016
|
+
0,
|
|
10011
10017
|
[shallowReadonly(instance.props) , setupContext]
|
|
10012
10018
|
);
|
|
10013
10019
|
resetTracking();
|
|
@@ -10018,7 +10024,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
10018
10024
|
return setupResult.then((resolvedResult) => {
|
|
10019
10025
|
handleSetupResult(instance, resolvedResult, isSSR);
|
|
10020
10026
|
}).catch((e) => {
|
|
10021
|
-
handleError(e, instance,
|
|
10027
|
+
handleError(e, instance, 0);
|
|
10022
10028
|
});
|
|
10023
10029
|
} else {
|
|
10024
10030
|
instance.asyncDep = setupResult;
|
|
@@ -10356,7 +10362,7 @@ function h(type, propsOrChildren, children) {
|
|
|
10356
10362
|
}
|
|
10357
10363
|
}
|
|
10358
10364
|
|
|
10359
|
-
const ssrContextKey = Symbol(
|
|
10365
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
10360
10366
|
const useSSRContext = () => {
|
|
10361
10367
|
{
|
|
10362
10368
|
const ctx = inject(ssrContextKey);
|
|
@@ -10570,7 +10576,7 @@ function isMemoSame(cached, memo) {
|
|
|
10570
10576
|
return true;
|
|
10571
10577
|
}
|
|
10572
10578
|
|
|
10573
|
-
const version = "3.3.0-alpha.
|
|
10579
|
+
const version = "3.3.0-alpha.5";
|
|
10574
10580
|
const ssrUtils = null;
|
|
10575
10581
|
const resolveFilter = resolveFilter$1 ;
|
|
10576
10582
|
const _compatUtils = {
|
|
@@ -10902,7 +10908,7 @@ function createInvoker(initialValue, instance) {
|
|
|
10902
10908
|
callWithAsyncErrorHandling(
|
|
10903
10909
|
patchStopImmediatePropagation(e, invoker.value),
|
|
10904
10910
|
instance,
|
|
10905
|
-
|
|
10911
|
+
5,
|
|
10906
10912
|
[e]
|
|
10907
10913
|
);
|
|
10908
10914
|
};
|