@soma-vertical-web/multi-lib 0.0.10 → 0.0.12
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/helpers/index.d.ts +9 -0
- package/cms/index.d.ts +2 -0
- package/contexts/contexts/pdp/PDPDataContext.d.ts +10 -0
- package/contexts/index.d.ts +36 -10
- package/contexts/store/freight.d.ts +0 -0
- package/contexts/store/pdp.d.ts +24 -6
- package/index.js +4 -17
- package/index.mjs +4263 -4458
- package/layout/index.d.ts +26 -8
- package/layout/team-component/AddToCart/index.d.ts +1 -1
- package/layout/team-component/Footer/Composite/Devices/Column.Desktop.d.ts +4 -0
- package/layout/team-component/Footer/Composite/Devices/Column.Mobile.d.ts +4 -0
- package/layout/team-component/Footer/Composite/Devices/Index.d.ts +4 -0
- package/layout/team-component/Footer/Composite/Item.d.ts +4 -0
- package/layout/team-component/Footer/Composite/LegalInformation.d.ts +4 -0
- package/layout/team-component/Footer/Composite/OtherCollection.d.ts +5 -0
- package/layout/team-component/Footer/Composite/Stamps.d.ts +5 -0
- package/layout/team-component/Footer/Composite/Wrapper.d.ts +7 -0
- package/layout/team-component/Footer/Footer.d.ts +7 -0
- package/layout/team-component/Footer/index.d.ts +1 -0
- package/layout/template/PDP/Composite/Gallery/Carousel.d.ts +13 -0
- package/layout/template/PDP/Composite/Gallery/Image.d.ts +9 -0
- package/layout/template/PDP/Composite/Gallery/Video.d.ts +6 -0
- package/layout/template/PDP/Composite/Gallery/Wrapper.d.ts +4 -0
- package/layout/template/PDP/Composite/Gallery/index.d.ts +8 -0
- package/layout/template/PDP/PDPDataContext.d.ts +10 -0
- package/layout/template/PDP/index.d.ts +3 -0
- package/layout/utils/ExternalScripts/index.d.ts +5 -0
- package/layout/utils/LinkOrNotLink/index.d.ts +4 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/cms/ContentTypes/Footer/index.d.ts +1 -0
- package/types/contexts/contexts/global.d.ts +3 -1
- package/types/contexts/contexts/pdp.d.ts +1 -0
- package/types/contexts/store/pdp.d.ts +16 -10
- package/types/data/events/index.d.ts +2 -11
- package/types/layout/team-components/AddToCart/index.d.ts +0 -1
- package/types/layout/team-components/Footer/index.d.ts +1 -0
- package/types/layout/utils/index.d.ts +8 -1
- package/data/Events/EventCollector.d.ts +0 -5
- package/data/Events/EventContext.d.ts +0 -6
- package/data/Events/helpers.d.ts +0 -29
package/cms/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as Factories from './ui/Factories';
|
|
2
2
|
import * as CMSApi from './api';
|
|
3
|
+
import * as helpers from './helpers';
|
|
3
4
|
export declare const cms: {
|
|
4
5
|
ContentTypes: {
|
|
5
6
|
generateFlagsAndTags: typeof import('./ui/ContentTypes/FlagsAndTags').generateFlagsAndTagsContentType;
|
|
6
7
|
};
|
|
7
8
|
Factories: typeof Factories;
|
|
8
9
|
CMSApi: typeof CMSApi;
|
|
10
|
+
helpers: typeof helpers;
|
|
9
11
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProductType_PDP } from '../../../types/global/product';
|
|
2
|
+
import { PDPDataContextProps } from '../../../types/contexts/contexts/pdp';
|
|
3
|
+
import { PropsWithChildren } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare const PDPDataProvider: ({ children, productData, isKit, PDP_INFO, }: PropsWithChildren<{
|
|
6
|
+
productData: ProductType_PDP;
|
|
7
|
+
isKit: boolean;
|
|
8
|
+
PDP_INFO: any;
|
|
9
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const usePDPDataContext: () => PDPDataContextProps;
|
package/contexts/index.d.ts
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
import { Mediator } from './contexts/GlobalContext';
|
|
2
|
+
|
|
3
|
+
import * as cart from './store/cart';
|
|
2
4
|
import * as pdp from './store/pdp';
|
|
3
5
|
export declare const contexts: {
|
|
4
6
|
contexts: {
|
|
5
|
-
|
|
6
|
-
context: import('react').Context<import('../types/
|
|
7
|
-
hook: () => import('../types/
|
|
8
|
-
provider: ({ children,
|
|
7
|
+
addToCart: {
|
|
8
|
+
context: import('react').Context<import('../types/layout/team-components/AddToCart').AddToCartContextProps>;
|
|
9
|
+
hook: () => import('../types/layout/team-components/AddToCart').AddToCartContextProps;
|
|
10
|
+
provider: ({ children, delay, gap, ...props }: import('../types/layout/team-components/AddToCart').AddToCartProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
};
|
|
12
|
+
cart: {
|
|
13
|
+
context: import('react').Context<import('../types/contexts/store/cart').CartContextProps>;
|
|
14
|
+
hook: () => import('../types/contexts/store/cart').CartContextProps;
|
|
15
|
+
provider: ({ children, CARTPROVIDER_MESSAGE_PRODUCT_REMOVE, ...props }: import('../types/contexts/store/cart').CartProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
16
|
};
|
|
10
17
|
cms: {
|
|
11
18
|
FlagsAndTags: {
|
|
12
19
|
context: import('react').Context<{
|
|
13
20
|
tags: import('../types/cms/ContentTypes/FlagsAndTags').IFlagsAndTagsContent["config"];
|
|
14
21
|
}>;
|
|
15
|
-
provider: ({ data, children, }: import('../types/contexts/contexts/cms/FlagsAndTags').FlagsAndTagsProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
22
|
hook: () => {
|
|
17
23
|
tags: {
|
|
18
24
|
commercial: {
|
|
@@ -33,18 +39,37 @@ export declare const contexts: {
|
|
|
33
39
|
flagPdp: import('../types/cms/ContentTypes/FlagsAndTags').CommonFlagType;
|
|
34
40
|
};
|
|
35
41
|
};
|
|
42
|
+
provider: ({ data, children, }: import('../types/contexts/contexts/cms/FlagsAndTags').FlagsAndTagsProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
36
43
|
};
|
|
37
44
|
};
|
|
45
|
+
events: {
|
|
46
|
+
context: import('react').Context<import('../types/data/events').EventContextProps>;
|
|
47
|
+
hook: () => import('../types/data/events').EventContextProps;
|
|
48
|
+
provider: ({ children, evtFunctionsConfigs }: import('../types/data/events').EventProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
};
|
|
38
50
|
global: {
|
|
39
51
|
context: import('react').Context<import('../types/contexts/contexts/global').GlobalContextProps>;
|
|
40
|
-
provider: ({ children, headerConfigs, pathname, ...props }: import('../types/contexts/contexts/global').GlobalProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
52
|
hook: () => import('../types/contexts/contexts/global').GlobalContextProps;
|
|
53
|
+
provider: ({ children, headerConfigs, pathname, ...props }: import('../types/contexts/contexts/global').GlobalProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
54
|
mediator: typeof Mediator;
|
|
43
55
|
};
|
|
44
|
-
|
|
45
|
-
context: import('react').Context<import('../types/
|
|
46
|
-
provider: ({ children,
|
|
47
|
-
hook: () => import('../types/
|
|
56
|
+
pdp: {
|
|
57
|
+
context: import('react').Context<import('../types/contexts/contexts/pdp').PDPContextProps>;
|
|
58
|
+
provider: ({ children, gridScrollBack }: import('../types/contexts/contexts/pdp').PDPProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
hook: () => import('../types/contexts/contexts/pdp').PDPContextProps;
|
|
60
|
+
};
|
|
61
|
+
pdpdata: {
|
|
62
|
+
hook: () => import('../types/contexts/contexts/pdp').PDPDataContextProps;
|
|
63
|
+
provider: ({ children, productData, isKit, PDP_INFO, }: import('react').PropsWithChildren<{
|
|
64
|
+
productData: import('../types/global/product').ProductType_PDP;
|
|
65
|
+
isKit: boolean;
|
|
66
|
+
PDP_INFO: any;
|
|
67
|
+
}>) => import("react/jsx-runtime").JSX.Element;
|
|
68
|
+
};
|
|
69
|
+
ui: {
|
|
70
|
+
context: import('react').Context<import('../types/contexts/contexts/cart').UIContextProps>;
|
|
71
|
+
hook: () => import('../types/contexts/contexts/cart').UIContextProps;
|
|
72
|
+
provider: ({ children, ...props }: import('../types/contexts/contexts/cart').UIProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
48
73
|
};
|
|
49
74
|
};
|
|
50
75
|
hooks: {
|
|
@@ -52,5 +77,6 @@ export declare const contexts: {
|
|
|
52
77
|
};
|
|
53
78
|
stores: {
|
|
54
79
|
pdp: typeof pdp;
|
|
80
|
+
cart: typeof cart;
|
|
55
81
|
};
|
|
56
82
|
};
|
|
File without changes
|
package/contexts/store/pdp.d.ts
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { SelectedSkuInfoType } from '../../types/contexts/store/pdp';
|
|
2
|
+
|
|
3
|
+
export declare const resetAllPDPStores: () => void;
|
|
4
|
+
export declare const useGetPDPSelectedSkuInfo: () => SelectedSkuInfoType;
|
|
5
|
+
export declare const useActionsPDPSelectedSkuInfo: () => {
|
|
6
|
+
reset: () => void;
|
|
7
|
+
setValue: (value: SelectedSkuInfoType) => void;
|
|
8
|
+
};
|
|
3
9
|
export declare const useGetPDPOpenLetMeKnow: () => boolean;
|
|
4
|
-
export declare const
|
|
10
|
+
export declare const useActionsPDPOpenLetMeKnow: () => {
|
|
11
|
+
reset: () => void;
|
|
12
|
+
setValue: (value: boolean) => void;
|
|
13
|
+
};
|
|
5
14
|
export declare const useGetPDPShowNotify: () => boolean;
|
|
6
|
-
export declare const
|
|
15
|
+
export declare const useActionsPDPShowNotify: () => {
|
|
16
|
+
reset: () => void;
|
|
17
|
+
setValue: (value: boolean) => void;
|
|
18
|
+
};
|
|
7
19
|
export declare const useGetPDPShowBottomNavigation: () => boolean;
|
|
8
|
-
export declare const
|
|
20
|
+
export declare const useActionsPDPShowBottomNavigation: () => {
|
|
21
|
+
reset: () => void;
|
|
22
|
+
setValue: (value: boolean) => void;
|
|
23
|
+
};
|
|
9
24
|
export declare const useGetPDPOpenMeasurements: () => boolean;
|
|
10
|
-
export declare const
|
|
25
|
+
export declare const useActionsPDPOpenMeasurements: () => {
|
|
26
|
+
reset: () => void;
|
|
27
|
+
setValue: (value: boolean) => void;
|
|
28
|
+
};
|