@soma-vertical-web/multi-lib 1.0.15 → 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.
- package/cms/ContentTypes/LPLojas/LPLojaClientWrapper.d.ts +3 -0
- package/cms/ContentTypes/LPLojas/LPLojasContent.d.ts +3 -0
- package/cms/ContentTypes/LPLojas/helpers.d.ts +12 -0
- package/cms/ContentTypes/LPLojas/typing.d.ts +32 -0
- package/cms/index.d.ts +1 -0
- package/cms/server.d.ts +1 -0
- package/contexts/contexts/lplojas/Context.d.ts +6 -0
- package/contexts/index.d.ts +4 -0
- package/data/api/master-data/search/index.d.ts +1 -1
- package/index.js +14 -14
- package/index.mjs +3709 -3465
- package/index2.js +1 -1
- package/index2.mjs +729 -651
- package/layout/index.d.ts +34 -0
- package/layout/template/LPLojas/Composite/Content/Content.d.ts +12 -0
- package/layout/template/LPLojas/Composite/Content/index.d.ts +1 -0
- package/layout/template/LPLojas/Composite/Details/Details.d.ts +7 -0
- package/layout/template/LPLojas/Composite/Details/Item.d.ts +7 -0
- package/layout/template/LPLojas/Composite/Details/Vendor.d.ts +7 -0
- package/layout/template/LPLojas/Composite/Details/index.d.ts +1 -0
- package/layout/template/LPLojas/Composite/Details/interfaces.d.ts +18 -0
- package/layout/template/LPLojas/Composite/DropDown/DropDown.d.ts +7 -0
- package/layout/template/LPLojas/Composite/DropDown/index.d.ts +1 -0
- package/layout/template/LPLojas/Composite/DropDown/interfaces.d.ts +10 -0
- package/layout/template/LPLojas/Composite/ReturnButton/ReturnButton.d.ts +11 -0
- package/layout/template/LPLojas/Composite/ReturnButton/index.d.ts +1 -0
- package/layout/template/LPLojas/Composite/Root.d.ts +7 -0
- package/layout/template/LPLojas/Composite/Section/Section.d.ts +12 -0
- package/layout/template/LPLojas/Composite/Section/index.d.ts +1 -0
- package/layout/template/LPLojas/Composite/Select/Select.d.ts +10 -0
- package/layout/template/LPLojas/Composite/Select/index.d.ts +1 -0
- package/layout/template/LPLojas/Composite/Title/Title.d.ts +7 -0
- package/layout/template/LPLojas/Composite/Title/index.d.ts +1 -0
- package/layout/template/LPLojas/constant.d.ts +1 -0
- package/layout/template/LPLojas/index.d.ts +35 -0
- package/layout/template/LPLojas/interfaces.d.ts +18 -0
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -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
|
+
}
|
package/cms/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare const clientCMS: {
|
|
|
22
22
|
EmbedLive: ({ data, name }: import('../types/cms/Sections/EmbedLive').EmbedLiveProps) => import("react/jsx-runtime").JSX.Element;
|
|
23
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 };
|
package/contexts/index.d.ts
CHANGED
|
@@ -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<
|
|
60
|
+
export declare function getSearchMasterdata({ apiUrl, body, fetchOptions, }: FetchFunctionsProps<SchemaType>): Promise<unknown[] | undefined>;
|
|
61
61
|
export {};
|