@ubnt/store.core 9.31.0-dts-fix.2 → 9.31.0-dts-fix.3
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/lib/assets/close2.svg +2 -3
- package/lib/assets/close3.svg +3 -2
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/components/Accordion/Accordion.types.d.ts +36 -0
- package/lib/components/AppDownloadBanner/AppDownloadBanner.types.d.ts +30 -0
- package/lib/components/Avatar/Avatar.types.d.ts +10 -0
- package/lib/components/BackInStock/BackInStock.types.d.ts +26 -0
- package/lib/components/Banner/Banner.types.d.ts +22 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.types.d.ts +16 -0
- package/lib/components/BuiltFeaturesSection/BuiltFeaturesSection.types.d.ts +10 -0
- package/lib/components/Button/Button.types.d.ts +23 -0
- package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +33 -0
- package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +16 -0
- package/lib/components/CardSection/CardSection.types.d.ts +13 -0
- package/lib/components/CarouselGallery/CarouselGallery.types.d.ts +12 -0
- package/lib/components/CartIcon/CartIcon.types.d.ts +8 -0
- package/lib/components/CartSummary/CartSummary.types.d.ts +11 -0
- package/lib/components/CategoryTabs/CategoryTabs.types.d.ts +24 -0
- package/lib/components/Checkbox/Checkbox.types.d.ts +8 -0
- package/lib/components/CloserLookSection/CloserLookSection.types.d.ts +35 -0
- package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.types.d.ts +10 -0
- package/lib/components/Compare/Compare.types.d.ts +34 -0
- package/lib/components/CompareChart/CompareChart.types.d.ts +17 -0
- package/lib/components/CompareSection/CompareSection.types.d.ts +20 -0
- package/lib/components/Container/Container.types.d.ts +11 -0
- package/lib/components/CustomImage/CustomImage.types.d.ts +88 -0
- package/lib/components/DeploymentGallery/DeploymentGallery.types.d.ts +6 -0
- package/lib/components/Explore/Explore.types.d.ts +11 -0
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.types.d.ts +4 -0
- package/lib/components/FeaturesSection_deprecated/Features/Features.types.d.ts +18 -0
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.types.d.ts +89 -0
- 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/Gallery/GalleryControls/GalleryControls.types.d.ts +16 -0
- package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.types.d.ts +7 -0
- package/lib/components/GradientButton/GradientButton.types.d.ts +4 -0
- package/lib/components/GridGallery/GridModal/GridModal.types.d.ts +8 -0
- package/lib/components/Header/AccountFrame/AccountFrame.types.d.ts +8 -0
- package/lib/components/Header/AccountMenu/AccountMenu.types.d.ts +9 -0
- package/lib/components/Header/CartModal/CartModal.types.d.ts +9 -0
- package/lib/components/Header/CartModal/Empty/Empty.types.d.ts +6 -0
- package/lib/components/Header/CartModalV2/CartModal.types.d.ts +8 -0
- package/lib/components/Header/CartModalV2/Item/Item.types.d.ts +7 -0
- package/lib/components/Header/LanguageFrame/LanguageFrame.types.d.ts +6 -0
- package/lib/components/Header/LinksModal/LinksModal.types.d.ts +11 -0
- package/lib/components/Header/MenuItem/MenuItem.types.d.ts +31 -0
- package/lib/components/Header/Navigation/Carousel/Carousel.types.d.ts +16 -0
- package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.types.d.ts +35 -0
- package/lib/components/Header/Navigation/MobileMenu/MobileMenu.types.d.ts +11 -0
- package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +40 -0
- package/lib/components/Header/Overlay/Overlay.types.d.ts +6 -0
- package/lib/components/Header/SearchTab/SearchTab.types.d.ts +13 -0
- package/lib/components/HeroFadeGallery/HeroFadeGallery.types.d.ts +20 -0
- package/lib/components/HeroVideo/HeroVideo.types.d.ts +9 -0
- package/lib/components/HowToUseSection/HowToUseSection.types.d.ts +11 -0
- package/lib/components/ImageCarousel/ImageCarousel.types.d.ts +11 -0
- package/lib/components/ImageModal/ImageModal.types.d.ts +10 -0
- package/lib/components/InputSelect/InputSelect.types.d.ts +13 -0
- package/lib/components/LandingPage/Block/Block.types.d.ts +11 -0
- package/lib/components/LandingPage/Cards/Card/Card.types.d.ts +19 -0
- package/lib/components/LandingPage/Cards/Cards.types.d.ts +19 -0
- package/lib/components/LandingPage/LandingPage.types.d.ts +16 -0
- package/lib/components/LandingPagePro/LandingPagePro.types.d.ts +39 -0
- package/lib/components/LandingPageSearch/Modal/Modal.types.d.ts +20 -0
- package/lib/components/LandingPageSidebar/LandingPageSidebar.types.d.ts +92 -0
- package/lib/components/LayoutRendererV1/LayoutRenderer.types.d.ts +91 -0
- package/lib/components/LayoutRendererV2/LayoutRenderer.types.d.ts +93 -0
- package/lib/components/Loader/Loader.types.d.ts +9 -0
- package/lib/components/LoaderDots/LoaderDots.types.d.ts +4 -0
- package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.types.d.ts +7 -0
- package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.types.d.ts +46 -0
- package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.types.d.ts +12 -0
- package/lib/components/MicrositeFeatureIcons/MicrositeFeatureIcons.types.d.ts +26 -0
- package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.types.d.ts +15 -0
- package/lib/components/MicrositeSection/AllFeaturesButton/AllFeaturesButton.types.d.ts +4 -0
- package/lib/components/MicrositeSection/Features/Features.types.d.ts +18 -0
- package/lib/components/MicrositeSection/MicrositeSection.types.d.ts +103 -0
- package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.types.d.ts +9 -0
- package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.types.d.ts +5 -0
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.types.d.ts +42 -0
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/MobileModal/MobileModal.types.d.ts +15 -0
- package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +592 -0
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
- package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/Pagination/Pagination.types.d.ts +5 -0
- package/lib/components/Popover/Popover.types.d.ts +8 -0
- package/lib/components/ProductCard/ProductCard.types.d.ts +9 -0
- package/lib/components/ProductCardPopup/ProductCardPopup.types.d.ts +36 -0
- package/lib/components/ProductCompare/ProductCompare.types.d.ts +17 -0
- package/lib/components/ProductDetails/ProductDetails.types.d.ts +6 -0
- package/lib/components/ProductKeyFeatures/ProductKeyFeatures.types.d.ts +19 -0
- package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.types.d.ts +17 -0
- package/lib/components/ProductSectionNavigation/ProductSectionNavigation.types.d.ts +25 -0
- package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.types.d.ts +21 -0
- package/lib/components/ProductSectionTabs/ProductSectionTabs.types.d.ts +25 -0
- package/lib/components/ProductTechSpecs/ProductTechSpecs.types.d.ts +13 -0
- package/lib/components/ProductUpsell/ProductUpsell.types.d.ts +38 -0
- package/lib/components/ProductWizard/Options/Options.types.d.ts +8 -0
- package/lib/components/ProductWizard/ProductWizard.types.d.ts +99 -0
- package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.types.d.ts +7 -0
- package/lib/components/ProgressCircle/ProgressCircle.types.d.ts +9 -0
- package/lib/components/QuantityControls/QuantityControls.types.d.ts +11 -0
- package/lib/components/QuantityInput/QuantityInput.types.d.ts +10 -0
- package/lib/components/RelatedProducts/RelatedProducts.types.d.ts +32 -0
- package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.types.d.ts +32 -0
- package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.types.d.ts +30 -0
- package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.types.d.ts +31 -0
- package/lib/components/RelatedProductsVariantSelectorsV1/RelatedProductsVariantSelectors.types.d.ts +19 -0
- package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.types.d.ts +19 -0
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.types.d.ts +36 -0
- 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/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.types.d.ts +7 -0
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- 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/components/HorizontalOptionSelect/HorizontalOptionSelect.types.d.ts +9 -0
- package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.types.d.ts +5 -0
- package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +54 -0
- package/lib/components/Search/Input/Input.types.d.ts +19 -0
- package/lib/components/StaticModal/StaticModal.types.d.ts +10 -0
- package/lib/components/StorageSliders/Slider/Slider.types.d.ts +5 -0
- package/lib/components/TabinationButtons/TabinationButtons.types.d.ts +22 -0
- package/lib/components/TopologyScheme/TopologyScheme.types.d.ts +35 -0
- package/lib/components/UICare/UICare.types.d.ts +52 -0
- package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.types.d.ts +6 -0
- package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.types.d.ts +11 -0
- package/lib/components/VariantSelector/Variant/Variant.types.d.ts +18 -0
- package/lib/components/VariantSelector/VariantSelector.types.d.ts +38 -0
- package/lib/components/VariantSelectorItem/VariantSelectorItem.types.d.ts +5 -0
- package/lib/components/VariantSelectorV1/VariantSelector.types.d.ts +66 -0
- package/lib/components/VariantSelectorV2/VariantSelector.types.d.ts +66 -0
- package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.types.d.ts +14 -0
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/components/YouTubePlayer/YouTubePlayer.types.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { RenderImageProps } from "../CustomImage/CustomImage.types";
|
|
2
|
+
export interface UICareProps {
|
|
3
|
+
/**
|
|
4
|
+
* Class name for banner
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Set to true to open the modal
|
|
9
|
+
*/
|
|
10
|
+
isModalOpen: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Image renderer
|
|
13
|
+
*/
|
|
14
|
+
renderImage: (props: RenderImageProps) => React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Fires when add to cart button is clicked
|
|
17
|
+
*/
|
|
18
|
+
onAddToCart: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Fires when cancel button is clicked
|
|
21
|
+
*/
|
|
22
|
+
onCancel: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Fires when clicked outside of the modal
|
|
25
|
+
*/
|
|
26
|
+
onClickOutside: () => void;
|
|
27
|
+
/**
|
|
28
|
+
* Translations
|
|
29
|
+
*/
|
|
30
|
+
translations: {
|
|
31
|
+
title: string;
|
|
32
|
+
price: string;
|
|
33
|
+
description: string;
|
|
34
|
+
modal?: {
|
|
35
|
+
description?: string;
|
|
36
|
+
benefits?: {
|
|
37
|
+
priorityRmaService?: string;
|
|
38
|
+
freeReturnShipping?: string;
|
|
39
|
+
unlimitedReplacements?: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
buttons: {
|
|
43
|
+
addToCart: string;
|
|
44
|
+
cancel: string;
|
|
45
|
+
/**
|
|
46
|
+
* Provide link element here with translated text since
|
|
47
|
+
* Next.js has a special Link component, but Shopify does not.
|
|
48
|
+
*/
|
|
49
|
+
learnMore: string | React.ReactNode;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RenderImageFn } from "../../../CustomImage/CustomImage.types";
|
|
2
|
+
import type { VariantCompatibleProduct } from "../../../LayoutRenderer/LayoutRenderer.types";
|
|
3
|
+
export interface VariantCompatibilityProps {
|
|
4
|
+
renderImage: RenderImageFn;
|
|
5
|
+
compatibleProducts: VariantCompatibleProduct[];
|
|
6
|
+
hideBottomSeparator?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface CompatibleProductLinkProps {
|
|
9
|
+
renderImage: RenderImageFn;
|
|
10
|
+
product: VariantCompatibleProduct;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { RenderImageFn } from "../../CustomImage/CustomImage.types";
|
|
2
|
+
import type { LayoutRendererProps, LayoutVariant, OnVariantAddToCartFn } from "../../LayoutRenderer/LayoutRenderer.types";
|
|
3
|
+
import type { VariantSelectorItemProps } from "../../VariantSelectorItem/VariantSelectorItem.types";
|
|
4
|
+
import type { VariantSelectorProps } from "../VariantSelector.types";
|
|
5
|
+
export interface VariantSelectorVariantProps extends VariantSelectorItemProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
renderImage: RenderImageFn;
|
|
8
|
+
variant: LayoutVariant;
|
|
9
|
+
description?: string;
|
|
10
|
+
disableKeyFeatures?: boolean;
|
|
11
|
+
onVariantAddToCart: OnVariantAddToCartFn;
|
|
12
|
+
categoryChangeHandler: LayoutRendererProps["categoryChangeHandler"];
|
|
13
|
+
activeCategories: LayoutRendererProps["activeCategories"];
|
|
14
|
+
wizardProps: VariantSelectorProps["wizardProps"];
|
|
15
|
+
translations: NonNullable<VariantSelectorProps["translations"]>;
|
|
16
|
+
backInStockProps: VariantSelectorProps["backInStockProps"];
|
|
17
|
+
getEndPrice: VariantSelectorProps["getEndPrice"];
|
|
18
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Money } from "../../utils/money";
|
|
2
|
+
import type { BackInStockProps } from "../BackInStock/BackInStock.types";
|
|
3
|
+
import type { RenderImageProps } from "../CustomImage/CustomImage.types";
|
|
4
|
+
import type { LayoutRendererProps, LayoutVariant, OnVariantAddToCartFn } from "../LayoutRenderer/LayoutRenderer.types";
|
|
5
|
+
import type { ProductWizardProps } from "../ProductWizard/ProductWizard.types";
|
|
6
|
+
import type { defaultVariantSelectorTranslations } from "./VariantSelector.constants";
|
|
7
|
+
export declare enum ModelViews {
|
|
8
|
+
newerModels = "newerModels",
|
|
9
|
+
olderModels = "olderModels"
|
|
10
|
+
}
|
|
11
|
+
type Section = {
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
|
+
variants: LayoutVariant[];
|
|
15
|
+
};
|
|
16
|
+
export interface VariantSelectorProps {
|
|
17
|
+
sections: Section[];
|
|
18
|
+
selectedVariant: string | null;
|
|
19
|
+
onVariantSelect: (variantId: string | null) => void;
|
|
20
|
+
onVariantAddToCart: OnVariantAddToCartFn;
|
|
21
|
+
categoryChangeHandler: LayoutRendererProps["categoryChangeHandler"];
|
|
22
|
+
activeCategories: LayoutRendererProps["activeCategories"];
|
|
23
|
+
renderImage: (imageProps: RenderImageProps) => React.ReactNode;
|
|
24
|
+
translations?: typeof defaultVariantSelectorTranslations;
|
|
25
|
+
disableKeyFeatures?: boolean;
|
|
26
|
+
getEndPrice: (price: Money, showFromText?: boolean) => {
|
|
27
|
+
price: Money;
|
|
28
|
+
priceWithTax: Money | null;
|
|
29
|
+
formattedPrice: string;
|
|
30
|
+
formattedPriceWithTax: string | null;
|
|
31
|
+
};
|
|
32
|
+
wizardProps?: Pick<ProductWizardProps, "options" | "selectedOptionIds" | "onOptionSelect" | "translations">;
|
|
33
|
+
backInStockProps?: BackInStockProps;
|
|
34
|
+
collectionSlug?: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
language?: string;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { CustomImageAsset, RenderImageProps } from "../CustomImage/CustomImage.types";
|
|
2
|
+
import type { ProductKeyFeaturesProps } from "../ProductKeyFeatures/ProductKeyFeatures.types";
|
|
3
|
+
export declare enum ModelViews {
|
|
4
|
+
newerModels = "newerModels",
|
|
5
|
+
olderModels = "olderModels"
|
|
6
|
+
}
|
|
7
|
+
export type Variant = {
|
|
8
|
+
id: string | null;
|
|
9
|
+
baseSku?: string;
|
|
10
|
+
title: string;
|
|
11
|
+
price?: string;
|
|
12
|
+
priceWithVAT?: string;
|
|
13
|
+
images?: CustomImageAsset[];
|
|
14
|
+
techSpecsImages?: CustomImageAsset[];
|
|
15
|
+
keyFeatures?: ProductKeyFeaturesProps["keyFeatures"];
|
|
16
|
+
/**
|
|
17
|
+
* Additional variant IDs/SKUs which are used to determine if
|
|
18
|
+
* the current variant is selected.
|
|
19
|
+
*/
|
|
20
|
+
otherIds?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Currently it is used for adding data-test-id="product-card-${slug}" attribute
|
|
23
|
+
* to product selector. Optional since it is not required in Shopify.
|
|
24
|
+
*/
|
|
25
|
+
slug?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Flags
|
|
28
|
+
*/
|
|
29
|
+
isSoldOut?: boolean;
|
|
30
|
+
isEarlyAccess?: boolean;
|
|
31
|
+
isComingSoon?: boolean;
|
|
32
|
+
isLegacy?: boolean;
|
|
33
|
+
isTopPerformer?: boolean;
|
|
34
|
+
isBestPricePerformance?: boolean;
|
|
35
|
+
isMostVersatile?: boolean;
|
|
36
|
+
isTopPerformanceHighDensity?: boolean;
|
|
37
|
+
isHighestClientCapacity?: boolean;
|
|
38
|
+
/** Used for "None" variant items for Related Products */
|
|
39
|
+
isNoneVariant?: boolean;
|
|
40
|
+
};
|
|
41
|
+
type Section = {
|
|
42
|
+
id: string;
|
|
43
|
+
title: string;
|
|
44
|
+
variants: Variant[];
|
|
45
|
+
};
|
|
46
|
+
export interface VariantSelectorProps {
|
|
47
|
+
sections: Section[];
|
|
48
|
+
selectedVariant: string | null;
|
|
49
|
+
onVariantSelect: (variantId: string | null) => void;
|
|
50
|
+
renderImage: (imageProps: RenderImageProps) => React.ReactNode;
|
|
51
|
+
translations: {
|
|
52
|
+
soldOut: string;
|
|
53
|
+
earlyAccess: string;
|
|
54
|
+
comingSoon: string;
|
|
55
|
+
topPerformer: string;
|
|
56
|
+
bestPricePerformance: string;
|
|
57
|
+
mostVersatile: string;
|
|
58
|
+
topPerformanceHighDensity: string;
|
|
59
|
+
highestClientCapacity: string;
|
|
60
|
+
newerModels: string;
|
|
61
|
+
olderModels: string;
|
|
62
|
+
eaModels: string;
|
|
63
|
+
};
|
|
64
|
+
disableKeyFeatures?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { CustomImageAsset, RenderImageProps } from "../CustomImage/CustomImage.types";
|
|
2
|
+
import type { ProductKeyFeaturesProps } from "../ProductKeyFeatures/ProductKeyFeatures.types";
|
|
3
|
+
export declare enum ModelViews {
|
|
4
|
+
newerModels = "newerModels",
|
|
5
|
+
olderModels = "olderModels"
|
|
6
|
+
}
|
|
7
|
+
export type Variant = {
|
|
8
|
+
id: string | null;
|
|
9
|
+
baseSku?: string;
|
|
10
|
+
title: string;
|
|
11
|
+
price?: string;
|
|
12
|
+
priceWithVAT?: string;
|
|
13
|
+
images?: CustomImageAsset[];
|
|
14
|
+
techSpecsImages?: CustomImageAsset[];
|
|
15
|
+
keyFeatures?: ProductKeyFeaturesProps["keyFeatures"];
|
|
16
|
+
/**
|
|
17
|
+
* Additional variant IDs/SKUs which are used to determine if
|
|
18
|
+
* the current variant is selected.
|
|
19
|
+
*/
|
|
20
|
+
otherIds?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Currently it is used for adding data-test-id="product-card-${slug}" attribute
|
|
23
|
+
* to product selector. Optional since it is not required in Shopify.
|
|
24
|
+
*/
|
|
25
|
+
slug?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Flags
|
|
28
|
+
*/
|
|
29
|
+
isSoldOut?: boolean;
|
|
30
|
+
isEarlyAccess?: boolean;
|
|
31
|
+
isComingSoon?: boolean;
|
|
32
|
+
isLegacy?: boolean;
|
|
33
|
+
isTopPerformer?: boolean;
|
|
34
|
+
isBestPricePerformance?: boolean;
|
|
35
|
+
isMostVersatile?: boolean;
|
|
36
|
+
isTopPerformanceHighDensity?: boolean;
|
|
37
|
+
isHighestClientCapacity?: boolean;
|
|
38
|
+
/** Used for "None" variant items for Related Products */
|
|
39
|
+
isNoneVariant?: boolean;
|
|
40
|
+
};
|
|
41
|
+
type Section = {
|
|
42
|
+
id: string;
|
|
43
|
+
title: string;
|
|
44
|
+
variants: Variant[];
|
|
45
|
+
};
|
|
46
|
+
export interface VariantSelectorProps {
|
|
47
|
+
sections: Section[];
|
|
48
|
+
selectedVariant: string | null;
|
|
49
|
+
onVariantSelect: (variantId: string | null) => void;
|
|
50
|
+
renderImage: (imageProps: RenderImageProps) => React.ReactNode;
|
|
51
|
+
translations: {
|
|
52
|
+
soldOut: string;
|
|
53
|
+
earlyAccess: string;
|
|
54
|
+
comingSoon: string;
|
|
55
|
+
topPerformer: string;
|
|
56
|
+
bestPricePerformance: string;
|
|
57
|
+
mostVersatile: string;
|
|
58
|
+
topPerformanceHighDensity: string;
|
|
59
|
+
highestClientCapacity: string;
|
|
60
|
+
newerModels: string;
|
|
61
|
+
olderModels: string;
|
|
62
|
+
eaModels: string;
|
|
63
|
+
};
|
|
64
|
+
disableKeyFeatures?: boolean;
|
|
65
|
+
}
|
|
66
|
+
export {};
|
|
@@ -12,9 +12,9 @@ require('./assets/play.svg.js');
|
|
|
12
12
|
require('./assets/volume-off.svg.js');
|
|
13
13
|
require('./assets/volume-on.svg.js');
|
|
14
14
|
var VideoPlayer_styles = require('./VideoPlayer.styles.js');
|
|
15
|
-
var CloseIcon = require("../../assets/
|
|
15
|
+
var CloseIcon = require("../../assets/close2.svg");
|
|
16
16
|
var BackIcon = require("../../assets/back.svg");
|
|
17
|
-
var PauseIcon = require("../../assets/
|
|
17
|
+
var PauseIcon = require("../../assets/pause.svg");
|
|
18
18
|
var PlayIcon = require("../../assets/play.svg");
|
|
19
19
|
var VolumeOffIcon = require("../../assets/volume-off.svg");
|
|
20
20
|
var VolumeOnIcon = require("../../assets/volume-on.svg");
|
|
@@ -10,9 +10,9 @@ import './assets/play.svg.mjs';
|
|
|
10
10
|
import './assets/volume-off.svg.mjs';
|
|
11
11
|
import './assets/volume-on.svg.mjs';
|
|
12
12
|
import { Wrap, IconWrap, Icon, Video, ControlWrap, TimelineWrap, Timeline, Controls, LeftSide, IconButton, VolumeWrap, VolumeSliderWrap, VolumeSlider, Time, Center, RightSide } from './VideoPlayer.styles.mjs';
|
|
13
|
-
import CloseIcon__default from "../../assets/
|
|
13
|
+
import CloseIcon__default from "../../assets/close2.svg";
|
|
14
14
|
import BackIcon__default from "../../assets/back.svg";
|
|
15
|
-
import PauseIcon__default from "../../assets/
|
|
15
|
+
import PauseIcon__default from "../../assets/pause.svg";
|
|
16
16
|
import PlayIcon__default from "../../assets/play.svg";
|
|
17
17
|
import VolumeOffIcon__default from "../../assets/volume-off.svg";
|
|
18
18
|
import VolumeOnIcon__default from "../../assets/volume-on.svg";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Motif } from "@ubnt/ui-components/utils/commonTypes";
|
|
2
|
+
export interface VideoPlayerProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
showCloseButton?: boolean;
|
|
6
|
+
motif?: Motif;
|
|
7
|
+
title?: string;
|
|
8
|
+
src: {
|
|
9
|
+
hd: string;
|
|
10
|
+
uhd?: string;
|
|
11
|
+
};
|
|
12
|
+
poster?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/close2.svg";
|
|
2
|
+
export { default } from "../../../assets/close2.svg";
|
|
3
3
|
//# sourceMappingURL=close.svg.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/pause.svg";
|
|
2
|
+
export { default } from "../../../assets/pause.svg";
|
|
3
3
|
//# sourceMappingURL=pause.svg.mjs.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type YouTubeProgress = {
|
|
2
|
+
currentTime: number;
|
|
3
|
+
duration: number;
|
|
4
|
+
/** Rounded integer [0-100] */
|
|
5
|
+
percentage: number;
|
|
6
|
+
/** Raw decimal of the percentage [0-1] */
|
|
7
|
+
percentageRaw: number;
|
|
8
|
+
};
|
|
9
|
+
export type Props = {
|
|
10
|
+
src: string;
|
|
11
|
+
autoplay?: boolean;
|
|
12
|
+
/** First time played after ready (triggered only once) */
|
|
13
|
+
onStarted?: () => void;
|
|
14
|
+
/** First time ended by being complete */
|
|
15
|
+
onEnded?: () => void;
|
|
16
|
+
onProgress?: (progress: YouTubeProgress) => void;
|
|
17
|
+
videoNoCookiesConsent: boolean;
|
|
18
|
+
};
|