@useinsider/guido 1.0.0-beta.ef5e504 → 1.0.0-beta.f2786f4
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 +30 -294
- package/dist/@types/generic.d.ts +0 -12
- package/dist/App.vue.d.ts +1 -1
- package/dist/components/Guido.vue.d.ts +3 -17
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +20 -57
- package/dist/components/organisms/{header/HeaderWrapper.vue.js → top-bar/Header.vue.js} +7 -7
- package/dist/components/organisms/top-bar/Header.vue2.js +14 -0
- package/dist/components/organisms/top-bar/HeaderLeftSlot.vue.d.ts +2 -0
- package/dist/components/organisms/top-bar/HeaderLeftSlot.vue.js +17 -0
- package/dist/components/organisms/top-bar/HeaderLeftSlot.vue2.js +11 -0
- package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue.d.ts +2 -0
- package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue.js +17 -0
- package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue2.js +19 -0
- package/dist/components/organisms/top-bar/HeaderRightSlot.vue.js +18 -0
- package/dist/components/organisms/top-bar/HeaderRightSlot.vue2.js +12 -0
- package/dist/components/organisms/top-bar/HeaderViewOptions.vue.d.ts +2 -0
- package/dist/components/organisms/top-bar/HeaderViewOptions.vue.js +18 -0
- package/dist/components/organisms/{header/ViewOptions.vue2.js → top-bar/HeaderViewOptions.vue2.js} +3 -3
- package/dist/composables/useCustomInterfaceAppearance.js +9 -45
- package/dist/composables/useStripo.d.ts +2 -2
- package/dist/composables/useStripo.js +56 -66
- package/dist/composables/useTemplates.d.ts +5 -0
- package/dist/composables/useTemplates.js +27 -0
- package/dist/composables/useToaster.d.ts +0 -1
- package/dist/composables/useTranslations.d.ts +3 -1
- package/dist/composables/useTranslations.js +7 -5
- package/dist/enums/defaults.d.ts +0 -2
- package/dist/enums/defaults.js +3 -5
- package/dist/guido.css +1 -1
- package/dist/node_modules/pinia/dist/pinia.js +314 -0
- package/dist/node_modules/pinia/node_modules/vue-demi/lib/index.js +11 -0
- package/dist/static/editor.css.js +182 -0
- package/dist/static/templates/default/index.html.js +5 -0
- package/dist/static/templates/default/style.css.js +119 -0
- package/dist/stores/editor.d.ts +0 -5
- package/dist/stores/editor.js +4 -9
- package/package.json +5 -6
- package/dist/_virtual/AddCustomFont.js +0 -4
- package/dist/_virtual/AiAssistantValueType.js +0 -4
- package/dist/_virtual/BackgroundColorBuiltInControl.js +0 -4
- package/dist/_virtual/BackgroundImageBuiltInControl.js +0 -4
- package/dist/_virtual/Block.js +0 -4
- package/dist/_virtual/BlockAttributes.js +0 -4
- package/dist/_virtual/BlockCompositionType.js +0 -4
- package/dist/_virtual/BlockPaddingsBuiltInControl.js +0 -4
- package/dist/_virtual/BlockRenderer.js +0 -4
- package/dist/_virtual/BlockType.js +0 -4
- package/dist/_virtual/BlocksPanel.js +0 -4
- package/dist/_virtual/BuiltInControl.js +0 -4
- package/dist/_virtual/BuiltInControlTypes.js +0 -4
- package/dist/_virtual/ButtonBorderBuiltInControl.js +0 -4
- package/dist/_virtual/ButtonColorBuiltInControl.js +0 -4
- package/dist/_virtual/ButtonFontColorBuiltInControl.js +0 -4
- package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +0 -4
- package/dist/_virtual/ButtonTextBuiltInControl.js +0 -4
- package/dist/_virtual/ContextAction.js +0 -4
- package/dist/_virtual/ContextActionType.js +0 -4
- package/dist/_virtual/Control.js +0 -4
- package/dist/_virtual/EditorStatePropertyType.js +0 -4
- package/dist/_virtual/Extension.js +0 -4
- package/dist/_virtual/ExtensionBuilder.js +0 -4
- package/dist/_virtual/FontFamilyBuiltInControl.js +0 -4
- package/dist/_virtual/LinkColorBuiltInControl.js +0 -4
- package/dist/_virtual/ModificationDescription.js +0 -4
- package/dist/_virtual/PanelPosition.js +0 -4
- package/dist/_virtual/PreviewDeviceMode.js +0 -4
- package/dist/_virtual/SettingsPanelRegistry.js +0 -4
- package/dist/_virtual/SettingsPanelTab.js +0 -4
- package/dist/_virtual/SettingsTab.js +0 -4
- package/dist/_virtual/StructureBorderBuiltInControl.js +0 -4
- package/dist/_virtual/StructurePaddingsBuiltInControl.js +0 -4
- package/dist/_virtual/TextColorBuiltInControl.js +0 -4
- package/dist/_virtual/TextLineSpacingBuiltInControl.js +0 -4
- package/dist/_virtual/TextSizeBuiltInControl.js +0 -4
- package/dist/_virtual/TextStyleBuiltInControl.js +0 -4
- package/dist/_virtual/UIElement.js +0 -4
- package/dist/_virtual/UIElementTagRegistry.js +0 -4
- package/dist/_virtual/UIElementType.js +0 -4
- package/dist/_virtual/UIElementsAttributes.js +0 -4
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -4
- package/dist/components/organisms/design-preview/DesktopPreview.vue.d.ts +0 -16
- package/dist/components/organisms/design-preview/DesktopPreview.vue.js +0 -22
- package/dist/components/organisms/design-preview/DesktopPreview.vue2.js +0 -28
- package/dist/components/organisms/design-preview/EmailPreview.vue.d.ts +0 -16
- package/dist/components/organisms/design-preview/EmailPreview.vue.js +0 -17
- package/dist/components/organisms/design-preview/EmailPreview.vue2.js +0 -37
- package/dist/components/organisms/design-preview/EmailView.vue.d.ts +0 -18
- package/dist/components/organisms/design-preview/EmailView.vue.js +0 -19
- package/dist/components/organisms/design-preview/EmailView.vue2.js +0 -24
- package/dist/components/organisms/design-preview/InboxView.vue.d.ts +0 -17
- package/dist/components/organisms/design-preview/InboxView.vue.js +0 -19
- package/dist/components/organisms/design-preview/InboxView.vue2.js +0 -23
- package/dist/components/organisms/design-preview/MobilePreview.vue.d.ts +0 -17
- package/dist/components/organisms/design-preview/MobilePreview.vue.js +0 -17
- package/dist/components/organisms/design-preview/MobilePreview.vue2.js +0 -22
- package/dist/components/organisms/header/AmpErrorModal.vue.d.ts +0 -16
- package/dist/components/organisms/header/AmpErrorModal.vue.js +0 -21
- package/dist/components/organisms/header/AmpErrorModal.vue2.js +0 -27
- package/dist/components/organisms/header/AmpToggle.vue.js +0 -19
- package/dist/components/organisms/header/AmpToggle.vue2.js +0 -38
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +0 -14
- package/dist/components/organisms/header/LeftSlot.vue.d.ts +0 -2
- package/dist/components/organisms/header/LeftSlot.vue.js +0 -17
- package/dist/components/organisms/header/LeftSlot.vue2.js +0 -13
- package/dist/components/organisms/header/MiddleSlot.vue.d.ts +0 -2
- package/dist/components/organisms/header/MiddleSlot.vue.js +0 -17
- package/dist/components/organisms/header/MiddleSlot.vue2.js +0 -26
- package/dist/components/organisms/header/RightSlot.vue.d.ts +0 -2
- package/dist/components/organisms/header/RightSlot.vue.js +0 -17
- package/dist/components/organisms/header/RightSlot.vue2.js +0 -21
- package/dist/components/organisms/header/ViewOptions.vue.d.ts +0 -2
- package/dist/components/organisms/header/ViewOptions.vue.js +0 -18
- package/dist/components/organisms/header/version-history/RestoreButton.vue.d.ts +0 -2
- package/dist/components/organisms/header/version-history/RestoreButton.vue.js +0 -19
- package/dist/components/organisms/header/version-history/RestoreButton.vue2.js +0 -14
- package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +0 -14
- package/dist/components/organisms/header/version-history/VersionHistory.vue.js +0 -22
- package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +0 -18
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +0 -16
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +0 -18
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue2.js +0 -16
- package/dist/components/organisms/header/version-history/ViewOptions.vue.d.ts +0 -2
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +0 -18
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +0 -23
- package/dist/composables/useActionsApi.d.ts +0 -5
- package/dist/composables/useActionsApi.js +0 -38
- package/dist/composables/useDebounce.d.ts +0 -4
- package/dist/composables/useDebounce.js +0 -12
- package/dist/composables/useExport.d.ts +0 -3
- package/dist/composables/useExport.js +0 -45
- package/dist/composables/useHtmlCompiler.d.ts +0 -4
- package/dist/composables/useHtmlCompiler.js +0 -16
- package/dist/composables/useHttp.js +0 -84
- package/dist/composables/useMobileGmailFit.d.ts +0 -5
- package/dist/composables/useMobileGmailFit.js +0 -69
- package/dist/composables/usePartner.d.ts +0 -4
- package/dist/composables/usePartner.js +0 -16
- package/dist/composables/usePreviewMode.d.ts +0 -6
- package/dist/composables/usePreviewMode.js +0 -19
- package/dist/composables/useToaster.js +0 -37
- package/dist/composables/useVersionHistoryApi.d.ts +0 -8
- package/dist/composables/useVersionHistoryApi.js +0 -53
- package/dist/config/compiler/htmlCompilerRules.d.ts +0 -2
- package/dist/config/compiler/htmlCompilerRules.js +0 -145
- package/dist/config/compiler/outlookCompilerRules.d.ts +0 -0
- package/dist/enums/displayConditions.d.ts +0 -2
- package/dist/enums/displayConditions.js +0 -80
- package/dist/enums/gmailMobilePreview.d.ts +0 -7
- package/dist/enums/gmailMobilePreview.js +0 -17
- package/dist/extensions/DynamicContent/dynamic-content-modal.d.ts +0 -6
- package/dist/extensions/DynamicContent/dynamic-content-modal.js +0 -27
- package/dist/extensions/DynamicContent/dynamic-content.css.js +0 -24
- package/dist/extensions/DynamicContent/dynamic-content.d.ts +0 -16
- package/dist/extensions/DynamicContent/dynamic-content.js +0 -63
- package/dist/extensions/DynamicContent/extension.d.ts +0 -2
- package/dist/extensions/DynamicContent/extension.js +0 -11
- package/dist/inbox-mockup.svg +0 -41
- package/dist/mock/api/custom-fonts.d.ts +0 -2
- package/dist/mock/api/default-template.d.ts +0 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +0 -51
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +0 -52
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +0 -41
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +0 -18
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +0 -32
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +0 -18
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +0 -8
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +0 -34
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +0 -104
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +0 -13
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +0 -46
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +0 -44
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +0 -22
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +0 -46
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +0 -46
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +0 -20
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +0 -18
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +0 -32
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +0 -46
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +0 -44
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +0 -266
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +0 -26
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +0 -22
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +0 -18
- package/dist/phone-mockup.svg +0 -31
- package/dist/services/stripoApi.d.ts +0 -8
- package/dist/services/stripoApi.js +0 -45
- package/dist/static/styles/base.css.js +0 -11
- package/dist/static/styles/components/alert-message.css.js +0 -39
- package/dist/static/styles/components/amp-block.css.js +0 -18
- package/dist/static/styles/components/base-input.css.js +0 -47
- package/dist/static/styles/components/button-group.css.js +0 -54
- package/dist/static/styles/components/button.css.js +0 -106
- package/dist/static/styles/components/combobox.css.js +0 -49
- package/dist/static/styles/components/counter.css.js +0 -42
- package/dist/static/styles/components/dropdown-menu.css.js +0 -52
- package/dist/static/styles/components/narrow-panel.css.js +0 -38
- package/dist/static/styles/components/switcher.css.js +0 -11
- package/dist/static/styles/components/tabs.css.js +0 -97
- package/dist/static/styles/components/tools.css.js +0 -23
- package/dist/static/styles/components/version-history.css.js +0 -30
- package/dist/static/styles/components/wide-panel.css.js +0 -135
- package/dist/static/styles/variables.css.js +0 -23
- package/dist/stores/version-history.d.ts +0 -80
- package/dist/stores/version-history.js +0 -28
- package/dist/utils/dateUtil.d.ts +0 -1
- package/dist/utils/dateUtil.js +0 -16
- package/dist/utils/htmlCompiler.d.ts +0 -12
- package/dist/utils/htmlCompiler.js +0 -70
- /package/dist/components/organisms/{header/AmpToggle.vue.d.ts → top-bar/Header.vue.d.ts} +0 -0
- /package/dist/components/organisms/{header/HeaderWrapper.vue.d.ts → top-bar/HeaderRightSlot.vue.d.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineComponent as i } from "vue";
|
|
2
|
+
import { useEditorStore as n } from "../../../stores/editor.js";
|
|
3
|
+
import { InButtonV2 as s } from "@useinsider/design-system-vue";
|
|
4
|
+
import { useTranslations as r } from "../../../composables/useTranslations.js";
|
|
5
|
+
const l = /* @__PURE__ */ i({
|
|
6
|
+
__name: "HeaderMiddleSlot",
|
|
7
|
+
setup(p) {
|
|
8
|
+
const t = n(), { trans: o } = r();
|
|
9
|
+
return { __sfc: !0, editorStore: t, trans: o, getTooltipOptions: (e) => ({
|
|
10
|
+
id: `${e}-tooltip`,
|
|
11
|
+
dynamicPosition: !1,
|
|
12
|
+
staticPosition: "bottom center",
|
|
13
|
+
iconStatus: !1
|
|
14
|
+
}), InButtonV2: s };
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
export {
|
|
18
|
+
l as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import o from "./HeaderRightSlot.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import a 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: "d-f header-right-slot" }, [t("div", { staticClass: "d-f" }, [t(e.HeaderViewOptions)], 1), t("div", { staticClass: "d-f" }, [t(e.InButtonV2, { attrs: { id: "guido__history-button", "left-icon": "line-architect-version-history", styling: "ghost", type: "secondary", "label-text-status": !1 } }), t(e.InButtonV2, { attrs: { id: "guido__export-button", "left-icon": "line-export", styling: "ghost", type: "secondary", "label-text-status": !1 } }), t(e.InButtonV2, { attrs: { id: "guido__save-as-button", "left-icon": "line-newsletter-save-as-template", styling: "ghost", type: "secondary", "label-text-status": !1 } }), t(e.InButtonV2, { attrs: { id: "guido__test-button", "left-icon": "line-architect-test-journey", styling: "ghost", type: "secondary", "label-text-status": !1 } })], 1), t(e.InButtonV2, { attrs: { id: "guido__save-button", "label-text": "Save" } })], 1);
|
|
7
|
+
}, i = [], r = /* @__PURE__ */ a(
|
|
8
|
+
o,
|
|
9
|
+
n,
|
|
10
|
+
i,
|
|
11
|
+
!1,
|
|
12
|
+
null,
|
|
13
|
+
"94ef50f1"
|
|
14
|
+
);
|
|
15
|
+
const c = r.exports;
|
|
16
|
+
export {
|
|
17
|
+
c as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defineComponent as t } from "vue";
|
|
2
|
+
import { InButtonV2 as e } from "@useinsider/design-system-vue";
|
|
3
|
+
import o from "./HeaderViewOptions.vue.js";
|
|
4
|
+
const i = /* @__PURE__ */ t({
|
|
5
|
+
__name: "HeaderRightSlot",
|
|
6
|
+
setup(r) {
|
|
7
|
+
return { __sfc: !0, InButtonV2: e, HeaderViewOptions: o };
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
export {
|
|
11
|
+
i as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
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
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import r from "./HeaderViewOptions.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var n = function() {
|
|
5
|
+
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
6
|
+
return o(e.InSegments, { attrs: { id: "guido__view-option-selection", "with-icon": "", "segment-list": e.segmentList, selected: e.editorStore.editorVisualMode } });
|
|
7
|
+
}, i = [], _ = /* @__PURE__ */ s(
|
|
8
|
+
r,
|
|
9
|
+
n,
|
|
10
|
+
i,
|
|
11
|
+
!1,
|
|
12
|
+
null,
|
|
13
|
+
"f67c82be"
|
|
14
|
+
);
|
|
15
|
+
const f = _.exports;
|
|
16
|
+
export {
|
|
17
|
+
f as default
|
|
18
|
+
};
|
package/dist/components/organisms/{header/ViewOptions.vue2.js → top-bar/HeaderViewOptions.vue2.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as e } from "vue";
|
|
2
2
|
import { useEditorStore as t } from "../../../stores/editor.js";
|
|
3
3
|
import { InSegments as o } from "@useinsider/design-system-vue";
|
|
4
|
-
const
|
|
5
|
-
__name: "
|
|
4
|
+
const a = /* @__PURE__ */ e({
|
|
5
|
+
__name: "HeaderViewOptions",
|
|
6
6
|
setup(n) {
|
|
7
7
|
return { __sfc: !0, editorStore: t(), segmentList: [
|
|
8
8
|
{ text: "", icon: "line-desktop", value: "desktop" },
|
|
@@ -11,5 +11,5 @@ const u = /* @__PURE__ */ e({
|
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
a as default
|
|
15
15
|
};
|
|
@@ -1,49 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import s from "../static/styles/components/combobox.css.js";
|
|
8
|
-
import C from "../static/styles/components/counter.css.js";
|
|
9
|
-
import f from "../static/styles/components/dropdown-menu.css.js";
|
|
10
|
-
import a from "../static/styles/components/narrow-panel.css.js";
|
|
11
|
-
import u from "../static/styles/components/switcher.css.js";
|
|
12
|
-
import c from "../static/styles/components/tabs.css.js";
|
|
13
|
-
import d from "../static/styles/components/tools.css.js";
|
|
14
|
-
import l from "../static/styles/components/version-history.css.js";
|
|
15
|
-
import h from "../static/styles/components/wide-panel.css.js";
|
|
16
|
-
import w from "../static/styles/variables.css.js";
|
|
17
|
-
const y = [
|
|
18
|
-
w,
|
|
19
|
-
// Must be on top
|
|
20
|
-
S,
|
|
21
|
-
// Must be on top
|
|
22
|
-
e,
|
|
23
|
-
m,
|
|
24
|
-
i,
|
|
25
|
-
p,
|
|
26
|
-
n,
|
|
27
|
-
s,
|
|
28
|
-
C,
|
|
29
|
-
f,
|
|
30
|
-
a,
|
|
31
|
-
u,
|
|
32
|
-
c,
|
|
33
|
-
d,
|
|
34
|
-
l,
|
|
35
|
-
h
|
|
36
|
-
].join(`
|
|
37
|
-
|
|
38
|
-
`), N = () => ({ importCss: () => {
|
|
39
|
-
const o = new CSSStyleSheet();
|
|
40
|
-
o.replaceSync(y);
|
|
41
|
-
const r = document.querySelector("ui-editor");
|
|
42
|
-
if (!r)
|
|
1
|
+
import r from "../static/editor.css.js";
|
|
2
|
+
const c = () => ({ importCss: () => {
|
|
3
|
+
const e = new CSSStyleSheet();
|
|
4
|
+
e.replaceSync(r);
|
|
5
|
+
const t = document.querySelector("ui-editor");
|
|
6
|
+
if (!t)
|
|
43
7
|
return;
|
|
44
|
-
const
|
|
45
|
-
|
|
8
|
+
const o = t.shadowRoot;
|
|
9
|
+
o && (o.adoptedStyleSheets = [e]);
|
|
46
10
|
} });
|
|
47
11
|
export {
|
|
48
|
-
|
|
12
|
+
c as useCustomInterfaceAppearance
|
|
49
13
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const useStripo: (
|
|
1
|
+
import type { Template } from '@@/Types/stripo';
|
|
2
|
+
export declare const useStripo: (emailId: string) => {
|
|
3
3
|
initPlugin: (template: Template) => Promise<void>;
|
|
4
4
|
};
|
|
@@ -1,91 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { useCustomInterfaceAppearance as u } from "./useCustomInterfaceAppearance.js";
|
|
2
|
+
import { useEditorStore as l } from "../stores/editor.js";
|
|
3
|
+
const g = (s) => {
|
|
4
|
+
const c = () => {
|
|
5
|
+
const t = new Headers();
|
|
6
|
+
t.append("Content-Type", "application/json");
|
|
7
|
+
const r = JSON.stringify({
|
|
8
|
+
pluginId: void 0,
|
|
9
|
+
secretKey: void 0,
|
|
10
|
+
role: void 0,
|
|
11
|
+
userId: s
|
|
12
|
+
});
|
|
13
|
+
return fetch("/v2/stripo/get-token", {
|
|
14
|
+
method: "POST",
|
|
15
|
+
headers: t,
|
|
16
|
+
body: r,
|
|
17
|
+
redirect: "follow"
|
|
18
|
+
}).then((o) => o.json());
|
|
19
|
+
}, d = (t) => {
|
|
20
|
+
const r = l(), n = t.html, o = t.css;
|
|
11
21
|
window.UIEditor.initEditor(
|
|
12
22
|
document.querySelector("#guido-editor"),
|
|
13
23
|
{
|
|
14
|
-
metadata:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
24
|
+
metadata: {
|
|
25
|
+
emailId: s,
|
|
26
|
+
userId: "1",
|
|
27
|
+
username: "Plugin Demo User"
|
|
28
|
+
},
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
30
|
+
html: n,
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
32
|
+
css: o,
|
|
18
33
|
locale: "en",
|
|
19
34
|
undoButtonSelector: "#guido__undo-button",
|
|
20
35
|
redoButtonSelector: "#guido__redo-button",
|
|
21
36
|
mobileViewButtonSelector: ".guido__view-option-selection-mobile",
|
|
22
37
|
desktopViewButtonSelector: ".guido__view-option-selection-desktop",
|
|
38
|
+
versionHistoryButtonSelector: "#guido__history-button",
|
|
23
39
|
codeEditorButtonSelector: "#guido__code-button",
|
|
24
|
-
|
|
25
|
-
customAppearanceMergetagsBorderColor: "#f1f3fe",
|
|
26
|
-
customAppearanceMergetagsBackgroundColor: "#f1f3fe",
|
|
27
|
-
customViewStyles: `
|
|
28
|
-
.esd-x, .esd-merge-tag {color: #0a2ecc !important; box-shadow: none !important;}
|
|
29
|
-
.esd-merge-tag {border: 1px solid #b5c1f1; border-radius: 4px !important;}
|
|
30
|
-
`,
|
|
31
|
-
conditionsEnabled: !0,
|
|
32
|
-
customConditionsEnabled: !0,
|
|
33
|
-
conditionCategories: E,
|
|
34
|
-
messageSettingsEnabled: !1,
|
|
35
|
-
editorFonts: {
|
|
36
|
-
showDefaultStandardFonts: !0,
|
|
37
|
-
showDefaultNotStandardFonts: !0,
|
|
38
|
-
customFonts: r
|
|
39
|
-
},
|
|
40
|
-
async onTokenRefreshRequest(o) {
|
|
40
|
+
async onTokenRefreshRequest(e) {
|
|
41
41
|
try {
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
} catch (
|
|
45
|
-
|
|
42
|
+
const i = await c();
|
|
43
|
+
e(i.token);
|
|
44
|
+
} catch (i) {
|
|
45
|
+
console.error("Failed to refresh token:", i);
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
onTemplateLoaded() {
|
|
49
49
|
try {
|
|
50
|
-
const { importCss:
|
|
51
|
-
|
|
52
|
-
} catch (
|
|
53
|
-
|
|
50
|
+
const { importCss: e } = u();
|
|
51
|
+
e();
|
|
52
|
+
} catch (e) {
|
|
53
|
+
console.error("Failed to load custom interface appearance:", e);
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
onCodeEditorVisibilityChanged(
|
|
57
|
-
|
|
56
|
+
onCodeEditorVisibilityChanged(e) {
|
|
57
|
+
r.isCodeEditorOpen = e;
|
|
58
58
|
},
|
|
59
|
-
onEditorVisualModeChanged(
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
onVersionHistoryVisibilityChanged(o) {
|
|
63
|
-
i.isVersionHistoryOpen = o;
|
|
64
|
-
},
|
|
65
|
-
ignoreClickOutsideSelectors: ["#guido-dynamic-content-modal"],
|
|
66
|
-
extensions: [S]
|
|
59
|
+
onEditorVisualModeChanged(e) {
|
|
60
|
+
r.editorVisualMode = e.toLowerCase();
|
|
61
|
+
}
|
|
67
62
|
}
|
|
68
63
|
);
|
|
69
|
-
}
|
|
64
|
+
};
|
|
65
|
+
return { initPlugin: (t) => new Promise((r, n) => {
|
|
70
66
|
if (document.getElementById("UiEditorScript")) {
|
|
71
|
-
|
|
67
|
+
d(t), r();
|
|
72
68
|
return;
|
|
73
69
|
}
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
}, document.body.appendChild(
|
|
81
|
-
});
|
|
82
|
-
return { initPlugin: async (e) => {
|
|
83
|
-
await p(async () => {
|
|
84
|
-
const r = await u();
|
|
85
|
-
l(e, r);
|
|
86
|
-
});
|
|
87
|
-
} };
|
|
70
|
+
const o = document.createElement("script");
|
|
71
|
+
o.id = "UiEditorScript", o.type = "module", o.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", o.onload = () => {
|
|
72
|
+
d(t), r();
|
|
73
|
+
}, o.onerror = () => {
|
|
74
|
+
const e = new Error("Failed to load Stripo UIEditor script");
|
|
75
|
+
n(e);
|
|
76
|
+
}, document.body.appendChild(o);
|
|
77
|
+
}) };
|
|
88
78
|
};
|
|
89
79
|
export {
|
|
90
|
-
|
|
80
|
+
g as useStripo
|
|
91
81
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const s = () => {
|
|
2
|
+
const t = async () => {
|
|
3
|
+
const [e, a] = await Promise.all([
|
|
4
|
+
// eslint-disable-next-line import/extensions
|
|
5
|
+
import("../static/templates/default/index.html.js"),
|
|
6
|
+
import("../static/templates/default/style.css.js")
|
|
7
|
+
]);
|
|
8
|
+
return {
|
|
9
|
+
html: e.default,
|
|
10
|
+
css: a.default
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
return {
|
|
14
|
+
getDefaultTemplate: t,
|
|
15
|
+
getTemplate: async (e) => {
|
|
16
|
+
switch (e) {
|
|
17
|
+
case "default":
|
|
18
|
+
return t();
|
|
19
|
+
default:
|
|
20
|
+
return t();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
s as useTemplates
|
|
27
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
interface TranslationValues {
|
|
2
2
|
[key: string]: string | number | boolean;
|
|
3
3
|
}
|
|
4
|
-
export declare const useTranslations: () =>
|
|
4
|
+
export declare const useTranslations: () => {
|
|
5
|
+
trans: ((key: string, params?: TranslationValues) => string) & import("lodash").MemoizedFunction;
|
|
6
|
+
};
|
|
5
7
|
export {};
|
|
@@ -4,14 +4,16 @@ const useTranslations = () => {
|
|
|
4
4
|
const translations = ref(eval(window.GuidoConfig.translationsPath)), trans = (n, t) => {
|
|
5
5
|
const r = translations.value[n];
|
|
6
6
|
return r ? t ? Object.entries(t).reduce(
|
|
7
|
-
(e, [o,
|
|
7
|
+
(e, [o, s]) => e.replace(new RegExp(`{${o}}`, "g"), String(s)),
|
|
8
8
|
r
|
|
9
9
|
) : r : (console.warn(`Translation key not found: ${n}`), n);
|
|
10
10
|
};
|
|
11
|
-
return
|
|
12
|
-
trans
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
return {
|
|
12
|
+
trans: memoize(
|
|
13
|
+
trans,
|
|
14
|
+
(n, t) => !t || Object.keys(t).length === 0 ? n : JSON.stringify({ key: n, params: t })
|
|
15
|
+
)
|
|
16
|
+
};
|
|
15
17
|
};
|
|
16
18
|
export {
|
|
17
19
|
useTranslations
|
package/dist/enums/defaults.d.ts
CHANGED
package/dist/enums/defaults.js
CHANGED
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-f67c82be] .guido__view-option-selection-desktop svg,[data-v-f67c82be] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}.header-right-slot[data-v-94ef50f1]{gap:16px}.guido-editor__wrapper[data-v-ef4897b1],.guido-editor__container[data-v-ef4897b1]{width:100%;height:100vh}
|