@soma-vertical-web/multi-lib 0.0.10 → 0.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soma-vertical-web/multi-lib",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -1,6 +1,9 @@
1
- export interface UsePDPSelectedSkuInfo {
2
- selectedSkuInfo: SelectedSkuInfoType;
3
- setSelectedSkuInfo: (skuInfo: SelectedSkuInfoType) => void;
1
+ export interface CommonUseStoreType<T = unknown> {
2
+ value: T;
3
+ actions: {
4
+ reset: () => void;
5
+ setValue: (value: T) => void;
6
+ };
4
7
  }
5
8
  export type SelectedSkuInfoType = {
6
9
  productId: string;
@@ -12,11 +15,14 @@ export type SelectedSkuInfoType = {
12
15
  available: boolean;
13
16
  quantity: number;
14
17
  };
15
- export interface UsePDPShowBottomNavigationType {
16
- showBottomNavigation: boolean;
17
- setShowBottomNavigation: (show: boolean) => void;
18
- }
19
- export interface UsePDPOpenMeasurementsType {
20
- openMeasurements: boolean;
21
- setOpenMeasurements: (open: boolean) => void;
18
+ export type OpenLetMeKnowType = boolean;
19
+ export type ShowNotifyType = boolean;
20
+ export type ShowBottomNavigationType = boolean;
21
+ export type OpenMeasurementsType = boolean;
22
+ export interface PDPInitialStateType {
23
+ selectedSkuInfo: SelectedSkuInfoType;
24
+ openLetMeKnow: OpenLetMeKnowType;
25
+ openMeasurements: OpenMeasurementsType;
26
+ showBottomNavigation: ShowBottomNavigationType;
27
+ showNotify: ShowNotifyType;
22
28
  }
@@ -58,6 +58,7 @@ export interface EventsFunctionType {
58
58
  currency: string;
59
59
  categoryOff: string;
60
60
  storeUrl: string;
61
+ MAIN_IMAGE: string;
61
62
  };
62
63
  }
63
64
  export type SendDatalayerEventType = {
@@ -95,17 +96,7 @@ export interface ProductsPersisteDataType {
95
96
  [key: string]: PersistedDataType;
96
97
  }
97
98
  export interface EventProviderProps extends PropsWithChildren {
98
- evtFunctionsConfigs: {
99
- PLP_FILTERS: {
100
- key: string;
101
- label: string;
102
- eventLabel: string;
103
- order: number;
104
- }[];
105
- currency: string;
106
- categoryOff: string;
107
- storeUrl: string;
108
- };
99
+ evtFunctionsConfigs: EventsFunctionType['configs'];
109
100
  }
110
101
  export interface MinicartFullData {
111
102
  [key: string]: CartItemStore;