@useinsider/guido 1.0.2-beta.91efff4 → 1.0.2-beta.94d67e3
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 -32
- package/dist/@types/events.d.ts +0 -6
- package/dist/@types/generic.d.ts +0 -4
- 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 +1 -3
- package/dist/components/Guido.vue.js +5 -5
- package/dist/components/Guido.vue2.js +60 -72
- package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -3
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +15 -14
- 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/RightSlot.vue.d.ts +1 -3
- package/dist/components/organisms/header/RightSlot.vue.js +3 -5
- package/dist/components/organisms/header/RightSlot.vue2.js +27 -25
- package/dist/components/organisms/header/ViewOptions.vue.js +4 -4
- package/dist/components/organisms/header/ViewOptions.vue2.js +14 -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/organisms/onboarding/AMPOnboarding.vue.js +13 -13
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +23 -21
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +14 -14
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +27 -25
- package/dist/components/organisms/onboarding/NewVersionPopup.vue.js +1 -1
- package/dist/components/organisms/onboarding/OnboardingWrapper.vue2.js +20 -36
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +13 -13
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +29 -39
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue.js +14 -14
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +23 -21
- package/dist/composables/useCustomInterfaceAppearance.js +18 -22
- package/dist/composables/useHtmlCompiler.js +9 -17
- package/dist/composables/usePreviewMode.js +15 -14
- package/dist/composables/useStripo.js +36 -40
- package/dist/composables/useStripoEventHandler.js +8 -8
- package/dist/composables/useToaster.js +17 -17
- package/dist/config/compiler/outlookCompilerRules.d.ts +0 -2
- package/dist/enums/defaults.d.ts +1 -5
- package/dist/enums/defaults.js +10 -14
- 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 -22
- 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/services/onboardingApi.d.ts +2 -2
- package/dist/services/onboardingApi.js +9 -9
- 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 +1 -5
- package/dist/static/styles/customEditorStyle.css.js +0 -6
- 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/onboarding.d.ts +592 -133
- package/dist/stores/onboarding.js +55 -38
- package/dist/stores/preview.js +14 -6
- package/dist/utils/genericUtil.d.ts +0 -5
- package/dist/utils/genericUtil.js +6 -9
- package/dist/utils/templatePreparation.js +14 -21
- package/package.json +3 -5
- 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/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 -5
- package/dist/enums/html-validator.d.ts +0 -6
- package/dist/enums/html-validator.js +0 -7
- package/dist/enums/recommendation.d.ts +0 -54
- package/dist/enums/recommendation.js +0 -56
- package/dist/enums/unsubscribe.d.ts +0 -15
- package/dist/enums/unsubscribe.js +0 -17
- 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/CouponBlock/block.d.ts +0 -11
- package/dist/extensions/Blocks/CouponBlock/block.js +0 -42
- package/dist/extensions/Blocks/CouponBlock/extension.d.ts +0 -2
- package/dist/extensions/Blocks/CouponBlock/extension.js +0 -19
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.d.ts +0 -4
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +0 -37
- package/dist/extensions/Blocks/CouponBlock/template.d.ts +0 -3
- package/dist/extensions/Blocks/CouponBlock/template.js +0 -13
- 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/icons/coupon.svg +0 -3
- package/dist/mock/api/unsubscribe.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/static/styles/components/notification.css.js +0 -55
- package/dist/static/styles/components/popup.css.js +0 -68
- package/dist/stores/recommendation.d.ts +0 -10
- package/dist/stores/recommendation.js +0 -9
- package/dist/stores/unsubscribe.d.ts +0 -8
- package/dist/stores/unsubscribe.js +0 -9
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { ToasterTypeOptions as
|
|
2
|
-
import { useToasterStore as
|
|
3
|
-
import { watch as c } from "vue";
|
|
4
|
-
const
|
|
5
|
-
const t =
|
|
6
|
-
let
|
|
7
|
-
const
|
|
8
|
-
|
|
1
|
+
import { ToasterTypeOptions as u } from "../enums/toaster.js";
|
|
2
|
+
import { useToasterStore as T } from "../stores/toaster.js";
|
|
3
|
+
import { watch as c, onUnmounted as l } from "vue";
|
|
4
|
+
const p = () => {
|
|
5
|
+
const t = T();
|
|
6
|
+
let s = null;
|
|
7
|
+
const o = () => {
|
|
8
|
+
s && (clearTimeout(s), s = null);
|
|
9
9
|
};
|
|
10
10
|
function r(e = { message: "" }) {
|
|
11
|
-
|
|
11
|
+
o(), t.hideToaster(), t.showToaster(e);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
|
|
13
|
+
function n() {
|
|
14
|
+
o(), t.hideToaster();
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function i(e, a) {
|
|
17
17
|
const m = e instanceof Error ? e.message : String(e);
|
|
18
|
-
r({ type:
|
|
18
|
+
r({ type: u.Alert, message: `${a}: ${m}` });
|
|
19
19
|
}
|
|
20
20
|
return c(
|
|
21
21
|
() => t.shouldAutoHide,
|
|
22
22
|
(e) => {
|
|
23
|
-
|
|
24
|
-
t.hideToaster(),
|
|
23
|
+
o(), e && (s = setTimeout(() => {
|
|
24
|
+
t.hideToaster(), o();
|
|
25
25
|
}, 6e3));
|
|
26
26
|
}
|
|
27
|
-
), { showToaster: r, hideToaster:
|
|
27
|
+
), l(o), { showToaster: r, hideToaster: n, handleError: i };
|
|
28
28
|
};
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
p as useToaster
|
|
31
31
|
};
|
package/dist/enums/defaults.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import type { GuidoConfig } from '@@/Types/generic';
|
|
2
2
|
export declare const DefaultGuidoConfig: GuidoConfig;
|
|
3
|
-
export declare const TemplateTypes: {
|
|
4
|
-
promotional: number;
|
|
5
|
-
transactional: number;
|
|
6
|
-
};
|
|
7
3
|
export declare const DefaultProductType = "email";
|
|
8
4
|
export declare const DefaultUsername = "Guido User";
|
|
9
|
-
export declare const DefaultMessageType
|
|
5
|
+
export declare const DefaultMessageType = 1;
|
|
10
6
|
export declare const EditorType: number;
|
|
11
7
|
export declare const ProductIds: Record<string, number>;
|
|
12
8
|
export declare const TEST_PARTNER_LIST: string[];
|
package/dist/enums/defaults.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = {
|
|
2
2
|
translationsPath: "window.trans.en",
|
|
3
3
|
emailHeader: {
|
|
4
4
|
senderName: "",
|
|
@@ -10,13 +10,10 @@ const a = {
|
|
|
10
10
|
versionHistory: !0
|
|
11
11
|
},
|
|
12
12
|
useHeader: !0
|
|
13
|
-
},
|
|
14
|
-
promotional: 1,
|
|
15
|
-
transactional: 2
|
|
16
|
-
}, e = "email", o = "Guido User", n = t.promotional, i = 2, s = {
|
|
13
|
+
}, a = "email", e = "Guido User", o = 1, n = 2, i = {
|
|
17
14
|
email: 60,
|
|
18
15
|
architect: 49
|
|
19
|
-
},
|
|
16
|
+
}, s = [
|
|
20
17
|
"alfredtesting",
|
|
21
18
|
"electio",
|
|
22
19
|
"eurekatest",
|
|
@@ -49,12 +46,11 @@ const a = {
|
|
|
49
46
|
"stripoeditorlivetest"
|
|
50
47
|
];
|
|
51
48
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
t as TemplateTypes
|
|
49
|
+
t as DefaultGuidoConfig,
|
|
50
|
+
o as DefaultMessageType,
|
|
51
|
+
a as DefaultProductType,
|
|
52
|
+
e as DefaultUsername,
|
|
53
|
+
n as EditorType,
|
|
54
|
+
i as ProductIds,
|
|
55
|
+
s as TEST_PARTNER_LIST
|
|
60
56
|
};
|
|
@@ -1,30 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var m = (
|
|
3
|
-
var r = (
|
|
4
|
-
import { dynamicContentToMergeTags as
|
|
5
|
-
import "../../
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js";
|
|
12
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js";
|
|
13
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js";
|
|
14
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js";
|
|
15
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js";
|
|
16
|
-
import { UEAttr as c } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js";
|
|
17
|
-
import { UIElementType as i } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js";
|
|
18
|
-
import { UIElement as l } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js";
|
|
19
|
-
import { UIElementTagRegistry as d } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js";
|
|
20
|
-
import { ExternalMergeTagsLibrary as p } from "./dynamic-content-modal.js";
|
|
21
|
-
const s = "external-dynamic-content-ui-element", T = "button-add-dynamic-content";
|
|
22
|
-
class O extends d {
|
|
23
|
-
registerUiElements(e) {
|
|
24
|
-
e[i.MERGETAGS] = s;
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var m = (i, t, e) => t in i ? o(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var r = (i, t, e) => m(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { dynamicContentToMergeTags as l } from "../../utils/genericUtil.js";
|
|
5
|
+
import { d as n } from "../../_virtual/index.js";
|
|
6
|
+
import { ExternalMergeTagsLibrary as g } from "./dynamic-content-modal.js";
|
|
7
|
+
const a = "external-dynamic-content-ui-element", c = "button-add-dynamic-content";
|
|
8
|
+
class p extends n.UIElementTagRegistry {
|
|
9
|
+
registerUiElements(t) {
|
|
10
|
+
t[n.UIElementType.MERGETAGS] = a;
|
|
25
11
|
}
|
|
26
12
|
}
|
|
27
|
-
class
|
|
13
|
+
class u extends n.UIElement {
|
|
28
14
|
constructor() {
|
|
29
15
|
super(...arguments);
|
|
30
16
|
r(this, "mergeTagsButton", null);
|
|
@@ -34,42 +20,42 @@ class k extends l {
|
|
|
34
20
|
r(this, "selectedDynamicContent", { value: "", text: "" });
|
|
35
21
|
}
|
|
36
22
|
getId() {
|
|
37
|
-
return
|
|
23
|
+
return a;
|
|
38
24
|
}
|
|
39
|
-
onRender(
|
|
40
|
-
var
|
|
41
|
-
this.listener = this._onClick.bind(this), this.mergeTagsButton =
|
|
25
|
+
onRender(e) {
|
|
26
|
+
var s;
|
|
27
|
+
this.listener = this._onClick.bind(this), this.mergeTagsButton = e.querySelector("#guido__btn-add-dynamic-content"), (s = this.mergeTagsButton) == null || s.addEventListener("click", this.listener);
|
|
42
28
|
}
|
|
43
29
|
onDestroy() {
|
|
44
|
-
var
|
|
45
|
-
(
|
|
30
|
+
var e;
|
|
31
|
+
(e = this.mergeTagsButton) == null || e.removeEventListener("click", this.listener);
|
|
46
32
|
}
|
|
47
33
|
_onClick() {
|
|
48
34
|
this.openMergeTagLibrary();
|
|
49
35
|
}
|
|
50
36
|
openMergeTagLibrary() {
|
|
51
|
-
this.mergeTagsLibrary || (this.mergeTagsLibrary = new
|
|
37
|
+
this.mergeTagsLibrary || (this.mergeTagsLibrary = new g()), this.mergeTagsLibrary.openMergeTagsLibrary(
|
|
52
38
|
this.selectedDynamicContent,
|
|
53
|
-
(
|
|
54
|
-
this.api.onValueChanged(
|
|
39
|
+
(e) => {
|
|
40
|
+
this.api.onValueChanged(l([e])[0]);
|
|
55
41
|
}
|
|
56
42
|
);
|
|
57
43
|
}
|
|
58
44
|
getTemplate() {
|
|
59
45
|
return `
|
|
60
46
|
<div>
|
|
61
|
-
<${
|
|
47
|
+
<${n.UIElementType.BUTTON}
|
|
62
48
|
id="guido__btn-add-dynamic-content"
|
|
63
49
|
class="btn btn-primary"
|
|
64
|
-
${
|
|
65
|
-
<${
|
|
66
|
-
</${
|
|
50
|
+
${n.UEAttr.BUTTON.name}="${c}">
|
|
51
|
+
<${n.UIElementType.ICON} src="plus" class="icon icon-button color-primary">
|
|
52
|
+
</${n.UIElementType.ICON}>
|
|
67
53
|
${this.api.translate("Add Dynamic Content")}
|
|
68
|
-
</${
|
|
54
|
+
</${n.UIElementType.BUTTON}>
|
|
69
55
|
</div>`;
|
|
70
56
|
}
|
|
71
57
|
}
|
|
72
58
|
export {
|
|
73
|
-
|
|
74
|
-
|
|
59
|
+
p as DynamicContentTagRegistry,
|
|
60
|
+
u as DynamicContentUiElementExtension
|
|
75
61
|
};
|
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js";
|
|
6
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js";
|
|
7
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js";
|
|
8
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js";
|
|
9
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js";
|
|
10
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js";
|
|
11
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js";
|
|
12
|
-
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js";
|
|
13
|
-
import { ExtensionBuilder as t } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js";
|
|
14
|
-
import { DynamicContentUiElementExtension as i, DynamicContentTagRegistry as o } from "./dynamic-content.js";
|
|
15
|
-
import n from "./dynamic-content.css.js";
|
|
16
|
-
const w = new t().addUiElement(i).withStyles(n).withLocalization({
|
|
1
|
+
import { d as t } from "../../_virtual/index.js";
|
|
2
|
+
import { DynamicContentUiElementExtension as n, DynamicContentTagRegistry as i } from "./dynamic-content.js";
|
|
3
|
+
import e from "./dynamic-content.css.js";
|
|
4
|
+
const s = new t.ExtensionBuilder().addUiElement(n).withStyles(e).withLocalization({
|
|
17
5
|
en: {
|
|
18
6
|
"Add Dynamic Content": "Add Dynamic Content"
|
|
19
7
|
}
|
|
20
|
-
}).withUiElementTagRegistry(
|
|
8
|
+
}).withUiElementTagRegistry(i).build();
|
|
21
9
|
export {
|
|
22
|
-
|
|
10
|
+
s as default
|
|
23
11
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-a18ac2d3] .in-button-v2__wrapper{line-height:0}
|
|
1
|
+
[data-v-a18ac2d3] .in-button-v2__wrapper{line-height:0}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}[data-v-421ffc13] .guido__verion-history-view-option-selection-desktop svg,[data-v-421ffc13] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-421ffc13] .in-segments-wrapper__button_selected,[data-v-421ffc13] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-421ffc13] .in-tooltip-wrapper__icon{cursor:pointer}.view-options-wrapper[data-v-35d10bcf]{position:relative;display:inline-block}.new-tag[data-v-35d10bcf]{height:24px;position:absolute;top:-8px;right:-16px;background-color:#dae1fb;color:#0a2ecc;font-size:13px;font-weight:400;padding:4px;border-radius:4px;z-index:10;pointer-events:none;border:1px solid #B5C1F1;line-height:16px}[data-v-35d10bcf] .guido__view-option-selection-desktop svg,[data-v-35d10bcf] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-35d10bcf] .in-segments-wrapper__button_selected,[data-v-35d10bcf] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-35d10bcf] .in-tooltip-wrapper__icon{cursor:pointer}.guido-loading__wrapper[data-v-2d4cd446]{height:calc(100% - 75px);top:75px}.guido-editor__wrapper[data-v-e8b0bebd],.guido-editor__container[data-v-e8b0bebd]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-e8b0bebd]{height:calc(100vh - 75px)}.error-list[data-v-7a09985c]{gap:16px}[data-v-c2adc57d] .in-progress-wrapper__progress p span:last-child{display:none!important}.desktop-preview-container[data-v-2dd60b0c],[data-v-2dd60b0c] .desktop-preview-container .in-container{min-height:720px!important;height:100%}.cropped-text[data-v-f20b3a9b]{width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[data-v-037dda0b] .vueperslides__bullets,[data-v-ff363cd1] .vueperslides__bullets{pointer-events:none!important}
|
|
@@ -1,75 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
getBlocks() {
|
|
49
|
-
return this.blocks;
|
|
50
|
-
}
|
|
51
|
-
getId() {
|
|
52
|
-
return this.id;
|
|
53
|
-
}
|
|
54
|
-
getExternalSmartElementsLibrary() {
|
|
55
|
-
return this.externalSmartElementsLibrary;
|
|
56
|
-
}
|
|
57
|
-
getExternalImageLibrary() {
|
|
58
|
-
return this.externalImageLibrary;
|
|
59
|
-
}
|
|
60
|
-
getExternalAiAssistant() {
|
|
61
|
-
return this.externalAiAssistant;
|
|
62
|
-
}
|
|
63
|
-
getExternalDisplayConditionsLibrary() {
|
|
64
|
-
return this.externalDisplayConditionsLibrary;
|
|
65
|
-
}
|
|
66
|
-
getExternalVideoLibrary() {
|
|
67
|
-
return this.externalVideoLibrary;
|
|
68
|
-
}
|
|
69
|
-
getBlocksPanel() {
|
|
70
|
-
return this.blocksPanel;
|
|
71
|
-
}
|
|
1
|
+
import { __exports as e } from "../../../../_virtual/Extension.js";
|
|
2
|
+
var o;
|
|
3
|
+
function m() {
|
|
4
|
+
if (o) return e;
|
|
5
|
+
o = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.Extension = void 0;
|
|
6
|
+
var a = (
|
|
7
|
+
/** @class */
|
|
8
|
+
(function() {
|
|
9
|
+
function t(u, l, i, y, n, p, r, s, h, g, c, f, x, E, d) {
|
|
10
|
+
i === void 0 && (i = []), n === void 0 && (n = []), r === void 0 && (r = []), s === void 0 && (s = []), this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = u, this.styles = l, this.previewStyles = c, this.uiElements = i, this.uiElementTagRegistry = y, this.controls = n, this.settingsPanelRegistry = p, this.contextActions = r, this.blocks = s, this.externalSmartElementsLibrary = h, this.externalImageLibrary = g, this.externalAiAssistant = f, this.externalDisplayConditionsLibrary = x, this.externalVideoLibrary = E, this.blocksPanel = d, this.id = Math.random().toString(36).substring(2);
|
|
11
|
+
}
|
|
12
|
+
return t.prototype.getI18n = function() {
|
|
13
|
+
return this.i18n;
|
|
14
|
+
}, t.prototype.getStyles = function() {
|
|
15
|
+
return this.styles;
|
|
16
|
+
}, t.prototype.getPreviewStyles = function() {
|
|
17
|
+
return this.previewStyles;
|
|
18
|
+
}, t.prototype.getUiElements = function() {
|
|
19
|
+
return this.uiElements;
|
|
20
|
+
}, t.prototype.getUiElementTagRegistry = function() {
|
|
21
|
+
return this.uiElementTagRegistry;
|
|
22
|
+
}, t.prototype.getControls = function() {
|
|
23
|
+
return this.controls;
|
|
24
|
+
}, t.prototype.getSettingsPanelRegistry = function() {
|
|
25
|
+
return this.settingsPanelRegistry;
|
|
26
|
+
}, t.prototype.getContextActions = function() {
|
|
27
|
+
return this.contextActions;
|
|
28
|
+
}, t.prototype.getBlocks = function() {
|
|
29
|
+
return this.blocks;
|
|
30
|
+
}, t.prototype.getId = function() {
|
|
31
|
+
return this.id;
|
|
32
|
+
}, t.prototype.getExternalSmartElementsLibrary = function() {
|
|
33
|
+
return this.externalSmartElementsLibrary;
|
|
34
|
+
}, t.prototype.getExternalImageLibrary = function() {
|
|
35
|
+
return this.externalImageLibrary;
|
|
36
|
+
}, t.prototype.getExternalAiAssistant = function() {
|
|
37
|
+
return this.externalAiAssistant;
|
|
38
|
+
}, t.prototype.getExternalDisplayConditionsLibrary = function() {
|
|
39
|
+
return this.externalDisplayConditionsLibrary;
|
|
40
|
+
}, t.prototype.getExternalVideoLibrary = function() {
|
|
41
|
+
return this.externalVideoLibrary;
|
|
42
|
+
}, t.prototype.getBlocksPanel = function() {
|
|
43
|
+
return this.blocksPanel;
|
|
44
|
+
}, t;
|
|
45
|
+
})()
|
|
46
|
+
);
|
|
47
|
+
return e.Extension = a, e;
|
|
72
48
|
}
|
|
73
49
|
export {
|
|
74
|
-
|
|
50
|
+
m as __require
|
|
75
51
|
};
|
|
@@ -1,77 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
withExternalSmartElementsLibrary(t) {
|
|
51
|
-
return this.externalSmartElementsLibrary = t, this;
|
|
52
|
-
}
|
|
53
|
-
withExternalImageLibrary(t) {
|
|
54
|
-
return this.externalImageLibrary = t, this;
|
|
55
|
-
}
|
|
56
|
-
withExternalAiAssistant(t) {
|
|
57
|
-
return this.externalAiAssistant = t, this;
|
|
58
|
-
}
|
|
59
|
-
withExternalDisplayCondition(t) {
|
|
60
|
-
return this.externalDisplayConditionsLibrary = t, this;
|
|
61
|
-
}
|
|
62
|
-
withExternalVideosLibrary(t) {
|
|
63
|
-
return this.externalVideoLibrary = t, this;
|
|
64
|
-
}
|
|
65
|
-
withBlocksPanel(t) {
|
|
66
|
-
return this.blocksPanel = t, this;
|
|
67
|
-
}
|
|
68
|
-
addBlock(t) {
|
|
69
|
-
return this.blocks.push(t), this;
|
|
70
|
-
}
|
|
71
|
-
build() {
|
|
72
|
-
return new a(this.i18n, this.styles, this.uiElements, this.uiElementTagRegistry, this.controls, this.settingsPanelRegistry, this.contextActions, this.blocks, this.externalSmartElementsLibrary, this.externalImageLibrary, this.previewStyles, this.externalAiAssistant, this.externalDisplayConditionsLibrary, this.externalVideoLibrary, this.blocksPanel);
|
|
73
|
-
}
|
|
1
|
+
import { __exports as e } from "../../../../_virtual/ExtensionBuilder.js";
|
|
2
|
+
import { __require as o } from "./Extension.js";
|
|
3
|
+
var n;
|
|
4
|
+
function l() {
|
|
5
|
+
if (n) return e;
|
|
6
|
+
n = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.ExtensionBuilder = void 0;
|
|
7
|
+
var r = o(), s = (
|
|
8
|
+
/** @class */
|
|
9
|
+
(function() {
|
|
10
|
+
function i() {
|
|
11
|
+
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
|
|
12
|
+
}
|
|
13
|
+
return i.prototype.withLocalization = function(t) {
|
|
14
|
+
return this.i18n = t, this;
|
|
15
|
+
}, i.prototype.withStyles = function(t) {
|
|
16
|
+
return this.styles = t, this;
|
|
17
|
+
}, i.prototype.withPreviewStyles = function(t) {
|
|
18
|
+
return this.previewStyles = t, this;
|
|
19
|
+
}, i.prototype.addContextAction = function(t) {
|
|
20
|
+
return this.contextActions.push(t), this;
|
|
21
|
+
}, i.prototype.addUiElement = function(t) {
|
|
22
|
+
return this.uiElements.push(t), this;
|
|
23
|
+
}, i.prototype.withUiElementTagRegistry = function(t) {
|
|
24
|
+
return this.uiElementTagRegistry = t, this;
|
|
25
|
+
}, i.prototype.addControl = function(t) {
|
|
26
|
+
return this.controls.push(t), this;
|
|
27
|
+
}, i.prototype.withSettingsPanelRegistry = function(t) {
|
|
28
|
+
return this.settingsPanelRegistry = t, this;
|
|
29
|
+
}, i.prototype.withExternalSmartElementsLibrary = function(t) {
|
|
30
|
+
return this.externalSmartElementsLibrary = t, this;
|
|
31
|
+
}, i.prototype.withExternalImageLibrary = function(t) {
|
|
32
|
+
return this.externalImageLibrary = t, this;
|
|
33
|
+
}, i.prototype.withExternalAiAssistant = function(t) {
|
|
34
|
+
return this.externalAiAssistant = t, this;
|
|
35
|
+
}, i.prototype.withExternalDisplayCondition = function(t) {
|
|
36
|
+
return this.externalDisplayConditionsLibrary = t, this;
|
|
37
|
+
}, i.prototype.withExternalVideosLibrary = function(t) {
|
|
38
|
+
return this.externalVideoLibrary = t, this;
|
|
39
|
+
}, i.prototype.withBlocksPanel = function(t) {
|
|
40
|
+
return this.blocksPanel = t, this;
|
|
41
|
+
}, i.prototype.addBlock = function(t) {
|
|
42
|
+
return this.blocks.push(t), this;
|
|
43
|
+
}, i.prototype.build = function() {
|
|
44
|
+
return new r.Extension(this.i18n, this.styles, this.uiElements, this.uiElementTagRegistry, this.controls, this.settingsPanelRegistry, this.contextActions, this.blocks, this.externalSmartElementsLibrary, this.externalImageLibrary, this.previewStyles, this.externalAiAssistant, this.externalDisplayConditionsLibrary, this.externalVideoLibrary, this.blocksPanel);
|
|
45
|
+
}, i;
|
|
46
|
+
})()
|
|
47
|
+
);
|
|
48
|
+
return e.ExtensionBuilder = s, e;
|
|
74
49
|
}
|
|
75
50
|
export {
|
|
76
|
-
|
|
51
|
+
l as __require
|
|
77
52
|
};
|