@ubnt/store.core 9.59.0-new-design.1 → 9.59.1-hm.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.
- package/CHANGELOG.md +1 -125
- package/lib/_virtual/_virtual_multi-entry.js +12 -13
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +13 -13
- package/lib/apis/smartcat.d.ts +2 -12
- package/lib/apis/smartcat.js +4 -27
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs +4 -27
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/icons/menu/{icon-location-pin.svg.js → icon-globe.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-globe.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +1 -0
- package/lib/assets/logoUnifi.svg +2 -10
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/components/Accordion/Accordion.js +4 -4
- package/lib/components/Avatar/Avatar.js +2 -2
- package/lib/components/BackInStock/BackInStock.types.d.ts +0 -1
- package/lib/components/Button/Button.js +5 -12
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.mjs +1 -8
- package/lib/components/Button/Button.mjs.map +1 -1
- package/lib/components/Button/CartButton.d.ts +1 -3
- package/lib/components/Button/CartButton.js +6 -11
- package/lib/components/Button/CartButton.js.map +1 -1
- package/lib/components/Button/CartButton.mjs +4 -8
- package/lib/components/Button/CartButton.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.js +9 -16
- package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.mjs +9 -16
- package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.d.ts +6 -10
- package/lib/components/ButtonGroup/ButtonGroup.styles.js +20 -60
- package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs +20 -60
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +0 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.d.ts +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js +4 -16
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs +5 -17
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.d.ts +1 -5
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js +17 -82
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs +17 -82
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.styles.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +0 -4
- package/lib/components/CardSection/Card/Card.js +6 -6
- package/lib/components/CardSection/CardSection.js +2 -2
- package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
- package/lib/components/CartIcon/CartIcon.js +2 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +2 -4
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +5 -8
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +6 -7
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- package/lib/components/Checkbox/Checkbox.js +4 -4
- package/lib/components/CloserLookSection/CloserLookSection.js +11 -11
- package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.js +5 -5
- package/lib/components/Compare/Compare.styles.d.ts +5 -5
- package/lib/components/Container/Container.d.ts +1 -1
- package/lib/components/Container/Container.js +4 -5
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +4 -5
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/Container/index.stories.d.ts +5 -5
- package/lib/components/CustomImage/CustomImage.js +12 -12
- package/lib/components/Explore/Explore.js +5 -5
- package/lib/components/Explore/ExploreData.js +12 -12
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs +12 -12
- package/lib/components/Explore/ExploreData.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/Features/Features.js +2 -2
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +22 -22
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/hooks/useFooterContent.js +5 -5
- package/lib/components/Gallery/Gallery.context.js +17 -17
- package/lib/components/Gallery/Gallery.js +9 -9
- package/lib/components/Gallery/GalleryControls/GalleryControls.js +4 -4
- package/lib/components/Gallery/GalleryItem/GalleryItem.js +8 -8
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js +8 -8
- package/lib/components/GridGallery/GridGallery.js +8 -8
- package/lib/components/GridGallery/GridModal/GridModal.js +6 -6
- package/lib/components/Header/AccountFrame/AccountFrame.js +11 -11
- package/lib/components/Header/AccountFrame/Mobile/Mobile.js +4 -4
- package/lib/components/Header/AccountMenu/AccountMenu.js +20 -30
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +3 -13
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/CartModal/Empty/Empty.js +3 -3
- package/lib/components/Header/CartModalV2/CartModal.js +5 -5
- package/lib/components/Header/CartModalV2/Item/Item.js +4 -4
- package/lib/components/Header/CartModalV2/Item/Item.styles.d.ts +1 -1
- package/lib/components/Header/Header.js +43 -43
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +9 -9
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +12 -7
- package/lib/components/Header/Header.styles.js +32 -10
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +31 -10
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +5 -29
- package/lib/components/Header/Header.types.js +1 -2
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +1 -2
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/IsolatedHeader.d.ts +0 -1
- package/lib/components/Header/IsolatedHeader.js +50 -50
- package/lib/components/Header/IsolatedHeader.js.map +1 -1
- package/lib/components/Header/IsolatedHeader.mjs +46 -47
- package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js +6 -6
- package/lib/components/Header/MenuItem/MenuItem.styles.d.ts +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.js +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.js.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs +3 -3
- package/lib/components/Header/MenuItem/MenuItem.styles.mjs.map +1 -1
- package/lib/components/Header/MenuItem/MenuItem.types.d.ts +0 -1
- package/lib/components/Header/Navigation/Carousel/Carousel.js +5 -5
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.js +12 -12
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.js +6 -6
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +109 -116
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +104 -111
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +0 -9
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -15
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +2 -13
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +6 -12
- package/lib/components/Header/Overlay/Overlay.js +3 -3
- package/lib/components/Header/ProHeader/ProHeader.d.ts +5 -9
- package/lib/components/Header/ProHeader/ProHeader.js +189 -270
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +171 -251
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +25 -30
- package/lib/components/Header/ProHeader/ProHeader.styles.js +66 -119
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +65 -112
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +1 -4
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +2 -4
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +1 -4
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +2 -4
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +1 -4
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +2 -4
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +1 -7
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +2 -6
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +1 -4
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +2 -4
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +1 -4
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +2 -4
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +1 -4
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +2 -4
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +1 -4
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +2 -4
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +1 -4
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +2 -4
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +1 -4
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +1 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +2 -4
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Hero/Hero.js +5 -5
- package/lib/components/Hero/Hero.styles.d.ts +2 -2
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
- package/lib/components/HeroVideo/HeroVideo.js +5 -5
- package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/ImageCarousel/ImageCarousel.js +30 -30
- package/lib/components/ImageSequence/ImageSequence.js +8 -8
- package/lib/components/LandingPage/Cards/Card/Card.js +4 -4
- package/lib/components/LandingPage/Cards/Cards.js +10 -10
- package/lib/components/LandingPage/LandingPage.js +2 -2
- package/lib/components/LandingPagePro/LandingPagePro.js +13 -13
- package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
- package/lib/components/LandingPageSearch/LandingPageSearch.js +2 -2
- package/lib/components/LandingPageSearch/Modal/Modal.js +9 -9
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js +12 -12
- package/lib/components/LayoutRenderer/LayoutRenderer.js +8 -8
- package/lib/components/LayoutRenderer/LayoutRenderer.styles.d.ts +1 -1
- package/lib/components/LayoutRendererV1/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LayoutRendererV2/LayoutRenderer.styles.d.ts +3 -3
- package/lib/components/LoaderDots/LoaderDots.d.ts +1 -1
- package/lib/components/LoaderDots/LoaderDots.js +1 -3
- package/lib/components/LoaderDots/LoaderDots.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.mjs +1 -3
- package/lib/components/LoaderDots/LoaderDots.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.d.ts +1 -2
- package/lib/components/LoaderDots/LoaderDots.styles.js +1 -11
- package/lib/components/LoaderDots/LoaderDots.styles.js.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.styles.mjs +1 -11
- package/lib/components/LoaderDots/LoaderDots.styles.mjs.map +1 -1
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +0 -2
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.js +7 -7
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.js +18 -18
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.js +2 -2
- package/lib/components/MicrositeFeatureChecklist/MicrositeFeatureChecklist.js +3 -3
- package/lib/components/MicrositeFeatureProgressBar/MicrositeFeatureProgressBar.js +3 -3
- package/lib/components/MicrositeHero/MicrositeHero.js +18 -18
- package/lib/components/MicrositeIntroductionBlock/MicrositeIntroductionBlock.js +4 -4
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.js +9 -9
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.js +8 -8
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js +2 -2
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.js +3 -3
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +13 -13
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/Microsites/MicrositePageContext.js +2 -2
- package/lib/components/Microsites/MicrositeProductPage.js +3 -3
- package/lib/components/Microsites/context/MicrositeProductPageContext.js +3 -3
- package/lib/components/MobileModal/MobileModal.js +4 -4
- package/lib/components/Modal/Modal.js +3 -3
- package/lib/components/ModelCompareV3/ModelCompareOverflowScrollButton.js +3 -3
- package/lib/components/ModelCompareV3/ModelComparePropertyValueGridItem.js +2 -2
- package/lib/components/ModelCompareV3/ModelCompareV3.js +14 -14
- package/lib/components/ModelCompareV3/ProductGroupsGrid.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/ScrollGroup.js +5 -5
- package/lib/components/ModelCompareV3/ScrollGroup/context.js +3 -3
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupItem.js +8 -8
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupSetScroll.js +2 -2
- package/lib/components/ModelCompareV3/ScrollGroup/useScrollGroupTo.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGrid.js +7 -7
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridBody.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridHeader.js +5 -5
- package/lib/components/ModelCompareV3/StickyGrid/StickyGridItem.js +2 -2
- package/lib/components/ModelCompareV3/StickyGrid/context.js +3 -3
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +2 -4
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/cloudKeyG2Plus.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.js +3 -3
- package/lib/components/ModelCompareV3/data/products/express.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/express.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +2 -4
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js +1 -3
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs +1 -3
- package/lib/components/ModelCompareV3/data/products/officialUniFiHosting.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.js +41 -5
- package/lib/components/ModelCompareV3/data/products/udr.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udr.mjs +21 -5
- package/lib/components/ModelCompareV3/data/products/udr.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.js +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udw.mjs +3 -3
- package/lib/components/ModelCompareV3/data/products/udw.mjs.map +1 -1
- package/lib/components/Pagination/Pagination.js +3 -3
- package/lib/components/PriceRangeSlider/PriceRangeSlider.js +16 -16
- package/lib/components/ProductCard/ProductCard.js +7 -7
- package/lib/components/ProductCardPopup/ProductCardPopup.js +8 -8
- package/lib/components/ProductCompare/ProductCompare.js +7 -7
- package/lib/components/ProductDetails/ProductDetails.js +5 -5
- package/lib/components/ProductGrid/ProductGrid.js +10 -10
- package/lib/components/ProductKeyFeatures/ProductKeyFeatures.js +3 -3
- package/lib/components/ProductSectionNavigation/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.styles.d.ts +1 -1
- package/lib/components/ProductSectionTabs/ProductSectionTabs.js +2 -2
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
- package/lib/components/ProductWizard/Options/Options.js +3 -3
- package/lib/components/ProductWizard/ProductWizard.js +2 -2
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js +5 -5
- package/lib/components/ProgressCircle/ProgressCircle.js +4 -4
- package/lib/components/QuantityControls/QuantityControls.js +6 -6
- package/lib/components/QuantityControls/QuantityControls.js.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.mjs +2 -2
- package/lib/components/QuantityControls/QuantityControls.mjs.map +1 -1
- package/lib/components/QuantityControls/QuantityControls.types.d.ts +1 -1
- package/lib/components/QuantityInput/QuantityInput.js +1 -6
- package/lib/components/QuantityInput/QuantityInput.js.map +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +1 -6
- package/lib/components/QuantityInput/QuantityInput.mjs.map +1 -1
- package/lib/components/RelatedProducts/RelatedProducts.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.constants.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js +36 -36
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/DeviceSelect/DeviceSelect.js +12 -12
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +5 -5
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CheckboxSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +4 -4
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/SliderSection.js +3 -3
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +7 -7
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/useComputeResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/PoeCalculator/PoeCalculator.js +9 -9
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js +10 -10
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +15 -15
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
- package/lib/components/ResourceCalculatorV1/ResourceCalculator.js +6 -6
- package/lib/components/ResourceCalculatorV1/translations/en.json.js +1 -1
- package/lib/components/ResourceCalculatorV1/translations/en.json.mjs +1 -1
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.js +5 -5
- package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.js +25 -33
- package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs +8 -16
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +0 -2
- package/lib/components/Search/Input/Input.d.ts +1 -1
- package/lib/components/Search/Input/Input.js +8 -8
- package/lib/components/Search/Input/Input.js.map +1 -1
- package/lib/components/Search/Input/Input.mjs +4 -4
- package/lib/components/Search/Input/Input.mjs.map +1 -1
- package/lib/components/Search/Input/Input.styles.js +1 -0
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +1 -0
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +2 -3
- package/lib/components/Search/Modal/Modal.js +3 -3
- package/lib/components/StorageSliders/Slider/Slider.js +3 -3
- package/lib/components/StorageSliders/StorageSliders.context.js +20 -20
- package/lib/components/StorageSliders/StorageSliders.js +4 -4
- package/lib/components/Tooltip/Tooltip.js +5 -5
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js +7 -7
- package/lib/components/VariantSelector/Variant/Variant.js +40 -40
- package/lib/components/VariantSelector/VariantSelector.js +16 -16
- package/lib/components/VideoPlayerNew/VideoPlayer.js +20 -20
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.js +0 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/index.mjs +0 -2
- package/lib/components/index.mjs.map +1 -1
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +0 -17
- package/lib/constants/proStoreCategories/mapping/filters.js +0 -17
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +0 -17
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +2 -4
- package/lib/constants/proStoreCategories/mapping/index.js +51 -50
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +49 -49
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +0 -5
- package/lib/constants/proStoreCategories/mapping/redirects.js +3 -18
- package/lib/constants/proStoreCategories/mapping/redirects.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/redirects.mjs +3 -18
- package/lib/constants/proStoreCategories/mapping/redirects.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +9 -9
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/en.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/en.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/fr.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/fr.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +3 -7
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +4 -7
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/constants/proStoreFilters/mapping.d.ts +3 -55
- package/lib/constants/proStoreFilters/mapping.js +10 -140
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +10 -140
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/constants/theme.js +0 -4
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +0 -4
- package/lib/constants/theme.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +34 -34
- package/lib/contexts/MenuContext/context.js.map +1 -1
- package/lib/contexts/MenuContext/context.mjs +1 -1
- package/lib/contexts/MenuContext/context.mjs.map +1 -1
- package/lib/contexts/MenuContext/mapping.js.map +1 -1
- package/lib/contexts/MenuContext/mapping.mjs.map +1 -1
- package/lib/helpers/index.js +0 -1
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +1 -1
- package/lib/helpers/proStoreCategories.js +2 -2
- package/lib/helpers/ux.d.ts +0 -8
- package/lib/helpers/ux.js +0 -15
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +1 -15
- package/lib/helpers/ux.mjs.map +1 -1
- package/lib/hooks/useHasTouch.js +3 -3
- package/lib/hooks/useHddRetentionCalculator.js +5 -5
- package/lib/hooks/useHorizontalScroll.js +2 -2
- package/lib/hooks/useLockBodyScrollCustom.js +3 -3
- package/lib/hooks/useScrollToY.js +2 -2
- package/lib/hooks/useTestMediaElementVolumeSetter.js +3 -3
- package/lib/hooks/useTranslation.js +6 -6
- package/lib/utils/html.d.ts +2 -0
- package/lib/utils/html.js +20 -0
- package/lib/utils/html.js.map +1 -0
- package/lib/utils/html.mjs +18 -0
- package/lib/utils/html.mjs.map +1 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +2 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/index.mjs +2 -0
- package/lib/utils/index.mjs.map +1 -1
- package/lib/utils/nextjs/ssr/registry.js +2 -2
- package/package.json +5 -2
- package/lib/assets/cart-secondary.svg +0 -5
- package/lib/assets/icon-location-pin.svg +0 -5
- package/lib/assets/icons/cart-secondary.svg.js +0 -27
- package/lib/assets/icons/cart-secondary.svg.js.map +0 -1
- package/lib/assets/icons/cart-secondary.svg.mjs +0 -3
- package/lib/assets/icons/cart-secondary.svg.mjs.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +0 -1
- package/lib/components/ButtonGroupBasic/index.stories.d.ts +0 -6
- package/lib/components/Header/Header.stories.d.ts +0 -111
- package/lib/components/Header/LogoIcon/LogoIcon.d.ts +0 -7
- package/lib/components/Header/LogoIcon/LogoIcon.js +0 -46
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +0 -1
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +0 -36
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +0 -1
- package/lib/components/Header/LogoIcon/index.d.ts +0 -1
- package/lib/components/Header/LogoIcon/index.js +0 -6
- package/lib/components/Header/LogoIcon/index.js.map +0 -1
- package/lib/components/Header/LogoIcon/index.mjs +0 -3
- package/lib/components/Header/LogoIcon/index.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.d.ts +0 -2
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js +0 -79
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs +0 -71
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.stories.d.ts +0 -5
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.d.ts +0 -11
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js +0 -86
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs +0 -72
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.styles.mjs.map +0 -1
- package/lib/components/ProductTechSpecsV2/ProductTechSpecs.types.d.ts +0 -12
- package/lib/components/ProductTechSpecsV2/index.d.ts +0 -1
- package/lib/components/ProductTechSpecsV2/index.js +0 -6
- package/lib/components/ProductTechSpecsV2/index.js.map +0 -1
- package/lib/components/ProductTechSpecsV2/index.mjs +0 -3
- package/lib/components/ProductTechSpecsV2/index.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,15 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
## Releases
|
|
8
8
|
|
|
9
|
-
### 9.59.0-new-design.1
|
|
10
|
-
|
|
11
|
-
- [Fix] [NEP-4146](https://ubiquiti.atlassian.net/browse/NEP-4146) Add missing skus for resource calculator
|
|
12
|
-
- [Fix] [NEP-4142](https://ubiquiti.atlassian.net/browse/NEP-4142) Render tech specs feature values as HTML
|
|
13
|
-
|
|
14
|
-
### 9.59.0-new-design
|
|
15
|
-
|
|
16
|
-
- Upstream with `master`
|
|
17
|
-
|
|
18
9
|
### 9.59.0
|
|
19
10
|
|
|
20
11
|
- [Feat] [NEP-4158](https://ubiquiti.atlassian.net/browse/NEP-4158) Update UISP Hosting link
|
|
@@ -27,10 +18,6 @@
|
|
|
27
18
|
|
|
28
19
|
- [Hotfix] Update Enterprise Campus compare table.
|
|
29
20
|
|
|
30
|
-
### 9.58.0-new-design
|
|
31
|
-
|
|
32
|
-
- Upstream with `master`
|
|
33
|
-
|
|
34
21
|
### 9.58.0
|
|
35
22
|
|
|
36
23
|
- [NEP-4143] Enable BR Enable WiFi/Enterprise, Integrations/Managed VoIP
|
|
@@ -39,28 +26,16 @@
|
|
|
39
26
|
|
|
40
27
|
- [Hotfix] Update E7 Campus availability in compare table
|
|
41
28
|
|
|
42
|
-
### 9.57.2-new-design
|
|
43
|
-
|
|
44
|
-
- Upstream with `master`
|
|
45
|
-
|
|
46
29
|
### 9.57.2
|
|
47
30
|
|
|
48
31
|
> Incorrect publish fix for `9.57.1`
|
|
49
32
|
|
|
50
|
-
### 9.57.1-new-design
|
|
51
|
-
|
|
52
|
-
- Upstream with `master`
|
|
53
|
-
|
|
54
33
|
### 9.57.1
|
|
55
34
|
|
|
56
35
|
> Unpublished, use `9.57.2` instead!
|
|
57
36
|
|
|
58
37
|
- [Fix] [NEP-3993](https://ubiquiti.atlassian.net/browse/NEP-3993) Fix active slide in ImageCarousel
|
|
59
38
|
|
|
60
|
-
### 9.57.0-new-design
|
|
61
|
-
|
|
62
|
-
- Upstream with `master`
|
|
63
|
-
|
|
64
39
|
### 9.57.0
|
|
65
40
|
|
|
66
41
|
- [hotfix] Update E7 Campus and U7 Pro Outdoor release dates
|
|
@@ -76,10 +51,6 @@
|
|
|
76
51
|
- [Chore] Add `blog.ui.com` to global site config
|
|
77
52
|
- [Fix] Fix Managed VoIP compare value 'headset' -> 'handset'
|
|
78
53
|
|
|
79
|
-
### 9.56.1-new-design
|
|
80
|
-
|
|
81
|
-
- Upstream with `master`
|
|
82
|
-
|
|
83
54
|
### 9.56.1
|
|
84
55
|
|
|
85
56
|
- [Fix] AccountMenu message list button styles differ from latest design
|
|
@@ -94,16 +65,6 @@
|
|
|
94
65
|
- Remove coming soon text from `AI LPR`
|
|
95
66
|
- Enable badges for Camera Security main compare table
|
|
96
67
|
|
|
97
|
-
### 9.56.0-new-design
|
|
98
|
-
|
|
99
|
-
- [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
|
|
100
|
-
- [Feat] [NEP-3822](https://ubiquiti.atlassian.net/browse/NEP-3822) Tech specs JSON to HTML conversion
|
|
101
|
-
|
|
102
|
-
### 9.55.0-new-design
|
|
103
|
-
|
|
104
|
-
- [Feat] Add support for download translations to narrow down to specific labels
|
|
105
|
-
- Upstream with `master`
|
|
106
|
-
|
|
107
68
|
### 9.55.0
|
|
108
69
|
|
|
109
70
|
- [Feat] [NEP-3818](https://ubiquiti.atlassian.net/browse/NEP-3818) Add techspecs and store link to Wave MLO5 in compare table
|
|
@@ -118,10 +79,6 @@
|
|
|
118
79
|
|
|
119
80
|
- [Feat] [NEP-4016] Update shipping rounding
|
|
120
81
|
|
|
121
|
-
### 9.53.0-new-design
|
|
122
|
-
|
|
123
|
-
- Upstream with `master`
|
|
124
|
-
|
|
125
82
|
### 9.53.0
|
|
126
83
|
|
|
127
84
|
- [Feat] [MIC-516](https://ubiquiti.atlassian.net/browse/MIC-516) Add `G3 Touch` devices to compare
|
|
@@ -131,19 +88,10 @@
|
|
|
131
88
|
|
|
132
89
|
- [Chore] Add "new-design" support in SmartCatApi
|
|
133
90
|
|
|
134
|
-
### 9.52.0-new-design
|
|
135
|
-
|
|
136
|
-
- [Feat] [NEP-3682](https://ubiquiti.atlassian.net/browse/NEP-3682) Update Field Of View filter. Make it as checkbox instead of sliders.
|
|
137
|
-
- [Feat] [NEP-3943](https://ubiquiti.atlassian.net/browse/NEP-3943) Add new button group style
|
|
138
|
-
|
|
139
91
|
### 9.51.1
|
|
140
92
|
|
|
141
93
|
- [hotfix] Update U7 Pro Outdoor availability date
|
|
142
94
|
|
|
143
|
-
### 9.51.0-new-design
|
|
144
|
-
|
|
145
|
-
> Upstream with `master`
|
|
146
|
-
|
|
147
95
|
### 9.51.0
|
|
148
96
|
|
|
149
97
|
- [Feat] Add `asNegativeAmount` option to `formatPrice` and related functions
|
|
@@ -163,10 +111,6 @@
|
|
|
163
111
|
|
|
164
112
|
- [Feat] [MIC-511](https://ubiquiti.atlassian.net/browse/MIC-511) Update U7 Pro Outdoor availability date
|
|
165
113
|
|
|
166
|
-
### 9.49.0-new-design
|
|
167
|
-
|
|
168
|
-
> Upstream with `master`
|
|
169
|
-
|
|
170
114
|
### 9.49.0
|
|
171
115
|
|
|
172
116
|
- [fix] Add new filter for Door Access and PoE+++
|
|
@@ -181,36 +125,19 @@
|
|
|
181
125
|
|
|
182
126
|
- [Fix] [MIC-503](https://ubiquiti.atlassian.net/browse/MIC-503) Update Pro 8 PoE compare image
|
|
183
127
|
|
|
184
|
-
### 9.47.0-new-design
|
|
185
|
-
|
|
186
|
-
> Upstream with `master`
|
|
187
|
-
|
|
188
128
|
### 9.47.0
|
|
189
129
|
|
|
190
130
|
- [fix] Fix eslint issues around missing/incorrect awaits
|
|
191
131
|
- [NEP-3974](https://ubiquiti.atlassian.net/browse/NEP-3974) add 24tb storage size
|
|
192
132
|
|
|
193
|
-
### 9.46.0-new-design
|
|
194
|
-
|
|
195
|
-
> Upstream with `master`
|
|
196
|
-
|
|
197
133
|
### 9.46.0
|
|
198
134
|
|
|
199
135
|
- [chore] Add China new-platform store boilerplate
|
|
200
136
|
|
|
201
|
-
### 9.45.0-new-design
|
|
202
|
-
|
|
203
|
-
> Upstream with `master`
|
|
204
|
-
|
|
205
137
|
### 9.45.0
|
|
206
138
|
|
|
207
|
-
- [Feat] [NEP-3958](https://ubiquiti.atlassian.net/browse/NEP-3958) Add new `getTimeUntilEndOfHolidaySaleByStore` helper function for Holiday sale
|
|
208
|
-
|
|
209
|
-
### 9.44.3-new-design
|
|
210
|
-
|
|
211
139
|
- [chore] Misc eslint fixes (some actual bugs for rare-cases)
|
|
212
|
-
|
|
213
|
-
> Upstream with stable release
|
|
140
|
+
- [Feat] [NEP-3958](https://ubiquiti.atlassian.net/browse/NEP-3958) Add new `getTimeUntilEndOfHolidaySaleByStore` helper function for Holiday sale
|
|
214
141
|
|
|
215
142
|
### 9.44.2
|
|
216
143
|
|
|
@@ -224,10 +151,6 @@
|
|
|
224
151
|
|
|
225
152
|
- [NEP-3941](https://ubiquiti.atlassian.net/browse/NEP-3941) Set Store Mexico free days as null
|
|
226
153
|
|
|
227
|
-
### 9.43.0-new-design
|
|
228
|
-
|
|
229
|
-
> Upstream with stable release
|
|
230
|
-
|
|
231
154
|
### 9.43.0
|
|
232
155
|
|
|
233
156
|
- [Feat] [NEP-3934](https://ubiquiti.atlassian.net/browse/NEP-3934) Enable MX in production
|
|
@@ -240,10 +163,6 @@
|
|
|
240
163
|
|
|
241
164
|
- [Feat] [NEP-3930](https://ubiquiti.atlassian.net/browse/NEP-3930) Enable Enterprise (gateway) subcategory in BR
|
|
242
165
|
|
|
243
|
-
### 9.42.0-new-design
|
|
244
|
-
|
|
245
|
-
> Upstream with stable release
|
|
246
|
-
|
|
247
166
|
### 9.42.0
|
|
248
167
|
|
|
249
168
|
- [NEP-3928](https://ubiquiti.atlassian.net/browse/NEP-3928) Add new Door Access apple wallet filter
|
|
@@ -252,49 +171,6 @@
|
|
|
252
171
|
|
|
253
172
|
- [Feat] Add `withUbntLibraries` and enable SSR support for `ui-components`
|
|
254
173
|
|
|
255
|
-
### 9.40.1-new-design
|
|
256
|
-
|
|
257
|
-
- [Fix] Added missing secondary cart PR
|
|
258
|
-
|
|
259
|
-
### 9.40.0-new-design
|
|
260
|
-
|
|
261
|
-
> First new-design release
|
|
262
|
-
|
|
263
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) pro header inline categories variant
|
|
264
|
-
- [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix pro header inline rendering
|
|
265
|
-
- [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix pro mobile menu label
|
|
266
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) improve header max width handler
|
|
267
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) add loading state to account menu
|
|
268
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) add data-test-ids
|
|
269
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) improve search behavior and account menu
|
|
270
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) improve pro mobile menu links
|
|
271
|
-
- [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix search icon background
|
|
272
|
-
- [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) desktop search improvements
|
|
273
|
-
- [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix pro mobile menu top level actions
|
|
274
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) search input adjustments
|
|
275
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) update category mapping and redirects
|
|
276
|
-
- [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix all cloud gateway slug
|
|
277
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) abstract inline categories to be the default layout
|
|
278
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) add header logo prop
|
|
279
|
-
- [Feat] [NEP-3413](https://ubiquiti.atlassian.net/browse/NEP-3413) abstract isolated header layout
|
|
280
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) add hide logo prop
|
|
281
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) add url logo prop
|
|
282
|
-
- [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix logo hide prop
|
|
283
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) adjust continue shopping button style
|
|
284
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) fix isolated header spacing and button position
|
|
285
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) current store flag and name
|
|
286
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) remove pro hover menu; add product line conditional menu
|
|
287
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) improve desktop search focus; add flag to mobile menu
|
|
288
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) adjust unifi logo svg size
|
|
289
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) increase header line loader z index; remove search input id; add new search props
|
|
290
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) remove search input overflow
|
|
291
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) remove mobile search and use inline search bar
|
|
292
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) search focus border and focus improvement
|
|
293
|
-
- [Fix] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) adjust search autofocus to be manual
|
|
294
|
-
- [Feat] [NEP-3663](https://ubiquiti.atlassian.net/browse/NEP-3663) Reorganize categories for current production and new-design
|
|
295
|
-
- [Feat] [NEP-3682](https://ubiquiti.atlassian.net/browse/NEP-3682) Add filter "Client devices" for cloud gateways
|
|
296
|
-
- [Feat] [NEP-3591](https://ubiquiti.atlassian.net/browse/NEP-3591) Add underline style tabs, add "loading" prop to backInStock propTypes
|
|
297
|
-
|
|
298
174
|
### 9.40.0
|
|
299
175
|
|
|
300
176
|
- [Feat] [MIC-473](https://ubiquiti.atlassian.net/browse/MIC-473) E7 release changes:
|
|
@@ -62,8 +62,7 @@ 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('../
|
|
66
|
-
var index$T = require('../contexts/MenuContext/index.js');
|
|
65
|
+
var index$S = require('../contexts/MenuContext/index.js');
|
|
67
66
|
var useLockBodyScrollCustom = require('../hooks/useLockBodyScrollCustom.js');
|
|
68
67
|
var useTestMediaElementVolumeSetter = require('../hooks/useTestMediaElementVolumeSetter.js');
|
|
69
68
|
var useTranslation = require('../hooks/useTranslation.js');
|
|
@@ -75,11 +74,11 @@ var misc = require('../utils/money/misc.js');
|
|
|
75
74
|
var number = require('../utils/number.js');
|
|
76
75
|
var string = require('../utils/string.js');
|
|
77
76
|
var array = require('../utils/array.js');
|
|
78
|
-
var index$
|
|
77
|
+
var index$T = require('../utils/nextjs/index.js');
|
|
79
78
|
var country = require('../utils/country.js');
|
|
80
79
|
var countriesAndZones = require('../utils/countriesAndZones.js');
|
|
81
80
|
var address = require('../utils/address.js');
|
|
82
|
-
var index$
|
|
81
|
+
var index$U = require('../utils/tax/index.js');
|
|
83
82
|
var zod = require('../utils/zod.js');
|
|
84
83
|
var collectionSlug = require('../utils/collectionSlug.js');
|
|
85
84
|
var shipping = require('../utils/shipping.js');
|
|
@@ -94,8 +93,9 @@ var styles = require('../utils/styles.js');
|
|
|
94
93
|
var storeId = require('../utils/storeId.js');
|
|
95
94
|
var blackFriday = require('../utils/blackFriday.js');
|
|
96
95
|
var sales = require('../utils/sales.js');
|
|
97
|
-
var
|
|
98
|
-
var index$
|
|
96
|
+
var html = require('../utils/html.js');
|
|
97
|
+
var index$V = require('../constants/proStoreCategories/index.js');
|
|
98
|
+
var index$W = require('../constants/proStoreFilters/index.js');
|
|
99
99
|
var proStoreCategories = require('../helpers/proStoreCategories.js');
|
|
100
100
|
var ux = require('../helpers/ux.js');
|
|
101
101
|
var smartcat = require('../apis/smartcat.js');
|
|
@@ -153,8 +153,7 @@ exports.VideoPlayer = index$O;
|
|
|
153
153
|
exports.ResourceCalculatorV1 = index$P;
|
|
154
154
|
exports.CartIcon = index$Q;
|
|
155
155
|
exports.AccountMenu = index$R;
|
|
156
|
-
exports.
|
|
157
|
-
exports.MenuContext = index$T;
|
|
156
|
+
exports.MenuContext = index$S;
|
|
158
157
|
exports.useLockBodyScrollCustom = useLockBodyScrollCustom.useLockBodyScrollCustom;
|
|
159
158
|
exports.useTestMediaElementVolumeSetter = useTestMediaElementVolumeSetter.useTestMediaElementVolumeSetter;
|
|
160
159
|
exports.useTranslation = useTranslation.useTranslation;
|
|
@@ -177,11 +176,11 @@ exports.money = misc;
|
|
|
177
176
|
exports.number = number;
|
|
178
177
|
exports.string = string;
|
|
179
178
|
exports.array = array;
|
|
180
|
-
exports.nextjs = index$
|
|
179
|
+
exports.nextjs = index$T;
|
|
181
180
|
exports.country = country;
|
|
182
181
|
exports.countryAndZones = countriesAndZones;
|
|
183
182
|
exports.address = address;
|
|
184
|
-
exports.tax = index$
|
|
183
|
+
exports.tax = index$U;
|
|
185
184
|
exports.zod = zod;
|
|
186
185
|
exports.collectionSlug = collectionSlug;
|
|
187
186
|
exports.shipping = shipping;
|
|
@@ -196,8 +195,9 @@ exports.styles = styles;
|
|
|
196
195
|
exports.storeId = storeId;
|
|
197
196
|
exports.blackFriday = blackFriday;
|
|
198
197
|
exports.sales = sales;
|
|
199
|
-
exports.
|
|
200
|
-
exports.
|
|
198
|
+
exports.html = html;
|
|
199
|
+
exports.proStoreCategories = index$V;
|
|
200
|
+
exports.proStoreFilters = index$W;
|
|
201
201
|
exports.getCategoriesBySubcategory = proStoreCategories.getCategoriesBySubcategory;
|
|
202
202
|
exports.getLocalizedCategories = proStoreCategories.getLocalizedCategories;
|
|
203
203
|
exports.getProductLineByCategory = proStoreCategories.getProductLineByCategory;
|
|
@@ -207,7 +207,6 @@ exports.isValidSubCategory = proStoreCategories.isValidSubCategory;
|
|
|
207
207
|
exports.parseCategories = proStoreCategories.parseCategories;
|
|
208
208
|
exports.useTranslatedCategories = proStoreCategories.useTranslatedCategories;
|
|
209
209
|
exports.getTrueOffsetY = ux.getTrueOffsetY;
|
|
210
|
-
exports.getTrueSize = ux.getTrueSize;
|
|
211
210
|
exports.scrollIntoView = ux.scrollIntoView;
|
|
212
211
|
exports.scrollToY = ux.scrollToY;
|
|
213
212
|
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,10 +114,8 @@ 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 '../
|
|
118
|
-
export { index$S as
|
|
119
|
-
import * as index$T from '../contexts/MenuContext/index.mjs';
|
|
120
|
-
export { index$T as MenuContext };
|
|
117
|
+
import * as index$S from '../contexts/MenuContext/index.mjs';
|
|
118
|
+
export { index$S as MenuContext };
|
|
121
119
|
export { useLockBodyScrollCustom } from '../hooks/useLockBodyScrollCustom.mjs';
|
|
122
120
|
export { useTestMediaElementVolumeSetter } from '../hooks/useTestMediaElementVolumeSetter.mjs';
|
|
123
121
|
export { useTranslation, useTranslationRaw } from '../hooks/useTranslation.mjs';
|
|
@@ -134,16 +132,16 @@ import * as string from '../utils/string.mjs';
|
|
|
134
132
|
export { string };
|
|
135
133
|
import * as array from '../utils/array.mjs';
|
|
136
134
|
export { array };
|
|
137
|
-
import * as index$
|
|
138
|
-
export { index$
|
|
135
|
+
import * as index$T from '../utils/nextjs/index.mjs';
|
|
136
|
+
export { index$T as nextjs };
|
|
139
137
|
import * as country from '../utils/country.mjs';
|
|
140
138
|
export { country };
|
|
141
139
|
import * as countriesAndZones from '../utils/countriesAndZones.mjs';
|
|
142
140
|
export { countriesAndZones as countryAndZones };
|
|
143
141
|
import * as address from '../utils/address.mjs';
|
|
144
142
|
export { address };
|
|
145
|
-
import * as index$
|
|
146
|
-
export { index$
|
|
143
|
+
import * as index$U from '../utils/tax/index.mjs';
|
|
144
|
+
export { index$U as tax };
|
|
147
145
|
import * as zod from '../utils/zod.mjs';
|
|
148
146
|
export { zod };
|
|
149
147
|
import * as collectionSlug from '../utils/collectionSlug.mjs';
|
|
@@ -172,12 +170,14 @@ import * as blackFriday from '../utils/blackFriday.mjs';
|
|
|
172
170
|
export { blackFriday };
|
|
173
171
|
import * as sales from '../utils/sales.mjs';
|
|
174
172
|
export { sales };
|
|
175
|
-
import * as
|
|
176
|
-
export {
|
|
177
|
-
import * as index$
|
|
178
|
-
export { index$
|
|
173
|
+
import * as html from '../utils/html.mjs';
|
|
174
|
+
export { html };
|
|
175
|
+
import * as index$V from '../constants/proStoreCategories/index.mjs';
|
|
176
|
+
export { index$V as proStoreCategories };
|
|
177
|
+
import * as index$W from '../constants/proStoreFilters/index.mjs';
|
|
178
|
+
export { index$W as proStoreFilters };
|
|
179
179
|
export { getCategoriesBySubcategory, getLocalizedCategories, getProductLineByCategory, getProductLineBySubcategory, getSubCategoryIdByCollectionSlug, isValidSubCategory, parseCategories, useTranslatedCategories } from '../helpers/proStoreCategories.mjs';
|
|
180
|
-
export { getTrueOffsetY,
|
|
180
|
+
export { getTrueOffsetY, scrollIntoView, scrollToY } from '../helpers/ux.mjs';
|
|
181
181
|
import * as smartcat from '../apis/smartcat.mjs';
|
|
182
182
|
export { smartcat };
|
|
183
183
|
//# sourceMappingURL=_virtual_multi-entry.mjs.map
|
package/lib/apis/smartcat.d.ts
CHANGED
|
@@ -171,21 +171,16 @@ 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[];
|
|
179
174
|
/**
|
|
180
175
|
* (optional) Max attempt count for polling download ready status.
|
|
181
176
|
* @default 10
|
|
182
177
|
*/
|
|
183
|
-
maxAttemptCount
|
|
178
|
+
maxAttemptCount: number;
|
|
184
179
|
/**
|
|
185
180
|
* (optional) Interval in milliseconds between each polling attempt.
|
|
186
181
|
* @default 5000
|
|
187
182
|
*/
|
|
188
|
-
intervalMs
|
|
183
|
+
intervalMs: number;
|
|
189
184
|
}): Promise<Record<Language, TranslationObject>>;
|
|
190
185
|
/**
|
|
191
186
|
* Exposed method for uploading source translations to Smartcat.
|
|
@@ -195,7 +190,6 @@ export declare class SmartcatApi {
|
|
|
195
190
|
}): Promise<void>;
|
|
196
191
|
/**
|
|
197
192
|
* 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
|
|
199
193
|
*/
|
|
200
194
|
private smartcatUploadRequest;
|
|
201
195
|
/**
|
|
@@ -219,9 +213,5 @@ export declare class SmartcatApi {
|
|
|
219
213
|
* Get smartcat environment based on branch name
|
|
220
214
|
*/
|
|
221
215
|
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;
|
|
226
216
|
}
|
|
227
217
|
export {};
|
package/lib/apis/smartcat.js
CHANGED
|
@@ -336,8 +336,7 @@ 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(",")
|
|
340
|
-
labels: _SmartcatApi.prepareLabels(options?.labels)
|
|
339
|
+
languages: this.targetLanguages?.map(lang => this.languageToSmartcatLocaleMapping[lang]).join(",")
|
|
341
340
|
// FIXME: Look into only exporting values that has changed since last export minus some time via `modified-since`
|
|
342
341
|
};
|
|
343
342
|
const smartcatLocaleToLanguageMap = this.getSmartcatLocaleToLanguageMap();
|
|
@@ -358,9 +357,7 @@ const _SmartcatApi = class _SmartcatApi {
|
|
|
358
357
|
pollAttempt += 1;
|
|
359
358
|
const checkUrl = `integration/v1/document/export/${taskID}/`;
|
|
360
359
|
const checkResponse = await this.axios.get(checkUrl, {
|
|
361
|
-
responseType: "arraybuffer"
|
|
362
|
-
// Don't throw errors for all errors below 500 so we can handle it gracefully
|
|
363
|
-
validateStatus: status => status < 500
|
|
360
|
+
responseType: "arraybuffer"
|
|
364
361
|
});
|
|
365
362
|
if (checkResponse.status === 200) {
|
|
366
363
|
const zip = new AdmZip__default["default"](checkResponse.data);
|
|
@@ -389,19 +386,6 @@ const _SmartcatApi = class _SmartcatApi {
|
|
|
389
386
|
} else if (checkResponse.status === 204) {
|
|
390
387
|
this.logger?.info(`The task ID ${taskID} is not ready yet, will try again`);
|
|
391
388
|
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`);
|
|
405
389
|
} else {
|
|
406
390
|
throw new Error(`Failed to download smartcat translations, endpoint returned unknown status code ${checkResponse.status}`);
|
|
407
391
|
}
|
|
@@ -464,16 +448,15 @@ const _SmartcatApi = class _SmartcatApi {
|
|
|
464
448
|
}
|
|
465
449
|
/**
|
|
466
450
|
* 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
|
|
468
451
|
*/
|
|
469
452
|
async smartcatUploadRequest(sourceTranslations, options) {
|
|
453
|
+
const labels = options?.labels?.map(label => label.trim()).filter(Boolean).join(",") || "";
|
|
470
454
|
const queryParams = {
|
|
471
455
|
format: "json",
|
|
472
456
|
language: "en",
|
|
473
457
|
collection: this.collectionName,
|
|
474
458
|
"delete-missing-keys": !!options?.deleteMissingKeys,
|
|
475
|
-
|
|
476
|
-
labels: _SmartcatApi.prepareLabels(options?.labels) || ""
|
|
459
|
+
labels
|
|
477
460
|
};
|
|
478
461
|
const url = `integration/v2/project/${this.projectId}/import`;
|
|
479
462
|
const smartCatSourceLanguageBuffer = Buffer.from(JSON.stringify(sourceTranslations));
|
|
@@ -568,12 +551,6 @@ __publicField(_SmartcatApi, "getSmartcatEnvironmentFromGhBranchName", ghReposito
|
|
|
568
551
|
}
|
|
569
552
|
}
|
|
570
553
|
});
|
|
571
|
-
/**
|
|
572
|
-
* Util to prepare labels for passing into request parameters
|
|
573
|
-
*/
|
|
574
|
-
__publicField(_SmartcatApi, "prepareLabels", labels => {
|
|
575
|
-
return labels?.map(label => label.trim()).filter(Boolean).join(",");
|
|
576
|
-
});
|
|
577
554
|
let SmartcatApi = _SmartcatApi;
|
|
578
555
|
exports.SmartcatApi = SmartcatApi;
|
|
579
556
|
exports.SmartcatEnvironment = SmartcatEnvironment;
|