@ubnt/store.core 9.40.0-beta.0 → 9.40.0-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.
- package/CHANGELOG.md +44 -335
- package/lib/_virtual/_virtual_multi-entry.js +2 -15
- package/lib/_virtual/_virtual_multi-entry.js.map +1 -1
- package/lib/_virtual/_virtual_multi-entry.mjs +0 -2
- package/lib/_virtual/_virtual_multi-entry.mjs.map +1 -1
- package/lib/apis/smartcat.js.map +1 -1
- package/lib/apis/smartcat.mjs.map +1 -1
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- package/lib/assets/icon-location-pin.svg +5 -0
- package/lib/{components/ModelCompareV3/assets/crestron.svg.js → assets/icons/menu/icon-location-pin.svg.js} +6 -6
- package/lib/assets/icons/menu/icon-location-pin.svg.js.map +1 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs +3 -0
- package/lib/assets/icons/menu/icon-location-pin.svg.mjs.map +1 -0
- package/lib/assets/icons/wizard/plus.svg.js +1 -1
- package/lib/assets/icons/wizard/plus.svg.mjs +2 -2
- package/lib/assets/logoUnifi.svg +10 -2
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/plus.svg +22 -4
- package/lib/assets/plus2.svg +4 -22
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/port.svg +2 -4
- package/lib/assets/port2.svg +4 -2
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mjs.map +1 -1
- package/lib/components/Accordion/Accordion.styles.js.map +1 -1
- package/lib/components/Accordion/Accordion.styles.mjs.map +1 -1
- package/lib/components/Avatar/Avatar.js.map +1 -1
- package/lib/components/Avatar/Avatar.mjs.map +1 -1
- package/lib/components/Banner/Banner.styles.js.map +1 -1
- package/lib/components/Banner/Banner.styles.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.mjs.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.js.map +1 -1
- package/lib/components/ButtonGroup/ButtonGroup.styles.mjs.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.js.map +1 -1
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.mjs.map +1 -1
- package/lib/components/CardSection/CardSection.styles.d.ts +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.d.ts +4 -2
- package/lib/components/CategoryTabs/CategoryTabs.styles.js +8 -5
- package/lib/components/CategoryTabs/CategoryTabs.styles.js.map +1 -1
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs +7 -6
- package/lib/components/CategoryTabs/CategoryTabs.styles.mjs.map +1 -1
- package/lib/components/CloserLookSection/CloserLookSection.js.map +1 -1
- package/lib/components/CloserLookSection/CloserLookSection.mjs.map +1 -1
- package/lib/components/CloserLookSection/CloserLookSection.styles.js.map +1 -1
- package/lib/components/CloserLookSection/CloserLookSection.styles.mjs.map +1 -1
- 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 -3
- package/lib/components/Container/Container.js.map +1 -1
- package/lib/components/Container/Container.mjs +5 -4
- package/lib/components/Container/Container.mjs.map +1 -1
- package/lib/components/Container/Container.styles.js.map +1 -1
- package/lib/components/Container/Container.styles.mjs.map +1 -1
- package/lib/components/CustomImage/CustomImage.js +1 -1
- package/lib/components/CustomImage/CustomImage.js.map +1 -1
- package/lib/components/CustomImage/CustomImage.mjs +1 -1
- package/lib/components/CustomImage/CustomImage.mjs.map +1 -1
- package/lib/components/CustomImage/CustomImage.styles.js.map +1 -1
- package/lib/components/CustomImage/CustomImage.styles.mjs.map +1 -1
- package/lib/components/Explore/Explore.js.map +1 -1
- package/lib/components/Explore/Explore.mjs.map +1 -1
- package/lib/components/Explore/ExploreData.js.map +1 -1
- package/lib/components/Explore/ExploreData.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js.map +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.js.map +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.styles.mjs.map +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mjs +1 -1
- package/lib/components/Footer/Footer.mjs.map +1 -1
- package/lib/components/Footer/Footer.styles.js.map +1 -1
- package/lib/components/Footer/Footer.styles.mjs.map +1 -1
- package/lib/components/Gallery/Gallery.js.map +1 -1
- package/lib/components/Gallery/Gallery.mjs.map +1 -1
- package/lib/components/Gallery/Gallery.styles.js.map +1 -1
- package/lib/components/Gallery/Gallery.styles.mjs.map +1 -1
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.js.map +1 -1
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.mjs.map +1 -1
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.styles.js.map +1 -1
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.styles.mjs.map +1 -1
- package/lib/components/GradientButton/GradientButton.styles.js.map +1 -1
- package/lib/components/GradientButton/GradientButton.styles.mjs.map +1 -1
- package/lib/components/GridGallery/GridGallery.js.map +1 -1
- package/lib/components/GridGallery/GridGallery.mjs.map +1 -1
- package/lib/components/Header/AccountFrame/AccountFrame.js.map +1 -1
- package/lib/components/Header/AccountFrame/AccountFrame.mjs.map +1 -1
- package/lib/components/Header/AccountFrame/AccountFrame.styles.js.map +1 -1
- package/lib/components/Header/AccountFrame/AccountFrame.styles.mjs.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.js +11 -1
- package/lib/components/Header/AccountMenu/AccountMenu.js.map +1 -1
- package/lib/components/Header/AccountMenu/AccountMenu.mjs +13 -3
- package/lib/components/Header/AccountMenu/AccountMenu.mjs.map +1 -1
- package/lib/components/Header/AccountMenu/megaphone.http.service.js.map +1 -1
- package/lib/components/Header/AccountMenu/megaphone.http.service.mjs.map +1 -1
- package/lib/components/Header/CartModalV2/Item/Item.js.map +1 -1
- package/lib/components/Header/CartModalV2/Item/Item.mjs.map +1 -1
- package/lib/components/Header/Header.js +6 -6
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mjs +6 -6
- package/lib/components/Header/Header.mjs.map +1 -1
- package/lib/components/Header/Header.styles.d.ts +7 -12
- package/lib/components/Header/Header.styles.js +10 -32
- package/lib/components/Header/Header.styles.js.map +1 -1
- package/lib/components/Header/Header.styles.mjs +10 -31
- package/lib/components/Header/Header.styles.mjs.map +1 -1
- package/lib/components/Header/Header.types.d.ts +29 -5
- package/lib/components/Header/Header.types.js +2 -1
- package/lib/components/Header/Header.types.js.map +1 -1
- package/lib/components/Header/Header.types.mjs +2 -1
- package/lib/components/Header/Header.types.mjs.map +1 -1
- package/lib/components/Header/IsolatedHeader.d.ts +1 -0
- package/lib/components/Header/IsolatedHeader.js +44 -44
- package/lib/components/Header/IsolatedHeader.js.map +1 -1
- package/lib/components/Header/IsolatedHeader.mjs +47 -46
- package/lib/components/Header/IsolatedHeader.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.js.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.mjs.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.js.map +1 -1
- package/lib/components/Header/LanguageFrame/LanguageFrame.styles.mjs.map +1 -1
- package/lib/components/Header/LogoIcon/LogoIcon.d.ts +7 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js +46 -0
- package/lib/components/Header/LogoIcon/LogoIcon.js.map +1 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs +36 -0
- package/lib/components/Header/LogoIcon/LogoIcon.mjs.map +1 -0
- package/lib/components/Header/LogoIcon/index.d.ts +1 -0
- package/lib/components/Header/LogoIcon/index.js +6 -0
- package/lib/components/Header/LogoIcon/index.js.map +1 -0
- package/lib/components/Header/LogoIcon/index.mjs +3 -0
- package/lib/components/Header/LogoIcon/index.mjs.map +1 -0
- 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 +1 -0
- package/lib/components/Header/Navigation/Carousel/Carousel.js.map +1 -1
- package/lib/components/Header/Navigation/Carousel/Carousel.mjs.map +1 -1
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.d.ts +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.d.ts +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js +110 -103
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs +111 -104
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.d.ts +9 -0
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +15 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +13 -2
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +12 -6
- package/lib/components/Header/ProHeader/ProHeader.d.ts +9 -5
- package/lib/components/Header/ProHeader/ProHeader.js +249 -168
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +250 -170
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +30 -25
- package/lib/components/Header/ProHeader/ProHeader.styles.js +119 -66
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +112 -65
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/Header/translations/ar.json.js +4 -1
- package/lib/components/Header/translations/ar.json.js.map +1 -1
- package/lib/components/Header/translations/ar.json.mjs +4 -2
- package/lib/components/Header/translations/ar.json.mjs.map +1 -1
- package/lib/components/Header/translations/de.json.js +4 -1
- package/lib/components/Header/translations/de.json.js.map +1 -1
- package/lib/components/Header/translations/de.json.mjs +4 -2
- package/lib/components/Header/translations/de.json.mjs.map +1 -1
- package/lib/components/Header/translations/el.json.js +4 -1
- package/lib/components/Header/translations/el.json.js.map +1 -1
- package/lib/components/Header/translations/el.json.mjs +4 -2
- package/lib/components/Header/translations/el.json.mjs.map +1 -1
- package/lib/components/Header/translations/en.json.js +7 -1
- package/lib/components/Header/translations/en.json.js.map +1 -1
- package/lib/components/Header/translations/en.json.mjs +6 -2
- package/lib/components/Header/translations/en.json.mjs.map +1 -1
- package/lib/components/Header/translations/es.json.js +4 -1
- package/lib/components/Header/translations/es.json.js.map +1 -1
- package/lib/components/Header/translations/es.json.mjs +4 -2
- package/lib/components/Header/translations/es.json.mjs.map +1 -1
- package/lib/components/Header/translations/fr.json.js +4 -1
- package/lib/components/Header/translations/fr.json.js.map +1 -1
- package/lib/components/Header/translations/fr.json.mjs +4 -2
- package/lib/components/Header/translations/fr.json.mjs.map +1 -1
- package/lib/components/Header/translations/it.json.js +4 -1
- package/lib/components/Header/translations/it.json.js.map +1 -1
- package/lib/components/Header/translations/it.json.mjs +4 -2
- package/lib/components/Header/translations/it.json.mjs.map +1 -1
- package/lib/components/Header/translations/ja.json.js +4 -1
- package/lib/components/Header/translations/ja.json.js.map +1 -1
- package/lib/components/Header/translations/ja.json.mjs +4 -2
- package/lib/components/Header/translations/ja.json.mjs.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.js +4 -1
- package/lib/components/Header/translations/pt-BR.json.js.map +1 -1
- package/lib/components/Header/translations/pt-BR.json.mjs +4 -2
- package/lib/components/Header/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.js +4 -1
- package/lib/components/Header/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hans.json.mjs +4 -2
- package/lib/components/Header/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js +4 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs +4 -2
- package/lib/components/Header/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Hero/Hero.js.map +1 -1
- package/lib/components/Hero/Hero.mjs.map +1 -1
- package/lib/components/Hero/Hero.styles.d.ts +2 -2
- package/lib/components/Hero/Hero.styles.js.map +1 -1
- package/lib/components/Hero/Hero.styles.mjs.map +1 -1
- package/lib/components/HeroFadeGallery/HeroFadeGallery.styles.d.ts +1 -1
- package/lib/components/HowToUseSection/HowToUseSection.styles.d.ts +2 -2
- package/lib/components/ImageCarousel/ImageCarousel.styles.js.map +1 -1
- package/lib/components/ImageCarousel/ImageCarousel.styles.mjs.map +1 -1
- package/lib/components/LandingPage/Cards/Card/Card.js.map +1 -1
- package/lib/components/LandingPage/Cards/Card/Card.mjs.map +1 -1
- package/lib/components/LandingPage/Cards/Cards.js.map +1 -1
- package/lib/components/LandingPage/Cards/Cards.mjs.map +1 -1
- package/lib/components/LandingPage/Cards/Cards.styles.js.map +1 -1
- package/lib/components/LandingPage/Cards/Cards.styles.mjs.map +1 -1
- package/lib/components/LandingPage/LandingPage.js.map +1 -1
- package/lib/components/LandingPage/LandingPage.mjs.map +1 -1
- package/lib/components/LandingPagePro/LandingPagePro.js.map +1 -1
- package/lib/components/LandingPagePro/LandingPagePro.mjs.map +1 -1
- package/lib/components/LandingPagePro/LandingPagePro.styles.d.ts +1 -1
- package/lib/components/LandingPageSearch/Modal/Modal.js.map +1 -1
- package/lib/components/LandingPageSearch/Modal/Modal.mjs.map +1 -1
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js.map +1 -1
- package/lib/components/LandingPageSidebar/LandingPageSidebar.mjs.map +1 -1
- package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.js.map +1 -1
- package/lib/components/LandingPageSidebar/LandingPageSidebar.styles.mjs.map +1 -1
- 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/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.helpers.js.map +1 -1
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.helpers.mjs.map +1 -1
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.styles.d.ts +1 -1
- package/lib/components/MicrositeExploreCards/MicrositeExploreCards.styles.js.map +1 -1
- package/lib/components/MicrositeExploreCards/MicrositeExploreCards.styles.mjs.map +1 -1
- package/lib/components/MicrositeFeatureList/MicrositeFeatureList.styles.js.map +1 -1
- package/lib/components/MicrositeFeatureList/MicrositeFeatureList.styles.mjs.map +1 -1
- package/lib/components/MicrositeHero/MicrositeHero.js.map +1 -1
- package/lib/components/MicrositeHero/MicrositeHero.mjs.map +1 -1
- package/lib/components/MicrositeHero/MicrositeHero.styles.js.map +1 -1
- package/lib/components/MicrositeHero/MicrositeHero.styles.mjs.map +1 -1
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.styles.js.map +1 -1
- package/lib/components/MicrositeMediaGrid/MicrositeMediaGrid.styles.mjs.map +1 -1
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.styles.js.map +1 -1
- package/lib/components/MicrositeProductGrid/MicrositeProductGrid.styles.mjs.map +1 -1
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.js.map +1 -1
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlockWrap.mjs.map +1 -1
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.styles.d.ts +1 -1
- package/lib/components/Microsites/MicrositeProductPage.js.map +1 -1
- package/lib/components/Microsites/MicrositeProductPage.mjs.map +1 -1
- package/lib/components/MobileModal/MobileModal.styles.js.map +1 -1
- package/lib/components/MobileModal/MobileModal.styles.mjs.map +1 -1
- package/lib/components/ModelCompareV3/HeaderShadow.js.map +1 -1
- package/lib/components/ModelCompareV3/HeaderShadow.mjs.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareV3.js.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareV3.mjs.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.js.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareV3.styles.mjs.map +1 -1
- package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +2 -2
- package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
- package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +2 -3
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +2 -3
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseWiFi.js +2 -2
- package/lib/components/ModelCompareV3/data/EnterpriseWiFi.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseWiFi.mjs +2 -2
- package/lib/components/ModelCompareV3/data/EnterpriseWiFi.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/MegaCapacityWiFI.js +4 -3
- package/lib/components/ModelCompareV3/data/MegaCapacityWiFI.js.map +1 -1
- package/lib/components/ModelCompareV3/data/MegaCapacityWiFI.mjs +4 -3
- package/lib/components/ModelCompareV3/data/MegaCapacityWiFI.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js +3 -10
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs +3 -10
- package/lib/components/ModelCompareV3/data/ProfessionalMaxSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/Switching.js +2 -3
- package/lib/components/ModelCompareV3/data/Switching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/Switching.mjs +2 -3
- package/lib/components/ModelCompareV3/data/Switching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/UispRouter.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/UispRouter.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/UispRouterPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/UispRouterPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -7
- package/lib/components/ModelCompareV3/data/products/aggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airFiber11.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airFiber11.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airFiber24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airFiber24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airFiber24HiDensity.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airFiber24HiDensity.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airFiber2X.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airFiber2X.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airFiber5.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airFiber5.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airMAX5GHz16dBi120Sector.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airMAX5GHz16dBi120Sector.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airMAX5GHz17dBi90Sector.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airMAX5GHz17dBi90Sector.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airMAX5GHz19dBi120Sector.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airMAX5GHz19dBi120Sector.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airMAX5GHz20dBi90Sector.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/airMAX5GHz20dBi90Sector.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/baseStationXG.js +7 -0
- package/lib/components/ModelCompareV3/data/products/baseStationXG.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/baseStationXG.mjs +7 -0
- package/lib/components/ModelCompareV3/data/products/baseStationXG.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/buildingBridge.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/buildingBridge.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/buildingBridgeXG.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/cloudKeyEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/e7.js +10 -3
- package/lib/components/ModelCompareV3/data/products/e7.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/e7.mjs +10 -3
- package/lib/components/ModelCompareV3/data/products/e7.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/e7Audience.js +10 -3
- package/lib/components/ModelCompareV3/data/products/e7Audience.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/e7Audience.mjs +10 -3
- package/lib/components/ModelCompareV3/data/products/e7Audience.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/e7Campus.js +11 -3
- package/lib/components/ModelCompareV3/data/products/e7Campus.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/e7Campus.mjs +11 -3
- package/lib/components/ModelCompareV3/data/products/e7Campus.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgePointR6.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgePointR6.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgePointR8.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgePointR8.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgePointS16Switch.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgePointS16Switch.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouter10x.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouter10x.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouter12.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouter12.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouter12p.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouter12p.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouter4.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouter4.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouter6Poe.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouter6Poe.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouterInfinity.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouterInfinity.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouterX.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouterX.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouterXSfp.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeRouterXSfp.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch10x.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch10x.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch10xp.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch10xp.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch16xg.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch16xg.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch16xp.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch16xp.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch16xpoe150.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch16xpoe150.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch18x.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch18x.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch24lite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch24lite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch24poe-500.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch24poe-500.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch24poe.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch24poe.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch48lite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch48lite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch48poe.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeSwitch48poe.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeswitch48poe-750.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeswitch48poe-750.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeswitch5xp.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeswitch5xp.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeswitch8poe.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/edgeswitch8poe.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/enterpriseCampus48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/fiberInstant.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/fiberInstant.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/fiberNanog.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/fiberNanog.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js +0 -7
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/highCapacityAggregation.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ltuExtremeRange.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ltuExtremeRange.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ltuLongRange.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ltuLongRange.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ltuPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/ltuPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.js +0 -7
- package/lib/components/ModelCompareV3/data/products/missionCritical.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/missionCritical.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/nanoStation5AC.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/nanoStation5AC.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/nanoStation5ACLoco.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/nanoStation5ACLoco.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/prismStation5AC.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/prismStation5AC.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax16.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax16.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax16PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax24.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax24.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax24PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax48.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax48.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/professionalMax48PoE.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js +0 -8
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs +0 -8
- package/lib/components/ModelCompareV3/data/products/switchesEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js +1 -10
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs +1 -10
- package/lib/components/ModelCompareV3/data/products/switchesProfessionalMax.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesStandard.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs +0 -7
- package/lib/components/ModelCompareV3/data/products/switchesStandard.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udb.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udbPro.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/uispSwitch.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/uispSwitch.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/properties/{crestronNaxNvxCertified.d.ts → extendedRangeMode6Ghz.d.ts} +1 -1
- package/lib/components/ModelCompareV3/data/properties/extendedRangeMode6Ghz.js +18 -0
- package/lib/components/ModelCompareV3/data/properties/extendedRangeMode6Ghz.js.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/extendedRangeMode6Ghz.mjs +10 -0
- package/lib/components/ModelCompareV3/data/properties/extendedRangeMode6Ghz.mjs.map +1 -0
- package/lib/components/ModelCompareV3/data/properties/index.d.ts +1 -1
- package/lib/components/ModelCompareV3/data/properties/index.js +2 -2
- package/lib/components/ModelCompareV3/data/properties/index.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.mjs +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.js +6 -5
- package/lib/components/ModelCompareV3/translations/ar.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ar.json.mjs +6 -5
- package/lib/components/ModelCompareV3/translations/ar.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.js +6 -5
- package/lib/components/ModelCompareV3/translations/de.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/de.json.mjs +6 -5
- package/lib/components/ModelCompareV3/translations/de.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.js +6 -5
- package/lib/components/ModelCompareV3/translations/el.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/el.json.mjs +6 -5
- package/lib/components/ModelCompareV3/translations/el.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.js +6 -8
- package/lib/components/ModelCompareV3/translations/en.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/en.json.mjs +6 -8
- package/lib/components/ModelCompareV3/translations/en.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.js +6 -5
- package/lib/components/ModelCompareV3/translations/es.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/es.json.mjs +6 -5
- package/lib/components/ModelCompareV3/translations/es.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.js +6 -5
- package/lib/components/ModelCompareV3/translations/fr.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/fr.json.mjs +6 -5
- package/lib/components/ModelCompareV3/translations/fr.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.js +6 -5
- package/lib/components/ModelCompareV3/translations/it.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/it.json.mjs +6 -5
- package/lib/components/ModelCompareV3/translations/it.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.js +7 -6
- package/lib/components/ModelCompareV3/translations/ja.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/ja.json.mjs +7 -6
- package/lib/components/ModelCompareV3/translations/ja.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js +6 -5
- package/lib/components/ModelCompareV3/translations/pt-BR.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs +6 -5
- package/lib/components/ModelCompareV3/translations/pt-BR.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/useModelCompareTranslation.d.ts +2 -2
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js +6 -5
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs +6 -5
- package/lib/components/ModelCompareV3/translations/zh-Hans.json.mjs.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js +6 -5
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.js.map +1 -1
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs +6 -5
- package/lib/components/ModelCompareV3/translations/zh-Hant-TW.json.mjs.map +1 -1
- package/lib/components/Pagination/Pagination.js.map +1 -1
- package/lib/components/Pagination/Pagination.mjs.map +1 -1
- package/lib/components/PriceRangeSlider/PriceRangeSlider.js.map +1 -1
- package/lib/components/PriceRangeSlider/PriceRangeSlider.mjs.map +1 -1
- package/lib/components/ProductCard/ProductCard.js.map +1 -1
- package/lib/components/ProductCard/ProductCard.mjs.map +1 -1
- package/lib/components/ProductCardPopup/ProductCardPopup.js.map +1 -1
- package/lib/components/ProductCardPopup/ProductCardPopup.mjs.map +1 -1
- package/lib/components/ProductGrid/ProductGrid.js.map +1 -1
- package/lib/components/ProductGrid/ProductGrid.mjs.map +1 -1
- 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.map +1 -1
- package/lib/components/ProductSectionTabs/ProductSectionTabs.mjs.map +1 -1
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.d.ts +2 -2
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.js.map +1 -1
- package/lib/components/ProductTechSpecs/ProductTechSpecs.styles.mjs.map +1 -1
- package/lib/components/ProductWizard/ProductWizard.js +1 -1
- package/lib/components/ProductWizard/ProductWizard.mjs +1 -1
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.js.map +1 -1
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.mjs.map +1 -1
- package/lib/components/QuantityInput/QuantityInput.js +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +1 -1
- package/lib/components/RelatedProducts/RelatedProducts.js.map +1 -1
- package/lib/components/RelatedProducts/RelatedProducts.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/ComputeResourceCalculator.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/HddSlots/HddSlots.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.styles.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/Layout.styles.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/Layout.styles.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerConfigurator.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs.map +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +2 -2
- package/lib/components/ScrollWrapper/ScrollWrapper.d.ts +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.js +16 -8
- package/lib/components/ScrollWrapper/ScrollWrapper.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs +16 -8
- package/lib/components/ScrollWrapper/ScrollWrapper.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.styles.js.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.styles.mjs.map +1 -1
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +2 -0
- package/lib/components/Search/Input/Input.d.ts +1 -1
- package/lib/components/Search/Input/Input.js +4 -4
- 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 +0 -1
- package/lib/components/Search/Input/Input.styles.js.map +1 -1
- package/lib/components/Search/Input/Input.styles.mjs +0 -1
- package/lib/components/Search/Input/Input.styles.mjs.map +1 -1
- package/lib/components/Search/Input/Input.types.d.ts +3 -2
- package/lib/components/Search/Modal/Modal.js.map +1 -1
- package/lib/components/Search/Modal/Modal.mjs.map +1 -1
- package/lib/components/SkeletonLoader/SkeletonLoaderTable/SkeletonLoaderTable.js.map +1 -1
- package/lib/components/SkeletonLoader/SkeletonLoaderTable/SkeletonLoaderTable.mjs.map +1 -1
- package/lib/components/StorageSliders/StorageSliders.utils.js.map +1 -1
- package/lib/components/StorageSliders/StorageSliders.utils.mjs.map +1 -1
- package/lib/components/StyleableSvgImage/StyleableSvgImage.js.map +1 -1
- package/lib/components/StyleableSvgImage/StyleableSvgImage.mjs.map +1 -1
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.js.map +1 -1
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.mjs.map +1 -1
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.js.map +1 -1
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.styles.mjs.map +1 -1
- package/lib/components/VariantSelector/Variant/Variant.js.map +1 -1
- package/lib/components/VariantSelector/Variant/Variant.mjs.map +1 -1
- package/lib/components/VariantSelector/VariantSelector.constants.js.map +1 -1
- package/lib/components/VariantSelector/VariantSelector.constants.mjs.map +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- 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/layout.js.map +1 -1
- package/lib/constants/layout.mjs.map +1 -1
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/lib/constants/postalCode.js.map +1 -1
- package/lib/constants/postalCode.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.d.ts +16 -0
- package/lib/constants/proStoreCategories/mapping/filters.js +16 -0
- package/lib/constants/proStoreCategories/mapping/filters.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/filters.mjs +16 -0
- package/lib/constants/proStoreCategories/mapping/filters.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.d.ts +1 -1
- package/lib/constants/proStoreCategories/mapping/index.js +15 -11
- package/lib/constants/proStoreCategories/mapping/index.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/index.mjs +15 -11
- package/lib/constants/proStoreCategories/mapping/index.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/mapping.d.ts +5 -0
- package/lib/constants/proStoreCategories/mapping/uisp.d.ts +0 -1
- package/lib/constants/proStoreCategories/mapping/uisp.js +0 -1
- package/lib/constants/proStoreCategories/mapping/uisp.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/uisp.mjs +0 -1
- package/lib/constants/proStoreCategories/mapping/uisp.mjs.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.d.ts +1 -0
- package/lib/constants/proStoreCategories/mapping/unifi.js +1 -0
- package/lib/constants/proStoreCategories/mapping/unifi.js.map +1 -1
- package/lib/constants/proStoreCategories/mapping/unifi.mjs +1 -0
- package/lib/constants/proStoreCategories/mapping/unifi.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.js +2 -5
- package/lib/constants/proStoreCategories/translations/ar.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ar.json.mjs +3 -5
- package/lib/constants/proStoreCategories/translations/ar.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.js +2 -5
- package/lib/constants/proStoreCategories/translations/de.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/de.json.mjs +3 -5
- package/lib/constants/proStoreCategories/translations/de.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.js +3 -6
- package/lib/constants/proStoreCategories/translations/el.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/el.json.mjs +4 -6
- package/lib/constants/proStoreCategories/translations/el.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.js +1 -1
- package/lib/constants/proStoreCategories/translations/en.json.mjs +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.js +2 -5
- package/lib/constants/proStoreCategories/translations/es.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/es.json.mjs +3 -5
- package/lib/constants/proStoreCategories/translations/es.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/fr.json.js +2 -2
- package/lib/constants/proStoreCategories/translations/fr.json.mjs +2 -2
- package/lib/constants/proStoreCategories/translations/it.json.js +2 -5
- package/lib/constants/proStoreCategories/translations/it.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/it.json.mjs +3 -5
- package/lib/constants/proStoreCategories/translations/it.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.js +2 -5
- package/lib/constants/proStoreCategories/translations/ja.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/ja.json.mjs +3 -5
- package/lib/constants/proStoreCategories/translations/ja.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js +2 -5
- package/lib/constants/proStoreCategories/translations/pt-BR.json.js.map +1 -1
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs +3 -5
- package/lib/constants/proStoreCategories/translations/pt-BR.json.mjs.map +1 -1
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.js +2 -2
- package/lib/constants/proStoreCategories/translations/zh-Hans.json.mjs +2 -2
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.js +2 -2
- package/lib/constants/proStoreCategories/translations/zh-Hant-TW.json.mjs +2 -2
- package/lib/constants/proStoreFilters/mapping.d.ts +33 -7
- package/lib/constants/proStoreFilters/mapping.js +108 -14
- package/lib/constants/proStoreFilters/mapping.js.map +1 -1
- package/lib/constants/proStoreFilters/mapping.mjs +108 -14
- package/lib/constants/proStoreFilters/mapping.mjs.map +1 -1
- package/lib/constants/theme.js +4 -0
- package/lib/constants/theme.js.map +1 -1
- package/lib/constants/theme.mjs +4 -0
- package/lib/constants/theme.mjs.map +1 -1
- package/lib/contexts/MenuContext/context.js +1 -1
- 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/contexts/MenuContext/utils.js.map +1 -1
- package/lib/contexts/MenuContext/utils.mjs.map +1 -1
- package/lib/helpers/index.d.ts +0 -1
- package/lib/helpers/index.js +0 -11
- package/lib/helpers/index.js.map +1 -1
- package/lib/helpers/index.mjs +0 -1
- package/lib/helpers/index.mjs.map +1 -1
- package/lib/helpers/time.js.map +1 -1
- package/lib/helpers/time.mjs.map +1 -1
- package/lib/helpers/ux.d.ts +9 -1
- package/lib/helpers/ux.js +15 -0
- package/lib/helpers/ux.js.map +1 -1
- package/lib/helpers/ux.mjs +15 -1
- package/lib/helpers/ux.mjs.map +1 -1
- package/lib/hooks/useTranslation.js.map +1 -1
- package/lib/hooks/useTranslation.mjs.map +1 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/index.js +0 -2
- package/lib/types/index.js.map +1 -1
- package/lib/types/index.mjs +0 -1
- package/lib/types/index.mjs.map +1 -1
- package/lib/utils/address.d.ts +62 -278
- package/lib/utils/address.js +8 -11
- package/lib/utils/address.js.map +1 -1
- package/lib/utils/address.mjs +8 -11
- package/lib/utils/address.mjs.map +1 -1
- package/lib/utils/array.d.ts +0 -4
- package/lib/utils/array.js +0 -10
- package/lib/utils/array.js.map +1 -1
- package/lib/utils/array.mjs +1 -10
- package/lib/utils/array.mjs.map +1 -1
- package/lib/utils/money/allocators/fixedAmount.js.map +1 -1
- package/lib/utils/money/allocators/fixedAmount.mjs.map +1 -1
- package/lib/utils/money/format.js +1 -2
- package/lib/utils/money/format.js.map +1 -1
- package/lib/utils/money/format.mjs +1 -2
- package/lib/utils/money/format.mjs.map +1 -1
- package/lib/utils/money/misc.js.map +1 -1
- package/lib/utils/money/misc.mjs.map +1 -1
- package/lib/utils/nextjs/createInlineScript.js.map +1 -1
- package/lib/utils/nextjs/createInlineScript.mjs.map +1 -1
- package/lib/utils/nextjs/index.d.ts +0 -3
- package/lib/utils/nextjs/index.js +0 -5
- package/lib/utils/nextjs/index.js.map +1 -1
- package/lib/utils/nextjs/index.mjs +0 -3
- package/lib/utils/nextjs/index.mjs.map +1 -1
- package/lib/utils/nextjs/stringifyForInject.js.map +1 -1
- package/lib/utils/nextjs/stringifyForInject.mjs.map +1 -1
- package/lib/utils/number.js.map +1 -1
- package/lib/utils/number.mjs.map +1 -1
- package/lib/utils/tax/brazil.js.map +1 -1
- package/lib/utils/tax/brazil.mjs.map +1 -1
- package/lib/utils/wattage.js.map +1 -1
- package/lib/utils/wattage.mjs.map +1 -1
- package/package.json +1 -3
- package/lib/assets/crestron.svg +0 -3
- package/lib/assets/icons/menu/icon-globe.svg.js +0 -27
- package/lib/assets/icons/menu/icon-globe.svg.js.map +0 -1
- package/lib/assets/icons/menu/icon-globe.svg.mjs +0 -3
- package/lib/assets/icons/menu/icon-globe.svg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/assets/crestron.svg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/crestron.svg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/crestron.svg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js +0 -18
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.js.map +0 -1
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs +0 -10
- package/lib/components/ModelCompareV3/data/properties/crestronNaxNvxCertified.mjs.map +0 -1
- package/lib/helpers/product.d.ts +0 -87
- package/lib/helpers/product.js +0 -346
- package/lib/helpers/product.js.map +0 -1
- package/lib/helpers/product.mjs +0 -335
- package/lib/helpers/product.mjs.map +0 -1
- package/lib/helpers/product.test.d.ts +0 -1
- package/lib/types/product.d.ts +0 -87
- package/lib/types/product.js +0 -14
- package/lib/types/product.js.map +0 -1
- package/lib/types/product.mjs +0 -13
- package/lib/types/product.mjs.map +0 -1
- package/lib/utils/nextjs/patch.d.ts +0 -1
- package/lib/utils/nextjs/patch.js +0 -53
- package/lib/utils/nextjs/patch.js.map +0 -1
- package/lib/utils/nextjs/patch.mjs +0 -41
- package/lib/utils/nextjs/patch.mjs.map +0 -1
- package/lib/utils/nextjs/plugin.d.ts +0 -14
- package/lib/utils/nextjs/plugin.js +0 -41
- package/lib/utils/nextjs/plugin.js.map +0 -1
- package/lib/utils/nextjs/plugin.mjs +0 -39
- package/lib/utils/nextjs/plugin.mjs.map +0 -1
- package/lib/utils/nextjs/ssr/constants.d.ts +0 -8
- package/lib/utils/nextjs/ssr/constants.js +0 -8
- package/lib/utils/nextjs/ssr/constants.js.map +0 -1
- package/lib/utils/nextjs/ssr/constants.mjs +0 -6
- package/lib/utils/nextjs/ssr/constants.mjs.map +0 -1
- package/lib/utils/nextjs/ssr/registry.d.ts +0 -52
- package/lib/utils/nextjs/ssr/registry.js +0 -22
- package/lib/utils/nextjs/ssr/registry.js.map +0 -1
- package/lib/utils/nextjs/ssr/registry.mjs +0 -20
- package/lib/utils/nextjs/ssr/registry.mjs.map +0 -1
- package/lib/utils/nextjs/ssr/style-inject.d.ts +0 -21
- package/lib/utils/nextjs/ssr/style-inject.js +0 -47
- package/lib/utils/nextjs/ssr/style-inject.js.map +0 -1
- package/lib/utils/nextjs/ssr/style-inject.mjs +0 -43
- package/lib/utils/nextjs/ssr/style-inject.mjs.map +0 -1
- package/lib/utils/nextjs/ssr/transform-css-module.d.ts +0 -11
- package/lib/utils/nextjs/ssr/transform-css-module.js +0 -115
- package/lib/utils/nextjs/ssr/transform-css-module.js.map +0 -1
- package/lib/utils/nextjs/ssr/transform-css-module.mjs +0 -87
- package/lib/utils/nextjs/ssr/transform-css-module.mjs.map +0 -1
- package/lib/utils/nextjs/ssr/transform-css-module.test.d.ts +0 -1
- package/lib/utils/nextjs/ssr/types.d.ts +0 -10
- package/lib/utils/productSort.d.ts +0 -41
- package/lib/utils/productSort.js +0 -67
- package/lib/utils/productSort.js.map +0 -1
- package/lib/utils/productSort.mjs +0 -60
- package/lib/utils/productSort.mjs.map +0 -1
- package/lib/utils/validations/lastNameSuperRefinement.d.ts +0 -11
- package/lib/utils/validations/lastNameSuperRefinement.js +0 -25
- package/lib/utils/validations/lastNameSuperRefinement.js.map +0 -1
- package/lib/utils/validations/lastNameSuperRefinement.mjs +0 -21
- package/lib/utils/validations/lastNameSuperRefinement.mjs.map +0 -1
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { transformSync } from '@babel/core';
|
|
2
|
-
import { sync } from 'glob';
|
|
3
|
-
import fs from 'node:fs';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import { transformCssModule } from './ssr/transform-css-module.mjs';
|
|
6
|
-
"use strict";
|
|
7
|
-
function patchUiComponentsAndIcons() {
|
|
8
|
-
const uiComponentsPath = path.dirname(require.resolve("@ubnt/ui-components"));
|
|
9
|
-
const ourStyleInjectPath = path.resolve(__dirname, "./ssr/style-inject.mjs");
|
|
10
|
-
const originalStyleInjectPath = path.resolve(uiComponentsPath, "./docs/helpers/style-inject.es.js");
|
|
11
|
-
fs.copyFileSync(ourStyleInjectPath, originalStyleInjectPath);
|
|
12
|
-
const files = sync("**/*.module.css.js", {
|
|
13
|
-
cwd: uiComponentsPath,
|
|
14
|
-
absolute: true
|
|
15
|
-
});
|
|
16
|
-
for (const file of files) {
|
|
17
|
-
const code = fs.readFileSync(path.resolve(file), {
|
|
18
|
-
encoding: "utf-8"
|
|
19
|
-
});
|
|
20
|
-
if (!code) {
|
|
21
|
-
throw new Error(`Failed to read file: ${file}`);
|
|
22
|
-
}
|
|
23
|
-
const output = transformSync(code, {
|
|
24
|
-
plugins: [transformCssModule],
|
|
25
|
-
filename: file,
|
|
26
|
-
// Ignore .babelrc and babel.config.js for isolate testing of transformation
|
|
27
|
-
babelrc: false,
|
|
28
|
-
configFile: false,
|
|
29
|
-
sourceMaps: false
|
|
30
|
-
// Disable source maps for easier comparison
|
|
31
|
-
})?.code;
|
|
32
|
-
if (!output) {
|
|
33
|
-
throw new Error(`Failed to transform file: ${file}`);
|
|
34
|
-
}
|
|
35
|
-
fs.writeFileSync(file, output, {
|
|
36
|
-
encoding: "utf-8"
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
export { patchUiComponentsAndIcons as default };
|
|
41
|
-
//# sourceMappingURL=patch.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"patch.mjs","sources":["../../../src/utils/nextjs/patch.ts"],"sourcesContent":["import { transformSync } from \"@babel/core\";\nimport { sync as globSync } from \"glob\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\n\nimport { transformCssModule } from \"./ssr/transform-css-module\";\n\n// #############################################################################\n// Fix @ubnt/icons bundle issue\n// Noticed using `npm run build:analyze` that server and _middleware builds included ~1MB @ubnt/icons even tho' it\n// isn't used. So analyzed it a bit and traced it down to being an issue with how @ubnt/icons are packaged.\n// Ideally @ubnt/icons should be fixed, but as a temporary solution we can use this script to fix it\n// #############################################################################\nexport default function patchUiComponentsAndIcons() {\n // const uiIconsPath = path.dirname(require.resolve(\"@ubnt/icons\"));\n const uiComponentsPath = path.dirname(require.resolve(\"@ubnt/ui-components\"));\n\n // // #############################################################################\n // // Fix package.json\n // // #############################################################################\n // const uiIconPkgJsonPath = path.resolve(uiIconsPath, \"./package.json\");\n // const uiIconPkgJson = JSON.parse(fs.readFileSync(uiIconPkgJsonPath, \"utf-8\"));\n\n // // Convert package from commonjs to module as it uses `exports` syntax but isn't marked as module thus the bundler\n // // opts out of certain optimizations\n // // Based on https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-move-my-commonjs-project-to-esm\n // delete uiIconPkgJson.main;\n // uiIconPkgJson.type = \"module\";\n // uiIconPkgJson.exports = {\n // \".\": \"./index.js\",\n // \"./*\": \"./*.js\",\n // };\n\n // // Mark that package doesn't have side-effects, it already had this but, just in case attempt to add it again\n // uiIconPkgJson.sideEffects = false;\n\n // // Update the file\n // fs.writeFileSync(uiIconPkgJsonPath, JSON.stringify(uiIconPkgJson, null, 2));\n\n // // #############################################################################\n // // Reimplement index.js file, as it reimplements same icon instead of re-exporting it, thus creating duplicate code\n // // So it was:\n // // const a = /* ...*/\n // // const b = /* ...*/\n // // exports { a as UiIconA, b as UiIconB };\n // //\n // // But it should be:\n // // export {default as UiIconA} from './UiIconA.js';\n // // export {default as UiIconB} from './UiIconB.js';\n // //\n // // To fix that we list all icon files and create a index.js from the ground where a re-export things\n // // #############################################################################\n // // Find all icon files - right now all files that end with .js\n // const uiIconsFilesRaw = fs.readdirSync(uiIconsPath);\n // const filesToExclude = [\"index.js\"];\n // const uiIconsFiles = uiIconsFilesRaw.filter(\n // (file) => file.endsWith(\".js\") && !filesToExclude.includes(file),\n // );\n\n // // Create content of new file\n // const newIndexJs = uiIconsFiles\n // .map((fileWithExtension) => {\n // const file = path.parse(fileWithExtension).name;\n // return `export {default as ${file}} from \"./${fileWithExtension}\";`;\n // })\n // .join(\"\\n\");\n\n // // Overwrite the current file\n // fs.writeFileSync(path.join(uiIconsPath, \"index.js\"), newIndexJs);\n\n // // #############################################################################\n // // Fix @ubnt/ui-components package.json\n // // #############################################################################\n // const uiComponentsPkgJsonPath = path.resolve(\n // uiComponentsIconsPath,\n // \"./package.json\",\n // );\n // const uiComponentsPkgJson = JSON.parse(\n // fs.readFileSync(uiComponentsPkgJsonPath, \"utf-8\"),\n // );\n\n // // Convert package from commonjs to module as it uses `exports` syntax but isn't marked as module thus the bundler\n // // opts out of certain optimizations\n // // Based on https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#how-can-i-move-my-commonjs-project-to-esm\n // // delete uiComponentsPkgJson.main;\n // // \"main\": \"index.js\",\n // uiComponentsPkgJson.type = \"module\";\n // // uiComponentsPkgJson.exports = {\n // // \".\": \"./index.js\",\n // // \"./*\": \"*/index.js\",\n // // \"./styles/normalize.css\": \"./styles/normalize.css\"\n // // };\n\n // // Update the file\n // fs.writeFileSync(\n // uiComponentsPkgJsonPath,\n // JSON.stringify(uiComponentsPkgJson, null, 2),\n // );\n\n // #############################################################################\n // Replace `@ubnt/ui-components/docs/helpers/style-inject.es.js` with our own SSR compatible version\n // #############################################################################\n // Using mjs version as it doesn't have extra unneeded module-->cjs fluff\n const ourStyleInjectPath = path.resolve(__dirname, \"./ssr/style-inject.mjs\");\n const originalStyleInjectPath = path.resolve(\n uiComponentsPath,\n \"./docs/helpers/style-inject.es.js\",\n );\n // FIXME: minify our file\n fs.copyFileSync(ourStyleInjectPath, originalStyleInjectPath);\n\n // #############################################################################\n // Transform all `@ubnt/ui-components/**/*.module.css.js` files\n // #############################################################################\n const files = globSync(\"**/*.module.css.js\", {\n cwd: uiComponentsPath,\n absolute: true,\n });\n\n for (const file of files) {\n const code = fs.readFileSync(path.resolve(file), { encoding: \"utf-8\" });\n if (!code) {\n throw new Error(`Failed to read file: ${file}`);\n }\n const output = transformSync(code, {\n plugins: [transformCssModule],\n filename: file,\n // Ignore .babelrc and babel.config.js for isolate testing of transformation\n babelrc: false,\n configFile: false,\n sourceMaps: false, // Disable source maps for easier comparison\n })?.code;\n if (!output) {\n throw new Error(`Failed to transform file: ${file}`);\n }\n fs.writeFileSync(file, output, { encoding: \"utf-8\" });\n }\n}\n"],"names":["patchUiComponentsAndIcons","uiComponentsPath","path","dirname","require","resolve","ourStyleInjectPath","__dirname","originalStyleInjectPath","fs","copyFileSync","files","globSync","cwd","absolute","file","code","readFileSync","encoding","Error","output","transformSync","plugins","transformCssModule","filename","babelrc","configFile","sourceMaps","writeFileSync"],"mappings":";;;;;;AAaA,SAAwBA,yBAA4BA,CAAA,EAAA;EAElD,MAAMC,mBAAmBC,IAAK,CAAAC,OAAA,CAAQC,OAAQ,CAAAC,OAAA,CAAQ,qBAAqB,CAAC,CAAA;EAwF5E,MAAMC,kBAAqB,GAAAJ,IAAA,CAAKG,OAAQ,CAAAE,SAAA,EAAW,wBAAwB,CAAA;EAC3E,MAAMC,0BAA0BN,IAAK,CAAAG,OAAA,CACnCJ,gBAAA,EACA,mCAAA,CACF;EAEGQ,EAAA,CAAAC,YAAA,CAAaJ,oBAAoBE,uBAAuB,CAAA;EAKrD,MAAAG,KAAA,GAAQC,KAAS,oBAAsB,EAAA;IAC3CC,GAAK,EAAAZ,gBAAA;IACLa,QAAU,EAAA;EAAA,CACX,CAAA;EAED,KAAA,MAAWC,QAAQJ,KAAO,EAAA;IAClB,MAAAK,IAAA,GAAOP,EAAG,CAAAQ,YAAA,CAAaf,IAAK,CAAAG,OAAA,CAAQU,IAAI,CAAG,EAAA;MAAEG,QAAU,EAAA;IAAA,CAAS,CAAA;IACtE,IAAI,CAACF,IAAM,EAAA;MACT,MAAM,IAAIG,KAAA,CAAM,wBAAwBJ,IAAI,EAAE,CAAA;IAChD;IACM,MAAAK,MAAA,GAASC,cAAcL,IAAM,EAAA;MACjCM,OAAA,EAAS,CAACC,kBAAkB,CAAA;MAC5BC,QAAU,EAAAT,IAAA;MAAA;MAEVU,OAAS,EAAA,KAAA;MACTC,UAAY,EAAA,KAAA;MACZC,UAAY,EAAA;MAAA;IACb,CAAA,CAAG,EAAAX,IAAA;IACJ,IAAI,CAACI,MAAQ,EAAA;MACX,MAAM,IAAID,KAAA,CAAM,6BAA6BJ,IAAI,EAAE,CAAA;IACrD;IACAN,EAAA,CAAGmB,cAAcb,IAAM,EAAAK,MAAA,EAAQ;MAAEF,QAAA,EAAU;KAAS,CAAA;EACtD;AACF;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { NextConfig } from "next";
|
|
2
|
-
export type WithUbntLibrariesConfig = {
|
|
3
|
-
/**
|
|
4
|
-
* ESM Modules to transpile
|
|
5
|
-
*/
|
|
6
|
-
transpilePackages?: string[];
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Next.config.js plugin to enable support for @ubnt/ui-components, @ubnt/icons, @ubnt/store.core and other common
|
|
10
|
-
* patterns for next.js projects
|
|
11
|
-
*
|
|
12
|
-
* ! Don't forget about adding SSR registry, see `./registry.tsx` for more info!
|
|
13
|
-
*/
|
|
14
|
-
export declare function withUbntLibraries(options?: WithUbntLibrariesConfig): (nextConfig: NextConfig) => NextConfig;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var array = require('../array.js');
|
|
4
|
-
var patch = require('./patch.js');
|
|
5
|
-
"use strict";
|
|
6
|
-
function withUbntLibraries(options) {
|
|
7
|
-
patch["default"]();
|
|
8
|
-
const transpilePackages = [
|
|
9
|
-
// Extra libs
|
|
10
|
-
...(options?.transpilePackages ?? []),
|
|
11
|
-
// Core repos
|
|
12
|
-
"@ubnt/ui-components", "@ubnt/icons", "@ubnt/store.core",
|
|
13
|
-
// Additional dependencies needed for @ubnt/ui-components, @ubnt/store.core, ...
|
|
14
|
-
"lodash-es", "styled-components", "react-use", "convert-units"
|
|
15
|
-
// Currently as of 3.0.0-beta.5 caused prod build issues on consumer projects
|
|
16
|
-
];
|
|
17
|
-
return nextConfig => {
|
|
18
|
-
if (!nextConfig.experimental) {
|
|
19
|
-
nextConfig.experimental = {};
|
|
20
|
-
}
|
|
21
|
-
nextConfig.experimental.optimizePackageImports = array.dedupe([...(nextConfig.experimental.optimizePackageImports ?? []), ...transpilePackages]);
|
|
22
|
-
nextConfig.transpilePackages = array.dedupe([...(nextConfig.transpilePackages ?? []), ...transpilePackages]);
|
|
23
|
-
nextConfig.experimental.esmExternals = "loose";
|
|
24
|
-
const oldWebpackFn = nextConfig.webpack;
|
|
25
|
-
nextConfig.webpack = (webpackConfig, options2) => {
|
|
26
|
-
if (oldWebpackFn) {
|
|
27
|
-
webpackConfig = oldWebpackFn(webpackConfig, options2);
|
|
28
|
-
}
|
|
29
|
-
const jsExtIndex = webpackConfig.resolve.extensions.indexOf(".js");
|
|
30
|
-
const mjsExtIndex = webpackConfig.resolve.extensions.indexOf(".mjs");
|
|
31
|
-
if (jsExtIndex !== -1 && mjsExtIndex !== -1 && mjsExtIndex > jsExtIndex) {
|
|
32
|
-
webpackConfig.resolve.extensions[jsExtIndex] = ".mjs";
|
|
33
|
-
webpackConfig.resolve.extensions[mjsExtIndex] = ".js";
|
|
34
|
-
}
|
|
35
|
-
return webpackConfig;
|
|
36
|
-
};
|
|
37
|
-
return nextConfig;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
exports.withUbntLibraries = withUbntLibraries;
|
|
41
|
-
//# sourceMappingURL=plugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sources":["../../../src/utils/nextjs/plugin.ts"],"sourcesContent":["import type { NextConfig } from \"next\";\n\nimport { dedupe } from \"../array\";\nimport patchUiComponentsAndIcons from \"./patch\";\n\nexport type WithUbntLibrariesConfig = {\n /**\n * ESM Modules to transpile\n */\n transpilePackages?: string[];\n};\n\n/**\n * Next.config.js plugin to enable support for @ubnt/ui-components, @ubnt/icons, @ubnt/store.core and other common\n * patterns for next.js projects\n *\n * ! Don't forget about adding SSR registry, see `./registry.tsx` for more info!\n */\nexport function withUbntLibraries(options?: WithUbntLibrariesConfig) {\n /**\n * Run script that patches `@ubnt/ui-components` and `@ubnt/icons` files\n */\n patchUiComponentsAndIcons();\n\n const transpilePackages = [\n // Extra libs\n ...(options?.transpilePackages ?? []),\n // Core repos\n \"@ubnt/ui-components\",\n \"@ubnt/icons\",\n \"@ubnt/store.core\",\n // Additional dependencies needed for @ubnt/ui-components, @ubnt/store.core, ...\n \"lodash-es\",\n \"styled-components\",\n \"react-use\",\n \"convert-units\", // Currently as of 3.0.0-beta.5 caused prod build issues on consumer projects\n ];\n\n return (nextConfig: NextConfig): NextConfig => {\n /**\n * Needed to transpile `@ubnt/ui-components` and `@ubnt/icons` packages as they are packaged as ESM modules\n * @see https://nextjs.org/docs/app/api-reference/next-config-js/optimizePackageImports\n */\n if (!nextConfig.experimental) {\n nextConfig.experimental = {};\n }\n nextConfig.experimental.optimizePackageImports = dedupe([\n ...(nextConfig.experimental.optimizePackageImports ?? []),\n ...transpilePackages,\n ]);\n nextConfig.transpilePackages = dedupe([\n ...(nextConfig.transpilePackages ?? []),\n ...transpilePackages,\n ]);\n\n /**\n * Solution to fix `@ubnt/store.core` using ui-components which is \"esm+module\" mix-match and fix following error:\n *\n * ./node_modules/@ubnt/store.core/lib/components/VariantSelector/VariantSelector.styles.js\n * Module not found: ESM packages (@ubnt/ui-components/Button) need to be imported. Use 'import' to reference the\n * package instead. https://nextjs.org/docs/messages/import-esm-externals\n *\n * @see https://nextjs.org/docs/messages/import-esm-externals\n */\n nextConfig.experimental.esmExternals = \"loose\";\n\n /**\n * Needed only to resolve issue with SSR for @ubnt/store.core package using @ubnt/ui-components as they are\n * packaged as CJS while it's actually MJS.\n * In order to fix the issue we to flip how next.js resolved modules for Node.js SSR builds, so we split ordering so\n * .mjs which our @ubnt/store.core has is a preferred over CJS\n * @see https://github.com/vercel/next.js/blob/canary/packages/next/build/webpack-config.ts#L875\n */\n const oldWebpackFn = nextConfig.webpack;\n nextConfig.webpack = (webpackConfig, options) => {\n if (oldWebpackFn) {\n webpackConfig = oldWebpackFn(webpackConfig, options);\n }\n\n const jsExtIndex = webpackConfig.resolve.extensions.indexOf(\".js\");\n const mjsExtIndex = webpackConfig.resolve.extensions.indexOf(\".mjs\");\n if (jsExtIndex !== -1 && mjsExtIndex !== -1 && mjsExtIndex > jsExtIndex) {\n webpackConfig.resolve.extensions[jsExtIndex] = \".mjs\";\n webpackConfig.resolve.extensions[mjsExtIndex] = \".js\";\n }\n\n return webpackConfig;\n };\n\n return nextConfig;\n };\n}\n"],"names":["withUbntLibraries","options","patchUiComponentsAndIcons","transpilePackages","nextConfig","experimental","optimizePackageImports","dedupe","esmExternals","oldWebpackFn","webpack","webpackConfig","jsExtIndex","resolve","extensions","indexOf","mjsExtIndex"],"mappings":";;;;;AAkBO,SAASA,kBAAkBC,OAAmC,EAAA;EAIzCC,KAAAA,CAAAA,SAAAA,CAAA,EAAA;EAE1B,MAAMC,iBAAoB,GAAA;EAAA;EAExB,IAAIF,OAAS,EAAAE,iBAAA,IAAqB,EAAC;EAAA;EAEnC,qBAAA,EACA,aAAA,EACA,kBAAA;EAAA;EAEA,WAAA,EACA,mBAAA,EACA,WAAA,EACA;EAAA;EAAA,CACF;EAEA,OAAQC,UAAuC,IAAA;IAKzC,IAAA,CAACA,WAAWC,YAAc,EAAA;MAC5BD,UAAA,CAAWC,eAAe,EAAC;IAC7B;IACWD,UAAA,CAAAC,YAAA,CAAaC,yBAAyBC,YAAO,CAAA,CACtD,IAAIH,UAAA,CAAWC,YAAa,CAAAC,sBAAA,IAA0B,EAAC,GACvD,GAAGH,iBAAA,CACJ,CAAA;IACDC,UAAA,CAAWD,oBAAoBI,YAAO,CAAA,CACpC,IAAIH,UAAW,CAAAD,iBAAA,IAAqB,EAAC,GACrC,GAAGA,iBAAA,CACJ,CAAA;IAWDC,UAAA,CAAWC,aAAaG,YAAe,GAAA,OAAA;IASvC,MAAMC,eAAeL,UAAW,CAAAM,OAAA;IACrBN,UAAA,CAAAM,OAAA,GAAU,CAACC,aAAA,EAAeV,QAAY,KAAA;MAC/C,IAAIQ,YAAc,EAAA;QACAE,aAAA,GAAAF,YAAA,CAAaE,eAAeV,QAAO,CAAA;MACrD;MAEA,MAAMW,UAAa,GAAAD,aAAA,CAAcE,OAAQ,CAAAC,UAAA,CAAWC,QAAQ,KAAK,CAAA;MACjE,MAAMC,WAAc,GAAAL,aAAA,CAAcE,OAAQ,CAAAC,UAAA,CAAWC,QAAQ,MAAM,CAAA;MACnE,IAAIH,UAAe,KAAA,CAAA,CAAA,IAAMI,WAAgB,KAAA,CAAA,CAAA,IAAMA,cAAcJ,UAAY,EAAA;QACzDD,aAAA,CAAAE,OAAA,CAAQC,UAAW,CAAAF,UAAU,CAAI,GAAA,MAAA;QACjCD,aAAA,CAAAE,OAAA,CAAQC,UAAW,CAAAE,WAAW,CAAI,GAAA,KAAA;MAClD;MAEO,OAAAL,aAAA;IAAA,CACT;IAEO,OAAAP,UAAA;EAAA,CACT;AACF;"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { dedupe } from '../array.mjs';
|
|
2
|
-
import patchUiComponentsAndIcons from './patch.mjs';
|
|
3
|
-
"use strict";
|
|
4
|
-
function withUbntLibraries(options) {
|
|
5
|
-
patchUiComponentsAndIcons();
|
|
6
|
-
const transpilePackages = [
|
|
7
|
-
// Extra libs
|
|
8
|
-
...(options?.transpilePackages ?? []),
|
|
9
|
-
// Core repos
|
|
10
|
-
"@ubnt/ui-components", "@ubnt/icons", "@ubnt/store.core",
|
|
11
|
-
// Additional dependencies needed for @ubnt/ui-components, @ubnt/store.core, ...
|
|
12
|
-
"lodash-es", "styled-components", "react-use", "convert-units"
|
|
13
|
-
// Currently as of 3.0.0-beta.5 caused prod build issues on consumer projects
|
|
14
|
-
];
|
|
15
|
-
return nextConfig => {
|
|
16
|
-
if (!nextConfig.experimental) {
|
|
17
|
-
nextConfig.experimental = {};
|
|
18
|
-
}
|
|
19
|
-
nextConfig.experimental.optimizePackageImports = dedupe([...(nextConfig.experimental.optimizePackageImports ?? []), ...transpilePackages]);
|
|
20
|
-
nextConfig.transpilePackages = dedupe([...(nextConfig.transpilePackages ?? []), ...transpilePackages]);
|
|
21
|
-
nextConfig.experimental.esmExternals = "loose";
|
|
22
|
-
const oldWebpackFn = nextConfig.webpack;
|
|
23
|
-
nextConfig.webpack = (webpackConfig, options2) => {
|
|
24
|
-
if (oldWebpackFn) {
|
|
25
|
-
webpackConfig = oldWebpackFn(webpackConfig, options2);
|
|
26
|
-
}
|
|
27
|
-
const jsExtIndex = webpackConfig.resolve.extensions.indexOf(".js");
|
|
28
|
-
const mjsExtIndex = webpackConfig.resolve.extensions.indexOf(".mjs");
|
|
29
|
-
if (jsExtIndex !== -1 && mjsExtIndex !== -1 && mjsExtIndex > jsExtIndex) {
|
|
30
|
-
webpackConfig.resolve.extensions[jsExtIndex] = ".mjs";
|
|
31
|
-
webpackConfig.resolve.extensions[mjsExtIndex] = ".js";
|
|
32
|
-
}
|
|
33
|
-
return webpackConfig;
|
|
34
|
-
};
|
|
35
|
-
return nextConfig;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export { withUbntLibraries };
|
|
39
|
-
//# sourceMappingURL=plugin.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.mjs","sources":["../../../src/utils/nextjs/plugin.ts"],"sourcesContent":["import type { NextConfig } from \"next\";\n\nimport { dedupe } from \"../array\";\nimport patchUiComponentsAndIcons from \"./patch\";\n\nexport type WithUbntLibrariesConfig = {\n /**\n * ESM Modules to transpile\n */\n transpilePackages?: string[];\n};\n\n/**\n * Next.config.js plugin to enable support for @ubnt/ui-components, @ubnt/icons, @ubnt/store.core and other common\n * patterns for next.js projects\n *\n * ! Don't forget about adding SSR registry, see `./registry.tsx` for more info!\n */\nexport function withUbntLibraries(options?: WithUbntLibrariesConfig) {\n /**\n * Run script that patches `@ubnt/ui-components` and `@ubnt/icons` files\n */\n patchUiComponentsAndIcons();\n\n const transpilePackages = [\n // Extra libs\n ...(options?.transpilePackages ?? []),\n // Core repos\n \"@ubnt/ui-components\",\n \"@ubnt/icons\",\n \"@ubnt/store.core\",\n // Additional dependencies needed for @ubnt/ui-components, @ubnt/store.core, ...\n \"lodash-es\",\n \"styled-components\",\n \"react-use\",\n \"convert-units\", // Currently as of 3.0.0-beta.5 caused prod build issues on consumer projects\n ];\n\n return (nextConfig: NextConfig): NextConfig => {\n /**\n * Needed to transpile `@ubnt/ui-components` and `@ubnt/icons` packages as they are packaged as ESM modules\n * @see https://nextjs.org/docs/app/api-reference/next-config-js/optimizePackageImports\n */\n if (!nextConfig.experimental) {\n nextConfig.experimental = {};\n }\n nextConfig.experimental.optimizePackageImports = dedupe([\n ...(nextConfig.experimental.optimizePackageImports ?? []),\n ...transpilePackages,\n ]);\n nextConfig.transpilePackages = dedupe([\n ...(nextConfig.transpilePackages ?? []),\n ...transpilePackages,\n ]);\n\n /**\n * Solution to fix `@ubnt/store.core` using ui-components which is \"esm+module\" mix-match and fix following error:\n *\n * ./node_modules/@ubnt/store.core/lib/components/VariantSelector/VariantSelector.styles.js\n * Module not found: ESM packages (@ubnt/ui-components/Button) need to be imported. Use 'import' to reference the\n * package instead. https://nextjs.org/docs/messages/import-esm-externals\n *\n * @see https://nextjs.org/docs/messages/import-esm-externals\n */\n nextConfig.experimental.esmExternals = \"loose\";\n\n /**\n * Needed only to resolve issue with SSR for @ubnt/store.core package using @ubnt/ui-components as they are\n * packaged as CJS while it's actually MJS.\n * In order to fix the issue we to flip how next.js resolved modules for Node.js SSR builds, so we split ordering so\n * .mjs which our @ubnt/store.core has is a preferred over CJS\n * @see https://github.com/vercel/next.js/blob/canary/packages/next/build/webpack-config.ts#L875\n */\n const oldWebpackFn = nextConfig.webpack;\n nextConfig.webpack = (webpackConfig, options) => {\n if (oldWebpackFn) {\n webpackConfig = oldWebpackFn(webpackConfig, options);\n }\n\n const jsExtIndex = webpackConfig.resolve.extensions.indexOf(\".js\");\n const mjsExtIndex = webpackConfig.resolve.extensions.indexOf(\".mjs\");\n if (jsExtIndex !== -1 && mjsExtIndex !== -1 && mjsExtIndex > jsExtIndex) {\n webpackConfig.resolve.extensions[jsExtIndex] = \".mjs\";\n webpackConfig.resolve.extensions[mjsExtIndex] = \".js\";\n }\n\n return webpackConfig;\n };\n\n return nextConfig;\n };\n}\n"],"names":["withUbntLibraries","options","patchUiComponentsAndIcons","transpilePackages","nextConfig","experimental","optimizePackageImports","dedupe","esmExternals","oldWebpackFn","webpack","webpackConfig","jsExtIndex","resolve","extensions","indexOf","mjsExtIndex"],"mappings":";;;AAkBO,SAASA,kBAAkBC,OAAmC,EAAA;EAIzCC,yBAAA,EAAA;EAE1B,MAAMC,iBAAoB,GAAA;EAAA;EAExB,IAAIF,OAAS,EAAAE,iBAAA,IAAqB,EAAC;EAAA;EAEnC,qBAAA,EACA,aAAA,EACA,kBAAA;EAAA;EAEA,WAAA,EACA,mBAAA,EACA,WAAA,EACA;EAAA;EAAA,CACF;EAEA,OAAQC,UAAuC,IAAA;IAKzC,IAAA,CAACA,WAAWC,YAAc,EAAA;MAC5BD,UAAA,CAAWC,eAAe,EAAC;IAC7B;IACWD,UAAA,CAAAC,YAAA,CAAaC,yBAAyBC,MAAO,CAAA,CACtD,IAAIH,UAAA,CAAWC,YAAa,CAAAC,sBAAA,IAA0B,EAAC,GACvD,GAAGH,iBAAA,CACJ,CAAA;IACDC,UAAA,CAAWD,oBAAoBI,MAAO,CAAA,CACpC,IAAIH,UAAW,CAAAD,iBAAA,IAAqB,EAAC,GACrC,GAAGA,iBAAA,CACJ,CAAA;IAWDC,UAAA,CAAWC,aAAaG,YAAe,GAAA,OAAA;IASvC,MAAMC,eAAeL,UAAW,CAAAM,OAAA;IACrBN,UAAA,CAAAM,OAAA,GAAU,CAACC,aAAA,EAAeV,QAAY,KAAA;MAC/C,IAAIQ,YAAc,EAAA;QACAE,aAAA,GAAAF,YAAA,CAAaE,eAAeV,QAAO,CAAA;MACrD;MAEA,MAAMW,UAAa,GAAAD,aAAA,CAAcE,OAAQ,CAAAC,UAAA,CAAWC,QAAQ,KAAK,CAAA;MACjE,MAAMC,WAAc,GAAAL,aAAA,CAAcE,OAAQ,CAAAC,UAAA,CAAWC,QAAQ,MAAM,CAAA;MACnE,IAAIH,UAAe,KAAA,CAAA,CAAA,IAAMI,WAAgB,KAAA,CAAA,CAAA,IAAMA,cAAcJ,UAAY,EAAA;QACzDD,aAAA,CAAAE,OAAA,CAAQC,UAAW,CAAAF,UAAU,CAAI,GAAA,MAAA;QACjCD,aAAA,CAAAE,OAAA,CAAQC,UAAW,CAAAE,WAAW,CAAI,GAAA,KAAA;MAClD;MAEO,OAAAL,aAAA;IAAA,CACT;IAEO,OAAAP,UAAA;EAAA,CACT;AACF;"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Name for the global object that will be used to store the SSR modules when injecting them into the page.
|
|
3
|
-
*/
|
|
4
|
-
export declare const SSR_INJECT_ID = "__styleInject_SSR_MODULES";
|
|
5
|
-
/**
|
|
6
|
-
* Data attribute that indicates that given `<style>` node was injected by us
|
|
7
|
-
*/
|
|
8
|
-
export declare const SSR_NODE_DATA_ID = "data-uic-style";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../../src/utils/nextjs/ssr/constants.ts"],"sourcesContent":["// #############################################################################\n// ! If making changes make sure to update `style-inject.ts` as well\n// #############################################################################\n/**\n * Name for the global object that will be used to store the SSR modules when injecting them into the page.\n */\nexport const SSR_INJECT_ID = \"__styleInject_SSR_MODULES\";\n\n/**\n * Data attribute that indicates that given `<style>` node was injected by us\n */\nexport const SSR_NODE_DATA_ID = \"data-uic-style\";\n"],"names":["SSR_INJECT_ID","SSR_NODE_DATA_ID"],"mappings":";;;AAMO,MAAMA,aAAgB,GAAA,2BAAA;AAKtB,MAAMC,gBAAmB,GAAA,gBAAA;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.mjs","sources":["../../../../src/utils/nextjs/ssr/constants.ts"],"sourcesContent":["// #############################################################################\n// ! If making changes make sure to update `style-inject.ts` as well\n// #############################################################################\n/**\n * Name for the global object that will be used to store the SSR modules when injecting them into the page.\n */\nexport const SSR_INJECT_ID = \"__styleInject_SSR_MODULES\";\n\n/**\n * Data attribute that indicates that given `<style>` node was injected by us\n */\nexport const SSR_NODE_DATA_ID = \"data-uic-style\";\n"],"names":["SSR_INJECT_ID","SSR_NODE_DATA_ID"],"mappings":";;AAMO,MAAMA,aAAgB,GAAA,2BAAA;AAKtB,MAAMC,gBAAmB,GAAA,gBAAA;"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Helper to read injected styles from SSR and inject them into header so first-render is styled correctly.
|
|
3
|
-
* See `./style-inject.ts` for more info!
|
|
4
|
-
*
|
|
5
|
-
* Based on:
|
|
6
|
-
* @see https://github.com/egoist/style-inject/pull/28/files
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* \/**
|
|
10
|
-
* * Add styled-components server-side render support
|
|
11
|
-
* * Taken from https://github.com/vercel/next.js/blob/master/examples/with-styled-components/pages/_document.js
|
|
12
|
-
* *\/
|
|
13
|
-
* static override async getInitialProps(ctx: DocumentContext): Promise<{
|
|
14
|
-
* styles: JSX.Element;
|
|
15
|
-
* html: string;
|
|
16
|
-
* head?: (JSX.Element | null)[] | undefined;
|
|
17
|
-
* }> {
|
|
18
|
-
* const sheet = new ServerStyleSheet();
|
|
19
|
-
* const originalRenderPage = ctx.renderPage;
|
|
20
|
-
*
|
|
21
|
-
* try {
|
|
22
|
-
* ctx.renderPage = () =>
|
|
23
|
-
* originalRenderPage({
|
|
24
|
-
* enhanceApp: (App) =>
|
|
25
|
-
* function AppEnhanced(props) {
|
|
26
|
-
* return sheet.collectStyles(<App {...props} />);
|
|
27
|
-
* },
|
|
28
|
-
* });
|
|
29
|
-
*
|
|
30
|
-
* const initialProps = await Document.getInitialProps(ctx);
|
|
31
|
-
* return {
|
|
32
|
-
* ...initialProps,
|
|
33
|
-
* styles: (
|
|
34
|
-
* <>
|
|
35
|
-
* {\/**
|
|
36
|
-
* * Order of injecting important so we:
|
|
37
|
-
* * 1. Inject global css from next
|
|
38
|
-
* * 2. Inject ui-component styles
|
|
39
|
-
* * 3. Inject our styled-component styles (with possible overrides ui-component overrides)
|
|
40
|
-
* *\/}
|
|
41
|
-
* {initialProps.styles}
|
|
42
|
-
* <UiComponentsSsrStyleRegistry />
|
|
43
|
-
* {sheet.getStyleElement()}
|
|
44
|
-
* </>
|
|
45
|
-
* ),
|
|
46
|
-
* };
|
|
47
|
-
* } finally {
|
|
48
|
-
* sheet.seal();
|
|
49
|
-
* }
|
|
50
|
-
* }
|
|
51
|
-
*/
|
|
52
|
-
export declare const UiComponentsSsrStyleRegistryPagesRouter: import("react").NamedExoticComponent<object>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var react = require('react');
|
|
5
|
-
var constants = require('./constants.js');
|
|
6
|
-
"use strict";
|
|
7
|
-
const UiComponentsSsrStyleRegistryPagesRouter = react.memo(function UiComponentsSsrStyleRegistryPagesRouter2() {
|
|
8
|
-
const injections = globalThis[constants.SSR_INJECT_ID];
|
|
9
|
-
const injectionsExist = !!injections && Array.isArray(injections) && !!injections.length;
|
|
10
|
-
return /* @__PURE__ */jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
11
|
-
children: [/* @__PURE__ */jsxRuntime.jsx("noscript", {
|
|
12
|
-
"data-uic-style": ""
|
|
13
|
-
}, "data-uic-reference"), injectionsExist && injections?.map(module => /* @__PURE__ */jsxRuntime.jsx("style", {
|
|
14
|
-
"data-uic-style": module.id,
|
|
15
|
-
dangerouslySetInnerHTML: {
|
|
16
|
-
__html: module.css
|
|
17
|
-
}
|
|
18
|
-
}, module.id))]
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
exports.UiComponentsSsrStyleRegistryPagesRouter = UiComponentsSsrStyleRegistryPagesRouter;
|
|
22
|
-
//# sourceMappingURL=registry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sources":["../../../../src/utils/nextjs/ssr/registry.tsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { SSR_INJECT_ID } from \"./constants\";\nimport type { InjectedModule } from \"./types\";\n\n/**\n * Helper to read injected styles from SSR and inject them into header so first-render is styled correctly.\n * See `./style-inject.ts` for more info!\n *\n * Based on:\n * @see https://github.com/egoist/style-inject/pull/28/files\n *\n * @example\n * \\/**\n * * Add styled-components server-side render support\n * * Taken from https://github.com/vercel/next.js/blob/master/examples/with-styled-components/pages/_document.js\n * *\\/\n * static override async getInitialProps(ctx: DocumentContext): Promise<{\n * styles: JSX.Element;\n * html: string;\n * head?: (JSX.Element | null)[] | undefined;\n * }> {\n * const sheet = new ServerStyleSheet();\n * const originalRenderPage = ctx.renderPage;\n *\n * try {\n * ctx.renderPage = () =>\n * originalRenderPage({\n * enhanceApp: (App) =>\n * function AppEnhanced(props) {\n * return sheet.collectStyles(<App {...props} />);\n * },\n * });\n *\n * const initialProps = await Document.getInitialProps(ctx);\n * return {\n * ...initialProps,\n * styles: (\n * <>\n * {\\/**\n * * Order of injecting important so we:\n * * 1. Inject global css from next\n * * 2. Inject ui-component styles\n * * 3. Inject our styled-component styles (with possible overrides ui-component overrides)\n * *\\/}\n * {initialProps.styles}\n * <UiComponentsSsrStyleRegistry />\n * {sheet.getStyleElement()}\n * </>\n * ),\n * };\n * } finally {\n * sheet.seal();\n * }\n * }\n */\nexport const UiComponentsSsrStyleRegistryPagesRouter = memo(\n function UiComponentsSsrStyleRegistryPagesRouter() {\n // @ts-expect-error Dangerously accessing globalThis\n const injections = globalThis[SSR_INJECT_ID] as unknown as\n | InjectedModule[]\n | undefined;\n\n const injectionsExist =\n !!injections && Array.isArray(injections) && !!injections.length;\n\n // TODO: For app router will have to migrate to using `useServerInsertedHTML`, see\n // https://nextjs.org/docs/app/building-your-application/styling/css-in-js#styled-components\n\n // Create a style element for each injection\n return (\n <>\n {/* Empty style element as \"bookmark\" for style-inject to know for first insertion where to place first style tag */}\n <noscript data-uic-style=\"\" key=\"data-uic-reference\" />\n {injectionsExist &&\n injections?.map((module: { id: string; css: string }) => (\n <style\n data-uic-style={module.id}\n key={module.id}\n // Dangerouslt set inner HTML to inject the CSS to not escape `content: \"\"`\n dangerouslySetInnerHTML={{ __html: module.css }}\n />\n ))}\n </>\n );\n },\n);\n"],"names":["UiComponentsSsrStyleRegistryPagesRouter","memo","UiComponentsSsrStyleRegistryPagesRouter2","injections","globalThis","SSR_INJECT_ID","injectionsExist","Array","isArray","length","jsxs","Fragment","children","jsx","map","module","id","dangerouslySetInnerHTML","__html","css"],"mappings":";;;;;;AAwDO,MAAMA,uCAA0C,GAAAC,KAAA,CAAAA,IAAA,CACrD,SAASD,wCAA0CE,CAAA,EAAA;EAE3C,MAAAC,UAAA,GAAaC,WAAWC,SAAAA,CAAAA,aAAa,CAAA;EAIrC,MAAAC,eAAA,GACJ,CAAC,CAACH,UAAc,IAAAI,KAAA,CAAMC,QAAQL,UAAU,CAAA,IAAK,CAAC,CAACA,UAAW,CAAAM,MAAA;EAM5D,sBAGIC,UAAA,CAAAA,IAAA,CAAAC,mBAAA,EAAA;IAAAC,QAAA,EAAA,CAACC,eAAAA,UAAAA,CAAAA,GAAA,CAAA,UAAA,EAAA;MAAS,gBAAe,EAAA;IAAA,CAAA,EAAO,oBAAqB,CAAA,EACpDP,eACC,IAAAH,UAAA,EAAYW,GAAI,CAACC,MACf,IAAA,eAAAF,UAAA,CAAAA,GAAA,CAAC,OAAA,EAAA;MACC,kBAAgBE,MAAO,CAAAC,EAAA;MAGvBC,uBAAyB,EAAA;QAAEC,MAAQ,EAAAH,MAAA,CAAOI;MAAI;IAAA,CAAA,EAFzCJ,MAAO,CAAAC,EAAA,CAIf,CAAA;EACL,CAAA,CAAA;AAEJ,CACF,CAAA;"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { memo } from 'react';
|
|
3
|
-
import { SSR_INJECT_ID } from './constants.mjs';
|
|
4
|
-
"use strict";
|
|
5
|
-
const UiComponentsSsrStyleRegistryPagesRouter = memo(function UiComponentsSsrStyleRegistryPagesRouter2() {
|
|
6
|
-
const injections = globalThis[SSR_INJECT_ID];
|
|
7
|
-
const injectionsExist = !!injections && Array.isArray(injections) && !!injections.length;
|
|
8
|
-
return /* @__PURE__ */jsxs(Fragment, {
|
|
9
|
-
children: [/* @__PURE__ */jsx("noscript", {
|
|
10
|
-
"data-uic-style": ""
|
|
11
|
-
}, "data-uic-reference"), injectionsExist && injections?.map(module => /* @__PURE__ */jsx("style", {
|
|
12
|
-
"data-uic-style": module.id,
|
|
13
|
-
dangerouslySetInnerHTML: {
|
|
14
|
-
__html: module.css
|
|
15
|
-
}
|
|
16
|
-
}, module.id))]
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
export { UiComponentsSsrStyleRegistryPagesRouter };
|
|
20
|
-
//# sourceMappingURL=registry.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registry.mjs","sources":["../../../../src/utils/nextjs/ssr/registry.tsx"],"sourcesContent":["import { memo } from \"react\";\n\nimport { SSR_INJECT_ID } from \"./constants\";\nimport type { InjectedModule } from \"./types\";\n\n/**\n * Helper to read injected styles from SSR and inject them into header so first-render is styled correctly.\n * See `./style-inject.ts` for more info!\n *\n * Based on:\n * @see https://github.com/egoist/style-inject/pull/28/files\n *\n * @example\n * \\/**\n * * Add styled-components server-side render support\n * * Taken from https://github.com/vercel/next.js/blob/master/examples/with-styled-components/pages/_document.js\n * *\\/\n * static override async getInitialProps(ctx: DocumentContext): Promise<{\n * styles: JSX.Element;\n * html: string;\n * head?: (JSX.Element | null)[] | undefined;\n * }> {\n * const sheet = new ServerStyleSheet();\n * const originalRenderPage = ctx.renderPage;\n *\n * try {\n * ctx.renderPage = () =>\n * originalRenderPage({\n * enhanceApp: (App) =>\n * function AppEnhanced(props) {\n * return sheet.collectStyles(<App {...props} />);\n * },\n * });\n *\n * const initialProps = await Document.getInitialProps(ctx);\n * return {\n * ...initialProps,\n * styles: (\n * <>\n * {\\/**\n * * Order of injecting important so we:\n * * 1. Inject global css from next\n * * 2. Inject ui-component styles\n * * 3. Inject our styled-component styles (with possible overrides ui-component overrides)\n * *\\/}\n * {initialProps.styles}\n * <UiComponentsSsrStyleRegistry />\n * {sheet.getStyleElement()}\n * </>\n * ),\n * };\n * } finally {\n * sheet.seal();\n * }\n * }\n */\nexport const UiComponentsSsrStyleRegistryPagesRouter = memo(\n function UiComponentsSsrStyleRegistryPagesRouter() {\n // @ts-expect-error Dangerously accessing globalThis\n const injections = globalThis[SSR_INJECT_ID] as unknown as\n | InjectedModule[]\n | undefined;\n\n const injectionsExist =\n !!injections && Array.isArray(injections) && !!injections.length;\n\n // TODO: For app router will have to migrate to using `useServerInsertedHTML`, see\n // https://nextjs.org/docs/app/building-your-application/styling/css-in-js#styled-components\n\n // Create a style element for each injection\n return (\n <>\n {/* Empty style element as \"bookmark\" for style-inject to know for first insertion where to place first style tag */}\n <noscript data-uic-style=\"\" key=\"data-uic-reference\" />\n {injectionsExist &&\n injections?.map((module: { id: string; css: string }) => (\n <style\n data-uic-style={module.id}\n key={module.id}\n // Dangerouslt set inner HTML to inject the CSS to not escape `content: \"\"`\n dangerouslySetInnerHTML={{ __html: module.css }}\n />\n ))}\n </>\n );\n },\n);\n"],"names":["UiComponentsSsrStyleRegistryPagesRouter","memo","UiComponentsSsrStyleRegistryPagesRouter2","injections","globalThis","SSR_INJECT_ID","injectionsExist","Array","isArray","length","jsxs","Fragment","children","jsx","map","module","id","dangerouslySetInnerHTML","__html","css"],"mappings":";;;;AAwDO,MAAMA,uCAA0C,GAAAC,IAAA,CACrD,SAASD,wCAA0CE,CAAA,EAAA;EAE3C,MAAAC,UAAA,GAAaC,WAAWC,aAAa,CAAA;EAIrC,MAAAC,eAAA,GACJ,CAAC,CAACH,UAAc,IAAAI,KAAA,CAAMC,QAAQL,UAAU,CAAA,IAAK,CAAC,CAACA,UAAW,CAAAM,MAAA;EAM5D,sBAGIC,IAAA,CAAAC,QAAA,EAAA;IAAAC,QAAA,EAAA,CAAC,eAAAC,GAAA,CAAA,UAAA,EAAA;MAAS,gBAAe,EAAA;IAAA,CAAA,EAAO,oBAAqB,CAAA,EACpDP,eACC,IAAAH,UAAA,EAAYW,GAAI,CAACC,MACf,IAAA,eAAAF,GAAA,CAAC,OAAA,EAAA;MACC,kBAAgBE,MAAO,CAAAC,EAAA;MAGvBC,uBAAyB,EAAA;QAAEC,MAAQ,EAAAH,MAAA,CAAOI;MAAI;IAAA,CAAA,EAFzCJ,MAAO,CAAAC,EAAA,CAIf,CAAA;EACL,CAAA,CAAA;AAEJ,CACF,CAAA;"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type InjectedModule = {
|
|
2
|
-
/**
|
|
3
|
-
* The ID of the style tag (typically some stable unique hash derived CSS content)
|
|
4
|
-
*/
|
|
5
|
-
id: string;
|
|
6
|
-
/**
|
|
7
|
-
* The CSS string to inject
|
|
8
|
-
*/
|
|
9
|
-
css: string;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Util to inject styles into the DOM, this is a patched version of the original styled-inject.
|
|
13
|
-
*
|
|
14
|
-
* @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/rollup.config.js
|
|
15
|
-
* @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/scripts/rollup-plugin-local-style-inject.js
|
|
16
|
-
* @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/src/docs/helpers/style-inject.es.js
|
|
17
|
-
* - Original styled-inject: https://github.com/egoist/style-inject/blob/master/src/index.js
|
|
18
|
-
* - SSR Patch: https://github.com/egoist/style-inject/pull/28/files
|
|
19
|
-
*/
|
|
20
|
-
export default function styleInject(css: InjectedModule["css"], id: InjectedModule["id"]): void;
|
|
21
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
"use strict";
|
|
7
|
-
const SSR_INJECT_ID = "__styleInject_SSR_MODULES";
|
|
8
|
-
const SSR_NODE_DATA_ID = "data-uic-style";
|
|
9
|
-
function styleInject(css, id) {
|
|
10
|
-
if (!css) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
if (!globalThis[SSR_INJECT_ID]) {
|
|
14
|
-
globalThis[SSR_INJECT_ID] = [];
|
|
15
|
-
}
|
|
16
|
-
if (globalThis[SSR_INJECT_ID].find(item => item.id === id)) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
globalThis[SSR_INJECT_ID].push({
|
|
20
|
-
id,
|
|
21
|
-
css
|
|
22
|
-
});
|
|
23
|
-
if (typeof document === "undefined") {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
const injectedStyles = document.head.querySelectorAll(`:scope > [${SSR_NODE_DATA_ID}]`);
|
|
27
|
-
const injectedStylesLength = injectedStyles.length;
|
|
28
|
-
for (let i = 0; i < injectedStylesLength; i++) {
|
|
29
|
-
const style2 = injectedStyles[i];
|
|
30
|
-
if (!!style2 && style2.getAttribute(SSR_NODE_DATA_ID) === id) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
const style = document.createElement("style");
|
|
35
|
-
style.setAttribute(SSR_NODE_DATA_ID, id);
|
|
36
|
-
style.innerHTML = css;
|
|
37
|
-
if (injectedStylesLength) {
|
|
38
|
-
const lastStyle = injectedStyles[injectedStylesLength - 1];
|
|
39
|
-
if (lastStyle) {
|
|
40
|
-
lastStyle.after(style);
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
document.head.appendChild(style);
|
|
45
|
-
}
|
|
46
|
-
exports["default"] = styleInject;
|
|
47
|
-
//# sourceMappingURL=style-inject.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style-inject.js","sources":["../../../../src/utils/nextjs/ssr/style-inject.ts"],"sourcesContent":["// #############################################################################\n// ! This file can't contain any imports, as it's copy-pasted into the bundled code!\n// #############################################################################\n\n/**\n * Name for the global object that will be used to store the SSR modules when injecting them into the page.\n */\nconst SSR_INJECT_ID = \"__styleInject_SSR_MODULES\";\n\n/**\n * Data attribute that indicates that given `<style>` node was injected by us\n */\nconst SSR_NODE_DATA_ID = \"data-uic-style\";\n\ntype InjectedModule = {\n /**\n * The ID of the style tag (typically some stable unique hash derived CSS content)\n */\n id: string;\n /**\n * The CSS string to inject\n */\n css: string;\n};\n\n// #############################################################################\n\n/**\n * Util to inject styles into the DOM, this is a patched version of the original styled-inject.\n *\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/rollup.config.js\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/scripts/rollup-plugin-local-style-inject.js\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/src/docs/helpers/style-inject.es.js\n * - Original styled-inject: https://github.com/egoist/style-inject/blob/master/src/index.js\n * - SSR Patch: https://github.com/egoist/style-inject/pull/28/files\n */\nexport default function styleInject(\n css: InjectedModule[\"css\"],\n id: InjectedModule[\"id\"],\n) {\n // Nothing to inject\n if (!css) {\n return;\n }\n\n // Patch missing global variable\n // @ts-expect-error Dangerously accessing globalThis\n if (!globalThis[SSR_INJECT_ID]) {\n // @ts-expect-error Dangerously accessing globalThis\n globalThis[SSR_INJECT_ID] = [];\n }\n\n // Exit early if the style is already injected/registered\n // @ts-expect-error Dangerously accessing globalThis\n if (globalThis[SSR_INJECT_ID].find((item) => item.id === id)) {\n return;\n }\n\n // Register the injected module\n // @ts-expect-error Dangerously accessing globalThis\n globalThis[SSR_INJECT_ID].push({ id, css });\n\n // Exit early as we can't inject styles on the server, registering is enough\n if (typeof document === \"undefined\") {\n return;\n }\n\n // Try to find either bookmark `<noscript/>` or last injected `<style/>`\n const injectedStyles = document.head.querySelectorAll(\n `:scope > [${SSR_NODE_DATA_ID}]`,\n );\n const injectedStylesLength = injectedStyles.length;\n\n // Check if the style is already injected and return early if needed\n for (let i = 0; i < injectedStylesLength; i++) {\n const style = injectedStyles[i];\n\n if (!!style && style.getAttribute(SSR_NODE_DATA_ID) === id) {\n return;\n }\n }\n\n // Create a style tag\n const style = document.createElement(\"style\");\n // Set a data element so for next DOM inject we can append to the last element we appended\n style.setAttribute(SSR_NODE_DATA_ID, id);\n /**\n * Experimented with various ways of injecting the CSS as many approaches escapes certain CSS. E.g. `content: \"\";` -->\n * `content:&qout;&qout;;;` which would partially break the given style tag and cause random layout issues as partial\n * styles would be applied.\n *\n * - Didn't work as escaped the CSS content:\n * - `style.textContent = css;`\n * - `style.innerText = css;`\n * Old way:\n * - `style.styleSheet.cssText = css`\n * Worked:\n * - `style.innerHTML = css;\n * TODO: maybe in 2025 look at `CSSStyleSheet` constructor and `insertRule` method - https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet\n */\n style.innerHTML = css;\n\n // Attempt to append the style (to preserve overriding logic with styled-components)\n if (injectedStylesLength) {\n const lastStyle = injectedStyles[injectedStylesLength - 1];\n\n if (lastStyle) {\n lastStyle.after(style);\n return;\n }\n }\n\n // If that didn't work append to end of head (should have been handled by the bookmark, but just in case)\n document.head.appendChild(style);\n}\n"],"names":["SSR_INJECT_ID","SSR_NODE_DATA_ID","styleInject","css","id","globalThis","find","item","push","document","injectedStyles","head","querySelectorAll","injectedStylesLength","length","i","style","getAttribute","createElement","setAttribute","innerHTML","lastStyle","after","appendChild"],"mappings":";;;;;;AAOA,MAAMA,aAAgB,GAAA,2BAAA;AAKtB,MAAMC,gBAAmB,GAAA,gBAAA;AAwBD,SAAAC,WAAAA,CACtBC,KACAC,EACA,EAAA;EAEA,IAAI,CAACD,GAAK,EAAA;IACR;EACF;EAII,IAAA,CAACE,UAAW,CAAAL,aAAa,CAAG,EAAA;IAEnBK,UAAA,CAAAL,aAAa,IAAI,EAAC;EAC/B;EAII,IAAAK,UAAA,CAAWL,aAAa,CAAE,CAAAM,IAAA,CAAMC,IAAS,IAAAA,IAAA,CAAKH,EAAO,KAAAA,EAAE,CAAG,EAAA;IAC5D;EACF;EAIAC,UAAA,CAAWL,aAAa,CAAE,CAAAQ,IAAA,CAAK;IAAEJ,EAAA;IAAID;GAAK,CAAA;EAGtC,IAAA,OAAOM,aAAa,WAAa,EAAA;IACnC;EACF;EAGM,MAAAC,cAAA,GAAiBD,SAASE,IAAK,CAAAC,gBAAA,CACnC,aAAaX,gBAAgB,GAAA,CAC/B;EACA,MAAMY,uBAAuBH,cAAe,CAAAI,MAAA;EAG5C,KAAA,IAASC,CAAI,GAAA,CAAA,EAAGA,CAAI,GAAAF,oBAAA,EAAsBE,CAAK,EAAA,EAAA;IACvCC,MAAAA,MAAAA,GAAQN,eAAeK,CAAC,CAAA;IAE9B,IAAI,CAAC,CAACC,MAAAA,IAASA,OAAMC,YAAa,CAAAhB,gBAAgB,MAAMG,EAAI,EAAA;MAC1D;IACF;EACF;EAGM,MAAAY,KAAA,GAAQP,QAAS,CAAAS,aAAA,CAAc,OAAO,CAAA;EAEtCF,KAAA,CAAAG,YAAA,CAAalB,kBAAkBG,EAAE,CAAA;EAevCY,KAAA,CAAMI,SAAY,GAAAjB,GAAA;EAGlB,IAAIU,oBAAsB,EAAA;IAClB,MAAAQ,SAAA,GAAYX,cAAe,CAAAG,oBAAA,GAAuB,CAAC,CAAA;IAEzD,IAAIQ,SAAW,EAAA;MACbA,SAAA,CAAUC,MAAMN,KAAK,CAAA;MACrB;IACF;EACF;EAGSP,QAAA,CAAAE,IAAA,CAAKY,YAAYP,KAAK,CAAA;AACjC;"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
const SSR_INJECT_ID = "__styleInject_SSR_MODULES";
|
|
4
|
-
const SSR_NODE_DATA_ID = "data-uic-style";
|
|
5
|
-
function styleInject(css, id) {
|
|
6
|
-
if (!css) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
if (!globalThis[SSR_INJECT_ID]) {
|
|
10
|
-
globalThis[SSR_INJECT_ID] = [];
|
|
11
|
-
}
|
|
12
|
-
if (globalThis[SSR_INJECT_ID].find(item => item.id === id)) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
globalThis[SSR_INJECT_ID].push({
|
|
16
|
-
id,
|
|
17
|
-
css
|
|
18
|
-
});
|
|
19
|
-
if (typeof document === "undefined") {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
const injectedStyles = document.head.querySelectorAll(`:scope > [${SSR_NODE_DATA_ID}]`);
|
|
23
|
-
const injectedStylesLength = injectedStyles.length;
|
|
24
|
-
for (let i = 0; i < injectedStylesLength; i++) {
|
|
25
|
-
const style2 = injectedStyles[i];
|
|
26
|
-
if (!!style2 && style2.getAttribute(SSR_NODE_DATA_ID) === id) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
const style = document.createElement("style");
|
|
31
|
-
style.setAttribute(SSR_NODE_DATA_ID, id);
|
|
32
|
-
style.innerHTML = css;
|
|
33
|
-
if (injectedStylesLength) {
|
|
34
|
-
const lastStyle = injectedStyles[injectedStylesLength - 1];
|
|
35
|
-
if (lastStyle) {
|
|
36
|
-
lastStyle.after(style);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
document.head.appendChild(style);
|
|
41
|
-
}
|
|
42
|
-
export { styleInject as default };
|
|
43
|
-
//# sourceMappingURL=style-inject.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style-inject.mjs","sources":["../../../../src/utils/nextjs/ssr/style-inject.ts"],"sourcesContent":["// #############################################################################\n// ! This file can't contain any imports, as it's copy-pasted into the bundled code!\n// #############################################################################\n\n/**\n * Name for the global object that will be used to store the SSR modules when injecting them into the page.\n */\nconst SSR_INJECT_ID = \"__styleInject_SSR_MODULES\";\n\n/**\n * Data attribute that indicates that given `<style>` node was injected by us\n */\nconst SSR_NODE_DATA_ID = \"data-uic-style\";\n\ntype InjectedModule = {\n /**\n * The ID of the style tag (typically some stable unique hash derived CSS content)\n */\n id: string;\n /**\n * The CSS string to inject\n */\n css: string;\n};\n\n// #############################################################################\n\n/**\n * Util to inject styles into the DOM, this is a patched version of the original styled-inject.\n *\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/rollup.config.js\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/scripts/rollup-plugin-local-style-inject.js\n * @see https://github.com/ubiquiti/shared-ui.ui-components/blob/develop/src/docs/helpers/style-inject.es.js\n * - Original styled-inject: https://github.com/egoist/style-inject/blob/master/src/index.js\n * - SSR Patch: https://github.com/egoist/style-inject/pull/28/files\n */\nexport default function styleInject(\n css: InjectedModule[\"css\"],\n id: InjectedModule[\"id\"],\n) {\n // Nothing to inject\n if (!css) {\n return;\n }\n\n // Patch missing global variable\n // @ts-expect-error Dangerously accessing globalThis\n if (!globalThis[SSR_INJECT_ID]) {\n // @ts-expect-error Dangerously accessing globalThis\n globalThis[SSR_INJECT_ID] = [];\n }\n\n // Exit early if the style is already injected/registered\n // @ts-expect-error Dangerously accessing globalThis\n if (globalThis[SSR_INJECT_ID].find((item) => item.id === id)) {\n return;\n }\n\n // Register the injected module\n // @ts-expect-error Dangerously accessing globalThis\n globalThis[SSR_INJECT_ID].push({ id, css });\n\n // Exit early as we can't inject styles on the server, registering is enough\n if (typeof document === \"undefined\") {\n return;\n }\n\n // Try to find either bookmark `<noscript/>` or last injected `<style/>`\n const injectedStyles = document.head.querySelectorAll(\n `:scope > [${SSR_NODE_DATA_ID}]`,\n );\n const injectedStylesLength = injectedStyles.length;\n\n // Check if the style is already injected and return early if needed\n for (let i = 0; i < injectedStylesLength; i++) {\n const style = injectedStyles[i];\n\n if (!!style && style.getAttribute(SSR_NODE_DATA_ID) === id) {\n return;\n }\n }\n\n // Create a style tag\n const style = document.createElement(\"style\");\n // Set a data element so for next DOM inject we can append to the last element we appended\n style.setAttribute(SSR_NODE_DATA_ID, id);\n /**\n * Experimented with various ways of injecting the CSS as many approaches escapes certain CSS. E.g. `content: \"\";` -->\n * `content:&qout;&qout;;;` which would partially break the given style tag and cause random layout issues as partial\n * styles would be applied.\n *\n * - Didn't work as escaped the CSS content:\n * - `style.textContent = css;`\n * - `style.innerText = css;`\n * Old way:\n * - `style.styleSheet.cssText = css`\n * Worked:\n * - `style.innerHTML = css;\n * TODO: maybe in 2025 look at `CSSStyleSheet` constructor and `insertRule` method - https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet\n */\n style.innerHTML = css;\n\n // Attempt to append the style (to preserve overriding logic with styled-components)\n if (injectedStylesLength) {\n const lastStyle = injectedStyles[injectedStylesLength - 1];\n\n if (lastStyle) {\n lastStyle.after(style);\n return;\n }\n }\n\n // If that didn't work append to end of head (should have been handled by the bookmark, but just in case)\n document.head.appendChild(style);\n}\n"],"names":["SSR_INJECT_ID","SSR_NODE_DATA_ID","styleInject","css","id","globalThis","find","item","push","document","injectedStyles","head","querySelectorAll","injectedStylesLength","length","i","style","getAttribute","createElement","setAttribute","innerHTML","lastStyle","after","appendChild"],"mappings":";;AAOA,MAAMA,aAAgB,GAAA,2BAAA;AAKtB,MAAMC,gBAAmB,GAAA,gBAAA;AAwBD,SAAAC,WAAAA,CACtBC,KACAC,EACA,EAAA;EAEA,IAAI,CAACD,GAAK,EAAA;IACR;EACF;EAII,IAAA,CAACE,UAAW,CAAAL,aAAa,CAAG,EAAA;IAEnBK,UAAA,CAAAL,aAAa,IAAI,EAAC;EAC/B;EAII,IAAAK,UAAA,CAAWL,aAAa,CAAE,CAAAM,IAAA,CAAMC,IAAS,IAAAA,IAAA,CAAKH,EAAO,KAAAA,EAAE,CAAG,EAAA;IAC5D;EACF;EAIAC,UAAA,CAAWL,aAAa,CAAE,CAAAQ,IAAA,CAAK;IAAEJ,EAAA;IAAID;GAAK,CAAA;EAGtC,IAAA,OAAOM,aAAa,WAAa,EAAA;IACnC;EACF;EAGM,MAAAC,cAAA,GAAiBD,SAASE,IAAK,CAAAC,gBAAA,CACnC,aAAaX,gBAAgB,GAAA,CAC/B;EACA,MAAMY,uBAAuBH,cAAe,CAAAI,MAAA;EAG5C,KAAA,IAASC,CAAI,GAAA,CAAA,EAAGA,CAAI,GAAAF,oBAAA,EAAsBE,CAAK,EAAA,EAAA;IACvCC,MAAAA,MAAAA,GAAQN,eAAeK,CAAC,CAAA;IAE9B,IAAI,CAAC,CAACC,MAAAA,IAASA,OAAMC,YAAa,CAAAhB,gBAAgB,MAAMG,EAAI,EAAA;MAC1D;IACF;EACF;EAGM,MAAAY,KAAA,GAAQP,QAAS,CAAAS,aAAA,CAAc,OAAO,CAAA;EAEtCF,KAAA,CAAAG,YAAA,CAAalB,kBAAkBG,EAAE,CAAA;EAevCY,KAAA,CAAMI,SAAY,GAAAjB,GAAA;EAGlB,IAAIU,oBAAsB,EAAA;IAClB,MAAAQ,SAAA,GAAYX,cAAe,CAAAG,oBAAA,GAAuB,CAAC,CAAA;IAEzD,IAAIQ,SAAW,EAAA;MACbA,SAAA,CAAUC,MAAMN,KAAK,CAAA;MACrB;IACF;EACF;EAGSP,QAAA,CAAAE,IAAA,CAAKY,YAAYP,KAAK,CAAA;AACjC;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { PluginObj } from "@babel/core";
|
|
2
|
-
type Plugin = PluginObj<{
|
|
3
|
-
defaultImportName: null | string;
|
|
4
|
-
}>;
|
|
5
|
-
/**
|
|
6
|
-
* FIXME: Currently this plugin won't:
|
|
7
|
-
* - Handle existing source maps correctly and would strip from the output: "//#
|
|
8
|
-
* sourceMappingURL=BubbleContainer.module.css.js.map"
|
|
9
|
-
*/
|
|
10
|
-
export declare const transformCssModule: () => Plugin;
|
|
11
|
-
export {};
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var t = require('@babel/types');
|
|
4
|
-
var crypto = require('node:crypto');
|
|
5
|
-
function _interopDefault(e) {
|
|
6
|
-
return e && e.__esModule ? e : {
|
|
7
|
-
default: e
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
function _interopNamespace(e) {
|
|
11
|
-
if (e && e.__esModule) return e;
|
|
12
|
-
var n = Object.create(null);
|
|
13
|
-
if (e) {
|
|
14
|
-
Object.keys(e).forEach(function (k) {
|
|
15
|
-
if (k !== 'default') {
|
|
16
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () {
|
|
20
|
-
return e[k];
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
n["default"] = e;
|
|
27
|
-
return Object.freeze(n);
|
|
28
|
-
}
|
|
29
|
-
var t__namespace = /*#__PURE__*/_interopNamespace(t);
|
|
30
|
-
var crypto__default = /*#__PURE__*/_interopDefault(crypto);
|
|
31
|
-
"use strict";
|
|
32
|
-
function generateMd5(input) {
|
|
33
|
-
return crypto__default["default"].createHash("md5").update(input).digest("hex");
|
|
34
|
-
}
|
|
35
|
-
const transformCssModule = () => {
|
|
36
|
-
return {
|
|
37
|
-
visitor: {
|
|
38
|
-
// Step 0: Setup state
|
|
39
|
-
Program(_path, state) {
|
|
40
|
-
state["defaultImportName"] = null;
|
|
41
|
-
},
|
|
42
|
-
// Step 1: Find the default import from "style-inject.es.js"
|
|
43
|
-
ImportDeclaration(path, state) {
|
|
44
|
-
if (state["defaultImportName"]) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
const importSource = path.node.source.value;
|
|
48
|
-
if (!importSource.endsWith("style-inject.es.js")) {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
const defaultSpecifier = path.node.specifiers.find(specifier => t__namespace.isImportDefaultSpecifier(specifier));
|
|
52
|
-
if (defaultSpecifier) {
|
|
53
|
-
state["defaultImportName"] = defaultSpecifier.local.name;
|
|
54
|
-
} else {
|
|
55
|
-
throw new Error("Import for `style-inject.es.js` file not found in file");
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
// Step 2: Find all calls to the imported identifier
|
|
59
|
-
CallExpression(path, state) {
|
|
60
|
-
if (!state["defaultImportName"]) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
const callee = path.node.callee;
|
|
64
|
-
if (t__namespace.isIdentifier(callee) && callee.name === state["defaultImportName"]) {
|
|
65
|
-
const args = path.node.arguments;
|
|
66
|
-
if (!(args.length >= 1 && args.length <= 2)) {
|
|
67
|
-
throw new Error("Unexpected number of arguments");
|
|
68
|
-
}
|
|
69
|
-
if (!((t__namespace.isStringLiteral(args[0]) || t__namespace.isIdentifier(args[0])) && (!args[1] || t__namespace.isStringLiteral(args[1])))) {
|
|
70
|
-
throw new Error("Unexpected argument types");
|
|
71
|
-
}
|
|
72
|
-
let cssString = "";
|
|
73
|
-
if (t__namespace.isStringLiteral(args[0])) {
|
|
74
|
-
cssString = args[0].value;
|
|
75
|
-
let reusedVariable = null;
|
|
76
|
-
path.scope.path.traverse({
|
|
77
|
-
VariableDeclarator(variablePath) {
|
|
78
|
-
const {
|
|
79
|
-
id,
|
|
80
|
-
init
|
|
81
|
-
} = variablePath.node;
|
|
82
|
-
if (t__namespace.isStringLiteral(init, {
|
|
83
|
-
value: cssString
|
|
84
|
-
})) {
|
|
85
|
-
reusedVariable = id;
|
|
86
|
-
variablePath.stop();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
if (reusedVariable) {
|
|
91
|
-
path.node.arguments[0] = reusedVariable;
|
|
92
|
-
}
|
|
93
|
-
} else if (t__namespace.isIdentifier(args[0])) {
|
|
94
|
-
const binding = path.scope.getBinding(args[0].name);
|
|
95
|
-
if (binding && t__namespace.isVariableDeclarator(binding.path.node) && t__namespace.isStringLiteral(binding.path.node.init)) {
|
|
96
|
-
cssString = binding.path.node.init.value;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
if (!cssString) {
|
|
100
|
-
throw new Error("Invalid first argument value");
|
|
101
|
-
}
|
|
102
|
-
const hash = generateMd5(cssString);
|
|
103
|
-
const hashArg = t__namespace.stringLiteral(hash);
|
|
104
|
-
if (args.length > 1) {
|
|
105
|
-
args[1] = hashArg;
|
|
106
|
-
} else {
|
|
107
|
-
args.push(hashArg);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
exports.transformCssModule = transformCssModule;
|
|
115
|
-
//# sourceMappingURL=transform-css-module.js.map
|