@useinsider/guido 1.0.2-beta.91efff4 → 1.0.2-beta.93e2012
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 +1 -1
- 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.js +8 -8
- package/dist/components/Guido.vue2.js +35 -36
- package/dist/composables/useHtmlValidator.d.ts +1 -2
- package/dist/composables/useHtmlValidator.js +95 -114
- package/dist/composables/useSave.js +6 -6
- package/dist/composables/useStripo.js +35 -37
- 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/utils/genericUtil.d.ts +0 -5
- package/package.json +2 -2
- 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/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/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
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __exports as t } from "../../../../../_virtual/BlocksPanel.js";
|
|
2
|
+
var o;
|
|
3
|
+
function l() {
|
|
4
|
+
if (o) return t;
|
|
5
|
+
o = 1, Object.defineProperty(t, "__esModule", { value: !0 }), t.BlocksPanel = void 0;
|
|
6
|
+
var r = (
|
|
7
|
+
/** @class */
|
|
8
|
+
(function() {
|
|
9
|
+
function e() {
|
|
10
|
+
}
|
|
11
|
+
return e.prototype.getBlockItemHtml = function(n) {
|
|
12
|
+
}, e.prototype.isBlockHintVisible = function(n) {
|
|
13
|
+
return !0;
|
|
14
|
+
}, e.prototype.getBlockHint = function(n) {
|
|
15
|
+
return {
|
|
16
|
+
title: n.title,
|
|
17
|
+
description: n.description
|
|
18
|
+
};
|
|
19
|
+
}, e.prototype.getBlocksPanelHeaderHtml = function() {
|
|
20
|
+
}, e.prototype.getModulesPanelCollapsedHtml = function() {
|
|
21
|
+
}, e.prototype.isModulesPanelCollapsedHintVisible = function() {
|
|
22
|
+
return !0;
|
|
23
|
+
}, e.prototype.getHintDelay = function() {
|
|
24
|
+
}, e.prototype.getModulesPanelHint = function() {
|
|
25
|
+
}, e;
|
|
26
|
+
})()
|
|
27
|
+
);
|
|
28
|
+
return t.BlocksPanel = r, t;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
l as __require
|
|
32
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __exports as t } from "../../../../../_virtual/ContextAction.js";
|
|
2
|
+
var e;
|
|
3
|
+
function i() {
|
|
4
|
+
if (e) return t;
|
|
5
|
+
e = 1, Object.defineProperty(t, "__esModule", { value: !0 }), t.ContextAction = void 0;
|
|
6
|
+
var n = (
|
|
7
|
+
/** @class */
|
|
8
|
+
/* @__PURE__ */ (function() {
|
|
9
|
+
function o() {
|
|
10
|
+
}
|
|
11
|
+
return o;
|
|
12
|
+
})()
|
|
13
|
+
);
|
|
14
|
+
return t.ContextAction = n, t;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
i as __require
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exports as e } from "../../../../../_virtual/AddCustomFont.js";
|
|
2
|
+
var r;
|
|
3
|
+
function _() {
|
|
4
|
+
return r ? e : (r = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.ADD_CUSTOM_FONT_OPTION = void 0, e.ADD_CUSTOM_FONT_OPTION = "ADD_CUSTOM_FONT_OPTION", e);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
_ as __require
|
|
8
|
+
};
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { __exports as e } from "../../../../../_virtual/AiAssistantValueType.js";
|
|
2
|
+
var i;
|
|
3
|
+
function a() {
|
|
4
|
+
if (i) return e;
|
|
5
|
+
i = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.AiAssistantValueType = void 0;
|
|
6
|
+
var r;
|
|
7
|
+
return (function(t) {
|
|
8
|
+
t.SUBJECT = "subject", t.HIDDEN_PREHEADER = "hiddenPreheader", t.TEXT_BLOCK = "textBlock";
|
|
9
|
+
})(r || (e.AiAssistantValueType = r = {})), e;
|
|
10
|
+
}
|
|
5
11
|
export {
|
|
6
|
-
|
|
12
|
+
a as __require
|
|
7
13
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { __exports as t } from "../../../../../_virtual/BlockAttributes.js";
|
|
2
|
+
var s;
|
|
3
|
+
function _() {
|
|
4
|
+
if (s) return t;
|
|
5
|
+
s = 1;
|
|
6
|
+
var r = t && t.__assign || function() {
|
|
7
|
+
return r = Object.assign || function(o) {
|
|
8
|
+
for (var e, n = 1, b = arguments.length; n < b; n++) {
|
|
9
|
+
e = arguments[n];
|
|
10
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && (o[a] = e[a]);
|
|
11
|
+
}
|
|
12
|
+
return o;
|
|
13
|
+
}, r.apply(this, arguments);
|
|
14
|
+
};
|
|
15
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), t.BlockAttr = void 0;
|
|
16
|
+
var i = {
|
|
17
|
+
widthPercent: "width-percent"
|
|
18
|
+
}, u = r(r({}, i), { blocks: "blocks" }), c = {
|
|
19
|
+
src: "src",
|
|
20
|
+
alt: "alt",
|
|
21
|
+
href: "href"
|
|
22
|
+
}, l = {
|
|
23
|
+
href: "href"
|
|
24
|
+
};
|
|
25
|
+
return t.BlockAttr = {
|
|
26
|
+
EMPTY_CONTAINER: u,
|
|
27
|
+
CONTAINER: i,
|
|
28
|
+
BLOCK_IMAGE: c,
|
|
29
|
+
BLOCK_BUTTON: l
|
|
30
|
+
}, t;
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
_ as __require
|
|
34
|
+
};
|
package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { __exports as o } from "../../../../../_virtual/BlockCompositionType.js";
|
|
2
|
+
var r;
|
|
3
|
+
function p() {
|
|
4
|
+
if (r) return o;
|
|
5
|
+
r = 1, Object.defineProperty(o, "__esModule", { value: !0 }), o.BlockCompositionType = void 0;
|
|
6
|
+
var e;
|
|
7
|
+
return (function(i) {
|
|
8
|
+
i.BLOCK = "BLOCK", i.STRUCTURE = "STRUCTURE";
|
|
9
|
+
})(e || (o.BlockCompositionType = e = {})), o;
|
|
10
|
+
}
|
|
5
11
|
export {
|
|
6
|
-
|
|
12
|
+
p as __require
|
|
7
13
|
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { __exports as C } from "../../../../../_virtual/BlockType.js";
|
|
2
|
+
var L;
|
|
3
|
+
function K() {
|
|
4
|
+
if (L) return C;
|
|
5
|
+
L = 1, Object.defineProperty(C, "__esModule", { value: !0 }), C.BlockType = void 0;
|
|
6
|
+
var _;
|
|
7
|
+
return (function(O) {
|
|
8
|
+
O.BLOCK_IMAGE = "BLOCK_IMAGE", O.BLOCK_TEXT = "BLOCK_TEXT", O.BLOCK_BUTTON = "BLOCK_BUTTON", O.BLOCK_SPACER = "BLOCK_SPACER", O.BLOCK_VIDEO = "BLOCK_VIDEO", O.BLOCK_SOCIAL = "BLOCK_SOCIAL", O.BLOCK_BANNER = "BLOCK_BANNER", O.BLOCK_TIMER = "BLOCK_TIMER", O.BLOCK_MENU = "BLOCK_MENU", O.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", O.BLOCK_HTML = "BLOCK_HTML", O.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", O.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", O.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", O.CONTAINER = "CONTAINER", O.FORM_CONTAINER = "FORM_CONTAINER", O.STRUCTURE = "STRUCTURE", O.STRIPE = "STRIPE", O.EMPTY_CONTAINER = "EMPTY_CONTAINER", O.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", O.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", O.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT";
|
|
9
|
+
})(_ || (C.BlockType = _ = {})), C;
|
|
10
|
+
}
|
|
5
11
|
export {
|
|
6
|
-
|
|
12
|
+
K as __require
|
|
7
13
|
};
|