@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.
Files changed (62) hide show
  1. package/cms/ContentTypes/PDP/PDPContent.d.ts +3 -0
  2. package/cms/server.d.ts +1 -0
  3. package/contexts/contexts/cms/PDPContentContext.d.ts +6 -0
  4. package/contexts/contexts/plp/FilterContext.d.ts +6 -0
  5. package/contexts/contexts/plp/PLPNavigationContext.d.ts +6 -0
  6. package/contexts/index.d.ts +10 -0
  7. package/data/helpers/plp/index.d.ts +4 -0
  8. package/index.js +18 -18
  9. package/index.mjs +6485 -5769
  10. package/index2.js +1 -1
  11. package/index2.mjs +104 -81
  12. package/layout/index.d.ts +100 -0
  13. package/layout/team-component/Filter/Composite/Content.d.ts +7 -0
  14. package/layout/team-component/Filter/Composite/Empty.d.ts +7 -0
  15. package/layout/team-component/Filter/Composite/Item/Colors.d.ts +7 -0
  16. package/layout/team-component/Filter/Composite/Item/Price/Label.d.ts +7 -0
  17. package/layout/team-component/Filter/Composite/Item/Price/Price.d.ts +7 -0
  18. package/layout/team-component/Filter/Composite/Item/Price/index.d.ts +1 -0
  19. package/layout/team-component/Filter/Composite/Item/Sizes.d.ts +7 -0
  20. package/layout/team-component/Filter/Composite/Item/Toggle.d.ts +7 -0
  21. package/layout/team-component/Filter/Composite/Item/index.d.ts +7 -0
  22. package/layout/team-component/Filter/Composite/Loading.d.ts +7 -0
  23. package/layout/team-component/Filter/Composite/Modal.d.ts +7 -0
  24. package/layout/team-component/Filter/Composite/Root.d.ts +7 -0
  25. package/layout/team-component/Filter/Composite/Selected.d.ts +7 -0
  26. package/layout/team-component/Filter/Filter.d.ts +47 -0
  27. package/layout/team-component/Filter/helpers.d.ts +8 -0
  28. package/layout/team-component/Filter/index.d.ts +2 -0
  29. package/layout/team-component/PLPNavigation/Composite/BreadCrumb.d.ts +7 -0
  30. package/layout/team-component/PLPNavigation/Composite/Content.d.ts +7 -0
  31. package/layout/team-component/PLPNavigation/Composite/Filters.d.ts +7 -0
  32. package/layout/team-component/PLPNavigation/Composite/Root.d.ts +7 -0
  33. package/layout/team-component/PLPNavigation/Composite/Selected/Item.d.ts +7 -0
  34. package/layout/team-component/PLPNavigation/Composite/Selected/Selected.d.ts +7 -0
  35. package/layout/team-component/PLPNavigation/Composite/Selected/index.d.ts +1 -0
  36. package/layout/team-component/PLPNavigation/Composite/Selected/interfaces.d.ts +16 -0
  37. package/layout/team-component/PLPNavigation/Composite/Total.d.ts +5 -0
  38. package/layout/team-component/PLPNavigation/PLPNavigation.d.ts +31 -0
  39. package/layout/team-component/PLPNavigation/index.d.ts +1 -0
  40. package/layout/team-component/ProductVariationList/Composite/List.d.ts +7 -0
  41. package/layout/team-component/ProductVariationList/Composite/Option.d.ts +7 -0
  42. package/layout/team-component/ProductVariationList/Composite/Root.d.ts +7 -0
  43. package/layout/team-component/ProductVariationList/Composite/Title.d.ts +7 -0
  44. package/layout/team-component/ProductVariationList/ProductVariationList.d.ts +19 -0
  45. package/layout/team-component/ProductVariationList/index.d.ts +1 -0
  46. package/layout/team-component/Sort/Composite/Button.d.ts +4 -0
  47. package/layout/team-component/Sort/Composite/Item.d.ts +4 -0
  48. package/layout/team-component/Sort/Composite/List.d.ts +4 -0
  49. package/layout/team-component/Sort/Composite/ListWrapper.d.ts +4 -0
  50. package/layout/team-component/Sort/Composite/Root.d.ts +4 -0
  51. package/layout/team-component/Sort/Sort.d.ts +7 -0
  52. package/layout/team-component/Sort/index.d.ts +1 -0
  53. package/package.json +1 -1
  54. package/style.css +1 -1
  55. package/types/cms/ContentTypes/PDP/index.d.ts +15 -0
  56. package/types/constants.d.ts +11 -0
  57. package/types/contexts/contexts/search.d.ts +1 -1
  58. package/types/layout/team-components/Filter/Item/index.d.ts +12 -0
  59. package/types/layout/team-components/Filter/index.d.ts +58 -4
  60. package/types/layout/team-components/PLPNavigation/index.d.ts +38 -0
  61. package/types/layout/team-components/ProductVariationList/index.d.ts +15 -0
  62. package/types/layout/team-components/Sort/index.d.ts +8 -1
@@ -0,0 +1,3 @@
1
+ import { PDPContentProps } from '../../../types/cms/ContentTypes/PDP';
2
+
3
+ export declare const PDPContent: ({ children, productId, COMMON_PAGE_COLUMN_GAP, SectionZone, PDPContentProvider, ...props }: PDPContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
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 };
@@ -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
+ }[];