@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.
Files changed (64) hide show
  1. package/README.md +1 -24
  2. package/dist/@types/events.d.ts +0 -6
  3. package/dist/@types/generic.d.ts +0 -4
  4. package/dist/components/Guido.vue.js +2 -2
  5. package/dist/components/Guido.vue2.js +35 -37
  6. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -3
  7. package/dist/components/organisms/header/LeftSlot.vue.js +10 -10
  8. package/dist/components/organisms/header/LeftSlot.vue2.js +10 -23
  9. package/dist/components/organisms/header/ViewOptions.vue.js +11 -11
  10. package/dist/components/organisms/header/ViewOptions.vue2.js +5 -5
  11. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
  12. package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
  13. package/dist/composables/useCustomInterfaceAppearance.js +18 -22
  14. package/dist/composables/useHtmlValidator.d.ts +1 -2
  15. package/dist/composables/useHtmlValidator.js +75 -85
  16. package/dist/composables/usePartner.d.ts +0 -1
  17. package/dist/composables/usePartner.js +9 -16
  18. package/dist/composables/useSave.js +6 -6
  19. package/dist/composables/useStripo.js +22 -24
  20. package/dist/composables/useVersionHistoryApi.js +9 -10
  21. package/dist/enums/defaults.d.ts +0 -1
  22. package/dist/enums/defaults.js +10 -42
  23. package/dist/guido.css +1 -1
  24. package/dist/static/styles/components/alert-message.css.js +2 -32
  25. package/dist/static/styles/components/button.css.js +2 -32
  26. package/dist/static/styles/components/wide-panel.css.js +1 -5
  27. package/dist/static/styles/customEditorStyle.css.js +0 -6
  28. package/dist/static/styles/variables.css.js +0 -10
  29. package/dist/stores/dynamic-content.d.ts +0 -12
  30. package/dist/stores/dynamic-content.js +6 -7
  31. package/dist/stores/editor.d.ts +0 -21
  32. package/dist/stores/editor.js +1 -2
  33. package/dist/utils/genericUtil.js +6 -9
  34. package/package.json +1 -1
  35. package/dist/components/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -2
  36. package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +0 -20
  37. package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +0 -37
  38. package/dist/components/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -2
  39. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +0 -21
  40. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +0 -83
  41. package/dist/components/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -2
  42. package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +0 -17
  43. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +0 -30
  44. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -2
  45. package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +0 -19
  46. package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +0 -43
  47. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -2
  48. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +0 -21
  49. package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +0 -74
  50. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -2
  51. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +0 -20
  52. package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +0 -37
  53. package/dist/composables/useStripoEventHandler.d.ts +0 -3
  54. package/dist/composables/useStripoEventHandler.js +0 -20
  55. package/dist/enums/onboarding.d.ts +0 -1
  56. package/dist/enums/onboarding.js +0 -8
  57. package/dist/mock/api/user-modal-state.d.ts +0 -2
  58. package/dist/services/onboardingApi.d.ts +0 -4
  59. package/dist/services/onboardingApi.js +0 -23
  60. package/dist/static/assets/onboarding-img.svg.js +0 -4
  61. package/dist/static/styles/components/notification.css.js +0 -55
  62. package/dist/static/styles/components/popup.css.js +0 -68
  63. package/dist/stores/onboarding.d.ts +0 -1068
  64. package/dist/stores/onboarding.js +0 -95
@@ -1,129 +1,119 @@
1
- import { useConfig as H } from "./useConfig.js";
2
- import { TemplateTypes as O } from "../enums/defaults.js";
3
- import { DISPLAY_CONDITIONS_REGEX as V, DISPLAY_CONDITIONS_EXCEPTIONS_REGEX as B, CampaignCouldNotBeSavedKey as _, CanNotMakeAnyChangesForRunningKey as R } from "../enums/html-validator.js";
4
- import { ToasterTypeOptions as c } from "../enums/toaster.js";
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 $ } from "./useHttp.js";
7
+ import { useHttp as X } from "./useHttp.js";
8
8
  import { useToaster as j } from "./useToaster.js";
9
- import { useTranslations as X } from "./useTranslations.js";
9
+ import { useTranslations as z } from "./useTranslations.js";
10
10
  const tt = () => {
11
11
  var d;
12
- const { showToaster: r } = j(), { post: y } = $(), { config: h } = H(), o = X(), m = D(), u = ((d = h.partner) == null ? void 0 : d.messageType) === O.transactional, C = async (t) => {
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: a } = e.data;
17
- return n || r({
18
- type: c.Alert,
19
- message: n === void 0 ? a : o("newsletter.invalid-url-link-for-toaster")
20
- }), o(_), a === o(R) && r({
21
- type: c.Alert,
22
- message: o("newsletter.already-in-progress")
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 && !u && e.forEach((a) => {
28
- const i = a.slice(2, -2).trim().match(/(".*?"|[^"\s]+)(?=\s*|\s*$)/g);
29
- if (i && i.length > 0) {
30
- const [l] = i;
31
- v(l) && !s.includes(l) && (r({
32
- type: c.Warning,
33
- message: o("custom-fields.invalid-custom-fields")
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 C(t) : !0;
38
+ const n = e ? await h(t) : !0;
39
39
  return S(t, s) && n;
40
- }, T = (t) => t.length > 0 ? !0 : (r({
41
- type: c.Warning,
42
- message: o("newsletter.html-content-is-empty")
43
- }), !1), A = (t) => {
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 && r({
46
- type: c.Warning,
47
- message: o("custom-fields.missing-closing-braces")
48
- }), s < e && r({
49
- type: c.Warning,
50
- message: o("custom-fields.missing-opening-braces")
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
- }, I = (t) => {
52
+ }, A = (t) => {
53
53
  const s = t.match(/{{\s*(\w+\s+((\w+\|\w+)|(\w+)))\s*}}/gm) === null;
54
- return s || r({
55
- type: c.Warning,
56
- message: o("custom-fields.invalid-custom-fields")
54
+ return s || a({
55
+ type: r.Warning,
56
+ message: i("custom-fields.invalid-custom-fields")
57
57
  }), s;
58
- }, F = (t, s) => {
58
+ }, W = (t, s) => {
59
59
  const e = t.match(/{{([a-zA-Z0-9_\s]*)}}/gm);
60
- if (e && !u) {
61
- const n = new Set(s.map((i) => i.toLowerCase())), a = [];
62
- if (e.forEach((i) => {
63
- const l = i.slice(2, -2).trim().toLowerCase();
64
- (!n.has(l) || l === "") && a.push(l);
65
- }), a.length > 0) {
66
- const i = `
67
- <ul>
68
- ${a.map((l) => `<li>${l}</li>`).join("")}
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
- }, W = (t) => {
71
+ }, x = (t) => {
79
72
  const s = t.match(/{%(.*?)%}/g), e = [];
80
73
  let n = !0;
81
- if (s && s.forEach((a) => {
82
- const i = a.match(V), l = a.match(B), k = (i == null ? void 0 : i.join("")) || "";
83
- (!i || a !== k) && !l && (r({
84
- type: c.Alert,
85
- message: o("newsletter.display-conditions-invalid-syntax")
86
- }), n = !1), i && i.forEach((f) => {
87
- f.trim() === "=" && (r({
88
- type: c.Alert,
89
- message: o("custom-conditions.wrong-equality-operators")
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 = f.match(/^[a-zA-Z]*$/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 a = e.filter((l) => l === "if"), i = e.filter((l) => l === "endif");
98
- a.length !== i.length && (r({
99
- type: c.Alert,
100
- message: o("custom-conditions.missing-if-endif-tag")
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 || r({
107
- type: c.Warning,
108
- message: o("custom-conditions.no-space-after-braces")
99
+ return n || a({
100
+ type: r.Warning,
101
+ message: i("custom-conditions.no-space-after-braces")
109
102
  }), n;
110
- }, x = (t) => (t.match(/({%(.*?)%})/g) || []).filter((e) => e.includes("if")).map((e) => (e.match(/{{.*}}/gm) || []).length).reduce((e, n) => e + n, 0) > 0 ? (r({
111
- type: c.Warning,
112
- message: o("custom-conditions.no-braces-inside-if-tag")
113
- }), !1) : !0, L = () => m.recommendationConfigs && Object.values(m.recommendationConfigs).find((s) => s.filters.find((e) => e.value === "")) !== void 0 ? (r({
114
- type: c.Alert,
115
- message: o("newsletter.fill-all-necessary-fields")
116
- }), !1) : !0, N = (t) => {
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 : (r({
119
- type: c.Alert,
120
- message: o("newsletter.invalid-image-type")
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,5 +1,4 @@
1
1
  export declare const usePartner: () => {
2
2
  getPartnerName: () => string;
3
3
  getProductType: () => number;
4
- isTestPartner: () => boolean;
5
4
  };
@@ -1,18 +1,11 @@
1
- import { TEST_PARTNER_LIST as r, DefaultProductType as o, ProductIds as n } from "../enums/defaults.js";
2
- const i = () => {
3
- const e = () => window.location.hostname.split(".")[0] || "";
4
- return {
5
- getPartnerName: e,
6
- getProductType: () => {
7
- const t = window.location.pathname.split("/").filter(Boolean)[0] || o;
8
- return n[t] || 0;
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
- i as usePartner
10
+ c as usePartner
18
11
  };
@@ -1,12 +1,12 @@
1
- import { useSaveStart as i, useSaveComplete as m } from "./useGuidoActions.js";
2
- import { useTemplatePreparation as n } from "../utils/templatePreparation.js";
3
- import { useHtmlValidator as l } from "./useHtmlValidator.js";
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 = m(), { validateHtml: s } = l();
5
+ const e = i(), a = l(), { validateHtml: s } = n();
6
6
  return { save: async (o = !1) => {
7
7
  e();
8
- const { prepareTemplateDetails: r } = n(), t = await r();
9
- if (await s(t.compiledHtml, t.dynamicContentList, !0))
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 f } from "./useActionsApi.js";
2
- import { useCustomInterfaceAppearance as S } from "./useCustomInterfaceAppearance.js";
3
- import { useStripoEventHandler as C } from "./useStripoEventHandler.js";
4
- import { useToaster as E } from "./useToaster.js";
5
- import { displayConditions as y } from "../enums/displayConditions.js";
6
- import h from "../extensions/DynamicContent/extension.js";
7
- import { useStripoApi as w } from "../services/stripoApi.js";
8
- import b from "../static/styles/customEditorStyle.css.js";
9
- import { useEditorStore as V } from "../stores/editor.js";
10
- import { dynamicContentToMergeTags as _ } from "../utils/genericUtil.js";
11
- const R = (s) => {
12
- const { handleError: d } = E(), { getToken: c, getCustomFonts: u } = w(), { handleEvent: l } = C(), p = (r, i = []) => {
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: g,
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: b,
29
+ customViewStyles: h,
31
30
  conditionsEnabled: !0,
32
31
  customConditionsEnabled: !0,
33
- conditionCategories: y,
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: _(s.preselectedDynamicContentList)
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 } = S(), { activateCustomViewStyles: n } = f();
58
- t(), n(), s.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
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
- onEvent: l,
78
- ignoreClickOutsideSelectors: ["#guido-dynamic-content-modal", ".in-on-board-wrapper"],
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
- p(r, i);
96
+ l(r, i);
99
97
  });
100
98
  } };
101
99
  };
102
100
  export {
103
- R as useStripo
101
+ P as useStripo
104
102
  };
@@ -1,16 +1,15 @@
1
1
  import { ToasterTypeOptions as t } from "../enums/toaster.js";
2
- import { useEditorStore as w } from "../stores/editor.js";
3
- import { useVersionHistoryStore as y } from "../stores/version-history.js";
4
- import { useToaster as a } from "./useToaster.js";
5
- const u = () => {
6
- const i = y(), n = w(), { showToaster: s } = a(), p = (e) => {
7
- i.$reset(), i.updateState(e), n.isVersionHistoryOpen = !0;
8
- }, c = () => {
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(p, c);
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
- u as useVersionHistoryApi
53
+ S as useVersionHistoryApi
55
54
  };
@@ -9,4 +9,3 @@ export declare const DefaultUsername = "Guido User";
9
9
  export declare const DefaultMessageType: number;
10
10
  export declare const EditorType: number;
11
11
  export declare const ProductIds: Record<string, number>;
12
- export declare const TEST_PARTNER_LIST: string[];
@@ -1,4 +1,4 @@
1
- const a = {
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
- }, t = {
13
+ }, e = {
14
14
  promotional: 1,
15
15
  transactional: 2
16
- }, e = "email", o = "Guido User", n = t.promotional, i = 2, s = {
16
+ }, a = "email", o = "Guido User", s = e.promotional, n = 2, r = {
17
17
  email: 60,
18
18
  architect: 49
19
- }, u = [
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
- a as DefaultGuidoConfig,
53
- n as DefaultMessageType,
54
- e as DefaultProductType,
21
+ t as DefaultGuidoConfig,
22
+ s as DefaultMessageType,
23
+ a as DefaultProductType,
55
24
  o as DefaultUsername,
56
- i as EditorType,
57
- s as ProductIds,
58
- u as TEST_PARTNER_LIST,
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-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-cc1f9260],.guido-editor__container[data-v-cc1f9260]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-cc1f9260]{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}[data-v-d3c52b44] .vueperslides__bullets,[data-v-a408dcea] .vueperslides__bullets{pointer-events:none!important}[data-v-a408dcea] .vueperslides__parallax-wrapper{height:110px!important}
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 r = `.alert-message-wrapper {
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
- r as default
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
- .primary > .button {
64
- border: none;
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: auto;
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 {