@useinsider/guido 1.0.0-beta.f2fcf4d → 1.0.0-beta.f3dd8d9

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 (277) hide show
  1. package/README.md +535 -82
  2. package/dist/@types/generic.d.ts +13 -4
  3. package/dist/App.vue.d.ts +1 -1
  4. package/dist/_virtual/AddCustomFont.js +4 -0
  5. package/dist/_virtual/AiAssistantValueType.js +4 -0
  6. package/dist/_virtual/BackgroundColorBuiltInControl.js +4 -0
  7. package/dist/_virtual/BackgroundImageBuiltInControl.js +4 -0
  8. package/dist/_virtual/Block.js +4 -0
  9. package/dist/_virtual/BlockAttributes.js +4 -0
  10. package/dist/_virtual/BlockCompositionType.js +4 -0
  11. package/dist/_virtual/BlockPaddingsBuiltInControl.js +4 -0
  12. package/dist/_virtual/BlockRenderer.js +4 -0
  13. package/dist/_virtual/BlockType.js +4 -0
  14. package/dist/_virtual/BlocksPanel.js +4 -0
  15. package/dist/_virtual/BuiltInControl.js +4 -0
  16. package/dist/_virtual/BuiltInControlTypes.js +4 -0
  17. package/dist/_virtual/ButtonBorderBuiltInControl.js +4 -0
  18. package/dist/_virtual/ButtonColorBuiltInControl.js +4 -0
  19. package/dist/_virtual/ButtonFontColorBuiltInControl.js +4 -0
  20. package/dist/_virtual/ButtonInternalIndentsBuiltInControl.js +4 -0
  21. package/dist/_virtual/ButtonTextBuiltInControl.js +4 -0
  22. package/dist/_virtual/ContextAction.js +4 -0
  23. package/dist/_virtual/ContextActionType.js +4 -0
  24. package/dist/_virtual/Control.js +4 -0
  25. package/dist/_virtual/EditorStatePropertyType.js +4 -0
  26. package/dist/_virtual/Extension.js +4 -0
  27. package/dist/_virtual/ExtensionBuilder.js +4 -0
  28. package/dist/_virtual/FontFamilyBuiltInControl.js +4 -0
  29. package/dist/_virtual/LinkColorBuiltInControl.js +4 -0
  30. package/dist/_virtual/ModificationDescription.js +4 -0
  31. package/dist/_virtual/PanelPosition.js +4 -0
  32. package/dist/_virtual/PreviewDeviceMode.js +4 -0
  33. package/dist/_virtual/SettingsPanelRegistry.js +4 -0
  34. package/dist/_virtual/SettingsPanelTab.js +4 -0
  35. package/dist/_virtual/SettingsTab.js +4 -0
  36. package/dist/_virtual/StructureBorderBuiltInControl.js +4 -0
  37. package/dist/_virtual/StructurePaddingsBuiltInControl.js +4 -0
  38. package/dist/_virtual/TextColorBuiltInControl.js +4 -0
  39. package/dist/_virtual/TextLineSpacingBuiltInControl.js +4 -0
  40. package/dist/_virtual/TextSizeBuiltInControl.js +4 -0
  41. package/dist/_virtual/TextStyleBuiltInControl.js +4 -0
  42. package/dist/_virtual/UIElement.js +4 -0
  43. package/dist/_virtual/UIElementTagRegistry.js +4 -0
  44. package/dist/_virtual/UIElementType.js +4 -0
  45. package/dist/_virtual/UIElementsAttributes.js +4 -0
  46. package/dist/_virtual/index.js +5 -0
  47. package/dist/_virtual/index2.js +4 -0
  48. package/dist/components/Guido.vue.d.ts +22 -2
  49. package/dist/components/Guido.vue.js +7 -7
  50. package/dist/components/Guido.vue2.js +74 -15
  51. package/dist/components/organisms/design-preview/AmpErrorModal.vue.d.ts +16 -0
  52. package/dist/components/organisms/design-preview/AmpErrorModal.vue.js +21 -0
  53. package/dist/components/organisms/design-preview/AmpErrorModal.vue2.js +31 -0
  54. package/dist/components/organisms/design-preview/DesktopPreview.vue.d.ts +16 -0
  55. package/dist/components/organisms/design-preview/DesktopPreview.vue.js +22 -0
  56. package/dist/components/organisms/design-preview/DesktopPreview.vue2.js +29 -0
  57. package/dist/components/organisms/design-preview/EmailPreview.vue.d.ts +16 -0
  58. package/dist/components/organisms/design-preview/EmailPreview.vue.js +17 -0
  59. package/dist/components/organisms/design-preview/EmailPreview.vue2.js +33 -0
  60. package/dist/components/organisms/design-preview/EmailView.vue.d.ts +18 -0
  61. package/dist/components/organisms/design-preview/EmailView.vue.js +19 -0
  62. package/dist/components/organisms/design-preview/EmailView.vue2.js +24 -0
  63. package/dist/components/organisms/design-preview/InboxView.vue.d.ts +17 -0
  64. package/dist/components/organisms/design-preview/InboxView.vue.js +19 -0
  65. package/dist/components/organisms/design-preview/InboxView.vue2.js +23 -0
  66. package/dist/components/organisms/design-preview/MobilePreview.vue.d.ts +17 -0
  67. package/dist/components/organisms/design-preview/MobilePreview.vue.js +17 -0
  68. package/dist/components/organisms/design-preview/MobilePreview.vue2.js +23 -0
  69. package/dist/components/organisms/header/AmpToggle.vue.js +17 -0
  70. package/dist/components/organisms/header/AmpToggle.vue2.js +48 -0
  71. package/dist/components/organisms/header/HeaderWrapper.vue.d.ts +2 -0
  72. package/dist/components/organisms/{top-bar/Header.vue.js → header/HeaderWrapper.vue.js} +7 -7
  73. package/dist/components/organisms/header/HeaderWrapper.vue2.js +14 -0
  74. package/dist/components/organisms/header/LeftSlot.vue.d.ts +2 -0
  75. package/dist/components/organisms/header/LeftSlot.vue.js +17 -0
  76. package/dist/components/organisms/header/LeftSlot.vue2.js +15 -0
  77. package/dist/components/organisms/header/MiddleSlot.vue.d.ts +2 -0
  78. package/dist/components/organisms/header/MiddleSlot.vue.js +17 -0
  79. package/dist/components/organisms/header/MiddleSlot.vue2.js +26 -0
  80. package/dist/components/organisms/header/RightSlot.vue.d.ts +2 -0
  81. package/dist/components/organisms/header/RightSlot.vue.js +17 -0
  82. package/dist/components/organisms/header/RightSlot.vue2.js +35 -0
  83. package/dist/components/organisms/header/ViewOptions.vue.d.ts +2 -0
  84. package/dist/components/organisms/header/ViewOptions.vue.js +18 -0
  85. package/dist/components/organisms/header/ViewOptions.vue2.js +15 -0
  86. package/dist/components/organisms/header/version-history/RestoreButton.vue.d.ts +2 -0
  87. package/dist/components/organisms/header/version-history/RestoreButton.vue.js +19 -0
  88. package/dist/components/organisms/header/version-history/RestoreButton.vue2.js +14 -0
  89. package/dist/components/organisms/header/version-history/VersionHistory.vue.d.ts +14 -0
  90. package/dist/components/organisms/header/version-history/VersionHistory.vue.js +22 -0
  91. package/dist/components/organisms/header/version-history/VersionHistory.vue2.js +18 -0
  92. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.d.ts +16 -0
  93. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue.js +18 -0
  94. package/dist/components/organisms/header/version-history/VersionHistoryItem.vue2.js +16 -0
  95. package/dist/components/organisms/header/version-history/ViewOptions.vue.d.ts +2 -0
  96. package/dist/components/organisms/header/version-history/ViewOptions.vue.js +18 -0
  97. package/dist/components/organisms/header/version-history/ViewOptions.vue2.js +23 -0
  98. package/dist/composables/useActionsApi.d.ts +5 -0
  99. package/dist/composables/useActionsApi.js +38 -0
  100. package/dist/composables/useCustomInterfaceAppearance.js +45 -9
  101. package/dist/composables/useDebounce.d.ts +4 -0
  102. package/dist/composables/useDebounce.js +12 -0
  103. package/dist/composables/useExport.d.ts +3 -0
  104. package/dist/composables/useExport.js +45 -0
  105. package/dist/composables/useGuidoActions.d.ts +46 -0
  106. package/dist/composables/useGuidoActions.js +37 -0
  107. package/dist/composables/useHtmlCompiler.d.ts +4 -0
  108. package/dist/composables/useHtmlCompiler.js +16 -0
  109. package/dist/composables/useHttp.js +84 -0
  110. package/dist/composables/useMobileGmailFit.d.ts +5 -0
  111. package/dist/composables/useMobileGmailFit.js +69 -0
  112. package/dist/composables/usePartner.d.ts +4 -0
  113. package/dist/composables/usePartner.js +16 -0
  114. package/dist/composables/usePreviewMode.d.ts +6 -0
  115. package/dist/composables/usePreviewMode.js +19 -0
  116. package/dist/composables/useProvideInject.d.ts +14 -0
  117. package/dist/composables/useProvideInject.js +17 -0
  118. package/dist/composables/useStripo.d.ts +2 -2
  119. package/dist/composables/useStripo.js +73 -50
  120. package/dist/composables/useToaster.d.ts +1 -0
  121. package/dist/composables/useToaster.js +37 -0
  122. package/dist/composables/useTranslations.d.ts +1 -3
  123. package/dist/composables/useTranslations.js +18 -0
  124. package/dist/composables/useVersionHistoryApi.d.ts +8 -0
  125. package/dist/composables/useVersionHistoryApi.js +53 -0
  126. package/dist/config/compiler/htmlCompilerRules.d.ts +2 -0
  127. package/dist/config/compiler/htmlCompilerRules.js +145 -0
  128. package/dist/config/compiler/outlookCompilerRules.d.ts +0 -0
  129. package/dist/enums/defaults.d.ts +4 -0
  130. package/dist/enums/defaults.js +8 -0
  131. package/dist/enums/displayConditions.d.ts +2 -0
  132. package/dist/enums/displayConditions.js +80 -0
  133. package/dist/enums/emailPreview.d.ts +3 -0
  134. package/dist/enums/emailPreview.js +6 -0
  135. package/dist/enums/gmailMobilePreview.d.ts +7 -0
  136. package/dist/enums/gmailMobilePreview.js +17 -0
  137. package/dist/extensions/DynamicContent/dynamic-content-modal.d.ts +6 -0
  138. package/dist/extensions/DynamicContent/dynamic-content-modal.js +27 -0
  139. package/dist/extensions/DynamicContent/dynamic-content.css.js +24 -0
  140. package/dist/extensions/DynamicContent/dynamic-content.d.ts +16 -0
  141. package/dist/extensions/DynamicContent/dynamic-content.js +63 -0
  142. package/dist/extensions/DynamicContent/extension.d.ts +2 -0
  143. package/dist/extensions/DynamicContent/extension.js +11 -0
  144. package/dist/guido.css +1 -1
  145. package/dist/guido.png +0 -0
  146. package/dist/inbox-mockup.svg +39 -0
  147. package/dist/library.d.ts +1 -0
  148. package/dist/mock/api/custom-fonts.d.ts +2 -0
  149. package/dist/mock/api/default-template.d.ts +2 -0
  150. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/Extension.js +51 -0
  151. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ExtensionBuilder.js +52 -0
  152. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/Block.js +41 -0
  153. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlockRenderer.js +18 -0
  154. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/BlocksPanel.js +32 -0
  155. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/blocks/ContextAction.js +18 -0
  156. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AddCustomFont.js +8 -0
  157. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/AiAssistantValueType.js +13 -0
  158. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockAttributes.js +34 -0
  159. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockCompositionType.js +13 -0
  160. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BlockType.js +13 -0
  161. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/BuiltInControlTypes.js +104 -0
  162. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/ContextActionType.js +13 -0
  163. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/EditorStatePropertyType.js +13 -0
  164. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PanelPosition.js +13 -0
  165. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/PreviewDeviceMode.js +13 -0
  166. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/SettingsTab.js +13 -0
  167. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementType.js +13 -0
  168. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/constants/UIElementsAttributes.js +45 -0
  169. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundColorBuiltInControl.js +43 -0
  170. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BackgroundImageBuiltInControl.js +46 -0
  171. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BlockPaddingsBuiltInControl.js +44 -0
  172. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/BuiltInControl.js +22 -0
  173. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonBorderBuiltInControl.js +46 -0
  174. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonColorBuiltInControl.js +46 -0
  175. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonFontColorBuiltInControl.js +45 -0
  176. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonInternalIndentsBuiltInControl.js +45 -0
  177. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/ButtonTextBuiltInControl.js +45 -0
  178. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/Control.js +20 -0
  179. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/FontFamilyBuiltInControl.js +43 -0
  180. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/LinkColorBuiltInControl.js +45 -0
  181. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelRegistry.js +18 -0
  182. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/SettingsPanelTab.js +32 -0
  183. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructureBorderBuiltInControl.js +46 -0
  184. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/StructurePaddingsBuiltInControl.js +44 -0
  185. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextColorBuiltInControl.js +43 -0
  186. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextLineSpacingBuiltInControl.js +43 -0
  187. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextSizeBuiltInControl.js +45 -0
  188. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/controls/TextStyleBuiltInControl.js +43 -0
  189. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/index.js +266 -0
  190. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/modifications/ModificationDescription.js +26 -0
  191. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElement.js +22 -0
  192. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/ui-elements/UIElementTagRegistry.js +18 -0
  193. package/dist/node_modules/lodash-es/_Hash.js +20 -0
  194. package/dist/node_modules/lodash-es/_ListCache.js +20 -0
  195. package/dist/node_modules/lodash-es/_Map.js +6 -0
  196. package/dist/node_modules/lodash-es/_MapCache.js +20 -0
  197. package/dist/node_modules/lodash-es/_Symbol.js +5 -0
  198. package/dist/node_modules/lodash-es/_assocIndexOf.js +10 -0
  199. package/dist/node_modules/lodash-es/_baseGetTag.js +10 -0
  200. package/dist/node_modules/lodash-es/_baseIsNative.js +16 -0
  201. package/dist/node_modules/lodash-es/_coreJsData.js +5 -0
  202. package/dist/node_modules/lodash-es/_freeGlobal.js +4 -0
  203. package/dist/node_modules/lodash-es/_getMapData.js +8 -0
  204. package/dist/node_modules/lodash-es/_getNative.js +9 -0
  205. package/dist/node_modules/lodash-es/_getRawTag.js +15 -0
  206. package/dist/node_modules/lodash-es/_getValue.js +6 -0
  207. package/dist/node_modules/lodash-es/_hashClear.js +7 -0
  208. package/dist/node_modules/lodash-es/_hashDelete.js +7 -0
  209. package/dist/node_modules/lodash-es/_hashGet.js +13 -0
  210. package/dist/node_modules/lodash-es/_hashHas.js +9 -0
  211. package/dist/node_modules/lodash-es/_hashSet.js +9 -0
  212. package/dist/node_modules/lodash-es/_isKeyable.js +7 -0
  213. package/dist/node_modules/lodash-es/_isMasked.js +11 -0
  214. package/dist/node_modules/lodash-es/_listCacheClear.js +6 -0
  215. package/dist/node_modules/lodash-es/_listCacheDelete.js +12 -0
  216. package/dist/node_modules/lodash-es/_listCacheGet.js +8 -0
  217. package/dist/node_modules/lodash-es/_listCacheHas.js +7 -0
  218. package/dist/node_modules/lodash-es/_listCacheSet.js +8 -0
  219. package/dist/node_modules/lodash-es/_mapCacheClear.js +13 -0
  220. package/dist/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  221. package/dist/node_modules/lodash-es/_mapCacheGet.js +7 -0
  222. package/dist/node_modules/lodash-es/_mapCacheHas.js +7 -0
  223. package/dist/node_modules/lodash-es/_mapCacheSet.js +8 -0
  224. package/dist/node_modules/lodash-es/_nativeCreate.js +5 -0
  225. package/dist/node_modules/lodash-es/_objectToString.js +7 -0
  226. package/dist/node_modules/lodash-es/_root.js +5 -0
  227. package/dist/node_modules/lodash-es/_toSource.js +17 -0
  228. package/dist/node_modules/lodash-es/eq.js +6 -0
  229. package/dist/node_modules/lodash-es/isFunction.js +12 -0
  230. package/dist/node_modules/lodash-es/isObject.js +7 -0
  231. package/dist/node_modules/lodash-es/memoize.js +18 -0
  232. package/dist/phone-mockup.svg +31 -0
  233. package/dist/services/stripoApi.d.ts +8 -0
  234. package/dist/services/stripoApi.js +49 -0
  235. package/dist/static/styles/base.css.js +11 -0
  236. package/dist/static/styles/components/alert-message.css.js +39 -0
  237. package/dist/static/styles/components/amp-block.css.js +18 -0
  238. package/dist/static/styles/components/base-input.css.js +47 -0
  239. package/dist/static/styles/components/button-group.css.js +54 -0
  240. package/dist/static/styles/components/button.css.js +106 -0
  241. package/dist/static/styles/components/combobox.css.js +49 -0
  242. package/dist/static/styles/components/counter.css.js +42 -0
  243. package/dist/static/styles/components/dropdown-menu.css.js +52 -0
  244. package/dist/static/styles/components/narrow-panel.css.js +38 -0
  245. package/dist/static/styles/components/switcher.css.js +11 -0
  246. package/dist/static/styles/components/tabs.css.js +97 -0
  247. package/dist/static/styles/components/tools.css.js +23 -0
  248. package/dist/static/styles/components/version-history.css.js +30 -0
  249. package/dist/static/styles/components/wide-panel.css.js +135 -0
  250. package/dist/static/styles/variables.css.js +23 -0
  251. package/dist/stores/editor.d.ts +9 -0
  252. package/dist/stores/editor.js +15 -0
  253. package/dist/stores/version-history.d.ts +80 -0
  254. package/dist/stores/version-history.js +28 -0
  255. package/dist/utils/dateUtil.d.ts +1 -0
  256. package/dist/utils/dateUtil.js +16 -0
  257. package/dist/utils/htmlCompiler.d.ts +12 -0
  258. package/dist/utils/htmlCompiler.js +70 -0
  259. package/package.json +6 -5
  260. package/dist/components/organisms/top-bar/Header.vue2.js +0 -14
  261. package/dist/components/organisms/top-bar/HeaderLeftSlot.vue.d.ts +0 -2
  262. package/dist/components/organisms/top-bar/HeaderLeftSlot.vue.js +0 -17
  263. package/dist/components/organisms/top-bar/HeaderLeftSlot.vue2.js +0 -11
  264. package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue.d.ts +0 -2
  265. package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue.js +0 -17
  266. package/dist/components/organisms/top-bar/HeaderMiddleSlot.vue2.js +0 -11
  267. package/dist/components/organisms/top-bar/HeaderRightSlot.vue.d.ts +0 -2
  268. package/dist/components/organisms/top-bar/HeaderRightSlot.vue.js +0 -18
  269. package/dist/components/organisms/top-bar/HeaderRightSlot.vue2.js +0 -14
  270. package/dist/composables/useTemplates.d.ts +0 -5
  271. package/dist/composables/useTemplates.js +0 -27
  272. package/dist/enums/defaults.enum.d.ts +0 -18
  273. package/dist/static/editor.css.js +0 -182
  274. package/dist/static/templates/default/index.html.js +0 -5
  275. package/dist/static/templates/default/style.css.js +0 -119
  276. package/dist/stores/counter.d.ts +0 -12
  277. /package/dist/components/organisms/{top-bar/Header.vue.d.ts → header/AmpToggle.vue.d.ts} +0 -0
@@ -1,68 +1,91 @@
1
- import { useCustomInterfaceAppearance as d } from "./useCustomInterfaceAppearance.js";
2
- const u = (s) => {
3
- const c = () => {
4
- const t = new Headers();
5
- t.append("Content-Type", "application/json");
6
- const o = JSON.stringify({
7
- pluginId: void 0,
8
- secretKey: void 0,
9
- role: void 0,
10
- userId: s
11
- });
12
- return fetch("/v2/stripo/get-token", {
13
- method: "POST",
14
- headers: t,
15
- body: o,
16
- redirect: "follow"
17
- }).then((e) => e.json());
18
- }, i = (t) => {
19
- const o = t.html, n = t.css;
1
+ import { useActionsApi as g } from "./useActionsApi.js";
2
+ import { useCustomInterfaceAppearance as f } from "./useCustomInterfaceAppearance.js";
3
+ import { useToaster as E } from "./useToaster.js";
4
+ import { displayConditions as S } from "../enums/displayConditions.js";
5
+ import y from "../extensions/DynamicContent/extension.js";
6
+ import { useStripoApi as C } from "../services/stripoApi.js";
7
+ import { useEditorStore as w } from "../stores/editor.js";
8
+ const A = (a) => {
9
+ const { handleError: d } = E(), { getToken: c, getCustomFonts: u } = C(), l = (e, r = []) => {
10
+ const i = w(), { html: t, css: s, forceRecreate: m } = e;
20
11
  window.UIEditor.initEditor(
21
12
  document.querySelector("#guido-editor"),
22
13
  {
23
- metadata: {
24
- emailId: s,
25
- userId: "1",
26
- username: "Plugin Demo User"
27
- },
28
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
29
- html: o,
30
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
31
- css: n,
14
+ metadata: a,
15
+ html: t,
16
+ css: s,
17
+ forceRecreate: m,
32
18
  locale: "en",
33
- async onTokenRefreshRequest(e) {
19
+ undoButtonSelector: "#guido__undo-button",
20
+ redoButtonSelector: "#guido__redo-button",
21
+ mobileViewButtonSelector: ".guido__view-option-selection-mobile",
22
+ desktopViewButtonSelector: ".guido__view-option-selection-desktop",
23
+ codeEditorButtonSelector: "#guido__code-button",
24
+ customAppearanceMergetags: !0,
25
+ customAppearanceMergetagsBorderColor: "#f1f3fe",
26
+ customAppearanceMergetagsBackgroundColor: "#f1f3fe",
27
+ customViewStyles: `
28
+ .esd-x, .esd-merge-tag {color: #0a2ecc !important; box-shadow: none !important;}
29
+ .esd-merge-tag {border: 1px solid #b5c1f1; border-radius: 4px !important;}
30
+ `,
31
+ conditionsEnabled: !0,
32
+ customConditionsEnabled: !0,
33
+ conditionCategories: S,
34
+ messageSettingsEnabled: !1,
35
+ editorFonts: {
36
+ showDefaultStandardFonts: !0,
37
+ showDefaultNotStandardFonts: !0,
38
+ customFonts: r
39
+ },
40
+ async onTokenRefreshRequest(o) {
34
41
  try {
35
- const r = await c();
36
- e(r.token);
37
- } catch (r) {
38
- console.error("Failed to refresh token:", r);
42
+ const n = await c();
43
+ o(n);
44
+ } catch (n) {
45
+ d(n, "Failed to refresh token");
39
46
  }
40
47
  },
41
48
  onTemplateLoaded() {
42
49
  try {
43
- const { importCss: e } = d();
44
- e();
45
- } catch (e) {
46
- console.error("Failed to load custom interface appearance:", e);
50
+ const { importCss: o } = f(), { activateCustomViewStyles: n } = g();
51
+ o(), n();
52
+ } catch (o) {
53
+ d(o, "Failed to load custom interface appearance");
47
54
  }
48
- }
55
+ },
56
+ onCodeEditorVisibilityChanged(o) {
57
+ i.isCodeEditorOpen = o;
58
+ },
59
+ onEditorVisualModeChanged(o) {
60
+ i.editorVisualMode = o.toLowerCase();
61
+ },
62
+ onVersionHistoryVisibilityChanged(o) {
63
+ i.isVersionHistoryOpen = o;
64
+ },
65
+ ignoreClickOutsideSelectors: ["#guido-dynamic-content-modal"],
66
+ extensions: [y]
49
67
  }
50
68
  );
51
- };
52
- return { initPlugin: (t) => new Promise((o, n) => {
69
+ }, p = (e) => new Promise((r, i) => {
53
70
  if (document.getElementById("UiEditorScript")) {
54
- i(t), o();
71
+ e(), r();
55
72
  return;
56
73
  }
57
- const e = document.createElement("script");
58
- e.id = "UiEditorScript", e.type = "module", e.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", e.onload = () => {
59
- i(t), o();
60
- }, e.onerror = () => {
61
- const r = new Error("Failed to load Stripo UIEditor script");
62
- n(r);
63
- }, document.body.appendChild(e);
64
- }) };
74
+ const t = document.createElement("script");
75
+ t.id = "UiEditorScript", t.type = "module", t.src = "https://plugins.stripo.email/resources/uieditor/latest/UIEditor.js", t.onload = () => {
76
+ e(), r();
77
+ }, t.onerror = () => {
78
+ const s = new Error("Failed to load Stripo UIEditor script");
79
+ i(s);
80
+ }, document.body.appendChild(t);
81
+ });
82
+ return { initPlugin: async (e) => {
83
+ await p(async () => {
84
+ const r = await u();
85
+ l(e, r);
86
+ });
87
+ } };
65
88
  };
66
89
  export {
67
- u as useStripo
90
+ A as useStripo
68
91
  };
@@ -17,4 +17,5 @@ export declare const useToaster: () => {
17
17
  } | undefined)[]>;
18
18
  showToaster: (options?: ToasterOptions) => void;
19
19
  hideToaster: () => void;
20
+ handleError: (error: unknown, context: string) => void;
20
21
  };
@@ -0,0 +1,37 @@
1
+ import { ref as o, watch as T } from "vue";
2
+ const v = () => {
3
+ const t = o(!1), s = o(""), c = o("success"), n = o([]);
4
+ let a = null;
5
+ function i() {
6
+ a && (clearTimeout(a), a = null);
7
+ }
8
+ function u() {
9
+ t.value = !1, n.value = [], s.value = "";
10
+ }
11
+ function l(e = { message: "" }) {
12
+ u(), s.value = e.message, c.value = e.type || "success", n.value = e.actionButton ? [e.actionButton] : [], t.value = !0;
13
+ }
14
+ function f(e, r) {
15
+ const m = e instanceof Error ? e.message : String(e);
16
+ l({
17
+ type: "error",
18
+ message: `${r}: ${m}`
19
+ });
20
+ }
21
+ return T([t, s], ([e, r]) => {
22
+ i(), e && r && (a = setTimeout(() => {
23
+ u();
24
+ }, 6e3));
25
+ }), {
26
+ isToasterVisible: t,
27
+ toasterMessage: s,
28
+ toasterType: c,
29
+ toasterActionButton: n,
30
+ showToaster: l,
31
+ hideToaster: u,
32
+ handleError: f
33
+ };
34
+ };
35
+ export {
36
+ v as useToaster
37
+ };
@@ -1,7 +1,5 @@
1
1
  interface TranslationValues {
2
2
  [key: string]: string | number | boolean;
3
3
  }
4
- export declare const useTranslations: () => {
5
- trans: ((key: string, params?: TranslationValues) => string) & import("lodash").MemoizedFunction;
6
- };
4
+ export declare const useTranslations: () => ((key: string, params?: TranslationValues) => string) & import("lodash").MemoizedFunction;
7
5
  export {};
@@ -0,0 +1,18 @@
1
+ import memoize from "../node_modules/lodash-es/memoize.js";
2
+ import { ref } from "vue";
3
+ const useTranslations = () => {
4
+ const translations = ref(eval(window.GuidoConfig.translationsPath)), trans = (n, t) => {
5
+ const r = translations.value[n];
6
+ return r ? t ? Object.entries(t).reduce(
7
+ (e, [o, i]) => e.replace(new RegExp(`{${o}}`, "g"), String(i)),
8
+ r
9
+ ) : r : (console.warn(`Translation key not found: ${n}`), n);
10
+ };
11
+ return memoize(
12
+ trans,
13
+ (n, t) => !t || Object.keys(t).length === 0 ? n : JSON.stringify({ key: n, params: t })
14
+ );
15
+ };
16
+ export {
17
+ useTranslations
18
+ };
@@ -0,0 +1,8 @@
1
+ export declare const useVersionHistoryApi: () => {
2
+ openVersionHistory: () => void;
3
+ closeVersionHistory: () => void;
4
+ switchToDesktopPreview: () => void;
5
+ switchToMobilePreview: () => void;
6
+ previewVersion: (id: string) => void;
7
+ restoreVersion: (id: string) => void;
8
+ };
@@ -0,0 +1,53 @@
1
+ import { useVersionHistoryStore as p } from "../stores/version-history.js";
2
+ import { useToaster as c } from "./useToaster.js";
3
+ const l = () => {
4
+ const i = p(), { showToaster: s } = c(), t = (e) => {
5
+ i.$reset(), i.updateState(e);
6
+ }, n = () => {
7
+ i.$reset();
8
+ };
9
+ return {
10
+ openVersionHistory: () => {
11
+ window.StripoEditorApi.versionHistoryApi.openVersionHistory(t, n);
12
+ },
13
+ closeVersionHistory: () => {
14
+ window.StripoEditorApi.versionHistoryApi.closeVersionHistory();
15
+ },
16
+ switchToDesktopPreview: () => {
17
+ window.StripoEditorApi.versionHistoryApi.switchToDesktopPreview();
18
+ },
19
+ switchToMobilePreview: () => {
20
+ window.StripoEditorApi.versionHistoryApi.switchToMobilePreview();
21
+ },
22
+ previewVersion: (e) => {
23
+ window.StripoEditorApi.versionHistoryApi.previewVersion(e, (o) => {
24
+ const r = o instanceof Error ? o.message : String(o);
25
+ s({
26
+ type: "error",
27
+ message: `Error compiling email: ${r}`
28
+ });
29
+ });
30
+ },
31
+ restoreVersion: (e) => {
32
+ window.StripoEditorApi.versionHistoryApi.restoreVersion(
33
+ e,
34
+ () => {
35
+ s({
36
+ type: "success",
37
+ message: `${e} patch restored successfully.`
38
+ });
39
+ },
40
+ (o) => {
41
+ const r = o instanceof Error ? o.message : String(o);
42
+ s({
43
+ type: "error",
44
+ message: `Error compiling email: ${r}`
45
+ });
46
+ }
47
+ );
48
+ }
49
+ };
50
+ };
51
+ export {
52
+ l as useVersionHistoryApi
53
+ };
@@ -0,0 +1,2 @@
1
+ import type { CompilerRule } from '@@/Types/html-compiler';
2
+ export declare const defaultHtmlCompilerRules: CompilerRule[];
@@ -0,0 +1,145 @@
1
+ const a = [
2
+ {
3
+ id: "fix-url-encoding-start",
4
+ description: "Replace {%22 with %7B%22 to fix URL encoding",
5
+ type: "replace",
6
+ search: "{%22",
7
+ replacement: "%7B%22",
8
+ replaceAll: !0,
9
+ priority: 10
10
+ },
11
+ {
12
+ id: "fix-url-encoding-end",
13
+ description: "Replace %22} with %22%7D to fix URL encoding",
14
+ type: "replace",
15
+ search: "%22}",
16
+ replacement: "%22%7D",
17
+ replaceAll: !0,
18
+ priority: 10
19
+ },
20
+ {
21
+ id: "fix-tags-start",
22
+ description: "Replace %7B%7B with {{ to fix URL encoding",
23
+ type: "replace",
24
+ search: "%7B%7B",
25
+ replacement: "{{",
26
+ replaceAll: !0,
27
+ priority: 11
28
+ },
29
+ {
30
+ id: "fix-tags-end",
31
+ description: "Replace %7D%7D with }} to fix URL encoding",
32
+ type: "replace",
33
+ search: "%7D%7D",
34
+ replacement: "}}",
35
+ replaceAll: !0,
36
+ priority: 12
37
+ },
38
+ {
39
+ id: "unescape-inequality-operators-start",
40
+ description: "Replace &lt; with < to fix URL encoding",
41
+ type: "replace",
42
+ search: "&lt;",
43
+ replacement: "<",
44
+ replaceAll: !0,
45
+ priority: 13
46
+ },
47
+ {
48
+ id: "unescape-inequality-operators-end",
49
+ description: "Replace &gt; with > to fix URL encoding",
50
+ type: "replace",
51
+ search: "&gt;",
52
+ replacement: ">",
53
+ replaceAll: !0,
54
+ priority: 14
55
+ },
56
+ {
57
+ id: "remove-apty-iframe",
58
+ description: "Cleanup Apty Iframe Code",
59
+ type: "remove",
60
+ targets: [
61
+ '<iframe src="about:blank" id="letznav-iframe-script" allowtransparency="true" style="width:1px;height:1px"></iframe>',
62
+ 'src="about:blank" id="letznav-iframe-script" allowtransparency="true" style="width:1px;height:1px"></iframe>'
63
+ ],
64
+ priority: 20
65
+ },
66
+ {
67
+ id: "remove-apty-styles",
68
+ description: "Removing Apty Styles",
69
+ type: "regex",
70
+ pattern: '<styles*data-styles="apty_styles"s* type="text/css"s*>((s|.)*?)</style>',
71
+ replacement: "",
72
+ flags: "g",
73
+ priority: 21
74
+ },
75
+ {
76
+ id: "remove-mso-conditions",
77
+ description: "Removing MSO Conditions",
78
+ type: "remove",
79
+ targets: [
80
+ /<!--\[if\s\(mso 16\)\]>\s*<style\s*\S*>\s*a\s*\{\s*text-decoration\s*:\s*none\s*;*\s*\}\s*<\/style>\s*<!\[endif\]-->/g,
81
+ /<!--\[if\sgte mso 9\]>\s*<style\s*\S*>\s*sup\s*\{\s*font-size\s*:\s*100%\s*!important\s*;*\s*\}\s*<\/style>\s*<!\[endif\]-->/g,
82
+ /<!--\[if\sgte mso 9\]>\s*<noscript>\s*<xml>\s*<o:OfficeDocumentSettings>\s*<o:AllowPNG>\s*<\/o:AllowPNG>\s*<o:PixelsPerInch>\d+<\/o:PixelsPerInch>\s*<\/o:OfficeDocumentSettings>\s*<\/xml>\s*<\/noscript>\s*<!\[endif\]-->/g,
83
+ /<!--\[if mso\]>\s*<xml>\s*<w:WordDocument\s+xmlns:w="urn:schemas-microsoft-com:office:word">\s*<w:DontUseAdvancedTypographyReadingMail><\/w:DontUseAdvancedTypographyReadingMail>\s*<\/w:WordDocument>\s*<\/xml>\s*<!\[endif\]-->/g,
84
+ /<\!--\[if \!mso\]><\!--\s*\d*\s*-->\s*<\!--\[if \!mso\]><\!--\s*\d*\s*-->\s*<\!--<!\[endif\]-->/g,
85
+ /<!--\[if\s\!mso\]>\s*<!-- \d -->/g
86
+ ],
87
+ priority: 22
88
+ },
89
+ {
90
+ id: "add-mso-conditions",
91
+ description: "Adding MSO Conditions",
92
+ type: "custom",
93
+ processor: (e) => {
94
+ const t = [
95
+ `<!--[if gte mso 9]>
96
+ <style>sup {
97
+ font-size: 100% !important;
98
+ }</style><![endif]-->`,
99
+ `<!--[if gte mso 9]>
100
+ <noscript>
101
+ <xml>
102
+ <o:OfficeDocumentSettings>
103
+ <o:AllowPNG></o:AllowPNG>
104
+ <o:PixelsPerInch>96</o:PixelsPerInch>
105
+ </o:OfficeDocumentSettings>
106
+ </xml>
107
+ </noscript><![endif]-->`,
108
+ `<!--[if mso]>
109
+ <xml>
110
+ <w:WordDocument xmlns:w="urn:schemas-microsoft-com:office:word">
111
+ <w:DontUseAdvancedTypographyReadingMail></w:DontUseAdvancedTypographyReadingMail>
112
+ </w:WordDocument>
113
+ </xml><![endif]-->`
114
+ ], s = /<head>([\S\s]*)<\/head>/, o = new RegExp(s);
115
+ if (!e.match(o))
116
+ return e;
117
+ let i = e;
118
+ return t.forEach((r) => {
119
+ i = i.replace("</head>", `${r}</head>`);
120
+ }), i;
121
+ },
122
+ priority: 30
123
+ },
124
+ {
125
+ id: "replace-old-image-domain",
126
+ description: "Replacing old image domains",
127
+ type: "replace",
128
+ search: "stripo-editor-image.s3-eu-west-1.amazonaws.com",
129
+ replacement: "email-static.useinsider.com",
130
+ replaceAll: !0,
131
+ priority: 40
132
+ },
133
+ {
134
+ id: "replace-old-v2-image-domain",
135
+ description: "Replacing old image domains",
136
+ type: "replace",
137
+ search: "email.static.useinsider.com",
138
+ replacement: "email-static.useinsider.com",
139
+ replaceAll: !0,
140
+ priority: 41
141
+ }
142
+ ];
143
+ export {
144
+ a as defaultHtmlCompilerRules
145
+ };
File without changes
@@ -0,0 +1,4 @@
1
+ import type { GuidoConfig } from '@@/Types/generic';
2
+ export declare const DefaultGuidoConfig: GuidoConfig;
3
+ export declare const DefaultProductType = "newsletter";
4
+ export declare const DefaultUsername = "Guido User";
@@ -0,0 +1,8 @@
1
+ const t = {
2
+ translationsPath: "window.trans.en"
3
+ }, e = "newsletter", n = "Guido User";
4
+ export {
5
+ t as DefaultGuidoConfig,
6
+ e as DefaultProductType,
7
+ n as DefaultUsername
8
+ };
@@ -0,0 +1,2 @@
1
+ import type { ConditionCategories } from '@@/Types/condition-categories';
2
+ export declare const displayConditions: ConditionCategories;
@@ -0,0 +1,80 @@
1
+ const e = [
2
+ {
3
+ category: "Demographics",
4
+ conditions: [
5
+ {
6
+ id: 1,
7
+ name: "Language",
8
+ description: "Users who are in the English will see the banner",
9
+ beforeScript: '{% if language == "en_US" %}',
10
+ afterScript: "{% endif %}"
11
+ },
12
+ {
13
+ id: 2,
14
+ name: "Country",
15
+ description: "Only people who live in Australia will see the banner",
16
+ beforeScript: '{% if country == "Australia" %}',
17
+ afterScript: "{% endif %}"
18
+ },
19
+ {
20
+ id: 3,
21
+ name: "Country & City",
22
+ description: "Only people who are located in that country and city",
23
+ beforeScript: '{% if country == "United Kingdom" and city == "London" %}',
24
+ afterScript: "{% endif %}"
25
+ },
26
+ {
27
+ id: 4,
28
+ name: "Age (Less than operator)",
29
+ description: "Users whose age is less than 18",
30
+ beforeScript: "{% if age < 18 %}",
31
+ afterScript: "{% endif %}"
32
+ },
33
+ {
34
+ id: 5,
35
+ name: "Age (Equal and greater than operator)",
36
+ description: "Users whose age is equal or greater than 25",
37
+ beforeScript: "{% if age >= 25 %}",
38
+ afterScript: "{% endif %}"
39
+ },
40
+ {
41
+ id: 6,
42
+ name: "Age (Greater than & less than operators)",
43
+ description: "Users whose age is between 18 and 25",
44
+ beforeScript: "{% if age > 18 and age < 25 %}",
45
+ afterScript: "{% endif %}"
46
+ },
47
+ {
48
+ id: 7,
49
+ name: "Gender",
50
+ description: "Users whose gender is Female",
51
+ beforeScript: '{% if gender == "Female" %}',
52
+ afterScript: "{% endif %}"
53
+ },
54
+ {
55
+ id: 8,
56
+ name: "State",
57
+ description: "Users whose state is one of the followings. c_state is a custom attribute. Use this condition if you have the attribute with the same naming. ",
58
+ beforeScript: '{% if c_state == "VIC" or c_state == "NSW" or c_state == "QLD" %}',
59
+ afterScript: "{% endif %}"
60
+ },
61
+ {
62
+ id: 9,
63
+ name: "VIP User",
64
+ description: "Users who are VIP users for that brand. c_is_vip_user = true. c_is_vip_user is a custom attribute. Use this condition if you have the attribute with the same naming.",
65
+ beforeScript: "{% if c_is_vip_user %}",
66
+ afterScript: "{% endif %}"
67
+ },
68
+ {
69
+ id: 10,
70
+ name: "Membership Type",
71
+ description: "Users who belong to gold or silver membership type. c_is_gold_member = true, c_is_silver_member = true. These are custom attributes. Use this condition if you have the attribute with the same naming.",
72
+ beforeScript: "{% if c_is_gold_member or c_is_silver_member %}",
73
+ afterScript: "{% endif %}"
74
+ }
75
+ ]
76
+ }
77
+ ];
78
+ export {
79
+ e as displayConditions
80
+ };
@@ -0,0 +1,3 @@
1
+ export declare const MAX_EMAIL_WEIGHT = 102;
2
+ export declare const INBOX_PREVIEW_PATH = "/inbox-mockup.svg";
3
+ export declare const PHONE_PREVIEW_PATH = "/phone-mockup.svg";
@@ -0,0 +1,6 @@
1
+ const o = 102, E = "/inbox-mockup.svg", _ = "/phone-mockup.svg";
2
+ export {
3
+ E as INBOX_PREVIEW_PATH,
4
+ o as MAX_EMAIL_WEIGHT,
5
+ _ as PHONE_PREVIEW_PATH
6
+ };
@@ -0,0 +1,7 @@
1
+ export declare const DEFAULT_EMAIL_WIDTH = 600;
2
+ export declare const MIN_SCALE = 0.2;
3
+ export declare const RESIZE_DEBOUNCE_MS = 100;
4
+ export declare const INLINE_WIDTH_REGEX: RegExp;
5
+ export declare const TABLE_WIDTH_REGEX: RegExp;
6
+ export declare const META_VIEWPORT_REGEX: RegExp;
7
+ export declare const EMAIL_CONTAINER_SELECTORS: readonly [".wrapper", ".container", "#wrapper", "#container", "[data-email-container]", "[role=\"presentation\"]"];
@@ -0,0 +1,17 @@
1
+ const E = 600, t = 0.2, n = 100, o = /width\s*:\s*(\d+(\.\d+)?)px/i, _ = /^(\d+(\.\d+)?)(px)?$/i, e = /width\s*=\s*device-width/i, i = [
2
+ ".wrapper",
3
+ ".container",
4
+ "#wrapper",
5
+ "#container",
6
+ "[data-email-container]",
7
+ '[role="presentation"]'
8
+ ];
9
+ export {
10
+ E as DEFAULT_EMAIL_WIDTH,
11
+ i as EMAIL_CONTAINER_SELECTORS,
12
+ o as INLINE_WIDTH_REGEX,
13
+ e as META_VIEWPORT_REGEX,
14
+ t as MIN_SCALE,
15
+ n as RESIZE_DEBOUNCE_MS,
16
+ _ as TABLE_WIDTH_REGEX
17
+ };
@@ -0,0 +1,6 @@
1
+ import type { DynamicContent } from '@@/Types/generic';
2
+ export declare class ExternalMergeTagsLibrary {
3
+ selectedDynamicContent: DynamicContent | null;
4
+ dataSelectCallback: (data: DynamicContent) => void;
5
+ openMergeTagsLibrary(dynamicContent: DynamicContent, onDataSelectCallback: (data: DynamicContent) => void): void;
6
+ }
@@ -0,0 +1,27 @@
1
+ var i = Object.defineProperty;
2
+ var d = (t, e, n) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var a = (t, e, n) => d(t, typeof e != "symbol" ? e + "" : e, n);
4
+ class y {
5
+ constructor() {
6
+ a(this, "selectedDynamicContent", null);
7
+ a(this, "dataSelectCallback", () => {
8
+ });
9
+ }
10
+ openMergeTagsLibrary(e, n) {
11
+ this.dataSelectCallback = n, this.selectedDynamicContent = e;
12
+ const s = new CustomEvent("dynamic-content:open", {
13
+ detail: {
14
+ attribute: e
15
+ }
16
+ });
17
+ document.dispatchEvent(s);
18
+ const o = (l) => {
19
+ const c = l.detail;
20
+ this.selectedDynamicContent = c, c.text && c.value && this.dataSelectCallback(c), document.removeEventListener("dynamic-content:close", o);
21
+ };
22
+ document.addEventListener("dynamic-content:close", o);
23
+ }
24
+ }
25
+ export {
26
+ y as ExternalMergeTagsLibrary
27
+ };
@@ -0,0 +1,24 @@
1
+ const n = `
2
+ #guido__btn-add-dynamic-content {
3
+ background-color: transparent;
4
+ }
5
+
6
+ #guido__btn-add-dynamic-content > button {
7
+ color: var(--guido-color-primary-500);
8
+ background-color: transparent;
9
+ box-shadow: none;
10
+ padding: 0;
11
+ border: none;
12
+ }
13
+
14
+ #guido__btn-add-dynamic-content > button:hover {
15
+ text-decoration: underline;
16
+ }
17
+
18
+ .color-primary {
19
+ color: var(--guido-color-primary-500) !important;
20
+ }
21
+ `;
22
+ export {
23
+ n as default
24
+ };
@@ -0,0 +1,16 @@
1
+ import { UIElementType, UIElement, UIElementTagRegistry } from '@stripoinc/ui-editor-extensions';
2
+ export declare class DynamicContentTagRegistry extends UIElementTagRegistry {
3
+ registerUiElements(uiElementsTagsMap: Record<UIElementType, string>): void;
4
+ }
5
+ export declare class DynamicContentUiElementExtension extends UIElement {
6
+ private mergeTagsButton;
7
+ private listener;
8
+ private mergeTagsLibrary;
9
+ private selectedDynamicContent;
10
+ getId(): string;
11
+ onRender(container: HTMLElement): void;
12
+ onDestroy(): void;
13
+ _onClick(): void;
14
+ openMergeTagLibrary(): void;
15
+ getTemplate(): string;
16
+ }