@vue/shared 3.6.0-rc.11 → 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.
- package/dist/shared.cjs.js +18 -25
- package/dist/shared.cjs.prod.js +18 -25
- package/dist/shared.d.ts +15 -14
- package/dist/shared.esm-bundler.js +18 -23
- package/package.json +1 -1
package/dist/shared.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-rc.
|
|
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
|
/**
|
|
@@ -421,9 +409,10 @@ const isBlockTag = /*@__PURE__*/ makeMap(BLOCK_TAGS);
|
|
|
421
409
|
* - ismap -> isMap
|
|
422
410
|
* - nomodule -> noModule
|
|
423
411
|
* - novalidate -> noValidate
|
|
412
|
+
* - playsinline -> playsInline
|
|
424
413
|
* - readonly -> readOnly
|
|
425
414
|
*/
|
|
426
|
-
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
|
|
415
|
+
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
|
|
427
416
|
const isSpecialBooleanAttr = /*@__PURE__*/ makeMap(specialBooleanAttrs);
|
|
428
417
|
/**
|
|
429
418
|
* The full list is needed during SSR to produce the correct initial markup.
|
|
@@ -774,15 +763,10 @@ const VaporSlotFlags = {
|
|
|
774
763
|
"ONCE": 2,
|
|
775
764
|
"2": "ONCE",
|
|
776
765
|
"FORWARDED": 4,
|
|
777
|
-
"4": "FORWARDED"
|
|
778
|
-
"SHARED_FALLBACK": 8,
|
|
779
|
-
"8": "SHARED_FALLBACK"
|
|
766
|
+
"4": "FORWARDED"
|
|
780
767
|
};
|
|
781
768
|
function isForwardedSlot(flags) {
|
|
782
|
-
return !!(flags &
|
|
783
|
-
}
|
|
784
|
-
function slotInheritsFallback(flags) {
|
|
785
|
-
return isForwardedSlot(flags) && !(flags & 8);
|
|
769
|
+
return !!(flags & 4);
|
|
786
770
|
}
|
|
787
771
|
function slotNotifiesBoundary(flags) {
|
|
788
772
|
return isForwardedSlot(flags) && !(flags & 2);
|
|
@@ -804,7 +788,18 @@ const VaporDynamicComponentFlags = {
|
|
|
804
788
|
"NS_SVG": 8,
|
|
805
789
|
"8": "NS_SVG",
|
|
806
790
|
"NS_MATHML": 16,
|
|
807
|
-
"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"
|
|
808
803
|
};
|
|
809
804
|
//#endregion
|
|
810
805
|
exports.EMPTY_ARR = EMPTY_ARR;
|
|
@@ -820,6 +815,7 @@ exports.TemplateFlags = TemplateFlags;
|
|
|
820
815
|
exports.VaporBlockShape = VaporBlockShape;
|
|
821
816
|
exports.VaporDynamicComponentFlags = VaporDynamicComponentFlags;
|
|
822
817
|
exports.VaporIfFlags = VaporIfFlags;
|
|
818
|
+
exports.VaporSingleRoot = VaporSingleRoot;
|
|
823
819
|
exports.VaporSlotFlags = VaporSlotFlags;
|
|
824
820
|
exports.VaporSlotStability = VaporSlotStability;
|
|
825
821
|
exports.VaporVForFlags = VaporVForFlags;
|
|
@@ -846,7 +842,6 @@ exports.includeBooleanAttr = includeBooleanAttr;
|
|
|
846
842
|
exports.invokeArrayFns = invokeArrayFns;
|
|
847
843
|
exports.isAlwaysCloseTag = isAlwaysCloseTag;
|
|
848
844
|
exports.isArray = isArray;
|
|
849
|
-
exports.isBlockTag = isBlockTag;
|
|
850
845
|
exports.isBooleanAttr = isBooleanAttr;
|
|
851
846
|
exports.isBuiltInDirective = isBuiltInDirective;
|
|
852
847
|
exports.isBuiltInTag = isBuiltInTag;
|
|
@@ -857,7 +852,6 @@ exports.isFunction = isFunction;
|
|
|
857
852
|
exports.isGloballyAllowed = isGloballyAllowed;
|
|
858
853
|
exports.isGloballyWhitelisted = isGloballyWhitelisted;
|
|
859
854
|
exports.isHTMLTag = isHTMLTag;
|
|
860
|
-
exports.isInlineTag = isInlineTag;
|
|
861
855
|
exports.isIntegerKey = isIntegerKey;
|
|
862
856
|
exports.isKnownHtmlAttr = isKnownHtmlAttr;
|
|
863
857
|
exports.isKnownMathMLAttr = isKnownMathMLAttr;
|
|
@@ -894,7 +888,6 @@ exports.propsToAttrMap = propsToAttrMap;
|
|
|
894
888
|
exports.remove = remove;
|
|
895
889
|
exports.shouldSetAsAttr = shouldSetAsAttr;
|
|
896
890
|
exports.slotFlagsText = slotFlagsText;
|
|
897
|
-
exports.slotInheritsFallback = slotInheritsFallback;
|
|
898
891
|
exports.slotNotifiesBoundary = slotNotifiesBoundary;
|
|
899
892
|
exports.stringifyStyle = stringifyStyle;
|
|
900
893
|
exports.toDisplayString = toDisplayString;
|
package/dist/shared.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-rc.
|
|
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
|
/**
|
|
@@ -421,9 +409,10 @@ const isBlockTag = /*@__PURE__*/ makeMap(BLOCK_TAGS);
|
|
|
421
409
|
* - ismap -> isMap
|
|
422
410
|
* - nomodule -> noModule
|
|
423
411
|
* - novalidate -> noValidate
|
|
412
|
+
* - playsinline -> playsInline
|
|
424
413
|
* - readonly -> readOnly
|
|
425
414
|
*/
|
|
426
|
-
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
|
|
415
|
+
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
|
|
427
416
|
const isSpecialBooleanAttr = /*@__PURE__*/ makeMap(specialBooleanAttrs);
|
|
428
417
|
/**
|
|
429
418
|
* The full list is needed during SSR to produce the correct initial markup.
|
|
@@ -774,15 +763,10 @@ const VaporSlotFlags = {
|
|
|
774
763
|
"ONCE": 2,
|
|
775
764
|
"2": "ONCE",
|
|
776
765
|
"FORWARDED": 4,
|
|
777
|
-
"4": "FORWARDED"
|
|
778
|
-
"SHARED_FALLBACK": 8,
|
|
779
|
-
"8": "SHARED_FALLBACK"
|
|
766
|
+
"4": "FORWARDED"
|
|
780
767
|
};
|
|
781
768
|
function isForwardedSlot(flags) {
|
|
782
|
-
return !!(flags &
|
|
783
|
-
}
|
|
784
|
-
function slotInheritsFallback(flags) {
|
|
785
|
-
return isForwardedSlot(flags) && !(flags & 8);
|
|
769
|
+
return !!(flags & 4);
|
|
786
770
|
}
|
|
787
771
|
function slotNotifiesBoundary(flags) {
|
|
788
772
|
return isForwardedSlot(flags) && !(flags & 2);
|
|
@@ -804,7 +788,18 @@ const VaporDynamicComponentFlags = {
|
|
|
804
788
|
"NS_SVG": 8,
|
|
805
789
|
"8": "NS_SVG",
|
|
806
790
|
"NS_MATHML": 16,
|
|
807
|
-
"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"
|
|
808
803
|
};
|
|
809
804
|
//#endregion
|
|
810
805
|
exports.EMPTY_ARR = EMPTY_ARR;
|
|
@@ -820,6 +815,7 @@ exports.TemplateFlags = TemplateFlags;
|
|
|
820
815
|
exports.VaporBlockShape = VaporBlockShape;
|
|
821
816
|
exports.VaporDynamicComponentFlags = VaporDynamicComponentFlags;
|
|
822
817
|
exports.VaporIfFlags = VaporIfFlags;
|
|
818
|
+
exports.VaporSingleRoot = VaporSingleRoot;
|
|
823
819
|
exports.VaporSlotFlags = VaporSlotFlags;
|
|
824
820
|
exports.VaporSlotStability = VaporSlotStability;
|
|
825
821
|
exports.VaporVForFlags = VaporVForFlags;
|
|
@@ -846,7 +842,6 @@ exports.includeBooleanAttr = includeBooleanAttr;
|
|
|
846
842
|
exports.invokeArrayFns = invokeArrayFns;
|
|
847
843
|
exports.isAlwaysCloseTag = isAlwaysCloseTag;
|
|
848
844
|
exports.isArray = isArray;
|
|
849
|
-
exports.isBlockTag = isBlockTag;
|
|
850
845
|
exports.isBooleanAttr = isBooleanAttr;
|
|
851
846
|
exports.isBuiltInDirective = isBuiltInDirective;
|
|
852
847
|
exports.isBuiltInTag = isBuiltInTag;
|
|
@@ -857,7 +852,6 @@ exports.isFunction = isFunction;
|
|
|
857
852
|
exports.isGloballyAllowed = isGloballyAllowed;
|
|
858
853
|
exports.isGloballyWhitelisted = isGloballyWhitelisted;
|
|
859
854
|
exports.isHTMLTag = isHTMLTag;
|
|
860
|
-
exports.isInlineTag = isInlineTag;
|
|
861
855
|
exports.isIntegerKey = isIntegerKey;
|
|
862
856
|
exports.isKnownHtmlAttr = isKnownHtmlAttr;
|
|
863
857
|
exports.isKnownMathMLAttr = isKnownMathMLAttr;
|
|
@@ -894,7 +888,6 @@ exports.propsToAttrMap = propsToAttrMap;
|
|
|
894
888
|
exports.remove = remove;
|
|
895
889
|
exports.shouldSetAsAttr = shouldSetAsAttr;
|
|
896
890
|
exports.slotFlagsText = slotFlagsText;
|
|
897
|
-
exports.slotInheritsFallback = slotInheritsFallback;
|
|
898
891
|
exports.slotNotifiesBoundary = slotNotifiesBoundary;
|
|
899
892
|
exports.stringifyStyle = stringifyStyle;
|
|
900
893
|
exports.toDisplayString = toDisplayString;
|
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
|
/**
|
|
@@ -501,11 +495,9 @@ export declare enum TemplateFlags {
|
|
|
501
495
|
export declare enum VaporSlotFlags {
|
|
502
496
|
NO_SLOTTED = 1,
|
|
503
497
|
ONCE = 2,
|
|
504
|
-
FORWARDED = 4
|
|
505
|
-
SHARED_FALLBACK = 8
|
|
498
|
+
FORWARDED = 4
|
|
506
499
|
}
|
|
507
500
|
export declare function isForwardedSlot(flags: number): boolean;
|
|
508
|
-
export declare function slotInheritsFallback(flags: number): boolean;
|
|
509
501
|
export declare function slotNotifiesBoundary(flags: number): boolean;
|
|
510
502
|
/**
|
|
511
503
|
* Per-slot-function metadata attached by the compiler as `fn._`.
|
|
@@ -518,6 +510,15 @@ export declare enum VaporDynamicComponentFlags {
|
|
|
518
510
|
ONCE = 2,
|
|
519
511
|
SLOT_ROOT = 4,
|
|
520
512
|
NS_SVG = 8,
|
|
521
|
-
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
|
|
522
523
|
}
|
|
523
524
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-rc.
|
|
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
|
/**
|
|
@@ -417,9 +405,10 @@ const isBlockTag = /*@__PURE__*/ makeMap(BLOCK_TAGS);
|
|
|
417
405
|
* - ismap -> isMap
|
|
418
406
|
* - nomodule -> noModule
|
|
419
407
|
* - novalidate -> noValidate
|
|
408
|
+
* - playsinline -> playsInline
|
|
420
409
|
* - readonly -> readOnly
|
|
421
410
|
*/
|
|
422
|
-
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
|
|
411
|
+
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
|
|
423
412
|
const isSpecialBooleanAttr = /*@__PURE__*/ makeMap(specialBooleanAttrs);
|
|
424
413
|
/**
|
|
425
414
|
* The full list is needed during SSR to produce the correct initial markup.
|
|
@@ -772,15 +761,10 @@ const VaporSlotFlags = {
|
|
|
772
761
|
"ONCE": 2,
|
|
773
762
|
"2": "ONCE",
|
|
774
763
|
"FORWARDED": 4,
|
|
775
|
-
"4": "FORWARDED"
|
|
776
|
-
"SHARED_FALLBACK": 8,
|
|
777
|
-
"8": "SHARED_FALLBACK"
|
|
764
|
+
"4": "FORWARDED"
|
|
778
765
|
};
|
|
779
766
|
function isForwardedSlot(flags) {
|
|
780
|
-
return !!(flags &
|
|
781
|
-
}
|
|
782
|
-
function slotInheritsFallback(flags) {
|
|
783
|
-
return isForwardedSlot(flags) && !(flags & 8);
|
|
767
|
+
return !!(flags & 4);
|
|
784
768
|
}
|
|
785
769
|
function slotNotifiesBoundary(flags) {
|
|
786
770
|
return isForwardedSlot(flags) && !(flags & 2);
|
|
@@ -802,7 +786,18 @@ const VaporDynamicComponentFlags = {
|
|
|
802
786
|
"NS_SVG": 8,
|
|
803
787
|
"8": "NS_SVG",
|
|
804
788
|
"NS_MATHML": 16,
|
|
805
|
-
"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"
|
|
806
801
|
};
|
|
807
802
|
//#endregion
|
|
808
|
-
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,
|
|
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 };
|