@soma-vertical-web/multi-lib 0.0.45 → 0.0.47

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 (30) 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/PLPNavigationContext.d.ts +6 -0
  5. package/contexts/index.d.ts +6 -0
  6. package/data/helpers/plp/index.d.ts +4 -0
  7. package/index.js +15 -15
  8. package/index.mjs +3112 -2923
  9. package/index2.js +1 -1
  10. package/index2.mjs +104 -81
  11. package/layout/index.d.ts +30 -0
  12. package/layout/team-component/PLPNavigation/Composite/BreadCrumb.d.ts +7 -0
  13. package/layout/team-component/PLPNavigation/Composite/Content.d.ts +7 -0
  14. package/layout/team-component/PLPNavigation/Composite/Filters.d.ts +7 -0
  15. package/layout/team-component/PLPNavigation/Composite/Root.d.ts +7 -0
  16. package/layout/team-component/PLPNavigation/Composite/Selected/Item.d.ts +7 -0
  17. package/layout/team-component/PLPNavigation/Composite/Selected/Selected.d.ts +7 -0
  18. package/layout/team-component/PLPNavigation/Composite/Selected/index.d.ts +1 -0
  19. package/layout/team-component/PLPNavigation/Composite/Selected/interfaces.d.ts +16 -0
  20. package/layout/team-component/PLPNavigation/Composite/Total.d.ts +5 -0
  21. package/layout/team-component/PLPNavigation/PLPNavigation.d.ts +31 -0
  22. package/layout/team-component/PLPNavigation/index.d.ts +1 -0
  23. package/package.json +1 -1
  24. package/style.css +1 -1
  25. package/types/cms/ContentTypes/PDP/index.d.ts +15 -0
  26. package/types/constants.d.ts +4 -0
  27. package/types/contexts/contexts/search.d.ts +1 -1
  28. package/types/layout/team-components/Filter/index.d.ts +1 -1
  29. package/types/layout/team-components/PLPNavigation/index.d.ts +38 -0
  30. package/types/layout/team-components/Sort/index.d.ts +1 -2
@@ -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 { 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,6 +70,12 @@ 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;
@@ -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
+ }[];