@ubnt/store.core 9.56.0 → 9.56.1-new-design

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 (592) hide show
  1. package/CHANGELOG.md +106 -1
  2. package/lib/_virtual/_virtual_multi-entry.js +13 -10
  3. package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
  4. package/lib/_virtual/_virtual_multi-entry.mjs +13 -11
  5. package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
  6. package/lib/apis/smartcat.d.ts +12 -2
  7. package/lib/apis/smartcat.js +27 -4
  8. package/lib/apis/smartcat.js.map +1 -1
  9. package/lib/apis/smartcat.mjs +27 -4
  10. package/lib/apis/smartcat.mjs.map +1 -1
  11. package/lib/assets/attention.svg +5 -5
  12. package/lib/assets/attention2.svg +5 -5
  13. package/lib/assets/cart-secondary.svg +5 -0
  14. package/lib/assets/icon-location-pin.svg +5 -0
  15. package/lib/assets/icons/cart-secondary.svg.js +27 -0
  16. package/lib/assets/icons/cart-secondary.svg.js.map +1 -0
  17. package/lib/assets/icons/cart-secondary.svg.mjs +3 -0
  18. package/lib/assets/icons/cart-secondary.svg.mjs.map +1 -0
  19. package/lib/assets/icons/menu/{icon-globe.svg.js → icon-location-pin.svg.js} +6 -6
  20. package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
  21. package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
  22. package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
  23. package/lib/assets/logoUnifi.svg +10 -2
  24. package/lib/assets/plus2.svg +1 -4
  25. package/lib/assets/plus3.svg +4 -1
  26. package/lib/assets/poe2.svg +3 -2
  27. package/lib/assets/poe3.svg +2 -3
  28. package/lib/assets/port.svg +4 -2
  29. package/lib/assets/port2.svg +2 -4
  30. package/lib/assets/udmPro.jpg +0 -0
  31. package/lib/assets/udmPro2.jpg +0 -0
  32. package/lib/assets/udmProMax.jpg +0 -0
  33. package/lib/assets/udmProMax2.jpg +0 -0
  34. package/lib/assets/udmProSpecial.jpg +0 -0
  35. package/lib/assets/udmProSpecial2.jpg +0 -0
  36. package/lib/components/Accordion/Accordion.js +4 -4
  37. package/lib/components/Avatar/Avatar.js +2 -2
  38. package/lib/components/BackInStock/BackInStock.types.d.ts +1 -0
  39. package/lib/components/Button/Button.js +12 -5
  40. package/lib/components/Button/Button.js.map +1 -1
  41. package/lib/components/Button/Button.mjs +8 -1
  42. package/lib/components/Button/Button.mjs.map +1 -1
  43. package/lib/components/Button/CartButton.d.ts +3 -1
  44. package/lib/components/Button/CartButton.js +11 -6
  45. package/lib/components/Button/CartButton.js.map +1 -1
  46. package/lib/components/Button/CartButton.mjs +8 -4
  47. package/lib/components/Button/CartButton.mjs.map +1 -1
  48. package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
  49. package/lib/components/ButtonGroup/ButtonGroup.js +16 -9
  50. package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
  51. package/lib/components/ButtonGroup/ButtonGroup.mjs +16 -9
  52. package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
  53. package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +10 -6
  54. package/lib/components/ButtonGroup/ButtonGroup.styles.js +60 -20
  55. package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
  56. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +60 -20
  57. package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
  58. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +5 -0
  59. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
  60. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +16 -4
  61. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
  62. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +17 -5
  63. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
  64. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +5 -1
  65. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +82 -17
  66. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
  67. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +82 -17
  68. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
  69. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +4 -0
  70. package/lib/components/ButtonGroupBasic/index.stories.d.ts +6 -0
  71. package/lib/components/CardSection/Card/Card.js +6 -6
  72. package/lib/components/CardSection/CardSection.js +2 -2
  73. package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
  74. package/lib/components/CartIcon/CartIcon.js +2 -2
  75. package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +4 -2
  76. package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
  77. package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
  78. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
  79. package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
  80. package/lib/components/Checkbox/Checkbox.js +4 -4
  81. package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
  82. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
  83. package/lib/components/Compare/Compare.styles.d.ts +5 -5
  84. package/lib/components/Container/Container.d.ts +1 -1
  85. package/lib/components/Container/Container.js +5 -4
  86. package/lib/components/Container/Container.js.map +1 -1
  87. package/lib/components/Container/Container.mjs +5 -4
  88. package/lib/components/Container/Container.mjs.map +1 -1
  89. package/lib/components/Container/index.stories.d.ts +5 -5
  90. package/lib/components/CustomImage/CustomImage.js +12 -12
  91. package/lib/components/Explore/Explore.js +5 -5
  92. package/lib/components/Explore/ExploreData.js +12 -12
  93. package/lib/components/Explore/ExploreData.js.map +1 -1
  94. package/lib/components/Explore/ExploreData.mjs +12 -12
  95. package/lib/components/Explore/ExploreData.mjs.map +1 -1
  96. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
  97. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
  98. package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
  99. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
  100. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
  101. package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
  102. package/lib/components/Footer/Footer.js +2 -2
  103. package/lib/components/Footer/hooks/useFooterContent.js +5 -5
  104. package/lib/components/Gallery/Gallery.context.js +17 -17
  105. package/lib/components/Gallery/Gallery.js +9 -9
  106. package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
  107. package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
  108. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
  109. package/lib/components/GridGallery/GridGallery.js +8 -8
  110. package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
  111. package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
  112. package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
  113. package/lib/components/Header/AccountMenu/AccountMenu.d.ts +1 -1
  114. package/lib/components/Header/AccountMenu/AccountMenu.js +39 -24
  115. package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
  116. package/lib/components/Header/AccountMenu/AccountMenu.mjs +22 -7
  117. package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
  118. package/lib/components/Header/AccountMenu/AccountMenu.stories.d.ts +11 -0
  119. package/lib/components/Header/AccountMenu/AccountMenu.styles.d.ts +6 -0
  120. package/lib/components/Header/AccountMenu/AccountMenu.styles.js +13 -0
  121. package/lib/components/Header/AccountMenu/AccountMenu.styles.js.map +1 -1
  122. package/lib/components/Header/AccountMenu/AccountMenu.styles.mjs +12 -1
  123. package/lib/components/Header/AccountMenu/AccountMenu.styles.mjs.map +1 -1
  124. package/lib/components/Header/AccountMenu/AccountMenu.types.d.ts +5 -0
  125. package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
  126. package/lib/components/Header/CartModalV2/CartModal.js +5 -5
  127. package/lib/components/Header/CartModalV2/Item/Item.js +7 -7
  128. package/lib/components/Header/CartModalV2/Item/Item.mjs +2 -2
  129. package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
  130. package/lib/components/Header/Header.js +43 -43
  131. package/lib/components/Header/Header.js.map +1 -1
  132. package/lib/components/Header/Header.mjs +9 -9
  133. package/lib/components/Header/Header.mjs.map +1 -1
  134. package/lib/components/Header/Header.stories.d.ts +111 -0
  135. package/lib/components/Header/Header.styles.d.ts +7 -12
  136. package/lib/components/Header/Header.styles.js +10 -32
  137. package/lib/components/Header/Header.styles.js.map +1 -1
  138. package/lib/components/Header/Header.styles.mjs +10 -31
  139. package/lib/components/Header/Header.styles.mjs.map +1 -1
  140. package/lib/components/Header/Header.types.d.ts +29 -5
  141. package/lib/components/Header/Header.types.js +2 -1
  142. package/lib/components/Header/Header.types.js.map +1 -1
  143. package/lib/components/Header/Header.types.mjs +2 -1
  144. package/lib/components/Header/Header.types.mjs.map +1 -1
  145. package/lib/components/Header/IsolatedHeader.d.ts +1 -0
  146. package/lib/components/Header/IsolatedHeader.js +50 -50
  147. package/lib/components/Header/IsolatedHeader.js.map +1 -1
  148. package/lib/components/Header/IsolatedHeader.mjs +47 -46
  149. package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
  150. package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
  151. package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
  152. package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
  153. package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
  154. package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
  155. package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
  156. package/lib/components/Header/LogoIcon/index.d.ts +1 -0
  157. package/lib/components/Header/LogoIcon/index.js +6 -0
  158. package/lib/components/Header/LogoIcon/index.js.map +1 -0
  159. package/lib/components/Header/LogoIcon/index.mjs +3 -0
  160. package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
  161. package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
  162. package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
  163. package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
  164. package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
  165. package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
  166. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +1 -0
  167. package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
  168. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
  169. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
  170. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
  171. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
  172. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
  173. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +116 -109
  174. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
  175. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
  176. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
  177. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
  178. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
  179. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  180. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
  181. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  182. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
  183. package/lib/components/Header/Overlay/Overlay.js +3 -3
  184. package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
  185. package/lib/components/Header/ProHeader/ProHeader.js +270 -189
  186. package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
  187. package/lib/components/Header/ProHeader/ProHeader.mjs +251 -171
  188. package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
  189. package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
  190. package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
  191. package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
  192. package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
  193. package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
  194. package/lib/components/Header/translations/ar.json.js +4 -1
  195. package/lib/components/Header/translations/ar.json.js.map +1 -1
  196. package/lib/components/Header/translations/ar.json.mjs +4 -2
  197. package/lib/components/Header/translations/ar.json.mjs.map +1 -1
  198. package/lib/components/Header/translations/de.json.js +4 -1
  199. package/lib/components/Header/translations/de.json.js.map +1 -1
  200. package/lib/components/Header/translations/de.json.mjs +4 -2
  201. package/lib/components/Header/translations/de.json.mjs.map +1 -1
  202. package/lib/components/Header/translations/el.json.js +4 -1
  203. package/lib/components/Header/translations/el.json.js.map +1 -1
  204. package/lib/components/Header/translations/el.json.mjs +4 -2
  205. package/lib/components/Header/translations/el.json.mjs.map +1 -1
  206. package/lib/components/Header/translations/en.json.js +7 -1
  207. package/lib/components/Header/translations/en.json.js.map +1 -1
  208. package/lib/components/Header/translations/en.json.mjs +6 -2
  209. package/lib/components/Header/translations/en.json.mjs.map +1 -1
  210. package/lib/components/Header/translations/es.json.js +4 -1
  211. package/lib/components/Header/translations/es.json.js.map +1 -1
  212. package/lib/components/Header/translations/es.json.mjs +4 -2
  213. package/lib/components/Header/translations/es.json.mjs.map +1 -1
  214. package/lib/components/Header/translations/fr.json.js +4 -1
  215. package/lib/components/Header/translations/fr.json.js.map +1 -1
  216. package/lib/components/Header/translations/fr.json.mjs +4 -2
  217. package/lib/components/Header/translations/fr.json.mjs.map +1 -1
  218. package/lib/components/Header/translations/it.json.js +4 -1
  219. package/lib/components/Header/translations/it.json.js.map +1 -1
  220. package/lib/components/Header/translations/it.json.mjs +4 -2
  221. package/lib/components/Header/translations/it.json.mjs.map +1 -1
  222. package/lib/components/Header/translations/ja.json.js +4 -1
  223. package/lib/components/Header/translations/ja.json.js.map +1 -1
  224. package/lib/components/Header/translations/ja.json.mjs +4 -2
  225. package/lib/components/Header/translations/ja.json.mjs.map +1 -1
  226. package/lib/components/Header/translations/pt-BR.json.js +4 -1
  227. package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
  228. package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
  229. package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
  230. package/lib/components/Header/translations/zh-Hans.json.js +4 -1
  231. package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
  232. package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
  233. package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
  234. package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
  235. package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
  236. package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
  237. package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
  238. package/lib/components/Hero/Hero.js +5 -5
  239. package/lib/components/Hero/Hero.styles.d.ts +2 -2
  240. package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
  241. package/lib/components/HeroVideo/HeroVideo.js +5 -5
  242. package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
  243. package/lib/components/ImageCarousel/ImageCarousel.js +29 -29
  244. package/lib/components/ImageSequence/ImageSequence.js +8 -8
  245. package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
  246. package/lib/components/LandingPage/Cards/Cards.js +10 -10
  247. package/lib/components/LandingPage/LandingPage.js +2 -2
  248. package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
  249. package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
  250. package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
  251. package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
  252. package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
  253. package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
  254. package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
  255. package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
  256. package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
  257. package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
  258. package/lib/components/LoaderDots/LoaderDots.js +3 -1
  259. package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
  260. package/lib/components/LoaderDots/LoaderDots.mjs +3 -1
  261. package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
  262. package/lib/components/LoaderDots/LoaderDots.styles.d.ts +2 -1
  263. package/lib/components/LoaderDots/LoaderDots.styles.js +11 -1
  264. package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
  265. package/lib/components/LoaderDots/LoaderDots.styles.mjs +11 -1
  266. package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
  267. package/lib/components/LoaderDots/LoaderDots.types.d.ts +2 -0
  268. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
  269. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
  270. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
  271. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
  272. package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
  273. package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
  274. package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
  275. package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
  276. package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
  277. package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
  278. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
  279. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
  280. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
  281. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +12 -12
  282. package/lib/components/Microsites/MicrositePageContext.js +2 -2
  283. package/lib/components/Microsites/MicrositeProductPage.js +3 -3
  284. package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
  285. package/lib/components/MobileModal/MobileModal.js +4 -4
  286. package/lib/components/Modal/Modal.js +3 -3
  287. package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
  288. package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
  289. package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
  290. package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
  291. package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
  292. package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
  293. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
  294. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
  295. package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
  296. package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
  297. package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
  298. package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
  299. package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
  300. package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
  301. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  302. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  303. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  304. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  305. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  306. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  307. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  308. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  309. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  310. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  311. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  312. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  313. package/lib/components/ModelCompareV3/assets/poe.svg.js +1 -1
  314. package/lib/components/ModelCompareV3/assets/poe.svg.mjs +2 -2
  315. package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
  316. package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
  317. package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
  318. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
  319. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +4 -2
  320. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
  321. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +4 -2
  322. package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
  323. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
  324. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
  325. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
  326. package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
  327. package/lib/components/ModelCompareV3/data/products/express.js +3 -3
  328. package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
  329. package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
  330. package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
  331. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +4 -2
  332. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
  333. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +4 -2
  334. package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
  335. package/lib/components/ModelCompareV3/data/products/gatewayLite.js +4 -2
  336. package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
  337. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +4 -2
  338. package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
  339. package/lib/components/ModelCompareV3/data/products/gatewayMax.js +4 -2
  340. package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
  341. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +4 -2
  342. package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
  343. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +4 -2
  344. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
  345. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +4 -2
  346. package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
  347. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +3 -1
  348. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
  349. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +3 -1
  350. package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
  351. package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
  352. package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
  353. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
  354. package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
  355. package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
  356. package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
  357. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
  358. package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
  359. package/lib/components/ModelCompareV3/data/products/udmPro.js +4 -4
  360. package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
  361. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +4 -4
  362. package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
  363. package/lib/components/ModelCompareV3/data/products/udmProMax.js +4 -4
  364. package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
  365. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +4 -4
  366. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
  367. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +4 -4
  368. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
  369. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +4 -4
  370. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
  371. package/lib/components/ModelCompareV3/data/products/udr.js +5 -41
  372. package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
  373. package/lib/components/ModelCompareV3/data/products/udr.mjs +5 -21
  374. package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
  375. package/lib/components/ModelCompareV3/data/products/udw.js +3 -3
  376. package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
  377. package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
  378. package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
  379. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.js +1 -1
  380. package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.mjs +1 -1
  381. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.js +1 -1
  382. package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.mjs +1 -1
  383. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
  384. package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.mjs +1 -1
  385. package/lib/components/Pagination/Pagination.js +3 -3
  386. package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
  387. package/lib/components/ProductCard/ProductCard.js +7 -7
  388. package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
  389. package/lib/components/ProductCompare/ProductCompare.js +7 -7
  390. package/lib/components/ProductDetails/ProductDetails.js +5 -5
  391. package/lib/components/ProductGrid/ProductGrid.js +10 -10
  392. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
  393. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
  394. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
  395. package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
  396. package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
  397. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +2 -0
  398. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +81 -0
  399. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +1 -0
  400. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +73 -0
  401. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +1 -0
  402. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +5 -0
  403. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +11 -0
  404. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +80 -0
  405. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +1 -0
  406. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +66 -0
  407. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +1 -0
  408. package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +12 -0
  409. package/lib/components/ProductTechSpecsV2/index.d.ts +1 -0
  410. package/lib/components/ProductTechSpecsV2/index.js +6 -0
  411. package/lib/components/ProductTechSpecsV2/index.js.map +1 -0
  412. package/lib/components/ProductTechSpecsV2/index.mjs +3 -0
  413. package/lib/components/ProductTechSpecsV2/index.mjs.map +1 -0
  414. package/lib/components/ProductWizard/Options/Options.js +3 -3
  415. package/lib/components/ProductWizard/ProductWizard.js +2 -2
  416. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
  417. package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
  418. package/lib/components/QuantityControls/QuantityControls.js +6 -6
  419. package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
  420. package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
  421. package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
  422. package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
  423. package/lib/components/QuantityInput/QuantityInput.js +6 -1
  424. package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
  425. package/lib/components/QuantityInput/QuantityInput.mjs +6 -1
  426. package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
  427. package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
  428. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
  429. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
  430. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +6 -6
  431. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
  432. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
  433. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
  434. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
  435. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
  436. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
  437. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +8 -8
  438. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
  439. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
  440. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
  441. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
  442. package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
  443. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
  444. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
  445. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +4 -4
  446. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +2 -2
  447. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.js +1 -1
  448. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.mjs +2 -2
  449. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
  450. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +2 -2
  451. package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
  452. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
  453. package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
  454. package/lib/components/ScrollWrapper/ScrollWrapper.js +33 -25
  455. package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
  456. package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
  457. package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
  458. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
  459. package/lib/components/Search/Input/Input.d.ts +1 -1
  460. package/lib/components/Search/Input/Input.js +8 -8
  461. package/lib/components/Search/Input/Input.js.map +1 -1
  462. package/lib/components/Search/Input/Input.mjs +4 -4
  463. package/lib/components/Search/Input/Input.mjs.map +1 -1
  464. package/lib/components/Search/Input/Input.styles.js +0 -1
  465. package/lib/components/Search/Input/Input.styles.js.map +1 -1
  466. package/lib/components/Search/Input/Input.styles.mjs +0 -1
  467. package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
  468. package/lib/components/Search/Input/Input.types.d.ts +3 -2
  469. package/lib/components/Search/Modal/Modal.js +3 -3
  470. package/lib/components/StorageSliders/Slider/Slider.js +3 -3
  471. package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
  472. package/lib/components/StorageSliders/StorageSliders.js +4 -4
  473. package/lib/components/Tooltip/Tooltip.js +5 -5
  474. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
  475. package/lib/components/VariantSelector/Variant/Variant.js +40 -40
  476. package/lib/components/VariantSelector/VariantSelector.js +16 -16
  477. package/lib/components/VideoPlayerNew/VideoPlayer.js +19 -19
  478. package/lib/components/index.d.ts +1 -0
  479. package/lib/components/index.js +2 -0
  480. package/lib/components/index.js.map +1 -1
  481. package/lib/components/index.mjs +2 -0
  482. package/lib/components/index.mjs.map +1 -1
  483. package/lib/constants/icons/generic/index.js +3 -3
  484. package/lib/constants/icons/generic/index.mjs +1 -1
  485. package/lib/constants/icons/generic/plus.svg.js +5 -5
  486. package/lib/constants/icons/generic/plus.svg.mjs +2 -2
  487. package/lib/constants/icons/options/colors/black.svg.js +5 -5
  488. package/lib/constants/icons/options/colors/index.js +3 -3
  489. package/lib/constants/icons/options/styles/black.svg.js +5 -5
  490. package/lib/constants/icons/options/styles/index.js +3 -3
  491. package/lib/constants/optionIcons.js +6 -6
  492. package/lib/constants/optionIcons.mjs +4 -4
  493. package/lib/constants/proStoreCategories/mapping/filters.d.ts +17 -0
  494. package/lib/constants/proStoreCategories/mapping/filters.js +17 -0
  495. package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
  496. package/lib/constants/proStoreCategories/mapping/filters.mjs +17 -0
  497. package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
  498. package/lib/constants/proStoreCategories/mapping/index.d.ts +4 -2
  499. package/lib/constants/proStoreCategories/mapping/index.js +50 -51
  500. package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
  501. package/lib/constants/proStoreCategories/mapping/index.mjs +49 -49
  502. package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
  503. package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
  504. package/lib/constants/proStoreCategories/mapping/redirects.js +18 -3
  505. package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
  506. package/lib/constants/proStoreCategories/mapping/redirects.mjs +18 -3
  507. package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
  508. package/lib/constants/proStoreCategories/mapping/unifi.d.ts +9 -9
  509. package/lib/constants/proStoreCategories/mapping/unifi.js +9 -9
  510. package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
  511. package/lib/constants/proStoreCategories/mapping/unifi.mjs +9 -9
  512. package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
  513. package/lib/constants/proStoreCategories/translations/ar.json.js +7 -3
  514. package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
  515. package/lib/constants/proStoreCategories/translations/ar.json.mjs +7 -4
  516. package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
  517. package/lib/constants/proStoreCategories/translations/de.json.js +7 -3
  518. package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
  519. package/lib/constants/proStoreCategories/translations/de.json.mjs +7 -4
  520. package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
  521. package/lib/constants/proStoreCategories/translations/el.json.js +7 -3
  522. package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
  523. package/lib/constants/proStoreCategories/translations/el.json.mjs +7 -4
  524. package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
  525. package/lib/constants/proStoreCategories/translations/en.json.js +7 -3
  526. package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
  527. package/lib/constants/proStoreCategories/translations/en.json.mjs +7 -4
  528. package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
  529. package/lib/constants/proStoreCategories/translations/es.json.js +7 -3
  530. package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
  531. package/lib/constants/proStoreCategories/translations/es.json.mjs +7 -4
  532. package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
  533. package/lib/constants/proStoreCategories/translations/fr.json.js +7 -3
  534. package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
  535. package/lib/constants/proStoreCategories/translations/fr.json.mjs +7 -4
  536. package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
  537. package/lib/constants/proStoreCategories/translations/it.json.js +7 -3
  538. package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
  539. package/lib/constants/proStoreCategories/translations/it.json.mjs +7 -4
  540. package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
  541. package/lib/constants/proStoreCategories/translations/ja.json.js +7 -3
  542. package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
  543. package/lib/constants/proStoreCategories/translations/ja.json.mjs +7 -4
  544. package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
  545. package/lib/constants/proStoreCategories/translations/pt-BR.json.js +7 -3
  546. package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
  547. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +7 -4
  548. package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
  549. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +7 -3
  550. package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
  551. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +7 -4
  552. package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
  553. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +7 -3
  554. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
  555. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +7 -4
  556. package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
  557. package/lib/constants/proStoreFilters/mapping.d.ts +55 -3
  558. package/lib/constants/proStoreFilters/mapping.js +140 -10
  559. package/lib/constants/proStoreFilters/mapping.js.map +1 -1
  560. package/lib/constants/proStoreFilters/mapping.mjs +140 -10
  561. package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
  562. package/lib/constants/theme.js +4 -0
  563. package/lib/constants/theme.js.map +1 -1
  564. package/lib/constants/theme.mjs +4 -0
  565. package/lib/constants/theme.mjs.map +1 -1
  566. package/lib/contexts/MenuContext/context.js +34 -34
  567. package/lib/contexts/MenuContext/context.js.map +1 -1
  568. package/lib/contexts/MenuContext/context.mjs +1 -1
  569. package/lib/contexts/MenuContext/context.mjs.map +1 -1
  570. package/lib/contexts/MenuContext/mapping.js.map +1 -1
  571. package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
  572. package/lib/helpers/index.js +1 -0
  573. package/lib/helpers/index.js.map +1 -1
  574. package/lib/helpers/index.mjs +1 -1
  575. package/lib/helpers/proStoreCategories.js +2 -2
  576. package/lib/helpers/ux.d.ts +8 -0
  577. package/lib/helpers/ux.js +15 -0
  578. package/lib/helpers/ux.js.map +1 -1
  579. package/lib/helpers/ux.mjs +15 -1
  580. package/lib/helpers/ux.mjs.map +1 -1
  581. package/lib/hooks/useHasTouch.js +3 -3
  582. package/lib/hooks/useHddRetentionCalculator.js +5 -5
  583. package/lib/hooks/useHorizontalScroll.js +2 -2
  584. package/lib/hooks/useLockBodyScrollCustom.js +3 -3
  585. package/lib/hooks/useScrollToY.js +2 -2
  586. package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
  587. package/lib/hooks/useTranslation.js +6 -6
  588. package/lib/utils/nextjs/ssr/registry.js +2 -2
  589. package/package.json +1 -1
  590. package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
  591. package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
  592. package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,16 @@
6
6
 
7
7
  ## Releases
8
8
 
9
+ ### 9.56.1-new-design
10
+
11
+ - Upstream with `master`
12
+
13
+ ### 9.56.1
14
+
15
+ - [Fix] AccountMenu message list button styles differ from latest design
16
+ - Updates button styles
17
+ - Add's AccountMenu story for storybook
18
+
9
19
  ### 9.56.0
10
20
 
11
21
  - [Fix] [MIC-520](https://ubiquiti.atlassian.net/browse/MIC-520) Fix G3 Reader typo in compare table
@@ -14,6 +24,16 @@
14
24
  - Remove coming soon text from `AI LPR`
15
25
  - Enable badges for Camera Security main compare table
16
26
 
27
+ ### 9.56.0-new-design
28
+
29
+ - [Feat] [NEP-3682](https://ubiquiti.atlassian.net/browse/NEP-3682) Add option to QuantityControls for omitting cart button and render only the quantity input controls
30
+ - [Feat] [NEP-3822](https://ubiquiti.atlassian.net/browse/NEP-3822) Tech specs JSON to HTML conversion
31
+
32
+ ### 9.55.0-new-design
33
+
34
+ - [Feat] Add support for download translations to narrow down to specific labels
35
+ - Upstream with `master`
36
+
17
37
  ### 9.55.0
18
38
 
19
39
  - [Feat] [NEP-3818](https://ubiquiti.atlassian.net/browse/NEP-3818) Add techspecs and store link to Wave MLO5 in compare table
@@ -28,6 +48,10 @@
28
48
 
29
49
  - [Feat] [NEP-4016] Update shipping rounding
30
50
 
51
+ ### 9.53.0-new-design
52
+
53
+ - Upstream with `master`
54
+
31
55
  ### 9.53.0
32
56
 
33
57
  - [Feat] [MIC-516](https://ubiquiti.atlassian.net/browse/MIC-516) Add `G3 Touch` devices to compare
@@ -37,10 +61,19 @@
37
61
 
38
62
  - [Chore] Add "new-design" support in SmartCatApi
39
63
 
64
+ ### 9.52.0-new-design
65
+
66
+ - [Feat] [NEP-3682](https://ubiquiti.atlassian.net/browse/NEP-3682) Update Field Of View filter. Make it as checkbox instead of sliders.
67
+ - [Feat] [NEP-3943](https://ubiquiti.atlassian.net/browse/NEP-3943) Add new button group style
68
+
40
69
  ### 9.51.1
41
70
 
42
71
  - [hotfix] Update U7 Pro Outdoor availability date
43
72
 
73
+ ### 9.51.0-new-design
74
+
75
+ > Upstream with `master`
76
+
44
77
  ### 9.51.0
45
78
 
46
79
  - [Feat] Add `asNegativeAmount` option to `formatPrice` and related functions
@@ -60,6 +93,10 @@
60
93
 
61
94
  - [Feat] [MIC-511](https://ubiquiti.atlassian.net/browse/MIC-511) Update U7 Pro Outdoor availability date
62
95
 
96
+ ### 9.49.0-new-design
97
+
98
+ > Upstream with `master`
99
+
63
100
  ### 9.49.0
64
101
 
65
102
  - [fix] Add new filter for Door Access and PoE+++
@@ -74,20 +111,37 @@
74
111
 
75
112
  - [Fix] [MIC-503](https://ubiquiti.atlassian.net/browse/MIC-503) Update Pro 8 PoE compare image
76
113
 
114
+ ### 9.47.0-new-design
115
+
116
+ > Upstream with `master`
117
+
77
118
  ### 9.47.0
78
119
 
79
120
  - [fix] Fix eslint issues around missing/incorrect awaits
80
121
  - [NEP-3974](https://ubiquiti.atlassian.net/browse/NEP-3974) add 24tb storage size
81
122
 
123
+ ### 9.46.0-new-design
124
+
125
+ > Upstream with `master`
126
+
82
127
  ### 9.46.0
83
128
 
84
129
  - [chore] Add China new-platform store boilerplate
85
130
 
131
+ ### 9.45.0-new-design
132
+
133
+ > Upstream with `master`
134
+
86
135
  ### 9.45.0
87
136
 
88
- - [chore] Misc eslint fixes (some actual bugs for rare-cases)
89
137
  - [Feat] [NEP-3958](https://ubiquiti.atlassian.net/browse/NEP-3958) Add new `getTimeUntilEndOfHolidaySaleByStore` helper function for Holiday sale
90
138
 
139
+ ### 9.44.3-new-design
140
+
141
+ - [chore] Misc eslint fixes (some actual bugs for rare-cases)
142
+
143
+ > Upstream with stable release
144
+
91
145
  ### 9.44.2
92
146
 
93
147
  - [Feat] Add option to override languageToSmartcatLocalMapping for SmartcatApi class
@@ -100,6 +154,10 @@
100
154
 
101
155
  - [NEP-3941](https://ubiquiti.atlassian.net/browse/NEP-3941) Set Store Mexico free days as null
102
156
 
157
+ ### 9.43.0-new-design
158
+
159
+ > Upstream with stable release
160
+
103
161
  ### 9.43.0
104
162
 
105
163
  - [Feat] [NEP-3934](https://ubiquiti.atlassian.net/browse/NEP-3934) Enable MX in production
@@ -112,6 +170,10 @@
112
170
 
113
171
  - [Feat] [NEP-3930](https://ubiquiti.atlassian.net/browse/NEP-3930) Enable Enterprise (gateway) subcategory in BR
114
172
 
173
+ ### 9.42.0-new-design
174
+
175
+ > Upstream with stable release
176
+
115
177
  ### 9.42.0
116
178
 
117
179
  - [NEP-3928](https://ubiquiti.atlassian.net/browse/NEP-3928) Add new Door Access apple wallet filter
@@ -120,6 +182,49 @@
120
182
 
121
183
  - [Feat] Add `withUbntLibraries` and enable SSR support for `ui-components`
122
184
 
185
+ ### 9.40.1-new-design
186
+
187
+ - [Fix] Added missing secondary cart PR
188
+
189
+ ### 9.40.0-new-design
190
+
191
+ > First new-design release
192
+
193
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) pro header inline categories variant
194
+ - [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix pro header inline rendering
195
+ - [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix pro mobile menu label
196
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) improve header max width handler
197
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) add loading state to account menu
198
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) add data-test-ids
199
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) improve search behavior and account menu
200
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) improve pro mobile menu links
201
+ - [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix search icon background
202
+ - [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) desktop search improvements
203
+ - [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix pro mobile menu top level actions
204
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) search input adjustments
205
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) update category mapping and redirects
206
+ - [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix all cloud gateway slug
207
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) abstract inline categories to be the default layout
208
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) add header logo prop
209
+ - [Feat] [NEP-3413](https://ubiquiti.atlassian.net/browse/NEP-3413) abstract isolated header layout
210
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) add hide logo prop
211
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) add url logo prop
212
+ - [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix logo hide prop
213
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) adjust continue shopping button style
214
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix isolated header spacing and button position
215
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) current store flag and name
216
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) remove pro hover menu; add product line conditional menu
217
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) improve desktop search focus; add flag to mobile menu
218
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) adjust unifi logo svg size
219
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) increase header line loader z index; remove search input id; add new search props
220
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) remove search input overflow
221
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) remove mobile search and use inline search bar
222
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) search focus border and focus improvement
223
+ - [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) adjust search autofocus to be manual
224
+ - [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) Reorganize categories for current production and new-design
225
+ - [Feat] [NEP-3682](https://ubiquiti.atlassian.net/browse/NEP-3682) Add filter "Client devices" for cloud gateways
226
+ - [Feat] [NEP-3591](https://ubiquiti.atlassian.net/browse/NEP-3591) Add underline style tabs, add "loading" prop to backInStock propTypes
227
+
123
228
  ### 9.40.0
124
229
 
125
230
  - [Feat] [MIC-473](https://ubiquiti.atlassian.net/browse/MIC-473) E7 release changes:
@@ -62,7 +62,8 @@ var index$O = require('../components/VideoPlayerNew/index.js');
62
62
  var index$P = require('../components/ResourceCalculatorV1/index.js');
63
63
  var index$Q = require('../components/CartIcon/index.js');
64
64
  var index$R = require('../components/Header/AccountMenu/index.js');
65
- var index$S = require('../contexts/MenuContext/index.js');
65
+ var index$S = require('../components/ProductTechSpecsV2/index.js');
66
+ var index$T = require('../contexts/MenuContext/index.js');
66
67
  var useLockBodyScrollCustom = require('../hooks/useLockBodyScrollCustom.js');
67
68
  var useTestMediaElementVolumeSetter = require('../hooks/useTestMediaElementVolumeSetter.js');
68
69
  var useTranslation = require('../hooks/useTranslation.js');
@@ -74,11 +75,11 @@ var misc = require('../utils/money/misc.js');
74
75
  var number = require('../utils/number.js');
75
76
  var string = require('../utils/string.js');
76
77
  var array = require('../utils/array.js');
77
- var index$T = require('../utils/nextjs/index.js');
78
+ var index$U = require('../utils/nextjs/index.js');
78
79
  var country = require('../utils/country.js');
79
80
  var countriesAndZones = require('../utils/countriesAndZones.js');
80
81
  var address = require('../utils/address.js');
81
- var index$U = require('../utils/tax/index.js');
82
+ var index$V = require('../utils/tax/index.js');
82
83
  var zod = require('../utils/zod.js');
83
84
  var collectionSlug = require('../utils/collectionSlug.js');
84
85
  var shipping = require('../utils/shipping.js');
@@ -93,8 +94,8 @@ var styles = require('../utils/styles.js');
93
94
  var storeId = require('../utils/storeId.js');
94
95
  var blackFriday = require('../utils/blackFriday.js');
95
96
  var sales = require('../utils/sales.js');
96
- var index$V = require('../constants/proStoreCategories/index.js');
97
- var index$W = require('../constants/proStoreFilters/index.js');
97
+ var index$W = require('../constants/proStoreCategories/index.js');
98
+ var index$X = require('../constants/proStoreFilters/index.js');
98
99
  var proStoreCategories = require('../helpers/proStoreCategories.js');
99
100
  var ux = require('../helpers/ux.js');
100
101
  var smartcat = require('../apis/smartcat.js');
@@ -152,7 +153,8 @@ exports.VideoPlayer = index$O;
152
153
  exports.ResourceCalculatorV1 = index$P;
153
154
  exports.CartIcon = index$Q;
154
155
  exports.AccountMenu = index$R;
155
- exports.MenuContext = index$S;
156
+ exports.ProductTechSpecsV2 = index$S;
157
+ exports.MenuContext = index$T;
156
158
  exports.useLockBodyScrollCustom = useLockBodyScrollCustom.useLockBodyScrollCustom;
157
159
  exports.useTestMediaElementVolumeSetter = useTestMediaElementVolumeSetter.useTestMediaElementVolumeSetter;
158
160
  exports.useTranslation = useTranslation.useTranslation;
@@ -175,11 +177,11 @@ exports.money = misc;
175
177
  exports.number = number;
176
178
  exports.string = string;
177
179
  exports.array = array;
178
- exports.nextjs = index$T;
180
+ exports.nextjs = index$U;
179
181
  exports.country = country;
180
182
  exports.countryAndZones = countriesAndZones;
181
183
  exports.address = address;
182
- exports.tax = index$U;
184
+ exports.tax = index$V;
183
185
  exports.zod = zod;
184
186
  exports.collectionSlug = collectionSlug;
185
187
  exports.shipping = shipping;
@@ -194,8 +196,8 @@ exports.styles = styles;
194
196
  exports.storeId = storeId;
195
197
  exports.blackFriday = blackFriday;
196
198
  exports.sales = sales;
197
- exports.proStoreCategories = index$V;
198
- exports.proStoreFilters = index$W;
199
+ exports.proStoreCategories = index$W;
200
+ exports.proStoreFilters = index$X;
199
201
  exports.getCategoriesBySubcategory = proStoreCategories.getCategoriesBySubcategory;
200
202
  exports.getLocalizedCategories = proStoreCategories.getLocalizedCategories;
201
203
  exports.getProductLineByCategory = proStoreCategories.getProductLineByCategory;
@@ -205,6 +207,7 @@ exports.isValidSubCategory = proStoreCategories.isValidSubCategory;
205
207
  exports.parseCategories = proStoreCategories.parseCategories;
206
208
  exports.useTranslatedCategories = proStoreCategories.useTranslatedCategories;
207
209
  exports.getTrueOffsetY = ux.getTrueOffsetY;
210
+ exports.getTrueSize = ux.getTrueSize;
208
211
  exports.scrollIntoView = ux.scrollIntoView;
209
212
  exports.scrollToY = ux.scrollToY;
210
213
  exports.smartcat = smartcat;
@@ -1 +1 @@
1
- {"version":3,"file":"_virtual_multi-entry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"_virtual_multi-entry.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -114,8 +114,10 @@ import * as index$Q from '../components/CartIcon/index.mjs';
114
114
  export { index$Q as CartIcon };
115
115
  import * as index$R from '../components/Header/AccountMenu/index.mjs';
116
116
  export { index$R as AccountMenu };
117
- import * as index$S from '../contexts/MenuContext/index.mjs';
118
- export { index$S as MenuContext };
117
+ import * as index$S from '../components/ProductTechSpecsV2/index.mjs';
118
+ export { index$S as ProductTechSpecsV2 };
119
+ import * as index$T from '../contexts/MenuContext/index.mjs';
120
+ export { index$T as MenuContext };
119
121
  export { useLockBodyScrollCustom } from '../hooks/useLockBodyScrollCustom.mjs';
120
122
  export { useTestMediaElementVolumeSetter } from '../hooks/useTestMediaElementVolumeSetter.mjs';
121
123
  export { useTranslation, useTranslationRaw } from '../hooks/useTranslation.mjs';
@@ -132,16 +134,16 @@ import * as string from '../utils/string.mjs';
132
134
  export { string };
133
135
  import * as array from '../utils/array.mjs';
134
136
  export { array };
135
- import * as index$T from '../utils/nextjs/index.mjs';
136
- export { index$T as nextjs };
137
+ import * as index$U from '../utils/nextjs/index.mjs';
138
+ export { index$U as nextjs };
137
139
  import * as country from '../utils/country.mjs';
138
140
  export { country };
139
141
  import * as countriesAndZones from '../utils/countriesAndZones.mjs';
140
142
  export { countriesAndZones as countryAndZones };
141
143
  import * as address from '../utils/address.mjs';
142
144
  export { address };
143
- import * as index$U from '../utils/tax/index.mjs';
144
- export { index$U as tax };
145
+ import * as index$V from '../utils/tax/index.mjs';
146
+ export { index$V as tax };
145
147
  import * as zod from '../utils/zod.mjs';
146
148
  export { zod };
147
149
  import * as collectionSlug from '../utils/collectionSlug.mjs';
@@ -170,12 +172,12 @@ import * as blackFriday from '../utils/blackFriday.mjs';
170
172
  export { blackFriday };
171
173
  import * as sales from '../utils/sales.mjs';
172
174
  export { sales };
173
- import * as index$V from '../constants/proStoreCategories/index.mjs';
174
- export { index$V as proStoreCategories };
175
- import * as index$W from '../constants/proStoreFilters/index.mjs';
176
- export { index$W as proStoreFilters };
175
+ import * as index$W from '../constants/proStoreCategories/index.mjs';
176
+ export { index$W as proStoreCategories };
177
+ import * as index$X from '../constants/proStoreFilters/index.mjs';
178
+ export { index$X as proStoreFilters };
177
179
  export { getCategoriesBySubcategory, getLocalizedCategories, getProductLineByCategory, getProductLineBySubcategory, getSubCategoryIdByCollectionSlug, isValidSubCategory, parseCategories, useTranslatedCategories } from '../helpers/proStoreCategories.mjs';
178
- export { getTrueOffsetY, scrollIntoView, scrollToY } from '../helpers/ux.mjs';
180
+ export { getTrueOffsetY, getTrueSize, scrollIntoView, scrollToY } from '../helpers/ux.mjs';
179
181
  import * as smartcat from '../apis/smartcat.mjs';
180
182
  export { smartcat };
181
183
  //# sourceMappingURL=_virtual_multi-entry.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"_virtual_multi-entry.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"_virtual_multi-entry.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -171,16 +171,21 @@ export declare class SmartcatApi {
171
171
  * Download translations from Smartcat.
172
172
  */
173
173
  downloadSmartcatTranslations(defaultTranslations: TranslationObject, options?: {
174
+ /**
175
+ * (optional) List of labels to export keys that are marked with labels
176
+ * @default undefined
177
+ */
178
+ labels?: string[];
174
179
  /**
175
180
  * (optional) Max attempt count for polling download ready status.
176
181
  * @default 10
177
182
  */
178
- maxAttemptCount: number;
183
+ maxAttemptCount?: number;
179
184
  /**
180
185
  * (optional) Interval in milliseconds between each polling attempt.
181
186
  * @default 5000
182
187
  */
183
- intervalMs: number;
188
+ intervalMs?: number;
184
189
  }): Promise<Record<Language, TranslationObject>>;
185
190
  /**
186
191
  * Exposed method for uploading source translations to Smartcat.
@@ -190,6 +195,7 @@ export declare class SmartcatApi {
190
195
  }): Promise<void>;
191
196
  /**
192
197
  * Internal helper method for uploading source translations to Smartcat.
198
+ * @see https://developers.smartcat.com/api/#import-keys-and-values-from-files-into-the-software-localization-project
193
199
  */
194
200
  private smartcatUploadRequest;
195
201
  /**
@@ -213,5 +219,9 @@ export declare class SmartcatApi {
213
219
  * Get smartcat environment based on branch name
214
220
  */
215
221
  static readonly getSmartcatEnvironmentFromGhBranchName: (ghRepositoryBranchName: string) => SmartcatEnvironment;
222
+ /**
223
+ * Util to prepare labels for passing into request parameters
224
+ */
225
+ static readonly prepareLabels: (labels?: string[]) => string | undefined;
216
226
  }
217
227
  export {};
@@ -336,7 +336,8 @@ const _SmartcatApi = class _SmartcatApi {
336
336
  "output-file-path-template": "{LANGUAGE}.json",
337
337
  collections: this.collectionName,
338
338
  zip: "true",
339
- languages: this.targetLanguages?.map(lang => this.languageToSmartcatLocaleMapping[lang]).join(",")
339
+ languages: this.targetLanguages?.map(lang => this.languageToSmartcatLocaleMapping[lang]).join(","),
340
+ labels: _SmartcatApi.prepareLabels(options?.labels)
340
341
  // FIXME: Look into only exporting values that has changed since last export minus some time via `modified-since`
341
342
  };
342
343
  const smartcatLocaleToLanguageMap = this.getSmartcatLocaleToLanguageMap();
@@ -357,7 +358,9 @@ const _SmartcatApi = class _SmartcatApi {
357
358
  pollAttempt += 1;
358
359
  const checkUrl = `integration/v1/document/export/${taskID}/`;
359
360
  const checkResponse = await this.axios.get(checkUrl, {
360
- responseType: "arraybuffer"
361
+ responseType: "arraybuffer",
362
+ // Don't throw errors for all errors below 500 so we can handle it gracefully
363
+ validateStatus: status => status < 500
361
364
  });
362
365
  if (checkResponse.status === 200) {
363
366
  const zip = new AdmZip__default["default"](checkResponse.data);
@@ -386,6 +389,19 @@ const _SmartcatApi = class _SmartcatApi {
386
389
  } else if (checkResponse.status === 204) {
387
390
  this.logger?.info(`The task ID ${taskID} is not ready yet, will try again`);
388
391
  await promises.setTimeout(pollInterval);
392
+ } else if (checkResponse.status === 404) {
393
+ throw new Error(`Failed to download smartcat translations, endpoint returned 404`);
394
+ } else if (checkResponse.status === 422) {
395
+ let response;
396
+ try {
397
+ const buffer = Buffer.from(checkResponse.data);
398
+ const jsonString = buffer.toString("utf8");
399
+ response = jsonString;
400
+ } catch {
401
+ response = "!! Unable to parse response !!";
402
+ }
403
+ this.logger?.error(response, "\u274C Failed to download smartcat translations, endpoint returned 422");
404
+ throw new Error(`Failed to download smartcat translations, endpoint returned 422`);
389
405
  } else {
390
406
  throw new Error(`Failed to download smartcat translations, endpoint returned unknown status code ${checkResponse.status}`);
391
407
  }
@@ -448,15 +464,16 @@ const _SmartcatApi = class _SmartcatApi {
448
464
  }
449
465
  /**
450
466
  * Internal helper method for uploading source translations to Smartcat.
467
+ * @see https://developers.smartcat.com/api/#import-keys-and-values-from-files-into-the-software-localization-project
451
468
  */
452
469
  async smartcatUploadRequest(sourceTranslations, options) {
453
- const labels = options?.labels?.map(label => label.trim()).filter(Boolean).join(",") || "";
454
470
  const queryParams = {
455
471
  format: "json",
456
472
  language: "en",
457
473
  collection: this.collectionName,
458
474
  "delete-missing-keys": !!options?.deleteMissingKeys,
459
- labels
475
+ // TODO: was fallback empty string really needed?
476
+ labels: _SmartcatApi.prepareLabels(options?.labels) || ""
460
477
  };
461
478
  const url = `integration/v2/project/${this.projectId}/import`;
462
479
  const smartCatSourceLanguageBuffer = Buffer.from(JSON.stringify(sourceTranslations));
@@ -551,6 +568,12 @@ __publicField(_SmartcatApi, "getSmartcatEnvironmentFromGhBranchName", ghReposito
551
568
  }
552
569
  }
553
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
+ });
554
577
  let SmartcatApi = _SmartcatApi;
555
578
  exports.SmartcatApi = SmartcatApi;
556
579
  exports.SmartcatEnvironment = SmartcatEnvironment;