@ikas/loyalty-widget-renderer 1.0.0-alpha.41 → 1.0.0-alpha.43
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/build/models/image/index.d.ts +1 -0
- package/build/models/image/index.js +1 -1
- package/build/renderer/screens/main-screen/header/logo-section/index.js +1 -1
- package/build/renderer/screens/main-screen/header/logo-section/style.d.ts +3 -1
- package/build/renderer/screens/main-screen/header/logo-section/style.js +1 -1
- package/build/storefront-widget-script-injector.iife.js +2 -2
- package/build/storefront-widget-script-injector.iife.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as t,observable as e,computed as
|
|
1
|
+
import{makeObservable as t,observable as e,computed as i}from"mobx";import{ImageTypeEnum as n}from"../loyalty-widget/types/index.js";var c=1080,a=function(){function c(c){this.imageId=c.imageId||null,this.link=c.link||null,this.cdnURL=c.cdnURL||null,this.merchantId=c.merchantId||null,this.type=c.type||n.SHOW,this.maxHeight=c.maxHeight||50,t(this,{imageId:e,link:e,cdnURL:e,merchantId:e,type:e,maxHeight:e,src:i})}return Object.defineProperty(c.prototype,"src",{get:function(){if(this.imageId)return"".concat(this.cdnURL,"images/").concat(this.merchantId,"/").concat(this.imageId,"/image_").concat(1080,".webp")},enumerable:!1,configurable:!0}),c}();export{c as IMAGE_SIZE,a as LoyaltyWidgetImage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{observer as
|
|
1
|
+
import{observer as t}from"mobx-react";import e from"react";import{Container as r,Logo as o}from"./style.js";var m=t(function(t){return e.createElement(r,null,e.createElement(o,{src:t.logo.src,alt:"Logo",$maxHeight:t.logo.maxHeight}))});export{m as default};
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const Logo: import("styled-components").StyledComponent<"img", any, {
|
|
2
|
+
export declare const Logo: import("styled-components").StyledComponent<"img", any, {
|
|
3
|
+
$maxHeight: number;
|
|
4
|
+
}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from'./../../../../../ext/tslib/tslib.es6.mjs.js';import t from"styled-components";var e,i,
|
|
1
|
+
import{__makeTemplateObject as n}from'./../../../../../ext/tslib/tslib.es6.mjs.js';import t from"styled-components";var e,i,o=t.div(e||(e=n(["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n align-items: center;\n width: 100%;\n height: 100%;\n"],["\n display: flex;\n justify-content: space-between;\n gap: 12px;\n align-items: center;\n width: 100%;\n height: 100%;\n"]))),h=t.img(i||(i=n(["\n height: ","px;\n max-height: ","px;\n object-fit: contain;\n"],["\n height: ","px;\n max-height: ","px;\n object-fit: contain;\n"])),function(n){return n.$maxHeight},function(n){return n.$maxHeight});export{o as Container,h as Logo};
|