@useinsider/guido 2.2.0-beta.1696353 → 2.2.0-beta.49c8d1d
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/README.md +0 -36
- package/dist/@types/config/schemas.js +65 -70
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +58 -69
- package/dist/composables/useBlocksConfig.js +16 -26
- package/dist/enums/defaults.js +4 -8
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +95 -163
- package/dist/src/@types/config/schemas.d.ts +0 -8
- package/dist/src/composables/useConfig.d.ts +0 -4
- package/dist/src/enums/defaults.d.ts +0 -4
- package/dist/src/stores/config.d.ts +0 -36
- package/dist/static/styles/components/version-history.css.js +2 -10
- package/dist/static/styles/components/wide-panel.css.js +2 -3
- package/package.json +1 -1
- package/dist/extensions/ModulesTabIcons/extension.js +0 -17
- package/dist/src/extensions/ModulesTabIcons/extension.d.ts +0 -2
|
@@ -34,7 +34,7 @@ ${s.map((o) => ` - ${o}`).join(`
|
|
|
34
34
|
};
|
|
35
35
|
B.validatedClasses = /* @__PURE__ */ new Set();
|
|
36
36
|
B.validationErrors = /* @__PURE__ */ new Map();
|
|
37
|
-
var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCTURE", e.CONTAINER = "CONTAINER", e))($ || {}),
|
|
37
|
+
var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCTURE", e.CONTAINER = "CONTAINER", e))($ || {}), y = class T extends a {
|
|
38
38
|
constructor() {
|
|
39
39
|
super(T.REQUIRED_METHODS, T);
|
|
40
40
|
}
|
|
@@ -195,8 +195,8 @@ var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
|
|
|
195
195
|
throw new Error("Method getDescription() must be implemented by the subclass");
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
|
-
|
|
199
|
-
var
|
|
198
|
+
y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
199
|
+
var we = y, W = class c extends a {
|
|
200
200
|
constructor() {
|
|
201
201
|
super(c.REQUIRED_METHODS, c);
|
|
202
202
|
}
|
|
@@ -214,74 +214,7 @@ var Pe = v, W = class c extends a {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
217
|
-
var
|
|
218
|
-
/**
|
|
219
|
-
* Generates HTML representation for a block item
|
|
220
|
-
* @param block - The block item to generate HTML for
|
|
221
|
-
* @returns HTML string representation of the block or undefined if default representation should be used
|
|
222
|
-
*/
|
|
223
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
224
|
-
getBlockItemHtml(e) {
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Determines whether a hint should be displayed for the block
|
|
228
|
-
* @param block - The block item to check hint visibility for
|
|
229
|
-
* @returns True if the hint should be visible, false otherwise
|
|
230
|
-
*/
|
|
231
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
232
|
-
isBlockHintVisible(e) {
|
|
233
|
-
return !0;
|
|
234
|
-
}
|
|
235
|
-
/**
|
|
236
|
-
* Gets the hint text for a block
|
|
237
|
-
* @param block - The block item to get hint for
|
|
238
|
-
* @returns The hint text for the block or undefined if default hint should be used
|
|
239
|
-
*/
|
|
240
|
-
getBlockHint(e) {
|
|
241
|
-
return {
|
|
242
|
-
title: e.title,
|
|
243
|
-
description: e.description
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* Generates HTML representation for the blocks panel header
|
|
248
|
-
* @returns HTML string representation of the blocks panel header or undefined if header should not be shown
|
|
249
|
-
*/
|
|
250
|
-
getBlocksPanelHeaderHtml() {
|
|
251
|
-
}
|
|
252
|
-
/**
|
|
253
|
-
* Generates HTML representation for the modules panel in collapsed state
|
|
254
|
-
* @returns HTML string representation of the collapsed modules panel or undefined if default representation should be used
|
|
255
|
-
*/
|
|
256
|
-
getModulesPanelCollapsedHtml() {
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* Determines whether a hint should be displayed for the collapsed modules panel
|
|
260
|
-
* @returns True if the hint should be visible, false otherwise
|
|
261
|
-
*/
|
|
262
|
-
isModulesPanelCollapsedHintVisible() {
|
|
263
|
-
return !0;
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Gets the custom delay for showing hints
|
|
267
|
-
* @returns The delay in milliseconds or undefined to use the default delay
|
|
268
|
-
*/
|
|
269
|
-
getHintDelay() {
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Gets the hint text for a modules panel block
|
|
273
|
-
* @returns The hint text for the modules panel or undefined if default hint should be used
|
|
274
|
-
*/
|
|
275
|
-
getModulesPanelHint() {
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* Gets the icon name for the modules tab
|
|
279
|
-
* @returns The icon name for the modules tab or undefined if default icon or text should be used
|
|
280
|
-
*/
|
|
281
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
282
|
-
getModulesTabIconName(e) {
|
|
283
|
-
}
|
|
284
|
-
}, z = class O extends a {
|
|
217
|
+
var z = class O extends a {
|
|
285
218
|
constructor() {
|
|
286
219
|
super(O.REQUIRED_METHODS, O);
|
|
287
220
|
}
|
|
@@ -307,42 +240,42 @@ var Z = {
|
|
|
307
240
|
height: "height"
|
|
308
241
|
}, j = {
|
|
309
242
|
href: "href"
|
|
310
|
-
},
|
|
243
|
+
}, Pe = {
|
|
311
244
|
BLOCK_IMAGE: Z,
|
|
312
245
|
BLOCK_BUTTON: j
|
|
313
|
-
},
|
|
246
|
+
}, v = "esd-block-button", U = "esd-block-text", w = "esd-block-image", q = "esd-structure", J = "esd-block-video", ee = "esd-block-social", te = "esd-block-banner", re = "esd-block-timer", ne = "esd-block-menu", ae = "esd-block-html", se = "esd-block-spacer", ie = "esd-container-frame", Ee = "esd-stripe", le = "esd-amp-form", I = ((e) => (e.BUTTON = `.${v}`, e.TEXT = `.${U}`, e.IMAGE = `.${w}`, e.STRUCTURE = `.${q}`, e.VIDEO = `.${J}`, e.SOCIAL = `.${ee}`, e.BANNER = `.${te}`, e.TIMER = `.${re}`, e.MENU = `.${ne}`, e.HTML = `.${ae}`, e.SPACER = `.${se}`, e.CONTAINER = `.${ie}`, e.STRIPE = `.${Ee}`, e.FORM = `.${le}`, e))(I || {}), oe = /* @__PURE__ */ ((e) => (e.BLOCK_IMAGE = "BLOCK_IMAGE", e.BLOCK_TEXT = "BLOCK_TEXT", e.BLOCK_BUTTON = "BLOCK_BUTTON", e.BLOCK_SPACER = "BLOCK_SPACER", e.BLOCK_VIDEO = "BLOCK_VIDEO", e.BLOCK_SOCIAL = "BLOCK_SOCIAL", e.BLOCK_BANNER = "BLOCK_BANNER", e.BLOCK_TIMER = "BLOCK_TIMER", e.BLOCK_MENU = "BLOCK_MENU", e.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", e.BLOCK_HTML = "BLOCK_HTML", e.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", e.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", e.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", e.CONTAINER = "CONTAINER", e.FORM_CONTAINER = "FORM_CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e.EMPTY_CONTAINER = "EMPTY_CONTAINER", e.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", e.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", e.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", e))(oe || {}), P = /* @__PURE__ */ ((e) => (e.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", e.APPLY_CONDITION = "applyCondition", e.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", e.BACKGROUND_COLOR = "backgroundColor", e.BACKGROUND_IMAGE = "generalImageContainer", e.TEXT_COLOR = "textColor", e.TEXT_STYLE = "textStyle", e.TEXT_SIZE = "textSize", e.TEXT_LINE_SPACING = "textLineSpacing", e.TEXT_ALIGN = "textAlign", e.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", e.HIDDEN_NODE = "hiddenNode", e.SMART_BLOCK = "smartBlock", e.SYNCHRONIZED_MODULE = "synchronizedModuleForm", e.FONT_FAMILY = "generalFontFamilyForm", e.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", e.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", e))(P || {}), K = /* @__PURE__ */ ((e) => (e.ADJUST_TO_WIDTH = "adjustToWidth", e.ALIGNMENT = "buttonAlignment", e.BORDER = "buttonBorder", e.BORDER_RADIUS = "buttonBorderRadius", e.COLOR = "buttonColor", e.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", e.EXTERNAL_INDENTS = "buttonExternalIndents", e.FIXED_HEIGHT = "buttonFixedHeightForm", e.FONT_COLOR = "buttonFontColor", e.FONT_FAMILY = "buttonFontFamily", e.FONT_SIZE = "buttonFontSize", e.ICON = "buttonIconContainer", e.ICON_ALIGN = "buttonIconAlign", e.ICON_INDENT = "buttonIconIndent", e.ICON_WIDTH = "buttonIconWidth", e.IMAGE = "buttonImageForm", e.INTERNAL_INDENTS = "buttonInternalIndents", e.LINK = "buttonLink", e.MIME_TYPE = "buttonMimeTypeForm", e.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", e.TEXT = "buttonText", e.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", e.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", e.HOVERED_COLOR = "hoveredButtonColorForm", e.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", e))(K || {}), F = /* @__PURE__ */ ((e) => (e.HIDDEN_NODE = "hiddenNodeText", e.PARAGRAPH_STYLE = "paragraphStyleForm", e.ALIGN = "textAlignmentForm", e.ANCHOR_CONTAINER = "textAnchorForm", e.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", e.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", e.FONT_COLOR = "textBlockFontColor", e.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", e.FONT_FAMILY = "textFontFamily", e.FONT_SIZE = "textBlockFontSize", e.DIRECTION = "textBlockDirectionForm", e.INSERT_FORM = "textBlockInsertForm", e.LINK_DATA = "textBlockLinkDataForm", e.FORMAT = "textBlockTextFormatForm", e.FIXED_HEIGHT = "textFixedHeightForm", e.INTERNAL_INDENTS = "textInternalIndents", e.LINE_HEIGHT = "textLineHeightForm", e.LINKS_COLOR = "textLinksFontColorForm", e.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(F || {}), H = /* @__PURE__ */ ((e) => (e.ALT_TEXT = "altText", e.LINK = "blockLink", e.ALIGNMENT = "imageAlignment", e.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", e.BORDER_RADIUS = "imageBorderRadiusForm", e.IMAGE = "imageImageForm", e.EXTERNAL_INDENTS = "imageExternalIndents", e.MIME_TYPE = "imageMimeTypeForm", e.RESPONSIVE = "imageResponsive", e.ROLLOVER_IMAGE = "imageRolloverImageForm", e.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", e.SIZE = "imageSizeContainer", e))(H || {}), de = /* @__PURE__ */ ((e) => (e.BACKGROUND_COLOR = "containerBackgroundColorForm", e.BORDER_FORM = "containerBorderForm", e.BORDER_RADIUS = "containerBorderRadiusForm", e.EXTERNAL_INDENTS = "containerExternalIndentsForm", e.IMAGE_CONTAINER = "containerImageContainerForm", e.MIME_TYPE = "containerMimeTypeForm", e.DISPLAY_CONDITIONS = "displayConditions", e.HIDDEN_NODE = "containerHiddenNodeForm", e))(de || {}), n = {
|
|
314
247
|
BLOCK_BUTTON: K,
|
|
315
248
|
BLOCK_TEXT: F,
|
|
316
249
|
BLOCK_IMAGE: H,
|
|
317
|
-
GENERAL:
|
|
318
|
-
}, ue = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(ue || {}),
|
|
250
|
+
GENERAL: P
|
|
251
|
+
}, ue = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(ue || {}), E = {
|
|
319
252
|
name: "name",
|
|
320
253
|
disabled: "disabled"
|
|
321
254
|
}, Ie = {
|
|
322
|
-
...
|
|
255
|
+
...E,
|
|
323
256
|
caption: "caption",
|
|
324
257
|
icon: "icon"
|
|
325
258
|
}, Te = {
|
|
326
|
-
...
|
|
259
|
+
...E,
|
|
327
260
|
caption: "caption"
|
|
328
261
|
}, ce = {
|
|
329
|
-
...
|
|
262
|
+
...E,
|
|
330
263
|
minValue: "min-value",
|
|
331
264
|
maxValue: "max-value",
|
|
332
265
|
step: "step"
|
|
333
266
|
}, Oe = {
|
|
334
|
-
...
|
|
267
|
+
...E,
|
|
335
268
|
text: "text"
|
|
336
|
-
},
|
|
337
|
-
...
|
|
338
|
-
},
|
|
339
|
-
...
|
|
269
|
+
}, he = {
|
|
270
|
+
...E
|
|
271
|
+
}, X = {
|
|
272
|
+
...E,
|
|
340
273
|
searchable: "searchable",
|
|
341
274
|
multiSelect: "multi-select",
|
|
342
275
|
placeholder: "placeholder",
|
|
343
276
|
items: "items"
|
|
344
|
-
},
|
|
345
|
-
...
|
|
277
|
+
}, ge = {
|
|
278
|
+
...X
|
|
346
279
|
}, be = {
|
|
347
280
|
text: "text",
|
|
348
281
|
value: "value"
|
|
@@ -351,25 +284,25 @@ var Z = {
|
|
|
351
284
|
icon: "icon",
|
|
352
285
|
value: "value"
|
|
353
286
|
}, Re = {
|
|
354
|
-
...
|
|
287
|
+
...E
|
|
355
288
|
}, _e = {
|
|
356
289
|
controlId: "control-id"
|
|
357
290
|
}, Le = {
|
|
358
|
-
...
|
|
291
|
+
...E,
|
|
359
292
|
icon: "icon",
|
|
360
293
|
position: "position"
|
|
361
294
|
}, Ce = {
|
|
362
|
-
...
|
|
363
|
-
},
|
|
295
|
+
...E
|
|
296
|
+
}, Ke = {
|
|
364
297
|
BUTTON: Ie,
|
|
365
298
|
CHECKBOX: Te,
|
|
366
|
-
COLOR:
|
|
299
|
+
COLOR: E,
|
|
367
300
|
COUNTER: ce,
|
|
368
301
|
LABEL: Oe,
|
|
369
|
-
RADIO_BUTTONS:
|
|
370
|
-
SELECTPICKER:
|
|
371
|
-
FONT_FAMILY_SELECT:
|
|
372
|
-
SWITCHER:
|
|
302
|
+
RADIO_BUTTONS: he,
|
|
303
|
+
SELECTPICKER: X,
|
|
304
|
+
FONT_FAMILY_SELECT: ge,
|
|
305
|
+
SWITCHER: E,
|
|
373
306
|
TEXT: Re,
|
|
374
307
|
SELECT_ITEM: be,
|
|
375
308
|
RADIO_ITEM: me,
|
|
@@ -409,16 +342,16 @@ var Z = {
|
|
|
409
342
|
}
|
|
410
343
|
}, i = class extends M {
|
|
411
344
|
getTargetNodes(e) {
|
|
412
|
-
const t = e.querySelectorAll(I.BUTTON), r = e.asElement().hasClass(
|
|
345
|
+
const t = e.querySelectorAll(I.BUTTON), r = e.asElement().hasClass(v) ? [e] : [];
|
|
413
346
|
return t.length ? t : r;
|
|
414
347
|
}
|
|
415
|
-
},
|
|
348
|
+
}, Fe = class extends i {
|
|
416
349
|
getParentControlId() {
|
|
417
350
|
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
418
351
|
}
|
|
419
352
|
getLabels() {
|
|
420
353
|
}
|
|
421
|
-
},
|
|
354
|
+
}, He = class extends i {
|
|
422
355
|
getParentControlId() {
|
|
423
356
|
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
424
357
|
}
|
|
@@ -426,7 +359,7 @@ var Z = {
|
|
|
426
359
|
getParentControlId() {
|
|
427
360
|
return n.GENERAL.BACKGROUND_COLOR;
|
|
428
361
|
}
|
|
429
|
-
},
|
|
362
|
+
}, ke = class extends i {
|
|
430
363
|
getParentControlId() {
|
|
431
364
|
return n.BLOCK_BUTTON.BORDER;
|
|
432
365
|
}
|
|
@@ -436,39 +369,39 @@ var Z = {
|
|
|
436
369
|
getParentControlId() {
|
|
437
370
|
return n.BLOCK_BUTTON.COLOR;
|
|
438
371
|
}
|
|
439
|
-
},
|
|
372
|
+
}, Ve = class extends i {
|
|
440
373
|
getParentControlId() {
|
|
441
374
|
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
442
375
|
}
|
|
443
|
-
},
|
|
376
|
+
}, pe = class extends i {
|
|
444
377
|
getParentControlId() {
|
|
445
378
|
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
446
379
|
}
|
|
447
|
-
},
|
|
380
|
+
}, Qe = class extends i {
|
|
448
381
|
getParentControlId() {
|
|
449
382
|
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
450
383
|
}
|
|
451
|
-
},
|
|
384
|
+
}, fe = class extends i {
|
|
452
385
|
getParentControlId() {
|
|
453
386
|
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
454
387
|
}
|
|
455
|
-
},
|
|
388
|
+
}, Ye = class extends i {
|
|
456
389
|
getParentControlId() {
|
|
457
390
|
return n.BLOCK_BUTTON.TEXT;
|
|
458
391
|
}
|
|
459
|
-
},
|
|
392
|
+
}, $e = class extends i {
|
|
460
393
|
getParentControlId() {
|
|
461
394
|
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
462
395
|
}
|
|
463
|
-
},
|
|
396
|
+
}, We = class extends i {
|
|
464
397
|
getParentControlId() {
|
|
465
398
|
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
466
399
|
}
|
|
467
400
|
getLabels() {
|
|
468
401
|
}
|
|
469
|
-
},
|
|
402
|
+
}, k = class h extends a {
|
|
470
403
|
constructor() {
|
|
471
|
-
super(
|
|
404
|
+
super(h.REQUIRED_METHODS, h);
|
|
472
405
|
}
|
|
473
406
|
/**
|
|
474
407
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
@@ -521,10 +454,10 @@ var Z = {
|
|
|
521
454
|
onDocumentChanged(t) {
|
|
522
455
|
}
|
|
523
456
|
};
|
|
524
|
-
|
|
525
|
-
var
|
|
457
|
+
k.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
458
|
+
var ze = k, Ne = class g extends a {
|
|
526
459
|
constructor() {
|
|
527
|
-
super(
|
|
460
|
+
super(g.REQUIRED_METHODS, g);
|
|
528
461
|
}
|
|
529
462
|
/**
|
|
530
463
|
* Gets the unique identifier for this tab.
|
|
@@ -592,20 +525,20 @@ var Ze = X, Ne = class h extends a {
|
|
|
592
525
|
}
|
|
593
526
|
};
|
|
594
527
|
Ne.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
595
|
-
var
|
|
528
|
+
var G = class extends M {
|
|
596
529
|
getTargetNodes(e) {
|
|
597
|
-
const t = e.querySelectorAll(I.IMAGE), r = e.asElement().hasClass(
|
|
530
|
+
const t = e.querySelectorAll(I.IMAGE), r = e.asElement().hasClass(w) ? [e] : [];
|
|
598
531
|
return t.length ? t : r;
|
|
599
532
|
}
|
|
600
|
-
},
|
|
533
|
+
}, Ze = class extends G {
|
|
601
534
|
getParentControlId() {
|
|
602
535
|
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
603
536
|
}
|
|
604
|
-
},
|
|
537
|
+
}, je = class extends G {
|
|
605
538
|
getParentControlId() {
|
|
606
539
|
return n.BLOCK_IMAGE.SIZE;
|
|
607
540
|
}
|
|
608
|
-
},
|
|
541
|
+
}, V = class b extends a {
|
|
609
542
|
constructor() {
|
|
610
543
|
super(b.REQUIRED_METHODS, b);
|
|
611
544
|
}
|
|
@@ -613,8 +546,8 @@ var V = class extends M {
|
|
|
613
546
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
614
547
|
}
|
|
615
548
|
};
|
|
616
|
-
|
|
617
|
-
var
|
|
549
|
+
V.REQUIRED_METHODS = ["registerBlockControls"];
|
|
550
|
+
var qe = V, Je = class {
|
|
618
551
|
constructor(e, t) {
|
|
619
552
|
this.tabId = e, this.controlsIds = t;
|
|
620
553
|
}
|
|
@@ -637,36 +570,36 @@ var Je = G, et = class {
|
|
|
637
570
|
const t = this.controlsIds.indexOf(e);
|
|
638
571
|
t !== -1 && this.controlsIds.splice(t, 1);
|
|
639
572
|
}
|
|
640
|
-
},
|
|
573
|
+
}, l = class extends M {
|
|
641
574
|
getTargetNodes(e) {
|
|
642
575
|
const t = e.querySelectorAll(I.TEXT), r = e.asElement().hasClass(U) ? [e] : [];
|
|
643
576
|
return t.length ? t : r;
|
|
644
577
|
}
|
|
645
|
-
},
|
|
578
|
+
}, et = class extends l {
|
|
646
579
|
getParentControlId() {
|
|
647
580
|
return n.GENERAL.TEXT_ALIGN;
|
|
648
581
|
}
|
|
649
|
-
},
|
|
582
|
+
}, tt = class extends l {
|
|
650
583
|
getParentControlId() {
|
|
651
584
|
return n.GENERAL.TEXT_COLOR;
|
|
652
585
|
}
|
|
653
|
-
},
|
|
586
|
+
}, rt = class extends l {
|
|
654
587
|
getParentControlId() {
|
|
655
588
|
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
656
589
|
}
|
|
657
|
-
},
|
|
590
|
+
}, nt = class extends l {
|
|
658
591
|
getParentControlId() {
|
|
659
592
|
return n.GENERAL.TEXT_LINE_SPACING;
|
|
660
593
|
}
|
|
661
|
-
},
|
|
594
|
+
}, at = class extends l {
|
|
662
595
|
getParentControlId() {
|
|
663
596
|
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
664
597
|
}
|
|
665
|
-
},
|
|
598
|
+
}, st = class extends l {
|
|
666
599
|
getParentControlId() {
|
|
667
600
|
return n.GENERAL.TEXT_SIZE;
|
|
668
601
|
}
|
|
669
|
-
},
|
|
602
|
+
}, it = class extends l {
|
|
670
603
|
getParentControlId() {
|
|
671
604
|
return n.GENERAL.TEXT_STYLE;
|
|
672
605
|
}
|
|
@@ -902,7 +835,7 @@ var xe = class L extends a {
|
|
|
902
835
|
}
|
|
903
836
|
};
|
|
904
837
|
xe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
905
|
-
var
|
|
838
|
+
var ye = class C extends a {
|
|
906
839
|
constructor() {
|
|
907
840
|
super(C.REQUIRED_METHODS, C);
|
|
908
841
|
}
|
|
@@ -910,8 +843,8 @@ var ve = class C extends a {
|
|
|
910
843
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
911
844
|
}
|
|
912
845
|
};
|
|
913
|
-
|
|
914
|
-
var
|
|
846
|
+
ye.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
847
|
+
var ve = class A extends a {
|
|
915
848
|
constructor() {
|
|
916
849
|
super(A.REQUIRED_METHODS, A);
|
|
917
850
|
}
|
|
@@ -919,7 +852,7 @@ var ye = class A extends a {
|
|
|
919
852
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
920
853
|
}
|
|
921
854
|
};
|
|
922
|
-
|
|
855
|
+
ve.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
923
856
|
var p = class N extends a {
|
|
924
857
|
constructor() {
|
|
925
858
|
super(N.REQUIRED_METHODS, N);
|
|
@@ -929,7 +862,7 @@ var p = class N extends a {
|
|
|
929
862
|
}
|
|
930
863
|
};
|
|
931
864
|
p.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
932
|
-
var
|
|
865
|
+
var lt = p, ot = class {
|
|
933
866
|
constructor(e) {
|
|
934
867
|
this.key = e;
|
|
935
868
|
}
|
|
@@ -998,7 +931,7 @@ var ot = p, dt = class {
|
|
|
998
931
|
}
|
|
999
932
|
};
|
|
1000
933
|
Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
1001
|
-
var
|
|
934
|
+
var dt = Q, f = class S extends a {
|
|
1002
935
|
constructor() {
|
|
1003
936
|
super(S.REQUIRED_METHODS, S);
|
|
1004
937
|
}
|
|
@@ -1007,52 +940,51 @@ var ut = Q, f = class S extends a {
|
|
|
1007
940
|
}
|
|
1008
941
|
};
|
|
1009
942
|
f.REQUIRED_METHODS = ["registerUiElements"];
|
|
1010
|
-
var
|
|
943
|
+
var ut = f;
|
|
1011
944
|
export {
|
|
1012
|
-
|
|
1013
|
-
|
|
945
|
+
we as Block,
|
|
946
|
+
Pe as BlockAttr,
|
|
1014
947
|
$ as BlockCompositionType,
|
|
1015
948
|
I as BlockSelector,
|
|
1016
949
|
oe as BlockType,
|
|
1017
|
-
we as BlocksPanel,
|
|
1018
950
|
M as BuiltInControl,
|
|
1019
951
|
n as BuiltInControlTypes,
|
|
1020
|
-
|
|
952
|
+
He as ButtonAlignBuiltInControl,
|
|
1021
953
|
Xe as ButtonBackgroundColorBuiltInControl,
|
|
1022
|
-
|
|
1023
|
-
|
|
954
|
+
ke as ButtonBorderBuiltInControl,
|
|
955
|
+
Fe as ButtonBorderRadiusBuiltInControl,
|
|
1024
956
|
Ge as ButtonColorBuiltInControl,
|
|
1025
957
|
K as ButtonControls,
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
958
|
+
Ve as ButtonFitToContainerBuiltInControl,
|
|
959
|
+
pe as ButtonFontFamilyBuiltInControl,
|
|
960
|
+
Qe as ButtonMarginsBuiltInControl,
|
|
961
|
+
fe as ButtonPaddingsBuiltInControl,
|
|
962
|
+
Ye as ButtonTextBuiltInControl,
|
|
963
|
+
$e as ButtonTextSizeBuiltInControl,
|
|
964
|
+
We as ButtonTextStyleAndFontColorBuiltInControl,
|
|
1033
965
|
de as ContainerControls,
|
|
1034
|
-
|
|
966
|
+
ze as Control,
|
|
1035
967
|
De as Extension,
|
|
1036
968
|
Et as ExtensionBuilder,
|
|
1037
|
-
|
|
1038
|
-
|
|
969
|
+
P as GeneralControls,
|
|
970
|
+
lt as IconsRegistry,
|
|
1039
971
|
H as ImageControls,
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
972
|
+
Ze as ImageMarginsBuiltInControl,
|
|
973
|
+
je as ImageSizeBuiltInControl,
|
|
974
|
+
ot as ModificationDescription,
|
|
975
|
+
qe as SettingsPanelRegistry,
|
|
976
|
+
Je as SettingsPanelTab,
|
|
1045
977
|
ue as SettingsTab,
|
|
1046
|
-
|
|
1047
|
-
|
|
978
|
+
et as TextAlignBuiltInControl,
|
|
979
|
+
tt as TextColorBuiltInControl,
|
|
1048
980
|
F as TextControls,
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
981
|
+
rt as TextFontFamilyBuiltInControl,
|
|
982
|
+
nt as TextLineSpacingBuiltInControl,
|
|
983
|
+
at as TextPaddingsBuiltInControl,
|
|
984
|
+
st as TextSizeBuiltInControl,
|
|
985
|
+
it as TextStyleBuiltInControl,
|
|
986
|
+
Ke as UEAttr,
|
|
987
|
+
dt as UIElement,
|
|
988
|
+
ut as UIElementTagRegistry,
|
|
1057
989
|
Ae as UIElementType
|
|
1058
990
|
};
|
|
@@ -129,10 +129,6 @@ export declare const EditorSchema: v.ObjectSchema<{
|
|
|
129
129
|
readonly senderName: "";
|
|
130
130
|
readonly subject: "";
|
|
131
131
|
}>;
|
|
132
|
-
/** Folder name for user-saved modules (used by Stripo plugin panel for path construction) */
|
|
133
|
-
readonly savedModulesFolderName: v.OptionalSchema<v.StringSchema<undefined>, "savedModules">;
|
|
134
|
-
/** Folder name for default/prebuilt modules (used by Stripo plugin panel for path construction) */
|
|
135
|
-
readonly defaultModulesFolderName: v.OptionalSchema<v.StringSchema<undefined>, "defaultModules">;
|
|
136
132
|
}, undefined>;
|
|
137
133
|
/**
|
|
138
134
|
* UI configuration - visual elements and layout
|
|
@@ -445,10 +441,6 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
445
441
|
readonly senderName: "";
|
|
446
442
|
readonly subject: "";
|
|
447
443
|
}>;
|
|
448
|
-
/** Folder name for user-saved modules (used by Stripo plugin panel for path construction) */
|
|
449
|
-
readonly savedModulesFolderName: v.OptionalSchema<v.StringSchema<undefined>, "savedModules">;
|
|
450
|
-
/** Folder name for default/prebuilt modules (used by Stripo plugin panel for path construction) */
|
|
451
|
-
readonly defaultModulesFolderName: v.OptionalSchema<v.StringSchema<undefined>, "defaultModules">;
|
|
452
444
|
}, undefined>, {}>;
|
|
453
445
|
/** UI configuration */
|
|
454
446
|
readonly ui: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -41,8 +41,6 @@ export declare const useConfig: () => {
|
|
|
41
41
|
senderName: string;
|
|
42
42
|
subject: string;
|
|
43
43
|
};
|
|
44
|
-
savedModulesFolderName: string;
|
|
45
|
-
defaultModulesFolderName: string;
|
|
46
44
|
};
|
|
47
45
|
ui: {
|
|
48
46
|
showHeader: boolean;
|
|
@@ -132,8 +130,6 @@ export declare const useConfig: () => {
|
|
|
132
130
|
senderName: string;
|
|
133
131
|
subject: string;
|
|
134
132
|
};
|
|
135
|
-
savedModulesFolderName: string;
|
|
136
|
-
defaultModulesFolderName: string;
|
|
137
133
|
} | null>;
|
|
138
134
|
ui: import("vue").ComputedRef<{
|
|
139
135
|
showHeader: boolean;
|
|
@@ -9,7 +9,3 @@ export declare const TemplateTypes: {
|
|
|
9
9
|
export declare const EditorType: number;
|
|
10
10
|
export declare const MAX_DEFAULT_TEMPLATE_ID = 13;
|
|
11
11
|
export declare const ProductIds: Record<string, number>;
|
|
12
|
-
export declare const ModuleFolderDefaults: {
|
|
13
|
-
readonly SAVED_MODULES: "savedModules";
|
|
14
|
-
readonly DEFAULT_MODULES: "defaultModules";
|
|
15
|
-
};
|