@soma-vertical-web/multi-lib 1.0.20 → 1.0.22
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/LPLojas/LPLojaClientWrapper.d.ts +1 -1
- package/cms/ContentTypes/LPLojas/LPLojasContent.d.ts +1 -1
- package/cms/ContentTypes/LPLojas/helpers.d.ts +1 -7
- package/cms/ContentTypes/PolicyPage/PolicyPageContent.d.ts +3 -0
- package/cms/index.d.ts +1 -1
- package/cms/server.d.ts +2 -1
- package/contexts/contexts/Session.d.ts +1 -1
- package/contexts/contexts/lplojas/Context.d.ts +1 -1
- package/contexts/index.d.ts +3 -3
- package/data/api/checkout/order-form/shipping/update/index.d.ts +2 -2
- package/data/api/user/index.d.ts +3 -0
- package/index-BhiCzrut.mjs +2255 -0
- package/index-D61YFVi9.mjs +2261 -0
- package/index-DZ1MbO8M.js +4 -0
- package/index-DyKuIyRP.js +4 -0
- package/index.js +16 -16
- package/index.mjs +8267 -8056
- package/index2.js +8 -1
- package/index2.mjs +2266 -1114
- package/layout/index.d.ts +7 -3
- package/layout/template/LPLojas/Composite/Details/Details.d.ts +1 -1
- package/layout/template/LPLojas/Composite/Details/Item.d.ts +1 -1
- package/layout/template/LPLojas/Composite/Details/Vendor.d.ts +1 -1
- package/layout/template/LPLojas/Composite/DropDown/DropDown.d.ts +1 -1
- package/layout/template/LPLojas/Composite/Root.d.ts +1 -1
- package/layout/template/LPLojas/index.d.ts +3 -3
- package/layout/template/Politicas/Composite/Banner.d.ts +4 -0
- package/layout/template/Politicas/Composite/Container.d.ts +7 -0
- package/layout/template/Politicas/Composite/OneTrustPolicy.d.ts +14 -0
- package/layout/template/Politicas/Politicas.d.ts +10 -0
- package/layout/template/TrackingRouteWatcher/index.d.ts +5 -0
- package/package.json +1 -1
- package/server.d.ts +2 -0
- package/style.css +1 -1
- package/types/cms/ContentTypes/LPLojas/index.d.ts +22 -1
- package/types/cms/ContentTypes/PolicyPage/index.d.ts +17 -0
- package/types/contexts/contexts/session.d.ts +1 -0
- package/types/layout/templates/LPLojas/Details/index.d.ts +18 -0
- package/types/layout/templates/LPLojas/DropDown/index.d.ts +10 -0
- package/types/layout/templates/LPLojas/index.d.ts +18 -0
- package/types/layout/templates/Politicas/index.d.ts +27 -0
|
@@ -1,12 +1,33 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
1
2
|
import { IContentTypeResponseBase } from '../../Factories';
|
|
3
|
+
import { GetContentTypeParams } from '../../../data/api/cms';
|
|
4
|
+
import { ICONSType } from '../../../constants';
|
|
5
|
+
import { StoreMetaData } from '../../../layout/templates/LPLojas';
|
|
2
6
|
|
|
3
7
|
export interface Config {
|
|
4
8
|
titlePage: string;
|
|
5
9
|
altImageBackgroud: string;
|
|
6
|
-
|
|
10
|
+
imageBackgroundDesk: string;
|
|
11
|
+
imageBackgroundMob: string;
|
|
7
12
|
}
|
|
8
13
|
export interface ILPLojasContent extends IContentTypeResponseBase {
|
|
9
14
|
config: {
|
|
10
15
|
config: Config;
|
|
11
16
|
};
|
|
12
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
|
+
entity: string;
|
|
33
|
+
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
1
2
|
import { IContentTypeResponseBase } from '../../Factories';
|
|
2
3
|
import { NewsLetterSectionType } from '../../Sections/Newsletter';
|
|
3
4
|
import { TextAccordionSectionType } from '../../Sections/TextAccordion';
|
|
4
5
|
import { TextContentSectionType } from '../../Sections/TextContent';
|
|
6
|
+
import { OneTrustConfig } from '../../../layout/templates/Politicas';
|
|
7
|
+
import { GetContentTypeParams } from '../../../data/api/cms';
|
|
5
8
|
|
|
6
9
|
export interface ConfigTab {
|
|
7
10
|
tabConfig: {
|
|
@@ -36,3 +39,17 @@ export interface IPolicyTab extends IContentTypeResponseBase {
|
|
|
36
39
|
config: ConfigTab;
|
|
37
40
|
sections: TabPolicySectionType[];
|
|
38
41
|
}
|
|
42
|
+
export interface PolicyPageContentProps extends GetContentTypeParams {
|
|
43
|
+
slug: string;
|
|
44
|
+
SectionZone: ComponentType<any>;
|
|
45
|
+
Politicas: ComponentType<any>;
|
|
46
|
+
oneTrust: OneTrustConfig;
|
|
47
|
+
}
|
|
48
|
+
export interface PolicyPageClientProps {
|
|
49
|
+
slug: string;
|
|
50
|
+
pageData: IPolicyPage;
|
|
51
|
+
tabsData: IPolicyTab[];
|
|
52
|
+
SectionZone: ComponentType<any>;
|
|
53
|
+
oneTrust: OneTrustConfig;
|
|
54
|
+
newsletterContent: IPolicyPage['sections'] | null;
|
|
55
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IFlexProps } from '@soma-vertical-web/foundations';
|
|
2
|
+
import { ICONSType } from '../../../../constants';
|
|
3
|
+
import { StoreMetaData } from '..';
|
|
4
|
+
|
|
5
|
+
export interface ItemProps extends IFlexProps {
|
|
6
|
+
title?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
type?: 'default' | 'title';
|
|
9
|
+
}
|
|
10
|
+
export interface DetailsProps {
|
|
11
|
+
store: StoreMetaData;
|
|
12
|
+
showVendor?: boolean;
|
|
13
|
+
ICONS: ICONSType;
|
|
14
|
+
}
|
|
15
|
+
export interface VendorProps {
|
|
16
|
+
vendor: string;
|
|
17
|
+
ICONS: ICONSType;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefaultDropDownProps } from '@soma-vertical-web/core-components/src/lib/DropDown/interfaces';
|
|
2
|
+
import { ICONSType } from '../../../../../types/constants';
|
|
3
|
+
|
|
4
|
+
export interface DropDownProps extends DefaultDropDownProps {
|
|
5
|
+
selectText: string;
|
|
6
|
+
arrowDownIcon?: React.ReactNode;
|
|
7
|
+
arrowUpIcon?: React.ReactNode;
|
|
8
|
+
list?: string[];
|
|
9
|
+
ICONS: ICONSType;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const metaFields: readonly ["id", "endereco", "cidade", "complement", "district", "nome", "number", "telefone", "horario", "state", "celular", "vendedoras"];
|
|
4
|
+
export type MetaFields = (typeof metaFields)[number];
|
|
5
|
+
export type StoreMetaData = {
|
|
6
|
+
[key in MetaFields]?: string | number | null;
|
|
7
|
+
};
|
|
8
|
+
export interface RootProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
data: StoreMetaData[];
|
|
10
|
+
}
|
|
11
|
+
export type LPStoreProviderProps = RootProps & PropsWithChildren;
|
|
12
|
+
export interface LPStoreContextProps extends RootProps {
|
|
13
|
+
handleSelectCity(city: string): void;
|
|
14
|
+
handleSelectStore(store: string): void;
|
|
15
|
+
clearSelectedStore(): void;
|
|
16
|
+
selectedCity: StoreMetaData[] | undefined;
|
|
17
|
+
selectedStore: string | undefined;
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
}
|
|
4
|
+
export interface BannerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
title: string;
|
|
6
|
+
srcImages: {
|
|
7
|
+
desktop: string;
|
|
8
|
+
mobile: string;
|
|
9
|
+
};
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
interface Image {
|
|
13
|
+
image: string;
|
|
14
|
+
}
|
|
15
|
+
export interface BannerData {
|
|
16
|
+
desktop: Image;
|
|
17
|
+
mobile: Image;
|
|
18
|
+
}
|
|
19
|
+
export interface OneTrustConfig {
|
|
20
|
+
policyScript: string;
|
|
21
|
+
policyId: string;
|
|
22
|
+
siteId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface OneTrustProps {
|
|
25
|
+
oneTrust: OneTrustConfig;
|
|
26
|
+
}
|
|
27
|
+
export {};
|