@assaabloy/amarr-wc-image-text 2.0.2 → 2.0.3
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/imageText.js +1 -1
- package/package.json +2 -2
package/imageText.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(n){function t(t){for(var r,o,u=t[0],c=t[1],f=t[2],l=0,m=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&m.push(i[o][0]),i[o]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(n[r]=c[r]);for(d&&d(t);m.length;)m.shift()();return a.push.apply(a,f||[]),e()}function e(){for(var n,t=0;t<a.length;t++){for(var e=a[t],r=!0,u=1;u<e.length;u++){var c=e[u];0!==i[c]&&(r=!1)}r&&(a.splice(t--,1),n=o(o.s=e[0]))}return n}var r={},i={53:0},a=[];function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=n,o.c=r,o.d=function(n,t,e){o.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},o.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.t=function(n,t){if(1&t&&(n=o(n)),8&t)return n;if(4&t&&"object"===typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var r in n)o.d(e,r,function(t){return n[t]}.bind(null,r));return e},o.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(t,"a",t),t},o.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},o.p="/";var u=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=u.push.bind(u);u.push=t,u=u.slice();for(var f=0;f<u.length;f++)t(u[f]);var d=c;a.push([501,0]),e()}({0:function(n,t){n.exports=React},1:function(n,t,e){"use strict";e.d(t,"g",(function(){return i})),e.d(t,"
|
|
1
|
+
!function(n){function t(t){for(var r,o,u=t[0],c=t[1],f=t[2],l=0,m=[];l<u.length;l++)o=u[l],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&m.push(i[o][0]),i[o]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(n[r]=c[r]);for(d&&d(t);m.length;)m.shift()();return a.push.apply(a,f||[]),e()}function e(){for(var n,t=0;t<a.length;t++){for(var e=a[t],r=!0,u=1;u<e.length;u++){var c=e[u];0!==i[c]&&(r=!1)}r&&(a.splice(t--,1),n=o(o.s=e[0]))}return n}var r={},i={53:0},a=[];function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}o.m=n,o.c=r,o.d=function(n,t,e){o.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},o.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},o.t=function(n,t){if(1&t&&(n=o(n)),8&t)return n;if(4&t&&"object"===typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var r in n)o.d(e,r,function(t){return n[t]}.bind(null,r));return e},o.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(t,"a",t),t},o.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},o.p="/";var u=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=u.push.bind(u);u.push=t,u=u.slice();for(var f=0;f<u.length;f++)t(u[f]);var d=c;a.push([501,0]),e()}({0:function(n,t){n.exports=React},1:function(n,t,e){"use strict";e.d(t,"g",(function(){return i})),e.d(t,"O",(function(){return a})),e.d(t,"i",(function(){return o})),e.d(t,"B",(function(){return u})),e.d(t,"D",(function(){return c})),e.d(t,"t",(function(){return f})),e.d(t,"z",(function(){return d})),e.d(t,"n",(function(){return l})),e.d(t,"p",(function(){return m})),e.d(t,"E",(function(){return s})),e.d(t,"K",(function(){return p})),e.d(t,"s",(function(){return g})),e.d(t,"h",(function(){return x})),e.d(t,"r",(function(){return w})),e.d(t,"w",(function(){return b})),e.d(t,"u",(function(){return h})),e.d(t,"A",(function(){return v})),e.d(t,"q",(function(){return y})),e.d(t,"o",(function(){return O})),e.d(t,"C",(function(){return j})),e.d(t,"L",(function(){return A})),e.d(t,"l",(function(){return N})),e.d(t,"j",(function(){return T})),e.d(t,"m",(function(){return P})),e.d(t,"k",(function(){return S})),e.d(t,"x",(function(){return M})),e.d(t,"G",(function(){return $})),e.d(t,"v",(function(){return z})),e.d(t,"M",(function(){return C})),e.d(t,"N",(function(){return I})),e.d(t,"b",(function(){return Z})),e.d(t,"J",(function(){return k})),e.d(t,"y",(function(){return D})),e.d(t,"a",(function(){return F})),e.d(t,"d",(function(){return J})),e.d(t,"f",(function(){return L})),e.d(t,"e",(function(){return R})),e.d(t,"c",(function(){return H})),e.d(t,"P",(function(){return U})),e.d(t,"F",(function(){return q})),e.d(t,"H",(function(){return B})),e.d(t,"I",(function(){return G}));var r=e(3),i=function(n){return JSON.parse(decodeURIComponent(escape(atob(n))))},a=function(n){return btoa(unescape(encodeURIComponent(n)))},o=function(n){return n.toUpperCase()},u=function(n){return n.replaceAll(" ","-").toLowerCase()},c=new r.a(!1),f=new r.a(!1),d=new r.a(!1),l=new r.a(!1),m=new r.a(""),s=new r.a(!1),p=new r.a(!1),g=new r.a(!1),x=new r.a(!1),w=new r.a(""),b=new r.a(!0),h=new r.a(!0),v=new r.a(!0),y=new r.a(!0),O=new r.a(!0),_=new r.a(!1),E=0,j=new r.a(!1),A=new r.a(""),N=new r.a(""),T=new r.a(""),P=new r.a(""),S=new r.a(""),M=new r.a(""),$=new r.a(""),z=new r.a(!1),C=new r.a(!1),I=new r.a(!1),Z=function(){setTimeout((function(){E++,_.next(!0)}),0)},k=function(){setTimeout((function(){E>0&&E--,0==E&&_.next(!1)}),0)},D=function(){return _.asObservable()},F=function(n){return!!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(n)},J=function(n){return n.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},L=function(n){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(n)},R=function(n){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(n)},H=function(n){return/^[0-9]*$/.test(n)},U=function(n){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(n)},q=function(n){if(n&&""!==n&&-1===n.indexOf("(")&&-1===n.indexOf(") ")&&-1===n.indexOf("-")){return"("+n.substring(0,3)+") "+n.substring(3,6)+"-"+n.substring(6,n.length)}return n},B=function(n){return n&&(n=n.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==n&&"0"!==n||(n=n.toFixed(2)),n},G=function(n,t){return n=n?Number(n):0,(0===(t=t?Number(t):0)||"0"===t?0:(n-t)/t*100).toFixed(2)}},114:function(n,t,e){"use strict";var r=e(0),i=e.n(r),a=e(4).default.section.withConfig({displayName:"styles__Content",componentId:"sc-6xcgrd-0"})([".image-text-container{display:flex;align-items:center;padding-bottom:17px;.text-container{max-width:73.5%;}p{margin-bottom:0px;}}.margin{margin-right:30px;}@media(min-width:1024px) and (max-width:1440px){.img-container{max-width:14%;}}@media screen and (max-width:767px){.margin{padding-bottom:10px;margin-right:0px;margin-left:0px;}.image-text-container{display:block;.text-container{max-width:100%;}}.image-text-container-mobile-inline{display:flex;.text-container{width:80%;}.margin{margin-right:16px;padding-bottom:0px;}}}"]),o=e(1),u=function(n){var t=n.imageTextData,e=Object(o.g)(t);return i.a.createElement(a,null,"right"===e.textOrientation&&i.a.createElement("div",{className:"image-text-container ".concat("inline"===e.mobileAlignment&&"image-text-container-mobile-inline","\n ")},i.a.createElement("div",{className:"img-container margin"},i.a.createElement("img",{src:e.image.url,alt:e.image.altText})),i.a.createElement("div",{className:"text-container"},i.a.createElement("div",{dangerouslySetInnerHTML:{__html:e.body.text}}))),"left"===e.textOrientation&&i.a.createElement("div",{className:"image-text-container ".concat("inline"===e.mobileAlignment&&"image-text-container-mobile-inline","\n ")},i.a.createElement("div",{className:"text-container margin"},i.a.createElement("div",{dangerouslySetInnerHTML:{__html:e.body.text}})),i.a.createElement("div",null,i.a.createElement("img",{src:e.image.url,alt:e.image.altText}))))};u.defaultProps={theme:"",imageTextData:""};t.a=u},18:function(n,t){n.exports=ReactDOM},412:function(n,t,e){"use strict";e.r(t);var r=e(13),i=e(114);t.default=r.a.create({component:i.a,configuration:{tagname:"amarr-imagetext",useShadow:!1},plugins:[]})}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-image-text",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Web component - Image Text",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "imageText.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "492c0fcdf690f0e94235150f0ab548d9553868a7"
|
|
15
15
|
}
|