@ikas/loyalty-widget-renderer 1.0.0-alpha.8 → 1.0.0-alpha.80

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.
Files changed (177) hide show
  1. package/build/assets/icons/arrow-right.d.ts +2 -0
  2. package/build/assets/icons/arrow-right.js +1 -0
  3. package/build/assets/icons/check-circle.d.ts +2 -0
  4. package/build/assets/icons/check-circle.js +1 -0
  5. package/build/assets/index.d.ts +5 -0
  6. package/build/assets/widget-icons/illustraions/check-fill.d.ts +2 -0
  7. package/build/assets/widget-icons/illustraions/check-fill.js +1 -0
  8. package/build/assets/widget-icons/illustraions/informationCircleIllustration.d.ts +2 -0
  9. package/build/assets/widget-icons/illustraions/informationCircleIllustration.js +1 -0
  10. package/build/assets/widget-icons/illustraions/medal.js +1 -1
  11. package/build/assets/widget-icons/normal/informationCircle.d.ts +2 -0
  12. package/build/assets/widget-icons/normal/informationCircle.js +1 -0
  13. package/build/ext/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -0
  14. package/build/ext/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -0
  15. package/build/ext/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -0
  16. package/build/ext/@babel/runtime/helpers/esm/classCallCheck.js +1 -0
  17. package/build/ext/@babel/runtime/helpers/esm/createClass.js +1 -0
  18. package/build/ext/@babel/runtime/helpers/esm/defineProperty.js +1 -0
  19. package/build/ext/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -0
  20. package/build/ext/@babel/runtime/helpers/esm/inherits.js +1 -0
  21. package/build/ext/@babel/runtime/helpers/esm/iterableToArray.js +1 -0
  22. package/build/ext/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -0
  23. package/build/ext/@babel/runtime/helpers/esm/nonIterableRest.js +1 -0
  24. package/build/ext/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -0
  25. package/build/ext/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -0
  26. package/build/ext/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -0
  27. package/build/ext/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -0
  28. package/build/ext/@babel/runtime/helpers/esm/slicedToArray.js +1 -0
  29. package/build/ext/@babel/runtime/helpers/esm/toArray.js +1 -0
  30. package/build/ext/@babel/runtime/helpers/esm/toPrimitive.js +1 -0
  31. package/build/ext/@babel/runtime/helpers/esm/toPropertyKey.js +1 -0
  32. package/build/ext/@babel/runtime/helpers/esm/typeof.js +1 -0
  33. package/build/ext/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -0
  34. package/build/ext/html-parse-stringify/dist/html-parse-stringify.module.js +1 -0
  35. package/build/ext/i18next/dist/esm/i18next.js +1 -1
  36. package/build/ext/react-i18next/dist/es/I18nextProvider.js +1 -1
  37. package/build/ext/react-i18next/dist/es/Trans.js +1 -0
  38. package/build/ext/react-i18next/dist/es/context.js +1 -1
  39. package/build/ext/react-i18next/dist/es/unescape.js +1 -1
  40. package/build/ext/react-i18next/dist/es/useTranslation.js +1 -1
  41. package/build/ext/react-i18next/dist/es/utils.js +1 -1
  42. package/build/ext/tslib/tslib.es6.mjs.js +1 -1
  43. package/build/ext/void-elements/index.js +1 -0
  44. package/build/index.d.ts +9 -0
  45. package/build/index.js +1 -1
  46. package/build/injector.d.ts +5 -0
  47. package/build/locales.d.ts +633 -0
  48. package/build/locales.js +1 -0
  49. package/build/models/common/index.d.ts +21 -0
  50. package/build/models/common/index.js +1 -0
  51. package/build/models/image/index.d.ts +2 -2
  52. package/build/models/image/index.js +1 -1
  53. package/build/models/index.d.ts +16 -6
  54. package/build/models/index.js +1 -1
  55. package/build/models/loyalty-customer-info/index.d.ts +29 -8
  56. package/build/models/loyalty-customer-info/index.js +1 -1
  57. package/build/models/loyalty-program-earning-method/index.d.ts +16 -30
  58. package/build/models/loyalty-program-earning-method/index.js +1 -1
  59. package/build/models/loyalty-program-point-history/index.d.ts +3 -3
  60. package/build/models/loyalty-program-point-history/index.js +1 -1
  61. package/build/models/loyalty-program-spending-method/index.d.ts +7 -20
  62. package/build/models/loyalty-program-spending-method/index.js +1 -1
  63. package/build/models/loyalty-widget/header/header-background/index.d.ts +1 -2
  64. package/build/models/loyalty-widget/header/header-background/index.js +1 -1
  65. package/build/models/loyalty-widget/header/index.d.ts +1 -1
  66. package/build/models/loyalty-widget/index.d.ts +4 -2
  67. package/build/models/loyalty-widget/index.js +1 -1
  68. package/build/models/loyalty-widget/settings/index.js +1 -1
  69. package/build/models/loyalty-widget/translations.d.ts +5 -0
  70. package/build/models/loyalty-widget/translations.js +1 -0
  71. package/build/models/mini-mode/index.d.ts +7 -0
  72. package/build/models/mini-mode/index.js +1 -0
  73. package/build/models/types/index.d.ts +25 -41
  74. package/build/models/types/index.js +1 -1
  75. package/build/renderer/components/animate-height/index.d.ts +9 -0
  76. package/build/renderer/components/animate-height/index.js +1 -0
  77. package/build/renderer/components/button/index.js +1 -1
  78. package/build/renderer/components/button/style.d.ts +1 -0
  79. package/build/renderer/components/button/style.js +1 -1
  80. package/build/renderer/components/count-up/index.d.ts +7 -0
  81. package/build/renderer/components/count-up/index.js +1 -0
  82. package/build/renderer/components/flexible-value-container/index.d.ts +16 -0
  83. package/build/renderer/components/flexible-value-container/index.js +1 -0
  84. package/build/renderer/components/loyalty-method-card/index.d.ts +2 -1
  85. package/build/renderer/components/loyalty-method-card/index.js +1 -1
  86. package/build/renderer/components/loyalty-method-card/style.d.ts +3 -3
  87. package/build/renderer/components/loyalty-method-card/style.js +1 -1
  88. package/build/renderer/components/mini-mode-button/index.d.ts +7 -0
  89. package/build/renderer/components/mini-mode-button/index.js +1 -0
  90. package/build/renderer/components/mini-mode-button/style.d.ts +6 -0
  91. package/build/renderer/components/mini-mode-button/style.js +1 -0
  92. package/build/renderer/components/mini-mode-description/index.d.ts +8 -0
  93. package/build/renderer/components/mini-mode-description/index.js +1 -0
  94. package/build/renderer/components/mini-mode-description/style.d.ts +3 -0
  95. package/build/renderer/components/mini-mode-description/style.js +1 -0
  96. package/build/renderer/components/style/icon-wrapper.d.ts +4 -0
  97. package/build/renderer/components/style/icon-wrapper.js +1 -0
  98. package/build/renderer/components/style/typography.d.ts +3 -1
  99. package/build/renderer/components/style/typography.js +1 -1
  100. package/build/renderer/components/tooltip/index.d.ts +7 -0
  101. package/build/renderer/components/tooltip/index.js +1 -0
  102. package/build/renderer/components/tooltip/style.d.ts +4 -0
  103. package/build/renderer/components/tooltip/style.js +1 -0
  104. package/build/renderer/components/translation-settings/style.d.ts +9 -0
  105. package/build/renderer/index.js +1 -1
  106. package/build/renderer/screens/credit-earning-methods-screen/index.js +1 -1
  107. package/build/renderer/screens/credit-earning-methods-screen/style.js +1 -1
  108. package/build/renderer/screens/credit-history-screen/index.js +1 -1
  109. package/build/renderer/screens/credit-history-screen/style.d.ts +5 -1
  110. package/build/renderer/screens/credit-history-screen/style.js +1 -1
  111. package/build/renderer/screens/credit-spending-methods-screen/index.js +1 -1
  112. package/build/renderer/screens/credit-spending-methods-screen/style.d.ts +3 -1
  113. package/build/renderer/screens/credit-spending-methods-screen/style.js +1 -1
  114. package/build/renderer/screens/loyalty-level-screen/index.js +1 -1
  115. package/build/renderer/screens/loyalty-level-screen/style.d.ts +10 -2
  116. package/build/renderer/screens/loyalty-level-screen/style.js +1 -1
  117. package/build/renderer/screens/main-screen/applied-discount/index.d.ts +9 -0
  118. package/build/renderer/screens/main-screen/applied-discount/index.js +1 -0
  119. package/build/renderer/screens/main-screen/applied-discount/style.d.ts +14 -0
  120. package/build/renderer/screens/main-screen/applied-discount/style.js +1 -0
  121. package/build/renderer/screens/main-screen/cart-warning/index.d.ts +7 -0
  122. package/build/renderer/screens/main-screen/cart-warning/index.js +1 -0
  123. package/build/renderer/screens/main-screen/cart-warning/style.d.ts +5 -0
  124. package/build/renderer/screens/main-screen/cart-warning/style.js +1 -0
  125. package/build/renderer/screens/main-screen/earning-methods-section/index.d.ts +1 -0
  126. package/build/renderer/screens/main-screen/earning-methods-section/index.js +1 -1
  127. package/build/renderer/screens/main-screen/header/auth-user-section/index.js +1 -1
  128. package/build/renderer/screens/main-screen/header/index.js +1 -1
  129. package/build/renderer/screens/main-screen/header/logo-section/index.js +1 -1
  130. package/build/renderer/screens/main-screen/header/logo-section/style.d.ts +3 -1
  131. package/build/renderer/screens/main-screen/header/logo-section/style.js +1 -1
  132. package/build/renderer/screens/main-screen/header/style.d.ts +11 -5
  133. package/build/renderer/screens/main-screen/header/style.js +1 -1
  134. package/build/renderer/screens/main-screen/header/title-section/index.js +1 -1
  135. package/build/renderer/screens/main-screen/header/title-section/style.js +1 -1
  136. package/build/renderer/screens/main-screen/header/user-logged-section/index.js +1 -1
  137. package/build/renderer/screens/main-screen/header/user-logged-section/style.d.ts +1 -0
  138. package/build/renderer/screens/main-screen/header/user-logged-section/style.js +1 -1
  139. package/build/renderer/screens/main-screen/index.js +1 -1
  140. package/build/renderer/screens/main-screen/program-info-section/index.js +1 -1
  141. package/build/renderer/screens/main-screen/program-info-section/style.d.ts +12 -4
  142. package/build/renderer/screens/main-screen/program-info-section/style.js +1 -1
  143. package/build/renderer/screens/main-screen/spending-methods-section/dynamic-slider.js +1 -1
  144. package/build/renderer/screens/main-screen/spending-methods-section/index.d.ts +1 -0
  145. package/build/renderer/screens/main-screen/spending-methods-section/index.js +1 -1
  146. package/build/renderer/screens/main-screen/style.js +1 -1
  147. package/build/renderer/style.d.ts +18 -2
  148. package/build/renderer/style.js +1 -1
  149. package/build/renderer/utils/i18n.d.ts +17 -0
  150. package/build/renderer/utils/i18n.js +1 -1
  151. package/build/renderer/utils/locales/de.json.js +1 -0
  152. package/build/renderer/utils/locales/en.json.js +1 -1
  153. package/build/renderer/utils/locales/fr.json.js +1 -0
  154. package/build/renderer/utils/locales/nl.json.js +1 -0
  155. package/build/renderer/utils/locales/tr.json.js +1 -1
  156. package/build/renderer/utils/loyalty-details.js +1 -1
  157. package/build/renderer/utils/object-utils.d.ts +2 -0
  158. package/build/renderer/utils/object-utils.js +1 -0
  159. package/build/storefront-widget-script-injector.iife.js +68 -0
  160. package/build/storefront-widget-script-injector.iife.js.map +1 -0
  161. package/build/utils.d.ts +31 -4
  162. package/build/utils.js +1 -1
  163. package/package.json +23 -11
  164. package/build/_virtual/index.js +0 -1
  165. package/build/_virtual/use-sync-external-store-shim.development.js +0 -1
  166. package/build/_virtual/use-sync-external-store-shim.production.js +0 -1
  167. package/build/ext/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js +0 -1
  168. package/build/ext/react-i18next/dist/es/defaults.js +0 -1
  169. package/build/ext/react-i18next/dist/es/i18nInstance.js +0 -1
  170. package/build/ext/react-i18next/dist/es/initReactI18next.js +0 -1
  171. package/build/ext/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -10
  172. package/build/ext/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -10
  173. package/build/ext/use-sync-external-store/shim/index.js +0 -1
  174. package/build/models/base.d.ts +0 -4
  175. package/build/models/base.js +0 -1
  176. package/build/models/category/index.d.ts +0 -5
  177. package/build/models/loyalty-widget/header-background/index.d.ts +0 -9
package/build/utils.d.ts CHANGED
@@ -1,10 +1,37 @@
1
1
  import React from "react";
2
- import { EarningMethodTypeEnum, LoyaltyProgramMethodSpendingTypeEnum } from "models/types";
3
- import { WidgetIconTypeEnum } from "models/loyalty-widget/types";
2
+ import { LoyaltyWidgetViewModel } from "models";
4
3
  import { LoyaltyProgramEarningMethod } from "models/loyalty-program-earning-method";
5
4
  import { LoyaltyProgramSpendingMethod } from "models/loyalty-program-spending-method";
6
- export declare const getEarningMethodIcon: (earningMethod: EarningMethodTypeEnum, widgetIconType: WidgetIconTypeEnum) => React.JSX.Element;
5
+ import { WidgetIconTypeEnum } from "models/loyalty-widget/types";
6
+ import { EarningMethodTypeEnum, LoyaltyProgramMethodSpendingTypeEnum, LoyaltyWidgetScreenTypeEnum } from "models/types";
7
+ interface WidgetStorageData {
8
+ closedDescriptionSessionId?: string;
9
+ }
10
+ /**
11
+ * Get ikas_session_id from localStorage
12
+ */
13
+ export declare const getIkasSessionId: () => string | null;
14
+ /**
15
+ * Get widget storage data from localStorage
16
+ */
17
+ export declare const getWidgetStorage: () => WidgetStorageData;
18
+ /**
19
+ * Set widget storage data to localStorage
20
+ */
21
+ export declare const setWidgetStorage: (data: WidgetStorageData) => void;
22
+ /**
23
+ * Check if description is closed for current session
24
+ */
25
+ export declare const isDescriptionClosedForCurrentSession: () => boolean;
26
+ /**
27
+ * Mark description as closed for current session
28
+ */
29
+ export declare const markDescriptionClosedForSession: () => void;
30
+ export declare const getScreenIcon: (screenType: LoyaltyWidgetScreenTypeEnum, widgetIconType: WidgetIconTypeEnum) => React.JSX.Element | null;
31
+ export declare const getEarningMethodIcon: (earningMethod: EarningMethodTypeEnum, widgetIconType: WidgetIconTypeEnum) => React.JSX.Element | null;
32
+ export declare const getHistoryEarningMethodLabel: (earningMethodType: EarningMethodTypeEnum) => string;
7
33
  export declare const getEarningMethodTitle: (earningMethod: LoyaltyProgramEarningMethod) => string;
8
34
  export declare const getSpendingMethodIcon: (spendingMethod: LoyaltyProgramMethodSpendingTypeEnum, widgetIconType: WidgetIconTypeEnum) => React.JSX.Element | null;
9
35
  export declare const getSpendingMethodTitle: (method: LoyaltyProgramSpendingMethod) => string;
10
- export declare const getSpendingMethodDescription: (method: LoyaltyProgramSpendingMethod, currency: string) => string | React.JSX.Element;
36
+ export declare const getSpendingMethodDescription: (method: LoyaltyProgramSpendingMethod, viewModel: LoyaltyWidgetViewModel) => string | React.JSX.Element;
37
+ export {};
package/build/utils.js CHANGED
@@ -1 +1 @@
1
- import{__makeTemplateObject as e}from'./ext/tslib/tslib.es6.mjs.js';import t from"react";import{EarningMethodTypeEnum as n,LoyaltyProgramPointEarningTypeEnum as s,LoyaltyProgramMethodSpendingTypeEnum as r}from"./models/types/index.js";import{BubbleChatDone as i}from"./assets/widget-icons/normal/bubbleChatDone.js";import{CommentAdd01 as o}from"./assets/widget-icons/normal/commentAdd01.js";import{CouponPercent as l}from"./assets/widget-icons/normal/couponPercent.js";import{DiscountTag02 as a}from"./assets/widget-icons/normal/discountTag02.js";import{Gift as E}from"./assets/widget-icons/normal/gift.js";import{PackageDelivered as d}from"./assets/widget-icons/normal/packageDelivered.js";import{SaveMoneyDollar as c}from"./assets/widget-icons/normal/saveMoneyDollar.js";import{ShoppingBasketAdd02 as m}from"./assets/widget-icons/normal/shoppingBasketAdd02.js";import{UserAdd01 as u}from"./assets/widget-icons/normal/userAdd01.js";import{UsersIllustration as p}from"./assets/widget-icons/illustraions/usersIllustration.js";import{BubbleChatIllustration as R}from"./assets/widget-icons/illustraions/bubbleChatIllustration.js";import{ApprovedChatIllustration as T}from"./assets/widget-icons/illustraions/approvedChatIllustration.js";import{TshirtIllustration as g}from"./assets/widget-icons/illustraions/tshirtIllustration.js";import{GiftIllustration as f}from"./assets/widget-icons/illustraions/giftIllustration.js";import{ShippingBox as I}from"./assets/widget-icons/illustraions/shippingBox.js";import{ShoppingCartIllustration as O}from"./assets/widget-icons/illustraions/shoppingCartIllustration.js";import{WidgetIconTypeEnum as _}from"./models/loyalty-widget/types/index.js";import S from'./ext/i18next/dist/esm/i18next.js';import{BankCoin as M}from"./assets/widget-icons/illustraions/bankCoin.js";import'./ext/react-i18next/dist/es/context.js';import'./ext/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js';import{useTranslation as C}from'./ext/react-i18next/dist/es/useTranslation.js';import{textSM as U}from"./renderer/components/style/typography.js";import N from"styled-components";var A,j,x,h,D,P,y=((A={})[_.ILLUSTRATION]=((j={})[n.CUSTOMER_REGISTER]=t.createElement(p,null),j[n.ENABLE_SUBSCRIPTION]=t.createElement(T,null),j[n.BUY_PRODUCT]=t.createElement(g,null),j[n.CUSTOMER_REVIEW]=t.createElement(R,null),j[n.CUSTOMER_SEGMENT]=t.createElement(l,null),j[n.ORDER_CREATE]=t.createElement(O,null),j),A[_.NORMAL]=((x={})[n.CUSTOMER_REGISTER]=t.createElement(u,null),x[n.ENABLE_SUBSCRIPTION]=t.createElement(i,null),x[n.BUY_PRODUCT]=t.createElement(c,null),x[n.CUSTOMER_REVIEW]=t.createElement(o,null),x[n.CUSTOMER_SEGMENT]=t.createElement(l,null),x[n.ORDER_CREATE]=t.createElement(m,null),x),A),w=function(e,t){return y[t][e]},b=function(e){var t=C().t;switch(e.methodType){case n.CUSTOMER_REGISTER:return t("earningMethods.CUSTOMER_REGISTER.title");case n.ENABLE_SUBSCRIPTION:return t("earningMethods.ENABLE_SUBSCRIPTION.title");case n.CUSTOMER_REVIEW:return t("earningMethods.CUSTOMER_REVIEW.title");case n.ORDER_CREATE:if(e.pointEarningType===s.DYNAMIC_ORDER_AMOUNT)return t("earningMethods.ORDER_CREATE.RECEIVE_POINTS_ON_SPEND.title");if(e.pointEarningType===s.STATIC)return t("earningMethods.ORDER_CREATE.BASE.title");case n.BUY_PRODUCT:return t("earningMethods.BUY_PRODUCT.title");case n.CUSTOMER_SEGMENT:return t("earningMethods.CUSTOMER_SEGMENT.title");default:return""}},v=function(e,n){var s,i,o;return n===_.NONE?null:((s={})[_.ILLUSTRATION]=((i={})[r.FIXED_AMOUNT]=t.createElement(M,null),i[r.RATIO]=t.createElement(M,null),i[r.FREE_PRODUCT]=t.createElement(f,null),i[r.FREE_SHIPPING]=t.createElement(I,null),i),s[_.NORMAL]=((o={})[r.FIXED_AMOUNT]=t.createElement(a,null),o[r.RATIO]=t.createElement(a,null),o[r.FREE_PRODUCT]=t.createElement(E,null),o[r.FREE_SHIPPING]=t.createElement(d,null),o),s)[n][e]},B=function(e){var t=C().t,n=S.language,s=e.translations.find(function(e){return e.locale===n});if(null==s?void 0:s.description)return s.description;if(e.description)return e.description;switch(e.type){case r.FIXED_AMOUNT:return t("spendingMethods.FIXED_AMOUNT.title");case r.RATIO:return t("spendingMethods.RATIO.title");case r.FREE_SHIPPING:return t("spendingMethods.FREE_SHIPPING.title");case r.FREE_PRODUCT:return t("spendingMethods.FREE_PRODUCT.title");default:return""}},F=N.span(h||(h=e(["\n display: flex;\n padding: 2px 8px;\n justify-content: center;\n align-items: center;\n gap: 6px;\n border-radius: 6px;\n border: 0.6px solid #cdd5df;\n opacity: 0.8;\n background: #f8fafc;\n ","\n color: #121926;\n"],["\n display: flex;\n padding: 2px 8px;\n justify-content: center;\n align-items: center;\n gap: 6px;\n border-radius: 6px;\n border: 0.6px solid #cdd5df;\n opacity: 0.8;\n background: #f8fafc;\n ","\n color: #121926;\n"])),U),G=N.span(D||(D=e(["\n ","\n color: #364152;\n"],["\n ","\n color: #364152;\n"])),U),L=N.span(P||(P=e(["\n color: #697586;\n"],["\n color: #697586;\n"]))),k=function(e,n){var s,i,o=C().t,l=(null===(s=e.discountSettings)||void 0===s?void 0:s.point)||0,a=null===(i=e.discountSettings)||void 0===i?void 0:i.discountAmount,E=function(e,s){return void 0===s&&(s=!1),t.createElement("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},t.createElement(G,null,o("earningMethods.xPoints",{points:l})),t.createElement(L,null,"→"),t.createElement(F,null,e," ",s&&n))};return e.type===r.FIXED_AMOUNT&&a?E(a,!0):e.type===r.RATIO&&a?E("%".concat(a)):o("earningMethods.xPoints",{points:l})};export{w as getEarningMethodIcon,b as getEarningMethodTitle,k as getSpendingMethodDescription,v as getSpendingMethodIcon,B as getSpendingMethodTitle};
1
+ import{__makeTemplateObject as e,__assign as t}from'./ext/tslib/tslib.es6.mjs.js';import n from"react";import'./ext/react-i18next/dist/es/context.js';import{useTranslation as r}from'./ext/react-i18next/dist/es/useTranslation.js';import s from'./ext/i18next/dist/esm/i18next.js';import i from"styled-components";import{ArrowRight as l}from"./assets/icons/arrow-right.js";import{BubbleChatDone as o}from"./assets/widget-icons/normal/bubbleChatDone.js";import{CommentAdd01 as a}from"./assets/widget-icons/normal/commentAdd01.js";import{CouponPercent as E}from"./assets/widget-icons/normal/couponPercent.js";import{DiscountTag02 as c}from"./assets/widget-icons/normal/discountTag02.js";import{Gift as m}from"./assets/widget-icons/normal/gift.js";import{MoneyAdd01 as d}from"./assets/widget-icons/normal/moneyAdd01.js";import{PackageDelivered as u}from"./assets/widget-icons/normal/packageDelivered.js";import{SaveMoneyDollar as R}from"./assets/widget-icons/normal/saveMoneyDollar.js";import{ShoppingBasketAdd02 as p}from"./assets/widget-icons/normal/shoppingBasketAdd02.js";import{UserAdd01 as T}from"./assets/widget-icons/normal/userAdd01.js";import{UsersIllustration as _}from"./assets/widget-icons/illustraions/usersIllustration.js";import{BubbleChatIllustration as S}from"./assets/widget-icons/illustraions/bubbleChatIllustration.js";import{ApprovedChatIllustration as g}from"./assets/widget-icons/illustraions/approvedChatIllustration.js";import{TshirtIllustration as I}from"./assets/widget-icons/illustraions/tshirtIllustration.js";import{Medal as f}from"./assets/widget-icons/illustraions/medal.js";import{GiftIllustration as O}from"./assets/widget-icons/illustraions/giftIllustration.js";import{ShippingBox as N}from"./assets/widget-icons/illustraions/shippingBox.js";import{BigSaleMedal as C}from"./assets/widget-icons/illustraions/bigSaleMedal.js";import{ShoppingCartIllustration as M}from"./assets/widget-icons/illustraions/shoppingCartIllustration.js";import{BankCoin as U}from"./assets/widget-icons/illustraions/bankCoin.js";import{WidgetIconTypeEnum as h}from"./models/loyalty-widget/types/index.js";import{EarningMethodTypeEnum as A,LoyaltyWidgetScreenTypeEnum as D,LoyaltyProgramPointEarningTypeEnum as y,LoyaltyProgramMethodSpendingTypeEnum as x}from"./models/types/index.js";import{FlexibleValueContainer as j}from"./renderer/components/flexible-value-container/index.js";import{textSM as P,textXSMedium as v,textXS as w}from"./renderer/components/style/typography.js";var L,b,B,G,F,Y,H,V,k,W="ikas-storefront-widget",X=function(){try{var e=localStorage.getItem("ikas_session_id");return e&&JSON.parse(e).id||null}catch(e){return null}},J=function(){try{var e=localStorage.getItem(W);return e?JSON.parse(e):{}}catch(e){return{}}},q=function(e){try{var n=J(),r=t(t({},n),e);localStorage.setItem(W,JSON.stringify(r))}catch(e){}},z=function(){var e=X();return!!e&&J().closedDescriptionSessionId===e},K=function(){var e=X();e&&q({closedDescriptionSessionId:e})},Q=((L={})[h.ILLUSTRATION]=((b={})[A.CUSTOMER_REGISTER]=n.createElement(_,null),b[A.ENABLE_SUBSCRIPTION]=n.createElement(g,null),b[A.BUY_PRODUCT]=n.createElement(I,null),b[A.CUSTOMER_REVIEW]=n.createElement(S,null),b[A.CUSTOMER_SEGMENT]=n.createElement(E,null),b[A.ORDER_CREATE]=n.createElement(M,null),b),L[h.NORMAL]=((B={})[A.CUSTOMER_REGISTER]=n.createElement(T,null),B[A.ENABLE_SUBSCRIPTION]=n.createElement(o,null),B[A.BUY_PRODUCT]=n.createElement(R,null),B[A.CUSTOMER_REVIEW]=n.createElement(a,null),B[A.CUSTOMER_SEGMENT]=n.createElement(E,null),B[A.ORDER_CREATE]=n.createElement(p,null),B),L),Z=((G={})[h.ILLUSTRATION]=((F={})[D.MAIN_SCREEN]=n.createElement("div",null),F[D.CREDIT_EARNING_METHODS_SCREEN]=n.createElement(f,null),F[D.CREDIT_SPENDING_METHODS_SCREEN]=n.createElement(C,null),F[D.CREDIT_HISTORY_SCREEN]=n.createElement("div",null),F[D.LOYALTY_LEVEL_SCREEN]=n.createElement("div",null),F),G[h.NORMAL]=((Y={})[D.MAIN_SCREEN]=n.createElement("div",null),Y[D.CREDIT_EARNING_METHODS_SCREEN]=n.createElement(d,null),Y[D.CREDIT_SPENDING_METHODS_SCREEN]=n.createElement(E,null),Y[D.CREDIT_HISTORY_SCREEN]=n.createElement("div",null),Y[D.LOYALTY_LEVEL_SCREEN]=n.createElement("div",null),Y),G),$=function(e,t){return t&&t!==h.NONE&&Z[t]?Z[t][e]:null},ee=function(e,t){return t&&t!==h.NONE&&Q[t]?Q[t][e]:null},te=function(e){var t=r().t;switch(e){case A.CUSTOMER_REGISTER:return t("history.earningMethodLabels.CUSTOMER_REGISTER");case A.ENABLE_SUBSCRIPTION:return t("history.earningMethodLabels.ENABLE_SUBSCRIPTION");case A.CUSTOMER_REVIEW:return t("history.earningMethodLabels.CUSTOMER_REVIEW");case A.ORDER_CREATE:return t("history.earningMethodLabels.ORDER_CREATE");case A.BUY_PRODUCT:return t("history.earningMethodLabels.BUY_PRODUCT");case A.CUSTOMER_SEGMENT:return t("history.earningMethodLabels.CUSTOMER_SEGMENT");default:return""}},ne=function(e){var t=r().t;switch(e.methodType){case A.CUSTOMER_REGISTER:return t("earningMethods.CUSTOMER_REGISTER.title");case A.ENABLE_SUBSCRIPTION:return t("earningMethods.ENABLE_SUBSCRIPTION.title");case A.CUSTOMER_REVIEW:return t("earningMethods.CUSTOMER_REVIEW.title");case A.ORDER_CREATE:if(e.pointEarningType===y.DYNAMIC_ORDER_AMOUNT)return t("earningMethods.ORDER_CREATE.RECEIVE_POINTS_ON_SPEND.title");if(e.pointEarningType===y.STATIC)return t("earningMethods.ORDER_CREATE.BASE.title");case A.BUY_PRODUCT:return t("earningMethods.BUY_PRODUCT.title");case A.CUSTOMER_SEGMENT:return t("earningMethods.CUSTOMER_SEGMENT.title");default:return""}},re=function(e,t){var r,s,i;return t===h.NONE?null:((r={})[h.ILLUSTRATION]=((s={})[x.FIXED_AMOUNT]=n.createElement(U,null),s[x.RATIO]=n.createElement(U,null),s[x.FREE_PRODUCT]=n.createElement(O,null),s[x.FREE_SHIPPING]=n.createElement(N,null),s),r[h.NORMAL]=((i={})[x.FIXED_AMOUNT]=n.createElement(c,null),i[x.RATIO]=n.createElement(c,null),i[x.FREE_PRODUCT]=n.createElement(m,null),i[x.FREE_SHIPPING]=n.createElement(u,null),i),r)[t][e]},se=function(e){var t,n=r().t,i=s.language,l=null===(t=e.translations)||void 0===t?void 0:t.find(function(e){return e.locale===i});if(null==l?void 0:l.description)return l.description;if(e.description)return e.description;switch(e.type){case x.FIXED_AMOUNT:return e.isDynamic?n("spendingMethods.FIXED_AMOUNT.dynamicTitle"):n("spendingMethods.FIXED_AMOUNT.title");case x.RATIO:return n("spendingMethods.RATIO.title");case x.FREE_SHIPPING:return n("spendingMethods.FREE_SHIPPING.title");case x.FREE_PRODUCT:return n("spendingMethods.FREE_PRODUCT.title");default:return""}},ie=i.span(H||(H=e(["\n display: flex;\n padding: 2px 8px;\n justify-content: center;\n align-items: center;\n gap: 6px;\n border-radius: 6px;\n border: 0.6px solid #cdd5df;\n opacity: 0.8;\n background: #f8fafc;\n ","\n color: #121926;\n\n @media (max-width: 600px) {\n ","\n }\n"],["\n display: flex;\n padding: 2px 8px;\n justify-content: center;\n align-items: center;\n gap: 6px;\n border-radius: 6px;\n border: 0.6px solid #cdd5df;\n opacity: 0.8;\n background: #f8fafc;\n ","\n color: #121926;\n\n @media (max-width: 600px) {\n ","\n }\n"])),P,v),le=i.span(V||(V=e(["\n ","\n color: #364152;\n\n @media (max-width: 600px) {\n ","\n }\n"],["\n ","\n color: #364152;\n\n @media (max-width: 600px) {\n ","\n }\n"])),P,w),oe=i.span(k||(k=e(["\n color: #697586;\n display: flex;\n align-items: center;\n"],["\n color: #697586;\n display: flex;\n align-items: center;\n"]))),ae=function(e,t){var s,i,o=r().t,a=(null===(s=e.discountSettings)||void 0===s?void 0:s.point)||0,E=null===(i=e.discountSettings)||void 0===i?void 0:i.discountAmount,c=function(e,r){return void 0===r&&(r=!1),n.createElement(j,null,function(s){return s?n.createElement(n.Fragment,null,n.createElement(le,null,o("earningMethods.xPoints",{points:a})),n.createElement("div",{style:{display:"flex",alignItems:"center",gap:"6px"}},n.createElement(oe,null,n.createElement(l,null)),n.createElement(ie,null,r&&"number"==typeof e?t.formatCurrency(e):e))):n.createElement(n.Fragment,null,n.createElement(le,null,o("earningMethods.xPoints",{points:a})),n.createElement(oe,null,n.createElement(l,null)),n.createElement(ie,null,r&&"number"==typeof e?t.formatCurrency(e):e))})};return e.type===x.FIXED_AMOUNT&&E?c(E,!0):e.type===x.RATIO&&E?c("%".concat(E)):o("earningMethods.xPoints",{points:a})};export{ee as getEarningMethodIcon,ne as getEarningMethodTitle,te as getHistoryEarningMethodLabel,X as getIkasSessionId,$ as getScreenIcon,ae as getSpendingMethodDescription,re as getSpendingMethodIcon,se as getSpendingMethodTitle,J as getWidgetStorage,z as isDescriptionClosedForCurrentSession,K as markDescriptionClosedForSession,q as setWidgetStorage};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/loyalty-widget-renderer",
3
- "version": "1.0.0-alpha.8",
3
+ "version": "1.0.0-alpha.80",
4
4
  "description": "",
5
5
  "author": "ucy",
6
6
  "license": "ISC",
@@ -24,22 +24,33 @@
24
24
  "release": "npm publish",
25
25
  "build": "rm -rf build && rollup -c",
26
26
  "watch": "rollup -c -w",
27
- "dev": "parcel app/index.html --port 3000"
27
+ "dev": "parcel app/index.html --port 3000",
28
+ "serve": "npm run build && npx serve build -p 3000 --cors",
29
+ "lint:fix": "eslint './src/**/*.{ts,tsx}' --fix"
28
30
  },
29
31
  "devDependencies": {
32
+ "@eslint/eslintrc": "^3.3.3",
33
+ "@eslint/js": "^9.39.1",
30
34
  "@rollup/plugin-commonjs": "^22.0.0",
31
35
  "@rollup/plugin-json": "^4.1.0",
32
36
  "@rollup/plugin-node-resolve": "^13.3.0",
37
+ "@trivago/prettier-plugin-sort-imports": "^6.0.0",
33
38
  "@types/lodash": "^4.14.191",
34
39
  "@types/node": "^12.0.0",
35
40
  "@types/react": "^17 || ^18",
36
41
  "@types/react-dom": "^17 || ^18",
37
- "styled-components": "^5.3.3",
38
42
  "@types/styled-components": "5.1.26",
39
43
  "@types/uuid": "^9.0.0",
40
- "mobx": "^6.1.3",
44
+ "@typescript-eslint/eslint-plugin": "^8.48.1",
45
+ "@typescript-eslint/parser": "^8.48.1",
46
+ "cloudflare": "^5.2.0",
47
+ "eslint": "^9.39.1",
48
+ "eslint-plugin-react": "^7.37.5",
49
+ "eslint-plugin-unused-imports": "^4.3.0",
50
+ "mobx": "^6.7.0",
41
51
  "mobx-react": "^7.6.0",
42
52
  "parcel": "^2.12.0",
53
+ "prettier": "^3.7.4",
43
54
  "react": "^17 || ^18",
44
55
  "react-dom": "^17 || ^18",
45
56
  "rollup": "^2.75.6",
@@ -49,20 +60,21 @@
49
60
  "rollup-plugin-rename-node-modules": "^1.2.0",
50
61
  "rollup-plugin-terser": "^7.0.2",
51
62
  "rollup-plugin-typescript2": "^0.36.0",
63
+ "styled-components": "^5.3.3",
52
64
  "ts-patch": "^3.3.0",
53
65
  "typescript": "^5.9.3",
54
66
  "typescript-transform-paths": "^3.5.5"
55
67
  },
56
68
  "peerDependencies": {
69
+ "mobx": "^6.7.0",
70
+ "mobx-react": "^7.6.0",
57
71
  "react": "^17 || ^18",
58
72
  "react-dom": "^17 || ^18",
59
- "styled-components": "^5.3.3",
60
- "mobx": "^6.1.3",
61
- "mobx-react": "^7.6.0"
73
+ "styled-components": "^5.3.3"
62
74
  },
63
75
  "dependencies": {
64
- "uuidv4": "^6.2.13",
65
- "i18next": "^25.6.3",
66
- "react-i18next": "^16.3.5"
76
+ "i18next": "^21.6.12",
77
+ "react-i18next": "^11.15.5",
78
+ "uuidv4": "^6.2.13"
67
79
  }
68
- }
80
+ }
@@ -1 +0,0 @@
1
- var r={exports:{}};export{r as s};
@@ -1 +0,0 @@
1
- var r={};export{r as __exports};
@@ -1 +0,0 @@
1
- var r={};export{r as __exports};
@@ -1 +0,0 @@
1
- new RegExp(Object.keys({"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"}).map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");
@@ -1 +0,0 @@
1
- import{unescape as e}from"./unescape.js";let s={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e};const n=(e={})=>{s={...s,...e}},t=()=>s;export{t as getDefaults,n as setDefaults};
@@ -1 +0,0 @@
1
- let t;const e=e=>{t=e},o=()=>t;export{o as getI18n,e as setI18n};
@@ -1 +0,0 @@
1
- import{setDefaults as t}from"./defaults.js";import{setI18n as o}from"./i18nInstance.js";const r={type:"3rdParty",init(r){t(r.options.react),o(r)}};export{r as initReactI18next};
@@ -1,10 +0,0 @@
1
- import{__exports as e}from"../../../_virtual/use-sync-external-store-shim.development.js";import t from"react";
2
- /**
3
- * @license React
4
- * use-sync-external-store-shim.development.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var n;function r(){return n||(n=1,"production"!==process.env.NODE_ENV&&function(){function n(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=t,o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=r.useState,a=r.useEffect,i=r.useLayoutEffect,s=r.useDebugValue,_=!1,c=!1,O="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){_||void 0===r.startTransition||(_=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var O=t();if(!c){var l=t();o(O,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var f=(l=u({inst:{value:O,getSnapshot:t}}))[0].inst,d=l[1];return i(function(){f.value=O,f.getSnapshot=t,n(f)&&d({inst:f})},[e,O,t]),a(function(){return n(f)&&d({inst:f}),e(function(){n(f)&&d({inst:f})})},[e]),s(O),O};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:O,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),e}export{r as __require};
@@ -1,10 +0,0 @@
1
- import{__exports as t}from"../../../_virtual/use-sync-external-store-shim.production.js";import e from"react";
2
- /**
3
- * @license React
4
- * use-sync-external-store-shim.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var n;function r(){if(n)return t;n=1;var r=e;var u="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=r.useState,i=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!u(t,n)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),u=r[0].inst,f=r[1];return a(function(){u.value=n,u.getSnapshot=e,c(u)&&f({inst:u})},[t,n,e]),i(function(){return c(u)&&f({inst:u}),t(function(){c(u)&&f({inst:u})})},[t]),s(n),n};return t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f,t}export{r as __require};
@@ -1 +0,0 @@
1
- import{s as r}from"../../../_virtual/index.js";import{__require as s}from"../cjs/use-sync-external-store-shim.production.js";import{__require as e}from"../cjs/use-sync-external-store-shim.development.js";var o;o=r,"production"===process.env.NODE_ENV?o.exports=s():o.exports=e();
@@ -1,4 +0,0 @@
1
- export declare class BaseModel {
2
- id: string;
3
- constructor(data?: Partial<BaseModel>);
4
- }
@@ -1 +0,0 @@
1
- import{makeObservable as o,observable as s}from"mobx";import'./../ext/uuid/dist/esm-browser/stringify.js';import'./../ext/uuid/dist/esm-browser/v3.js';import i from'./../ext/uuid/dist/esm-browser/v4.js';import'./../ext/uuid/dist/esm-browser/v5.js';var d=function(d){void 0===d&&(d={}),this.id=d.id||i(),o(this,{id:s})};export{d as BaseModel};
@@ -1,5 +0,0 @@
1
- export declare class Category {
2
- id: string;
3
- name: string;
4
- constructor(data?: Partial<Category>);
5
- }
@@ -1,9 +0,0 @@
1
- import { BaseModel } from "models/base";
2
- import { LoyaltyWidgetImage } from "models/image";
3
- import { HeaderBackgroundTypeEnum } from "../types";
4
- export declare class LoyaltyWidgetHeaderBackground extends BaseModel {
5
- bgColor: string | null;
6
- image: LoyaltyWidgetImage | null;
7
- type: HeaderBackgroundTypeEnum;
8
- constructor(data: Partial<LoyaltyWidgetHeaderBackground>);
9
- }