@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.
Files changed (183) hide show
  1. package/lib/assets/close2.svg +2 -3
  2. package/lib/assets/close3.svg +3 -2
  3. package/lib/assets/minus4.svg +8 -8
  4. package/lib/assets/minus5.svg +8 -8
  5. package/lib/assets/pause.svg +3 -3
  6. package/lib/assets/pause2.svg +3 -3
  7. package/lib/assets/plus5.svg +9 -9
  8. package/lib/assets/plus6.svg +9 -9
  9. package/lib/assets/udmPro.jpg +0 -0
  10. package/lib/assets/udmPro2.jpg +0 -0
  11. package/lib/assets/udmProMax.jpg +0 -0
  12. package/lib/assets/udmProMax2.jpg +0 -0
  13. package/lib/assets/udmProSpecial.jpg +0 -0
  14. package/lib/assets/udmProSpecial2.jpg +0 -0
  15. package/lib/components/Accordion/Accordion.types.d.ts +36 -0
  16. package/lib/components/AppDownloadBanner/AppDownloadBanner.types.d.ts +30 -0
  17. package/lib/components/Avatar/Avatar.types.d.ts +10 -0
  18. package/lib/components/BackInStock/BackInStock.types.d.ts +26 -0
  19. package/lib/components/Banner/Banner.types.d.ts +22 -0
  20. package/lib/components/Breadcrumbs/Breadcrumbs.types.d.ts +16 -0
  21. package/lib/components/BuiltFeaturesSection/BuiltFeaturesSection.types.d.ts +10 -0
  22. package/lib/components/Button/Button.types.d.ts +23 -0
  23. package/lib/components/ButtonGroup/ButtonGroup.types.d.ts +33 -0
  24. package/lib/components/ButtonGroupBasic/ButtonGroupBasic.types.d.ts +16 -0
  25. package/lib/components/CardSection/CardSection.types.d.ts +13 -0
  26. package/lib/components/CarouselGallery/CarouselGallery.types.d.ts +12 -0
  27. package/lib/components/CartIcon/CartIcon.types.d.ts +8 -0
  28. package/lib/components/CartSummary/CartSummary.types.d.ts +11 -0
  29. package/lib/components/CategoryTabs/CategoryTabs.types.d.ts +24 -0
  30. package/lib/components/Checkbox/Checkbox.types.d.ts +8 -0
  31. package/lib/components/CloserLookSection/CloserLookSection.types.d.ts +35 -0
  32. package/lib/components/CloserLookSection/RecommendedAddons/RecommendedAddons.types.d.ts +10 -0
  33. package/lib/components/Compare/Compare.types.d.ts +34 -0
  34. package/lib/components/CompareChart/CompareChart.types.d.ts +17 -0
  35. package/lib/components/CompareSection/CompareSection.types.d.ts +20 -0
  36. package/lib/components/Container/Container.types.d.ts +11 -0
  37. package/lib/components/CustomImage/CustomImage.types.d.ts +88 -0
  38. package/lib/components/DeploymentGallery/DeploymentGallery.types.d.ts +6 -0
  39. package/lib/components/Explore/Explore.types.d.ts +11 -0
  40. package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.types.d.ts +4 -0
  41. package/lib/components/FeaturesSection_deprecated/Features/Features.types.d.ts +18 -0
  42. package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
  43. package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
  44. package/lib/components/FeaturesSection_deprecated/FeaturesSection.types.d.ts +89 -0
  45. package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
  46. package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
  47. package/lib/components/Gallery/GalleryControls/GalleryControls.types.d.ts +16 -0
  48. package/lib/components/Gallery/GalleryThumbnails/GalleryThumbnails.types.d.ts +7 -0
  49. package/lib/components/GradientButton/GradientButton.types.d.ts +4 -0
  50. package/lib/components/GridGallery/GridModal/GridModal.types.d.ts +8 -0
  51. package/lib/components/Header/AccountFrame/AccountFrame.types.d.ts +8 -0
  52. package/lib/components/Header/AccountMenu/AccountMenu.types.d.ts +9 -0
  53. package/lib/components/Header/CartModal/CartModal.types.d.ts +9 -0
  54. package/lib/components/Header/CartModal/Empty/Empty.types.d.ts +6 -0
  55. package/lib/components/Header/CartModalV2/CartModal.types.d.ts +8 -0
  56. package/lib/components/Header/CartModalV2/Item/Item.types.d.ts +7 -0
  57. package/lib/components/Header/LanguageFrame/LanguageFrame.types.d.ts +6 -0
  58. package/lib/components/Header/LinksModal/LinksModal.types.d.ts +11 -0
  59. package/lib/components/Header/MenuItem/MenuItem.types.d.ts +31 -0
  60. package/lib/components/Header/Navigation/Carousel/Carousel.types.d.ts +16 -0
  61. package/lib/components/Header/Navigation/MicrositeMenu/MicrositeMenu.types.d.ts +35 -0
  62. package/lib/components/Header/Navigation/MobileMenu/MobileMenu.types.d.ts +11 -0
  63. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.types.d.ts +40 -0
  64. package/lib/components/Header/Overlay/Overlay.types.d.ts +6 -0
  65. package/lib/components/Header/SearchTab/SearchTab.types.d.ts +13 -0
  66. package/lib/components/HeroFadeGallery/HeroFadeGallery.types.d.ts +20 -0
  67. package/lib/components/HeroVideo/HeroVideo.types.d.ts +9 -0
  68. package/lib/components/HowToUseSection/HowToUseSection.types.d.ts +11 -0
  69. package/lib/components/ImageCarousel/ImageCarousel.types.d.ts +11 -0
  70. package/lib/components/ImageModal/ImageModal.types.d.ts +10 -0
  71. package/lib/components/InputSelect/InputSelect.types.d.ts +13 -0
  72. package/lib/components/LandingPage/Block/Block.types.d.ts +11 -0
  73. package/lib/components/LandingPage/Cards/Card/Card.types.d.ts +19 -0
  74. package/lib/components/LandingPage/Cards/Cards.types.d.ts +19 -0
  75. package/lib/components/LandingPage/LandingPage.types.d.ts +16 -0
  76. package/lib/components/LandingPagePro/LandingPagePro.types.d.ts +39 -0
  77. package/lib/components/LandingPageSearch/Modal/Modal.types.d.ts +20 -0
  78. package/lib/components/LandingPageSidebar/LandingPageSidebar.types.d.ts +92 -0
  79. package/lib/components/LayoutRendererV1/LayoutRenderer.types.d.ts +91 -0
  80. package/lib/components/LayoutRendererV2/LayoutRenderer.types.d.ts +93 -0
  81. package/lib/components/Loader/Loader.types.d.ts +9 -0
  82. package/lib/components/LoaderDots/LoaderDots.types.d.ts +4 -0
  83. package/lib/components/MeetUniFiVideoPlayer/EpisodeCard/EpisodeCard.types.d.ts +7 -0
  84. package/lib/components/MeetUniFiVideoPlayer/MeetUniFiVideoPlayer.types.d.ts +46 -0
  85. package/lib/components/MicrositeColumnFeatureProgressBar/MicrositeColumnFeatureProgressBar.types.d.ts +12 -0
  86. package/lib/components/MicrositeFeatureIcons/MicrositeFeatureIcons.types.d.ts +26 -0
  87. package/lib/components/MicrositeProductLearnMoreBlock/MicrositeProductLearnMoreBlock.types.d.ts +15 -0
  88. package/lib/components/MicrositeSection/AllFeaturesButton/AllFeaturesButton.types.d.ts +4 -0
  89. package/lib/components/MicrositeSection/Features/Features.types.d.ts +18 -0
  90. package/lib/components/MicrositeSection/MicrositeSection.types.d.ts +103 -0
  91. package/lib/components/MicrositeSectionWrap/MicrositeSectionWrap.types.d.ts +9 -0
  92. package/lib/components/MicrositeSubSubNavigation/MicrositeSubSubNavigation.types.d.ts +5 -0
  93. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
  94. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
  95. package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.types.d.ts +42 -0
  96. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
  97. package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
  98. package/lib/components/MobileModal/MobileModal.types.d.ts +15 -0
  99. package/lib/components/ModelCompareV3/ModelCompareV3.types.d.ts +592 -0
  100. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
  101. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
  102. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
  103. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
  104. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
  105. package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
  106. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
  107. package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
  108. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
  109. package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
  110. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
  111. package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
  112. package/lib/components/ModelCompareV3/data/CloudGateways.js +9 -9
  113. package/lib/components/ModelCompareV3/data/CloudGateways.mjs +6 -6
  114. package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
  115. package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
  116. package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
  117. package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
  118. package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
  119. package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
  120. package/lib/components/Pagination/Pagination.types.d.ts +5 -0
  121. package/lib/components/Popover/Popover.types.d.ts +8 -0
  122. package/lib/components/ProductCard/ProductCard.types.d.ts +9 -0
  123. package/lib/components/ProductCardPopup/ProductCardPopup.types.d.ts +36 -0
  124. package/lib/components/ProductCompare/ProductCompare.types.d.ts +17 -0
  125. package/lib/components/ProductDetails/ProductDetails.types.d.ts +6 -0
  126. package/lib/components/ProductKeyFeatures/ProductKeyFeatures.types.d.ts +19 -0
  127. package/lib/components/ProductRecommendedAccessories/ProductRecommendedAccessories.types.d.ts +17 -0
  128. package/lib/components/ProductSectionNavigation/ProductSectionNavigation.types.d.ts +25 -0
  129. package/lib/components/ProductSectionNavigationV2/ProductSectionNavigation.types.d.ts +21 -0
  130. package/lib/components/ProductSectionTabs/ProductSectionTabs.types.d.ts +25 -0
  131. package/lib/components/ProductTechSpecs/ProductTechSpecs.types.d.ts +13 -0
  132. package/lib/components/ProductUpsell/ProductUpsell.types.d.ts +38 -0
  133. package/lib/components/ProductWizard/Options/Options.types.d.ts +8 -0
  134. package/lib/components/ProductWizard/ProductWizard.types.d.ts +99 -0
  135. package/lib/components/ProductWizardFootnotes/ProductWizardFootnotes.types.d.ts +7 -0
  136. package/lib/components/ProgressCircle/ProgressCircle.types.d.ts +9 -0
  137. package/lib/components/QuantityControls/QuantityControls.types.d.ts +11 -0
  138. package/lib/components/QuantityInput/QuantityInput.types.d.ts +10 -0
  139. package/lib/components/RelatedProducts/RelatedProducts.types.d.ts +32 -0
  140. package/lib/components/RelatedProductsVariantSelector/RelatedProductsVariantSelector.types.d.ts +32 -0
  141. package/lib/components/RelatedProductsVariantSelectorV1/RelatedProductsVariantSelector.types.d.ts +30 -0
  142. package/lib/components/RelatedProductsVariantSelectorV2/RelatedProductsVariantSelector.types.d.ts +31 -0
  143. package/lib/components/RelatedProductsVariantSelectorsV1/RelatedProductsVariantSelectors.types.d.ts +19 -0
  144. package/lib/components/RelatedProductsVariantSelectorsV2/RelatedProductsVariantSelectors.types.d.ts +19 -0
  145. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.types.d.ts +36 -0
  146. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  147. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  148. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  149. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  150. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  151. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  152. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.types.d.ts +7 -0
  153. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  154. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  155. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  156. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  157. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  158. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  159. package/lib/components/ResourceCalculatorV1/components/HorizontalOptionSelect/HorizontalOptionSelect.types.d.ts +9 -0
  160. package/lib/components/ReverseLoopingVideo/ReverseLoopingVideo.types.d.ts +5 -0
  161. package/lib/components/ScrollWrapper/ScrollWrapper.types.d.ts +54 -0
  162. package/lib/components/Search/Input/Input.types.d.ts +19 -0
  163. package/lib/components/StaticModal/StaticModal.types.d.ts +10 -0
  164. package/lib/components/StorageSliders/Slider/Slider.types.d.ts +5 -0
  165. package/lib/components/TabinationButtons/TabinationButtons.types.d.ts +22 -0
  166. package/lib/components/TopologyScheme/TopologyScheme.types.d.ts +35 -0
  167. package/lib/components/UICare/UICare.types.d.ts +52 -0
  168. package/lib/components/VariantSelector/Variant/BundleOffer/BundleOffer.types.d.ts +6 -0
  169. package/lib/components/VariantSelector/Variant/Compatibility/Compatibility.types.d.ts +11 -0
  170. package/lib/components/VariantSelector/Variant/Variant.types.d.ts +18 -0
  171. package/lib/components/VariantSelector/VariantSelector.types.d.ts +38 -0
  172. package/lib/components/VariantSelectorItem/VariantSelectorItem.types.d.ts +5 -0
  173. package/lib/components/VariantSelectorV1/VariantSelector.types.d.ts +66 -0
  174. package/lib/components/VariantSelectorV2/VariantSelector.types.d.ts +66 -0
  175. package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
  176. package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
  177. package/lib/components/VideoPlayerNew/VideoPlayer.types.d.ts +14 -0
  178. package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
  179. package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
  180. package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
  181. package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
  182. package/lib/components/YouTubePlayer/YouTubePlayer.types.d.ts +18 -0
  183. 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,6 @@
1
+ import type { VariantBundleOffer } from "../../../LayoutRenderer/LayoutRenderer.types";
2
+ export interface BundleOfferProps {
3
+ offer: VariantBundleOffer;
4
+ selected: boolean;
5
+ onSelect: () => void;
6
+ }
@@ -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,5 @@
1
+ export interface VariantSelectorItemProps {
2
+ selected?: boolean;
3
+ className?: string;
4
+ onClick?: () => void;
5
+ }
@@ -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/close3.svg");
15
+ var CloseIcon = require("../../assets/close2.svg");
16
16
  var BackIcon = require("../../assets/back.svg");
17
- var PauseIcon = require("../../assets/pause2.svg");
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/close3.svg";
13
+ import CloseIcon__default from "../../assets/close2.svg";
14
14
  import BackIcon__default from "../../assets/back.svg";
15
- import PauseIcon__default from "../../assets/pause2.svg";
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
+ }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var CloseIcon = require("../../../assets/close3.svg");
6
+ var CloseIcon = require("../../../assets/close2.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../assets/close3.svg";
2
- export { default } from "../../../assets/close3.svg";
1
+ export * from "../../../assets/close2.svg";
2
+ export { default } from "../../../assets/close2.svg";
3
3
  //# sourceMappingURL=close.svg.mjs.map
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var PauseIcon = require("../../../assets/pause2.svg");
6
+ var PauseIcon = require("../../../assets/pause.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
@@ -1,3 +1,3 @@
1
- export * from "../../../assets/pause2.svg";
2
- export { default } from "../../../assets/pause2.svg";
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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubnt/store.core",
3
- "version": "9.31.0-dts-fix.2",
3
+ "version": "9.31.0-dts-fix.3",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "scripts": {