@useinsider/guido 1.0.2-beta.b6e86c0 → 1.0.2-beta.bfb23c2
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 +40 -2
- package/dist/@types/generic.d.ts +4 -0
- package/dist/components/Guido.vue.d.ts +3 -1
- package/dist/components/Guido.vue.js +5 -5
- package/dist/components/Guido.vue2.js +75 -63
- package/dist/components/organisms/LoadingWrapper.vue.js +1 -1
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +3 -2
- package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +3 -1
- package/dist/components/organisms/header/HeaderWrapper.vue.js +6 -6
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +15 -9
- package/dist/components/organisms/header/RightSlot.vue.d.ts +3 -1
- package/dist/components/organisms/header/RightSlot.vue.js +5 -3
- package/dist/components/organisms/header/RightSlot.vue2.js +26 -27
- package/dist/components/organisms/onboarding/AMPOnboarding.vue2.js +11 -11
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +5 -5
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +8 -8
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +1 -1
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +40 -28
- package/dist/components/organisms/onboarding/VersionHistoryOnboarding.vue2.js +6 -6
- package/dist/composables/useCustomInterfaceAppearance.js +22 -18
- package/dist/composables/useHtmlCompiler.js +17 -9
- package/dist/composables/useHtmlValidator.d.ts +4 -0
- package/dist/composables/useHtmlValidator.js +148 -0
- package/dist/composables/useRecommendation.d.ts +19 -0
- package/dist/composables/useRecommendation.js +27 -0
- package/dist/composables/useSave.d.ts +4 -0
- package/dist/composables/useSave.js +15 -0
- package/dist/composables/useStripo.js +29 -21
- package/dist/composables/useToaster.js +17 -17
- package/dist/config/compiler/outlookCompilerRules.d.ts +2 -0
- package/dist/config/compiler/outlookCompilerRules.js +36 -0
- package/dist/config/compiler/recommendationCompilerRules.d.ts +2 -0
- package/dist/config/compiler/recommendationCompilerRules.js +83 -0
- package/dist/config/compiler/socialCompilerRules.d.ts +2 -0
- package/dist/config/compiler/socialCompilerRules.js +21 -0
- package/dist/config/compiler/unsubscribeCompilerRules.d.ts +2 -0
- package/dist/config/compiler/unsubscribeCompilerRules.js +64 -0
- package/dist/config/migrator/checkboxMigrator.d.ts +1 -0
- package/dist/config/migrator/checkboxMigrator.js +83 -0
- package/dist/config/migrator/index.d.ts +1 -0
- package/dist/config/migrator/index.js +9 -0
- package/dist/config/migrator/radioButtonMigrator.d.ts +1 -0
- package/dist/config/migrator/radioButtonMigrator.js +86 -0
- package/dist/enums/defaults.d.ts +5 -1
- package/dist/enums/defaults.js +14 -10
- package/dist/enums/html-validator.d.ts +6 -0
- package/dist/enums/html-validator.js +7 -0
- package/dist/enums/recommendation.d.ts +54 -0
- package/dist/enums/recommendation.js +56 -0
- package/dist/enums/unsubscribe.d.ts +15 -0
- package/dist/enums/unsubscribe.js +17 -0
- package/dist/extensions/Blocks/Checkbox/block.d.ts +10 -0
- package/dist/extensions/Blocks/Checkbox/block.js +39 -0
- package/dist/extensions/Blocks/Checkbox/control.d.ts +22 -0
- package/dist/extensions/Blocks/Checkbox/control.js +104 -0
- package/dist/extensions/Blocks/Checkbox/extension.d.ts +2 -0
- package/dist/extensions/Blocks/Checkbox/extension.js +20 -0
- package/dist/extensions/Blocks/Checkbox/settingsPanel.d.ts +4 -0
- package/dist/extensions/Blocks/Checkbox/settingsPanel.js +38 -0
- package/dist/extensions/Blocks/Checkbox/template.d.ts +6 -0
- package/dist/extensions/Blocks/Checkbox/template.js +75 -0
- package/dist/extensions/Blocks/RadioButton/block.d.ts +10 -0
- package/dist/extensions/Blocks/RadioButton/block.js +39 -0
- package/dist/extensions/Blocks/RadioButton/control.d.ts +17 -0
- package/dist/extensions/Blocks/RadioButton/control.js +104 -0
- package/dist/extensions/Blocks/RadioButton/extension.d.ts +2 -0
- package/dist/extensions/Blocks/RadioButton/extension.js +20 -0
- package/dist/extensions/Blocks/RadioButton/settingsPanel.d.ts +4 -0
- package/dist/extensions/Blocks/RadioButton/settingsPanel.js +39 -0
- package/dist/extensions/Blocks/RadioButton/template.d.ts +6 -0
- package/dist/extensions/Blocks/RadioButton/template.js +160 -0
- package/dist/extensions/Blocks/_Boilerplate/block.d.ts +10 -0
- package/dist/extensions/Blocks/_Boilerplate/control.d.ts +17 -0
- package/dist/extensions/Blocks/_Boilerplate/extension.d.ts +2 -0
- package/dist/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +4 -0
- package/dist/extensions/Blocks/_Boilerplate/template.d.ts +6 -0
- package/dist/extensions/DynamicContent/dynamic-content.js +41 -27
- package/dist/extensions/DynamicContent/extension.js +18 -6
- package/dist/guido.css +1 -1
- package/dist/mock/api/unsubscribe.d.ts +2 -0
- package/dist/mock/api/validator.d.ts +2 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +72 -48
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +74 -49
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +120 -38
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +5 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +5 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +12 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +5 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +116 -101
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +5 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +5 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +5 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +12 -0
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +5 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +5 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +5 -11
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +22 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +21 -17
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +8 -15
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +30 -29
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +19 -23
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +37 -19
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +2 -15
- package/dist/static/styles/components/alert-message.css.js +32 -2
- package/dist/static/styles/components/button.css.js +32 -2
- package/dist/static/styles/components/notification.css.js +55 -0
- package/dist/static/styles/components/popup.css.js +68 -0
- package/dist/static/styles/components/wide-panel.css.js +5 -1
- package/dist/static/styles/customEditorStyle.css.js +6 -0
- package/dist/static/styles/variables.css.js +10 -0
- package/dist/stores/dynamic-content.d.ts +12 -0
- package/dist/stores/dynamic-content.js +7 -6
- package/dist/stores/recommendation.d.ts +10 -0
- package/dist/stores/recommendation.js +9 -0
- package/dist/stores/unsubscribe.d.ts +8 -0
- package/dist/stores/unsubscribe.js +9 -0
- package/dist/utils/genericUtil.js +9 -6
- package/dist/utils/templatePreparation.js +21 -14
- package/package.json +2 -2
- package/dist/_virtual/AddCustomFont.js +0 -4
- package/dist/_virtual/AiAssistantValueType.js +0 -4
- package/dist/_virtual/BackgroundColorBuiltInControl.js +0 -4
- package/dist/_virtual/BackgroundImageBuiltInControl.js +0 -4
- package/dist/_virtual/Block.js +0 -4
- package/dist/_virtual/BlockAttributes.js +0 -4
- package/dist/_virtual/BlockCompositionType.js +0 -4
- package/dist/_virtual/BlockPaddingsBuiltInControl.js +0 -4
- package/dist/_virtual/BlockRenderer.js +0 -4
- package/dist/_virtual/BlockType.js +0 -4
- package/dist/_virtual/BlocksPanel.js +0 -4
- package/dist/_virtual/BuiltInControl.js +0 -4
- package/dist/_virtual/BuiltInControlTypes.js +0 -4
- package/dist/_virtual/ButtonBorderBuiltInControl.js +0 -4
- package/dist/_virtual/ButtonColorBuiltInControl.js +0 -4
- package/dist/_virtual/ButtonFontColorBuiltInControl.js +0 -4
- package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +0 -4
- package/dist/_virtual/ButtonTextBuiltInControl.js +0 -4
- package/dist/_virtual/ContextAction.js +0 -4
- package/dist/_virtual/ContextActionType.js +0 -4
- package/dist/_virtual/Control.js +0 -4
- package/dist/_virtual/EditorStatePropertyType.js +0 -4
- package/dist/_virtual/Extension.js +0 -4
- package/dist/_virtual/ExtensionBuilder.js +0 -4
- package/dist/_virtual/FontFamilyBuiltInControl.js +0 -4
- package/dist/_virtual/LinkColorBuiltInControl.js +0 -4
- package/dist/_virtual/ModificationDescription.js +0 -4
- package/dist/_virtual/PanelPosition.js +0 -4
- package/dist/_virtual/PreviewDeviceMode.js +0 -4
- package/dist/_virtual/SettingsPanelRegistry.js +0 -4
- package/dist/_virtual/SettingsPanelTab.js +0 -4
- package/dist/_virtual/SettingsTab.js +0 -4
- package/dist/_virtual/StructureBorderBuiltInControl.js +0 -4
- package/dist/_virtual/StructurePaddingsBuiltInControl.js +0 -4
- package/dist/_virtual/TextColorBuiltInControl.js +0 -4
- package/dist/_virtual/TextLineSpacingBuiltInControl.js +0 -4
- package/dist/_virtual/TextSizeBuiltInControl.js +0 -4
- package/dist/_virtual/TextStyleBuiltInControl.js +0 -4
- package/dist/_virtual/UIElement.js +0 -4
- package/dist/_virtual/UIElementTagRegistry.js +0 -4
- package/dist/_virtual/UIElementType.js +0 -4
- package/dist/_virtual/UIElementsAttributes.js +0 -4
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -4
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +0 -18
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +0 -32
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +0 -18
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +0 -8
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +0 -34
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +0 -46
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +0 -44
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +0 -22
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +0 -46
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +0 -46
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +0 -46
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +0 -44
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +0 -45
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +0 -43
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +0 -266
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js";
|
|
2
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js";
|
|
3
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js";
|
|
4
|
+
import { BlockType as t } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js";
|
|
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
|
+
const e = {
|
|
14
|
+
TITLE: "This is a title text",
|
|
15
|
+
DESCRIPTION: "This is a description text",
|
|
16
|
+
YES: "Yes",
|
|
17
|
+
NO: "No"
|
|
18
|
+
}, i = `
|
|
19
|
+
<td align="left" class="radio-button-v2 esd-block-radio es-p10t es-p10b es-p30r es-p30l">
|
|
20
|
+
<table cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
21
|
+
<tbody>
|
|
22
|
+
<tr>
|
|
23
|
+
<td align="left" width="70%" style="vertical-align: top;">
|
|
24
|
+
<table cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
25
|
+
<tbody>
|
|
26
|
+
<${t.BLOCK_TEXT}>
|
|
27
|
+
{-{-TITLE-}-}
|
|
28
|
+
</${t.BLOCK_TEXT}>
|
|
29
|
+
<${t.BLOCK_TEXT}>
|
|
30
|
+
{-{-DESCRIPTION-}-}
|
|
31
|
+
</${t.BLOCK_TEXT}>
|
|
32
|
+
</tbody>
|
|
33
|
+
</table>
|
|
34
|
+
</td>
|
|
35
|
+
<td align="right" width="30%" style="vertical-align: middle;">
|
|
36
|
+
<table cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
37
|
+
<tbody>
|
|
38
|
+
<tr>
|
|
39
|
+
<td width="50%">
|
|
40
|
+
<table width="100%">
|
|
41
|
+
<tr>
|
|
42
|
+
<td width="24">
|
|
43
|
+
<input
|
|
44
|
+
type="radio"
|
|
45
|
+
id="radioYes"
|
|
46
|
+
name="unsubscribe"
|
|
47
|
+
data-cke-editable="1"
|
|
48
|
+
style="margin: 0px; vertical-align: middle;">
|
|
49
|
+
</td>
|
|
50
|
+
<td style="padding-right: 15px;">
|
|
51
|
+
<table width="100%">
|
|
52
|
+
<${t.BLOCK_TEXT}>
|
|
53
|
+
{-{-YES-}-}
|
|
54
|
+
</${t.BLOCK_TEXT}>
|
|
55
|
+
</table>
|
|
56
|
+
</td>
|
|
57
|
+
</tr>
|
|
58
|
+
</table>
|
|
59
|
+
</td>
|
|
60
|
+
<td width="50%">
|
|
61
|
+
<table width="100%">
|
|
62
|
+
<tr>
|
|
63
|
+
<td width="24">
|
|
64
|
+
<input
|
|
65
|
+
type="radio"
|
|
66
|
+
id="radioNo"
|
|
67
|
+
name="unsubscribe"
|
|
68
|
+
data-cke-editable="1"
|
|
69
|
+
style="margin: 0px; vertical-align: middle;">
|
|
70
|
+
</td>
|
|
71
|
+
<td style="padding-right: 15px;">
|
|
72
|
+
<table width="100%">
|
|
73
|
+
<${t.BLOCK_TEXT}>
|
|
74
|
+
{-{-NO-}-}
|
|
75
|
+
</${t.BLOCK_TEXT}>
|
|
76
|
+
</table>
|
|
77
|
+
</td>
|
|
78
|
+
</tr>
|
|
79
|
+
</table>
|
|
80
|
+
</td>
|
|
81
|
+
</tr>
|
|
82
|
+
</tbody>
|
|
83
|
+
</table>
|
|
84
|
+
</td>
|
|
85
|
+
</tr>
|
|
86
|
+
</tbody>
|
|
87
|
+
</table>
|
|
88
|
+
</td>
|
|
89
|
+
`, h = `
|
|
90
|
+
<td
|
|
91
|
+
align="left"
|
|
92
|
+
esd-extension-block-id="radio-button-block"
|
|
93
|
+
esd-handler-name="esd-extension-RadioButtonBlock"
|
|
94
|
+
class="radio-button-v2 esd-block-ra esd-radio-button-block esd-extension-block es-p10t es-p10b es-p30r es-p30l"
|
|
95
|
+
>
|
|
96
|
+
<table cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
97
|
+
<tbody>
|
|
98
|
+
<tr>
|
|
99
|
+
<td align="left" width="70%" style="vertical-align: top;">
|
|
100
|
+
<table cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
101
|
+
<tbody>
|
|
102
|
+
<tr>
|
|
103
|
+
{-{-TITLE-}-}
|
|
104
|
+
</tr>
|
|
105
|
+
<tr>
|
|
106
|
+
{-{-DESCRIPTION-}-}
|
|
107
|
+
</tr>
|
|
108
|
+
</tbody>
|
|
109
|
+
</table>
|
|
110
|
+
</td>
|
|
111
|
+
<td align="right" width="30%" style="vertical-align: middle;">
|
|
112
|
+
<table cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
113
|
+
<tbody>
|
|
114
|
+
<tr>
|
|
115
|
+
<td width="50%">
|
|
116
|
+
<table width="100%">
|
|
117
|
+
<tr>
|
|
118
|
+
<td width="24">
|
|
119
|
+
<input
|
|
120
|
+
type="radio"
|
|
121
|
+
id="radioYes"
|
|
122
|
+
name="unsubscribe"
|
|
123
|
+
data-cke-editable="1"
|
|
124
|
+
style="margin: 0px; vertical-align: middle;>
|
|
125
|
+
</td>
|
|
126
|
+
{-{-YES-}-}
|
|
127
|
+
</tr>
|
|
128
|
+
</table>
|
|
129
|
+
</td>
|
|
130
|
+
<td width="50%">
|
|
131
|
+
<table width="100%">
|
|
132
|
+
<tr>
|
|
133
|
+
<td width="24">
|
|
134
|
+
<input
|
|
135
|
+
type="radio"
|
|
136
|
+
id="radioNo"
|
|
137
|
+
name="unsubscribe"
|
|
138
|
+
data-cke-editable="1"
|
|
139
|
+
style="margin: 0px; vertical-align: middle;">
|
|
140
|
+
</td>
|
|
141
|
+
{-{-NO-}-}
|
|
142
|
+
</tr>
|
|
143
|
+
</table>
|
|
144
|
+
</td>
|
|
145
|
+
</tr>
|
|
146
|
+
</tbody>
|
|
147
|
+
</table>
|
|
148
|
+
</td>
|
|
149
|
+
</tr>
|
|
150
|
+
</tbody>
|
|
151
|
+
</table>
|
|
152
|
+
</td>
|
|
153
|
+
`;
|
|
154
|
+
function m() {
|
|
155
|
+
return i.replace("{-{-TITLE-}-}", `<p path="1">${e.TITLE}</p>`).replace("{-{-DESCRIPTION-}-}", `<p path="1">${e.DESCRIPTION}</p>`).replace("{-{-YES-}-}", `<p path="1">${e.YES}</p>`).replace("{-{-NO-}-}", `<p path="1">${e.NO}</p>`);
|
|
156
|
+
}
|
|
157
|
+
export {
|
|
158
|
+
h as default,
|
|
159
|
+
m as getDefaultTemplate
|
|
160
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Block, BlockCompositionType } from '@stripoinc/ui-editor-extensions';
|
|
2
|
+
export declare const BLOCK_ID = "{{your-block}}";
|
|
3
|
+
export declare class CustomBlock extends Block {
|
|
4
|
+
getId(): string;
|
|
5
|
+
getIcon(): string;
|
|
6
|
+
getBlockCompositionType(): BlockCompositionType;
|
|
7
|
+
getName(): string;
|
|
8
|
+
getDescription(): string;
|
|
9
|
+
getTemplate(): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Control, ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
2
|
+
export declare const CONTROL_BLOCK_ID = "ui-elements-{{your-control-block}}";
|
|
3
|
+
export declare class CustomControl extends Control {
|
|
4
|
+
private currentNode?;
|
|
5
|
+
private selectedUnsubGroup?;
|
|
6
|
+
private unsubList;
|
|
7
|
+
getId(): string;
|
|
8
|
+
_setFormValues(): void;
|
|
9
|
+
_getLabel(text: string, name?: string): string;
|
|
10
|
+
_getSelectItem(text: string, value: string): string;
|
|
11
|
+
_getSelect(): string;
|
|
12
|
+
getTemplate(): string;
|
|
13
|
+
_onSelectChange(value: string | number): void;
|
|
14
|
+
_listenToFormUpdates(): void;
|
|
15
|
+
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
16
|
+
onRender(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const migrationTemplate = "\n <td \n align=\"left\" \n esd-extension-block-id=\"checkbox-block\" \n class=\"checkbox-block-v2 esd-block-checkbox esd-checkbox-block esd-extension-block es-p20\"\n >\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>\n <td align=\"left\" width=\"39\" style=\"vertical-align: top\">\n <input type=\"checkbox\">\n </td>\n <td align=\"left\" width=\"816\" style=\"vertical-align: top\">\n <table cellpadding=\"0\" cellspacing=\"0\" role=\"presentation\" width=\"100%\">\n <tbody>\n <tr>{-{-TITLE-}-}</tr>\n <tr>{-{-DESCRIPTION-}-}</tr>\n </tbody>\n </table>\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n";
|
|
2
|
+
/**
|
|
3
|
+
* @returns The template for the default checkbox block
|
|
4
|
+
*/
|
|
5
|
+
export declare function getDefaultTemplate(): string;
|
|
6
|
+
export default migrationTemplate;
|
|
@@ -1,16 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var m = (
|
|
3
|
-
var r = (
|
|
4
|
-
import { dynamicContentToMergeTags as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var m = (n, e, t) => e in n ? a(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var r = (n, e, t) => m(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { dynamicContentToMergeTags as g } from "../../utils/genericUtil.js";
|
|
5
|
+
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js";
|
|
6
|
+
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js";
|
|
7
|
+
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js";
|
|
8
|
+
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js";
|
|
9
|
+
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js";
|
|
10
|
+
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js";
|
|
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;
|
|
11
25
|
}
|
|
12
26
|
}
|
|
13
|
-
class
|
|
27
|
+
class k extends l {
|
|
14
28
|
constructor() {
|
|
15
29
|
super(...arguments);
|
|
16
30
|
r(this, "mergeTagsButton", null);
|
|
@@ -20,42 +34,42 @@ class u extends n.UIElement {
|
|
|
20
34
|
r(this, "selectedDynamicContent", { value: "", text: "" });
|
|
21
35
|
}
|
|
22
36
|
getId() {
|
|
23
|
-
return
|
|
37
|
+
return s;
|
|
24
38
|
}
|
|
25
|
-
onRender(
|
|
26
|
-
var
|
|
27
|
-
this.listener = this._onClick.bind(this), this.mergeTagsButton =
|
|
39
|
+
onRender(t) {
|
|
40
|
+
var o;
|
|
41
|
+
this.listener = this._onClick.bind(this), this.mergeTagsButton = t.querySelector("#guido__btn-add-dynamic-content"), (o = this.mergeTagsButton) == null || o.addEventListener("click", this.listener);
|
|
28
42
|
}
|
|
29
43
|
onDestroy() {
|
|
30
|
-
var
|
|
31
|
-
(
|
|
44
|
+
var t;
|
|
45
|
+
(t = this.mergeTagsButton) == null || t.removeEventListener("click", this.listener);
|
|
32
46
|
}
|
|
33
47
|
_onClick() {
|
|
34
48
|
this.openMergeTagLibrary();
|
|
35
49
|
}
|
|
36
50
|
openMergeTagLibrary() {
|
|
37
|
-
this.mergeTagsLibrary || (this.mergeTagsLibrary = new
|
|
51
|
+
this.mergeTagsLibrary || (this.mergeTagsLibrary = new p()), this.mergeTagsLibrary.openMergeTagsLibrary(
|
|
38
52
|
this.selectedDynamicContent,
|
|
39
|
-
(
|
|
40
|
-
this.api.onValueChanged(
|
|
53
|
+
(t) => {
|
|
54
|
+
this.api.onValueChanged(g([t])[0]);
|
|
41
55
|
}
|
|
42
56
|
);
|
|
43
57
|
}
|
|
44
58
|
getTemplate() {
|
|
45
59
|
return `
|
|
46
60
|
<div>
|
|
47
|
-
<${
|
|
61
|
+
<${i.BUTTON}
|
|
48
62
|
id="guido__btn-add-dynamic-content"
|
|
49
63
|
class="btn btn-primary"
|
|
50
|
-
${
|
|
51
|
-
<${
|
|
52
|
-
</${
|
|
64
|
+
${c.BUTTON.name}="${T}">
|
|
65
|
+
<${i.ICON} src="plus" class="icon icon-button color-primary">
|
|
66
|
+
</${i.ICON}>
|
|
53
67
|
${this.api.translate("Add Dynamic Content")}
|
|
54
|
-
</${
|
|
68
|
+
</${i.BUTTON}>
|
|
55
69
|
</div>`;
|
|
56
70
|
}
|
|
57
71
|
}
|
|
58
72
|
export {
|
|
59
|
-
|
|
60
|
-
|
|
73
|
+
O as DynamicContentTagRegistry,
|
|
74
|
+
k as DynamicContentUiElementExtension
|
|
61
75
|
};
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js";
|
|
2
|
+
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js";
|
|
3
|
+
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js";
|
|
4
|
+
import "../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js";
|
|
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({
|
|
5
17
|
en: {
|
|
6
18
|
"Add Dynamic Content": "Add Dynamic Content"
|
|
7
19
|
}
|
|
8
|
-
}).withUiElementTagRegistry(
|
|
20
|
+
}).withUiElementTagRegistry(o).build();
|
|
9
21
|
export {
|
|
10
|
-
|
|
22
|
+
w as default
|
|
11
23
|
};
|
package/dist/guido.css
CHANGED
|
@@ -1 +1 @@
|
|
|
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}.view-options-wrapper[data-v-d405ca59]{position:relative;display:inline-block}.new-tag[data-v-d405ca59]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-d405ca59] .guido__verion-history-view-option-selection-desktop svg,[data-v-d405ca59] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-d405ca59] .in-segments-wrapper__button_selected,[data-v-d405ca59] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-d405ca59] .in-tooltip-wrapper__icon{cursor:pointer}.view-options-wrapper[data-v-195ab6d4]{position:relative;display:inline-block}.new-tag[data-v-195ab6d4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-195ab6d4] .guido__view-option-selection-desktop svg,[data-v-195ab6d4] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-195ab6d4] .in-segments-wrapper__button_selected,[data-v-195ab6d4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-195ab6d4] .in-tooltip-wrapper__icon{cursor:pointer}.guido-loading__wrapper[data-v-
|
|
1
|
+
[data-v-a18ac2d3] .in-button-v2__wrapper{line-height:0}[data-v-b5997368] .in-segments-wrapper .in-tooltip-wrapper__box{text-align:left}.version-history-item[data-v-ee4b9c3f]{flex-basis:200px}.version-history-wrapper[data-v-52a77eec]{gap:8px}.view-options-wrapper[data-v-d405ca59]{position:relative;display:inline-block}.new-tag[data-v-d405ca59]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-d405ca59] .guido__verion-history-view-option-selection-desktop svg,[data-v-d405ca59] .guido__verion-history-view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-d405ca59] .in-segments-wrapper__button_selected,[data-v-d405ca59] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-d405ca59] .in-tooltip-wrapper__icon{cursor:pointer}.view-options-wrapper[data-v-195ab6d4]{position:relative;display:inline-block}.new-tag[data-v-195ab6d4]{position:absolute;top:-8px;right:-16px;z-index:10}[data-v-195ab6d4] .guido__view-option-selection-desktop svg,[data-v-195ab6d4] .guido__view-option-selection-mobile svg{margin:0 0 0 2px}[data-v-195ab6d4] .in-segments-wrapper__button_selected,[data-v-195ab6d4] .in-segments-wrapper__button_selected:hover{background-color:#dae1fb}[data-v-195ab6d4] .in-tooltip-wrapper__icon{cursor:pointer}.guido-loading__wrapper[data-v-dced5582]{height:100%;top:75px}.guido-editor__wrapper[data-v-aca05338],.guido-editor__container[data-v-aca05338]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-aca05338]{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-d3c52b44] .vueperslides__bullets,[data-v-a408dcea] .vueperslides__bullets{pointer-events:none!important}[data-v-a408dcea] .vueperslides__parallax-wrapper{height:110px!important}
|
|
@@ -1,51 +1,75 @@
|
|
|
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
|
-
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var L = (r, e, i) => e in r ? E(r, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : r[e] = i;
|
|
3
|
+
var t = (r, e, i) => L(r, typeof e != "symbol" ? e + "" : e, i);
|
|
4
|
+
class A {
|
|
5
|
+
constructor(e, i, s = [], n, a = [], l, o = [], g = [], y, h, x, u, b, c, m) {
|
|
6
|
+
t(this, "i18n");
|
|
7
|
+
t(this, "styles");
|
|
8
|
+
t(this, "previewStyles");
|
|
9
|
+
t(this, "uiElements", []);
|
|
10
|
+
t(this, "uiElementTagRegistry");
|
|
11
|
+
t(this, "controls", []);
|
|
12
|
+
t(this, "settingsPanelRegistry");
|
|
13
|
+
t(this, "contextActions", []);
|
|
14
|
+
t(this, "blocks", []);
|
|
15
|
+
t(this, "id");
|
|
16
|
+
t(this, "externalSmartElementsLibrary");
|
|
17
|
+
t(this, "externalImageLibrary");
|
|
18
|
+
t(this, "externalAiAssistant");
|
|
19
|
+
t(this, "externalDisplayConditionsLibrary");
|
|
20
|
+
t(this, "externalVideoLibrary");
|
|
21
|
+
t(this, "blocksPanel");
|
|
22
|
+
this.i18n = e, this.styles = i, this.previewStyles = x, this.uiElements = s, this.uiElementTagRegistry = n, this.controls = a, this.settingsPanelRegistry = l, this.contextActions = o, this.blocks = g, this.externalSmartElementsLibrary = y, this.externalImageLibrary = h, this.externalAiAssistant = u, this.externalDisplayConditionsLibrary = b, this.externalVideoLibrary = c, this.blocksPanel = m, this.id = Math.random().toString(36).substring(2);
|
|
23
|
+
}
|
|
24
|
+
getI18n() {
|
|
25
|
+
return this.i18n;
|
|
26
|
+
}
|
|
27
|
+
getStyles() {
|
|
28
|
+
return this.styles;
|
|
29
|
+
}
|
|
30
|
+
getPreviewStyles() {
|
|
31
|
+
return this.previewStyles;
|
|
32
|
+
}
|
|
33
|
+
getUiElements() {
|
|
34
|
+
return this.uiElements;
|
|
35
|
+
}
|
|
36
|
+
getUiElementTagRegistry() {
|
|
37
|
+
return this.uiElementTagRegistry;
|
|
38
|
+
}
|
|
39
|
+
getControls() {
|
|
40
|
+
return this.controls;
|
|
41
|
+
}
|
|
42
|
+
getSettingsPanelRegistry() {
|
|
43
|
+
return this.settingsPanelRegistry;
|
|
44
|
+
}
|
|
45
|
+
getContextActions() {
|
|
46
|
+
return this.contextActions;
|
|
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
|
+
}
|
|
48
72
|
}
|
|
49
73
|
export {
|
|
50
|
-
|
|
74
|
+
A as Extension
|
|
51
75
|
};
|
|
@@ -1,52 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var n;
|
|
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
|
-
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var n = (e, t, s) => t in e ? r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
+
var i = (e, t, s) => n(e, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
+
import { Extension as a } from "./Extension.js";
|
|
5
|
+
class o {
|
|
6
|
+
constructor() {
|
|
7
|
+
i(this, "i18n");
|
|
8
|
+
i(this, "styles");
|
|
9
|
+
i(this, "previewStyles");
|
|
10
|
+
i(this, "uiElements", []);
|
|
11
|
+
i(this, "uiElementTagRegistry");
|
|
12
|
+
i(this, "controls", []);
|
|
13
|
+
i(this, "settingsPanelRegistry");
|
|
14
|
+
i(this, "contextActions", []);
|
|
15
|
+
i(this, "blocks", []);
|
|
16
|
+
i(this, "externalSmartElementsLibrary");
|
|
17
|
+
i(this, "externalImageLibrary");
|
|
18
|
+
i(this, "externalAiAssistant");
|
|
19
|
+
i(this, "externalDisplayConditionsLibrary");
|
|
20
|
+
i(this, "externalVideoLibrary");
|
|
21
|
+
i(this, "blocksPanel");
|
|
22
|
+
}
|
|
23
|
+
withLocalization(t) {
|
|
24
|
+
return this.i18n = t, this;
|
|
25
|
+
}
|
|
26
|
+
withStyles(t) {
|
|
27
|
+
return this.styles = t, this;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* @description defines custom developer styles to use inside the editor document preview
|
|
31
|
+
*/
|
|
32
|
+
withPreviewStyles(t) {
|
|
33
|
+
return this.previewStyles = t, this;
|
|
34
|
+
}
|
|
35
|
+
addContextAction(t) {
|
|
36
|
+
return this.contextActions.push(t), this;
|
|
37
|
+
}
|
|
38
|
+
addUiElement(t) {
|
|
39
|
+
return this.uiElements.push(t), this;
|
|
40
|
+
}
|
|
41
|
+
withUiElementTagRegistry(t) {
|
|
42
|
+
return this.uiElementTagRegistry = t, this;
|
|
43
|
+
}
|
|
44
|
+
addControl(t) {
|
|
45
|
+
return this.controls.push(t), this;
|
|
46
|
+
}
|
|
47
|
+
withSettingsPanelRegistry(t) {
|
|
48
|
+
return this.settingsPanelRegistry = t, this;
|
|
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
|
+
}
|
|
49
74
|
}
|
|
50
75
|
export {
|
|
51
|
-
|
|
76
|
+
o as ExtensionBuilder
|
|
52
77
|
};
|