web-materials 0.0.15 → 0.0.17
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/cjs/components/common/H5Image/index.js +1 -1
- package/dist/cjs/components/common/H5Image/index.js.map +1 -1
- package/dist/esm/components/common/H5Image/index.js +1 -1
- package/dist/esm/components/common/H5Image/index.js.map +1 -1
- package/dist/esm/types/components/common/H5Image/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("react/jsx-runtime"),i=require("./index.module.scss.js"),r=["src","alt","width","height","origin"];exports.default=function(a){var o=a.src,s=a.alt,c=a.width,l=void 0===c?"100%":c,u=a.height,n=void 0===u?"100%":u,d=a.origin,g=void 0!==d&&d,m=e.objectWithoutProperties(a,r),v=o;if(!v||"string"!=typeof v)return null;var f=n,h="?format=max_480xX_v1";if(g&&(f="auto",h="?format=originalOFGHLERTH"),v.includes("/v1/images/")){var p=v.split("/v1/images/")[1];p.includes(".")||p.includes("format=")?v.includes("format=")||(v="".concat(v).concat(h)):v="".concat(v,".webp").concat(h)}return t.jsx("img",e.objectSpread2({className:i.default.img,src:v,alt:s,width:l,height:f},m))};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/common/H5Image/index.tsx"],"sourcesContent":[null],"names":["props","src","alt","_props$width","width","_props$height","height","restProps","_objectWithoutProperties","_excluded","showSrc","includes","identify","split","concat","_jsx","jsx","_objectSpread","className","s","default","img"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/common/H5Image/index.tsx"],"sourcesContent":[null],"names":["props","src","alt","_props$width","width","_props$height","height","_props$origin","origin","restProps","_objectWithoutProperties","_excluded","showSrc","showHeight","suffix","includes","identify","split","concat","_jsx","jsx","_objectSpread","className","s","default","img"],"mappings":"iQAEwB,SAAQA,GAO9B,IAAQC,EAA4ED,EAA5EC,IAAKC,EAAuEF,EAAvEE,IAAGC,EAAoEH,EAAlEI,MAAAA,OAAQ,IAAHD,EAAG,OAAMA,EAAAE,EAAoDL,EAAlDM,OAAAA,OAAS,IAAHD,EAAG,OAAMA,EAAAE,EAAmCP,EAAjCQ,OAAAA,OAAS,IAAHD,GAAQA,EAAKE,EAASC,EAAAA,wBAAKV,EAAKW,GACrFC,EAAUX,EACd,IAAKW,GAA8B,iBAAZA,EACrB,OAAO,KAET,IAAIC,EAAaP,EACbQ,EAAS,uBAKb,GAJIN,IACFK,EAAa,OACbC,EAAS,6BAEPF,EAAQG,SAAS,eAAgB,CACnC,IAAMC,EAAWJ,EAAQK,MAAM,eAAe,GACzCD,EAASD,SAAS,MAASC,EAASD,SAAS,WAEpCH,EAAQG,SAAS,aAC3BH,EAAO,GAAAM,OAAMN,GAAOM,OAAGJ,IAFvBF,EAAO,GAAAM,OAAMN,WAAOM,OAAQJ,EAIlC,CACA,OAAOK,EAAAC,IAAA,MAAAC,gBAAA,CAAKC,UAAWC,EAACC,QAACC,IAAMxB,IAAKW,EAASV,IAAKA,EAAKE,MAAOA,EAAOE,OAAQO,GAAgBJ,GAC/F"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{objectWithoutProperties as
|
|
1
|
+
import{objectWithoutProperties as i,objectSpread2 as t}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{jsx as r}from"react/jsx-runtime";import a from"./index.module.scss.js";var o=["src","alt","width","height","origin"];function e(e){var s=e.src,c=e.alt,l=e.width,n=void 0===l?"100%":l,m=e.height,u=void 0===m?"100%":m,d=e.origin,f=void 0!==d&&d,g=i(e,o),p=s;if(!p||"string"!=typeof p)return null;var v=u,h="?format=max_480xX_v1";if(f&&(v="auto",h="?format=originalOFGHLERTH"),p.includes("/v1/images/")){var j=p.split("/v1/images/")[1];j.includes(".")||j.includes("format=")?p.includes("format=")||(p="".concat(p).concat(h)):p="".concat(p,".webp").concat(h)}return r("img",t({className:a.img,src:p,alt:c,width:n,height:v},g))}export{e as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/components/common/H5Image/index.tsx"],"sourcesContent":[null],"names":["H5Image","props","src","alt","_props$width","width","_props$height","height","restProps","_objectWithoutProperties","_excluded","showSrc","includes","identify","split","concat","_jsx","_objectSpread","className","s","img"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/components/common/H5Image/index.tsx"],"sourcesContent":[null],"names":["H5Image","props","src","alt","_props$width","width","_props$height","height","_props$origin","origin","restProps","_objectWithoutProperties","_excluded","showSrc","showHeight","suffix","includes","identify","split","concat","_jsx","_objectSpread","className","s","img"],"mappings":"wOAEwB,SAAAA,EAAQC,GAO9B,IAAQC,EAA4ED,EAA5EC,IAAKC,EAAuEF,EAAvEE,IAAGC,EAAoEH,EAAlEI,MAAAA,OAAQ,IAAHD,EAAG,OAAMA,EAAAE,EAAoDL,EAAlDM,OAAAA,OAAS,IAAHD,EAAG,OAAMA,EAAAE,EAAmCP,EAAjCQ,OAAAA,OAAS,IAAHD,GAAQA,EAAKE,EAASC,EAAKV,EAAKW,GACrFC,EAAUX,EACd,IAAKW,GAA8B,iBAAZA,EACrB,OAAO,KAET,IAAIC,EAAaP,EACbQ,EAAS,uBAKb,GAJIN,IACFK,EAAa,OACbC,EAAS,6BAEPF,EAAQG,SAAS,eAAgB,CACnC,IAAMC,EAAWJ,EAAQK,MAAM,eAAe,GACzCD,EAASD,SAAS,MAASC,EAASD,SAAS,WAEpCH,EAAQG,SAAS,aAC3BH,EAAO,GAAAM,OAAMN,GAAOM,OAAGJ,IAFvBF,EAAO,GAAAM,OAAMN,WAAOM,OAAQJ,EAIlC,CACA,OAAOK,EAAA,MAAAC,EAAA,CAAKC,UAAWC,EAAEC,IAAMtB,IAAKW,EAASV,IAAKA,EAAKE,MAAOA,EAAOE,OAAQO,GAAgBJ,GAC/F"}
|