@sonic-equipment/ui 0.0.71 → 0.0.73

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 (62) hide show
  1. package/dist/index.d.ts +35 -113
  2. package/dist/index.js +487 -327
  3. package/dist/src/background-overlay/background-overlay.d.ts +7 -0
  4. package/dist/src/buttons/add-to-cart-button/add-to-cart-button.stories.d.ts +1 -1
  5. package/dist/src/buttons/button/button.stories.d.ts +1 -1
  6. package/dist/src/buttons/favorite/favorite-button.stories.d.ts +1 -1
  7. package/dist/src/buttons/icon-button/icon-button.stories.d.ts +1 -1
  8. package/dist/src/buttons/link/link.stories.d.ts +1 -1
  9. package/dist/src/cards/product-card/connected-product-cart.d.ts +1 -1
  10. package/dist/src/carousel/product-carousel/product-carousel.d.ts +2 -1
  11. package/dist/src/carousel/product-carousel/product-carousel.stories.d.ts +19 -0
  12. package/dist/src/collapsables/show-all/show-all.stories.d.ts +1 -1
  13. package/dist/src/filters/active-filters/active-filters.stories.d.ts +2 -2
  14. package/dist/src/filters/multi-select/multi-select.stories.d.ts +1 -1
  15. package/dist/src/filters/pagination/pagination.stories.d.ts +1 -1
  16. package/dist/src/forms/checkbox/checkbox.stories.d.ts +1 -1
  17. package/dist/src/forms/color-checkbox/color-checkbox.stories.d.ts +1 -1
  18. package/dist/src/forms/select/select.stories.d.ts +1 -1
  19. package/dist/src/index.d.ts +20 -22
  20. package/dist/src/media/image-grid/images-grid.d.ts +7 -0
  21. package/dist/src/media/image-grid/images-grid.stories.d.ts +11 -0
  22. package/dist/src/pages/error-page/error-page.d.ts +4 -0
  23. package/dist/src/pages/layouts/product-details-page-layout.d.ts +9 -0
  24. package/dist/src/pages/loading-page/loading-page.d.ts +1 -0
  25. package/dist/src/promos/promo-cards/promo-cards.d.ts +8 -4
  26. package/dist/src/promos/promo-cards/promo-cards.stories.d.ts +1 -3
  27. package/dist/src/shared/api/bff/hooks/use-fetch-product-details-page-data.d.ts +7 -0
  28. package/dist/src/shared/api/bff/hooks/use-fetch-product-details-page-data.stories.d.ts +20 -0
  29. package/dist/src/shared/api/bff/hooks/use-fetch-product-listing-page-data.stories.d.ts +0 -1
  30. package/dist/src/shared/api/bff/model/bff.model.d.ts +99 -9
  31. package/dist/src/shared/api/storefront/hooks/authentication/use-session.d.ts +4 -0
  32. package/dist/src/shared/api/{shop → storefront}/hooks/authentication/use-sign-in.d.ts +1 -1
  33. package/dist/src/shared/api/{shop → storefront}/hooks/cart/cart.stories.d.ts +1 -1
  34. package/dist/src/shared/api/{shop → storefront}/hooks/cart/use-add-product-to-current-cart.d.ts +1 -1
  35. package/dist/src/shared/api/{shop → storefront}/hooks/wishlist/use-fetch-all-wishlists-items.d.ts +1 -1
  36. package/dist/src/shared/api/{shop → storefront}/hooks/wishlist/use-fetch-wishlists.d.ts +1 -1
  37. package/dist/src/shared/api/{shop → storefront}/services/authentication-service.d.ts +1 -1
  38. package/dist/src/shared/api/{shop → storefront}/services/cart-service.d.ts +1 -1
  39. package/dist/src/shared/api/{shop → storefront}/services/wishlist-service.d.ts +1 -1
  40. package/dist/src/shared/providers/cart-provider.d.ts +1 -1
  41. package/dist/src/shared/providers/favorite-provider.d.ts +1 -1
  42. package/dist/src/shared/routing/route-button.d.ts +1 -1
  43. package/dist/src/shared/routing/route-provider.d.ts +1 -0
  44. package/dist/styles.css +362 -198
  45. package/package.json +2 -2
  46. package/dist/src/overlay-background/overlay-background.d.ts +0 -7
  47. package/dist/src/shared/api/shop/hooks/authentication/use-session.d.ts +0 -2
  48. /package/dist/src/shared/api/{shop → storefront}/hooks/authentication/authentication.stories.d.ts +0 -0
  49. /package/dist/src/shared/api/{shop → storefront}/hooks/authentication/use-is-authenticated.d.ts +0 -0
  50. /package/dist/src/shared/api/{shop → storefront}/hooks/authentication/use-sign-out.d.ts +0 -0
  51. /package/dist/src/shared/api/{shop → storefront}/hooks/cart/use-delete-cart-line-by-id.d.ts +0 -0
  52. /package/dist/src/shared/api/{shop → storefront}/hooks/cart/use-fetch-current-cart-lines.d.ts +0 -0
  53. /package/dist/src/shared/api/{shop → storefront}/hooks/cart/use-update-cart-line-by-id.d.ts +0 -0
  54. /package/dist/src/shared/api/{shop → storefront}/hooks/translation/translations.stories.d.ts +0 -0
  55. /package/dist/src/shared/api/{shop → storefront}/hooks/translation/use-fetch-translations.d.ts +0 -0
  56. /package/dist/src/shared/api/{shop → storefront}/hooks/wishlist/use-add-wishlist-item-to-current-wishlist.d.ts +0 -0
  57. /package/dist/src/shared/api/{shop → storefront}/hooks/wishlist/use-add-wishlist-item-to-wishlist.d.ts +0 -0
  58. /package/dist/src/shared/api/{shop → storefront}/hooks/wishlist/use-create-wishlist.d.ts +0 -0
  59. /package/dist/src/shared/api/{shop → storefront}/hooks/wishlist/use-delete-wishlist-item-from-wishlist.d.ts +0 -0
  60. /package/dist/src/shared/api/{shop → storefront}/hooks/wishlist/wishlist.stories.d.ts +0 -0
  61. /package/dist/src/shared/api/{shop → storefront}/model/shop.model.d.ts +0 -0
  62. /package/dist/src/shared/api/{shop → storefront}/services/translation-service.d.ts +0 -0
@@ -0,0 +1,7 @@
1
+ interface BackgroundOverlayProps {
2
+ className?: string;
3
+ isOpen: boolean;
4
+ onClick?: VoidFunction;
5
+ }
6
+ export declare function BackgroundOverlay({ className, isOpen, onClick, }: BackgroundOverlayProps): React.ReactPortal | null;
7
+ export {};
@@ -8,7 +8,7 @@ declare const meta: {
8
8
  };
9
9
  args: {
10
10
  isDisabled: false;
11
- onChange: import("@vitest/spy").Mock<[quantity: number], void>;
11
+ onChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
12
12
  quantity: number;
13
13
  };
14
14
  component: typeof AddToCartButton;
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react';
2
2
  import { Button } from './button';
3
3
  declare const meta: {
4
4
  args: {
5
- onPress: import("@vitest/spy").Mock<[] & unknown[], void>;
5
+ onPress: import("@vitest/spy").Mock<(...args: any[]) => any>;
6
6
  size: "lg";
7
7
  };
8
8
  component: typeof Button;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
2
2
  import { FavoriteButton } from './favorite-button';
3
3
  declare const meta: {
4
4
  args: {
5
- onPress: import("@vitest/spy").Mock<[], void>;
5
+ onPress: import("@vitest/spy").Mock<(...args: any[]) => any>;
6
6
  };
7
7
  component: typeof FavoriteButton;
8
8
  parameters: {
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react';
2
2
  import { IconButton } from './icon-button';
3
3
  declare const meta: {
4
4
  args: {
5
- onPress: import("@vitest/spy").Mock<[], void>;
5
+ onPress: import("@vitest/spy").Mock<(...args: any[]) => any>;
6
6
  };
7
7
  component: typeof IconButton;
8
8
  parameters: {
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react';
2
2
  import { Link } from './link';
3
3
  declare const meta: {
4
4
  args: {
5
- onPress: import("@vitest/spy").Mock<[e: import("react-aria").PressEvent], void>;
5
+ onPress: import("@vitest/spy").Mock<(...args: any[]) => any>;
6
6
  };
7
7
  component: typeof Link;
8
8
  parameters: {
@@ -1,5 +1,5 @@
1
1
  import { ProductCardProps } from './product-card';
2
- export interface ConnectedProductCartProps extends Omit<ProductCardProps, 'addToCartButton'> {
2
+ export interface ConnectedProductCartProps extends Omit<ProductCardProps, 'addToCartButton' | 'favoriteButton'> {
3
3
  onAddToCart?: VoidFunction;
4
4
  onFavorite?: VoidFunction;
5
5
  productId: string;
@@ -1,5 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  export interface ProductCarouselProps {
3
+ hasOverflow?: boolean;
3
4
  productCards: ReactNode[];
4
5
  }
5
- export declare function ProductCarousel({ productCards }: ProductCarouselProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function ProductCarousel({ hasOverflow, productCards, }: ProductCarouselProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { ProductCarousel } from './product-carousel';
3
+ declare const meta: {
4
+ args: {
5
+ productCards: import("react/jsx-runtime").JSX.Element[];
6
+ };
7
+ component: typeof ProductCarousel;
8
+ parameters: {
9
+ layout: string;
10
+ tags: string[];
11
+ };
12
+ title: string;
13
+ };
14
+ export default meta;
15
+ type Story = StoryObj<typeof meta>;
16
+ export declare const Small: Story;
17
+ export declare const Medium: Story;
18
+ export declare const Large: Story;
19
+ export declare const Hover: Story;
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
2
2
  import { ShowAllProps } from './show-all';
3
3
  declare const meta: {
4
4
  args: {
5
- onToggle: import("@vitest/spy").Mock<[isOpen: boolean], void>;
5
+ onToggle: import("@vitest/spy").Mock<(...args: any[]) => any>;
6
6
  };
7
7
  component: ({ children, hasTransparency, initialHeight, isOpen, onToggle, }: ShowAllProps) => import("react/jsx-runtime").JSX.Element;
8
8
  parameters: {
@@ -1,8 +1,8 @@
1
1
  import type { StoryObj } from '@storybook/react';
2
2
  declare const meta: {
3
3
  args: {
4
- onClearAllFilters: import("@vitest/spy").Mock<[], void>;
5
- onClearFilter: import("@vitest/spy").Mock<[categoryLabel: string, filter: import("./active-filters").SelectedFilter], void>;
4
+ onClearAllFilters: import("@vitest/spy").Mock<(...args: any[]) => any>;
5
+ onClearFilter: import("@vitest/spy").Mock<(...args: any[]) => any>;
6
6
  };
7
7
  component: ({ onClearAllFilters, onClearFilter, selectedFilterCategories, }: import("./active-filters").ActiveFiltersProps) => import("react/jsx-runtime").JSX.Element | null;
8
8
  parameters: {
@@ -5,7 +5,7 @@ type ColorFilterOption = FilterOption & {
5
5
  };
6
6
  declare const meta: {
7
7
  args: {
8
- onChange: import("@vitest/spy").Mock<[value: FilterOption], void>;
8
+ onChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
9
9
  };
10
10
  component: typeof MultiSelect;
11
11
  parameters: {
@@ -3,7 +3,7 @@ import { Pagination } from './pagination';
3
3
  declare const meta: {
4
4
  args: {
5
5
  currentPage: number;
6
- onChange: import("@vitest/spy").Mock<[pageNumber: number], void>;
6
+ onChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
7
7
  totalPages: number;
8
8
  };
9
9
  component: typeof Pagination;
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react';
2
2
  import { Checkbox } from './checkbox';
3
3
  declare const meta: {
4
4
  args: {
5
- onChange: import("@vitest/spy").Mock<[isSelected: boolean], void>;
5
+ onChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
6
6
  };
7
7
  component: typeof Checkbox;
8
8
  parameters: {
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react';
2
2
  import { ColorCheckbox } from './color-checkbox';
3
3
  declare const meta: {
4
4
  args: {
5
- onChange: import("@vitest/spy").Mock<[isSelected: boolean], void>;
5
+ onChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
6
6
  };
7
7
  component: typeof ColorCheckbox;
8
8
  parameters: {
@@ -9,7 +9,7 @@ declare const options: {
9
9
  };
10
10
  declare const meta: {
11
11
  args: {
12
- onChange: import("@vitest/spy").Mock<[value: never], void>;
12
+ onChange: import("@vitest/spy").Mock<(...args: any[]) => any>;
13
13
  };
14
14
  component: typeof Select;
15
15
  parameters: {
@@ -3,28 +3,26 @@ export * from 'shared/utils/environment';
3
3
  export * from './config';
4
4
  export * from './shared/fetch/request';
5
5
  export * from './shared/feature-flags/use-feature-flags';
6
- export * from './shared/api/bff/model/bff.model';
7
- export * from './shared/api/bff/hooks/use-fetch-product-listing-page-data';
8
- export * from './shared/api/shop/model/shop.model';
9
- export * from './shared/api/shop/services/authentication-service';
10
- export * from './shared/api/shop/services/cart-service';
11
- export * from './shared/api/shop/services/translation-service';
12
- export * from './shared/api/shop/services/wishlist-service';
13
- export * from './shared/api/shop/hooks/authentication/use-is-authenticated';
14
- export * from './shared/api/shop/hooks/authentication/use-session';
15
- export * from './shared/api/shop/hooks/authentication/use-sign-in';
16
- export * from './shared/api/shop/hooks/authentication/use-sign-out';
17
- export * from './shared/api/shop/hooks/cart/use-add-product-to-current-cart';
18
- export * from './shared/api/shop/hooks/cart/use-delete-cart-line-by-id';
19
- export * from './shared/api/shop/hooks/cart/use-fetch-current-cart-lines';
20
- export * from './shared/api/shop/hooks/cart/use-update-cart-line-by-id';
21
- export * from './shared/api/shop/hooks/translation/use-fetch-translations';
22
- export * from './shared/api/shop/hooks/wishlist/use-add-wishlist-item-to-current-wishlist';
23
- export * from './shared/api/shop/hooks/wishlist/use-add-wishlist-item-to-wishlist';
24
- export * from './shared/api/shop/hooks/wishlist/use-create-wishlist';
25
- export * from './shared/api/shop/hooks/wishlist/use-delete-wishlist-item-from-wishlist';
26
- export * from './shared/api/shop/hooks/wishlist/use-fetch-all-wishlists-items';
27
- export * from './shared/api/shop/hooks/wishlist/use-fetch-wishlists';
6
+ export * from './shared/api/storefront/model/shop.model';
7
+ export * from './shared/api/storefront/services/authentication-service';
8
+ export * from './shared/api/storefront/services/cart-service';
9
+ export * from './shared/api/storefront/services/translation-service';
10
+ export * from './shared/api/storefront/services/wishlist-service';
11
+ export * from './shared/api/storefront/hooks/authentication/use-is-authenticated';
12
+ export * from './shared/api/storefront/hooks/authentication/use-session';
13
+ export * from './shared/api/storefront/hooks/authentication/use-sign-in';
14
+ export * from './shared/api/storefront/hooks/authentication/use-sign-out';
15
+ export * from './shared/api/storefront/hooks/cart/use-add-product-to-current-cart';
16
+ export * from './shared/api/storefront/hooks/cart/use-delete-cart-line-by-id';
17
+ export * from './shared/api/storefront/hooks/cart/use-fetch-current-cart-lines';
18
+ export * from './shared/api/storefront/hooks/cart/use-update-cart-line-by-id';
19
+ export * from './shared/api/storefront/hooks/translation/use-fetch-translations';
20
+ export * from './shared/api/storefront/hooks/wishlist/use-add-wishlist-item-to-current-wishlist';
21
+ export * from './shared/api/storefront/hooks/wishlist/use-add-wishlist-item-to-wishlist';
22
+ export * from './shared/api/storefront/hooks/wishlist/use-create-wishlist';
23
+ export * from './shared/api/storefront/hooks/wishlist/use-delete-wishlist-item-from-wishlist';
24
+ export * from './shared/api/storefront/hooks/wishlist/use-fetch-all-wishlists-items';
25
+ export * from './shared/api/storefront/hooks/wishlist/use-fetch-wishlists';
28
26
  export * from './shared/hooks/use-breakpoint';
29
27
  export * from './shared/hooks/use-is-breakpoint';
30
28
  export * from './shared/hooks/use-debounced-callback';
@@ -0,0 +1,7 @@
1
+ import { Image as ImageType } from 'shared/model/image';
2
+ interface ImagesGridProps {
3
+ images: ImageType[];
4
+ onSelectImage?: (image: ImageType, index: number) => void;
5
+ }
6
+ export declare function ImagesGrid({ images, onSelectImage }: ImagesGridProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { ImagesGrid } from './images-grid';
3
+ declare const meta: Meta<typeof ImagesGrid>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Clickable: Story;
7
+ export declare const FiveImages: Story;
8
+ export declare const FourImages: Story;
9
+ export declare const ThreeImages: Story;
10
+ export declare const TwoImages: Story;
11
+ export declare const OneImage: Story;
@@ -0,0 +1,4 @@
1
+ export interface ErrorPageProps {
2
+ error: Error;
3
+ }
4
+ export declare function ErrorPage({ error }: ErrorPageProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ interface ProductDetailsPageLayoutProps {
2
+ imageGallery?: React.ReactNode;
3
+ included?: React.ReactNode;
4
+ productInformation?: React.ReactNode;
5
+ recentlyViewed?: React.ReactNode;
6
+ usp?: React.ReactNode;
7
+ }
8
+ export declare function ProductDetailsPageLayout({ imageGallery, included, productInformation, recentlyViewed, usp, }: ProductDetailsPageLayoutProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export declare function LoadingPage(): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,8 @@
1
- import { PromoCard as PromoCardType } from 'shared/api/bff/model/bff.model';
2
- export declare function PromoCards({ promoCardsData, }: {
3
- promoCardsData?: PromoCardType[];
4
- }): import("react/jsx-runtime").JSX.Element | null;
1
+ import { ResponsiveImage } from 'shared/model/image';
2
+ export interface PromoCardsProps {
3
+ promoCardsData?: Array<{
4
+ href: string;
5
+ image: ResponsiveImage;
6
+ }>;
7
+ }
8
+ export declare function PromoCards({ promoCardsData }: PromoCardsProps): import("react/jsx-runtime").JSX.Element | null;
@@ -5,9 +5,7 @@ declare const meta: {
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
8
- render: (args: {
9
- promoCardsData?: import("../..").PromoCard[];
10
- }) => import("react/jsx-runtime").JSX.Element;
8
+ render: (args: import("./promo-cards").PromoCardsProps) => import("react/jsx-runtime").JSX.Element;
11
9
  tags: string[];
12
10
  title: string;
13
11
  };
@@ -0,0 +1,7 @@
1
+ import { ProductDetailsPageDataResponse } from 'shared/api/bff/model/bff.model';
2
+ interface FetchProductDetailsPageDataArgs {
3
+ languageCode: string;
4
+ pageUrl: string;
5
+ }
6
+ export declare function useFetchProductDetailsPageData({ languageCode, pageUrl, }: FetchProductDetailsPageDataArgs): import("@tanstack/react-query").UseQueryResult<ProductDetailsPageDataResponse, Error>;
7
+ export {};
@@ -0,0 +1,20 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ interface StoryProps {
3
+ languageCode: string;
4
+ pageUrl: string;
5
+ }
6
+ declare function UseFetchProductDetailsPageDataStory({ languageCode, pageUrl, }: StoryProps): import("react/jsx-runtime").JSX.Element;
7
+ declare const meta: {
8
+ args: {
9
+ languageCode: string;
10
+ pageUrl: string;
11
+ };
12
+ component: typeof UseFetchProductDetailsPageDataStory;
13
+ parameters: {
14
+ layout: string;
15
+ };
16
+ title: string;
17
+ };
18
+ export default meta;
19
+ type Story = StoryObj<typeof meta>;
20
+ export declare const Default: Story;
@@ -13,7 +13,6 @@ declare const meta: {
13
13
  parameters: {
14
14
  layout: string;
15
15
  };
16
- tags: string[];
17
16
  title: string;
18
17
  };
19
18
  export default meta;
@@ -1,5 +1,4 @@
1
- import { ResponsiveImage } from 'shared/model/image';
2
- export interface Category {
1
+ interface Category {
3
2
  activateOn: string;
4
3
  deactivateOn: string | null;
5
4
  htmlContent: string;
@@ -27,22 +26,113 @@ export interface Category {
27
26
  uri: null;
28
27
  urlSegment: string;
29
28
  }
30
- export interface PromoCard {
29
+ interface PromoCard {
31
30
  href: string;
32
31
  image: ResponsiveImage;
33
32
  }
34
- export interface PromoCards {
33
+ interface PromoCards {
35
34
  top: PromoCard[] | null;
36
35
  }
37
- export interface BreadCrumb {
38
- categoryId: string;
39
- text: string;
40
- url: string;
36
+ interface BreadCrumb {
37
+ href: string;
38
+ label: string;
41
39
  }
42
- export interface ProductListingPageDataResponse {
40
+ interface DPRSrcSet {
41
+ 1: string;
42
+ 2: string;
43
+ 3: string;
44
+ }
45
+ interface Image extends DPRSrcSet {
46
+ altText: string;
47
+ }
48
+ interface ResponsiveImage {
49
+ altText: string;
50
+ lg: DPRSrcSet;
51
+ md: DPRSrcSet;
52
+ sm: DPRSrcSet;
53
+ }
54
+ interface ProductPrice {
55
+ isVatIncluded: boolean;
56
+ originalPrice: number;
57
+ price: number;
58
+ }
59
+ interface ProductSummary {
60
+ href: string;
61
+ image: Image;
62
+ price: ProductPrice;
63
+ productId: string;
64
+ sku: string;
65
+ storefrontId: string;
66
+ tags?: string[];
67
+ title: string;
68
+ }
69
+ interface ProductDetails {
70
+ attributeTypes: Array<{
71
+ attributeValues: Array<{
72
+ id: string;
73
+ sortOrder: number;
74
+ value: string;
75
+ valueDisplay: string;
76
+ }>;
77
+ id: string;
78
+ includeOnProduct: boolean;
79
+ label: string;
80
+ name: string;
81
+ sortOrder: number;
82
+ }>;
83
+ canAddToCart: boolean;
84
+ canAddToWishlist: boolean;
85
+ canShowPrice: boolean;
86
+ canonicalUrl: string;
87
+ content: {
88
+ htmlContent: string;
89
+ metaDescription: string;
90
+ metaKeywords: string;
91
+ openGraphImage: string;
92
+ openGraphTitle: string;
93
+ openGraphUrl: string;
94
+ pageTitle: string;
95
+ };
96
+ documents: Array<{
97
+ description: string;
98
+ documentType: string;
99
+ filePath: string;
100
+ id: string;
101
+ name: string;
102
+ }>;
103
+ images: Array<Image>;
104
+ minimumOrderQty: number;
105
+ originalPrice: number;
106
+ price: number;
107
+ productNumber: string;
108
+ productTitle: string;
109
+ specifications: Array<{
110
+ description: string;
111
+ htmlContent: string;
112
+ id: string;
113
+ name: string;
114
+ nameDisplay: string;
115
+ sortOrder: number;
116
+ value: string;
117
+ }>;
118
+ storefrontId: string;
119
+ tags?: string[];
120
+ unitListPrice: number;
121
+ }
122
+ export interface ProductDetailsPageDataResponse {
43
123
  breadCrumb: BreadCrumb[];
124
+ included?: ProductSummary[];
125
+ product: ProductDetails;
126
+ recentlyViewed?: ProductSummary[];
127
+ }
128
+ export interface ProductListingPageDataResponse {
129
+ breadCrumb: Array<{
130
+ text: string;
131
+ url: string;
132
+ }>;
44
133
  categories: Category | null;
45
134
  categoryPages: string;
46
135
  hierarchicalCategories: string[];
47
136
  promoCards: PromoCards | null;
48
137
  }
138
+ export {};
@@ -0,0 +1,4 @@
1
+ import { SessionModel as ShopSessionModel } from 'shared/api/storefront/model/shop.model';
2
+ export declare function useSession({ enabled }?: {
3
+ enabled?: boolean;
4
+ }): import("@tanstack/react-query").UseQueryResult<ShopSessionModel, Error>;
@@ -1,4 +1,4 @@
1
- import { AuthenticationResponse } from 'shared/api/shop/services/authentication-service';
1
+ import { AuthenticationResponse } from 'shared/api/storefront/services/authentication-service';
2
2
  export declare function useSignIn(): import("@tanstack/react-query").UseMutationResult<AuthenticationResponse, Error, {
3
3
  password: string;
4
4
  userName: string;
@@ -1,5 +1,5 @@
1
1
  import { StoryObj } from '@storybook/react';
2
- import { AddProductToCurrentCartParams } from 'shared/api/shop/services/cart-service';
2
+ import { AddProductToCurrentCartParams } from 'shared/api/storefront/services/cart-service';
3
3
  declare const meta: {
4
4
  parameters: {
5
5
  layout: string;
@@ -1,3 +1,3 @@
1
- import { AddProductToCurrentCartParams } from 'shared/api/shop/services/cart-service';
1
+ import { AddProductToCurrentCartParams } from 'shared/api/storefront/services/cart-service';
2
2
  import { CartLineModel } from 'shared/model/cart';
3
3
  export declare function useAddProductToCurrentCart(): import("@tanstack/react-query").UseMutationResult<CartLineModel, Error, AddProductToCurrentCartParams, unknown>;
@@ -1,4 +1,4 @@
1
- import { WishListLines } from 'shared/api/shop/model/shop.model';
1
+ import { WishListLines } from 'shared/api/storefront/model/shop.model';
2
2
  interface UseFetchAllWishListsItemsArgs {
3
3
  enabled?: boolean;
4
4
  }
@@ -1,2 +1,2 @@
1
- import { WishListCollectionModel as ShopWishListCollectionModel } from 'shared/api/shop/model/shop.model';
1
+ import { WishListCollectionModel as ShopWishListCollectionModel } from 'shared/api/storefront/model/shop.model';
2
2
  export declare function useFetchWishLists(): import("@tanstack/react-query").UseQueryResult<ShopWishListCollectionModel, Error>;
@@ -1,4 +1,4 @@
1
- import { SessionModel as ShopSessionModel } from 'shared/api/shop/model/shop.model';
1
+ import { SessionModel as ShopSessionModel } from 'shared/api/storefront/model/shop.model';
2
2
  export declare function getSession(): Promise<ShopSessionModel>;
3
3
  export interface AuthenticationResponse {
4
4
  access_token: string;
@@ -1,4 +1,4 @@
1
- import { CartLineModel as ShopCartLineModel } from 'shared/api/shop/model/shop.model';
1
+ import { CartLineModel as ShopCartLineModel } from 'shared/api/storefront/model/shop.model';
2
2
  import { CartLineModel } from 'shared/model/cart';
3
3
  export declare function fetchCurrentCartLines(): Promise<CartLineModel[] | null>;
4
4
  export declare function updateCartLineById({ cartLine, cartLineId, }: {
@@ -1,4 +1,4 @@
1
- import { WishListCollectionModel, WishListLineCollectionModel, WishListLineModel, WishListModel } from 'shared/api/shop/model/shop.model';
1
+ import { WishListCollectionModel, WishListLineCollectionModel, WishListLineModel, WishListModel } from 'shared/api/storefront/model/shop.model';
2
2
  export declare function getWishList({ wishListId, }: {
3
3
  wishListId: string;
4
4
  }): Promise<WishListModel>;
@@ -1,4 +1,4 @@
1
- import { CartLineModel } from 'shared/api/shop/model/shop.model';
1
+ import { CartLineModel } from 'shared/api/storefront/model/shop.model';
2
2
  interface Props {
3
3
  onCartLineAdded?: (cartLine: CartLineModel) => void;
4
4
  onCartLineError?: (error: Error, cartLine: CartLineModel | undefined) => void;
@@ -1,4 +1,4 @@
1
- import { WishListLineModel, WishListModel } from 'shared/api/shop/model/shop.model';
1
+ import { WishListLineModel, WishListModel } from 'shared/api/storefront/model/shop.model';
2
2
  interface Props {
3
3
  onFavoriteAdded: () => void;
4
4
  onFavoriteListAdded: () => void;
@@ -3,5 +3,5 @@ import { NavigateOptions } from './route-provider';
3
3
  interface RouteButtonProps extends ButtonProps {
4
4
  route?: NavigateOptions;
5
5
  }
6
- export declare function RouteButton({ children, ...props }: RouteButtonProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function RouteButton({ children, onClick, ...props }: RouteButtonProps): import("react/jsx-runtime").JSX.Element;
7
7
  export {};
@@ -9,4 +9,5 @@ export interface RouteProviderProps {
9
9
  navigate: NavigateFn;
10
10
  }
11
11
  export declare function RouteProvider({ children, navigate }: RouteProviderProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function useOnNavigate(callback?: NavigateFn): NavigateFn;
12
13
  export declare function useNavigate(): NavigateFn;