@useinsider/guido 1.0.3-beta.24b87ae → 1.0.3-beta.25c5eb7

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.
Files changed (75) hide show
  1. package/dist/extensions/Blocks/Recommendation/controls/index.js +175 -0
  2. package/dist/extensions/Blocks/Recommendation/extension.js +6 -39
  3. package/dist/extensions/Blocks/controlFactories.js +223 -0
  4. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +60 -60
  5. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +43 -0
  6. package/dist/src/extensions/Blocks/controlFactories.d.ts +91 -0
  7. package/package.json +1 -1
  8. package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
  9. package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
  10. package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
  11. package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
  12. package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
  13. package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
  14. package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
  15. package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
  16. package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
  17. package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
  18. package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
  19. package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
  20. package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
  21. package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
  22. package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
  23. package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
  24. package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
  25. package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
  26. package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
  27. package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
  28. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
  29. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
  30. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
  31. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
  32. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
  33. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
  34. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
  35. package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
  36. package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
  37. package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
  38. package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
  39. package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
  40. package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
  41. package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
  42. package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
  43. package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
  44. package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
  45. package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
  46. package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
  47. package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
  48. package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
  49. package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
  50. package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
  51. package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
  52. package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
  53. package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
  54. package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
  55. package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
  56. package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
  57. package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
  58. package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
  59. package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
  60. package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
  61. package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
  62. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
  63. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
  64. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
  65. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
  66. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
  67. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
  68. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
  69. package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
  70. package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
  71. package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
  72. package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
  73. package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
  74. package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
  75. package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
@@ -1,13 +1,13 @@
1
- var J = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(J || {}), B = class u {
1
+ var J = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(J || {}), B = class d {
2
2
  /**
3
3
  * Validates that all required methods are properly implemented in the subclass.
4
4
  * @param requiredMethods - Array of method names that must be implemented
5
5
  * @param classRef - Reference to the class constructor for validation caching
6
6
  */
7
7
  constructor(e, r) {
8
- if (r !== u) {
9
- u.validatedClasses.has(r) || this.validateImplementation(e, r);
10
- const s = u.validationErrors.get(r);
8
+ if (r !== d) {
9
+ d.validatedClasses.has(r) || this.validateImplementation(e, r);
10
+ const s = d.validationErrors.get(r);
11
11
  if (s && s.length > 0)
12
12
  throw new Error(
13
13
  `${r.name} has validation errors:
@@ -29,7 +29,7 @@ ${s.map((E) => ` - ${E}`).join(`
29
29
  return;
30
30
  }
31
31
  T[l] === r.prototype[l] && s.push(`Method ${l}() must be implemented (currently using base class error-throwing implementation)`);
32
- }), u.validatedClasses.add(r), s.length > 0 ? (u.validationErrors.set(r, s), console.error(`[${E} Validation] ${E} validation failed:`, s)) : typeof process < "u" && ((O = process.env) == null ? void 0 : O.NODE_ENV) === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
32
+ }), d.validatedClasses.add(r), s.length > 0 ? (d.validationErrors.set(r, s), console.error(`[${E} Validation] ${E} validation failed:`, s)) : typeof process < "u" && ((O = process.env) == null ? void 0 : O.NODE_ENV) === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
33
33
  }
34
34
  };
35
35
  B.validatedClasses = /* @__PURE__ */ new Set();
@@ -236,28 +236,28 @@ var rt = {
236
236
  BLOCK_TEXT: w,
237
237
  BLOCK_IMAGE: P,
238
238
  GENERAL: p
239
- }, Rt = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(Rt || {}), a = {
239
+ }, Rt = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(Rt || {}), o = {
240
240
  name: "name",
241
241
  disabled: "disabled"
242
242
  }, ht = {
243
- ...a,
243
+ ...o,
244
244
  caption: "caption",
245
245
  icon: "icon"
246
246
  }, Ct = {
247
- ...a,
247
+ ...o,
248
248
  caption: "caption"
249
249
  }, Lt = {
250
- ...a,
250
+ ...o,
251
251
  minValue: "min-value",
252
252
  maxValue: "max-value",
253
253
  step: "step"
254
254
  }, gt = {
255
- ...a,
255
+ ...o,
256
256
  text: "text"
257
257
  }, mt = {
258
- ...a
258
+ ...o
259
259
  }, H = {
260
- ...a,
260
+ ...o,
261
261
  searchable: "searchable",
262
262
  multiSelect: "multi-select",
263
263
  placeholder: "placeholder",
@@ -271,25 +271,25 @@ var rt = {
271
271
  text: "text",
272
272
  value: "value"
273
273
  }, Dt = {
274
- ...a
274
+ ...o
275
275
  }, St = {
276
276
  controlId: "control-id"
277
277
  }, Bt = {
278
- ...a,
278
+ ...o,
279
279
  icon: "icon",
280
280
  position: "position"
281
281
  }, Mt = {
282
- ...a
282
+ ...o
283
283
  }, Ht = {
284
284
  BUTTON: ht,
285
285
  CHECKBOX: Ct,
286
- COLOR: a,
286
+ COLOR: o,
287
287
  COUNTER: Lt,
288
288
  LABEL: gt,
289
289
  RADIO_BUTTONS: mt,
290
290
  SELECTPICKER: H,
291
291
  FONT_FAMILY_SELECT: At,
292
- SWITCHER: a,
292
+ SWITCHER: o,
293
293
  TEXT: Dt,
294
294
  SELECT_ITEM: Nt,
295
295
  RADIO_ITEM: bt,
@@ -327,56 +327,60 @@ var rt = {
327
327
  isVisible(t) {
328
328
  return !0;
329
329
  }
330
- }, o = class extends M {
330
+ }, a = class extends M {
331
331
  getTargetNodes(t) {
332
332
  const e = t.querySelectorAll(I.BUTTON), r = t.asElement().hasClass(U) ? [t] : [];
333
333
  return e.length ? e : r;
334
334
  }
335
- }, Xt = class extends o {
335
+ }, Xt = class extends a {
336
336
  getParentControlId() {
337
337
  return n.BLOCK_BUTTON.BORDER_RADIUS;
338
338
  }
339
339
  getLabels() {
340
340
  }
341
- }, kt = class extends o {
341
+ }, kt = class extends a {
342
342
  getParentControlId() {
343
343
  return n.BLOCK_BUTTON.ALIGNMENT;
344
344
  }
345
- }, Vt = class extends o {
345
+ }, Vt = class extends a {
346
+ getParentControlId() {
347
+ return n.GENERAL.BACKGROUND_COLOR;
348
+ }
349
+ }, Gt = class extends a {
346
350
  getParentControlId() {
347
351
  return n.BLOCK_BUTTON.BORDER;
348
352
  }
349
353
  getLabels() {
350
354
  }
351
- }, Gt = class extends o {
355
+ }, ft = class extends a {
352
356
  getParentControlId() {
353
357
  return n.BLOCK_BUTTON.COLOR;
354
358
  }
355
- }, ft = class extends o {
359
+ }, Qt = class extends a {
356
360
  getParentControlId() {
357
361
  return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
358
362
  }
359
- }, Qt = class extends o {
363
+ }, Yt = class extends a {
360
364
  getParentControlId() {
361
365
  return n.BLOCK_BUTTON.FONT_FAMILY;
362
366
  }
363
- }, Yt = class extends o {
367
+ }, $t = class extends a {
364
368
  getParentControlId() {
365
369
  return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
366
370
  }
367
- }, $t = class extends o {
371
+ }, Wt = class extends a {
368
372
  getParentControlId() {
369
373
  return n.BLOCK_BUTTON.INTERNAL_INDENTS;
370
374
  }
371
- }, Wt = class extends o {
375
+ }, zt = class extends a {
372
376
  getParentControlId() {
373
377
  return n.BLOCK_BUTTON.TEXT;
374
378
  }
375
- }, zt = class extends o {
379
+ }, Zt = class extends a {
376
380
  getParentControlId() {
377
381
  return n.BLOCK_BUTTON.FONT_SIZE;
378
382
  }
379
- }, Zt = class extends o {
383
+ }, jt = class extends a {
380
384
  getParentControlId() {
381
385
  return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
382
386
  }
@@ -438,16 +442,16 @@ var rt = {
438
442
  }
439
443
  };
440
444
  X.REQUIRED_METHODS = ["getId", "getTemplate"];
441
- var jt = X, k = class extends M {
445
+ var qt = X, k = class extends M {
442
446
  getTargetNodes(t) {
443
447
  const e = t.querySelectorAll(I.IMAGE), r = t.asElement().hasClass(K) ? [t] : [];
444
448
  return e.length ? e : r;
445
449
  }
446
- }, qt = class extends k {
450
+ }, Jt = class extends k {
447
451
  getParentControlId() {
448
452
  return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
449
453
  }
450
- }, Jt = class extends k {
454
+ }, te = class extends k {
451
455
  getParentControlId() {
452
456
  return n.BLOCK_IMAGE.SIZE;
453
457
  }
@@ -460,7 +464,7 @@ var jt = X, k = class extends M {
460
464
  }
461
465
  };
462
466
  V.REQUIRED_METHODS = ["registerBlockControls"];
463
- var te = V, ee = class {
467
+ var ee = V, re = class {
464
468
  constructor(t, e) {
465
469
  this.tabId = t, this.controlsIds = e;
466
470
  }
@@ -483,36 +487,32 @@ var te = V, ee = class {
483
487
  const e = this.controlsIds.indexOf(t);
484
488
  e !== -1 && this.controlsIds.splice(e, 1);
485
489
  }
486
- }, d = class extends M {
490
+ }, u = class extends M {
487
491
  getTargetNodes(t) {
488
492
  const e = t.querySelectorAll(I.TEXT), r = t.asElement().hasClass(y) ? [t] : [];
489
493
  return e.length ? e : r;
490
494
  }
491
- }, re = class extends d {
495
+ }, ne = class extends u {
492
496
  getParentControlId() {
493
497
  return n.GENERAL.TEXT_ALIGN;
494
498
  }
495
- }, ne = class extends d {
496
- getParentControlId() {
497
- return n.BLOCK_TEXT.TEXT_BLOCK_BACKGROUND_COLOR;
498
- }
499
- }, se = class extends d {
499
+ }, se = class extends u {
500
500
  getParentControlId() {
501
501
  return n.GENERAL.TEXT_COLOR;
502
502
  }
503
- }, ie = class extends d {
503
+ }, ie = class extends u {
504
504
  getParentControlId() {
505
505
  return n.BLOCK_TEXT.FONT_FAMILY;
506
506
  }
507
- }, ae = class extends d {
507
+ }, ae = class extends u {
508
508
  getParentControlId() {
509
509
  return n.BLOCK_TEXT.INTERNAL_INDENTS;
510
510
  }
511
- }, oe = class extends d {
511
+ }, oe = class extends u {
512
512
  getParentControlId() {
513
513
  return n.GENERAL.TEXT_SIZE;
514
514
  }
515
- }, Ee = class extends d {
515
+ }, Ee = class extends u {
516
516
  getParentControlId() {
517
517
  return n.GENERAL.TEXT_STYLE;
518
518
  }
@@ -827,32 +827,32 @@ export {
827
827
  M as BuiltInControl,
828
828
  n as BuiltInControlTypes,
829
829
  kt as ButtonAlignBuiltInControl,
830
- Vt as ButtonBorderBuiltInControl,
830
+ Vt as ButtonBackgroundColorBuiltInControl,
831
+ Gt as ButtonBorderBuiltInControl,
831
832
  Xt as ButtonBorderRadiusBuiltInControl,
832
- Gt as ButtonColorBuiltInControl,
833
+ ft as ButtonColorBuiltInControl,
833
834
  F as ButtonControls,
834
- ft as ButtonFitToContainerBuiltInControl,
835
- Qt as ButtonFontFamilyBuiltInControl,
836
- Yt as ButtonMarginsBuiltInControl,
837
- $t as ButtonPaddingsBuiltInControl,
838
- Wt as ButtonTextBuiltInControl,
839
- zt as ButtonTextSizeBuiltInControl,
840
- Zt as ButtonTextStyleAndFontColorBuiltInControl,
835
+ Qt as ButtonFitToContainerBuiltInControl,
836
+ Yt as ButtonFontFamilyBuiltInControl,
837
+ $t as ButtonMarginsBuiltInControl,
838
+ Wt as ButtonPaddingsBuiltInControl,
839
+ zt as ButtonTextBuiltInControl,
840
+ Zt as ButtonTextSizeBuiltInControl,
841
+ jt as ButtonTextStyleAndFontColorBuiltInControl,
841
842
  _t as ContainerControls,
842
- jt as Control,
843
+ qt as Control,
843
844
  xt as Extension,
844
845
  le as ExtensionBuilder,
845
846
  p as GeneralControls,
846
847
  de as IconsRegistry,
847
848
  P as ImageControls,
848
- qt as ImageMarginsBuiltInControl,
849
- Jt as ImageSizeBuiltInControl,
849
+ Jt as ImageMarginsBuiltInControl,
850
+ te as ImageSizeBuiltInControl,
850
851
  ue as ModificationDescription,
851
- te as SettingsPanelRegistry,
852
- ee as SettingsPanelTab,
852
+ ee as SettingsPanelRegistry,
853
+ re as SettingsPanelTab,
853
854
  Rt as SettingsTab,
854
- re as TextAlignBuiltInControl,
855
- ne as TextBlockBackgroundBuiltInControl,
855
+ ne as TextAlignBuiltInControl,
856
856
  se as TextColorBuiltInControl,
857
857
  w as TextControls,
858
858
  ie as TextFontFamilyBuiltInControl,
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Recommendation Block Control Instances
3
+ *
4
+ * This file generates all control instances for the Recommendation Block
5
+ * using the reusable factory functions from ./factories.ts
6
+ *
7
+ * Note: Factory-generated controls use runtime class generation which TypeScript
8
+ * cannot fully type-check. The controls are type-safe at runtime.
9
+ */
10
+ export declare const NameAlignControl: any;
11
+ export declare const NameColorControl: any;
12
+ export declare const NameSizeControl: any;
13
+ export declare const NameStyleControl: any;
14
+ export declare const NameFontFamilyControl: any;
15
+ export declare const NameBackgroundControl: any;
16
+ export declare const NamePaddingsControl: any;
17
+ export declare const PriceAlignControl: any;
18
+ export declare const PriceColorControl: any;
19
+ export declare const PriceSizeControl: any;
20
+ export declare const PriceStyleControl: any;
21
+ export declare const PriceFontFamilyControl: any;
22
+ export declare const PriceBackgroundControl: any;
23
+ export declare const PricePaddingsControl: any;
24
+ export declare const OldPriceAlignControl: any;
25
+ export declare const OldPriceColorControl: any;
26
+ export declare const OldPriceSizeControl: any;
27
+ export declare const OldPriceStyleControl: any;
28
+ export declare const OldPriceFontFamilyControl: any;
29
+ export declare const OldPriceBackgroundControl: any;
30
+ export declare const OldPricePaddingsControl: any;
31
+ export declare const ButtonAlignControl: any;
32
+ export declare const ButtonBorderControl: any;
33
+ export declare const ButtonBorderRadiusControl: any;
34
+ export declare const ButtonColorControl: any;
35
+ export declare const ButtonFontFamilyControl: any;
36
+ export declare const ButtonMarginsControl: any;
37
+ export declare const ButtonPaddingsControl: any;
38
+ export declare const ButtonTextControl: any;
39
+ export declare const ButtonTextSizeControl: any;
40
+ export declare const ButtonTextStyleAndFontColorControl: any;
41
+ export declare const ButtonFitToContentControl: any;
42
+ export declare const ImageSizeControl: any;
43
+ export declare const ImageMarginsControl: any;
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Reusable Control Factory Functions
3
+ *
4
+ * These factory functions can be used by any extension block to generate
5
+ * controls dynamically, reducing code duplication across the codebase.
6
+ *
7
+ * Note: TypeScript's type inference has limitations with dynamically generated classes.
8
+ * The eslint-disable comment above suppresses warnings that would otherwise require
9
+ * extensive type assertions throughout the file. The generated controls are type-safe
10
+ * at runtime and follow the exact same patterns as manually-written control classes.
11
+ */
12
+ /**
13
+ * Factory function to create text align controls for different block elements
14
+ */
15
+ export declare function createTextAlignControl(controlId: string, targetBlockId: string, containerSelector: string): any;
16
+ /**
17
+ * Factory function to create text color controls for different block elements
18
+ */
19
+ export declare function createTextColorControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
20
+ /**
21
+ * Factory function to create text size controls for different block elements
22
+ */
23
+ export declare function createTextSizeControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
24
+ /**
25
+ * Factory function to create text style controls for different block elements
26
+ */
27
+ export declare function createTextStyleControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
28
+ /**
29
+ * Factory function to create text font family controls for different block elements
30
+ */
31
+ export declare function createTextFontFamilyControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
32
+ /**
33
+ * Factory function to create text background color controls for different block elements
34
+ */
35
+ export declare function createTextBackgroundColorControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
36
+ /**
37
+ * Factory function to create paddings controls for different block elements
38
+ */
39
+ export declare function createPaddingsControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
40
+ /**
41
+ * Factory function to create button align controls for different block elements
42
+ */
43
+ export declare function createButtonAlignControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
44
+ /**
45
+ * Factory function to create button color controls for different block elements
46
+ */
47
+ export declare function createButtonColorControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
48
+ /**
49
+ * Factory function to create button border controls for different block elements
50
+ */
51
+ export declare function createButtonBorderControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
52
+ /**
53
+ * Factory function to create button border radius controls for different block elements
54
+ */
55
+ export declare function createButtonBorderRadiusControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
56
+ /**
57
+ * Factory function to create button font family controls for different block elements
58
+ */
59
+ export declare function createButtonFontFamilyControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
60
+ /**
61
+ * Factory function to create button margins controls for different block elements
62
+ */
63
+ export declare function createButtonMarginsControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
64
+ /**
65
+ * Factory function to create button paddings controls for different block elements
66
+ */
67
+ export declare function createButtonPaddingsControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
68
+ /**
69
+ * Factory function to create button text controls for different block elements
70
+ */
71
+ export declare function createButtonTextControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
72
+ /**
73
+ * Factory function to create button text size controls for different block elements
74
+ */
75
+ export declare function createButtonTextSizeControl(controlId: string, targetBlockId: string, containerSelector?: string): any;
76
+ /**
77
+ * Factory function to create button text style and font color controls for different block elements
78
+ */
79
+ export declare function createButtonTextStyleAndFontColorControl(controlId: string, targetBlockId: string, containerSelector: string): any;
80
+ /**
81
+ * Factory function to create button fit to container controls for different block elements
82
+ */
83
+ export declare function createButtonFitToContainerControl(controlId: string, targetBlockId: string, containerSelector: string): any;
84
+ /**
85
+ * Factory function to create image size controls for different block elements
86
+ */
87
+ export declare function createImageSizeControl(controlId: string, targetBlockId: string, containerSelector: string): any;
88
+ /**
89
+ * Factory function to create image margins controls for different block elements
90
+ */
91
+ export declare function createImageMarginsControl(controlId: string, targetBlockId: string, containerSelector: string): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "1.0.3-beta.24b87ae",
3
+ "version": "1.0.3-beta.25c5eb7",
4
4
  "description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
5
5
  "main": "./dist/guido.umd.cjs",
6
6
  "module": "./dist/library.js",
@@ -1,13 +0,0 @@
1
- import { ButtonAlignBuiltInControl as t } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
3
- class c extends t {
4
- getId() {
5
- return e.BUTTON_ALIGN;
6
- }
7
- getTargetNodes(o) {
8
- return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
9
- }
10
- }
11
- export {
12
- c as ButtonAlignControl
13
- };
@@ -1,13 +0,0 @@
1
- import { ButtonBorderBuiltInControl as t } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
3
- class s extends t {
4
- getId() {
5
- return e.BUTTON_BORDER;
6
- }
7
- getTargetNodes(o) {
8
- return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
9
- }
10
- }
11
- export {
12
- s as ButtonBorderControl
13
- };
@@ -1,13 +0,0 @@
1
- import { ButtonBorderRadiusBuiltInControl as t } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
3
- class i extends t {
4
- getId() {
5
- return e.BUTTON_BORDER_RADIUS;
6
- }
7
- getTargetNodes(o) {
8
- return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
9
- }
10
- }
11
- export {
12
- i as ButtonBorderRadiusControl
13
- };
@@ -1,13 +0,0 @@
1
- import { ButtonColorBuiltInControl as t } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
3
- class c extends t {
4
- getId() {
5
- return e.BUTTON_COLOR;
6
- }
7
- getTargetNodes(o) {
8
- return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
9
- }
10
- }
11
- export {
12
- c as ButtonColorControl
13
- };
@@ -1,13 +0,0 @@
1
- import { ButtonFitToContainerBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
3
- class s extends o {
4
- getId() {
5
- return e.BUTTON_FIT_TO_CONTENT;
6
- }
7
- getTargetNodes(t) {
8
- return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
9
- }
10
- }
11
- export {
12
- s as ButtonFitToContentControl
13
- };
@@ -1,13 +0,0 @@
1
- import { ButtonFontFamilyBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
3
- class s extends o {
4
- getId() {
5
- return e.BUTTON_FONT_FAMILY;
6
- }
7
- getTargetNodes(t) {
8
- return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
9
- }
10
- }
11
- export {
12
- s as ButtonFontFamilyControl
13
- };
@@ -1,13 +0,0 @@
1
- import { ButtonMarginsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
3
- class m extends o {
4
- getId() {
5
- return e.BUTTON_MARGINS;
6
- }
7
- getTargetNodes(t) {
8
- return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
9
- }
10
- }
11
- export {
12
- m as ButtonMarginsControl
13
- };
@@ -1,13 +0,0 @@
1
- import { ButtonPaddingsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
3
- class i extends o {
4
- getId() {
5
- return e.BUTTON_PADDINGS;
6
- }
7
- getTargetNodes(t) {
8
- return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
9
- }
10
- }
11
- export {
12
- i as ButtonPaddingsControl
13
- };
@@ -1,13 +0,0 @@
1
- import { ButtonTextBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
3
- class c extends o {
4
- getId() {
5
- return e.BUTTON_TEXT;
6
- }
7
- getTargetNodes(t) {
8
- return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
9
- }
10
- }
11
- export {
12
- c as ButtonTextControl
13
- };
@@ -1,13 +0,0 @@
1
- import { ButtonTextSizeBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as o, RecommendationBlockId as n } from "../../constants.js";
3
- class s extends e {
4
- getId() {
5
- return o.BUTTON_TEXT_SIZE;
6
- }
7
- getTargetNodes(t) {
8
- return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
9
- }
10
- }
11
- export {
12
- s as ButtonTextSizeControl
13
- };
@@ -1,13 +0,0 @@
1
- import { ButtonTextStyleAndFontColorBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as e, RecommendationBlockId as n } from "../../constants.js";
3
- class s extends o {
4
- getId() {
5
- return e.BUTTON_TEXT_STYLE_AND_FONT_COLOR;
6
- }
7
- getTargetNodes(t) {
8
- return t.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.BUTTON}"]`);
9
- }
10
- }
11
- export {
12
- s as ButtonTextStyleAndFontColorControl
13
- };
@@ -1,13 +0,0 @@
1
- import { ImageMarginsBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
3
- class l extends o {
4
- getId() {
5
- return t.IMAGE_MARGINS;
6
- }
7
- getTargetNodes(e) {
8
- return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.IMAGE}"]`);
9
- }
10
- }
11
- export {
12
- l as ImageMarginsControl
13
- };
@@ -1,13 +0,0 @@
1
- import { ImageSizeBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
3
- class s extends o {
4
- getId() {
5
- return t.IMAGE_SIZE;
6
- }
7
- getTargetNodes(e) {
8
- return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.IMAGE}"]`);
9
- }
10
- }
11
- export {
12
- s as ImageSizeControl
13
- };
@@ -1,13 +0,0 @@
1
- import { TextAlignBuiltInControl as o } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as t, RecommendationBlockId as n } from "../../constants.js";
3
- class m extends o {
4
- getId() {
5
- return t.NAME_ALIGN;
6
- }
7
- getTargetNodes(e) {
8
- return e.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${n.NAME}"]`);
9
- }
10
- }
11
- export {
12
- m as NameAlignControl
13
- };
@@ -1,13 +0,0 @@
1
- import { TextBlockBackgroundBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
3
- class m extends e {
4
- getId() {
5
- return t.NAME_BACKGROUND;
6
- }
7
- getTargetNodes(o) {
8
- return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.NAME}"]`);
9
- }
10
- }
11
- export {
12
- m as NameBackgroundControl
13
- };
@@ -1,13 +0,0 @@
1
- import { TextColorBuiltInControl as e } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
2
- import { RecommendationControlId as t, RecommendationBlockId as r } from "../../constants.js";
3
- class m extends e {
4
- getId() {
5
- return t.NAME_COLOR;
6
- }
7
- getTargetNodes(o) {
8
- return o.closest(".ins-recommendation-product-container").querySelectorAll(`[esd-extension-block-id="${r.NAME}"]`);
9
- }
10
- }
11
- export {
12
- m as NameColorControl
13
- };