@vue/shared 3.6.0-rc.12 → 3.6.0-rc.13

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,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.6.0-rc.12
2
+ * @vue/shared v3.6.0-rc.13
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -368,8 +368,6 @@ const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math
368
368
  const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
369
369
  const FORMATTING_TAGS = "a,b,big,code,em,font,i,nobr,s,small,strike,strong,tt,u";
370
370
  const ALWAYS_CLOSE_TAGS = "title,style,script,noscript,template,object,table,button,textarea,select,iframe,fieldset,form,foreignObject,desc,mi,mo,mn,ms,mtext,annotation-xml";
371
- const INLINE_TAGS = "a,abbr,acronym,b,bdi,bdo,big,br,button,canvas,cite,code,data,datalist,del,dfn,em,embed,i,iframe,img,input,ins,kbd,label,map,mark,meter,noscript,object,output,picture,progress,q,ruby,s,samp,script,select,small,span,strong,sub,sup,svg,textarea,time,u,tt,var,video";
372
- const BLOCK_TAGS = "address,article,aside,blockquote,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,li,main,menu,nav,ol,p,pre,section,table,ul";
373
371
  /**
374
372
  * Compiler only.
375
373
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
@@ -400,16 +398,6 @@ const isFormattingTag = /*@__PURE__*/ makeMap(FORMATTING_TAGS);
400
398
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
401
399
  */
402
400
  const isAlwaysCloseTag = /*@__PURE__*/ makeMap(ALWAYS_CLOSE_TAGS);
403
- /**
404
- * Compiler only.
405
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
406
- */
407
- const isInlineTag = /*@__PURE__*/ makeMap(INLINE_TAGS);
408
- /**
409
- * Compiler only.
410
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
411
- */
412
- const isBlockTag = /*@__PURE__*/ makeMap(BLOCK_TAGS);
413
401
  //#endregion
414
402
  //#region packages/shared/src/domAttrConfig.ts
415
403
  /**
@@ -800,7 +788,18 @@ const VaporDynamicComponentFlags = {
800
788
  "NS_SVG": 8,
801
789
  "8": "NS_SVG",
802
790
  "NS_MATHML": 16,
803
- "16": "NS_MATHML"
791
+ "16": "NS_MATHML",
792
+ "SLOT_SINGLE_ROOT": 32,
793
+ "32": "SLOT_SINGLE_ROOT"
794
+ };
795
+ /**
796
+ * `isSingleRoot` of a component creation call for the single root of a slot
797
+ * body (`true` marks the single root of a component template). See
798
+ * resolveFallthroughOwner in runtime-vapor.
799
+ */
800
+ const VaporSingleRoot = {
801
+ "SLOT": 2,
802
+ "2": "SLOT"
804
803
  };
805
804
  //#endregion
806
805
  exports.EMPTY_ARR = EMPTY_ARR;
@@ -816,6 +815,7 @@ exports.TemplateFlags = TemplateFlags;
816
815
  exports.VaporBlockShape = VaporBlockShape;
817
816
  exports.VaporDynamicComponentFlags = VaporDynamicComponentFlags;
818
817
  exports.VaporIfFlags = VaporIfFlags;
818
+ exports.VaporSingleRoot = VaporSingleRoot;
819
819
  exports.VaporSlotFlags = VaporSlotFlags;
820
820
  exports.VaporSlotStability = VaporSlotStability;
821
821
  exports.VaporVForFlags = VaporVForFlags;
@@ -842,7 +842,6 @@ exports.includeBooleanAttr = includeBooleanAttr;
842
842
  exports.invokeArrayFns = invokeArrayFns;
843
843
  exports.isAlwaysCloseTag = isAlwaysCloseTag;
844
844
  exports.isArray = isArray;
845
- exports.isBlockTag = isBlockTag;
846
845
  exports.isBooleanAttr = isBooleanAttr;
847
846
  exports.isBuiltInDirective = isBuiltInDirective;
848
847
  exports.isBuiltInTag = isBuiltInTag;
@@ -853,7 +852,6 @@ exports.isFunction = isFunction;
853
852
  exports.isGloballyAllowed = isGloballyAllowed;
854
853
  exports.isGloballyWhitelisted = isGloballyWhitelisted;
855
854
  exports.isHTMLTag = isHTMLTag;
856
- exports.isInlineTag = isInlineTag;
857
855
  exports.isIntegerKey = isIntegerKey;
858
856
  exports.isKnownHtmlAttr = isKnownHtmlAttr;
859
857
  exports.isKnownMathMLAttr = isKnownMathMLAttr;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.6.0-rc.12
2
+ * @vue/shared v3.6.0-rc.13
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -368,8 +368,6 @@ const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math
368
368
  const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
369
369
  const FORMATTING_TAGS = "a,b,big,code,em,font,i,nobr,s,small,strike,strong,tt,u";
370
370
  const ALWAYS_CLOSE_TAGS = "title,style,script,noscript,template,object,table,button,textarea,select,iframe,fieldset,form,foreignObject,desc,mi,mo,mn,ms,mtext,annotation-xml";
371
- const INLINE_TAGS = "a,abbr,acronym,b,bdi,bdo,big,br,button,canvas,cite,code,data,datalist,del,dfn,em,embed,i,iframe,img,input,ins,kbd,label,map,mark,meter,noscript,object,output,picture,progress,q,ruby,s,samp,script,select,small,span,strong,sub,sup,svg,textarea,time,u,tt,var,video";
372
- const BLOCK_TAGS = "address,article,aside,blockquote,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,li,main,menu,nav,ol,p,pre,section,table,ul";
373
371
  /**
374
372
  * Compiler only.
375
373
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
@@ -400,16 +398,6 @@ const isFormattingTag = /*@__PURE__*/ makeMap(FORMATTING_TAGS);
400
398
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
401
399
  */
402
400
  const isAlwaysCloseTag = /*@__PURE__*/ makeMap(ALWAYS_CLOSE_TAGS);
403
- /**
404
- * Compiler only.
405
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
406
- */
407
- const isInlineTag = /*@__PURE__*/ makeMap(INLINE_TAGS);
408
- /**
409
- * Compiler only.
410
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
411
- */
412
- const isBlockTag = /*@__PURE__*/ makeMap(BLOCK_TAGS);
413
401
  //#endregion
414
402
  //#region packages/shared/src/domAttrConfig.ts
415
403
  /**
@@ -800,7 +788,18 @@ const VaporDynamicComponentFlags = {
800
788
  "NS_SVG": 8,
801
789
  "8": "NS_SVG",
802
790
  "NS_MATHML": 16,
803
- "16": "NS_MATHML"
791
+ "16": "NS_MATHML",
792
+ "SLOT_SINGLE_ROOT": 32,
793
+ "32": "SLOT_SINGLE_ROOT"
794
+ };
795
+ /**
796
+ * `isSingleRoot` of a component creation call for the single root of a slot
797
+ * body (`true` marks the single root of a component template). See
798
+ * resolveFallthroughOwner in runtime-vapor.
799
+ */
800
+ const VaporSingleRoot = {
801
+ "SLOT": 2,
802
+ "2": "SLOT"
804
803
  };
805
804
  //#endregion
806
805
  exports.EMPTY_ARR = EMPTY_ARR;
@@ -816,6 +815,7 @@ exports.TemplateFlags = TemplateFlags;
816
815
  exports.VaporBlockShape = VaporBlockShape;
817
816
  exports.VaporDynamicComponentFlags = VaporDynamicComponentFlags;
818
817
  exports.VaporIfFlags = VaporIfFlags;
818
+ exports.VaporSingleRoot = VaporSingleRoot;
819
819
  exports.VaporSlotFlags = VaporSlotFlags;
820
820
  exports.VaporSlotStability = VaporSlotStability;
821
821
  exports.VaporVForFlags = VaporVForFlags;
@@ -842,7 +842,6 @@ exports.includeBooleanAttr = includeBooleanAttr;
842
842
  exports.invokeArrayFns = invokeArrayFns;
843
843
  exports.isAlwaysCloseTag = isAlwaysCloseTag;
844
844
  exports.isArray = isArray;
845
- exports.isBlockTag = isBlockTag;
846
845
  exports.isBooleanAttr = isBooleanAttr;
847
846
  exports.isBuiltInDirective = isBuiltInDirective;
848
847
  exports.isBuiltInTag = isBuiltInTag;
@@ -853,7 +852,6 @@ exports.isFunction = isFunction;
853
852
  exports.isGloballyAllowed = isGloballyAllowed;
854
853
  exports.isGloballyWhitelisted = isGloballyWhitelisted;
855
854
  exports.isHTMLTag = isHTMLTag;
856
- exports.isInlineTag = isInlineTag;
857
855
  exports.isIntegerKey = isIntegerKey;
858
856
  exports.isKnownHtmlAttr = isKnownHtmlAttr;
859
857
  exports.isKnownMathMLAttr = isKnownMathMLAttr;
package/dist/shared.d.ts CHANGED
@@ -294,16 +294,6 @@ export declare const isFormattingTag: (key: string) => boolean;
294
294
  * Do NOT use in runtime code paths unless behind `__DEV__` flag.
295
295
  */
296
296
  export declare const isAlwaysCloseTag: (key: string) => boolean;
297
- /**
298
- * Compiler only.
299
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
300
- */
301
- export declare const isInlineTag: (key: string) => boolean;
302
- /**
303
- * Compiler only.
304
- * Do NOT use in runtime code paths unless behind `__DEV__` flag.
305
- */
306
- export declare const isBlockTag: (key: string) => boolean;
307
297
  //#endregion
308
298
  //#region temp/packages/shared/src/domAttrConfig.d.ts
309
299
  export declare const isSpecialBooleanAttr: (key: string) => boolean;
@@ -459,6 +449,10 @@ export declare enum VaporIfFlags {
459
449
  /**
460
450
  * Documents the packed true/false branch shape bits. Runtime decode shifts
461
451
  * to the selected branch first, then masks with 0b11 for one VaporBlockShape.
452
+ *
453
+ * `createIfChain` splits the same bits across two arguments: each branch
454
+ * flags entry holds that branch's shape with `TRUE_NO_SCOPE`, the chain
455
+ * flags hold `ONCE`, `SLOT_ROOT` and the keyed index.
462
456
  */
463
457
  BLOCK_SHAPE = 15,
464
458
  /**
@@ -516,6 +510,15 @@ export declare enum VaporDynamicComponentFlags {
516
510
  ONCE = 2,
517
511
  SLOT_ROOT = 4,
518
512
  NS_SVG = 8,
519
- NS_MATHML = 16
513
+ NS_MATHML = 16,
514
+ SLOT_SINGLE_ROOT = 32
515
+ }
516
+ /**
517
+ * `isSingleRoot` of a component creation call for the single root of a slot
518
+ * body (`true` marks the single root of a component template). See
519
+ * resolveFallthroughOwner in runtime-vapor.
520
+ */
521
+ export declare enum VaporSingleRoot {
522
+ SLOT = 2
520
523
  }
521
524
  //#endregion
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.6.0-rc.12
2
+ * @vue/shared v3.6.0-rc.13
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -364,8 +364,6 @@ const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math
364
364
  const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
365
365
  const FORMATTING_TAGS = "a,b,big,code,em,font,i,nobr,s,small,strike,strong,tt,u";
366
366
  const ALWAYS_CLOSE_TAGS = "title,style,script,noscript,template,object,table,button,textarea,select,iframe,fieldset,form,foreignObject,desc,mi,mo,mn,ms,mtext,annotation-xml";
367
- const INLINE_TAGS = "a,abbr,acronym,b,bdi,bdo,big,br,button,canvas,cite,code,data,datalist,del,dfn,em,embed,i,iframe,img,input,ins,kbd,label,map,mark,meter,noscript,object,output,picture,progress,q,ruby,s,samp,script,select,small,span,strong,sub,sup,svg,textarea,time,u,tt,var,video";
368
- const BLOCK_TAGS = "address,article,aside,blockquote,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,li,main,menu,nav,ol,p,pre,section,table,ul";
369
367
  /**
370
368
  * Compiler only.
371
369
  * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
@@ -396,16 +394,6 @@ const isFormattingTag = /*@__PURE__*/ makeMap(FORMATTING_TAGS);
396
394
  * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
397
395
  */
398
396
  const isAlwaysCloseTag = /*@__PURE__*/ makeMap(ALWAYS_CLOSE_TAGS);
399
- /**
400
- * Compiler only.
401
- * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
402
- */
403
- const isInlineTag = /*@__PURE__*/ makeMap(INLINE_TAGS);
404
- /**
405
- * Compiler only.
406
- * Do NOT use in runtime code paths unless behind `!!(process.env.NODE_ENV !== 'production')` flag.
407
- */
408
- const isBlockTag = /*@__PURE__*/ makeMap(BLOCK_TAGS);
409
397
  //#endregion
410
398
  //#region packages/shared/src/domAttrConfig.ts
411
399
  /**
@@ -798,7 +786,18 @@ const VaporDynamicComponentFlags = {
798
786
  "NS_SVG": 8,
799
787
  "8": "NS_SVG",
800
788
  "NS_MATHML": 16,
801
- "16": "NS_MATHML"
789
+ "16": "NS_MATHML",
790
+ "SLOT_SINGLE_ROOT": 32,
791
+ "32": "SLOT_SINGLE_ROOT"
792
+ };
793
+ /**
794
+ * `isSingleRoot` of a component creation call for the single root of a slot
795
+ * body (`true` marks the single root of a component template). See
796
+ * resolveFallthroughOwner in runtime-vapor.
797
+ */
798
+ const VaporSingleRoot = {
799
+ "SLOT": 2,
800
+ "2": "SLOT"
802
801
  };
803
802
  //#endregion
804
- export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, TemplateFlags, VaporBlockShape, VaporDynamicComponentFlags, VaporIfFlags, VaporSlotFlags, VaporSlotStability, 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, isForwardedSlot, 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, slotNotifiesBoundary, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
803
+ export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, Namespaces, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, TemplateFlags, VaporBlockShape, VaporDynamicComponentFlags, VaporIfFlags, VaporSingleRoot, VaporSlotFlags, VaporSlotStability, VaporVForFlags, YES, camelize, canSetValueDirectly, capitalize, cssVarNameEscapeSymbolsRE, def, escapeHtml, escapeHtmlComment, extend, genCacheKey, genPropsAccessExp, generateCodeFrame, getEscapedCssVarName, getGlobalThis, getModifierPropName, getSequence, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isAlwaysCloseTag, isArray, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isDate, isFormattingTag, isForwardedSlot, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, 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, slotNotifiesBoundary, 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-rc.12",
3
+ "version": "3.6.0-rc.13",
4
4
  "description": "internal utils shared across @vue packages",
5
5
  "main": "index.js",
6
6
  "module": "dist/shared.esm-bundler.js",