@soma-vertical-web/multi-lib 0.0.44 → 0.0.46
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/cms/ContentTypes/PDP/PDPContent.d.ts +3 -0
- package/cms/server.d.ts +1 -0
- package/contexts/contexts/cms/PDPContentContext.d.ts +6 -0
- package/contexts/contexts/plp/FilterContext.d.ts +6 -0
- package/contexts/contexts/plp/PLPNavigationContext.d.ts +6 -0
- package/contexts/index.d.ts +10 -0
- package/data/helpers/plp/index.d.ts +4 -0
- package/index.js +18 -18
- package/index.mjs +6485 -5769
- package/index2.js +1 -1
- package/index2.mjs +104 -81
- package/layout/index.d.ts +100 -0
- package/layout/team-component/Filter/Composite/Content.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Empty.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Colors.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Price/Label.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Price/Price.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Price/index.d.ts +1 -0
- package/layout/team-component/Filter/Composite/Item/Sizes.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/Toggle.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Item/index.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Loading.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Modal.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Root.d.ts +7 -0
- package/layout/team-component/Filter/Composite/Selected.d.ts +7 -0
- package/layout/team-component/Filter/Filter.d.ts +47 -0
- package/layout/team-component/Filter/helpers.d.ts +8 -0
- package/layout/team-component/Filter/index.d.ts +2 -0
- package/layout/team-component/PLPNavigation/Composite/BreadCrumb.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Content.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Filters.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Root.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/Item.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/Selected.d.ts +7 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/index.d.ts +1 -0
- package/layout/team-component/PLPNavigation/Composite/Selected/interfaces.d.ts +16 -0
- package/layout/team-component/PLPNavigation/Composite/Total.d.ts +5 -0
- package/layout/team-component/PLPNavigation/PLPNavigation.d.ts +31 -0
- package/layout/team-component/PLPNavigation/index.d.ts +1 -0
- package/layout/team-component/ProductVariationList/Composite/List.d.ts +7 -0
- package/layout/team-component/ProductVariationList/Composite/Option.d.ts +7 -0
- package/layout/team-component/ProductVariationList/Composite/Root.d.ts +7 -0
- package/layout/team-component/ProductVariationList/Composite/Title.d.ts +7 -0
- package/layout/team-component/ProductVariationList/ProductVariationList.d.ts +19 -0
- package/layout/team-component/ProductVariationList/index.d.ts +1 -0
- package/layout/team-component/Sort/Composite/Button.d.ts +4 -0
- package/layout/team-component/Sort/Composite/Item.d.ts +4 -0
- package/layout/team-component/Sort/Composite/List.d.ts +4 -0
- package/layout/team-component/Sort/Composite/ListWrapper.d.ts +4 -0
- package/layout/team-component/Sort/Composite/Root.d.ts +4 -0
- package/layout/team-component/Sort/Sort.d.ts +7 -0
- package/layout/team-component/Sort/index.d.ts +1 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/PDP/index.d.ts +15 -0
- package/types/constants.d.ts +11 -0
- package/types/contexts/contexts/search.d.ts +1 -1
- package/types/layout/team-components/Filter/Item/index.d.ts +12 -0
- package/types/layout/team-components/Filter/index.d.ts +58 -4
- package/types/layout/team-components/PLPNavigation/index.d.ts +38 -0
- package/types/layout/team-components/ProductVariationList/index.d.ts +15 -0
- package/types/layout/team-components/Sort/index.d.ts +8 -1
package/cms/server.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ export declare const serverCMS: {
|
|
|
5
5
|
TipbarContent: ({ ClientTipbarContent, ...props }: import('../types/cms/ContentTypes/Tipbar').TipbarContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
6
6
|
FooterContent: ({ PAYMENT_FLAGS_DICTIONARY, PAYMENT_FLAGS, LEGAL_INFORMATION_TEXT, SectionZone, ICONS, Footer, FooterSupport, ...props }: import('../types/cms/ContentTypes/Footer').FooterContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
7
7
|
PLPContent: ({ children, slug, SectionZone, COMMON_PAGE_COLUMN_GAP_PDC, PLPContentProvider, ...props }: import('../types/cms/ContentTypes/PLP').PLPContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
PDPContent: ({ children, productId, COMMON_PAGE_COLUMN_GAP, SectionZone, PDPContentProvider, ...props }: import('../types/cms/ContentTypes/PDP').PDPContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
|
|
8
9
|
};
|
|
9
10
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PDPContentProviderProps } from '../../../types/cms/ContentTypes/PDP';
|
|
2
|
+
|
|
3
|
+
export declare const PDPContentProvider: ({ children, data, productId, COMMON_PAGE_COLUMN_GAP, SectionZone, }: PDPContentProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const usePDPContent: () => {
|
|
5
|
+
productId?: string;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FilterContextProps, FilterProviderProps } from '../../../types/layout/team-components/Filter';
|
|
2
|
+
|
|
3
|
+
declare const FilterContext: import('react').Context<FilterContextProps>;
|
|
4
|
+
declare const FilterProvider: ({ children, filters, PLP_FILTERS, ...props }: FilterProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const useFilterContext: () => FilterContextProps;
|
|
6
|
+
export { FilterContext, FilterProvider, useFilterContext };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PDCNavigationContextProps, PDCNavigationProviderProps } from '../../../types/layout/team-components/PLPNavigation';
|
|
2
|
+
|
|
3
|
+
declare const PDCNavigationContext: import('react').Context<PDCNavigationContextProps>;
|
|
4
|
+
declare const PDCNavigationProvider: ({ children, ...props }: PDCNavigationProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const usePLPNavigationContext: () => PDCNavigationContextProps;
|
|
6
|
+
export { PDCNavigationContext, PDCNavigationProvider, usePLPNavigationContext };
|
package/contexts/index.d.ts
CHANGED
|
@@ -70,10 +70,20 @@ export declare const contexts: {
|
|
|
70
70
|
provider: ({ children, gridScrollBack }: import('../types/contexts/contexts/pdp').PDPProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
71
71
|
hook: () => import('../types/contexts/contexts/pdp').PDPContextProps;
|
|
72
72
|
};
|
|
73
|
+
PDPContent: {
|
|
74
|
+
provider: ({ children, data, productId, COMMON_PAGE_COLUMN_GAP, SectionZone, }: import('../types/cms/ContentTypes/PDP').PDPContentProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
75
|
+
hook: () => {
|
|
76
|
+
productId?: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
73
79
|
plp: {
|
|
74
80
|
provider: ({ children, slug, searchParams, collectionId, itemsPerPage }: import('../types/contexts/contexts/plp').PLPProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
75
81
|
hook: () => import('../types/contexts/contexts/plp').PLPContextProps;
|
|
76
82
|
};
|
|
83
|
+
plpFilter: {
|
|
84
|
+
hook: () => import('../types/layout/team-components/Filter').FilterContextProps;
|
|
85
|
+
provider: ({ children, filters, PLP_FILTERS, ...props }: import('../types/layout/team-components/Filter').FilterProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
86
|
+
};
|
|
77
87
|
PLPContent: {
|
|
78
88
|
provider: ({ children, data, device, SectionZone, COMMON_PAGE_COLUMN_GAP_PDC, }: import('../types/cms/ContentTypes/PLP').PLPContentProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
79
89
|
hook: () => import('../types/cms/ContentTypes/PLP').PLPContentContextProps;
|
|
@@ -79,3 +79,7 @@ export declare const getVisibleBanners: (pages: Page[], banners: PLPBanners, pro
|
|
|
79
79
|
})[];
|
|
80
80
|
export declare const getRandomVideoPerRow: (positions: number[], columns: number) => number[];
|
|
81
81
|
export declare const getProductsWithVideo: (products: ProductNode_PDC["node"][], columns: number) => number[];
|
|
82
|
+
export declare const createBreadcrumb: (root: string[]) => {
|
|
83
|
+
href: string;
|
|
84
|
+
name: string;
|
|
85
|
+
}[];
|