@useinsider/guido 1.0.2-beta.e5fcba7 → 1.0.2-beta.efaabbe
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -24
- package/dist/@types/events.d.ts +0 -6
- package/dist/@types/generic.d.ts +0 -4
- package/dist/components/Guido.vue.js +2 -2
- package/dist/components/Guido.vue2.js +35 -37
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -3
- package/dist/components/organisms/header/LeftSlot.vue.js +10 -10
- package/dist/components/organisms/header/LeftSlot.vue2.js +10 -23
- package/dist/components/organisms/header/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/ViewOptions.vue2.js +5 -5
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
- package/dist/composables/useCustomInterfaceAppearance.js +18 -22
- package/dist/composables/useHtmlValidator.d.ts +1 -2
- package/dist/composables/useHtmlValidator.js +75 -85
- package/dist/composables/usePartner.d.ts +0 -1
- package/dist/composables/usePartner.js +9 -16
- package/dist/composables/useSave.js +6 -6
- package/dist/composables/useStripo.js +22 -24
- package/dist/composables/useVersionHistoryApi.js +9 -10
- package/dist/enums/defaults.d.ts +0 -1
- package/dist/enums/defaults.js +10 -42
- package/dist/guido.css +1 -1
- package/dist/static/styles/components/alert-message.css.js +2 -32
- package/dist/static/styles/components/button.css.js +2 -32
- package/dist/static/styles/components/wide-panel.css.js +1 -5
- package/dist/static/styles/customEditorStyle.css.js +0 -6
- package/dist/static/styles/variables.css.js +0 -10
- package/dist/stores/dynamic-content.d.ts +0 -12
- package/dist/stores/dynamic-content.js +6 -7
- package/dist/stores/editor.d.ts +0 -21
- package/dist/stores/editor.js +1 -2
- package/dist/utils/genericUtil.js +6 -9
- package/package.json +1 -1
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +0 -20
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +0 -37
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +0 -83
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +0 -17
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +0 -30
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +0 -19
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +0 -43
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +0 -74
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +0 -20
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +0 -37
- package/dist/composables/useStripoEventHandler.d.ts +0 -3
- package/dist/composables/useStripoEventHandler.js +0 -20
- package/dist/enums/onboarding.d.ts +0 -1
- package/dist/enums/onboarding.js +0 -8
- package/dist/mock/api/user-modal-state.d.ts +0 -2
- package/dist/services/onboardingApi.d.ts +0 -4
- package/dist/services/onboardingApi.js +0 -23
- package/dist/static/assets/onboarding-img.svg.js +0 -4
- package/dist/static/styles/components/notification.css.js +0 -55
- package/dist/static/styles/components/popup.css.js +0 -68
- package/dist/stores/onboarding.d.ts +0 -1068
- package/dist/stores/onboarding.js +0 -95
|
@@ -1,129 +1,119 @@
|
|
|
1
|
-
import { useConfig as
|
|
2
|
-
import { TemplateTypes as
|
|
3
|
-
import { DISPLAY_CONDITIONS_REGEX as
|
|
4
|
-
import { ToasterTypeOptions as
|
|
1
|
+
import { useConfig as V } from "./useConfig.js";
|
|
2
|
+
import { TemplateTypes as H } from "../enums/defaults.js";
|
|
3
|
+
import { DISPLAY_CONDITIONS_REGEX as O, DISPLAY_CONDITIONS_EXCEPTIONS_REGEX as B, CampaignCouldNotBeSavedKey as _, CanNotMakeAnyChangesForRunningKey as R } from "../enums/html-validator.js";
|
|
4
|
+
import { ToasterTypeOptions as r } from "../enums/toaster.js";
|
|
5
5
|
import { useRecommendationStore as D } from "../stores/recommendation.js";
|
|
6
6
|
import { base64EncodeWithSpecialChars as P } from "../utils/base64.js";
|
|
7
|
-
import { useHttp as
|
|
7
|
+
import { useHttp as X } from "./useHttp.js";
|
|
8
8
|
import { useToaster as j } from "./useToaster.js";
|
|
9
|
-
import { useTranslations as
|
|
9
|
+
import { useTranslations as z } from "./useTranslations.js";
|
|
10
10
|
const tt = () => {
|
|
11
11
|
var d;
|
|
12
|
-
const { showToaster:
|
|
12
|
+
const { showToaster: a } = j(), { post: y } = X(), { config: C } = V(), i = z(), m = D(), f = ((d = C.partner) == null ? void 0 : d.messageType) === H.transactional, h = async (t) => {
|
|
13
13
|
const e = await y(
|
|
14
14
|
"/newsletter/template-library/check-template-html-body",
|
|
15
15
|
{ html: P(t) }
|
|
16
|
-
), { status: n, message:
|
|
17
|
-
return n ||
|
|
18
|
-
type:
|
|
19
|
-
message: n === void 0 ?
|
|
20
|
-
}),
|
|
21
|
-
type:
|
|
22
|
-
message:
|
|
16
|
+
), { status: n, message: c } = e.data;
|
|
17
|
+
return n || a({
|
|
18
|
+
type: r.Alert,
|
|
19
|
+
message: n === void 0 ? c : i("newsletter.invalid-url-link-for-toaster")
|
|
20
|
+
}), i(_), c === i(R) && a({
|
|
21
|
+
type: r.Alert,
|
|
22
|
+
message: i("newsletter.already-in-progress")
|
|
23
23
|
}), n;
|
|
24
24
|
}, v = (t) => !["if", "endif", "else", "elif", "now"].includes(t.toLowerCase()), w = (t) => ["if", "endif"].includes(t.toLowerCase()), S = (t, s) => {
|
|
25
25
|
const e = t.match(/({%(.*?)%})/g);
|
|
26
26
|
let n = !0;
|
|
27
|
-
return e !== null && !
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
const [l] =
|
|
31
|
-
v(l) && !s.includes(l) && (
|
|
32
|
-
type:
|
|
33
|
-
message:
|
|
27
|
+
return e !== null && !f && e.forEach((c) => {
|
|
28
|
+
const o = c.slice(2, -2).trim().match(/(".*?"|[^"\s]+)(?=\s*|\s*$)/g);
|
|
29
|
+
if (o && o.length > 0) {
|
|
30
|
+
const [l] = o;
|
|
31
|
+
v(l) && !s.includes(l) && (a({
|
|
32
|
+
type: r.Warning,
|
|
33
|
+
message: i("custom-fields.invalid-custom-fields")
|
|
34
34
|
}), n = !1);
|
|
35
35
|
}
|
|
36
36
|
}), n;
|
|
37
37
|
}, E = async (t, s, e) => {
|
|
38
|
-
const n = e ? await
|
|
38
|
+
const n = e ? await h(t) : !0;
|
|
39
39
|
return S(t, s) && n;
|
|
40
|
-
}, T = (t) => t.length > 0 ? !0 : (
|
|
41
|
-
type:
|
|
42
|
-
message:
|
|
43
|
-
}), !1),
|
|
40
|
+
}, T = (t) => t.length > 0 ? !0 : (a({
|
|
41
|
+
type: r.Warning,
|
|
42
|
+
message: i("newsletter.html-content-is-empty")
|
|
43
|
+
}), !1), I = (t) => {
|
|
44
44
|
const s = (t.match(/{/gm) || []).length, e = (t.match(/}/gm) || []).length;
|
|
45
|
-
return s > e &&
|
|
46
|
-
type:
|
|
47
|
-
message:
|
|
48
|
-
}), s < e &&
|
|
49
|
-
type:
|
|
50
|
-
message:
|
|
45
|
+
return s > e && a({
|
|
46
|
+
type: r.Warning,
|
|
47
|
+
message: i("custom-fields.missing-closing-braces")
|
|
48
|
+
}), s < e && a({
|
|
49
|
+
type: r.Warning,
|
|
50
|
+
message: i("custom-fields.missing-opening-braces")
|
|
51
51
|
}), s === e;
|
|
52
|
-
},
|
|
52
|
+
}, A = (t) => {
|
|
53
53
|
const s = t.match(/{{\s*(\w+\s+((\w+\|\w+)|(\w+)))\s*}}/gm) === null;
|
|
54
|
-
return s ||
|
|
55
|
-
type:
|
|
56
|
-
message:
|
|
54
|
+
return s || a({
|
|
55
|
+
type: r.Warning,
|
|
56
|
+
message: i("custom-fields.invalid-custom-fields")
|
|
57
57
|
}), s;
|
|
58
|
-
},
|
|
58
|
+
}, W = (t, s) => {
|
|
59
59
|
const e = t.match(/{{([a-zA-Z0-9_\s]*)}}/gm);
|
|
60
|
-
if (e && !
|
|
61
|
-
const n =
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
</ul>
|
|
70
|
-
`;
|
|
71
|
-
return r({
|
|
72
|
-
type: c.Alert,
|
|
73
|
-
message: o("custom-fields.invalid-custom-fields") + i
|
|
74
|
-
}), !1;
|
|
75
|
-
}
|
|
60
|
+
if (e && !f) {
|
|
61
|
+
const n = s.map((o) => o.toLowerCase()), c = e.some((o) => {
|
|
62
|
+
const l = o.replace("{{", "").replace("}}", "").trim().toLowerCase();
|
|
63
|
+
return !n.includes(l) || l === "";
|
|
64
|
+
});
|
|
65
|
+
return c && a({
|
|
66
|
+
type: r.Warning,
|
|
67
|
+
message: i("custom-fields.invalid-custom-fields")
|
|
68
|
+
}), !c;
|
|
76
69
|
}
|
|
77
70
|
return !0;
|
|
78
|
-
},
|
|
71
|
+
}, x = (t) => {
|
|
79
72
|
const s = t.match(/{%(.*?)%}/g), e = [];
|
|
80
73
|
let n = !0;
|
|
81
|
-
if (s && s.forEach((
|
|
82
|
-
const
|
|
83
|
-
(!
|
|
84
|
-
type:
|
|
85
|
-
message:
|
|
86
|
-
}), n = !1),
|
|
87
|
-
|
|
88
|
-
type:
|
|
89
|
-
message:
|
|
74
|
+
if (s && s.forEach((c) => {
|
|
75
|
+
const o = c.match(O), l = c.match(B), L = (o == null ? void 0 : o.join("")) || "";
|
|
76
|
+
(!o || c !== L) && !l && (a({
|
|
77
|
+
type: r.Alert,
|
|
78
|
+
message: i("newsletter.display-conditions-invalid-syntax")
|
|
79
|
+
}), n = !1), o && o.forEach((u) => {
|
|
80
|
+
u.trim() === "=" && (a({
|
|
81
|
+
type: r.Alert,
|
|
82
|
+
message: i("custom-conditions.wrong-equality-operators")
|
|
90
83
|
}), n = !1);
|
|
91
|
-
const g =
|
|
84
|
+
const g = u.match(/^[a-zA-Z]*$/g);
|
|
92
85
|
g && g.forEach((p) => {
|
|
93
86
|
w(p) && e.push(p);
|
|
94
87
|
});
|
|
95
88
|
});
|
|
96
89
|
}), e.length) {
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
type:
|
|
100
|
-
message:
|
|
90
|
+
const c = e.filter((l) => l === "if"), o = e.filter((l) => l === "endif");
|
|
91
|
+
c.length !== o.length && (a({
|
|
92
|
+
type: r.Alert,
|
|
93
|
+
message: i("custom-conditions.missing-if-endif-tag")
|
|
101
94
|
}), n = !1);
|
|
102
95
|
}
|
|
103
96
|
return n;
|
|
104
97
|
}, b = (t) => {
|
|
105
98
|
const s = (t.match(/{% /gm) || []).length, e = (t.match(/ %}/gm) || []).length, n = s === e;
|
|
106
|
-
return n ||
|
|
107
|
-
type:
|
|
108
|
-
message:
|
|
99
|
+
return n || a({
|
|
100
|
+
type: r.Warning,
|
|
101
|
+
message: i("custom-conditions.no-space-after-braces")
|
|
109
102
|
}), n;
|
|
110
|
-
},
|
|
111
|
-
type:
|
|
112
|
-
message:
|
|
113
|
-
}), !1) : !0,
|
|
114
|
-
type:
|
|
115
|
-
message:
|
|
116
|
-
}), !1) : !0,
|
|
103
|
+
}, N = (t) => (t.match(/({%(.*?)%})/g) || []).filter((e) => e.includes("if")).map((e) => (e.match(/{{.*}}/gm) || []).length).reduce((e, n) => e + n, 0) > 0 ? (a({
|
|
104
|
+
type: r.Warning,
|
|
105
|
+
message: i("custom-conditions.no-braces-inside-if-tag")
|
|
106
|
+
}), !1) : !0, k = () => m.recommendationConfigs && Object.values(m.recommendationConfigs).find((s) => s.filters.find((e) => e.value === "")) !== void 0 ? (a({
|
|
107
|
+
type: r.Alert,
|
|
108
|
+
message: i("newsletter.fill-all-necessary-fields")
|
|
109
|
+
}), !1) : !0, F = (t) => {
|
|
117
110
|
const s = /src="[^"]*\.(svg|pst)"/gm;
|
|
118
|
-
return t.match(s) === null ? !0 : (
|
|
119
|
-
type:
|
|
120
|
-
message:
|
|
111
|
+
return t.match(s) === null ? !0 : (a({
|
|
112
|
+
type: r.Alert,
|
|
113
|
+
message: i("newsletter.invalid-image-type")
|
|
121
114
|
}), !1);
|
|
122
115
|
};
|
|
123
|
-
return { validateHtml: async (t, s, e = !1) =>
|
|
124
|
-
const n = s.map((i) => i.value);
|
|
125
|
-
return await E(t, n, e) && T(t) && A(t) && I(t) && F(t, n) && W(t) && b(t) && x(t) && L() && N(t);
|
|
126
|
-
} };
|
|
116
|
+
return { validateHtml: async (t, s, e = !1) => await E(t, s, e) && T(t) && I(t) && A(t) && W(t, s) && x(t) && b(t) && N(t) && k() && F(t) };
|
|
127
117
|
};
|
|
128
118
|
export {
|
|
129
119
|
tt as useHtmlValidator
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
},
|
|
10
|
-
isTestPartner: () => {
|
|
11
|
-
const t = e();
|
|
12
|
-
return r.includes(t);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
};
|
|
1
|
+
import { DefaultProductType as e, ProductIds as o } from "../enums/defaults.js";
|
|
2
|
+
const c = () => ({
|
|
3
|
+
getPartnerName: () => window.location.hostname.split(".")[0] || "",
|
|
4
|
+
getProductType: () => {
|
|
5
|
+
const t = window.location.pathname.split("/").filter(Boolean)[0] || e;
|
|
6
|
+
return o[t] || 0;
|
|
7
|
+
}
|
|
8
|
+
});
|
|
16
9
|
export {
|
|
17
|
-
|
|
10
|
+
c as usePartner
|
|
18
11
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { useSaveStart as i, useSaveComplete as
|
|
2
|
-
import { useTemplatePreparation as
|
|
3
|
-
import { useHtmlValidator as
|
|
1
|
+
import { useSaveStart as i, useSaveComplete as l } from "./useGuidoActions.js";
|
|
2
|
+
import { useTemplatePreparation as m } from "../utils/templatePreparation.js";
|
|
3
|
+
import { useHtmlValidator as n } from "./useHtmlValidator.js";
|
|
4
4
|
const f = () => {
|
|
5
|
-
const e = i(), a =
|
|
5
|
+
const e = i(), a = l(), { validateHtml: s } = n();
|
|
6
6
|
return { save: async (o = !1) => {
|
|
7
7
|
e();
|
|
8
|
-
const { prepareTemplateDetails: r } =
|
|
9
|
-
if (await s(t.compiledHtml,
|
|
8
|
+
const { prepareTemplateDetails: r } = m(), t = await r();
|
|
9
|
+
if (await s(t.compiledHtml, [], !0))
|
|
10
10
|
return o || a(t), t;
|
|
11
11
|
} };
|
|
12
12
|
};
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { useActionsApi as
|
|
2
|
-
import { useCustomInterfaceAppearance as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const e = V(), { html: o, css: a, forceRecreate: g } = r;
|
|
1
|
+
import { useActionsApi as g } from "./useActionsApi.js";
|
|
2
|
+
import { useCustomInterfaceAppearance as f } from "./useCustomInterfaceAppearance.js";
|
|
3
|
+
import { useToaster as S } from "./useToaster.js";
|
|
4
|
+
import { displayConditions as C } from "../enums/displayConditions.js";
|
|
5
|
+
import y from "../extensions/DynamicContent/extension.js";
|
|
6
|
+
import { useStripoApi as E } from "../services/stripoApi.js";
|
|
7
|
+
import h from "../static/styles/customEditorStyle.css.js";
|
|
8
|
+
import { useEditorStore as w } from "../stores/editor.js";
|
|
9
|
+
import { dynamicContentToMergeTags as b } from "../utils/genericUtil.js";
|
|
10
|
+
const P = (s) => {
|
|
11
|
+
const { handleError: d } = S(), { getToken: c, getCustomFonts: u } = E(), l = (r, i = []) => {
|
|
12
|
+
const e = w(), { html: o, css: a, forceRecreate: p } = r;
|
|
14
13
|
window.UIEditor.initEditor(
|
|
15
14
|
document.querySelector("#guido-editor"),
|
|
16
15
|
{
|
|
17
16
|
metadata: s,
|
|
18
17
|
html: o,
|
|
19
18
|
css: a,
|
|
20
|
-
forceRecreate:
|
|
19
|
+
forceRecreate: p,
|
|
21
20
|
locale: "en",
|
|
22
21
|
undoButtonSelector: "#guido__undo-button",
|
|
23
22
|
redoButtonSelector: "#guido__redo-button",
|
|
@@ -27,10 +26,10 @@ const R = (s) => {
|
|
|
27
26
|
customAppearanceMergetags: !0,
|
|
28
27
|
customAppearanceMergetagsBorderColor: "#f1f3fe",
|
|
29
28
|
customAppearanceMergetagsBackgroundColor: "#f1f3fe",
|
|
30
|
-
customViewStyles:
|
|
29
|
+
customViewStyles: h,
|
|
31
30
|
conditionsEnabled: !0,
|
|
32
31
|
customConditionsEnabled: !0,
|
|
33
|
-
conditionCategories:
|
|
32
|
+
conditionCategories: C,
|
|
34
33
|
enableXSSSecurity: !0,
|
|
35
34
|
messageSettingsEnabled: !1,
|
|
36
35
|
selectBlockAfterDropFromSettingsPanel: !0,
|
|
@@ -41,7 +40,7 @@ const R = (s) => {
|
|
|
41
40
|
},
|
|
42
41
|
mergeTags: [
|
|
43
42
|
{
|
|
44
|
-
entries:
|
|
43
|
+
entries: b(s.preselectedDynamicContentList)
|
|
45
44
|
}
|
|
46
45
|
],
|
|
47
46
|
async onTokenRefreshRequest(t) {
|
|
@@ -54,8 +53,8 @@ const R = (s) => {
|
|
|
54
53
|
},
|
|
55
54
|
onTemplateLoaded() {
|
|
56
55
|
try {
|
|
57
|
-
const { importCss: t } =
|
|
58
|
-
t(), n(), s.onReady(), e.
|
|
56
|
+
const { importCss: t } = f(), { activateCustomViewStyles: n } = g();
|
|
57
|
+
t(), n(), s.onReady(), e.loadingStatus = !1, setTimeout(() => {
|
|
59
58
|
e.hasChanges = !1;
|
|
60
59
|
}, 1e3);
|
|
61
60
|
} catch (t) {
|
|
@@ -74,9 +73,8 @@ const R = (s) => {
|
|
|
74
73
|
onDataChanged() {
|
|
75
74
|
e.hasChanges = !0;
|
|
76
75
|
},
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
extensions: [h]
|
|
76
|
+
ignoreClickOutsideSelectors: ["#guido-dynamic-content-modal"],
|
|
77
|
+
extensions: [y]
|
|
80
78
|
}
|
|
81
79
|
);
|
|
82
80
|
}, m = (r) => new Promise((i, e) => {
|
|
@@ -95,10 +93,10 @@ const R = (s) => {
|
|
|
95
93
|
return { initPlugin: async (r) => {
|
|
96
94
|
await m(async () => {
|
|
97
95
|
const i = await u();
|
|
98
|
-
|
|
96
|
+
l(r, i);
|
|
99
97
|
});
|
|
100
98
|
} };
|
|
101
99
|
};
|
|
102
100
|
export {
|
|
103
|
-
|
|
101
|
+
P as useStripo
|
|
104
102
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { ToasterTypeOptions as t } from "../enums/toaster.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
i.$reset(), n.isVersionHistoryOpen = !1;
|
|
2
|
+
import { useVersionHistoryStore as c } from "../stores/version-history.js";
|
|
3
|
+
import { useToaster as w } from "./useToaster.js";
|
|
4
|
+
const S = () => {
|
|
5
|
+
const i = c(), { showToaster: s } = w(), n = (e) => {
|
|
6
|
+
i.$reset(), i.updateState(e);
|
|
7
|
+
}, p = () => {
|
|
8
|
+
i.$reset();
|
|
10
9
|
};
|
|
11
10
|
return {
|
|
12
11
|
openVersionHistory: () => {
|
|
13
|
-
window.StripoEditorApi.versionHistoryApi.openVersionHistory(
|
|
12
|
+
window.StripoEditorApi.versionHistoryApi.openVersionHistory(n, p);
|
|
14
13
|
},
|
|
15
14
|
closeVersionHistory: () => {
|
|
16
15
|
window.StripoEditorApi.versionHistoryApi.closeVersionHistory();
|
|
@@ -51,5 +50,5 @@ const u = () => {
|
|
|
51
50
|
};
|
|
52
51
|
};
|
|
53
52
|
export {
|
|
54
|
-
|
|
53
|
+
S as useVersionHistoryApi
|
|
55
54
|
};
|
package/dist/enums/defaults.d.ts
CHANGED
package/dist/enums/defaults.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = {
|
|
2
2
|
translationsPath: "window.trans.en",
|
|
3
3
|
emailHeader: {
|
|
4
4
|
senderName: "",
|
|
@@ -10,51 +10,19 @@ const a = {
|
|
|
10
10
|
versionHistory: !0
|
|
11
11
|
},
|
|
12
12
|
useHeader: !0
|
|
13
|
-
},
|
|
13
|
+
}, e = {
|
|
14
14
|
promotional: 1,
|
|
15
15
|
transactional: 2
|
|
16
|
-
},
|
|
16
|
+
}, a = "email", o = "Guido User", s = e.promotional, n = 2, r = {
|
|
17
17
|
email: 60,
|
|
18
18
|
architect: 49
|
|
19
|
-
}
|
|
20
|
-
"alfredtesting",
|
|
21
|
-
"electio",
|
|
22
|
-
"eurekatest",
|
|
23
|
-
"gachapontestpart",
|
|
24
|
-
"gluautomation1",
|
|
25
|
-
"gluautomation2",
|
|
26
|
-
"gluautomation3",
|
|
27
|
-
"gluautomation4",
|
|
28
|
-
"inone",
|
|
29
|
-
"inshoppingcart",
|
|
30
|
-
"krakentest",
|
|
31
|
-
"leeroy",
|
|
32
|
-
"newsletteruat",
|
|
33
|
-
"ozaspava",
|
|
34
|
-
"piratesquad",
|
|
35
|
-
"qaautomation1",
|
|
36
|
-
"qaautomation2",
|
|
37
|
-
"qaautomation3",
|
|
38
|
-
"qaautomation4",
|
|
39
|
-
"roiautomation",
|
|
40
|
-
"seleniumautomation",
|
|
41
|
-
"seleniumautomation1",
|
|
42
|
-
"seleniumautomation2",
|
|
43
|
-
"seleniumautomation3",
|
|
44
|
-
"shopbagg",
|
|
45
|
-
"shopifytest",
|
|
46
|
-
"singlepageqa",
|
|
47
|
-
"testqa",
|
|
48
|
-
"vikingsankara",
|
|
49
|
-
"stripoeditorlivetest"
|
|
50
|
-
];
|
|
19
|
+
};
|
|
51
20
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
21
|
+
t as DefaultGuidoConfig,
|
|
22
|
+
s as DefaultMessageType,
|
|
23
|
+
a as DefaultProductType,
|
|
55
24
|
o as DefaultUsername,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
t as TemplateTypes
|
|
25
|
+
n as EditorType,
|
|
26
|
+
r as ProductIds,
|
|
27
|
+
e as TemplateTypes
|
|
60
28
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-a18ac2d3] .in-button-v2__wrapper{line-height:0}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}[data-v-421ffc13] .guido__verion-history-view-option-selection-desktop svg,[data-v-421ffc13] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-421ffc13] .in-segments-wrapper__button_selected,[data-v-421ffc13] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-421ffc13] .in-tooltip-wrapper__icon{cursor:pointer}[data-v-ad3cf7cc] .guido__view-option-selection-desktop svg,[data-v-ad3cf7cc] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-ad3cf7cc] .in-segments-wrapper__button_selected,[data-v-ad3cf7cc] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-ad3cf7cc] .in-tooltip-wrapper__icon{cursor:pointer}.guido-loading__wrapper[data-v-dced5582]{height:100%;top:75px}.guido-editor__wrapper[data-v-0defec6a],.guido-editor__container[data-v-0defec6a]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-0defec6a]{height:calc(100vh - 75px)}.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}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const n = `.alert-message-wrapper {
|
|
2
2
|
box-shadow: none;
|
|
3
3
|
border: 1px solid var(--guido-color-gray-300);
|
|
4
4
|
color: var(--guido-color-gray-600);
|
|
@@ -16,36 +16,6 @@ const r = `.alert-message-wrapper {
|
|
|
16
16
|
color: var(--guido-color-border-onpage-message-info);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.alert-message-wrapper.warn {
|
|
20
|
-
background: var(--guido-color-background-onpage-message-warn);
|
|
21
|
-
border-color: var(--guido-color-border-onpage-message-warn);
|
|
22
|
-
color: inherit;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.alert-message-wrapper.warn ue-icon-component.icon {
|
|
26
|
-
color: var(--guido-color-border-onpage-message-warn);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.alert-message-wrapper.success {
|
|
30
|
-
background: var(--guido-color-background-onpage-message-success);
|
|
31
|
-
border-color: var(--guido-color-border-onpage-message-success);
|
|
32
|
-
color: inherit;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.alert-message-wrapper.success ue-icon-component.icon {
|
|
36
|
-
color: var(--guido-color-border-onpage-message-success);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.alert-message-wrapper.error {
|
|
40
|
-
background: var(--guido-color-background-onpage-message-error);
|
|
41
|
-
border-color: var(--guido-color-border-onpage-message-error);
|
|
42
|
-
color: inherit;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.alert-message-wrapper.error ue-icon-component.icon {
|
|
46
|
-
color: var(--guido-color-border-onpage-message-error);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
19
|
.alert-message-wrapper ue-button {
|
|
50
20
|
padding: 0;
|
|
51
21
|
}
|
|
@@ -65,5 +35,5 @@ const r = `.alert-message-wrapper {
|
|
|
65
35
|
}
|
|
66
36
|
`;
|
|
67
37
|
export {
|
|
68
|
-
|
|
38
|
+
n as default
|
|
69
39
|
};
|
|
@@ -60,28 +60,8 @@ const o = `.control-shadow-wrapper:has(.button) {
|
|
|
60
60
|
color: var(--guido-color-primary-500);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.
|
|
64
|
-
|
|
65
|
-
background-color: var(--guido-color-neutral-200);
|
|
66
|
-
color: var(--guido-color-neutral-800);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.primary > .button .icon-button {
|
|
70
|
-
color: var(--guido-color-neutral-800);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.primary > .button:hover:not(:disabled,.disabled) {
|
|
74
|
-
background-color: var(--guido-color-neutral-100);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.danger > .button {
|
|
78
|
-
background-color: var(--guido-color-danger-500);
|
|
79
|
-
color: var(--guido-color-white);
|
|
80
|
-
border: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.danger > .button:hover:not(:disabled,.disabled) {
|
|
84
|
-
background-color: var(--guido-color-danger-300);
|
|
63
|
+
.flat-white > .button:hover:not(:disabled,.disabled) {
|
|
64
|
+
color: var(--guido-color-primary-500);
|
|
85
65
|
}
|
|
86
66
|
|
|
87
67
|
ue-check-button.checked:not(.flat-white) input:checked + label {
|
|
@@ -120,16 +100,6 @@ ue-color {
|
|
|
120
100
|
ue-color .base-input {
|
|
121
101
|
width: 100%;
|
|
122
102
|
}
|
|
123
|
-
|
|
124
|
-
ue-select-text-input .select-text-input-toggle {
|
|
125
|
-
top: 0;
|
|
126
|
-
right: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
ue-select-text-input .select-text-input-toggle .button {
|
|
130
|
-
justify-content: center;
|
|
131
|
-
background-color: transparent !important;
|
|
132
|
-
}
|
|
133
103
|
`;
|
|
134
104
|
export {
|
|
135
105
|
o as default
|
|
@@ -2,10 +2,6 @@ const n = `ue-wide-panel {
|
|
|
2
2
|
width: 425px;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
ue-main-editor-container[panel-position=SETTINGS_BLOCKS] ue-wide-panel {
|
|
6
|
-
right: calc(100% - calc(var(--ue-spacing-step, 5px) * 3) - 425px);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
5
|
ue-main-tabs-panel-component .fixed-panel-header {
|
|
10
6
|
display: none;
|
|
11
7
|
}
|
|
@@ -21,7 +17,7 @@ ue-description a {
|
|
|
21
17
|
}
|
|
22
18
|
|
|
23
19
|
.stacked-panel {
|
|
24
|
-
overflow:
|
|
20
|
+
overflow: scroll;
|
|
25
21
|
}
|
|
26
22
|
|
|
27
23
|
.stacked-panel-title {
|
|
@@ -12,12 +12,6 @@ const n = `.esd-x,
|
|
|
12
12
|
.ue-preview-control-wrapper ue-icon-component:not([disabled=true]):not(.stripo-static-icon):hover {
|
|
13
13
|
background: none;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
.ue-email-wrapper-rounded,
|
|
17
|
-
.ue-email-wrapper-rounded-top {
|
|
18
|
-
border-radius: 0;
|
|
19
|
-
box-shadow: none;
|
|
20
|
-
}
|
|
21
15
|
`;
|
|
22
16
|
export {
|
|
23
17
|
n as default
|
|
@@ -12,20 +12,10 @@ const o = `:host {
|
|
|
12
12
|
--guido-color-neutral-800: #222938;
|
|
13
13
|
--guido-color-neutral-200: #DCDFE6;
|
|
14
14
|
--guido-color-neutral-100: #EFF2F4;
|
|
15
|
-
--guido-color-danger-300: #e84342;
|
|
16
15
|
--guido-color-danger-500: #DC2A2A;
|
|
17
16
|
--guido-box-shadow: 0 4px 12px 0 rgba(44,53,70,0.15);
|
|
18
17
|
--guido-color-background-onpage-message-info: #D3EEF8;
|
|
19
18
|
--guido-color-border-onpage-message-info: #258DDE;
|
|
20
|
-
--guido-color-background-onpage-message-warn: #FCEFE5;
|
|
21
|
-
--guido-color-border-onpage-message-warn: #D37400;
|
|
22
|
-
--guido-color-background-onpage-message-success: #E9F9EB;
|
|
23
|
-
--guido-color-border-onpage-message-success: #128745;
|
|
24
|
-
--guido-color-background-onpage-message-error: #FCECEC;
|
|
25
|
-
--guido-color-border-onpage-message-error: var(--guido-color-danger-500);
|
|
26
|
-
--guido-color-background-toaster-success: #128745;
|
|
27
|
-
--guido-color-background-toaster-error: var(--guido-color-danger-500);
|
|
28
|
-
--guido-color-background-toaster-warn: #D37400;
|
|
29
19
|
}
|
|
30
20
|
`;
|
|
31
21
|
export {
|