@ubnt/store.core 9.71.0-beta.5 → 10.0.0-beta.0

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 (1519) hide show
  1. package/CHANGELOG.md +99 -5063
  2. package/lib/_virtual/_virtual_multi-entry.js +110 -126
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +110 -126
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/apis/smartcat.js +124 -133
  7. package/lib/apis/smartcat.js.map +1 -1
  8. package/lib/apis/smartcat.mjs +124 -133
  9. package/lib/apis/smartcat.mjs.map +1 -1
  10. package/lib/assets/attention.svg +5 -5
  11. package/lib/assets/attention2.svg +5 -5
  12. package/lib/assets/box.svg +3 -4
  13. package/lib/assets/close2.svg +2 -3
  14. package/lib/assets/hand.svg +5 -4
  15. package/lib/assets/icons/wizard/index.d.ts +0 -4
  16. package/lib/assets/icons/wizard/index.js +0 -4
  17. package/lib/assets/icons/wizard/index.js.map +1 -1
  18. package/lib/assets/icons/wizard/index.mjs +0 -4
  19. package/lib/assets/icons/wizard/index.mjs.map +1 -1
  20. package/lib/assets/icons/wizard/minus.svg.js +1 -1
  21. package/lib/assets/icons/wizard/minus.svg.mjs +2 -2
  22. package/lib/assets/icons/wizard/plus.svg.js +1 -1
  23. package/lib/assets/icons/wizard/plus.svg.mjs +2 -2
  24. package/lib/assets/keyFeatures/box.svg.js +1 -1
  25. package/lib/assets/keyFeatures/box.svg.mjs +2 -2
  26. package/lib/assets/keyFeatures/reload.svg.js +1 -1
  27. package/lib/assets/keyFeatures/reload.svg.mjs +2 -2
  28. package/lib/assets/minus.svg +1 -14
  29. package/lib/assets/minus2.svg +3 -1
  30. package/lib/assets/minus3.svg +13 -2
  31. package/lib/assets/minus4.svg +8 -8
  32. package/lib/assets/minus5.svg +8 -8
  33. package/lib/assets/payment-card.svg +4 -11
  34. package/lib/assets/plus.svg +1 -22
  35. package/lib/assets/plus2.svg +22 -4
  36. package/lib/assets/plus3.svg +16 -1
  37. package/lib/assets/plus4.svg +15 -2
  38. package/lib/assets/reload.svg +2 -2
  39. package/lib/assets/reload2.svg +2 -2
  40. package/lib/assets/ucgFiber.jpg +0 -0
  41. package/lib/assets/ucgFiber2.jpg +0 -0
  42. package/lib/assets/ucgMax.jpg +0 -0
  43. package/lib/assets/ucgMax2.jpg +0 -0
  44. package/lib/assets/ucgUltra.jpg +0 -0
  45. package/lib/assets/ucgUltra2.jpg +0 -0
  46. package/lib/assets/udmProSpecial.jpg +0 -0
  47. package/lib/assets/udmProSpecial2.jpg +0 -0
  48. package/lib/components/Header/AccountMenu/megaphone.http.service.js +33 -41
  49. package/lib/components/Header/AccountMenu/megaphone.http.service.js.map +1 -1
  50. package/lib/components/Header/AccountMenu/megaphone.http.service.mjs +33 -41
  51. package/lib/components/Header/AccountMenu/megaphone.http.service.mjs.map +1 -1
  52. package/lib/components/{CartIcon → Header/CartIcon}/CartIcon.js +6 -6
  53. package/lib/components/Header/CartIcon/CartIcon.js.map +1 -0
  54. package/lib/components/{CartIcon → Header/CartIcon}/CartIcon.mjs +6 -6
  55. package/lib/components/Header/CartIcon/CartIcon.mjs.map +1 -0
  56. package/lib/components/{CartIcon → Header/CartIcon}/CartIcon.styles.js +1 -1
  57. package/lib/components/Header/CartIcon/CartIcon.styles.js.map +1 -0
  58. package/lib/components/{CartIcon → Header/CartIcon}/CartIcon.styles.mjs +1 -1
  59. package/lib/components/Header/CartIcon/CartIcon.styles.mjs.map +1 -0
  60. package/lib/components/Header/CartModalV2/Item/Item.js +6 -6
  61. package/lib/components/Header/CartModalV2/Item/Item.mjs +4 -4
  62. package/lib/components/Header/Header.js +0 -4
  63. package/lib/components/Header/Header.js.map +1 -1
  64. package/lib/components/Header/Header.mjs +0 -4
  65. package/lib/components/Header/Header.mjs.map +1 -1
  66. package/lib/components/Header/Header.stories.d.ts +2 -3
  67. package/lib/components/Header/Header.styles.d.ts +1 -1
  68. package/lib/components/Header/Header.styles.js +2 -2
  69. package/lib/components/Header/Header.styles.js.map +1 -1
  70. package/lib/components/Header/Header.styles.mjs +2 -2
  71. package/lib/components/Header/Header.styles.mjs.map +1 -1
  72. package/lib/components/Header/Header.types.d.ts +0 -2
  73. package/lib/components/Header/Header.types.js.map +1 -1
  74. package/lib/components/Header/Header.types.mjs.map +1 -1
  75. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.d.ts +0 -1
  76. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +1 -2
  77. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js.map +1 -1
  78. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs +1 -2
  79. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.mjs.map +1 -1
  80. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.types.d.ts +1 -3
  81. package/lib/components/Header/ProHeader/ProHeader.d.ts +1 -1
  82. package/lib/components/MicrositeBanner/MicrositeBanner.d.ts +2 -0
  83. package/lib/components/{Banner/Banner.js → MicrositeBanner/MicrositeBanner.js} +11 -11
  84. package/lib/components/MicrositeBanner/MicrositeBanner.js.map +1 -0
  85. package/lib/components/{Banner/Banner.mjs → MicrositeBanner/MicrositeBanner.mjs} +4 -4
  86. package/lib/components/MicrositeBanner/MicrositeBanner.mjs.map +1 -0
  87. package/lib/components/{Banner/Banner.styles.js → MicrositeBanner/MicrositeBanner.styles.js} +1 -1
  88. package/lib/components/MicrositeBanner/MicrositeBanner.styles.js.map +1 -0
  89. package/lib/components/{Banner/Banner.styles.mjs → MicrositeBanner/MicrositeBanner.styles.mjs} +1 -1
  90. package/lib/components/MicrositeBanner/MicrositeBanner.styles.mjs.map +1 -0
  91. package/lib/components/{Banner/Banner.types.d.ts → MicrositeBanner/MicrositeBanner.types.d.ts} +1 -1
  92. package/lib/components/MicrositeBanner/index.d.ts +1 -0
  93. package/lib/components/MicrositeBanner/index.js +6 -0
  94. package/lib/components/MicrositeBanner/index.mjs +3 -0
  95. package/lib/components/MicrositeProgressCircle/MicrositeProgressCircle.d.ts +2 -0
  96. package/lib/components/{ProgressCircle/ProgressCircle.js → MicrositeProgressCircle/MicrositeProgressCircle.js} +3 -3
  97. package/lib/components/MicrositeProgressCircle/MicrositeProgressCircle.js.map +1 -0
  98. package/lib/components/{ProgressCircle/ProgressCircle.mjs → MicrositeProgressCircle/MicrositeProgressCircle.mjs} +3 -3
  99. package/lib/components/MicrositeProgressCircle/MicrositeProgressCircle.mjs.map +1 -0
  100. package/lib/components/MicrositeProgressCircle/MicrositeProgressCircle.stories.d.ts +5 -0
  101. package/lib/components/{ProgressCircle/ProgressCircle.types.d.ts → MicrositeProgressCircle/MicrositeProgressCircle.types.d.ts} +1 -1
  102. package/lib/components/MicrositeProgressCircle/index.d.ts +1 -0
  103. package/lib/components/MicrositeProgressCircle/index.js +6 -0
  104. package/lib/components/MicrositeProgressCircle/index.mjs +3 -0
  105. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.styles.d.ts +1 -1
  106. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.styles.js +3 -3
  107. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.styles.js.map +1 -1
  108. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.styles.mjs +3 -3
  109. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.styles.mjs.map +1 -1
  110. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +1 -1
  111. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.mjs +1 -1
  112. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgFiber.jpg.js +5 -5
  113. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgFiber.jpg.mjs +2 -2
  114. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
  115. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
  116. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
  117. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
  118. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  119. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  120. package/lib/components/ModelCompareV3/assets/Consoles/ucgFiber.jpg.js +1 -1
  121. package/lib/components/ModelCompareV3/assets/Consoles/ucgFiber.jpg.mjs +2 -2
  122. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
  123. package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
  124. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
  125. package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
  126. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  127. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  128. package/lib/components/ModelCompareV3/assets/hand.svg.js +1 -1
  129. package/lib/components/ModelCompareV3/assets/hand.svg.mjs +2 -2
  130. package/lib/components/ModelCompareV3/assets/minus.svg.js +1 -1
  131. package/lib/components/ModelCompareV3/assets/minus.svg.mjs +2 -2
  132. package/lib/components/ModelCompareV3/assets/payment-card.svg.js +1 -1
  133. package/lib/components/ModelCompareV3/assets/payment-card.svg.mjs +2 -2
  134. package/lib/components/ModelCompareV3/assets/reload.svg.js +1 -1
  135. package/lib/components/ModelCompareV3/assets/reload.svg.mjs +2 -2
  136. package/lib/components/ModelCompareV3/data/CloudGateways.js +12 -12
  137. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
  138. package/lib/components/ModelCompareV3/data/products/ucgFiber.js +1 -1
  139. package/lib/components/ModelCompareV3/data/products/ucgFiber.mjs +1 -1
  140. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  141. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  142. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
  143. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
  144. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  145. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  146. package/lib/components/ModelCompareV3/data/properties/dyingGaspSupport.js +1 -1
  147. package/lib/components/ModelCompareV3/data/properties/dyingGaspSupport.mjs +1 -1
  148. package/lib/components/ModelCompareV3/data/properties/hand.js +1 -1
  149. package/lib/components/ModelCompareV3/data/properties/hand.mjs +1 -1
  150. package/lib/components/ModelCompareV3/data/properties/paymentTerminalSupport.js +1 -1
  151. package/lib/components/ModelCompareV3/data/properties/paymentTerminalSupport.mjs +1 -1
  152. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  153. package/lib/components/ProductTechSpecs/ProductTechSpecs.d.ts +1 -1
  154. package/lib/components/ProductTechSpecs/ProductTechSpecs.js +55 -0
  155. package/lib/components/ProductTechSpecs/ProductTechSpecs.js.map +1 -0
  156. package/lib/components/ProductTechSpecs/ProductTechSpecs.mjs +53 -0
  157. package/lib/components/ProductTechSpecs/ProductTechSpecs.mjs.map +1 -0
  158. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +0 -1
  159. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.js +0 -6
  160. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.js.map +1 -1
  161. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.mjs +1 -6
  162. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.mjs.map +1 -1
  163. package/lib/components/ProductTechSpecs/index.js +8 -0
  164. package/lib/components/ProductTechSpecs/index.mjs +4 -0
  165. package/lib/components/QuantityInput/QuantityInput.js +2 -2
  166. package/lib/components/QuantityInput/QuantityInput.mjs +2 -2
  167. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  168. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  169. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  170. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  171. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  172. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  173. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  174. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  175. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  176. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  177. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  178. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  179. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  180. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  181. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  182. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  183. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  184. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  185. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  186. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  187. package/lib/components/ResourceCalculatorV1/translations/useResourceCalculatorTranslation.d.ts +2 -2
  188. package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
  189. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
  190. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  191. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  192. package/lib/components/index.d.ts +32 -38
  193. package/lib/components/index.js +98 -110
  194. package/lib/components/index.js.map +1 -1
  195. package/lib/components/index.mjs +98 -110
  196. package/lib/components/index.mjs.map +1 -1
  197. package/lib/constants/icons/generic/index.js +6 -6
  198. package/lib/constants/icons/generic/index.mjs +2 -2
  199. package/lib/constants/icons/generic/minus.svg.js +5 -5
  200. package/lib/constants/icons/generic/minus.svg.mjs +2 -2
  201. package/lib/constants/icons/generic/plus.svg.js +5 -5
  202. package/lib/constants/icons/generic/plus.svg.mjs +2 -2
  203. package/lib/constants/icons/index.d.ts +0 -1
  204. package/lib/constants/icons/index.js +0 -2
  205. package/lib/constants/icons/index.js.map +1 -1
  206. package/lib/constants/icons/index.mjs +0 -2
  207. package/lib/constants/icons/index.mjs.map +1 -1
  208. package/lib/constants/mixin.d.ts +0 -1
  209. package/lib/constants/mixin.js +0 -6
  210. package/lib/constants/mixin.js.map +1 -1
  211. package/lib/constants/mixin.mjs +1 -6
  212. package/lib/constants/mixin.mjs.map +1 -1
  213. package/lib/constants/shopify/keyFeatureIcons.js +2 -2
  214. package/lib/constants/shopify/keyFeatureIcons.js.map +1 -1
  215. package/lib/constants/shopify/keyFeatureIcons.mjs +2 -2
  216. package/lib/constants/shopify/keyFeatureIcons.mjs.map +1 -1
  217. package/lib/helpers/shopify/iconParsing.js.map +1 -1
  218. package/lib/helpers/shopify/iconParsing.mjs.map +1 -1
  219. package/lib/utils/index.d.ts +1 -3
  220. package/lib/utils/index.js +6 -10
  221. package/lib/utils/index.js.map +1 -1
  222. package/lib/utils/index.mjs +6 -10
  223. package/lib/utils/index.mjs.map +1 -1
  224. package/lib/utils/money/allocators/fixedAmount.js +9 -17
  225. package/lib/utils/money/allocators/fixedAmount.js.map +1 -1
  226. package/lib/utils/money/allocators/fixedAmount.mjs +9 -17
  227. package/lib/utils/money/allocators/fixedAmount.mjs.map +1 -1
  228. package/lib/utils/money/allocators/productAmount.js +38 -61
  229. package/lib/utils/money/allocators/productAmount.js.map +1 -1
  230. package/lib/utils/money/allocators/productAmount.mjs +38 -61
  231. package/lib/utils/money/allocators/productAmount.mjs.map +1 -1
  232. package/lib/utils/nextjs/legacy-image-loader/image-loader.js +1 -11
  233. package/lib/utils/nextjs/legacy-image-loader/image-loader.js.map +1 -1
  234. package/lib/utils/nextjs/legacy-image-loader/image-loader.mjs +1 -11
  235. package/lib/utils/nextjs/legacy-image-loader/image-loader.mjs.map +1 -1
  236. package/package.json +1 -1
  237. package/lib/assets/accessApplication.svg +0 -394
  238. package/lib/assets/addToCart.svg +0 -3
  239. package/lib/assets/arrowRightMicro.svg +0 -3
  240. package/lib/assets/black.svg +0 -14
  241. package/lib/assets/blackFabric.png +0 -0
  242. package/lib/assets/blue.svg +0 -14
  243. package/lib/assets/box2.svg +0 -3
  244. package/lib/assets/camo.png +0 -0
  245. package/lib/assets/check3.svg +0 -3
  246. package/lib/assets/close3.svg +0 -3
  247. package/lib/assets/compare/fov-bullet.png.js +0 -27
  248. package/lib/assets/compare/fov-bullet.png.js.map +0 -1
  249. package/lib/assets/compare/fov-bullet.png.mjs +0 -3
  250. package/lib/assets/compare/fov-bullet.png.mjs.map +0 -1
  251. package/lib/assets/concrete.png +0 -0
  252. package/lib/assets/darkGrey.svg +0 -14
  253. package/lib/assets/design-uisp-mobile.png +0 -0
  254. package/lib/assets/design-uisp.png +0 -0
  255. package/lib/assets/design-unifi-mobile.png +0 -0
  256. package/lib/assets/design-unifi.png +0 -0
  257. package/lib/assets/fov-bullet.png +0 -0
  258. package/lib/assets/grey.svg +0 -13
  259. package/lib/assets/hand2.svg +0 -5
  260. package/lib/assets/icons/accessApplication.svg.js +0 -27
  261. package/lib/assets/icons/accessApplication.svg.js.map +0 -1
  262. package/lib/assets/icons/accessApplication.svg.mjs +0 -3
  263. package/lib/assets/icons/accessApplication.svg.mjs.map +0 -1
  264. package/lib/assets/icons/addToCart.svg.js +0 -27
  265. package/lib/assets/icons/addToCart.svg.js.map +0 -1
  266. package/lib/assets/icons/addToCart.svg.mjs +0 -3
  267. package/lib/assets/icons/addToCart.svg.mjs.map +0 -1
  268. package/lib/assets/icons/arrowRightMicro.svg.js +0 -27
  269. package/lib/assets/icons/arrowRightMicro.svg.js.map +0 -1
  270. package/lib/assets/icons/arrowRightMicro.svg.mjs +0 -3
  271. package/lib/assets/icons/arrowRightMicro.svg.mjs.map +0 -1
  272. package/lib/assets/icons/link.svg.js +0 -27
  273. package/lib/assets/icons/link.svg.js.map +0 -1
  274. package/lib/assets/icons/link.svg.mjs +0 -3
  275. package/lib/assets/icons/link.svg.mjs.map +0 -1
  276. package/lib/assets/icons/networkApplication.svg.js +0 -27
  277. package/lib/assets/icons/networkApplication.svg.js.map +0 -1
  278. package/lib/assets/icons/networkApplication.svg.mjs +0 -3
  279. package/lib/assets/icons/networkApplication.svg.mjs.map +0 -1
  280. package/lib/assets/icons/payment-apple-pay.svg.js +0 -27
  281. package/lib/assets/icons/payment-apple-pay.svg.js.map +0 -1
  282. package/lib/assets/icons/payment-apple-pay.svg.mjs +0 -3
  283. package/lib/assets/icons/payment-apple-pay.svg.mjs.map +0 -1
  284. package/lib/assets/icons/payment-card.svg.js +0 -27
  285. package/lib/assets/icons/payment-card.svg.js.map +0 -1
  286. package/lib/assets/icons/payment-card.svg.mjs +0 -3
  287. package/lib/assets/icons/payment-card.svg.mjs.map +0 -1
  288. package/lib/assets/icons/payment-google-pay.svg.js +0 -27
  289. package/lib/assets/icons/payment-google-pay.svg.js.map +0 -1
  290. package/lib/assets/icons/payment-google-pay.svg.mjs +0 -3
  291. package/lib/assets/icons/payment-google-pay.svg.mjs.map +0 -1
  292. package/lib/assets/icons/play-big.svg.js +0 -27
  293. package/lib/assets/icons/play-big.svg.js.map +0 -1
  294. package/lib/assets/icons/play-big.svg.mjs +0 -3
  295. package/lib/assets/icons/play-big.svg.mjs.map +0 -1
  296. package/lib/assets/icons/previouslyPurchasedStar.svg.js +0 -27
  297. package/lib/assets/icons/previouslyPurchasedStar.svg.js.map +0 -1
  298. package/lib/assets/icons/previouslyPurchasedStar.svg.mjs +0 -3
  299. package/lib/assets/icons/previouslyPurchasedStar.svg.mjs.map +0 -1
  300. package/lib/assets/icons/protectApplication.svg.js +0 -27
  301. package/lib/assets/icons/protectApplication.svg.js.map +0 -1
  302. package/lib/assets/icons/protectApplication.svg.mjs +0 -3
  303. package/lib/assets/icons/protectApplication.svg.mjs.map +0 -1
  304. package/lib/assets/icons/reload.svg.js +0 -27
  305. package/lib/assets/icons/reload.svg.js.map +0 -1
  306. package/lib/assets/icons/reload.svg.mjs +0 -3
  307. package/lib/assets/icons/reload.svg.mjs.map +0 -1
  308. package/lib/assets/icons/sliderThumb.svg.js +0 -27
  309. package/lib/assets/icons/sliderThumb.svg.js.map +0 -1
  310. package/lib/assets/icons/sliderThumb.svg.mjs +0 -3
  311. package/lib/assets/icons/sliderThumb.svg.mjs.map +0 -1
  312. package/lib/assets/icons/talkApplication.svg.js +0 -27
  313. package/lib/assets/icons/talkApplication.svg.js.map +0 -1
  314. package/lib/assets/icons/talkApplication.svg.mjs +0 -3
  315. package/lib/assets/icons/talkApplication.svg.mjs.map +0 -1
  316. package/lib/assets/icons/wizard/box.svg.js +0 -27
  317. package/lib/assets/icons/wizard/box.svg.js.map +0 -1
  318. package/lib/assets/icons/wizard/box.svg.mjs +0 -3
  319. package/lib/assets/icons/wizard/box.svg.mjs.map +0 -1
  320. package/lib/assets/icons/wizard/hand.svg.js +0 -27
  321. package/lib/assets/icons/wizard/hand.svg.js.map +0 -1
  322. package/lib/assets/icons/wizard/hand.svg.mjs +0 -3
  323. package/lib/assets/icons/wizard/hand.svg.mjs.map +0 -1
  324. package/lib/assets/icons/wizard/popoverPointer.svg.js +0 -27
  325. package/lib/assets/icons/wizard/popoverPointer.svg.js.map +0 -1
  326. package/lib/assets/icons/wizard/popoverPointer.svg.mjs +0 -3
  327. package/lib/assets/icons/wizard/popoverPointer.svg.mjs.map +0 -1
  328. package/lib/assets/icons/wizard/warranty.svg.js +0 -27
  329. package/lib/assets/icons/wizard/warranty.svg.js.map +0 -1
  330. package/lib/assets/icons/wizard/warranty.svg.mjs +0 -3
  331. package/lib/assets/icons/wizard/warranty.svg.mjs.map +0 -1
  332. package/lib/assets/landingPage/design-uisp-mobile.png.js +0 -27
  333. package/lib/assets/landingPage/design-uisp-mobile.png.js.map +0 -1
  334. package/lib/assets/landingPage/design-uisp-mobile.png.mjs +0 -3
  335. package/lib/assets/landingPage/design-uisp-mobile.png.mjs.map +0 -1
  336. package/lib/assets/landingPage/design-uisp.png.js +0 -27
  337. package/lib/assets/landingPage/design-uisp.png.js.map +0 -1
  338. package/lib/assets/landingPage/design-uisp.png.mjs +0 -3
  339. package/lib/assets/landingPage/design-uisp.png.mjs.map +0 -1
  340. package/lib/assets/landingPage/design-unifi-mobile.png.js +0 -27
  341. package/lib/assets/landingPage/design-unifi-mobile.png.js.map +0 -1
  342. package/lib/assets/landingPage/design-unifi-mobile.png.mjs +0 -3
  343. package/lib/assets/landingPage/design-unifi-mobile.png.mjs.map +0 -1
  344. package/lib/assets/landingPage/design-unifi.png.js +0 -27
  345. package/lib/assets/landingPage/design-unifi.png.js.map +0 -1
  346. package/lib/assets/landingPage/design-unifi.png.mjs +0 -3
  347. package/lib/assets/landingPage/design-unifi.png.mjs.map +0 -1
  348. package/lib/assets/landingPage/support-expert.png.js +0 -27
  349. package/lib/assets/landingPage/support-expert.png.js.map +0 -1
  350. package/lib/assets/landingPage/support-expert.png.mjs +0 -3
  351. package/lib/assets/landingPage/support-expert.png.mjs.map +0 -1
  352. package/lib/assets/landingPage/support-help.png.js +0 -27
  353. package/lib/assets/landingPage/support-help.png.js.map +0 -1
  354. package/lib/assets/landingPage/support-help.png.mjs +0 -3
  355. package/lib/assets/landingPage/support-help.png.mjs.map +0 -1
  356. package/lib/assets/lightGrey.svg +0 -13
  357. package/lib/assets/link.svg +0 -3
  358. package/lib/assets/marble.png +0 -0
  359. package/lib/assets/networkApplication.svg +0 -21
  360. package/lib/assets/payment-apple-pay.svg +0 -12
  361. package/lib/assets/payment-card2.svg +0 -5
  362. package/lib/assets/payment-google-pay.svg +0 -1
  363. package/lib/assets/play-big.svg +0 -4
  364. package/lib/assets/plus5.svg +0 -16
  365. package/lib/assets/plus6.svg +0 -16
  366. package/lib/assets/popoverPointer.svg +0 -12
  367. package/lib/assets/previouslyPurchasedStar.svg +0 -3
  368. package/lib/assets/protectApplication.svg +0 -418
  369. package/lib/assets/reload3.svg +0 -3
  370. package/lib/assets/sliderThumb.svg +0 -5
  371. package/lib/assets/support-expert.png +0 -0
  372. package/lib/assets/support-help.png +0 -0
  373. package/lib/assets/talkApplication.svg +0 -45
  374. package/lib/assets/warranty.svg +0 -2
  375. package/lib/assets/white.svg +0 -13
  376. package/lib/assets/wood.png +0 -0
  377. package/lib/components/AppDownloadBanner/AppDownloadBanner.d.ts +0 -2
  378. package/lib/components/AppDownloadBanner/AppDownloadBanner.styles.d.ts +0 -23
  379. package/lib/components/AppDownloadBanner/AppDownloadBanner.types.d.ts +0 -30
  380. package/lib/components/AppDownloadBanner/index.d.ts +0 -1
  381. package/lib/components/Banner/Banner.d.ts +0 -2
  382. package/lib/components/Banner/Banner.js.map +0 -1
  383. package/lib/components/Banner/Banner.mjs.map +0 -1
  384. package/lib/components/Banner/Banner.styles.js.map +0 -1
  385. package/lib/components/Banner/Banner.styles.mjs.map +0 -1
  386. package/lib/components/Banner/index.d.ts +0 -1
  387. package/lib/components/Banner/index.js +0 -6
  388. package/lib/components/Banner/index.mjs +0 -3
  389. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +0 -2
  390. package/lib/components/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -2
  391. package/lib/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -16
  392. package/lib/components/Breadcrumbs/index.d.ts +0 -1
  393. package/lib/components/BuiltFeaturesSection/BuiltFeaturesSection.d.ts +0 -2
  394. package/lib/components/BuiltFeaturesSection/BuiltFeaturesSection.styles.d.ts +0 -9
  395. package/lib/components/BuiltFeaturesSection/BuiltFeaturesSection.types.d.ts +0 -10
  396. package/lib/components/BuiltFeaturesSection/index.d.ts +0 -1
  397. package/lib/components/CarouselGallery/CarouselGallery.d.ts +0 -2
  398. package/lib/components/CarouselGallery/CarouselGallery.styles.d.ts +0 -17
  399. package/lib/components/CarouselGallery/CarouselGallery.types.d.ts +0 -12
  400. package/lib/components/CarouselGallery/index.d.ts +0 -1
  401. package/lib/components/CartIcon/CartIcon.js.map +0 -1
  402. package/lib/components/CartIcon/CartIcon.mjs.map +0 -1
  403. package/lib/components/CartIcon/CartIcon.styles.js.map +0 -1
  404. package/lib/components/CartIcon/CartIcon.styles.mjs.map +0 -1
  405. package/lib/components/CartSummary/CartSummary.d.ts +0 -2
  406. package/lib/components/CartSummary/CartSummary.js +0 -58
  407. package/lib/components/CartSummary/CartSummary.js.map +0 -1
  408. package/lib/components/CartSummary/CartSummary.mjs +0 -56
  409. package/lib/components/CartSummary/CartSummary.mjs.map +0 -1
  410. package/lib/components/CartSummary/CartSummary.styles.d.ts +0 -21
  411. package/lib/components/CartSummary/CartSummary.styles.js +0 -133
  412. package/lib/components/CartSummary/CartSummary.styles.js.map +0 -1
  413. package/lib/components/CartSummary/CartSummary.styles.mjs +0 -115
  414. package/lib/components/CartSummary/CartSummary.styles.mjs.map +0 -1
  415. package/lib/components/CartSummary/CartSummary.types.d.ts +0 -11
  416. package/lib/components/CartSummary/index.d.ts +0 -1
  417. package/lib/components/CartSummary/index.js +0 -6
  418. package/lib/components/CartSummary/index.mjs +0 -3
  419. package/lib/components/CloserLookSection/CloserLookSection.constants.d.ts +0 -19
  420. package/lib/components/CloserLookSection/CloserLookSection.constants.js +0 -25
  421. package/lib/components/CloserLookSection/CloserLookSection.constants.js.map +0 -1
  422. package/lib/components/CloserLookSection/CloserLookSection.constants.mjs +0 -24
  423. package/lib/components/CloserLookSection/CloserLookSection.constants.mjs.map +0 -1
  424. package/lib/components/CloserLookSection/CloserLookSection.d.ts +0 -15
  425. package/lib/components/CloserLookSection/CloserLookSection.js +0 -233
  426. package/lib/components/CloserLookSection/CloserLookSection.js.map +0 -1
  427. package/lib/components/CloserLookSection/CloserLookSection.mjs +0 -224
  428. package/lib/components/CloserLookSection/CloserLookSection.mjs.map +0 -1
  429. package/lib/components/CloserLookSection/CloserLookSection.styles.d.ts +0 -14
  430. package/lib/components/CloserLookSection/CloserLookSection.styles.js +0 -58
  431. package/lib/components/CloserLookSection/CloserLookSection.styles.js.map +0 -1
  432. package/lib/components/CloserLookSection/CloserLookSection.styles.mjs +0 -43
  433. package/lib/components/CloserLookSection/CloserLookSection.styles.mjs.map +0 -1
  434. package/lib/components/CloserLookSection/CloserLookSection.types.d.ts +0 -35
  435. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.constants.d.ts +0 -10
  436. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.constants.js +0 -15
  437. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.constants.js.map +0 -1
  438. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.constants.mjs +0 -14
  439. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.constants.mjs.map +0 -1
  440. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.d.ts +0 -2
  441. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +0 -53
  442. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js.map +0 -1
  443. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.mjs +0 -45
  444. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.mjs.map +0 -1
  445. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.styles.d.ts +0 -5
  446. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.styles.js +0 -32
  447. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.styles.js.map +0 -1
  448. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.styles.mjs +0 -20
  449. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.styles.mjs.map +0 -1
  450. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.types.d.ts +0 -10
  451. package/lib/components/CloserLookSection/RecommendedAddons/index.d.ts +0 -1
  452. package/lib/components/CloserLookSection/RecommendedAddons/index.js +0 -6
  453. package/lib/components/CloserLookSection/RecommendedAddons/index.js.map +0 -1
  454. package/lib/components/CloserLookSection/RecommendedAddons/index.mjs +0 -3
  455. package/lib/components/CloserLookSection/RecommendedAddons/index.mjs.map +0 -1
  456. package/lib/components/CloserLookSection/index.d.ts +0 -1
  457. package/lib/components/CloserLookSection/index.js +0 -7
  458. package/lib/components/CloserLookSection/index.js.map +0 -1
  459. package/lib/components/CloserLookSection/index.mjs +0 -3
  460. package/lib/components/CloserLookSection/index.mjs.map +0 -1
  461. package/lib/components/Compare/Compare.d.ts +0 -2
  462. package/lib/components/Compare/Compare.styles.d.ts +0 -38
  463. package/lib/components/Compare/Compare.types.d.ts +0 -34
  464. package/lib/components/Compare/CompareData.d.ts +0 -22
  465. package/lib/components/Compare/ProductTable.d.ts +0 -6
  466. package/lib/components/Compare/index.d.ts +0 -2
  467. package/lib/components/CompareChart/CompareChart.d.ts +0 -2
  468. package/lib/components/CompareChart/CompareChart.styles.d.ts +0 -41
  469. package/lib/components/CompareChart/CompareChart.types.d.ts +0 -17
  470. package/lib/components/CompareChart/CompareChartData.d.ts +0 -69
  471. package/lib/components/CompareChart/index.d.ts +0 -2
  472. package/lib/components/CompareSection/CompareSection.d.ts +0 -5
  473. package/lib/components/CompareSection/CompareSection.data.d.ts +0 -10
  474. package/lib/components/CompareSection/CompareSection.styles.d.ts +0 -19
  475. package/lib/components/CompareSection/CompareSection.types.d.ts +0 -20
  476. package/lib/components/CompareSection/index.d.ts +0 -1
  477. package/lib/components/DeploymentGallery/DeploymentGallery.d.ts +0 -2
  478. package/lib/components/DeploymentGallery/DeploymentGallery.styles.d.ts +0 -4
  479. package/lib/components/DeploymentGallery/DeploymentGallery.types.d.ts +0 -6
  480. package/lib/components/DeploymentGallery/index.d.ts +0 -1
  481. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.d.ts +0 -2
  482. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +0 -36
  483. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js.map +0 -1
  484. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +0 -28
  485. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs.map +0 -1
  486. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.styles.d.ts +0 -6
  487. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.styles.js +0 -29
  488. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.styles.js.map +0 -1
  489. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.styles.mjs +0 -20
  490. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.styles.mjs.map +0 -1
  491. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.types.d.ts +0 -4
  492. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/index.d.ts +0 -1
  493. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/index.js +0 -6
  494. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/index.js.map +0 -1
  495. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/index.mjs +0 -3
  496. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/index.mjs.map +0 -1
  497. package/lib/components/FeaturesSection_deprecated/Features/Features.d.ts +0 -2
  498. package/lib/components/FeaturesSection_deprecated/Features/Features.js +0 -58
  499. package/lib/components/FeaturesSection_deprecated/Features/Features.js.map +0 -1
  500. package/lib/components/FeaturesSection_deprecated/Features/Features.mjs +0 -56
  501. package/lib/components/FeaturesSection_deprecated/Features/Features.mjs.map +0 -1
  502. package/lib/components/FeaturesSection_deprecated/Features/Features.styles.d.ts +0 -24
  503. package/lib/components/FeaturesSection_deprecated/Features/Features.styles.js +0 -242
  504. package/lib/components/FeaturesSection_deprecated/Features/Features.styles.js.map +0 -1
  505. package/lib/components/FeaturesSection_deprecated/Features/Features.styles.mjs +0 -220
  506. package/lib/components/FeaturesSection_deprecated/Features/Features.styles.mjs.map +0 -1
  507. package/lib/components/FeaturesSection_deprecated/Features/Features.types.d.ts +0 -18
  508. package/lib/components/FeaturesSection_deprecated/Features/index.d.ts +0 -1
  509. package/lib/components/FeaturesSection_deprecated/Features/index.js +0 -6
  510. package/lib/components/FeaturesSection_deprecated/Features/index.js.map +0 -1
  511. package/lib/components/FeaturesSection_deprecated/Features/index.mjs +0 -3
  512. package/lib/components/FeaturesSection_deprecated/Features/index.mjs.map +0 -1
  513. package/lib/components/FeaturesSection_deprecated/FeaturesSection.d.ts +0 -11
  514. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +0 -388
  515. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js.map +0 -1
  516. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +0 -379
  517. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs.map +0 -1
  518. package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.d.ts +0 -36
  519. package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.js +0 -360
  520. package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.js.map +0 -1
  521. package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.mjs +0 -337
  522. package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.mjs.map +0 -1
  523. package/lib/components/FeaturesSection_deprecated/FeaturesSection.types.d.ts +0 -89
  524. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +0 -27
  525. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js.map +0 -1
  526. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +0 -3
  527. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs.map +0 -1
  528. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +0 -27
  529. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js.map +0 -1
  530. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +0 -3
  531. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs.map +0 -1
  532. package/lib/components/FeaturesSection_deprecated/index.d.ts +0 -1
  533. package/lib/components/FeaturesSection_deprecated/index.js +0 -7
  534. package/lib/components/FeaturesSection_deprecated/index.js.map +0 -1
  535. package/lib/components/FeaturesSection_deprecated/index.mjs +0 -3
  536. package/lib/components/FeaturesSection_deprecated/index.mjs.map +0 -1
  537. package/lib/components/Gallery/Gallery.context.js +0 -141
  538. package/lib/components/Gallery/Gallery.context.js.map +0 -1
  539. package/lib/components/Gallery/Gallery.context.mjs +0 -138
  540. package/lib/components/Gallery/Gallery.context.mjs.map +0 -1
  541. package/lib/components/Gallery/Gallery.js +0 -123
  542. package/lib/components/Gallery/Gallery.js.map +0 -1
  543. package/lib/components/Gallery/Gallery.mjs +0 -120
  544. package/lib/components/Gallery/Gallery.mjs.map +0 -1
  545. package/lib/components/Gallery/Gallery.styles.js +0 -86
  546. package/lib/components/Gallery/Gallery.styles.js.map +0 -1
  547. package/lib/components/Gallery/Gallery.styles.mjs +0 -73
  548. package/lib/components/Gallery/Gallery.styles.mjs.map +0 -1
  549. package/lib/components/Gallery/Gallery.types.js +0 -11
  550. package/lib/components/Gallery/Gallery.types.js.map +0 -1
  551. package/lib/components/Gallery/Gallery.types.mjs +0 -10
  552. package/lib/components/Gallery/Gallery.types.mjs.map +0 -1
  553. package/lib/components/Gallery/GalleryControls/GalleryControls.js +0 -101
  554. package/lib/components/Gallery/GalleryControls/GalleryControls.js.map +0 -1
  555. package/lib/components/Gallery/GalleryControls/GalleryControls.mjs +0 -90
  556. package/lib/components/Gallery/GalleryControls/GalleryControls.mjs.map +0 -1
  557. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.js +0 -108
  558. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.js.map +0 -1
  559. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.mjs +0 -95
  560. package/lib/components/Gallery/GalleryControls/GalleryControls.styles.mjs.map +0 -1
  561. package/lib/components/Gallery/GalleryControls/index.js +0 -9
  562. package/lib/components/Gallery/GalleryControls/index.js.map +0 -1
  563. package/lib/components/Gallery/GalleryControls/index.mjs +0 -3
  564. package/lib/components/Gallery/GalleryControls/index.mjs.map +0 -1
  565. package/lib/components/Gallery/GalleryItem/GalleryItem.js +0 -94
  566. package/lib/components/Gallery/GalleryItem/GalleryItem.js.map +0 -1
  567. package/lib/components/Gallery/GalleryItem/GalleryItem.mjs +0 -92
  568. package/lib/components/Gallery/GalleryItem/GalleryItem.mjs.map +0 -1
  569. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.js +0 -78
  570. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.js.map +0 -1
  571. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.mjs +0 -68
  572. package/lib/components/Gallery/GalleryItem/GalleryItem.styles.mjs.map +0 -1
  573. package/lib/components/Gallery/GalleryItem/index.js +0 -6
  574. package/lib/components/Gallery/GalleryItem/index.js.map +0 -1
  575. package/lib/components/Gallery/GalleryItem/index.mjs +0 -3
  576. package/lib/components/Gallery/GalleryItem/index.mjs.map +0 -1
  577. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +0 -86
  578. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js.map +0 -1
  579. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.mjs +0 -84
  580. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.mjs.map +0 -1
  581. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.styles.js +0 -177
  582. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.styles.js.map +0 -1
  583. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.styles.mjs +0 -161
  584. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.styles.mjs.map +0 -1
  585. package/lib/components/Gallery/GalleryThumbnails/index.js +0 -6
  586. package/lib/components/Gallery/GalleryThumbnails/index.js.map +0 -1
  587. package/lib/components/Gallery/GalleryThumbnails/index.mjs +0 -3
  588. package/lib/components/Gallery/GalleryThumbnails/index.mjs.map +0 -1
  589. package/lib/components/Gallery/index.js +0 -8
  590. package/lib/components/Gallery/index.mjs +0 -4
  591. package/lib/components/Gallery/utils.js +0 -9
  592. package/lib/components/Gallery/utils.js.map +0 -1
  593. package/lib/components/Gallery/utils.mjs +0 -8
  594. package/lib/components/Gallery/utils.mjs.map +0 -1
  595. package/lib/components/GridGallery/GridGallery.js +0 -197
  596. package/lib/components/GridGallery/GridGallery.js.map +0 -1
  597. package/lib/components/GridGallery/GridGallery.mjs +0 -189
  598. package/lib/components/GridGallery/GridGallery.mjs.map +0 -1
  599. package/lib/components/GridGallery/GridGallery.styles.js +0 -132
  600. package/lib/components/GridGallery/GridGallery.styles.js.map +0 -1
  601. package/lib/components/GridGallery/GridGallery.styles.mjs +0 -114
  602. package/lib/components/GridGallery/GridGallery.styles.mjs.map +0 -1
  603. package/lib/components/GridGallery/GridGallery.types.js +0 -12
  604. package/lib/components/GridGallery/GridGallery.types.js.map +0 -1
  605. package/lib/components/GridGallery/GridGallery.types.mjs +0 -11
  606. package/lib/components/GridGallery/GridGallery.types.mjs.map +0 -1
  607. package/lib/components/GridGallery/index.js +0 -6
  608. package/lib/components/GridGallery/index.js.map +0 -1
  609. package/lib/components/GridGallery/index.mjs +0 -3
  610. package/lib/components/GridGallery/index.mjs.map +0 -1
  611. package/lib/components/Header/SearchTab/SearchTab.d.ts +0 -2
  612. package/lib/components/Header/SearchTab/SearchTab.styles.d.ts +0 -4
  613. package/lib/components/Header/SearchTab/SearchTab.types.d.ts +0 -13
  614. package/lib/components/Header/SearchTab/index.d.ts +0 -1
  615. package/lib/components/Hero/Hero.d.ts +0 -2
  616. package/lib/components/Hero/Hero.js +0 -158
  617. package/lib/components/Hero/Hero.js.map +0 -1
  618. package/lib/components/Hero/Hero.mjs +0 -146
  619. package/lib/components/Hero/Hero.mjs.map +0 -1
  620. package/lib/components/Hero/Hero.styles.d.ts +0 -44
  621. package/lib/components/Hero/Hero.styles.js +0 -349
  622. package/lib/components/Hero/Hero.styles.js.map +0 -1
  623. package/lib/components/Hero/Hero.styles.mjs +0 -320
  624. package/lib/components/Hero/Hero.styles.mjs.map +0 -1
  625. package/lib/components/Hero/Hero.types.d.ts +0 -31
  626. package/lib/components/Hero/Hero.types.js +0 -12
  627. package/lib/components/Hero/Hero.types.js.map +0 -1
  628. package/lib/components/Hero/Hero.types.mjs +0 -11
  629. package/lib/components/Hero/Hero.types.mjs.map +0 -1
  630. package/lib/components/Hero/index.d.ts +0 -1
  631. package/lib/components/Hero/index.js +0 -6
  632. package/lib/components/Hero/index.js.map +0 -1
  633. package/lib/components/Hero/index.mjs +0 -3
  634. package/lib/components/Hero/index.mjs.map +0 -1
  635. package/lib/components/HeroFadeGallery/HeroFadeGallery.d.ts +0 -2
  636. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +0 -12
  637. package/lib/components/HeroFadeGallery/HeroFadeGallery.types.d.ts +0 -20
  638. package/lib/components/HeroFadeGallery/index.d.ts +0 -1
  639. package/lib/components/HowToUseSection/HowToUseSection.d.ts +0 -2
  640. package/lib/components/HowToUseSection/HowToUseSection.data.d.ts +0 -13
  641. package/lib/components/HowToUseSection/HowToUseSection.data.old.d.ts +0 -46
  642. package/lib/components/HowToUseSection/HowToUseSection.stories.d.ts +0 -9
  643. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +0 -15
  644. package/lib/components/HowToUseSection/HowToUseSection.types.d.ts +0 -11
  645. package/lib/components/HowToUseSection/index.d.ts +0 -1
  646. package/lib/components/ImageModal/ImageModal.d.ts +0 -2
  647. package/lib/components/ImageModal/ImageModal.js +0 -42
  648. package/lib/components/ImageModal/ImageModal.js.map +0 -1
  649. package/lib/components/ImageModal/ImageModal.mjs +0 -40
  650. package/lib/components/ImageModal/ImageModal.mjs.map +0 -1
  651. package/lib/components/ImageModal/ImageModal.styles.d.ts +0 -9
  652. package/lib/components/ImageModal/ImageModal.styles.js +0 -64
  653. package/lib/components/ImageModal/ImageModal.styles.js.map +0 -1
  654. package/lib/components/ImageModal/ImageModal.styles.mjs +0 -52
  655. package/lib/components/ImageModal/ImageModal.styles.mjs.map +0 -1
  656. package/lib/components/ImageModal/ImageModal.types.d.ts +0 -10
  657. package/lib/components/ImageModal/index.d.ts +0 -1
  658. package/lib/components/ImageModal/index.js +0 -6
  659. package/lib/components/ImageModal/index.js.map +0 -1
  660. package/lib/components/ImageModal/index.mjs +0 -3
  661. package/lib/components/ImageModal/index.mjs.map +0 -1
  662. package/lib/components/LandingPage/Block/Block.d.ts +0 -2
  663. package/lib/components/LandingPage/Block/Block.js +0 -38
  664. package/lib/components/LandingPage/Block/Block.js.map +0 -1
  665. package/lib/components/LandingPage/Block/Block.mjs +0 -36
  666. package/lib/components/LandingPage/Block/Block.mjs.map +0 -1
  667. package/lib/components/LandingPage/Block/Block.styles.d.ts +0 -4
  668. package/lib/components/LandingPage/Block/Block.styles.js +0 -37
  669. package/lib/components/LandingPage/Block/Block.styles.js.map +0 -1
  670. package/lib/components/LandingPage/Block/Block.styles.mjs +0 -26
  671. package/lib/components/LandingPage/Block/Block.styles.mjs.map +0 -1
  672. package/lib/components/LandingPage/Block/Block.types.d.ts +0 -11
  673. package/lib/components/LandingPage/Block/index.d.ts +0 -1
  674. package/lib/components/LandingPage/Block/index.js +0 -6
  675. package/lib/components/LandingPage/Block/index.js.map +0 -1
  676. package/lib/components/LandingPage/Block/index.mjs +0 -3
  677. package/lib/components/LandingPage/Block/index.mjs.map +0 -1
  678. package/lib/components/LandingPage/Cards/Card/Card.d.ts +0 -2
  679. package/lib/components/LandingPage/Cards/Card/Card.js +0 -78
  680. package/lib/components/LandingPage/Cards/Card/Card.js.map +0 -1
  681. package/lib/components/LandingPage/Cards/Card/Card.mjs +0 -76
  682. package/lib/components/LandingPage/Cards/Card/Card.mjs.map +0 -1
  683. package/lib/components/LandingPage/Cards/Card/Card.styles.d.ts +0 -26
  684. package/lib/components/LandingPage/Cards/Card/Card.styles.js +0 -455
  685. package/lib/components/LandingPage/Cards/Card/Card.styles.js.map +0 -1
  686. package/lib/components/LandingPage/Cards/Card/Card.styles.mjs +0 -435
  687. package/lib/components/LandingPage/Cards/Card/Card.styles.mjs.map +0 -1
  688. package/lib/components/LandingPage/Cards/Card/Card.types.d.ts +0 -19
  689. package/lib/components/LandingPage/Cards/Card/index.d.ts +0 -1
  690. package/lib/components/LandingPage/Cards/Card/index.js +0 -6
  691. package/lib/components/LandingPage/Cards/Card/index.js.map +0 -1
  692. package/lib/components/LandingPage/Cards/Card/index.mjs +0 -3
  693. package/lib/components/LandingPage/Cards/Card/index.mjs.map +0 -1
  694. package/lib/components/LandingPage/Cards/Cards.constants.d.ts +0 -2
  695. package/lib/components/LandingPage/Cards/Cards.constants.js +0 -8
  696. package/lib/components/LandingPage/Cards/Cards.constants.js.map +0 -1
  697. package/lib/components/LandingPage/Cards/Cards.constants.mjs +0 -6
  698. package/lib/components/LandingPage/Cards/Cards.constants.mjs.map +0 -1
  699. package/lib/components/LandingPage/Cards/Cards.d.ts +0 -2
  700. package/lib/components/LandingPage/Cards/Cards.js +0 -127
  701. package/lib/components/LandingPage/Cards/Cards.js.map +0 -1
  702. package/lib/components/LandingPage/Cards/Cards.mjs +0 -119
  703. package/lib/components/LandingPage/Cards/Cards.mjs.map +0 -1
  704. package/lib/components/LandingPage/Cards/Cards.styles.d.ts +0 -23
  705. package/lib/components/LandingPage/Cards/Cards.styles.js +0 -160
  706. package/lib/components/LandingPage/Cards/Cards.styles.js.map +0 -1
  707. package/lib/components/LandingPage/Cards/Cards.styles.mjs +0 -144
  708. package/lib/components/LandingPage/Cards/Cards.styles.mjs.map +0 -1
  709. package/lib/components/LandingPage/Cards/Cards.types.d.ts +0 -19
  710. package/lib/components/LandingPage/Cards/index.d.ts +0 -2
  711. package/lib/components/LandingPage/Cards/index.js +0 -8
  712. package/lib/components/LandingPage/Cards/index.js.map +0 -1
  713. package/lib/components/LandingPage/Cards/index.mjs +0 -4
  714. package/lib/components/LandingPage/Cards/index.mjs.map +0 -1
  715. package/lib/components/LandingPage/LandingPage.constants.d.ts +0 -35
  716. package/lib/components/LandingPage/LandingPage.constants.js +0 -40
  717. package/lib/components/LandingPage/LandingPage.constants.js.map +0 -1
  718. package/lib/components/LandingPage/LandingPage.constants.mjs +0 -39
  719. package/lib/components/LandingPage/LandingPage.constants.mjs.map +0 -1
  720. package/lib/components/LandingPage/LandingPage.d.ts +0 -2
  721. package/lib/components/LandingPage/LandingPage.js +0 -116
  722. package/lib/components/LandingPage/LandingPage.js.map +0 -1
  723. package/lib/components/LandingPage/LandingPage.mjs +0 -102
  724. package/lib/components/LandingPage/LandingPage.mjs.map +0 -1
  725. package/lib/components/LandingPage/LandingPage.styles.d.ts +0 -5
  726. package/lib/components/LandingPage/LandingPage.styles.js +0 -66
  727. package/lib/components/LandingPage/LandingPage.styles.js.map +0 -1
  728. package/lib/components/LandingPage/LandingPage.styles.mjs +0 -54
  729. package/lib/components/LandingPage/LandingPage.styles.mjs.map +0 -1
  730. package/lib/components/LandingPage/LandingPage.types.d.ts +0 -16
  731. package/lib/components/LandingPage/index.d.ts +0 -1
  732. package/lib/components/LandingPage/index.js +0 -6
  733. package/lib/components/LandingPage/index.js.map +0 -1
  734. package/lib/components/LandingPage/index.mjs +0 -3
  735. package/lib/components/LandingPage/index.mjs.map +0 -1
  736. package/lib/components/LandingPagePro/LandingPagePro.d.ts +0 -24
  737. package/lib/components/LandingPagePro/LandingPagePro.js +0 -262
  738. package/lib/components/LandingPagePro/LandingPagePro.js.map +0 -1
  739. package/lib/components/LandingPagePro/LandingPagePro.mjs +0 -260
  740. package/lib/components/LandingPagePro/LandingPagePro.mjs.map +0 -1
  741. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +0 -3
  742. package/lib/components/LandingPagePro/LandingPagePro.styles.js +0 -49
  743. package/lib/components/LandingPagePro/LandingPagePro.styles.js.map +0 -1
  744. package/lib/components/LandingPagePro/LandingPagePro.styles.mjs +0 -39
  745. package/lib/components/LandingPagePro/LandingPagePro.styles.mjs.map +0 -1
  746. package/lib/components/LandingPagePro/LandingPagePro.types.d.ts +0 -39
  747. package/lib/components/LandingPagePro/index.d.ts +0 -1
  748. package/lib/components/LandingPagePro/index.js +0 -6
  749. package/lib/components/LandingPagePro/index.js.map +0 -1
  750. package/lib/components/LandingPagePro/index.mjs +0 -3
  751. package/lib/components/LandingPagePro/index.mjs.map +0 -1
  752. package/lib/components/LandingPagePro/utils.d.ts +0 -12
  753. package/lib/components/LandingPagePro/utils.js +0 -26
  754. package/lib/components/LandingPagePro/utils.js.map +0 -1
  755. package/lib/components/LandingPagePro/utils.mjs +0 -24
  756. package/lib/components/LandingPagePro/utils.mjs.map +0 -1
  757. package/lib/components/LandingPageSearch/LandingPageSearch.d.ts +0 -2
  758. package/lib/components/LandingPageSearch/LandingPageSearch.js +0 -57
  759. package/lib/components/LandingPageSearch/LandingPageSearch.js.map +0 -1
  760. package/lib/components/LandingPageSearch/LandingPageSearch.mjs +0 -55
  761. package/lib/components/LandingPageSearch/LandingPageSearch.mjs.map +0 -1
  762. package/lib/components/LandingPageSearch/LandingPageSearch.stories.d.ts +0 -5
  763. package/lib/components/LandingPageSearch/LandingPageSearch.styles.d.ts +0 -2
  764. package/lib/components/LandingPageSearch/LandingPageSearch.styles.js +0 -28
  765. package/lib/components/LandingPageSearch/LandingPageSearch.styles.js.map +0 -1
  766. package/lib/components/LandingPageSearch/LandingPageSearch.styles.mjs +0 -19
  767. package/lib/components/LandingPageSearch/LandingPageSearch.styles.mjs.map +0 -1
  768. package/lib/components/LandingPageSearch/LandingPageSearch.types.d.ts +0 -49
  769. package/lib/components/LandingPageSearch/LandingPageSearch.types.js +0 -15
  770. package/lib/components/LandingPageSearch/LandingPageSearch.types.js.map +0 -1
  771. package/lib/components/LandingPageSearch/LandingPageSearch.types.mjs +0 -14
  772. package/lib/components/LandingPageSearch/LandingPageSearch.types.mjs.map +0 -1
  773. package/lib/components/LandingPageSearch/Modal/Modal.d.ts +0 -2
  774. package/lib/components/LandingPageSearch/Modal/Modal.js +0 -131
  775. package/lib/components/LandingPageSearch/Modal/Modal.js.map +0 -1
  776. package/lib/components/LandingPageSearch/Modal/Modal.mjs +0 -129
  777. package/lib/components/LandingPageSearch/Modal/Modal.mjs.map +0 -1
  778. package/lib/components/LandingPageSearch/Modal/Modal.styles.d.ts +0 -34
  779. package/lib/components/LandingPageSearch/Modal/Modal.styles.js +0 -212
  780. package/lib/components/LandingPageSearch/Modal/Modal.styles.js.map +0 -1
  781. package/lib/components/LandingPageSearch/Modal/Modal.styles.mjs +0 -189
  782. package/lib/components/LandingPageSearch/Modal/Modal.styles.mjs.map +0 -1
  783. package/lib/components/LandingPageSearch/Modal/Modal.types.d.ts +0 -20
  784. package/lib/components/LandingPageSearch/Modal/index.d.ts +0 -1
  785. package/lib/components/LandingPageSearch/Modal/index.js +0 -6
  786. package/lib/components/LandingPageSearch/Modal/index.js.map +0 -1
  787. package/lib/components/LandingPageSearch/Modal/index.mjs +0 -3
  788. package/lib/components/LandingPageSearch/Modal/index.mjs.map +0 -1
  789. package/lib/components/LandingPageSearch/index.d.ts +0 -1
  790. package/lib/components/LandingPageSearch/index.js +0 -6
  791. package/lib/components/LandingPageSearch/index.js.map +0 -1
  792. package/lib/components/LandingPageSearch/index.mjs +0 -3
  793. package/lib/components/LandingPageSearch/index.mjs.map +0 -1
  794. package/lib/components/LandingPageSidebar/LandingPageSidebar.d.ts +0 -2
  795. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +0 -330
  796. package/lib/components/LandingPageSidebar/LandingPageSidebar.js.map +0 -1
  797. package/lib/components/LandingPageSidebar/LandingPageSidebar.mjs +0 -320
  798. package/lib/components/LandingPageSidebar/LandingPageSidebar.mjs.map +0 -1
  799. package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.d.ts +0 -28
  800. package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.js +0 -252
  801. package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.js.map +0 -1
  802. package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.mjs +0 -227
  803. package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.mjs.map +0 -1
  804. package/lib/components/LandingPageSidebar/LandingPageSidebar.types.d.ts +0 -92
  805. package/lib/components/LandingPageSidebar/index.d.ts +0 -1
  806. package/lib/components/LandingPageSidebar/index.js +0 -6
  807. package/lib/components/LandingPageSidebar/index.js.map +0 -1
  808. package/lib/components/LandingPageSidebar/index.mjs +0 -3
  809. package/lib/components/LandingPageSidebar/index.mjs.map +0 -1
  810. package/lib/components/LayoutRenderer/LayoutRenderer.d.ts +0 -5
  811. package/lib/components/LayoutRenderer/LayoutRenderer.js +0 -188
  812. package/lib/components/LayoutRenderer/LayoutRenderer.js.map +0 -1
  813. package/lib/components/LayoutRenderer/LayoutRenderer.mjs +0 -180
  814. package/lib/components/LayoutRenderer/LayoutRenderer.mjs.map +0 -1
  815. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +0 -28
  816. package/lib/components/LayoutRenderer/LayoutRenderer.styles.js +0 -197
  817. package/lib/components/LayoutRenderer/LayoutRenderer.styles.js.map +0 -1
  818. package/lib/components/LayoutRenderer/LayoutRenderer.styles.mjs +0 -173
  819. package/lib/components/LayoutRenderer/LayoutRenderer.styles.mjs.map +0 -1
  820. package/lib/components/LayoutRenderer/LayoutRenderer.types.d.ts +0 -263
  821. package/lib/components/LayoutRenderer/LayoutRenderer.types.js +0 -6
  822. package/lib/components/LayoutRenderer/LayoutRenderer.types.js.map +0 -1
  823. package/lib/components/LayoutRenderer/LayoutRenderer.types.mjs +0 -5
  824. package/lib/components/LayoutRenderer/LayoutRenderer.types.mjs.map +0 -1
  825. package/lib/components/LayoutRenderer/index.d.ts +0 -2
  826. package/lib/components/LayoutRenderer/index.js +0 -6
  827. package/lib/components/LayoutRenderer/index.js.map +0 -1
  828. package/lib/components/LayoutRenderer/index.mjs +0 -3
  829. package/lib/components/LayoutRenderer/index.mjs.map +0 -1
  830. package/lib/components/LayoutRendererV1/LayoutRenderer.d.ts +0 -9
  831. package/lib/components/LayoutRendererV1/LayoutRenderer.old.d.ts +0 -120
  832. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +0 -71
  833. package/lib/components/LayoutRendererV1/LayoutRenderer.types.d.ts +0 -91
  834. package/lib/components/LayoutRendererV1/index.d.ts +0 -1
  835. package/lib/components/LayoutRendererV2/LayoutRenderer.d.ts +0 -6
  836. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +0 -63
  837. package/lib/components/LayoutRendererV2/LayoutRenderer.types.d.ts +0 -93
  838. package/lib/components/LayoutRendererV2/index.d.ts +0 -1
  839. package/lib/components/NewToUnifiBox/NewToUnifiBox.d.ts +0 -11
  840. package/lib/components/NewToUnifiBox/NewToUnifiBox.styles.d.ts +0 -5
  841. package/lib/components/NewToUnifiBox/index.d.ts +0 -1
  842. package/lib/components/NormalisedImage/NormalisedImage.d.ts +0 -6
  843. package/lib/components/NormalisedImage/NormalisedImage.js +0 -23
  844. package/lib/components/NormalisedImage/NormalisedImage.js.map +0 -1
  845. package/lib/components/NormalisedImage/NormalisedImage.mjs +0 -21
  846. package/lib/components/NormalisedImage/NormalisedImage.mjs.map +0 -1
  847. package/lib/components/NormalisedImage/NormalisedImage.types.d.ts +0 -15
  848. package/lib/components/NormalisedImage/NormalisedImage.types.js +0 -3
  849. package/lib/components/NormalisedImage/NormalisedImage.types.js.map +0 -1
  850. package/lib/components/NormalisedImage/NormalisedImage.types.mjs +0 -2
  851. package/lib/components/NormalisedImage/NormalisedImage.types.mjs.map +0 -1
  852. package/lib/components/NormalisedImage/index.d.ts +0 -2
  853. package/lib/components/NormalisedImage/index.js +0 -7
  854. package/lib/components/NormalisedImage/index.js.map +0 -1
  855. package/lib/components/NormalisedImage/index.mjs +0 -4
  856. package/lib/components/NormalisedImage/index.mjs.map +0 -1
  857. package/lib/components/Pagination/Pagination.d.ts +0 -2
  858. package/lib/components/Pagination/Pagination.js +0 -71
  859. package/lib/components/Pagination/Pagination.js.map +0 -1
  860. package/lib/components/Pagination/Pagination.mjs +0 -69
  861. package/lib/components/Pagination/Pagination.mjs.map +0 -1
  862. package/lib/components/Pagination/Pagination.styles.d.ts +0 -5
  863. package/lib/components/Pagination/Pagination.styles.js +0 -51
  864. package/lib/components/Pagination/Pagination.styles.js.map +0 -1
  865. package/lib/components/Pagination/Pagination.styles.mjs +0 -41
  866. package/lib/components/Pagination/Pagination.styles.mjs.map +0 -1
  867. package/lib/components/Pagination/Pagination.types.d.ts +0 -5
  868. package/lib/components/Pagination/index.d.ts +0 -2
  869. package/lib/components/Pagination/index.js +0 -6
  870. package/lib/components/Pagination/index.js.map +0 -1
  871. package/lib/components/Pagination/index.mjs +0 -3
  872. package/lib/components/Pagination/index.mjs.map +0 -1
  873. package/lib/components/Popover/Popover.d.ts +0 -20
  874. package/lib/components/Popover/Popover.js +0 -37
  875. package/lib/components/Popover/Popover.js.map +0 -1
  876. package/lib/components/Popover/Popover.mjs +0 -29
  877. package/lib/components/Popover/Popover.mjs.map +0 -1
  878. package/lib/components/Popover/Popover.styles.d.ts +0 -15
  879. package/lib/components/Popover/Popover.styles.js +0 -122
  880. package/lib/components/Popover/Popover.styles.js.map +0 -1
  881. package/lib/components/Popover/Popover.styles.mjs +0 -111
  882. package/lib/components/Popover/Popover.styles.mjs.map +0 -1
  883. package/lib/components/Popover/Popover.types.d.ts +0 -8
  884. package/lib/components/Popover/index.d.ts +0 -1
  885. package/lib/components/Popover/index.js +0 -6
  886. package/lib/components/Popover/index.js.map +0 -1
  887. package/lib/components/Popover/index.mjs +0 -3
  888. package/lib/components/Popover/index.mjs.map +0 -1
  889. package/lib/components/PriceRangeSlider/PriceRangeSlider.d.ts +0 -2
  890. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +0 -203
  891. package/lib/components/PriceRangeSlider/PriceRangeSlider.js.map +0 -1
  892. package/lib/components/PriceRangeSlider/PriceRangeSlider.mjs +0 -195
  893. package/lib/components/PriceRangeSlider/PriceRangeSlider.mjs.map +0 -1
  894. package/lib/components/PriceRangeSlider/PriceRangeSlider.styles.d.ts +0 -7
  895. package/lib/components/PriceRangeSlider/PriceRangeSlider.styles.js +0 -77
  896. package/lib/components/PriceRangeSlider/PriceRangeSlider.styles.js.map +0 -1
  897. package/lib/components/PriceRangeSlider/PriceRangeSlider.styles.mjs +0 -63
  898. package/lib/components/PriceRangeSlider/PriceRangeSlider.styles.mjs.map +0 -1
  899. package/lib/components/PriceRangeSlider/PriceRangeSlider.types.d.ts +0 -23
  900. package/lib/components/PriceRangeSlider/PriceRangeSlider.types.js +0 -10
  901. package/lib/components/PriceRangeSlider/PriceRangeSlider.types.js.map +0 -1
  902. package/lib/components/PriceRangeSlider/PriceRangeSlider.types.mjs +0 -9
  903. package/lib/components/PriceRangeSlider/PriceRangeSlider.types.mjs.map +0 -1
  904. package/lib/components/PriceRangeSlider/index.d.ts +0 -1
  905. package/lib/components/PriceRangeSlider/index.js +0 -6
  906. package/lib/components/PriceRangeSlider/index.js.map +0 -1
  907. package/lib/components/PriceRangeSlider/index.mjs +0 -3
  908. package/lib/components/PriceRangeSlider/index.mjs.map +0 -1
  909. package/lib/components/ProductCard/ProductCard.constants.d.ts +0 -13
  910. package/lib/components/ProductCard/ProductCard.constants.js +0 -18
  911. package/lib/components/ProductCard/ProductCard.constants.js.map +0 -1
  912. package/lib/components/ProductCard/ProductCard.constants.mjs +0 -17
  913. package/lib/components/ProductCard/ProductCard.constants.mjs.map +0 -1
  914. package/lib/components/ProductCard/ProductCard.d.ts +0 -2
  915. package/lib/components/ProductCard/ProductCard.js +0 -139
  916. package/lib/components/ProductCard/ProductCard.js.map +0 -1
  917. package/lib/components/ProductCard/ProductCard.mjs +0 -130
  918. package/lib/components/ProductCard/ProductCard.mjs.map +0 -1
  919. package/lib/components/ProductCard/ProductCard.styles.d.ts +0 -20
  920. package/lib/components/ProductCard/ProductCard.styles.js +0 -178
  921. package/lib/components/ProductCard/ProductCard.styles.js.map +0 -1
  922. package/lib/components/ProductCard/ProductCard.styles.mjs +0 -155
  923. package/lib/components/ProductCard/ProductCard.styles.mjs.map +0 -1
  924. package/lib/components/ProductCard/ProductCard.types.d.ts +0 -9
  925. package/lib/components/ProductCard/index.d.ts +0 -1
  926. package/lib/components/ProductCard/index.js +0 -6
  927. package/lib/components/ProductCard/index.js.map +0 -1
  928. package/lib/components/ProductCard/index.mjs +0 -3
  929. package/lib/components/ProductCard/index.mjs.map +0 -1
  930. package/lib/components/ProductCardPopup/ProductCardPopup.d.ts +0 -2
  931. package/lib/components/ProductCardPopup/ProductCardPopup.js +0 -247
  932. package/lib/components/ProductCardPopup/ProductCardPopup.js.map +0 -1
  933. package/lib/components/ProductCardPopup/ProductCardPopup.mjs +0 -245
  934. package/lib/components/ProductCardPopup/ProductCardPopup.mjs.map +0 -1
  935. package/lib/components/ProductCardPopup/ProductCardPopup.stories.d.ts +0 -21
  936. package/lib/components/ProductCardPopup/ProductCardPopup.styles.d.ts +0 -60
  937. package/lib/components/ProductCardPopup/ProductCardPopup.styles.js +0 -346
  938. package/lib/components/ProductCardPopup/ProductCardPopup.styles.js.map +0 -1
  939. package/lib/components/ProductCardPopup/ProductCardPopup.styles.mjs +0 -305
  940. package/lib/components/ProductCardPopup/ProductCardPopup.styles.mjs.map +0 -1
  941. package/lib/components/ProductCardPopup/ProductCardPopup.types.d.ts +0 -36
  942. package/lib/components/ProductCardPopup/index.d.ts +0 -1
  943. package/lib/components/ProductCardPopup/index.js +0 -6
  944. package/lib/components/ProductCardPopup/index.js.map +0 -1
  945. package/lib/components/ProductCardPopup/index.mjs +0 -3
  946. package/lib/components/ProductCardPopup/index.mjs.map +0 -1
  947. package/lib/components/ProductCompare/ProductCompare.constants.d.ts +0 -9
  948. package/lib/components/ProductCompare/ProductCompare.constants.js +0 -14
  949. package/lib/components/ProductCompare/ProductCompare.constants.js.map +0 -1
  950. package/lib/components/ProductCompare/ProductCompare.constants.mjs +0 -13
  951. package/lib/components/ProductCompare/ProductCompare.constants.mjs.map +0 -1
  952. package/lib/components/ProductCompare/ProductCompare.d.ts +0 -2
  953. package/lib/components/ProductCompare/ProductCompare.js +0 -158
  954. package/lib/components/ProductCompare/ProductCompare.js.map +0 -1
  955. package/lib/components/ProductCompare/ProductCompare.mjs +0 -150
  956. package/lib/components/ProductCompare/ProductCompare.mjs.map +0 -1
  957. package/lib/components/ProductCompare/ProductCompare.styles.d.ts +0 -20
  958. package/lib/components/ProductCompare/ProductCompare.styles.js +0 -152
  959. package/lib/components/ProductCompare/ProductCompare.styles.js.map +0 -1
  960. package/lib/components/ProductCompare/ProductCompare.styles.mjs +0 -127
  961. package/lib/components/ProductCompare/ProductCompare.styles.mjs.map +0 -1
  962. package/lib/components/ProductCompare/ProductCompare.types.d.ts +0 -17
  963. package/lib/components/ProductCompare/ProductCompare.utils.d.ts +0 -2
  964. package/lib/components/ProductCompare/ProductCompare.utils.js +0 -20
  965. package/lib/components/ProductCompare/ProductCompare.utils.js.map +0 -1
  966. package/lib/components/ProductCompare/ProductCompare.utils.mjs +0 -18
  967. package/lib/components/ProductCompare/ProductCompare.utils.mjs.map +0 -1
  968. package/lib/components/ProductCompare/index.d.ts +0 -1
  969. package/lib/components/ProductCompare/index.js +0 -6
  970. package/lib/components/ProductCompare/index.js.map +0 -1
  971. package/lib/components/ProductCompare/index.mjs +0 -3
  972. package/lib/components/ProductCompare/index.mjs.map +0 -1
  973. package/lib/components/ProductCompare/mapping.d.ts +0 -62
  974. package/lib/components/ProductCompare/mapping.js +0 -1107
  975. package/lib/components/ProductCompare/mapping.js.map +0 -1
  976. package/lib/components/ProductCompare/mapping.mjs +0 -1098
  977. package/lib/components/ProductCompare/mapping.mjs.map +0 -1
  978. package/lib/components/ProductCompare/mapping.test.d.ts +0 -1
  979. package/lib/components/ProductDetails/ProductDetails.d.ts +0 -2
  980. package/lib/components/ProductDetails/ProductDetails.js +0 -53
  981. package/lib/components/ProductDetails/ProductDetails.js.map +0 -1
  982. package/lib/components/ProductDetails/ProductDetails.mjs +0 -51
  983. package/lib/components/ProductDetails/ProductDetails.mjs.map +0 -1
  984. package/lib/components/ProductDetails/ProductDetails.styles.d.ts +0 -2
  985. package/lib/components/ProductDetails/ProductDetails.styles.js +0 -101
  986. package/lib/components/ProductDetails/ProductDetails.styles.js.map +0 -1
  987. package/lib/components/ProductDetails/ProductDetails.styles.mjs +0 -92
  988. package/lib/components/ProductDetails/ProductDetails.styles.mjs.map +0 -1
  989. package/lib/components/ProductDetails/ProductDetails.types.d.ts +0 -6
  990. package/lib/components/ProductDetails/index.d.ts +0 -2
  991. package/lib/components/ProductDetails/index.js +0 -8
  992. package/lib/components/ProductDetails/index.js.map +0 -1
  993. package/lib/components/ProductDetails/index.mjs +0 -4
  994. package/lib/components/ProductDetails/index.mjs.map +0 -1
  995. package/lib/components/ProductGrid/ProductGrid.d.ts +0 -2
  996. package/lib/components/ProductGrid/ProductGrid.js +0 -168
  997. package/lib/components/ProductGrid/ProductGrid.js.map +0 -1
  998. package/lib/components/ProductGrid/ProductGrid.mjs +0 -166
  999. package/lib/components/ProductGrid/ProductGrid.mjs.map +0 -1
  1000. package/lib/components/ProductGrid/ProductGrid.styles.d.ts +0 -10
  1001. package/lib/components/ProductGrid/ProductGrid.styles.js +0 -111
  1002. package/lib/components/ProductGrid/ProductGrid.styles.js.map +0 -1
  1003. package/lib/components/ProductGrid/ProductGrid.styles.mjs +0 -94
  1004. package/lib/components/ProductGrid/ProductGrid.styles.mjs.map +0 -1
  1005. package/lib/components/ProductGrid/ProductGrid.types.d.ts +0 -100
  1006. package/lib/components/ProductGrid/ProductGrid.types.js +0 -12
  1007. package/lib/components/ProductGrid/ProductGrid.types.js.map +0 -1
  1008. package/lib/components/ProductGrid/ProductGrid.types.mjs +0 -11
  1009. package/lib/components/ProductGrid/ProductGrid.types.mjs.map +0 -1
  1010. package/lib/components/ProductGrid/index.d.ts +0 -1
  1011. package/lib/components/ProductGrid/index.js +0 -6
  1012. package/lib/components/ProductGrid/index.js.map +0 -1
  1013. package/lib/components/ProductGrid/index.mjs +0 -3
  1014. package/lib/components/ProductGrid/index.mjs.map +0 -1
  1015. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.d.ts +0 -2
  1016. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +0 -72
  1017. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js.map +0 -1
  1018. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.mjs +0 -70
  1019. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.mjs.map +0 -1
  1020. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.styles.d.ts +0 -7
  1021. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.styles.js +0 -89
  1022. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.styles.js.map +0 -1
  1023. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.styles.mjs +0 -75
  1024. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.styles.mjs.map +0 -1
  1025. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.types.d.ts +0 -19
  1026. package/lib/components/ProductKeyFeatures/index.d.ts +0 -1
  1027. package/lib/components/ProductKeyFeatures/index.js +0 -6
  1028. package/lib/components/ProductKeyFeatures/index.js.map +0 -1
  1029. package/lib/components/ProductKeyFeatures/index.mjs +0 -3
  1030. package/lib/components/ProductKeyFeatures/index.mjs.map +0 -1
  1031. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.d.ts +0 -2
  1032. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.js +0 -44
  1033. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.js.map +0 -1
  1034. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.mjs +0 -42
  1035. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.mjs.map +0 -1
  1036. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.d.ts +0 -12
  1037. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.js +0 -83
  1038. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.js.map +0 -1
  1039. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.mjs +0 -68
  1040. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.styles.mjs.map +0 -1
  1041. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.types.d.ts +0 -17
  1042. package/lib/components/ProductRecommendedAccessories/index.d.ts +0 -1
  1043. package/lib/components/ProductRecommendedAccessories/index.js +0 -6
  1044. package/lib/components/ProductRecommendedAccessories/index.js.map +0 -1
  1045. package/lib/components/ProductRecommendedAccessories/index.mjs +0 -3
  1046. package/lib/components/ProductRecommendedAccessories/index.mjs.map +0 -1
  1047. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.d.ts +0 -2
  1048. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +0 -10
  1049. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.types.d.ts +0 -25
  1050. package/lib/components/ProductSectionNavigation/index.d.ts +0 -1
  1051. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.d.ts +0 -2
  1052. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +0 -10
  1053. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.types.d.ts +0 -21
  1054. package/lib/components/ProductSectionNavigationV2/index.d.ts +0 -2
  1055. package/lib/components/ProductSectionTabs/ProductSectionTabs.d.ts +0 -2
  1056. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +0 -80
  1057. package/lib/components/ProductSectionTabs/ProductSectionTabs.js.map +0 -1
  1058. package/lib/components/ProductSectionTabs/ProductSectionTabs.mjs +0 -78
  1059. package/lib/components/ProductSectionTabs/ProductSectionTabs.mjs.map +0 -1
  1060. package/lib/components/ProductSectionTabs/ProductSectionTabs.styles.d.ts +0 -16
  1061. package/lib/components/ProductSectionTabs/ProductSectionTabs.styles.js +0 -147
  1062. package/lib/components/ProductSectionTabs/ProductSectionTabs.styles.js.map +0 -1
  1063. package/lib/components/ProductSectionTabs/ProductSectionTabs.styles.mjs +0 -135
  1064. package/lib/components/ProductSectionTabs/ProductSectionTabs.styles.mjs.map +0 -1
  1065. package/lib/components/ProductSectionTabs/ProductSectionTabs.types.d.ts +0 -25
  1066. package/lib/components/ProductSectionTabs/index.d.ts +0 -2
  1067. package/lib/components/ProductSectionTabs/index.js +0 -6
  1068. package/lib/components/ProductSectionTabs/index.js.map +0 -1
  1069. package/lib/components/ProductSectionTabs/index.mjs +0 -3
  1070. package/lib/components/ProductSectionTabs/index.mjs.map +0 -1
  1071. package/lib/components/ProductUpsell/ProductUpsell.d.ts +0 -2
  1072. package/lib/components/ProductUpsell/ProductUpsell.styles.d.ts +0 -21
  1073. package/lib/components/ProductUpsell/ProductUpsell.types.d.ts +0 -38
  1074. package/lib/components/ProductUpsell/index.d.ts +0 -1
  1075. package/lib/components/ProductWizard/Options/Options.d.ts +0 -2
  1076. package/lib/components/ProductWizard/Options/Options.js +0 -77
  1077. package/lib/components/ProductWizard/Options/Options.js.map +0 -1
  1078. package/lib/components/ProductWizard/Options/Options.mjs +0 -75
  1079. package/lib/components/ProductWizard/Options/Options.mjs.map +0 -1
  1080. package/lib/components/ProductWizard/Options/Options.styles.d.ts +0 -2
  1081. package/lib/components/ProductWizard/Options/Options.styles.js +0 -24
  1082. package/lib/components/ProductWizard/Options/Options.styles.js.map +0 -1
  1083. package/lib/components/ProductWizard/Options/Options.styles.mjs +0 -15
  1084. package/lib/components/ProductWizard/Options/Options.styles.mjs.map +0 -1
  1085. package/lib/components/ProductWizard/Options/Options.types.d.ts +0 -8
  1086. package/lib/components/ProductWizard/Options/index.d.ts +0 -1
  1087. package/lib/components/ProductWizard/Options/index.js +0 -6
  1088. package/lib/components/ProductWizard/Options/index.js.map +0 -1
  1089. package/lib/components/ProductWizard/Options/index.mjs +0 -3
  1090. package/lib/components/ProductWizard/Options/index.mjs.map +0 -1
  1091. package/lib/components/ProductWizard/ProductWizard.d.ts +0 -5
  1092. package/lib/components/ProductWizard/ProductWizard.js +0 -114
  1093. package/lib/components/ProductWizard/ProductWizard.js.map +0 -1
  1094. package/lib/components/ProductWizard/ProductWizard.mjs +0 -105
  1095. package/lib/components/ProductWizard/ProductWizard.mjs.map +0 -1
  1096. package/lib/components/ProductWizard/ProductWizard.styles.d.ts +0 -29
  1097. package/lib/components/ProductWizard/ProductWizard.styles.js +0 -147
  1098. package/lib/components/ProductWizard/ProductWizard.styles.js.map +0 -1
  1099. package/lib/components/ProductWizard/ProductWizard.styles.mjs +0 -130
  1100. package/lib/components/ProductWizard/ProductWizard.styles.mjs.map +0 -1
  1101. package/lib/components/ProductWizard/ProductWizard.types.d.ts +0 -99
  1102. package/lib/components/ProductWizard/index.d.ts +0 -1
  1103. package/lib/components/ProductWizard/index.js +0 -6
  1104. package/lib/components/ProductWizard/index.js.map +0 -1
  1105. package/lib/components/ProductWizard/index.mjs +0 -3
  1106. package/lib/components/ProductWizard/index.mjs.map +0 -1
  1107. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.d.ts +0 -2
  1108. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +0 -163
  1109. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js.map +0 -1
  1110. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.mjs +0 -151
  1111. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.mjs.map +0 -1
  1112. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.d.ts +0 -9
  1113. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.js +0 -67
  1114. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.js.map +0 -1
  1115. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.mjs +0 -51
  1116. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.styles.mjs.map +0 -1
  1117. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.types.d.ts +0 -7
  1118. package/lib/components/ProductWizardFootnotes/index.d.ts +0 -1
  1119. package/lib/components/ProductWizardFootnotes/index.js +0 -6
  1120. package/lib/components/ProductWizardFootnotes/index.js.map +0 -1
  1121. package/lib/components/ProductWizardFootnotes/index.mjs +0 -3
  1122. package/lib/components/ProductWizardFootnotes/index.mjs.map +0 -1
  1123. package/lib/components/ProgressCircle/ProgressCircle.d.ts +0 -2
  1124. package/lib/components/ProgressCircle/ProgressCircle.js.map +0 -1
  1125. package/lib/components/ProgressCircle/ProgressCircle.mjs.map +0 -1
  1126. package/lib/components/ProgressCircle/index.d.ts +0 -1
  1127. package/lib/components/ProgressCircle/index.js +0 -6
  1128. package/lib/components/ProgressCircle/index.js.map +0 -1
  1129. package/lib/components/ProgressCircle/index.mjs +0 -3
  1130. package/lib/components/ProgressCircle/index.mjs.map +0 -1
  1131. package/lib/components/RelatedProducts/RelatedProducts.d.ts +0 -10
  1132. package/lib/components/RelatedProducts/RelatedProducts.js +0 -89
  1133. package/lib/components/RelatedProducts/RelatedProducts.js.map +0 -1
  1134. package/lib/components/RelatedProducts/RelatedProducts.mjs +0 -81
  1135. package/lib/components/RelatedProducts/RelatedProducts.mjs.map +0 -1
  1136. package/lib/components/RelatedProducts/RelatedProducts.styles.d.ts +0 -15
  1137. package/lib/components/RelatedProducts/RelatedProducts.styles.js +0 -125
  1138. package/lib/components/RelatedProducts/RelatedProducts.styles.js.map +0 -1
  1139. package/lib/components/RelatedProducts/RelatedProducts.styles.mjs +0 -105
  1140. package/lib/components/RelatedProducts/RelatedProducts.styles.mjs.map +0 -1
  1141. package/lib/components/RelatedProducts/RelatedProducts.types.d.ts +0 -32
  1142. package/lib/components/RelatedProducts/index.d.ts +0 -1
  1143. package/lib/components/RelatedProducts/index.js +0 -6
  1144. package/lib/components/RelatedProducts/index.js.map +0 -1
  1145. package/lib/components/RelatedProducts/index.mjs +0 -3
  1146. package/lib/components/RelatedProducts/index.mjs.map +0 -1
  1147. package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.d.ts +0 -11
  1148. package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.styles.d.ts +0 -27
  1149. package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.types.d.ts +0 -32
  1150. package/lib/components/RelatedProductsVariantSelector/index.d.ts +0 -1
  1151. package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.d.ts +0 -13
  1152. package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.styles.d.ts +0 -40
  1153. package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.types.d.ts +0 -30
  1154. package/lib/components/RelatedProductsVariantSelectorV1/index.d.ts +0 -1
  1155. package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.d.ts +0 -13
  1156. package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.styles.d.ts +0 -44
  1157. package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.types.d.ts +0 -31
  1158. package/lib/components/RelatedProductsVariantSelectorV2/index.d.ts +0 -1
  1159. package/lib/components/RelatedProductsVariantSelectorsV1/RelatedProductsVariantSelectors.d.ts +0 -2
  1160. package/lib/components/RelatedProductsVariantSelectorsV1/RelatedProductsVariantSelectors.types.d.ts +0 -19
  1161. package/lib/components/RelatedProductsVariantSelectorsV1/index.d.ts +0 -1
  1162. package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.d.ts +0 -2
  1163. package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.styles.d.ts +0 -1
  1164. package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.types.d.ts +0 -19
  1165. package/lib/components/RelatedProductsVariantSelectorsV2/index.d.ts +0 -1
  1166. package/lib/components/SearchInput/Input.styles.d.ts +0 -20
  1167. package/lib/components/SkeletonFootnote/SkeletonFootnote.d.ts +0 -6
  1168. package/lib/components/SkeletonFootnote/SkeletonFootnote.js +0 -48
  1169. package/lib/components/SkeletonFootnote/SkeletonFootnote.js.map +0 -1
  1170. package/lib/components/SkeletonFootnote/SkeletonFootnote.mjs +0 -39
  1171. package/lib/components/SkeletonFootnote/SkeletonFootnote.mjs.map +0 -1
  1172. package/lib/components/SkeletonFootnote/index.d.ts +0 -1
  1173. package/lib/components/SkeletonFootnote/index.js +0 -6
  1174. package/lib/components/SkeletonFootnote/index.js.map +0 -1
  1175. package/lib/components/SkeletonFootnote/index.mjs +0 -3
  1176. package/lib/components/SkeletonFootnote/index.mjs.map +0 -1
  1177. package/lib/components/StorageSliders/Slider/Slider.d.ts +0 -2
  1178. package/lib/components/StorageSliders/Slider/Slider.js +0 -41
  1179. package/lib/components/StorageSliders/Slider/Slider.js.map +0 -1
  1180. package/lib/components/StorageSliders/Slider/Slider.mjs +0 -39
  1181. package/lib/components/StorageSliders/Slider/Slider.mjs.map +0 -1
  1182. package/lib/components/StorageSliders/Slider/Slider.styles.d.ts +0 -12
  1183. package/lib/components/StorageSliders/Slider/Slider.styles.js +0 -76
  1184. package/lib/components/StorageSliders/Slider/Slider.styles.js.map +0 -1
  1185. package/lib/components/StorageSliders/Slider/Slider.styles.mjs +0 -63
  1186. package/lib/components/StorageSliders/Slider/Slider.styles.mjs.map +0 -1
  1187. package/lib/components/StorageSliders/Slider/Slider.types.d.ts +0 -5
  1188. package/lib/components/StorageSliders/Slider/index.d.ts +0 -1
  1189. package/lib/components/StorageSliders/Slider/index.js +0 -6
  1190. package/lib/components/StorageSliders/Slider/index.js.map +0 -1
  1191. package/lib/components/StorageSliders/Slider/index.mjs +0 -3
  1192. package/lib/components/StorageSliders/Slider/index.mjs.map +0 -1
  1193. package/lib/components/StorageSliders/StorageSliders.constants.d.ts +0 -19
  1194. package/lib/components/StorageSliders/StorageSliders.constants.js +0 -41
  1195. package/lib/components/StorageSliders/StorageSliders.constants.js.map +0 -1
  1196. package/lib/components/StorageSliders/StorageSliders.constants.mjs +0 -38
  1197. package/lib/components/StorageSliders/StorageSliders.constants.mjs.map +0 -1
  1198. package/lib/components/StorageSliders/StorageSliders.context.d.ts +0 -7
  1199. package/lib/components/StorageSliders/StorageSliders.context.js +0 -148
  1200. package/lib/components/StorageSliders/StorageSliders.context.js.map +0 -1
  1201. package/lib/components/StorageSliders/StorageSliders.context.mjs +0 -145
  1202. package/lib/components/StorageSliders/StorageSliders.context.mjs.map +0 -1
  1203. package/lib/components/StorageSliders/StorageSliders.d.ts +0 -2
  1204. package/lib/components/StorageSliders/StorageSliders.js +0 -102
  1205. package/lib/components/StorageSliders/StorageSliders.js.map +0 -1
  1206. package/lib/components/StorageSliders/StorageSliders.mjs +0 -94
  1207. package/lib/components/StorageSliders/StorageSliders.mjs.map +0 -1
  1208. package/lib/components/StorageSliders/StorageSliders.styles.d.ts +0 -16
  1209. package/lib/components/StorageSliders/StorageSliders.styles.js +0 -154
  1210. package/lib/components/StorageSliders/StorageSliders.styles.js.map +0 -1
  1211. package/lib/components/StorageSliders/StorageSliders.styles.mjs +0 -137
  1212. package/lib/components/StorageSliders/StorageSliders.styles.mjs.map +0 -1
  1213. package/lib/components/StorageSliders/StorageSliders.types.d.ts +0 -25
  1214. package/lib/components/StorageSliders/StorageSliders.types.js +0 -10
  1215. package/lib/components/StorageSliders/StorageSliders.types.js.map +0 -1
  1216. package/lib/components/StorageSliders/StorageSliders.types.mjs +0 -9
  1217. package/lib/components/StorageSliders/StorageSliders.types.mjs.map +0 -1
  1218. package/lib/components/StorageSliders/StorageSliders.utils.d.ts +0 -11
  1219. package/lib/components/StorageSliders/StorageSliders.utils.js +0 -45
  1220. package/lib/components/StorageSliders/StorageSliders.utils.js.map +0 -1
  1221. package/lib/components/StorageSliders/StorageSliders.utils.mjs +0 -42
  1222. package/lib/components/StorageSliders/StorageSliders.utils.mjs.map +0 -1
  1223. package/lib/components/StorageSliders/index.d.ts +0 -1
  1224. package/lib/components/StorageSliders/index.js +0 -6
  1225. package/lib/components/StorageSliders/index.js.map +0 -1
  1226. package/lib/components/StorageSliders/index.mjs +0 -3
  1227. package/lib/components/StorageSliders/index.mjs.map +0 -1
  1228. package/lib/components/TabinationButtons/TabinationButtons.d.ts +0 -2
  1229. package/lib/components/TabinationButtons/TabinationButtons.styles.d.ts +0 -13
  1230. package/lib/components/TabinationButtons/TabinationButtons.types.d.ts +0 -22
  1231. package/lib/components/TabinationButtons/index.d.ts +0 -1
  1232. package/lib/components/TopologyScheme/TopologyScheme.d.ts +0 -2
  1233. package/lib/components/TopologyScheme/TopologyScheme.styles.d.ts +0 -20
  1234. package/lib/components/TopologyScheme/TopologyScheme.types.d.ts +0 -35
  1235. package/lib/components/TopologyScheme/index.d.ts +0 -2
  1236. package/lib/components/VariantSelector/CheckBox/CheckBox.d.ts +0 -6
  1237. package/lib/components/VariantSelector/CheckBox/CheckBox.js +0 -44
  1238. package/lib/components/VariantSelector/CheckBox/CheckBox.js.map +0 -1
  1239. package/lib/components/VariantSelector/CheckBox/CheckBox.mjs +0 -35
  1240. package/lib/components/VariantSelector/CheckBox/CheckBox.mjs.map +0 -1
  1241. package/lib/components/VariantSelector/CheckBox/CheckBox.styles.d.ts +0 -10
  1242. package/lib/components/VariantSelector/CheckBox/CheckBox.styles.js +0 -77
  1243. package/lib/components/VariantSelector/CheckBox/CheckBox.styles.js.map +0 -1
  1244. package/lib/components/VariantSelector/CheckBox/CheckBox.styles.mjs +0 -66
  1245. package/lib/components/VariantSelector/CheckBox/CheckBox.styles.mjs.map +0 -1
  1246. package/lib/components/VariantSelector/CheckBox/assets/check.svg.js +0 -27
  1247. package/lib/components/VariantSelector/CheckBox/assets/check.svg.js.map +0 -1
  1248. package/lib/components/VariantSelector/CheckBox/assets/check.svg.mjs +0 -3
  1249. package/lib/components/VariantSelector/CheckBox/assets/check.svg.mjs.map +0 -1
  1250. package/lib/components/VariantSelector/CheckBox/assets/plus.svg.js +0 -27
  1251. package/lib/components/VariantSelector/CheckBox/assets/plus.svg.js.map +0 -1
  1252. package/lib/components/VariantSelector/CheckBox/assets/plus.svg.mjs +0 -3
  1253. package/lib/components/VariantSelector/CheckBox/assets/plus.svg.mjs.map +0 -1
  1254. package/lib/components/VariantSelector/CheckBox/index.d.ts +0 -1
  1255. package/lib/components/VariantSelector/CheckBox/index.js +0 -6
  1256. package/lib/components/VariantSelector/CheckBox/index.js.map +0 -1
  1257. package/lib/components/VariantSelector/CheckBox/index.mjs +0 -3
  1258. package/lib/components/VariantSelector/CheckBox/index.mjs.map +0 -1
  1259. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.d.ts +0 -5
  1260. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.js +0 -109
  1261. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.js.map +0 -1
  1262. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.mjs +0 -87
  1263. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.mjs.map +0 -1
  1264. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.styles.d.ts +0 -7
  1265. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.styles.js +0 -71
  1266. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.styles.js.map +0 -1
  1267. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.styles.mjs +0 -57
  1268. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.styles.mjs.map +0 -1
  1269. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.types.d.ts +0 -6
  1270. package/lib/components/VariantSelector/Variant/BundleOffer/index.d.ts +0 -1
  1271. package/lib/components/VariantSelector/Variant/BundleOffer/index.js +0 -6
  1272. package/lib/components/VariantSelector/Variant/BundleOffer/index.js.map +0 -1
  1273. package/lib/components/VariantSelector/Variant/BundleOffer/index.mjs +0 -3
  1274. package/lib/components/VariantSelector/Variant/BundleOffer/index.mjs.map +0 -1
  1275. package/lib/components/VariantSelector/Variant/BundleOffer/translations/ar.json.js +0 -37
  1276. package/lib/components/VariantSelector/Variant/BundleOffer/translations/ar.json.js.map +0 -1
  1277. package/lib/components/VariantSelector/Variant/BundleOffer/translations/ar.json.mjs +0 -23
  1278. package/lib/components/VariantSelector/Variant/BundleOffer/translations/ar.json.mjs.map +0 -1
  1279. package/lib/components/VariantSelector/Variant/BundleOffer/translations/de.json.js +0 -37
  1280. package/lib/components/VariantSelector/Variant/BundleOffer/translations/de.json.js.map +0 -1
  1281. package/lib/components/VariantSelector/Variant/BundleOffer/translations/de.json.mjs +0 -23
  1282. package/lib/components/VariantSelector/Variant/BundleOffer/translations/de.json.mjs.map +0 -1
  1283. package/lib/components/VariantSelector/Variant/BundleOffer/translations/el.json.js +0 -37
  1284. package/lib/components/VariantSelector/Variant/BundleOffer/translations/el.json.js.map +0 -1
  1285. package/lib/components/VariantSelector/Variant/BundleOffer/translations/el.json.mjs +0 -23
  1286. package/lib/components/VariantSelector/Variant/BundleOffer/translations/el.json.mjs.map +0 -1
  1287. package/lib/components/VariantSelector/Variant/BundleOffer/translations/en.json.js +0 -30
  1288. package/lib/components/VariantSelector/Variant/BundleOffer/translations/en.json.js.map +0 -1
  1289. package/lib/components/VariantSelector/Variant/BundleOffer/translations/en.json.mjs +0 -18
  1290. package/lib/components/VariantSelector/Variant/BundleOffer/translations/en.json.mjs.map +0 -1
  1291. package/lib/components/VariantSelector/Variant/BundleOffer/translations/es.json.js +0 -37
  1292. package/lib/components/VariantSelector/Variant/BundleOffer/translations/es.json.js.map +0 -1
  1293. package/lib/components/VariantSelector/Variant/BundleOffer/translations/es.json.mjs +0 -23
  1294. package/lib/components/VariantSelector/Variant/BundleOffer/translations/es.json.mjs.map +0 -1
  1295. package/lib/components/VariantSelector/Variant/BundleOffer/translations/fr.json.js +0 -37
  1296. package/lib/components/VariantSelector/Variant/BundleOffer/translations/fr.json.js.map +0 -1
  1297. package/lib/components/VariantSelector/Variant/BundleOffer/translations/fr.json.mjs +0 -23
  1298. package/lib/components/VariantSelector/Variant/BundleOffer/translations/fr.json.mjs.map +0 -1
  1299. package/lib/components/VariantSelector/Variant/BundleOffer/translations/index.d.ts +0 -11
  1300. package/lib/components/VariantSelector/Variant/BundleOffer/translations/it.json.js +0 -37
  1301. package/lib/components/VariantSelector/Variant/BundleOffer/translations/it.json.js.map +0 -1
  1302. package/lib/components/VariantSelector/Variant/BundleOffer/translations/it.json.mjs +0 -23
  1303. package/lib/components/VariantSelector/Variant/BundleOffer/translations/it.json.mjs.map +0 -1
  1304. package/lib/components/VariantSelector/Variant/BundleOffer/translations/ja.json.js +0 -37
  1305. package/lib/components/VariantSelector/Variant/BundleOffer/translations/ja.json.js.map +0 -1
  1306. package/lib/components/VariantSelector/Variant/BundleOffer/translations/ja.json.mjs +0 -23
  1307. package/lib/components/VariantSelector/Variant/BundleOffer/translations/ja.json.mjs.map +0 -1
  1308. package/lib/components/VariantSelector/Variant/BundleOffer/translations/pt-BR.json.js +0 -37
  1309. package/lib/components/VariantSelector/Variant/BundleOffer/translations/pt-BR.json.js.map +0 -1
  1310. package/lib/components/VariantSelector/Variant/BundleOffer/translations/pt-BR.json.mjs +0 -23
  1311. package/lib/components/VariantSelector/Variant/BundleOffer/translations/pt-BR.json.mjs.map +0 -1
  1312. package/lib/components/VariantSelector/Variant/BundleOffer/translations/zh-Hans.json.js +0 -37
  1313. package/lib/components/VariantSelector/Variant/BundleOffer/translations/zh-Hans.json.js.map +0 -1
  1314. package/lib/components/VariantSelector/Variant/BundleOffer/translations/zh-Hans.json.mjs +0 -23
  1315. package/lib/components/VariantSelector/Variant/BundleOffer/translations/zh-Hans.json.mjs.map +0 -1
  1316. package/lib/components/VariantSelector/Variant/BundleOffer/translations/zh-Hant-TW.json.js +0 -37
  1317. package/lib/components/VariantSelector/Variant/BundleOffer/translations/zh-Hant-TW.json.js.map +0 -1
  1318. package/lib/components/VariantSelector/Variant/BundleOffer/translations/zh-Hant-TW.json.mjs +0 -23
  1319. package/lib/components/VariantSelector/Variant/BundleOffer/translations/zh-Hant-TW.json.mjs.map +0 -1
  1320. package/lib/components/VariantSelector/Variant/BundleOffer/utils/getBundleOfferQuantity.d.ts +0 -2
  1321. package/lib/components/VariantSelector/Variant/BundleOffer/utils/getBundleOfferQuantity.js +0 -22
  1322. package/lib/components/VariantSelector/Variant/BundleOffer/utils/getBundleOfferQuantity.js.map +0 -1
  1323. package/lib/components/VariantSelector/Variant/BundleOffer/utils/getBundleOfferQuantity.mjs +0 -21
  1324. package/lib/components/VariantSelector/Variant/BundleOffer/utils/getBundleOfferQuantity.mjs.map +0 -1
  1325. package/lib/components/VariantSelector/Variant/BundleOffer/utils/getBundleOfferQuantity.test.d.ts +0 -1
  1326. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.d.ts +0 -2
  1327. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +0 -124
  1328. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js.map +0 -1
  1329. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.mjs +0 -116
  1330. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.mjs.map +0 -1
  1331. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.d.ts +0 -24
  1332. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.js +0 -158
  1333. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.js.map +0 -1
  1334. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.mjs +0 -135
  1335. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.mjs.map +0 -1
  1336. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.types.d.ts +0 -11
  1337. package/lib/components/VariantSelector/Variant/Compatibility/index.d.ts +0 -1
  1338. package/lib/components/VariantSelector/Variant/Compatibility/index.js +0 -6
  1339. package/lib/components/VariantSelector/Variant/Compatibility/index.js.map +0 -1
  1340. package/lib/components/VariantSelector/Variant/Compatibility/index.mjs +0 -3
  1341. package/lib/components/VariantSelector/Variant/Compatibility/index.mjs.map +0 -1
  1342. package/lib/components/VariantSelector/Variant/Variant.d.ts +0 -2
  1343. package/lib/components/VariantSelector/Variant/Variant.js +0 -699
  1344. package/lib/components/VariantSelector/Variant/Variant.js.map +0 -1
  1345. package/lib/components/VariantSelector/Variant/Variant.mjs +0 -691
  1346. package/lib/components/VariantSelector/Variant/Variant.mjs.map +0 -1
  1347. package/lib/components/VariantSelector/Variant/Variant.styles.d.ts +0 -87
  1348. package/lib/components/VariantSelector/Variant/Variant.styles.js +0 -527
  1349. package/lib/components/VariantSelector/Variant/Variant.styles.js.map +0 -1
  1350. package/lib/components/VariantSelector/Variant/Variant.styles.mjs +0 -465
  1351. package/lib/components/VariantSelector/Variant/Variant.styles.mjs.map +0 -1
  1352. package/lib/components/VariantSelector/Variant/Variant.types.d.ts +0 -18
  1353. package/lib/components/VariantSelector/Variant/index.d.ts +0 -1
  1354. package/lib/components/VariantSelector/Variant/index.js +0 -6
  1355. package/lib/components/VariantSelector/Variant/index.js.map +0 -1
  1356. package/lib/components/VariantSelector/Variant/index.mjs +0 -3
  1357. package/lib/components/VariantSelector/Variant/index.mjs.map +0 -1
  1358. package/lib/components/VariantSelector/VariantSelector.constants.d.ts +0 -50
  1359. package/lib/components/VariantSelector/VariantSelector.constants.js +0 -87
  1360. package/lib/components/VariantSelector/VariantSelector.constants.js.map +0 -1
  1361. package/lib/components/VariantSelector/VariantSelector.constants.mjs +0 -84
  1362. package/lib/components/VariantSelector/VariantSelector.constants.mjs.map +0 -1
  1363. package/lib/components/VariantSelector/VariantSelector.d.ts +0 -7
  1364. package/lib/components/VariantSelector/VariantSelector.js +0 -162
  1365. package/lib/components/VariantSelector/VariantSelector.js.map +0 -1
  1366. package/lib/components/VariantSelector/VariantSelector.mjs +0 -153
  1367. package/lib/components/VariantSelector/VariantSelector.mjs.map +0 -1
  1368. package/lib/components/VariantSelector/VariantSelector.styles.d.ts +0 -20
  1369. package/lib/components/VariantSelector/VariantSelector.styles.js +0 -112
  1370. package/lib/components/VariantSelector/VariantSelector.styles.js.map +0 -1
  1371. package/lib/components/VariantSelector/VariantSelector.styles.mjs +0 -95
  1372. package/lib/components/VariantSelector/VariantSelector.styles.mjs.map +0 -1
  1373. package/lib/components/VariantSelector/VariantSelector.types.d.ts +0 -38
  1374. package/lib/components/VariantSelector/index.d.ts +0 -1
  1375. package/lib/components/VariantSelector/index.js +0 -6
  1376. package/lib/components/VariantSelector/index.js.map +0 -1
  1377. package/lib/components/VariantSelector/index.mjs +0 -3
  1378. package/lib/components/VariantSelector/index.mjs.map +0 -1
  1379. package/lib/components/VariantSelector/utils.d.ts +0 -11
  1380. package/lib/components/VariantSelectorItem/VariantSelectorItem.d.ts +0 -3
  1381. package/lib/components/VariantSelectorItem/VariantSelectorItem.js +0 -18
  1382. package/lib/components/VariantSelectorItem/VariantSelectorItem.js.map +0 -1
  1383. package/lib/components/VariantSelectorItem/VariantSelectorItem.mjs +0 -16
  1384. package/lib/components/VariantSelectorItem/VariantSelectorItem.mjs.map +0 -1
  1385. package/lib/components/VariantSelectorItem/VariantSelectorItem.styles.d.ts +0 -4
  1386. package/lib/components/VariantSelectorItem/VariantSelectorItem.styles.js +0 -47
  1387. package/lib/components/VariantSelectorItem/VariantSelectorItem.styles.js.map +0 -1
  1388. package/lib/components/VariantSelectorItem/VariantSelectorItem.styles.mjs +0 -38
  1389. package/lib/components/VariantSelectorItem/VariantSelectorItem.styles.mjs.map +0 -1
  1390. package/lib/components/VariantSelectorItem/VariantSelectorItem.types.d.ts +0 -5
  1391. package/lib/components/VariantSelectorItem/index.d.ts +0 -1
  1392. package/lib/components/VariantSelectorItem/index.js +0 -6
  1393. package/lib/components/VariantSelectorItem/index.js.map +0 -1
  1394. package/lib/components/VariantSelectorItem/index.mjs +0 -3
  1395. package/lib/components/VariantSelectorItem/index.mjs.map +0 -1
  1396. package/lib/components/VariantSelectorV1/VariantSelector.d.ts +0 -2
  1397. package/lib/components/VariantSelectorV1/VariantSelector.styles.d.ts +0 -39
  1398. package/lib/components/VariantSelectorV1/VariantSelector.types.d.ts +0 -66
  1399. package/lib/components/VariantSelectorV1/index.d.ts +0 -1
  1400. package/lib/components/VariantSelectorV2/VariantSelector.d.ts +0 -2
  1401. package/lib/components/VariantSelectorV2/VariantSelector.styles.d.ts +0 -25
  1402. package/lib/components/VariantSelectorV2/VariantSelector.types.d.ts +0 -66
  1403. package/lib/components/VariantSelectorV2/index.d.ts +0 -1
  1404. package/lib/components/VideoCookiesConsent/VideoCookiesConsent.d.ts +0 -7
  1405. package/lib/components/VideoCookiesConsent/VideoCookiesConsent.styles.d.ts +0 -9
  1406. package/lib/components/VideoCookiesConsent/index.d.ts +0 -1
  1407. package/lib/components/VideoPlayer/VideoPlayer.d.ts +0 -8
  1408. package/lib/components/VideoPlayer/VideoPlayer.styles.d.ts +0 -7
  1409. package/lib/components/VideoPlayer/index.d.ts +0 -1
  1410. package/lib/components/YouTubePlayer/YouTubePlayer.d.ts +0 -2
  1411. package/lib/components/YouTubePlayer/YouTubePlayer.types.d.ts +0 -18
  1412. package/lib/components/YouTubePlayer/index.d.ts +0 -1
  1413. package/lib/constants/icons/options/colors/black.svg.js +0 -27
  1414. package/lib/constants/icons/options/colors/black.svg.js.map +0 -1
  1415. package/lib/constants/icons/options/colors/black.svg.mjs +0 -3
  1416. package/lib/constants/icons/options/colors/black.svg.mjs.map +0 -1
  1417. package/lib/constants/icons/options/colors/blue.svg.js +0 -27
  1418. package/lib/constants/icons/options/colors/blue.svg.js.map +0 -1
  1419. package/lib/constants/icons/options/colors/blue.svg.mjs +0 -3
  1420. package/lib/constants/icons/options/colors/blue.svg.mjs.map +0 -1
  1421. package/lib/constants/icons/options/colors/darkGrey.svg.js +0 -27
  1422. package/lib/constants/icons/options/colors/darkGrey.svg.js.map +0 -1
  1423. package/lib/constants/icons/options/colors/darkGrey.svg.mjs +0 -3
  1424. package/lib/constants/icons/options/colors/darkGrey.svg.mjs.map +0 -1
  1425. package/lib/constants/icons/options/colors/grey.svg.js +0 -27
  1426. package/lib/constants/icons/options/colors/grey.svg.js.map +0 -1
  1427. package/lib/constants/icons/options/colors/grey.svg.mjs +0 -3
  1428. package/lib/constants/icons/options/colors/grey.svg.mjs.map +0 -1
  1429. package/lib/constants/icons/options/colors/index.d.ts +0 -6
  1430. package/lib/constants/icons/options/colors/index.js +0 -63
  1431. package/lib/constants/icons/options/colors/index.js.map +0 -1
  1432. package/lib/constants/icons/options/colors/index.mjs +0 -14
  1433. package/lib/constants/icons/options/colors/index.mjs.map +0 -1
  1434. package/lib/constants/icons/options/colors/lightGrey.svg.js +0 -27
  1435. package/lib/constants/icons/options/colors/lightGrey.svg.js.map +0 -1
  1436. package/lib/constants/icons/options/colors/lightGrey.svg.mjs +0 -3
  1437. package/lib/constants/icons/options/colors/lightGrey.svg.mjs.map +0 -1
  1438. package/lib/constants/icons/options/colors/white.svg.js +0 -27
  1439. package/lib/constants/icons/options/colors/white.svg.js.map +0 -1
  1440. package/lib/constants/icons/options/colors/white.svg.mjs +0 -3
  1441. package/lib/constants/icons/options/colors/white.svg.mjs.map +0 -1
  1442. package/lib/constants/icons/options/index.d.ts +0 -2
  1443. package/lib/constants/icons/options/index.js +0 -8
  1444. package/lib/constants/icons/options/index.js.map +0 -1
  1445. package/lib/constants/icons/options/index.mjs +0 -6
  1446. package/lib/constants/icons/options/index.mjs.map +0 -1
  1447. package/lib/constants/icons/options/styles/black.svg.js +0 -27
  1448. package/lib/constants/icons/options/styles/black.svg.js.map +0 -1
  1449. package/lib/constants/icons/options/styles/black.svg.mjs +0 -3
  1450. package/lib/constants/icons/options/styles/black.svg.mjs.map +0 -1
  1451. package/lib/constants/icons/options/styles/blackFabric.png.js +0 -27
  1452. package/lib/constants/icons/options/styles/blackFabric.png.js.map +0 -1
  1453. package/lib/constants/icons/options/styles/blackFabric.png.mjs +0 -3
  1454. package/lib/constants/icons/options/styles/blackFabric.png.mjs.map +0 -1
  1455. package/lib/constants/icons/options/styles/camo.png.js +0 -27
  1456. package/lib/constants/icons/options/styles/camo.png.js.map +0 -1
  1457. package/lib/constants/icons/options/styles/camo.png.mjs +0 -3
  1458. package/lib/constants/icons/options/styles/camo.png.mjs.map +0 -1
  1459. package/lib/constants/icons/options/styles/concrete.png.js +0 -27
  1460. package/lib/constants/icons/options/styles/concrete.png.js.map +0 -1
  1461. package/lib/constants/icons/options/styles/concrete.png.mjs +0 -3
  1462. package/lib/constants/icons/options/styles/concrete.png.mjs.map +0 -1
  1463. package/lib/constants/icons/options/styles/index.d.ts +0 -6
  1464. package/lib/constants/icons/options/styles/index.js +0 -63
  1465. package/lib/constants/icons/options/styles/index.js.map +0 -1
  1466. package/lib/constants/icons/options/styles/index.mjs +0 -14
  1467. package/lib/constants/icons/options/styles/index.mjs.map +0 -1
  1468. package/lib/constants/icons/options/styles/marble.png.js +0 -27
  1469. package/lib/constants/icons/options/styles/marble.png.js.map +0 -1
  1470. package/lib/constants/icons/options/styles/marble.png.mjs +0 -3
  1471. package/lib/constants/icons/options/styles/marble.png.mjs.map +0 -1
  1472. package/lib/constants/icons/options/styles/wood.png.js +0 -27
  1473. package/lib/constants/icons/options/styles/wood.png.js.map +0 -1
  1474. package/lib/constants/icons/options/styles/wood.png.mjs +0 -3
  1475. package/lib/constants/icons/options/styles/wood.png.mjs.map +0 -1
  1476. package/lib/constants/optionIcons.d.ts +0 -23
  1477. package/lib/constants/optionIcons.js +0 -97
  1478. package/lib/constants/optionIcons.js.map +0 -1
  1479. package/lib/constants/optionIcons.mjs +0 -76
  1480. package/lib/constants/optionIcons.mjs.map +0 -1
  1481. package/lib/helpers/shopify/product.d.ts +0 -5
  1482. package/lib/helpers/shopify/product.js +0 -52
  1483. package/lib/helpers/shopify/product.js.map +0 -1
  1484. package/lib/helpers/shopify/product.mjs +0 -50
  1485. package/lib/helpers/shopify/product.mjs.map +0 -1
  1486. package/lib/utils/cdn.d.ts +0 -5
  1487. package/lib/utils/collectionSlug.d.ts +0 -5
  1488. package/lib/utils/collectionSlug.js +0 -13
  1489. package/lib/utils/collectionSlug.js.map +0 -1
  1490. package/lib/utils/collectionSlug.mjs +0 -12
  1491. package/lib/utils/collectionSlug.mjs.map +0 -1
  1492. package/lib/utils/collectionSlug.test.d.ts +0 -1
  1493. package/lib/utils/variant.d.ts +0 -8
  1494. package/lib/utils/variant.js +0 -20
  1495. package/lib/utils/variant.js.map +0 -1
  1496. package/lib/utils/variant.mjs +0 -18
  1497. package/lib/utils/variant.mjs.map +0 -1
  1498. package/lib/utils/variant.test.d.ts +0 -1
  1499. package/lib/utils/wattage.d.ts +0 -11
  1500. package/lib/utils/wattage.js +0 -20
  1501. package/lib/utils/wattage.js.map +0 -1
  1502. package/lib/utils/wattage.mjs +0 -18
  1503. package/lib/utils/wattage.mjs.map +0 -1
  1504. package/lib/utils/wattage.test.d.ts +0 -1
  1505. /package/lib/components/{CartIcon → Header/CartIcon}/CartIcon.d.ts +0 -0
  1506. /package/lib/components/{CartIcon → Header/CartIcon}/CartIcon.styles.d.ts +0 -0
  1507. /package/lib/components/{CartIcon → Header/CartIcon}/CartIcon.types.d.ts +0 -0
  1508. /package/lib/components/{CartIcon → Header/CartIcon}/index.d.ts +0 -0
  1509. /package/lib/components/{CartIcon → Header/CartIcon}/index.js +0 -0
  1510. /package/lib/components/{Banner → Header/CartIcon}/index.js.map +0 -0
  1511. /package/lib/components/{CartIcon → Header/CartIcon}/index.mjs +0 -0
  1512. /package/lib/components/{Banner → Header/CartIcon}/index.mjs.map +0 -0
  1513. /package/lib/components/{Banner/Banner.styles.d.ts → MicrositeBanner/MicrositeBanner.styles.d.ts} +0 -0
  1514. /package/lib/components/{CartIcon → MicrositeBanner}/index.js.map +0 -0
  1515. /package/lib/components/{CartIcon → MicrositeBanner}/index.mjs.map +0 -0
  1516. /package/lib/components/{CartSummary → MicrositeProgressCircle}/index.js.map +0 -0
  1517. /package/lib/components/{CartSummary → MicrositeProgressCircle}/index.mjs.map +0 -0
  1518. /package/lib/components/{Gallery → ProductTechSpecs}/index.js.map +0 -0
  1519. /package/lib/components/{Gallery → ProductTechSpecs}/index.mjs.map +0 -0
@@ -19,14 +19,6 @@ var axios__default = /*#__PURE__*/_interopDefault(axios);
19
19
  var stableStringify__default = /*#__PURE__*/_interopDefault(stableStringify);
20
20
  var invert__default = /*#__PURE__*/_interopDefault(invert);
21
21
  "use strict";
22
- var __defProp = Object.defineProperty;
23
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
24
- enumerable: true,
25
- configurable: true,
26
- writable: true,
27
- value
28
- }) : obj[key] = value;
29
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
30
22
  var SmartcatEnvironment = /* @__PURE__ */(SmartcatEnvironment2 => {
31
23
  SmartcatEnvironment2["Dev"] = "proto";
32
24
  SmartcatEnvironment2["Stg"] = "qa";
@@ -48,44 +40,24 @@ const languageToSmartcatLocaleMapping = {
48
40
  [constants.Language.Zh]: "zh-Hans",
49
41
  [constants.Language.Tw]: "zh-Hant-TW"
50
42
  };
51
- const _SmartcatApi = class _SmartcatApi {
43
+ class SmartcatApi {
44
+ projectId;
45
+ collectionName;
46
+ axios;
47
+ logger;
48
+ escapeBracketDelimiters = false;
49
+ suffix;
50
+ targetLanguages;
51
+ languageToSmartcatLocaleMapping = languageToSmartcatLocaleMapping;
52
+ /**
53
+ * Depending on input we might need or not need suffixes.
54
+ */
55
+ hasSuffix;
56
+ /**
57
+ * Delimiter used to separate translation key "parts"
58
+ */
59
+ keyDelimiter = ".";
52
60
  constructor(config) {
53
- __publicField(this, "projectId");
54
- __publicField(this, "collectionName");
55
- __publicField(this, "axios");
56
- __publicField(this, "logger");
57
- __publicField(this, "escapeBracketDelimiters", false);
58
- __publicField(this, "suffix");
59
- __publicField(this, "targetLanguages");
60
- __publicField(this, "languageToSmartcatLocaleMapping", languageToSmartcatLocaleMapping);
61
- /**
62
- * Depending on input we might need or not need suffixes.
63
- */
64
- __publicField(this, "hasSuffix");
65
- /**
66
- * Delimiter used to separate translation key "parts"
67
- */
68
- __publicField(this, "keyDelimiter", ".");
69
- /**
70
- * Wait for SmartCat to fully translate all target languages.
71
- */
72
- __publicField(this, "pollAndWaitForCompletedTranslations", async (pollRunLimit = 20, pollIntervalMs = 1e4) => {
73
- let pollRunCount = 0;
74
- let translationCompleted = false;
75
- while (!translationCompleted && pollRunCount < pollRunLimit) {
76
- this.logger?.info(`\u231B SmartCat translations in progress.`);
77
- translationCompleted = await this.checkProjectTranslationStatus();
78
- pollRunCount += 1;
79
- if (!translationCompleted) {
80
- await promises.setTimeout(pollIntervalMs);
81
- }
82
- }
83
- if (translationCompleted) {
84
- await promises.setTimeout(6e4);
85
- }
86
- this.logger?.info(translationCompleted ? "\u2705 SmartCat translations completed." : "\u274C Max retries reached when waiting for SmartCat translations to complete.");
87
- return translationCompleted;
88
- });
89
61
  if ("enableLogs" in config) {
90
62
  this.logger = config.enableLogs ? console : void 0;
91
63
  } else if ("logger" in config) {
@@ -337,7 +309,7 @@ const _SmartcatApi = class _SmartcatApi {
337
309
  collections: this.collectionName,
338
310
  zip: "true",
339
311
  languages: this.targetLanguages?.map(lang => this.languageToSmartcatLocaleMapping[lang]).join(","),
340
- labels: _SmartcatApi.prepareLabels(options?.labels)
312
+ labels: SmartcatApi.prepareLabels(options?.labels)
341
313
  // FIXME: Look into only exporting values that has changed since last export minus some time via `modified-since`
342
314
  };
343
315
  const smartcatLocaleToLanguageMap = this.getSmartcatLocaleToLanguageMap();
@@ -425,7 +397,7 @@ const _SmartcatApi = class _SmartcatApi {
425
397
  const preparedTranslationUploads = rawTranslationUploads.map(translationUpload => {
426
398
  let translations = {};
427
399
  for (const [key, value] of Object.entries(translationUpload.translations)) {
428
- if (!_SmartcatApi.isTranslatableValue(value)) {
400
+ if (!SmartcatApi.isTranslatableValue(value)) {
429
401
  continue;
430
402
  }
431
403
  const suffixedKey = this.addSuffixToKey(key, value);
@@ -473,7 +445,7 @@ const _SmartcatApi = class _SmartcatApi {
473
445
  collection: this.collectionName,
474
446
  "delete-missing-keys": !!options?.deleteMissingKeys,
475
447
  // TODO: was fallback empty string really needed?
476
- labels: _SmartcatApi.prepareLabels(options?.labels) || ""
448
+ labels: SmartcatApi.prepareLabels(options?.labels) || ""
477
449
  };
478
450
  const url = `integration/v2/project/${this.projectId}/import`;
479
451
  const smartCatSourceLanguageBuffer = Buffer.from(JSON.stringify(sourceTranslations));
@@ -489,92 +461,111 @@ const _SmartcatApi = class _SmartcatApi {
489
461
  }
490
462
  });
491
463
  }
492
- };
493
- /**
494
- * Static util to prettify translation for writing to file-system
495
- */
496
- __publicField(_SmartcatApi, "prettifyTranslation", translation => {
497
- return stableStringify__default["default"](translation, {
498
- space: 2
499
- }) +
500
- // Add EOF newline
501
- `
502
- `;
503
- });
504
- /**
505
- * Checks if given value is translatable a.k.a if it's worth sending over to smartcat to translate
506
- */
507
- __publicField(_SmartcatApi, "isTranslatableValue", value => {
508
- const parsedValue = value?.trim();
509
- if (!parsedValue) {
510
- return false;
511
- }
512
- return !isDigitsOnlyRegex.test(parsedValue);
513
- });
514
- /**
515
- * Centralized method to get Smartcat label based on environment.
516
- * ! Change with caution as it impacts how translaitons will be read from Smartcat.
517
- */
518
- __publicField(_SmartcatApi, "getSmartcatLabel", env => {
519
- switch (env) {
520
- case "proto" /* Dev */:
521
- return "DEV";
522
- case "qa" /* Stg */:
523
- return "STG";
524
- // ! Not really reusable for other projects, didn't make sense right now to create generic label for it
525
- case "new-design" /* NewDesign */:
526
- return "NEW-DESIGN";
527
- case "prod" /* Prod */:
528
- return "MAIN";
529
- default:
530
- {
531
- errors.assertUnreachable(env);
532
- }
533
- }
534
- });
535
- /**
536
- * Get smartcat environment based on branch name
537
- */
538
- __publicField(_SmartcatApi, "getSmartcatEnvironmentFromGhBranchName", ghRepositoryBranchName => {
539
- switch (ghRepositoryBranchName) {
540
- case "master":
541
- case "main":
542
- {
543
- return "prod" /* Prod */;
544
- }
545
- case "new-design":
546
- {
547
- return "new-design" /* NewDesign */;
548
- }
549
- case "beta":
550
- // For store.core beta releases
551
- case "stg":
552
- // Historical GH repos
553
- case "qa":
554
- {
555
- return "qa" /* Stg */;
556
- }
557
- case "alpha":
558
- // For store.core alpha releases
559
- case "dev":
560
- // Historical GH repos
561
- case "proto":
562
- {
563
- return "proto" /* Dev */;
564
- }
565
- default:
566
- {
567
- throw new Error(`Unsupported branch name ${ghRepositoryBranchName} for Smartcat environment.`);
464
+ /**
465
+ * Wait for SmartCat to fully translate all target languages.
466
+ */
467
+ pollAndWaitForCompletedTranslations = async (pollRunLimit = 20, pollIntervalMs = 1e4) => {
468
+ let pollRunCount = 0;
469
+ let translationCompleted = false;
470
+ while (!translationCompleted && pollRunCount < pollRunLimit) {
471
+ this.logger?.info(`\u231B SmartCat translations in progress.`);
472
+ translationCompleted = await this.checkProjectTranslationStatus();
473
+ pollRunCount += 1;
474
+ if (!translationCompleted) {
475
+ await promises.setTimeout(pollIntervalMs);
568
476
  }
569
- }
570
- });
571
- /**
572
- * Util to prepare labels for passing into request parameters
573
- */
574
- __publicField(_SmartcatApi, "prepareLabels", labels => {
575
- return labels?.map(label => label.trim()).filter(Boolean).join(",");
576
- });
577
- let SmartcatApi = _SmartcatApi;
477
+ }
478
+ if (translationCompleted) {
479
+ await promises.setTimeout(6e4);
480
+ }
481
+ this.logger?.info(translationCompleted ? "\u2705 SmartCat translations completed." : "\u274C Max retries reached when waiting for SmartCat translations to complete.");
482
+ return translationCompleted;
483
+ };
484
+ /**
485
+ * Static util to prettify translation for writing to file-system
486
+ */
487
+ static prettifyTranslation = translation => {
488
+ return stableStringify__default["default"](translation, {
489
+ space: 2
490
+ }) +
491
+ // Add EOF newline
492
+ `
493
+ `;
494
+ };
495
+ /**
496
+ * Checks if given value is translatable a.k.a if it's worth sending over to smartcat to translate
497
+ */
498
+ static isTranslatableValue = value => {
499
+ const parsedValue = value?.trim();
500
+ if (!parsedValue) {
501
+ return false;
502
+ }
503
+ return !isDigitsOnlyRegex.test(parsedValue);
504
+ };
505
+ /**
506
+ * Centralized method to get Smartcat label based on environment.
507
+ * ! Change with caution as it impacts how translaitons will be read from Smartcat.
508
+ */
509
+ static getSmartcatLabel = env => {
510
+ switch (env) {
511
+ case "proto" /* Dev */:
512
+ return "DEV";
513
+ case "qa" /* Stg */:
514
+ return "STG";
515
+ // ! Not really reusable for other projects, didn't make sense right now to create generic label for it
516
+ case "new-design" /* NewDesign */:
517
+ return "NEW-DESIGN";
518
+ case "prod" /* Prod */:
519
+ return "MAIN";
520
+ default:
521
+ {
522
+ errors.assertUnreachable(env);
523
+ }
524
+ }
525
+ };
526
+ /**
527
+ * Get smartcat environment based on branch name
528
+ */
529
+ static getSmartcatEnvironmentFromGhBranchName = ghRepositoryBranchName => {
530
+ switch (ghRepositoryBranchName) {
531
+ case "master":
532
+ case "main":
533
+ {
534
+ return "prod" /* Prod */;
535
+ }
536
+ case "new-design":
537
+ {
538
+ return "new-design" /* NewDesign */;
539
+ }
540
+ case "beta":
541
+ // For store.core beta releases
542
+ case "stg":
543
+ // Historical GH repos
544
+ case "qa":
545
+ {
546
+ return "qa" /* Stg */;
547
+ }
548
+ case "alpha":
549
+ // For store.core alpha releases
550
+ case "dev":
551
+ // Historical GH repos
552
+ case "proto":
553
+ {
554
+ return "proto" /* Dev */;
555
+ }
556
+ default:
557
+ {
558
+ throw new Error(`Unsupported branch name ${ghRepositoryBranchName} for Smartcat environment.`);
559
+ }
560
+ }
561
+ };
562
+ /**
563
+ * Util to prepare labels for passing into request parameters
564
+ */
565
+ static prepareLabels = labels => {
566
+ return labels?.map(label => label.trim()).filter(Boolean).join(",");
567
+ };
568
+ }
578
569
  exports.SmartcatApi = SmartcatApi;
579
570
  exports.SmartcatEnvironment = SmartcatEnvironment;
580
571
  //# sourceMappingURL=smartcat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"smartcat.js","sources":["../../src/apis/smartcat.ts"],"sourcesContent":["/* eslint-disable no-await-in-loop */\nimport AdmZip from \"adm-zip\";\nimport type { AxiosInstance } from \"axios\";\nimport axios from \"axios\";\nimport { createHash } from \"crypto\";\nimport stableStringify from \"json-stable-stringify\";\nimport invert from \"lodash/invert\";\nimport type { Agent as HttpsAgent } from \"node:https\";\nimport { setTimeout as setTimeoutAsync } from \"node:timers/promises\";\nimport type { Logger as PinoLogger } from \"pino\";\n\nimport type { Nullish } from \"../types\";\nimport { Language } from \"../types\";\nimport { assert, assertUnreachable } from \"../utils/errors\";\n\ntype SmartcatCredentials = {\n apiSecret: string;\n accountId: string;\n projectId: string;\n collectionName: string;\n};\n\ntype SmartcatProject = {\n // Workflow type and id mapping for project\n workflowStages: Array<{\n id: string;\n stageType: \"translation\" | \"postediting\";\n }>;\n documents: Array<{\n // Collection name the document belongs to\n name: string;\n // Flag for if auto translations are complete on smartcat side\n pretranslateCompleted: boolean;\n // Workflow progress of a document\n workflowStages: Array<{\n id: string;\n progress: number;\n }>;\n // Target language of the document\n targetLanguage: string;\n }>;\n};\n\nexport enum SmartcatEnvironment {\n Dev = \"proto\",\n Stg = \"qa\",\n NewDesign = \"new-design\",\n Prod = \"prod\",\n}\n\ntype TranslationObject = Record<string, string>;\n\ntype TranslationUploadObject = {\n translations: TranslationObject;\n /**\n * (Optional) Labels that will be appended to all segments in the upload. Existing labels in SC remains untouched.\n */\n appendLabels?: string[];\n};\n\n/**\n * Basic check if given string only consists of digits\n * ! Doesn't support decimal and thousand separated numbers as it's not a relevant practical use case right now\n */\nconst isDigitsOnlyRegex = /^\\d+$/;\n\nexport type SmartcatApiConfig = {\n auth: SmartcatCredentials;\n /**\n * (optional) Parse single brackets variable delimiters before upstream to Smartcat, from \"{x}\" to \"{{x}}\".\n * @default false\n */\n escapeBracketDelimiters?: boolean;\n /**\n * (optional) Pass https agent to try to keep connections open.\n */\n httpsAgent?: HttpsAgent;\n /**\n * (optional) Languages that will be downloaded from Smartcat.\n * When omitted, all languages will be downloaded.\n */\n targetLanguages?: Language[];\n /**\n * (optional) Custom language to Smartcat locale mapping (e.g. microsite pt differs)\n * When omitted, default mapping will be used.\n */\n languageToSmartcatLocaleMapping?: Record<Language, string>;\n // #############################################################################\n // Logging options\n // #############################################################################\n} & (\n | {\n /**\n * (optional) To enable logging via console.log\n * @default false\n * @deprecated Use newer `logger` option instead, while transitioning for backwards compatibility `enableLogs:\n * true` will utilize console for logging.\n */\n enableLogs?: boolean;\n }\n | {\n /**\n * (optional) Pass Pino or Console (as console.log) instance to enable logging.\n * @default Console\n */\n logger?: PinoLogger | Console;\n }\n) &\n // #############################################################################\n // Suffix options\n // #############################################################################\n (| {\n /**\n * No suffix to be used in translation keys\n * @example 'commons.button.buyNow'\n */\n suffixMode: \"none\";\n }\n | {\n /**\n * Custom suffix to use in translation keys\n * @example `commons.button.buyNow.${suffix}`\n */\n suffixMode: \"custom\";\n /**\n * * ! Must be a non-empty string which doesn't contain the key delimiter \".\" character otherwise will fail\n */\n suffix: string;\n }\n | {\n /**\n * Auto generate (7-character) hash-suffix from the default (english) value\n * @example 'commons.button.buyNow.nk31jnb'\n */\n suffixMode: \"auto\";\n }\n );\n\nconst languageToSmartcatLocaleMapping: Record<Language, string> = {\n [Language.Ar]: \"ar\",\n [Language.De]: \"de\",\n [Language.En]: \"en\",\n [Language.Es]: \"es\",\n [Language.Fr]: \"fr\",\n [Language.El]: \"el\",\n [Language.It]: \"it\",\n [Language.Ja]: \"ja\",\n [Language.Pt]: \"pt-BR\",\n [Language.Zh]: \"zh-Hans\",\n [Language.Tw]: \"zh-Hant-TW\",\n};\n\n/**\n * ####################################################################################\n * # Description:\n * - Uploading a local source of truth (English) locale file to a Smartcat project.\n * Before uploading locale file, a hash is created from the value of the text entry and added as suffix to the key of the text entry.\n *\n * - Downloading translated locale files and only keep translation entries where the \"key.{hash of value}\"\n * matches exactly to the source of truth \"key.{hash of value}\"\n *\n * # Script usage:\n * - Running `runFullSync` will first upload a source of truth locale file to Smartcat,\n * then we poll the smartcat severs until the new locales are full translated by Smartcat AI.\n * When translations are done, we download and process the translated files.\n *\n * - Each of these actions can be run separately as well.\n * ####################################################################################\n */\nexport class SmartcatApi {\n private projectId: string;\n private collectionName: string;\n private axios: AxiosInstance;\n private logger?: PinoLogger | Console;\n private escapeBracketDelimiters: boolean = false;\n private suffix: string | null;\n private targetLanguages: Language[] | undefined;\n private languageToSmartcatLocaleMapping: Record<Language, string> =\n languageToSmartcatLocaleMapping;\n /**\n * Depending on input we might need or not need suffixes.\n */\n private hasSuffix: boolean;\n\n /**\n * Delimiter used to separate translation key \"parts\"\n */\n public keyDelimiter = \".\";\n\n constructor(config: SmartcatApiConfig) {\n // Legacy\n if (\"enableLogs\" in config) {\n // eslint-disable-next-line sonarjs/deprecation\n this.logger = config.enableLogs ? console : undefined;\n // Newer\n } else if (\"logger\" in config) {\n this.logger = config.logger;\n }\n this.escapeBracketDelimiters = !!config.escapeBracketDelimiters;\n this.projectId = config.auth.projectId;\n this.collectionName = config.auth.collectionName;\n this.targetLanguages = config.targetLanguages;\n\n // Language mapping override\n if (config.languageToSmartcatLocaleMapping) {\n this.languageToSmartcatLocaleMapping =\n config.languageToSmartcatLocaleMapping;\n }\n\n switch (config.suffixMode) {\n case \"none\": {\n this.suffix = null;\n this.hasSuffix = false;\n break;\n }\n case \"custom\": {\n const suffixRegex = /^[a-zA-Z0-9-]+$/;\n\n if (\n // Empty string\n !config.suffix ||\n // Contains invalid characters\n !suffixRegex.test(config.suffix) ||\n // Contains key delimiter\n config.suffix.indexOf(this.keyDelimiter) > -1\n ) {\n throw new Error(\n \"Invalid custom suffix provided for SmartcatApi.suffix. Can only contain alphanumeric characters and hyphens.\",\n );\n }\n this.suffix = config.suffix;\n this.hasSuffix = true;\n break;\n }\n case \"auto\": {\n this.suffix = null;\n this.hasSuffix = true;\n break;\n }\n default:\n throw new Error(`Unsupported or missing value for SmartcatApi.suffix`);\n }\n\n const authBase64 = Buffer.from(\n `${config.auth.accountId}:${config.auth.apiSecret}`,\n ).toString(\"base64\");\n\n this.axios = axios.create({\n httpsAgent: config.httpsAgent,\n baseURL: \"https://us.smartcat.ai/api/\",\n headers: {\n Authorization: `Basic ${authBase64}`,\n },\n });\n }\n\n // #############################################################################\n // Internal helpers\n // #############################################################################\n /**\n * Smartcat locale --> enum Language mapping for filenames\n */\n private getSmartcatLocaleToLanguageMap() {\n return invert(this.languageToSmartcatLocaleMapping);\n }\n\n // #############################################################################\n // Key/Suffix/Hash helpers\n // #############################################################################\n\n /**\n * Hash the text value from translation entry value from reference language\n */\n private generateHashSuffixFromValue(value: string): string {\n // Using same amount of chars (7) as GIT uses for shorthand hash.\n const shorthandHashCharCount = 7;\n\n return createHash(\"sha256\")\n .update(value)\n .digest(\"hex\")\n .substring(0, shorthandHashCharCount);\n }\n\n /**\n * Create suffix for given value depending on configuration\n */\n public createSuffix(value: string): string {\n assert(\n this.hasSuffix,\n \"Can't call `createSuffix` for instance without a suffix\",\n );\n\n return this.suffix || this.generateHashSuffixFromValue(value);\n }\n\n /**\n * Util to create translation key.\n * ! Recommended to be used to create key on consumer side of Smartcat class for a consistent experience\n *\n * @example smartcatApi.createTranslationKey(['a', 'b', 'c']) // 'a.b.c'\n */\n public createTranslationKey(parts: string[]): string {\n return parts.join(this.keyDelimiter);\n }\n\n /**\n * Util to parse a translation key\n * ! Recommended to be used to create key on consumer side of Smartcat class for a consistent experience\n *\n * @example smartcatApi.parseTranslationKey('a.b.c'); // ['a', 'b', 'c'];\n */\n public parseTranslationKey(key: string): string[] {\n return key.split(this.keyDelimiter);\n }\n\n /**\n * Returns the key with suffix created by hashing the value.\n */\n public addSuffixToKey(key: string, value: string): string {\n return this.hasSuffix\n ? this.createTranslationKey([key, this.createSuffix(value)])\n : key;\n }\n\n /**\n * Takes a SmartCat text entry key (with hash) and returns the key without it\n */\n public removeSuffixFromKey(key: string): string {\n return this.hasSuffix\n ? this.createTranslationKey(this.parseTranslationKey(key).slice(0, -1))\n : key;\n }\n\n // #############################################################################\n // Transform data helpers\n // #############################################################################\n\n /**\n * Filter out entries that are not included in source of truth\n * translations and remove suffix from keys.\n */\n public processSmartcatTranslations(\n sourceOfTruthTranslations: TranslationObject,\n smartcatTranslations: TranslationObject,\n ): TranslationObject {\n // Append suffix to source of truth translations.\n const sourceOfTruthKeysWithSuffix = new Set(\n Object.entries(sourceOfTruthTranslations).map(([key, value]) =>\n this.addSuffixToKey(key, value),\n ),\n );\n\n // Normalise translated entry keys by removing the hash from key name.\n const result: TranslationObject = {};\n for (const key in smartcatTranslations) {\n // Ignore key from smartcat if not in source-of-truth\n if (!sourceOfTruthKeysWithSuffix.has(key)) {\n continue;\n }\n\n const normalisedKey = this.removeSuffixFromKey(key);\n const value = smartcatTranslations[key];\n\n if (value !== undefined) {\n result[normalisedKey] = value;\n }\n }\n\n return result;\n }\n\n /**\n * Parse string variable delimiters between smartcat and local delimiters.\n * Only top level delimiter pairs that don't have child delimiters or child curly brackets should be transformed.\n */\n private parseVariableDelimiters(\n input: string,\n mode: \"toSmartcatDelimiters\" | \"toLocalDelimiters\",\n ): string {\n /**\n * Constant icu string delimiters that we avoid to transform,\n * can conflict with the variable delimiters without error.\n */\n const icuStringDelimiters = {\n open: \"{\",\n close: \"}\",\n };\n\n /**\n * Evaluate what delimiters to transform from and to\n */\n const delimiterOptions = {\n local: {\n open: \"{\",\n close: \"}\",\n },\n smartcat: {\n open: \"{{\",\n close: \"}}\",\n },\n };\n const delimiters =\n mode === \"toSmartcatDelimiters\"\n ? {\n from: delimiterOptions.local,\n to: delimiterOptions.smartcat,\n }\n : {\n from: delimiterOptions.smartcat,\n to: delimiterOptions.local,\n };\n\n // Cheap check - return unmodified if input does not contain any opening or any closing variable delimiters\n if (\n !input.includes(delimiters.from.open) ||\n !input.includes(delimiters.from.close)\n ) {\n return input;\n }\n\n let result = \"\"; // Final result\n let lastPosition = 0; // This helps in building the result string\n let icuStringDepth = 0;\n /**\n * When finding an opening delimiter, closing delimiter index is already\n * evaluated and therefor we store it until it's reached.\n * Gets reset to `null` when this index in the iteration is reached.\n */\n let nextValidClosingVariableDelimiterIndex: null | number = null;\n\n for (let i = 0; i < input.length; i++) {\n // Hold current char\n const currentChar = input[i];\n\n // If currently inside ICU string, track the depth and continue to next char\n if (icuStringDepth > 0) {\n if (currentChar === icuStringDelimiters.open) {\n icuStringDepth++;\n } else if (currentChar === icuStringDelimiters.close) {\n icuStringDepth--;\n }\n\n continue;\n }\n\n /**\n * Encounter of a closing delimiter\n */\n if (i === nextValidClosingVariableDelimiterIndex) {\n // Get inner content between variable delimiters\n const variableInnerContent = input.slice(\n lastPosition + delimiters.from.open.length,\n i,\n );\n // Transform delimiters\n result += `${delimiters.to.open}${variableInnerContent}${delimiters.to.close}`;\n // Move the last position past this closing brace\n lastPosition = i + delimiters.from.close.length;\n // Reset closing delimiter index\n nextValidClosingVariableDelimiterIndex = null;\n // Go next after closing variable\n continue;\n } else if (nextValidClosingVariableDelimiterIndex !== null) {\n // Go next until reaching closing variable delimiter\n continue;\n }\n\n /**\n * Evaluate if current position is index of an opening delimiter\n */\n const isVariableOpeningBracketPattern =\n input.substring(i, i + delimiters.from.open.length) ===\n delimiters.from.open;\n if (isVariableOpeningBracketPattern) {\n // Evaluate start and end indexes of variable brackets.\n const innerContentStartIndex = i + delimiters.from.open.length;\n const closingVariableDelimiterIndex = input.indexOf(\n delimiters.from.close,\n innerContentStartIndex,\n );\n\n // Check if we can find the closing delimiter, else the opening delimiter can not be valid\n if (closingVariableDelimiterIndex !== -1) {\n // Variable delimiters inner content, excluding the delimiters\n const variableInnerContent = input.substring(\n innerContentStartIndex,\n closingVariableDelimiterIndex,\n );\n // Characters not allowed for variable inner content - helps to avoid transforming ICU string delimiters\n const illegalVariableCharacterRegex = /[{},#]/;\n // If delimiters inner content contains illegal characters, the opening bracket is not a valid variable.\n const isValidVariableOpeningDelimiters =\n !illegalVariableCharacterRegex.test(variableInnerContent);\n\n if (isValidVariableOpeningDelimiters) {\n // Append everything up to this delimiter to the result\n result += input.substring(lastPosition, i);\n // Update the last position to the current index\n lastPosition = i;\n // Store the closing delimiter index\n nextValidClosingVariableDelimiterIndex =\n closingVariableDelimiterIndex;\n } else if (currentChar === icuStringDelimiters.open) {\n // When reached - ICU string begins here\n icuStringDepth++;\n }\n }\n } else if (currentChar === icuStringDelimiters.open) {\n icuStringDepth++;\n }\n }\n\n // Append any remaining part of the input string to result\n result += input.slice(lastPosition);\n return result;\n }\n\n /**\n * Helper to parse variable placeholders for a translation file\n */\n public parseTranslationVariableDelimiters(\n translations: TranslationObject,\n mode: \"toSmartcatDelimiters\" | \"toLocalDelimiters\",\n ): TranslationObject {\n return Object.fromEntries(\n Object.entries(translations).map(([key, value]) => [\n key,\n this.parseVariableDelimiters(value, mode),\n ]),\n );\n }\n\n /**\n * Check if SmartCat has translated all target languages.\n */\n private async checkProjectTranslationStatus(): Promise<boolean> {\n try {\n // Fetch project data\n const res = await this.axios.get(\n `/integration/v1/project/${this.projectId}`,\n );\n const project = res.data as SmartcatProject;\n\n // Find the auto translation workflow id\n const autoTranslationWorkflowId = project.workflowStages.find(\n (workflow) => workflow.stageType === \"translation\",\n )?.id;\n if (!autoTranslationWorkflowId) {\n throw new Error(\n \"Could not find auto translation workflow id in SmartCat project.\",\n );\n }\n\n // Get relevant documents\n const documents = project.documents.filter((doc) => {\n const isInCollection = doc.name === this.collectionName;\n const isRequestedTargetLanguage = Boolean(\n !this.targetLanguages ||\n this.targetLanguages\n ?.map((lang) => this.languageToSmartcatLocaleMapping[lang])\n .includes(doc.targetLanguage),\n );\n\n return isInCollection && isRequestedTargetLanguage;\n });\n\n // Check if all documents have 100% progress in auto translation workflow\n return documents.every((doc) => {\n const autoTranslationWorkflow = doc.workflowStages.find(\n (workflow) => workflow.id === autoTranslationWorkflowId,\n );\n return autoTranslationWorkflow?.progress === 100;\n });\n } catch (error) {\n this.logger?.error(error, \"❌ Failed to get project\");\n throw error;\n }\n }\n\n // #############################################################################\n // Api methods\n // #############################################################################\n\n /**\n * Download translations from Smartcat.\n */\n public async downloadSmartcatTranslations(\n defaultTranslations: TranslationObject,\n options?: {\n /**\n * (optional) List of labels to export keys that are marked with labels\n * @default undefined\n */\n labels?: string[];\n /**\n * (optional) Max attempt count for polling download ready status.\n * @default 10\n */\n maxAttemptCount?: number;\n /**\n * (optional) Interval in milliseconds between each polling attempt.\n * @default 5000\n */\n intervalMs?: number;\n },\n ): Promise<Record<Language, TranslationObject>> {\n // https://developers.smartcat.com/api/#run-export-from-software-localization-project\n const url = `integration/v2/project/${this.projectId}/export`;\n const params = {\n \"completion-state\": \"draft\",\n \"output-file-path-template\": \"{LANGUAGE}.json\",\n collections: this.collectionName,\n zip: \"true\",\n languages: this.targetLanguages\n ?.map((lang) => this.languageToSmartcatLocaleMapping[lang])\n .join(\",\"),\n labels: SmartcatApi.prepareLabels(options?.labels),\n // FIXME: Look into only exporting values that has changed since last export minus some time via `modified-since`\n };\n\n const smartcatLocaleToLanguageMap = this.getSmartcatLocaleToLanguageMap();\n\n try {\n const exportResponse = await this.axios.post(\n url,\n {},\n {\n params,\n headers: {\n \"Content-Type\": \"application/json-patch+json\",\n },\n },\n );\n const taskID = exportResponse.data;\n\n const pollMaxAttemptCount = options?.maxAttemptCount ?? 10;\n const pollInterval = options?.intervalMs ?? 5000;\n\n const translations: Record<string, TranslationObject> = {};\n let pollAttempt = 0;\n let exportSuccessful = false;\n\n // Polling loop to check if the export is successful\n while (!exportSuccessful && pollAttempt < pollMaxAttemptCount) {\n pollAttempt += 1;\n\n const checkUrl = `integration/v1/document/export/${taskID}/`;\n const checkResponse = await this.axios.get(checkUrl, {\n responseType: \"arraybuffer\",\n // Don't throw errors for all errors below 500 so we can handle it gracefully\n validateStatus: (status) => status < 500,\n });\n\n if (checkResponse.status === 200) {\n // Unzip and discard the zip file, rename.\n const zip = new AdmZip(checkResponse.data);\n const zipEntries = zip.getEntries();\n\n for (const zipEntry of zipEntries) {\n if (!zipEntry.isDirectory) {\n // Extract the content of the file\n const data = zip.readFile(zipEntry);\n\n if (!data) {\n throw new Error(\n \"Exported smarcat document does not include any data\",\n );\n }\n\n const locale = zipEntry.entryName.replace(\".json\", \"\");\n const mappedLocale = smartcatLocaleToLanguageMap[locale];\n\n if (!mappedLocale) {\n this.logger?.warn(\n `Couldn't find map for SmartCat locale ${locale}, skipping file.`,\n );\n continue;\n }\n\n const parsedTranslations = JSON.parse(data.toString());\n\n // Process downloaded translations.\n let result = this.processSmartcatTranslations(\n defaultTranslations,\n parsedTranslations,\n );\n\n // Escape content variable delimiters.\n if (this.escapeBracketDelimiters) {\n result = this.parseTranslationVariableDelimiters(\n result,\n \"toLocalDelimiters\",\n );\n }\n\n translations[mappedLocale] = result;\n }\n }\n\n // Exit loop.\n exportSuccessful = true;\n } else if (checkResponse.status === 204) {\n this.logger?.info(\n `The task ID ${taskID} is not ready yet, will try again`,\n );\n\n // Wait for some time before checking again\n await setTimeoutAsync(pollInterval);\n } else if (checkResponse.status === 404) {\n throw new Error(\n `Failed to download smartcat translations, endpoint returned 404`,\n );\n } else if (checkResponse.status === 422) {\n let response: unknown;\n try {\n // Convert ArrayBuffer to Buffer\n const buffer = Buffer.from(checkResponse.data);\n // Decode buffer to string\n const jsonString = buffer.toString(\"utf8\");\n\n response = jsonString;\n } catch {\n response = \"!! Unable to parse response !!\";\n }\n this.logger?.error(\n response,\n \"❌ Failed to download smartcat translations, endpoint returned 422\",\n );\n throw new Error(\n `Failed to download smartcat translations, endpoint returned 422`,\n );\n } else {\n // Unknown status response.\n throw new Error(\n `Failed to download smartcat translations, endpoint returned unknown status code ${checkResponse.status}`,\n );\n }\n }\n\n if (!exportSuccessful) {\n throw new Error(\n \"Max retries reached when trying to export files from SmartCat.\",\n );\n }\n\n this.logger?.info(\n \"✅ Download target language locale documents complete.\",\n );\n\n return translations;\n } catch (error) {\n this.logger?.error(\n error,\n \"❌ Failed downloading locale files from SmartCat\\n\",\n );\n\n throw error;\n }\n }\n\n /**\n * Exposed method for uploading source translations to Smartcat.\n */\n public async uploadSourceTranslations(\n // Source translations that will be uploaded to SmartCat.\n sourceTranslations: TranslationUploadObject | TranslationUploadObject[],\n options?: {\n // When true, deleting all keys in the smartcat collection that does not exist in sourceTranslations.\n deleteMissingKeys?: boolean;\n },\n ): Promise<void> {\n try {\n const rawTranslationUploads = Array.isArray(sourceTranslations)\n ? sourceTranslations\n : [sourceTranslations];\n\n /**\n * Prepare translations for upload by:\n * 1. Ignore non-translatable values.\n * 2. Add suffix to key based on settings.\n * 3. Escape variable delimiters based on settings.\n */\n const preparedTranslationUploads = rawTranslationUploads.map(\n (translationUpload) => {\n let translations: TranslationObject = {};\n\n for (const [key, value] of Object.entries(\n translationUpload.translations,\n )) {\n if (!SmartcatApi.isTranslatableValue(value)) {\n continue;\n }\n const suffixedKey = this.addSuffixToKey(key, value);\n translations[suffixedKey] = value;\n }\n\n // Prepare variable delimiters.\n if (this.escapeBracketDelimiters) {\n translations = this.parseTranslationVariableDelimiters(\n translations,\n \"toSmartcatDelimiters\",\n );\n }\n\n return {\n ...translationUpload,\n translations,\n };\n },\n );\n\n /**\n * Upload all translations together and make the data purge in SC.\n */\n if (options?.deleteMissingKeys) {\n // Merge all prepared translations into one object.\n const combinedTranslations: TranslationObject =\n preparedTranslationUploads.reduce((acc, current) => {\n return { ...acc, ...current.translations };\n }, {});\n\n await this.smartcatUploadRequest(combinedTranslations, {\n deleteMissingKeys: true,\n });\n\n this.logger?.info(\"🧹 Deleted unused translations from Smartcat.\");\n }\n\n /**\n * Upload each translation object separately to apply labels.\n */\n for (const translationUpload of preparedTranslationUploads) {\n await this.smartcatUploadRequest(translationUpload.translations, {\n labels: translationUpload.appendLabels,\n });\n }\n\n this.logger?.info(\"✅ Upload source translations to SmartCat complete.\");\n } catch (error) {\n this.logger?.error(\n error,\n \"❌ Failed uploading source translations to SmartCat.\",\n );\n throw error;\n }\n }\n\n /**\n * Internal helper method for uploading source translations to Smartcat.\n * @see https://developers.smartcat.com/api/#import-keys-and-values-from-files-into-the-software-localization-project\n */\n private async smartcatUploadRequest(\n sourceTranslations: TranslationObject,\n options?: {\n labels?: string[];\n deleteMissingKeys?: boolean;\n },\n ) {\n const queryParams = {\n format: \"json\",\n language: \"en\",\n collection: this.collectionName,\n \"delete-missing-keys\": !!options?.deleteMissingKeys,\n // TODO: was fallback empty string really needed?\n labels: SmartcatApi.prepareLabels(options?.labels) || \"\",\n };\n\n const url = `integration/v2/project/${this.projectId}/import`;\n\n const smartCatSourceLanguageBuffer = Buffer.from(\n JSON.stringify(sourceTranslations),\n );\n\n const fileBlob = new Blob([smartCatSourceLanguageBuffer], {\n type: \"application/octet-stream\",\n });\n\n const formData = new FormData();\n formData.append(\"file\", fileBlob);\n\n await this.axios.post(url, formData, {\n params: queryParams,\n headers: { \"Content-Type\": \"multipart/form-data\" },\n });\n }\n\n /**\n * Wait for SmartCat to fully translate all target languages.\n */\n public pollAndWaitForCompletedTranslations = async (\n pollRunLimit = 20,\n pollIntervalMs = 10000,\n ): Promise<boolean> => {\n let pollRunCount = 0;\n let translationCompleted = false;\n\n while (!translationCompleted && pollRunCount < pollRunLimit) {\n this.logger?.info(`⌛ SmartCat translations in progress.`);\n\n translationCompleted = await this.checkProjectTranslationStatus();\n pollRunCount += 1;\n\n if (!translationCompleted) {\n await setTimeoutAsync(pollIntervalMs);\n }\n }\n\n /**\n * HACK\n * Since there is a bug with smartcat returning true for `pretranslateCompleted`\n * before they are updated in smartcat. We implement an artificial sleep to let\n * smartcat update the target translations before we download them.\n */\n if (translationCompleted) {\n await setTimeoutAsync(60000);\n }\n\n this.logger?.info(\n translationCompleted\n ? \"✅ SmartCat translations completed.\"\n : \"❌ Max retries reached when waiting for SmartCat translations to complete.\",\n );\n\n return translationCompleted;\n };\n\n /**\n * Static util to prettify translation for writing to file-system\n */\n static readonly prettifyTranslation = (\n translation: TranslationObject,\n ): string => {\n return (\n stableStringify(translation, { space: 2 }) +\n // Add EOF newline\n `\\n`\n );\n };\n\n /**\n * Checks if given value is translatable a.k.a if it's worth sending over to smartcat to translate\n */\n static readonly isTranslatableValue = (value: Nullish<string>): boolean => {\n // Trim to check if given string isn't just spaces which is not worth translating\n const parsedValue = value?.trim();\n\n // Ignore empty values\n if (!parsedValue) {\n return false;\n }\n\n // Don't translate values that are digits only\n return !isDigitsOnlyRegex.test(parsedValue);\n };\n\n /**\n * Centralized method to get Smartcat label based on environment.\n * ! Change with caution as it impacts how translaitons will be read from Smartcat.\n */\n static readonly getSmartcatLabel = (env: SmartcatEnvironment): string => {\n switch (env) {\n case SmartcatEnvironment.Dev:\n return \"DEV\";\n case SmartcatEnvironment.Stg:\n return \"STG\";\n // ! Not really reusable for other projects, didn't make sense right now to create generic label for it\n case SmartcatEnvironment.NewDesign:\n return \"NEW-DESIGN\";\n case SmartcatEnvironment.Prod:\n return \"MAIN\";\n default: {\n assertUnreachable(env);\n }\n }\n };\n\n /**\n * Get smartcat environment based on branch name\n */\n static readonly getSmartcatEnvironmentFromGhBranchName = (\n ghRepositoryBranchName: string,\n ): SmartcatEnvironment => {\n switch (ghRepositoryBranchName) {\n case \"master\":\n case \"main\": {\n return SmartcatEnvironment.Prod;\n }\n case \"new-design\": {\n return SmartcatEnvironment.NewDesign;\n }\n case \"beta\": // For store.core beta releases\n case \"stg\": // Historical GH repos\n case \"qa\": {\n return SmartcatEnvironment.Stg;\n }\n case \"alpha\": // For store.core alpha releases\n case \"dev\": // Historical GH repos\n case \"proto\": {\n return SmartcatEnvironment.Dev;\n }\n\n default: {\n throw new Error(\n `Unsupported branch name ${ghRepositoryBranchName} for Smartcat environment.`,\n );\n }\n }\n };\n\n /**\n * Util to prepare labels for passing into request parameters\n */\n static readonly prepareLabels = (labels?: string[]): string | undefined => {\n return labels\n ?.map((label) => label.trim())\n .filter(Boolean)\n .join(\",\");\n };\n}\n"],"names":["SmartcatEnvironment","isDigitsOnlyRegex","languageToSmartcatLocaleMapping","Language","Ar","De","En","Es","Fr","El","It","Ja","Pt","Zh","Tw","_SmartcatApi","constructor","config","__publicField","pollRunLimit","pollIntervalMs","pollRunCount","translationCompleted","logger","info","checkProjectTranslationStatus","setTimeoutAsync","enableLogs","console","escapeBracketDelimiters","projectId","auth","collectionName","targetLanguages","suffixMode","suffix","hasSuffix","suffixRegex","test","indexOf","keyDelimiter","Error","authBase64","Buffer","from","accountId","apiSecret","toString","axios","create","httpsAgent","baseURL","headers","Authorization","getSmartcatLocaleToLanguageMap","invert","generateHashSuffixFromValue","value","shorthandHashCharCount","createHash","update","digest","substring","createSuffix","assert","createTranslationKey","parts","join","parseTranslationKey","key","split","addSuffixToKey","removeSuffixFromKey","slice","processSmartcatTranslations","sourceOfTruthTranslations","smartcatTranslations","sourceOfTruthKeysWithSuffix","Set","Object","entries","map","result","has","normalisedKey","parseVariableDelimiters","input","mode","icuStringDelimiters","open","close","delimiterOptions","local","smartcat","delimiters","to","includes","lastPosition","icuStringDepth","nextValidClosingVariableDelimiterIndex","i","length","currentChar","variableInnerContent","isVariableOpeningBracketPattern","innerContentStartIndex","closingVariableDelimiterIndex","illegalVariableCharacterRegex","isValidVariableOpeningDelimiters","parseTranslationVariableDelimiters","translations","fromEntries","res","get","project","data","autoTranslationWorkflowId","workflowStages","find","workflow","stageType","id","documents","filter","doc","isInCollection","name","isRequestedTargetLanguage","Boolean","lang","targetLanguage","every","autoTranslationWorkflow","progress","error","downloadSmartcatTranslations","defaultTranslations","options","url","params","collections","zip","languages","labels","prepareLabels","smartcatLocaleToLanguageMap","exportResponse","post","taskID","pollMaxAttemptCount","maxAttemptCount","pollInterval","intervalMs","pollAttempt","exportSuccessful","checkUrl","checkResponse","responseType","validateStatus","status","AdmZip","zipEntries","getEntries","zipEntry","isDirectory","readFile","locale","entryName","replace","mappedLocale","warn","parsedTranslations","JSON","parse","response","buffer","jsonString","uploadSourceTranslations","sourceTranslations","rawTranslationUploads","Array","isArray","preparedTranslationUploads","translationUpload","isTranslatableValue","suffixedKey","deleteMissingKeys","combinedTranslations","reduce","acc","current","smartcatUploadRequest","appendLabels","queryParams","format","language","collection","smartCatSourceLanguageBuffer","stringify","fileBlob","Blob","type","formData","FormData","append","translation","stableStringify","space","parsedValue","trim","env","assertUnreachable","ghRepositoryBranchName","label","SmartcatApi"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CY,IAAAA,mBAAA,GAAA,gBAAAA,oBAAL,IAAA;EACLA,qBAAA,KAAM,CAAA,GAAA,OAAA;EACNA,qBAAA,KAAM,CAAA,GAAA,IAAA;EACNA,qBAAA,WAAY,CAAA,GAAA,YAAA;EACZA,qBAAA,MAAO,CAAA,GAAA,MAAA;EAJGA,OAAAA,oBAAAA;AAAA,CAAA,EAAAA,mBAAA,IAAA,CAAA,CAAA,CAAA;AAqBZ,MAAMC,iBAAoB,GAAA,OAAA;AA0E1B,MAAMC,+BAA4D,GAAA;EAChE,CAACC,SAAAA,CAAAA,QAAS,CAAAC,EAAE,GAAG,IAAA;EACf,CAACD,SAAAA,CAAAA,QAAS,C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}
1
+ {"version":3,"file":"smartcat.js","sources":["../../src/apis/smartcat.ts"],"sourcesContent":["/* eslint-disable no-await-in-loop */\nimport AdmZip from \"adm-zip\";\nimport type { AxiosInstance } from \"axios\";\nimport axios from \"axios\";\nimport { createHash } from \"crypto\";\nimport stableStringify from \"json-stable-stringify\";\nimport invert from \"lodash/invert\";\nimport type { Agent as HttpsAgent } from \"node:https\";\nimport { setTimeout as setTimeoutAsync } from \"node:timers/promises\";\nimport type { Logger as PinoLogger } from \"pino\";\n\nimport type { Nullish } from \"../types\";\nimport { Language } from \"../types\";\nimport { assert, assertUnreachable } from \"../utils/errors\";\n\ntype SmartcatCredentials = {\n apiSecret: string;\n accountId: string;\n projectId: string;\n collectionName: string;\n};\n\ntype SmartcatProject = {\n // Workflow type and id mapping for project\n workflowStages: Array<{\n id: string;\n stageType: \"translation\" | \"postediting\";\n }>;\n documents: Array<{\n // Collection name the document belongs to\n name: string;\n // Flag for if auto translations are complete on smartcat side\n pretranslateCompleted: boolean;\n // Workflow progress of a document\n workflowStages: Array<{\n id: string;\n progress: number;\n }>;\n // Target language of the document\n targetLanguage: string;\n }>;\n};\n\nexport enum SmartcatEnvironment {\n Dev = \"proto\",\n Stg = \"qa\",\n NewDesign = \"new-design\",\n Prod = \"prod\",\n}\n\ntype TranslationObject = Record<string, string>;\n\ntype TranslationUploadObject = {\n translations: TranslationObject;\n /**\n * (Optional) Labels that will be appended to all segments in the upload. Existing labels in SC remains untouched.\n */\n appendLabels?: string[];\n};\n\n/**\n * Basic check if given string only consists of digits\n * ! Doesn't support decimal and thousand separated numbers as it's not a relevant practical use case right now\n */\nconst isDigitsOnlyRegex = /^\\d+$/;\n\nexport type SmartcatApiConfig = {\n auth: SmartcatCredentials;\n /**\n * (optional) Parse single brackets variable delimiters before upstream to Smartcat, from \"{x}\" to \"{{x}}\".\n * @default false\n */\n escapeBracketDelimiters?: boolean;\n /**\n * (optional) Pass https agent to try to keep connections open.\n */\n httpsAgent?: HttpsAgent;\n /**\n * (optional) Languages that will be downloaded from Smartcat.\n * When omitted, all languages will be downloaded.\n */\n targetLanguages?: Language[];\n /**\n * (optional) Custom language to Smartcat locale mapping (e.g. microsite pt differs)\n * When omitted, default mapping will be used.\n */\n languageToSmartcatLocaleMapping?: Record<Language, string>;\n // #############################################################################\n // Logging options\n // #############################################################################\n} & (\n | {\n /**\n * (optional) To enable logging via console.log\n * @default false\n * @deprecated Use newer `logger` option instead, while transitioning for backwards compatibility `enableLogs:\n * true` will utilize console for logging.\n */\n enableLogs?: boolean;\n }\n | {\n /**\n * (optional) Pass Pino or Console (as console.log) instance to enable logging.\n * @default Console\n */\n logger?: PinoLogger | Console;\n }\n) &\n // #############################################################################\n // Suffix options\n // #############################################################################\n (| {\n /**\n * No suffix to be used in translation keys\n * @example 'commons.button.buyNow'\n */\n suffixMode: \"none\";\n }\n | {\n /**\n * Custom suffix to use in translation keys\n * @example `commons.button.buyNow.${suffix}`\n */\n suffixMode: \"custom\";\n /**\n * * ! Must be a non-empty string which doesn't contain the key delimiter \".\" character otherwise will fail\n */\n suffix: string;\n }\n | {\n /**\n * Auto generate (7-character) hash-suffix from the default (english) value\n * @example 'commons.button.buyNow.nk31jnb'\n */\n suffixMode: \"auto\";\n }\n );\n\nconst languageToSmartcatLocaleMapping: Record<Language, string> = {\n [Language.Ar]: \"ar\",\n [Language.De]: \"de\",\n [Language.En]: \"en\",\n [Language.Es]: \"es\",\n [Language.Fr]: \"fr\",\n [Language.El]: \"el\",\n [Language.It]: \"it\",\n [Language.Ja]: \"ja\",\n [Language.Pt]: \"pt-BR\",\n [Language.Zh]: \"zh-Hans\",\n [Language.Tw]: \"zh-Hant-TW\",\n};\n\n/**\n * ####################################################################################\n * # Description:\n * - Uploading a local source of truth (English) locale file to a Smartcat project.\n * Before uploading locale file, a hash is created from the value of the text entry and added as suffix to the key of the text entry.\n *\n * - Downloading translated locale files and only keep translation entries where the \"key.{hash of value}\"\n * matches exactly to the source of truth \"key.{hash of value}\"\n *\n * # Script usage:\n * - Running `runFullSync` will first upload a source of truth locale file to Smartcat,\n * then we poll the smartcat severs until the new locales are full translated by Smartcat AI.\n * When translations are done, we download and process the translated files.\n *\n * - Each of these actions can be run separately as well.\n * ####################################################################################\n */\nexport class SmartcatApi {\n private projectId: string;\n private collectionName: string;\n private axios: AxiosInstance;\n private logger?: PinoLogger | Console;\n private escapeBracketDelimiters: boolean = false;\n private suffix: string | null;\n private targetLanguages: Language[] | undefined;\n private languageToSmartcatLocaleMapping: Record<Language, string> =\n languageToSmartcatLocaleMapping;\n /**\n * Depending on input we might need or not need suffixes.\n */\n private hasSuffix: boolean;\n\n /**\n * Delimiter used to separate translation key \"parts\"\n */\n public keyDelimiter = \".\";\n\n constructor(config: SmartcatApiConfig) {\n // Legacy\n if (\"enableLogs\" in config) {\n // eslint-disable-next-line sonarjs/deprecation\n this.logger = config.enableLogs ? console : undefined;\n // Newer\n } else if (\"logger\" in config) {\n this.logger = config.logger;\n }\n this.escapeBracketDelimiters = !!config.escapeBracketDelimiters;\n this.projectId = config.auth.projectId;\n this.collectionName = config.auth.collectionName;\n this.targetLanguages = config.targetLanguages;\n\n // Language mapping override\n if (config.languageToSmartcatLocaleMapping) {\n this.languageToSmartcatLocaleMapping =\n config.languageToSmartcatLocaleMapping;\n }\n\n switch (config.suffixMode) {\n case \"none\": {\n this.suffix = null;\n this.hasSuffix = false;\n break;\n }\n case \"custom\": {\n const suffixRegex = /^[a-zA-Z0-9-]+$/;\n\n if (\n // Empty string\n !config.suffix ||\n // Contains invalid characters\n !suffixRegex.test(config.suffix) ||\n // Contains key delimiter\n config.suffix.indexOf(this.keyDelimiter) > -1\n ) {\n throw new Error(\n \"Invalid custom suffix provided for SmartcatApi.suffix. Can only contain alphanumeric characters and hyphens.\",\n );\n }\n this.suffix = config.suffix;\n this.hasSuffix = true;\n break;\n }\n case \"auto\": {\n this.suffix = null;\n this.hasSuffix = true;\n break;\n }\n default:\n throw new Error(`Unsupported or missing value for SmartcatApi.suffix`);\n }\n\n const authBase64 = Buffer.from(\n `${config.auth.accountId}:${config.auth.apiSecret}`,\n ).toString(\"base64\");\n\n this.axios = axios.create({\n httpsAgent: config.httpsAgent,\n baseURL: \"https://us.smartcat.ai/api/\",\n headers: {\n Authorization: `Basic ${authBase64}`,\n },\n });\n }\n\n // #############################################################################\n // Internal helpers\n // #############################################################################\n /**\n * Smartcat locale --> enum Language mapping for filenames\n */\n private getSmartcatLocaleToLanguageMap() {\n return invert(this.languageToSmartcatLocaleMapping);\n }\n\n // #############################################################################\n // Key/Suffix/Hash helpers\n // #############################################################################\n\n /**\n * Hash the text value from translation entry value from reference language\n */\n private generateHashSuffixFromValue(value: string): string {\n // Using same amount of chars (7) as GIT uses for shorthand hash.\n const shorthandHashCharCount = 7;\n\n return createHash(\"sha256\")\n .update(value)\n .digest(\"hex\")\n .substring(0, shorthandHashCharCount);\n }\n\n /**\n * Create suffix for given value depending on configuration\n */\n public createSuffix(value: string): string {\n assert(\n this.hasSuffix,\n \"Can't call `createSuffix` for instance without a suffix\",\n );\n\n return this.suffix || this.generateHashSuffixFromValue(value);\n }\n\n /**\n * Util to create translation key.\n * ! Recommended to be used to create key on consumer side of Smartcat class for a consistent experience\n *\n * @example smartcatApi.createTranslationKey(['a', 'b', 'c']) // 'a.b.c'\n */\n public createTranslationKey(parts: string[]): string {\n return parts.join(this.keyDelimiter);\n }\n\n /**\n * Util to parse a translation key\n * ! Recommended to be used to create key on consumer side of Smartcat class for a consistent experience\n *\n * @example smartcatApi.parseTranslationKey('a.b.c'); // ['a', 'b', 'c'];\n */\n public parseTranslationKey(key: string): string[] {\n return key.split(this.keyDelimiter);\n }\n\n /**\n * Returns the key with suffix created by hashing the value.\n */\n public addSuffixToKey(key: string, value: string): string {\n return this.hasSuffix\n ? this.createTranslationKey([key, this.createSuffix(value)])\n : key;\n }\n\n /**\n * Takes a SmartCat text entry key (with hash) and returns the key without it\n */\n public removeSuffixFromKey(key: string): string {\n return this.hasSuffix\n ? this.createTranslationKey(this.parseTranslationKey(key).slice(0, -1))\n : key;\n }\n\n // #############################################################################\n // Transform data helpers\n // #############################################################################\n\n /**\n * Filter out entries that are not included in source of truth\n * translations and remove suffix from keys.\n */\n public processSmartcatTranslations(\n sourceOfTruthTranslations: TranslationObject,\n smartcatTranslations: TranslationObject,\n ): TranslationObject {\n // Append suffix to source of truth translations.\n const sourceOfTruthKeysWithSuffix = new Set(\n Object.entries(sourceOfTruthTranslations).map(([key, value]) =>\n this.addSuffixToKey(key, value),\n ),\n );\n\n // Normalise translated entry keys by removing the hash from key name.\n const result: TranslationObject = {};\n for (const key in smartcatTranslations) {\n // Ignore key from smartcat if not in source-of-truth\n if (!sourceOfTruthKeysWithSuffix.has(key)) {\n continue;\n }\n\n const normalisedKey = this.removeSuffixFromKey(key);\n const value = smartcatTranslations[key];\n\n if (value !== undefined) {\n result[normalisedKey] = value;\n }\n }\n\n return result;\n }\n\n /**\n * Parse string variable delimiters between smartcat and local delimiters.\n * Only top level delimiter pairs that don't have child delimiters or child curly brackets should be transformed.\n */\n private parseVariableDelimiters(\n input: string,\n mode: \"toSmartcatDelimiters\" | \"toLocalDelimiters\",\n ): string {\n /**\n * Constant icu string delimiters that we avoid to transform,\n * can conflict with the variable delimiters without error.\n */\n const icuStringDelimiters = {\n open: \"{\",\n close: \"}\",\n };\n\n /**\n * Evaluate what delimiters to transform from and to\n */\n const delimiterOptions = {\n local: {\n open: \"{\",\n close: \"}\",\n },\n smartcat: {\n open: \"{{\",\n close: \"}}\",\n },\n };\n const delimiters =\n mode === \"toSmartcatDelimiters\"\n ? {\n from: delimiterOptions.local,\n to: delimiterOptions.smartcat,\n }\n : {\n from: delimiterOptions.smartcat,\n to: delimiterOptions.local,\n };\n\n // Cheap check - return unmodified if input does not contain any opening or any closing variable delimiters\n if (\n !input.includes(delimiters.from.open) ||\n !input.includes(delimiters.from.close)\n ) {\n return input;\n }\n\n let result = \"\"; // Final result\n let lastPosition = 0; // This helps in building the result string\n let icuStringDepth = 0;\n /**\n * When finding an opening delimiter, closing delimiter index is already\n * evaluated and therefor we store it until it's reached.\n * Gets reset to `null` when this index in the iteration is reached.\n */\n let nextValidClosingVariableDelimiterIndex: null | number = null;\n\n for (let i = 0; i < input.length; i++) {\n // Hold current char\n const currentChar = input[i];\n\n // If currently inside ICU string, track the depth and continue to next char\n if (icuStringDepth > 0) {\n if (currentChar === icuStringDelimiters.open) {\n icuStringDepth++;\n } else if (currentChar === icuStringDelimiters.close) {\n icuStringDepth--;\n }\n\n continue;\n }\n\n /**\n * Encounter of a closing delimiter\n */\n if (i === nextValidClosingVariableDelimiterIndex) {\n // Get inner content between variable delimiters\n const variableInnerContent = input.slice(\n lastPosition + delimiters.from.open.length,\n i,\n );\n // Transform delimiters\n result += `${delimiters.to.open}${variableInnerContent}${delimiters.to.close}`;\n // Move the last position past this closing brace\n lastPosition = i + delimiters.from.close.length;\n // Reset closing delimiter index\n nextValidClosingVariableDelimiterIndex = null;\n // Go next after closing variable\n continue;\n } else if (nextValidClosingVariableDelimiterIndex !== null) {\n // Go next until reaching closing variable delimiter\n continue;\n }\n\n /**\n * Evaluate if current position is index of an opening delimiter\n */\n const isVariableOpeningBracketPattern =\n input.substring(i, i + delimiters.from.open.length) ===\n delimiters.from.open;\n if (isVariableOpeningBracketPattern) {\n // Evaluate start and end indexes of variable brackets.\n const innerContentStartIndex = i + delimiters.from.open.length;\n const closingVariableDelimiterIndex = input.indexOf(\n delimiters.from.close,\n innerContentStartIndex,\n );\n\n // Check if we can find the closing delimiter, else the opening delimiter can not be valid\n if (closingVariableDelimiterIndex !== -1) {\n // Variable delimiters inner content, excluding the delimiters\n const variableInnerContent = input.substring(\n innerContentStartIndex,\n closingVariableDelimiterIndex,\n );\n // Characters not allowed for variable inner content - helps to avoid transforming ICU string delimiters\n const illegalVariableCharacterRegex = /[{},#]/;\n // If delimiters inner content contains illegal characters, the opening bracket is not a valid variable.\n const isValidVariableOpeningDelimiters =\n !illegalVariableCharacterRegex.test(variableInnerContent);\n\n if (isValidVariableOpeningDelimiters) {\n // Append everything up to this delimiter to the result\n result += input.substring(lastPosition, i);\n // Update the last position to the current index\n lastPosition = i;\n // Store the closing delimiter index\n nextValidClosingVariableDelimiterIndex =\n closingVariableDelimiterIndex;\n } else if (currentChar === icuStringDelimiters.open) {\n // When reached - ICU string begins here\n icuStringDepth++;\n }\n }\n } else if (currentChar === icuStringDelimiters.open) {\n icuStringDepth++;\n }\n }\n\n // Append any remaining part of the input string to result\n result += input.slice(lastPosition);\n return result;\n }\n\n /**\n * Helper to parse variable placeholders for a translation file\n */\n public parseTranslationVariableDelimiters(\n translations: TranslationObject,\n mode: \"toSmartcatDelimiters\" | \"toLocalDelimiters\",\n ): TranslationObject {\n return Object.fromEntries(\n Object.entries(translations).map(([key, value]) => [\n key,\n this.parseVariableDelimiters(value, mode),\n ]),\n );\n }\n\n /**\n * Check if SmartCat has translated all target languages.\n */\n private async checkProjectTranslationStatus(): Promise<boolean> {\n try {\n // Fetch project data\n const res = await this.axios.get(\n `/integration/v1/project/${this.projectId}`,\n );\n const project = res.data as SmartcatProject;\n\n // Find the auto translation workflow id\n const autoTranslationWorkflowId = project.workflowStages.find(\n (workflow) => workflow.stageType === \"translation\",\n )?.id;\n if (!autoTranslationWorkflowId) {\n throw new Error(\n \"Could not find auto translation workflow id in SmartCat project.\",\n );\n }\n\n // Get relevant documents\n const documents = project.documents.filter((doc) => {\n const isInCollection = doc.name === this.collectionName;\n const isRequestedTargetLanguage = Boolean(\n !this.targetLanguages ||\n this.targetLanguages\n ?.map((lang) => this.languageToSmartcatLocaleMapping[lang])\n .includes(doc.targetLanguage),\n );\n\n return isInCollection && isRequestedTargetLanguage;\n });\n\n // Check if all documents have 100% progress in auto translation workflow\n return documents.every((doc) => {\n const autoTranslationWorkflow = doc.workflowStages.find(\n (workflow) => workflow.id === autoTranslationWorkflowId,\n );\n return autoTranslationWorkflow?.progress === 100;\n });\n } catch (error) {\n this.logger?.error(error, \"❌ Failed to get project\");\n throw error;\n }\n }\n\n // #############################################################################\n // Api methods\n // #############################################################################\n\n /**\n * Download translations from Smartcat.\n */\n public async downloadSmartcatTranslations(\n defaultTranslations: TranslationObject,\n options?: {\n /**\n * (optional) List of labels to export keys that are marked with labels\n * @default undefined\n */\n labels?: string[];\n /**\n * (optional) Max attempt count for polling download ready status.\n * @default 10\n */\n maxAttemptCount?: number;\n /**\n * (optional) Interval in milliseconds between each polling attempt.\n * @default 5000\n */\n intervalMs?: number;\n },\n ): Promise<Record<Language, TranslationObject>> {\n // https://developers.smartcat.com/api/#run-export-from-software-localization-project\n const url = `integration/v2/project/${this.projectId}/export`;\n const params = {\n \"completion-state\": \"draft\",\n \"output-file-path-template\": \"{LANGUAGE}.json\",\n collections: this.collectionName,\n zip: \"true\",\n languages: this.targetLanguages\n ?.map((lang) => this.languageToSmartcatLocaleMapping[lang])\n .join(\",\"),\n labels: SmartcatApi.prepareLabels(options?.labels),\n // FIXME: Look into only exporting values that has changed since last export minus some time via `modified-since`\n };\n\n const smartcatLocaleToLanguageMap = this.getSmartcatLocaleToLanguageMap();\n\n try {\n const exportResponse = await this.axios.post(\n url,\n {},\n {\n params,\n headers: {\n \"Content-Type\": \"application/json-patch+json\",\n },\n },\n );\n const taskID = exportResponse.data;\n\n const pollMaxAttemptCount = options?.maxAttemptCount ?? 10;\n const pollInterval = options?.intervalMs ?? 5000;\n\n const translations: Record<string, TranslationObject> = {};\n let pollAttempt = 0;\n let exportSuccessful = false;\n\n // Polling loop to check if the export is successful\n while (!exportSuccessful && pollAttempt < pollMaxAttemptCount) {\n pollAttempt += 1;\n\n const checkUrl = `integration/v1/document/export/${taskID}/`;\n const checkResponse = await this.axios.get(checkUrl, {\n responseType: \"arraybuffer\",\n // Don't throw errors for all errors below 500 so we can handle it gracefully\n validateStatus: (status) => status < 500,\n });\n\n if (checkResponse.status === 200) {\n // Unzip and discard the zip file, rename.\n const zip = new AdmZip(checkResponse.data);\n const zipEntries = zip.getEntries();\n\n for (const zipEntry of zipEntries) {\n if (!zipEntry.isDirectory) {\n // Extract the content of the file\n const data = zip.readFile(zipEntry);\n\n if (!data) {\n throw new Error(\n \"Exported smarcat document does not include any data\",\n );\n }\n\n const locale = zipEntry.entryName.replace(\".json\", \"\");\n const mappedLocale = smartcatLocaleToLanguageMap[locale];\n\n if (!mappedLocale) {\n this.logger?.warn(\n `Couldn't find map for SmartCat locale ${locale}, skipping file.`,\n );\n continue;\n }\n\n const parsedTranslations = JSON.parse(data.toString());\n\n // Process downloaded translations.\n let result = this.processSmartcatTranslations(\n defaultTranslations,\n parsedTranslations,\n );\n\n // Escape content variable delimiters.\n if (this.escapeBracketDelimiters) {\n result = this.parseTranslationVariableDelimiters(\n result,\n \"toLocalDelimiters\",\n );\n }\n\n translations[mappedLocale] = result;\n }\n }\n\n // Exit loop.\n exportSuccessful = true;\n } else if (checkResponse.status === 204) {\n this.logger?.info(\n `The task ID ${taskID} is not ready yet, will try again`,\n );\n\n // Wait for some time before checking again\n await setTimeoutAsync(pollInterval);\n } else if (checkResponse.status === 404) {\n throw new Error(\n `Failed to download smartcat translations, endpoint returned 404`,\n );\n } else if (checkResponse.status === 422) {\n let response: unknown;\n try {\n // Convert ArrayBuffer to Buffer\n const buffer = Buffer.from(checkResponse.data);\n // Decode buffer to string\n const jsonString = buffer.toString(\"utf8\");\n\n response = jsonString;\n } catch {\n response = \"!! Unable to parse response !!\";\n }\n this.logger?.error(\n response,\n \"❌ Failed to download smartcat translations, endpoint returned 422\",\n );\n throw new Error(\n `Failed to download smartcat translations, endpoint returned 422`,\n );\n } else {\n // Unknown status response.\n throw new Error(\n `Failed to download smartcat translations, endpoint returned unknown status code ${checkResponse.status}`,\n );\n }\n }\n\n if (!exportSuccessful) {\n throw new Error(\n \"Max retries reached when trying to export files from SmartCat.\",\n );\n }\n\n this.logger?.info(\n \"✅ Download target language locale documents complete.\",\n );\n\n return translations;\n } catch (error) {\n this.logger?.error(\n error,\n \"❌ Failed downloading locale files from SmartCat\\n\",\n );\n\n throw error;\n }\n }\n\n /**\n * Exposed method for uploading source translations to Smartcat.\n */\n public async uploadSourceTranslations(\n // Source translations that will be uploaded to SmartCat.\n sourceTranslations: TranslationUploadObject | TranslationUploadObject[],\n options?: {\n // When true, deleting all keys in the smartcat collection that does not exist in sourceTranslations.\n deleteMissingKeys?: boolean;\n },\n ): Promise<void> {\n try {\n const rawTranslationUploads = Array.isArray(sourceTranslations)\n ? sourceTranslations\n : [sourceTranslations];\n\n /**\n * Prepare translations for upload by:\n * 1. Ignore non-translatable values.\n * 2. Add suffix to key based on settings.\n * 3. Escape variable delimiters based on settings.\n */\n const preparedTranslationUploads = rawTranslationUploads.map(\n (translationUpload) => {\n let translations: TranslationObject = {};\n\n for (const [key, value] of Object.entries(\n translationUpload.translations,\n )) {\n if (!SmartcatApi.isTranslatableValue(value)) {\n continue;\n }\n const suffixedKey = this.addSuffixToKey(key, value);\n translations[suffixedKey] = value;\n }\n\n // Prepare variable delimiters.\n if (this.escapeBracketDelimiters) {\n translations = this.parseTranslationVariableDelimiters(\n translations,\n \"toSmartcatDelimiters\",\n );\n }\n\n return {\n ...translationUpload,\n translations,\n };\n },\n );\n\n /**\n * Upload all translations together and make the data purge in SC.\n */\n if (options?.deleteMissingKeys) {\n // Merge all prepared translations into one object.\n const combinedTranslations: TranslationObject =\n preparedTranslationUploads.reduce((acc, current) => {\n return { ...acc, ...current.translations };\n }, {});\n\n await this.smartcatUploadRequest(combinedTranslations, {\n deleteMissingKeys: true,\n });\n\n this.logger?.info(\"🧹 Deleted unused translations from Smartcat.\");\n }\n\n /**\n * Upload each translation object separately to apply labels.\n */\n for (const translationUpload of preparedTranslationUploads) {\n await this.smartcatUploadRequest(translationUpload.translations, {\n labels: translationUpload.appendLabels,\n });\n }\n\n this.logger?.info(\"✅ Upload source translations to SmartCat complete.\");\n } catch (error) {\n this.logger?.error(\n error,\n \"❌ Failed uploading source translations to SmartCat.\",\n );\n throw error;\n }\n }\n\n /**\n * Internal helper method for uploading source translations to Smartcat.\n * @see https://developers.smartcat.com/api/#import-keys-and-values-from-files-into-the-software-localization-project\n */\n private async smartcatUploadRequest(\n sourceTranslations: TranslationObject,\n options?: {\n labels?: string[];\n deleteMissingKeys?: boolean;\n },\n ) {\n const queryParams = {\n format: \"json\",\n language: \"en\",\n collection: this.collectionName,\n \"delete-missing-keys\": !!options?.deleteMissingKeys,\n // TODO: was fallback empty string really needed?\n labels: SmartcatApi.prepareLabels(options?.labels) || \"\",\n };\n\n const url = `integration/v2/project/${this.projectId}/import`;\n\n const smartCatSourceLanguageBuffer = Buffer.from(\n JSON.stringify(sourceTranslations),\n );\n\n const fileBlob = new Blob([smartCatSourceLanguageBuffer], {\n type: \"application/octet-stream\",\n });\n\n const formData = new FormData();\n formData.append(\"file\", fileBlob);\n\n await this.axios.post(url, formData, {\n params: queryParams,\n headers: { \"Content-Type\": \"multipart/form-data\" },\n });\n }\n\n /**\n * Wait for SmartCat to fully translate all target languages.\n */\n public pollAndWaitForCompletedTranslations = async (\n pollRunLimit = 20,\n pollIntervalMs = 10000,\n ): Promise<boolean> => {\n let pollRunCount = 0;\n let translationCompleted = false;\n\n while (!translationCompleted && pollRunCount < pollRunLimit) {\n this.logger?.info(`⌛ SmartCat translations in progress.`);\n\n translationCompleted = await this.checkProjectTranslationStatus();\n pollRunCount += 1;\n\n if (!translationCompleted) {\n await setTimeoutAsync(pollIntervalMs);\n }\n }\n\n /**\n * HACK\n * Since there is a bug with smartcat returning true for `pretranslateCompleted`\n * before they are updated in smartcat. We implement an artificial sleep to let\n * smartcat update the target translations before we download them.\n */\n if (translationCompleted) {\n await setTimeoutAsync(60000);\n }\n\n this.logger?.info(\n translationCompleted\n ? \"✅ SmartCat translations completed.\"\n : \"❌ Max retries reached when waiting for SmartCat translations to complete.\",\n );\n\n return translationCompleted;\n };\n\n /**\n * Static util to prettify translation for writing to file-system\n */\n static readonly prettifyTranslation = (\n translation: TranslationObject,\n ): string => {\n return (\n stableStringify(translation, { space: 2 }) +\n // Add EOF newline\n `\\n`\n );\n };\n\n /**\n * Checks if given value is translatable a.k.a if it's worth sending over to smartcat to translate\n */\n static readonly isTranslatableValue = (value: Nullish<string>): boolean => {\n // Trim to check if given string isn't just spaces which is not worth translating\n const parsedValue = value?.trim();\n\n // Ignore empty values\n if (!parsedValue) {\n return false;\n }\n\n // Don't translate values that are digits only\n return !isDigitsOnlyRegex.test(parsedValue);\n };\n\n /**\n * Centralized method to get Smartcat label based on environment.\n * ! Change with caution as it impacts how translaitons will be read from Smartcat.\n */\n static readonly getSmartcatLabel = (env: SmartcatEnvironment): string => {\n switch (env) {\n case SmartcatEnvironment.Dev:\n return \"DEV\";\n case SmartcatEnvironment.Stg:\n return \"STG\";\n // ! Not really reusable for other projects, didn't make sense right now to create generic label for it\n case SmartcatEnvironment.NewDesign:\n return \"NEW-DESIGN\";\n case SmartcatEnvironment.Prod:\n return \"MAIN\";\n default: {\n assertUnreachable(env);\n }\n }\n };\n\n /**\n * Get smartcat environment based on branch name\n */\n static readonly getSmartcatEnvironmentFromGhBranchName = (\n ghRepositoryBranchName: string,\n ): SmartcatEnvironment => {\n switch (ghRepositoryBranchName) {\n case \"master\":\n case \"main\": {\n return SmartcatEnvironment.Prod;\n }\n case \"new-design\": {\n return SmartcatEnvironment.NewDesign;\n }\n case \"beta\": // For store.core beta releases\n case \"stg\": // Historical GH repos\n case \"qa\": {\n return SmartcatEnvironment.Stg;\n }\n case \"alpha\": // For store.core alpha releases\n case \"dev\": // Historical GH repos\n case \"proto\": {\n return SmartcatEnvironment.Dev;\n }\n\n default: {\n throw new Error(\n `Unsupported branch name ${ghRepositoryBranchName} for Smartcat environment.`,\n );\n }\n }\n };\n\n /**\n * Util to prepare labels for passing into request parameters\n */\n static readonly prepareLabels = (labels?: string[]): string | undefined => {\n return labels\n ?.map((label) => label.trim())\n .filter(Boolean)\n .join(\",\");\n };\n}\n"],"names":["SmartcatEnvironment","isDigitsOnlyRegex","languageToSmartcatLocaleMapping","Language","Ar","De","En","Es","Fr","El","It","Ja","Pt","Zh","Tw","SmartcatApi","projectId","collectionName","axios","logger","escapeBracketDelimiters","suffix","targetLanguages","hasSuffix","keyDelimiter","constructor","config","enableLogs","console","auth","suffixMode","suffixRegex","test","indexOf","Error","authBase64","Buffer","from","accountId","apiSecret","toString","create","httpsAgent","baseURL","headers","Authorization","getSmartcatLocaleToLanguageMap","invert","generateHashSuffixFromValue","value","shorthandHashCharCount","createHash","update","digest","substring","createSuffix","assert","createTranslationKey","parts","join","parseTranslationKey","key","split","addSuffixToKey","removeSuffixFromKey","slice","processSmartcatTranslations","sourceOfTruthTranslations","smartcatTranslations","sourceOfTruthKeysWithSuffix","Set","Object","entries","map","result","has","normalisedKey","parseVariableDelimiters","input","mode","icuStringDelimiters","open","close","delimiterOptions","local","smartcat","delimiters","to","includes","lastPosition","icuStringDepth","nextValidClosingVariableDelimiterIndex","i","length","currentChar","variableInnerContent","isVariableOpeningBracketPattern","innerContentStartIndex","closingVariableDelimiterIndex","illegalVariableCharacterRegex","isValidVariableOpeningDelimiters","parseTranslationVariableDelimiters","translations","fromEntries","checkProjectTranslationStatus","res","get","project","data","autoTranslationWorkflowId","workflowStages","find","workflow","stageType","id","documents","filter","doc","isInCollection","name","isRequestedTargetLanguage","Boolean","lang","targetLanguage","every","autoTranslationWorkflow","progress","error","downloadSmartcatTranslations","defaultTranslations","options","url","params","collections","zip","languages","labels","prepareLabels","smartcatLocaleToLanguageMap","exportResponse","post","taskID","pollMaxAttemptCount","maxAttemptCount","pollInterval","intervalMs","pollAttempt","exportSuccessful","checkUrl","checkResponse","responseType","validateStatus","status","AdmZip","zipEntries","getEntries","zipEntry","isDirectory","readFile","locale","entryName","replace","mappedLocale","warn","parsedTranslations","JSON","parse","info","setTimeoutAsync","response","buffer","jsonString","uploadSourceTranslations","sourceTranslations","rawTranslationUploads","Array","isArray","preparedTranslationUploads","translationUpload","isTranslatableValue","suffixedKey","deleteMissingKeys","combinedTranslations","reduce","acc","current","smartcatUploadRequest","appendLabels","queryParams","format","language","collection","smartCatSourceLanguageBuffer","stringify","fileBlob","Blob","type","formData","FormData","append","pollAndWaitForCompletedTranslations","pollRunLimit","pollIntervalMs","pollRunCount","translationCompleted","prettifyTranslation","translation","stableStringify","space","parsedValue","trim","getSmartcatLabel","env","assertUnreachable","getSmartcatEnvironmentFromGhBranchName","ghRepositoryBranchName","label"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2CY,IAAAA,mBAAA,GAAA,gBAAAA,oBAAL,IAAA;EACLA,qBAAA,KAAM,CAAA,GAAA,OAAA;EACNA,qBAAA,KAAM,CAAA,GAAA,IAAA;EACNA,qBAAA,WAAY,CAAA,GAAA,YAAA;EACZA,qBAAA,MAAO,CAAA,GAAA,MAAA;EAJGA,OAAAA,oBAAAA;AAAA,CAAA,EAAAA,mBAAA,IAAA,CAAA,CAAA,CAAA;AAqBZ,MAAMC,iBAAoB,GAAA,OAAA;AA0E1B,MAAMC,+BAA4D,GAAA;EAChE,CAACC,SAAAA,CAAAA,QAAS,CAAAC,EAAE,GAAG,IAAA;EACf,CAACD,SAAAA,CAAAA,QAAS,CAAAE,EAAE,GAAG,IAAA;EACf,CAACF,SAAAA,CAAAA,QAAS,CAAAG,EAAE,GAAG,IAAA;EACf,CAACH,SAAAA,CAAAA,QAAS,CAAAI,EAAE,GAAG,IAAA;EACf,CAACJ,SAAAA,CAAAA,QAAS,CAAAK,EAAE,GAAG,IAAA;EACf,CAACL,SAAAA,CAAAA,QAAS,CAAAM,EAAE,GAAG,IAAA;EACf,CAACN,SAAAA,CAAAA,QAAS,CAAAO,EAAE,GAAG,IAAA;EACf,CAACP,SAAAA,CAAAA,QAAS,CAAAQ,EAAE,GAAG,IAAA;EACf,CAACR,SAAAA,CAAAA,QAAS,CAAAS,EAAE,GAAG,OAAA;EACf,CAACT,SAAAA,CAAAA,QAAS,CAAAU,EAAE,GAAG,SAAA;EACf,CAACV,SAAAA,CAAAA,QAAS,CAAAW,EAAE,GAAG;AACjB,CAAA;AAmBO,MAAMC,WAAY,CAAA;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