@gem-sdk/core 1.57.0-staging.17 → 1.57.0-staging.20
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.
|
@@ -64,6 +64,11 @@ const createPageStoreProvider = (data)=>zustand.createStore((set)=>({
|
|
|
64
64
|
settingType
|
|
65
65
|
}
|
|
66
66
|
}));
|
|
67
|
+
},
|
|
68
|
+
setSidebarMode: (mode)=>{
|
|
69
|
+
set(()=>({
|
|
70
|
+
sidebarMode: mode
|
|
71
|
+
}));
|
|
67
72
|
}
|
|
68
73
|
}));
|
|
69
74
|
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, publicStoreFrontData, ...passProps })=>{
|
|
@@ -62,6 +62,11 @@ const createPageStoreProvider = (data)=>createStore((set)=>({
|
|
|
62
62
|
settingType
|
|
63
63
|
}
|
|
64
64
|
}));
|
|
65
|
+
},
|
|
66
|
+
setSidebarMode: (mode)=>{
|
|
67
|
+
set(()=>({
|
|
68
|
+
sidebarMode: mode
|
|
69
|
+
}));
|
|
65
70
|
}
|
|
66
71
|
}));
|
|
67
72
|
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, publicStoreFrontData, ...passProps })=>{
|
package/dist/types/index.d.ts
CHANGED
|
@@ -31307,6 +31307,7 @@ type PageContextProps = {
|
|
|
31307
31307
|
selectType?: 'ELEMENT' | 'PAGE';
|
|
31308
31308
|
settingType?: 'TRIGGER' | 'TARGET';
|
|
31309
31309
|
};
|
|
31310
|
+
sidebarMode?: string;
|
|
31310
31311
|
setDynamicProduct: (data: DynamicProduct) => void;
|
|
31311
31312
|
setDynamicCollection: (data: DynamicCollection) => void;
|
|
31312
31313
|
setPostPurchaseProductOffers: (productOffers: ProductOffer[]) => void;
|
|
@@ -31316,6 +31317,7 @@ type PageContextProps = {
|
|
|
31316
31317
|
setInteractionIsSelectOnPage: (value: boolean) => void;
|
|
31317
31318
|
setInteractionSelectType: (selectType: 'ELEMENT' | 'PAGE') => void;
|
|
31318
31319
|
setInteractionSettingType: (settingType?: 'TRIGGER' | 'TARGET') => void;
|
|
31320
|
+
setSidebarMode: (mode: string) => void;
|
|
31319
31321
|
};
|
|
31320
31322
|
type PageProviderProps = Pick<PageContextProps, 'dynamicProduct' | 'dynamicCollection' | 'productOffers'> & {
|
|
31321
31323
|
children: React.ReactNode;
|