web-materials 0.1.0 → 0.1.2
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","type"];exports.default=function(a){var s=a.src,c=a.alt,l=a.width,o=void 0===l?"100%":l,u=a.height,n=void 0===u?"100%":u,d=a.type,v=e.objectWithoutProperties(a,r),m=s;if(!m||"string"!=typeof m)return null;var p=n,g="?format=max_480xX_v1",f=".webp";if("origin"===d&&(p="auto",g="?format=originalOFGHLERTH",f=""),m.includes("/v1/images/")||m.includes("/v1/raw/")){var h="";(h=m.includes("/v1/images/")?m.split("/v1/images/")[1]:m.split("/v1/raw/")[1]).includes(".")||h.includes("format=")?m.includes("format=")||(m="".concat(m).concat(g)):m="".concat(m).concat(f).concat(g)}return t.jsx("img",e.objectSpread2({className:i.default.img,src:m,alt:c,width:o,height:p},v))};
|
|
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","formatSuffix","webpSuffix","includes","identify","split","concat","_jsx","jsx","_objectSpread","className","s","default","img"],"mappings":"+PAEwB,SAAQA,
|
|
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,GAQ9B,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,gBAAkBJ,EAAQI,SAAS,YAAa,CACnE,IAAIC,EAAW,IAEZA,EADCL,EAAQI,SAAS,eACPJ,EAAQM,MAAM,eAAe,GAE5BN,EAAQM,MAAM,YAAY,IAE3BF,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),
|
|
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),v=s;if(!v||"string"!=typeof v)return null;var f=u,g="?format=max_480xX_v1",h=".webp";if("origin"===d&&(f="auto",g="?format=originalOFGHLERTH",h=""),v.includes("/v1/images/")||v.includes("/v1/raw/")){var w="";(w=v.includes("/v1/images/")?v.split("/v1/images/")[1]:v.split("/v1/raw/")[1]).includes(".")||w.includes("format=")?v.includes("format=")||(v="".concat(v).concat(g)):v="".concat(v).concat(h).concat(g)}return r("img",i({className:a.img,src:v,alt:c,width:n,height:f},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","formatSuffix","webpSuffix","includes","identify","split","concat","_jsx","_objectSpread","className","s","img"],"mappings":"sOAEwB,SAAAA,EAAQC,
|
|
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,GAQ9B,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,gBAAkBJ,EAAQI,SAAS,YAAa,CACnE,IAAIC,EAAW,IAEZA,EADCL,EAAQI,SAAS,eACPJ,EAAQM,MAAM,eAAe,GAE5BN,EAAQM,MAAM,YAAY,IAE3BF,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"}
|