web-materials 0.0.18 → 0.0.20
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 +4 -4
- 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"),r=require("./index.module.scss.js"),i=["src","alt","width","height","type"];exports.default=function(a){var s=a.src,o=a.alt,c=a.width,l=void 0===c?"100%":c,u=a.height,n=void 0===u?"100%":u,d=a.type,m=e.objectWithoutProperties(a,i),p=s;if(!p||"string"!=typeof p)return null;var f=n,g="?format=max_480xX_v1";if("origin"===d&&(f="auto",g="?format=originalOFGHLERTH"),p.includes("/v1/images/")){var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_rollupPluginBabelHelpers.js"),t=require("react/jsx-runtime"),r=require("./index.module.scss.js"),i=["src","alt","width","height","type"];exports.default=function(a){var s=a.src,o=a.alt,c=a.width,l=void 0===c?"100%":c,u=a.height,n=void 0===u?"100%":u,d=a.type,m=e.objectWithoutProperties(a,i),p=s;if(!p||"string"!=typeof p)return null;var f=n,g="?format=max_480xX_v1",v=".webp";if("origin"===d&&(f="auto",g="?format=originalOFGHLERTH",v=""),p.includes("/v1/images/")){var h=p.split("/v1/images/")[1];h.includes(".")||h.includes("format=")?p.includes("format=")||(p="".concat(p).concat(g)):p="".concat(p).concat(v).concat(g)}return t.jsx("img",e.objectSpread2({className:r.default.img,src:p,alt:o,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","type","restProps","_objectWithoutProperties","_excluded","showSrc","showHeight","
|
|
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","type","restProps","_objectWithoutProperties","_excluded","showSrc","showHeight","formatSuffix","webpSuffix","includes","identify","split","concat","_jsx","jsx","_objectSpread","className","s","default","img"],"mappings":"+PAEwB,SAAQA,GAO9B,IAAQC,EAAkED,EAAlEC,IAAKC,EAA6DF,EAA7DE,IAAGC,EAA0DH,EAAxDI,MAAAA,OAAQ,IAAHD,EAAG,OAAMA,EAAAE,EAA0CL,EAAxCM,OAAAA,OAAS,IAAHD,EAAG,OAAMA,EAAEE,EAAuBP,EAAvBO,KAASC,EAASC,EAAAA,wBAAKT,EAAKU,GAC3EC,EAAUV,EACd,IAAKU,GAA8B,iBAAZA,EACrB,OAAO,KAET,IAAIC,EAAaN,EACbO,EAAe,uBACfC,EAAa,QAQjB,GANa,WAATP,IACFK,EAAa,OACbC,EAAe,4BACfC,EAAa,IAGXH,EAAQI,SAAS,eAAgB,CACnC,IAAMC,EAAWL,EAAQM,MAAM,eAAe,GACzCD,EAASD,SAAS,MAASC,EAASD,SAAS,WAEpCJ,EAAQI,SAAS,aAC3BJ,EAAO,GAAAO,OAAMP,GAAOO,OAAGL,IAFvBF,EAAOO,GAAAA,OAAMP,GAAOO,OAAGJ,GAAUI,OAAGL,EAI1C,CACA,OAAOM,EAAAC,IAAA,MAAAC,gBAAA,CAAKC,UAAWC,EAACC,QAACC,IAAMxB,IAAKU,EAAST,IAAKA,EAAKE,MAAOA,EAAOE,OAAQM,GAAgBJ,GAC/F"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{objectWithoutProperties as t,objectSpread2 as i}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{jsx as r}from"react/jsx-runtime";import a from"./index.module.scss.js";var e=["src","alt","width","height","type"];function o(o){var s=o.src,c=o.alt,l=o.width,n=void 0===l?"100%":l,m=o.height,u=void 0===m?"100%":m,d=o.type,p=t(o,e),f=s;if(!f||"string"!=typeof f)return null;var g=u,h="?format=max_480xX_v1";if("origin"===d&&(g="auto",h="?format=originalOFGHLERTH"),f.includes("/v1/images/")){var
|
|
1
|
+
import{objectWithoutProperties as t,objectSpread2 as i}from"../../../_virtual/_rollupPluginBabelHelpers.js";import{jsx as r}from"react/jsx-runtime";import a from"./index.module.scss.js";var e=["src","alt","width","height","type"];function o(o){var s=o.src,c=o.alt,l=o.width,n=void 0===l?"100%":l,m=o.height,u=void 0===m?"100%":m,d=o.type,p=t(o,e),f=s;if(!f||"string"!=typeof f)return null;var g=u,h="?format=max_480xX_v1",v=".webp";if("origin"===d&&(g="auto",h="?format=originalOFGHLERTH",v=""),f.includes("/v1/images/")){var j=f.split("/v1/images/")[1];j.includes(".")||j.includes("format=")?f.includes("format=")||(f="".concat(f).concat(h)):f="".concat(f).concat(v).concat(h)}return r("img",i({className:a.img,src:f,alt:c,width:n,height:g},p))}export{o 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","type","restProps","_objectWithoutProperties","_excluded","showSrc","showHeight","
|
|
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","type","restProps","_objectWithoutProperties","_excluded","showSrc","showHeight","formatSuffix","webpSuffix","includes","identify","split","concat","_jsx","_objectSpread","className","s","img"],"mappings":"sOAEwB,SAAAA,EAAQC,GAO9B,IAAQC,EAAkED,EAAlEC,IAAKC,EAA6DF,EAA7DE,IAAGC,EAA0DH,EAAxDI,MAAAA,OAAQ,IAAHD,EAAG,OAAMA,EAAAE,EAA0CL,EAAxCM,OAAAA,OAAS,IAAHD,EAAG,OAAMA,EAAEE,EAAuBP,EAAvBO,KAASC,EAASC,EAAKT,EAAKU,GAC3EC,EAAUV,EACd,IAAKU,GAA8B,iBAAZA,EACrB,OAAO,KAET,IAAIC,EAAaN,EACbO,EAAe,uBACfC,EAAa,QAQjB,GANa,WAATP,IACFK,EAAa,OACbC,EAAe,4BACfC,EAAa,IAGXH,EAAQI,SAAS,eAAgB,CACnC,IAAMC,EAAWL,EAAQM,MAAM,eAAe,GACzCD,EAASD,SAAS,MAASC,EAASD,SAAS,WAEpCJ,EAAQI,SAAS,aAC3BJ,EAAO,GAAAO,OAAMP,GAAOO,OAAGL,IAFvBF,EAAOO,GAAAA,OAAMP,GAAOO,OAAGJ,GAAUI,OAAGL,EAI1C,CACA,OAAOM,EAAA,MAAAC,EAAA,CAAKC,UAAWC,EAAEC,IAAMtB,IAAKU,EAAST,IAAKA,EAAKE,MAAOA,EAAOE,OAAQM,GAAgBJ,GAC/F"}
|