@useinsider/guido 1.0.2-beta.05f3233 → 1.0.2-beta.080ccee

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.
Files changed (122) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/AddCustomFont.js +4 -0
  3. package/dist/_virtual/AiAssistantValueType.js +4 -0
  4. package/dist/_virtual/BackgroundColorBuiltInControl.js +4 -0
  5. package/dist/_virtual/BackgroundImageBuiltInControl.js +4 -0
  6. package/dist/_virtual/Block.js +4 -0
  7. package/dist/_virtual/BlockAttributes.js +4 -0
  8. package/dist/_virtual/BlockCompositionType.js +4 -0
  9. package/dist/_virtual/BlockPaddingsBuiltInControl.js +4 -0
  10. package/dist/_virtual/BlockRenderer.js +4 -0
  11. package/dist/_virtual/BlockType.js +4 -0
  12. package/dist/_virtual/BlocksPanel.js +4 -0
  13. package/dist/_virtual/BuiltInControl.js +4 -0
  14. package/dist/_virtual/BuiltInControlTypes.js +4 -0
  15. package/dist/_virtual/ButtonBorderBuiltInControl.js +4 -0
  16. package/dist/_virtual/ButtonColorBuiltInControl.js +4 -0
  17. package/dist/_virtual/ButtonFontColorBuiltInControl.js +4 -0
  18. package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +4 -0
  19. package/dist/_virtual/ButtonTextBuiltInControl.js +4 -0
  20. package/dist/_virtual/ContextAction.js +4 -0
  21. package/dist/_virtual/ContextActionType.js +4 -0
  22. package/dist/_virtual/Control.js +4 -0
  23. package/dist/_virtual/EditorStatePropertyType.js +4 -0
  24. package/dist/_virtual/Extension.js +4 -0
  25. package/dist/_virtual/ExtensionBuilder.js +4 -0
  26. package/dist/_virtual/FontFamilyBuiltInControl.js +4 -0
  27. package/dist/_virtual/LinkColorBuiltInControl.js +4 -0
  28. package/dist/_virtual/ModificationDescription.js +4 -0
  29. package/dist/_virtual/PanelPosition.js +4 -0
  30. package/dist/_virtual/PreviewDeviceMode.js +4 -0
  31. package/dist/_virtual/SettingsPanelRegistry.js +4 -0
  32. package/dist/_virtual/SettingsPanelTab.js +4 -0
  33. package/dist/_virtual/SettingsTab.js +4 -0
  34. package/dist/_virtual/StructureBorderBuiltInControl.js +4 -0
  35. package/dist/_virtual/StructurePaddingsBuiltInControl.js +4 -0
  36. package/dist/_virtual/TextColorBuiltInControl.js +4 -0
  37. package/dist/_virtual/TextLineSpacingBuiltInControl.js +4 -0
  38. package/dist/_virtual/TextSizeBuiltInControl.js +4 -0
  39. package/dist/_virtual/TextStyleBuiltInControl.js +4 -0
  40. package/dist/_virtual/UIElement.js +4 -0
  41. package/dist/_virtual/UIElementTagRegistry.js +4 -0
  42. package/dist/_virtual/UIElementType.js +4 -0
  43. package/dist/_virtual/UIElementsAttributes.js +4 -0
  44. package/dist/_virtual/index.js +5 -0
  45. package/dist/_virtual/index2.js +4 -0
  46. package/dist/components/Guido.vue.js +5 -5
  47. package/dist/components/Guido.vue2.js +50 -51
  48. package/dist/components/organisms/header/LeftSlot.vue.js +10 -10
  49. package/dist/components/organisms/header/LeftSlot.vue2.js +10 -23
  50. package/dist/composables/useHtmlValidator.d.ts +1 -2
  51. package/dist/composables/useHtmlValidator.js +95 -114
  52. package/dist/composables/useSave.js +6 -6
  53. package/dist/composables/useStripo.js +24 -25
  54. package/dist/extensions/DynamicContent/dynamic-content.js +27 -41
  55. package/dist/extensions/DynamicContent/extension.js +6 -18
  56. package/dist/guido.css +1 -1
  57. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +48 -72
  58. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +49 -74
  59. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +38 -120
  60. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +18 -0
  61. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +32 -0
  62. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +18 -0
  63. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +8 -0
  64. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +11 -5
  65. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +34 -0
  66. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +11 -5
  67. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +11 -5
  68. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +101 -116
  69. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +11 -5
  70. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +11 -5
  71. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +11 -5
  72. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +11 -5
  73. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +11 -5
  74. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +11 -5
  75. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +43 -22
  76. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +43 -0
  77. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +46 -0
  78. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +44 -0
  79. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +22 -0
  80. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +46 -0
  81. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +46 -0
  82. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +45 -0
  83. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +45 -0
  84. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +45 -0
  85. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +17 -21
  86. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +43 -0
  87. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +45 -0
  88. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +15 -8
  89. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +29 -30
  90. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +46 -0
  91. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +44 -0
  92. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +43 -0
  93. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +43 -0
  94. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +45 -0
  95. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +43 -0
  96. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +266 -0
  97. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +23 -19
  98. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +19 -37
  99. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +15 -2
  100. package/package.json +2 -2
  101. package/dist/config/migrator/checkboxMigrator.d.ts +0 -1
  102. package/dist/config/migrator/checkboxMigrator.js +0 -83
  103. package/dist/config/migrator/index.d.ts +0 -1
  104. package/dist/config/migrator/index.js +0 -5
  105. package/dist/extensions/Blocks/Checkbox/block.d.ts +0 -10
  106. package/dist/extensions/Blocks/Checkbox/block.js +0 -39
  107. package/dist/extensions/Blocks/Checkbox/control.d.ts +0 -22
  108. package/dist/extensions/Blocks/Checkbox/control.js +0 -104
  109. package/dist/extensions/Blocks/Checkbox/extension.d.ts +0 -2
  110. package/dist/extensions/Blocks/Checkbox/extension.js +0 -20
  111. package/dist/extensions/Blocks/Checkbox/settingsPanel.d.ts +0 -4
  112. package/dist/extensions/Blocks/Checkbox/settingsPanel.js +0 -38
  113. package/dist/extensions/Blocks/Checkbox/template.d.ts +0 -6
  114. package/dist/extensions/Blocks/Checkbox/template.js +0 -75
  115. package/dist/extensions/Blocks/_Boilerplate/block.d.ts +0 -10
  116. package/dist/extensions/Blocks/_Boilerplate/control.d.ts +0 -17
  117. package/dist/extensions/Blocks/_Boilerplate/extension.d.ts +0 -2
  118. package/dist/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +0 -4
  119. package/dist/extensions/Blocks/_Boilerplate/template.d.ts +0 -6
  120. package/dist/mock/api/unsubscribe.d.ts +0 -2
  121. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockName.js +0 -12
  122. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/Popover.js +0 -12
@@ -1,139 +1,120 @@
1
- import { useConfig as H } from "./useConfig.js";
2
- import { TemplateTypes as V } from "../enums/defaults.js";
3
- import { DISPLAY_CONDITIONS_REGEX as B, DISPLAY_CONDITIONS_EXCEPTIONS_REGEX as _, CampaignCouldNotBeSavedKey as D, CanNotMakeAnyChangesForRunningKey as P } from "../enums/html-validator.js";
4
- import { ToasterTypeOptions as l } from "../enums/toaster.js";
5
- import { useRecommendationStore as R } from "../stores/recommendation.js";
6
- import { base64EncodeWithSpecialChars as $ } from "../utils/base64.js";
7
- import { useHttp as j } from "./useHttp.js";
8
- import { useToaster as G } from "./useToaster.js";
9
- import { useTranslations as X } from "./useTranslations.js";
10
- const te = () => {
1
+ import { useConfig as V } from "./useConfig.js";
2
+ import { TemplateTypes as H } from "../enums/defaults.js";
3
+ import { DISPLAY_CONDITIONS_REGEX as O, DISPLAY_CONDITIONS_EXCEPTIONS_REGEX as B, CampaignCouldNotBeSavedKey as _, CanNotMakeAnyChangesForRunningKey as R } from "../enums/html-validator.js";
4
+ import { ToasterTypeOptions as r } from "../enums/toaster.js";
5
+ import { useRecommendationStore as D } from "../stores/recommendation.js";
6
+ import { base64EncodeWithSpecialChars as P } from "../utils/base64.js";
7
+ import { useHttp as X } from "./useHttp.js";
8
+ import { useToaster as j } from "./useToaster.js";
9
+ import { useTranslations as z } from "./useTranslations.js";
10
+ const tt = () => {
11
11
  var d;
12
- const { showToaster: c } = G(), { post: y } = j(), { config: h } = H(), o = X(), m = R(), u = ((d = h.partner) == null ? void 0 : d.messageType) === V.transactional, C = async (e) => {
13
- const t = await y(
12
+ const { showToaster: a } = j(), { post: y } = X(), { config: C } = V(), i = z(), m = D(), f = ((d = C.partner) == null ? void 0 : d.messageType) === H.transactional, h = async (t) => {
13
+ const e = await y(
14
14
  "/newsletter/template-library/check-template-html-body",
15
- { html: $(e) }
16
- ), { status: n, message: a } = t.data;
17
- return n || c({
18
- type: l.Alert,
19
- message: n === void 0 ? a : o("newsletter.invalid-url-link-for-toaster")
20
- }), o(D), a === o(P) && c({
21
- type: l.Alert,
22
- message: o("newsletter.already-in-progress")
15
+ { html: P(t) }
16
+ ), { status: n, message: c } = e.data;
17
+ return n || a({
18
+ type: r.Alert,
19
+ message: n === void 0 ? c : i("newsletter.invalid-url-link-for-toaster")
20
+ }), i(_), c === i(R) && a({
21
+ type: r.Alert,
22
+ message: i("newsletter.already-in-progress")
23
23
  }), n;
24
- }, v = (e) => !["if", "endif", "else", "elif", "now"].includes(e.toLowerCase()), w = (e) => ["if", "endif"].includes(e.toLowerCase()), S = (e, s) => {
25
- const t = e.match(/({%(.*?)%})/g);
24
+ }, v = (t) => !["if", "endif", "else", "elif", "now"].includes(t.toLowerCase()), w = (t) => ["if", "endif"].includes(t.toLowerCase()), S = (t, s) => {
25
+ const e = t.match(/({%(.*?)%})/g);
26
26
  let n = !0;
27
- return t !== null && !u && t.forEach((a) => {
28
- const i = a.slice(2, -2).trim().match(/(".*?"|[^"\s]+)(?=\s*|\s*$)/g);
29
- if (i && i.length > 0) {
30
- const [r] = i;
31
- v(r) && !s.includes(r) && (c({
32
- type: l.Warning,
33
- message: o("custom-fields.invalid-custom-fields")
27
+ return e !== null && !f && e.forEach((c) => {
28
+ const o = c.slice(2, -2).trim().match(/(".*?"|[^"\s]+)(?=\s*|\s*$)/g);
29
+ if (o && o.length > 0) {
30
+ const [l] = o;
31
+ v(l) && !s.includes(l) && (a({
32
+ type: r.Warning,
33
+ message: i("custom-fields.invalid-custom-fields")
34
34
  }), n = !1);
35
35
  }
36
36
  }), n;
37
- }, b = async (e, s, t) => {
38
- const n = t ? await C(e) : !0;
39
- return S(e, s) && n;
40
- }, E = (e) => e.length > 0 ? !0 : (c({
41
- type: l.Warning,
42
- message: o("newsletter.html-content-is-empty")
43
- }), !1), A = (e) => {
44
- const s = (e.match(/{/gm) || []).length, t = (e.match(/}/gm) || []).length;
45
- return s > t && c({
46
- type: l.Warning,
47
- message: o("custom-fields.missing-closing-braces")
48
- }), s < t && c({
49
- type: l.Warning,
50
- message: o("custom-fields.missing-opening-braces")
51
- }), s === t;
52
- }, x = (e) => {
53
- const s = e.match(/{{\s*(\w+\s+((\w+\|\w+)|(\w+)))\s*}}/gm) === null;
54
- return s || c({
55
- type: l.Warning,
56
- message: o("custom-fields.invalid-custom-fields")
37
+ }, E = async (t, s, e) => {
38
+ const n = e ? await h(t) : !0;
39
+ return S(t, s) && n;
40
+ }, T = (t) => t.length > 0 ? !0 : (a({
41
+ type: r.Warning,
42
+ message: i("newsletter.html-content-is-empty")
43
+ }), !1), I = (t) => {
44
+ const s = (t.match(/{/gm) || []).length, e = (t.match(/}/gm) || []).length;
45
+ return s > e && a({
46
+ type: r.Warning,
47
+ message: i("custom-fields.missing-closing-braces")
48
+ }), s < e && a({
49
+ type: r.Warning,
50
+ message: i("custom-fields.missing-opening-braces")
51
+ }), s === e;
52
+ }, A = (t) => {
53
+ const s = t.match(/{{\s*(\w+\s+((\w+\|\w+)|(\w+)))\s*}}/gm) === null;
54
+ return s || a({
55
+ type: r.Warning,
56
+ message: i("custom-fields.invalid-custom-fields")
57
57
  }), s;
58
- }, T = (e, s) => {
59
- const t = e.match(/{{([a-zA-Z0-9_\s]*)}}/gm);
60
- if (t && !u) {
61
- const n = new Set(s.map((i) => i.toLowerCase())), a = [];
62
- if (t.forEach((i) => {
63
- const r = i.slice(2, -2).trim().toLowerCase();
64
- (!n.has(r) || r === "") && a.push(r);
65
- }), a.length > 0) {
66
- const i = `
67
- <ul>
68
- ${a.map((r) => `<li>${r}</li>`).join("")}
69
- </ul>
70
- `;
71
- return c({
72
- type: l.Alert,
73
- message: o("custom-fields.invalid-custom-fields") + i
74
- }), !1;
75
- }
58
+ }, W = (t, s) => {
59
+ const e = t.match(/{{([a-zA-Z0-9_\s]*)}}/gm);
60
+ if (e && !f) {
61
+ const n = s.map((o) => o.toLowerCase()), c = e.some((o) => {
62
+ const l = o.replace("{{", "").replace("}}", "").trim().toLowerCase();
63
+ return !n.includes(l) || l === "";
64
+ });
65
+ return c && a({
66
+ type: r.Warning,
67
+ message: i("custom-fields.invalid-custom-fields")
68
+ }), !c;
76
69
  }
77
70
  return !0;
78
- }, k = (e) => {
79
- const s = e.match(/{%(.*?)%}/g), t = [];
71
+ }, x = (t) => {
72
+ const s = t.match(/{%(.*?)%}/g), e = [];
80
73
  let n = !0;
81
- if (s && s.forEach((a) => {
82
- const i = a.match(B), r = a.match(_), O = (i == null ? void 0 : i.join("")) || "";
83
- (!i || a !== O) && !r && (c({
84
- type: l.Alert,
85
- message: o("newsletter.display-conditions-invalid-syntax")
86
- }), n = !1), i && i.forEach((f) => {
87
- f.trim() === "=" && (c({
88
- type: l.Alert,
89
- message: o("custom-conditions.wrong-equality-operators")
74
+ if (s && s.forEach((c) => {
75
+ const o = c.match(O), l = c.match(B), L = (o == null ? void 0 : o.join("")) || "";
76
+ (!o || c !== L) && !l && (a({
77
+ type: r.Alert,
78
+ message: i("newsletter.display-conditions-invalid-syntax")
79
+ }), n = !1), o && o.forEach((u) => {
80
+ u.trim() === "=" && (a({
81
+ type: r.Alert,
82
+ message: i("custom-conditions.wrong-equality-operators")
90
83
  }), n = !1);
91
- const g = f.match(/^[a-zA-Z]*$/g);
84
+ const g = u.match(/^[a-zA-Z]*$/g);
92
85
  g && g.forEach((p) => {
93
- w(p) && t.push(p);
86
+ w(p) && e.push(p);
94
87
  });
95
88
  });
96
- }), t.length) {
97
- const a = t.filter((r) => r === "if"), i = t.filter((r) => r === "endif");
98
- a.length !== i.length && (c({
99
- type: l.Alert,
100
- message: o("custom-conditions.missing-if-endif-tag")
89
+ }), e.length) {
90
+ const c = e.filter((l) => l === "if"), o = e.filter((l) => l === "endif");
91
+ c.length !== o.length && (a({
92
+ type: r.Alert,
93
+ message: i("custom-conditions.missing-if-endif-tag")
101
94
  }), n = !1);
102
95
  }
103
96
  return n;
104
- }, F = (e) => {
105
- const s = (e.match(/{% /gm) || []).length, t = (e.match(/ %}/gm) || []).length, n = s === t;
106
- return n || c({
107
- type: l.Warning,
108
- message: o("custom-conditions.no-space-after-braces")
97
+ }, b = (t) => {
98
+ const s = (t.match(/{% /gm) || []).length, e = (t.match(/ %}/gm) || []).length, n = s === e;
99
+ return n || a({
100
+ type: r.Warning,
101
+ message: i("custom-conditions.no-space-after-braces")
109
102
  }), n;
110
- }, I = (e) => (e.match(/({%(.*?)%})/g) || []).filter((t) => t.includes("if")).map((t) => (t.match(/{{.*}}/gm) || []).length).reduce((t, n) => t + n, 0) > 0 ? (c({
111
- type: l.Warning,
112
- message: o("custom-conditions.no-braces-inside-if-tag")
113
- }), !1) : !0, W = () => m.recommendationConfigs && Object.values(m.recommendationConfigs).find((s) => s.filters.find((t) => t.value === "")) !== void 0 ? (c({
114
- type: l.Alert,
115
- message: o("newsletter.fill-all-necessary-fields")
116
- }), !1) : !0, L = (e) => {
103
+ }, N = (t) => (t.match(/({%(.*?)%})/g) || []).filter((e) => e.includes("if")).map((e) => (e.match(/{{.*}}/gm) || []).length).reduce((e, n) => e + n, 0) > 0 ? (a({
104
+ type: r.Warning,
105
+ message: i("custom-conditions.no-braces-inside-if-tag")
106
+ }), !1) : !0, k = () => m.recommendationConfigs && Object.values(m.recommendationConfigs).find((s) => s.filters.find((e) => e.value === "")) !== void 0 ? (a({
107
+ type: r.Alert,
108
+ message: i("newsletter.fill-all-necessary-fields")
109
+ }), !1) : !0, F = (t) => {
117
110
  const s = /src="[^"]*\.(svg|pst)"/gm;
118
- return e.match(s) === null ? !0 : (c({
119
- type: l.Alert,
120
- message: o("newsletter.invalid-image-type")
111
+ return t.match(s) === null ? !0 : (a({
112
+ type: r.Alert,
113
+ message: i("newsletter.invalid-image-type")
121
114
  }), !1);
122
- }, N = (e) => {
123
- const n = new DOMParser().parseFromString(e, "text/html").querySelectorAll(".checkbox-block-v2");
124
- return Array.from(n).find((i) => {
125
- var r;
126
- return !((r = i.id) != null && r.trim());
127
- }) ? (c({
128
- type: l.Alert,
129
- message: o("unsubscribe-templates.select-checkbox-groups")
130
- }), !1) : !0;
131
115
  };
132
- return { validateHtml: async (e, s, t = !1) => {
133
- const n = s.map((i) => i.value);
134
- return await b(e, n, t) && E(e) && A(e) && x(e) && T(e, n) && k(e) && F(e) && I(e) && W() && L(e) && N(e);
135
- } };
116
+ return { validateHtml: async (t, s, e = !1) => await E(t, s, e) && T(t) && I(t) && A(t) && W(t, s) && x(t) && b(t) && N(t) && k() && F(t) };
136
117
  };
137
118
  export {
138
- te as useHtmlValidator
119
+ tt as useHtmlValidator
139
120
  };
@@ -1,12 +1,12 @@
1
- import { useSaveStart as i, useSaveComplete as m } from "./useGuidoActions.js";
2
- import { useTemplatePreparation as n } from "../utils/templatePreparation.js";
3
- import { useHtmlValidator as l } from "./useHtmlValidator.js";
1
+ import { useSaveStart as i, useSaveComplete as l } from "./useGuidoActions.js";
2
+ import { useTemplatePreparation as m } from "../utils/templatePreparation.js";
3
+ import { useHtmlValidator as n } from "./useHtmlValidator.js";
4
4
  const f = () => {
5
- const e = i(), a = m(), { validateHtml: s } = l();
5
+ const e = i(), a = l(), { validateHtml: s } = n();
6
6
  return { save: async (o = !1) => {
7
7
  e();
8
- const { prepareTemplateDetails: r } = n(), t = await r();
9
- if (await s(t.compiledHtml, t.dynamicContentList, !0))
8
+ const { prepareTemplateDetails: r } = m(), t = await r();
9
+ if (await s(t.compiledHtml, [], !0))
10
10
  return o || a(t), t;
11
11
  } };
12
12
  };
@@ -3,20 +3,19 @@ import { useCustomInterfaceAppearance as S } from "./useCustomInterfaceAppearanc
3
3
  import { useStripoEventHandler as C } from "./useStripoEventHandler.js";
4
4
  import { useToaster as E } from "./useToaster.js";
5
5
  import { displayConditions as y } from "../enums/displayConditions.js";
6
- import h from "../extensions/Blocks/Checkbox/extension.js";
7
- import w from "../extensions/DynamicContent/extension.js";
8
- import { useStripoApi as b } from "../services/stripoApi.js";
9
- import k from "../static/styles/customEditorStyle.css.js";
6
+ import h from "../extensions/DynamicContent/extension.js";
7
+ import { useStripoApi as w } from "../services/stripoApi.js";
8
+ import b from "../static/styles/customEditorStyle.css.js";
10
9
  import { useEditorStore as V } from "../stores/editor.js";
11
10
  import { dynamicContentToMergeTags as _ } from "../utils/genericUtil.js";
12
- const H = (s) => {
13
- const { handleError: d } = E(), { getToken: c, getCustomFonts: u } = b(), { handleEvent: l } = C(), m = (r, i = []) => {
14
- const o = V(), { html: e, css: a, forceRecreate: g } = r;
11
+ const R = (s) => {
12
+ const { handleError: d } = E(), { getToken: c, getCustomFonts: u } = w(), { handleEvent: l } = C(), p = (r, i = []) => {
13
+ const e = V(), { html: o, css: a, forceRecreate: g } = r;
15
14
  window.UIEditor.initEditor(
16
15
  document.querySelector("#guido-editor"),
17
16
  {
18
17
  metadata: s,
19
- html: e,
18
+ html: o,
20
19
  css: a,
21
20
  forceRecreate: g,
22
21
  locale: "en",
@@ -28,7 +27,7 @@ const H = (s) => {
28
27
  customAppearanceMergetags: !0,
29
28
  customAppearanceMergetagsBorderColor: "#f1f3fe",
30
29
  customAppearanceMergetagsBackgroundColor: "#f1f3fe",
31
- customViewStyles: k,
30
+ customViewStyles: b,
32
31
  conditionsEnabled: !0,
33
32
  customConditionsEnabled: !0,
34
33
  conditionCategories: y,
@@ -56,50 +55,50 @@ const H = (s) => {
56
55
  onTemplateLoaded() {
57
56
  try {
58
57
  const { importCss: t } = S(), { activateCustomViewStyles: n } = f();
59
- t(), n(), s.onReady(), o.isStripoInitialized = !0, o.loadingStatus = !1, setTimeout(() => {
60
- o.hasChanges = !1;
58
+ t(), n(), s.onReady(), e.isStripoInitialized = !0, e.loadingStatus = !1, setTimeout(() => {
59
+ e.hasChanges = !1;
61
60
  }, 1e3);
62
61
  } catch (t) {
63
62
  d(t, "Failed to load custom interface appearance");
64
63
  }
65
64
  },
66
65
  onCodeEditorVisibilityChanged(t) {
67
- o.isCodeEditorOpen = t;
66
+ e.isCodeEditorOpen = t;
68
67
  },
69
68
  onEditorVisualModeChanged(t) {
70
- o.editorVisualMode = t.toLowerCase();
69
+ e.editorVisualMode = t.toLowerCase();
71
70
  },
72
71
  onVersionHistoryVisibilityChanged(t) {
73
- o.isVersionHistoryOpen = t;
72
+ e.isVersionHistoryOpen = t;
74
73
  },
75
74
  onDataChanged() {
76
- o.hasChanges = !0;
75
+ e.hasChanges = !0;
77
76
  },
78
77
  onEvent: l,
79
78
  ignoreClickOutsideSelectors: ["#guido-dynamic-content-modal", ".in-on-board-wrapper"],
80
- extensions: [w, h]
79
+ extensions: [h]
81
80
  }
82
81
  );
83
- }, p = (r) => new Promise((i, o) => {
82
+ }, m = (r) => new Promise((i, e) => {
84
83
  if (document.getElementById("UiEditorScript")) {
85
84
  r(), i();
86
85
  return;
87
86
  }
88
- const e = document.createElement("script");
89
- e.id = "UiEditorScript", e.type = "module", e.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", e.onload = () => {
87
+ const o = document.createElement("script");
88
+ o.id = "UiEditorScript", o.type = "module", o.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", o.onload = () => {
90
89
  r(), i();
91
- }, e.onerror = () => {
90
+ }, o.onerror = () => {
92
91
  const a = new Error("Failed to load Stripo UIEditor script");
93
- o(a);
94
- }, document.body.appendChild(e);
92
+ e(a);
93
+ }, document.body.appendChild(o);
95
94
  });
96
95
  return { initPlugin: async (r) => {
97
- await p(async () => {
96
+ await m(async () => {
98
97
  const i = await u();
99
- m(r, i);
98
+ p(r, i);
100
99
  });
101
100
  } };
102
101
  };
103
102
  export {
104
- H as useStripo
103
+ R as useStripo
105
104
  };
@@ -1,30 +1,16 @@
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;
1
+ var o = Object.defineProperty;
2
+ var m = (i, t, e) => t in i ? o(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var r = (i, t, e) => m(i, typeof t != "symbol" ? t + "" : t, e);
4
+ import { dynamicContentToMergeTags as l } from "../../utils/genericUtil.js";
5
+ import { d as n } from "../../_virtual/index.js";
6
+ import { ExternalMergeTagsLibrary as g } from "./dynamic-content-modal.js";
7
+ const a = "external-dynamic-content-ui-element", c = "button-add-dynamic-content";
8
+ class p extends n.UIElementTagRegistry {
9
+ registerUiElements(t) {
10
+ t[n.UIElementType.MERGETAGS] = a;
25
11
  }
26
12
  }
27
- class k extends l {
13
+ class u extends n.UIElement {
28
14
  constructor() {
29
15
  super(...arguments);
30
16
  r(this, "mergeTagsButton", null);
@@ -34,42 +20,42 @@ class k extends l {
34
20
  r(this, "selectedDynamicContent", { value: "", text: "" });
35
21
  }
36
22
  getId() {
37
- return s;
23
+ return a;
38
24
  }
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);
25
+ onRender(e) {
26
+ var s;
27
+ this.listener = this._onClick.bind(this), this.mergeTagsButton = e.querySelector("#guido__btn-add-dynamic-content"), (s = this.mergeTagsButton) == null || s.addEventListener("click", this.listener);
42
28
  }
43
29
  onDestroy() {
44
- var t;
45
- (t = this.mergeTagsButton) == null || t.removeEventListener("click", this.listener);
30
+ var e;
31
+ (e = this.mergeTagsButton) == null || e.removeEventListener("click", this.listener);
46
32
  }
47
33
  _onClick() {
48
34
  this.openMergeTagLibrary();
49
35
  }
50
36
  openMergeTagLibrary() {
51
- this.mergeTagsLibrary || (this.mergeTagsLibrary = new p()), this.mergeTagsLibrary.openMergeTagsLibrary(
37
+ this.mergeTagsLibrary || (this.mergeTagsLibrary = new g()), this.mergeTagsLibrary.openMergeTagsLibrary(
52
38
  this.selectedDynamicContent,
53
- (t) => {
54
- this.api.onValueChanged(g([t])[0]);
39
+ (e) => {
40
+ this.api.onValueChanged(l([e])[0]);
55
41
  }
56
42
  );
57
43
  }
58
44
  getTemplate() {
59
45
  return `
60
46
  <div>
61
- <${i.BUTTON}
47
+ <${n.UIElementType.BUTTON}
62
48
  id="guido__btn-add-dynamic-content"
63
49
  class="btn btn-primary"
64
- ${c.BUTTON.name}="${T}">
65
- <${i.ICON} src="plus" class="icon icon-button color-primary">
66
- </${i.ICON}>
50
+ ${n.UEAttr.BUTTON.name}="${c}">
51
+ <${n.UIElementType.ICON} src="plus" class="icon icon-button color-primary">
52
+ </${n.UIElementType.ICON}>
67
53
  ${this.api.translate("Add Dynamic Content")}
68
- </${i.BUTTON}>
54
+ </${n.UIElementType.BUTTON}>
69
55
  </div>`;
70
56
  }
71
57
  }
72
58
  export {
73
- O as DynamicContentTagRegistry,
74
- k as DynamicContentUiElementExtension
59
+ p as DynamicContentTagRegistry,
60
+ u as DynamicContentUiElementExtension
75
61
  };
@@ -1,23 +1,11 @@
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({
1
+ import { d as t } from "../../_virtual/index.js";
2
+ import { DynamicContentUiElementExtension as n, DynamicContentTagRegistry as i } from "./dynamic-content.js";
3
+ import e from "./dynamic-content.css.js";
4
+ const s = new t.ExtensionBuilder().addUiElement(n).withStyles(e).withLocalization({
17
5
  en: {
18
6
  "Add Dynamic Content": "Add Dynamic Content"
19
7
  }
20
- }).withUiElementTagRegistry(o).build();
8
+ }).withUiElementTagRegistry(i).build();
21
9
  export {
22
- w as default
10
+ s as default
23
11
  };
package/dist/guido.css CHANGED
@@ -1 +1 @@
1
- [data-v-2c168944] .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
+ [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-cc1f9260],.guido-editor__container[data-v-cc1f9260]{width:100%;height:calc(100vh - 128px)}.guido-editor__no-header[data-v-cc1f9260]{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,75 +1,51 @@
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
- }
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
- A as Extension
50
+ m as __require
75
51
  };