babel-plugin-essor 0.0.15-beta.13 → 0.0.15-beta.14

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/index.cjs CHANGED
@@ -21185,16 +21185,16 @@ function g(e) {
21185
21185
  function k(e) {
21186
21186
  return e === null;
21187
21187
  }
21188
- function M(e) {
21188
+ function N(e) {
21189
21189
  return typeof e == "symbol";
21190
21190
  }
21191
- function z(e) {
21191
+ function L(e) {
21192
21192
  return p.call(e) === "[object Map]";
21193
21193
  }
21194
21194
  function O(e) {
21195
21195
  return e == null;
21196
21196
  }
21197
- var R = (e) => ["string", "number", "boolean", "symbol", "undefined"].includes(typeof e) || k(e);
21197
+ var H = (e) => ["string", "number", "boolean", "symbol", "undefined"].includes(typeof e) || k(e);
21198
21198
  var _ = (e) => p.call(e) === "[object Object]";
21199
21199
  function B(e) {
21200
21200
  return typeof e == "undefined";
@@ -21220,22 +21220,22 @@ function s(e) {
21220
21220
  for (let n of e.split(",")) t11[n] = 1;
21221
21221
  return (n) => n in t11;
21222
21222
  }
21223
- var w = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";
21224
- s(w);
21225
- s(`${w},async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);
21223
+ var T = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly";
21224
+ s(T);
21225
+ s(`${T},async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);
21226
21226
  s("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap");
21227
21227
  s("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");
21228
- var Te = "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";
21229
- var we = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
21228
+ var we = "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";
21229
+ var Te = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
21230
21230
  var Se = "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";
21231
21231
  var ve = "beforeinput,click,dblclick,contextmenu,focusin,focusout,input,keydown,keyup,mousedown,mousemove,mouseout,mouseover,mouseup,pointerdown,pointermove,pointerout,pointerover,pointerup,touchend,touchmove,touchstart";
21232
21232
  var Ae = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
21233
21233
  var Ee = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
21234
- s(Te);
21235
- var Ne = s(we);
21234
+ s(we);
21235
+ var Me = s(Te);
21236
21236
  s(Se);
21237
21237
  s(Ae);
21238
- var ze = s(Ee);
21238
+ var Le = s(Ee);
21239
21239
  var Oe = s(ve);
21240
21240
 
21241
21241
  // src/constants.ts
@@ -22070,7 +22070,7 @@ function createTree(path, parentNode) {
22070
22070
  const tagName = getTagName(path.node);
22071
22071
  treeNode.tag = tagName;
22072
22072
  treeNode.type = determineNodeType(tagName);
22073
- treeNode.selfClosing = ze(tagName);
22073
+ treeNode.selfClosing = Le(tagName);
22074
22074
  if (parentNode) {
22075
22075
  const parentIsComponent = parentNode.type === 1 /* COMPONENT */;
22076
22076
  if (parentIsComponent) {
@@ -22280,7 +22280,7 @@ function determineNodeType(tagName) {
22280
22280
  if (isComponent) {
22281
22281
  return 1 /* COMPONENT */;
22282
22282
  }
22283
- if (Ne(tagName)) {
22283
+ if (Me(tagName)) {
22284
22284
  return 5 /* SVG */;
22285
22285
  }
22286
22286
  return 0 /* NORMAL */;
@@ -22550,7 +22550,7 @@ function findIndexPosition(targetIndex, indexMap) {
22550
22550
  if (u(indexMap)) {
22551
22551
  return indexMap.indexOf(targetIndex);
22552
22552
  }
22553
- if (z(indexMap)) {
22553
+ if (L(indexMap)) {
22554
22554
  const position = indexMap.get(targetIndex);
22555
22555
  return g(position) ? position : -1;
22556
22556
  }
@@ -23489,7 +23489,7 @@ var handleExpression = (node, result) => {
23489
23489
  }
23490
23490
  const firstChild = node.children[0];
23491
23491
  result.templates.push("");
23492
- if (R(firstChild)) {
23492
+ if (H(firstChild)) {
23493
23493
  const { state } = getContext();
23494
23494
  addImport(importMap.escapeHTML);
23495
23495
  result.dynamics.push({
@@ -23594,10 +23594,10 @@ function processAttributes(props) {
23594
23594
  if (prop.startsWith(EVENT_ATTR_NAME) || prop.startsWith(UPDATE_PREFIX)) {
23595
23595
  continue;
23596
23596
  }
23597
- if (R(value)) {
23597
+ if (H(value)) {
23598
23598
  if (value === true) {
23599
23599
  staticAttrs += ` ${prop}`;
23600
- } else if (M(value)) {
23600
+ } else if (N(value)) {
23601
23601
  staticAttrs += ` ${prop}="${value.toString()}"`;
23602
23602
  } else if (value !== false) {
23603
23603
  staticAttrs += ` ${prop}="${value}"`;