@vue/runtime-dom 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/runtime-dom.cjs.js +3 -3
- package/dist/runtime-dom.cjs.prod.js +3 -3
- package/dist/runtime-dom.d.ts +0 -1362
- package/dist/runtime-dom.esm-browser.js +154 -148
- package/dist/runtime-dom.esm-browser.prod.js +1 -1
- package/dist/runtime-dom.esm-bundler.js +1 -1
- package/dist/runtime-dom.global.js +154 -148
- package/dist/runtime-dom.global.prod.js +1 -1
- package/package.json +3 -3
|
@@ -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 {
|
|
@@ -2037,7 +2037,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2037
2037
|
callWithAsyncErrorHandling(
|
|
2038
2038
|
handler,
|
|
2039
2039
|
instance,
|
|
2040
|
-
|
|
2040
|
+
6,
|
|
2041
2041
|
args
|
|
2042
2042
|
);
|
|
2043
2043
|
}
|
|
@@ -2052,7 +2052,7 @@ function emit(instance, event, ...rawArgs) {
|
|
|
2052
2052
|
callWithAsyncErrorHandling(
|
|
2053
2053
|
onceHandler,
|
|
2054
2054
|
instance,
|
|
2055
|
-
|
|
2055
|
+
6,
|
|
2056
2056
|
args
|
|
2057
2057
|
);
|
|
2058
2058
|
}
|
|
@@ -2223,7 +2223,7 @@ function renderComponentRoot(instance) {
|
|
|
2223
2223
|
}
|
|
2224
2224
|
} catch (err) {
|
|
2225
2225
|
blockStack.length = 0;
|
|
2226
|
-
handleError(err, instance,
|
|
2226
|
+
handleError(err, instance, 1);
|
|
2227
2227
|
result = createVNode(Comment);
|
|
2228
2228
|
}
|
|
2229
2229
|
let root = result;
|
|
@@ -2734,7 +2734,7 @@ function createSuspenseBoundary(vnode, parent, parentComponent, container, hidde
|
|
|
2734
2734
|
if (delayEnter) {
|
|
2735
2735
|
activeBranch.transition.afterLeave = () => {
|
|
2736
2736
|
if (pendingId === suspense.pendingId) {
|
|
2737
|
-
move(pendingBranch, container2, anchor2,
|
|
2737
|
+
move(pendingBranch, container2, anchor2, 0);
|
|
2738
2738
|
}
|
|
2739
2739
|
};
|
|
2740
2740
|
}
|
|
@@ -2744,7 +2744,7 @@ function createSuspenseBoundary(vnode, parent, parentComponent, container, hidde
|
|
|
2744
2744
|
unmount(activeBranch, parentComponent2, suspense, true);
|
|
2745
2745
|
}
|
|
2746
2746
|
if (!delayEnter) {
|
|
2747
|
-
move(pendingBranch, container2, anchor2,
|
|
2747
|
+
move(pendingBranch, container2, anchor2, 0);
|
|
2748
2748
|
}
|
|
2749
2749
|
}
|
|
2750
2750
|
setActiveBranch(suspense, pendingBranch);
|
|
@@ -2822,7 +2822,7 @@ function createSuspenseBoundary(vnode, parent, parentComponent, container, hidde
|
|
|
2822
2822
|
}
|
|
2823
2823
|
const hydratedEl = instance.vnode.el;
|
|
2824
2824
|
instance.asyncDep.catch((err) => {
|
|
2825
|
-
handleError(err, instance,
|
|
2825
|
+
handleError(err, instance, 0);
|
|
2826
2826
|
}).then((asyncSetupResult) => {
|
|
2827
2827
|
if (instance.isUnmounted || suspense.isUnmounted || suspense.pendingId !== instance.suspenseId) {
|
|
2828
2828
|
return;
|
|
@@ -3066,14 +3066,14 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3066
3066
|
} else if (isReactive(s)) {
|
|
3067
3067
|
return traverse(s);
|
|
3068
3068
|
} else if (isFunction(s)) {
|
|
3069
|
-
return callWithErrorHandling(s, instance,
|
|
3069
|
+
return callWithErrorHandling(s, instance, 2);
|
|
3070
3070
|
} else {
|
|
3071
3071
|
warnInvalidSource(s);
|
|
3072
3072
|
}
|
|
3073
3073
|
});
|
|
3074
3074
|
} else if (isFunction(source)) {
|
|
3075
3075
|
if (cb) {
|
|
3076
|
-
getter = () => callWithErrorHandling(source, instance,
|
|
3076
|
+
getter = () => callWithErrorHandling(source, instance, 2);
|
|
3077
3077
|
} else {
|
|
3078
3078
|
getter = () => {
|
|
3079
3079
|
if (instance && instance.isUnmounted) {
|
|
@@ -3085,7 +3085,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3085
3085
|
return callWithAsyncErrorHandling(
|
|
3086
3086
|
source,
|
|
3087
3087
|
instance,
|
|
3088
|
-
|
|
3088
|
+
3,
|
|
3089
3089
|
[onCleanup]
|
|
3090
3090
|
);
|
|
3091
3091
|
};
|
|
@@ -3101,7 +3101,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3101
3101
|
let cleanup;
|
|
3102
3102
|
let onCleanup = (fn) => {
|
|
3103
3103
|
cleanup = effect.onStop = () => {
|
|
3104
|
-
callWithErrorHandling(fn, instance,
|
|
3104
|
+
callWithErrorHandling(fn, instance, 4);
|
|
3105
3105
|
};
|
|
3106
3106
|
};
|
|
3107
3107
|
let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
|
|
@@ -3117,7 +3117,7 @@ function doWatch(source, cb, { immediate, deep, flush, onTrack, onTrigger } = EM
|
|
|
3117
3117
|
if (cleanup) {
|
|
3118
3118
|
cleanup();
|
|
3119
3119
|
}
|
|
3120
|
-
callWithAsyncErrorHandling(cb, instance,
|
|
3120
|
+
callWithAsyncErrorHandling(cb, instance, 3, [
|
|
3121
3121
|
newValue,
|
|
3122
3122
|
// pass undefined as the old value when it's changed for the first time
|
|
3123
3123
|
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
|
@@ -3392,7 +3392,7 @@ function resolveTransitionHooks(vnode, props, state, instance) {
|
|
|
3392
3392
|
hook && callWithAsyncErrorHandling(
|
|
3393
3393
|
hook,
|
|
3394
3394
|
instance,
|
|
3395
|
-
|
|
3395
|
+
9,
|
|
3396
3396
|
args
|
|
3397
3397
|
);
|
|
3398
3398
|
};
|
|
@@ -3624,7 +3624,7 @@ function defineAsyncComponent(source) {
|
|
|
3624
3624
|
handleError(
|
|
3625
3625
|
err,
|
|
3626
3626
|
instance,
|
|
3627
|
-
|
|
3627
|
+
13,
|
|
3628
3628
|
!errorComponent
|
|
3629
3629
|
/* do not throw in dev if user provided error component */
|
|
3630
3630
|
);
|
|
@@ -3723,7 +3723,7 @@ const KeepAliveImpl = {
|
|
|
3723
3723
|
const storageContainer = createElement("div");
|
|
3724
3724
|
sharedContext.activate = (vnode, container, anchor, isSVG, optimized) => {
|
|
3725
3725
|
const instance2 = vnode.component;
|
|
3726
|
-
move(vnode, container, anchor,
|
|
3726
|
+
move(vnode, container, anchor, 0, parentSuspense);
|
|
3727
3727
|
patch(
|
|
3728
3728
|
instance2.vnode,
|
|
3729
3729
|
vnode,
|
|
@@ -3751,7 +3751,7 @@ const KeepAliveImpl = {
|
|
|
3751
3751
|
};
|
|
3752
3752
|
sharedContext.deactivate = (vnode) => {
|
|
3753
3753
|
const instance2 = vnode.component;
|
|
3754
|
-
move(vnode, storageContainer, null,
|
|
3754
|
+
move(vnode, storageContainer, null, 1, parentSuspense);
|
|
3755
3755
|
queuePostRenderEffect(() => {
|
|
3756
3756
|
if (instance2.da) {
|
|
3757
3757
|
invokeArrayFns(instance2.da);
|
|
@@ -4030,7 +4030,7 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
4030
4030
|
let hook = binding.dir[name];
|
|
4031
4031
|
if (hook) {
|
|
4032
4032
|
pauseTracking();
|
|
4033
|
-
callWithAsyncErrorHandling(hook, instance,
|
|
4033
|
+
callWithAsyncErrorHandling(hook, instance, 8, [
|
|
4034
4034
|
vnode.el,
|
|
4035
4035
|
binding,
|
|
4036
4036
|
vnode,
|
|
@@ -4046,7 +4046,7 @@ const DIRECTIVES = "directives";
|
|
|
4046
4046
|
function resolveComponent(name, maybeSelfReference) {
|
|
4047
4047
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
4048
4048
|
}
|
|
4049
|
-
const NULL_DYNAMIC_COMPONENT = Symbol();
|
|
4049
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
4050
4050
|
function resolveDynamicComponent(component) {
|
|
4051
4051
|
if (isString(component)) {
|
|
4052
4052
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -5575,7 +5575,7 @@ function setRef(rawRef, oldRawRef, parentSuspense, vnode, isUnmount = false) {
|
|
|
5575
5575
|
}
|
|
5576
5576
|
}
|
|
5577
5577
|
if (isFunction(ref)) {
|
|
5578
|
-
callWithErrorHandling(ref, owner,
|
|
5578
|
+
callWithErrorHandling(ref, owner, 12, [value, refs]);
|
|
5579
5579
|
} else {
|
|
5580
5580
|
const _isString = isString(ref);
|
|
5581
5581
|
const _isRef = isRef(ref);
|
|
@@ -7223,7 +7223,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7223
7223
|
);
|
|
7224
7224
|
} else if (moved) {
|
|
7225
7225
|
if (j < 0 || i !== increasingNewIndexSequence[j]) {
|
|
7226
|
-
move(nextChild, container, anchor,
|
|
7226
|
+
move(nextChild, container, anchor, 2);
|
|
7227
7227
|
} else {
|
|
7228
7228
|
j--;
|
|
7229
7229
|
}
|
|
@@ -7257,9 +7257,9 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
7257
7257
|
moveStaticNode(vnode, container, anchor);
|
|
7258
7258
|
return;
|
|
7259
7259
|
}
|
|
7260
|
-
const needTransition = moveType !==
|
|
7260
|
+
const needTransition = moveType !== 2 && shapeFlag & 1 && transition;
|
|
7261
7261
|
if (needTransition) {
|
|
7262
|
-
if (moveType ===
|
|
7262
|
+
if (moveType === 0) {
|
|
7263
7263
|
transition.beforeEnter(el);
|
|
7264
7264
|
hostInsert(el, container, anchor);
|
|
7265
7265
|
queuePostRenderEffect(() => transition.enter(el), parentSuspense);
|
|
@@ -7657,7 +7657,7 @@ const TeleportImpl = {
|
|
|
7657
7657
|
container,
|
|
7658
7658
|
mainAnchor,
|
|
7659
7659
|
internals,
|
|
7660
|
-
|
|
7660
|
+
1
|
|
7661
7661
|
);
|
|
7662
7662
|
}
|
|
7663
7663
|
} else {
|
|
@@ -7672,7 +7672,7 @@ const TeleportImpl = {
|
|
|
7672
7672
|
nextTarget,
|
|
7673
7673
|
null,
|
|
7674
7674
|
internals,
|
|
7675
|
-
|
|
7675
|
+
0
|
|
7676
7676
|
);
|
|
7677
7677
|
} else {
|
|
7678
7678
|
warn(
|
|
@@ -7687,7 +7687,7 @@ const TeleportImpl = {
|
|
|
7687
7687
|
target,
|
|
7688
7688
|
targetAnchor,
|
|
7689
7689
|
internals,
|
|
7690
|
-
|
|
7690
|
+
1
|
|
7691
7691
|
);
|
|
7692
7692
|
}
|
|
7693
7693
|
}
|
|
@@ -7718,12 +7718,12 @@ const TeleportImpl = {
|
|
|
7718
7718
|
move: moveTeleport,
|
|
7719
7719
|
hydrate: hydrateTeleport
|
|
7720
7720
|
};
|
|
7721
|
-
function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType =
|
|
7722
|
-
if (moveType ===
|
|
7721
|
+
function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }, moveType = 2) {
|
|
7722
|
+
if (moveType === 0) {
|
|
7723
7723
|
insert(vnode.targetAnchor, container, parentAnchor);
|
|
7724
7724
|
}
|
|
7725
7725
|
const { el, anchor, shapeFlag, children, props } = vnode;
|
|
7726
|
-
const isReorder = moveType ===
|
|
7726
|
+
const isReorder = moveType === 2;
|
|
7727
7727
|
if (isReorder) {
|
|
7728
7728
|
insert(el, container, parentAnchor);
|
|
7729
7729
|
}
|
|
@@ -7734,7 +7734,7 @@ function moveTeleport(vnode, container, parentAnchor, { o: { insert }, m: move }
|
|
|
7734
7734
|
children[i],
|
|
7735
7735
|
container,
|
|
7736
7736
|
parentAnchor,
|
|
7737
|
-
|
|
7737
|
+
2
|
|
7738
7738
|
);
|
|
7739
7739
|
}
|
|
7740
7740
|
}
|
|
@@ -7804,10 +7804,10 @@ function updateCssVars(vnode) {
|
|
|
7804
7804
|
}
|
|
7805
7805
|
}
|
|
7806
7806
|
|
|
7807
|
-
const Fragment = Symbol("
|
|
7808
|
-
const Text = Symbol("
|
|
7809
|
-
const Comment = Symbol("
|
|
7810
|
-
const Static = Symbol("
|
|
7807
|
+
const Fragment = Symbol.for("v-fgt");
|
|
7808
|
+
const Text = Symbol.for("v-txt");
|
|
7809
|
+
const Comment = Symbol.for("v-cmt");
|
|
7810
|
+
const Static = Symbol.for("v-stc");
|
|
7811
7811
|
const blockStack = [];
|
|
7812
7812
|
let currentBlock = null;
|
|
7813
7813
|
function openBlock(disableTracking = false) {
|
|
@@ -8162,7 +8162,7 @@ function mergeProps(...args) {
|
|
|
8162
8162
|
return ret;
|
|
8163
8163
|
}
|
|
8164
8164
|
function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
8165
|
-
callWithAsyncErrorHandling(hook, instance,
|
|
8165
|
+
callWithAsyncErrorHandling(hook, instance, 7, [
|
|
8166
8166
|
vnode,
|
|
8167
8167
|
prevVNode
|
|
8168
8168
|
]);
|
|
@@ -8259,13 +8259,19 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
8259
8259
|
}
|
|
8260
8260
|
let currentInstance = null;
|
|
8261
8261
|
const getCurrentInstance = () => currentInstance || currentRenderingInstance;
|
|
8262
|
+
let internalSetCurrentInstance;
|
|
8263
|
+
{
|
|
8264
|
+
internalSetCurrentInstance = (i) => {
|
|
8265
|
+
currentInstance = i;
|
|
8266
|
+
};
|
|
8267
|
+
}
|
|
8262
8268
|
const setCurrentInstance = (instance) => {
|
|
8263
|
-
|
|
8269
|
+
internalSetCurrentInstance(instance);
|
|
8264
8270
|
instance.scope.on();
|
|
8265
8271
|
};
|
|
8266
8272
|
const unsetCurrentInstance = () => {
|
|
8267
8273
|
currentInstance && currentInstance.scope.off();
|
|
8268
|
-
|
|
8274
|
+
internalSetCurrentInstance(null);
|
|
8269
8275
|
};
|
|
8270
8276
|
const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
|
|
8271
8277
|
function validateComponentName(name, config) {
|
|
@@ -8328,7 +8334,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
8328
8334
|
const setupResult = callWithErrorHandling(
|
|
8329
8335
|
setup,
|
|
8330
8336
|
instance,
|
|
8331
|
-
|
|
8337
|
+
0,
|
|
8332
8338
|
[shallowReadonly(instance.props) , setupContext]
|
|
8333
8339
|
);
|
|
8334
8340
|
resetTracking();
|
|
@@ -8339,7 +8345,7 @@ function setupStatefulComponent(instance, isSSR) {
|
|
|
8339
8345
|
return setupResult.then((resolvedResult) => {
|
|
8340
8346
|
handleSetupResult(instance, resolvedResult, isSSR);
|
|
8341
8347
|
}).catch((e) => {
|
|
8342
|
-
handleError(e, instance,
|
|
8348
|
+
handleError(e, instance, 0);
|
|
8343
8349
|
});
|
|
8344
8350
|
} else {
|
|
8345
8351
|
instance.asyncDep = setupResult;
|
|
@@ -8665,7 +8671,7 @@ function h(type, propsOrChildren, children) {
|
|
|
8665
8671
|
}
|
|
8666
8672
|
}
|
|
8667
8673
|
|
|
8668
|
-
const ssrContextKey = Symbol(
|
|
8674
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
8669
8675
|
const useSSRContext = () => {
|
|
8670
8676
|
{
|
|
8671
8677
|
const ctx = inject(ssrContextKey);
|
|
@@ -8879,7 +8885,7 @@ function isMemoSame(cached, memo) {
|
|
|
8879
8885
|
return true;
|
|
8880
8886
|
}
|
|
8881
8887
|
|
|
8882
|
-
const version = "3.3.0-alpha.
|
|
8888
|
+
const version = "3.3.0-alpha.5";
|
|
8883
8889
|
const ssrUtils = null;
|
|
8884
8890
|
const resolveFilter = null;
|
|
8885
8891
|
const compatUtils = null;
|
|
@@ -9161,7 +9167,7 @@ function createInvoker(initialValue, instance) {
|
|
|
9161
9167
|
callWithAsyncErrorHandling(
|
|
9162
9168
|
patchStopImmediatePropagation(e, invoker.value),
|
|
9163
9169
|
instance,
|
|
9164
|
-
|
|
9170
|
+
5,
|
|
9165
9171
|
[e]
|
|
9166
9172
|
);
|
|
9167
9173
|
};
|