@useinsider/guido 1.0.0-beta.de03990 → 1.0.0-beta.df613dd
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 +21 -410
- package/dist/@types/generic.d.ts +0 -35
- package/dist/App.vue.d.ts +1 -1
- package/dist/components/Guido.vue.d.ts +3 -20
- package/dist/components/Guido.vue.js +8 -8
- package/dist/components/Guido.vue2.js +25 -79
- package/dist/components/organisms/header/LeftSlot.vue.d.ts +1 -1
- package/dist/components/organisms/header/LeftSlot.vue.js +9 -9
- package/dist/components/organisms/header/LeftSlot.vue2.js +6 -10
- package/dist/components/organisms/header/MiddleSlot.vue.js +10 -10
- package/dist/components/organisms/header/MiddleSlot.vue2.js +15 -16
- package/dist/components/organisms/header/RightSlot.vue.js +14 -12
- package/dist/components/organisms/header/RightSlot.vue2.js +17 -32
- package/dist/components/organisms/header/ViewOptions.vue.d.ts +1 -1
- package/dist/components/organisms/header/ViewOptions.vue.js +8 -8
- package/dist/components/organisms/header/ViewOptions.vue2.js +10 -30
- package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +1 -13
- package/dist/components/organisms/header/version-history/VersionHistory.vue.js +7 -7
- package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +10 -13
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +1 -1
- package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +1 -1
- package/dist/components/organisms/header/version-history/ViewOptions.vue.d.ts +1 -1
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +3 -3
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +16 -34
- package/dist/composables/useActionsApi.d.ts +0 -3
- package/dist/composables/useActionsApi.js +34 -62
- package/dist/composables/useCustomInterfaceAppearance.js +9 -45
- package/dist/composables/useExport.d.ts +1 -1
- package/dist/composables/useExport.js +22 -37
- package/dist/composables/useStripo.js +30 -53
- package/dist/composables/useTemplates.d.ts +5 -0
- package/dist/composables/useTemplates.js +27 -0
- package/dist/composables/useToaster.d.ts +16 -1
- package/dist/composables/useToaster.js +30 -23
- package/dist/composables/useTranslations.js +2 -3
- package/dist/composables/useVersionHistoryApi.js +4 -4
- package/dist/enums/defaults.js +5 -14
- package/dist/guido.css +1 -1
- package/dist/services/stripoApi.d.ts +1 -2
- package/dist/services/stripoApi.js +7 -27
- package/dist/static/editor.css.js +232 -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 -1
- package/dist/stores/editor.js +2 -3
- 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/base/Toaster.vue.d.ts +0 -2
- package/dist/components/organisms/base/Toaster.vue.js +0 -17
- package/dist/components/organisms/base/Toaster.vue2.js +0 -15
- package/dist/components/organisms/email-preview/PreviewContainer.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/PreviewContainer.vue.js +0 -19
- package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +0 -19
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.d.ts +0 -4
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +0 -22
- package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +0 -30
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +0 -19
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +0 -29
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +0 -22
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +0 -31
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
- package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +0 -18
- package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue2.js +0 -25
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.d.ts +0 -4
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +0 -19
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue2.js +0 -23
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.d.ts +0 -4
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +0 -20
- package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue2.js +0 -21
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.d.ts +0 -2
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +0 -17
- package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +0 -22
- 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/wrappers/WpModal.vue.d.ts +0 -65
- package/dist/components/wrappers/WpModal.vue.js +0 -27
- package/dist/components/wrappers/WpModal.vue2.js +0 -22
- package/dist/composables/useCodeEditorApi.d.ts +0 -4
- package/dist/composables/useCodeEditorApi.js +0 -11
- package/dist/composables/useConfig.d.ts +0 -4
- package/dist/composables/useConfig.js +0 -7
- package/dist/composables/useDebounce.d.ts +0 -4
- package/dist/composables/useDebounce.js +0 -12
- 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 -17
- package/dist/composables/usePreviewMode.d.ts +0 -5
- package/dist/composables/usePreviewMode.js +0 -31
- package/dist/composables/useProvideInject.d.ts +0 -14
- package/dist/composables/useProvideInject.js +0 -17
- package/dist/composables/useResponsivePreview.d.ts +0 -5
- package/dist/composables/useResponsivePreview.js +0 -86
- 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/preview.d.ts +0 -13
- package/dist/enums/preview.js +0 -23
- 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 -61
- package/dist/extensions/DynamicContent/extension.d.ts +0 -2
- package/dist/extensions/DynamicContent/extension.js +0 -11
- 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/_Stack.js +0 -18
- package/dist/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/lodash-es/_apply.js +0 -16
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +0 -19
- package/dist/node_modules/lodash-es/_assignMergeValue.js +0 -8
- package/dist/node_modules/lodash-es/_assignValue.js +0 -10
- package/dist/node_modules/lodash-es/_baseAssignValue.js +0 -12
- package/dist/node_modules/lodash-es/_baseCreate.js +0 -17
- package/dist/node_modules/lodash-es/_baseFor.js +0 -5
- package/dist/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
- package/dist/node_modules/lodash-es/_baseKeysIn.js +0 -15
- package/dist/node_modules/lodash-es/_baseMerge.js +0 -20
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +0 -31
- package/dist/node_modules/lodash-es/_baseRest.js +0 -9
- package/dist/node_modules/lodash-es/_baseSetToString.js +0 -14
- package/dist/node_modules/lodash-es/_baseTimes.js +0 -8
- package/dist/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
- package/dist/node_modules/lodash-es/_cloneBuffer.js +0 -9
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/dist/node_modules/lodash-es/_copyArray.js +0 -9
- package/dist/node_modules/lodash-es/_copyObject.js +0 -14
- package/dist/node_modules/lodash-es/_createAssigner.js +0 -15
- package/dist/node_modules/lodash-es/_createBaseFor.js +0 -13
- package/dist/node_modules/lodash-es/_defineProperty.js +0 -11
- package/dist/node_modules/lodash-es/_getPrototype.js +0 -5
- package/dist/node_modules/lodash-es/_initCloneObject.js +0 -9
- package/dist/node_modules/lodash-es/_isIndex.js +0 -8
- package/dist/node_modules/lodash-es/_isIterateeCall.js +0 -13
- package/dist/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +0 -10
- package/dist/node_modules/lodash-es/_nodeUtil.js +0 -11
- package/dist/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/lodash-es/_overRest.js +0 -15
- package/dist/node_modules/lodash-es/_safeGet.js +0 -7
- package/dist/node_modules/lodash-es/_setToString.js +0 -6
- package/dist/node_modules/lodash-es/_shortOut.js +0 -16
- package/dist/node_modules/lodash-es/_stackClear.js +0 -7
- package/dist/node_modules/lodash-es/_stackDelete.js +0 -7
- package/dist/node_modules/lodash-es/_stackGet.js +0 -6
- package/dist/node_modules/lodash-es/_stackHas.js +0 -6
- package/dist/node_modules/lodash-es/_stackSet.js +0 -17
- package/dist/node_modules/lodash-es/constant.js +0 -8
- package/dist/node_modules/lodash-es/identity.js +0 -6
- package/dist/node_modules/lodash-es/isArguments.js +0 -10
- package/dist/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/lodash-es/isArrayLikeObject.js +0 -8
- package/dist/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/lodash-es/isPlainObject.js +0 -16
- package/dist/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/lodash-es/merge.js +0 -8
- package/dist/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/lodash-es/toPlainObject.js +0 -8
- package/dist/static/assets/inbox-mockup.svg.js +0 -4
- package/dist/static/assets/phone-mockup.svg.js +0 -4
- 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/dynamic-content.d.ts +0 -27
- package/dist/stores/dynamic-content.js +0 -23
- package/dist/stores/preview.d.ts +0 -46
- package/dist/stores/preview.js +0 -53
- package/dist/stores/toaster.d.ts +0 -25
- package/dist/stores/toaster.js +0 -28
- package/dist/utils/arrayUtil.d.ts +0 -1
- package/dist/utils/arrayUtil.js +0 -10
- package/dist/utils/genericUtil.d.ts +0 -2
- package/dist/utils/genericUtil.js +0 -7
- package/dist/utils/htmlCompiler.d.ts +0 -12
- package/dist/utils/htmlCompiler.js +0 -70
- package/dist/utils/tooltipUtils.d.ts +0 -2
- package/dist/utils/tooltipUtils.js +0 -11
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { FooterButtonGroup } from '@@/Types/preview';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
size?: 'small' | 'medium' | 'large';
|
|
7
|
-
footerButtonOptions?: FooterButtonGroup;
|
|
8
|
-
closeButtonStatus?: boolean;
|
|
9
|
-
closeOnOutsideClick?: boolean;
|
|
10
|
-
footerStatus?: boolean;
|
|
11
|
-
};
|
|
12
|
-
declare var __VLS_13: {};
|
|
13
|
-
type __VLS_Slots = {} & {
|
|
14
|
-
default?: (props: typeof __VLS_13) => any;
|
|
15
|
-
};
|
|
16
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
17
|
-
description: string;
|
|
18
|
-
size: string;
|
|
19
|
-
footerButtonOptions: undefined;
|
|
20
|
-
closeButtonStatus: boolean;
|
|
21
|
-
closeOnOutsideClick: boolean;
|
|
22
|
-
footerStatus: boolean;
|
|
23
|
-
}>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
24
|
-
close: () => void;
|
|
25
|
-
"primary-action": () => void;
|
|
26
|
-
"secondary-action": () => void;
|
|
27
|
-
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
28
|
-
description: string;
|
|
29
|
-
size: string;
|
|
30
|
-
footerButtonOptions: undefined;
|
|
31
|
-
closeButtonStatus: boolean;
|
|
32
|
-
closeOnOutsideClick: boolean;
|
|
33
|
-
footerStatus: boolean;
|
|
34
|
-
}>>>, {
|
|
35
|
-
size: "small" | "medium" | "large";
|
|
36
|
-
description: string;
|
|
37
|
-
footerButtonOptions: FooterButtonGroup;
|
|
38
|
-
closeButtonStatus: boolean;
|
|
39
|
-
closeOnOutsideClick: boolean;
|
|
40
|
-
footerStatus: boolean;
|
|
41
|
-
}>;
|
|
42
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
43
|
-
export default _default;
|
|
44
|
-
type __VLS_WithDefaults<P, D> = {
|
|
45
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
46
|
-
default: D[K];
|
|
47
|
-
}> : P[K];
|
|
48
|
-
};
|
|
49
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
50
|
-
type __VLS_TypePropsToOption<T> = {
|
|
51
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
52
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
53
|
-
} : {
|
|
54
|
-
type: import('vue').PropType<T[K]>;
|
|
55
|
-
required: true;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
59
|
-
new (): {
|
|
60
|
-
$scopedSlots: S;
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
type __VLS_PrettifyLocal<T> = {
|
|
64
|
-
[K in keyof T]: T[K];
|
|
65
|
-
} & {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import r from "./WpModal.vue2.js";
|
|
2
|
-
import s from "../../_virtual/_plugin-vue2_normalizer.js";
|
|
3
|
-
var i = function() {
|
|
4
|
-
var t = this, o = t._self._c, e = t._self._setupProxy;
|
|
5
|
-
return o(e.InModalV2, { attrs: { id: t.id, "description-status": "", status: "", "close-button-status": t.closeButtonStatus, "close-on-outside-click": t.closeOnOutsideClick, "description-text": t.description, "footer-button-group-options": t.footerButtonOptions, "footer-status": t.footerStatus, size: t.size, "title-text": t.title }, on: { cancelOrBackButtonEvent: function(n) {
|
|
6
|
-
return e.emit("close");
|
|
7
|
-
}, onCloseEvent: function(n) {
|
|
8
|
-
return e.emit("close");
|
|
9
|
-
}, primaryButtonEvent: function(n) {
|
|
10
|
-
return e.emit("primary-action");
|
|
11
|
-
}, secondaryButtonEvent: function(n) {
|
|
12
|
-
return e.emit("secondary-action");
|
|
13
|
-
} }, scopedSlots: t._u([{ key: "contentSlot", fn: function() {
|
|
14
|
-
return [t._t("default")];
|
|
15
|
-
}, proxy: !0 }], null, !0) });
|
|
16
|
-
}, u = [], c = /* @__PURE__ */ s(
|
|
17
|
-
r,
|
|
18
|
-
i,
|
|
19
|
-
u,
|
|
20
|
-
!1,
|
|
21
|
-
null,
|
|
22
|
-
null
|
|
23
|
-
);
|
|
24
|
-
const p = c.exports;
|
|
25
|
-
export {
|
|
26
|
-
p as default
|
|
27
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e } from "vue";
|
|
2
|
-
import { InModalV2 as o } from "@useinsider/design-system-vue";
|
|
3
|
-
const u = /* @__PURE__ */ e({
|
|
4
|
-
__name: "WpModal",
|
|
5
|
-
props: {
|
|
6
|
-
id: null,
|
|
7
|
-
title: null,
|
|
8
|
-
description: { default: "" },
|
|
9
|
-
size: { default: "small" },
|
|
10
|
-
footerButtonOptions: { default: void 0 },
|
|
11
|
-
closeButtonStatus: { type: Boolean, default: !0 },
|
|
12
|
-
closeOnOutsideClick: { type: Boolean, default: !0 },
|
|
13
|
-
footerStatus: { type: Boolean, default: !0 }
|
|
14
|
-
},
|
|
15
|
-
emits: ["close", "primary-action", "secondary-action"],
|
|
16
|
-
setup(l, { emit: t }) {
|
|
17
|
-
return { __sfc: !0, emit: t, InModalV2: o };
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
u as default
|
|
22
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ref as c } from "vue";
|
|
2
|
-
const r = () => {
|
|
3
|
-
const e = c(void 0);
|
|
4
|
-
return { debounce: (o, u = 150) => {
|
|
5
|
-
e.value && window.clearTimeout(e.value), e.value = window.setTimeout(o, u);
|
|
6
|
-
}, clearDebounce: () => {
|
|
7
|
-
e.value && (window.clearTimeout(e.value), e.value = void 0);
|
|
8
|
-
} };
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
r as useDebounce
|
|
12
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { Template } from '@@/Types/stripo';
|
|
2
|
-
import type { InjectionKey } from 'vue';
|
|
3
|
-
export type BackHandler = () => void;
|
|
4
|
-
export type SaveStartHandler = () => void;
|
|
5
|
-
export type SaveCompleteHandler = (template: Omit<Template, 'forceRecreate'>) => void;
|
|
6
|
-
export declare const BACK_KEY: InjectionKey<BackHandler>;
|
|
7
|
-
export declare const SAVE_START_KEY: InjectionKey<SaveStartHandler>;
|
|
8
|
-
export declare const SAVE_COMPLETE_KEY: InjectionKey<SaveCompleteHandler>;
|
|
9
|
-
/**
|
|
10
|
-
* Provides Guido action handlers to child components
|
|
11
|
-
*/
|
|
12
|
-
export declare const provideGuidoActions: (actions: {
|
|
13
|
-
onBack: BackHandler;
|
|
14
|
-
onSaveStart: SaveStartHandler;
|
|
15
|
-
onSaveComplete: SaveCompleteHandler;
|
|
16
|
-
}) => void;
|
|
17
|
-
/**
|
|
18
|
-
* Provides individual Guido action handlers
|
|
19
|
-
*/
|
|
20
|
-
export declare const provideBackHandler: (handler: BackHandler) => void;
|
|
21
|
-
export declare const provideSaveStartHandler: (handler: SaveStartHandler) => void;
|
|
22
|
-
export declare const provideSaveCompleteHandler: (handler: SaveCompleteHandler) => void;
|
|
23
|
-
/**
|
|
24
|
-
* Hook to use the back navigation handler
|
|
25
|
-
* @returns Back navigation function
|
|
26
|
-
*/
|
|
27
|
-
export declare const useBack: () => BackHandler;
|
|
28
|
-
/**
|
|
29
|
-
* Hook to use the save start handler
|
|
30
|
-
* @returns Save start function
|
|
31
|
-
*/
|
|
32
|
-
export declare const useSaveStart: () => SaveStartHandler;
|
|
33
|
-
/**
|
|
34
|
-
* Hook to use the save complete handler
|
|
35
|
-
* @returns Save complete function
|
|
36
|
-
*/
|
|
37
|
-
export declare const useSaveComplete: () => SaveCompleteHandler;
|
|
38
|
-
/**
|
|
39
|
-
* Convenience hook to get all Guido actions
|
|
40
|
-
* @returns Object containing all action handlers
|
|
41
|
-
*/
|
|
42
|
-
export declare const useGuidoActions: () => {
|
|
43
|
-
back: BackHandler;
|
|
44
|
-
saveStart: SaveStartHandler;
|
|
45
|
-
saveComplete: SaveCompleteHandler;
|
|
46
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { provideValue as o, useInjectedValue as t } from "./useProvideInject.js";
|
|
2
|
-
const r = Symbol.for("guido.back"), n = Symbol.for("guido.save.start"), a = Symbol.for("guido.save.complete"), s = (e) => {
|
|
3
|
-
o(r, e.onBack), o(n, e.onSaveStart), o(a, e.onSaveComplete);
|
|
4
|
-
}, u = () => {
|
|
5
|
-
try {
|
|
6
|
-
return t(r);
|
|
7
|
-
} catch {
|
|
8
|
-
throw new Error(
|
|
9
|
-
"useBack: No back handler provided. Make sure Guido component is in the component tree."
|
|
10
|
-
);
|
|
11
|
-
}
|
|
12
|
-
}, d = () => {
|
|
13
|
-
try {
|
|
14
|
-
return t(n);
|
|
15
|
-
} catch {
|
|
16
|
-
throw new Error(
|
|
17
|
-
"useSaveStart: No save start handler provided. Make sure Guido component is in the component tree."
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
}, i = () => {
|
|
21
|
-
try {
|
|
22
|
-
return t(a);
|
|
23
|
-
} catch {
|
|
24
|
-
throw new Error(
|
|
25
|
-
"useSaveComplete: No save complete handler provided. Make sure Guido component is in the component tree."
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
r as BACK_KEY,
|
|
31
|
-
a as SAVE_COMPLETE_KEY,
|
|
32
|
-
n as SAVE_START_KEY,
|
|
33
|
-
s as provideGuidoActions,
|
|
34
|
-
u as useBack,
|
|
35
|
-
i as useSaveComplete,
|
|
36
|
-
d as useSaveStart
|
|
37
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { defaultHtmlCompilerRules as r } from "../config/compiler/htmlCompilerRules.js";
|
|
2
|
-
import { createHtmlCompiler as p } from "../utils/htmlCompiler.js";
|
|
3
|
-
import { useConfig as s } from "./useConfig.js";
|
|
4
|
-
const R = () => {
|
|
5
|
-
const { config: e } = s(), l = e.htmlCompilerRules || [], t = [
|
|
6
|
-
...!!e.ignoreDefaultHtmlCompilerRules ? [] : r,
|
|
7
|
-
...l.map((o, i) => ({
|
|
8
|
-
...o,
|
|
9
|
-
priority: o.priority + 1e3 + i
|
|
10
|
-
// Ensure additional rules run after default rules
|
|
11
|
-
}))
|
|
12
|
-
], m = p(t);
|
|
13
|
-
return { compileHtml: (o) => m.compile(o) };
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
R as useHtmlCompiler
|
|
17
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { useEditorStore as n } from "../stores/editor.js";
|
|
2
|
-
import { usePreviewStore as m } from "../stores/preview.js";
|
|
3
|
-
import { useActionsApi as p } from "./useActionsApi.js";
|
|
4
|
-
import { useCodeEditorApi as l } from "./useCodeEditorApi.js";
|
|
5
|
-
const E = () => {
|
|
6
|
-
const i = n(), e = m(), { closeCodeEditor: s } = l(), { getPreviewData: a } = p(), r = () => {
|
|
7
|
-
e.isPreviewModeOpen = !1, e.$reset();
|
|
8
|
-
};
|
|
9
|
-
return {
|
|
10
|
-
closePreviewMode: r,
|
|
11
|
-
openPreviewMode: () => {
|
|
12
|
-
i.isCodeEditorOpen && s(), e.isPreviewModeOpen = !0;
|
|
13
|
-
},
|
|
14
|
-
loadPreviewData: async () => {
|
|
15
|
-
if (!(e.isLoading || e.isLoaded)) {
|
|
16
|
-
e.isLoading = !0;
|
|
17
|
-
try {
|
|
18
|
-
const { html: o, ampHtml: t, ampErrors: d } = await a();
|
|
19
|
-
e.templateHtml = o || "", e.ampHtml = t || "", e.ampErrors = d || [], e.setEmailFormat(t ? "AMP" : "html"), e.isLoaded = !0;
|
|
20
|
-
} catch (o) {
|
|
21
|
-
console.error("Failed to load preview data:", o), r();
|
|
22
|
-
} finally {
|
|
23
|
-
e.isLoading = !1;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export {
|
|
30
|
-
E as usePreviewMode
|
|
31
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type InjectionKey } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* Provides a value using Vue's provide/inject system
|
|
4
|
-
* @param key - The injection key
|
|
5
|
-
* @param value - The value to provide
|
|
6
|
-
*/
|
|
7
|
-
export declare const provideValue: <T>(key: InjectionKey<T>, value: T) => void;
|
|
8
|
-
/**
|
|
9
|
-
* Injects a value using Vue's provide/inject system
|
|
10
|
-
* @param key - The injection key
|
|
11
|
-
* @param defaultValue - Optional default value if injection fails
|
|
12
|
-
* @returns The injected value
|
|
13
|
-
*/
|
|
14
|
-
export declare const useInjectedValue: <T>(key: InjectionKey<T>, defaultValue?: T) => T;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { provide as t, inject as i } from "vue";
|
|
2
|
-
const d = (e, o) => {
|
|
3
|
-
t(e, o);
|
|
4
|
-
}, s = (e, o) => {
|
|
5
|
-
const r = i(e, o);
|
|
6
|
-
if (r === void 0 && o === void 0) {
|
|
7
|
-
const n = e.description || String(e);
|
|
8
|
-
throw new Error(
|
|
9
|
-
`useInjectedValue: No provider found for key "${n}". Make sure a parent component provides this value.`
|
|
10
|
-
);
|
|
11
|
-
}
|
|
12
|
-
return r;
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
d as provideValue,
|
|
16
|
-
s as useInjectedValue
|
|
17
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { useDebounce as p } from "./useDebounce.js";
|
|
2
|
-
import { ResponsivePreviewRegex as c, ResponsivePreviewSelectors as v, ResponsivePreviewConfig as a } from "../enums/preview.js";
|
|
3
|
-
let i = null, l = null;
|
|
4
|
-
const { debounce: y } = p(), h = (t) => {
|
|
5
|
-
if (!t)
|
|
6
|
-
return null;
|
|
7
|
-
const e = t.match(c.TABLE_WIDTH);
|
|
8
|
-
if (!e)
|
|
9
|
-
return null;
|
|
10
|
-
const n = Number(e[1]);
|
|
11
|
-
return Number.isNaN(n) ? null : n;
|
|
12
|
-
}, w = (t) => Array.from(t.querySelectorAll("table[width]")).reduce((e, n) => {
|
|
13
|
-
const o = h(n.getAttribute("width"));
|
|
14
|
-
return o && o > e ? o : e;
|
|
15
|
-
}, 0), f = (t) => Array.from(t.querySelectorAll('[style*="width"]')).reduce((e, n) => {
|
|
16
|
-
const r = (n.getAttribute("style") || "").match(c.INLINE_WIDTH);
|
|
17
|
-
if (!r)
|
|
18
|
-
return e;
|
|
19
|
-
const s = Number(r[1]);
|
|
20
|
-
return !Number.isNaN(s) && s > e ? s : e;
|
|
21
|
-
}, 0), W = (t) => v.CONTAINERS.reduce((e, n) => {
|
|
22
|
-
const o = t.querySelector(n);
|
|
23
|
-
if (!o)
|
|
24
|
-
return e;
|
|
25
|
-
const r = Math.max(o.offsetWidth, o.scrollWidth);
|
|
26
|
-
return r > e ? r : e;
|
|
27
|
-
}, 0), E = (t) => {
|
|
28
|
-
const e = {
|
|
29
|
-
maxTableWidth: w(t),
|
|
30
|
-
maxInlineWidth: f(t),
|
|
31
|
-
maxContainerWidth: W(t)
|
|
32
|
-
}, { maxTableWidth: n, maxInlineWidth: o, maxContainerWidth: r } = e;
|
|
33
|
-
return Math.max(n, o, r) || a.DEFAULT_WIDTH;
|
|
34
|
-
}, b = (t) => {
|
|
35
|
-
const { documentElement: e, body: n } = t;
|
|
36
|
-
e.style.setProperty("overflow-x", "visible", "important"), n.style.setProperty("visibility", "visible", "important");
|
|
37
|
-
}, g = (t) => {
|
|
38
|
-
const { documentElement: e, body: n } = t;
|
|
39
|
-
e.style.removeProperty("transform"), e.style.removeProperty("transform-origin"), e.style.removeProperty("height"), n.style.removeProperty("overflow-x");
|
|
40
|
-
}, S = (t) => {
|
|
41
|
-
const { targetWidth: e, deviceWidth: n, minScale: o, maxScale: r } = t, s = n / e;
|
|
42
|
-
return Math.min(Math.max(s, o), r);
|
|
43
|
-
}, P = (t, e) => {
|
|
44
|
-
const n = E(t), o = S({
|
|
45
|
-
targetWidth: n,
|
|
46
|
-
deviceWidth: e,
|
|
47
|
-
minScale: a.MIN_SCALE,
|
|
48
|
-
maxScale: 1
|
|
49
|
-
}), { documentElement: r, body: s } = t;
|
|
50
|
-
r.style.setProperty("height", "100%", "important"), r.style.setProperty("transform", `scale(${o})`, "important"), r.style.setProperty("transform-origin", "top left", "important"), s.style.setProperty("overflow-x", "hidden", "important");
|
|
51
|
-
}, u = (t) => {
|
|
52
|
-
const e = t.querySelector('meta[name="viewport"]');
|
|
53
|
-
if (!e)
|
|
54
|
-
return !1;
|
|
55
|
-
const n = e.getAttribute("content") || "";
|
|
56
|
-
return c.META_VIEWPORT.test(n);
|
|
57
|
-
}, R = (t) => t.clientWidth || t.getBoundingClientRect().width || 375, d = (t) => {
|
|
58
|
-
const e = t.contentWindow;
|
|
59
|
-
l && e && e.removeEventListener("resize", l), i && window.removeEventListener("resize", i), l = null, i = null;
|
|
60
|
-
}, x = (t, e) => {
|
|
61
|
-
const n = t.contentWindow;
|
|
62
|
-
if (!n)
|
|
63
|
-
return;
|
|
64
|
-
d(t);
|
|
65
|
-
const o = () => y(e, a.RESIZE_DEBOUNCE_MS);
|
|
66
|
-
l = o, n.addEventListener("resize", l), i = o, window.addEventListener("resize", i);
|
|
67
|
-
}, M = () => ({
|
|
68
|
-
setupResponsivePreview: (n) => {
|
|
69
|
-
const o = n.contentDocument, r = n.contentWindow;
|
|
70
|
-
if (!o || !r)
|
|
71
|
-
return;
|
|
72
|
-
b(o);
|
|
73
|
-
const s = () => {
|
|
74
|
-
const m = R(n);
|
|
75
|
-
u(o) ? g(o) : P(o, m);
|
|
76
|
-
};
|
|
77
|
-
s(), x(n, s);
|
|
78
|
-
},
|
|
79
|
-
tearDownEmailResponsiveFit: (n) => {
|
|
80
|
-
d(n);
|
|
81
|
-
},
|
|
82
|
-
hasResponsiveMetaViewport: u
|
|
83
|
-
});
|
|
84
|
-
export {
|
|
85
|
-
M as useResponsivePreview
|
|
86
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
const a = [
|
|
2
|
-
{
|
|
3
|
-
id: "fix-url-encoding-start",
|
|
4
|
-
description: "Replace {%22 with %7B%22 to fix URL encoding",
|
|
5
|
-
type: "replace",
|
|
6
|
-
search: "{%22",
|
|
7
|
-
replacement: "%7B%22",
|
|
8
|
-
replaceAll: !0,
|
|
9
|
-
priority: 10
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
id: "fix-url-encoding-end",
|
|
13
|
-
description: "Replace %22} with %22%7D to fix URL encoding",
|
|
14
|
-
type: "replace",
|
|
15
|
-
search: "%22}",
|
|
16
|
-
replacement: "%22%7D",
|
|
17
|
-
replaceAll: !0,
|
|
18
|
-
priority: 10
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
id: "fix-tags-start",
|
|
22
|
-
description: "Replace %7B%7B with {{ to fix URL encoding",
|
|
23
|
-
type: "replace",
|
|
24
|
-
search: "%7B%7B",
|
|
25
|
-
replacement: "{{",
|
|
26
|
-
replaceAll: !0,
|
|
27
|
-
priority: 11
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: "fix-tags-end",
|
|
31
|
-
description: "Replace %7D%7D with }} to fix URL encoding",
|
|
32
|
-
type: "replace",
|
|
33
|
-
search: "%7D%7D",
|
|
34
|
-
replacement: "}}",
|
|
35
|
-
replaceAll: !0,
|
|
36
|
-
priority: 12
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: "unescape-inequality-operators-start",
|
|
40
|
-
description: "Replace < with < to fix URL encoding",
|
|
41
|
-
type: "replace",
|
|
42
|
-
search: "<",
|
|
43
|
-
replacement: "<",
|
|
44
|
-
replaceAll: !0,
|
|
45
|
-
priority: 13
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
id: "unescape-inequality-operators-end",
|
|
49
|
-
description: "Replace > with > to fix URL encoding",
|
|
50
|
-
type: "replace",
|
|
51
|
-
search: ">",
|
|
52
|
-
replacement: ">",
|
|
53
|
-
replaceAll: !0,
|
|
54
|
-
priority: 14
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
id: "remove-apty-iframe",
|
|
58
|
-
description: "Cleanup Apty Iframe Code",
|
|
59
|
-
type: "remove",
|
|
60
|
-
targets: [
|
|
61
|
-
'<iframe src="about:blank" id="letznav-iframe-script" allowtransparency="true" style="width:1px;height:1px"></iframe>',
|
|
62
|
-
'src="about:blank" id="letznav-iframe-script" allowtransparency="true" style="width:1px;height:1px"></iframe>'
|
|
63
|
-
],
|
|
64
|
-
priority: 20
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
id: "remove-apty-styles",
|
|
68
|
-
description: "Removing Apty Styles",
|
|
69
|
-
type: "regex",
|
|
70
|
-
pattern: '<styles*data-styles="apty_styles"s* type="text/css"s*>((s|.)*?)</style>',
|
|
71
|
-
replacement: "",
|
|
72
|
-
flags: "g",
|
|
73
|
-
priority: 21
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: "remove-mso-conditions",
|
|
77
|
-
description: "Removing MSO Conditions",
|
|
78
|
-
type: "remove",
|
|
79
|
-
targets: [
|
|
80
|
-
/<!--\[if\s\(mso 16\)\]>\s*<style\s*\S*>\s*a\s*\{\s*text-decoration\s*:\s*none\s*;*\s*\}\s*<\/style>\s*<!\[endif\]-->/g,
|
|
81
|
-
/<!--\[if\sgte mso 9\]>\s*<style\s*\S*>\s*sup\s*\{\s*font-size\s*:\s*100%\s*!important\s*;*\s*\}\s*<\/style>\s*<!\[endif\]-->/g,
|
|
82
|
-
/<!--\[if\sgte mso 9\]>\s*<noscript>\s*<xml>\s*<o:OfficeDocumentSettings>\s*<o:AllowPNG>\s*<\/o:AllowPNG>\s*<o:PixelsPerInch>\d+<\/o:PixelsPerInch>\s*<\/o:OfficeDocumentSettings>\s*<\/xml>\s*<\/noscript>\s*<!\[endif\]-->/g,
|
|
83
|
-
/<!--\[if mso\]>\s*<xml>\s*<w:WordDocument\s+xmlns:w="urn:schemas-microsoft-com:office:word">\s*<w:DontUseAdvancedTypographyReadingMail><\/w:DontUseAdvancedTypographyReadingMail>\s*<\/w:WordDocument>\s*<\/xml>\s*<!\[endif\]-->/g,
|
|
84
|
-
/<\!--\[if \!mso\]><\!--\s*\d*\s*-->\s*<\!--\[if \!mso\]><\!--\s*\d*\s*-->\s*<\!--<!\[endif\]-->/g,
|
|
85
|
-
/<!--\[if\s\!mso\]>\s*<!-- \d -->/g
|
|
86
|
-
],
|
|
87
|
-
priority: 22
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
id: "add-mso-conditions",
|
|
91
|
-
description: "Adding MSO Conditions",
|
|
92
|
-
type: "custom",
|
|
93
|
-
processor: (e) => {
|
|
94
|
-
const t = [
|
|
95
|
-
`<!--[if gte mso 9]>
|
|
96
|
-
<style>sup {
|
|
97
|
-
font-size: 100% !important;
|
|
98
|
-
}</style><![endif]-->`,
|
|
99
|
-
`<!--[if gte mso 9]>
|
|
100
|
-
<noscript>
|
|
101
|
-
<xml>
|
|
102
|
-
<o:OfficeDocumentSettings>
|
|
103
|
-
<o:AllowPNG></o:AllowPNG>
|
|
104
|
-
<o:PixelsPerInch>96</o:PixelsPerInch>
|
|
105
|
-
</o:OfficeDocumentSettings>
|
|
106
|
-
</xml>
|
|
107
|
-
</noscript><![endif]-->`,
|
|
108
|
-
`<!--[if mso]>
|
|
109
|
-
<xml>
|
|
110
|
-
<w:WordDocument xmlns:w="urn:schemas-microsoft-com:office:word">
|
|
111
|
-
<w:DontUseAdvancedTypographyReadingMail></w:DontUseAdvancedTypographyReadingMail>
|
|
112
|
-
</w:WordDocument>
|
|
113
|
-
</xml><![endif]-->`
|
|
114
|
-
], s = /<head>([\S\s]*)<\/head>/, o = new RegExp(s);
|
|
115
|
-
if (!e.match(o))
|
|
116
|
-
return e;
|
|
117
|
-
let i = e;
|
|
118
|
-
return t.forEach((r) => {
|
|
119
|
-
i = i.replace("</head>", `${r}</head>`);
|
|
120
|
-
}), i;
|
|
121
|
-
},
|
|
122
|
-
priority: 30
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
id: "replace-old-image-domain",
|
|
126
|
-
description: "Replacing old image domains",
|
|
127
|
-
type: "replace",
|
|
128
|
-
search: "stripo-editor-image.s3-eu-west-1.amazonaws.com",
|
|
129
|
-
replacement: "email-static.useinsider.com",
|
|
130
|
-
replaceAll: !0,
|
|
131
|
-
priority: 40
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
id: "replace-old-v2-image-domain",
|
|
135
|
-
description: "Replacing old image domains",
|
|
136
|
-
type: "replace",
|
|
137
|
-
search: "email.static.useinsider.com",
|
|
138
|
-
replacement: "email-static.useinsider.com",
|
|
139
|
-
replaceAll: !0,
|
|
140
|
-
priority: 41
|
|
141
|
-
}
|
|
142
|
-
];
|
|
143
|
-
export {
|
|
144
|
-
a as defaultHtmlCompilerRules
|
|
145
|
-
};
|
|
File without changes
|