@sonic-equipment/ui 0.0.34 → 0.0.36
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/dist/algolia/algolia-provider.d.ts +2 -2
- package/dist/breadcrumbs/breadcrumb.d.ts +1 -2
- package/dist/breadcrumbs/breadcrumb.stories.d.ts +0 -4
- package/dist/buttons/link-button/link-button.d.ts +4 -1
- package/dist/cards/product-card/product-card.d.ts +2 -6
- package/dist/cards/product-card/product-card.stories.d.ts +0 -1
- package/dist/config.d.ts +3 -0
- package/dist/index.d.ts +3481 -90
- package/dist/index.js +433 -246
- package/dist/media/image/image.d.ts +1 -1
- package/dist/pages/page/page.d.ts +3 -1
- package/dist/pages/page/page.stories.d.ts +4 -0
- package/dist/pages/product-listing-page/product-listing-page-data-types.d.ts +1 -0
- package/dist/{pages/product-listing-page/use-fetch-product-listing-page → shared/api/bff/hooks}/use-fetch-product-listing-page-data.d.ts +4 -0
- package/dist/{pages/product-listing-page/use-fetch-product-listing-page/product-listing-page-data-response.d.ts → shared/api/bff/model/bff.model.d.ts} +1 -0
- package/dist/shared/api/shop/hooks/cart/cart.stories.d.ts +15 -0
- package/dist/shared/api/shop/hooks/cart/use-add-product-to-current-cart.d.ts +11 -0
- package/dist/shared/api/shop/hooks/cart/use-delete-cart-line-by-id.d.ts +5 -0
- package/dist/shared/api/shop/hooks/cart/use-fetch-current-cart-lines.d.ts +6 -0
- package/dist/shared/api/shop/hooks/cart/use-update-cart-line-by-id.d.ts +10 -0
- package/dist/shared/api/shop/model/shop.model.d.ts +2942 -0
- package/dist/shared/fetch/ResponseError.d.ts +1 -1
- package/dist/shared/providers/cart-provider.d.ts +8 -31
- package/dist/shared/routing/route-button.d.ts +9 -0
- package/dist/shared/routing/route-link.d.ts +8 -0
- package/dist/shared/routing/route-provider.d.ts +12 -0
- package/dist/shared/routing/route-provider.stories.d.ts +15 -0
- package/dist/shared/types/cart.d.ts +152 -4
- package/dist/shared/types/image.d.ts +18 -8
- package/dist/shared/utils/wait.d.ts +1 -0
- package/dist/styles.css +3 -1
- package/package.json +23 -19
- package/dist/breadcrumbs/connected-breadcrumb.d.ts +0 -1
- package/dist/pages/product-listing-page/product-listing-page-provider/use-breadcrumb.d.ts +0 -4
- /package/dist/{pages/product-listing-page/use-fetch-product-listing-page → shared/api/bff/hooks}/use-fetch-product-listing-page-data.stories.d.ts +0 -0
|
@@ -8,7 +8,7 @@ interface AlgoliaContextType {
|
|
|
8
8
|
toggleOnline: VoidFunction;
|
|
9
9
|
}
|
|
10
10
|
interface AlgoliaProviderProps {
|
|
11
|
-
|
|
11
|
+
categoryPages: string | undefined;
|
|
12
12
|
children: ReactNode;
|
|
13
13
|
languageCode: string;
|
|
14
14
|
offlineSearchClient?: SearchClient;
|
|
@@ -16,6 +16,6 @@ interface AlgoliaProviderProps {
|
|
|
16
16
|
routing?: boolean | RouterProps<UiState, UiState> | undefined;
|
|
17
17
|
searchClient: SearchClient;
|
|
18
18
|
}
|
|
19
|
-
export declare function AlgoliaProvider({
|
|
19
|
+
export declare function AlgoliaProvider({ categoryPages, children, languageCode, offlineSearchClient, online: _online, routing, searchClient, }: AlgoliaProviderProps): import("react/jsx-runtime").JSX.Element | null;
|
|
20
20
|
export declare function useAlgolia(): AlgoliaContextType;
|
|
21
21
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface Link {
|
|
1
|
+
export interface Link {
|
|
2
2
|
href: string;
|
|
3
3
|
label: string;
|
|
4
4
|
}
|
|
@@ -6,4 +6,3 @@ export interface BreadcrumbProps {
|
|
|
6
6
|
links: Link[];
|
|
7
7
|
}
|
|
8
8
|
export declare function Breadcrumb({ links }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
-
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react';
|
|
2
|
-
import { ProductListingPageData } from 'pages/product-listing-page/product-listing-page-data-types';
|
|
3
2
|
import { Breadcrumb } from './breadcrumb';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
component: typeof Breadcrumb;
|
|
@@ -14,6 +13,3 @@ export declare const FourLevels: Story;
|
|
|
14
13
|
export declare const FourLevelsMobile: Story;
|
|
15
14
|
export declare const TwoLevels: Story;
|
|
16
15
|
export declare const TwoLevelsMobile: Story;
|
|
17
|
-
export declare const Connected: StoryObj<{
|
|
18
|
-
data: ProductListingPageData;
|
|
19
|
-
}>;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import type { HTMLAttributeAnchorTarget } from 'react';
|
|
2
|
+
import { NavigateOptions } from 'shared/routing/route-provider';
|
|
2
3
|
export interface LinkButtonProps {
|
|
3
4
|
children?: React.ReactNode | string;
|
|
4
5
|
className?: string;
|
|
5
6
|
href?: string;
|
|
6
7
|
isDisabled?: boolean;
|
|
7
8
|
onPress?: VoidFunction;
|
|
9
|
+
route?: NavigateOptions;
|
|
8
10
|
target?: HTMLAttributeAnchorTarget;
|
|
11
|
+
type?: 'button' | 'link';
|
|
9
12
|
}
|
|
10
|
-
export declare function LinkButton({ children, className, href, isDisabled, onPress, target, }: LinkButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function LinkButton({ children, className, href, isDisabled, onPress, route, target, type, }: LinkButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PressEvent } from 'react-aria-components';
|
|
1
|
+
import { ReactElement } from 'react';
|
|
3
2
|
import type { ImageSource } from 'shared/types/image';
|
|
4
3
|
import type { ProductPrice as ProductPriceType } from 'shared/types/price';
|
|
5
4
|
export interface ProductCardProps {
|
|
@@ -7,12 +6,9 @@ export interface ProductCardProps {
|
|
|
7
6
|
favoriteButton?: ReactElement;
|
|
8
7
|
href: string;
|
|
9
8
|
image: ImageSource;
|
|
10
|
-
/** @deprecated Use `onPress` instead */
|
|
11
|
-
onClick?: (e: MouseEvent) => void;
|
|
12
|
-
onPress?: (e: PressEvent) => void;
|
|
13
9
|
price: ProductPriceType;
|
|
14
10
|
sku: string;
|
|
15
11
|
tags?: string[];
|
|
16
12
|
title: string;
|
|
17
13
|
}
|
|
18
|
-
export declare function ProductCard({ addToCartButton: AddToCartButton, favoriteButton: FavoriteButton, href, image
|
|
14
|
+
export declare function ProductCard({ addToCartButton: AddToCartButton, favoriteButton: FavoriteButton, href, image, price, sku, tags, title, }: ProductCardProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/config.d.ts
ADDED