@vue/shared 3.6.0-beta.2 → 3.6.0-beta.4
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/shared.cjs.js +10 -1
- package/dist/shared.cjs.prod.js +10 -1
- package/dist/shared.d.ts +15 -0
- package/dist/shared.esm-bundler.js +8 -2
- package/package.json +1 -1
package/dist/shared.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-beta.
|
|
2
|
+
* @vue/shared v3.6.0-beta.4
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -342,11 +342,17 @@ const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,col
|
|
|
342
342
|
const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics";
|
|
343
343
|
const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
|
|
344
344
|
const FORMATTING_TAGS = "a,b,big,code,em,font,i,nobr,s,small,strike,strong,tt,u";
|
|
345
|
+
const ALWAYS_CLOSE_TAGS = "title,style,script,noscript,template,object,table,button,textarea,select,iframe,fieldset";
|
|
346
|
+
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";
|
|
347
|
+
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";
|
|
345
348
|
const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);
|
|
346
349
|
const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
|
|
347
350
|
const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
348
351
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
349
352
|
const isFormattingTag = /* @__PURE__ */ makeMap(FORMATTING_TAGS);
|
|
353
|
+
const isAlwaysCloseTag = /* @__PURE__ */ makeMap(ALWAYS_CLOSE_TAGS);
|
|
354
|
+
const isInlineTag = /* @__PURE__ */ makeMap(INLINE_TAGS);
|
|
355
|
+
const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS);
|
|
350
356
|
|
|
351
357
|
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
|
|
352
358
|
const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
@@ -663,7 +669,9 @@ exports.hasOwn = hasOwn;
|
|
|
663
669
|
exports.hyphenate = hyphenate;
|
|
664
670
|
exports.includeBooleanAttr = includeBooleanAttr;
|
|
665
671
|
exports.invokeArrayFns = invokeArrayFns;
|
|
672
|
+
exports.isAlwaysCloseTag = isAlwaysCloseTag;
|
|
666
673
|
exports.isArray = isArray;
|
|
674
|
+
exports.isBlockTag = isBlockTag;
|
|
667
675
|
exports.isBooleanAttr = isBooleanAttr;
|
|
668
676
|
exports.isBuiltInDirective = isBuiltInDirective;
|
|
669
677
|
exports.isBuiltInTag = isBuiltInTag;
|
|
@@ -673,6 +681,7 @@ exports.isFunction = isFunction;
|
|
|
673
681
|
exports.isGloballyAllowed = isGloballyAllowed;
|
|
674
682
|
exports.isGloballyWhitelisted = isGloballyWhitelisted;
|
|
675
683
|
exports.isHTMLTag = isHTMLTag;
|
|
684
|
+
exports.isInlineTag = isInlineTag;
|
|
676
685
|
exports.isIntegerKey = isIntegerKey;
|
|
677
686
|
exports.isKnownHtmlAttr = isKnownHtmlAttr;
|
|
678
687
|
exports.isKnownMathMLAttr = isKnownMathMLAttr;
|
package/dist/shared.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-beta.
|
|
2
|
+
* @vue/shared v3.6.0-beta.4
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -342,11 +342,17 @@ const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,col
|
|
|
342
342
|
const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics";
|
|
343
343
|
const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
|
|
344
344
|
const FORMATTING_TAGS = "a,b,big,code,em,font,i,nobr,s,small,strike,strong,tt,u";
|
|
345
|
+
const ALWAYS_CLOSE_TAGS = "title,style,script,noscript,template,object,table,button,textarea,select,iframe,fieldset";
|
|
346
|
+
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";
|
|
347
|
+
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";
|
|
345
348
|
const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);
|
|
346
349
|
const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
|
|
347
350
|
const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
348
351
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
349
352
|
const isFormattingTag = /* @__PURE__ */ makeMap(FORMATTING_TAGS);
|
|
353
|
+
const isAlwaysCloseTag = /* @__PURE__ */ makeMap(ALWAYS_CLOSE_TAGS);
|
|
354
|
+
const isInlineTag = /* @__PURE__ */ makeMap(INLINE_TAGS);
|
|
355
|
+
const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS);
|
|
350
356
|
|
|
351
357
|
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
|
|
352
358
|
const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
@@ -655,7 +661,9 @@ exports.hasOwn = hasOwn;
|
|
|
655
661
|
exports.hyphenate = hyphenate;
|
|
656
662
|
exports.includeBooleanAttr = includeBooleanAttr;
|
|
657
663
|
exports.invokeArrayFns = invokeArrayFns;
|
|
664
|
+
exports.isAlwaysCloseTag = isAlwaysCloseTag;
|
|
658
665
|
exports.isArray = isArray;
|
|
666
|
+
exports.isBlockTag = isBlockTag;
|
|
659
667
|
exports.isBooleanAttr = isBooleanAttr;
|
|
660
668
|
exports.isBuiltInDirective = isBuiltInDirective;
|
|
661
669
|
exports.isBuiltInTag = isBuiltInTag;
|
|
@@ -665,6 +673,7 @@ exports.isFunction = isFunction;
|
|
|
665
673
|
exports.isGloballyAllowed = isGloballyAllowed;
|
|
666
674
|
exports.isGloballyWhitelisted = isGloballyWhitelisted;
|
|
667
675
|
exports.isHTMLTag = isHTMLTag;
|
|
676
|
+
exports.isInlineTag = isInlineTag;
|
|
668
677
|
exports.isIntegerKey = isIntegerKey;
|
|
669
678
|
exports.isKnownHtmlAttr = isKnownHtmlAttr;
|
|
670
679
|
exports.isKnownMathMLAttr = isKnownMathMLAttr;
|
package/dist/shared.d.ts
CHANGED
|
@@ -279,6 +279,21 @@ export declare const isVoidTag: (key: string) => boolean;
|
|
|
279
279
|
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
280
280
|
*/
|
|
281
281
|
export declare const isFormattingTag: (key: string) => boolean;
|
|
282
|
+
/**
|
|
283
|
+
* Compiler only.
|
|
284
|
+
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
285
|
+
*/
|
|
286
|
+
export declare const isAlwaysCloseTag: (key: string) => boolean;
|
|
287
|
+
/**
|
|
288
|
+
* Compiler only.
|
|
289
|
+
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
290
|
+
*/
|
|
291
|
+
export declare const isInlineTag: (key: string) => boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Compiler only.
|
|
294
|
+
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
295
|
+
*/
|
|
296
|
+
export declare const isBlockTag: (key: string) => boolean;
|
|
282
297
|
|
|
283
298
|
export declare const isSpecialBooleanAttr: (key: string) => boolean;
|
|
284
299
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-beta.
|
|
2
|
+
* @vue/shared v3.6.0-beta.4
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -338,11 +338,17 @@ const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,col
|
|
|
338
338
|
const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics";
|
|
339
339
|
const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
|
|
340
340
|
const FORMATTING_TAGS = "a,b,big,code,em,font,i,nobr,s,small,strike,strong,tt,u";
|
|
341
|
+
const ALWAYS_CLOSE_TAGS = "title,style,script,noscript,template,object,table,button,textarea,select,iframe,fieldset";
|
|
342
|
+
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";
|
|
343
|
+
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";
|
|
341
344
|
const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);
|
|
342
345
|
const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
|
|
343
346
|
const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
344
347
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
345
348
|
const isFormattingTag = /* @__PURE__ */ makeMap(FORMATTING_TAGS);
|
|
349
|
+
const isAlwaysCloseTag = /* @__PURE__ */ makeMap(ALWAYS_CLOSE_TAGS);
|
|
350
|
+
const isInlineTag = /* @__PURE__ */ makeMap(INLINE_TAGS);
|
|
351
|
+
const isBlockTag = /* @__PURE__ */ makeMap(BLOCK_TAGS);
|
|
346
352
|
|
|
347
353
|
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
|
|
348
354
|
const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
@@ -629,4 +635,4 @@ function normalizeCssVarValue(value) {
|
|
|
629
635
|
return String(value);
|
|
630
636
|
}
|
|
631
637
|
|
|
632
|
-
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, isArray, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isDate, isFormattingTag, 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, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
|
|
638
|
+
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 };
|