@useinsider/guido 1.0.0-beta.35d2ac4 → 1.0.0-beta.3af57f2
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 +82 -535
- package/dist/@types/generic.d.ts +4 -13
- package/dist/App.vue.d.ts +1 -1
- package/dist/components/Guido.vue.d.ts +2 -22
- package/dist/components/Guido.vue.js +7 -7
- package/dist/components/Guido.vue2.js +15 -74
- 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 +11 -0
- package/dist/components/organisms/top-bar/HeaderRightSlot.vue.d.ts +2 -0
- package/dist/components/organisms/top-bar/HeaderRightSlot.vue.js +18 -0
- package/dist/components/organisms/top-bar/HeaderRightSlot.vue2.js +14 -0
- package/dist/composables/useCustomInterfaceAppearance.js +9 -45
- package/dist/composables/useStripo.d.ts +2 -2
- package/dist/composables/useStripo.js +50 -73
- 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/enums/defaults.enum.d.ts +18 -0
- package/dist/guido.css +1 -1
- package/dist/library.d.ts +0 -1
- 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/counter.d.ts +12 -0
- 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/AmpErrorModal.vue.d.ts +0 -16
- package/dist/components/organisms/design-preview/AmpErrorModal.vue.js +0 -21
- package/dist/components/organisms/design-preview/AmpErrorModal.vue2.js +0 -30
- 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 -43
- 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 -33
- 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 -23
- package/dist/components/organisms/header/AmpToggle.vue.js +0 -17
- package/dist/components/organisms/header/AmpToggle.vue2.js +0 -48
- package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +0 -2
- 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 -15
- 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 -25
- 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 -35
- 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/ViewOptions.vue2.js +0 -15
- 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 -7
- package/dist/composables/useActionsApi.js +0 -49
- 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/useGuidoActions.d.ts +0 -46
- package/dist/composables/useGuidoActions.js +0 -37
- 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/useProvideInject.d.ts +0 -14
- package/dist/composables/useProvideInject.js +0 -17
- package/dist/composables/useToaster.js +0 -37
- package/dist/composables/useTranslations.js +0 -18
- 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/defaults.d.ts +0 -4
- package/dist/enums/defaults.js +0 -8
- package/dist/enums/displayConditions.d.ts +0 -2
- package/dist/enums/displayConditions.js +0 -80
- package/dist/enums/emailPreview.d.ts +0 -3
- package/dist/enums/emailPreview.js +0 -6
- 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/guido.png +0 -0
- package/dist/inbox-mockup.svg +0 -39
- 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/node_modules/lodash-es/_Hash.js +0 -20
- package/dist/node_modules/lodash-es/_ListCache.js +0 -20
- package/dist/node_modules/lodash-es/_Map.js +0 -6
- package/dist/node_modules/lodash-es/_MapCache.js +0 -20
- package/dist/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/lodash-es/_assocIndexOf.js +0 -10
- package/dist/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/lodash-es/_baseIsNative.js +0 -16
- package/dist/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/lodash-es/_getMapData.js +0 -8
- package/dist/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/lodash-es/_getRawTag.js +0 -15
- package/dist/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/lodash-es/_hashClear.js +0 -7
- package/dist/node_modules/lodash-es/_hashDelete.js +0 -7
- package/dist/node_modules/lodash-es/_hashGet.js +0 -13
- package/dist/node_modules/lodash-es/_hashHas.js +0 -9
- package/dist/node_modules/lodash-es/_hashSet.js +0 -9
- package/dist/node_modules/lodash-es/_isKeyable.js +0 -7
- package/dist/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/lodash-es/_listCacheClear.js +0 -6
- package/dist/node_modules/lodash-es/_listCacheDelete.js +0 -12
- package/dist/node_modules/lodash-es/_listCacheGet.js +0 -8
- package/dist/node_modules/lodash-es/_listCacheHas.js +0 -7
- package/dist/node_modules/lodash-es/_listCacheSet.js +0 -8
- package/dist/node_modules/lodash-es/_mapCacheClear.js +0 -13
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +0 -8
- package/dist/node_modules/lodash-es/_mapCacheGet.js +0 -7
- package/dist/node_modules/lodash-es/_mapCacheHas.js +0 -7
- package/dist/node_modules/lodash-es/_mapCacheSet.js +0 -8
- package/dist/node_modules/lodash-es/_nativeCreate.js +0 -5
- package/dist/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/lodash-es/_toSource.js +0 -17
- package/dist/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/lodash-es/isFunction.js +0 -12
- package/dist/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/lodash-es/memoize.js +0 -18
- package/dist/phone-mockup.svg +0 -31
- package/dist/services/stripoApi.d.ts +0 -8
- package/dist/services/stripoApi.js +0 -49
- 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/editor.d.ts +0 -9
- package/dist/stores/editor.js +0 -15
- 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
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
import type { DynamicContent, GuidoConfig, EmailData } from '@@/Types/generic';
|
|
2
|
-
import type { Template } from '@@/Types/stripo';
|
|
3
1
|
type __VLS_Props = {
|
|
4
|
-
|
|
5
|
-
userId: string;
|
|
6
|
-
partnerName?: string;
|
|
7
|
-
productType?: string;
|
|
8
|
-
username?: string;
|
|
9
|
-
html?: string;
|
|
10
|
-
css?: string;
|
|
11
|
-
guidoConfig: GuidoConfig;
|
|
12
|
-
emailData?: EmailData;
|
|
2
|
+
emailId: string;
|
|
13
3
|
};
|
|
14
|
-
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
15
|
-
dynamicContent: {
|
|
16
|
-
insert: (data: DynamicContent) => void;
|
|
17
|
-
close: () => void;
|
|
18
|
-
};
|
|
19
|
-
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
20
|
-
"dynamic-content:open": (detail: DynamicContent | null) => void;
|
|
21
|
-
back: () => void;
|
|
22
|
-
"save:start": () => void;
|
|
23
|
-
"save:complete": (template: Omit<Template, "forceRecreate">) => void;
|
|
24
|
-
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
|
|
4
|
+
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>>>, {}>;
|
|
25
5
|
export default _default;
|
|
26
6
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
7
|
type __VLS_TypePropsToOption<T> = {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import o from "./Guido.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
3
|
+
import i from "../_virtual/_plugin-vue2_normalizer.js";
|
|
4
4
|
var s = function() {
|
|
5
|
-
var
|
|
6
|
-
return r("div", { staticClass: "guido-
|
|
7
|
-
}, a = [],
|
|
5
|
+
var t = this, r = t._self._c, e = t._self._setupProxy;
|
|
6
|
+
return r("div", { staticClass: "guido-editor-wrapper" }, [r(e.Header), r("div", { staticClass: "guido-editor-container", attrs: { id: "guido-editor" } })], 1);
|
|
7
|
+
}, a = [], n = /* @__PURE__ */ i(
|
|
8
8
|
o,
|
|
9
9
|
s,
|
|
10
10
|
a,
|
|
11
11
|
!1,
|
|
12
12
|
null,
|
|
13
|
-
"
|
|
13
|
+
"c14163ad"
|
|
14
14
|
);
|
|
15
|
-
const
|
|
15
|
+
const f = n.exports;
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
f as default
|
|
18
18
|
};
|
|
@@ -1,83 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import P from "./organisms/design-preview/EmailPreview.vue.js";
|
|
7
|
-
import k from "./organisms/header/HeaderWrapper.vue.js";
|
|
8
|
-
import { useStripoApi as T } from "../services/stripoApi.js";
|
|
9
|
-
import { useEditorStore as N } from "../stores/editor.js";
|
|
10
|
-
const M = /* @__PURE__ */ w({
|
|
1
|
+
import { defineComponent as a, onMounted as n } from "vue";
|
|
2
|
+
import { useStripo as m } from "../composables/useStripo.js";
|
|
3
|
+
import { useTemplates as p } from "../composables/useTemplates.js";
|
|
4
|
+
import s from "./organisms/top-bar/Header.vue.js";
|
|
5
|
+
const f = /* @__PURE__ */ a({
|
|
11
6
|
__name: "Guido",
|
|
12
7
|
props: {
|
|
13
|
-
|
|
14
|
-
userId: null,
|
|
15
|
-
partnerName: null,
|
|
16
|
-
productType: null,
|
|
17
|
-
username: null,
|
|
18
|
-
html: null,
|
|
19
|
-
css: null,
|
|
20
|
-
guidoConfig: null,
|
|
21
|
-
emailData: null
|
|
8
|
+
emailId: null
|
|
22
9
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
templateId: c,
|
|
27
|
-
userId: r,
|
|
28
|
-
guidoConfig: i,
|
|
29
|
-
html: s = "",
|
|
30
|
-
css: l = "",
|
|
31
|
-
partnerName: d = n(),
|
|
32
|
-
productType: u = a(),
|
|
33
|
-
username: m = G
|
|
34
|
-
} = o;
|
|
35
|
-
window.GuidoConfig = {
|
|
36
|
-
...I,
|
|
37
|
-
...i
|
|
38
|
-
};
|
|
39
|
-
const { initPlugin: p } = _({ emailId: c, userId: r, username: m, partnerName: d, productType: u }), { getDefaultTemplate: f } = T(), h = N();
|
|
40
|
-
S({
|
|
41
|
-
onBack: () => {
|
|
42
|
-
console.debug("guido:back"), t("back");
|
|
43
|
-
},
|
|
44
|
-
onSaveStart: () => {
|
|
45
|
-
console.debug("guido:save:start"), t("save:start");
|
|
46
|
-
},
|
|
47
|
-
onSaveComplete: (e) => {
|
|
48
|
-
console.debug("guido:save:complete", e), t("save:complete", e);
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
const g = (e) => {
|
|
52
|
-
console.debug("dynamic-content:close", e), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: e }));
|
|
53
|
-
}, y = () => {
|
|
54
|
-
console.debug("dynamic-content:close", "Without Data"), document.dispatchEvent(new CustomEvent("dynamic-content:close", { detail: { text: "", value: "" } }));
|
|
55
|
-
};
|
|
56
|
-
return E(async () => {
|
|
57
|
-
console.debug("Guido says happy coding 🎉"), console.debug("🚗 Ka-Chow");
|
|
10
|
+
setup(i) {
|
|
11
|
+
const e = i, { initPlugin: o } = m(e.emailId), { getDefaultTemplate: r } = p();
|
|
12
|
+
return n(async () => {
|
|
58
13
|
try {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// TODO: It should be false for old templates. We will communicate with Stripo
|
|
64
|
-
};
|
|
65
|
-
e.html || (e = await f()), await p(e);
|
|
66
|
-
} catch (e) {
|
|
67
|
-
console.error("Failed to initialize Stripo editor:", e);
|
|
68
|
-
}
|
|
69
|
-
document.addEventListener("dynamic-content:open", (e) => {
|
|
70
|
-
const v = e;
|
|
71
|
-
console.debug("dynamic-content:open", v.detail), t("dynamic-content:open", v.detail);
|
|
72
|
-
});
|
|
73
|
-
}), b({
|
|
74
|
-
dynamicContent: {
|
|
75
|
-
insert: g,
|
|
76
|
-
close: y
|
|
14
|
+
const t = await r();
|
|
15
|
+
await o(t);
|
|
16
|
+
} catch (t) {
|
|
17
|
+
console.error("Failed to initialize Stripo editor:", t);
|
|
77
18
|
}
|
|
78
|
-
}), { __sfc: !0, props:
|
|
19
|
+
}), { __sfc: !0, props: e, initPlugin: o, getDefaultTemplate: r, Header: s };
|
|
79
20
|
}
|
|
80
21
|
});
|
|
81
22
|
export {
|
|
82
|
-
|
|
23
|
+
f as default
|
|
83
24
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import t from "./
|
|
1
|
+
import t from "./Header.vue2.js";
|
|
2
2
|
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var
|
|
3
|
+
var a = function() {
|
|
4
4
|
var o = this, r = o._self._c, e = o._self._setupProxy;
|
|
5
|
-
return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0" } }, [r("div", { staticClass: "w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.
|
|
6
|
-
},
|
|
5
|
+
return r(e.InContainer, { attrs: { border: "bor-w-0 bor-b-w-1 bor-s-s bor-c-6", "border-radius": "bor-r-0" } }, [r("div", { staticClass: "w-1 d-f a-i-c j-c-s-b p-3" }, [r(e.HeaderLeftSlot), r(e.HeaderMiddleSlot), r(e.HeaderRightSlot)], 1)]);
|
|
6
|
+
}, n = [], _ = /* @__PURE__ */ s(
|
|
7
7
|
t,
|
|
8
|
-
n,
|
|
9
8
|
a,
|
|
9
|
+
n,
|
|
10
10
|
!1,
|
|
11
11
|
null,
|
|
12
12
|
null
|
|
13
13
|
);
|
|
14
|
-
const
|
|
14
|
+
const c = _.exports;
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
c as default
|
|
17
17
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineComponent as e } from "vue";
|
|
2
|
+
import { InContainer as r } from "@useinsider/design-system-vue";
|
|
3
|
+
import o from "./HeaderLeftSlot.vue.js";
|
|
4
|
+
import t from "./HeaderMiddleSlot.vue.js";
|
|
5
|
+
import m from "./HeaderRightSlot.vue.js";
|
|
6
|
+
const _ = /* @__PURE__ */ e({
|
|
7
|
+
__name: "Header",
|
|
8
|
+
setup(f) {
|
|
9
|
+
return { __sfc: !0, InContainer: r, HeaderLeftSlot: o, HeaderMiddleSlot: t, HeaderRightSlot: m };
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
_ as default
|
|
14
|
+
};
|
|
@@ -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,17 @@
|
|
|
1
|
+
import n from "./HeaderLeftSlot.vue2.js";
|
|
2
|
+
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var _ = function() {
|
|
4
|
+
var t = this, e = t._self._c, r = t._self._setupProxy;
|
|
5
|
+
return e("div", [e(r.InButtonV2, { attrs: { id: "guido__back-button", "label-text": "Back", "left-icon": "line-arrow-left", styling: "text", type: "secondary" } })], 1);
|
|
6
|
+
}, a = [], s = /* @__PURE__ */ o(
|
|
7
|
+
n,
|
|
8
|
+
_,
|
|
9
|
+
a,
|
|
10
|
+
!1,
|
|
11
|
+
null,
|
|
12
|
+
null
|
|
13
|
+
);
|
|
14
|
+
const i = s.exports;
|
|
15
|
+
export {
|
|
16
|
+
i as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineComponent as t } from "vue";
|
|
2
|
+
import { InButtonV2 as e } from "@useinsider/design-system-vue";
|
|
3
|
+
const _ = /* @__PURE__ */ t({
|
|
4
|
+
__name: "HeaderLeftSlot",
|
|
5
|
+
setup(o) {
|
|
6
|
+
return { __sfc: !0, InButtonV2: e };
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
_ as default
|
|
11
|
+
};
|
|
@@ -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,17 @@
|
|
|
1
|
+
import o from "./HeaderMiddleSlot.vue2.js";
|
|
2
|
+
import s from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
+
var l = function() {
|
|
4
|
+
var n = this, t = n._self._c, e = n._self._setupProxy;
|
|
5
|
+
return t("div", { staticClass: "d-f" }, [t(e.InButtonV2, { attrs: { id: "guido__undo-button", "left-icon": "line-undo", styling: "ghost", type: "secondary", "label-text-status": !1 } }), t(e.InButtonV2, { attrs: { id: "guido__redo-button", "left-icon": "line-redo", styling: "ghost", type: "secondary", "label-text-status": !1 } }), t(e.InButtonV2, { attrs: { id: "guido__code-button", "left-icon": "line-code", styling: "ghost", type: "secondary", "label-text-status": !1 } }), t(e.InButtonV2, { attrs: { id: "guido__preview-button", "left-icon": "line-show-on", styling: "ghost", type: "secondary", "label-text-status": !1 } })], 1);
|
|
6
|
+
}, a = [], i = /* @__PURE__ */ s(
|
|
7
|
+
o,
|
|
8
|
+
l,
|
|
9
|
+
a,
|
|
10
|
+
!1,
|
|
11
|
+
null,
|
|
12
|
+
null
|
|
13
|
+
);
|
|
14
|
+
const _ = i.exports;
|
|
15
|
+
export {
|
|
16
|
+
_ as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { defineComponent as e } from "vue";
|
|
2
|
+
import { InButtonV2 as t } from "@useinsider/design-system-vue";
|
|
3
|
+
const _ = /* @__PURE__ */ e({
|
|
4
|
+
__name: "HeaderMiddleSlot",
|
|
5
|
+
setup(o) {
|
|
6
|
+
return { __sfc: !0, InButtonV2: t };
|
|
7
|
+
}
|
|
8
|
+
});
|
|
9
|
+
export {
|
|
10
|
+
_ as default
|
|
11
|
+
};
|
|
@@ -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 n from "./HeaderRightSlot.vue2.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import o from "../../../_virtual/_plugin-vue2_normalizer.js";
|
|
4
|
+
var a = 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.InSegments, { attrs: { id: "preview-platform-selection", "with-icon": "", selected: "desktop", "segment-list": e.segmentList } })], 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 = [], l = /* @__PURE__ */ o(
|
|
8
|
+
n,
|
|
9
|
+
a,
|
|
10
|
+
i,
|
|
11
|
+
!1,
|
|
12
|
+
null,
|
|
13
|
+
"9d879f6f"
|
|
14
|
+
);
|
|
15
|
+
const u = l.exports;
|
|
16
|
+
export {
|
|
17
|
+
u as default
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defineComponent as e } from "vue";
|
|
2
|
+
import { InSegments as t, InButtonV2 as n } from "@useinsider/design-system-vue";
|
|
3
|
+
const p = /* @__PURE__ */ e({
|
|
4
|
+
__name: "HeaderRightSlot",
|
|
5
|
+
setup(o) {
|
|
6
|
+
return { __sfc: !0, segmentList: [
|
|
7
|
+
{ text: "", icon: "line-desktop", value: "desktop" },
|
|
8
|
+
{ text: "", icon: "line-menu-mobileapp", value: "mobile" }
|
|
9
|
+
], InButtonV2: n, InSegments: t };
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
p as default
|
|
14
|
+
};
|
|
@@ -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,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { useCustomInterfaceAppearance as d } from "./useCustomInterfaceAppearance.js";
|
|
2
|
+
const u = (s) => {
|
|
3
|
+
const c = () => {
|
|
4
|
+
const t = new Headers();
|
|
5
|
+
t.append("Content-Type", "application/json");
|
|
6
|
+
const o = JSON.stringify({
|
|
7
|
+
pluginId: void 0,
|
|
8
|
+
secretKey: void 0,
|
|
9
|
+
role: void 0,
|
|
10
|
+
userId: s
|
|
11
|
+
});
|
|
12
|
+
return fetch("/v2/stripo/get-token", {
|
|
13
|
+
method: "POST",
|
|
14
|
+
headers: t,
|
|
15
|
+
body: o,
|
|
16
|
+
redirect: "follow"
|
|
17
|
+
}).then((e) => e.json());
|
|
18
|
+
}, i = (t) => {
|
|
19
|
+
const o = t.html, n = t.css;
|
|
11
20
|
window.UIEditor.initEditor(
|
|
12
21
|
document.querySelector("#guido-editor"),
|
|
13
22
|
{
|
|
14
|
-
metadata:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
locale: "en",
|
|
19
|
-
undoButtonSelector: "#guido__undo-button",
|
|
20
|
-
redoButtonSelector: "#guido__redo-button",
|
|
21
|
-
mobileViewButtonSelector: ".guido__view-option-selection-mobile",
|
|
22
|
-
desktopViewButtonSelector: ".guido__view-option-selection-desktop",
|
|
23
|
-
codeEditorButtonSelector: "#guido__code-button",
|
|
24
|
-
customAppearanceMergetags: !0,
|
|
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: S,
|
|
34
|
-
messageSettingsEnabled: !1,
|
|
35
|
-
editorFonts: {
|
|
36
|
-
showDefaultStandardFonts: !0,
|
|
37
|
-
showDefaultNotStandardFonts: !0,
|
|
38
|
-
customFonts: r
|
|
23
|
+
metadata: {
|
|
24
|
+
emailId: s,
|
|
25
|
+
userId: "1",
|
|
26
|
+
username: "Plugin Demo User"
|
|
39
27
|
},
|
|
40
|
-
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
29
|
+
html: o,
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
31
|
+
css: n,
|
|
32
|
+
locale: "en",
|
|
33
|
+
async onTokenRefreshRequest(e) {
|
|
41
34
|
try {
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
} catch (
|
|
45
|
-
|
|
35
|
+
const r = await c();
|
|
36
|
+
e(r.token);
|
|
37
|
+
} catch (r) {
|
|
38
|
+
console.error("Failed to refresh token:", r);
|
|
46
39
|
}
|
|
47
40
|
},
|
|
48
41
|
onTemplateLoaded() {
|
|
49
42
|
try {
|
|
50
|
-
const { importCss:
|
|
51
|
-
|
|
52
|
-
} catch (
|
|
53
|
-
|
|
43
|
+
const { importCss: e } = d();
|
|
44
|
+
e();
|
|
45
|
+
} catch (e) {
|
|
46
|
+
console.error("Failed to load custom interface appearance:", e);
|
|
54
47
|
}
|
|
55
|
-
}
|
|
56
|
-
onCodeEditorVisibilityChanged(o) {
|
|
57
|
-
i.isCodeEditorOpen = o;
|
|
58
|
-
},
|
|
59
|
-
onEditorVisualModeChanged(o) {
|
|
60
|
-
i.editorVisualMode = o.toLowerCase();
|
|
61
|
-
},
|
|
62
|
-
onVersionHistoryVisibilityChanged(o) {
|
|
63
|
-
i.isVersionHistoryOpen = o;
|
|
64
|
-
},
|
|
65
|
-
ignoreClickOutsideSelectors: ["#guido-dynamic-content-modal"],
|
|
66
|
-
extensions: [y]
|
|
48
|
+
}
|
|
67
49
|
}
|
|
68
50
|
);
|
|
69
|
-
}
|
|
51
|
+
};
|
|
52
|
+
return { initPlugin: (t) => new Promise((o, n) => {
|
|
70
53
|
if (document.getElementById("UiEditorScript")) {
|
|
71
|
-
|
|
54
|
+
i(t), o();
|
|
72
55
|
return;
|
|
73
56
|
}
|
|
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
|
-
} };
|
|
57
|
+
const e = document.createElement("script");
|
|
58
|
+
e.id = "UiEditorScript", e.type = "module", e.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", e.onload = () => {
|
|
59
|
+
i(t), o();
|
|
60
|
+
}, e.onerror = () => {
|
|
61
|
+
const r = new Error("Failed to load Stripo UIEditor script");
|
|
62
|
+
n(r);
|
|
63
|
+
}, document.body.appendChild(e);
|
|
64
|
+
}) };
|
|
88
65
|
};
|
|
89
66
|
export {
|
|
90
|
-
|
|
67
|
+
u as useStripo
|
|
91
68
|
};
|
|
@@ -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 {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const DefaultApiEndpoints: {
|
|
2
|
+
dynamicContent: string;
|
|
3
|
+
unsubPages: string;
|
|
4
|
+
header: string;
|
|
5
|
+
footer: string;
|
|
6
|
+
productName: string;
|
|
7
|
+
productVersion: string;
|
|
8
|
+
token: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const DefaultExtensions: {
|
|
11
|
+
dynamicContent: boolean;
|
|
12
|
+
unsubPages: boolean;
|
|
13
|
+
header: boolean;
|
|
14
|
+
footer: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const DefaultConfig: {
|
|
17
|
+
translationsPath: string;
|
|
18
|
+
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
.header-right-slot[data-v-9d879f6f]{gap:16px}[data-v-9d879f6f] .preview-platform-selection-desktop svg,[data-v-9d879f6f] .preview-platform-selection-mobile svg{margin:0 0 0 2px}.guido-editor-wrapper[data-v-c14163ad],.guido-editor-container[data-v-c14163ad]{width:100%;height:100vh}
|
package/dist/library.d.ts
CHANGED