@vue/compat 3.3.0-alpha.4 → 3.3.0-alpha.6
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-compat.d.ts +1 -1
- package/dist/vue.cjs.js +177 -133
- package/dist/vue.cjs.prod.js +170 -147
- package/dist/vue.esm-browser.js +143 -126
- package/dist/vue.esm-browser.prod.js +1 -1
- package/dist/vue.esm-bundler.js +153 -126
- package/dist/vue.global.js +142 -125
- package/dist/vue.global.prod.js +1 -1
- package/dist/vue.runtime.esm-browser.js +126 -109
- package/dist/vue.runtime.esm-browser.prod.js +1 -1
- package/dist/vue.runtime.esm-bundler.js +136 -109
- package/dist/vue.runtime.global.js +125 -108
- package/dist/vue.runtime.global.prod.js +1 -1
- package/package.json +3 -3
package/dist/vue.esm-bundler.js
CHANGED
|
@@ -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 = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
11
|
+
const EMPTY_ARR = process.env.NODE_ENV !== "production" ? 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 PatchFlagNames = {
|
|
11
101
|
[1]: `TEXT`,
|
|
12
102
|
[2]: `CLASS`,
|
|
@@ -226,96 +316,6 @@ const replacer = (_key, val) => {
|
|
|
226
316
|
return val;
|
|
227
317
|
};
|
|
228
318
|
|
|
229
|
-
const EMPTY_OBJ = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
230
|
-
const EMPTY_ARR = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [];
|
|
231
|
-
const NOOP = () => {
|
|
232
|
-
};
|
|
233
|
-
const NO = () => false;
|
|
234
|
-
const onRE = /^on[^a-z]/;
|
|
235
|
-
const isOn = (key) => onRE.test(key);
|
|
236
|
-
const isModelListener = (key) => key.startsWith("onUpdate:");
|
|
237
|
-
const extend = Object.assign;
|
|
238
|
-
const remove = (arr, el) => {
|
|
239
|
-
const i = arr.indexOf(el);
|
|
240
|
-
if (i > -1) {
|
|
241
|
-
arr.splice(i, 1);
|
|
242
|
-
}
|
|
243
|
-
};
|
|
244
|
-
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
245
|
-
const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
|
|
246
|
-
const isArray = Array.isArray;
|
|
247
|
-
const isMap = (val) => toTypeString(val) === "[object Map]";
|
|
248
|
-
const isSet = (val) => toTypeString(val) === "[object Set]";
|
|
249
|
-
const isDate = (val) => toTypeString(val) === "[object Date]";
|
|
250
|
-
const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
|
|
251
|
-
const isFunction = (val) => typeof val === "function";
|
|
252
|
-
const isString = (val) => typeof val === "string";
|
|
253
|
-
const isSymbol = (val) => typeof val === "symbol";
|
|
254
|
-
const isObject = (val) => val !== null && typeof val === "object";
|
|
255
|
-
const isPromise = (val) => {
|
|
256
|
-
return isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
|
257
|
-
};
|
|
258
|
-
const objectToString = Object.prototype.toString;
|
|
259
|
-
const toTypeString = (value) => objectToString.call(value);
|
|
260
|
-
const toRawType = (value) => {
|
|
261
|
-
return toTypeString(value).slice(8, -1);
|
|
262
|
-
};
|
|
263
|
-
const isPlainObject = (val) => toTypeString(val) === "[object Object]";
|
|
264
|
-
const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
|
|
265
|
-
const isReservedProp = /* @__PURE__ */ makeMap(
|
|
266
|
-
// the leading comma is intentional so empty string "" is also included
|
|
267
|
-
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
268
|
-
);
|
|
269
|
-
const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
270
|
-
"bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
|
|
271
|
-
);
|
|
272
|
-
const cacheStringFunction = (fn) => {
|
|
273
|
-
const cache = /* @__PURE__ */ Object.create(null);
|
|
274
|
-
return (str) => {
|
|
275
|
-
const hit = cache[str];
|
|
276
|
-
return hit || (cache[str] = fn(str));
|
|
277
|
-
};
|
|
278
|
-
};
|
|
279
|
-
const camelizeRE = /-(\w)/g;
|
|
280
|
-
const camelize = cacheStringFunction((str) => {
|
|
281
|
-
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
282
|
-
});
|
|
283
|
-
const hyphenateRE = /\B([A-Z])/g;
|
|
284
|
-
const hyphenate = cacheStringFunction(
|
|
285
|
-
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
286
|
-
);
|
|
287
|
-
const capitalize = cacheStringFunction(
|
|
288
|
-
(str) => str.charAt(0).toUpperCase() + str.slice(1)
|
|
289
|
-
);
|
|
290
|
-
const toHandlerKey = cacheStringFunction(
|
|
291
|
-
(str) => str ? `on${capitalize(str)}` : ``
|
|
292
|
-
);
|
|
293
|
-
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
294
|
-
const invokeArrayFns = (fns, arg) => {
|
|
295
|
-
for (let i = 0; i < fns.length; i++) {
|
|
296
|
-
fns[i](arg);
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
const def = (obj, key, value) => {
|
|
300
|
-
Object.defineProperty(obj, key, {
|
|
301
|
-
configurable: true,
|
|
302
|
-
enumerable: false,
|
|
303
|
-
value
|
|
304
|
-
});
|
|
305
|
-
};
|
|
306
|
-
const looseToNumber = (val) => {
|
|
307
|
-
const n = parseFloat(val);
|
|
308
|
-
return isNaN(n) ? val : n;
|
|
309
|
-
};
|
|
310
|
-
const toNumber = (val) => {
|
|
311
|
-
const n = isString(val) ? Number(val) : NaN;
|
|
312
|
-
return isNaN(n) ? val : n;
|
|
313
|
-
};
|
|
314
|
-
let _globalThis;
|
|
315
|
-
const getGlobalThis = () => {
|
|
316
|
-
return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
|
|
317
|
-
};
|
|
318
|
-
|
|
319
319
|
function warn$1(msg, ...args) {
|
|
320
320
|
console.warn(`[Vue warn] ${msg}`, ...args);
|
|
321
321
|
}
|
|
@@ -4140,8 +4140,8 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
4140
4140
|
return ret;
|
|
4141
4141
|
}
|
|
4142
4142
|
|
|
4143
|
-
function defineComponent(options) {
|
|
4144
|
-
return isFunction(options) ? { setup: options, name: options.name } : options;
|
|
4143
|
+
function defineComponent(options, extraOptions) {
|
|
4144
|
+
return isFunction(options) ? extend({}, extraOptions, { setup: options, name: options.name }) : options;
|
|
4145
4145
|
}
|
|
4146
4146
|
|
|
4147
4147
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
@@ -4723,7 +4723,7 @@ const FILTERS = "filters";
|
|
|
4723
4723
|
function resolveComponent(name, maybeSelfReference) {
|
|
4724
4724
|
return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
|
|
4725
4725
|
}
|
|
4726
|
-
const NULL_DYNAMIC_COMPONENT = Symbol();
|
|
4726
|
+
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
4727
4727
|
function resolveDynamicComponent(component) {
|
|
4728
4728
|
if (isString(component)) {
|
|
4729
4729
|
return resolveAsset(COMPONENTS, component, false) || component;
|
|
@@ -6302,7 +6302,7 @@ function resolvePropValue(options, props, key, value, instance, isAbsent) {
|
|
|
6302
6302
|
const hasDefault = hasOwn(opt, "default");
|
|
6303
6303
|
if (hasDefault && value === void 0) {
|
|
6304
6304
|
const defaultValue = opt.default;
|
|
6305
|
-
if (opt.type !== Function && isFunction(defaultValue)) {
|
|
6305
|
+
if (opt.type !== Function && !opt.skipFactory && isFunction(defaultValue)) {
|
|
6306
6306
|
const { propsDefaults } = instance;
|
|
6307
6307
|
if (key in propsDefaults) {
|
|
6308
6308
|
value = propsDefaults[key];
|
|
@@ -6441,7 +6441,7 @@ function validateProps(rawProps, props, instance) {
|
|
|
6441
6441
|
}
|
|
6442
6442
|
}
|
|
6443
6443
|
function validateProp(name, value, prop, isAbsent) {
|
|
6444
|
-
const { type, required, validator } = prop;
|
|
6444
|
+
const { type, required, validator, skipCheck } = prop;
|
|
6445
6445
|
if (required && isAbsent) {
|
|
6446
6446
|
warn('Missing required prop: "' + name + '"');
|
|
6447
6447
|
return;
|
|
@@ -6449,7 +6449,7 @@ function validateProp(name, value, prop, isAbsent) {
|
|
|
6449
6449
|
if (value == null && !prop.required) {
|
|
6450
6450
|
return;
|
|
6451
6451
|
}
|
|
6452
|
-
if (type != null && type !== true) {
|
|
6452
|
+
if (type != null && type !== true && !skipCheck) {
|
|
6453
6453
|
let isValid = false;
|
|
6454
6454
|
const types = isArray(type) ? type : [type];
|
|
6455
6455
|
const expectedTypes = [];
|
|
@@ -6691,7 +6691,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
|
|
|
6691
6691
|
return vm;
|
|
6692
6692
|
}
|
|
6693
6693
|
}
|
|
6694
|
-
Vue.version = `2.6.14-compat:${"3.3.0-alpha.
|
|
6694
|
+
Vue.version = `2.6.14-compat:${"3.3.0-alpha.6"}`;
|
|
6695
6695
|
Vue.config = singletonApp.config;
|
|
6696
6696
|
Vue.use = (p, ...options) => {
|
|
6697
6697
|
if (p && isFunction(p.install)) {
|
|
@@ -9610,10 +9610,10 @@ function convertLegacyComponent(comp, instance) {
|
|
|
9610
9610
|
return comp;
|
|
9611
9611
|
}
|
|
9612
9612
|
|
|
9613
|
-
const Fragment = Symbol(
|
|
9614
|
-
const Text = Symbol(
|
|
9615
|
-
const Comment = Symbol(
|
|
9616
|
-
const Static = Symbol(
|
|
9613
|
+
const Fragment = Symbol.for("v-fgt");
|
|
9614
|
+
const Text = Symbol.for("v-txt");
|
|
9615
|
+
const Comment = Symbol.for("v-cmt");
|
|
9616
|
+
const Static = Symbol.for("v-stc");
|
|
9617
9617
|
const blockStack = [];
|
|
9618
9618
|
let currentBlock = null;
|
|
9619
9619
|
function openBlock(disableTracking = false) {
|
|
@@ -10077,13 +10077,29 @@ function createComponentInstance(vnode, parent, suspense) {
|
|
|
10077
10077
|
}
|
|
10078
10078
|
let currentInstance = null;
|
|
10079
10079
|
const getCurrentInstance = () => currentInstance || currentRenderingInstance;
|
|
10080
|
+
let internalSetCurrentInstance;
|
|
10081
|
+
let globalCurrentInstanceSetters;
|
|
10082
|
+
let settersKey = "__VUE_INSTANCE_SETTERS__";
|
|
10083
|
+
{
|
|
10084
|
+
if (!(globalCurrentInstanceSetters = getGlobalThis()[settersKey])) {
|
|
10085
|
+
globalCurrentInstanceSetters = getGlobalThis()[settersKey] = [];
|
|
10086
|
+
}
|
|
10087
|
+
globalCurrentInstanceSetters.push((i) => currentInstance = i);
|
|
10088
|
+
internalSetCurrentInstance = (instance) => {
|
|
10089
|
+
if (globalCurrentInstanceSetters.length > 1) {
|
|
10090
|
+
globalCurrentInstanceSetters.forEach((s) => s(instance));
|
|
10091
|
+
} else {
|
|
10092
|
+
globalCurrentInstanceSetters[0](instance);
|
|
10093
|
+
}
|
|
10094
|
+
};
|
|
10095
|
+
}
|
|
10080
10096
|
const setCurrentInstance = (instance) => {
|
|
10081
|
-
|
|
10097
|
+
internalSetCurrentInstance(instance);
|
|
10082
10098
|
instance.scope.on();
|
|
10083
10099
|
};
|
|
10084
10100
|
const unsetCurrentInstance = () => {
|
|
10085
10101
|
currentInstance && currentInstance.scope.off();
|
|
10086
|
-
|
|
10102
|
+
internalSetCurrentInstance(null);
|
|
10087
10103
|
};
|
|
10088
10104
|
const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
|
|
10089
10105
|
function validateComponentName(name, config) {
|
|
@@ -10420,6 +10436,11 @@ function defineExpose(exposed) {
|
|
|
10420
10436
|
warnRuntimeUsage(`defineExpose`);
|
|
10421
10437
|
}
|
|
10422
10438
|
}
|
|
10439
|
+
function defineOptions(options) {
|
|
10440
|
+
if (process.env.NODE_ENV !== "production") {
|
|
10441
|
+
warnRuntimeUsage(`defineOptions`);
|
|
10442
|
+
}
|
|
10443
|
+
}
|
|
10423
10444
|
function withDefaults(props, defaults) {
|
|
10424
10445
|
if (process.env.NODE_ENV !== "production") {
|
|
10425
10446
|
warnRuntimeUsage(`withDefaults`);
|
|
@@ -10445,18 +10466,23 @@ function mergeDefaults(raw, defaults) {
|
|
|
10445
10466
|
{}
|
|
10446
10467
|
) : raw;
|
|
10447
10468
|
for (const key in defaults) {
|
|
10448
|
-
|
|
10469
|
+
if (key.startsWith("__skip"))
|
|
10470
|
+
continue;
|
|
10471
|
+
let opt = props[key];
|
|
10449
10472
|
if (opt) {
|
|
10450
10473
|
if (isArray(opt) || isFunction(opt)) {
|
|
10451
|
-
props[key] = { type: opt, default: defaults[key] };
|
|
10474
|
+
opt = props[key] = { type: opt, default: defaults[key] };
|
|
10452
10475
|
} else {
|
|
10453
10476
|
opt.default = defaults[key];
|
|
10454
10477
|
}
|
|
10455
10478
|
} else if (opt === null) {
|
|
10456
|
-
props[key] = { default: defaults[key] };
|
|
10479
|
+
opt = props[key] = { default: defaults[key] };
|
|
10457
10480
|
} else if (process.env.NODE_ENV !== "production") {
|
|
10458
10481
|
warn(`props default key "${key}" has no corresponding declaration.`);
|
|
10459
10482
|
}
|
|
10483
|
+
if (opt && defaults[`__skip_${key}`]) {
|
|
10484
|
+
opt.skipFactory = true;
|
|
10485
|
+
}
|
|
10460
10486
|
}
|
|
10461
10487
|
return props;
|
|
10462
10488
|
}
|
|
@@ -10511,7 +10537,7 @@ function h(type, propsOrChildren, children) {
|
|
|
10511
10537
|
}
|
|
10512
10538
|
}
|
|
10513
10539
|
|
|
10514
|
-
const ssrContextKey = Symbol(
|
|
10540
|
+
const ssrContextKey = Symbol.for("v-scx");
|
|
10515
10541
|
const useSSRContext = () => {
|
|
10516
10542
|
{
|
|
10517
10543
|
const ctx = inject(ssrContextKey);
|
|
@@ -10725,7 +10751,7 @@ function isMemoSame(cached, memo) {
|
|
|
10725
10751
|
return true;
|
|
10726
10752
|
}
|
|
10727
10753
|
|
|
10728
|
-
const version = "3.3.0-alpha.
|
|
10754
|
+
const version = "3.3.0-alpha.6";
|
|
10729
10755
|
const _ssrUtils = {
|
|
10730
10756
|
createComponentInstance,
|
|
10731
10757
|
setupComponent,
|
|
@@ -12437,6 +12463,7 @@ var runtimeDom = /*#__PURE__*/Object.freeze({
|
|
|
12437
12463
|
defineCustomElement: defineCustomElement,
|
|
12438
12464
|
defineEmits: defineEmits,
|
|
12439
12465
|
defineExpose: defineExpose,
|
|
12466
|
+
defineOptions: defineOptions,
|
|
12440
12467
|
defineProps: defineProps,
|
|
12441
12468
|
defineSSRCustomElement: defineSSRCustomElement,
|
|
12442
12469
|
get devtools () { return devtools; },
|
|
@@ -12860,6 +12887,20 @@ function createBlockStatement(body) {
|
|
|
12860
12887
|
loc: locStub
|
|
12861
12888
|
};
|
|
12862
12889
|
}
|
|
12890
|
+
function getVNodeHelper(ssr, isComponent) {
|
|
12891
|
+
return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE;
|
|
12892
|
+
}
|
|
12893
|
+
function getVNodeBlockHelper(ssr, isComponent) {
|
|
12894
|
+
return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK;
|
|
12895
|
+
}
|
|
12896
|
+
function convertToBlock(node, { helper, removeHelper, inSSR }) {
|
|
12897
|
+
if (!node.isBlock) {
|
|
12898
|
+
node.isBlock = true;
|
|
12899
|
+
removeHelper(getVNodeHelper(inSSR, node.isComponent));
|
|
12900
|
+
helper(OPEN_BLOCK);
|
|
12901
|
+
helper(getVNodeBlockHelper(inSSR, node.isComponent));
|
|
12902
|
+
}
|
|
12903
|
+
}
|
|
12863
12904
|
|
|
12864
12905
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
12865
12906
|
const isBuiltInType = (tag, expected) => tag === expected || tag === hyphenate(expected);
|
|
@@ -13029,12 +13070,6 @@ function isTemplateNode(node) {
|
|
|
13029
13070
|
function isSlotOutlet(node) {
|
|
13030
13071
|
return node.type === 1 && node.tagType === 2;
|
|
13031
13072
|
}
|
|
13032
|
-
function getVNodeHelper(ssr, isComponent) {
|
|
13033
|
-
return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE;
|
|
13034
|
-
}
|
|
13035
|
-
function getVNodeBlockHelper(ssr, isComponent) {
|
|
13036
|
-
return ssr || isComponent ? CREATE_BLOCK : CREATE_ELEMENT_BLOCK;
|
|
13037
|
-
}
|
|
13038
13073
|
const propsHelperSet = /* @__PURE__ */ new Set([NORMALIZE_PROPS, GUARD_REACTIVE_PROPS]);
|
|
13039
13074
|
function getUnnormalizedProps(props, callPath = []) {
|
|
13040
13075
|
if (props && !isString(props) && props.type === 14) {
|
|
@@ -13128,14 +13163,6 @@ function getMemoedVNodeCall(node) {
|
|
|
13128
13163
|
return node;
|
|
13129
13164
|
}
|
|
13130
13165
|
}
|
|
13131
|
-
function makeBlock(node, { helper, removeHelper, inSSR }) {
|
|
13132
|
-
if (!node.isBlock) {
|
|
13133
|
-
node.isBlock = true;
|
|
13134
|
-
removeHelper(getVNodeHelper(inSSR, node.isComponent));
|
|
13135
|
-
helper(OPEN_BLOCK);
|
|
13136
|
-
helper(getVNodeBlockHelper(inSSR, node.isComponent));
|
|
13137
|
-
}
|
|
13138
|
-
}
|
|
13139
13166
|
|
|
13140
13167
|
const deprecationData = {
|
|
13141
13168
|
["COMPILER_IS_ON_ELEMENT"]: {
|
|
@@ -14398,7 +14425,7 @@ function createRootCodegen(root, context) {
|
|
|
14398
14425
|
if (isSingleElementRoot(root, child) && child.codegenNode) {
|
|
14399
14426
|
const codegenNode = child.codegenNode;
|
|
14400
14427
|
if (codegenNode.type === 13) {
|
|
14401
|
-
|
|
14428
|
+
convertToBlock(codegenNode, context);
|
|
14402
14429
|
}
|
|
14403
14430
|
root.codegenNode = codegenNode;
|
|
14404
14431
|
} else {
|
|
@@ -15318,7 +15345,7 @@ function createChildrenCodegenNode(branch, keyIndex, context) {
|
|
|
15318
15345
|
const ret = firstChild.codegenNode;
|
|
15319
15346
|
const vnodeCall = getMemoedVNodeCall(ret);
|
|
15320
15347
|
if (vnodeCall.type === 13) {
|
|
15321
|
-
|
|
15348
|
+
convertToBlock(vnodeCall, context);
|
|
15322
15349
|
}
|
|
15323
15350
|
injectProp(vnodeCall, keyProperty, context);
|
|
15324
15351
|
return ret;
|
|
@@ -16950,7 +16977,7 @@ const transformMemo = (node, context) => {
|
|
|
16950
16977
|
const codegenNode = node.codegenNode || context.currentNode.codegenNode;
|
|
16951
16978
|
if (codegenNode && codegenNode.type === 13) {
|
|
16952
16979
|
if (node.tagType !== 1) {
|
|
16953
|
-
|
|
16980
|
+
convertToBlock(codegenNode, context);
|
|
16954
16981
|
}
|
|
16955
16982
|
node.codegenNode = createCallExpression(context.helper(WITH_MEMO), [
|
|
16956
16983
|
dir.exp,
|
|
@@ -17566,4 +17593,4 @@ var Vue$1 = Vue;
|
|
|
17566
17593
|
|
|
17567
17594
|
const { configureCompat } = Vue$1;
|
|
17568
17595
|
|
|
17569
|
-
export { BaseTransition, BaseTransitionPropsValidators, Comment, EffectScope, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, Transition, TransitionGroup, VueElement, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, Vue$1 as default, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineProps, defineSSRCustomElement, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hydrate, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|
|
17596
|
+
export { BaseTransition, BaseTransitionPropsValidators, Comment, EffectScope, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, Transition, TransitionGroup, VueElement, assertNumber, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, computed, configureCompat, createApp, createBlock, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, Vue$1 as default, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineOptions, defineProps, defineSSRCustomElement, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hydrate, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId };
|