@vue/runtime-dom 3.3.0-alpha.4 → 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.
@@ -10,6 +10,96 @@ var VueRuntimeDOM = (function (exports) {
10
10
  return expectsLowerCase ? (val) => !!map[val.toLowerCase()] : (val) => !!map[val];
11
11
  }
12
12
 
13
+ const EMPTY_OBJ = Object.freeze({}) ;
14
+ const EMPTY_ARR = Object.freeze([]) ;
15
+ const NOOP = () => {
16
+ };
17
+ const NO = () => false;
18
+ const onRE = /^on[^a-z]/;
19
+ const isOn = (key) => onRE.test(key);
20
+ const isModelListener = (key) => key.startsWith("onUpdate:");
21
+ const extend = Object.assign;
22
+ const remove = (arr, el) => {
23
+ const i = arr.indexOf(el);
24
+ if (i > -1) {
25
+ arr.splice(i, 1);
26
+ }
27
+ };
28
+ const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
29
+ const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
30
+ const isArray = Array.isArray;
31
+ const isMap = (val) => toTypeString(val) === "[object Map]";
32
+ const isSet = (val) => toTypeString(val) === "[object Set]";
33
+ const isDate = (val) => toTypeString(val) === "[object Date]";
34
+ const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
35
+ const isFunction = (val) => typeof val === "function";
36
+ const isString = (val) => typeof val === "string";
37
+ const isSymbol = (val) => typeof val === "symbol";
38
+ const isObject = (val) => val !== null && typeof val === "object";
39
+ const isPromise = (val) => {
40
+ return isObject(val) && isFunction(val.then) && isFunction(val.catch);
41
+ };
42
+ const objectToString = Object.prototype.toString;
43
+ const toTypeString = (value) => objectToString.call(value);
44
+ const toRawType = (value) => {
45
+ return toTypeString(value).slice(8, -1);
46
+ };
47
+ const isPlainObject = (val) => toTypeString(val) === "[object Object]";
48
+ const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
49
+ const isReservedProp = /* @__PURE__ */ makeMap(
50
+ // the leading comma is intentional so empty string "" is also included
51
+ ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
52
+ );
53
+ const isBuiltInDirective = /* @__PURE__ */ makeMap(
54
+ "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
55
+ );
56
+ const cacheStringFunction = (fn) => {
57
+ const cache = /* @__PURE__ */ Object.create(null);
58
+ return (str) => {
59
+ const hit = cache[str];
60
+ return hit || (cache[str] = fn(str));
61
+ };
62
+ };
63
+ const camelizeRE = /-(\w)/g;
64
+ const camelize = cacheStringFunction((str) => {
65
+ return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
66
+ });
67
+ const hyphenateRE = /\B([A-Z])/g;
68
+ const hyphenate = cacheStringFunction(
69
+ (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
70
+ );
71
+ const capitalize = cacheStringFunction(
72
+ (str) => str.charAt(0).toUpperCase() + str.slice(1)
73
+ );
74
+ const toHandlerKey = cacheStringFunction(
75
+ (str) => str ? `on${capitalize(str)}` : ``
76
+ );
77
+ const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
78
+ const invokeArrayFns = (fns, arg) => {
79
+ for (let i = 0; i < fns.length; i++) {
80
+ fns[i](arg);
81
+ }
82
+ };
83
+ const def = (obj, key, value) => {
84
+ Object.defineProperty(obj, key, {
85
+ configurable: true,
86
+ enumerable: false,
87
+ value
88
+ });
89
+ };
90
+ const looseToNumber = (val) => {
91
+ const n = parseFloat(val);
92
+ return isNaN(n) ? val : n;
93
+ };
94
+ const toNumber = (val) => {
95
+ const n = isString(val) ? Number(val) : NaN;
96
+ return isNaN(n) ? val : n;
97
+ };
98
+ let _globalThis;
99
+ const getGlobalThis = () => {
100
+ return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
101
+ };
102
+
13
103
  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";
14
104
  const isGloballyWhitelisted = /* @__PURE__ */ makeMap(GLOBALS_WHITE_LISTED);
15
105
 
@@ -164,96 +254,6 @@ var VueRuntimeDOM = (function (exports) {
164
254
  return val;
165
255
  };
166
256
 
167
- const EMPTY_OBJ = Object.freeze({}) ;
168
- const EMPTY_ARR = Object.freeze([]) ;
169
- const NOOP = () => {
170
- };
171
- const NO = () => false;
172
- const onRE = /^on[^a-z]/;
173
- const isOn = (key) => onRE.test(key);
174
- const isModelListener = (key) => key.startsWith("onUpdate:");
175
- const extend = Object.assign;
176
- const remove = (arr, el) => {
177
- const i = arr.indexOf(el);
178
- if (i > -1) {
179
- arr.splice(i, 1);
180
- }
181
- };
182
- const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
183
- const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
184
- const isArray = Array.isArray;
185
- const isMap = (val) => toTypeString(val) === "[object Map]";
186
- const isSet = (val) => toTypeString(val) === "[object Set]";
187
- const isDate = (val) => toTypeString(val) === "[object Date]";
188
- const isRegExp = (val) => toTypeString(val) === "[object RegExp]";
189
- const isFunction = (val) => typeof val === "function";
190
- const isString = (val) => typeof val === "string";
191
- const isSymbol = (val) => typeof val === "symbol";
192
- const isObject = (val) => val !== null && typeof val === "object";
193
- const isPromise = (val) => {
194
- return isObject(val) && isFunction(val.then) && isFunction(val.catch);
195
- };
196
- const objectToString = Object.prototype.toString;
197
- const toTypeString = (value) => objectToString.call(value);
198
- const toRawType = (value) => {
199
- return toTypeString(value).slice(8, -1);
200
- };
201
- const isPlainObject = (val) => toTypeString(val) === "[object Object]";
202
- const isIntegerKey = (key) => isString(key) && key !== "NaN" && key[0] !== "-" && "" + parseInt(key, 10) === key;
203
- const isReservedProp = /* @__PURE__ */ makeMap(
204
- // the leading comma is intentional so empty string "" is also included
205
- ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
206
- );
207
- const isBuiltInDirective = /* @__PURE__ */ makeMap(
208
- "bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"
209
- );
210
- const cacheStringFunction = (fn) => {
211
- const cache = /* @__PURE__ */ Object.create(null);
212
- return (str) => {
213
- const hit = cache[str];
214
- return hit || (cache[str] = fn(str));
215
- };
216
- };
217
- const camelizeRE = /-(\w)/g;
218
- const camelize = cacheStringFunction((str) => {
219
- return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
220
- });
221
- const hyphenateRE = /\B([A-Z])/g;
222
- const hyphenate = cacheStringFunction(
223
- (str) => str.replace(hyphenateRE, "-$1").toLowerCase()
224
- );
225
- const capitalize = cacheStringFunction(
226
- (str) => str.charAt(0).toUpperCase() + str.slice(1)
227
- );
228
- const toHandlerKey = cacheStringFunction(
229
- (str) => str ? `on${capitalize(str)}` : ``
230
- );
231
- const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
232
- const invokeArrayFns = (fns, arg) => {
233
- for (let i = 0; i < fns.length; i++) {
234
- fns[i](arg);
235
- }
236
- };
237
- const def = (obj, key, value) => {
238
- Object.defineProperty(obj, key, {
239
- configurable: true,
240
- enumerable: false,
241
- value
242
- });
243
- };
244
- const looseToNumber = (val) => {
245
- const n = parseFloat(val);
246
- return isNaN(n) ? val : n;
247
- };
248
- const toNumber = (val) => {
249
- const n = isString(val) ? Number(val) : NaN;
250
- return isNaN(n) ? val : n;
251
- };
252
- let _globalThis;
253
- const getGlobalThis = () => {
254
- return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
255
- };
256
-
257
257
  function warn$1(msg, ...args) {
258
258
  console.warn(`[Vue warn] ${msg}`, ...args);
259
259
  }
@@ -4049,7 +4049,7 @@ var VueRuntimeDOM = (function (exports) {
4049
4049
  function resolveComponent(name, maybeSelfReference) {
4050
4050
  return resolveAsset(COMPONENTS, name, true, maybeSelfReference) || name;
4051
4051
  }
4052
- const NULL_DYNAMIC_COMPONENT = Symbol();
4052
+ const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
4053
4053
  function resolveDynamicComponent(component) {
4054
4054
  if (isString(component)) {
4055
4055
  return resolveAsset(COMPONENTS, component, false) || component;
@@ -7807,10 +7807,10 @@ If you want to remount the same app, move your app creation logic into a factory
7807
7807
  }
7808
7808
  }
7809
7809
 
7810
- const Fragment = Symbol("Fragment" );
7811
- const Text = Symbol("Text" );
7812
- const Comment = Symbol("Comment" );
7813
- const Static = Symbol("Static" );
7810
+ const Fragment = Symbol.for("v-fgt");
7811
+ const Text = Symbol.for("v-txt");
7812
+ const Comment = Symbol.for("v-cmt");
7813
+ const Static = Symbol.for("v-stc");
7814
7814
  const blockStack = [];
7815
7815
  let currentBlock = null;
7816
7816
  function openBlock(disableTracking = false) {
@@ -8262,13 +8262,19 @@ Component that was made reactive: `,
8262
8262
  }
8263
8263
  let currentInstance = null;
8264
8264
  const getCurrentInstance = () => currentInstance || currentRenderingInstance;
8265
+ let internalSetCurrentInstance;
8266
+ {
8267
+ internalSetCurrentInstance = (i) => {
8268
+ currentInstance = i;
8269
+ };
8270
+ }
8265
8271
  const setCurrentInstance = (instance) => {
8266
- currentInstance = instance;
8272
+ internalSetCurrentInstance(instance);
8267
8273
  instance.scope.on();
8268
8274
  };
8269
8275
  const unsetCurrentInstance = () => {
8270
8276
  currentInstance && currentInstance.scope.off();
8271
- currentInstance = null;
8277
+ internalSetCurrentInstance(null);
8272
8278
  };
8273
8279
  const isBuiltInTag = /* @__PURE__ */ makeMap("slot,component");
8274
8280
  function validateComponentName(name, config) {
@@ -8668,7 +8674,7 @@ Component that was made reactive: `,
8668
8674
  }
8669
8675
  }
8670
8676
 
8671
- const ssrContextKey = Symbol(`ssrContext` );
8677
+ const ssrContextKey = Symbol.for("v-scx");
8672
8678
  const useSSRContext = () => {
8673
8679
  {
8674
8680
  warn(`useSSRContext() is not supported in the global build.`);
@@ -8876,7 +8882,7 @@ Component that was made reactive: `,
8876
8882
  return true;
8877
8883
  }
8878
8884
 
8879
- const version = "3.3.0-alpha.4";
8885
+ const version = "3.3.0-alpha.5";
8880
8886
  const ssrUtils = null;
8881
8887
  const resolveFilter = null;
8882
8888
  const compatUtils = null;