@useinsider/guido 1.0.2-beta.ad1dcd9 → 1.0.2-beta.b3c5fc9
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 +2 -44
- package/dist/@types/events.d.ts +0 -6
- package/dist/@types/generic.d.ts +0 -13
- package/dist/_virtual/AddCustomFont.js +4 -0
- package/dist/_virtual/AiAssistantValueType.js +4 -0
- package/dist/_virtual/BackgroundColorBuiltInControl.js +4 -0
- package/dist/_virtual/BackgroundImageBuiltInControl.js +4 -0
- package/dist/_virtual/Block.js +4 -0
- package/dist/_virtual/BlockAttributes.js +4 -0
- package/dist/_virtual/BlockCompositionType.js +4 -0
- package/dist/_virtual/BlockPaddingsBuiltInControl.js +4 -0
- package/dist/_virtual/BlockRenderer.js +4 -0
- package/dist/_virtual/BlockType.js +4 -0
- package/dist/_virtual/BlocksPanel.js +4 -0
- package/dist/_virtual/BuiltInControl.js +4 -0
- package/dist/_virtual/BuiltInControlTypes.js +4 -0
- package/dist/_virtual/ButtonBorderBuiltInControl.js +4 -0
- package/dist/_virtual/ButtonColorBuiltInControl.js +4 -0
- package/dist/_virtual/ButtonFontColorBuiltInControl.js +4 -0
- package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +4 -0
- package/dist/_virtual/ButtonTextBuiltInControl.js +4 -0
- package/dist/_virtual/ContextAction.js +4 -0
- package/dist/_virtual/ContextActionType.js +4 -0
- package/dist/_virtual/Control.js +4 -0
- package/dist/_virtual/EditorStatePropertyType.js +4 -0
- package/dist/_virtual/Extension.js +4 -0
- package/dist/_virtual/ExtensionBuilder.js +4 -0
- package/dist/_virtual/FontFamilyBuiltInControl.js +4 -0
- package/dist/_virtual/LinkColorBuiltInControl.js +4 -0
- package/dist/_virtual/ModificationDescription.js +4 -0
- package/dist/_virtual/PanelPosition.js +4 -0
- package/dist/_virtual/PreviewDeviceMode.js +4 -0
- package/dist/_virtual/SettingsPanelRegistry.js +4 -0
- package/dist/_virtual/SettingsPanelTab.js +4 -0
- package/dist/_virtual/SettingsTab.js +4 -0
- package/dist/_virtual/StructureBorderBuiltInControl.js +4 -0
- package/dist/_virtual/StructurePaddingsBuiltInControl.js +4 -0
- package/dist/_virtual/TextColorBuiltInControl.js +4 -0
- package/dist/_virtual/TextLineSpacingBuiltInControl.js +4 -0
- package/dist/_virtual/TextSizeBuiltInControl.js +4 -0
- package/dist/_virtual/TextStyleBuiltInControl.js +4 -0
- package/dist/_virtual/UIElement.js +4 -0
- package/dist/_virtual/UIElementTagRegistry.js +4 -0
- package/dist/_virtual/UIElementType.js +4 -0
- package/dist/_virtual/UIElementsAttributes.js +4 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/components/Guido.vue.d.ts +2 -5
- package/dist/components/Guido.vue.js +10 -10
- package/dist/components/Guido.vue2.js +61 -85
- package/dist/components/organisms/email-preview/PreviewContainer.vue.js +12 -12
- package/dist/components/organisms/email-preview/PreviewContainer.vue2.js +8 -7
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -3
- package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +1 -3
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +9 -15
- package/dist/components/organisms/header/LeftSlot.vue.js +9 -10
- package/dist/components/organisms/header/MiddleSlot.vue.js +6 -6
- package/dist/components/organisms/header/MiddleSlot.vue2.js +16 -15
- package/dist/components/organisms/header/RightSlot.vue.d.ts +1 -3
- package/dist/components/organisms/header/RightSlot.vue.js +4 -6
- package/dist/components/organisms/header/RightSlot.vue2.js +28 -26
- package/dist/components/organisms/header/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/ViewOptions.vue2.js +15 -14
- package/dist/components/organisms/header/version-history/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +5 -5
- package/dist/components/wrappers/WpDrawer.vue.d.ts +4 -6
- package/dist/components/wrappers/WpDrawer.vue.js +4 -6
- package/dist/composables/useCustomInterfaceAppearance.js +19 -25
- package/dist/composables/useHtmlCompiler.js +9 -17
- package/dist/composables/usePartner.d.ts +0 -1
- package/dist/composables/usePartner.js +9 -16
- package/dist/composables/usePreviewMode.js +13 -13
- package/dist/composables/useStripo.js +52 -61
- package/dist/composables/useToaster.js +17 -17
- package/dist/config/compiler/outlookCompilerRules.d.ts +0 -2
- package/dist/enums/defaults.d.ts +1 -6
- package/dist/enums/defaults.js +10 -50
- package/dist/extensions/DynamicContent/dynamic-content.js +27 -41
- package/dist/extensions/DynamicContent/extension.js +6 -18
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +48 -72
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +49 -74
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +38 -120
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +18 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +32 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +18 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +8 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +11 -5
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +34 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +11 -5
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +11 -5
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +101 -116
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +11 -5
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +11 -5
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +11 -5
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +11 -5
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +11 -5
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +11 -5
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +43 -23
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +46 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +44 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +22 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +46 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +46 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +17 -21
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +15 -8
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +29 -30
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +46 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +44 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +45 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +43 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +266 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +23 -19
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +19 -37
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +15 -2
- package/dist/static/styles/components/alert-message.css.js +2 -32
- package/dist/static/styles/components/button.css.js +2 -32
- package/dist/static/styles/components/wide-panel.css.js +2 -15
- package/dist/static/styles/variables.css.js +0 -10
- package/dist/stores/dynamic-content.d.ts +0 -12
- package/dist/stores/dynamic-content.js +6 -7
- package/dist/stores/editor.d.ts +1 -194
- package/dist/stores/editor.js +2 -18
- package/dist/stores/preview.d.ts +8 -0
- package/dist/stores/preview.js +20 -12
- package/dist/utils/genericUtil.js +6 -9
- package/dist/utils/templatePreparation.js +14 -21
- package/package.json +3 -5
- package/dist/components/organisms/LoadingWrapper.vue.d.ts +0 -2
- package/dist/components/organisms/LoadingWrapper.vue.js +0 -18
- package/dist/components/organisms/LoadingWrapper.vue2.js +0 -12
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/AMPOnboarding.vue.js +0 -20
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +0 -37
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +0 -83
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +0 -17
- package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +0 -30
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue.js +0 -19
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +0 -43
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +0 -21
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +0 -74
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.d.ts +0 -2
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +0 -20
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +0 -37
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.d.ts +0 -2
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeBreadcrumb.vue2.js +0 -16
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.d.ts +0 -2
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +0 -24
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +0 -64
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.d.ts +0 -2
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +0 -108
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.d.ts +0 -2
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue.js +0 -18
- package/dist/components/organisms/unsubscribe/UnsubscribeWrapper.vue2.js +0 -12
- package/dist/composables/useHtmlValidator.d.ts +0 -4
- package/dist/composables/useHtmlValidator.js +0 -139
- package/dist/composables/useRecommendation.d.ts +0 -19
- package/dist/composables/useRecommendation.js +0 -27
- package/dist/composables/useSave.d.ts +0 -4
- package/dist/composables/useSave.js +0 -15
- package/dist/composables/useStripoEventHandler.d.ts +0 -3
- package/dist/composables/useStripoEventHandler.js +0 -20
- package/dist/config/compiler/outlookCompilerRules.js +0 -36
- package/dist/config/compiler/recommendationCompilerRules.d.ts +0 -2
- package/dist/config/compiler/recommendationCompilerRules.js +0 -83
- package/dist/config/compiler/socialCompilerRules.d.ts +0 -2
- package/dist/config/compiler/socialCompilerRules.js +0 -21
- package/dist/config/compiler/unsubscribeCompilerRules.d.ts +0 -2
- package/dist/config/compiler/unsubscribeCompilerRules.js +0 -64
- package/dist/config/migrator/checkboxMigrator.d.ts +0 -1
- package/dist/config/migrator/checkboxMigrator.js +0 -83
- package/dist/config/migrator/index.d.ts +0 -1
- package/dist/config/migrator/index.js +0 -9
- package/dist/config/migrator/unsubscribeMigrator.d.ts +0 -1
- package/dist/config/migrator/unsubscribeMigrator.js +0 -112
- package/dist/enums/html-validator.d.ts +0 -6
- package/dist/enums/html-validator.js +0 -7
- package/dist/enums/onboarding.d.ts +0 -1
- package/dist/enums/onboarding.js +0 -8
- package/dist/enums/recommendation.d.ts +0 -54
- package/dist/enums/recommendation.js +0 -56
- package/dist/enums/unsubscribe.d.ts +0 -34
- package/dist/enums/unsubscribe.js +0 -50
- package/dist/extensions/Blocks/Checkbox/block.d.ts +0 -10
- package/dist/extensions/Blocks/Checkbox/block.js +0 -39
- package/dist/extensions/Blocks/Checkbox/control.d.ts +0 -22
- package/dist/extensions/Blocks/Checkbox/control.js +0 -104
- package/dist/extensions/Blocks/Checkbox/extension.d.ts +0 -2
- package/dist/extensions/Blocks/Checkbox/extension.js +0 -20
- package/dist/extensions/Blocks/Checkbox/settingsPanel.d.ts +0 -4
- package/dist/extensions/Blocks/Checkbox/settingsPanel.js +0 -38
- package/dist/extensions/Blocks/Checkbox/template.d.ts +0 -6
- package/dist/extensions/Blocks/Checkbox/template.js +0 -75
- package/dist/extensions/Blocks/Unsubscribe/block.d.ts +0 -30
- package/dist/extensions/Blocks/Unsubscribe/block.js +0 -141
- package/dist/extensions/Blocks/Unsubscribe/control.d.ts +0 -29
- package/dist/extensions/Blocks/Unsubscribe/control.js +0 -180
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.d.ts +0 -11
- package/dist/extensions/Blocks/Unsubscribe/elements/preview.js +0 -54
- package/dist/extensions/Blocks/Unsubscribe/extension.d.ts +0 -2
- package/dist/extensions/Blocks/Unsubscribe/extension.js +0 -21
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.d.ts +0 -4
- package/dist/extensions/Blocks/Unsubscribe/settingsPanel.js +0 -32
- package/dist/extensions/Blocks/Unsubscribe/template.d.ts +0 -3
- package/dist/extensions/Blocks/Unsubscribe/template.js +0 -28
- package/dist/extensions/Blocks/Unsubscribe/utils/constants.d.ts +0 -9
- package/dist/extensions/Blocks/Unsubscribe/utils/constants.js +0 -11
- package/dist/extensions/Blocks/Unsubscribe/utils/utils.d.ts +0 -7
- package/dist/extensions/Blocks/Unsubscribe/utils/utils.js +0 -6
- package/dist/extensions/Blocks/_Boilerplate/block.d.ts +0 -10
- package/dist/extensions/Blocks/_Boilerplate/control.d.ts +0 -17
- package/dist/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
- package/dist/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
- package/dist/extensions/Blocks/_Boilerplate/template.d.ts +0 -6
- package/dist/mock/api/unsubscribe.d.ts +0 -2
- package/dist/mock/api/user-modal-state.d.ts +0 -2
- package/dist/mock/api/validator.d.ts +0 -2
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +0 -12
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +0 -12
- package/dist/services/onboardingApi.d.ts +0 -4
- package/dist/services/onboardingApi.js +0 -23
- package/dist/services/unsubscribeApi.d.ts +0 -4
- package/dist/services/unsubscribeApi.js +0 -16
- package/dist/static/assets/onboarding-img.svg.js +0 -4
- package/dist/static/styles/components/loader.css.js +0 -10
- package/dist/static/styles/components/notification.css.js +0 -55
- package/dist/static/styles/components/popup.css.js +0 -68
- package/dist/static/styles/customEditorStyle.css.js +0 -24
- package/dist/stores/onboarding.d.ts +0 -1068
- package/dist/stores/onboarding.js +0 -95
- package/dist/stores/recommendation.d.ts +0 -10
- package/dist/stores/recommendation.js +0 -9
- package/dist/stores/unsubscribe.d.ts +0 -186
- package/dist/stores/unsubscribe.js +0 -128
|
@@ -1,40 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
var n
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
*/
|
|
20
|
-
getValue() {
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Optional method to set the value of the UI element.
|
|
24
|
-
* Implement this if the element manages a state or value and needs to be updated externally.
|
|
25
|
-
* @param value - The new value to set.
|
|
26
|
-
*/
|
|
27
|
-
setValue(e) {
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @description Optional hook called when one of the element's supported attributes ({@link UEAttr}) gets updated externally.
|
|
31
|
-
* Implement this to react to attribute changes (e.g., visibility, disabled state).
|
|
32
|
-
* @param name - The name of the attribute that was updated.
|
|
33
|
-
* @param value - The new value of the attribute.
|
|
34
|
-
*/
|
|
35
|
-
onAttributeUpdated(e, a) {
|
|
36
|
-
}
|
|
1
|
+
import { __exports as t } from "../../../../../_virtual/UIElement.js";
|
|
2
|
+
var n;
|
|
3
|
+
function l() {
|
|
4
|
+
if (n) return t;
|
|
5
|
+
n = 1, Object.defineProperty(t, "__esModule", { value: !0 }), t.UIElement = void 0;
|
|
6
|
+
var r = (
|
|
7
|
+
/** @class */
|
|
8
|
+
(function() {
|
|
9
|
+
function e() {
|
|
10
|
+
}
|
|
11
|
+
return e.prototype.onDestroy = function() {
|
|
12
|
+
}, e.prototype.getValue = function() {
|
|
13
|
+
}, e.prototype.setValue = function(o) {
|
|
14
|
+
}, e.prototype.onAttributeUpdated = function(o, u) {
|
|
15
|
+
}, e;
|
|
16
|
+
})()
|
|
17
|
+
);
|
|
18
|
+
return t.UIElement = r, t;
|
|
37
19
|
}
|
|
38
20
|
export {
|
|
39
|
-
|
|
21
|
+
l as __require
|
|
40
22
|
};
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
import { __exports as e } from "../../../../../_virtual/UIElementTagRegistry.js";
|
|
2
|
+
var r;
|
|
3
|
+
function g() {
|
|
4
|
+
if (r) return e;
|
|
5
|
+
r = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.UIElementTagRegistry = void 0;
|
|
6
|
+
var t = (
|
|
7
|
+
/** @class */
|
|
8
|
+
/* @__PURE__ */ (function() {
|
|
9
|
+
function i() {
|
|
10
|
+
}
|
|
11
|
+
return i;
|
|
12
|
+
})()
|
|
13
|
+
);
|
|
14
|
+
return e.UIElementTagRegistry = t, e;
|
|
2
15
|
}
|
|
3
16
|
export {
|
|
4
|
-
|
|
17
|
+
g as __require
|
|
5
18
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const n = `.alert-message-wrapper {
|
|
2
2
|
box-shadow: none;
|
|
3
3
|
border: 1px solid var(--guido-color-gray-300);
|
|
4
4
|
color: var(--guido-color-gray-600);
|
|
@@ -16,36 +16,6 @@ const r = `.alert-message-wrapper {
|
|
|
16
16
|
color: var(--guido-color-border-onpage-message-info);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.alert-message-wrapper.warn {
|
|
20
|
-
background: var(--guido-color-background-onpage-message-warn);
|
|
21
|
-
border-color: var(--guido-color-border-onpage-message-warn);
|
|
22
|
-
color: inherit;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.alert-message-wrapper.warn ue-icon-component.icon {
|
|
26
|
-
color: var(--guido-color-border-onpage-message-warn);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.alert-message-wrapper.success {
|
|
30
|
-
background: var(--guido-color-background-onpage-message-success);
|
|
31
|
-
border-color: var(--guido-color-border-onpage-message-success);
|
|
32
|
-
color: inherit;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.alert-message-wrapper.success ue-icon-component.icon {
|
|
36
|
-
color: var(--guido-color-border-onpage-message-success);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.alert-message-wrapper.error {
|
|
40
|
-
background: var(--guido-color-background-onpage-message-error);
|
|
41
|
-
border-color: var(--guido-color-border-onpage-message-error);
|
|
42
|
-
color: inherit;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.alert-message-wrapper.error ue-icon-component.icon {
|
|
46
|
-
color: var(--guido-color-border-onpage-message-error);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
19
|
.alert-message-wrapper ue-button {
|
|
50
20
|
padding: 0;
|
|
51
21
|
}
|
|
@@ -65,5 +35,5 @@ const r = `.alert-message-wrapper {
|
|
|
65
35
|
}
|
|
66
36
|
`;
|
|
67
37
|
export {
|
|
68
|
-
|
|
38
|
+
n as default
|
|
69
39
|
};
|
|
@@ -60,28 +60,8 @@ const o = `.control-shadow-wrapper:has(.button) {
|
|
|
60
60
|
color: var(--guido-color-primary-500);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.
|
|
64
|
-
|
|
65
|
-
background-color: var(--guido-color-neutral-200);
|
|
66
|
-
color: var(--guido-color-neutral-800);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.primary > .button .icon-button {
|
|
70
|
-
color: var(--guido-color-neutral-800);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.primary > .button:hover:not(:disabled,.disabled) {
|
|
74
|
-
background-color: var(--guido-color-neutral-100);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.danger > .button {
|
|
78
|
-
background-color: var(--guido-color-danger-500);
|
|
79
|
-
color: var(--guido-color-white);
|
|
80
|
-
border: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.danger > .button:hover:not(:disabled,.disabled) {
|
|
84
|
-
background-color: var(--guido-color-danger-300);
|
|
63
|
+
.flat-white > .button:hover:not(:disabled,.disabled) {
|
|
64
|
+
color: var(--guido-color-primary-500);
|
|
85
65
|
}
|
|
86
66
|
|
|
87
67
|
ue-check-button.checked:not(.flat-white) input:checked + label {
|
|
@@ -120,16 +100,6 @@ ue-color {
|
|
|
120
100
|
ue-color .base-input {
|
|
121
101
|
width: 100%;
|
|
122
102
|
}
|
|
123
|
-
|
|
124
|
-
ue-select-text-input .select-text-input-toggle {
|
|
125
|
-
top: 0;
|
|
126
|
-
right: 0;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
ue-select-text-input .select-text-input-toggle .button {
|
|
130
|
-
justify-content: center;
|
|
131
|
-
background-color: transparent !important;
|
|
132
|
-
}
|
|
133
103
|
`;
|
|
134
104
|
export {
|
|
135
105
|
o as default
|
|
@@ -2,28 +2,15 @@ const n = `ue-wide-panel {
|
|
|
2
2
|
width: 425px;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
ue-main-editor-container[panel-position=SETTINGS_BLOCKS] ue-wide-panel {
|
|
6
|
-
right: calc(100% - calc(var(--ue-spacing-step, 5px) * 3) - 425px);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
5
|
ue-main-tabs-panel-component .fixed-panel-header {
|
|
10
6
|
display: none;
|
|
11
7
|
}
|
|
12
8
|
|
|
13
|
-
/* Remove with this writing task DT-28355 */
|
|
14
|
-
ue-description a {
|
|
15
|
-
display: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
9
|
.label {
|
|
19
10
|
font-size: 13px;
|
|
20
11
|
color: var(--guido-color-gray-800);
|
|
21
12
|
}
|
|
22
13
|
|
|
23
|
-
.stacked-panel {
|
|
24
|
-
overflow: auto;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
14
|
.stacked-panel-title {
|
|
28
15
|
padding: 16px;
|
|
29
16
|
font-size: 16px;
|
|
@@ -129,9 +116,9 @@ ue-label.accent-dot:after {
|
|
|
129
116
|
width: auto;
|
|
130
117
|
height: auto;
|
|
131
118
|
border-radius: 4px;
|
|
132
|
-
background: var(--guido-color-primary-
|
|
119
|
+
background: var(--guido-color-primary-500);
|
|
133
120
|
z-index: 2;
|
|
134
|
-
color: var(--guido-color-
|
|
121
|
+
color: var(--guido-color-white);
|
|
135
122
|
padding: 4px 8px;
|
|
136
123
|
right: 1px;
|
|
137
124
|
font-size: 13px;
|
|
@@ -12,20 +12,10 @@ const o = `:host {
|
|
|
12
12
|
--guido-color-neutral-800: #222938;
|
|
13
13
|
--guido-color-neutral-200: #DCDFE6;
|
|
14
14
|
--guido-color-neutral-100: #EFF2F4;
|
|
15
|
-
--guido-color-danger-300: #e84342;
|
|
16
15
|
--guido-color-danger-500: #DC2A2A;
|
|
17
16
|
--guido-box-shadow: 0 4px 12px 0 rgba(44,53,70,0.15);
|
|
18
17
|
--guido-color-background-onpage-message-info: #D3EEF8;
|
|
19
18
|
--guido-color-border-onpage-message-info: #258DDE;
|
|
20
|
-
--guido-color-background-onpage-message-warn: #FCEFE5;
|
|
21
|
-
--guido-color-border-onpage-message-warn: #D37400;
|
|
22
|
-
--guido-color-background-onpage-message-success: #E9F9EB;
|
|
23
|
-
--guido-color-border-onpage-message-success: #128745;
|
|
24
|
-
--guido-color-background-onpage-message-error: #FCECEC;
|
|
25
|
-
--guido-color-border-onpage-message-error: var(--guido-color-danger-500);
|
|
26
|
-
--guido-color-background-toaster-success: #128745;
|
|
27
|
-
--guido-color-background-toaster-error: var(--guido-color-danger-500);
|
|
28
|
-
--guido-color-background-toaster-warn: #D37400;
|
|
29
19
|
}
|
|
30
20
|
`;
|
|
31
21
|
export {
|
|
@@ -8,19 +8,11 @@ export declare const useDynamicContentStore: import("pinia").StoreDefinition<"dy
|
|
|
8
8
|
value: string;
|
|
9
9
|
text: string;
|
|
10
10
|
fallback?: string | undefined;
|
|
11
|
-
format?: {
|
|
12
|
-
key: string;
|
|
13
|
-
value: string;
|
|
14
|
-
} | undefined;
|
|
15
11
|
};
|
|
16
12
|
selectedDynamicContentList: {
|
|
17
13
|
value: string;
|
|
18
14
|
text: string;
|
|
19
15
|
fallback?: string | undefined;
|
|
20
|
-
format?: {
|
|
21
|
-
key: string;
|
|
22
|
-
value: string;
|
|
23
|
-
} | undefined;
|
|
24
16
|
}[];
|
|
25
17
|
} & import("pinia").PiniaCustomStateProperties<{
|
|
26
18
|
selectedDynamicContent: DynamicContent;
|
|
@@ -29,10 +21,6 @@ export declare const useDynamicContentStore: import("pinia").StoreDefinition<"dy
|
|
|
29
21
|
text: string;
|
|
30
22
|
value: string;
|
|
31
23
|
fallback: string | undefined;
|
|
32
|
-
format: {
|
|
33
|
-
key: string;
|
|
34
|
-
value: string;
|
|
35
|
-
} | undefined;
|
|
36
24
|
}[];
|
|
37
25
|
}, {
|
|
38
26
|
setSelectedDynamicContent(dynamicContent: DynamicContent): void;
|
|
@@ -6,16 +6,15 @@ const s = a("dynamicContent", {
|
|
|
6
6
|
selectedDynamicContentList: []
|
|
7
7
|
}),
|
|
8
8
|
actions: {
|
|
9
|
-
setSelectedDynamicContent(
|
|
10
|
-
this.selectedDynamicContent =
|
|
9
|
+
setSelectedDynamicContent(e) {
|
|
10
|
+
this.selectedDynamicContent = e, this.selectedDynamicContentList.push(e);
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
getters: {
|
|
14
|
-
getSelectedDynamicContentList: (
|
|
15
|
-
text:
|
|
16
|
-
value:
|
|
17
|
-
fallback:
|
|
18
|
-
format: e.format
|
|
14
|
+
getSelectedDynamicContentList: (e) => n(e.selectedDynamicContentList).map((t) => ({
|
|
15
|
+
text: t.text,
|
|
16
|
+
value: t.value,
|
|
17
|
+
fallback: t.fallback
|
|
19
18
|
})) || []
|
|
20
19
|
}
|
|
21
20
|
});
|
package/dist/stores/editor.d.ts
CHANGED
|
@@ -1,201 +1,8 @@
|
|
|
1
1
|
export declare const useEditorStore: import("pinia").StoreDefinition<"editor", {
|
|
2
|
-
loadingStatus: boolean;
|
|
3
2
|
isCodeEditorOpen: boolean;
|
|
4
3
|
isSaveAsTemplateDrawerOpen: boolean;
|
|
5
4
|
isVersionHistoryOpen: boolean;
|
|
6
5
|
isPreviewModeOpen: boolean;
|
|
7
6
|
editorVisualMode: string;
|
|
8
7
|
hasChanges: boolean;
|
|
9
|
-
|
|
10
|
-
}, {
|
|
11
|
-
isUndoButtonDisabled: (state: {
|
|
12
|
-
loadingStatus: boolean;
|
|
13
|
-
isCodeEditorOpen: boolean;
|
|
14
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
15
|
-
isVersionHistoryOpen: boolean;
|
|
16
|
-
isPreviewModeOpen: boolean;
|
|
17
|
-
editorVisualMode: string;
|
|
18
|
-
hasChanges: boolean;
|
|
19
|
-
isStripoInitialized: boolean;
|
|
20
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
21
|
-
loadingStatus: boolean;
|
|
22
|
-
isCodeEditorOpen: boolean;
|
|
23
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
24
|
-
isVersionHistoryOpen: boolean;
|
|
25
|
-
isPreviewModeOpen: boolean;
|
|
26
|
-
editorVisualMode: string;
|
|
27
|
-
hasChanges: boolean;
|
|
28
|
-
isStripoInitialized: boolean;
|
|
29
|
-
}>) => boolean;
|
|
30
|
-
isRedoButtonDisabled: (state: {
|
|
31
|
-
loadingStatus: boolean;
|
|
32
|
-
isCodeEditorOpen: boolean;
|
|
33
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
34
|
-
isVersionHistoryOpen: boolean;
|
|
35
|
-
isPreviewModeOpen: boolean;
|
|
36
|
-
editorVisualMode: string;
|
|
37
|
-
hasChanges: boolean;
|
|
38
|
-
isStripoInitialized: boolean;
|
|
39
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
40
|
-
loadingStatus: boolean;
|
|
41
|
-
isCodeEditorOpen: boolean;
|
|
42
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
43
|
-
isVersionHistoryOpen: boolean;
|
|
44
|
-
isPreviewModeOpen: boolean;
|
|
45
|
-
editorVisualMode: string;
|
|
46
|
-
hasChanges: boolean;
|
|
47
|
-
isStripoInitialized: boolean;
|
|
48
|
-
}>) => boolean;
|
|
49
|
-
isCodeEditorButtonDisabled: (state: {
|
|
50
|
-
loadingStatus: boolean;
|
|
51
|
-
isCodeEditorOpen: boolean;
|
|
52
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
53
|
-
isVersionHistoryOpen: boolean;
|
|
54
|
-
isPreviewModeOpen: boolean;
|
|
55
|
-
editorVisualMode: string;
|
|
56
|
-
hasChanges: boolean;
|
|
57
|
-
isStripoInitialized: boolean;
|
|
58
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
59
|
-
loadingStatus: boolean;
|
|
60
|
-
isCodeEditorOpen: boolean;
|
|
61
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
62
|
-
isVersionHistoryOpen: boolean;
|
|
63
|
-
isPreviewModeOpen: boolean;
|
|
64
|
-
editorVisualMode: string;
|
|
65
|
-
hasChanges: boolean;
|
|
66
|
-
isStripoInitialized: boolean;
|
|
67
|
-
}>) => boolean;
|
|
68
|
-
isPreviewButtonDisabled: (state: {
|
|
69
|
-
loadingStatus: boolean;
|
|
70
|
-
isCodeEditorOpen: boolean;
|
|
71
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
72
|
-
isVersionHistoryOpen: boolean;
|
|
73
|
-
isPreviewModeOpen: boolean;
|
|
74
|
-
editorVisualMode: string;
|
|
75
|
-
hasChanges: boolean;
|
|
76
|
-
isStripoInitialized: boolean;
|
|
77
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
78
|
-
loadingStatus: boolean;
|
|
79
|
-
isCodeEditorOpen: boolean;
|
|
80
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
81
|
-
isVersionHistoryOpen: boolean;
|
|
82
|
-
isPreviewModeOpen: boolean;
|
|
83
|
-
editorVisualMode: string;
|
|
84
|
-
hasChanges: boolean;
|
|
85
|
-
isStripoInitialized: boolean;
|
|
86
|
-
}>) => boolean;
|
|
87
|
-
isViewOptionsDisabled: (state: {
|
|
88
|
-
loadingStatus: boolean;
|
|
89
|
-
isCodeEditorOpen: boolean;
|
|
90
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
91
|
-
isVersionHistoryOpen: boolean;
|
|
92
|
-
isPreviewModeOpen: boolean;
|
|
93
|
-
editorVisualMode: string;
|
|
94
|
-
hasChanges: boolean;
|
|
95
|
-
isStripoInitialized: boolean;
|
|
96
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
97
|
-
loadingStatus: boolean;
|
|
98
|
-
isCodeEditorOpen: boolean;
|
|
99
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
100
|
-
isVersionHistoryOpen: boolean;
|
|
101
|
-
isPreviewModeOpen: boolean;
|
|
102
|
-
editorVisualMode: string;
|
|
103
|
-
hasChanges: boolean;
|
|
104
|
-
isStripoInitialized: boolean;
|
|
105
|
-
}>) => boolean;
|
|
106
|
-
isVersionHistoryButtonDisabled: (state: {
|
|
107
|
-
loadingStatus: boolean;
|
|
108
|
-
isCodeEditorOpen: boolean;
|
|
109
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
110
|
-
isVersionHistoryOpen: boolean;
|
|
111
|
-
isPreviewModeOpen: boolean;
|
|
112
|
-
editorVisualMode: string;
|
|
113
|
-
hasChanges: boolean;
|
|
114
|
-
isStripoInitialized: boolean;
|
|
115
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
116
|
-
loadingStatus: boolean;
|
|
117
|
-
isCodeEditorOpen: boolean;
|
|
118
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
119
|
-
isVersionHistoryOpen: boolean;
|
|
120
|
-
isPreviewModeOpen: boolean;
|
|
121
|
-
editorVisualMode: string;
|
|
122
|
-
hasChanges: boolean;
|
|
123
|
-
isStripoInitialized: boolean;
|
|
124
|
-
}>) => boolean;
|
|
125
|
-
isExportButtonDisabled: (state: {
|
|
126
|
-
loadingStatus: boolean;
|
|
127
|
-
isCodeEditorOpen: boolean;
|
|
128
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
129
|
-
isVersionHistoryOpen: boolean;
|
|
130
|
-
isPreviewModeOpen: boolean;
|
|
131
|
-
editorVisualMode: string;
|
|
132
|
-
hasChanges: boolean;
|
|
133
|
-
isStripoInitialized: boolean;
|
|
134
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
135
|
-
loadingStatus: boolean;
|
|
136
|
-
isCodeEditorOpen: boolean;
|
|
137
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
138
|
-
isVersionHistoryOpen: boolean;
|
|
139
|
-
isPreviewModeOpen: boolean;
|
|
140
|
-
editorVisualMode: string;
|
|
141
|
-
hasChanges: boolean;
|
|
142
|
-
isStripoInitialized: boolean;
|
|
143
|
-
}>) => boolean;
|
|
144
|
-
isSaveAsButtonDisabled: (state: {
|
|
145
|
-
loadingStatus: boolean;
|
|
146
|
-
isCodeEditorOpen: boolean;
|
|
147
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
148
|
-
isVersionHistoryOpen: boolean;
|
|
149
|
-
isPreviewModeOpen: boolean;
|
|
150
|
-
editorVisualMode: string;
|
|
151
|
-
hasChanges: boolean;
|
|
152
|
-
isStripoInitialized: boolean;
|
|
153
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
154
|
-
loadingStatus: boolean;
|
|
155
|
-
isCodeEditorOpen: boolean;
|
|
156
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
157
|
-
isVersionHistoryOpen: boolean;
|
|
158
|
-
isPreviewModeOpen: boolean;
|
|
159
|
-
editorVisualMode: string;
|
|
160
|
-
hasChanges: boolean;
|
|
161
|
-
isStripoInitialized: boolean;
|
|
162
|
-
}>) => boolean;
|
|
163
|
-
isTestButtonDisabled: (state: {
|
|
164
|
-
loadingStatus: boolean;
|
|
165
|
-
isCodeEditorOpen: boolean;
|
|
166
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
167
|
-
isVersionHistoryOpen: boolean;
|
|
168
|
-
isPreviewModeOpen: boolean;
|
|
169
|
-
editorVisualMode: string;
|
|
170
|
-
hasChanges: boolean;
|
|
171
|
-
isStripoInitialized: boolean;
|
|
172
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
173
|
-
loadingStatus: boolean;
|
|
174
|
-
isCodeEditorOpen: boolean;
|
|
175
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
176
|
-
isVersionHistoryOpen: boolean;
|
|
177
|
-
isPreviewModeOpen: boolean;
|
|
178
|
-
editorVisualMode: string;
|
|
179
|
-
hasChanges: boolean;
|
|
180
|
-
isStripoInitialized: boolean;
|
|
181
|
-
}>) => boolean;
|
|
182
|
-
isSaveButtonDisabled: (state: {
|
|
183
|
-
loadingStatus: boolean;
|
|
184
|
-
isCodeEditorOpen: boolean;
|
|
185
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
186
|
-
isVersionHistoryOpen: boolean;
|
|
187
|
-
isPreviewModeOpen: boolean;
|
|
188
|
-
editorVisualMode: string;
|
|
189
|
-
hasChanges: boolean;
|
|
190
|
-
isStripoInitialized: boolean;
|
|
191
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
192
|
-
loadingStatus: boolean;
|
|
193
|
-
isCodeEditorOpen: boolean;
|
|
194
|
-
isSaveAsTemplateDrawerOpen: boolean;
|
|
195
|
-
isVersionHistoryOpen: boolean;
|
|
196
|
-
isPreviewModeOpen: boolean;
|
|
197
|
-
editorVisualMode: string;
|
|
198
|
-
hasChanges: boolean;
|
|
199
|
-
isStripoInitialized: boolean;
|
|
200
|
-
}>) => boolean;
|
|
201
|
-
}, {}>;
|
|
8
|
+
}, {}, {}>;
|
package/dist/stores/editor.js
CHANGED
|
@@ -1,29 +1,13 @@
|
|
|
1
1
|
import { defineStore as e } from "pinia";
|
|
2
2
|
const o = e("editor", {
|
|
3
3
|
state: () => ({
|
|
4
|
-
loadingStatus: !0,
|
|
5
4
|
isCodeEditorOpen: !1,
|
|
6
5
|
isSaveAsTemplateDrawerOpen: !1,
|
|
7
6
|
isVersionHistoryOpen: !1,
|
|
8
7
|
isPreviewModeOpen: !1,
|
|
9
8
|
editorVisualMode: "desktop",
|
|
10
|
-
hasChanges: !1
|
|
11
|
-
|
|
12
|
-
}),
|
|
13
|
-
getters: {
|
|
14
|
-
// Middle Slot
|
|
15
|
-
isUndoButtonDisabled: (i) => i.loadingStatus || i.isPreviewModeOpen,
|
|
16
|
-
isRedoButtonDisabled: (i) => i.loadingStatus || i.isPreviewModeOpen,
|
|
17
|
-
isCodeEditorButtonDisabled: (i) => i.loadingStatus || i.isPreviewModeOpen,
|
|
18
|
-
isPreviewButtonDisabled: (i) => i.loadingStatus,
|
|
19
|
-
isViewOptionsDisabled: (i) => i.loadingStatus || i.isPreviewModeOpen,
|
|
20
|
-
// Right Slot
|
|
21
|
-
isVersionHistoryButtonDisabled: (i) => i.loadingStatus || i.isPreviewModeOpen,
|
|
22
|
-
isExportButtonDisabled: (i) => i.loadingStatus || i.isVersionHistoryOpen,
|
|
23
|
-
isSaveAsButtonDisabled: (i) => i.loadingStatus || i.isVersionHistoryOpen,
|
|
24
|
-
isTestButtonDisabled: (i) => i.loadingStatus || i.isVersionHistoryOpen,
|
|
25
|
-
isSaveButtonDisabled: (i) => i.loadingStatus || i.isVersionHistoryOpen || i.isPreviewModeOpen
|
|
26
|
-
}
|
|
9
|
+
hasChanges: !1
|
|
10
|
+
})
|
|
27
11
|
});
|
|
28
12
|
export {
|
|
29
13
|
o as useEditorStore
|
package/dist/stores/preview.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
5
5
|
ampHtml: string;
|
|
6
6
|
ampErrors: string[];
|
|
7
7
|
templateHtml: string;
|
|
8
|
+
isLoading: boolean;
|
|
8
9
|
isLoaded: boolean;
|
|
9
10
|
isAMPErrorModalVisible: boolean;
|
|
11
|
+
isPreviewModeOpen: boolean;
|
|
10
12
|
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => boolean;
|
|
11
13
|
previewHtml(): string;
|
|
12
14
|
hasAMP: (state: {
|
|
@@ -14,16 +16,20 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
14
16
|
ampHtml: string;
|
|
15
17
|
ampErrors: string[];
|
|
16
18
|
templateHtml: string;
|
|
19
|
+
isLoading: boolean;
|
|
17
20
|
isLoaded: boolean;
|
|
18
21
|
isAMPErrorModalVisible: boolean;
|
|
22
|
+
isPreviewModeOpen: boolean;
|
|
19
23
|
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => boolean;
|
|
20
24
|
hasAMPErrors: (state: {
|
|
21
25
|
emailFormat: EmailFormat;
|
|
22
26
|
ampHtml: string;
|
|
23
27
|
ampErrors: string[];
|
|
24
28
|
templateHtml: string;
|
|
29
|
+
isLoading: boolean;
|
|
25
30
|
isLoaded: boolean;
|
|
26
31
|
isAMPErrorModalVisible: boolean;
|
|
32
|
+
isPreviewModeOpen: boolean;
|
|
27
33
|
} & import("pinia").PiniaCustomStateProperties<PreviewState>) => boolean;
|
|
28
34
|
showAMPErrorButton(): boolean;
|
|
29
35
|
isAMPResponsive(): boolean;
|
|
@@ -35,4 +41,6 @@ export declare const usePreviewStore: import("pinia").StoreDefinition<"preview",
|
|
|
35
41
|
setEmailFormat(format: EmailFormat): void;
|
|
36
42
|
closeErrorModal(): void;
|
|
37
43
|
openErrorModal(): void;
|
|
44
|
+
openPreviewMode(): void;
|
|
45
|
+
closePreviewMode(): void;
|
|
38
46
|
}>;
|
package/dist/stores/preview.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { defineStore as
|
|
1
|
+
import { defineStore as t } from "pinia";
|
|
2
2
|
const s = () => ({
|
|
3
3
|
emailFormat: "html",
|
|
4
4
|
ampHtml: "",
|
|
5
5
|
ampErrors: [],
|
|
6
6
|
templateHtml: "",
|
|
7
|
+
isLoading: !1,
|
|
7
8
|
isLoaded: !1,
|
|
8
|
-
isAMPErrorModalVisible: !1
|
|
9
|
-
|
|
9
|
+
isAMPErrorModalVisible: !1,
|
|
10
|
+
isPreviewModeOpen: !1
|
|
11
|
+
}), o = t("preview", {
|
|
10
12
|
state: () => s(),
|
|
11
13
|
getters: {
|
|
12
|
-
isAMPModeEnabled: (
|
|
14
|
+
isAMPModeEnabled: (e) => e.emailFormat === "AMP",
|
|
13
15
|
previewHtml() {
|
|
14
16
|
return this.isAMPModeEnabled ? this.ampHtml : this.templateHtml;
|
|
15
17
|
},
|
|
16
|
-
hasAMP: (
|
|
18
|
+
hasAMP: (e) => {
|
|
17
19
|
var r;
|
|
18
|
-
return !!((r =
|
|
20
|
+
return !!((r = e.ampHtml) != null && r.trim());
|
|
19
21
|
},
|
|
20
|
-
hasAMPErrors: (
|
|
22
|
+
hasAMPErrors: (e) => e.ampErrors.length > 0,
|
|
21
23
|
showAMPErrorButton() {
|
|
22
24
|
return this.isAMPModeEnabled && this.hasAMPErrors;
|
|
23
25
|
},
|
|
@@ -26,20 +28,26 @@ const s = () => ({
|
|
|
26
28
|
}
|
|
27
29
|
},
|
|
28
30
|
actions: {
|
|
29
|
-
updateAMPData(
|
|
30
|
-
this.ampHtml =
|
|
31
|
+
updateAMPData(e) {
|
|
32
|
+
this.ampHtml = e.ampHtml ?? "", this.ampErrors = e.ampErrors ?? [], this.emailFormat = e.ampHtml ? "AMP" : "html";
|
|
31
33
|
},
|
|
32
|
-
setEmailFormat(
|
|
33
|
-
this.emailFormat =
|
|
34
|
+
setEmailFormat(e) {
|
|
35
|
+
this.emailFormat = e;
|
|
34
36
|
},
|
|
35
37
|
closeErrorModal() {
|
|
36
38
|
this.isAMPErrorModalVisible = !1;
|
|
37
39
|
},
|
|
38
40
|
openErrorModal() {
|
|
39
41
|
this.isAMPErrorModalVisible = !0;
|
|
42
|
+
},
|
|
43
|
+
openPreviewMode() {
|
|
44
|
+
this.isPreviewModeOpen = !0;
|
|
45
|
+
},
|
|
46
|
+
closePreviewMode() {
|
|
47
|
+
this.isPreviewModeOpen = !1;
|
|
40
48
|
}
|
|
41
49
|
}
|
|
42
50
|
});
|
|
43
51
|
export {
|
|
44
|
-
|
|
52
|
+
o as usePreviewStore
|
|
45
53
|
};
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
label: `${a.text} | ${a.format.key}=${a.format.value}`,
|
|
3
|
-
value: `{{${a.value}|${a.format.key}=${a.format.value}}}`
|
|
4
|
-
} : {
|
|
1
|
+
const l = (e) => e.map((a) => ({
|
|
5
2
|
label: a.fallback ? `${a.text} | ${a.fallback}` : a.text,
|
|
6
3
|
value: a.fallback ? `{{${a.value}|${a.fallback}}}` : `{{${a.value}}}`
|
|
7
|
-
}),
|
|
8
|
-
var
|
|
9
|
-
return ((
|
|
4
|
+
})), t = () => {
|
|
5
|
+
var e;
|
|
6
|
+
return ((e = document.head.querySelector('meta[name="csrf-token"]')) == null ? void 0 : e.getAttribute("content")) ?? "";
|
|
10
7
|
};
|
|
11
8
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
l as dynamicContentToMergeTags,
|
|
10
|
+
t as getCsrfToken
|
|
14
11
|
};
|