@ikas/loyalty-widget-renderer 1.0.0-alpha.42 → 1.0.0-alpha.44

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.
@@ -6,7 +6,7 @@ export declare class LoyaltyWidgetImage {
6
6
  merchantId: string | null;
7
7
  imageId: string | null;
8
8
  type: ImageTypeEnum;
9
- maxHeight: number | null;
9
+ maxHeight: number;
10
10
  constructor(data: Partial<LoyaltyWidgetImage>);
11
11
  get src(): string | undefined;
12
12
  }
@@ -1 +1 @@
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||null,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
+ import{makeObservable as t,observable as i,computed as e}from"mobx";import{ImageTypeEnum as n}from"../loyalty-widget/types/index.js";var a=1080,c=function(){function a(a){var c;this.imageId=a.imageId||null,this.link=a.link||null,this.cdnURL=a.cdnURL||null,this.merchantId=a.merchantId||null,this.type=a.type||n.SHOW,this.maxHeight=null!==(c=a.maxHeight)&&void 0!==c?c:50,t(this,{imageId:i,link:i,cdnURL:i,merchantId:i,type:i,maxHeight:i,src:e})}return Object.defineProperty(a.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}),a}();export{a as IMAGE_SIZE,c as LoyaltyWidgetImage};
@@ -1,4 +1,4 @@
1
- import { LoyaltyWidgetImage } from "models/image";
1
+ import { LoyaltyWidgetImage } from "../../image";
2
2
  import { LoyaltyWidgetHeaderBackground } from "./header-background";
3
3
  export declare class LoyaltyWidgetHeader {
4
4
  logo: LoyaltyWidgetImage;
@@ -1 +1 @@
1
- import{observer as r}from"mobx-react";import t from"react";import{Container as e,Logo as o}from"./style.js";var m=r(function(r){return t.createElement(e,null,t.createElement(o,{src:r.logo.src,alt:"Logo"}))});export{m as default};
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, {}, never>;
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,p=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"]))),s=t.img(i||(i=n(["\n max-width: 150px;\n max-height: 30px;\n object-fit: contain;\n"],["\n max-width: 150px;\n max-height: 30px;\n object-fit: contain;\n"])));export{p as Container,s as Logo};
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};