@useinsider/guido 1.0.0-beta.3bcd23c → 1.0.0-beta.401ddbd

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 (148) hide show
  1. package/README.md +1 -6
  2. package/dist/@types/generic.d.ts +0 -4
  3. package/dist/App.vue.d.ts +1 -1
  4. package/dist/components/Guido.vue.d.ts +2 -6
  5. package/dist/components/Guido.vue.js +1 -1
  6. package/dist/components/Guido.vue2.js +24 -35
  7. package/dist/components/organisms/header/LeftSlot.vue.d.ts +1 -1
  8. package/dist/components/organisms/header/LeftSlot.vue.js +8 -8
  9. package/dist/components/organisms/header/LeftSlot.vue2.js +3 -5
  10. package/dist/components/organisms/header/MiddleSlot.vue.js +7 -7
  11. package/dist/components/organisms/header/MiddleSlot.vue2.js +4 -6
  12. package/dist/components/organisms/header/RightSlot.vue.js +7 -4
  13. package/dist/components/organisms/header/RightSlot.vue2.js +27 -14
  14. package/dist/components/organisms/header/SaveTemplateModal.vue.d.ts +21 -0
  15. package/dist/components/organisms/header/SaveTemplateModal.vue.js +21 -0
  16. package/dist/components/organisms/header/SaveTemplateModal.vue2.js +61 -0
  17. package/dist/components/organisms/header/ViewOptions.vue.d.ts +1 -1
  18. package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +1 -13
  19. package/dist/components/organisms/header/version-history/VersionHistory.vue.js +7 -7
  20. package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +10 -13
  21. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +1 -1
  22. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +1 -1
  23. package/dist/components/organisms/header/version-history/ViewOptions.vue.d.ts +1 -1
  24. package/dist/composables/useActionsApi.d.ts +0 -1
  25. package/dist/composables/useActionsApi.js +12 -14
  26. package/dist/composables/useCustomInterfaceAppearance.js +9 -45
  27. package/dist/composables/useStripo.js +28 -44
  28. package/dist/composables/useTemplateValidation.d.ts +13 -0
  29. package/dist/composables/useTemplateValidation.js +57 -0
  30. package/dist/guido.css +1 -1
  31. package/dist/mock/api/template-library.d.ts +2 -0
  32. package/dist/static/editor.css.js +232 -0
  33. package/package.json +4 -5
  34. package/dist/_virtual/AddCustomFont.js +0 -4
  35. package/dist/_virtual/AiAssistantValueType.js +0 -4
  36. package/dist/_virtual/BackgroundColorBuiltInControl.js +0 -4
  37. package/dist/_virtual/BackgroundImageBuiltInControl.js +0 -4
  38. package/dist/_virtual/Block.js +0 -4
  39. package/dist/_virtual/BlockAttributes.js +0 -4
  40. package/dist/_virtual/BlockCompositionType.js +0 -4
  41. package/dist/_virtual/BlockPaddingsBuiltInControl.js +0 -4
  42. package/dist/_virtual/BlockRenderer.js +0 -4
  43. package/dist/_virtual/BlockType.js +0 -4
  44. package/dist/_virtual/BlocksPanel.js +0 -4
  45. package/dist/_virtual/BuiltInControl.js +0 -4
  46. package/dist/_virtual/BuiltInControlTypes.js +0 -4
  47. package/dist/_virtual/ButtonBorderBuiltInControl.js +0 -4
  48. package/dist/_virtual/ButtonColorBuiltInControl.js +0 -4
  49. package/dist/_virtual/ButtonFontColorBuiltInControl.js +0 -4
  50. package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +0 -4
  51. package/dist/_virtual/ButtonTextBuiltInControl.js +0 -4
  52. package/dist/_virtual/ContextAction.js +0 -4
  53. package/dist/_virtual/ContextActionType.js +0 -4
  54. package/dist/_virtual/Control.js +0 -4
  55. package/dist/_virtual/EditorStatePropertyType.js +0 -4
  56. package/dist/_virtual/Extension.js +0 -4
  57. package/dist/_virtual/ExtensionBuilder.js +0 -4
  58. package/dist/_virtual/FontFamilyBuiltInControl.js +0 -4
  59. package/dist/_virtual/LinkColorBuiltInControl.js +0 -4
  60. package/dist/_virtual/ModificationDescription.js +0 -4
  61. package/dist/_virtual/PanelPosition.js +0 -4
  62. package/dist/_virtual/PreviewDeviceMode.js +0 -4
  63. package/dist/_virtual/SettingsPanelRegistry.js +0 -4
  64. package/dist/_virtual/SettingsPanelTab.js +0 -4
  65. package/dist/_virtual/SettingsTab.js +0 -4
  66. package/dist/_virtual/StructureBorderBuiltInControl.js +0 -4
  67. package/dist/_virtual/StructurePaddingsBuiltInControl.js +0 -4
  68. package/dist/_virtual/TextColorBuiltInControl.js +0 -4
  69. package/dist/_virtual/TextLineSpacingBuiltInControl.js +0 -4
  70. package/dist/_virtual/TextSizeBuiltInControl.js +0 -4
  71. package/dist/_virtual/TextStyleBuiltInControl.js +0 -4
  72. package/dist/_virtual/UIElement.js +0 -4
  73. package/dist/_virtual/UIElementTagRegistry.js +0 -4
  74. package/dist/_virtual/UIElementType.js +0 -4
  75. package/dist/_virtual/UIElementsAttributes.js +0 -4
  76. package/dist/_virtual/index.js +0 -5
  77. package/dist/_virtual/index2.js +0 -4
  78. package/dist/components/organisms/header/version-history/RestoreButton.vue.d.ts +0 -2
  79. package/dist/components/organisms/header/version-history/RestoreButton.vue.js +0 -19
  80. package/dist/components/organisms/header/version-history/RestoreButton.vue2.js +0 -14
  81. package/dist/enums/displayConditions.d.ts +0 -2
  82. package/dist/enums/displayConditions.js +0 -80
  83. package/dist/extensions/DynamicContent/dynamic-content-modal.d.ts +0 -6
  84. package/dist/extensions/DynamicContent/dynamic-content-modal.js +0 -27
  85. package/dist/extensions/DynamicContent/dynamic-content.css.js +0 -24
  86. package/dist/extensions/DynamicContent/dynamic-content.d.ts +0 -16
  87. package/dist/extensions/DynamicContent/dynamic-content.js +0 -63
  88. package/dist/extensions/DynamicContent/extension.d.ts +0 -2
  89. package/dist/extensions/DynamicContent/extension.js +0 -11
  90. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +0 -51
  91. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +0 -52
  92. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +0 -41
  93. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +0 -18
  94. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +0 -32
  95. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +0 -18
  96. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +0 -8
  97. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +0 -13
  98. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +0 -34
  99. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +0 -13
  100. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +0 -13
  101. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +0 -104
  102. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +0 -13
  103. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +0 -13
  104. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +0 -13
  105. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +0 -13
  106. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +0 -13
  107. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +0 -13
  108. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +0 -45
  109. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +0 -43
  110. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +0 -46
  111. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +0 -44
  112. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +0 -22
  113. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +0 -46
  114. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +0 -46
  115. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +0 -45
  116. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +0 -45
  117. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +0 -45
  118. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +0 -20
  119. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +0 -43
  120. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +0 -45
  121. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +0 -18
  122. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +0 -32
  123. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +0 -46
  124. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +0 -44
  125. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +0 -43
  126. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +0 -43
  127. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +0 -45
  128. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +0 -43
  129. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +0 -266
  130. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +0 -26
  131. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +0 -22
  132. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +0 -18
  133. package/dist/static/styles/base.css.js +0 -11
  134. package/dist/static/styles/components/alert-message.css.js +0 -39
  135. package/dist/static/styles/components/amp-block.css.js +0 -18
  136. package/dist/static/styles/components/base-input.css.js +0 -47
  137. package/dist/static/styles/components/button-group.css.js +0 -54
  138. package/dist/static/styles/components/button.css.js +0 -106
  139. package/dist/static/styles/components/combobox.css.js +0 -49
  140. package/dist/static/styles/components/counter.css.js +0 -42
  141. package/dist/static/styles/components/dropdown-menu.css.js +0 -52
  142. package/dist/static/styles/components/narrow-panel.css.js +0 -38
  143. package/dist/static/styles/components/switcher.css.js +0 -11
  144. package/dist/static/styles/components/tabs.css.js +0 -97
  145. package/dist/static/styles/components/tools.css.js +0 -23
  146. package/dist/static/styles/components/version-history.css.js +0 -30
  147. package/dist/static/styles/components/wide-panel.css.js +0 -135
  148. package/dist/static/styles/variables.css.js +0 -23
package/README.md CHANGED
@@ -211,12 +211,7 @@ ISC License
211
211
  - [@useinsider/design-system-vue](https://github.com/useinsider/design-system-vue) - Insider's Vue design system
212
212
 
213
213
  ## 🎯 TODO:
214
- - CSS part should be optimized with variables & `sass-loader`.
214
+ - [editor.css](src/static/editor.css) should be optimized with variables & `sass-loader`.
215
215
  - Master Version Generator should be fixed.
216
216
  - Playwright integration
217
217
  - Commitlint & Precommit Hooks integration
218
- - We need to emit save event and we should return template config to it
219
- - Default template should be same with production
220
- - Open Guido with saved template
221
- - Get User ID, Email and Unique Template ID as dynamic from props
222
- - Get Pre-built display conditions from API
@@ -1,7 +1,3 @@
1
1
  export type GuidoConfig = {
2
2
  translationsPath: string;
3
3
  };
4
- export type DynamicContent = {
5
- value: string;
6
- text: string;
7
- };
package/dist/App.vue.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import '../node_modules/@useinsider/design-system-vue/dist/design-system-vue.css';
2
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
3
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { DynamicContent, GuidoConfig } from '@@/Types/generic';
1
+ import type { GuidoConfig } from '@@/Types/generic';
2
2
  type __VLS_Props = {
3
3
  emailId: string;
4
4
  userId: string;
@@ -7,11 +7,7 @@ type __VLS_Props = {
7
7
  username?: string;
8
8
  guidoConfig: GuidoConfig;
9
9
  };
10
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {
11
- applyDynamicContent: (data: DynamicContent) => void;
12
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
13
- "dynamic-content:open": (detail: DynamicContent | null) => void;
14
- }, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
10
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
15
11
  export default _default;
16
12
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
13
  type __VLS_TypePropsToOption<T> = {
@@ -10,7 +10,7 @@ var s = function() {
10
10
  _,
11
11
  !1,
12
12
  null,
13
- "67f97212"
13
+ "d4a5c957"
14
14
  );
15
15
  const f = a.exports;
16
16
  export {
@@ -1,10 +1,10 @@
1
- import { defineComponent as C, onMounted as _ } from "vue";
2
- import { usePartner as w } from "../composables/usePartner.js";
3
- import { useStripo as T } from "../composables/useStripo.js";
4
- import { useTemplates as v } from "../composables/useTemplates.js";
5
- import { DefaultUsername as D, DefaultGuidoConfig as E } from "../enums/defaults.js";
6
- import I from "./organisms/header/HeaderWrapper.vue.js";
7
- const x = /* @__PURE__ */ C({
1
+ import { defineComponent as f, onMounted as c } from "vue";
2
+ import { usePartner as g } from "../composables/usePartner.js";
3
+ import { useStripo as _ } from "../composables/useStripo.js";
4
+ import { useTemplates as y } from "../composables/useTemplates.js";
5
+ import { DefaultUsername as C, DefaultGuidoConfig as T } from "../enums/defaults.js";
6
+ import w from "./organisms/header/HeaderWrapper.vue.js";
7
+ const h = /* @__PURE__ */ f({
8
8
  __name: "Guido",
9
9
  props: {
10
10
  emailId: null,
@@ -14,41 +14,30 @@ const x = /* @__PURE__ */ C({
14
14
  username: null,
15
15
  guidoConfig: null
16
16
  },
17
- emits: ["dynamic-content:open"],
18
- setup(y, { expose: g, emit: n }) {
19
- const t = y, { getPartnerName: o, getProductType: r } = w(), {
20
- emailId: i,
21
- userId: a,
22
- guidoConfig: c,
23
- partnerName: m = o(),
24
- productType: u = r(),
25
- username: s = D
26
- } = t;
17
+ setup(d) {
18
+ const o = d, { getPartnerName: r, getProductType: t } = g(), {
19
+ emailId: n,
20
+ userId: i,
21
+ guidoConfig: a,
22
+ partnerName: u = r(),
23
+ productType: p = t(),
24
+ username: m = C
25
+ } = o;
27
26
  window.GuidoConfig = {
28
- ...E,
29
- ...c
27
+ ...T,
28
+ ...a
30
29
  };
31
- const { initPlugin: d } = T({ emailId: i, userId: a, username: s, partnerName: m, productType: u }), { getDefaultTemplate: p } = v(), l = (e) => {
32
- console.debug("dynamic-content:close", e), document.dispatchEvent(new CustomEvent("dynamic-content:close", {
33
- detail: e
34
- }));
35
- };
36
- return _(async () => {
30
+ const { initPlugin: l } = _({ emailId: n, userId: i, username: m, partnerName: u, productType: p }), { getDefaultTemplate: s } = y();
31
+ return c(async () => {
37
32
  try {
38
- const e = await p();
39
- await d(e);
33
+ const e = await s();
34
+ await l(e);
40
35
  } catch (e) {
41
36
  console.error("Failed to initialize Stripo editor:", e);
42
37
  }
43
- document.addEventListener("dynamic-content:open", (e) => {
44
- const f = e;
45
- console.debug("dynamic-content:open", f.detail), n("dynamic-content:open", f.detail);
46
- });
47
- }), g({
48
- applyDynamicContent: l
49
- }), { __sfc: !0, props: t, getPartnerName: o, getProductType: r, emailId: i, userId: a, guidoConfig: c, partnerName: m, productType: u, username: s, emit: n, initPlugin: d, getDefaultTemplate: p, applyDynamicContent: l, HeaderWrapper: I };
38
+ }), { __sfc: !0, props: o, getPartnerName: r, getProductType: t, emailId: n, userId: i, guidoConfig: a, partnerName: u, productType: p, username: m, initPlugin: l, getDefaultTemplate: s, HeaderWrapper: w };
50
39
  }
51
40
  });
52
41
  export {
53
- x as default
42
+ h as default
54
43
  };
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
2
  export default _default;
@@ -1,17 +1,17 @@
1
1
  import r from "./LeftSlot.vue2.js";
2
2
  import o from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var n = function() {
4
- var t = this, e = t._self._c, s = t._self._setupProxy;
5
- return e("div", { staticClass: "d-f a-i-c" }, [e(s.InButtonV2, { staticClass: "p-2", attrs: { id: "guido__back-button", "label-text": "Back", "left-icon": "line-arrow-left", styling: "text", type: "secondary" } }), s.editorStore.isVersionHistoryOpen ? e(s.RestoreButton, { staticClass: "ml-3" }) : t._e()], 1);
6
- }, a = [], i = /* @__PURE__ */ o(
3
+ var _ = function() {
4
+ var t = this, e = t._self._c, n = t._self._setupProxy;
5
+ return e("div", [e(n.InButtonV2, { attrs: { id: "guido__back-button", "label-text": "Back", "left-icon": "line-arrow-left", styling: "text", type: "secondary" } })], 1);
6
+ }, s = [], a = /* @__PURE__ */ o(
7
7
  r,
8
- n,
9
- a,
8
+ _,
9
+ s,
10
10
  !1,
11
11
  null,
12
12
  null
13
13
  );
14
- const f = i.exports;
14
+ const i = a.exports;
15
15
  export {
16
- f as default
16
+ i as default
17
17
  };
@@ -1,11 +1,9 @@
1
1
  import { defineComponent as t } from "vue";
2
- import { useEditorStore as o } from "../../../stores/editor.js";
3
- import { InButtonV2 as r } from "@useinsider/design-system-vue";
4
- import e from "./version-history/RestoreButton.vue.js";
2
+ import { InButtonV2 as o } from "@useinsider/design-system-vue";
5
3
  const _ = /* @__PURE__ */ t({
6
4
  __name: "LeftSlot",
7
- setup(m) {
8
- return { __sfc: !0, editorStore: o(), InButtonV2: r, RestoreButton: e };
5
+ setup(e) {
6
+ return { __sfc: !0, InButtonV2: o };
9
7
  }
10
8
  });
11
9
  export {
@@ -1,17 +1,17 @@
1
1
  import s from "./MiddleSlot.vue2.js";
2
- import i from "../../../_virtual/_plugin-vue2_normalizer.js";
3
- var n = function() {
2
+ import n from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var i = function() {
4
4
  var e = this, o = e._self._c, t = e._self._setupProxy;
5
- return t.editorStore.isVersionHistoryOpen ? o("div", { staticClass: "d-f" }, [o(t.VersionHistory), o(t.VersionHistoryViewOptions)], 1) : o("div", { staticClass: "d-f" }, [o(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "label-text-status": !1 } }), o(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "label-text-status": !1 } }), o(t.InButtonV2, { attrs: { id: "guido__code-button", "left-icon": "line-code", styling: "ghost", "tooltip-text": "Code Editor", type: "secondary", "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button") } }), o(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.trans("newsletter.email-preview") } }), o(t.ViewOptions, { staticClass: "ml-3" })], 1);
6
- }, l = [], r = /* @__PURE__ */ i(
5
+ return t.editorStore.isVersionHistoryOpen ? o(t.VersionHistory) : o("div", { staticClass: "d-f" }, [o(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "label-text-status": !1 } }), o(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "label-text-status": !1 } }), o(t.InButtonV2, { attrs: { id: "guido__code-button", "left-icon": "line-code", styling: "ghost", "tooltip-text": "Code Editor", type: "secondary", "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button") } }), o(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.trans("newsletter.email-preview") } })], 1);
6
+ }, l = [], r = /* @__PURE__ */ n(
7
7
  s,
8
- n,
8
+ i,
9
9
  l,
10
10
  !1,
11
11
  null,
12
12
  null
13
13
  );
14
- const p = r.exports;
14
+ const _ = r.exports;
15
15
  export {
16
- p as default
16
+ _ as default
17
17
  };
@@ -3,20 +3,18 @@ import { useTranslations as s } from "../../../composables/useTranslations.js";
3
3
  import { useEditorStore as n } from "../../../stores/editor.js";
4
4
  import { InButtonV2 as e } from "@useinsider/design-system-vue";
5
5
  import m from "./version-history/VersionHistory.vue.js";
6
- import p from "./version-history/ViewOptions.vue.js";
7
- import f from "./ViewOptions.vue.js";
8
- const y = /* @__PURE__ */ r({
6
+ const _ = /* @__PURE__ */ r({
9
7
  __name: "MiddleSlot",
10
- setup(a) {
8
+ setup(p) {
11
9
  const o = n(), t = s();
12
10
  return { __sfc: !0, editorStore: o, trans: t, getTooltipOptions: (i) => ({
13
11
  id: `${i}-tooltip`,
14
12
  dynamicPosition: !1,
15
13
  staticPosition: "bottom center",
16
14
  iconStatus: !1
17
- }), InButtonV2: e, VersionHistory: m, VersionHistoryViewOptions: p, ViewOptions: f };
15
+ }), InButtonV2: e, VersionHistory: m };
18
16
  }
19
17
  });
20
18
  export {
21
- y as default
19
+ _ as default
22
20
  };
@@ -1,17 +1,20 @@
1
1
  import o from "./RightSlot.vue2.js";
2
+ /* empty css */
2
3
  import i from "../../../_virtual/_plugin-vue2_normalizer.js";
3
4
  var n = function() {
4
5
  var s = this, e = s._self._c, t = s._self._setupProxy;
5
- return e("div", { staticClass: "d-f" }, [e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen }, on: { click: t.handleVersionHistory } }), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 }, on: { click: t.exportHtml } }), e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 } }), e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 } }), e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": t.editorStore.isVersionHistoryOpen } })], 1);
6
+ return e("div", [e("div", { staticClass: "d-f header-right-slot" }, [e("div", { staticClass: "d-f" }, [t.editorStore.isVersionHistoryOpen ? e(t.VersionHistoryViewOptions) : e(t.ViewOptions)], 1), e("div", { staticClass: "d-f" }, [e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen }, on: { click: t.handleVersionHistory } }), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 }, on: { click: t.exportHtml } }), e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 }, on: { click: t.handleSaveAsTemplate } }), e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryOpen, "label-text-status": !1 } })], 1), t.editorStore.isVersionHistoryOpen ? e(t.InButtonV2, { attrs: { id: "guido__restore-button", "label-text": "Restore" }, on: { click: function(d) {
7
+ return t.restoreVersion(t.versionHistoryStore.currentPatch.id);
8
+ } } }) : e(t.InButtonV2, { attrs: { id: "guido__save-button", "label-text": "Save" } })], 1), e(t.SaveTemplateModal, { attrs: { "html-data": t.currentHtmlData, "is-open": t.isSaveTemplateModalOpen }, on: { close: t.handleCloseSaveTemplateModal } })], 1);
6
9
  }, r = [], a = /* @__PURE__ */ i(
7
10
  o,
8
11
  n,
9
12
  r,
10
13
  !1,
11
14
  null,
12
- null
15
+ "8f49feef"
13
16
  );
14
- const c = a.exports;
17
+ const _ = a.exports;
15
18
  export {
16
- c as default
19
+ _ as default
17
20
  };
@@ -1,21 +1,34 @@
1
- import { defineComponent as s } from "vue";
2
- import { useExport as i } from "../../../composables/useExport.js";
3
- import { useVersionHistoryApi as n } from "../../../composables/useVersionHistoryApi.js";
4
- import { useEditorStore as p } from "../../../stores/editor.js";
5
- import { InButtonV2 as m } from "@useinsider/design-system-vue";
6
- const d = /* @__PURE__ */ s({
1
+ import { defineComponent as c, ref as n } from "vue";
2
+ import { useActionsApi as f } from "../../../composables/useActionsApi.js";
3
+ import { useExport as u } from "../../../composables/useExport.js";
4
+ import { useVersionHistoryApi as d } from "../../../composables/useVersionHistoryApi.js";
5
+ import { useEditorStore as V } from "../../../stores/editor.js";
6
+ import { useVersionHistoryStore as y } from "../../../stores/version-history.js";
7
+ import { InButtonV2 as H } from "@useinsider/design-system-vue";
8
+ import S from "./SaveTemplateModal.vue.js";
9
+ import v from "./version-history/ViewOptions.vue.js";
10
+ import h from "./ViewOptions.vue.js";
11
+ const b = /* @__PURE__ */ c({
7
12
  __name: "RightSlot",
8
- setup(f) {
9
- const { exportHtml: e } = i(), { openVersionHistory: o, closeVersionHistory: r } = n(), t = p();
10
- return { __sfc: !0, exportHtml: e, openVersionHistory: o, closeVersionHistory: r, editorStore: t, handleVersionHistory: () => {
11
- if (t.isVersionHistoryOpen) {
12
- r();
13
+ setup(_) {
14
+ const { exportHtml: a } = u(), { openVersionHistory: e, closeVersionHistory: t, restoreVersion: m } = d(), { getCompiledEmail: r } = f(), s = V(), l = y(), o = n(!1), i = n("");
15
+ return { __sfc: !0, exportHtml: a, openVersionHistory: e, closeVersionHistory: t, restoreVersion: m, getCompiledEmail: r, editorStore: s, versionHistoryStore: l, isSaveTemplateModalOpen: o, currentHtmlData: i, handleVersionHistory: () => {
16
+ if (s.isVersionHistoryOpen) {
17
+ t();
13
18
  return;
14
19
  }
15
- o();
16
- }, InButtonV2: m };
20
+ e();
21
+ }, handleSaveAsTemplate: async () => {
22
+ try {
23
+ const p = await r();
24
+ i.value = p.html, o.value = !0;
25
+ } catch {
26
+ }
27
+ }, handleCloseSaveTemplateModal: () => {
28
+ o.value = !1;
29
+ }, InButtonV2: H, SaveTemplateModal: S, VersionHistoryViewOptions: v, ViewOptions: h };
17
30
  }
18
31
  });
19
32
  export {
20
- d as default
33
+ b as default
21
34
  };
@@ -0,0 +1,21 @@
1
+ interface TemplateModalProps {
2
+ isOpen: boolean;
3
+ htmlData: string;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<TemplateModalProps>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {
6
+ close: () => void;
7
+ save: (data: {
8
+ templateName: string;
9
+ htmlData: string;
10
+ }) => void;
11
+ }, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<TemplateModalProps>>>, {}>;
12
+ export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToOption<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
@@ -0,0 +1,21 @@
1
+ import r from "./SaveTemplateModal.vue2.js";
2
+ import o from "../../../_virtual/_plugin-vue2_normalizer.js";
3
+ var s = function() {
4
+ var t = this, n = t._self._c, e = t._self._setupProxy;
5
+ return n(e.InDrawer, { attrs: { id: "save-template-modal", size: "medium", "description-text": e.trans("newsletter.save-template-description"), "footer-button-group-options": e.drawerFooterOptions, status: e.props.isOpen, "title-text": e.trans("products.save-template") }, on: { cancelOrBackButtonEvent: e.closeModal, onCloseEvent: e.closeModal, primaryButtonEvent: e.saveTemplate }, scopedSlots: t._u([{ key: "contentSlot", fn: function() {
6
+ return [n(e.InTextInput, { staticClass: "mb-5 w-1", attrs: { id: "template-name-input", "with-label": "", name: "templateName", disabled: e.isSaving, invalid: !!e.validationError, "invalid-message": e.validationError, label: e.trans("products.template-name"), placeholder: e.trans("newsletter.enter-template-name") }, model: { value: e.templateNameInput, callback: function(a) {
7
+ e.templateNameInput = typeof a == "string" ? a.trim() : a;
8
+ }, expression: "templateNameInput" } })];
9
+ }, proxy: !0 }]) });
10
+ }, l = [], p = /* @__PURE__ */ o(
11
+ r,
12
+ s,
13
+ l,
14
+ !1,
15
+ null,
16
+ null
17
+ );
18
+ const u = p.exports;
19
+ export {
20
+ u as default
21
+ };
@@ -0,0 +1,61 @@
1
+ import { defineComponent as T, ref as m, computed as g, watch as v } from "vue";
2
+ import { useTemplateValidation as h } from "../../../composables/useTemplateValidation.js";
3
+ import { useToaster as _ } from "../../../composables/useToaster.js";
4
+ import { useTranslations as w } from "../../../composables/useTranslations.js";
5
+ import { InTextInput as x, InDrawer as B } from "@useinsider/design-system-vue";
6
+ const N = /* @__PURE__ */ T({
7
+ __name: "SaveTemplateModal",
8
+ props: {
9
+ isOpen: { type: Boolean },
10
+ htmlData: null
11
+ },
12
+ emits: ["close", "save"],
13
+ setup(d, { emit: r }) {
14
+ const s = d, n = w(), { handleError: p } = _(), a = m(""), t = m(!1), {
15
+ validationError: i,
16
+ isValidating: u,
17
+ validateTemplateName: l,
18
+ clearValidation: o
19
+ } = h(), f = g(() => ({
20
+ primaryButton: {
21
+ styling: "solid",
22
+ type: "primary",
23
+ labelText: n(t.value ? "newsletter.saving" : "products.save"),
24
+ disabled: t.value || u.value || !i.value
25
+ },
26
+ cancelOrBackButton: {
27
+ type: "secondary",
28
+ styling: "ghost",
29
+ labelText: n("products.cancel")
30
+ }
31
+ })), c = () => {
32
+ a.value = "", o(), r("close");
33
+ }, y = async () => {
34
+ if (!i.value) {
35
+ await l(a.value);
36
+ return;
37
+ }
38
+ t.value = !0;
39
+ try {
40
+ if (!(await l(a.value)).isValid)
41
+ return;
42
+ r("save", {
43
+ templateName: a.value.trim(),
44
+ htmlData: s.htmlData
45
+ }), c();
46
+ } catch (e) {
47
+ p(e, "Error saving template:");
48
+ } finally {
49
+ t.value = !1;
50
+ }
51
+ };
52
+ return v(a, (e) => {
53
+ e.trim() ? l(e) : o();
54
+ }), v(() => s.isOpen, (e) => {
55
+ e || (a.value = "", o());
56
+ }), { __sfc: !0, props: s, emit: r, trans: n, handleError: p, templateNameInput: a, isSaving: t, validationError: i, isValidating: u, validateTemplateName: l, clearValidation: o, drawerFooterOptions: f, closeModal: c, saveTemplate: y, InDrawer: B, InTextInput: x };
57
+ }
58
+ });
59
+ export {
60
+ N as default
61
+ };
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
2
  export default _default;
@@ -1,14 +1,2 @@
1
- type __VLS_Props = {
2
- itemStatus?: boolean;
3
- };
4
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
5
2
  export default _default;
6
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
7
- type __VLS_TypePropsToOption<T> = {
8
- [K in keyof T]-?: {} extends Pick<T, K> ? {
9
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
10
- } : {
11
- type: import('vue').PropType<T[K]>;
12
- required: true;
13
- };
14
- };
@@ -2,21 +2,21 @@ import o from "./VersionHistory.vue2.js";
2
2
  /* empty css */
3
3
  import i from "../../../../_virtual/_plugin-vue2_normalizer.js";
4
4
  var n = function() {
5
- var s = this, e = s._self._c, t = s._self._setupProxy;
6
- return e("div", { staticClass: "version-history-wrapper d-f a-i-c f-g-1 mx-3" }, [t.itemStatus ? e(t.VersionHistoryItem, { attrs: { "text-align": "right", date: t.versionHistoryStore.previousPatch.date, description: t.versionHistoryStore.previousPatch.description } }) : s._e(), e("div", { staticClass: "d-f" }, [e(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": !t.versionHistoryStore.hasPreviousPatch, "label-text-status": !1 }, on: { click: function(r) {
5
+ var r = this, e = r._self._c, t = r._self._setupProxy;
6
+ return e("div", { staticClass: "version-history-wrapper d-f a-i-c f-g-1 mx-2" }, [e(t.VersionHistoryItem, { attrs: { "text-align": "right", date: t.versionHistoryStore.previousPatch.date, description: t.versionHistoryStore.previousPatch.description } }), e("div", { staticClass: "d-f" }, [e(t.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "disabled-status": !t.versionHistoryStore.hasPreviousPatch, "label-text-status": !1 }, on: { click: function(s) {
7
7
  return t.previewVersion(t.versionHistoryStore.previousPatch.id);
8
- } } }), e(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": !t.versionHistoryStore.hasNextPatch, "label-text-status": !1 }, on: { click: function(r) {
8
+ } } }), e(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": !t.versionHistoryStore.hasNextPatch, "label-text-status": !1 }, on: { click: function(s) {
9
9
  return t.previewVersion(t.versionHistoryStore.nextPatch.id);
10
- } } })], 1), t.itemStatus ? e(t.VersionHistoryItem, { attrs: { "text-align": "left", date: t.versionHistoryStore.nextPatch.date, description: t.versionHistoryStore.nextPatch.description } }) : s._e()], 1);
10
+ } } })], 1), e(t.VersionHistoryItem, { attrs: { "text-align": "left", date: t.versionHistoryStore.nextPatch.date, description: t.versionHistoryStore.nextPatch.description } })], 1);
11
11
  }, a = [], c = /* @__PURE__ */ i(
12
12
  o,
13
13
  n,
14
14
  a,
15
15
  !1,
16
16
  null,
17
- "52a77eec"
17
+ "187d41fa"
18
18
  );
19
- const _ = c.exports;
19
+ const p = c.exports;
20
20
  export {
21
- _ as default
21
+ p as default
22
22
  };
@@ -1,18 +1,15 @@
1
- import { defineComponent as i } from "vue";
2
- import { useVersionHistoryApi as n } from "../../../../composables/useVersionHistoryApi.js";
3
- import { useVersionHistoryStore as m } from "../../../../stores/version-history.js";
4
- import { InButtonV2 as p } from "@useinsider/design-system-vue";
5
- import f from "./VersionHistoryItem.vue.js";
6
- const _ = /* @__PURE__ */ i({
1
+ import { defineComponent as t } from "vue";
2
+ import { useVersionHistoryApi as e } from "../../../../composables/useVersionHistoryApi.js";
3
+ import { useVersionHistoryStore as s } from "../../../../stores/version-history.js";
4
+ import { InButtonV2 as i } from "@useinsider/design-system-vue";
5
+ import n from "./VersionHistoryItem.vue.js";
6
+ const c = /* @__PURE__ */ t({
7
7
  __name: "VersionHistory",
8
- props: {
9
- itemStatus: { type: Boolean }
10
- },
11
- setup(t) {
12
- const o = t, r = m(), { previewVersion: e } = n(), { itemStatus: s = !1 } = o;
13
- return { __sfc: !0, versionHistoryStore: r, previewVersion: e, props: o, itemStatus: s, InButtonV2: p, VersionHistoryItem: f };
8
+ setup(m) {
9
+ const o = s(), { previewVersion: r } = e();
10
+ return { __sfc: !0, versionHistoryStore: o, previewVersion: r, InButtonV2: i, VersionHistoryItem: n };
14
11
  }
15
12
  });
16
13
  export {
17
- _ as default
14
+ c as default
18
15
  };
@@ -3,7 +3,7 @@ type __VLS_Props = {
3
3
  date: number;
4
4
  textAlign: string;
5
5
  };
6
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
6
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
7
7
  export default _default;
8
8
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
9
  type __VLS_TypePropsToOption<T> = {
@@ -10,7 +10,7 @@ var i = function() {
10
10
  a,
11
11
  !1,
12
12
  null,
13
- "ee4b9c3f"
13
+ "0e2ff42d"
14
14
  );
15
15
  const d = n.exports;
16
16
  export {
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
2
  export default _default;
@@ -1,5 +1,4 @@
1
1
  import { GetCompiledEmailOptions, CompiledEmailResult } from '@@/Types/actions-api';
2
2
  export declare const useActionsApi: () => {
3
3
  getCompiledEmail: (options?: GetCompiledEmailOptions) => Promise<CompiledEmailResult>;
4
- activateCustomViewStyles: (isActive?: boolean) => void;
5
4
  };
@@ -1,5 +1,5 @@
1
- const g = () => ({ getCompiledEmail: (t = {}) => new Promise((i, a) => {
2
- const s = { ...{
1
+ const d = () => ({ getCompiledEmail: (t = {}) => new Promise((a, i) => {
2
+ const m = { ...{
3
3
  minimize: !0,
4
4
  utmEntity: {
5
5
  utmSource: "",
@@ -18,21 +18,19 @@ const g = () => ({ getCompiledEmail: (t = {}) => new Promise((i, a) => {
18
18
  forseAmp: !1,
19
19
  resetDataSavedFlag: !1,
20
20
  disableLineHeightsReplace: !0
21
- }, ...t }, o = {
22
- callback: (e, m, l, n, c) => {
23
- e ? a(e) : i({
24
- html: m,
25
- ampHtml: l,
26
- ampErrors: n,
21
+ }, ...t }, s = {
22
+ callback: (e, l, n, o, c) => {
23
+ e ? i(e) : a({
24
+ html: l,
25
+ ampHtml: n,
26
+ ampErrors: o,
27
27
  displayConditions: c
28
28
  });
29
29
  },
30
- ...s
30
+ ...m
31
31
  };
32
- window.StripoEditorApi.actionsApi.compileEmail(o);
33
- }), activateCustomViewStyles: (t = !0) => {
34
- window.StripoEditorApi.actionsApi.activateCustomViewStyles(t);
35
- } });
32
+ window.StripoEditorApi.actionsApi.compileEmail(s);
33
+ }) });
36
34
  export {
37
- g as useActionsApi
35
+ d as useActionsApi
38
36
  };