@vue/shared 3.6.0-beta.7 → 3.6.0-beta.8

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.
@@ -1,10 +1,12 @@
1
1
  /**
2
- * @vue/shared v3.6.0-beta.7
2
+ * @vue/shared v3.6.0-beta.8
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
6
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
7
-
6
+ Object.defineProperties(exports, {
7
+ __esModule: { value: true },
8
+ [Symbol.toStringTag]: { value: "Module" }
9
+ });
8
10
  //#region packages/shared/src/makeMap.ts
9
11
  /**
10
12
  * Make a map and return a function for checking if a key
@@ -19,7 +21,6 @@ function makeMap(str) {
19
21
  for (const key of str.split(",")) map[key] = 1;
20
22
  return (val) => val in map;
21
23
  }
22
-
23
24
  //#endregion
24
25
  //#region packages/shared/src/general.ts
25
26
  const EMPTY_OBJ = Object.freeze({});
@@ -145,7 +146,6 @@ function genCacheKey(source, options) {
145
146
  function canSetValueDirectly(tagName) {
146
147
  return tagName !== "PROGRESS" && !tagName.includes("-");
147
148
  }
148
-
149
149
  //#endregion
150
150
  //#region packages/shared/src/patchFlags.ts
151
151
  /**
@@ -215,7 +215,6 @@ const PatchFlagNames = {
215
215
  [-1]: `CACHED`,
216
216
  [-2]: `BAIL`
217
217
  };
218
-
219
218
  //#endregion
220
219
  //#region packages/shared/src/shapeFlags.ts
221
220
  const ShapeFlags = {
@@ -242,7 +241,6 @@ const ShapeFlags = {
242
241
  "COMPONENT": 6,
243
242
  "6": "COMPONENT"
244
243
  };
245
-
246
244
  //#endregion
247
245
  //#region packages/shared/src/slotFlags.ts
248
246
  const SlotFlags = {
@@ -261,14 +259,9 @@ const slotFlagsText = {
261
259
  [2]: "DYNAMIC",
262
260
  [3]: "FORWARDED"
263
261
  };
264
-
265
- //#endregion
266
- //#region packages/shared/src/globalsAllowList.ts
267
- const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol";
268
- const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
262
+ const isGloballyAllowed = /* @__PURE__ */ makeMap("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");
269
263
  /** @deprecated use `isGloballyAllowed` instead */
270
264
  const isGloballyWhitelisted = isGloballyAllowed;
271
-
272
265
  //#endregion
273
266
  //#region packages/shared/src/codeframe.ts
274
267
  const range = 2;
@@ -307,7 +300,6 @@ function generateCodeFrame(source, start = 0, end = source.length) {
307
300
  }
308
301
  return res.join("\n");
309
302
  }
310
-
311
303
  //#endregion
312
304
  //#region packages/shared/src/normalizeProp.ts
313
305
  function normalizeStyle(value) {
@@ -366,7 +358,6 @@ function normalizeProps(props) {
366
358
  if (style) props.style = normalizeStyle(style);
367
359
  return props;
368
360
  }
369
-
370
361
  //#endregion
371
362
  //#region packages/shared/src/domTagConfig.ts
372
363
  const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
@@ -417,7 +408,6 @@ const isInlineTag = /* @__PURE__ */ makeMap(INLINE_TAGS);
417
408
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
418
409
  */
419
410
  const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS);
420
-
421
411
  //#endregion
422
412
  //#region packages/shared/src/domAttrConfig.ts
423
413
  /**
@@ -490,7 +480,6 @@ function shouldSetAsAttr(tagName, key) {
490
480
  if (key === "sandbox" && tagName === "IFRAME") return true;
491
481
  return false;
492
482
  }
493
-
494
483
  //#endregion
495
484
  //#region packages/shared/src/domNamespace.ts
496
485
  const Namespaces = {
@@ -501,7 +490,6 @@ const Namespaces = {
501
490
  "MATH_ML": 2,
502
491
  "2": "MATH_ML"
503
492
  };
504
-
505
493
  //#endregion
506
494
  //#region packages/shared/src/escapeHtml.ts
507
495
  const escapeRE = /["'&<>]/;
@@ -546,7 +534,6 @@ const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
546
534
  function getEscapedCssVarName(key, doubleEscape) {
547
535
  return key.replace(cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === "\"" ? "\\\\\\\"" : `\\\\${s}` : `\\${s}`);
548
536
  }
549
-
550
537
  //#endregion
551
538
  //#region packages/shared/src/looseEqual.ts
552
539
  function looseCompareArrays(a, b) {
@@ -582,7 +569,6 @@ function looseEqual(a, b) {
582
569
  function looseIndexOf(arr, val) {
583
570
  return arr.findIndex((item) => looseEqual(item, val));
584
571
  }
585
-
586
572
  //#endregion
587
573
  //#region packages/shared/src/toDisplayString.ts
588
574
  const isRef = (val) => {
@@ -617,7 +603,6 @@ const stringifySymbol = (v, i = "") => {
617
603
  var _description;
618
604
  return isSymbol(v) ? `Symbol(${(_description = v.description) !== null && _description !== void 0 ? _description : i})` : v;
619
605
  };
620
-
621
606
  //#endregion
622
607
  //#region packages/shared/src/subSequence.ts
623
608
  function getSequence(arr) {
@@ -655,7 +640,6 @@ function getSequence(arr) {
655
640
  }
656
641
  return result;
657
642
  }
658
-
659
643
  //#endregion
660
644
  //#region packages/shared/src/cssVars.ts
661
645
  /**
@@ -668,7 +652,28 @@ function normalizeCssVarValue(value) {
668
652
  if (typeof value !== "number" || !Number.isFinite(value)) console.warn("[Vue warn] Invalid value used for CSS binding. Expected a string or a finite number but received:", value);
669
653
  return String(value);
670
654
  }
671
-
655
+ //#endregion
656
+ //#region packages/shared/src/vaporFlags.ts
657
+ /**
658
+ * Flags to optimize vapor `createFor` runtime behavior, shared between the
659
+ * compiler and the runtime
660
+ */
661
+ const VaporVForFlags = {
662
+ "FAST_REMOVE": 1,
663
+ "1": "FAST_REMOVE",
664
+ "IS_COMPONENT": 2,
665
+ "2": "IS_COMPONENT",
666
+ "ONCE": 4,
667
+ "4": "ONCE"
668
+ };
669
+ const VaporBlockShape = {
670
+ "EMPTY": 0,
671
+ "0": "EMPTY",
672
+ "SINGLE_ROOT": 1,
673
+ "1": "SINGLE_ROOT",
674
+ "MULTI_ROOT": 2,
675
+ "2": "MULTI_ROOT"
676
+ };
672
677
  //#endregion
673
678
  exports.EMPTY_ARR = EMPTY_ARR;
674
679
  exports.EMPTY_OBJ = EMPTY_OBJ;
@@ -679,6 +684,8 @@ exports.PatchFlagNames = PatchFlagNames;
679
684
  exports.PatchFlags = PatchFlags;
680
685
  exports.ShapeFlags = ShapeFlags;
681
686
  exports.SlotFlags = SlotFlags;
687
+ exports.VaporBlockShape = VaporBlockShape;
688
+ exports.VaporVForFlags = VaporVForFlags;
682
689
  exports.YES = YES;
683
690
  exports.camelize = camelize;
684
691
  exports.canSetValueDirectly = canSetValueDirectly;
@@ -754,4 +761,4 @@ exports.toDisplayString = toDisplayString;
754
761
  exports.toHandlerKey = toHandlerKey;
755
762
  exports.toNumber = toNumber;
756
763
  exports.toRawType = toRawType;
757
- exports.toTypeString = toTypeString;
764
+ exports.toTypeString = toTypeString;
@@ -1,10 +1,12 @@
1
1
  /**
2
- * @vue/shared v3.6.0-beta.7
2
+ * @vue/shared v3.6.0-beta.8
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
6
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
7
-
6
+ Object.defineProperties(exports, {
7
+ __esModule: { value: true },
8
+ [Symbol.toStringTag]: { value: "Module" }
9
+ });
8
10
  //#region packages/shared/src/makeMap.ts
9
11
  /**
10
12
  * Make a map and return a function for checking if a key
@@ -19,7 +21,6 @@ function makeMap(str) {
19
21
  for (const key of str.split(",")) map[key] = 1;
20
22
  return (val) => val in map;
21
23
  }
22
-
23
24
  //#endregion
24
25
  //#region packages/shared/src/general.ts
25
26
  const EMPTY_OBJ = {};
@@ -145,7 +146,6 @@ function genCacheKey(source, options) {
145
146
  function canSetValueDirectly(tagName) {
146
147
  return tagName !== "PROGRESS" && !tagName.includes("-");
147
148
  }
148
-
149
149
  //#endregion
150
150
  //#region packages/shared/src/patchFlags.ts
151
151
  /**
@@ -215,7 +215,6 @@ const PatchFlagNames = {
215
215
  [-1]: `CACHED`,
216
216
  [-2]: `BAIL`
217
217
  };
218
-
219
218
  //#endregion
220
219
  //#region packages/shared/src/shapeFlags.ts
221
220
  const ShapeFlags = {
@@ -242,7 +241,6 @@ const ShapeFlags = {
242
241
  "COMPONENT": 6,
243
242
  "6": "COMPONENT"
244
243
  };
245
-
246
244
  //#endregion
247
245
  //#region packages/shared/src/slotFlags.ts
248
246
  const SlotFlags = {
@@ -261,14 +259,9 @@ const slotFlagsText = {
261
259
  [2]: "DYNAMIC",
262
260
  [3]: "FORWARDED"
263
261
  };
264
-
265
- //#endregion
266
- //#region packages/shared/src/globalsAllowList.ts
267
- const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol";
268
- const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
262
+ const isGloballyAllowed = /* @__PURE__ */ makeMap("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");
269
263
  /** @deprecated use `isGloballyAllowed` instead */
270
264
  const isGloballyWhitelisted = isGloballyAllowed;
271
-
272
265
  //#endregion
273
266
  //#region packages/shared/src/codeframe.ts
274
267
  const range = 2;
@@ -307,7 +300,6 @@ function generateCodeFrame(source, start = 0, end = source.length) {
307
300
  }
308
301
  return res.join("\n");
309
302
  }
310
-
311
303
  //#endregion
312
304
  //#region packages/shared/src/normalizeProp.ts
313
305
  function normalizeStyle(value) {
@@ -366,7 +358,6 @@ function normalizeProps(props) {
366
358
  if (style) props.style = normalizeStyle(style);
367
359
  return props;
368
360
  }
369
-
370
361
  //#endregion
371
362
  //#region packages/shared/src/domTagConfig.ts
372
363
  const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
@@ -417,7 +408,6 @@ const isInlineTag = /* @__PURE__ */ makeMap(INLINE_TAGS);
417
408
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
418
409
  */
419
410
  const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS);
420
-
421
411
  //#endregion
422
412
  //#region packages/shared/src/domAttrConfig.ts
423
413
  /**
@@ -490,7 +480,6 @@ function shouldSetAsAttr(tagName, key) {
490
480
  if (key === "sandbox" && tagName === "IFRAME") return true;
491
481
  return false;
492
482
  }
493
-
494
483
  //#endregion
495
484
  //#region packages/shared/src/domNamespace.ts
496
485
  const Namespaces = {
@@ -501,7 +490,6 @@ const Namespaces = {
501
490
  "MATH_ML": 2,
502
491
  "2": "MATH_ML"
503
492
  };
504
-
505
493
  //#endregion
506
494
  //#region packages/shared/src/escapeHtml.ts
507
495
  const escapeRE = /["'&<>]/;
@@ -546,7 +534,6 @@ const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
546
534
  function getEscapedCssVarName(key, doubleEscape) {
547
535
  return key.replace(cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === "\"" ? "\\\\\\\"" : `\\\\${s}` : `\\${s}`);
548
536
  }
549
-
550
537
  //#endregion
551
538
  //#region packages/shared/src/looseEqual.ts
552
539
  function looseCompareArrays(a, b) {
@@ -582,7 +569,6 @@ function looseEqual(a, b) {
582
569
  function looseIndexOf(arr, val) {
583
570
  return arr.findIndex((item) => looseEqual(item, val));
584
571
  }
585
-
586
572
  //#endregion
587
573
  //#region packages/shared/src/toDisplayString.ts
588
574
  const isRef = (val) => {
@@ -617,7 +603,6 @@ const stringifySymbol = (v, i = "") => {
617
603
  var _description;
618
604
  return isSymbol(v) ? `Symbol(${(_description = v.description) !== null && _description !== void 0 ? _description : i})` : v;
619
605
  };
620
-
621
606
  //#endregion
622
607
  //#region packages/shared/src/subSequence.ts
623
608
  function getSequence(arr) {
@@ -655,7 +640,6 @@ function getSequence(arr) {
655
640
  }
656
641
  return result;
657
642
  }
658
-
659
643
  //#endregion
660
644
  //#region packages/shared/src/cssVars.ts
661
645
  /**
@@ -668,7 +652,28 @@ function normalizeCssVarValue(value) {
668
652
  if (typeof value !== "number" || !Number.isFinite(value)) {}
669
653
  return String(value);
670
654
  }
671
-
655
+ //#endregion
656
+ //#region packages/shared/src/vaporFlags.ts
657
+ /**
658
+ * Flags to optimize vapor `createFor` runtime behavior, shared between the
659
+ * compiler and the runtime
660
+ */
661
+ const VaporVForFlags = {
662
+ "FAST_REMOVE": 1,
663
+ "1": "FAST_REMOVE",
664
+ "IS_COMPONENT": 2,
665
+ "2": "IS_COMPONENT",
666
+ "ONCE": 4,
667
+ "4": "ONCE"
668
+ };
669
+ const VaporBlockShape = {
670
+ "EMPTY": 0,
671
+ "0": "EMPTY",
672
+ "SINGLE_ROOT": 1,
673
+ "1": "SINGLE_ROOT",
674
+ "MULTI_ROOT": 2,
675
+ "2": "MULTI_ROOT"
676
+ };
672
677
  //#endregion
673
678
  exports.EMPTY_ARR = EMPTY_ARR;
674
679
  exports.EMPTY_OBJ = EMPTY_OBJ;
@@ -679,6 +684,8 @@ exports.PatchFlagNames = PatchFlagNames;
679
684
  exports.PatchFlags = PatchFlags;
680
685
  exports.ShapeFlags = ShapeFlags;
681
686
  exports.SlotFlags = SlotFlags;
687
+ exports.VaporBlockShape = VaporBlockShape;
688
+ exports.VaporVForFlags = VaporVForFlags;
682
689
  exports.YES = YES;
683
690
  exports.camelize = camelize;
684
691
  exports.canSetValueDirectly = canSetValueDirectly;
@@ -754,4 +761,4 @@ exports.toDisplayString = toDisplayString;
754
761
  exports.toHandlerKey = toHandlerKey;
755
762
  exports.toNumber = toNumber;
756
763
  exports.toRawType = toRawType;
757
- exports.toTypeString = toTypeString;
764
+ exports.toTypeString = toTypeString;
package/dist/shared.d.ts CHANGED
@@ -388,3 +388,30 @@ export declare function getSequence(arr: number[]): number[];
388
388
  */
389
389
  export declare function normalizeCssVarValue(value: unknown): string;
390
390
  //#endregion
391
+ //#region temp/packages/shared/src/vaporFlags.d.ts
392
+ /**
393
+ * Flags to optimize vapor `createFor` runtime behavior, shared between the
394
+ * compiler and the runtime
395
+ */
396
+ export declare enum VaporVForFlags {
397
+ /**
398
+ * v-for is the only child of a parent container, so it can take the fast
399
+ * path with textContent = '' when the whole list is emptied
400
+ */
401
+ FAST_REMOVE = 1,
402
+ /**
403
+ * v-for used on component - we can skip creating child scopes for each block
404
+ * because the component itself already has a scope.
405
+ */
406
+ IS_COMPONENT = 2,
407
+ /**
408
+ * v-for inside v-once
409
+ */
410
+ ONCE = 4
411
+ }
412
+ export declare enum VaporBlockShape {
413
+ EMPTY = 0,
414
+ SINGLE_ROOT = 1,
415
+ MULTI_ROOT = 2
416
+ }
417
+ //#endregion
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.6.0-beta.7
2
+ * @vue/shared v3.6.0-beta.8
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -17,7 +17,6 @@ function makeMap(str) {
17
17
  for (const key of str.split(",")) map[key] = 1;
18
18
  return (val) => val in map;
19
19
  }
20
-
21
20
  //#endregion
22
21
  //#region packages/shared/src/general.ts
23
22
  const EMPTY_OBJ = !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
@@ -143,7 +142,6 @@ function genCacheKey(source, options) {
143
142
  function canSetValueDirectly(tagName) {
144
143
  return tagName !== "PROGRESS" && !tagName.includes("-");
145
144
  }
146
-
147
145
  //#endregion
148
146
  //#region packages/shared/src/patchFlags.ts
149
147
  /**
@@ -213,7 +211,6 @@ const PatchFlagNames = {
213
211
  [-1]: `CACHED`,
214
212
  [-2]: `BAIL`
215
213
  };
216
-
217
214
  //#endregion
218
215
  //#region packages/shared/src/shapeFlags.ts
219
216
  const ShapeFlags = {
@@ -240,7 +237,6 @@ const ShapeFlags = {
240
237
  "COMPONENT": 6,
241
238
  "6": "COMPONENT"
242
239
  };
243
-
244
240
  //#endregion
245
241
  //#region packages/shared/src/slotFlags.ts
246
242
  const SlotFlags = {
@@ -259,14 +255,9 @@ const slotFlagsText = {
259
255
  [2]: "DYNAMIC",
260
256
  [3]: "FORWARDED"
261
257
  };
262
-
263
- //#endregion
264
- //#region packages/shared/src/globalsAllowList.ts
265
- const GLOBALS_ALLOWED = "Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol";
266
- const isGloballyAllowed = /* @__PURE__ */ makeMap(GLOBALS_ALLOWED);
258
+ const isGloballyAllowed = /* @__PURE__ */ makeMap("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol");
267
259
  /** @deprecated use `isGloballyAllowed` instead */
268
260
  const isGloballyWhitelisted = isGloballyAllowed;
269
-
270
261
  //#endregion
271
262
  //#region packages/shared/src/codeframe.ts
272
263
  const range = 2;
@@ -305,7 +296,6 @@ function generateCodeFrame(source, start = 0, end = source.length) {
305
296
  }
306
297
  return res.join("\n");
307
298
  }
308
-
309
299
  //#endregion
310
300
  //#region packages/shared/src/normalizeProp.ts
311
301
  function normalizeStyle(value) {
@@ -364,7 +354,6 @@ function normalizeProps(props) {
364
354
  if (style) props.style = normalizeStyle(style);
365
355
  return props;
366
356
  }
367
-
368
357
  //#endregion
369
358
  //#region packages/shared/src/domTagConfig.ts
370
359
  const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
@@ -415,7 +404,6 @@ const isInlineTag = /* @__PURE__ */ makeMap(INLINE_TAGS);
415
404
  * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
416
405
  */
417
406
  const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS);
418
-
419
407
  //#endregion
420
408
  //#region packages/shared/src/domAttrConfig.ts
421
409
  /**
@@ -488,7 +476,6 @@ function shouldSetAsAttr(tagName, key) {
488
476
  if (key === "sandbox" && tagName === "IFRAME") return true;
489
477
  return false;
490
478
  }
491
-
492
479
  //#endregion
493
480
  //#region packages/shared/src/domNamespace.ts
494
481
  const Namespaces = {
@@ -499,7 +486,6 @@ const Namespaces = {
499
486
  "MATH_ML": 2,
500
487
  "2": "MATH_ML"
501
488
  };
502
-
503
489
  //#endregion
504
490
  //#region packages/shared/src/escapeHtml.ts
505
491
  const escapeRE = /["'&<>]/;
@@ -544,7 +530,6 @@ const cssVarNameEscapeSymbolsRE = /[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;
544
530
  function getEscapedCssVarName(key, doubleEscape) {
545
531
  return key.replace(cssVarNameEscapeSymbolsRE, (s) => doubleEscape ? s === "\"" ? "\\\\\\\"" : `\\\\${s}` : `\\${s}`);
546
532
  }
547
-
548
533
  //#endregion
549
534
  //#region packages/shared/src/looseEqual.ts
550
535
  function looseCompareArrays(a, b) {
@@ -580,7 +565,6 @@ function looseEqual(a, b) {
580
565
  function looseIndexOf(arr, val) {
581
566
  return arr.findIndex((item) => looseEqual(item, val));
582
567
  }
583
-
584
568
  //#endregion
585
569
  //#region packages/shared/src/toDisplayString.ts
586
570
  const isRef = (val) => {
@@ -615,7 +599,6 @@ const stringifySymbol = (v, i = "") => {
615
599
  var _description;
616
600
  return isSymbol(v) ? `Symbol(${(_description = v.description) !== null && _description !== void 0 ? _description : i})` : v;
617
601
  };
618
-
619
602
  //#endregion
620
603
  //#region packages/shared/src/subSequence.ts
621
604
  function getSequence(arr) {
@@ -653,7 +636,6 @@ function getSequence(arr) {
653
636
  }
654
637
  return result;
655
638
  }
656
-
657
639
  //#endregion
658
640
  //#region packages/shared/src/cssVars.ts
659
641
  /**
@@ -668,6 +650,27 @@ function normalizeCssVarValue(value) {
668
650
  }
669
651
  return String(value);
670
652
  }
671
-
672
653
  //#endregion
673
- export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, YES, camelize, canSetValueDirectly, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, getModifierPropName, getSequence, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isAlwaysCloseTag, isArray, isBlockTag, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isDate, isFormattingTag, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isInlineTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isNativeOn, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeCssVarValue, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, shouldSetAsAttr, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
654
+ //#region packages/shared/src/vaporFlags.ts
655
+ /**
656
+ * Flags to optimize vapor `createFor` runtime behavior, shared between the
657
+ * compiler and the runtime
658
+ */
659
+ const VaporVForFlags = {
660
+ "FAST_REMOVE": 1,
661
+ "1": "FAST_REMOVE",
662
+ "IS_COMPONENT": 2,
663
+ "2": "IS_COMPONENT",
664
+ "ONCE": 4,
665
+ "4": "ONCE"
666
+ };
667
+ const VaporBlockShape = {
668
+ "EMPTY": 0,
669
+ "0": "EMPTY",
670
+ "SINGLE_ROOT": 1,
671
+ "1": "SINGLE_ROOT",
672
+ "MULTI_ROOT": 2,
673
+ "2": "MULTI_ROOT"
674
+ };
675
+ //#endregion
676
+ export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, VaporBlockShape, VaporVForFlags, YES, camelize, canSetValueDirectly, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, getModifierPropName, getSequence, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isAlwaysCloseTag, isArray, isBlockTag, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isDate, isFormattingTag, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isInlineTag, isIntegerKey, isKnownHtmlAttr, isKnownMathMLAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isNativeOn, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeCssVarValue, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, shouldSetAsAttr, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/shared",
3
- "version": "3.6.0-beta.7",
3
+ "version": "3.6.0-beta.8",
4
4
  "description": "internal utils shared across @vue packages",
5
5
  "main": "index.js",
6
6
  "module": "dist/shared.esm-bundler.js",