@useinsider/guido 2.0.0-beta.a3f32aa → 2.0.0-beta.cf2fe38
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/config/schemas.js +33 -45
- package/dist/components/organisms/header/RightSlot.vue2.js +10 -10
- package/dist/composables/useConfig.js +27 -29
- package/dist/composables/useSave.js +11 -13
- package/dist/composables/useStripo.js +51 -50
- package/dist/extensions/Blocks/CouponBlock/constants.js +4 -0
- package/dist/extensions/Blocks/CouponBlock/controls/index.js +29 -0
- package/dist/extensions/Blocks/CouponBlock/extension.js +5 -4
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +20 -14
- package/dist/extensions/Blocks/CouponBlock/template.js +22 -11
- package/dist/extensions/Blocks/Unsubscribe/extension.js +9 -9
- package/dist/extensions/Blocks/controlFactories.js +122 -111
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +57 -52
- package/dist/src/@types/config/index.d.ts +2 -2
- package/dist/src/@types/config/schemas.d.ts +4 -26
- package/dist/src/@types/config/types.d.ts +1 -7
- package/dist/src/composables/useConfig.d.ts +2 -6
- package/dist/src/extensions/Blocks/CouponBlock/constants.d.ts +14 -0
- package/dist/src/extensions/Blocks/CouponBlock/controls/index.d.ts +108 -0
- package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/controlFactories.d.ts +30 -7
- package/dist/src/stores/config.d.ts +18 -145
- package/dist/static/styles/components/narrow-panel.css.js +0 -10
- package/dist/stores/config.js +0 -7
- package/package.json +1 -1
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { ExtensionBuilder as e } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
2
|
import { UnsubscribeBlock as i } from "./block.js";
|
|
3
3
|
import { UnsubscribeControl as t } from "./control.js";
|
|
4
|
-
import { PreviewUIElement as
|
|
5
|
-
import { UnsubscribeIconsRegistry as
|
|
6
|
-
import { SettingsPanel as
|
|
4
|
+
import { PreviewUIElement as o } from "./elements/preview.js";
|
|
5
|
+
import { UnsubscribeIconsRegistry as r } from "./iconsRegistry.js";
|
|
6
|
+
import { SettingsPanel as s } from "./settingsPanel.js";
|
|
7
7
|
import n from "./styles.css.js";
|
|
8
|
-
import { UnsubscribeTagRegistry as
|
|
9
|
-
const
|
|
8
|
+
import { UnsubscribeTagRegistry as l } from "./tagRegistry.js";
|
|
9
|
+
const f = new e().addBlock(i).withSettingsPanelRegistry(s).addControl(t).addUiElement(o).addStyles(n).withLocalization({
|
|
10
10
|
en: {
|
|
11
|
-
"Unsubscribe Block": "Unsubscribe",
|
|
12
|
-
"Unsubscribe Block Description": "
|
|
11
|
+
"Unsubscribe Block": "Unsubscribe Block",
|
|
12
|
+
"Unsubscribe Block Description": "Add an unsubscribe link to your email",
|
|
13
13
|
"Select Template": "Select Template",
|
|
14
14
|
"Unsubscribe Template": "Unsubscribe Template",
|
|
15
15
|
Showing: "Showing",
|
|
16
16
|
of: "of"
|
|
17
17
|
}
|
|
18
|
-
}).withUiElementTagRegistry(
|
|
18
|
+
}).withUiElementTagRegistry(l).withIconsRegistry(r).build();
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
f as default
|
|
21
21
|
};
|
|
@@ -1,223 +1,234 @@
|
|
|
1
|
-
import { TextAlignBuiltInControl as
|
|
2
|
-
function
|
|
3
|
-
return class extends
|
|
1
|
+
import { TextAlignBuiltInControl as o, TextColorBuiltInControl as l, TextSizeBuiltInControl as s, TextStyleBuiltInControl as u, TextFontFamilyBuiltInControl as i, ButtonBackgroundColorBuiltInControl as c, TextPaddingsBuiltInControl as d, ImageSizeBuiltInControl as a, ImageMarginsBuiltInControl as g, ButtonAlignBuiltInControl as x, ButtonBorderBuiltInControl as C, ButtonBorderRadiusBuiltInControl as B, ButtonColorBuiltInControl as T, ButtonFontFamilyBuiltInControl as I, ButtonMarginsBuiltInControl as f, ButtonPaddingsBuiltInControl as m, ButtonTextBuiltInControl as y, ButtonTextSizeBuiltInControl as A, ButtonTextStyleAndFontColorBuiltInControl as S, ButtonFitToContainerBuiltInControl as N, TextLineSpacingBuiltInControl as b } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
function $(r, t, n) {
|
|
3
|
+
return class extends o {
|
|
4
4
|
getId() {
|
|
5
|
-
return
|
|
5
|
+
return r;
|
|
6
6
|
}
|
|
7
|
-
getTargetNodes(
|
|
8
|
-
return
|
|
7
|
+
getTargetNodes(e) {
|
|
8
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function k(r, t, n) {
|
|
13
13
|
return class extends l {
|
|
14
14
|
getId() {
|
|
15
|
-
return
|
|
15
|
+
return r;
|
|
16
16
|
}
|
|
17
|
-
getTargetNodes(
|
|
18
|
-
return
|
|
17
|
+
getTargetNodes(e) {
|
|
18
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function p(r, t, n) {
|
|
23
23
|
return class extends s {
|
|
24
24
|
getId() {
|
|
25
|
-
return
|
|
25
|
+
return r;
|
|
26
26
|
}
|
|
27
|
-
getTargetNodes(
|
|
28
|
-
return
|
|
27
|
+
getTargetNodes(e) {
|
|
28
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return class extends
|
|
32
|
+
function F(r, t, n) {
|
|
33
|
+
return class extends u {
|
|
34
34
|
getId() {
|
|
35
|
-
return
|
|
35
|
+
return r;
|
|
36
36
|
}
|
|
37
|
-
getTargetNodes(
|
|
38
|
-
return
|
|
37
|
+
getTargetNodes(e) {
|
|
38
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return class extends
|
|
42
|
+
function z(r, t, n) {
|
|
43
|
+
return class extends i {
|
|
44
44
|
getId() {
|
|
45
|
-
return
|
|
45
|
+
return r;
|
|
46
46
|
}
|
|
47
|
-
getTargetNodes(
|
|
48
|
-
return
|
|
47
|
+
getTargetNodes(e) {
|
|
48
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
return class extends
|
|
52
|
+
function M(r, t, n) {
|
|
53
|
+
return class extends c {
|
|
54
54
|
getId() {
|
|
55
|
-
return
|
|
55
|
+
return r;
|
|
56
56
|
}
|
|
57
|
-
getTargetNodes(
|
|
58
|
-
return
|
|
57
|
+
getTargetNodes(e) {
|
|
58
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function P(r, t, n) {
|
|
63
63
|
return class extends d {
|
|
64
64
|
getId() {
|
|
65
|
-
return
|
|
65
|
+
return r;
|
|
66
|
+
}
|
|
67
|
+
getTargetNodes(e) {
|
|
68
|
+
return !t || !n ? [e] : e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function L(r, t, n) {
|
|
73
|
+
return class extends b {
|
|
74
|
+
getId() {
|
|
75
|
+
return r;
|
|
66
76
|
}
|
|
67
|
-
getTargetNodes(
|
|
68
|
-
return
|
|
77
|
+
getTargetNodes(e) {
|
|
78
|
+
return [e];
|
|
69
79
|
}
|
|
70
80
|
};
|
|
71
81
|
}
|
|
72
|
-
function
|
|
82
|
+
function R(r, t, n = ".ins-recommendation-product-container") {
|
|
73
83
|
return class extends x {
|
|
74
84
|
getId() {
|
|
75
|
-
return
|
|
85
|
+
return r;
|
|
76
86
|
}
|
|
77
|
-
getTargetNodes(
|
|
78
|
-
return
|
|
87
|
+
getTargetNodes(e) {
|
|
88
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
79
89
|
}
|
|
80
90
|
};
|
|
81
91
|
}
|
|
82
|
-
function
|
|
83
|
-
return class extends
|
|
92
|
+
function h(r, t, n = ".ins-recommendation-product-container") {
|
|
93
|
+
return class extends T {
|
|
84
94
|
getId() {
|
|
85
|
-
return
|
|
95
|
+
return r;
|
|
86
96
|
}
|
|
87
|
-
getTargetNodes(
|
|
88
|
-
return
|
|
97
|
+
getTargetNodes(e) {
|
|
98
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
89
99
|
}
|
|
90
100
|
};
|
|
91
101
|
}
|
|
92
|
-
function
|
|
102
|
+
function j(r, t, n = ".ins-recommendation-product-container") {
|
|
93
103
|
return class extends C {
|
|
94
104
|
getId() {
|
|
95
|
-
return
|
|
105
|
+
return r;
|
|
96
106
|
}
|
|
97
|
-
getTargetNodes(
|
|
98
|
-
return
|
|
107
|
+
getTargetNodes(e) {
|
|
108
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
99
109
|
}
|
|
100
110
|
};
|
|
101
111
|
}
|
|
102
|
-
function
|
|
112
|
+
function v(r, t, n = ".ins-recommendation-product-container") {
|
|
103
113
|
return class extends B {
|
|
104
114
|
getId() {
|
|
105
|
-
return
|
|
115
|
+
return r;
|
|
106
116
|
}
|
|
107
|
-
getTargetNodes(
|
|
108
|
-
return
|
|
117
|
+
getTargetNodes(e) {
|
|
118
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
109
119
|
}
|
|
110
120
|
};
|
|
111
121
|
}
|
|
112
|
-
function
|
|
113
|
-
return class extends
|
|
122
|
+
function w(r, t, n = ".ins-recommendation-product-container") {
|
|
123
|
+
return class extends I {
|
|
114
124
|
getId() {
|
|
115
|
-
return
|
|
125
|
+
return r;
|
|
116
126
|
}
|
|
117
|
-
getTargetNodes(
|
|
118
|
-
return
|
|
127
|
+
getTargetNodes(e) {
|
|
128
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
119
129
|
}
|
|
120
130
|
};
|
|
121
131
|
}
|
|
122
|
-
function
|
|
123
|
-
return class extends
|
|
132
|
+
function D(r, t, n = ".ins-recommendation-product-container") {
|
|
133
|
+
return class extends f {
|
|
124
134
|
getId() {
|
|
125
|
-
return
|
|
135
|
+
return r;
|
|
126
136
|
}
|
|
127
|
-
getTargetNodes(
|
|
128
|
-
return
|
|
137
|
+
getTargetNodes(e) {
|
|
138
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
129
139
|
}
|
|
130
140
|
};
|
|
131
141
|
}
|
|
132
|
-
function
|
|
133
|
-
return class extends
|
|
142
|
+
function E(r, t, n = ".ins-recommendation-product-container") {
|
|
143
|
+
return class extends m {
|
|
134
144
|
getId() {
|
|
135
|
-
return
|
|
145
|
+
return r;
|
|
136
146
|
}
|
|
137
|
-
getTargetNodes(
|
|
138
|
-
return
|
|
147
|
+
getTargetNodes(e) {
|
|
148
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
139
149
|
}
|
|
140
150
|
};
|
|
141
151
|
}
|
|
142
|
-
function
|
|
152
|
+
function G(r, t, n = ".ins-recommendation-product-container") {
|
|
143
153
|
return class extends y {
|
|
144
154
|
getId() {
|
|
145
|
-
return
|
|
155
|
+
return r;
|
|
146
156
|
}
|
|
147
|
-
getTargetNodes(
|
|
148
|
-
return
|
|
157
|
+
getTargetNodes(e) {
|
|
158
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
149
159
|
}
|
|
150
160
|
};
|
|
151
161
|
}
|
|
152
|
-
function
|
|
162
|
+
function H(r, t, n = ".ins-recommendation-product-container") {
|
|
153
163
|
return class extends A {
|
|
154
164
|
getId() {
|
|
155
|
-
return
|
|
165
|
+
return r;
|
|
156
166
|
}
|
|
157
|
-
getTargetNodes(
|
|
158
|
-
return
|
|
167
|
+
getTargetNodes(e) {
|
|
168
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
159
169
|
}
|
|
160
170
|
};
|
|
161
171
|
}
|
|
162
|
-
function
|
|
163
|
-
return class extends
|
|
172
|
+
function J(r, t, n) {
|
|
173
|
+
return class extends S {
|
|
164
174
|
getId() {
|
|
165
|
-
return
|
|
175
|
+
return r;
|
|
166
176
|
}
|
|
167
|
-
getTargetNodes(
|
|
168
|
-
return
|
|
177
|
+
getTargetNodes(e) {
|
|
178
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
169
179
|
}
|
|
170
180
|
};
|
|
171
181
|
}
|
|
172
|
-
function
|
|
173
|
-
return class extends
|
|
182
|
+
function K(r, t, n) {
|
|
183
|
+
return class extends N {
|
|
174
184
|
getId() {
|
|
175
|
-
return
|
|
185
|
+
return r;
|
|
176
186
|
}
|
|
177
|
-
getTargetNodes(
|
|
178
|
-
return
|
|
187
|
+
getTargetNodes(e) {
|
|
188
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
179
189
|
}
|
|
180
190
|
};
|
|
181
191
|
}
|
|
182
|
-
function
|
|
192
|
+
function O(r, t, n) {
|
|
183
193
|
return class extends a {
|
|
184
194
|
getId() {
|
|
185
|
-
return
|
|
195
|
+
return r;
|
|
186
196
|
}
|
|
187
|
-
getTargetNodes(
|
|
188
|
-
return
|
|
197
|
+
getTargetNodes(e) {
|
|
198
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
189
199
|
}
|
|
190
200
|
};
|
|
191
201
|
}
|
|
192
|
-
function
|
|
202
|
+
function Q(r, t, n) {
|
|
193
203
|
return class extends g {
|
|
194
204
|
getId() {
|
|
195
|
-
return
|
|
205
|
+
return r;
|
|
196
206
|
}
|
|
197
|
-
getTargetNodes(
|
|
198
|
-
return
|
|
207
|
+
getTargetNodes(e) {
|
|
208
|
+
return e.closest(n).querySelectorAll(`[esd-extension-block-id="${t}"]`);
|
|
199
209
|
}
|
|
200
210
|
};
|
|
201
211
|
}
|
|
202
212
|
export {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
p as
|
|
213
|
+
R as createButtonAlignControl,
|
|
214
|
+
j as createButtonBorderControl,
|
|
215
|
+
v as createButtonBorderRadiusControl,
|
|
216
|
+
h as createButtonColorControl,
|
|
217
|
+
K as createButtonFitToContainerControl,
|
|
218
|
+
w as createButtonFontFamilyControl,
|
|
219
|
+
D as createButtonMarginsControl,
|
|
220
|
+
E as createButtonPaddingsControl,
|
|
221
|
+
G as createButtonTextControl,
|
|
222
|
+
H as createButtonTextSizeControl,
|
|
223
|
+
J as createButtonTextStyleAndFontColorControl,
|
|
224
|
+
Q as createImageMarginsControl,
|
|
225
|
+
O as createImageSizeControl,
|
|
226
|
+
P as createPaddingsControl,
|
|
227
|
+
$ as createTextAlignControl,
|
|
228
|
+
M as createTextBackgroundColorControl,
|
|
229
|
+
k as createTextColorControl,
|
|
230
|
+
z as createTextFontFamilyControl,
|
|
231
|
+
L as createTextLineSpacingControl,
|
|
232
|
+
p as createTextSizeControl,
|
|
233
|
+
F as createTextStyleControl
|
|
223
234
|
};
|
|
@@ -23,12 +23,12 @@ ${s.map((E) => ` - ${E}`).join(`
|
|
|
23
23
|
validateImplementation(e, r) {
|
|
24
24
|
var I;
|
|
25
25
|
const s = [], E = r.name, T = Object.getPrototypeOf(this);
|
|
26
|
-
e.forEach((
|
|
27
|
-
if (typeof this[
|
|
28
|
-
s.push(`Method ${
|
|
26
|
+
e.forEach((d) => {
|
|
27
|
+
if (typeof this[d] != "function") {
|
|
28
|
+
s.push(`Method ${d}() is not defined`);
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
T[
|
|
31
|
+
T[d] === r.prototype[d] && s.push(`Method ${d}() must be implemented (currently using base class error-throwing implementation)`);
|
|
32
32
|
}), u.validatedClasses.add(r), s.length > 0 ? (u.validationErrors.set(r, s), console.error(`[${E} Validation] ${E} validation failed:`, s)) : typeof process < "u" && ((I = process.env) == null ? void 0 : I.NODE_ENV) === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
|
|
33
33
|
}
|
|
34
34
|
};
|
|
@@ -254,10 +254,10 @@ var st = {
|
|
|
254
254
|
...o,
|
|
255
255
|
caption: "caption",
|
|
256
256
|
icon: "icon"
|
|
257
|
-
},
|
|
257
|
+
}, gt = {
|
|
258
258
|
...o,
|
|
259
259
|
caption: "caption"
|
|
260
|
-
},
|
|
260
|
+
}, mt = {
|
|
261
261
|
...o,
|
|
262
262
|
minValue: "min-value",
|
|
263
263
|
maxValue: "max-value",
|
|
@@ -265,7 +265,7 @@ var st = {
|
|
|
265
265
|
}, bt = {
|
|
266
266
|
...o,
|
|
267
267
|
text: "text"
|
|
268
|
-
},
|
|
268
|
+
}, Nt = {
|
|
269
269
|
...o
|
|
270
270
|
}, X = {
|
|
271
271
|
...o,
|
|
@@ -273,7 +273,7 @@ var st = {
|
|
|
273
273
|
multiSelect: "multi-select",
|
|
274
274
|
placeholder: "placeholder",
|
|
275
275
|
items: "items"
|
|
276
|
-
},
|
|
276
|
+
}, At = {
|
|
277
277
|
...X
|
|
278
278
|
}, Dt = {
|
|
279
279
|
text: "text",
|
|
@@ -292,15 +292,15 @@ var st = {
|
|
|
292
292
|
position: "position"
|
|
293
293
|
}, vt = {
|
|
294
294
|
...o
|
|
295
|
-
},
|
|
295
|
+
}, Gt = {
|
|
296
296
|
BUTTON: Ct,
|
|
297
|
-
CHECKBOX:
|
|
297
|
+
CHECKBOX: gt,
|
|
298
298
|
COLOR: o,
|
|
299
|
-
COUNTER:
|
|
299
|
+
COUNTER: mt,
|
|
300
300
|
LABEL: bt,
|
|
301
|
-
RADIO_BUTTONS:
|
|
301
|
+
RADIO_BUTTONS: Nt,
|
|
302
302
|
SELECTPICKER: X,
|
|
303
|
-
FONT_FAMILY_SELECT:
|
|
303
|
+
FONT_FAMILY_SELECT: At,
|
|
304
304
|
SWITCHER: o,
|
|
305
305
|
TEXT: Bt,
|
|
306
306
|
SELECT_ITEM: Dt,
|
|
@@ -344,7 +344,7 @@ var st = {
|
|
|
344
344
|
const e = t.querySelectorAll(O.BUTTON), r = t.asElement().hasClass(U) ? [t] : [];
|
|
345
345
|
return e.length ? e : r;
|
|
346
346
|
}
|
|
347
|
-
},
|
|
347
|
+
}, Vt = class extends i {
|
|
348
348
|
getParentControlId() {
|
|
349
349
|
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
350
350
|
}
|
|
@@ -454,20 +454,20 @@ var st = {
|
|
|
454
454
|
}
|
|
455
455
|
};
|
|
456
456
|
k.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
457
|
-
var ee = k,
|
|
457
|
+
var ee = k, G = class extends x {
|
|
458
458
|
getTargetNodes(t) {
|
|
459
459
|
const e = t.querySelectorAll(O.IMAGE), r = t.asElement().hasClass(K) ? [t] : [];
|
|
460
460
|
return e.length ? e : r;
|
|
461
461
|
}
|
|
462
|
-
}, re = class extends
|
|
462
|
+
}, re = class extends G {
|
|
463
463
|
getParentControlId() {
|
|
464
464
|
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
465
465
|
}
|
|
466
|
-
}, ne = class extends
|
|
466
|
+
}, ne = class extends G {
|
|
467
467
|
getParentControlId() {
|
|
468
468
|
return n.BLOCK_IMAGE.SIZE;
|
|
469
469
|
}
|
|
470
|
-
},
|
|
470
|
+
}, V = class L extends a {
|
|
471
471
|
constructor() {
|
|
472
472
|
super(L.REQUIRED_METHODS, L);
|
|
473
473
|
}
|
|
@@ -475,8 +475,8 @@ var ee = k, V = class extends x {
|
|
|
475
475
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
476
476
|
}
|
|
477
477
|
};
|
|
478
|
-
|
|
479
|
-
var se =
|
|
478
|
+
V.REQUIRED_METHODS = ["registerBlockControls"];
|
|
479
|
+
var se = V, ae = class {
|
|
480
480
|
constructor(t, e) {
|
|
481
481
|
this.tabId = t, this.controlsIds = e;
|
|
482
482
|
}
|
|
@@ -499,42 +499,46 @@ var se = G, ae = class {
|
|
|
499
499
|
const e = this.controlsIds.indexOf(t);
|
|
500
500
|
e !== -1 && this.controlsIds.splice(e, 1);
|
|
501
501
|
}
|
|
502
|
-
},
|
|
502
|
+
}, l = class extends x {
|
|
503
503
|
getTargetNodes(t) {
|
|
504
504
|
const e = t.querySelectorAll(O.TEXT), r = t.asElement().hasClass(p) ? [t] : [];
|
|
505
505
|
return e.length ? e : r;
|
|
506
506
|
}
|
|
507
|
-
}, ie = class extends
|
|
507
|
+
}, ie = class extends l {
|
|
508
508
|
getParentControlId() {
|
|
509
509
|
return n.GENERAL.TEXT_ALIGN;
|
|
510
510
|
}
|
|
511
|
-
}, oe = class extends
|
|
511
|
+
}, oe = class extends l {
|
|
512
512
|
getParentControlId() {
|
|
513
513
|
return n.BLOCK_TEXT.TEXT_BLOCK_BACKGROUND_COLOR;
|
|
514
514
|
}
|
|
515
|
-
}, Ee = class extends
|
|
515
|
+
}, Ee = class extends l {
|
|
516
516
|
getParentControlId() {
|
|
517
517
|
return n.GENERAL.TEXT_COLOR;
|
|
518
518
|
}
|
|
519
|
-
}, le = class extends
|
|
519
|
+
}, le = class extends l {
|
|
520
520
|
getParentControlId() {
|
|
521
521
|
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
522
522
|
}
|
|
523
|
-
}, de = class extends
|
|
523
|
+
}, de = class extends l {
|
|
524
|
+
getParentControlId() {
|
|
525
|
+
return n.GENERAL.TEXT_LINE_SPACING;
|
|
526
|
+
}
|
|
527
|
+
}, ue = class extends l {
|
|
524
528
|
getParentControlId() {
|
|
525
529
|
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
526
530
|
}
|
|
527
|
-
},
|
|
531
|
+
}, Ie = class extends l {
|
|
528
532
|
getParentControlId() {
|
|
529
533
|
return n.GENERAL.TEXT_SIZE;
|
|
530
534
|
}
|
|
531
|
-
},
|
|
535
|
+
}, Oe = class extends l {
|
|
532
536
|
getParentControlId() {
|
|
533
537
|
return n.GENERAL.TEXT_STYLE;
|
|
534
538
|
}
|
|
535
539
|
}, Ut = class {
|
|
536
|
-
constructor(t, e, r = [], s, E = [], T, I = [],
|
|
537
|
-
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = W, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = E, this.settingsPanelRegistry = T, this.contextActions = I, this.blocks =
|
|
540
|
+
constructor(t, e, r = [], s, E = [], T, I = [], d = [], v, $, W, z, Z, j, q, J, tt) {
|
|
541
|
+
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = W, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = E, this.settingsPanelRegistry = T, this.contextActions = I, this.blocks = d, this.externalSmartElementsLibrary = v, this.externalImageLibrary = $, this.externalImageLibraryTab = tt, this.externalAiAssistant = z, this.externalDisplayConditionsLibrary = Z, this.externalVideoLibrary = j, this.blocksPanel = q, this.iconsRegistry = J, this.id = Math.random().toString(36).substring(2);
|
|
538
542
|
}
|
|
539
543
|
getI18n() {
|
|
540
544
|
return this.i18n;
|
|
@@ -590,7 +594,7 @@ var se = G, ae = class {
|
|
|
590
594
|
getIconsRegistry() {
|
|
591
595
|
return this.iconsRegistry;
|
|
592
596
|
}
|
|
593
|
-
},
|
|
597
|
+
}, Te = class {
|
|
594
598
|
constructor() {
|
|
595
599
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
|
|
596
600
|
}
|
|
@@ -685,9 +689,9 @@ var se = G, ae = class {
|
|
|
685
689
|
}
|
|
686
690
|
};
|
|
687
691
|
pt.REQUIRED_METHODS = ["openAiAssistant"];
|
|
688
|
-
var Kt = class
|
|
692
|
+
var Kt = class g extends a {
|
|
689
693
|
constructor() {
|
|
690
|
-
super(
|
|
694
|
+
super(g.REQUIRED_METHODS, g);
|
|
691
695
|
}
|
|
692
696
|
/**
|
|
693
697
|
* Retrieves the name of the category.
|
|
@@ -726,9 +730,9 @@ var Kt = class m extends a {
|
|
|
726
730
|
}
|
|
727
731
|
};
|
|
728
732
|
Kt.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
729
|
-
var Ft = class
|
|
733
|
+
var Ft = class m extends a {
|
|
730
734
|
constructor() {
|
|
731
|
-
super(
|
|
735
|
+
super(m.REQUIRED_METHODS, m);
|
|
732
736
|
}
|
|
733
737
|
openImageLibrary(e, r, s) {
|
|
734
738
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
@@ -756,18 +760,18 @@ var wt = class b extends a {
|
|
|
756
760
|
}
|
|
757
761
|
};
|
|
758
762
|
wt.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
759
|
-
var Pt = class
|
|
763
|
+
var Pt = class N extends a {
|
|
760
764
|
constructor() {
|
|
761
|
-
super(
|
|
765
|
+
super(N.REQUIRED_METHODS, N);
|
|
762
766
|
}
|
|
763
767
|
openSmartElementsLibrary(e, r) {
|
|
764
768
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
765
769
|
}
|
|
766
770
|
};
|
|
767
771
|
Pt.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
768
|
-
var Ht = class
|
|
772
|
+
var Ht = class A extends a {
|
|
769
773
|
constructor() {
|
|
770
|
-
super(
|
|
774
|
+
super(A.REQUIRED_METHODS, A);
|
|
771
775
|
}
|
|
772
776
|
openExternalVideosLibraryDialog(e, r, s) {
|
|
773
777
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
@@ -783,7 +787,7 @@ var Q = class D extends a {
|
|
|
783
787
|
}
|
|
784
788
|
};
|
|
785
789
|
Q.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
786
|
-
var
|
|
790
|
+
var ce = Q, _e = class {
|
|
787
791
|
constructor(t) {
|
|
788
792
|
this.key = t;
|
|
789
793
|
}
|
|
@@ -852,7 +856,7 @@ var Te = Q, ce = class {
|
|
|
852
856
|
}
|
|
853
857
|
};
|
|
854
858
|
f.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
855
|
-
var
|
|
859
|
+
var he = f, Y = class B extends a {
|
|
856
860
|
constructor() {
|
|
857
861
|
super(B.REQUIRED_METHODS, B);
|
|
858
862
|
}
|
|
@@ -861,7 +865,7 @@ var _e = f, Y = class B extends a {
|
|
|
861
865
|
}
|
|
862
866
|
};
|
|
863
867
|
Y.REQUIRED_METHODS = ["registerUiElements"];
|
|
864
|
-
var
|
|
868
|
+
var Re = Y;
|
|
865
869
|
export {
|
|
866
870
|
Xt as Block,
|
|
867
871
|
kt as BlockAttr,
|
|
@@ -873,7 +877,7 @@ export {
|
|
|
873
877
|
Qt as ButtonAlignBuiltInControl,
|
|
874
878
|
ft as ButtonBackgroundColorBuiltInControl,
|
|
875
879
|
Yt as ButtonBorderBuiltInControl,
|
|
876
|
-
|
|
880
|
+
Vt as ButtonBorderRadiusBuiltInControl,
|
|
877
881
|
$t as ButtonColorBuiltInControl,
|
|
878
882
|
w as ButtonControls,
|
|
879
883
|
Wt as ButtonFitToContainerBuiltInControl,
|
|
@@ -886,13 +890,13 @@ export {
|
|
|
886
890
|
Rt as ContainerControls,
|
|
887
891
|
ee as Control,
|
|
888
892
|
Ut as Extension,
|
|
889
|
-
|
|
893
|
+
Te as ExtensionBuilder,
|
|
890
894
|
F as GeneralControls,
|
|
891
|
-
|
|
895
|
+
ce as IconsRegistry,
|
|
892
896
|
H as ImageControls,
|
|
893
897
|
re as ImageMarginsBuiltInControl,
|
|
894
898
|
ne as ImageSizeBuiltInControl,
|
|
895
|
-
|
|
899
|
+
_e as ModificationDescription,
|
|
896
900
|
se as SettingsPanelRegistry,
|
|
897
901
|
ae as SettingsPanelTab,
|
|
898
902
|
Lt as SettingsTab,
|
|
@@ -901,11 +905,12 @@ export {
|
|
|
901
905
|
Ee as TextColorBuiltInControl,
|
|
902
906
|
P as TextControls,
|
|
903
907
|
le as TextFontFamilyBuiltInControl,
|
|
904
|
-
de as
|
|
905
|
-
ue as
|
|
906
|
-
Ie as
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
he as
|
|
908
|
+
de as TextLineSpacingBuiltInControl,
|
|
909
|
+
ue as TextPaddingsBuiltInControl,
|
|
910
|
+
Ie as TextSizeBuiltInControl,
|
|
911
|
+
Oe as TextStyleBuiltInControl,
|
|
912
|
+
Gt as UEAttr,
|
|
913
|
+
he as UIElement,
|
|
914
|
+
Re as UIElementTagRegistry,
|
|
910
915
|
yt as UIElementType
|
|
911
916
|
};
|