@win2win/shared 1.0.152 → 1.0.154

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.
@@ -138,6 +138,10 @@ export declare const TEMPLATES: Readonly<{
138
138
  readonly label: "Catálogo productos destacados";
139
139
  readonly params: readonly ["title", "text", "background", "custom"];
140
140
  };
141
+ readonly widget: {
142
+ readonly label: "Widget custom";
143
+ readonly params: readonly ["code", "custom"];
144
+ };
141
145
  }>;
142
146
  export type Template = keyof typeof TEMPLATES;
143
147
  export type TemplateConfig = Prettify<(typeof TEMPLATES)[Template]>;
@@ -227,6 +231,7 @@ export interface SectionParams {
227
231
  styles?: string | Record<string, string>;
228
232
  params?: Record<string, any>;
229
233
  custom?: Record<string, any>;
234
+ code?: string;
230
235
  }
231
236
  export type SectionParam = keyof Partial<SectionParams>;
232
237
  export type SectionParamValue = SectionParams[SectionParam];
@@ -182,6 +182,10 @@ exports.TEMPLATES = Object.freeze({
182
182
  label: "Catálogo productos destacados",
183
183
  params: ["title", "text", "background", "custom"],
184
184
  },
185
+ widget: {
186
+ label: "Widget custom",
187
+ params: ["code", "custom"],
188
+ },
185
189
  });
186
190
  exports.PRODUCT_TEMPLATES_LABELS = [
187
191
  "product-carousel",
@@ -189,6 +193,7 @@ exports.PRODUCT_TEMPLATES_LABELS = [
189
193
  "product-simple-info",
190
194
  "product-location",
191
195
  "product-description",
196
+ "widget",
192
197
  ];
193
198
  Object.freeze(exports.PRODUCT_TEMPLATES_LABELS);
194
199
  exports.ECOMMERCE_TEMPLATES_LABELS = [
@@ -198,7 +203,8 @@ exports.ECOMMERCE_TEMPLATES_LABELS = [
198
203
  "ecommerce-filters",
199
204
  "ecommerce-checkout",
200
205
  "ecommerce-categories",
201
- "ecommerce-highlights"
206
+ "ecommerce-highlights",
207
+ "widget",
202
208
  ];
203
209
  Object.freeze(exports.ECOMMERCE_TEMPLATES_LABELS);
204
210
  exports.CHECKOUT_TEMPLATES_LABELS = ["shopcart-products"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.152",
3
+ "version": "1.0.154",
4
4
  "description": "Tipos, interfaces, funciones, constantes, clases y enums compartidos por todos los proyectos de Win2Win",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",