@useinsider/guido 1.0.2-beta.d032aea → 1.0.2-beta.da959c4
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 +25 -2
- package/dist/@types/generic.d.ts +4 -0
- package/dist/components/Guido.vue.js +5 -5
- package/dist/components/Guido.vue2.js +51 -50
- package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +3 -2
- package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +5 -5
- package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +2 -2
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue.js +5 -5
- package/dist/components/organisms/onboarding/TextBlockOnboarding.vue2.js +40 -28
- package/dist/composables/useCustomInterfaceAppearance.js +22 -18
- package/dist/composables/useHtmlValidator.d.ts +2 -1
- package/dist/composables/useHtmlValidator.js +114 -95
- package/dist/composables/useSave.js +6 -6
- package/dist/composables/useStripo.js +25 -24
- 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 +5 -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/_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/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/utils/genericUtil.d.ts +5 -0
- package/dist/utils/genericUtil.js +9 -6
- 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,20 @@
|
|
|
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 o } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js";
|
|
14
|
+
import { CheckboxBlock as t } from "./block.js";
|
|
15
|
+
import { CheckboxControl as r } from "./control.js";
|
|
16
|
+
import { CheckboxBlockSettings as i } from "./settingsPanel.js";
|
|
17
|
+
const g = new o().addBlock(t).withSettingsPanelRegistry(i).addControl(r).build();
|
|
18
|
+
export {
|
|
19
|
+
g as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
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 { ContainerControls as i, TextControls as m } from "../../../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 { SettingsTab as o } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js";
|
|
12
|
+
import "../../../node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js";
|
|
13
|
+
import { SettingsPanelRegistry as e } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js";
|
|
14
|
+
import { SettingsPanelTab as t } from "../../../node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js";
|
|
15
|
+
import { CHECKBOX_BLOCK_ID as p } from "./block.js";
|
|
16
|
+
import { CHECKBOX_CONTROL_BLOCK_ID as C } from "./control.js";
|
|
17
|
+
class x extends e {
|
|
18
|
+
registerBlockControls(r) {
|
|
19
|
+
r[p] = [
|
|
20
|
+
new t(
|
|
21
|
+
o.SETTINGS,
|
|
22
|
+
[
|
|
23
|
+
C,
|
|
24
|
+
i.EXTERNAL_INDENTS
|
|
25
|
+
]
|
|
26
|
+
),
|
|
27
|
+
new t(
|
|
28
|
+
o.STYLES,
|
|
29
|
+
[
|
|
30
|
+
m.TEXT_BLOCK_BACKGROUND_COLOR
|
|
31
|
+
]
|
|
32
|
+
)
|
|
33
|
+
];
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
x as CheckboxBlockSettings
|
|
38
|
+
};
|
|
@@ -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>\n {-{-TITLE-}-}\n </tr>\n <tr>\n {-{-DESCRIPTION-}-}\n </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;
|
|
@@ -0,0 +1,75 @@
|
|
|
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: "Unsubscribe From All Email Lists",
|
|
15
|
+
DESCRIPTION: "You will still receive important transactional and billing-related emails."
|
|
16
|
+
}, l = `
|
|
17
|
+
<td align="left" class="checkbox-block-v2 esd-block-checkbox es-p20">
|
|
18
|
+
<table cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
19
|
+
<tbody>
|
|
20
|
+
<tr>
|
|
21
|
+
<td align="left" width="39" style="vertical-align: top;">
|
|
22
|
+
<input type="checkbox">
|
|
23
|
+
</td>
|
|
24
|
+
<td align="left" width="816" style="vertical-align: top;">
|
|
25
|
+
<table cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
26
|
+
<tbody>
|
|
27
|
+
<${t.BLOCK_TEXT}>
|
|
28
|
+
{-{-TITLE-}-}
|
|
29
|
+
</${t.BLOCK_TEXT}>
|
|
30
|
+
<${t.BLOCK_TEXT}>
|
|
31
|
+
{-{-DESCRIPTION-}-}
|
|
32
|
+
</${t.BLOCK_TEXT}>
|
|
33
|
+
</tbody>
|
|
34
|
+
</table>
|
|
35
|
+
</td>
|
|
36
|
+
</tr>
|
|
37
|
+
</tbody>
|
|
38
|
+
</table>
|
|
39
|
+
</td>
|
|
40
|
+
`, m = `
|
|
41
|
+
<td
|
|
42
|
+
align="left"
|
|
43
|
+
esd-extension-block-id="checkbox-block"
|
|
44
|
+
class="checkbox-block-v2 esd-block-checkbox esd-checkbox-block esd-extension-block es-p20"
|
|
45
|
+
>
|
|
46
|
+
<table cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
47
|
+
<tbody>
|
|
48
|
+
<tr>
|
|
49
|
+
<td align="left" width="39" style="vertical-align: top">
|
|
50
|
+
<input type="checkbox">
|
|
51
|
+
</td>
|
|
52
|
+
<td align="left" width="816" style="vertical-align: top">
|
|
53
|
+
<table cellpadding="0" cellspacing="0" role="presentation" width="100%">
|
|
54
|
+
<tbody>
|
|
55
|
+
<tr>
|
|
56
|
+
{-{-TITLE-}-}
|
|
57
|
+
</tr>
|
|
58
|
+
<tr>
|
|
59
|
+
{-{-DESCRIPTION-}-}
|
|
60
|
+
</tr>
|
|
61
|
+
</tbody>
|
|
62
|
+
</table>
|
|
63
|
+
</td>
|
|
64
|
+
</tr>
|
|
65
|
+
</tbody>
|
|
66
|
+
</table>
|
|
67
|
+
</td>
|
|
68
|
+
`;
|
|
69
|
+
function h() {
|
|
70
|
+
return l.replace("{-{-TITLE-}-}", `<p path="1">${e.TITLE}</p>`).replace("{-{-DESCRIPTION-}-}", `<p path="1">${e.DESCRIPTION}</p>`);
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
m as default,
|
|
74
|
+
h as getDefaultTemplate
|
|
75
|
+
};
|
|
@@ -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-dced5582]{height:100%;top:75px}.guido-editor__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
|
};
|