@useinsider/guido 1.0.0-beta.c798ebe → 1.0.0-beta.c907a9d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -2
- package/dist/@types/generic.d.ts +28 -0
- package/dist/@types/save-as-template.d.ts +29 -0
- package/dist/components/Guido.vue.d.ts +6 -3
- package/dist/components/Guido.vue.js +9 -9
- package/dist/components/Guido.vue2.js +63 -44
- package/dist/components/organisms/LoadingWrapper.vue.d.ts +2 -0
- package/dist/components/organisms/LoadingWrapper.vue.js +18 -0
- package/dist/components/organisms/LoadingWrapper.vue2.js +12 -0
- package/dist/components/organisms/email-preview/PreviewContainer.vue.js +12 -12
- package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +7 -8
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +1 -1
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +3 -3
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +16 -15
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +8 -8
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +1 -1
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +8 -5
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +7 -7
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +8 -8
- package/dist/components/organisms/header/MiddleSlot.vue.js +6 -6
- package/dist/components/organisms/header/MiddleSlot.vue2.js +15 -22
- package/dist/components/organisms/header/RightSlot.vue.js +10 -9
- package/dist/components/organisms/header/RightSlot.vue2.js +26 -26
- package/dist/components/organisms/header/ViewOptions.vue.js +10 -10
- package/dist/components/organisms/header/ViewOptions.vue2.js +28 -11
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +3 -3
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +34 -16
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.d.ts +2 -0
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue.js +20 -0
- package/dist/components/organisms/save-as-template/SaveAsTemplateDrawer.vue2.js +63 -0
- package/dist/components/wrappers/WpDrawer.vue.d.ts +63 -0
- package/dist/components/wrappers/WpDrawer.vue.js +25 -0
- package/dist/components/wrappers/WpDrawer.vue2.js +23 -0
- package/dist/components/wrappers/WpModal.vue.d.ts +3 -14
- package/dist/composables/useActionsApi.d.ts +2 -1
- package/dist/composables/useActionsApi.js +52 -27
- package/dist/composables/useConfig.d.ts +0 -1
- package/dist/composables/useConfig.js +4 -8
- package/dist/composables/useCustomInterfaceAppearance.js +15 -13
- package/dist/composables/useGuidoActions.d.ts +2 -2
- package/dist/composables/useHtmlCompiler.js +9 -8
- package/dist/composables/useHttp.js +23 -21
- package/dist/composables/usePartner.d.ts +1 -1
- package/dist/composables/usePartner.js +9 -14
- package/dist/composables/usePreviewMode.js +17 -17
- package/dist/composables/useStripo.js +36 -26
- package/dist/composables/useToaster.d.ts +1 -1
- package/dist/composables/useToaster.js +11 -11
- package/dist/composables/useTranslations.js +3 -2
- package/dist/composables/useValidation.d.ts +56 -0
- package/dist/composables/useValidation.js +19 -0
- package/dist/composables/validators/saveAsTemplate.d.ts +31 -0
- package/dist/composables/validators/saveAsTemplate.js +24 -0
- package/dist/enums/defaults.d.ts +4 -1
- package/dist/enums/defaults.js +13 -2
- package/dist/extensions/DynamicContent/dynamic-content.js +13 -15
- package/dist/guido.css +1 -1
- package/dist/mock/api/template-library.d.ts +2 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +4 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +2 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +2 -2
- package/dist/node_modules/@vueuse/shared/index.js +45 -0
- package/dist/node_modules/lodash-es/_Stack.js +18 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/lodash-es/_apply.js +16 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +19 -0
- package/dist/node_modules/lodash-es/_assignMergeValue.js +8 -0
- package/dist/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/lodash-es/_baseCreate.js +17 -0
- package/dist/node_modules/lodash-es/_baseFor.js +5 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.js +15 -0
- package/dist/node_modules/lodash-es/_baseMerge.js +20 -0
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +31 -0
- package/dist/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +8 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.js +9 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/_copyArray.js +9 -0
- package/dist/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/lodash-es/_createAssigner.js +15 -0
- package/dist/node_modules/lodash-es/_createBaseFor.js +13 -0
- package/dist/node_modules/lodash-es/_defineProperty.js +11 -0
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/lodash-es/_isIterateeCall.js +13 -0
- package/dist/node_modules/lodash-es/_isMasked.js +2 -2
- package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +10 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +11 -0
- package/dist/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/lodash-es/_overRest.js +15 -0
- package/dist/node_modules/lodash-es/_safeGet.js +7 -0
- package/dist/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/lodash-es/_shortOut.js +16 -0
- package/dist/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/lodash-es/_stackSet.js +17 -0
- package/dist/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +8 -0
- package/dist/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/lodash-es/isPlainObject.js +16 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/lodash-es/merge.js +8 -0
- package/dist/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/lodash-es/toPlainObject.js +8 -0
- package/dist/node_modules/valibot/dist/index.js +190 -0
- package/dist/node_modules/vue-demi/lib/index.js +7 -0
- package/dist/services/templateLibraryApi.d.ts +7 -0
- package/dist/services/templateLibraryApi.js +87 -0
- package/dist/static/styles/components/loader.css.js +10 -0
- package/dist/static/styles/components/wide-panel.css.js +2 -2
- package/dist/stores/dynamic-content.d.ts +27 -0
- package/dist/stores/dynamic-content.js +23 -0
- package/dist/stores/editor.d.ts +176 -1
- package/dist/stores/editor.js +22 -4
- package/dist/stores/preview.d.ts +4 -55
- package/dist/stores/preview.js +24 -42
- package/dist/stores/save-as-template.d.ts +73 -0
- package/dist/stores/save-as-template.js +48 -0
- package/dist/utils/arrayUtil.d.ts +1 -0
- package/dist/utils/arrayUtil.js +10 -0
- package/dist/utils/base64.d.ts +1 -0
- package/dist/utils/base64.js +7 -0
- package/dist/utils/genericUtil.d.ts +3 -0
- package/dist/utils/genericUtil.js +11 -0
- package/dist/utils/templatePreparation.d.ts +4 -0
- package/dist/utils/templatePreparation.js +33 -0
- package/dist/utils/tooltipUtils.d.ts +2 -0
- package/dist/utils/tooltipUtils.js +11 -0
- package/package.json +3 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import i from "./MiddleSlot.vue2.js";
|
|
2
2
|
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
3
|
var n = function() {
|
|
4
|
-
var
|
|
5
|
-
return t.editorStore.isVersionHistoryOpen ?
|
|
6
|
-
},
|
|
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", "disabled-status": t.editorStore.isUndoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__undo-button"), "tooltip-text": t.trans("action-builder.undo") } }), o(t.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isRedoButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__redo-button"), "tooltip-text": t.trans("action-builder.redo") } }), o(t.InButtonV2, { attrs: { id: "guido__code-button", "data-testid": "Code Editor", "left-icon": "line-code", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isCodeEditorButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isCodeEditorOpen, "tooltip-options": t.getTooltipOptions("guido__code-button"), "tooltip-text": t.codeEditorTooltipText } }), o(t.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isPreviewButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isPreviewModeOpen, "tooltip-options": t.getTooltipOptions("guido__preview-button"), "tooltip-text": t.previewTooltipText }, on: { click: t.handlePreviewToggle } }), o(t.ViewOptions, { staticClass: "ml-3" }), t.editorStore.isPreviewModeOpen ? o(t.AmpToggle) : e._e()], 1);
|
|
6
|
+
}, d = [], l = /* @__PURE__ */ s(
|
|
7
7
|
i,
|
|
8
8
|
n,
|
|
9
|
-
|
|
9
|
+
d,
|
|
10
10
|
!1,
|
|
11
11
|
null,
|
|
12
12
|
null
|
|
13
13
|
);
|
|
14
|
-
const
|
|
14
|
+
const p = l.exports;
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
p as default
|
|
17
17
|
};
|
|
@@ -1,27 +1,20 @@
|
|
|
1
|
-
import { defineComponent as p, computed as
|
|
2
|
-
import { usePreviewMode as
|
|
3
|
-
import { useTranslations as
|
|
4
|
-
import
|
|
5
|
-
import { useEditorStore as
|
|
6
|
-
import {
|
|
7
|
-
import { InButtonV2 as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
1
|
+
import { defineComponent as p, computed as i } from "vue";
|
|
2
|
+
import { usePreviewMode as m } from "../../../composables/usePreviewMode.js";
|
|
3
|
+
import { useTranslations as l } from "../../../composables/useTranslations.js";
|
|
4
|
+
import d from "../email-preview/amp/AmpToggle.vue.js";
|
|
5
|
+
import { useEditorStore as w } from "../../../stores/editor.js";
|
|
6
|
+
import { getTooltipOptions as c } from "../../../utils/tooltipUtils.js";
|
|
7
|
+
import { InButtonV2 as f } from "@useinsider/design-system-vue";
|
|
8
|
+
import a from "./version-history/VersionHistory.vue.js";
|
|
9
|
+
import v from "./version-history/ViewOptions.vue.js";
|
|
10
|
+
import u from "./ViewOptions.vue.js";
|
|
11
|
+
const C = /* @__PURE__ */ p({
|
|
12
12
|
__name: "MiddleSlot",
|
|
13
|
-
setup(
|
|
14
|
-
const
|
|
15
|
-
return { __sfc: !0, editorStore:
|
|
16
|
-
id: `${n}-tooltip`,
|
|
17
|
-
dynamicPosition: !1,
|
|
18
|
-
staticPosition: "bottom center",
|
|
19
|
-
iconStatus: !1
|
|
20
|
-
}), handlePreviewToggle: () => {
|
|
21
|
-
e.isPreviewModeOpen ? i() : t();
|
|
22
|
-
}, AmpToggle: f, InButtonV2: w, VersionHistory: v, VersionHistoryViewOptions: u, ViewOptions: P };
|
|
13
|
+
setup(T) {
|
|
14
|
+
const o = w(), e = l(), { openPreviewMode: t, closePreviewMode: r } = m(), s = i(() => o.isPreviewModeOpen ? e("newsletter.close-email-preview") : e("newsletter.email-preview")), n = i(() => o.isCodeEditorOpen ? e("newsletter.close-html-editor") : e("newsletter.html-editor"));
|
|
15
|
+
return { __sfc: !0, editorStore: o, trans: e, openPreviewMode: t, closePreviewMode: r, previewTooltipText: s, codeEditorTooltipText: n, handlePreviewToggle: () => o.isPreviewModeOpen ? r() : t(), AmpToggle: d, getTooltipOptions: c, InButtonV2: f, VersionHistory: a, VersionHistoryViewOptions: v, ViewOptions: u };
|
|
23
16
|
}
|
|
24
17
|
});
|
|
25
18
|
export {
|
|
26
|
-
|
|
19
|
+
C as default
|
|
27
20
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
var
|
|
4
|
-
var s
|
|
5
|
-
|
|
6
|
-
},
|
|
7
|
-
|
|
1
|
+
import n from "./RightSlot.vue2.js";
|
|
2
|
+
import a from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var l = function() {
|
|
4
|
+
var s, i;
|
|
5
|
+
var o = this, e = o._self._c, t = o._self._setupProxy;
|
|
6
|
+
return e("div", { staticClass: "d-f" }, [(s = t.config.features) != null && s.versionHistory ? e(t.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isVersionHistoryButtonDisabled, "label-text-status": !1, "selected-status": t.editorStore.isVersionHistoryOpen, "tooltip-options": t.getTooltipOptions("guido__history-button"), "tooltip-text": t.versionHistoryTooltipText }, on: { click: t.handleVersionHistory } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isExportButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__export-button"), "tooltip-text": t.trans("newsletter.export") }, on: { click: t.exportHtml } }), (i = t.config.features) != null && i.saveAsTemplate ? e(t.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isSaveAsButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__save-as-button"), "tooltip-text": t.trans("newsletter.save-templates") }, on: { click: t.handleSaveAs } }) : o._e(), e(t.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "disabled-status": t.editorStore.isTestButtonDisabled, "label-text-status": !1, "tooltip-options": t.getTooltipOptions("guido__test-button"), "tooltip-text": t.trans("newsletter.test-email") } }), e(t.InButtonV2, { staticClass: "ml-3", attrs: { id: "guido__save-button", "label-text": "Save", "disabled-status": !t.isSaving && t.editorStore.isSaveButtonDisabled, "loading-status": t.isSaving }, on: { click: t.handleSave } })], 1);
|
|
7
|
+
}, r = [], d = /* @__PURE__ */ a(
|
|
8
8
|
n,
|
|
9
|
-
|
|
9
|
+
l,
|
|
10
|
+
r,
|
|
10
11
|
!1,
|
|
11
12
|
null,
|
|
12
13
|
null
|
|
13
14
|
);
|
|
14
|
-
const c =
|
|
15
|
+
const c = d.exports;
|
|
15
16
|
export {
|
|
16
17
|
c as default
|
|
17
18
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { useExport as
|
|
4
|
-
import { useSaveStart as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
import { defineComponent as v, ref as S, computed as d } from "vue";
|
|
2
|
+
import { useConfig as y } from "../../../composables/useConfig.js";
|
|
3
|
+
import { useExport as g } from "../../../composables/useExport.js";
|
|
4
|
+
import { useSaveStart as h, useSaveComplete as H } from "../../../composables/useGuidoActions.js";
|
|
5
|
+
import { useTranslations as _ } from "../../../composables/useTranslations.js";
|
|
6
|
+
import { useVersionHistoryApi as T } from "../../../composables/useVersionHistoryApi.js";
|
|
7
|
+
import { useEditorStore as V } from "../../../stores/editor.js";
|
|
8
|
+
import { useTemplatePreparation as w } from "../../../utils/templatePreparation.js";
|
|
9
|
+
import { getTooltipOptions as x } from "../../../utils/tooltipUtils.js";
|
|
10
|
+
import { InButtonV2 as C } from "@useinsider/design-system-vue";
|
|
11
|
+
const q = /* @__PURE__ */ v({
|
|
10
12
|
__name: "RightSlot",
|
|
11
|
-
setup(
|
|
12
|
-
const {
|
|
13
|
-
if (
|
|
14
|
-
|
|
13
|
+
setup(O) {
|
|
14
|
+
const { config: p } = y(), { exportHtml: m } = g(), s = h(), n = H(), { openVersionHistory: i, closeVersionHistory: a } = T(), t = V(), e = _(), o = S(!1), l = () => {
|
|
15
|
+
if (t.isVersionHistoryOpen) {
|
|
16
|
+
a();
|
|
15
17
|
return;
|
|
16
18
|
}
|
|
17
19
|
i();
|
|
18
|
-
}, c =
|
|
19
|
-
|
|
20
|
+
}, c = () => {
|
|
21
|
+
t.isSaveAsTemplateDrawerOpen = !0;
|
|
22
|
+
}, f = d(() => t.isVersionHistoryOpen ? e("newsletter.close-version-history") : e("newsletter.version-history"));
|
|
23
|
+
return { __sfc: !0, config: p, exportHtml: m, saveStart: s, saveComplete: n, openVersionHistory: i, closeVersionHistory: a, editorStore: t, trans: e, isSaving: o, handleVersionHistory: l, handleSaveAs: c, versionHistoryTooltipText: f, handleSave: async () => {
|
|
24
|
+
o.value = !0, t.loadingStatus = !0, s();
|
|
20
25
|
try {
|
|
21
|
-
const {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// CSS is embedded in HTML from Stripo
|
|
26
|
-
});
|
|
27
|
-
} catch (t) {
|
|
28
|
-
console.error("Failed to get template data for save:", t);
|
|
26
|
+
const { prepareTemplateDetails: r } = w(), u = await r();
|
|
27
|
+
n(u), o.value = !1, t.loadingStatus = !1;
|
|
28
|
+
} catch (r) {
|
|
29
|
+
console.error("Failed to get template data for save:", r);
|
|
29
30
|
}
|
|
30
|
-
},
|
|
31
|
-
return { __sfc: !0, exportHtml: p, getCompiledEmail: e, saveStart: r, saveComplete: s, openVersionHistory: i, closeVersionHistory: n, editorStore: o, previewStore: m, handleVersionHistory: a, handleSave: c, isSaveButtonDisabled: l, InButtonV2: h };
|
|
31
|
+
}, getTooltipOptions: x, InButtonV2: C };
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
q as default
|
|
36
36
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "./ViewOptions.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
var
|
|
5
|
-
var t = this,
|
|
6
|
-
return
|
|
7
|
-
}, n = [], _ = /* @__PURE__ */
|
|
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,
|
|
8
9
|
r,
|
|
9
|
-
s,
|
|
10
10
|
n,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"ad3cf7cc"
|
|
14
14
|
);
|
|
15
|
-
const
|
|
15
|
+
const m = _.exports;
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
m as default
|
|
18
18
|
};
|
|
@@ -1,17 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { defineComponent as n } from "vue";
|
|
2
|
+
import { useTranslations as p } from "../../../composables/useTranslations.js";
|
|
3
|
+
import { useEditorStore as s } from "../../../stores/editor.js";
|
|
4
|
+
import { getTooltipOptions as o } from "../../../utils/tooltipUtils.js";
|
|
5
|
+
import { InSegments as r } from "@useinsider/design-system-vue";
|
|
6
|
+
const d = /* @__PURE__ */ n({
|
|
6
7
|
__name: "ViewOptions",
|
|
7
8
|
setup(m) {
|
|
8
|
-
const e =
|
|
9
|
-
{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const e = s(), t = p(), i = [
|
|
10
|
+
{
|
|
11
|
+
text: "",
|
|
12
|
+
icon: "line-desktop",
|
|
13
|
+
value: "desktop",
|
|
14
|
+
position: "bottom",
|
|
15
|
+
align: "center",
|
|
16
|
+
tooltipText: t("newsletter.desktop"),
|
|
17
|
+
tooltipOptions: o("guido__view-option-desktop")
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
text: "",
|
|
21
|
+
icon: "line-menu-mobileapp",
|
|
22
|
+
value: "mobile",
|
|
23
|
+
position: "bottom",
|
|
24
|
+
align: "center",
|
|
25
|
+
tooltipText: t("newsletter.mobile"),
|
|
26
|
+
tooltipOptions: o("guido__view-option-mobile")
|
|
27
|
+
}
|
|
28
|
+
];
|
|
29
|
+
return { __sfc: !0, editorStore: e, trans: t, segmentList: i, InSegments: r };
|
|
13
30
|
}
|
|
14
31
|
});
|
|
15
32
|
export {
|
|
16
|
-
|
|
33
|
+
d as default
|
|
17
34
|
};
|
|
@@ -1,23 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { defineComponent as p } from "vue";
|
|
2
|
+
import { useTranslations as m } from "../../../../composables/useTranslations.js";
|
|
3
|
+
import { useVersionHistoryApi as l } from "../../../../composables/useVersionHistoryApi.js";
|
|
4
|
+
import { useVersionHistoryStore as a } from "../../../../stores/version-history.js";
|
|
5
|
+
import { getTooltipOptions as n } from "../../../../utils/tooltipUtils.js";
|
|
6
|
+
import { InSegments as c } from "@useinsider/design-system-vue";
|
|
7
|
+
const h = /* @__PURE__ */ p({
|
|
6
8
|
__name: "ViewOptions",
|
|
7
|
-
setup(
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
setup(u) {
|
|
10
|
+
const t = a(), { switchToDesktopPreview: e, switchToMobilePreview: i } = l(), o = m(), r = [
|
|
11
|
+
{
|
|
12
|
+
text: "",
|
|
13
|
+
icon: "line-desktop",
|
|
14
|
+
value: "desktop",
|
|
15
|
+
position: "bottom",
|
|
16
|
+
align: "center",
|
|
17
|
+
tooltipText: o("newsletter.desktop"),
|
|
18
|
+
tooltipOptions: n("guido__version-history-view-option-desktop")
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
text: "",
|
|
22
|
+
icon: "line-menu-mobileapp",
|
|
23
|
+
value: "mobile",
|
|
24
|
+
position: "bottom",
|
|
25
|
+
align: "center",
|
|
26
|
+
tooltipText: o("newsletter.mobile"),
|
|
27
|
+
tooltipOptions: n("guido__version-history-view-option-mobile")
|
|
28
|
+
}
|
|
29
|
+
];
|
|
30
|
+
return { __sfc: !0, versionHistoryStore: t, switchToDesktopPreview: e, switchToMobilePreview: i, trans: o, segmentList: r, changeVisualMode: (s) => {
|
|
31
|
+
if (t.editorVisualMode = s, s === "mobile") {
|
|
32
|
+
i();
|
|
15
33
|
return;
|
|
16
34
|
}
|
|
17
|
-
|
|
18
|
-
}, InSegments:
|
|
35
|
+
e();
|
|
36
|
+
}, InSegments: c };
|
|
19
37
|
}
|
|
20
38
|
});
|
|
21
39
|
export {
|
|
22
|
-
|
|
40
|
+
h as default
|
|
23
41
|
};
|
|
@@ -0,0 +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<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import s from "./SaveAsTemplateDrawer.vue2.js";
|
|
2
|
+
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var r = function() {
|
|
4
|
+
var a = this, e = a._self._c, t = a._self._setupProxy;
|
|
5
|
+
return e(t.WpDrawer, { attrs: { id: "save-as-template-modal", "description-status": "", "description-text": t.trans("newsletter.save-template-description"), "footer-button-group-options": t.footerButtonGroupOptions, status: t.editorStore.isSaveAsTemplateDrawerOpen, "title-text": t.trans("products.save-template") }, on: { cancelOrBackButtonEvent: t.closeModal, onCloseEvent: t.closeModal, primaryButtonEvent: t.saveTemplate } }, [e(t.InBasicTextInput, { staticClass: "mb-5 w-1", attrs: { id: "guido__template-name-input", name: "templateName", "character-counter-status": !1, "disabled-status": t.isSaving, "label-text": t.trans("products.template-name"), "max-character-length": 1e3, "placeholder-text": t.trans("newsletter.enter-template-name"), "skeleton-sizing": { width: 495, height: 44 }, "skeleton-status": t.saveAsTemplateStore.skeletonStatus, "state-message": t.templateNameError, states: t.templateNameError ? "error" : "default", "tooltip-status": !1, value: t.saveAsTemplateStore.templateName }, on: { input: t.handleTemplateName } }), e(t.InMultiSelect, { staticClass: "template-category-dropdown mb-5 w-1", attrs: { id: "guido__template-category-dropdown", "create-option-status": "", "search-status": "", "button-status": !1, "character-limit-validation-text": t.trans("validation-v2.duration-value", {
|
|
6
|
+
min: 1,
|
|
7
|
+
max: 25
|
|
8
|
+
}), "create-button-label": t.trans("products.create-new-category"), "disabled-status": t.isSaving, "label-text": t.trans("products.template-category"), "loading-state": t.isAddingOption, "max-character-limit": 25, "max-height": 350, options: t.saveAsTemplateStore.categories, "placeholder-text": t.trans("products.select-template-category"), "skeleton-sizing": { width: 495, height: 44 }, "skeleton-status": t.saveAsTemplateStore.skeletonStatus, value: t.saveAsTemplateStore.selectedCategories }, on: { addOption: t.handleAddOption, change: t.handleCategoryChange, resetAllOptions: t.handleResetAllOptions, selectAllOptions: t.handleSelectAllOptions } })], 1);
|
|
9
|
+
}, l = [], n = /* @__PURE__ */ o(
|
|
10
|
+
s,
|
|
11
|
+
r,
|
|
12
|
+
l,
|
|
13
|
+
!1,
|
|
14
|
+
null,
|
|
15
|
+
null
|
|
16
|
+
);
|
|
17
|
+
const c = n.exports;
|
|
18
|
+
export {
|
|
19
|
+
c as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { defineComponent as A, ref as c, computed as b, toRef as h, nextTick as C } from "vue";
|
|
2
|
+
import N from "../../wrappers/WpDrawer.vue.js";
|
|
3
|
+
import { useTranslations as O } from "../../../composables/useTranslations.js";
|
|
4
|
+
import { useTemplateNameValidator as x } from "../../../composables/validators/saveAsTemplate.js";
|
|
5
|
+
import { useTemplateLibraryApi as B } from "../../../services/templateLibraryApi.js";
|
|
6
|
+
import { useEditorStore as D } from "../../../stores/editor.js";
|
|
7
|
+
import { useSaveAsTemplateStore as k } from "../../../stores/save-as-template.js";
|
|
8
|
+
import { InMultiSelect as I, InBasicTextInput as M } from "@useinsider/design-system-vue";
|
|
9
|
+
import { useDebounceFn as V } from "../../../node_modules/@vueuse/shared/index.js";
|
|
10
|
+
const H = /* @__PURE__ */ A({
|
|
11
|
+
__name: "SaveAsTemplateDrawer",
|
|
12
|
+
setup(E) {
|
|
13
|
+
const s = O(), o = D(), t = k(), { createTemplate: m } = B(), a = c(!1), n = c(!1), r = c(""), f = b(() => ({
|
|
14
|
+
primaryButton: {
|
|
15
|
+
styling: "solid",
|
|
16
|
+
type: "primary",
|
|
17
|
+
labelText: s(a.value ? "newsletter.saving" : "products.save"),
|
|
18
|
+
loadingStatus: a.value,
|
|
19
|
+
disabledStatus: t.skeletonStatus
|
|
20
|
+
},
|
|
21
|
+
cancelOrBackButton: {
|
|
22
|
+
styling: "ghost",
|
|
23
|
+
type: "secondary",
|
|
24
|
+
labelText: s("products.cancel"),
|
|
25
|
+
disabledStatus: a.value
|
|
26
|
+
}
|
|
27
|
+
})), p = () => {
|
|
28
|
+
r.value = "", o.isSaveAsTemplateDrawerOpen = !1;
|
|
29
|
+
}, l = async () => {
|
|
30
|
+
const e = h(t, "templateName"), { success: i, errorMessage: _ } = await x(e).validate();
|
|
31
|
+
return r.value = _, i;
|
|
32
|
+
}, v = V(async (e) => {
|
|
33
|
+
t.templateName = e, await l();
|
|
34
|
+
}, 500), g = async (e) => {
|
|
35
|
+
n.value = !0, await t.addCategory(e), n.value = !1;
|
|
36
|
+
}, y = (e) => {
|
|
37
|
+
t.selectedCategories = e;
|
|
38
|
+
}, S = (e) => {
|
|
39
|
+
e && (t.selectedCategories = e);
|
|
40
|
+
}, T = () => {
|
|
41
|
+
t.selectedCategories = [];
|
|
42
|
+
}, w = async () => {
|
|
43
|
+
if (a.value = !0, !await l()) {
|
|
44
|
+
a.value = !1;
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
await m(), a.value = !1, p();
|
|
48
|
+
}, u = () => {
|
|
49
|
+
C(() => {
|
|
50
|
+
const e = document.querySelector("input#guido__template-name-input");
|
|
51
|
+
e == null || e.focus();
|
|
52
|
+
});
|
|
53
|
+
}, d = async () => {
|
|
54
|
+
t.$reset(), await t.fetchCategories(), t.skeletonStatus = !1, u();
|
|
55
|
+
};
|
|
56
|
+
return o.$subscribe((e, { isSaveAsTemplateDrawerOpen: i }) => {
|
|
57
|
+
i && d();
|
|
58
|
+
}), { __sfc: !0, trans: s, editorStore: o, saveAsTemplateStore: t, createTemplate: m, isSaving: a, isAddingOption: n, templateNameError: r, footerButtonGroupOptions: f, closeModal: p, validateTemplateName: l, handleTemplateName: v, handleAddOption: g, handleCategoryChange: y, handleSelectAllOptions: S, handleResetAllOptions: T, saveTemplate: w, focusToInput: u, initializeDrawer: d, WpDrawer: N, InBasicTextInput: M, InMultiSelect: I };
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
H as default
|
|
63
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { FooterButtonGroupOptions } from '@@/Types/wrappers/wp-drawer';
|
|
2
|
+
interface Props {
|
|
3
|
+
id: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
size?: string;
|
|
6
|
+
closeOnOutsideClick?: boolean;
|
|
7
|
+
descriptionStatus?: boolean;
|
|
8
|
+
descriptionText?: string;
|
|
9
|
+
footerButtonGroupOptions: FooterButtonGroupOptions;
|
|
10
|
+
status: boolean;
|
|
11
|
+
titleText: string;
|
|
12
|
+
}
|
|
13
|
+
declare var __VLS_12: {};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
default?: (props: typeof __VLS_12) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
18
|
+
className: string;
|
|
19
|
+
size: string;
|
|
20
|
+
closeOnOutsideClick: boolean;
|
|
21
|
+
descriptionStatus: boolean;
|
|
22
|
+
descriptionText: string;
|
|
23
|
+
}>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
24
|
+
cancelOrBackButtonEvent: () => void;
|
|
25
|
+
onCloseEvent: () => void;
|
|
26
|
+
primaryButtonEvent: () => void;
|
|
27
|
+
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
28
|
+
className: string;
|
|
29
|
+
size: string;
|
|
30
|
+
closeOnOutsideClick: boolean;
|
|
31
|
+
descriptionStatus: boolean;
|
|
32
|
+
descriptionText: string;
|
|
33
|
+
}>>>, {
|
|
34
|
+
className: string;
|
|
35
|
+
size: string;
|
|
36
|
+
closeOnOutsideClick: boolean;
|
|
37
|
+
descriptionStatus: boolean;
|
|
38
|
+
descriptionText: string;
|
|
39
|
+
}>;
|
|
40
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithDefaults<P, D> = {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
44
|
+
default: D[K];
|
|
45
|
+
}> : P[K];
|
|
46
|
+
};
|
|
47
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
48
|
+
type __VLS_TypePropsToOption<T> = {
|
|
49
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
50
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
51
|
+
} : {
|
|
52
|
+
type: import('vue').PropType<T[K]>;
|
|
53
|
+
required: true;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$scopedSlots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
type __VLS_PrettifyLocal<T> = {
|
|
62
|
+
[K in keyof T]: T[K];
|
|
63
|
+
} & {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import r from "./WpDrawer.vue2.js";
|
|
2
|
+
import s from "../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var i = function() {
|
|
4
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
5
|
+
return n(e.InDrawer, { class: t.className, attrs: { id: t.id, "footer-status": "", "close-on-outside-click": t.closeOnOutsideClick, "description-status": t.descriptionStatus, "description-text": t.descriptionText, "footer-button-group-options": t.footerButtonGroupOptions, size: t.size, status: t.status, "title-text": t.titleText }, on: { cancelOrBackButtonEvent: function(o) {
|
|
6
|
+
return e.emit("cancelOrBackButtonEvent");
|
|
7
|
+
}, onCloseEvent: function(o) {
|
|
8
|
+
return e.emit("onCloseEvent");
|
|
9
|
+
}, primaryButtonEvent: function(o) {
|
|
10
|
+
return e.emit("primaryButtonEvent");
|
|
11
|
+
} }, scopedSlots: t._u([{ key: "contentSlot", fn: function() {
|
|
12
|
+
return [n("div", [t._t("default")], 2)];
|
|
13
|
+
}, proxy: !0 }], null, !0) });
|
|
14
|
+
}, u = [], c = /* @__PURE__ */ s(
|
|
15
|
+
r,
|
|
16
|
+
i,
|
|
17
|
+
u,
|
|
18
|
+
!1,
|
|
19
|
+
null,
|
|
20
|
+
null
|
|
21
|
+
);
|
|
22
|
+
const f = c.exports;
|
|
23
|
+
export {
|
|
24
|
+
f as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defineComponent as e } from "vue";
|
|
2
|
+
import { InDrawer as o } from "@useinsider/design-system-vue";
|
|
3
|
+
const r = /* @__PURE__ */ e({
|
|
4
|
+
__name: "WpDrawer",
|
|
5
|
+
props: {
|
|
6
|
+
id: null,
|
|
7
|
+
className: { default: "" },
|
|
8
|
+
size: { default: "small" },
|
|
9
|
+
closeOnOutsideClick: { type: Boolean, default: !0 },
|
|
10
|
+
descriptionStatus: { type: Boolean, default: !1 },
|
|
11
|
+
descriptionText: { default: "" },
|
|
12
|
+
footerButtonGroupOptions: null,
|
|
13
|
+
status: { type: Boolean },
|
|
14
|
+
titleText: null
|
|
15
|
+
},
|
|
16
|
+
emits: ["cancelOrBackButtonEvent", "onCloseEvent", "primaryButtonEvent"],
|
|
17
|
+
setup(n, { emit: t }) {
|
|
18
|
+
return { __sfc: !0, emit: t, InDrawer: o };
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
r as default
|
|
23
|
+
};
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
primaryButton?: {
|
|
3
|
-
type: string;
|
|
4
|
-
labelText: string;
|
|
5
|
-
disabledStatus?: boolean;
|
|
6
|
-
};
|
|
7
|
-
cancelOrBackButton?: {
|
|
8
|
-
type: string;
|
|
9
|
-
labelText: string;
|
|
10
|
-
styling: string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
1
|
+
import type { FooterButtonGroup } from '@@/Types/preview';
|
|
13
2
|
type __VLS_Props = {
|
|
14
3
|
id: string;
|
|
15
4
|
title: string;
|
|
@@ -43,11 +32,11 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
43
32
|
closeOnOutsideClick: boolean;
|
|
44
33
|
footerStatus: boolean;
|
|
45
34
|
}>>>, {
|
|
46
|
-
size: "small" | "medium" | "large";
|
|
47
35
|
description: string;
|
|
36
|
+
size: "small" | "medium" | "large";
|
|
37
|
+
closeOnOutsideClick: boolean;
|
|
48
38
|
footerButtonOptions: FooterButtonGroup;
|
|
49
39
|
closeButtonStatus: boolean;
|
|
50
|
-
closeOnOutsideClick: boolean;
|
|
51
40
|
footerStatus: boolean;
|
|
52
41
|
}>;
|
|
53
42
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { CompileEmailOptions } from '@@/Types/actions-api';
|
|
2
|
-
import { GetCompiledEmailOptions, CompiledEmailResult } from '@@/Types/actions-api';
|
|
2
|
+
import { GetCompiledEmailOptions, CompiledEmailResult, TemplateData } from '@@/Types/actions-api';
|
|
3
3
|
export declare const useActionsApi: () => {
|
|
4
4
|
getCompiledEmail: (options?: GetCompiledEmailOptions) => Promise<CompiledEmailResult>;
|
|
5
|
+
getTemplateData: () => Promise<TemplateData>;
|
|
5
6
|
activateCustomViewStyles: (isActive?: boolean) => void;
|
|
6
7
|
getPreviewData: (options?: CompileEmailOptions) => Promise<CompiledEmailResult>;
|
|
7
8
|
};
|