@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
package/README.md CHANGED
@@ -16,30 +16,7 @@ npm install @useinsider/guido
16
16
  ```
17
17
  ### Prerequisites
18
18
  🍍 Your project should have `pinia`
19
- You need to be sure those lines added in your config file:
20
-
21
- â„šī¸ It helps to optimize your dependencies and sharing by Guido. This is why Guido pretty fast and tiny.
22
-
23
- #### For Webpack
24
- `/webpack.config.js` or `/vue.config.js`
25
- ```js
26
- // ... Previous Configs
27
- shared: {
28
- vue: { singleton: true },
29
- pinia: { singleton: true },
30
- },
31
- // ... Upcoming Configs
32
- ```
33
-
34
- ##### For Vite:
35
- `/vite.config.js`
36
- ```js
37
- // ... Previous Configs
38
- resolve: {
39
- dedupe: ['vue', 'pinia'],
40
- },
41
- // ... Upcoming Configs
42
- ```
19
+
43
20
  ---
44
21
  ## 🚀 Usage
45
22
 
@@ -1,7 +1 @@
1
1
  export type StripoEventType = 'save' | 'export' | 'close' | 'autosave' | 'publish' | 'export:requested' | 'export:ready';
2
- export interface EventHandler {
3
- (params: Record<string, string>): void | Promise<void>;
4
- }
5
- export interface EventHandlers {
6
- [eventType: string]: EventHandler;
7
- }
@@ -22,10 +22,6 @@ export type DynamicContent = {
22
22
  value: string;
23
23
  text: string;
24
24
  fallback?: string;
25
- format?: {
26
- key: string;
27
- value: string;
28
- };
29
25
  };
30
26
  export interface EmailHeader {
31
27
  senderName: string;
@@ -3,14 +3,14 @@ import a from "./Guido.vue2.js";
3
3
  import i from "../_virtual/_plugin-vue2_normalizer.js";
4
4
  var t = function() {
5
5
  var o = this, r = o._self._c, e = o._self._setupProxy;
6
- return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer), e.isTestPartner() ? o._e() : r(e.OnboardingWrapper), r(e.LoadingWrapper)], 1);
6
+ return r("div", { staticClass: "guido-editor__wrapper", class: { "guido-editor__no-header": e.noHeader } }, [r(e.HeaderWrapper, { ref: "headerWrapperRef" }), e.editorStore.isPreviewModeOpen ? r(e.PreviewContainer) : o._e(), r("div", { directives: [{ name: "show", rawName: "v-show", value: !e.previewStore.isLoaded, expression: "!previewStore.isLoaded" }], staticClass: "guido-editor__container", class: { "guido-editor__no-header": e.noHeader }, attrs: { id: "guido-editor" } }), r(e.Toaster), r(e.SaveAsTemplateDrawer), r(e.LoadingWrapper)], 1);
7
7
  }, s = [], d = /* @__PURE__ */ i(
8
8
  a,
9
9
  t,
10
10
  s,
11
11
  !1,
12
12
  null,
13
- "cc1f9260"
13
+ "0defec6a"
14
14
  );
15
15
  const v = d.exports;
16
16
  export {
@@ -1,18 +1,18 @@
1
- import { defineComponent as N, defineAsyncComponent as E, ref as H, computed as G, watch as R, onMounted as U, onUnmounted as x } from "vue";
2
- import { provideGuidoActions as F } from "../composables/useGuidoActions.js";
3
- import { usePartner as M } from "../composables/usePartner.js";
4
- import { useStripo as z } from "../composables/useStripo.js";
5
- import { DefaultUsername as B, DefaultMessageType as K, DefaultGuidoConfig as O } from "../enums/defaults.js";
6
- import j from "./organisms/base/Toaster.vue.js";
7
- import q from "./organisms/header/HeaderWrapper.vue.js";
8
- import J from "./organisms/LoadingWrapper.vue.js";
9
- import Q from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
10
- import { useStripoApi as V } from "../services/stripoApi.js";
11
- import { useDynamicContentStore as X } from "../stores/dynamic-content.js";
12
- import { useEditorStore as Y } from "../stores/editor.js";
13
- import { usePreviewStore as Z } from "../stores/preview.js";
14
- import $ from "../node_modules/lodash-es/merge.js";
15
- const ge = /* @__PURE__ */ N({
1
+ import { defineComponent as k, defineAsyncComponent as A, ref as N, computed as T, watch as W, onMounted as H, onUnmounted as R } from "vue";
2
+ import { provideGuidoActions as U } from "../composables/useGuidoActions.js";
3
+ import { usePartner as x } from "../composables/usePartner.js";
4
+ import { useStripo as F } from "../composables/useStripo.js";
5
+ import { DefaultUsername as M, DefaultMessageType as z, DefaultGuidoConfig as B } from "../enums/defaults.js";
6
+ import K from "./organisms/base/Toaster.vue.js";
7
+ import j from "./organisms/header/HeaderWrapper.vue.js";
8
+ import q from "./organisms/LoadingWrapper.vue.js";
9
+ import J from "./organisms/save-as-template/SaveAsTemplateDrawer.vue.js";
10
+ import { useStripoApi as O } from "../services/stripoApi.js";
11
+ import { useDynamicContentStore as Q } from "../stores/dynamic-content.js";
12
+ import { useEditorStore as V } from "../stores/editor.js";
13
+ import { usePreviewStore as X } from "../stores/preview.js";
14
+ import Y from "../node_modules/lodash-es/merge.js";
15
+ const ue = /* @__PURE__ */ k({
16
16
  __name: "Guido",
17
17
  props: {
18
18
  templateId: null,
@@ -27,12 +27,10 @@ const ge = /* @__PURE__ */ N({
27
27
  guidoConfig: null
28
28
  },
29
29
  emits: ["dynamic-content:open", "back", "save:start", "save:complete", "on-change", "ready"],
30
- setup(P, { expose: I, emit: o }) {
31
- const n = P, L = E(
30
+ setup(G, { expose: I, emit: o }) {
31
+ const n = G, L = A(
32
32
  () => import("./organisms/email-preview/PreviewContainer.vue.js")
33
- ), _ = E(
34
- () => import("./organisms/onboarding/OnboardingWrapper.vue.js")
35
- ), c = H(), r = X(), d = Y(), W = Z(), t = G(() => d.hasChanges), a = n.preselectedDynamicContentList || [], { getPartnerName: m, getProductType: l, isTestPartner: k } = M(), u = () => {
33
+ ), c = N(), r = Q(), d = V(), P = X(), t = T(() => d.hasChanges), a = n.preselectedDynamicContentList || [], { getPartnerName: m, getProductType: l } = x(), u = () => {
36
34
  var e;
37
35
  return (e = c.value) == null ? void 0 : e.handleSave(!0);
38
36
  }, {
@@ -43,15 +41,15 @@ const ge = /* @__PURE__ */ N({
43
41
  css: v = "",
44
42
  partnerName: i = m(),
45
43
  productType: s = l(),
46
- messageType: C = K,
47
- username: h = B
44
+ messageType: C = z,
45
+ username: h = M
48
46
  } = n;
49
- window.GuidoConfig = $(O, f), window.GuidoConfig.partner = {
47
+ window.GuidoConfig = Y(B, f), window.GuidoConfig.partner = {
50
48
  partnerName: i,
51
49
  productType: s,
52
50
  messageType: C
53
51
  };
54
- const { initPlugin: w } = z({
52
+ const { initPlugin: w } = F({
55
53
  emailId: p,
56
54
  userId: g,
57
55
  username: h,
@@ -61,11 +59,11 @@ const ge = /* @__PURE__ */ N({
61
59
  onReady: () => {
62
60
  console.debug("guido:ready"), o("ready");
63
61
  }
64
- }), { getDefaultTemplate: S } = V(), A = G(() => {
62
+ }), { getDefaultTemplate: S } = O(), _ = T(() => {
65
63
  var e;
66
64
  return !((e = window.GuidoConfig) != null && e.useHeader);
67
65
  });
68
- F({
66
+ U({
69
67
  onBack: () => {
70
68
  console.debug("guido:back"), o("back");
71
69
  },
@@ -76,14 +74,14 @@ const ge = /* @__PURE__ */ N({
76
74
  console.debug("guido:save:complete", e), o("save:complete", e);
77
75
  }
78
76
  });
79
- const b = (e) => {
77
+ const D = (e) => {
80
78
  console.debug("dynamic-content:close", e), r.setSelectedDynamicContent(e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
81
- }, D = () => {
79
+ }, b = () => {
82
80
  console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
83
81
  };
84
- return R(() => t.value, () => {
82
+ return W(() => t.value, () => {
85
83
  o("on-change", t.value);
86
- }), U(async () => {
84
+ }), H(async () => {
87
85
  console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow");
88
86
  try {
89
87
  let e = {
@@ -97,10 +95,10 @@ const ge = /* @__PURE__ */ N({
97
95
  console.error("Failed to initialize Stripo editor:", e);
98
96
  }
99
97
  document.addEventListener("dynamic-content:open", (e) => {
100
- const T = e;
101
- console.debug("dynamic-content:open", T.detail), o("dynamic-content:open", T.detail);
98
+ const E = e;
99
+ console.debug("dynamic-content:open", E.detail), o("dynamic-content:open", E.detail);
102
100
  });
103
- }), x(() => {
101
+ }), R(() => {
104
102
  try {
105
103
  window.UIEditor.removeEditor();
106
104
  } catch {
@@ -108,14 +106,14 @@ const ge = /* @__PURE__ */ N({
108
106
  }
109
107
  }), I({
110
108
  dynamicContent: {
111
- insert: b,
112
- close: D
109
+ insert: D,
110
+ close: b
113
111
  },
114
112
  hasChanges: t,
115
113
  saveSilent: u
116
- }), { __sfc: !0, PreviewContainer: L, OnboardingWrapper: _, headerWrapperRef: c, dynamicContentStore: r, props: n, editorStore: d, previewStore: W, hasChanges: t, preselectedDynamicContentList: a, getPartnerName: m, getProductType: l, isTestPartner: k, saveSilent: u, templateId: p, userId: g, guidoConfig: f, html: y, css: v, partnerName: i, productType: s, messageType: C, username: h, emit: o, initPlugin: w, getDefaultTemplate: S, noHeader: A, insertDynamicContent: b, closeDynamicContent: D, Toaster: j, HeaderWrapper: q, LoadingWrapper: J, SaveAsTemplateDrawer: Q };
114
+ }), { __sfc: !0, PreviewContainer: L, headerWrapperRef: c, dynamicContentStore: r, props: n, editorStore: d, previewStore: P, hasChanges: t, preselectedDynamicContentList: a, getPartnerName: m, getProductType: l, saveSilent: u, templateId: p, userId: g, guidoConfig: f, html: y, css: v, partnerName: i, productType: s, messageType: C, username: h, emit: o, initPlugin: w, getDefaultTemplate: S, noHeader: _, insertDynamicContent: D, closeDynamicContent: b, Toaster: K, HeaderWrapper: j, LoadingWrapper: q, SaveAsTemplateDrawer: J };
117
115
  }
118
116
  });
119
117
  export {
120
- ge as default
118
+ ue as default
121
119
  };
@@ -1,9 +1,8 @@
1
1
  import o from "./AmpToggle.vue2.js";
2
- /* empty css */
3
2
  import n from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
3
  var s = function() {
5
4
  var r = this, t = r._self._c, e = r._self._setupProxy;
6
- return t("div", [t("div", { staticClass: "d-f a-i-c ml-3" }, [t(e.InSegments, { attrs: { id: "guido__amp-toggle", "segment-list": e.segmentList, selected: e.previewStore.emailFormat }, on: { click: e.handleFormatChange } }), e.previewStore.showAMPErrorButton ? t(e.InButtonV2, { staticClass: "ml-2 d-f a-i-c b-c-11 b-c-h-11 t-c-4 t-c-h-4 i-c-4 bor-w-1 bor-s-s bor-c-11 bor-r-2", attrs: { id: "guido__amp-error-button", "left-icon": "line-error-box", type: "danger", "label-text-status": !1 }, on: { click: function(l) {
5
+ return t("div", [t("div", { staticClass: "d-f a-i-c ml-3" }, [t(e.InSegments, { attrs: { id: "guido__amp-toggle", "segment-list": e.segmentList, selected: e.previewStore.emailFormat }, on: { click: e.handleFormatChange } }), e.previewStore.showAMPErrorButton ? t(e.InButtonV2, { staticClass: "ml-2 d-f a-i-c b-c-11 b-c-h-11 t-c-4 t-c-h-4 i-c-4 bor-w-1 bor-s-s bor-c-11 bor-r-2", attrs: { id: "guido__amp-error-button", "left-icon": "line-error-box", type: "danger", "label-text-status": !1 }, on: { click: function(c) {
7
6
  return e.previewStore.openErrorModal();
8
7
  } } }) : r._e()], 1)]);
9
8
  }, a = [], i = /* @__PURE__ */ n(
@@ -12,7 +11,7 @@ var s = function() {
12
11
  a,
13
12
  !1,
14
13
  null,
15
- "b5997368"
14
+ null
16
15
  );
17
16
  const d = i.exports;
18
17
  export {
@@ -1,18 +1,18 @@
1
- import s from "./LeftSlot.vue2.js";
1
+ import o from "./LeftSlot.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var n = function() {
5
- var e = this, o = e._self._c, t = e._self._setupProxy;
6
- return o("div", { staticClass: "d-f a-i-c" }, [o(t.InButtonV2, { staticClass: "p-2", attrs: { id: "guido__back-button", "left-icon": "line-arrow-left", styling: "text", type: "secondary", "label-text": t.backButtonLabel }, on: { click: t.handleBackClick } }), t.editorStore.isVersionHistoryOpen ? o(t.RestoreButton, { staticClass: "ml-3" }) : e._e()], 1);
7
- }, a = [], i = /* @__PURE__ */ r(
8
- s,
9
- n,
4
+ var a = function() {
5
+ var e = this, s = e._self._c, t = e._self._setupProxy;
6
+ return s("div", { staticClass: "d-f a-i-c" }, [s(t.InButtonV2, { staticClass: "p-2", attrs: { id: "guido__back-button", "label-text": "Back", "left-icon": "line-arrow-left", styling: "text", type: "secondary" }, on: { click: t.handleBack } }), t.editorStore.isVersionHistoryOpen ? s(t.RestoreButton, { staticClass: "ml-3" }) : e._e()], 1);
7
+ }, n = [], i = /* @__PURE__ */ r(
8
+ o,
10
9
  a,
10
+ n,
11
11
  !1,
12
12
  null,
13
- "2c168944"
13
+ "a18ac2d3"
14
14
  );
15
- const p = i.exports;
15
+ const d = i.exports;
16
16
  export {
17
- p as default
17
+ d as default
18
18
  };
@@ -1,28 +1,15 @@
1
- import { defineComponent as s, computed as c } from "vue";
2
- import { useBack as m } from "../../../composables/useGuidoActions.js";
3
- import { usePreviewMode as a } from "../../../composables/usePreviewMode.js";
4
- import { useTranslations as p } from "../../../composables/useTranslations.js";
5
- import { useVersionHistoryApi as u } from "../../../composables/useVersionHistoryApi.js";
6
- import { useEditorStore as d } from "../../../stores/editor.js";
7
- import { InButtonV2 as f } from "@useinsider/design-system-vue";
8
- import l from "./version-history/RestoreButton.vue.js";
9
- const O = /* @__PURE__ */ s({
1
+ import { defineComponent as r } from "vue";
2
+ import { useBack as e } from "../../../composables/useGuidoActions.js";
3
+ import { useEditorStore as m } from "../../../stores/editor.js";
4
+ import { InButtonV2 as n } from "@useinsider/design-system-vue";
5
+ import s from "./version-history/RestoreButton.vue.js";
6
+ const c = /* @__PURE__ */ r({
10
7
  __name: "LeftSlot",
11
- setup(k) {
12
- const o = d(), r = m(), { closeVersionHistory: t } = u(), { closePreviewMode: i } = a(), e = p(), n = c(() => o.isVersionHistoryOpen || o.isPreviewModeOpen ? e("email-editor.back-to-editor") : e("email-editor.back-to-design"));
13
- return { __sfc: !0, editorStore: o, handleBack: r, closeVersionHistory: t, closePreviewMode: i, trans: e, backButtonLabel: n, handleBackClick: () => {
14
- if (o.isVersionHistoryOpen) {
15
- t();
16
- return;
17
- }
18
- if (o.isPreviewModeOpen) {
19
- i();
20
- return;
21
- }
22
- r();
23
- }, InButtonV2: f, RestoreButton: l };
8
+ setup(f) {
9
+ const o = m(), t = e();
10
+ return { __sfc: !0, editorStore: o, handleBack: t, InButtonV2: n, RestoreButton: s };
24
11
  }
25
12
  });
26
13
  export {
27
- O as default
14
+ c as default
28
15
  };
@@ -1,18 +1,18 @@
1
- import i from "./ViewOptions.vue2.js";
1
+ import o from "./ViewOptions.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../_virtual/_plugin-vue2_normalizer.js";
4
- var n = function() {
5
- var t = this, s = t._self._c, e = t._self._setupProxy;
6
- return s("div", { staticClass: "view-options-wrapper" }, [s(e.InSegments, { attrs: { id: "guido__view-option-selection", "with-icon": "", disable: e.editorStore.isViewOptionsDisabled, "segment-list": e.segmentList, selected: e.editorStore.editorVisualMode } }), e.editorStore.isViewOptionsDisabled ? t._e() : s(e.InChips, { staticClass: "new-tag", attrs: { id: "guido__view-options-new-tag", styles: "stroke", value: "chips", "close-button": !1, interactive: !1, text: e.trans("settings.new") } })], 1);
7
- }, r = [], a = /* @__PURE__ */ o(
8
- i,
9
- n,
3
+ import s from "../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var r = function() {
5
+ var t = this, i = t._self._c, e = t._self._setupProxy;
6
+ return i(e.InSegments, { attrs: { id: "guido__view-option-selection", "with-icon": "", disable: e.editorStore.isViewOptionsDisabled, "segment-list": e.segmentList, selected: e.editorStore.editorVisualMode } });
7
+ }, n = [], _ = /* @__PURE__ */ s(
8
+ o,
10
9
  r,
10
+ n,
11
11
  !1,
12
12
  null,
13
- "195ab6d4"
13
+ "ad3cf7cc"
14
14
  );
15
- const c = a.exports;
15
+ const m = _.exports;
16
16
  export {
17
- c as default
17
+ m as default
18
18
  };
@@ -2,10 +2,10 @@ import { defineComponent as n } from "vue";
2
2
  import { useTranslations as p } from "../../../composables/useTranslations.js";
3
3
  import { useEditorStore as s } from "../../../stores/editor.js";
4
4
  import { getTooltipOptions as o } from "../../../utils/tooltipUtils.js";
5
- import { InChips as r, InSegments as m } from "@useinsider/design-system-vue";
6
- const f = /* @__PURE__ */ n({
5
+ import { InSegments as r } from "@useinsider/design-system-vue";
6
+ const d = /* @__PURE__ */ n({
7
7
  __name: "ViewOptions",
8
- setup(l) {
8
+ setup(m) {
9
9
  const e = s(), t = p(), i = [
10
10
  {
11
11
  text: "",
@@ -26,9 +26,9 @@ const f = /* @__PURE__ */ n({
26
26
  tooltipOptions: o("guido__view-option-mobile")
27
27
  }
28
28
  ];
29
- return { __sfc: !0, editorStore: e, trans: t, segmentList: i, InSegments: m, InChips: r };
29
+ return { __sfc: !0, editorStore: e, trans: t, segmentList: i, InSegments: r };
30
30
  }
31
31
  });
32
32
  export {
33
- f as default
33
+ d as default
34
34
  };
@@ -1,18 +1,18 @@
1
- import i from "./ViewOptions.vue2.js";
1
+ import s from "./ViewOptions.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
- var n = function() {
5
- var s = this, t = s._self._c, e = s._self._setupProxy;
6
- return t("div", { staticClass: "view-options-wrapper" }, [t(e.InSegments, { attrs: { id: "guido__verion-history-view-option-selection", "with-icon": "", "segment-list": e.segmentList, selected: e.versionHistoryStore.editorVisualMode }, on: { click: e.changeVisualMode } }), t(e.InChips, { staticClass: "new-tag", attrs: { id: "guido__view-options-new-tag", styles: "stroke", value: "chips", "close-button": !1, interactive: !1, text: e.trans("settings.new") } })], 1);
7
- }, r = [], a = /* @__PURE__ */ o(
8
- i,
9
- n,
3
+ import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
+ var r = function() {
5
+ var t = this, o = t._self._c, e = t._self._setupProxy;
6
+ return o(e.InSegments, { attrs: { id: "guido__verion-history-view-option-selection", "with-icon": "", "segment-list": e.segmentList, selected: e.versionHistoryStore.editorVisualMode }, on: { click: e.changeVisualMode } });
7
+ }, n = [], _ = /* @__PURE__ */ i(
8
+ s,
10
9
  r,
10
+ n,
11
11
  !1,
12
12
  null,
13
- "d405ca59"
13
+ "421ffc13"
14
14
  );
15
- const d = a.exports;
15
+ const f = _.exports;
16
16
  export {
17
- d as default
17
+ f as default
18
18
  };
@@ -3,10 +3,10 @@ import { useTranslations as m } from "../../../../composables/useTranslations.js
3
3
  import { useVersionHistoryApi as l } from "../../../../composables/useVersionHistoryApi.js";
4
4
  import { useVersionHistoryStore as a } from "../../../../stores/version-history.js";
5
5
  import { getTooltipOptions as n } from "../../../../utils/tooltipUtils.js";
6
- import { InChips as c, InSegments as u } from "@useinsider/design-system-vue";
7
- const T = /* @__PURE__ */ p({
6
+ import { InSegments as c } from "@useinsider/design-system-vue";
7
+ const h = /* @__PURE__ */ p({
8
8
  __name: "ViewOptions",
9
- setup(_) {
9
+ setup(u) {
10
10
  const t = a(), { switchToDesktopPreview: e, switchToMobilePreview: i } = l(), o = m(), r = [
11
11
  {
12
12
  text: "",
@@ -33,9 +33,9 @@ const T = /* @__PURE__ */ p({
33
33
  return;
34
34
  }
35
35
  e();
36
- }, InSegments: u, InChips: c };
36
+ }, InSegments: c };
37
37
  }
38
38
  });
39
39
  export {
40
- T as default
40
+ h as default
41
41
  };
@@ -1,34 +1,32 @@
1
1
  import S from "../static/styles/base.css.js";
2
- import m from "../static/styles/components/alert-message.css.js";
3
- import e from "../static/styles/components/amp-block.css.js";
2
+ import e from "../static/styles/components/alert-message.css.js";
3
+ import m from "../static/styles/components/amp-block.css.js";
4
4
  import i from "../static/styles/components/base-input.css.js";
5
5
  import p from "../static/styles/components/button-group.css.js";
6
6
  import n from "../static/styles/components/button.css.js";
7
- import C from "../static/styles/components/combobox.css.js";
8
- import s from "../static/styles/components/counter.css.js";
7
+ import s from "../static/styles/components/combobox.css.js";
8
+ import C from "../static/styles/components/counter.css.js";
9
9
  import f from "../static/styles/components/dropdown-menu.css.js";
10
10
  import a from "../static/styles/components/loader.css.js";
11
11
  import u from "../static/styles/components/narrow-panel.css.js";
12
- import c from "../static/styles/components/notification.css.js";
13
- import d from "../static/styles/components/popup.css.js";
14
- import l from "../static/styles/components/switcher.css.js";
15
- import h from "../static/styles/components/tabs.css.js";
16
- import w from "../static/styles/components/tools.css.js";
17
- import y from "../static/styles/components/version-history.css.js";
18
- import B from "../static/styles/components/wide-panel.css.js";
19
- import b from "../static/styles/variables.css.js";
20
- const A = [
21
- b,
12
+ import c from "../static/styles/components/switcher.css.js";
13
+ import d from "../static/styles/components/tabs.css.js";
14
+ import l from "../static/styles/components/tools.css.js";
15
+ import h from "../static/styles/components/version-history.css.js";
16
+ import w from "../static/styles/components/wide-panel.css.js";
17
+ import y from "../static/styles/variables.css.js";
18
+ const B = [
19
+ y,
22
20
  // Must be on top
23
21
  S,
24
22
  // Must be on top
25
- m,
26
23
  e,
24
+ m,
27
25
  i,
28
26
  p,
29
27
  n,
30
- C,
31
28
  s,
29
+ C,
32
30
  f,
33
31
  a,
34
32
  u,
@@ -36,14 +34,12 @@ const A = [
36
34
  d,
37
35
  l,
38
36
  h,
39
- w,
40
- y,
41
- B
37
+ w
42
38
  ].join(`
43
39
 
44
- `), F = () => ({ importCss: () => {
40
+ `), R = () => ({ importCss: () => {
45
41
  const o = new CSSStyleSheet();
46
- o.replaceSync(A);
42
+ o.replaceSync(B);
47
43
  const r = document.querySelector("ui-editor");
48
44
  if (!r)
49
45
  return;
@@ -51,5 +47,5 @@ const A = [
51
47
  t && (t.adoptedStyleSheets = [o]);
52
48
  } });
53
49
  export {
54
- F as useCustomInterfaceAppearance
50
+ R as useCustomInterfaceAppearance
55
51
  };
@@ -1,4 +1,3 @@
1
- import type { DynamicContent } from '@@/Types/generic';
2
1
  export declare const useHtmlValidator: () => {
3
- validateHtml: (html: string, customFields: DynamicContent[], isOnSaveValidation?: boolean) => Promise<boolean>;
2
+ validateHtml: (html: string, customFields: string[], isOnSaveValidation?: boolean) => Promise<boolean>;
4
3
  };