@useinsider/guido 3.0.0-beta.7a5aecd → 3.0.0-beta.8709edc
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/organisms/header/EditorActions.vue.js +1 -1
- package/dist/components/organisms/header/EditorActions.vue2.js +6 -6
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +1 -1
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +2 -2
- package/dist/config/i18n/en/tooltips.json.js +2 -1
- package/dist/extensions/Blocks/Recommendation/block.js +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +73 -71
- package/dist/extensions/Blocks/Recommendation/utils/tagName.js +6 -6
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +16 -17
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +324 -218
- package/dist/package.json.js +1 -1
- package/dist/src/components/Guido.vue.d.ts +1 -1
- package/dist/src/components/organisms/header/EditorActions.vue.d.ts +1 -1
- package/dist/src/components/organisms/header/HeaderWrapper.vue.d.ts +1 -1
- package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +3 -3
- package/package.json +3 -3
|
@@ -14,17 +14,17 @@ import P from "./MigrationConfirmModal.vue.js";
|
|
|
14
14
|
const Z = /* @__PURE__ */ E({
|
|
15
15
|
__name: "EditorActions",
|
|
16
16
|
setup(j, { expose: H }) {
|
|
17
|
-
const { config: a } = w(), { exportHtml: m } = C(), { save: p } = O(), { openVersionHistory: l, closeVersionHistory:
|
|
17
|
+
const { config: a } = w(), { exportHtml: m } = C(), { save: p } = O(), { openVersionHistory: l, closeVersionHistory: c } = k(), e = B(), u = R(), { hasMigrations: f } = I(u), s = A(), r = n(!1), i = n(!1), v = n(), S = M(), V = () => {
|
|
18
18
|
if (e.isVersionHistoryOpen) {
|
|
19
|
-
|
|
19
|
+
c();
|
|
20
20
|
return;
|
|
21
21
|
}
|
|
22
22
|
l();
|
|
23
23
|
}, T = async () => {
|
|
24
|
-
|
|
24
|
+
r.value = !0, await m(), r.value = !1;
|
|
25
25
|
}, _ = () => {
|
|
26
26
|
e.isSaveAsTemplateDrawerOpen = !0;
|
|
27
|
-
}, h = g(() => e.isVersionHistoryOpen ?
|
|
27
|
+
}, h = g(() => e.isVersionHistoryOpen ? s("newsletter.close-version-history") : s("newsletter.version-history")), x = g(
|
|
28
28
|
() => {
|
|
29
29
|
var o, t;
|
|
30
30
|
return ((t = (o = a.value) == null ? void 0 : o.features) == null ? void 0 : t.versionHistory) && !e.isPreviewModeOpen;
|
|
@@ -39,11 +39,11 @@ const Z = /* @__PURE__ */ E({
|
|
|
39
39
|
(t = v.value) == null || t.open();
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
d(o);
|
|
43
43
|
};
|
|
44
44
|
return H({
|
|
45
45
|
handleSave: y
|
|
46
|
-
}), { __sfc: !0, config: a, exportHtml: m, save: p, openVersionHistory: l, closeVersionHistory:
|
|
46
|
+
}), { __sfc: !0, config: a, exportHtml: m, save: p, openVersionHistory: l, closeVersionHistory: c, editorStore: e, templateStore: u, hasMigrations: f, trans: s, isExporting: r, isSaving: i, migrationModalRef: v, testEmailClick: S, handleVersionHistory: V, handleExport: T, handleSaveAs: _, versionHistoryTooltipText: h, isVersionHistoryButtonVisible: x, executeSave: d, handleSave: y, getTooltipOptions: b, InButtonV2: D, MigrationConfirmModal: P };
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
export {
|
|
@@ -20,7 +20,7 @@ const y = /* @__PURE__ */ u({
|
|
|
20
20
|
}), c = a(() => [
|
|
21
21
|
{
|
|
22
22
|
classes: "guido-text-block-onboarding-settings",
|
|
23
|
-
right: "
|
|
23
|
+
right: "426px",
|
|
24
24
|
top: e.value.settings.top,
|
|
25
25
|
position: e.value.settings.position,
|
|
26
26
|
title: i("email-editor.onboarding-text-block-title"),
|
|
@@ -36,7 +36,7 @@ const y = /* @__PURE__ */ u({
|
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
classes: "guido-text-block-onboarding-dynamic",
|
|
39
|
-
right: "
|
|
39
|
+
right: "426px",
|
|
40
40
|
top: e.value.dynamic.top,
|
|
41
41
|
position: e.value.dynamic.position,
|
|
42
42
|
title: i("email-editor.onboarding-dynamic-content-title"),
|
|
@@ -75,7 +75,8 @@ const e = {
|
|
|
75
75
|
"The image with the invalid link cannot be saved to the image gallery": "Enter a valid image link to continue.",
|
|
76
76
|
"The data source link is unavailable. Please, make sure there is an access to the data source.": "Enter an accessible Data Source Link to contiue.",
|
|
77
77
|
"The file should not exceed the maximum resolution of {maxImageResolution}px.": "Upload files up to 1024x512 pixels to continue.",
|
|
78
|
-
"The option is disabled because was overridden in the Code editor": "The option is disabled because it was overridden in the Code Editor."
|
|
78
|
+
"The option is disabled because was overridden in the Code editor": "The option is disabled because it was overridden in the Code Editor.",
|
|
79
|
+
"Dropdown with a list of available data services, preliminarily created in the Data section → Services tab of the Account.": "Service for Data Collection lets you enter a form submission URL for the recipients to submit."
|
|
79
80
|
};
|
|
80
81
|
export {
|
|
81
82
|
e as default
|
|
@@ -148,7 +148,7 @@ class T extends B {
|
|
|
148
148
|
if (e && e.includes(c))
|
|
149
149
|
return t;
|
|
150
150
|
}
|
|
151
|
-
return "querySelector" in t ? t.querySelector(`.${c}`) : null;
|
|
151
|
+
return "querySelector" in t ? t.querySelector(`.${c}`) ?? null : null;
|
|
152
152
|
}
|
|
153
153
|
/**
|
|
154
154
|
* Migrate configuration from legacy format
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var G = Object.defineProperty;
|
|
2
|
-
var R = (p,
|
|
3
|
-
var
|
|
4
|
-
import { EditorStatePropertyType as y, PreviewDeviceMode as w, ModificationDescription as
|
|
2
|
+
var R = (p, s, t) => s in p ? G(p, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[s] = t;
|
|
3
|
+
var C = (p, s, t) => R(p, typeof s != "symbol" ? s + "" : s, t);
|
|
4
|
+
import { EditorStatePropertyType as y, PreviewDeviceMode as w, ModificationDescription as m } from "../../../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
5
5
|
import { CommonControl as V } from "../../../common-control.js";
|
|
6
|
-
import { DESKTOP_CONTAINER_SELECTOR as
|
|
7
|
-
import { SPACING_STEP as
|
|
6
|
+
import { DESKTOP_CONTAINER_SELECTOR as S, MOBILE_CONTAINER_SELECTOR as E } from "../../constants/selectors.js";
|
|
7
|
+
import { SPACING_STEP as _, MAX_SPACING as N, MIN_SPACING as b, DEFAULT_COLUMN_SPACING as g, DEFAULT_ROW_SPACING as P } from "../../constants/layout.js";
|
|
8
8
|
import { RecommendationConfigService as d } from "../../services/configService.js";
|
|
9
9
|
import { useRecommendationExtensionStore as B } from "../../store/recommendation.js";
|
|
10
|
-
import { safeGetStyle as
|
|
11
|
-
import { getCurrentLayout as
|
|
12
|
-
import { useDebounceFn as
|
|
10
|
+
import { safeGetStyle as L, safeGetParent as U } from "../../utils/tagName.js";
|
|
11
|
+
import { getCurrentLayout as f, getBlockElement as x } from "../main/utils.js";
|
|
12
|
+
import { useDebounceFn as O } from "../../../../../node_modules/@vueuse/shared/index.js";
|
|
13
13
|
const W = "recommendation-spacing-control", i = {
|
|
14
14
|
COLUMN_SPACING: "columnSpacing",
|
|
15
15
|
COLUMN_SPACING_LABEL: "columnSpacingLabel",
|
|
@@ -19,46 +19,46 @@ const W = "recommendation-spacing-control", i = {
|
|
|
19
19
|
MOBILE_COLUMN_SPACING_LABEL: "mobileColumnSpacingLabel",
|
|
20
20
|
MOBILE_ROW_SPACING: "mobileRowSpacing",
|
|
21
21
|
MOBILE_ROW_SPACING_LABEL: "mobileRowSpacingLabel"
|
|
22
|
-
},
|
|
22
|
+
}, A = {
|
|
23
23
|
COLUMN_SPACING: "data-column-spacing",
|
|
24
24
|
ROW_SPACING: "data-row-spacing",
|
|
25
25
|
MOBILE_COLUMN_SPACING: "data-mobile-column-spacing",
|
|
26
26
|
MOBILE_ROW_SPACING: "data-mobile-row-spacing"
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function I(p, s) {
|
|
29
29
|
if (!p)
|
|
30
|
-
return
|
|
30
|
+
return s;
|
|
31
31
|
const t = parseFloat(p);
|
|
32
|
-
return Number.isNaN(t) ?
|
|
32
|
+
return Number.isNaN(t) ? s : t;
|
|
33
33
|
}
|
|
34
34
|
class X extends V {
|
|
35
35
|
constructor() {
|
|
36
36
|
super(...arguments);
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
C(this, "store", B());
|
|
38
|
+
C(this, "unsubscribeOrientation", null);
|
|
39
39
|
/**
|
|
40
40
|
* Debounced version of _onColumnSpacingChange
|
|
41
41
|
* Prevents excessive DOM updates when user rapidly adjusts the counter
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
C(this, "_debouncedOnColumnSpacingChange", O((t) => {
|
|
44
44
|
this._onColumnSpacingChange(t);
|
|
45
45
|
}, 300));
|
|
46
46
|
/**
|
|
47
47
|
* Debounced version of _onRowSpacingChange
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
C(this, "_debouncedOnRowSpacingChange", O((t) => {
|
|
50
50
|
this._onRowSpacingChange(t);
|
|
51
51
|
}, 300));
|
|
52
52
|
/**
|
|
53
53
|
* Debounced version of _onMobileColumnSpacingChange
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
C(this, "_debouncedOnMobileColumnSpacingChange", O((t) => {
|
|
56
56
|
this._onMobileColumnSpacingChange(t);
|
|
57
57
|
}, 300));
|
|
58
58
|
/**
|
|
59
59
|
* Debounced version of _onMobileRowSpacingChange
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
C(this, "_debouncedOnMobileRowSpacingChange", O((t) => {
|
|
62
62
|
this._onMobileRowSpacingChange(t);
|
|
63
63
|
}, 300));
|
|
64
64
|
}
|
|
@@ -72,16 +72,16 @@ class X extends V {
|
|
|
72
72
|
this._GuLabel({ text: "Column Spacing on Desktop (px)", name: i.COLUMN_SPACING_LABEL }),
|
|
73
73
|
this._GuCounter({
|
|
74
74
|
name: i.COLUMN_SPACING,
|
|
75
|
-
minValue:
|
|
76
|
-
maxValue:
|
|
77
|
-
step:
|
|
75
|
+
minValue: b,
|
|
76
|
+
maxValue: N,
|
|
77
|
+
step: _
|
|
78
78
|
}),
|
|
79
79
|
this._GuLabel({ text: "Row Spacing on Desktop (px)", name: i.ROW_SPACING_LABEL }),
|
|
80
80
|
this._GuCounter({
|
|
81
81
|
name: i.ROW_SPACING,
|
|
82
|
-
minValue:
|
|
83
|
-
maxValue:
|
|
84
|
-
step:
|
|
82
|
+
minValue: b,
|
|
83
|
+
maxValue: N,
|
|
84
|
+
step: _
|
|
85
85
|
}),
|
|
86
86
|
this._GuLabel({
|
|
87
87
|
text: "Column Spacing on Mobile (px)",
|
|
@@ -89,16 +89,16 @@ class X extends V {
|
|
|
89
89
|
}),
|
|
90
90
|
this._GuCounter({
|
|
91
91
|
name: i.MOBILE_COLUMN_SPACING,
|
|
92
|
-
minValue:
|
|
93
|
-
maxValue:
|
|
94
|
-
step:
|
|
92
|
+
minValue: b,
|
|
93
|
+
maxValue: N,
|
|
94
|
+
step: _
|
|
95
95
|
}),
|
|
96
96
|
this._GuLabel({ text: "Row Spacing on Mobile (px)", name: i.MOBILE_ROW_SPACING_LABEL }),
|
|
97
97
|
this._GuCounter({
|
|
98
98
|
name: i.MOBILE_ROW_SPACING,
|
|
99
|
-
minValue:
|
|
100
|
-
maxValue:
|
|
101
|
-
step:
|
|
99
|
+
minValue: b,
|
|
100
|
+
maxValue: N,
|
|
101
|
+
step: _
|
|
102
102
|
})
|
|
103
103
|
])}
|
|
104
104
|
</div>
|
|
@@ -132,8 +132,8 @@ class X extends V {
|
|
|
132
132
|
_updateSpacingVisibility() {
|
|
133
133
|
if (!this.api)
|
|
134
134
|
return;
|
|
135
|
-
const t = d.getConfig(this.currentNode), e = this.store.recommendationConfigs.orientation, n = t.layout || e ||
|
|
136
|
-
this.api.setVisibility(i.COLUMN_SPACING, o && !r &&
|
|
135
|
+
const t = d.getConfig(this.currentNode), e = this.store.recommendationConfigs.orientation, n = t.layout || e || f(this.currentNode), o = n === "grid", a = n === "list", r = this._isMobileMode(), c = t.cardsInRow > 1, u = t.mobileCardsInRow > 1;
|
|
136
|
+
this.api.setVisibility(i.COLUMN_SPACING, o && !r && c), this.api.setVisibility(i.COLUMN_SPACING_LABEL, o && !r && c), this.api.setVisibility(i.ROW_SPACING, a || !r), this.api.setVisibility(i.ROW_SPACING_LABEL, a || !r), this.api.setVisibility(i.MOBILE_COLUMN_SPACING, o && r && u), this.api.setVisibility(i.MOBILE_COLUMN_SPACING_LABEL, o && r && u), this.api.setVisibility(i.MOBILE_ROW_SPACING, !a && r), this.api.setVisibility(i.MOBILE_ROW_SPACING_LABEL, !a && r);
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
139
|
* Reads spacing values from node config first, falls back to DOM styles.
|
|
@@ -159,20 +159,20 @@ class X extends V {
|
|
|
159
159
|
*/
|
|
160
160
|
_getStoredColumnSpacing() {
|
|
161
161
|
if (!this.currentNode)
|
|
162
|
-
return
|
|
163
|
-
const t = this.currentNode.querySelector(
|
|
164
|
-
if (
|
|
165
|
-
const u = t.querySelector(".recommendation-attribute-row"),
|
|
166
|
-
if (!
|
|
167
|
-
return
|
|
168
|
-
const M =
|
|
169
|
-
return M.length < 2 ?
|
|
162
|
+
return g;
|
|
163
|
+
const t = this.currentNode.querySelector(S) ?? this.currentNode;
|
|
164
|
+
if (f(this.currentNode) === "grid") {
|
|
165
|
+
const u = t.querySelector(".recommendation-attribute-row"), l = (u == null ? void 0 : u.querySelector("td")) ?? null, h = L(l, "padding");
|
|
166
|
+
if (!h)
|
|
167
|
+
return g;
|
|
168
|
+
const M = h.trim().split(/\s+/);
|
|
169
|
+
return M.length < 2 ? g : I(M[1], g / 2) * 2;
|
|
170
170
|
}
|
|
171
|
-
const n = t.querySelector(".product-card-wrapper"), o = U(n), a =
|
|
171
|
+
const n = t.querySelector(".product-card-wrapper") ?? null, o = U(n), a = L(o, "padding");
|
|
172
172
|
if (!a)
|
|
173
|
-
return
|
|
173
|
+
return g;
|
|
174
174
|
const r = a.trim().split(/\s+/);
|
|
175
|
-
return r.length < 2 ?
|
|
175
|
+
return r.length < 2 ? g : I(r[1], g / 2) * 2;
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
178
178
|
* Gets stored row spacing from the first spacer element's height style
|
|
@@ -181,8 +181,8 @@ class X extends V {
|
|
|
181
181
|
_getStoredRowSpacing() {
|
|
182
182
|
if (!this.currentNode)
|
|
183
183
|
return P;
|
|
184
|
-
const e = (this.currentNode.querySelector(
|
|
185
|
-
return
|
|
184
|
+
const e = (this.currentNode.querySelector(S) ?? this.currentNode).querySelector(".spacer") ?? null, n = L(e, "height");
|
|
185
|
+
return I(n, P);
|
|
186
186
|
}
|
|
187
187
|
// ========================================================================
|
|
188
188
|
// Desktop Spacing Handlers
|
|
@@ -199,17 +199,18 @@ class X extends V {
|
|
|
199
199
|
this.currentNode,
|
|
200
200
|
{ columnSpacing: t },
|
|
201
201
|
`Changed column spacing to ${t}px`
|
|
202
|
-
), this._storeDataAttribute(
|
|
203
|
-
const n = d.getConfig(this.currentNode).layout ||
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
).forEach((
|
|
207
|
-
o.modifyHtml(
|
|
202
|
+
), this._storeDataAttribute(A.COLUMN_SPACING, t);
|
|
203
|
+
const n = d.getConfig(this.currentNode).layout || f(this.currentNode), o = this.api.getDocumentModifier(), r = `0 ${t / 2}px`, c = this.currentNode.querySelector(S);
|
|
204
|
+
c && (n === "grid" ? Array.from(
|
|
205
|
+
c.querySelectorAll(".attribute-cell")
|
|
206
|
+
).forEach((l) => {
|
|
207
|
+
o.modifyHtml(l).setStyle("padding", r);
|
|
208
208
|
}) : Array.from(
|
|
209
|
-
|
|
210
|
-
).forEach((
|
|
211
|
-
"parent" in
|
|
212
|
-
|
|
209
|
+
c.querySelectorAll(".product-card-wrapper")
|
|
210
|
+
).forEach((l) => {
|
|
211
|
+
const h = "parent" in l ? l.parent() : void 0;
|
|
212
|
+
h && o.modifyHtml(h).setStyle("padding", r);
|
|
213
|
+
}), o.apply(new m(`Update column spacing to ${t}px`)));
|
|
213
214
|
}
|
|
214
215
|
/**
|
|
215
216
|
* Handles row spacing changes for desktop.
|
|
@@ -223,8 +224,8 @@ class X extends V {
|
|
|
223
224
|
this.currentNode,
|
|
224
225
|
{ rowSpacing: t },
|
|
225
226
|
`Changed row spacing to ${t}px`
|
|
226
|
-
), this._storeDataAttribute(
|
|
227
|
-
const e = this.currentNode.querySelector(
|
|
227
|
+
), this._storeDataAttribute(A.ROW_SPACING, t);
|
|
228
|
+
const e = this.currentNode.querySelector(S);
|
|
228
229
|
if (!e)
|
|
229
230
|
return;
|
|
230
231
|
const n = Array.from(
|
|
@@ -235,7 +236,7 @@ class X extends V {
|
|
|
235
236
|
const o = this.api.getDocumentModifier(), a = `${t}px`;
|
|
236
237
|
n.forEach((r) => {
|
|
237
238
|
o.modifyHtml(r).setStyle("height", a);
|
|
238
|
-
}), o.apply(new
|
|
239
|
+
}), o.apply(new m(`Update row spacing to ${t}px`));
|
|
239
240
|
}
|
|
240
241
|
// ========================================================================
|
|
241
242
|
// Mobile Spacing Handlers
|
|
@@ -252,17 +253,18 @@ class X extends V {
|
|
|
252
253
|
this.currentNode,
|
|
253
254
|
{ mobileColumnSpacing: t },
|
|
254
255
|
`Changed mobile column spacing to ${t}px`
|
|
255
|
-
), this._storeDataAttribute(
|
|
256
|
-
const n = d.getConfig(this.currentNode).layout ||
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
).forEach((
|
|
260
|
-
o.modifyHtml(
|
|
256
|
+
), this._storeDataAttribute(A.MOBILE_COLUMN_SPACING, t);
|
|
257
|
+
const n = d.getConfig(this.currentNode).layout || f(this.currentNode), o = this.api.getDocumentModifier(), r = `0 ${t / 2}px`, c = this.currentNode.querySelector(E);
|
|
258
|
+
c && (n === "grid" ? Array.from(
|
|
259
|
+
c.querySelectorAll(".attribute-cell")
|
|
260
|
+
).forEach((l) => {
|
|
261
|
+
o.modifyHtml(l).setStyle("padding", r);
|
|
261
262
|
}) : Array.from(
|
|
262
|
-
|
|
263
|
-
).forEach((
|
|
264
|
-
"parent" in
|
|
265
|
-
|
|
263
|
+
c.querySelectorAll(".product-card-wrapper")
|
|
264
|
+
).forEach((l) => {
|
|
265
|
+
const h = "parent" in l ? l.parent() : void 0;
|
|
266
|
+
h && o.modifyHtml(h).setStyle("padding", r);
|
|
267
|
+
}), o.apply(new m(`Update mobile column spacing to ${t}px`)));
|
|
266
268
|
}
|
|
267
269
|
/**
|
|
268
270
|
* Handles row spacing changes for mobile.
|
|
@@ -276,7 +278,7 @@ class X extends V {
|
|
|
276
278
|
this.currentNode,
|
|
277
279
|
{ mobileRowSpacing: t },
|
|
278
280
|
`Changed mobile row spacing to ${t}px`
|
|
279
|
-
), this._storeDataAttribute(
|
|
281
|
+
), this._storeDataAttribute(A.MOBILE_ROW_SPACING, t);
|
|
280
282
|
const e = this.currentNode.querySelector(E);
|
|
281
283
|
if (!e)
|
|
282
284
|
return;
|
|
@@ -288,7 +290,7 @@ class X extends V {
|
|
|
288
290
|
const o = this.api.getDocumentModifier(), a = `${t}px`;
|
|
289
291
|
n.forEach((r) => {
|
|
290
292
|
o.modifyHtml(r).setStyle("height", a);
|
|
291
|
-
}), o.apply(new
|
|
293
|
+
}), o.apply(new m(`Update mobile row spacing to ${t}px`));
|
|
292
294
|
}
|
|
293
295
|
// ========================================================================
|
|
294
296
|
// Data Attribute Storage
|
|
@@ -298,7 +300,7 @@ class X extends V {
|
|
|
298
300
|
*/
|
|
299
301
|
_storeDataAttribute(t, e) {
|
|
300
302
|
const n = x(this.currentNode);
|
|
301
|
-
n && this.api.getDocumentModifier().modifyHtml(n).setAttribute(t, e.toString()).apply(new
|
|
303
|
+
n && this.api.getDocumentModifier().modifyHtml(n).setAttribute(t, e.toString()).apply(new m(`Store ${t}`));
|
|
302
304
|
}
|
|
303
305
|
// ========================================================================
|
|
304
306
|
// Event Listeners
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
function a(t) {
|
|
2
2
|
return typeof t == "object" && t !== null && "tagName" in t && typeof t.tagName == "string";
|
|
3
3
|
}
|
|
4
|
-
function
|
|
4
|
+
function n(t) {
|
|
5
5
|
return typeof t == "object" && t !== null && "getTagName" in t && typeof t.getTagName == "function";
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function r(t) {
|
|
8
8
|
return typeof t == "object" && t !== null && "getStyle" in t && typeof t.getStyle == "function";
|
|
9
9
|
}
|
|
10
10
|
function u(t) {
|
|
@@ -14,13 +14,13 @@ function g(t) {
|
|
|
14
14
|
return typeof t == "object" && t !== null && "tagName" in t && t.tagName === "TD";
|
|
15
15
|
}
|
|
16
16
|
function p(t, e) {
|
|
17
|
-
return !t || !
|
|
17
|
+
return !t || !r(t) ? null : t.getStyle(e);
|
|
18
18
|
}
|
|
19
19
|
function N(t) {
|
|
20
|
-
return !t || !u(t) ? null : t.parent();
|
|
20
|
+
return !t || !u(t) ? null : t.parent() ?? null;
|
|
21
21
|
}
|
|
22
22
|
function l(t, e = "UNKNOWN") {
|
|
23
|
-
return t ? a(t) ? t.tagName.toUpperCase() :
|
|
23
|
+
return t ? a(t) ? t.tagName.toUpperCase() : n(t) ? t.getTagName().toUpperCase() : e : e;
|
|
24
24
|
}
|
|
25
25
|
const f = /* @__PURE__ */ new Set(["TD", "BLOCK_IMAGE", "BLOCK_BUTTON"]);
|
|
26
26
|
function i(t) {
|
|
@@ -36,7 +36,7 @@ function s(t) {
|
|
|
36
36
|
export {
|
|
37
37
|
s as getTableDisplayValue,
|
|
38
38
|
l as getTagName,
|
|
39
|
-
|
|
39
|
+
r as hasGetStyle,
|
|
40
40
|
u as hasParent,
|
|
41
41
|
c as isTableCellNode,
|
|
42
42
|
i as isTableCellTag,
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import { SettingsPanelRegistry as e, SettingsPanelTab as
|
|
1
|
+
import { SettingsPanelRegistry as e, SettingsPanelTab as O, SettingsTab as t, TextControls as N } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
2
|
import { UNSUBSCRIBE_BLOCK_ID as I } from "./block.js";
|
|
3
3
|
import { UNSUBSCRIBE_CONTROL_ID as _ } from "./control.js";
|
|
4
|
-
class
|
|
4
|
+
class o extends e {
|
|
5
5
|
registerBlockControls(T) {
|
|
6
6
|
T[I] = [
|
|
7
|
-
new
|
|
7
|
+
new O(
|
|
8
8
|
t.SETTINGS,
|
|
9
9
|
[
|
|
10
10
|
_,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
N.FORMAT,
|
|
12
|
+
N.ALIGN,
|
|
13
|
+
N.LINE_HEIGHT,
|
|
14
|
+
N.DIRECTION,
|
|
15
|
+
N.INTERNAL_INDENTS,
|
|
16
|
+
N.HIDDEN_NODE
|
|
17
17
|
]
|
|
18
18
|
),
|
|
19
|
-
new
|
|
19
|
+
new O(
|
|
20
20
|
t.STYLES,
|
|
21
21
|
[
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
O.LINKS_COLOR
|
|
22
|
+
N.TEXT_BLOCK_BACKGROUND_COLOR,
|
|
23
|
+
N.FONT_FAMILY,
|
|
24
|
+
N.FONT_SIZE,
|
|
25
|
+
N.FONT_COLOR,
|
|
26
|
+
N.FONT_BACKGROUND_COLOR
|
|
28
27
|
]
|
|
29
28
|
)
|
|
30
29
|
];
|
|
31
30
|
}
|
|
32
31
|
}
|
|
33
32
|
export {
|
|
34
|
-
|
|
33
|
+
o as SettingsPanel
|
|
35
34
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.gap-16[data-v-3b53a736],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-cd76c125] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-079d2bf7] .in-progress-wrapper__progress p span:last-child{display:none!important}.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}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-64c52560]{gap:8px}.version-history__toolbar[data-v-64c52560]{gap:4px}.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}.editor-actions[data-v-
|
|
1
|
+
.gap-16[data-v-3b53a736],.gap-16[data-v-0e1b0c54]{gap:16px}[data-v-cd76c125] .in-button-v2__wrapper{line-height:0}[data-v-22226124] .in-segments-wrapper__button_selected,[data-v-22226124] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb;color:#0010ac;border-color:#0010ac}[data-v-079d2bf7] .in-progress-wrapper__progress p span:last-child{display:none!important}.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}.editor-toolbar[data-v-173c3a40]{gap:4px}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history[data-v-64c52560]{gap:8px}.version-history__toolbar[data-v-64c52560]{gap:4px}.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}.editor-actions[data-v-a289b9e9]{gap:4px}.header-wrapper[data-v-5c02dcc7]{min-width:1000px}.guido-loading__wrapper[data-v-07c4b2d8]{height:100%;top:75px!important;bottom:0!important}.guido-editor__wrapper[data-v-a26d7792]{position:relative;width:100%;height:calc(100vh - 128px)}.guido-editor__container[data-v-a26d7792]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-a26d7792]{height:calc(100vh - 75px)}[data-v-293f1c47] .in-breadcrumb-wrapper__links{cursor:pointer}.templates-wrapper[data-v-df672485]{gap:16px;grid-template-columns:repeat(3,1fr)}.templates-wrapper .template-wrapper[data-v-df672485]{cursor:pointer}.templates-wrapper .template-wrapper .template-container[data-v-df672485]{height:274px;padding:2px;transition:none}.templates-wrapper .template-wrapper .template-container.selected[data-v-df672485]{padding:1px}.templates-wrapper .template-wrapper .template-container .thumbnail[data-v-df672485]{object-fit:cover;transform:scale(1)}[data-v-43c617a7] .guido__verion-history-view-option-selection-desktop svg,[data-v-43c617a7] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-43c617a7] .in-segments-wrapper__button_selected,[data-v-43c617a7] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}.error-list[data-v-c3fd5d4b]{gap:16px}.desktop-browser-header[data-v-d86c5af5]{height:79px;min-height:79px}.desktop-browser-header__left[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:378px}.desktop-browser-header__center[data-v-d86c5af5]{height:79px;background-repeat:repeat-x;background-size:auto 100%;background-position:left top}.desktop-browser-header__right[data-v-d86c5af5]{-webkit-user-drag:none;height:79px;width:112px}.desktop-preview[data-v-988f8da6]{min-width:602px;height:70vh;min-height:583px;border-radius:10px}.desktop-preview iframe[data-v-988f8da6]{min-height:504px}.iframe-wrapper[data-v-e0424e99]{width:258px}.iframe-scaled[data-v-e0424e99]{width:320px;height:124.0310077519%;transform:scale(.80625);transform-origin:top left}.cropped-text[data-v-eb3d05d7]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-preview-wrapper__phone[data-v-3f472f96]{width:282px}.mobile-preview-wrapper__phone img[data-v-3f472f96]{object-fit:cover;border-radius:44px}.mobile-preview-wrapper__content[data-v-3f472f96]{width:258px;height:450px;left:12px}[data-v-29b9af29] .vueperslides__bullets,[data-v-dd1a237a] .vueperslides__bullets{pointer-events:none!important}[data-v-dd1a237a] .vueperslides__parallax-wrapper{height:110px!important}[data-v-d073b1dc] .vueperslides__bullets{pointer-events:none!important}[data-v-d073b1dc] .vueperslides__parallax-wrapper{height:110px!important}
|