@useinsider/guido 1.0.3-beta.367d151 → 1.0.3-beta.3757462
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/@types/generic.d.ts +0 -14
- package/dist/components/Guido.vue.d.ts +2 -3
- package/dist/components/Guido.vue.js +9 -11
- package/dist/components/Guido.vue2.js +69 -75
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.d.ts +1 -3
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +9 -9
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +17 -30
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +1 -3
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +10 -12
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +18 -19
- package/dist/components/wrappers/WpDrawer.vue.d.ts +4 -6
- package/dist/components/wrappers/WpDrawer.vue.js +4 -6
- package/dist/composables/useStripo.js +18 -26
- package/dist/config/compiler/unsubscribeCompilerRules.js +29 -42
- package/dist/config/migrator/index.d.ts +1 -1
- package/dist/config/migrator/index.js +6 -7
- package/dist/enums/defaults.js +0 -4
- package/dist/enums/unsubscribe.d.ts +0 -23
- package/dist/enums/unsubscribe.js +6 -43
- package/dist/extensions/Blocks/Checkbox/control.js +54 -53
- package/dist/extensions/Blocks/RadioButton/control.js +45 -44
- package/dist/extensions/Blocks/RadioButton/template.js +6 -6
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +71 -83
- package/dist/stores/editor.d.ts +0 -21
- package/dist/stores/editor.js +1 -2
- package/dist/stores/unsubscribe.d.ts +5 -253
- package/dist/stores/unsubscribe.js +6 -126
- package/dist/utils/dateUtil.d.ts +0 -4
- package/dist/utils/dateUtil.js +12 -8
- package/dist/utils/genericUtil.d.ts +0 -1
- package/dist/utils/genericUtil.js +7 -8
- package/dist/utils/templatePreparation.js +16 -17
- package/package.json +2 -2
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +0 -19
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue.js +0 -28
- package/dist/components/organisms/extensions/recommendation/FilterItem.vue2.js +0 -38
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +0 -2
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.js +0 -17
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +0 -37
- package/dist/components/organisms/extensions/recommendation/Filters.vue.d.ts +0 -2
- package/dist/components/organisms/extensions/recommendation/Filters.vue.js +0 -20
- package/dist/components/organisms/extensions/recommendation/Filters.vue2.js +0 -44
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +0 -16
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue.js +0 -17
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +0 -27
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -2
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +0 -16
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -2
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +0 -24
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +0 -64
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -2
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +0 -107
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -2
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +0 -12
- package/dist/config/migrator/unsubscribeMigrator.d.ts +0 -1
- package/dist/config/migrator/unsubscribeMigrator.js +0 -124
- package/dist/enums/date.d.ts +0 -13
- package/dist/enums/date.js +0 -16
- package/dist/enums/extensions/recommendationBlock.d.ts +0 -16
- package/dist/enums/extensions/recommendationBlock.js +0 -80
- package/dist/extensions/Blocks/Recommendation/block.d.ts +0 -10
- package/dist/extensions/Blocks/Recommendation/block.js +0 -27
- package/dist/extensions/Blocks/Recommendation/control.d.ts +0 -29
- package/dist/extensions/Blocks/Recommendation/control.js +0 -277
- package/dist/extensions/Blocks/Recommendation/extension.d.ts +0 -2
- package/dist/extensions/Blocks/Recommendation/extension.js +0 -10
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.d.ts +0 -4
- package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +0 -51
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +0 -19
- package/dist/extensions/Blocks/Recommendation/settingsPanel.d.ts +0 -4
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +0 -32
- package/dist/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -555
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +0 -266
- package/dist/extensions/Blocks/Recommendation/template.d.ts +0 -6
- package/dist/extensions/Blocks/Recommendation/template.js +0 -200
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +0 -7
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +0 -28
- package/dist/extensions/Blocks/Unsubscribe/block.d.ts +0 -32
- package/dist/extensions/Blocks/Unsubscribe/block.js +0 -131
- package/dist/extensions/Blocks/Unsubscribe/control.d.ts +0 -29
- package/dist/extensions/Blocks/Unsubscribe/control.js +0 -167
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.d.ts +0 -11
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +0 -42
- package/dist/extensions/Blocks/Unsubscribe/extension.d.ts +0 -2
- package/dist/extensions/Blocks/Unsubscribe/extension.js +0 -21
- package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.d.ts +0 -4
- package/dist/extensions/Blocks/Unsubscribe/iconsRegistry.js +0 -21
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +0 -4
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +0 -35
- package/dist/extensions/Blocks/Unsubscribe/styles.css.js +0 -42
- package/dist/extensions/Blocks/Unsubscribe/tagRegistry.d.ts +0 -4
- package/dist/extensions/Blocks/Unsubscribe/tagRegistry.js +0 -10
- package/dist/extensions/Blocks/Unsubscribe/template.d.ts +0 -12
- package/dist/extensions/Blocks/Unsubscribe/template.js +0 -22
- package/dist/extensions/Blocks/Unsubscribe/utils/constants.d.ts +0 -9
- package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +0 -11
- package/dist/extensions/Blocks/Unsubscribe/utils/utils.d.ts +0 -7
- package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +0 -6
- package/dist/extensions/Blocks/common-control.d.ts +0 -66
- package/dist/extensions/Blocks/common-control.js +0 -102
- package/dist/mock/api/recommendation.d.ts +0 -2
- package/dist/services/recommendationApi.d.ts +0 -6
- package/dist/services/recommendationApi.js +0 -43
- package/dist/services/unsubscribeApi.d.ts +0 -4
- package/dist/services/unsubscribeApi.js +0 -16
- package/dist/stores/config.d.ts +0 -97
- package/dist/stores/config.js +0 -17
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var F = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(F || {}),
|
|
1
|
+
var F = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(F || {}), A = class o {
|
|
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
|
|
@@ -21,22 +21,22 @@ ${s.map((i) => ` - ${i}`).join(`
|
|
|
21
21
|
* This validation runs only once per class type and results are cached.
|
|
22
22
|
*/
|
|
23
23
|
validateImplementation(e, r) {
|
|
24
|
-
var
|
|
25
|
-
const s = [], i = r.name,
|
|
24
|
+
var E;
|
|
25
|
+
const s = [], i = r.name, l = Object.getPrototypeOf(this);
|
|
26
26
|
e.forEach((a) => {
|
|
27
27
|
if (typeof this[a] != "function") {
|
|
28
28
|
s.push(`Method ${a}() is not defined`);
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
}), o.validatedClasses.add(r), s.length > 0 ? (o.validationErrors.set(r, s), console.error(`[${i} Validation] ${i} validation failed:`, s)) : typeof process < "u" && ((
|
|
31
|
+
l[a] === r.prototype[a] && s.push(`Method ${a}() must be implemented (currently using base class error-throwing implementation)`);
|
|
32
|
+
}), o.validatedClasses.add(r), s.length > 0 ? (o.validationErrors.set(r, s), console.error(`[${i} Validation] ${i} validation failed:`, s)) : typeof process < "u" && ((E = process.env) == null ? void 0 : E.NODE_ENV) === "development" && console.log(`[${i} Validation] ✅ ${i} validated successfully`);
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var n =
|
|
35
|
+
A.validatedClasses = /* @__PURE__ */ new Set();
|
|
36
|
+
A.validationErrors = /* @__PURE__ */ new Map();
|
|
37
|
+
var n = A, M = class d extends n {
|
|
38
38
|
constructor() {
|
|
39
|
-
super(
|
|
39
|
+
super(d.REQUIRED_METHODS, d);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Determines if the block should be available for use in the editor.
|
|
@@ -186,9 +186,9 @@ var n = D, M = class h extends n {
|
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
M.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
189
|
-
var
|
|
189
|
+
var Ct = M, k = class h extends n {
|
|
190
190
|
constructor() {
|
|
191
|
-
super(
|
|
191
|
+
super(h.REQUIRED_METHODS, h);
|
|
192
192
|
}
|
|
193
193
|
/**
|
|
194
194
|
* @deprecated - use {@link getPreviewInnerHtml} instead
|
|
@@ -204,9 +204,9 @@ var It = M, k = class u extends n {
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
k.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
207
|
-
var
|
|
207
|
+
var Q = class u extends n {
|
|
208
208
|
constructor() {
|
|
209
|
-
super(
|
|
209
|
+
super(u.REQUIRED_METHODS, u);
|
|
210
210
|
}
|
|
211
211
|
getId() {
|
|
212
212
|
throw new Error("Method getId() must be implemented by the subclass");
|
|
@@ -221,42 +221,30 @@ var V = class c extends n {
|
|
|
221
221
|
throw new Error("Method onClick() must be implemented by the subclass");
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
|
-
|
|
225
|
-
var
|
|
224
|
+
Q.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
|
|
225
|
+
var V = "esd-block-button", $ = "esd-block-text", X = "esd-block-image", G = "esd-structure", f = "esd-block-video", Y = "esd-block-social", W = "esd-block-banner", j = "esd-block-timer", z = "esd-block-menu", q = "esd-block-html", Z = "esd-block-spacer", J = "esd-container-frame", tt = "esd-stripe", et = "esd-amp-form", rt = ((t) => (t.BUTTON = `.${V}`, t.TEXT = `.${$}`, t.IMAGE = `.${X}`, t.STRUCTURE = `.${G}`, t.VIDEO = `.${f}`, t.SOCIAL = `.${Y}`, t.BANNER = `.${W}`, t.TIMER = `.${j}`, t.MENU = `.${z}`, t.HTML = `.${q}`, t.SPACER = `.${Z}`, t.CONTAINER = `.${J}`, t.STRIPE = `.${tt}`, t.FORM = `.${et}`, t))(rt || {}), st = /* @__PURE__ */ ((t) => (t.BLOCK_IMAGE = "BLOCK_IMAGE", t.BLOCK_TEXT = "BLOCK_TEXT", t.BLOCK_BUTTON = "BLOCK_BUTTON", t.BLOCK_SPACER = "BLOCK_SPACER", t.BLOCK_VIDEO = "BLOCK_VIDEO", t.BLOCK_SOCIAL = "BLOCK_SOCIAL", t.BLOCK_BANNER = "BLOCK_BANNER", t.BLOCK_TIMER = "BLOCK_TIMER", t.BLOCK_MENU = "BLOCK_MENU", t.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", t.BLOCK_HTML = "BLOCK_HTML", t.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", t.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", t.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", t.CONTAINER = "CONTAINER", t.FORM_CONTAINER = "FORM_CONTAINER", t.STRUCTURE = "STRUCTURE", t.STRIPE = "STRIPE", t.EMPTY_CONTAINER = "EMPTY_CONTAINER", t.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", t.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", t.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", t))(st || {}), nt = /* @__PURE__ */ ((t) => (t.HIDDEN_NODE = "hiddenNodeText", t.PARAGRAPH_STYLE = "paragraphStyleForm", t.ALIGN = "textAlignmentForm", t.ANCHOR_CONTAINER = "textAnchorForm", t.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", t.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", t.FONT_COLOR = "textBlockFontColor", t.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", t.FONT_FAMILY = "textFontFamily", t.FONT_SIZE = "textBlockFontSize", t.DIRECTION = "textBlockDirectionForm", t.INSERT_FORM = "textBlockInsertForm", t.LINK_DATA = "textBlockLinkDataForm", t.FORMAT = "textBlockTextFormatForm", t.FIXED_HEIGHT_CONTAINER = "textFixedHeightContainerForm", t.INTERNAL_INDENTS = "textInternalIndents", t.LINE_HEIGHT = "textLineHeightForm", t.LINKS_COLOR = "textLinksFontColorForm", t.MIME_TYPE = "textMimeTypeForm", t.NO_LINE_WRAPS = "textNoLineWrapsForm", t))(nt || {}), it = /* @__PURE__ */ ((t) => (t.BACKGROUND_COLOR = "containerBackgroundColorForm", t.BORDER_FORM = "containerBorderForm", t.BORDER_RADIUS = "containerBorderRadiusForm", t.EXTERNAL_INDENTS = "containerExternalIndentsForm", t.IMAGE_CONTAINER = "containerImageContainerForm", t.MIME_TYPE = "containerMimeTypeForm", t.DISPLAY_CONDITIONS = "displayConditions", t.HIDDEN_NODE = "containerHiddenNodeForm", t))(it || {}), at = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(at || {}), D = {
|
|
226
226
|
name: "name",
|
|
227
227
|
disabled: "disabled"
|
|
228
228
|
}, ot = {
|
|
229
|
-
...
|
|
230
|
-
caption: "caption",
|
|
231
|
-
icon: "icon"
|
|
229
|
+
...D
|
|
232
230
|
}, Et = {
|
|
233
|
-
...
|
|
234
|
-
minValue: "min-value",
|
|
235
|
-
maxValue: "max-value",
|
|
236
|
-
step: "step"
|
|
237
|
-
}, lt = {
|
|
238
|
-
...E,
|
|
231
|
+
...D,
|
|
239
232
|
text: "text"
|
|
240
|
-
},
|
|
241
|
-
...
|
|
233
|
+
}, lt = {
|
|
234
|
+
...D,
|
|
242
235
|
placeholder: "placeholder",
|
|
243
236
|
items: "items"
|
|
244
|
-
},
|
|
237
|
+
}, dt = {
|
|
245
238
|
text: "text",
|
|
246
239
|
value: "value"
|
|
247
|
-
},
|
|
248
|
-
...E
|
|
249
|
-
}, _t = {
|
|
240
|
+
}, gt = {
|
|
250
241
|
BUTTON: ot,
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
TEXT: ut,
|
|
256
|
-
SELECT_ITEM: ht
|
|
257
|
-
}, ct = /* @__PURE__ */ ((t) => (t.BUTTON = "UE-BUTTON", t.CHECKBOX = "UE-CHECKBOX", t.CHECK_BUTTONS = "UE-CHECK-BUTTONS", t.COLOR = "UE-COLOR", t.COUNTER = "UE-COUNTER", t.DATEPICKER = "UE-DATEPICKER", t.LABEL = "UE-LABEL", t.MESSAGE = "UE-MESSAGE", t.RADIO_BUTTONS = "UE-RADIO-BUTTONS", t.SELECTPICKER = "UE-SELECT", t.SWITCHER = "UE-SWITCHER", t.TEXT = "UE-TEXT", t.TEXTAREA = "UE-TEXTAREA", t.CHECK_ITEM = "UE-CHECK-ITEM", t.RADIO_ITEM = "UE-RADIO-ITEM", t.SELECT_ITEM = "UE-SELECT-ITEM", t.ICON = "UE-ICON", t.MERGETAGS = "UE-MERGETAGS", t.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", t.NESTED_CONTROL = "UE-NESTED-CONTROL", t.EXPANDABLE = "UE-EXPANDABLE", t.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", t.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", t))(ct || {}), S = class m extends n {
|
|
242
|
+
LABEL: Et,
|
|
243
|
+
SELECTPICKER: lt,
|
|
244
|
+
SELECT_ITEM: dt
|
|
245
|
+
}, ht = /* @__PURE__ */ ((t) => (t.BUTTON = "UE-BUTTON", t.CHECKBOX = "UE-CHECKBOX", t.CHECK_BUTTONS = "UE-CHECK-BUTTONS", t.COLOR = "UE-COLOR", t.COUNTER = "UE-COUNTER", t.DATEPICKER = "UE-DATEPICKER", t.LABEL = "UE-LABEL", t.MESSAGE = "UE-MESSAGE", t.RADIO_BUTTONS = "UE-RADIO-BUTTONS", t.SELECTPICKER = "UE-SELECT", t.SWITCHER = "UE-SWITCHER", t.TEXT = "UE-TEXT", t.TEXTAREA = "UE-TEXTAREA", t.CHECK_ITEM = "UE-CHECK-ITEM", t.RADIO_ITEM = "UE-RADIO-ITEM", t.SELECT_ITEM = "UE-SELECT-ITEM", t.ICON = "UE-ICON", t.MERGETAGS = "UE-MERGETAGS", t.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", t.NESTED_CONTROL = "UE-NESTED-CONTROL", t.EXPANDABLE = "UE-EXPANDABLE", t.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", t.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", t))(ht || {}), S = class c extends n {
|
|
258
246
|
constructor() {
|
|
259
|
-
super(
|
|
247
|
+
super(c.REQUIRED_METHODS, c);
|
|
260
248
|
}
|
|
261
249
|
/**
|
|
262
250
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
@@ -303,16 +291,16 @@ var Q = "esd-block-button", $ = "esd-block-text", X = "esd-block-image", G = "es
|
|
|
303
291
|
}
|
|
304
292
|
};
|
|
305
293
|
S.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
306
|
-
var
|
|
294
|
+
var It = S, N = class m extends n {
|
|
307
295
|
constructor() {
|
|
308
|
-
super(
|
|
296
|
+
super(m.REQUIRED_METHODS, m);
|
|
309
297
|
}
|
|
310
298
|
registerBlockControls(e) {
|
|
311
299
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
312
300
|
}
|
|
313
301
|
};
|
|
314
302
|
N.REQUIRED_METHODS = ["registerBlockControls"];
|
|
315
|
-
var
|
|
303
|
+
var _t = N, Lt = class {
|
|
316
304
|
constructor(t, e) {
|
|
317
305
|
this.tabId = t, this.controlsIds = e;
|
|
318
306
|
}
|
|
@@ -335,9 +323,9 @@ var At = N, Dt = class {
|
|
|
335
323
|
const e = this.controlsIds.indexOf(t);
|
|
336
324
|
e !== -1 && this.controlsIds.splice(e, 1);
|
|
337
325
|
}
|
|
338
|
-
},
|
|
339
|
-
constructor(t, e, r = [], s, i = [],
|
|
340
|
-
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = p, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = i, this.settingsPanelRegistry =
|
|
326
|
+
}, ut = class {
|
|
327
|
+
constructor(t, e, r = [], s, i = [], l, E = [], a = [], T, v, p, w, B, K, P, H) {
|
|
328
|
+
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = p, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = i, this.settingsPanelRegistry = l, this.contextActions = E, this.blocks = a, this.externalSmartElementsLibrary = T, this.externalImageLibrary = v, this.externalAiAssistant = w, this.externalDisplayConditionsLibrary = B, this.externalVideoLibrary = K, this.blocksPanel = P, this.iconsRegistry = H, this.id = Math.random().toString(36).substring(2);
|
|
341
329
|
}
|
|
342
330
|
getI18n() {
|
|
343
331
|
return this.i18n;
|
|
@@ -390,7 +378,7 @@ var At = N, Dt = class {
|
|
|
390
378
|
getIconsRegistry() {
|
|
391
379
|
return this.iconsRegistry;
|
|
392
380
|
}
|
|
393
|
-
},
|
|
381
|
+
}, At = class {
|
|
394
382
|
constructor() {
|
|
395
383
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
|
|
396
384
|
}
|
|
@@ -452,7 +440,7 @@ var At = N, Dt = class {
|
|
|
452
440
|
return this.iconsRegistry = t, this;
|
|
453
441
|
}
|
|
454
442
|
build() {
|
|
455
|
-
return new
|
|
443
|
+
return new ut(
|
|
456
444
|
this.i18n,
|
|
457
445
|
(this.styles || []).map((t) => t.trim()).join(`
|
|
458
446
|
`),
|
|
@@ -472,18 +460,18 @@ var At = N, Dt = class {
|
|
|
472
460
|
this.iconsRegistry
|
|
473
461
|
);
|
|
474
462
|
}
|
|
475
|
-
},
|
|
463
|
+
}, ct = class O extends n {
|
|
476
464
|
constructor() {
|
|
477
|
-
super(
|
|
465
|
+
super(O.REQUIRED_METHODS, O);
|
|
478
466
|
}
|
|
479
467
|
openAiAssistant({ value: e, onDataSelectCallback: r, onCancelCallback: s, type: i }) {
|
|
480
468
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
481
469
|
}
|
|
482
470
|
};
|
|
483
|
-
|
|
484
|
-
var
|
|
471
|
+
ct.REQUIRED_METHODS = ["openAiAssistant"];
|
|
472
|
+
var mt = class b extends n {
|
|
485
473
|
constructor() {
|
|
486
|
-
super(
|
|
474
|
+
super(b.REQUIRED_METHODS, b);
|
|
487
475
|
}
|
|
488
476
|
/**
|
|
489
477
|
* Retrieves the name of the category.
|
|
@@ -521,44 +509,44 @@ var bt = class R extends n {
|
|
|
521
509
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
522
510
|
}
|
|
523
511
|
};
|
|
524
|
-
|
|
525
|
-
var
|
|
512
|
+
mt.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
513
|
+
var Ot = class R extends n {
|
|
526
514
|
constructor() {
|
|
527
|
-
super(
|
|
515
|
+
super(R.REQUIRED_METHODS, R);
|
|
528
516
|
}
|
|
529
517
|
openImageLibrary(e, r, s) {
|
|
530
518
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
531
519
|
}
|
|
532
520
|
};
|
|
533
|
-
|
|
534
|
-
var
|
|
521
|
+
Ot.REQUIRED_METHODS = ["openImageLibrary"];
|
|
522
|
+
var bt = class C extends n {
|
|
535
523
|
constructor() {
|
|
536
|
-
super(
|
|
524
|
+
super(C.REQUIRED_METHODS, C);
|
|
537
525
|
}
|
|
538
526
|
openSmartElementsLibrary(e, r) {
|
|
539
527
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
540
528
|
}
|
|
541
529
|
};
|
|
542
|
-
|
|
543
|
-
var
|
|
530
|
+
bt.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
531
|
+
var Rt = class g extends n {
|
|
544
532
|
constructor() {
|
|
545
|
-
super(
|
|
533
|
+
super(g.REQUIRED_METHODS, g);
|
|
546
534
|
}
|
|
547
535
|
openExternalVideosLibraryDialog(e, r, s) {
|
|
548
536
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
549
537
|
}
|
|
550
538
|
};
|
|
551
|
-
|
|
552
|
-
var y = class
|
|
539
|
+
Rt.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
540
|
+
var y = class I extends n {
|
|
553
541
|
constructor() {
|
|
554
|
-
super(
|
|
542
|
+
super(I.REQUIRED_METHODS, I);
|
|
555
543
|
}
|
|
556
544
|
registerIconsSvg(e) {
|
|
557
545
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
558
546
|
}
|
|
559
547
|
};
|
|
560
548
|
y.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
561
|
-
var
|
|
549
|
+
var Dt = y, Tt = class {
|
|
562
550
|
constructor(t) {
|
|
563
551
|
this.key = t;
|
|
564
552
|
}
|
|
@@ -571,9 +559,9 @@ var Mt = y, St = class {
|
|
|
571
559
|
params: this.params
|
|
572
560
|
};
|
|
573
561
|
}
|
|
574
|
-
},
|
|
562
|
+
}, x = class _ extends n {
|
|
575
563
|
constructor() {
|
|
576
|
-
super(
|
|
564
|
+
super(_.REQUIRED_METHODS, _);
|
|
577
565
|
}
|
|
578
566
|
/**
|
|
579
567
|
* Called when the UI element should render its content into the provided container.
|
|
@@ -626,34 +614,34 @@ var Mt = y, St = class {
|
|
|
626
614
|
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
627
615
|
}
|
|
628
616
|
};
|
|
629
|
-
|
|
630
|
-
var
|
|
617
|
+
x.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
618
|
+
var Mt = x, U = class L extends n {
|
|
631
619
|
constructor() {
|
|
632
|
-
super(
|
|
620
|
+
super(L.REQUIRED_METHODS, L);
|
|
633
621
|
}
|
|
634
622
|
registerUiElements(e) {
|
|
635
623
|
throw new Error("Method registerUiElements() must be implemented by the subclass");
|
|
636
624
|
}
|
|
637
625
|
};
|
|
638
|
-
|
|
639
|
-
var
|
|
626
|
+
U.REQUIRED_METHODS = ["registerUiElements"];
|
|
627
|
+
var St = U;
|
|
640
628
|
export {
|
|
641
|
-
|
|
629
|
+
Ct as Block,
|
|
642
630
|
F as BlockCompositionType,
|
|
643
631
|
rt as BlockSelector,
|
|
644
632
|
st as BlockType,
|
|
645
633
|
it as ContainerControls,
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
634
|
+
It as Control,
|
|
635
|
+
ut as Extension,
|
|
636
|
+
At as ExtensionBuilder,
|
|
637
|
+
Dt as IconsRegistry,
|
|
638
|
+
Tt as ModificationDescription,
|
|
639
|
+
_t as SettingsPanelRegistry,
|
|
640
|
+
Lt as SettingsPanelTab,
|
|
653
641
|
at as SettingsTab,
|
|
654
642
|
nt as TextControls,
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
643
|
+
gt as UEAttr,
|
|
644
|
+
Mt as UIElement,
|
|
645
|
+
St as UIElementTagRegistry,
|
|
646
|
+
ht as UIElementType
|
|
659
647
|
};
|
package/dist/stores/editor.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
7
7
|
editorVisualMode: string;
|
|
8
8
|
hasChanges: boolean;
|
|
9
9
|
isStripoInitialized: boolean;
|
|
10
|
-
templateId: string;
|
|
11
10
|
}, {
|
|
12
11
|
isUndoButtonDisabled: (state: {
|
|
13
12
|
loadingStatus: boolean;
|
|
@@ -18,7 +17,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
18
17
|
editorVisualMode: string;
|
|
19
18
|
hasChanges: boolean;
|
|
20
19
|
isStripoInitialized: boolean;
|
|
21
|
-
templateId: string;
|
|
22
20
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
23
21
|
loadingStatus: boolean;
|
|
24
22
|
isCodeEditorOpen: boolean;
|
|
@@ -28,7 +26,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
28
26
|
editorVisualMode: string;
|
|
29
27
|
hasChanges: boolean;
|
|
30
28
|
isStripoInitialized: boolean;
|
|
31
|
-
templateId: string;
|
|
32
29
|
}>) => boolean;
|
|
33
30
|
isRedoButtonDisabled: (state: {
|
|
34
31
|
loadingStatus: boolean;
|
|
@@ -39,7 +36,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
39
36
|
editorVisualMode: string;
|
|
40
37
|
hasChanges: boolean;
|
|
41
38
|
isStripoInitialized: boolean;
|
|
42
|
-
templateId: string;
|
|
43
39
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
44
40
|
loadingStatus: boolean;
|
|
45
41
|
isCodeEditorOpen: boolean;
|
|
@@ -49,7 +45,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
49
45
|
editorVisualMode: string;
|
|
50
46
|
hasChanges: boolean;
|
|
51
47
|
isStripoInitialized: boolean;
|
|
52
|
-
templateId: string;
|
|
53
48
|
}>) => boolean;
|
|
54
49
|
isCodeEditorButtonDisabled: (state: {
|
|
55
50
|
loadingStatus: boolean;
|
|
@@ -60,7 +55,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
60
55
|
editorVisualMode: string;
|
|
61
56
|
hasChanges: boolean;
|
|
62
57
|
isStripoInitialized: boolean;
|
|
63
|
-
templateId: string;
|
|
64
58
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
65
59
|
loadingStatus: boolean;
|
|
66
60
|
isCodeEditorOpen: boolean;
|
|
@@ -70,7 +64,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
70
64
|
editorVisualMode: string;
|
|
71
65
|
hasChanges: boolean;
|
|
72
66
|
isStripoInitialized: boolean;
|
|
73
|
-
templateId: string;
|
|
74
67
|
}>) => boolean;
|
|
75
68
|
isPreviewButtonDisabled: (state: {
|
|
76
69
|
loadingStatus: boolean;
|
|
@@ -81,7 +74,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
81
74
|
editorVisualMode: string;
|
|
82
75
|
hasChanges: boolean;
|
|
83
76
|
isStripoInitialized: boolean;
|
|
84
|
-
templateId: string;
|
|
85
77
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
86
78
|
loadingStatus: boolean;
|
|
87
79
|
isCodeEditorOpen: boolean;
|
|
@@ -91,7 +83,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
91
83
|
editorVisualMode: string;
|
|
92
84
|
hasChanges: boolean;
|
|
93
85
|
isStripoInitialized: boolean;
|
|
94
|
-
templateId: string;
|
|
95
86
|
}>) => boolean;
|
|
96
87
|
isViewOptionsDisabled: (state: {
|
|
97
88
|
loadingStatus: boolean;
|
|
@@ -102,7 +93,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
102
93
|
editorVisualMode: string;
|
|
103
94
|
hasChanges: boolean;
|
|
104
95
|
isStripoInitialized: boolean;
|
|
105
|
-
templateId: string;
|
|
106
96
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
107
97
|
loadingStatus: boolean;
|
|
108
98
|
isCodeEditorOpen: boolean;
|
|
@@ -112,7 +102,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
112
102
|
editorVisualMode: string;
|
|
113
103
|
hasChanges: boolean;
|
|
114
104
|
isStripoInitialized: boolean;
|
|
115
|
-
templateId: string;
|
|
116
105
|
}>) => boolean;
|
|
117
106
|
isVersionHistoryButtonDisabled: (state: {
|
|
118
107
|
loadingStatus: boolean;
|
|
@@ -123,7 +112,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
123
112
|
editorVisualMode: string;
|
|
124
113
|
hasChanges: boolean;
|
|
125
114
|
isStripoInitialized: boolean;
|
|
126
|
-
templateId: string;
|
|
127
115
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
128
116
|
loadingStatus: boolean;
|
|
129
117
|
isCodeEditorOpen: boolean;
|
|
@@ -133,7 +121,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
133
121
|
editorVisualMode: string;
|
|
134
122
|
hasChanges: boolean;
|
|
135
123
|
isStripoInitialized: boolean;
|
|
136
|
-
templateId: string;
|
|
137
124
|
}>) => boolean;
|
|
138
125
|
isExportButtonDisabled: (state: {
|
|
139
126
|
loadingStatus: boolean;
|
|
@@ -144,7 +131,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
144
131
|
editorVisualMode: string;
|
|
145
132
|
hasChanges: boolean;
|
|
146
133
|
isStripoInitialized: boolean;
|
|
147
|
-
templateId: string;
|
|
148
134
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
149
135
|
loadingStatus: boolean;
|
|
150
136
|
isCodeEditorOpen: boolean;
|
|
@@ -154,7 +140,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
154
140
|
editorVisualMode: string;
|
|
155
141
|
hasChanges: boolean;
|
|
156
142
|
isStripoInitialized: boolean;
|
|
157
|
-
templateId: string;
|
|
158
143
|
}>) => boolean;
|
|
159
144
|
isSaveAsButtonDisabled: (state: {
|
|
160
145
|
loadingStatus: boolean;
|
|
@@ -165,7 +150,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
165
150
|
editorVisualMode: string;
|
|
166
151
|
hasChanges: boolean;
|
|
167
152
|
isStripoInitialized: boolean;
|
|
168
|
-
templateId: string;
|
|
169
153
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
170
154
|
loadingStatus: boolean;
|
|
171
155
|
isCodeEditorOpen: boolean;
|
|
@@ -175,7 +159,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
175
159
|
editorVisualMode: string;
|
|
176
160
|
hasChanges: boolean;
|
|
177
161
|
isStripoInitialized: boolean;
|
|
178
|
-
templateId: string;
|
|
179
162
|
}>) => boolean;
|
|
180
163
|
isTestButtonDisabled: (state: {
|
|
181
164
|
loadingStatus: boolean;
|
|
@@ -186,7 +169,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
186
169
|
editorVisualMode: string;
|
|
187
170
|
hasChanges: boolean;
|
|
188
171
|
isStripoInitialized: boolean;
|
|
189
|
-
templateId: string;
|
|
190
172
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
191
173
|
loadingStatus: boolean;
|
|
192
174
|
isCodeEditorOpen: boolean;
|
|
@@ -196,7 +178,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
196
178
|
editorVisualMode: string;
|
|
197
179
|
hasChanges: boolean;
|
|
198
180
|
isStripoInitialized: boolean;
|
|
199
|
-
templateId: string;
|
|
200
181
|
}>) => boolean;
|
|
201
182
|
isSaveButtonDisabled: (state: {
|
|
202
183
|
loadingStatus: boolean;
|
|
@@ -207,7 +188,6 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
207
188
|
editorVisualMode: string;
|
|
208
189
|
hasChanges: boolean;
|
|
209
190
|
isStripoInitialized: boolean;
|
|
210
|
-
templateId: string;
|
|
211
191
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
212
192
|
loadingStatus: boolean;
|
|
213
193
|
isCodeEditorOpen: boolean;
|
|
@@ -217,6 +197,5 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
|
217
197
|
editorVisualMode: string;
|
|
218
198
|
hasChanges: boolean;
|
|
219
199
|
isStripoInitialized: boolean;
|
|
220
|
-
templateId: string;
|
|
221
200
|
}>) => boolean;
|
|
222
201
|
}, {}>;
|