@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.
- package/dist/extensions/Blocks/Recommendation/controls/index.js +175 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +6 -39
- package/dist/extensions/Blocks/controlFactories.js +223 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +60 -60
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +43 -0
- package/dist/src/extensions/Blocks/controlFactories.d.ts +91 -0
- package/package.json +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
- package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
- 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
|
|
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 !==
|
|
9
|
-
|
|
10
|
-
const s =
|
|
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
|
-
}),
|
|
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 || {}),
|
|
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
|
-
...
|
|
243
|
+
...o,
|
|
244
244
|
caption: "caption",
|
|
245
245
|
icon: "icon"
|
|
246
246
|
}, Ct = {
|
|
247
|
-
...
|
|
247
|
+
...o,
|
|
248
248
|
caption: "caption"
|
|
249
249
|
}, Lt = {
|
|
250
|
-
...
|
|
250
|
+
...o,
|
|
251
251
|
minValue: "min-value",
|
|
252
252
|
maxValue: "max-value",
|
|
253
253
|
step: "step"
|
|
254
254
|
}, gt = {
|
|
255
|
-
...
|
|
255
|
+
...o,
|
|
256
256
|
text: "text"
|
|
257
257
|
}, mt = {
|
|
258
|
-
...
|
|
258
|
+
...o
|
|
259
259
|
}, H = {
|
|
260
|
-
...
|
|
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
|
-
...
|
|
274
|
+
...o
|
|
275
275
|
}, St = {
|
|
276
276
|
controlId: "control-id"
|
|
277
277
|
}, Bt = {
|
|
278
|
-
...
|
|
278
|
+
...o,
|
|
279
279
|
icon: "icon",
|
|
280
280
|
position: "position"
|
|
281
281
|
}, Mt = {
|
|
282
|
-
...
|
|
282
|
+
...o
|
|
283
283
|
}, Ht = {
|
|
284
284
|
BUTTON: ht,
|
|
285
285
|
CHECKBOX: Ct,
|
|
286
|
-
COLOR:
|
|
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:
|
|
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
|
-
},
|
|
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
|
|
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
|
|
341
|
+
}, kt = class extends a {
|
|
342
342
|
getParentControlId() {
|
|
343
343
|
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
344
344
|
}
|
|
345
|
-
}, Vt = class extends
|
|
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
|
-
},
|
|
355
|
+
}, ft = class extends a {
|
|
352
356
|
getParentControlId() {
|
|
353
357
|
return n.BLOCK_BUTTON.COLOR;
|
|
354
358
|
}
|
|
355
|
-
},
|
|
359
|
+
}, Qt = class extends a {
|
|
356
360
|
getParentControlId() {
|
|
357
361
|
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
358
362
|
}
|
|
359
|
-
},
|
|
363
|
+
}, Yt = class extends a {
|
|
360
364
|
getParentControlId() {
|
|
361
365
|
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
362
366
|
}
|
|
363
|
-
},
|
|
367
|
+
}, $t = class extends a {
|
|
364
368
|
getParentControlId() {
|
|
365
369
|
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
366
370
|
}
|
|
367
|
-
},
|
|
371
|
+
}, Wt = class extends a {
|
|
368
372
|
getParentControlId() {
|
|
369
373
|
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
370
374
|
}
|
|
371
|
-
},
|
|
375
|
+
}, zt = class extends a {
|
|
372
376
|
getParentControlId() {
|
|
373
377
|
return n.BLOCK_BUTTON.TEXT;
|
|
374
378
|
}
|
|
375
|
-
},
|
|
379
|
+
}, Zt = class extends a {
|
|
376
380
|
getParentControlId() {
|
|
377
381
|
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
378
382
|
}
|
|
379
|
-
},
|
|
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
|
|
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
|
-
},
|
|
450
|
+
}, Jt = class extends k {
|
|
447
451
|
getParentControlId() {
|
|
448
452
|
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
449
453
|
}
|
|
450
|
-
},
|
|
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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
495
|
+
}, ne = class extends u {
|
|
492
496
|
getParentControlId() {
|
|
493
497
|
return n.GENERAL.TEXT_ALIGN;
|
|
494
498
|
}
|
|
495
|
-
},
|
|
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
|
|
503
|
+
}, ie = class extends u {
|
|
504
504
|
getParentControlId() {
|
|
505
505
|
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
506
506
|
}
|
|
507
|
-
}, ae = class extends
|
|
507
|
+
}, ae = class extends u {
|
|
508
508
|
getParentControlId() {
|
|
509
509
|
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
510
510
|
}
|
|
511
|
-
}, oe = class extends
|
|
511
|
+
}, oe = class extends u {
|
|
512
512
|
getParentControlId() {
|
|
513
513
|
return n.GENERAL.TEXT_SIZE;
|
|
514
514
|
}
|
|
515
|
-
}, Ee = class extends
|
|
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
|
|
830
|
+
Vt as ButtonBackgroundColorBuiltInControl,
|
|
831
|
+
Gt as ButtonBorderBuiltInControl,
|
|
831
832
|
Xt as ButtonBorderRadiusBuiltInControl,
|
|
832
|
-
|
|
833
|
+
ft as ButtonColorBuiltInControl,
|
|
833
834
|
F as ButtonControls,
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
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
|
-
|
|
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
|
-
|
|
849
|
-
|
|
849
|
+
Jt as ImageMarginsBuiltInControl,
|
|
850
|
+
te as ImageSizeBuiltInControl,
|
|
850
851
|
ue as ModificationDescription,
|
|
851
|
-
|
|
852
|
-
|
|
852
|
+
ee as SettingsPanelRegistry,
|
|
853
|
+
re as SettingsPanelTab,
|
|
853
854
|
Rt as SettingsTab,
|
|
854
|
-
|
|
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.
|
|
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
|
-
};
|