@ikas/loyalty-widget-renderer 1.0.0-alpha.60 → 1.0.0-alpha.7

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 (218) hide show
  1. package/build/_virtual/_commonjsHelpers.js +1 -0
  2. package/build/_virtual/index.js +1 -0
  3. package/build/_virtual/index2.js +1 -0
  4. package/build/_virtual/index3.js +1 -0
  5. package/build/_virtual/index4.js +1 -0
  6. package/build/_virtual/index5.js +1 -0
  7. package/build/_virtual/index6.js +1 -0
  8. package/build/_virtual/react-dom.development.js +1 -0
  9. package/build/_virtual/react-dom.production.min.js +1 -0
  10. package/build/_virtual/react-is.development.js +1 -0
  11. package/build/_virtual/react-is.development2.js +1 -0
  12. package/build/_virtual/react-is.production.js +1 -0
  13. package/build/_virtual/react-is.production.min.js +1 -0
  14. package/build/_virtual/react.development.js +1 -0
  15. package/build/_virtual/react.production.min.js +1 -0
  16. package/build/_virtual/scheduler.development.js +1 -0
  17. package/build/_virtual/scheduler.production.min.js +1 -0
  18. package/build/_virtual/use-sync-external-store-shim.development.js +1 -0
  19. package/build/_virtual/use-sync-external-store-shim.production.js +1 -0
  20. package/build/assets/badgeLevel1.js +1 -1
  21. package/build/assets/badgeLevel2.js +1 -1
  22. package/build/assets/badgeLevel3.js +1 -1
  23. package/build/assets/badgeLevel4.js +1 -1
  24. package/build/assets/icons/check-circle-fill.js +1 -1
  25. package/build/assets/icons/check.js +1 -1
  26. package/build/assets/icons/chevron-left.js +1 -1
  27. package/build/assets/icons/x-close.js +1 -1
  28. package/build/assets/index.d.ts +0 -1
  29. package/build/assets/widget-icons/illustraions/approvedChatIllustration.js +1 -1
  30. package/build/assets/widget-icons/illustraions/bankCoin.js +1 -1
  31. package/build/assets/widget-icons/illustraions/bigSaleMedal.js +1 -1
  32. package/build/assets/widget-icons/illustraions/bubbleChatIllustration.js +1 -1
  33. package/build/assets/widget-icons/illustraions/giftIllustration.js +1 -1
  34. package/build/assets/widget-icons/illustraions/medal.js +1 -1
  35. package/build/assets/widget-icons/illustraions/shippingBox.js +1 -1
  36. package/build/assets/widget-icons/illustraions/shoppingCartIllustration.js +1 -1
  37. package/build/assets/widget-icons/illustraions/tshirtIllustration.js +1 -1
  38. package/build/assets/widget-icons/illustraions/usersIllustration.js +1 -1
  39. package/build/assets/widget-icons/normal/bubbleChatDone.js +1 -1
  40. package/build/assets/widget-icons/normal/commentAdd01.js +1 -1
  41. package/build/assets/widget-icons/normal/couponPercent.js +1 -1
  42. package/build/assets/widget-icons/normal/discountTag02.js +1 -1
  43. package/build/assets/widget-icons/normal/gift.js +1 -1
  44. package/build/assets/widget-icons/normal/moneyAdd01.js +1 -1
  45. package/build/assets/widget-icons/normal/packageDelivered.js +1 -1
  46. package/build/assets/widget-icons/normal/saveMoneyDollar.js +1 -1
  47. package/build/assets/widget-icons/normal/shoppingBasketAdd02.js +1 -1
  48. package/build/assets/widget-icons/normal/userAdd01.js +1 -1
  49. package/build/ext/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js +1 -0
  50. package/build/ext/@emotion/memoize/dist/memoize.browser.esm.js +1 -0
  51. package/build/ext/@emotion/stylis/dist/stylis.browser.esm.js +1 -0
  52. package/build/ext/@emotion/unitless/dist/unitless.browser.esm.js +1 -0
  53. package/build/ext/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -0
  54. package/build/ext/hoist-non-react-statics/ext/react-is/cjs/react-is.development.js +9 -0
  55. package/build/ext/hoist-non-react-statics/ext/react-is/cjs/react-is.production.min.js +9 -0
  56. package/build/ext/hoist-non-react-statics/ext/react-is/index.js +1 -0
  57. package/build/ext/i18next/dist/esm/i18next.js +1 -1
  58. package/build/ext/mobx/dist/mobx.esm.js +1 -0
  59. package/build/ext/mobx-react/dist/mobxreact.esm.js +1 -0
  60. package/build/ext/mobx-react-lite/es/ObserverComponent.js +1 -0
  61. package/build/ext/mobx-react-lite/es/index.js +1 -0
  62. package/build/ext/mobx-react-lite/es/observer.js +1 -0
  63. package/build/ext/mobx-react-lite/es/useAsObservableSource.js +1 -0
  64. package/build/ext/mobx-react-lite/es/useObserver.js +1 -0
  65. package/build/ext/mobx-react-lite/es/utils/UniversalFinalizationRegistry.js +1 -0
  66. package/build/ext/mobx-react-lite/es/utils/assertEnvironment.js +1 -0
  67. package/build/ext/mobx-react-lite/es/utils/observerBatching.js +1 -0
  68. package/build/ext/mobx-react-lite/es/utils/observerFinalizationRegistry.js +1 -0
  69. package/build/ext/mobx-react-lite/es/utils/printDebugValue.js +1 -0
  70. package/build/ext/react/cjs/react.development.js +10 -0
  71. package/build/ext/react/cjs/react.production.min.js +10 -0
  72. package/build/ext/react/index.js +1 -0
  73. package/build/ext/react-dom/cjs/react-dom.development.js +23 -0
  74. package/build/ext/react-dom/cjs/react-dom.production.min.js +10 -0
  75. package/build/ext/react-dom/index.js +1 -0
  76. package/build/ext/react-i18next/dist/es/I18nextProvider.js +1 -1
  77. package/build/ext/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js +1 -0
  78. package/build/ext/react-i18next/dist/es/context.js +1 -1
  79. package/build/ext/react-i18next/dist/es/defaults.js +1 -0
  80. package/build/ext/react-i18next/dist/es/i18nInstance.js +1 -0
  81. package/build/ext/react-i18next/dist/es/initReactI18next.js +1 -0
  82. package/build/ext/react-i18next/dist/es/unescape.js +1 -1
  83. package/build/ext/react-i18next/dist/es/useTranslation.js +1 -1
  84. package/build/ext/react-i18next/dist/es/utils.js +1 -1
  85. package/build/ext/react-is/cjs/react-is.development.js +10 -0
  86. package/build/ext/react-is/cjs/react-is.production.js +10 -0
  87. package/build/ext/react-is/index.js +1 -0
  88. package/build/ext/scheduler/cjs/scheduler.development.js +10 -0
  89. package/build/ext/scheduler/cjs/scheduler.production.min.js +10 -0
  90. package/build/ext/scheduler/index.js +1 -0
  91. package/build/ext/styled-components/dist/styled-components.browser.esm.js +1 -0
  92. package/build/ext/tslib/tslib.es6.mjs.js +1 -1
  93. package/build/ext/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +10 -0
  94. package/build/ext/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +10 -0
  95. package/build/ext/use-sync-external-store/shim/index.js +1 -0
  96. package/build/index.d.ts +0 -5
  97. package/build/index.js +1 -1
  98. package/build/models/base.d.ts +4 -0
  99. package/build/models/base.js +1 -0
  100. package/build/models/button/index.js +1 -1
  101. package/build/models/category/index.d.ts +5 -0
  102. package/build/models/image/index.d.ts +2 -2
  103. package/build/models/image/index.js +1 -1
  104. package/build/models/index.d.ts +5 -16
  105. package/build/models/index.js +1 -1
  106. package/build/models/loyalty-customer-info/index.d.ts +7 -7
  107. package/build/models/loyalty-customer-info/index.js +1 -1
  108. package/build/models/loyalty-program-earning-method/index.d.ts +30 -16
  109. package/build/models/loyalty-program-earning-method/index.js +1 -1
  110. package/build/models/loyalty-program-point-history/index.d.ts +3 -3
  111. package/build/models/loyalty-program-point-history/index.js +1 -1
  112. package/build/models/loyalty-program-spending-method/index.d.ts +20 -7
  113. package/build/models/loyalty-program-spending-method/index.js +1 -1
  114. package/build/models/loyalty-widget/header/header-background/index.d.ts +2 -1
  115. package/build/models/loyalty-widget/header/header-background/index.js +1 -1
  116. package/build/models/loyalty-widget/header/index.d.ts +1 -1
  117. package/build/models/loyalty-widget/header/index.js +1 -1
  118. package/build/models/loyalty-widget/header-background/index.d.ts +9 -0
  119. package/build/models/loyalty-widget/index.d.ts +2 -2
  120. package/build/models/loyalty-widget/index.js +1 -1
  121. package/build/models/loyalty-widget/settings/index.js +1 -1
  122. package/build/models/types/index.d.ts +36 -13
  123. package/build/models/types/index.js +1 -1
  124. package/build/renderer/components/button/index.js +1 -1
  125. package/build/renderer/components/button/style.d.ts +0 -1
  126. package/build/renderer/components/button/style.js +1 -1
  127. package/build/renderer/components/loyalty-method-card/index.d.ts +1 -2
  128. package/build/renderer/components/loyalty-method-card/index.js +1 -1
  129. package/build/renderer/components/loyalty-method-card/style.js +1 -1
  130. package/build/renderer/components/section-title/index.js +1 -1
  131. package/build/renderer/components/section-title/style.js +1 -1
  132. package/build/renderer/components/style/typography.d.ts +1 -3
  133. package/build/renderer/components/style/typography.js +1 -1
  134. package/build/renderer/index.js +1 -1
  135. package/build/renderer/screens/credit-earning-methods-screen/index.js +1 -1
  136. package/build/renderer/screens/credit-earning-methods-screen/style.js +1 -1
  137. package/build/renderer/screens/credit-history-screen/index.js +1 -1
  138. package/build/renderer/screens/credit-history-screen/style.d.ts +1 -3
  139. package/build/renderer/screens/credit-history-screen/style.js +1 -1
  140. package/build/renderer/screens/credit-spending-methods-screen/index.js +1 -1
  141. package/build/renderer/screens/credit-spending-methods-screen/style.d.ts +1 -3
  142. package/build/renderer/screens/credit-spending-methods-screen/style.js +1 -1
  143. package/build/renderer/screens/loyalty-level-screen/index.js +1 -1
  144. package/build/renderer/screens/loyalty-level-screen/style.d.ts +2 -6
  145. package/build/renderer/screens/loyalty-level-screen/style.js +1 -1
  146. package/build/renderer/screens/main-screen/earning-methods-section/index.d.ts +0 -1
  147. package/build/renderer/screens/main-screen/earning-methods-section/index.js +1 -1
  148. package/build/renderer/screens/main-screen/header/auth-user-section/index.js +1 -1
  149. package/build/renderer/screens/main-screen/header/auth-user-section/style.js +1 -1
  150. package/build/renderer/screens/main-screen/header/index.js +1 -1
  151. package/build/renderer/screens/main-screen/header/logo-section/index.js +1 -1
  152. package/build/renderer/screens/main-screen/header/logo-section/style.d.ts +1 -3
  153. package/build/renderer/screens/main-screen/header/logo-section/style.js +1 -1
  154. package/build/renderer/screens/main-screen/header/style.d.ts +5 -11
  155. package/build/renderer/screens/main-screen/header/style.js +1 -1
  156. package/build/renderer/screens/main-screen/header/title-section/index.js +1 -1
  157. package/build/renderer/screens/main-screen/header/title-section/style.js +1 -1
  158. package/build/renderer/screens/main-screen/header/user-logged-section/index.js +1 -1
  159. package/build/renderer/screens/main-screen/header/user-logged-section/style.js +1 -1
  160. package/build/renderer/screens/main-screen/index.js +1 -1
  161. package/build/renderer/screens/main-screen/program-info-section/index.js +1 -1
  162. package/build/renderer/screens/main-screen/program-info-section/style.d.ts +3 -11
  163. package/build/renderer/screens/main-screen/program-info-section/style.js +1 -1
  164. package/build/renderer/screens/main-screen/spending-methods-section/dynamic-slider.js +1 -1
  165. package/build/renderer/screens/main-screen/spending-methods-section/index.d.ts +0 -1
  166. package/build/renderer/screens/main-screen/spending-methods-section/index.js +1 -1
  167. package/build/renderer/screens/main-screen/style.js +1 -1
  168. package/build/renderer/style.d.ts +2 -17
  169. package/build/renderer/style.js +1 -1
  170. package/build/renderer/utils/i18n.js +1 -1
  171. package/build/renderer/utils/locales/en.json.js +1 -1
  172. package/build/renderer/utils/locales/tr.json.js +1 -1
  173. package/build/renderer/utils/loyalty-details.js +1 -1
  174. package/build/utils.d.ts +4 -6
  175. package/build/utils.js +1 -1
  176. package/package.json +13 -26
  177. package/build/assets/icons/arrow-right.d.ts +0 -2
  178. package/build/assets/icons/arrow-right.js +0 -1
  179. package/build/ext/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -1
  180. package/build/ext/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -1
  181. package/build/ext/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -1
  182. package/build/ext/@babel/runtime/helpers/esm/classCallCheck.js +0 -1
  183. package/build/ext/@babel/runtime/helpers/esm/createClass.js +0 -1
  184. package/build/ext/@babel/runtime/helpers/esm/defineProperty.js +0 -1
  185. package/build/ext/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -1
  186. package/build/ext/@babel/runtime/helpers/esm/inherits.js +0 -1
  187. package/build/ext/@babel/runtime/helpers/esm/iterableToArray.js +0 -1
  188. package/build/ext/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -1
  189. package/build/ext/@babel/runtime/helpers/esm/nonIterableRest.js +0 -1
  190. package/build/ext/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -1
  191. package/build/ext/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -1
  192. package/build/ext/@babel/runtime/helpers/esm/slicedToArray.js +0 -1
  193. package/build/ext/@babel/runtime/helpers/esm/toArray.js +0 -1
  194. package/build/ext/@babel/runtime/helpers/esm/toPrimitive.js +0 -1
  195. package/build/ext/@babel/runtime/helpers/esm/toPropertyKey.js +0 -1
  196. package/build/ext/@babel/runtime/helpers/esm/typeof.js +0 -1
  197. package/build/ext/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -1
  198. package/build/injector.d.ts +0 -5
  199. package/build/models/common/index.d.ts +0 -21
  200. package/build/models/common/index.js +0 -1
  201. package/build/models/mini-mode/index.d.ts +0 -7
  202. package/build/models/mini-mode/index.js +0 -1
  203. package/build/renderer/components/count-up/index.d.ts +0 -7
  204. package/build/renderer/components/count-up/index.js +0 -1
  205. package/build/renderer/components/flexible-value-container/index.d.ts +0 -16
  206. package/build/renderer/components/flexible-value-container/index.js +0 -1
  207. package/build/renderer/components/mini-mode-button/index.d.ts +0 -7
  208. package/build/renderer/components/mini-mode-button/index.js +0 -1
  209. package/build/renderer/components/mini-mode-button/style.d.ts +0 -6
  210. package/build/renderer/components/mini-mode-button/style.js +0 -1
  211. package/build/renderer/components/mini-mode-description/index.d.ts +0 -7
  212. package/build/renderer/components/mini-mode-description/index.js +0 -1
  213. package/build/renderer/components/mini-mode-description/style.d.ts +0 -3
  214. package/build/renderer/components/mini-mode-description/style.js +0 -1
  215. package/build/renderer/components/style/icon-wrapper.d.ts +0 -4
  216. package/build/renderer/components/style/icon-wrapper.js +0 -1
  217. package/build/storefront-widget-script-injector.iife.js +0 -68
  218. package/build/storefront-widget-script-injector.iife.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/loyalty-widget-renderer",
3
- "version": "1.0.0-alpha.60",
3
+ "version": "1.0.0-alpha.7",
4
4
  "description": "",
5
5
  "author": "ucy",
6
6
  "license": "ISC",
@@ -24,33 +24,22 @@
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",
28
- "serve": "npm run build && npx serve build -p 3000 --cors",
29
- "lint:fix": "eslint './src/**/*.{ts,tsx}' --fix"
27
+ "dev": "parcel app/index.html --port 3000"
30
28
  },
31
29
  "devDependencies": {
32
- "@eslint/eslintrc": "^3.3.3",
33
- "@eslint/js": "^9.39.1",
34
30
  "@rollup/plugin-commonjs": "^22.0.0",
35
31
  "@rollup/plugin-json": "^4.1.0",
36
32
  "@rollup/plugin-node-resolve": "^13.3.0",
37
- "@trivago/prettier-plugin-sort-imports": "^6.0.0",
38
33
  "@types/lodash": "^4.14.191",
39
34
  "@types/node": "^12.0.0",
40
35
  "@types/react": "^17 || ^18",
41
36
  "@types/react-dom": "^17 || ^18",
37
+ "styled-components": "^5.3.3",
42
38
  "@types/styled-components": "5.1.26",
43
39
  "@types/uuid": "^9.0.0",
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",
40
+ "mobx": "^6.1.3",
51
41
  "mobx-react": "^7.6.0",
52
42
  "parcel": "^2.12.0",
53
- "prettier": "^3.7.4",
54
43
  "react": "^17 || ^18",
55
44
  "react-dom": "^17 || ^18",
56
45
  "rollup": "^2.75.6",
@@ -60,21 +49,19 @@
60
49
  "rollup-plugin-rename-node-modules": "^1.2.0",
61
50
  "rollup-plugin-terser": "^7.0.2",
62
51
  "rollup-plugin-typescript2": "^0.36.0",
63
- "styled-components": "^5.3.3",
64
52
  "ts-patch": "^3.3.0",
65
53
  "typescript": "^5.9.3",
66
54
  "typescript-transform-paths": "^3.5.5"
67
55
  },
68
- "peerDependencies": {
69
- "mobx": "^6.7.0",
56
+ "peerDependencies": {},
57
+ "dependencies": {
58
+ "uuidv4": "^6.2.13",
59
+ "i18next": "^25.6.3",
60
+ "react-i18next": "^16.3.5",
61
+ "mobx": "^6.1.3",
70
62
  "mobx-react": "^7.6.0",
71
- "react": "^17 || ^18",
72
- "react-dom": "^17 || ^18",
63
+ "react": "^18.2.0",
64
+ "react-dom": "^18.2.0",
73
65
  "styled-components": "^5.3.3"
74
- },
75
- "dependencies": {
76
- "i18next": "^21.6.12",
77
- "react-i18next": "^11.15.5",
78
- "uuidv4": "^6.2.13"
79
66
  }
80
- }
67
+ }
@@ -1,2 +0,0 @@
1
- import React from "react";
2
- export declare const ArrowRight: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -1 +0,0 @@
1
- import e from"react";var t=function(t){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},e.createElement("path",{d:"M2.91797 6.99935H11.0846M11.0846 6.99935L7.0013 2.91602M11.0846 6.99935L7.0013 11.0827",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}))};export{t as ArrowRight};
@@ -1 +0,0 @@
1
- function r(r,n){(null==n||n>r.length)&&(n=r.length);for(var t=0,e=Array(n);t<n;t++)e[t]=r[t];return e}export{r as default};
@@ -1 +0,0 @@
1
- function r(r){if(Array.isArray(r))return r}export{r as default};
@@ -1 +0,0 @@
1
- function e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}export{e as default};
@@ -1 +0,0 @@
1
- function a(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")}export{a as default};
@@ -1 +0,0 @@
1
- import e from"./toPropertyKey.js";function r(r,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,e(n.key),n)}}function t(e,t,o){return t&&r(e.prototype,t),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}export{t as default};
@@ -1 +0,0 @@
1
- import e from"./toPropertyKey.js";function r(r,t,o){return(t=e(t))in r?Object.defineProperty(r,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[t]=o,r}export{r as default};
@@ -1 +0,0 @@
1
- function t(e){return t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t(e)}export{t as default};
@@ -1 +0,0 @@
1
- import e from"./setPrototypeOf.js";function t(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),o&&e(t,o)}export{t as default};
@@ -1 +0,0 @@
1
- function r(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}export{r as default};
@@ -1 +0,0 @@
1
- function l(l,r){var t=null==l?null:"undefined"!=typeof Symbol&&l[Symbol.iterator]||l["@@iterator"];if(null!=t){var e,n,u,a,f=[],i=!0,o=!1;try{if(u=(t=t.call(l)).next,0===r){if(Object(t)!==t)return;i=!1}else for(;!(i=(e=u.call(t)).done)&&(f.push(e.value),f.length!==r);i=!0);}catch(l){o=!0,n=l}finally{try{if(!i&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(o)throw n}}return f}}export{l as default};
@@ -1 +0,0 @@
1
- function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}export{t as default};
@@ -1 +0,0 @@
1
- import r from"./typeof.js";import o from"./assertThisInitialized.js";function t(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)}export{t as default};
@@ -1 +0,0 @@
1
- function t(e,o){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t(e,o)}export{t as default};
@@ -1 +0,0 @@
1
- import r from"./arrayWithHoles.js";import o from"./iterableToArrayLimit.js";import t from"./unsupportedIterableToArray.js";import e from"./nonIterableRest.js";function a(a,i){return r(a)||o(a,i)||t(a,i)||e()}export{a as default};
@@ -1 +0,0 @@
1
- import r from"./arrayWithHoles.js";import o from"./iterableToArray.js";import t from"./unsupportedIterableToArray.js";import e from"./nonIterableRest.js";function a(a){return r(a)||o(a)||t(a)||e()}export{a as default};
@@ -1 +0,0 @@
1
- import r from"./typeof.js";function t(t,e){if("object"!=r(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}export{t as default};
@@ -1 +0,0 @@
1
- import r from"./typeof.js";import t from"./toPrimitive.js";function o(o){var i=t(o,"string");return"symbol"==r(i)?i:i+""}export{o as default};
@@ -1 +0,0 @@
1
- function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o(t)}export{o as default};
@@ -1 +0,0 @@
1
- import r from"./arrayLikeToArray.js";function t(t,e){if(t){if("string"==typeof t)return r(t,e);var o={}.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(t,e):void 0}}export{t as default};
@@ -1,5 +0,0 @@
1
- import LoyaltyWidgetRenderer from "./renderer";
2
- import { IkasLoyaltyWidgetConfig } from "./models/types";
3
- export declare function startIkasLoyaltyWidget(config?: IkasLoyaltyWidgetConfig): void;
4
- export { LoyaltyWidgetRenderer };
5
- export type { IkasLoyaltyWidgetConfig };
@@ -1,21 +0,0 @@
1
- import { LoyaltyProgramFilterTypeEnum, PeriodTypeEnum } from "../types";
2
- export declare class LoyaltyProgramPointLimit {
3
- maxPointLimit: number | null;
4
- minPointLimit: number | null;
5
- constructor(data?: Partial<LoyaltyProgramPointLimit>);
6
- }
7
- export declare class LoyaltyProgramFilter {
8
- type: LoyaltyProgramFilterTypeEnum;
9
- idList: string[];
10
- constructor(data?: Partial<LoyaltyProgramFilter>);
11
- }
12
- export declare class LoyaltyProgramMethodTranslation {
13
- description: string;
14
- locale: string;
15
- constructor(data?: Partial<LoyaltyProgramMethodTranslation>);
16
- }
17
- export declare class LoyaltyProgramPeriod {
18
- period: string | null;
19
- periodType: PeriodTypeEnum | null;
20
- constructor(data?: Partial<LoyaltyProgramPeriod>);
21
- }
@@ -1 +0,0 @@
1
- import{makeObservable as i,observable as t}from"mobx";import{LoyaltyProgramFilterTypeEnum as o}from"../types/index.js";var n=function(o){void 0===o&&(o={}),this.maxPointLimit=o.maxPointLimit||null,this.minPointLimit=o.minPointLimit||null,i(this,{maxPointLimit:t,minPointLimit:t})},e=function(n){void 0===n&&(n={}),this.type=n.type||o.CATEGORY,this.idList=n.idList||[],i(this,{type:t,idList:t})},s=function(o){void 0===o&&(o={}),this.description=o.description||"",this.locale=o.locale||"",i(this,{description:t,locale:t})},p=function(o){void 0===o&&(o={}),this.period=o.period||null,this.periodType=o.periodType||null,i(this,{period:t,periodType:t})};export{e as LoyaltyProgramFilter,s as LoyaltyProgramMethodTranslation,p as LoyaltyProgramPeriod,n as LoyaltyProgramPointLimit};
@@ -1,7 +0,0 @@
1
- import { LoyaltyWidgetImage } from "models/image";
2
- export declare class MiniMode {
3
- logo: LoyaltyWidgetImage;
4
- emoji?: string | null;
5
- bgColor?: string | null;
6
- constructor(data: Partial<MiniMode>);
7
- }
@@ -1 +0,0 @@
1
- import{makeObservable as o,observable as i}from"mobx";import{LoyaltyWidgetImage as m}from"../image/index.js";var r=function(r){this.logo=r.logo?new m(r.logo):new m({}),this.emoji=r.emoji||"🚀",this.bgColor=r.bgColor||"#FFF",o(this,{logo:i,emoji:i,bgColor:i})};export{r as MiniMode};
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- type Props = {
3
- end: number;
4
- duration?: number;
5
- };
6
- declare const CountUp: React.FC<Props>;
7
- export default CountUp;
@@ -1 +0,0 @@
1
- import r,{useState as n,useRef as t,useEffect as e}from"react";var u=function(u){var a=u.end,c=u.duration,i=void 0===c?1e3:c,o=n(a),m=o[0],l=o[1],f=t(null),v=t(a);return e(function(){var r;v.current=m,f.current=null;var n=function(t){f.current||(f.current=t);var e=Math.min((t-f.current)/i,1),u=1-Math.pow(1-e,4),c=Math.round(v.current+(a-v.current)*u);l(c),e<1&&(r=requestAnimationFrame(n))};return r=requestAnimationFrame(n),function(){return cancelAnimationFrame(r)}},[a,i]),r.createElement(r.Fragment,null,m)};export{u as default};
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- type FlexibleValueContainerProps = {
3
- children: React.ReactNode | ((isWrapped: boolean) => React.ReactNode);
4
- gap?: number;
5
- className?: string;
6
- style?: React.CSSProperties;
7
- };
8
- /**
9
- * A container that switches flex-direction to 'column' if its children wrap
10
- * when in 'row' layout.
11
- *
12
- * Uses a hidden clone ("Detector") to constantly monitor if a standard row layout
13
- * would wrap given the current width constraint.
14
- */
15
- export declare const FlexibleValueContainer: React.FC<FlexibleValueContainerProps>;
16
- export {};
@@ -1 +0,0 @@
1
- import{__makeTemplateObject as n}from'./../../../ext/tslib/tslib.es6.mjs.js';import e,{useRef as t,useState as i,useLayoutEffect as r}from"react";import o from"styled-components";var a,s,p=o.div(a||(a=n(["\n display: flex;\n flex-direction: ",";\n align-items: ",";\n gap: ","px;\n flex-wrap: wrap;\n position: relative;\n width: 100%; /* Ensure it takes available width to properly constrain the detector */\n"],["\n display: flex;\n flex-direction: ",";\n align-items: ",";\n gap: ","px;\n flex-wrap: wrap;\n position: relative;\n width: 100%; /* Ensure it takes available width to properly constrain the detector */\n"])),function(n){return n.$isWrapped?"column":"row"},function(n){return n.$isWrapped?"flex-start":"center"},function(n){return n.$gap}),l=o.div(s||(s=n(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: ","px;\n align-items: center;\n\n /* Positioning to match the container's width constraint */\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n\n /* Hide from view and interaction */\n visibility: hidden;\n pointer-events: none;\n z-index: -100;\n opacity: 0;\n"],["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: ","px;\n align-items: center;\n\n /* Positioning to match the container's width constraint */\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n\n /* Hide from view and interaction */\n visibility: hidden;\n pointer-events: none;\n z-index: -100;\n opacity: 0;\n"])),function(n){return n.$gap}),c=function(n){var o=n.children,a=n.gap,s=void 0===a?6:a,c=n.className,d=n.style,f=t(null),u=i(!1),m=u[0],v=u[1];r(function(){var n=function(){if(f.current){var n=f.current,e=Array.from(n.children);if(e.length<2)v(!1);else{var t=e[0].offsetTop,i=e[e.length-1].offsetTop;v(i>t+2)}}};n();var e=new ResizeObserver(n);return f.current&&e.observe(f.current),function(){return e.disconnect()}},[o]);var w="function"==typeof o?o(m):o,h="function"==typeof o?o(!1):o;return e.createElement(p,{className:c,style:d,$isWrapped:m,$gap:s},w,e.createElement(l,{ref:f,$gap:s,"aria-hidden":"true"},h))};export{c as FlexibleValueContainer};
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- import { LoyaltyWidgetViewModel } from "models";
3
- type Props = {
4
- viewModel: LoyaltyWidgetViewModel;
5
- };
6
- declare const MiniModeButton: React.FC<Props>;
7
- export default MiniModeButton;
@@ -1 +0,0 @@
1
- import{observer as o}from"mobx-react";import e from"react";import{ImageTypeEnum as t}from"../../../models/loyalty-widget/types/index.js";import{WidgetMode as r}from"../../../models/types/index.js";import{Container as l,Logo as i,Emoji as m}from"./style.js";var a=o(function(o){var a=o.viewModel,s=a.loyaltyWidget.miniMode,n=s.logo.type===t.SHOW&&!!s.logo.src;return e.createElement(l,{$hasImg:n,$bgColor:s.bgColor||void 0,onClick:function(o){o.stopPropagation(),a.setWidgetMode(r.WIDGET_MODE)}},n?e.createElement(i,{src:s.logo.src,alt:"Loyalty Widget"}):e.createElement(m,null,s.emoji))});export{a as default};
@@ -1,6 +0,0 @@
1
- export declare const Container: import("styled-components").StyledComponent<"div", any, {
2
- $hasImg: boolean;
3
- $bgColor?: string;
4
- }, never>;
5
- export declare const Logo: import("styled-components").StyledComponent<"img", any, {}, never>;
6
- export declare const Emoji: import("styled-components").StyledComponent<"span", any, {}, never>;
@@ -1 +0,0 @@
1
- import{__makeTemplateObject as n}from'./../../../ext/tslib/tslib.es6.mjs.js';import e,{css as t}from"styled-components";var r,o,i,s,p=e.div(o||(o=n(["\n display: flex;\n width: 60px;\n height: 60px;\n padding: ",";\n justify-content: center;\n align-items: center;\n border-radius: 60px;\n overflow: hidden;\n\n box-shadow:\n 0 12px 16px -4px rgba(16, 24, 40, 0.08),\n 0 4px 6px -2px rgba(19, 19, 24, 0.03);\n cursor: pointer;\n transition: transform 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.05);\n }\n\n ","\n"],["\n display: flex;\n width: 60px;\n height: 60px;\n padding: ",";\n justify-content: center;\n align-items: center;\n border-radius: 60px;\n overflow: hidden;\n\n box-shadow:\n 0 12px 16px -4px rgba(16, 24, 40, 0.08),\n 0 4px 6px -2px rgba(19, 19, 24, 0.03);\n cursor: pointer;\n transition: transform 0.2s ease-in-out;\n\n &:hover {\n transform: scale(1.05);\n }\n\n ","\n"])),function(n){return n.$hasImg?"0":"14px"},function(e){return!e.$hasImg&&t(r||(r=n(["\n background: ",";\n "],["\n background: ",";\n "])),e.$bgColor||"#000")}),a=e.img(i||(i=n(["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"],["\n width: 100%;\n height: 100%;\n object-fit: cover;\n"]))),d=e.span(s||(s=n(["\n font-size: 32px;\n line-height: 1;\n"],["\n font-size: 32px;\n line-height: 1;\n"])));export{p as Container,d as Emoji,a as Logo};
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- import { LoyaltyWidgetViewModel } from "models";
3
- type Props = {
4
- viewModel: LoyaltyWidgetViewModel;
5
- };
6
- declare const MiniModeDescription: React.FC<Props>;
7
- export default MiniModeDescription;
@@ -1 +0,0 @@
1
- import e from"react";import{observer as o}from"mobx-react";import{WidgetMode as t}from"../../../models/types/index.js";import{XClose as i}from"../../../assets/icons/x-close.js";import{Container as r,CloseButton as a,Text as n}from"./style.js";var l=o(function(o){var l=o.viewModel;return l.isMiniModeDescriptionClosed?null:e.createElement(r,{onClick:function(e){e.stopPropagation(),l.setWidgetMode(t.WIDGET_MODE)}},e.createElement(a,{onClick:function(e){e.stopPropagation(),l.closeMiniModeDescription()}},e.createElement(i,null)),e.createElement(n,null,"Merhaba! 👋 Sadakat programın ve destek ekibimiz burada. Puanlarına göz at veya ekibimizle konuş."))});export{l as default};
@@ -1,3 +0,0 @@
1
- export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- export declare const CloseButton: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const Text: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1 +0,0 @@
1
- import{__makeTemplateObject as n}from'./../../../ext/tslib/tslib.es6.mjs.js';import p from"styled-components";import{textMD as r}from"../style/typography.js";var o,x,a,i=p.div(o||(o=n(["\n display: flex;\n width: 432px;\n max-width: calc(100vw - 40px);\n padding: 20px;\n flex-direction: column;\n align-items: flex-start;\n gap: 24px;\n border-radius: 16px;\n border: 1px solid #ECECED;\n background: #FFF;\n box-shadow: 0 22px 6px 0 rgba(0, 0, 0, 0.00), 0 14px 6px 0 rgba(0, 0, 0, 0.01),\n 0 8px 5px 0 rgba(0, 0, 0, 0.05), 0 4px 4px 0 rgba(0, 0, 0, 0.09),\n 0 1px 2px 0 rgba(0, 0, 0, 0.10);\n color: #121926;\n position: relative;\n cursor: pointer;\n margin-bottom: 16px; /* 16px space between description and button */\n"],["\n display: flex;\n width: 432px;\n max-width: calc(100vw - 40px);\n padding: 20px;\n flex-direction: column;\n align-items: flex-start;\n gap: 24px;\n border-radius: 16px;\n border: 1px solid #ECECED;\n background: #FFF;\n box-shadow: 0 22px 6px 0 rgba(0, 0, 0, 0.00), 0 14px 6px 0 rgba(0, 0, 0, 0.01),\n 0 8px 5px 0 rgba(0, 0, 0, 0.05), 0 4px 4px 0 rgba(0, 0, 0, 0.09),\n 0 1px 2px 0 rgba(0, 0, 0, 0.10);\n color: #121926;\n position: relative;\n cursor: pointer;\n margin-bottom: 16px; /* 16px space between description and button */\n"]))),e=p.div(x||(x=n(["\n position: absolute;\n top: -12px;\n right: -12px;\n cursor: pointer;\n display: inline-flex;\n padding: 6px;\n align-items: center;\n gap: 10px;\n border-radius: 40px;\n background: #F6F6F6;\n box-shadow: 0 22px 6px 0 rgba(0, 0, 0, 0.00), 0 14px 6px 0 rgba(0, 0, 0, 0.01),\n 0 8px 5px 0 rgba(0, 0, 0, 0.05), 0 4px 4px 0 rgba(0, 0, 0, 0.09),\n 0 1px 2px 0 rgba(0, 0, 0, 0.10);\n color: #4B5565;\n\n &:hover {\n color: #667085;\n }\n"],["\n position: absolute;\n top: -12px;\n right: -12px;\n cursor: pointer;\n display: inline-flex;\n padding: 6px;\n align-items: center;\n gap: 10px;\n border-radius: 40px;\n background: #F6F6F6;\n box-shadow: 0 22px 6px 0 rgba(0, 0, 0, 0.00), 0 14px 6px 0 rgba(0, 0, 0, 0.01),\n 0 8px 5px 0 rgba(0, 0, 0, 0.05), 0 4px 4px 0 rgba(0, 0, 0, 0.09),\n 0 1px 2px 0 rgba(0, 0, 0, 0.10);\n color: #4B5565;\n\n &:hover {\n color: #667085;\n }\n"]))),t=p.div(a||(a=n(["\n ",";\n color: #121926;\n"],["\n ",";\n color: #121926;\n"])),r);export{e as CloseButton,i as Container,t as Text};
@@ -1,4 +0,0 @@
1
- import { WidgetIconTypeEnum } from "models/loyalty-widget/types";
2
- export declare const iconWrapperShape: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<{
3
- $iconType: WidgetIconTypeEnum;
4
- }, any>>;
@@ -1 +0,0 @@
1
- import{__makeTemplateObject as n}from'./../../../ext/tslib/tslib.es6.mjs.js';import{css as e}from"styled-components";import{WidgetIconTypeEnum as t}from"../../../models/loyalty-widget/types/index.js";var i,r=e(i||(i=n(["\n display: flex;\n width: ",";\n height: ",";\n justify-content: center;\n align-items: center;\n border-radius: ",";\n"],["\n display: flex;\n width: ",";\n height: ",";\n justify-content: center;\n align-items: center;\n border-radius: ",";\n"])),function(n){return n.$iconType===t.ILLUSTRATION?"40px":"36px"},function(n){return n.$iconType===t.ILLUSTRATION?"40px":"36px"},function(n){return n.$iconType===t.ILLUSTRATION?"40px":"8px"});export{r as iconWrapperShape};