@ubnt/store.core 9.23.0-beta.0 → 9.23.1

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 (268) hide show
  1. package/CHANGELOG.md +14 -4
  2. package/lib/_virtual/_virtual_multi-entry.js +2 -15
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +0 -2
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/apis/smartcat.d.ts +10 -1
  7. package/lib/apis/smartcat.js +46 -3
  8. package/lib/apis/smartcat.js.map +1 -1
  9. package/lib/apis/smartcat.mjs +47 -5
  10. package/lib/apis/smartcat.mjs.map +1 -1
  11. package/lib/apis/smartcat.test.d.ts +1 -0
  12. package/lib/assets/attention.svg +5 -5
  13. package/lib/assets/attention2.svg +5 -5
  14. package/lib/assets/building-bridge-xg.jpg +0 -0
  15. package/lib/assets/building-bridge.jpg +0 -0
  16. package/lib/assets/close2.svg +2 -3
  17. package/lib/assets/close3.svg +3 -2
  18. package/lib/assets/minus4.svg +8 -8
  19. package/lib/assets/minus5.svg +8 -8
  20. package/lib/assets/pause.svg +3 -3
  21. package/lib/assets/pause2.svg +3 -3
  22. package/lib/assets/plus5.svg +9 -9
  23. package/lib/assets/plus6.svg +9 -9
  24. package/lib/assets/udb-pro.jpg +0 -0
  25. package/lib/assets/udb.jpg +0 -0
  26. package/lib/components/Explore/Explore.test.d.ts +1 -0
  27. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  28. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  29. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  30. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  31. package/lib/components/Header/LanguageFrame/utils/buildLanguageLink.test.d.ts +1 -0
  32. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
  33. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  34. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  35. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  36. package/lib/components/ModelCompareV3/ModelCompareV3.js +15 -2
  37. package/lib/components/ModelCompareV3/ModelCompareV3.js.map +1 -1
  38. package/lib/components/ModelCompareV3/ModelCompareV3.mjs +15 -2
  39. package/lib/components/ModelCompareV3/ModelCompareV3.mjs.map +1 -1
  40. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +4 -1
  41. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge-xg.jpg.js +27 -0
  42. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge-xg.jpg.js.map +1 -0
  43. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge-xg.jpg.mjs +3 -0
  44. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge-xg.jpg.mjs.map +1 -0
  45. package/lib/components/ModelCompareV3/assets/BuildingBridge/{buildingBridgeXG.jpg.js → building-bridge.jpg.js} +2 -2
  46. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge.jpg.js.map +1 -0
  47. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge.jpg.mjs +3 -0
  48. package/lib/components/ModelCompareV3/assets/BuildingBridge/building-bridge.jpg.mjs.map +1 -0
  49. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb-pro.jpg.js +27 -0
  50. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb-pro.jpg.js.map +1 -0
  51. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb-pro.jpg.mjs +3 -0
  52. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb-pro.jpg.mjs.map +1 -0
  53. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb.jpg.js +27 -0
  54. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb.jpg.js.map +1 -0
  55. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb.jpg.mjs +3 -0
  56. package/lib/components/ModelCompareV3/assets/BuildingBridge/udb.jpg.mjs.map +1 -0
  57. package/lib/components/ModelCompareV3/data/BuildingBridge.js +12 -5
  58. package/lib/components/ModelCompareV3/data/BuildingBridge.js.map +1 -1
  59. package/lib/components/ModelCompareV3/data/BuildingBridge.mjs +12 -5
  60. package/lib/components/ModelCompareV3/data/BuildingBridge.mjs.map +1 -1
  61. package/lib/components/ModelCompareV3/data/VideoRecorders.js +2 -1
  62. package/lib/components/ModelCompareV3/data/VideoRecorders.js.map +1 -1
  63. package/lib/components/ModelCompareV3/data/VideoRecorders.mjs +2 -1
  64. package/lib/components/ModelCompareV3/data/VideoRecorders.mjs.map +1 -1
  65. package/lib/components/ModelCompareV3/data/products/buildingBridge.js +16 -7
  66. package/lib/components/ModelCompareV3/data/products/buildingBridge.js.map +1 -1
  67. package/lib/components/ModelCompareV3/data/products/buildingBridge.mjs +16 -7
  68. package/lib/components/ModelCompareV3/data/products/buildingBridge.mjs.map +1 -1
  69. package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.js +15 -6
  70. package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.js.map +1 -1
  71. package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.mjs +15 -6
  72. package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.mjs.map +1 -1
  73. package/lib/components/ModelCompareV3/data/products/envr.js +12 -2
  74. package/lib/components/ModelCompareV3/data/products/envr.js.map +1 -1
  75. package/lib/components/ModelCompareV3/data/products/envr.mjs +12 -2
  76. package/lib/components/ModelCompareV3/data/products/envr.mjs.map +1 -1
  77. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +1 -3
  78. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
  79. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +1 -3
  80. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
  81. package/lib/components/ModelCompareV3/data/products/gatewayLite.js +7 -0
  82. package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
  83. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +7 -0
  84. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
  85. package/lib/components/ModelCompareV3/data/products/gatewayMax.js +7 -0
  86. package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
  87. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +7 -0
  88. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
  89. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +7 -0
  90. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
  91. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +7 -0
  92. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
  93. package/lib/components/ModelCompareV3/data/products/udb.d.ts +2 -0
  94. package/lib/components/ModelCompareV3/data/products/udb.js +86 -0
  95. package/lib/components/ModelCompareV3/data/products/udb.js.map +1 -0
  96. package/lib/components/ModelCompareV3/data/products/udb.mjs +78 -0
  97. package/lib/components/ModelCompareV3/data/products/udb.mjs.map +1 -0
  98. package/lib/components/ModelCompareV3/data/products/udbPro.d.ts +2 -0
  99. package/lib/components/ModelCompareV3/data/products/udbPro.js +88 -0
  100. package/lib/components/ModelCompareV3/data/products/udbPro.js.map +1 -0
  101. package/lib/components/ModelCompareV3/data/products/udbPro.mjs +80 -0
  102. package/lib/components/ModelCompareV3/data/products/udbPro.mjs.map +1 -0
  103. package/lib/components/ModelCompareV3/translations/ar.json.js +22 -4
  104. package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
  105. package/lib/components/ModelCompareV3/translations/ar.json.mjs +22 -4
  106. package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
  107. package/lib/components/ModelCompareV3/translations/de.json.js +22 -4
  108. package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
  109. package/lib/components/ModelCompareV3/translations/de.json.mjs +22 -4
  110. package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
  111. package/lib/components/ModelCompareV3/translations/el.json.js +22 -4
  112. package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
  113. package/lib/components/ModelCompareV3/translations/el.json.mjs +22 -4
  114. package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
  115. package/lib/components/ModelCompareV3/translations/en.json.js +22 -4
  116. package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
  117. package/lib/components/ModelCompareV3/translations/en.json.mjs +22 -4
  118. package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
  119. package/lib/components/ModelCompareV3/translations/es.json.js +22 -4
  120. package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
  121. package/lib/components/ModelCompareV3/translations/es.json.mjs +22 -4
  122. package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
  123. package/lib/components/ModelCompareV3/translations/fr.json.js +22 -4
  124. package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
  125. package/lib/components/ModelCompareV3/translations/fr.json.mjs +22 -4
  126. package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
  127. package/lib/components/ModelCompareV3/translations/it.json.js +22 -4
  128. package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
  129. package/lib/components/ModelCompareV3/translations/it.json.mjs +22 -4
  130. package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
  131. package/lib/components/ModelCompareV3/translations/ja.json.js +22 -4
  132. package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
  133. package/lib/components/ModelCompareV3/translations/ja.json.mjs +22 -4
  134. package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
  135. package/lib/components/ModelCompareV3/translations/pt-BR.json.js +22 -4
  136. package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
  137. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +22 -4
  138. package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
  139. package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
  140. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +22 -4
  141. package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
  142. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +22 -4
  143. package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
  144. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +22 -4
  145. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
  146. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +22 -4
  147. package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
  148. package/lib/components/ProductCompare/mapping.test.d.ts +1 -0
  149. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
  150. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  151. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  152. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  153. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  154. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  155. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  156. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  157. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  158. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  159. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
  160. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  161. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  162. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  163. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  164. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  165. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  166. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  167. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  168. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  169. package/lib/components/VariantSelector/Variant/BundleOffer/utils/getBundleOfferQuantity.test.d.ts +1 -0
  170. package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
  171. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
  172. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  173. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  174. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  175. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  176. package/lib/constants/postalCode.test.d.ts +1 -0
  177. package/lib/constants/proStoreCategories/mapping/index.d.ts +0 -1
  178. package/lib/constants/proStoreCategories/mapping/index.js +46 -51
  179. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  180. package/lib/constants/proStoreCategories/mapping/index.mjs +46 -51
  181. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  182. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -2
  183. package/lib/constants/proStoreCategories/mapping/unifi.js +0 -1
  184. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  185. package/lib/constants/proStoreCategories/mapping/unifi.mjs +0 -1
  186. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  187. package/lib/constants/proStoreCategories/translations/en.json.js +0 -3
  188. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  189. package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -3
  190. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  191. package/lib/constants/proStoreCategories/translations/fr.json.js +1 -1
  192. package/lib/constants/proStoreCategories/translations/fr.json.mjs +1 -1
  193. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +1 -1
  194. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +1 -1
  195. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +1 -1
  196. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +1 -1
  197. package/lib/contexts/MenuContext/mapping.js +2 -0
  198. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  199. package/lib/contexts/MenuContext/mapping.mjs +2 -0
  200. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  201. package/lib/contexts/MenuContext/mapping.test.d.ts +1 -0
  202. package/lib/contexts/MenuContext/utils.test.d.ts +1 -0
  203. package/lib/helpers/index.d.ts +0 -1
  204. package/lib/helpers/index.js +0 -11
  205. package/lib/helpers/index.js.map +1 -1
  206. package/lib/helpers/index.mjs +0 -1
  207. package/lib/helpers/index.mjs.map +1 -1
  208. package/lib/types/index.d.ts +0 -1
  209. package/lib/types/index.js +0 -2
  210. package/lib/types/index.js.map +1 -1
  211. package/lib/types/index.mjs +0 -1
  212. package/lib/types/index.mjs.map +1 -1
  213. package/lib/types/utils.d.ts +13 -0
  214. package/lib/types/utils.test.d.ts +1 -0
  215. package/lib/utils/address.test.d.ts +1 -0
  216. package/lib/utils/array.d.ts +0 -4
  217. package/lib/utils/array.js +0 -10
  218. package/lib/utils/array.js.map +1 -1
  219. package/lib/utils/array.mjs +1 -10
  220. package/lib/utils/array.mjs.map +1 -1
  221. package/lib/utils/array.test.d.ts +1 -0
  222. package/lib/utils/collectionSlug.test.d.ts +1 -0
  223. package/lib/utils/countriesAndZones.test.d.ts +1 -0
  224. package/lib/utils/langauge.test.d.ts +1 -0
  225. package/lib/utils/measures.test.d.ts +1 -0
  226. package/lib/utils/money/allocators/fixedAmount.test.d.ts +1 -0
  227. package/lib/utils/money/allocators/productAmount.test.d.ts +1 -0
  228. package/lib/utils/money/constants.test.d.ts +1 -0
  229. package/lib/utils/money/exchangeRate.test.d.ts +1 -0
  230. package/lib/utils/money/format.test.d.ts +1 -0
  231. package/lib/utils/money/misc.test.d.ts +1 -0
  232. package/lib/utils/money/shipping.test.d.ts +1 -0
  233. package/lib/utils/money/tax.private.test.d.ts +1 -0
  234. package/lib/utils/money/tax.test.d.ts +1 -0
  235. package/lib/utils/nextjs/createInlineScript.test.d.ts +1 -0
  236. package/lib/utils/nextjs/mergeCspDirectives.test.d.ts +1 -0
  237. package/lib/utils/nextjs/sanitizeImageDomains.test.d.ts +1 -0
  238. package/lib/utils/nextjs/stringifyForInject.test.d.ts +1 -0
  239. package/lib/utils/number.test.d.ts +1 -0
  240. package/lib/utils/storeId.test.d.ts +1 -0
  241. package/lib/utils/string.test.d.ts +1 -0
  242. package/lib/utils/tags.test.d.ts +1 -0
  243. package/lib/utils/tax/index.test.d.ts +1 -0
  244. package/lib/utils/url.test.d.ts +1 -0
  245. package/lib/utils/validations/postalCodeSuperRefinement.test.d.ts +1 -0
  246. package/lib/utils/variant.test.d.ts +1 -0
  247. package/lib/utils/wattage.test.d.ts +1 -0
  248. package/lib/utils/zod.test.d.ts +1 -0
  249. package/package.json +14 -14
  250. package/lib/assets/buildingBridgeXG.jpg +0 -0
  251. package/lib/components/ModelCompareV3/assets/BuildingBridge/buildingBridgeXG.jpg.js.map +0 -1
  252. package/lib/components/ModelCompareV3/assets/BuildingBridge/buildingBridgeXG.jpg.mjs +0 -3
  253. package/lib/components/ModelCompareV3/assets/BuildingBridge/buildingBridgeXG.jpg.mjs.map +0 -1
  254. package/lib/helpers/product.d.ts +0 -87
  255. package/lib/helpers/product.js +0 -346
  256. package/lib/helpers/product.js.map +0 -1
  257. package/lib/helpers/product.mjs +0 -335
  258. package/lib/helpers/product.mjs.map +0 -1
  259. package/lib/types/product.d.ts +0 -87
  260. package/lib/types/product.js +0 -14
  261. package/lib/types/product.js.map +0 -1
  262. package/lib/types/product.mjs +0 -13
  263. package/lib/types/product.mjs.map +0 -1
  264. package/lib/utils/productSort.d.ts +0 -41
  265. package/lib/utils/productSort.js +0 -67
  266. package/lib/utils/productSort.js.map +0 -1
  267. package/lib/utils/productSort.mjs +0 -60
  268. package/lib/utils/productSort.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1 @@
1
1
  export * from "./proStoreCategories";
2
- export * from "./product";
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var proStoreCategories = require('./proStoreCategories.js');
4
- var product = require('./product.js');
5
4
  "use strict";
6
5
  exports.getCategoriesBySubcategory = proStoreCategories.getCategoriesBySubcategory;
7
6
  exports.getLocalizedCategories = proStoreCategories.getLocalizedCategories;
@@ -11,14 +10,4 @@ exports.getSubCategoryIdByCollectionSlug = proStoreCategories.getSubCategoryIdBy
11
10
  exports.isValidSubCategory = proStoreCategories.isValidSubCategory;
12
11
  exports.parseCategories = proStoreCategories.parseCategories;
13
12
  exports.useTranslatedCategories = proStoreCategories.useTranslatedCategories;
14
- exports.COLLECTION_SECTION_OTHER_ID = product.COLLECTION_SECTION_OTHER_ID;
15
- exports.HDDProductSlugs = product.HDDProductSlugs;
16
- exports.MagicCollectionTags = product.MagicCollectionTags;
17
- exports.ProductOptions = product.ProductOptions;
18
- exports.createSectionHierarchy = product.createSectionHierarchy;
19
- exports.getProStoreCategory = product.getProStoreCategory;
20
- exports.getProductGroups = product.getProductGroups;
21
- exports.getStoreProducts = product.getStoreProducts;
22
- exports.isNonNullish = product.isNonNullish;
23
- exports.removeExcludedProducts = product.removeExcludedProducts;
24
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1,4 +1,3 @@
1
1
  export { getCategoriesBySubcategory, getLocalizedCategories, getProductLineByCategory, getProductLineBySubcategory, getSubCategoryIdByCollectionSlug, isValidSubCategory, parseCategories, useTranslatedCategories } from './proStoreCategories.mjs';
2
- export { COLLECTION_SECTION_OTHER_ID, HDDProductSlugs, MagicCollectionTags, ProductOptions, createSectionHierarchy, getProStoreCategory, getProductGroups, getStoreProducts, isNonNullish, removeExcludedProducts } from './product.mjs';
3
2
  "use strict";
4
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -3,4 +3,3 @@ export * from "./constants";
3
3
  export * from "./generated";
4
4
  export * from "./object";
5
5
  export * from "./utils";
6
- export * from "./product";
@@ -5,7 +5,6 @@ var constants = require('./constants.js');
5
5
  var generated = require('./generated.js');
6
6
  require('./object.js');
7
7
  require('./utils.js');
8
- var product = require('./product.js');
9
8
  "use strict";
10
9
  exports.AddressUsageType = constants.AddressUsageType;
11
10
  exports.Language = constants.Language;
@@ -19,5 +18,4 @@ exports.Unit = generated.Unit;
19
18
  exports.UnitSystem = generated.UnitSystem;
20
19
  exports.UserAssignedCountryCode = generated.UserAssignedCountryCode;
21
20
  exports.ValidateTaxStatus = generated.ValidateTaxStatus;
22
- exports.DisplayProductStatus = product.DisplayProductStatus;
23
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -3,6 +3,5 @@ export { AddressUsageType, Language } from './constants.mjs';
3
3
  export { AddressType, CountryCode, Currency, GlobalStoreId, ProductLine, StoreId, Unit, UnitSystem, UserAssignedCountryCode, ValidateTaxStatus } from './generated.mjs';
4
4
  import './object.mjs';
5
5
  import './utils.mjs';
6
- export { DisplayProductStatus } from './product.mjs';
7
6
  "use strict";
8
7
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -74,3 +74,16 @@ export type AnyFunction = (...args: any) => any;
74
74
  * type CountryList = TypeOfSet<typeof countryList>; // CountryCode.Ad | CountryCode.Ch | CountryCode.No
75
75
  */
76
76
  export type TypeOfSet<S> = S extends Set<infer T> ? T : never;
77
+ /**
78
+ * Type-safe version of native `Omit` utility
79
+ * Typescript team by-design has implemented Omit to not be strict to work with spread operations
80
+ *
81
+ * @example
82
+ * interface Person {
83
+ * name: string;
84
+ * age: number;
85
+ * }
86
+ * StrictOmit<Person, 'name'>; // { age: number } // Ok
87
+ * StrictOmit<Person, 'firstName'>; // Error
88
+ */
89
+ export type StrictOmit<T, K extends keyof T> = Omit<T, K>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -28,7 +28,3 @@ export declare const arraySafeIndexFind: <T>(array: T[], index: number) => T | u
28
28
  * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts
29
29
  */
30
30
  export declare const normalizeSortResult: (sortResult: number) => number;
31
- /**
32
- * Combine multiple sort functions into one
33
- */
34
- export declare const combineSorts: <T>(sorts: ((a: T, b: T) => number)[]) => ((a: T, b: T) => number);
@@ -24,19 +24,9 @@ const arraySafeIndexFind = (array, index) => {
24
24
  return array[safeIndex];
25
25
  };
26
26
  const normalizeSortResult = sortResult => number.clamp(sortResult, -1, 1);
27
- const combineSorts = sorts => (a, b) => {
28
- for (const sort of sorts) {
29
- const result = sort(a, b);
30
- if (result !== 0) {
31
- return result;
32
- }
33
- }
34
- return 0;
35
- };
36
27
  exports.areEqualArrays = areEqualArrays;
37
28
  exports.arraySafeIndex = arraySafeIndex;
38
29
  exports.arraySafeIndexFind = arraySafeIndexFind;
39
- exports.combineSorts = combineSorts;
40
30
  exports.dedupe = dedupe;
41
31
  exports.ensureArray = ensureArray;
42
32
  exports.normalizeSortResult = normalizeSortResult;
@@ -1 +1 @@
1
- {"version":3,"file":"array.js","sources":["../../src/utils/array.ts"],"sourcesContent":["import { clamp } from \"./number\";\n\n/**\n * Make sure the element is an array\n * If it's not, make it an array of one element\n */\nexport function ensureArray<T>(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Utility to quickly remove duplicates from an array.\n *\n * Similar to lodash's `uniq`, but doesn't require lodash as dependency.\n */\nexport const dedupe = <T>(arr: T[]) => [...new Set(arr)];\n\n/**\n * Utility function check if given arrays contain same elements (regardless the order)\n *\n * @example\n * areArraysEqual([1, 2, 3], [3, 2, 1]) // true\n * areArraysEqual([1, 2, 3], [3, 2, 1, 4]) // false\n */\nexport const areEqualArrays = (a: string[], b: string[]): boolean => {\n if (a.length !== b.length) {\n return false;\n }\n if (!a.every((el) => b.includes(el))) {\n return false;\n }\n return !b.every((el) => a.includes(el)) ? false : true;\n};\n\n/**\n * Function to get array index by positive and negative wrap-around offsets\n *\n * @see https://dirask.com/posts/JavaScript-positive-and-negative-around-index-wrapping-overlapping-to-address-items-in-array-pVyrnD\n */\nexport const arraySafeIndex = <T>(array: T[], index: number): number => {\n const indexSize = array.length;\n\n return ((index % indexSize) + indexSize) % indexSize;\n};\n\nexport const arraySafeIndexFind = <T>(\n array: T[],\n index: number,\n): T | undefined => {\n const safeIndex = arraySafeIndex(array, index);\n\n return array[safeIndex];\n};\n\n/**\n * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts\n */\nexport const normalizeSortResult = (sortResult: number): number =>\n clamp(sortResult, -1, 1);\n\n/**\n * Combine multiple sort functions into one\n */\nexport const combineSorts =\n <T>(sorts: ((a: T, b: T) => number)[]): ((a: T, b: T) => number) =>\n (a, b) => {\n for (const sort of sorts) {\n const result = sort(a, b);\n\n if (result !== 0) {\n return result;\n }\n }\n\n return 0;\n };\n"],"names":["ensureArray","value","Array","isArray","dedupe","arr","Set","areEqualArrays","a","b","length","every","el","includes","arraySafeIndex","array","index","indexSize","arraySafeIndexFind","safeIndex","normalizeSortResult","sortResult","clamp","combineSorts","sorts","sort","result"],"mappings":";;;;AAMO,SAASA,YAAeC,KAAqB,EAAA;EAClD,OAAOC,MAAMC,OAAQ,CAAAF,KAAK,CAAI,GAAAA,KAAA,GAAQ,CAACA,KAAK,CAAA;AAC9C;AAOa,MAAAG,MAAA,GAAaC,GAAa,IAAA,CAAC,GAAG,IAAIC,GAAA,CAAID,GAAG,CAAC,CAAA;AAS1C,MAAAE,cAAA,GAAiBA,CAACC,CAAA,EAAaC,CAAyB,KAAA;EAC/D,IAAAD,CAAA,CAAEE,MAAW,KAAAD,CAAA,CAAEC,MAAQ,EAAA;IAClB,OAAA,KAAA;EACT;EACI,IAAA,CAACF,EAAEG,KAAM,CAACC,MAAOH,CAAE,CAAAI,QAAA,CAASD,EAAE,CAAC,CAAG,EAAA;IAC7B,OAAA,KAAA;EACT;EACO,OAAA,CAACH,CAAE,CAAAE,KAAA,CAAOC,EAAA,IAAOJ,EAAEK,QAAS,CAAAD,EAAE,CAAC,CAAA,GAAI,KAAQ,GAAA,IAAA;AACpD,CAAA;AAOa,MAAAE,cAAA,GAAiBA,CAAIC,KAAA,EAAYC,KAA0B,KAAA;EACtE,MAAMC,YAAYF,KAAM,CAAAL,MAAA;EAEf,OAAA,CAAAM,KAAA,GAAQC,YAAaA,SAAa,IAAAA,SAAA;AAC7C,CAAA;AAEa,MAAAC,kBAAA,GAAqBA,CAChCH,KAAA,EACAC,KACkB,KAAA;EACZ,MAAAG,SAAA,GAAYL,cAAe,CAAAC,KAAA,EAAOC,KAAK,CAAA;EAE7C,OAAOD,MAAMI,SAAS,CAAA;AACxB,CAAA;AAKO,MAAMC,sBAAuBC,UAAA,IAClCC,MAAAA,CAAAA,KAAM,CAAAD,UAAA,EAAY,IAAI,CAAC,CAAA;AAKlB,MAAME,YACX,GAAIC,KACJ,IAAA,CAAChB,GAAGC,CAAM,KAAA;EACR,KAAA,MAAWgB,QAAQD,KAAO,EAAA;IAClB,MAAAE,MAAA,GAASD,IAAK,CAAAjB,CAAA,EAAGC,CAAC,CAAA;IAExB,IAAIiB,WAAW,CAAG,EAAA;MACT,OAAAA,MAAA;IACT;EACF;EAEO,OAAA,CAAA;AACT,CAAA;;;;;;;"}
1
+ {"version":3,"file":"array.js","sources":["../../src/utils/array.ts"],"sourcesContent":["import { clamp } from \"./number\";\n\n/**\n * Make sure the element is an array\n * If it's not, make it an array of one element\n */\nexport function ensureArray<T>(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Utility to quickly remove duplicates from an array.\n *\n * Similar to lodash's `uniq`, but doesn't require lodash as dependency.\n */\nexport const dedupe = <T>(arr: T[]) => [...new Set(arr)];\n\n/**\n * Utility function check if given arrays contain same elements (regardless the order)\n *\n * @example\n * areArraysEqual([1, 2, 3], [3, 2, 1]) // true\n * areArraysEqual([1, 2, 3], [3, 2, 1, 4]) // false\n */\nexport const areEqualArrays = (a: string[], b: string[]): boolean => {\n if (a.length !== b.length) {\n return false;\n }\n if (!a.every((el) => b.includes(el))) {\n return false;\n }\n return !b.every((el) => a.includes(el)) ? false : true;\n};\n\n/**\n * Function to get array index by positive and negative wrap-around offsets\n *\n * @see https://dirask.com/posts/JavaScript-positive-and-negative-around-index-wrapping-overlapping-to-address-items-in-array-pVyrnD\n */\nexport const arraySafeIndex = <T>(array: T[], index: number): number => {\n const indexSize = array.length;\n\n return ((index % indexSize) + indexSize) % indexSize;\n};\n\nexport const arraySafeIndexFind = <T>(\n array: T[],\n index: number,\n): T | undefined => {\n const safeIndex = arraySafeIndex(array, index);\n\n return array[safeIndex];\n};\n\n/**\n * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts\n */\nexport const normalizeSortResult = (sortResult: number): number =>\n clamp(sortResult, -1, 1);\n"],"names":["ensureArray","value","Array","isArray","dedupe","arr","Set","areEqualArrays","a","b","length","every","el","includes","arraySafeIndex","array","index","indexSize","arraySafeIndexFind","safeIndex","normalizeSortResult","sortResult","clamp"],"mappings":";;;;AAMO,SAASA,YAAeC,KAAqB,EAAA;EAClD,OAAOC,MAAMC,OAAQ,CAAAF,KAAK,CAAI,GAAAA,KAAA,GAAQ,CAACA,KAAK,CAAA;AAC9C;AAOa,MAAAG,MAAA,GAAaC,GAAa,IAAA,CAAC,GAAG,IAAIC,GAAA,CAAID,GAAG,CAAC,CAAA;AAS1C,MAAAE,cAAA,GAAiBA,CAACC,CAAA,EAAaC,CAAyB,KAAA;EAC/D,IAAAD,CAAA,CAAEE,MAAW,KAAAD,CAAA,CAAEC,MAAQ,EAAA;IAClB,OAAA,KAAA;EACT;EACI,IAAA,CAACF,EAAEG,KAAM,CAACC,MAAOH,CAAE,CAAAI,QAAA,CAASD,EAAE,CAAC,CAAG,EAAA;IAC7B,OAAA,KAAA;EACT;EACO,OAAA,CAACH,CAAE,CAAAE,KAAA,CAAOC,EAAA,IAAOJ,EAAEK,QAAS,CAAAD,EAAE,CAAC,CAAA,GAAI,KAAQ,GAAA,IAAA;AACpD,CAAA;AAOa,MAAAE,cAAA,GAAiBA,CAAIC,KAAA,EAAYC,KAA0B,KAAA;EACtE,MAAMC,YAAYF,KAAM,CAAAL,MAAA;EAEf,OAAA,CAAAM,KAAA,GAAQC,YAAaA,SAAa,IAAAA,SAAA;AAC7C,CAAA;AAEa,MAAAC,kBAAA,GAAqBA,CAChCH,KAAA,EACAC,KACkB,KAAA;EACZ,MAAAG,SAAA,GAAYL,cAAe,CAAAC,KAAA,EAAOC,KAAK,CAAA;EAE7C,OAAOD,MAAMI,SAAS,CAAA;AACxB,CAAA;AAKO,MAAMC,sBAAuBC,UAAA,IAClCC,MAAAA,CAAAA,KAAM,CAAAD,UAAA,EAAY,IAAI,CAAC,CAAA;;;;;;"}
@@ -22,14 +22,5 @@ const arraySafeIndexFind = (array, index) => {
22
22
  return array[safeIndex];
23
23
  };
24
24
  const normalizeSortResult = sortResult => clamp(sortResult, -1, 1);
25
- const combineSorts = sorts => (a, b) => {
26
- for (const sort of sorts) {
27
- const result = sort(a, b);
28
- if (result !== 0) {
29
- return result;
30
- }
31
- }
32
- return 0;
33
- };
34
- export { areEqualArrays, arraySafeIndex, arraySafeIndexFind, combineSorts, dedupe, ensureArray, normalizeSortResult };
25
+ export { areEqualArrays, arraySafeIndex, arraySafeIndexFind, dedupe, ensureArray, normalizeSortResult };
35
26
  //# sourceMappingURL=array.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"array.mjs","sources":["../../src/utils/array.ts"],"sourcesContent":["import { clamp } from \"./number\";\n\n/**\n * Make sure the element is an array\n * If it's not, make it an array of one element\n */\nexport function ensureArray<T>(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Utility to quickly remove duplicates from an array.\n *\n * Similar to lodash's `uniq`, but doesn't require lodash as dependency.\n */\nexport const dedupe = <T>(arr: T[]) => [...new Set(arr)];\n\n/**\n * Utility function check if given arrays contain same elements (regardless the order)\n *\n * @example\n * areArraysEqual([1, 2, 3], [3, 2, 1]) // true\n * areArraysEqual([1, 2, 3], [3, 2, 1, 4]) // false\n */\nexport const areEqualArrays = (a: string[], b: string[]): boolean => {\n if (a.length !== b.length) {\n return false;\n }\n if (!a.every((el) => b.includes(el))) {\n return false;\n }\n return !b.every((el) => a.includes(el)) ? false : true;\n};\n\n/**\n * Function to get array index by positive and negative wrap-around offsets\n *\n * @see https://dirask.com/posts/JavaScript-positive-and-negative-around-index-wrapping-overlapping-to-address-items-in-array-pVyrnD\n */\nexport const arraySafeIndex = <T>(array: T[], index: number): number => {\n const indexSize = array.length;\n\n return ((index % indexSize) + indexSize) % indexSize;\n};\n\nexport const arraySafeIndexFind = <T>(\n array: T[],\n index: number,\n): T | undefined => {\n const safeIndex = arraySafeIndex(array, index);\n\n return array[safeIndex];\n};\n\n/**\n * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts\n */\nexport const normalizeSortResult = (sortResult: number): number =>\n clamp(sortResult, -1, 1);\n\n/**\n * Combine multiple sort functions into one\n */\nexport const combineSorts =\n <T>(sorts: ((a: T, b: T) => number)[]): ((a: T, b: T) => number) =>\n (a, b) => {\n for (const sort of sorts) {\n const result = sort(a, b);\n\n if (result !== 0) {\n return result;\n }\n }\n\n return 0;\n };\n"],"names":["ensureArray","value","Array","isArray","dedupe","arr","Set","areEqualArrays","a","b","length","every","el","includes","arraySafeIndex","array","index","indexSize","arraySafeIndexFind","safeIndex","normalizeSortResult","sortResult","clamp","combineSorts","sorts","sort","result"],"mappings":";;AAMO,SAASA,YAAeC,KAAqB,EAAA;EAClD,OAAOC,MAAMC,OAAQ,CAAAF,KAAK,CAAI,GAAAA,KAAA,GAAQ,CAACA,KAAK,CAAA;AAC9C;AAOa,MAAAG,MAAA,GAAaC,GAAa,IAAA,CAAC,GAAG,IAAIC,GAAA,CAAID,GAAG,CAAC,CAAA;AAS1C,MAAAE,cAAA,GAAiBA,CAACC,CAAA,EAAaC,CAAyB,KAAA;EAC/D,IAAAD,CAAA,CAAEE,MAAW,KAAAD,CAAA,CAAEC,MAAQ,EAAA;IAClB,OAAA,KAAA;EACT;EACI,IAAA,CAACF,EAAEG,KAAM,CAACC,MAAOH,CAAE,CAAAI,QAAA,CAASD,EAAE,CAAC,CAAG,EAAA;IAC7B,OAAA,KAAA;EACT;EACO,OAAA,CAACH,CAAE,CAAAE,KAAA,CAAOC,EAAA,IAAOJ,EAAEK,QAAS,CAAAD,EAAE,CAAC,CAAA,GAAI,KAAQ,GAAA,IAAA;AACpD,CAAA;AAOa,MAAAE,cAAA,GAAiBA,CAAIC,KAAA,EAAYC,KAA0B,KAAA;EACtE,MAAMC,YAAYF,KAAM,CAAAL,MAAA;EAEf,OAAA,CAAAM,KAAA,GAAQC,YAAaA,SAAa,IAAAA,SAAA;AAC7C,CAAA;AAEa,MAAAC,kBAAA,GAAqBA,CAChCH,KAAA,EACAC,KACkB,KAAA;EACZ,MAAAG,SAAA,GAAYL,cAAe,CAAAC,KAAA,EAAOC,KAAK,CAAA;EAE7C,OAAOD,MAAMI,SAAS,CAAA;AACxB,CAAA;AAKO,MAAMC,sBAAuBC,UAAA,IAClCC,KAAM,CAAAD,UAAA,EAAY,IAAI,CAAC,CAAA;AAKlB,MAAME,YACX,GAAIC,KACJ,IAAA,CAAChB,GAAGC,CAAM,KAAA;EACR,KAAA,MAAWgB,QAAQD,KAAO,EAAA;IAClB,MAAAE,MAAA,GAASD,IAAK,CAAAjB,CAAA,EAAGC,CAAC,CAAA;IAExB,IAAIiB,WAAW,CAAG,EAAA;MACT,OAAAA,MAAA;IACT;EACF;EAEO,OAAA,CAAA;AACT,CAAA;"}
1
+ {"version":3,"file":"array.mjs","sources":["../../src/utils/array.ts"],"sourcesContent":["import { clamp } from \"./number\";\n\n/**\n * Make sure the element is an array\n * If it's not, make it an array of one element\n */\nexport function ensureArray<T>(value: T | T[]): T[] {\n return Array.isArray(value) ? value : [value];\n}\n\n/**\n * Utility to quickly remove duplicates from an array.\n *\n * Similar to lodash's `uniq`, but doesn't require lodash as dependency.\n */\nexport const dedupe = <T>(arr: T[]) => [...new Set(arr)];\n\n/**\n * Utility function check if given arrays contain same elements (regardless the order)\n *\n * @example\n * areArraysEqual([1, 2, 3], [3, 2, 1]) // true\n * areArraysEqual([1, 2, 3], [3, 2, 1, 4]) // false\n */\nexport const areEqualArrays = (a: string[], b: string[]): boolean => {\n if (a.length !== b.length) {\n return false;\n }\n if (!a.every((el) => b.includes(el))) {\n return false;\n }\n return !b.every((el) => a.includes(el)) ? false : true;\n};\n\n/**\n * Function to get array index by positive and negative wrap-around offsets\n *\n * @see https://dirask.com/posts/JavaScript-positive-and-negative-around-index-wrapping-overlapping-to-address-items-in-array-pVyrnD\n */\nexport const arraySafeIndex = <T>(array: T[], index: number): number => {\n const indexSize = array.length;\n\n return ((index % indexSize) + indexSize) % indexSize;\n};\n\nexport const arraySafeIndexFind = <T>(\n array: T[],\n index: number,\n): T | undefined => {\n const safeIndex = arraySafeIndex(array, index);\n\n return array[safeIndex];\n};\n\n/**\n * Normalise sort result to be in range of -1 to 1 so that we can easily combine multiple sorts\n */\nexport const normalizeSortResult = (sortResult: number): number =>\n clamp(sortResult, -1, 1);\n"],"names":["ensureArray","value","Array","isArray","dedupe","arr","Set","areEqualArrays","a","b","length","every","el","includes","arraySafeIndex","array","index","indexSize","arraySafeIndexFind","safeIndex","normalizeSortResult","sortResult","clamp"],"mappings":";;AAMO,SAASA,YAAeC,KAAqB,EAAA;EAClD,OAAOC,MAAMC,OAAQ,CAAAF,KAAK,CAAI,GAAAA,KAAA,GAAQ,CAACA,KAAK,CAAA;AAC9C;AAOa,MAAAG,MAAA,GAAaC,GAAa,IAAA,CAAC,GAAG,IAAIC,GAAA,CAAID,GAAG,CAAC,CAAA;AAS1C,MAAAE,cAAA,GAAiBA,CAACC,CAAA,EAAaC,CAAyB,KAAA;EAC/D,IAAAD,CAAA,CAAEE,MAAW,KAAAD,CAAA,CAAEC,MAAQ,EAAA;IAClB,OAAA,KAAA;EACT;EACI,IAAA,CAACF,EAAEG,KAAM,CAACC,MAAOH,CAAE,CAAAI,QAAA,CAASD,EAAE,CAAC,CAAG,EAAA;IAC7B,OAAA,KAAA;EACT;EACO,OAAA,CAACH,CAAE,CAAAE,KAAA,CAAOC,EAAA,IAAOJ,EAAEK,QAAS,CAAAD,EAAE,CAAC,CAAA,GAAI,KAAQ,GAAA,IAAA;AACpD,CAAA;AAOa,MAAAE,cAAA,GAAiBA,CAAIC,KAAA,EAAYC,KAA0B,KAAA;EACtE,MAAMC,YAAYF,KAAM,CAAAL,MAAA;EAEf,OAAA,CAAAM,KAAA,GAAQC,YAAaA,SAAa,IAAAA,SAAA;AAC7C,CAAA;AAEa,MAAAC,kBAAA,GAAqBA,CAChCH,KAAA,EACAC,KACkB,KAAA;EACZ,MAAAG,SAAA,GAAYL,cAAe,CAAAC,KAAA,EAAOC,KAAK,CAAA;EAE7C,OAAOD,MAAMI,SAAS,CAAA;AACxB,CAAA;AAKO,MAAMC,sBAAuBC,UAAA,IAClCC,KAAM,CAAAD,UAAA,EAAY,IAAI,CAAC,CAAA;"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubnt/store.core",
3
- "version": "9.23.0-beta.0",
3
+ "version": "9.23.1",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "scripts": {
@@ -21,27 +21,27 @@
21
21
  "adm-zip": "0.5.16",
22
22
  "axios": "1.7.7",
23
23
  "json-stable-stringify": "1.1.1",
24
- "terser": "5.33.0",
25
- "tldts": "6.1.46"
24
+ "terser": "5.34.1",
25
+ "tldts": "6.1.48"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "@dinero.js/currencies": "2.0.0-alpha.8",
29
29
  "@faker-js/faker": "^7.6.0",
30
- "@formatjs/intl": "^2.10.4",
30
+ "@formatjs/intl": "^2.10.5",
31
31
  "@types/lodash-es": "^4.17.12",
32
32
  "@ubnt/ui-components": "^62.1.1",
33
- "big.js": "^6.2.1",
33
+ "big.js": "^6.2.2",
34
34
  "convert-units": "3.0.0-beta.5",
35
35
  "countup.js": "^2.6.2",
36
36
  "dinero.js": "2.0.0-alpha.8",
37
37
  "intl-messageformat": "^10.5.14",
38
- "libphonenumber-js": "^1.11.8",
38
+ "libphonenumber-js": "^1.11.9",
39
39
  "lodash-es": "^4.17.21",
40
- "next": "^14.2.12",
40
+ "next": "^14.2.13",
41
41
  "react": "^17.0.0 || ^18.3.1",
42
42
  "react-countup": "6.5.3",
43
43
  "react-dom": "^17.0.0 || ^18.3.1",
44
- "react-use": "^17.5.0",
44
+ "react-use": "^17.5.1",
45
45
  "slugify": "^1.6.6",
46
46
  "styled-components": "^5.3.11",
47
47
  "url-join": "^4.0.1",
@@ -71,10 +71,10 @@
71
71
  }
72
72
  },
73
73
  "devDependencies": {
74
- "@rollup/plugin-commonjs": "26.0.1",
74
+ "@rollup/plugin-commonjs": "26.0.3",
75
75
  "@rollup/plugin-json": "6.1.0",
76
76
  "@rollup/plugin-multi-entry": "6.0.1",
77
- "@rollup/plugin-node-resolve": "15.2.3",
77
+ "@rollup/plugin-node-resolve": "15.3.0",
78
78
  "@storybook/addon-actions": "6.5.16",
79
79
  "@storybook/addon-essentials": "6.5.16",
80
80
  "@storybook/addon-interactions": "6.5.16",
@@ -86,20 +86,20 @@
86
86
  "@storybook/testing-library": "0.0.13",
87
87
  "@types/adm-zip": "0.5.5",
88
88
  "@types/big.js": "6.2.2",
89
- "@types/react": "^17.0.0 || ^18.3.3",
89
+ "@types/react": "^17.0.0 || ^18.3.10",
90
90
  "@types/styled-components": "5.1.26",
91
91
  "@types/url-join": "^4.0.3",
92
92
  "babel-plugin-styled-components": "2.1.4",
93
93
  "css-loader": "7.1.2",
94
94
  "nodemon": "2.0.22",
95
- "react-hook-form": "7.52.2",
96
- "rollup": "4.21.3",
95
+ "react-hook-form": "7.53.0",
96
+ "rollup": "4.23.0",
97
97
  "rollup-plugin-copy": "3.5.0",
98
98
  "rollup-plugin-delete": "2.1.0",
99
99
  "rollup-plugin-esbuild": "6.1.1",
100
100
  "rollup-plugin-external-assets": "4.1.1",
101
101
  "rollup-plugin-peer-deps-external": "2.2.4",
102
- "sass": "1.79.1",
102
+ "sass": "1.79.4",
103
103
  "sass-loader": "14.2.1",
104
104
  "style-loader": "4.0.0"
105
105
  }
Binary file
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildingBridgeXG.jpg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,3 +0,0 @@
1
- export * from "../../../../assets/buildingBridgeXG.jpg";
2
- export { default } from "../../../../assets/buildingBridgeXG.jpg";
3
- //# sourceMappingURL=buildingBridgeXG.jpg.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildingBridgeXG.jpg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,87 +0,0 @@
1
- import type { ParsedCategoryItem } from "../constants/proStoreCategories";
2
- import type { CollectionSection, MappedProductSection, Nullish, ProductTagFragment, Section, StorefrontOption, StorefrontProduct, StoreId } from "../types";
3
- export declare const isNonNullish: <T>(entry: T | null | undefined) => entry is T;
4
- /**
5
- * Removes products that have tag starting with `EXCLUDE_PRODUCT_FROM_STORE_GRID_TAG_PREFIX`
6
- * and ends with `storeId`, e.g. `"exclude-from-store-grid:us`
7
- *
8
- * @warning Use this function only on grid and breadcrumbs products
9
- */
10
- export declare const removeExcludedProducts: <T extends {
11
- tags: ProductTagFragment[];
12
- }>(products: T[], storeId: StoreId) => T[];
13
- export declare enum HDDProductSlugs {
14
- HDD_1TB = "uacc-hdd-s-1tb",
15
- HDD_8TB_Enterprise = "uacc-hdd-e-8tb",
16
- HDD_16TB_Enterprise = "uacc-hdd-e-16tb"
17
- }
18
- /**
19
- * Recursively create section hierarchy
20
- */
21
- export declare const createSectionHierarchy: (sections: CollectionSection[], level?: number) => Section[];
22
- export declare enum MagicCollectionTags {
23
- /**
24
- * Used to determine if collection should be shown in an accessory
25
- * layout style where sections are placed inside variant cards
26
- */
27
- LayoutAccessories = "layout-accessories",
28
- /**
29
- * Used to determine if collection is pro-store specific and should
30
- * be redirected to pro-store's appropriate category
31
- */
32
- ProStore = "pro-store",
33
- /**
34
- * Used to disable length options (disable product splitting by "length")
35
- */
36
- DisableLengthOptions = "disable-length-options",
37
- /**
38
- * Used to disable speed options (disable product splitting by "speed")
39
- */
40
- DisableSpeedOptions = "disable-speed-options"
41
- }
42
- export declare enum ProductOptions {
43
- Length = "length",
44
- Speed = "speed",
45
- Color = "color"
46
- }
47
- export declare const COLLECTION_SECTION_OTHER_ID = "other";
48
- /**
49
- * Create product groups
50
- */
51
- export declare const getProductGroups: <T extends StorefrontProduct & {
52
- options: StorefrontOption[];
53
- }>(products?: T[], sectionHierarchy?: Nullish<Section[]>, tags?: Array<{
54
- id: string;
55
- name: string;
56
- }>) => MappedProductSection<T>[] | undefined;
57
- export declare const getProStoreCategory: ({ queryCategory, product, ignoreQuery, }: {
58
- queryCategory?: string;
59
- product: Pick<StorefrontProduct, "collectionSlug" | "organizationalCollectionSlug" | "proCollectionSlug">;
60
- ignoreQuery?: boolean;
61
- }) => string | null;
62
- type StoreProductsData = ({
63
- category: {
64
- id: string;
65
- label: string | null;
66
- } | undefined;
67
- } & {
68
- products: StorefrontProduct[];
69
- }) | {
70
- productGroups: MappedProductSection<StorefrontProduct>[];
71
- };
72
- export declare const getStoreProducts: ({ storeId, queryCategory, currentProduct, collections, allCategoryItems, }: {
73
- storeId: StoreId;
74
- queryCategory: string | undefined;
75
- currentProduct: Pick<StorefrontProduct, "id" | "slug" | "collectionSlug" | "organizationalCollectionSlug" | "proCollectionSlug">;
76
- collections: Array<{
77
- slug: string;
78
- sections: Array<{
79
- id: string;
80
- title: string;
81
- productTags: Array<string>;
82
- }>;
83
- products: Array<Pick<StorefrontProduct, "id" | "slug" | "tags" | "variants" | "options" | "title" | "status" | "minDisplayPrice">>;
84
- }>;
85
- allCategoryItems: ParsedCategoryItem[];
86
- }) => StoreProductsData;
87
- export {};