@soma-vertical-web/multi-lib 1.0.14 → 1.0.16

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 (51) hide show
  1. package/cms/ContentTypes/LPLojas/LPLojaClientWrapper.d.ts +3 -0
  2. package/cms/ContentTypes/LPLojas/LPLojasContent.d.ts +3 -0
  3. package/cms/ContentTypes/LPLojas/helpers.d.ts +12 -0
  4. package/cms/ContentTypes/LPLojas/typing.d.ts +32 -0
  5. package/cms/Sections/Banner/Component.d.ts +1 -1
  6. package/cms/Sections/BennefitsBar/Component.d.ts +1 -1
  7. package/cms/Sections/BennefitsBar/index.d.ts +1 -1
  8. package/cms/Sections/EmbedLive/Component.d.ts +1 -1
  9. package/cms/Sections/Newsletter/Component.d.ts +1 -1
  10. package/cms/Sections/PopupModal/Component.d.ts +1 -1
  11. package/cms/Sections/ProductCarousel/ProductCarousel.d.ts +2 -2
  12. package/cms/Sections/TextAccordion/Component.d.ts +1 -1
  13. package/cms/Sections/TextContent/Component.d.ts +1 -1
  14. package/cms/index.d.ts +10 -9
  15. package/cms/server.d.ts +1 -0
  16. package/contexts/contexts/lplojas/Context.d.ts +6 -0
  17. package/contexts/index.d.ts +4 -0
  18. package/data/api/master-data/search/index.d.ts +1 -1
  19. package/index.js +15 -15
  20. package/index.mjs +4486 -4232
  21. package/index2.js +1 -1
  22. package/index2.mjs +729 -651
  23. package/layout/index.d.ts +34 -0
  24. package/layout/template/LPLojas/Composite/Content/Content.d.ts +12 -0
  25. package/layout/template/LPLojas/Composite/Content/index.d.ts +1 -0
  26. package/layout/template/LPLojas/Composite/Details/Details.d.ts +7 -0
  27. package/layout/template/LPLojas/Composite/Details/Item.d.ts +7 -0
  28. package/layout/template/LPLojas/Composite/Details/Vendor.d.ts +7 -0
  29. package/layout/template/LPLojas/Composite/Details/index.d.ts +1 -0
  30. package/layout/template/LPLojas/Composite/Details/interfaces.d.ts +18 -0
  31. package/layout/template/LPLojas/Composite/DropDown/DropDown.d.ts +7 -0
  32. package/layout/template/LPLojas/Composite/DropDown/index.d.ts +1 -0
  33. package/layout/template/LPLojas/Composite/DropDown/interfaces.d.ts +10 -0
  34. package/layout/template/LPLojas/Composite/ReturnButton/ReturnButton.d.ts +11 -0
  35. package/layout/template/LPLojas/Composite/ReturnButton/index.d.ts +1 -0
  36. package/layout/template/LPLojas/Composite/Root.d.ts +7 -0
  37. package/layout/template/LPLojas/Composite/Section/Section.d.ts +12 -0
  38. package/layout/template/LPLojas/Composite/Section/index.d.ts +1 -0
  39. package/layout/template/LPLojas/Composite/Select/Select.d.ts +10 -0
  40. package/layout/template/LPLojas/Composite/Select/index.d.ts +1 -0
  41. package/layout/template/LPLojas/Composite/Title/Title.d.ts +7 -0
  42. package/layout/template/LPLojas/Composite/Title/index.d.ts +1 -0
  43. package/layout/template/LPLojas/constant.d.ts +1 -0
  44. package/layout/template/LPLojas/index.d.ts +35 -0
  45. package/layout/template/LPLojas/interfaces.d.ts +18 -0
  46. package/package.json +1 -1
  47. package/style.css +1 -1
  48. package/types/cms/Sections/Banner/index.d.ts +1 -0
  49. package/types/cms/Sections/BannerCarousel/index.d.ts +1 -0
  50. package/types/cms/Sections/EmbedLive/index.d.ts +1 -0
  51. package/types/cms/Sections/PopupModal/index.d.ts +1 -0
@@ -0,0 +1,3 @@
1
+ import { LPStoresClientWrapperProps } from './typing';
2
+
3
+ export declare const LPStoresClientWrapper: ({ stores, content, data, showVendor, ICONS, LPLOJAS_TEMPLATE_RETURN_BUTTON, }: LPStoresClientWrapperProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { LPLojasContentProps } from './typing';
2
+
3
+ export declare const LPLojasContent: ({ LPLOJAS_TEMPLATE_RETURN_BUTTON, ICONS, entity, showVendor, LPStoresClientWrapper, ...props }: LPLojasContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,12 @@
1
+ import { StoreMetaData } from '../../../layout/template/LPLojas/interfaces';
2
+
3
+ export declare const orderCities: (stores: StoreMetaData[]) => StoreMetaData[];
4
+ export declare const flattenStores: (groupedStores: Record<string, StoreMetaData[]>) => StoreMetaData[];
5
+ export declare const groupByState: (stores: StoreMetaData[]) => Record<string, StoreMetaData[]>;
6
+ export declare const sortObjectKeys: <T>(obj: Record<string, T> | undefined) => Record<string, T>;
7
+ type FetchAllMasterDataParams = {
8
+ entity: string;
9
+ baseUrl: string;
10
+ };
11
+ export declare function fetchMasterDataWithScroll({ entity, baseUrl, }: FetchAllMasterDataParams): Promise<StoreMetaData[]>;
12
+ export {};
@@ -0,0 +1,32 @@
1
+ import { ComponentType } from 'react';
2
+ import { IContentTypeResponseBase } from '../../../types/cms/Factories';
3
+ import { ICONSType } from '../../../types/constants';
4
+ import { GetContentTypeParams } from '../../../types/data/api/cms';
5
+ import { StoreMetaData } from '../../../layout/template/LPLojas/interfaces';
6
+
7
+ export interface Config {
8
+ titlePage: string;
9
+ altImageBackgroud: string;
10
+ imageBackgroundDesk: string;
11
+ imageBackgroundMob: string;
12
+ }
13
+ export interface ILPLojasContent extends IContentTypeResponseBase {
14
+ config: {
15
+ config: Config;
16
+ };
17
+ }
18
+ export interface LPLojasContentProps extends GetContentTypeParams {
19
+ entity: string;
20
+ ICONS: ICONSType;
21
+ LPLOJAS_TEMPLATE_RETURN_BUTTON: string;
22
+ showVendor: boolean;
23
+ LPStoresClientWrapper: ComponentType<any>;
24
+ }
25
+ export interface LPStoresClientWrapperProps {
26
+ stores: StoreMetaData[];
27
+ content: any;
28
+ data: any;
29
+ showVendor: boolean;
30
+ ICONS: ICONSType;
31
+ LPLOJAS_TEMPLATE_RETURN_BUTTON: string;
32
+ }
@@ -1,7 +1,7 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  import { BannerSectionType, IBannerSectionTypeComponent } from '../../../types/cms/Sections/Banner';
3
3
 
4
- export declare const BannerSection: ({ data, className, priority, creative, ...props }: IBannerSectionTypeComponent & {
4
+ export declare const BannerSection: ({ data, className, priority, creative, name, ...props }: IBannerSectionTypeComponent & {
5
5
  imgStyles?: HTMLAttributes<HTMLImageElement>["style"];
6
6
  } & HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
7
7
  export declare const SingleBannerSection: (data: BannerSectionType) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { BennefitsBarProps } from '../../../types/cms/Sections/BennefitsBar';
2
2
 
3
- export declare const BennefitsBarSection: ({ data, CONSTANTS }: BennefitsBarProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const BennefitsBarSection: ({ data, name, CONSTANTS }: BennefitsBarProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,5 +4,5 @@ export declare function generateBennefitsBarSection({ ICONS }: {
4
4
  ICONS: ICONSType;
5
5
  }): import('../../../types/cms/Factories').ISection;
6
6
  export declare const Component: {
7
- 'Bennefits Bar': ({ data, CONSTANTS }: import('../../../types/cms/Sections/BennefitsBar').BennefitsBarProps) => import("react/jsx-runtime").JSX.Element;
7
+ 'Bennefits Bar': ({ data, name, CONSTANTS }: import('../../../types/cms/Sections/BennefitsBar').BennefitsBarProps) => import("react/jsx-runtime").JSX.Element;
8
8
  };
@@ -1,4 +1,4 @@
1
1
  import { EmbedLiveProps } from 'libs/multi-lib/src/types/cms/Sections/EmbedLive';
2
2
 
3
- declare const EmbedLive: ({ data }: EmbedLiveProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const EmbedLive: ({ data, name }: EmbedLiveProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default EmbedLive;
@@ -1,3 +1,3 @@
1
1
  import { NewsLetterSectionType } from '../../../types/cms/Sections/Newsletter';
2
2
 
3
- export declare const NewsletterSection: ({ data: { componentIndex, ...props }, CONSTANTS, }: NewsLetterSectionType) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const NewsletterSection: ({ data: { componentIndex, ...props }, name, CONSTANTS, }: NewsLetterSectionType) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { PopupModalSectionProps } from '../../../types/cms/Sections/PopupModal';
2
2
 
3
- export declare const PopupModalSection: ({ data, CONSTANTS, }: PopupModalSectionProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export declare const PopupModalSection: ({ data, name, CONSTANTS, }: PopupModalSectionProps) => import("react/jsx-runtime").JSX.Element | null;
4
4
  export default PopupModalSection;
@@ -1,4 +1,4 @@
1
1
  import { ProductCarouselProps, PDPProductCarouselProps } from '../../../types/cms/Sections/ProductCarousel';
2
2
 
3
- export declare const PDPProductCarousel: ({ data, CONSTANTS, }: PDPProductCarouselProps) => import("react/jsx-runtime").JSX.Element[] | null;
4
- export declare const ProductCarousel: ({ data, CONSTANTS, searchModal, }: ProductCarouselProps) => import("react/jsx-runtime").JSX.Element[] | null;
3
+ export declare const PDPProductCarousel: ({ data, name, CONSTANTS, }: PDPProductCarouselProps) => import("react/jsx-runtime").JSX.Element[] | null;
4
+ export declare const ProductCarousel: ({ data, CONSTANTS, searchModal, name }: ProductCarouselProps) => import("react/jsx-runtime").JSX.Element[] | null;
@@ -1,3 +1,3 @@
1
1
  import { TextAccordionSectionProps } from '../../../types/cms/Sections/TextAccordion';
2
2
 
3
- export declare const TextAccordionSection: ({ data, id: sectionId, ICONS, className }: TextAccordionSectionProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const TextAccordionSection: ({ data, id: sectionId, ICONS, className, name }: TextAccordionSectionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { TextContentSectionProps } from '../../../types/cms/Sections/TextContent';
2
2
 
3
- export declare const TextContentSection: ({ data, ICONS, TEXTCONTENT_EXPANDED, className, }: TextContentSectionProps) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const TextContentSection: ({ data, ICONS, TEXTCONTENT_EXPANDED, className, name }: TextContentSectionProps) => import("react/jsx-runtime").JSX.Element;
package/cms/index.d.ts CHANGED
@@ -4,24 +4,25 @@ export declare const clientCMS: {
4
4
  Banner: {
5
5
  Banner: (data: import('../types/cms/Sections/Banner').BannerSectionType) => import("react/jsx-runtime").JSX.Element;
6
6
  };
7
- BannerSection: ({ data, className, priority, creative, ...props }: import('../types/cms/Sections/Banner').IBannerSectionTypeComponent & {
7
+ BannerSection: ({ data, className, priority, creative, name, ...props }: import('../types/cms/Sections/Banner').IBannerSectionTypeComponent & {
8
8
  imgStyles?: import('react').HTMLAttributes<HTMLImageElement>["style"];
9
9
  } & import('react').HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
10
- BennefitsBarSection: ({ data, CONSTANTS }: import('../types/cms/Sections/BennefitsBar').BennefitsBarProps) => import("react/jsx-runtime").JSX.Element;
10
+ BennefitsBarSection: ({ data, name, CONSTANTS }: import('../types/cms/Sections/BennefitsBar').BennefitsBarProps) => import("react/jsx-runtime").JSX.Element;
11
11
  SingleBannerSection: (data: import('../types/cms/Sections/Banner').BannerSectionType) => import("react/jsx-runtime").JSX.Element;
12
- TextContentSection: ({ data, ICONS, TEXTCONTENT_EXPANDED, className, }: import('../types/cms/Sections/TextContent').TextContentSectionProps) => import("react/jsx-runtime").JSX.Element;
12
+ TextContentSection: ({ data, ICONS, TEXTCONTENT_EXPANDED, className, name }: import('../types/cms/Sections/TextContent').TextContentSectionProps) => import("react/jsx-runtime").JSX.Element;
13
13
  BannerCarousel: (data: import('../types/cms/Sections/BannerCarousel').BannerCarouselProps) => import("react/jsx-runtime").JSX.Element;
14
- TextAccordionSection: ({ data, id: sectionId, ICONS, className }: import('../types/cms/Sections/TextAccordion').TextAccordionSectionProps) => import("react/jsx-runtime").JSX.Element;
14
+ TextAccordionSection: ({ data, id: sectionId, ICONS, className, name }: import('../types/cms/Sections/TextAccordion').TextAccordionSectionProps) => import("react/jsx-runtime").JSX.Element;
15
15
  TipbarScreening: ({ CONSTANTS, data }: import('../types/cms/ContentTypes/Tipbar').TipbarScreeningProps) => import("react/jsx-runtime").JSX.Element;
16
16
  ImageGrid: (data: import('../types/cms/Sections/ImageGrid').ImageGridSectionType) => import("react/jsx-runtime").JSX.Element;
17
17
  SearchPageScreening: ({ children, data, SectionZone, className, }: import('../types/cms/ContentTypes/Search').SearchPageScrenningProps) => import("react/jsx-runtime").JSX.Element;
18
18
  SearchContent: ({ SectionZone, name, storeId, previewId, }: import('../types/cms/ContentTypes/Search').SearchContentProps) => import("react/jsx-runtime").JSX.Element;
19
- NewsletterSection: ({ data: { componentIndex, ...props }, CONSTANTS, }: import('../types/cms/Sections/Newsletter').NewsLetterSectionType) => import("react/jsx-runtime").JSX.Element;
20
- PDPProductCarousel: ({ data, CONSTANTS, }: import('../types/cms/Sections/ProductCarousel').PDPProductCarouselProps) => import("react/jsx-runtime").JSX.Element[] | null;
21
- ProductCarousel: ({ data, CONSTANTS, searchModal, }: import('../types/cms/Sections/ProductCarousel').ProductCarouselProps) => import("react/jsx-runtime").JSX.Element[] | null;
22
- EmbedLive: ({ data }: import('../types/cms/Sections/EmbedLive').EmbedLiveProps) => import("react/jsx-runtime").JSX.Element;
23
- PopupModalSection: ({ data, CONSTANTS, }: import('../types/cms/Sections/PopupModal').PopupModalSectionProps) => import("react/jsx-runtime").JSX.Element | null;
19
+ NewsletterSection: ({ data: { componentIndex, ...props }, name, CONSTANTS, }: import('../types/cms/Sections/Newsletter').NewsLetterSectionType) => import("react/jsx-runtime").JSX.Element;
20
+ PDPProductCarousel: ({ data, name, CONSTANTS, }: import('../types/cms/Sections/ProductCarousel').PDPProductCarouselProps) => import("react/jsx-runtime").JSX.Element[] | null;
21
+ ProductCarousel: ({ data, CONSTANTS, searchModal, name }: import('../types/cms/Sections/ProductCarousel').ProductCarouselProps) => import("react/jsx-runtime").JSX.Element[] | null;
22
+ EmbedLive: ({ data, name }: import('../types/cms/Sections/EmbedLive').EmbedLiveProps) => import("react/jsx-runtime").JSX.Element;
23
+ PopupModalSection: ({ data, name, CONSTANTS, }: import('../types/cms/Sections/PopupModal').PopupModalSectionProps) => import("react/jsx-runtime").JSX.Element | null;
24
24
  SectionZone: import('react').FunctionComponent<import('../types/cms/Sections/SectionZone').SectionZoneProps>;
25
+ LPStoresClientWrapper: ({ stores, content, data, showVendor, ICONS, LPLOJAS_TEMPLATE_RETURN_BUTTON, }: import('./ContentTypes/LPLojas/typing').LPStoresClientWrapperProps) => import("react/jsx-runtime").JSX.Element;
25
26
  };
26
27
  helpers: typeof helpers;
27
28
  };
package/cms/server.d.ts CHANGED
@@ -41,5 +41,6 @@ export declare const serverCMS: {
41
41
  SearchPageContent: ({ children, SectionZone, className, ...props }: import('../types/cms/ContentTypes/Search').SearchPageContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
42
42
  HelpButtonContent: ({ HelpButton, ICONS, className, ...props }: import('../types/cms/ContentTypes/HelpButton').HelpButtonContentProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
43
43
  LPCadastroContent: ({ SectionZone, LPCadastro, ...props }: import('../types/layout/templates/LPCadastro').LPCadastroContentTypeProps) => Promise<import("react/jsx-runtime").JSX.Element | null>;
44
+ LPLojasContent: ({ LPLOJAS_TEMPLATE_RETURN_BUTTON, ICONS, entity, showVendor, LPStoresClientWrapper, ...props }: import('./ContentTypes/LPLojas/typing').LPLojasContentProps) => Promise<import("react/jsx-runtime").JSX.Element>;
44
45
  };
45
46
  };
@@ -0,0 +1,6 @@
1
+ import { LPStoreContextProps, LPStoreProviderProps } from '../../../layout/template/LPLojas/interfaces';
2
+
3
+ declare const LPStoreContext: import('react').Context<LPStoreContextProps>;
4
+ declare const LPStoreProvider: ({ children, data }: LPStoreProviderProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const useLPStoreContext: () => LPStoreContextProps;
6
+ export { LPStoreContext, LPStoreProvider, useLPStoreContext };
@@ -123,6 +123,10 @@ export declare const contexts: {
123
123
  hook: () => import('../types/contexts/contexts/cart').UIContextProps;
124
124
  provider: ({ children, ...props }: import('../types/contexts/contexts/cart').UIProviderProps) => import("react/jsx-runtime").JSX.Element;
125
125
  };
126
+ lpStore: {
127
+ hook: () => import('../layout/template/LPLojas/interfaces').LPStoreContextProps;
128
+ provider: ({ children, data }: import('../layout/template/LPLojas/interfaces').LPStoreProviderProps) => import("react/jsx-runtime").JSX.Element;
129
+ };
126
130
  };
127
131
  hooks: {
128
132
  useBackPDC: ({ gridScrollBack }: import('../types/contexts/hooks').UseBackPDCProps) => void;
@@ -57,5 +57,5 @@ export type SearchFieldsMasterData = yup.InferType<typeof searchFieldsSchema>;
57
57
  * The dataEntityName parameter specifies the data entity to search.
58
58
  * The queryParams object allows you to filter the search based on various criteria.
59
59
  */
60
- export declare function getSearchMasterdata({ apiUrl, body, fetchOptions, }: FetchFunctionsProps<SchemaType>): Promise<any>;
60
+ export declare function getSearchMasterdata({ apiUrl, body, fetchOptions, }: FetchFunctionsProps<SchemaType>): Promise<unknown[] | undefined>;
61
61
  export {};