@ikas/popup-renderer 1.0.31 → 1.0.32
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/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/base/index.d.ts +3 -2
- package/build/popup-renderer/models/modal/step/elements/base/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/button/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/form/form-settings/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/product/detail-settings/index.js +1 -1
- package/build/popup-renderer/models/modal/step/elements/text/index.js +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{default as PopupRenderer}from"./popup-renderer/components/index.js";import*as e from"./popup-renderer/helpers/index.js";export{e as PopupHelpers};export{MOBILE_SCREEN_SIZE,Popup,PreviewType}from"./popup-renderer/models/index.js";export{DeviceTypeEnum,PopupSettings}from"./popup-renderer/models/settings/index.js";export{VisibilityTime}from"./popup-renderer/models/settings/visibility-time/index.js";export{VisibilityCondition,VisibilityConditionTypeEnum}from"./popup-renderer/models/settings/visibility-condition/index.js";export{Modal,PopupPositonEnum,PopupTypeEnum}from"./popup-renderer/models/modal/index.js";export{WindowSettings}from"./popup-renderer/models/modal/window-settings/index.js";export{Teaser,VisibilityConditionEnum}from"./popup-renderer/models/modal/teaser/index.js";export{PopupStep}from"./popup-renderer/models/modal/step/index.js";export{BaseElement,ComponentHorizontalAlignmentEnum,ComponentVerticalAlignmentEnum,PopupElementTypeEnum}from"./popup-renderer/models/modal/step/elements/base/index.js";export{ButtonElement}from"./popup-renderer/models/modal/step/elements/button/index.js";export{DividerElement}from"./popup-renderer/models/modal/step/elements/divider/index.js";export{FormColumn,FormElement,FormItemTypeEnum,FormRow,InputLabel,RequiredInput}from"./popup-renderer/models/modal/step/elements/form/index.js";export{CheckboxFormItem,ContactPermission,ContactPermissionTypeEnum}from"./popup-renderer/models/modal/step/elements/form/checkbox/index.js";export{CustomerAttributeFormItem,CustomerAttributeTypeEnum}from"./popup-renderer/models/modal/step/elements/form/customer-attribute/index.js";export{CustomerBirthdayFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-birthday/index.js";export{CustomerEmailFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-email/index.js";export{CustomerGenderFormItem,CustomerGenderTypeEnum,GenderType}from"./popup-renderer/models/modal/step/elements/form/customer-gender/index.js";export{CustomerNameFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-name/index.js";export{CustomerPhoneFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-phone/index.js";export{CustomerSurnameFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-surname/index.js";export{FormInputSettings,FormSettings}from"./popup-renderer/models/modal/step/elements/form/form-settings/index.js";export{IMAGE_SIZE,ImageElement,ImagePositionEnum}from"./popup-renderer/models/modal/step/elements/image/index.js";export{ImageColumnElement,ImageColumnPositionEnum}from"./popup-renderer/models/modal/step/elements/image-column/index.js";export{MAX_PRODUCT_COUNT,PopupProduct,PopupVariantPair,ProductListElement,ProductListLayoutEnum,ProductListSortTypeEnum,ProductListTypeEnum}from"./popup-renderer/models/modal/step/elements/product/index.js";export{ProductActionTypeEnum,ProductButtonSettings,ProductDetailSettings,ProductDiscountRatioSettings,ProductImageSettings}from"./popup-renderer/models/modal/step/elements/product/detail-settings/index.js";export{SocialMediaElement,SocialMediaLink,SocialMediaTypeEnum}from"./popup-renderer/models/modal/step/elements/social/index.js";export{SpaceElement}from"./popup-renderer/models/modal/step/elements/space/index.js";export{TextElement}from"./popup-renderer/models/modal/step/elements/text/index.js";export{BackgroundSettings,Border,ButtonBorderStyle,Overlay,Shadow}from"./popup-renderer/models/modal/background-settings/index.js";export{CloseButtonDisplayTypeEnum,CloseButtonPositionTypeEnum,CloseIconSettings,CloseIconTypeEnum,CloseSettings}from"./popup-renderer/models/modal/close-settings/index.js";
|
|
1
|
+
export{default as PopupRenderer}from"./popup-renderer/components/index.js";import*as e from"./popup-renderer/helpers/index.js";export{e as PopupHelpers};export{MOBILE_SCREEN_SIZE,Popup,PreviewType}from"./popup-renderer/models/index.js";export{DeviceTypeEnum,PopupSettings}from"./popup-renderer/models/settings/index.js";export{VisibilityTime}from"./popup-renderer/models/settings/visibility-time/index.js";export{VisibilityCondition,VisibilityConditionTypeEnum}from"./popup-renderer/models/settings/visibility-condition/index.js";export{Modal,PopupPositonEnum,PopupTypeEnum}from"./popup-renderer/models/modal/index.js";export{WindowSettings}from"./popup-renderer/models/modal/window-settings/index.js";export{Teaser,VisibilityConditionEnum}from"./popup-renderer/models/modal/teaser/index.js";export{PopupStep}from"./popup-renderer/models/modal/step/index.js";export{BaseElement,ComponentHorizontalAlignmentEnum,ComponentVerticalAlignmentEnum,IkasPopupRendererFontFamily,PopupElementTypeEnum}from"./popup-renderer/models/modal/step/elements/base/index.js";export{ButtonElement}from"./popup-renderer/models/modal/step/elements/button/index.js";export{DividerElement}from"./popup-renderer/models/modal/step/elements/divider/index.js";export{FormColumn,FormElement,FormItemTypeEnum,FormRow,InputLabel,RequiredInput}from"./popup-renderer/models/modal/step/elements/form/index.js";export{CheckboxFormItem,ContactPermission,ContactPermissionTypeEnum}from"./popup-renderer/models/modal/step/elements/form/checkbox/index.js";export{CustomerAttributeFormItem,CustomerAttributeTypeEnum}from"./popup-renderer/models/modal/step/elements/form/customer-attribute/index.js";export{CustomerBirthdayFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-birthday/index.js";export{CustomerEmailFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-email/index.js";export{CustomerGenderFormItem,CustomerGenderTypeEnum,GenderType}from"./popup-renderer/models/modal/step/elements/form/customer-gender/index.js";export{CustomerNameFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-name/index.js";export{CustomerPhoneFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-phone/index.js";export{CustomerSurnameFormItem}from"./popup-renderer/models/modal/step/elements/form/customer-surname/index.js";export{FormInputSettings,FormSettings}from"./popup-renderer/models/modal/step/elements/form/form-settings/index.js";export{IMAGE_SIZE,ImageElement,ImagePositionEnum}from"./popup-renderer/models/modal/step/elements/image/index.js";export{ImageColumnElement,ImageColumnPositionEnum}from"./popup-renderer/models/modal/step/elements/image-column/index.js";export{MAX_PRODUCT_COUNT,PopupProduct,PopupVariantPair,ProductListElement,ProductListLayoutEnum,ProductListSortTypeEnum,ProductListTypeEnum}from"./popup-renderer/models/modal/step/elements/product/index.js";export{ProductActionTypeEnum,ProductButtonSettings,ProductDetailSettings,ProductDiscountRatioSettings,ProductImageSettings}from"./popup-renderer/models/modal/step/elements/product/detail-settings/index.js";export{SocialMediaElement,SocialMediaLink,SocialMediaTypeEnum}from"./popup-renderer/models/modal/step/elements/social/index.js";export{SpaceElement}from"./popup-renderer/models/modal/step/elements/space/index.js";export{TextElement}from"./popup-renderer/models/modal/step/elements/text/index.js";export{BackgroundSettings,Border,ButtonBorderStyle,Overlay,Shadow}from"./popup-renderer/models/modal/background-settings/index.js";export{CloseButtonDisplayTypeEnum,CloseButtonPositionTypeEnum,CloseIconSettings,CloseIconTypeEnum,CloseSettings}from"./popup-renderer/models/modal/close-settings/index.js";
|
|
@@ -19,10 +19,11 @@ export declare enum PopupElementTypeEnum {
|
|
|
19
19
|
DIVIDER = "DIVIDER",
|
|
20
20
|
SPACE = "SPACE"
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export declare class IkasPopupRendererFontFamily {
|
|
23
23
|
name: string;
|
|
24
24
|
variants: string[] | null;
|
|
25
|
-
|
|
25
|
+
constructor(data?: Partial<IkasPopupRendererFontFamily>);
|
|
26
|
+
}
|
|
26
27
|
export declare class BaseElement {
|
|
27
28
|
id: string;
|
|
28
29
|
order: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as i,observable as t}from"mobx";var n,o,
|
|
1
|
+
import{makeObservable as i,observable as t}from"mobx";var n,o,a;!function(i){i.LEFT="LEFT",i.CENTER="CENTER",i.RIGHT="RIGHT"}(n||(n={})),function(i){i.TOP="TOP",i.MIDDLE="MIDDLE",i.BOTTOM="BOTTOM"}(o||(o={})),function(i){i.TEXT="TEXT",i.FORM="FORM",i.IMAGE="IMAGE",i.IMAGE_COLUMN="IMAGE_COLUMN",i.PRODUCT_LIST="PRODUCT_LIST",i.BUTTON="BUTTON",i.SOCIAL_MEDIA="SOCIAL_MEDIA",i.DIVIDER="DIVIDER",i.SPACE="SPACE"}(a||(a={}));var r=function(n){void 0===n&&(n={}),this.name=n.name||"Arial",this.variants=n.variants||null,i(this,{name:t,variants:t})},d=function(a){var r,d,l,e,T;void 0===a&&(a={}),this.id=a.id||Date.now().toString(),this.order=a.order||0,this.width=null!==(r=a.width)&&void 0!==r?r:"100",this.verticalPadding=null!==(d=a.verticalPadding)&&void 0!==d?d:24,this.horizontalPadding=null!==(l=a.horizontalPadding)&&void 0!==l?l:24,this.outerVerticalPadding=null!==(e=a.outerVerticalPadding)&&void 0!==e?e:0,this.outerHorizontalPadding=null!==(T=a.outerHorizontalPadding)&&void 0!==T?T:0,this.horizontalAlignment=a.horizontalAlignment||n.CENTER,this.verticalAlignment=a.verticalAlignment||o.TOP,i(this,{id:t,order:t,width:t,verticalPadding:t,horizontalPadding:t,outerVerticalPadding:t,outerHorizontalPadding:t,horizontalAlignment:t,verticalAlignment:t})};export{d as BaseElement,n as ComponentHorizontalAlignmentEnum,o as ComponentVerticalAlignmentEnum,r as IkasPopupRendererFontFamily,a as PopupElementTypeEnum};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as o}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as r,observable as t}from"mobx";import{PopupElementTypeEnum as i,BaseElement as
|
|
1
|
+
import{__extends as o}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as r,observable as t}from"mobx";import{PopupElementTypeEnum as i,IkasPopupRendererFontFamily as l,BaseElement as n}from"../base/index.js";import{ButtonBorderStyle as d}from"../../../background-settings/index.js";var e=function(n){function e(o){var e,a,u,b,g,s,f,m,v=this;return(v=n.call(this,o)||this).text=o.text||"Button Text",v.type=i.BUTTON,v.color=o.color||"#FFFFFF",v.buttonBgColor=o.buttonBgColor||"#000000",v.bgColor=o.bgColor||"",v.fontFamily=new l(o.fontFamily||{name:"Arial",variants:null}),v.fontSize=null!==(e=o.fontSize)&&void 0!==e?e:16,v.fontWeight=null!==(a=o.fontWeight)&&void 0!==a?a:400,v.borderRadius=null!==(u=o.borderRadius)&&void 0!==u?u:4,v.borderColor=o.borderColor||"#000000",v.borderStyle=o.borderStyle||d.SOLID,v.borderWidth=null!==(b=o.borderWidth)&&void 0!==b?b:0,v.link=o.link||null,v.verticalPadding=null!==(g=o.verticalPadding)&&void 0!==g?g:12,v.horizontalPadding=null!==(s=o.horizontalPadding)&&void 0!==s?s:12,v.outerVerticalPadding=null!==(f=o.outerVerticalPadding)&&void 0!==f?f:12,v.outerHorizontalPadding=null!==(m=o.outerHorizontalPadding)&&void 0!==m?m:12,r(v,{text:t,color:t,buttonBgColor:t,bgColor:t,fontFamily:t,fontSize:t,fontWeight:t,borderRadius:t,borderColor:t,borderStyle:t,borderWidth:t,link:t}),v}return o(e,n),e}(n);export{e as ButtonElement};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as o,observable as t}from"mobx";var
|
|
1
|
+
import{makeObservable as o,observable as t}from"mobx";import{IkasPopupRendererFontFamily as r}from"../../base/index.js";var i=function(i){var n,s;void 0===i&&(i={}),this.formInputSettings=i.formInputSettings?new e(i.formInputSettings):new e,this.gapBetweenItems=null!==(n=i.gapBetweenItems)&&void 0!==n?n:12,this.fontFamily=new r(i.fontFamily||{name:"Arial",variants:null}),this.fontSize=null!==(s=i.fontSize)&&void 0!==s?s:14,o(this,{formInputSettings:t,gapBetweenItems:t,fontFamily:t,fontSize:t})},e=function(r){var i,e,n;void 0===r&&(r={}),this.bgColor=r.bgColor||"#FFFFFF",this.borderWidth=null!==(i=r.borderWidth)&&void 0!==i?i:1,this.borderRadius=null!==(e=r.borderRadius)&&void 0!==e?e:4,this.borderColor=r.borderColor||"#E3E8EF",this.focusBorderColor=r.focusBorderColor||"#000000",this.height=null!==(n=r.height)&&void 0!==n?n:40,o(this,{bgColor:t,borderWidth:t,borderRadius:t,borderColor:t,focusBorderColor:t,height:t})};export{e as FormInputSettings,i as FormSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as i,observable as
|
|
1
|
+
import{makeObservable as i,observable as o}from"mobx";import{TextElement as t}from"../../text/index.js";import{IkasPopupRendererFontFamily as n}from"../../base/index.js";var a,e=function(n){void 0===n&&(n={}),this.image=n.image?new r(n.image):new r({}),this.name=n.name?new t(n.name):new t({horizontalPadding:0,verticalPadding:6}),this.discountRatio=n.discountRatio?new t(n.discountRatio):new t({horizontalPadding:0,verticalPadding:8}),this.originalPrice=n.originalPrice?new t(n.originalPrice):new t({horizontalPadding:0,verticalPadding:2,fontSize:14,color:"#697586"}),this.finalPrice=n.finalPrice?new t(n.finalPrice):new t({horizontalPadding:0,verticalPadding:2}),this.button=n.button?new d(n.button):new d({}),i(this,{image:o,name:o,discountRatio:o,originalPrice:o,finalPrice:o,button:o})},r=function(t){var n,a;this.bgColor=t.bgColor||"#FFFFFF",this.maxWidth=null!==(n=t.maxWidth)&&void 0!==n?n:100,this.borderRadius=null!==(a=t.borderRadius)&&void 0!==a?a:0,i(this,{bgColor:o,maxWidth:o,borderRadius:o})},l=function(t){var a;void 0===t&&(t={}),this.color=t.color||"#000000",this.bgColor=t.bgColor||"#FFFFFF",this.fontFamily=new n(t.fontFamily||{name:"Arial",variants:null}),this.fontSize=null!==(a=t.fontSize)&&void 0!==a?a:24,i(this,{color:o,bgColor:o,fontFamily:o,fontSize:o})};!function(i){i.ADD_TO_CART="ADD_TO_CART",i.NAVIGATE_TO_PRODUCT_DETAIL="NAVIGATE_TO_PRODUCT_DETAIL"}(a||(a={}));var d=function(t){void 0===t&&(t={}),this.text=t.text||"Button Text",this.action=t.action||a.ADD_TO_CART,i(this,{text:o,action:o})};export{a as ProductActionTypeEnum,d as ProductButtonSettings,e as ProductDetailSettings,l as ProductDiscountRatioSettings,r as ProductImageSettings};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__extends as o}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as r,observable as i}from"mobx";import{PopupElementTypeEnum as t,
|
|
1
|
+
import{__extends as o}from'./../../../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as r,observable as i}from"mobx";import{PopupElementTypeEnum as t,IkasPopupRendererFontFamily as l,ComponentHorizontalAlignmentEnum as n,BaseElement as e}from"../base/index.js";import{ButtonBorderStyle as d}from"../../../background-settings/index.js";var a=function(e){function a(o){var a,u,b,s,g,m,f,h,v=this;return(v=e.call(this,o)||this).type=t.TEXT,v.text=o.text||"This is a text",v.color=o.color||"#000000",v.bgColor=o.bgColor||"",v.fontFamily=new l(o.fontFamily||{name:"Arial",variants:null}),v.fontSize=null!==(a=o.fontSize)&&void 0!==a?a:16,v.fontWeight=null!==(u=o.fontWeight)&&void 0!==u?u:400,v.borderRadius=null!==(b=o.borderRadius)&&void 0!==b?b:4,v.borderColor=o.borderColor||"#000000",v.borderStyle=o.borderStyle||d.SOLID,v.borderWidth=null!==(s=o.borderWidth)&&void 0!==s?s:0,v.verticalPadding=null!==(g=o.verticalPadding)&&void 0!==g?g:12,v.horizontalPadding=null!==(m=o.horizontalPadding)&&void 0!==m?m:12,v.outerHorizontalPadding=null!==(f=o.outerHorizontalPadding)&&void 0!==f?f:0,v.outerVerticalPadding=null!==(h=o.outerVerticalPadding)&&void 0!==h?h:0,v.horizontalAlignment=o.horizontalAlignment||n.LEFT,r(v,{text:i,color:i,bgColor:i,fontFamily:i,fontSize:i,fontWeight:i,borderRadius:i,borderColor:i,borderStyle:i,borderWidth:i}),v}return o(a,e),a}(e);export{a as TextElement};
|