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.
@@ -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",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))};
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,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
+ {"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),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};
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,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"}
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"}
@@ -4,4 +4,5 @@ export default function H5Image(props: {
4
4
  width?: string | number;
5
5
  height?: string | number;
6
6
  type?: string;
7
+ [key: string]: any;
7
8
  }): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-materials",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "A modern React component library",
5
5
  "type": "module",
6
6
  "main": "dist/esm/index.js",