@useinsider/guido 1.0.3-beta.63633cd → 1.0.3-beta.637a0f4
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/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +35 -36
- package/dist/composables/useStripo.js +16 -18
- 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 +72 -83
- package/dist/package.json.js +1 -1
- package/dist/src/@types/generic.d.ts +0 -4
- package/dist/src/stores/editor.d.ts +0 -21
- package/dist/src/utils/genericUtil.d.ts +0 -1
- package/dist/stores/editor.js +1 -2
- package/dist/utils/genericUtil.js +7 -8
- package/package.json +3 -3
- 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.js +0 -17
- package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +0 -37
- 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.js +0 -17
- package/dist/components/organisms/extensions/recommendation/LogicAdapter.vue2.js +0 -27
- package/dist/enums/extensions/recommendationBlock.js +0 -80
- package/dist/extensions/Blocks/Recommendation/block.js +0 -27
- package/dist/extensions/Blocks/Recommendation/control.js +0 -277
- package/dist/extensions/Blocks/Recommendation/extension.js +0 -10
- 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.js +0 -32
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +0 -266
- package/dist/extensions/Blocks/Recommendation/template.js +0 -200
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +0 -28
- package/dist/extensions/Blocks/common-control.js +0 -102
- package/dist/services/recommendationApi.js +0 -43
- package/dist/src/components/organisms/extensions/recommendation/FilterItem.vue.d.ts +0 -19
- package/dist/src/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue.d.ts +0 -2
- package/dist/src/components/organisms/extensions/recommendation/Filters.vue.d.ts +0 -2
- package/dist/src/components/organisms/extensions/recommendation/LogicAdapter.vue.d.ts +0 -16
- package/dist/src/enums/extensions/recommendationBlock.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/block.d.ts +0 -10
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -29
- package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +0 -2
- package/dist/src/extensions/Blocks/Recommendation/iconsRegistry.d.ts +0 -4
- package/dist/src/extensions/Blocks/Recommendation/settingsPanel.d.ts +0 -4
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +0 -555
- package/dist/src/extensions/Blocks/Recommendation/template.d.ts +0 -6
- package/dist/src/extensions/Blocks/Recommendation/utils/filterUtil.d.ts +0 -7
- package/dist/src/extensions/Blocks/common-control.d.ts +0 -66
- package/dist/src/mock/api/recommendation.d.ts +0 -2
- package/dist/src/services/recommendationApi.d.ts +0 -6
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import a from "./Guido.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import i from "../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
-
var
|
|
4
|
+
var s = function() {
|
|
5
5
|
var o = this, r = o._self._c, e = o._self._setupProxy;
|
|
6
|
-
return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.
|
|
7
|
-
},
|
|
6
|
+
return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer), e.isTestPartner() ? o._e() : r(e.OnboardingWrapper), r(e.UnsubscribeWrapper), r(e.LoadingWrapper)], 1);
|
|
7
|
+
}, t = [], d = /* @__PURE__ */ i(
|
|
8
8
|
a,
|
|
9
|
-
t,
|
|
10
9
|
s,
|
|
10
|
+
t,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"96687c1d"
|
|
14
14
|
);
|
|
15
|
-
const
|
|
15
|
+
const v = d.exports;
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
v as default
|
|
18
18
|
};
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, defineAsyncComponent as U, ref as F, computed as I, watch as M, onMounted as z, onUnmounted as B } from "vue";
|
|
2
2
|
import { provideGuidoActions as K } from "../composables/useGuidoActions.js";
|
|
3
3
|
import { usePartner as O } from "../composables/usePartner.js";
|
|
4
4
|
import { useStripo as j } from "../composables/useStripo.js";
|
|
5
5
|
import { migrate as W } from "../config/migrator/index.js";
|
|
6
6
|
import { DefaultUsername as q, DefaultMessageType as J, DefaultGuidoConfig as Q } from "../enums/defaults.js";
|
|
7
7
|
import V from "./organisms/base/Toaster.vue.js";
|
|
8
|
-
import X from "./organisms/
|
|
9
|
-
import Y from "./organisms/
|
|
10
|
-
import Z from "./organisms/
|
|
11
|
-
import $ from "./organisms/
|
|
12
|
-
import ee from "
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { usePreviewStore as ae } from "../stores/preview.js";
|
|
8
|
+
import X from "./organisms/header/HeaderWrapper.vue.js";
|
|
9
|
+
import Y from "./organisms/LoadingWrapper.vue.js";
|
|
10
|
+
import Z from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
|
|
11
|
+
import $ from "./organisms/unsubscribe/UnsubscribeWrapper.vue.js";
|
|
12
|
+
import { useStripoApi as ee } from "../services/stripoApi.js";
|
|
13
|
+
import { useConfigStore as oe } from "../stores/config.js";
|
|
14
|
+
import { useDynamicContentStore as te } from "../stores/dynamic-content.js";
|
|
15
|
+
import { useEditorStore as ne } from "../stores/editor.js";
|
|
16
|
+
import { usePreviewStore as re } from "../stores/preview.js";
|
|
18
17
|
import { useUnsubscribeStore as se } from "../stores/unsubscribe.js";
|
|
19
|
-
import
|
|
20
|
-
const
|
|
18
|
+
import ae from "../node_modules/lodash-es/merge.js";
|
|
19
|
+
const Ee = /* @__PURE__ */ x({
|
|
21
20
|
__name: "Guido",
|
|
22
21
|
props: {
|
|
23
22
|
templateId: null,
|
|
@@ -33,41 +32,41 @@ const Ge = /* @__PURE__ */ R({
|
|
|
33
32
|
},
|
|
34
33
|
emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready"],
|
|
35
34
|
setup(_, { expose: L, emit: t }) {
|
|
36
|
-
const
|
|
35
|
+
const d = _, k = U(
|
|
37
36
|
() => import("./organisms/email-preview/PreviewContainer.vue.js")
|
|
38
|
-
), A =
|
|
37
|
+
), A = U(
|
|
39
38
|
() => import("./organisms/onboarding/OnboardingWrapper.vue.js")
|
|
40
|
-
),
|
|
39
|
+
), m = F(), s = te(), u = se(), l = oe(), p = ne(), N = re(), n = I(() => p.hasChanges), { getPartnerName: g, getProductType: f, isTestPartner: H } = O(), y = () => {
|
|
41
40
|
var e;
|
|
42
|
-
return (e =
|
|
41
|
+
return (e = m.value) == null ? void 0 : e.handleSave(!0);
|
|
43
42
|
}, {
|
|
44
|
-
templateId:
|
|
43
|
+
templateId: v,
|
|
45
44
|
userId: b,
|
|
46
45
|
guidoConfig: C,
|
|
47
46
|
templateConfig: o,
|
|
48
47
|
html: r = "",
|
|
49
48
|
css: h = "",
|
|
50
|
-
partnerName:
|
|
51
|
-
productType:
|
|
49
|
+
partnerName: a = g(),
|
|
50
|
+
productType: i = f(),
|
|
52
51
|
messageType: S = J,
|
|
53
52
|
username: w = q
|
|
54
|
-
} =
|
|
55
|
-
|
|
56
|
-
partnerName:
|
|
57
|
-
productType:
|
|
53
|
+
} = d, c = (o == null ? void 0 : o.preselectedDynamicContentList) || [];
|
|
54
|
+
window.GuidoConfig = ae(Q, C), window.GuidoConfig.partner = {
|
|
55
|
+
partnerName: a,
|
|
56
|
+
productType: i,
|
|
58
57
|
messageType: S
|
|
59
|
-
},
|
|
58
|
+
}, l.templateConfig = o;
|
|
60
59
|
const { initPlugin: D } = j({
|
|
61
|
-
emailId:
|
|
60
|
+
emailId: v,
|
|
62
61
|
userId: b,
|
|
63
62
|
username: w,
|
|
64
|
-
partnerName:
|
|
65
|
-
productType:
|
|
66
|
-
preselectedDynamicContentList:
|
|
63
|
+
partnerName: a,
|
|
64
|
+
productType: i,
|
|
65
|
+
preselectedDynamicContentList: c,
|
|
67
66
|
onReady: () => {
|
|
68
67
|
console.debug("guido:ready"), t("ready");
|
|
69
68
|
}
|
|
70
|
-
}), { getDefaultTemplate: T } =
|
|
69
|
+
}), { getDefaultTemplate: T } = ee(), R = I(() => {
|
|
71
70
|
var e;
|
|
72
71
|
return !((e = window.GuidoConfig) != null && e.useHeader);
|
|
73
72
|
});
|
|
@@ -83,7 +82,7 @@ const Ge = /* @__PURE__ */ R({
|
|
|
83
82
|
}
|
|
84
83
|
});
|
|
85
84
|
const E = (e) => {
|
|
86
|
-
console.debug("dynamic-content:close", e),
|
|
85
|
+
console.debug("dynamic-content:close", e), s.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
|
|
87
86
|
}, P = () => {
|
|
88
87
|
console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
|
|
89
88
|
};
|
|
@@ -92,14 +91,14 @@ const Ge = /* @__PURE__ */ R({
|
|
|
92
91
|
}), z(async () => {
|
|
93
92
|
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow");
|
|
94
93
|
try {
|
|
95
|
-
|
|
94
|
+
u.selectedUnsubscribePages = (o == null ? void 0 : o.selectedUnsubscribePages) || [];
|
|
96
95
|
let e = {
|
|
97
96
|
html: r && await W(r),
|
|
98
97
|
css: h,
|
|
99
98
|
forceRecreate: !0
|
|
100
99
|
// TODO: It should be false for old templates. We will communicate with Stripo
|
|
101
100
|
};
|
|
102
|
-
e.html || (e = await T(), e.html = await W(e.html)), await D(e),
|
|
101
|
+
e.html || (e = await T(), e.html = await W(e.html)), await D(e), s.selectedDynamicContentList = c;
|
|
103
102
|
} catch (e) {
|
|
104
103
|
console.error("Failed to initialize Stripo editor:", e);
|
|
105
104
|
}
|
|
@@ -119,10 +118,10 @@ const Ge = /* @__PURE__ */ R({
|
|
|
119
118
|
close: P
|
|
120
119
|
},
|
|
121
120
|
hasChanges: n,
|
|
122
|
-
saveSilent:
|
|
123
|
-
}), { __sfc: !0, PreviewContainer: k, OnboardingWrapper: A, headerWrapperRef:
|
|
121
|
+
saveSilent: y
|
|
122
|
+
}), { __sfc: !0, PreviewContainer: k, OnboardingWrapper: A, headerWrapperRef: m, dynamicContentStore: s, unsubscribeStore: u, props: d, configStore: l, editorStore: p, previewStore: N, hasChanges: n, getPartnerName: g, getProductType: f, isTestPartner: H, saveSilent: y, templateId: v, userId: b, guidoConfig: C, templateConfig: o, html: r, css: h, partnerName: a, productType: i, messageType: S, username: w, preselectedDynamicContentList: c, emit: t, initPlugin: D, getDefaultTemplate: T, noHeader: R, insertDynamicContent: E, closeDynamicContent: P, Toaster: V, HeaderWrapper: X, LoadingWrapper: Y, SaveAsTemplateDrawer: Z, UnsubscribeWrapper: $ };
|
|
124
123
|
}
|
|
125
124
|
});
|
|
126
125
|
export {
|
|
127
|
-
|
|
126
|
+
Ee as default
|
|
128
127
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import { useActionsApi as f } from "./useActionsApi.js";
|
|
2
|
-
import { useCustomInterfaceAppearance as
|
|
3
|
-
import { useStripoEventHandler as
|
|
2
|
+
import { useCustomInterfaceAppearance as S } from "./useCustomInterfaceAppearance.js";
|
|
3
|
+
import { useStripoEventHandler as E } from "./useStripoEventHandler.js";
|
|
4
4
|
import { useToaster as C } from "./useToaster.js";
|
|
5
5
|
import { displayConditions as y } from "../enums/displayConditions.js";
|
|
6
6
|
import h from "../extensions/Blocks/Checkbox/extension.js";
|
|
7
7
|
import w from "../extensions/Blocks/CouponBlock/extension.js";
|
|
8
8
|
import b from "../extensions/Blocks/RadioButton/extension.js";
|
|
9
|
-
import V from "../extensions/Blocks/
|
|
10
|
-
import _ from "../extensions/
|
|
11
|
-
import k from "../
|
|
12
|
-
import
|
|
13
|
-
import x from "../static/styles/customEditorStyle.css.js";
|
|
9
|
+
import V from "../extensions/Blocks/Unsubscribe/extension.js";
|
|
10
|
+
import _ from "../extensions/DynamicContent/extension.js";
|
|
11
|
+
import { useStripoApi as k } from "../services/stripoApi.js";
|
|
12
|
+
import B from "../static/styles/customEditorStyle.css.js";
|
|
14
13
|
import { useEditorStore as F } from "../stores/editor.js";
|
|
15
|
-
import { dynamicContentToMergeTags as
|
|
16
|
-
import
|
|
17
|
-
const
|
|
18
|
-
const { handleError: d } = C(), { getToken: u, getCustomFonts: m } =
|
|
14
|
+
import { dynamicContentToMergeTags as x } from "../utils/genericUtil.js";
|
|
15
|
+
import A from "../package.json.js";
|
|
16
|
+
const N = (a) => {
|
|
17
|
+
const { handleError: d } = C(), { getToken: u, getCustomFonts: m } = k(), { handleEvent: p } = E(), l = (r, i = []) => {
|
|
19
18
|
const t = F(), { html: n, css: c, forceRecreate: s } = r;
|
|
20
19
|
window.UIEditor.initEditor(
|
|
21
20
|
document.querySelector("#guido-editor"),
|
|
@@ -33,7 +32,7 @@ const G = (a) => {
|
|
|
33
32
|
customAppearanceMergetags: !0,
|
|
34
33
|
customAppearanceMergetagsBorderColor: "#f1f3fe",
|
|
35
34
|
customAppearanceMergetagsBackgroundColor: "#f1f3fe",
|
|
36
|
-
customViewStyles:
|
|
35
|
+
customViewStyles: B,
|
|
37
36
|
conditionsEnabled: !0,
|
|
38
37
|
customConditionsEnabled: !0,
|
|
39
38
|
conditionCategories: y,
|
|
@@ -47,7 +46,7 @@ const G = (a) => {
|
|
|
47
46
|
},
|
|
48
47
|
mergeTags: [
|
|
49
48
|
{
|
|
50
|
-
entries:
|
|
49
|
+
entries: x(a.preselectedDynamicContentList)
|
|
51
50
|
}
|
|
52
51
|
],
|
|
53
52
|
async onTokenRefreshRequest(o) {
|
|
@@ -60,7 +59,7 @@ const G = (a) => {
|
|
|
60
59
|
},
|
|
61
60
|
onTemplateLoaded() {
|
|
62
61
|
try {
|
|
63
|
-
const { importCss: o } =
|
|
62
|
+
const { importCss: o } = S(), { activateCustomViewStyles: e } = f();
|
|
64
63
|
o(), e(), a.onReady(), t.isStripoInitialized = !0, t.loadingStatus = !1, setTimeout(() => {
|
|
65
64
|
t.hasChanges = !1;
|
|
66
65
|
}, 1e3);
|
|
@@ -87,11 +86,10 @@ const G = (a) => {
|
|
|
87
86
|
".in-drawer__container"
|
|
88
87
|
],
|
|
89
88
|
extensions: [
|
|
90
|
-
|
|
89
|
+
_,
|
|
91
90
|
h,
|
|
92
91
|
b,
|
|
93
92
|
V,
|
|
94
|
-
_,
|
|
95
93
|
w
|
|
96
94
|
]
|
|
97
95
|
}
|
|
@@ -102,7 +100,7 @@ const G = (a) => {
|
|
|
102
100
|
r(), i();
|
|
103
101
|
return;
|
|
104
102
|
}
|
|
105
|
-
const n =
|
|
103
|
+
const n = A.guido, s = `https://email-static.useinsider.com/guido/${(e = n == null ? void 0 : n.stripo) == null ? void 0 : e.version}/UIEditor.js`, o = document.createElement("script");
|
|
106
104
|
o.id = "UiEditorScript", o.type = "module", o.src = s, o.onload = () => {
|
|
107
105
|
r(), i();
|
|
108
106
|
}, o.onerror = () => {
|
|
@@ -117,5 +115,5 @@ const G = (a) => {
|
|
|
117
115
|
} };
|
|
118
116
|
};
|
|
119
117
|
export {
|
|
120
|
-
|
|
118
|
+
N as useStripo
|
|
121
119
|
};
|
|
@@ -12,12 +12,12 @@ const e = {
|
|
|
12
12
|
<td align="left" width="70%" style="vertical-align: top;">
|
|
13
13
|
<table cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
14
14
|
<tbody>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
<${t.BLOCK_TEXT}>
|
|
16
|
+
{-{-TITLE-}-}
|
|
17
|
+
</${t.BLOCK_TEXT}>
|
|
18
|
+
<${t.BLOCK_TEXT}>
|
|
19
|
+
{-{-DESCRIPTION-}-}
|
|
20
|
+
</${t.BLOCK_TEXT}>
|
|
21
21
|
</tbody>
|
|
22
22
|
</table>
|
|
23
23
|
</td>
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
[data-v-2c168944] .in-button-v2__wrapper{line-height:0}[data-v-b5997368] .in-segments-wrapper .in-tooltip-wrapper__box{text-align:left}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}.view-options-wrapper[data-v-d405ca59]{position:relative;display:inline-block}.new-tag[data-v-d405ca59]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-d405ca59] .guido__verion-history-view-option-selection-desktop svg,[data-v-d405ca59] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-d405ca59] .in-segments-wrapper__button_selected,[data-v-d405ca59] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-d405ca59] .in-tooltip-wrapper__icon{cursor:pointer}.view-options-wrapper[data-v-195ab6d4]{position:relative;display:inline-block}.new-tag[data-v-195ab6d4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-195ab6d4] .guido__view-option-selection-desktop svg,[data-v-195ab6d4] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-195ab6d4] .in-segments-wrapper__button_selected,[data-v-195ab6d4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-195ab6d4] .in-tooltip-wrapper__icon{cursor:pointer}.guido-loading__wrapper[data-v-dced5582]{height:100%;top:75px}.guido-editor__wrapper[data-v-96687c1d],.guido-editor__container[data-v-96687c1d]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-96687c1d]{height:calc(100vh - 75px)}[data-v-70835920] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-a86fc486]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-a86fc486]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-a86fc486]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-a86fc486]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-a86fc486]{object-fit:cover;transform:scale(1)}[data-v-dd57102d] .guido__verion-history-view-option-selection-desktop svg,[data-v-dd57102d] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-dd57102d] .in-segments-wrapper__button_selected,[data-v-dd57102d] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-7a09985c]{gap:16px}[data-v-c2adc57d] .in-progress-wrapper__progress p span:last-child{display:none!important}.desktop-preview-container[data-v-2dd60b0c],[data-v-2dd60b0c] .desktop-preview-container .in-container{min-height:720px!important;height:100%}.cropped-text[data-v-f20b3a9b]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-d3c52b44] .vueperslides__bullets,[data-v-a408dcea] .vueperslides__bullets{pointer-events:none!important}[data-v-a408dcea] .vueperslides__parallax-wrapper{height:110px!important}
|
|
@@ -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,31 @@ 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,
|
|
230
|
+
caption: "caption"
|
|
232
231
|
}, Et = {
|
|
233
|
-
...
|
|
234
|
-
minValue: "min-value",
|
|
235
|
-
maxValue: "max-value",
|
|
236
|
-
step: "step"
|
|
237
|
-
}, lt = {
|
|
238
|
-
...E,
|
|
232
|
+
...D,
|
|
239
233
|
text: "text"
|
|
240
|
-
},
|
|
241
|
-
...
|
|
234
|
+
}, lt = {
|
|
235
|
+
...D,
|
|
242
236
|
placeholder: "placeholder",
|
|
243
237
|
items: "items"
|
|
244
|
-
},
|
|
238
|
+
}, dt = {
|
|
245
239
|
text: "text",
|
|
246
240
|
value: "value"
|
|
247
|
-
},
|
|
248
|
-
...E
|
|
249
|
-
}, _t = {
|
|
241
|
+
}, gt = {
|
|
250
242
|
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 {
|
|
243
|
+
LABEL: Et,
|
|
244
|
+
SELECTPICKER: lt,
|
|
245
|
+
SELECT_ITEM: dt
|
|
246
|
+
}, 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
247
|
constructor() {
|
|
259
|
-
super(
|
|
248
|
+
super(c.REQUIRED_METHODS, c);
|
|
260
249
|
}
|
|
261
250
|
/**
|
|
262
251
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
@@ -303,16 +292,16 @@ var Q = "esd-block-button", $ = "esd-block-text", X = "esd-block-image", G = "es
|
|
|
303
292
|
}
|
|
304
293
|
};
|
|
305
294
|
S.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
306
|
-
var
|
|
295
|
+
var It = S, N = class m extends n {
|
|
307
296
|
constructor() {
|
|
308
|
-
super(
|
|
297
|
+
super(m.REQUIRED_METHODS, m);
|
|
309
298
|
}
|
|
310
299
|
registerBlockControls(e) {
|
|
311
300
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
312
301
|
}
|
|
313
302
|
};
|
|
314
303
|
N.REQUIRED_METHODS = ["registerBlockControls"];
|
|
315
|
-
var
|
|
304
|
+
var _t = N, Lt = class {
|
|
316
305
|
constructor(t, e) {
|
|
317
306
|
this.tabId = t, this.controlsIds = e;
|
|
318
307
|
}
|
|
@@ -335,9 +324,9 @@ var At = N, Dt = class {
|
|
|
335
324
|
const e = this.controlsIds.indexOf(t);
|
|
336
325
|
e !== -1 && this.controlsIds.splice(e, 1);
|
|
337
326
|
}
|
|
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 =
|
|
327
|
+
}, ut = class {
|
|
328
|
+
constructor(t, e, r = [], s, i = [], l, E = [], a = [], T, v, p, w, B, K, P, H) {
|
|
329
|
+
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
330
|
}
|
|
342
331
|
getI18n() {
|
|
343
332
|
return this.i18n;
|
|
@@ -390,7 +379,7 @@ var At = N, Dt = class {
|
|
|
390
379
|
getIconsRegistry() {
|
|
391
380
|
return this.iconsRegistry;
|
|
392
381
|
}
|
|
393
|
-
},
|
|
382
|
+
}, At = class {
|
|
394
383
|
constructor() {
|
|
395
384
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
|
|
396
385
|
}
|
|
@@ -452,7 +441,7 @@ var At = N, Dt = class {
|
|
|
452
441
|
return this.iconsRegistry = t, this;
|
|
453
442
|
}
|
|
454
443
|
build() {
|
|
455
|
-
return new
|
|
444
|
+
return new ut(
|
|
456
445
|
this.i18n,
|
|
457
446
|
(this.styles || []).map((t) => t.trim()).join(`
|
|
458
447
|
`),
|
|
@@ -472,18 +461,18 @@ var At = N, Dt = class {
|
|
|
472
461
|
this.iconsRegistry
|
|
473
462
|
);
|
|
474
463
|
}
|
|
475
|
-
},
|
|
464
|
+
}, ct = class O extends n {
|
|
476
465
|
constructor() {
|
|
477
|
-
super(
|
|
466
|
+
super(O.REQUIRED_METHODS, O);
|
|
478
467
|
}
|
|
479
468
|
openAiAssistant({ value: e, onDataSelectCallback: r, onCancelCallback: s, type: i }) {
|
|
480
469
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
481
470
|
}
|
|
482
471
|
};
|
|
483
|
-
|
|
484
|
-
var
|
|
472
|
+
ct.REQUIRED_METHODS = ["openAiAssistant"];
|
|
473
|
+
var mt = class b extends n {
|
|
485
474
|
constructor() {
|
|
486
|
-
super(
|
|
475
|
+
super(b.REQUIRED_METHODS, b);
|
|
487
476
|
}
|
|
488
477
|
/**
|
|
489
478
|
* Retrieves the name of the category.
|
|
@@ -521,44 +510,44 @@ var bt = class R extends n {
|
|
|
521
510
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
522
511
|
}
|
|
523
512
|
};
|
|
524
|
-
|
|
525
|
-
var
|
|
513
|
+
mt.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
514
|
+
var Ot = class R extends n {
|
|
526
515
|
constructor() {
|
|
527
|
-
super(
|
|
516
|
+
super(R.REQUIRED_METHODS, R);
|
|
528
517
|
}
|
|
529
518
|
openImageLibrary(e, r, s) {
|
|
530
519
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
531
520
|
}
|
|
532
521
|
};
|
|
533
|
-
|
|
534
|
-
var
|
|
522
|
+
Ot.REQUIRED_METHODS = ["openImageLibrary"];
|
|
523
|
+
var bt = class C extends n {
|
|
535
524
|
constructor() {
|
|
536
|
-
super(
|
|
525
|
+
super(C.REQUIRED_METHODS, C);
|
|
537
526
|
}
|
|
538
527
|
openSmartElementsLibrary(e, r) {
|
|
539
528
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
540
529
|
}
|
|
541
530
|
};
|
|
542
|
-
|
|
543
|
-
var
|
|
531
|
+
bt.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
532
|
+
var Rt = class g extends n {
|
|
544
533
|
constructor() {
|
|
545
|
-
super(
|
|
534
|
+
super(g.REQUIRED_METHODS, g);
|
|
546
535
|
}
|
|
547
536
|
openExternalVideosLibraryDialog(e, r, s) {
|
|
548
537
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
549
538
|
}
|
|
550
539
|
};
|
|
551
|
-
|
|
552
|
-
var y = class
|
|
540
|
+
Rt.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
541
|
+
var y = class I extends n {
|
|
553
542
|
constructor() {
|
|
554
|
-
super(
|
|
543
|
+
super(I.REQUIRED_METHODS, I);
|
|
555
544
|
}
|
|
556
545
|
registerIconsSvg(e) {
|
|
557
546
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
558
547
|
}
|
|
559
548
|
};
|
|
560
549
|
y.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
561
|
-
var
|
|
550
|
+
var Dt = y, Tt = class {
|
|
562
551
|
constructor(t) {
|
|
563
552
|
this.key = t;
|
|
564
553
|
}
|
|
@@ -571,9 +560,9 @@ var Mt = y, St = class {
|
|
|
571
560
|
params: this.params
|
|
572
561
|
};
|
|
573
562
|
}
|
|
574
|
-
},
|
|
563
|
+
}, x = class _ extends n {
|
|
575
564
|
constructor() {
|
|
576
|
-
super(
|
|
565
|
+
super(_.REQUIRED_METHODS, _);
|
|
577
566
|
}
|
|
578
567
|
/**
|
|
579
568
|
* Called when the UI element should render its content into the provided container.
|
|
@@ -626,34 +615,34 @@ var Mt = y, St = class {
|
|
|
626
615
|
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
627
616
|
}
|
|
628
617
|
};
|
|
629
|
-
|
|
630
|
-
var
|
|
618
|
+
x.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
619
|
+
var Mt = x, U = class L extends n {
|
|
631
620
|
constructor() {
|
|
632
|
-
super(
|
|
621
|
+
super(L.REQUIRED_METHODS, L);
|
|
633
622
|
}
|
|
634
623
|
registerUiElements(e) {
|
|
635
624
|
throw new Error("Method registerUiElements() must be implemented by the subclass");
|
|
636
625
|
}
|
|
637
626
|
};
|
|
638
|
-
|
|
639
|
-
var
|
|
627
|
+
U.REQUIRED_METHODS = ["registerUiElements"];
|
|
628
|
+
var St = U;
|
|
640
629
|
export {
|
|
641
|
-
|
|
630
|
+
Ct as Block,
|
|
642
631
|
F as BlockCompositionType,
|
|
643
632
|
rt as BlockSelector,
|
|
644
633
|
st as BlockType,
|
|
645
634
|
it as ContainerControls,
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
635
|
+
It as Control,
|
|
636
|
+
ut as Extension,
|
|
637
|
+
At as ExtensionBuilder,
|
|
638
|
+
Dt as IconsRegistry,
|
|
639
|
+
Tt as ModificationDescription,
|
|
640
|
+
_t as SettingsPanelRegistry,
|
|
641
|
+
Lt as SettingsPanelTab,
|
|
653
642
|
at as SettingsTab,
|
|
654
643
|
nt as TextControls,
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
644
|
+
gt as UEAttr,
|
|
645
|
+
Mt as UIElement,
|
|
646
|
+
St as UIElementTagRegistry,
|
|
647
|
+
ht as UIElementType
|
|
659
648
|
};
|
package/dist/package.json.js
CHANGED