@useinsider/guido 1.0.2-beta.bfb23c2 → 1.0.2-beta.c3f86dc
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 -40
- 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 +59 -73
- 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/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 -26
- package/dist/components/organisms/header/ViewOptions.vue.js +11 -11
- package/dist/components/organisms/header/ViewOptions.vue2.js +5 -5
- 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/composables/useCustomInterfaceAppearance.js +18 -22
- 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/useStripo.js +39 -49
- 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 +9 -45
- 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/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/editor.d.ts +0 -21
- package/dist/stores/editor.js +1 -2
- package/dist/utils/genericUtil.js +6 -9
- package/dist/utils/templatePreparation.js +14 -21
- package/package.json +3 -5
- 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/composables/useHtmlValidator.d.ts +0 -4
- package/dist/composables/useHtmlValidator.js +0 -148
- 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/radioButtonMigrator.d.ts +0 -1
- package/dist/config/migrator/radioButtonMigrator.js +0 -86
- 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 -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/RadioButton/block.d.ts +0 -10
- package/dist/extensions/Blocks/RadioButton/block.js +0 -39
- package/dist/extensions/Blocks/RadioButton/control.d.ts +0 -17
- package/dist/extensions/Blocks/RadioButton/control.js +0 -104
- package/dist/extensions/Blocks/RadioButton/extension.d.ts +0 -2
- package/dist/extensions/Blocks/RadioButton/extension.js +0 -20
- package/dist/extensions/Blocks/RadioButton/settingsPanel.d.ts +0 -4
- package/dist/extensions/Blocks/RadioButton/settingsPanel.js +0 -39
- package/dist/extensions/Blocks/RadioButton/template.d.ts +0 -6
- package/dist/extensions/Blocks/RadioButton/template.js +0 -160
- 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/static/assets/onboarding-img.svg.js +0 -4
- package/dist/static/styles/components/notification.css.js +0 -55
- package/dist/static/styles/components/popup.css.js +0 -68
- 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 -8
- package/dist/stores/unsubscribe.js +0 -9
package/dist/enums/defaults.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e = {
|
|
2
2
|
translationsPath: "window.trans.en",
|
|
3
3
|
emailHeader: {
|
|
4
4
|
senderName: "",
|
|
@@ -10,51 +10,15 @@ const a = {
|
|
|
10
10
|
versionHistory: !0
|
|
11
11
|
},
|
|
12
12
|
useHeader: !0
|
|
13
|
-
}, t = {
|
|
14
|
-
promotional: 1,
|
|
15
|
-
transactional: 2
|
|
16
|
-
}, e = "email", o = "Guido User", n = t.promotional, i = 2, s = {
|
|
13
|
+
}, t = "email", s = "Guido User", a = 1, r = 2, n = {
|
|
17
14
|
email: 60,
|
|
18
15
|
architect: 49
|
|
19
|
-
}
|
|
20
|
-
"alfredtesting",
|
|
21
|
-
"electio",
|
|
22
|
-
"eurekatest",
|
|
23
|
-
"gachapontestpart",
|
|
24
|
-
"gluautomation1",
|
|
25
|
-
"gluautomation2",
|
|
26
|
-
"gluautomation3",
|
|
27
|
-
"gluautomation4",
|
|
28
|
-
"inone",
|
|
29
|
-
"inshoppingcart",
|
|
30
|
-
"krakentest",
|
|
31
|
-
"leeroy",
|
|
32
|
-
"newsletteruat",
|
|
33
|
-
"ozaspava",
|
|
34
|
-
"piratesquad",
|
|
35
|
-
"qaautomation1",
|
|
36
|
-
"qaautomation2",
|
|
37
|
-
"qaautomation3",
|
|
38
|
-
"qaautomation4",
|
|
39
|
-
"roiautomation",
|
|
40
|
-
"seleniumautomation",
|
|
41
|
-
"seleniumautomation1",
|
|
42
|
-
"seleniumautomation2",
|
|
43
|
-
"seleniumautomation3",
|
|
44
|
-
"shopbagg",
|
|
45
|
-
"shopifytest",
|
|
46
|
-
"singlepageqa",
|
|
47
|
-
"testqa",
|
|
48
|
-
"vikingsankara",
|
|
49
|
-
"stripoeditorlivetest"
|
|
50
|
-
];
|
|
16
|
+
};
|
|
51
17
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
u as TEST_PARTNER_LIST,
|
|
59
|
-
t as TemplateTypes
|
|
18
|
+
e as DefaultGuidoConfig,
|
|
19
|
+
a as DefaultMessageType,
|
|
20
|
+
t as DefaultProductType,
|
|
21
|
+
s as DefaultUsername,
|
|
22
|
+
r as EditorType,
|
|
23
|
+
n as ProductIds
|
|
60
24
|
};
|
|
@@ -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}[data-v-ad3cf7cc] .guido__view-option-selection-desktop svg,[data-v-ad3cf7cc] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-ad3cf7cc] .in-segments-wrapper__button_selected,[data-v-ad3cf7cc] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-ad3cf7cc] .in-tooltip-wrapper__icon{cursor:pointer}.guido-loading__wrapper[data-v-2d4cd446]{height:calc(100% - 75px);top:75px}.guido-editor__wrapper[data-v-aef3bfa0],.guido-editor__container[data-v-aef3bfa0]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-aef3bfa0]{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}
|
|
@@ -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
|
};
|
|
@@ -1,123 +1,41 @@
|
|
|
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
|
-
* Gets a unique CSS class name specifically for this block type.
|
|
41
|
-
* Used for targeting styles.
|
|
42
|
-
* @returns A unique CSS class name. Defaults to `esd-{blockId}`.
|
|
43
|
-
*/
|
|
44
|
-
getUniqueBlockClassname() {
|
|
45
|
-
return `esd-${this.getId()}`;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Lifecycle hook called when the editor document is initialized.
|
|
49
|
-
* Useful for performing initial setup or modifications on existing block instances in the template.
|
|
50
|
-
* @returns An optional {@link HtmlNodeModifier} to apply changes to the block's HTML structure.
|
|
51
|
-
*/
|
|
52
|
-
onDocumentInit() {
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Lifecycle hook called when an instance of this block is selected in the editor.
|
|
56
|
-
* @param node - The immutable HTML node representing the selected block instance.
|
|
57
|
-
* @returns An optional {@link HtmlNodeModifier} to apply changes upon selection.
|
|
58
|
-
*/
|
|
59
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
60
|
-
onSelect(e) {
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Lifecycle hook called when an instance of this block is copied.
|
|
64
|
-
* @param targetNode - The immutable HTML node where the copy is being inserted relative to.
|
|
65
|
-
* @param sourceNode - The immutable HTML node representing the block instance being copied.
|
|
66
|
-
* @returns An optional {@link HtmlNodeModifier} to apply changes to the copied node.
|
|
67
|
-
*/
|
|
68
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
69
|
-
onCopy(e, o) {
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Lifecycle hook called when an instance of this block is deleted.
|
|
73
|
-
* @param node - The immutable HTML node representing the block instance being deleted.
|
|
74
|
-
* @returns An optional {@link HtmlNodeModifier} to apply changes before deletion (rarely needed).
|
|
75
|
-
*/
|
|
76
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
77
|
-
onDelete(e) {
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Lifecycle hook called after a new instance of this block is created and added to the document (e.g., via drag-and-drop).
|
|
81
|
-
* @param node - The immutable HTML node representing the newly created block instance.
|
|
82
|
-
*/
|
|
83
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
84
|
-
onCreated(e) {
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Lifecycle hook called when any part of the document template has changed.
|
|
88
|
-
* This can be frequent; use cautiously for performance-sensitive operations.
|
|
89
|
-
*/
|
|
90
|
-
onDocumentChanged() {
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* @description Determines if block is atomic or composite.
|
|
94
|
-
* {@link BlockCompositionType.BLOCK} - atomic block which can be inserted inside other container and cannot hold other objects
|
|
95
|
-
* {@link BlockCompositionType.STRUCTURE} - composite block which can serve as a container for another atomic block
|
|
96
|
-
* @returns The type of the block. Defaults to {@link BlockCompositionType.BLOCK}.
|
|
97
|
-
*/
|
|
98
|
-
getBlockCompositionType() {
|
|
99
|
-
return d.BLOCK;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* @description Determines if block should be included in empty container quick insert actions list.
|
|
103
|
-
* @returns True to show a quick-add icon for this block in empty containers, false otherwise. Defaults to false.
|
|
104
|
-
*/
|
|
105
|
-
shouldDisplayQuickAddIcon() {
|
|
106
|
-
return !1;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* @description Determines if nested blocks selection allowed in extension of type {@link BlockCompositionType.STRUCTURE}
|
|
110
|
-
*/
|
|
111
|
-
allowInnerBlocksSelection() {
|
|
112
|
-
return !0;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* @description Determines if nested blocks drag and drop allowed in extension of type {@link BlockCompositionType.STRUCTURE}
|
|
116
|
-
*/
|
|
117
|
-
allowInnerBlocksDND() {
|
|
118
|
-
return !0;
|
|
119
|
-
}
|
|
1
|
+
import { __exports as o } from "../../../../../_virtual/Block.js";
|
|
2
|
+
import { __require as i } from "../constants/BlockCompositionType.js";
|
|
3
|
+
var n;
|
|
4
|
+
function f() {
|
|
5
|
+
if (n) return o;
|
|
6
|
+
n = 1, Object.defineProperty(o, "__esModule", { value: !0 }), o.Block = void 0;
|
|
7
|
+
var r = i(), u = (
|
|
8
|
+
/** @class */
|
|
9
|
+
(function() {
|
|
10
|
+
function e() {
|
|
11
|
+
}
|
|
12
|
+
return e.prototype.isEnabled = function() {
|
|
13
|
+
return !0;
|
|
14
|
+
}, e.prototype.canBeSavedAsModule = function() {
|
|
15
|
+
return !1;
|
|
16
|
+
}, e.prototype.getContextActionsIds = function() {
|
|
17
|
+
}, e.prototype.getCustomRenderer = function() {
|
|
18
|
+
}, e.prototype.getUniqueBlockClassname = function() {
|
|
19
|
+
return "esd-".concat(this.getId());
|
|
20
|
+
}, e.prototype.onDocumentInit = function() {
|
|
21
|
+
}, e.prototype.onSelect = function(t) {
|
|
22
|
+
}, e.prototype.onCopy = function(t, p) {
|
|
23
|
+
}, e.prototype.onDelete = function(t) {
|
|
24
|
+
}, e.prototype.onCreated = function(t) {
|
|
25
|
+
}, e.prototype.onDocumentChanged = function() {
|
|
26
|
+
}, e.prototype.getBlockCompositionType = function() {
|
|
27
|
+
return r.BlockCompositionType.BLOCK;
|
|
28
|
+
}, e.prototype.shouldDisplayQuickAddIcon = function() {
|
|
29
|
+
return !1;
|
|
30
|
+
}, e.prototype.allowInnerBlocksSelection = function() {
|
|
31
|
+
return !0;
|
|
32
|
+
}, e.prototype.allowInnerBlocksDND = function() {
|
|
33
|
+
return !0;
|
|
34
|
+
}, e;
|
|
35
|
+
})()
|
|
36
|
+
);
|
|
37
|
+
return o.Block = u, o;
|
|
120
38
|
}
|
|
121
39
|
export {
|
|
122
|
-
|
|
40
|
+
f as __require
|
|
123
41
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __exports as e } from "../../../../../_virtual/BlockRenderer.js";
|
|
2
|
+
var r;
|
|
3
|
+
function u() {
|
|
4
|
+
if (r) return e;
|
|
5
|
+
r = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.BlockRenderer = void 0;
|
|
6
|
+
var n = (
|
|
7
|
+
/** @class */
|
|
8
|
+
/* @__PURE__ */ (function() {
|
|
9
|
+
function o() {
|
|
10
|
+
}
|
|
11
|
+
return o;
|
|
12
|
+
})()
|
|
13
|
+
);
|
|
14
|
+
return e.BlockRenderer = n, e;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
u as __require
|
|
18
|
+
};
|