@gem-sdk/core 2.0.0-dev.160 → 2.0.0-dev.168
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.
|
@@ -23,6 +23,11 @@ const createPageStoreProvider = (data)=>zustand.createStore((set)=>({
|
|
|
23
23
|
productOffers: productOffers
|
|
24
24
|
});
|
|
25
25
|
},
|
|
26
|
+
setDynamicDiscountOffer: (dynamicDiscountOffer)=>{
|
|
27
|
+
set({
|
|
28
|
+
dynamicDiscountOffer: dynamicDiscountOffer
|
|
29
|
+
});
|
|
30
|
+
},
|
|
26
31
|
setSalePageProductId: (id)=>{
|
|
27
32
|
set({
|
|
28
33
|
salePageProductId: id
|
|
@@ -72,11 +77,12 @@ const createPageStoreProvider = (data)=>zustand.createStore((set)=>({
|
|
|
72
77
|
}));
|
|
73
78
|
}
|
|
74
79
|
}));
|
|
75
|
-
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, publicStoreFrontData, ...passProps })=>{
|
|
80
|
+
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, dynamicDiscountOffer, publicStoreFrontData, ...passProps })=>{
|
|
76
81
|
const store = react.useMemo(()=>createPageStoreProvider({
|
|
77
82
|
dynamicProduct,
|
|
78
83
|
dynamicCollection,
|
|
79
84
|
productOffers,
|
|
85
|
+
dynamicDiscountOffer,
|
|
80
86
|
publicStoreFrontData,
|
|
81
87
|
interactionData: {
|
|
82
88
|
selectType: 'ELEMENT'
|
|
@@ -85,6 +91,7 @@ const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffe
|
|
|
85
91
|
dynamicProduct,
|
|
86
92
|
dynamicCollection,
|
|
87
93
|
productOffers,
|
|
94
|
+
dynamicDiscountOffer,
|
|
88
95
|
publicStoreFrontData
|
|
89
96
|
]);
|
|
90
97
|
return /*#__PURE__*/ jsxRuntime.jsx(PageContext.Provider, {
|
|
@@ -21,6 +21,11 @@ const createPageStoreProvider = (data)=>createStore((set)=>({
|
|
|
21
21
|
productOffers: productOffers
|
|
22
22
|
});
|
|
23
23
|
},
|
|
24
|
+
setDynamicDiscountOffer: (dynamicDiscountOffer)=>{
|
|
25
|
+
set({
|
|
26
|
+
dynamicDiscountOffer: dynamicDiscountOffer
|
|
27
|
+
});
|
|
28
|
+
},
|
|
24
29
|
setSalePageProductId: (id)=>{
|
|
25
30
|
set({
|
|
26
31
|
salePageProductId: id
|
|
@@ -70,11 +75,12 @@ const createPageStoreProvider = (data)=>createStore((set)=>({
|
|
|
70
75
|
}));
|
|
71
76
|
}
|
|
72
77
|
}));
|
|
73
|
-
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, publicStoreFrontData, ...passProps })=>{
|
|
78
|
+
const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffers, dynamicDiscountOffer, publicStoreFrontData, ...passProps })=>{
|
|
74
79
|
const store = useMemo(()=>createPageStoreProvider({
|
|
75
80
|
dynamicProduct,
|
|
76
81
|
dynamicCollection,
|
|
77
82
|
productOffers,
|
|
83
|
+
dynamicDiscountOffer,
|
|
78
84
|
publicStoreFrontData,
|
|
79
85
|
interactionData: {
|
|
80
86
|
selectType: 'ELEMENT'
|
|
@@ -83,6 +89,7 @@ const PageProvider = ({ children, dynamicProduct, dynamicCollection, productOffe
|
|
|
83
89
|
dynamicProduct,
|
|
84
90
|
dynamicCollection,
|
|
85
91
|
productOffers,
|
|
92
|
+
dynamicDiscountOffer,
|
|
86
93
|
publicStoreFrontData
|
|
87
94
|
]);
|
|
88
95
|
return /*#__PURE__*/ jsx(PageContext.Provider, {
|