@gem-sdk/core 2.0.0-dev.157 → 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.
@@ -32,6 +32,7 @@ const disableWrap = [
32
32
  'FormTextarea',
33
33
  'ProductPrice',
34
34
  'Product',
35
+ 'ProductList',
35
36
  'ProductImages',
36
37
  'ProductImagesV2',
37
38
  'PostPurchaseProductImages',
@@ -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, {
@@ -136,7 +136,8 @@ function composeAdvanceStyle(data, tag, pageType) {
136
136
  'ProductBadge',
137
137
  'ProductViewMore',
138
138
  'ProductButton',
139
- 'DynamicCheckout'
139
+ 'DynamicCheckout',
140
+ 'ProductList'
140
141
  ];
141
142
  const boostElements = [
142
143
  'Icon',
@@ -30,6 +30,7 @@ const disableWrap = [
30
30
  'FormTextarea',
31
31
  'ProductPrice',
32
32
  'Product',
33
+ 'ProductList',
33
34
  'ProductImages',
34
35
  'ProductImagesV2',
35
36
  'PostPurchaseProductImages',
@@ -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, {
@@ -134,7 +134,8 @@ function composeAdvanceStyle(data, tag, pageType) {
134
134
  'ProductBadge',
135
135
  'ProductViewMore',
136
136
  'ProductButton',
137
- 'DynamicCheckout'
137
+ 'DynamicCheckout',
138
+ 'ProductList'
138
139
  ];
139
140
  const boostElements = [
140
141
  'Icon',