@useinsider/guido 2.1.0-beta.efb0c6b → 2.1.0-beta.f42da92

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 (315) hide show
  1. package/dist/@types/config/schemas.js +17 -17
  2. package/dist/components/organisms/email-preview/PreviewContainer.vue.js +3 -3
  3. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue.js +6 -6
  4. package/dist/components/organisms/email-preview/amp/AmpErrorModal.vue2.js +17 -13
  5. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +6 -6
  6. package/dist/components/organisms/email-preview/amp/AmpToggle.vue2.js +14 -12
  7. package/dist/components/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue.js +18 -0
  8. package/dist/components/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue2.js +15 -0
  9. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +16 -15
  10. package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue2.js +14 -22
  11. package/dist/components/organisms/email-preview/desktop-preview/EmailSizeIndicator.vue.js +3 -3
  12. package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +12 -11
  13. package/dist/components/organisms/email-preview/mobile-preview/InboxView.vue.js +12 -10
  14. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue.js +11 -10
  15. package/dist/components/organisms/email-preview/mobile-preview/MobilePreview.vue2.js +15 -14
  16. package/dist/components/organisms/extensions/recommendation/FilterSelectionDrawer.vue2.js +15 -14
  17. package/dist/components/organisms/header/EditorActions.vue.js +21 -0
  18. package/dist/components/organisms/header/EditorActions.vue2.js +41 -0
  19. package/dist/components/organisms/header/EditorToolbar.vue.js +18 -0
  20. package/dist/components/organisms/header/EditorToolbar.vue2.js +17 -0
  21. package/dist/components/organisms/header/HeaderWrapper.vue.js +10 -9
  22. package/dist/components/organisms/header/LeftSlot.vue.js +11 -11
  23. package/dist/components/organisms/header/LeftSlot.vue2.js +27 -23
  24. package/dist/components/organisms/header/MiddleSlot.vue.js +7 -7
  25. package/dist/components/organisms/header/MiddleSlot.vue2.js +11 -15
  26. package/dist/components/organisms/header/RightSlot.vue.js +11 -14
  27. package/dist/components/organisms/header/RightSlot.vue2.js +13 -30
  28. package/dist/components/organisms/header/version-history/VersionHistory.vue.js +5 -5
  29. package/dist/components/organisms/onboarding/NewVersionPopup.vue2.js +15 -15
  30. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +1 -1
  31. package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +20 -19
  32. package/dist/composables/useActionsApi.js +37 -32
  33. package/dist/composables/useHtmlValidator.js +114 -104
  34. package/dist/composables/useRecommendation.js +54 -21
  35. package/dist/config/compiler/recommendationCompilerRules.js +45 -39
  36. package/dist/config/compiler/utils/recommendationCompilerUtils.js +121 -0
  37. package/dist/config/migrator/index.js +9 -8
  38. package/dist/config/migrator/itemsBlockMigrator.js +351 -0
  39. package/dist/config/migrator/recommendationMigrator.js +2 -2
  40. package/dist/enums/academy.js +8 -0
  41. package/dist/enums/extensions/recommendationBlock.js +1 -1
  42. package/dist/enums/onboarding.js +1 -2
  43. package/dist/enums/recommendation.js +16 -15
  44. package/dist/enums/unsubscribe.js +20 -21
  45. package/dist/extensions/Blocks/Items/block.js +28 -41
  46. package/dist/extensions/Blocks/Items/controls/button/link.js +18 -37
  47. package/dist/extensions/Blocks/Items/controls/cardComposition.js +164 -96
  48. package/dist/extensions/Blocks/Items/controls/image/link.js +16 -35
  49. package/dist/extensions/Blocks/Items/controls/name/trimming.js +30 -42
  50. package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +35 -45
  51. package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +56 -59
  52. package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +45 -48
  53. package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +23 -34
  54. package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +47 -57
  55. package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +75 -0
  56. package/dist/extensions/Blocks/Items/controls/settingsControl.js +198 -184
  57. package/dist/extensions/Blocks/Items/enums/controlEnums.js +2 -2
  58. package/dist/extensions/Blocks/Items/enums/productEnums.js +43 -45
  59. package/dist/extensions/Blocks/Items/enums/settingsEnums.js +3 -6
  60. package/dist/extensions/Blocks/Items/extension.js +7 -6
  61. package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +58 -49
  62. package/dist/extensions/Blocks/Items/layouts/vertical.html.js +48 -59
  63. package/dist/extensions/Blocks/Items/settingsPanel.js +28 -32
  64. package/dist/extensions/Blocks/Items/template.js +397 -143
  65. package/dist/extensions/Blocks/Items/utils/nodeConfigUtils.js +176 -0
  66. package/dist/extensions/Blocks/Recommendation/block.js +133 -9
  67. package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +4 -0
  68. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +4 -0
  69. package/dist/extensions/Blocks/Recommendation/constants/defaultConfig.js +66 -0
  70. package/dist/extensions/Blocks/Recommendation/constants/layout.js +22 -0
  71. package/dist/extensions/Blocks/Recommendation/constants/selectors.js +21 -0
  72. package/dist/extensions/Blocks/Recommendation/controls/button/index.js +64 -0
  73. package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +80 -0
  74. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +232 -0
  75. package/dist/extensions/Blocks/Recommendation/controls/image/index.js +19 -0
  76. package/dist/extensions/Blocks/Recommendation/controls/layout/index.js +92 -0
  77. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +102 -0
  78. package/dist/extensions/Blocks/Recommendation/controls/main/currency.js +209 -0
  79. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +52 -0
  80. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +250 -0
  81. package/dist/extensions/Blocks/Recommendation/controls/main/locale.js +70 -0
  82. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +160 -0
  83. package/dist/extensions/Blocks/Recommendation/controls/main/shuffle.js +67 -0
  84. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +307 -0
  85. package/dist/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.js +21 -0
  86. package/dist/extensions/Blocks/Recommendation/controls/name/index.js +46 -0
  87. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +108 -0
  88. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +44 -0
  89. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +48 -0
  90. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +73 -0
  91. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +73 -0
  92. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +48 -0
  93. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +73 -0
  94. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +73 -0
  95. package/dist/extensions/Blocks/Recommendation/controls/price/index.js +44 -0
  96. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +222 -0
  97. package/dist/extensions/Blocks/Recommendation/extension.js +40 -43
  98. package/dist/extensions/Blocks/Recommendation/iconsRegistry.js +19 -3
  99. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +13 -4
  100. package/dist/extensions/Blocks/Recommendation/services/configService.js +240 -0
  101. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +128 -72
  102. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +254 -207
  103. package/dist/extensions/Blocks/Recommendation/templates/grid/elementRenderer.js +228 -0
  104. package/dist/extensions/Blocks/Recommendation/templates/grid/migration.js +251 -0
  105. package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +66 -0
  106. package/dist/extensions/Blocks/Recommendation/templates/index.js +12 -0
  107. package/dist/extensions/Blocks/Recommendation/templates/list/elementRenderer.js +169 -0
  108. package/dist/extensions/Blocks/Recommendation/templates/list/template.js +73 -0
  109. package/dist/extensions/Blocks/Recommendation/templates/utils.js +134 -0
  110. package/dist/extensions/Blocks/Recommendation/types/nodeConfig.js +6 -0
  111. package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +9 -9
  112. package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +36 -0
  113. package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +29 -0
  114. package/dist/extensions/Blocks/Recommendation/utils/tagName.js +46 -0
  115. package/dist/extensions/Blocks/common-control.js +104 -106
  116. package/dist/extensions/Blocks/controlFactories.js +162 -120
  117. package/dist/guido.css +1 -1
  118. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +426 -296
  119. package/dist/package.json.js +1 -1
  120. package/dist/services/recommendationApi.js +11 -8
  121. package/dist/services/templateLibraryApi.js +16 -13
  122. package/dist/src/@types/config/schemas.d.ts +2 -2
  123. package/dist/src/components/organisms/email-preview/desktop-preview/DesktopBrowserHeader.vue.d.ts +2 -0
  124. package/dist/src/components/organisms/header/EditorActions.vue.d.ts +4 -0
  125. package/dist/src/components/organisms/header/EditorToolbar.vue.d.ts +2 -0
  126. package/dist/src/components/organisms/header/RightSlot.vue.d.ts +1 -1
  127. package/dist/src/components/wrappers/WpDrawer.vue.d.ts +1 -1
  128. package/dist/src/composables/useActionsApi.d.ts +1 -0
  129. package/dist/src/composables/useRecommendation.d.ts +1 -0
  130. package/dist/src/config/compiler/utils/recommendationCompilerUtils.d.ts +17 -0
  131. package/dist/src/config/migrator/itemsBlockMigrator.d.ts +6 -0
  132. package/dist/src/enums/academy.d.ts +12 -0
  133. package/dist/src/enums/onboarding.d.ts +0 -1
  134. package/dist/src/enums/unsubscribe.d.ts +0 -1
  135. package/dist/src/extensions/Blocks/Items/block.d.ts +0 -1
  136. package/dist/src/extensions/Blocks/Items/controls/button/link.d.ts +0 -3
  137. package/dist/src/extensions/Blocks/Items/controls/cardComposition.d.ts +13 -4
  138. package/dist/src/extensions/Blocks/Items/controls/image/link.d.ts +0 -3
  139. package/dist/src/extensions/Blocks/Items/controls/name/trimming.d.ts +0 -1
  140. package/dist/src/extensions/Blocks/Items/controls/price/currencyLocation.d.ts +0 -1
  141. package/dist/src/extensions/Blocks/Items/controls/price/currencySymbol.d.ts +0 -1
  142. package/dist/src/extensions/Blocks/Items/controls/price/formattedPrice.d.ts +0 -1
  143. package/dist/src/extensions/Blocks/Items/controls/price/hideDiscount.d.ts +0 -1
  144. package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +1 -2
  145. package/dist/src/extensions/Blocks/Items/controls/price/singlePrice.d.ts +13 -0
  146. package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +10 -16
  147. package/dist/src/extensions/Blocks/Items/enums/controlEnums.d.ts +1 -0
  148. package/dist/src/extensions/Blocks/Items/enums/productEnums.d.ts +24 -26
  149. package/dist/src/extensions/Blocks/Items/enums/settingsEnums.d.ts +1 -2
  150. package/dist/src/extensions/Blocks/Items/template.d.ts +22 -1
  151. package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +77 -0
  152. package/dist/src/extensions/Blocks/Recommendation/block.d.ts +67 -0
  153. package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +13 -0
  154. package/dist/src/extensions/Blocks/Recommendation/{constants.d.ts → constants/controlIds.d.ts} +19 -11
  155. package/dist/src/extensions/Blocks/Recommendation/constants/defaultConfig.d.ts +49 -0
  156. package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +13 -0
  157. package/dist/src/extensions/Blocks/Recommendation/constants/layout.d.ts +41 -0
  158. package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +35 -0
  159. package/dist/src/extensions/Blocks/Recommendation/controls/button/index.d.ts +143 -0
  160. package/dist/src/extensions/Blocks/Recommendation/controls/cardBackground/index.d.ts +31 -0
  161. package/dist/src/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.d.ts +25 -0
  162. package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +95 -0
  163. package/dist/src/extensions/Blocks/Recommendation/controls/image/index.d.ts +35 -0
  164. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +24 -0
  165. package/dist/src/extensions/Blocks/Recommendation/controls/layout/index.d.ts +37 -0
  166. package/dist/src/extensions/Blocks/Recommendation/controls/main/algorithm.d.ts +29 -0
  167. package/dist/src/extensions/Blocks/Recommendation/controls/main/currency.d.ts +52 -0
  168. package/dist/src/extensions/Blocks/Recommendation/controls/main/filters.d.ts +22 -0
  169. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +79 -0
  170. package/dist/src/extensions/Blocks/Recommendation/controls/main/locale.d.ts +24 -0
  171. package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +60 -0
  172. package/dist/src/extensions/Blocks/Recommendation/controls/main/shuffle.d.ts +23 -0
  173. package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +221 -0
  174. package/dist/src/extensions/Blocks/Recommendation/controls/mobileLayout/cssRules.d.ts +29 -0
  175. package/dist/src/extensions/Blocks/Recommendation/controls/name/index.d.ts +97 -0
  176. package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +34 -0
  177. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/index.d.ts +95 -0
  178. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +100 -0
  179. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.d.ts +15 -0
  180. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.d.ts +15 -0
  181. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextAfterControl.d.ts +15 -0
  182. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextBeforeControl.d.ts +15 -0
  183. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +100 -0
  184. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.d.ts +15 -0
  185. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.d.ts +15 -0
  186. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextAfterControl.d.ts +15 -0
  187. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextBeforeControl.d.ts +15 -0
  188. package/dist/src/extensions/Blocks/Recommendation/controls/price/index.d.ts +95 -0
  189. package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +83 -0
  190. package/dist/src/extensions/Blocks/Recommendation/controls/spacingControl.d.ts +60 -0
  191. package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +9 -0
  192. package/dist/src/extensions/Blocks/Recommendation/services/configService.d.ts +151 -0
  193. package/dist/src/extensions/Blocks/Recommendation/services/index.d.ts +6 -0
  194. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +138 -468
  195. package/dist/src/extensions/Blocks/Recommendation/templates/grid/elementRenderer.d.ts +20 -0
  196. package/dist/src/extensions/Blocks/Recommendation/templates/{migrationTemplate.d.ts → grid/migration.d.ts} +11 -4
  197. package/dist/src/extensions/Blocks/Recommendation/templates/grid/template.d.ts +33 -0
  198. package/dist/src/extensions/Blocks/Recommendation/templates/index.d.ts +41 -0
  199. package/dist/src/extensions/Blocks/Recommendation/templates/list/elementRenderer.d.ts +8 -0
  200. package/dist/src/extensions/Blocks/Recommendation/templates/list/migration.d.ts +25 -0
  201. package/dist/src/extensions/Blocks/Recommendation/templates/list/template.d.ts +18 -0
  202. package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +66 -0
  203. package/dist/src/extensions/Blocks/Recommendation/types/index.d.ts +7 -0
  204. package/dist/src/extensions/Blocks/Recommendation/types/nodeConfig.d.ts +166 -0
  205. package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.d.ts +19 -0
  206. package/dist/src/extensions/Blocks/Recommendation/utils/priceFormatter.d.ts +33 -0
  207. package/dist/src/extensions/Blocks/Recommendation/utils/stylePreserver.d.ts +113 -0
  208. package/dist/src/extensions/Blocks/Recommendation/utils/tagName.d.ts +77 -0
  209. package/dist/src/extensions/Blocks/common-control.d.ts +10 -12
  210. package/dist/src/stores/editor.d.ts +21 -0
  211. package/dist/static/assets/desktop/desktop-mockup-center.svg.js +4 -0
  212. package/dist/static/assets/desktop/desktop-mockup-left.svg.js +4 -0
  213. package/dist/static/assets/desktop/desktop-mockup-right.svg.js +4 -0
  214. package/dist/static/assets/mobile/email-mockup.svg.js +4 -0
  215. package/dist/static/assets/mobile/inbox-mockup.svg.js +4 -0
  216. package/dist/static/styles/components/notification.css.js +1 -0
  217. package/dist/static/styles/components/version-history.css.js +10 -2
  218. package/dist/static/styles/components/wide-panel.css.js +18 -6
  219. package/dist/static/styles/customEditorStyle.css.js +39 -2
  220. package/dist/stores/editor.js +1 -0
  221. package/dist/utils/pairProductVariables.js +74 -70
  222. package/dist/utils/templatePreparation.js +19 -18
  223. package/package.json +3 -3
  224. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue.js +0 -17
  225. package/dist/components/organisms/email-preview/desktop-preview/EmailHeaderInfo.vue2.js +0 -20
  226. package/dist/extensions/Blocks/Items/store/items-block.js +0 -75
  227. package/dist/extensions/Blocks/Items/utils/configBlockUtils.js +0 -17
  228. package/dist/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.js +0 -28
  229. package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +0 -76
  230. package/dist/extensions/Blocks/Items/utils/updateAttributes.js +0 -46
  231. package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -103
  232. package/dist/extensions/Blocks/Recommendation/constants.js +0 -5
  233. package/dist/extensions/Blocks/Recommendation/control.js +0 -306
  234. package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
  235. package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
  236. package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
  237. package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
  238. package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
  239. package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
  240. package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
  241. package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
  242. package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
  243. package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
  244. package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
  245. package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
  246. package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
  247. package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
  248. package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
  249. package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
  250. package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
  251. package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
  252. package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
  253. package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
  254. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
  255. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
  256. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
  257. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
  258. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
  259. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
  260. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
  261. package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
  262. package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
  263. package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
  264. package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
  265. package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
  266. package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
  267. package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
  268. package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +0 -160
  269. package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +0 -152
  270. package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -180
  271. package/dist/src/extensions/Blocks/Items/store/items-block.d.ts +0 -43
  272. package/dist/src/extensions/Blocks/Items/utils/configBlockUtils.d.ts +0 -23
  273. package/dist/src/extensions/Blocks/Items/utils/syncAttributeFromConfigBlock.d.ts +0 -32
  274. package/dist/src/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.d.ts +0 -50
  275. package/dist/src/extensions/Blocks/Items/utils/updateAttributes.d.ts +0 -8
  276. package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +0 -28
  277. package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -35
  278. package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
  279. package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
  280. package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
  281. package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
  282. package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
  283. package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
  284. package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
  285. package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
  286. package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
  287. package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
  288. package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
  289. package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
  290. package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
  291. package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
  292. package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
  293. package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
  294. package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
  295. package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
  296. package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
  297. package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
  298. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
  299. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
  300. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
  301. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
  302. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
  303. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
  304. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
  305. package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
  306. package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
  307. package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
  308. package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
  309. package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
  310. package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
  311. package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
  312. package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +0 -16
  313. package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +0 -44
  314. package/dist/static/assets/inbox-mockup.svg.js +0 -4
  315. package/dist/static/assets/phone-mockup.svg.js +0 -4
@@ -1,17 +1,17 @@
1
- var M = class u {
1
+ var B = class d {
2
2
  /**
3
3
  * Validates that all required methods are properly implemented in the subclass.
4
4
  * @param requiredMethods - Array of method names that must be implemented
5
5
  * @param classRef - Reference to the class constructor for validation caching
6
6
  */
7
- constructor(e, r) {
8
- if (r !== u) {
9
- u.validatedClasses.has(r) || this.validateImplementation(e, r);
10
- const s = u.validationErrors.get(r);
11
- if (s && s.length > 0)
7
+ constructor(t, a) {
8
+ if (a !== d) {
9
+ d.validatedClasses.has(a) || this.validateImplementation(t, a);
10
+ const i = d.validationErrors.get(a);
11
+ if (i && i.length > 0)
12
12
  throw new Error(
13
- `${r.name} has validation errors:
14
- ${s.map((E) => ` - ${E}`).join(`
13
+ `${a.name} has validation errors:
14
+ ${i.map((o) => ` - ${o}`).join(`
15
15
  `)}`
16
16
  );
17
17
  }
@@ -20,23 +20,23 @@ ${s.map((E) => ` - ${E}`).join(`
20
20
  * Validates that all required methods are properly implemented in the subclass.
21
21
  * This validation runs only once per class type and results are cached.
22
22
  */
23
- validateImplementation(e, r) {
24
- var I;
25
- const s = [], E = r.name, T = Object.getPrototypeOf(this);
26
- e.forEach((d) => {
27
- if (typeof this[d] != "function") {
28
- s.push(`Method ${d}() is not defined`);
23
+ validateImplementation(t, a) {
24
+ var M;
25
+ const i = [], o = a.name, Y = Object.getPrototypeOf(this);
26
+ t.forEach((u) => {
27
+ if (typeof this[u] != "function") {
28
+ i.push(`Method ${u}() is not defined`);
29
29
  return;
30
30
  }
31
- T[d] === r.prototype[d] && s.push(`Method ${d}() must be implemented (currently using base class error-throwing implementation)`);
32
- }), u.validatedClasses.add(r), s.length > 0 ? (u.validationErrors.set(r, s), console.error(`[${E} Validation] ${E} validation failed:`, s)) : typeof process < "u" && ((I = process.env) == null ? void 0 : I.NODE_ENV) === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
31
+ Y[u] === a.prototype[u] && i.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
32
+ }), d.validatedClasses.add(a), i.length > 0 ? (d.validationErrors.set(a, i), console.error(`[${o} Validation] ${o} validation failed:`, i)) : typeof process < "u" && ((M = process.env) == null ? void 0 : M.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
33
33
  }
34
34
  };
35
- M.validatedClasses = /* @__PURE__ */ new Set();
36
- M.validationErrors = /* @__PURE__ */ new Map();
37
- var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUCTURE", t.CONTAINER = "CONTAINER", t))(et || {}), y = class c extends a {
35
+ B.validatedClasses = /* @__PURE__ */ new Set();
36
+ B.validationErrors = /* @__PURE__ */ new Map();
37
+ var s = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCTURE", e.CONTAINER = "CONTAINER", e))($ || {}), v = class T extends s {
38
38
  constructor() {
39
- super(c.REQUIRED_METHODS, c);
39
+ super(T.REQUIRED_METHODS, T);
40
40
  }
41
41
  /**
42
42
  * Determines if the block should be available for use in the editor.
@@ -86,28 +86,28 @@ var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUC
86
86
  * @param node - The immutable HTML node representing the selected block instance.
87
87
  */
88
88
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
89
- onSelect(e) {
89
+ onSelect(t) {
90
90
  }
91
91
  /**
92
92
  * Lifecycle hook called when an instance of this block is copied.
93
93
  * @param modifier - The HTML node modifier to apply changes to the copied block instance.
94
94
  */
95
95
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
96
- onCopy(e) {
96
+ onCopy(t) {
97
97
  }
98
98
  /**
99
99
  * Lifecycle hook called when an instance of this block is deleted.
100
100
  * @param node - The immutable HTML node representing the block instance being deleted.
101
101
  */
102
102
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
103
- onDelete(e) {
103
+ onDelete(t) {
104
104
  }
105
105
  /**
106
106
  * Lifecycle hook called after a new instance of this block is created and added to the document (e.g., via drag-and-drop).
107
107
  * @param node - The immutable HTML node representing the newly created block instance.
108
108
  */
109
109
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
110
- onCreated(e) {
110
+ onCreated(t) {
111
111
  }
112
112
  /**
113
113
  * Lifecycle hook called when any part of the document template has changed.
@@ -115,7 +115,7 @@ var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUC
115
115
  * @param node - The immutable HTML node representing current node instance
116
116
  */
117
117
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
118
- onDocumentChanged(e) {
118
+ onDocumentChanged(t) {
119
119
  }
120
120
  /**
121
121
  * @description Determines if block is atomic or composite.
@@ -183,7 +183,7 @@ var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUC
183
183
  *
184
184
  * @return {string} The name of the block panel.
185
185
  */
186
- getSettingsPanelName() {
186
+ getSettingsPanelTitleHtml() {
187
187
  return "";
188
188
  }
189
189
  /**
@@ -195,28 +195,28 @@ var a = M, et = /* @__PURE__ */ ((t) => (t.BLOCK = "BLOCK", t.STRUCTURE = "STRUC
195
195
  throw new Error("Method getDescription() must be implemented by the subclass");
196
196
  }
197
197
  };
198
- y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
199
- var Xt = y, rt = class _ extends a {
198
+ v.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
199
+ var Qe = v, W = class c extends s {
200
200
  constructor() {
201
- super(_.REQUIRED_METHODS, _);
201
+ super(c.REQUIRED_METHODS, c);
202
202
  }
203
203
  /**
204
204
  * @deprecated - use {@link getPreviewInnerHtml} instead
205
205
  */
206
206
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
207
- getPreviewHtml(e) {
207
+ getPreviewHtml(t) {
208
208
  }
209
209
  /**
210
210
  * @description returns custom content to be displayed inside the {@link Block} root TD element
211
211
  */
212
- getPreviewInnerHtml(e) {
212
+ getPreviewInnerHtml(t) {
213
213
  throw new Error("Method getPreviewInnerHtml() must be implemented by the subclass");
214
214
  }
215
215
  };
216
- rt.REQUIRED_METHODS = ["getPreviewInnerHtml"];
217
- var nt = class h extends a {
216
+ W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
217
+ var z = class O extends s {
218
218
  constructor() {
219
- super(h.REQUIRED_METHODS, h);
219
+ super(O.REQUIRED_METHODS, O);
220
220
  }
221
221
  getId() {
222
222
  throw new Error("Method getId() must be implemented by the subclass");
@@ -227,93 +227,148 @@ var nt = class h extends a {
227
227
  getLabel() {
228
228
  throw new Error("Method getLabel() must be implemented by the subclass");
229
229
  }
230
- onClick(e) {
230
+ onClick(t) {
231
231
  throw new Error("Method onClick() must be implemented by the subclass");
232
232
  }
233
233
  };
234
- nt.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
235
- var st = {
234
+ z.REQUIRED_METHODS = ["getId", "getIcon", "getLabel", "onClick"];
235
+ var Z = {
236
236
  src: "src",
237
237
  alt: "alt",
238
238
  href: "href",
239
- width: "width"
240
- }, at = {
241
- href: "href"
242
- }, kt = {
243
- BLOCK_IMAGE: st,
244
- BLOCK_BUTTON: at
245
- }, U = "esd-block-button", p = "esd-block-text", K = "esd-block-image", it = "esd-structure", ot = "esd-block-video", Et = "esd-block-social", lt = "esd-block-banner", dt = "esd-block-timer", ut = "esd-block-menu", It = "esd-block-html", Ot = "esd-block-spacer", Tt = "esd-container-frame", ct = "esd-stripe", _t = "esd-amp-form", O = ((t) => (t.BUTTON = `.${U}`, t.TEXT = `.${p}`, t.IMAGE = `.${K}`, t.STRUCTURE = `.${it}`, t.VIDEO = `.${ot}`, t.SOCIAL = `.${Et}`, t.BANNER = `.${lt}`, t.TIMER = `.${dt}`, t.MENU = `.${ut}`, t.HTML = `.${It}`, t.SPACER = `.${Ot}`, t.CONTAINER = `.${Tt}`, t.STRIPE = `.${ct}`, t.FORM = `.${_t}`, t))(O || {}), ht = /* @__PURE__ */ ((t) => (t.BLOCK_IMAGE = "BLOCK_IMAGE", t.BLOCK_TEXT = "BLOCK_TEXT", t.BLOCK_BUTTON = "BLOCK_BUTTON", t.BLOCK_SPACER = "BLOCK_SPACER", t.BLOCK_VIDEO = "BLOCK_VIDEO", t.BLOCK_SOCIAL = "BLOCK_SOCIAL", t.BLOCK_BANNER = "BLOCK_BANNER", t.BLOCK_TIMER = "BLOCK_TIMER", t.BLOCK_MENU = "BLOCK_MENU", t.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", t.BLOCK_HTML = "BLOCK_HTML", t.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", t.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", t.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", t.CONTAINER = "CONTAINER", t.FORM_CONTAINER = "FORM_CONTAINER", t.STRUCTURE = "STRUCTURE", t.STRIPE = "STRIPE", t.EMPTY_CONTAINER = "EMPTY_CONTAINER", t.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", t.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", t.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", t))(ht || {}), F = /* @__PURE__ */ ((t) => (t.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", t.APPLY_CONDITION = "applyCondition", t.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", t.BACKGROUND_COLOR = "backgroundColor", t.BACKGROUND_IMAGE = "generalImageContainer", t.TEXT_COLOR = "textColor", t.TEXT_STYLE = "textStyle", t.TEXT_SIZE = "textSize", t.TEXT_LINE_SPACING = "textLineSpacing", t.TEXT_ALIGN = "textAlign", t.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", t.HIDDEN_NODE = "hiddenNode", t.SMART_BLOCK = "smartBlock", t.SYNCHRONIZED_MODULE = "synchronizedModuleForm", t.FONT_FAMILY = "generalFontFamilyForm", t.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", t.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", t))(F || {}), w = /* @__PURE__ */ ((t) => (t.ADJUST_TO_WIDTH = "adjustToWidth", t.ALIGNMENT = "buttonAlignment", t.BORDER = "buttonBorder", t.BORDER_RADIUS = "buttonBorderRadius", t.COLOR = "buttonColor", t.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", t.EXTERNAL_INDENTS = "buttonExternalIndents", t.FIXED_HEIGHT = "buttonFixedHeightForm", t.FONT_COLOR = "buttonFontColor", t.FONT_FAMILY = "buttonFontFamily", t.FONT_SIZE = "buttonFontSize", t.ICON = "buttonIconContainer", t.ICON_ALIGN = "buttonIconAlign", t.ICON_INDENT = "buttonIconIndent", t.ICON_WIDTH = "buttonIconWidth", t.IMAGE = "buttonImageForm", t.INTERNAL_INDENTS = "buttonInternalIndents", t.LINK = "buttonLink", t.MIME_TYPE = "buttonMimeTypeForm", t.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", t.TEXT = "buttonText", t.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", t.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", t.HOVERED_COLOR = "hoveredButtonColorForm", t.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", t))(w || {}), P = /* @__PURE__ */ ((t) => (t.HIDDEN_NODE = "hiddenNodeText", t.PARAGRAPH_STYLE = "paragraphStyleForm", t.ALIGN = "textAlignmentForm", t.ANCHOR_CONTAINER = "textAnchorForm", t.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", t.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", t.FONT_COLOR = "textBlockFontColor", t.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", t.FONT_FAMILY = "textFontFamily", t.FONT_SIZE = "textBlockFontSize", t.DIRECTION = "textBlockDirectionForm", t.INSERT_FORM = "textBlockInsertForm", t.LINK_DATA = "textBlockLinkDataForm", t.FORMAT = "textBlockTextFormatForm", t.FIXED_HEIGHT = "textFixedHeightForm", t.INTERNAL_INDENTS = "textInternalIndents", t.LINE_HEIGHT = "textLineHeightForm", t.LINKS_COLOR = "textLinksFontColorForm", t.MIME_TYPE = "textMimeTypeForm", t.NO_LINE_WRAPS = "textNoLineWrapsForm", t))(P || {}), H = /* @__PURE__ */ ((t) => (t.ALT_TEXT = "altText", t.LINK = "blockLink", t.ALIGNMENT = "imageAlignment", t.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", t.BORDER_RADIUS = "imageBorderRadiusForm", t.IMAGE = "imageImageForm", t.EXTERNAL_INDENTS = "imageExternalIndents", t.MIME_TYPE = "imageMimeTypeForm", t.RESPONSIVE = "imageResponsive", t.ROLLOVER_IMAGE = "imageRolloverImageForm", t.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", t.SIZE = "imageSizeContainer", t))(H || {}), Rt = /* @__PURE__ */ ((t) => (t.BACKGROUND_COLOR = "containerBackgroundColorForm", t.BORDER_FORM = "containerBorderForm", t.BORDER_RADIUS = "containerBorderRadiusForm", t.EXTERNAL_INDENTS = "containerExternalIndentsForm", t.IMAGE_CONTAINER = "containerImageContainerForm", t.MIME_TYPE = "containerMimeTypeForm", t.DISPLAY_CONDITIONS = "displayConditions", t.HIDDEN_NODE = "containerHiddenNodeForm", t))(Rt || {}), n = {
246
- BLOCK_BUTTON: w,
247
- BLOCK_TEXT: P,
239
+ width: "width",
240
+ height: "height"
241
+ }, fe = {
242
+ BLOCK_IMAGE: Z
243
+ }, y = "esd-block-button", U = "esd-block-text", P = "esd-block-image", j = "esd-structure", q = "esd-block-video", J = "esd-block-social", ee = "esd-block-banner", te = "esd-block-timer", re = "esd-block-menu", ae = "esd-block-html", ne = "esd-block-spacer", se = "esd-container-frame", ie = "esd-stripe", Ee = "esd-amp-form", I = ((e) => (e.BUTTON = `.${y}`, e.TEXT = `.${U}`, e.IMAGE = `.${P}`, e.STRUCTURE = `.${j}`, e.VIDEO = `.${q}`, e.SOCIAL = `.${J}`, e.BANNER = `.${ee}`, e.TIMER = `.${te}`, e.MENU = `.${re}`, e.HTML = `.${ae}`, e.SPACER = `.${ne}`, e.CONTAINER = `.${se}`, e.STRIPE = `.${ie}`, e.FORM = `.${Ee}`, e))(I || {}), le = /* @__PURE__ */ ((e) => (e.BLOCK_IMAGE = "BLOCK_IMAGE", e.BLOCK_TEXT = "BLOCK_TEXT", e.BLOCK_BUTTON = "BLOCK_BUTTON", e.BLOCK_SPACER = "BLOCK_SPACER", e.BLOCK_VIDEO = "BLOCK_VIDEO", e.BLOCK_SOCIAL = "BLOCK_SOCIAL", e.BLOCK_BANNER = "BLOCK_BANNER", e.BLOCK_TIMER = "BLOCK_TIMER", e.BLOCK_MENU = "BLOCK_MENU", e.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", e.BLOCK_HTML = "BLOCK_HTML", e.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", e.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", e.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", e.CONTAINER = "CONTAINER", e.FORM_CONTAINER = "FORM_CONTAINER", e.STRUCTURE = "STRUCTURE", e.STRIPE = "STRIPE", e.EMPTY_CONTAINER = "EMPTY_CONTAINER", e.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", e.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", e.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", e))(le || {}), w = /* @__PURE__ */ ((e) => (e.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", e.APPLY_CONDITION = "applyCondition", e.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", e.BACKGROUND_COLOR = "backgroundColor", e.BACKGROUND_IMAGE = "generalImageContainer", e.TEXT_COLOR = "textColor", e.TEXT_STYLE = "textStyle", e.TEXT_SIZE = "textSize", e.TEXT_LINE_SPACING = "textLineSpacing", e.TEXT_ALIGN = "textAlign", e.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", e.HIDDEN_NODE = "hiddenNode", e.SMART_BLOCK = "smartBlock", e.SYNCHRONIZED_MODULE = "synchronizedModuleForm", e.FONT_FAMILY = "generalFontFamilyForm", e.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", e.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", e))(w || {}), K = /* @__PURE__ */ ((e) => (e.ADJUST_TO_WIDTH = "adjustToWidth", e.ALIGNMENT = "buttonAlignment", e.BORDER = "buttonBorder", e.BORDER_RADIUS = "buttonBorderRadius", e.COLOR = "buttonColor", e.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", e.EXTERNAL_INDENTS = "buttonExternalIndents", e.FIXED_HEIGHT = "buttonFixedHeightForm", e.FONT_COLOR = "buttonFontColor", e.FONT_FAMILY = "buttonFontFamily", e.FONT_SIZE = "buttonFontSize", e.ICON = "buttonIconContainer", e.ICON_ALIGN = "buttonIconAlign", e.ICON_INDENT = "buttonIconIndent", e.ICON_WIDTH = "buttonIconWidth", e.IMAGE = "buttonImageForm", e.INTERNAL_INDENTS = "buttonInternalIndents", e.LINK = "buttonLink", e.MIME_TYPE = "buttonMimeTypeForm", e.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", e.TEXT = "buttonText", e.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", e.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", e.HOVERED_COLOR = "hoveredButtonColorForm", e.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", e))(K || {}), F = /* @__PURE__ */ ((e) => (e.HIDDEN_NODE = "hiddenNodeText", e.PARAGRAPH_STYLE = "paragraphStyleForm", e.ALIGN = "textAlignmentForm", e.ANCHOR_CONTAINER = "textAnchorForm", e.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", e.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", e.FONT_COLOR = "textBlockFontColor", e.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", e.FONT_FAMILY = "textFontFamily", e.FONT_SIZE = "textBlockFontSize", e.DIRECTION = "textBlockDirectionForm", e.INSERT_FORM = "textBlockInsertForm", e.LINK_DATA = "textBlockLinkDataForm", e.FORMAT = "textBlockTextFormatForm", e.FIXED_HEIGHT = "textFixedHeightForm", e.INTERNAL_INDENTS = "textInternalIndents", e.LINE_HEIGHT = "textLineHeightForm", e.LINKS_COLOR = "textLinksFontColorForm", e.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(F || {}), H = /* @__PURE__ */ ((e) => (e.ALT_TEXT = "altText", e.LINK = "blockLink", e.ALIGNMENT = "imageAlignment", e.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", e.BORDER_RADIUS = "imageBorderRadiusForm", e.IMAGE = "imageImageForm", e.EXTERNAL_INDENTS = "imageExternalIndents", e.MIME_TYPE = "imageMimeTypeForm", e.RESPONSIVE = "imageResponsive", e.ROLLOVER_IMAGE = "imageRolloverImageForm", e.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", e.SIZE = "imageSizeContainer", e))(H || {}), oe = /* @__PURE__ */ ((e) => (e.BACKGROUND_COLOR = "containerBackgroundColorForm", e.BORDER_FORM = "containerBorderForm", e.BORDER_RADIUS = "containerBorderRadiusForm", e.EXTERNAL_INDENTS = "containerExternalIndentsForm", e.IMAGE_CONTAINER = "containerImageContainerForm", e.MIME_TYPE = "containerMimeTypeForm", e.DISPLAY_CONDITIONS = "displayConditions", e.HIDDEN_NODE = "containerHiddenNodeForm", e))(oe || {}), n = {
244
+ BLOCK_BUTTON: K,
245
+ BLOCK_TEXT: F,
248
246
  BLOCK_IMAGE: H,
249
- GENERAL: F
250
- }, Lt = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(Lt || {}), o = {
247
+ GENERAL: w
248
+ }, de = /* @__PURE__ */ ((e) => (e.previewDeviceMode = "previewDeviceMode", e.panelPosition = "panelPosition", e))(de || {}), ue = /* @__PURE__ */ ((e) => (e.DESKTOP = "DESKTOP", e.MOBILE = "MOBILE", e))(ue || {}), Ie = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(Ie || {}), r = {
251
249
  name: "name",
252
250
  disabled: "disabled"
253
- }, Ct = {
254
- ...o,
251
+ }, Te = {
252
+ ...r,
255
253
  caption: "caption",
256
254
  icon: "icon"
257
- }, gt = {
258
- ...o,
255
+ }, ce = {
256
+ ...r,
259
257
  caption: "caption"
260
- }, mt = {
261
- ...o,
258
+ }, Oe = {
259
+ ...r,
262
260
  minValue: "min-value",
263
261
  maxValue: "max-value",
264
262
  step: "step"
265
- }, bt = {
266
- ...o,
267
- text: "text"
268
- }, Nt = {
269
- ...o
263
+ }, he = {
264
+ ...r,
265
+ placeholder: "placeholder",
266
+ minDate: "min-date"
267
+ }, be = {
268
+ ...r,
269
+ text: "text",
270
+ hint: "hint"
271
+ }, ge = {
272
+ ...r,
273
+ type: "type"
274
+ }, me = {
275
+ ...r,
276
+ buttons: "buttons"
270
277
  }, X = {
271
- ...o,
278
+ ...r,
272
279
  searchable: "searchable",
273
280
  multiSelect: "multi-select",
274
281
  placeholder: "placeholder",
275
282
  items: "items"
276
- }, At = {
277
- ...X
278
- }, Dt = {
283
+ }, Re = {
284
+ ...X,
285
+ addCustomFontOption: "add-custom-font-option"
286
+ }, Le = {
287
+ ...r,
279
288
  text: "text",
280
289
  value: "value"
281
- }, St = {
290
+ }, _e = {
291
+ ...r,
282
292
  text: "text",
293
+ hint: "hint",
283
294
  icon: "icon",
284
295
  value: "value"
285
- }, Bt = {
286
- ...o
287
- }, Mt = {
296
+ }, Ce = {
297
+ ...r,
298
+ buttons: "buttons"
299
+ }, Ae = {
300
+ ...r,
301
+ text: "text",
302
+ hint: "hint",
303
+ icon: "icon",
304
+ value: "value"
305
+ }, Ne = {
306
+ ...r,
307
+ placeholder: "placeholder"
308
+ }, De = {
309
+ ...r,
310
+ resizable: "resizable",
311
+ placeholder: "placeholder"
312
+ }, Se = {
313
+ ...r,
314
+ img: "img",
315
+ src: "src",
316
+ title: "title",
317
+ imageClass: "image-class",
318
+ hint: "hint",
319
+ disabled: "disabled",
320
+ isActive: "is-active",
321
+ visibility: "visibility",
322
+ transform: "transform"
323
+ }, Be = {
324
+ ...r,
288
325
  controlId: "control-id"
289
- }, xt = {
290
- ...o,
326
+ }, xe = {
327
+ ...r,
328
+ expanded: "expanded"
329
+ }, Me = {
330
+ ...r,
291
331
  icon: "icon",
292
332
  position: "position"
293
- }, vt = {
294
- ...o
295
- }, Gt = {
296
- BUTTON: Ct,
297
- CHECKBOX: gt,
298
- COLOR: o,
299
- COUNTER: mt,
300
- LABEL: bt,
301
- RADIO_BUTTONS: Nt,
333
+ }, ve = {
334
+ ...r
335
+ }, ye = {
336
+ ...r,
337
+ icon: "icon"
338
+ }, Ue = {
339
+ ...r
340
+ }, Ye = {
341
+ DEFAULT: r,
342
+ BUTTON: Te,
343
+ CHECKBOX: ce,
344
+ CHECK_BUTTONS: Ce,
345
+ COLOR: r,
346
+ COUNTER: Oe,
347
+ DATEPICKER: he,
348
+ LABEL: be,
349
+ MESSAGE: ge,
350
+ RADIO_BUTTONS: me,
302
351
  SELECTPICKER: X,
303
- FONT_FAMILY_SELECT: At,
304
- SWITCHER: o,
305
- TEXT: Bt,
306
- SELECT_ITEM: Dt,
307
- RADIO_ITEM: St,
308
- NESTED_CONTROL: Mt,
309
- ORDERABLE: xt,
310
- ORDERABLE_ITEM: vt
311
- }, yt = /* @__PURE__ */ ((t) => (t.BUTTON = "UE-BUTTON", t.CHECKBOX = "UE-CHECKBOX", t.CHECK_BUTTONS = "UE-CHECK-BUTTONS", t.COLOR = "UE-COLOR", t.COUNTER = "UE-COUNTER", t.DATEPICKER = "UE-DATEPICKER", t.LABEL = "UE-LABEL", t.MESSAGE = "UE-MESSAGE", t.RADIO_BUTTONS = "UE-RADIO-BUTTONS", t.SELECTPICKER = "UE-SELECT", t.SWITCHER = "UE-SWITCHER", t.TEXT = "UE-TEXT", t.TEXTAREA = "UE-TEXTAREA", t.CHECK_ITEM = "UE-CHECK-ITEM", t.RADIO_ITEM = "UE-RADIO-ITEM", t.SELECT_ITEM = "UE-SELECT-ITEM", t.ICON = "UE-ICON", t.MERGETAGS = "UE-MERGETAGS", t.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", t.NESTED_CONTROL = "UE-NESTED-CONTROL", t.EXPANDABLE = "UE-EXPANDABLE", t.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", t.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", t.ORDERABLE = "UE-ORDERABLE", t.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", t.ORDERABLE_ICON = "UE-ORDERABLE-ICON", t))(yt || {}), x = class {
352
+ FONT_FAMILY_SELECT: Re,
353
+ SWITCHER: r,
354
+ TEXT: Ne,
355
+ TEXTAREA: De,
356
+ ICON: Se,
357
+ CHECK_ITEM: _e,
358
+ SELECT_ITEM: Le,
359
+ RADIO_ITEM: Ae,
360
+ NESTED_CONTROL: Be,
361
+ EXPANDABLE: xe,
362
+ ORDERABLE: Me,
363
+ ORDERABLE_ITEM: ve,
364
+ ORDERABLE_ICON: ye,
365
+ REPEATABLE: Ue
366
+ }, Pe = /* @__PURE__ */ ((e) => (e.BUTTON = "UE-BUTTON", e.CHECKBOX = "UE-CHECKBOX", e.CHECK_BUTTONS = "UE-CHECK-BUTTONS", e.COLOR = "UE-COLOR", e.COUNTER = "UE-COUNTER", e.DATEPICKER = "UE-DATEPICKER", e.LABEL = "UE-LABEL", e.MESSAGE = "UE-MESSAGE", e.RADIO_BUTTONS = "UE-RADIO-BUTTONS", e.SELECTPICKER = "UE-SELECT", e.SWITCHER = "UE-SWITCHER", e.TEXT = "UE-TEXT", e.TEXTAREA = "UE-TEXTAREA", e.CHECK_ITEM = "UE-CHECK-ITEM", e.RADIO_ITEM = "UE-RADIO-ITEM", e.SELECT_ITEM = "UE-SELECT-ITEM", e.ICON = "UE-ICON", e.MERGETAGS = "UE-MERGETAGS", e.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", e.NESTED_CONTROL = "UE-NESTED-CONTROL", e.EXPANDABLE = "UE-EXPANDABLE", e.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", e.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", e.ORDERABLE = "UE-ORDERABLE", e.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", e.ORDERABLE_ICON = "UE-ORDERABLE-ICON", e.REPEATABLE = "UE-REPEATABLE", e))(Pe || {}), x = class {
312
367
  /**
313
368
  * @description returns map of nodes parent control operates on
314
369
  */
315
- getTargetNodes(t) {
316
- return [t];
370
+ getTargetNodes(e) {
371
+ return [e];
317
372
  }
318
373
  /**
319
374
  * @description returns map of labels used by parent control UI
@@ -328,7 +383,7 @@ var st = {
328
383
  /**
329
384
  * @description returns custom modifications to be included in the parent control patch
330
385
  */
331
- getAdditionalModifications(t) {
386
+ getAdditionalModifications(e) {
332
387
  }
333
388
  /**
334
389
  * Determines whether the specified HTML node is visible.
@@ -336,77 +391,77 @@ var st = {
336
391
  * @param _node - The HTML node to evaluate for visibility, provided as an immutable object.
337
392
  * @return A boolean value indicating whether the node is visible. Returns `true` if the node is visible, otherwise `false`.
338
393
  */
339
- isVisible(t) {
394
+ isVisible(e) {
340
395
  return !0;
341
396
  }
342
- }, i = class extends x {
343
- getTargetNodes(t) {
344
- const e = t.querySelectorAll(O.BUTTON), r = t.asElement().hasClass(U) ? [t] : [];
345
- return e.length ? e : r;
397
+ }, E = class extends x {
398
+ getTargetNodes(e) {
399
+ const t = e.querySelectorAll(I.BUTTON), a = e.asElement().hasClass(y) ? [e] : [];
400
+ return t.length ? t : a;
346
401
  }
347
- }, Vt = class extends i {
402
+ }, $e = class extends E {
348
403
  getParentControlId() {
349
404
  return n.BLOCK_BUTTON.BORDER_RADIUS;
350
405
  }
351
406
  getLabels() {
352
407
  }
353
- }, Qt = class extends i {
408
+ }, We = class extends E {
354
409
  getParentControlId() {
355
410
  return n.BLOCK_BUTTON.ALIGNMENT;
356
411
  }
357
- }, ft = class extends i {
412
+ }, ze = class extends E {
358
413
  getParentControlId() {
359
414
  return n.GENERAL.BACKGROUND_COLOR;
360
415
  }
361
- }, Yt = class extends i {
416
+ }, Ze = class extends E {
362
417
  getParentControlId() {
363
418
  return n.BLOCK_BUTTON.BORDER;
364
419
  }
365
420
  getLabels() {
366
421
  }
367
- }, $t = class extends i {
422
+ }, je = class extends E {
368
423
  getParentControlId() {
369
424
  return n.BLOCK_BUTTON.COLOR;
370
425
  }
371
- }, Wt = class extends i {
426
+ }, qe = class extends E {
372
427
  getParentControlId() {
373
428
  return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
374
429
  }
375
- }, zt = class extends i {
430
+ }, Je = class extends E {
376
431
  getParentControlId() {
377
432
  return n.BLOCK_BUTTON.FONT_FAMILY;
378
433
  }
379
- }, Zt = class extends i {
434
+ }, et = class extends E {
380
435
  getParentControlId() {
381
436
  return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
382
437
  }
383
- }, jt = class extends i {
438
+ }, tt = class extends E {
384
439
  getParentControlId() {
385
440
  return n.BLOCK_BUTTON.INTERNAL_INDENTS;
386
441
  }
387
- }, qt = class extends i {
442
+ }, rt = class extends E {
388
443
  getParentControlId() {
389
444
  return n.BLOCK_BUTTON.TEXT;
390
445
  }
391
- }, Jt = class extends i {
446
+ }, at = class extends E {
392
447
  getParentControlId() {
393
448
  return n.BLOCK_BUTTON.FONT_SIZE;
394
449
  }
395
- }, te = class extends i {
450
+ }, nt = class extends E {
396
451
  getParentControlId() {
397
452
  return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
398
453
  }
399
454
  getLabels() {
400
455
  }
401
- }, k = class R extends a {
456
+ }, k = class h extends s {
402
457
  constructor() {
403
- super(R.REQUIRED_METHODS, R);
458
+ super(h.REQUIRED_METHODS, h);
404
459
  }
405
460
  /**
406
461
  * @description Allows to determine if control should be visible or hidden in control panel.
407
462
  * Called on every node modification.
408
463
  */
409
- isVisible(e) {
464
+ isVisible(t) {
410
465
  return !0;
411
466
  }
412
467
  /**
@@ -443,42 +498,112 @@ var st = {
443
498
  * Implement this to react to changes in the block/structure and update the control's UI elements accordingly.
444
499
  * @param node - The updated immutable HTML node representing the control's context.
445
500
  */
446
- onTemplateNodeUpdated(e) {
501
+ onTemplateNodeUpdated(t) {
447
502
  }
448
503
  /**
449
504
  * Lifecycle hook called when any part of the document template has changed.
450
505
  * This can be frequent; use cautiously for performance-sensitive operations.
451
506
  * @param _node - The immutable HTML node representing current node instance
452
507
  */
453
- onDocumentChanged(e) {
508
+ onDocumentChanged(t) {
454
509
  }
455
510
  };
456
511
  k.REQUIRED_METHODS = ["getId", "getTemplate"];
457
- var ee = k, G = class extends x {
458
- getTargetNodes(t) {
459
- const e = t.querySelectorAll(O.IMAGE), r = t.asElement().hasClass(K) ? [t] : [];
460
- return e.length ? e : r;
512
+ var st = k, we = class b extends s {
513
+ constructor() {
514
+ super(b.REQUIRED_METHODS, b);
515
+ }
516
+ /**
517
+ * Gets the unique identifier for this tab.
518
+ * This ID is used for registration.
519
+ * @returns A unique string ID.
520
+ */
521
+ getId() {
522
+ throw new Error("Method getId() must be implemented by the subclass");
523
+ }
524
+ /**
525
+ * Gets the icon key representing this tab in the header.
526
+ * @returns A string representing the icon key from the IconsRegistry
527
+ */
528
+ getIcon() {
529
+ throw new Error("Method getIcon() must be implemented by the subclass");
530
+ }
531
+ /**
532
+ * Retrieves the index of the tab associated with the panel.
533
+ * The index represents the position/order of the tab in the UI.
534
+ *
535
+ * @returns {number} The index of the tab.
536
+ */
537
+ getTabIndex() {
538
+ throw new Error("Method getTabIndex() must be implemented by the subclass");
461
539
  }
462
- }, re = class extends G {
540
+ /**
541
+ * Gets the display name of the tab shown to the user in the header hint.
542
+ * Use `this.api.translate()` for localization.
543
+ * @returns The localized tab name string.
544
+ */
545
+ getName() {
546
+ throw new Error("Method getName() must be implemented by the subclass");
547
+ }
548
+ /**
549
+ * Determines if the tab should be available for use in the editor.
550
+ * Override to provide custom logic based on the editor state or configuration.
551
+ * @returns True if the tab is enabled, false otherwise. Defaults to true.
552
+ */
553
+ isEnabled() {
554
+ return !0;
555
+ }
556
+ /**
557
+ * Gets the HTML template string that defines the initial template of general tab.
558
+ * @returns An HTML string.
559
+ */
560
+ getTemplate() {
561
+ throw new Error("Method getTemplate() must be implemented by the subclass");
562
+ }
563
+ /**
564
+ * Lifecycle hook called when any part of the document template has changed.
565
+ * This can be frequent; use cautiously for performance-sensitive operations.
566
+ */
567
+ onDocumentChanged() {
568
+ }
569
+ /**
570
+ * Optional hook called when the general panel tab is initially rendered.
571
+ * Use this for setup tasks like attaching event listeners to the panel's template elements.
572
+ */
573
+ onRender() {
574
+ }
575
+ /**
576
+ * Optional cleanup hook called when the general panel tab is being destroyed.
577
+ */
578
+ onDestroy() {
579
+ }
580
+ };
581
+ we.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
582
+ var p = class extends x {
583
+ getTargetNodes(e) {
584
+ const t = e.querySelectorAll(I.IMAGE), a = e.asElement().hasClass(P) ? [e] : [];
585
+ return t.length ? t : a;
586
+ }
587
+ }, it = class extends p {
463
588
  getParentControlId() {
464
589
  return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
465
590
  }
466
- }, ne = class extends G {
591
+ }, Et = class extends p {
467
592
  getParentControlId() {
468
593
  return n.BLOCK_IMAGE.SIZE;
469
594
  }
470
- }, V = class L extends a {
595
+ }, G = class g extends s {
471
596
  constructor() {
472
- super(L.REQUIRED_METHODS, L);
597
+ super(g.REQUIRED_METHODS, g);
473
598
  }
474
- registerBlockControls(e) {
599
+ registerBlockControls(t) {
475
600
  throw new Error("Method registerBlockControls() must be implemented by the subclass");
476
601
  }
477
602
  };
478
- V.REQUIRED_METHODS = ["registerBlockControls"];
479
- var se = V, ae = class {
480
- constructor(t, e) {
481
- this.tabId = t, this.controlsIds = e;
603
+ G.REQUIRED_METHODS = ["registerBlockControls"];
604
+ var lt = G, ot = class {
605
+ constructor(e, t) {
606
+ this.tabId = e, this.controlsIds = t;
482
607
  }
483
608
  getTabId() {
484
609
  return this.tabId;
@@ -489,56 +614,52 @@ var se = V, ae = class {
489
614
  getControlsIds() {
490
615
  return this.controlsIds;
491
616
  }
492
- withLabel(t) {
493
- return this.label = t, this;
617
+ withLabel(e) {
618
+ return this.label = e, this;
494
619
  }
495
- addControl(t, e) {
496
- return e < 0 ? this.controlsIds.unshift(t) : e > this.controlsIds.length ? this.controlsIds.push(t) : this.controlsIds.splice(e, 0, t), this;
620
+ addControl(e, t) {
621
+ return t < 0 ? this.controlsIds.unshift(e) : t > this.controlsIds.length ? this.controlsIds.push(e) : this.controlsIds.splice(t, 0, e), this;
497
622
  }
498
- deleteControl(t) {
499
- const e = this.controlsIds.indexOf(t);
500
- e !== -1 && this.controlsIds.splice(e, 1);
623
+ deleteControl(e) {
624
+ const t = this.controlsIds.indexOf(e);
625
+ t !== -1 && this.controlsIds.splice(t, 1);
501
626
  }
502
627
  }, l = class extends x {
503
- getTargetNodes(t) {
504
- const e = t.querySelectorAll(O.TEXT), r = t.asElement().hasClass(p) ? [t] : [];
505
- return e.length ? e : r;
628
+ getTargetNodes(e) {
629
+ const t = e.querySelectorAll(I.TEXT), a = e.asElement().hasClass(U) ? [e] : [];
630
+ return t.length ? t : a;
506
631
  }
507
- }, ie = class extends l {
632
+ }, dt = class extends l {
508
633
  getParentControlId() {
509
634
  return n.GENERAL.TEXT_ALIGN;
510
635
  }
511
- }, oe = class extends l {
512
- getParentControlId() {
513
- return n.BLOCK_TEXT.TEXT_BLOCK_BACKGROUND_COLOR;
514
- }
515
- }, Ee = class extends l {
636
+ }, ut = class extends l {
516
637
  getParentControlId() {
517
638
  return n.GENERAL.TEXT_COLOR;
518
639
  }
519
- }, le = class extends l {
640
+ }, It = class extends l {
520
641
  getParentControlId() {
521
642
  return n.BLOCK_TEXT.FONT_FAMILY;
522
643
  }
523
- }, de = class extends l {
644
+ }, Tt = class extends l {
524
645
  getParentControlId() {
525
646
  return n.GENERAL.TEXT_LINE_SPACING;
526
647
  }
527
- }, ue = class extends l {
648
+ }, ct = class extends l {
528
649
  getParentControlId() {
529
650
  return n.BLOCK_TEXT.INTERNAL_INDENTS;
530
651
  }
531
- }, Ie = class extends l {
652
+ }, Ot = class extends l {
532
653
  getParentControlId() {
533
654
  return n.GENERAL.TEXT_SIZE;
534
655
  }
535
- }, Oe = class extends l {
656
+ }, ht = class extends l {
536
657
  getParentControlId() {
537
658
  return n.GENERAL.TEXT_STYLE;
538
659
  }
539
- }, Ut = class {
540
- constructor(t, e, r = [], s, E = [], T, I = [], d = [], v, $, W, z, Z, j, q, J, tt) {
541
- this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = W, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = E, this.settingsPanelRegistry = T, this.contextActions = I, this.blocks = d, this.externalSmartElementsLibrary = v, this.externalImageLibrary = $, this.externalImageLibraryTab = tt, this.externalAiAssistant = z, this.externalDisplayConditionsLibrary = Z, this.externalVideoLibrary = j, this.blocksPanel = q, this.iconsRegistry = J, this.id = Math.random().toString(36).substring(2);
660
+ }, Ke = class {
661
+ constructor(e) {
662
+ this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [], this.i18n = e == null ? void 0 : e.i18n, this.styles = e == null ? void 0 : e.styles, this.previewStyles = e == null ? void 0 : e.previewStyles, this.uiElements = (e == null ? void 0 : e.uiElements) ?? [], this.uiElementTagRegistry = e == null ? void 0 : e.uiElementTagRegistry, this.controls = (e == null ? void 0 : e.controls) ?? [], this.settingsPanelRegistry = e == null ? void 0 : e.settingsPanelRegistry, this.contextActions = (e == null ? void 0 : e.contextActions) ?? [], this.blocks = (e == null ? void 0 : e.blocks) ?? [], this.generalPanelTabs = (e == null ? void 0 : e.generalPanelTabs) ?? [], this.externalSmartElementsLibrary = e == null ? void 0 : e.externalSmartElementsLibrary, this.externalImageLibrary = e == null ? void 0 : e.externalImageLibrary, this.externalImageLibraryTab = e == null ? void 0 : e.externalImageLibraryTab, this.externalAiAssistant = e == null ? void 0 : e.externalAiAssistant, this.externalDisplayConditionsLibrary = e == null ? void 0 : e.externalDisplayConditionsLibrary, this.externalVideoLibrary = e == null ? void 0 : e.externalVideoLibrary, this.blocksPanel = e == null ? void 0 : e.blocksPanel, this.iconsRegistry = e == null ? void 0 : e.iconsRegistry, this.id = Math.random().toString(36).substring(2);
542
663
  }
543
664
  getI18n() {
544
665
  return this.i18n;
@@ -594,104 +715,111 @@ var se = V, ae = class {
594
715
  getIconsRegistry() {
595
716
  return this.iconsRegistry;
596
717
  }
597
- }, Te = class {
718
+ getGeneralPanelTabs() {
719
+ return this.generalPanelTabs;
720
+ }
721
+ }, bt = class {
598
722
  constructor() {
599
- this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
723
+ this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
600
724
  }
601
- withLocalization(t) {
602
- return this.i18n = t, this;
725
+ withLocalization(e) {
726
+ return this.i18n = e, this;
603
727
  }
604
728
  /**
605
729
  * @deprecated Use addStyles() instead. This method will be removed in a future version.
606
730
  */
607
- withStyles(t) {
608
- return this.styles = [t], this;
731
+ withStyles(e) {
732
+ return this.styles = [e], this;
609
733
  }
610
- addStyles(t) {
611
- return this.styles.push(t), this;
734
+ addStyles(e) {
735
+ return this.styles.push(e), this;
612
736
  }
613
737
  /**
614
738
  * @description defines custom developer styles to use inside the editor document preview
615
739
  */
616
- withPreviewStyles(t) {
617
- return this.previewStyles = t, this;
740
+ withPreviewStyles(e) {
741
+ return this.previewStyles = e, this;
742
+ }
743
+ addContextAction(e) {
744
+ return this.contextActions.push(e), this;
618
745
  }
619
- addContextAction(t) {
620
- return this.contextActions.push(t), this;
746
+ addUiElement(e) {
747
+ return this.uiElements.push(e), this;
621
748
  }
622
- addUiElement(t) {
623
- return this.uiElements.push(t), this;
749
+ withUiElementTagRegistry(e) {
750
+ return this.uiElementTagRegistry = e, this;
624
751
  }
625
- withUiElementTagRegistry(t) {
626
- return this.uiElementTagRegistry = t, this;
752
+ addControl(e) {
753
+ return this.controls.push(e), this;
627
754
  }
628
- addControl(t) {
629
- return this.controls.push(t), this;
755
+ withSettingsPanelRegistry(e) {
756
+ return this.settingsPanelRegistry = e, this;
630
757
  }
631
- withSettingsPanelRegistry(t) {
632
- return this.settingsPanelRegistry = t, this;
758
+ withExternalSmartElementsLibrary(e) {
759
+ return this.externalSmartElementsLibrary = e, this;
633
760
  }
634
- withExternalSmartElementsLibrary(t) {
635
- return this.externalSmartElementsLibrary = t, this;
761
+ withExternalImageLibrary(e) {
762
+ return this.externalImageLibrary = e, this;
636
763
  }
637
- withExternalImageLibrary(t) {
638
- return this.externalImageLibrary = t, this;
764
+ withExternalImageLibraryTab(e) {
765
+ return this.externalImageLibraryTab = e, this;
639
766
  }
640
- withExternalImageLibraryTab(t) {
641
- return this.externalImageLibraryTab = t, this;
767
+ withExternalAiAssistant(e) {
768
+ return this.externalAiAssistant = e, this;
642
769
  }
643
- withExternalAiAssistant(t) {
644
- return this.externalAiAssistant = t, this;
770
+ withExternalDisplayCondition(e) {
771
+ return this.externalDisplayConditionsLibrary = e, this;
645
772
  }
646
- withExternalDisplayCondition(t) {
647
- return this.externalDisplayConditionsLibrary = t, this;
773
+ withExternalVideosLibrary(e) {
774
+ return this.externalVideoLibrary = e, this;
648
775
  }
649
- withExternalVideosLibrary(t) {
650
- return this.externalVideoLibrary = t, this;
776
+ withBlocksPanel(e) {
777
+ return this.blocksPanel = e, this;
651
778
  }
652
- withBlocksPanel(t) {
653
- return this.blocksPanel = t, this;
779
+ addBlock(e) {
780
+ return this.blocks.push(e), this;
654
781
  }
655
- addBlock(t) {
656
- return this.blocks.push(t), this;
782
+ withIconsRegistry(e) {
783
+ return this.iconsRegistry = e, this;
657
784
  }
658
- withIconsRegistry(t) {
659
- return this.iconsRegistry = t, this;
785
+ addGeneralPanelTab(e) {
786
+ return this.generalPanelTabs.push(e), this;
660
787
  }
661
788
  build() {
662
- return new Ut(
663
- this.i18n,
664
- (this.styles || []).map((t) => t.trim()).join(`
789
+ return new Ke({
790
+ i18n: this.i18n,
791
+ styles: this.styles.map((e) => e.trim()).join(`
665
792
  `),
666
- this.uiElements,
667
- this.uiElementTagRegistry,
668
- this.controls,
669
- this.settingsPanelRegistry,
670
- this.contextActions,
671
- this.blocks,
672
- this.externalSmartElementsLibrary,
673
- this.externalImageLibrary,
674
- this.previewStyles,
675
- this.externalAiAssistant,
676
- this.externalDisplayConditionsLibrary,
677
- this.externalVideoLibrary,
678
- this.blocksPanel,
679
- this.iconsRegistry,
680
- this.externalImageLibraryTab
681
- );
682
- }
683
- }, pt = class C extends a {
793
+ uiElements: this.uiElements,
794
+ uiElementTagRegistry: this.uiElementTagRegistry,
795
+ controls: this.controls,
796
+ settingsPanelRegistry: this.settingsPanelRegistry,
797
+ contextActions: this.contextActions,
798
+ blocks: this.blocks,
799
+ externalSmartElementsLibrary: this.externalSmartElementsLibrary,
800
+ externalImageLibrary: this.externalImageLibrary,
801
+ previewStyles: this.previewStyles,
802
+ externalAiAssistant: this.externalAiAssistant,
803
+ externalDisplayConditionsLibrary: this.externalDisplayConditionsLibrary,
804
+ externalVideoLibrary: this.externalVideoLibrary,
805
+ blocksPanel: this.blocksPanel,
806
+ iconsRegistry: this.iconsRegistry,
807
+ externalImageLibraryTab: this.externalImageLibraryTab,
808
+ generalPanelTabs: this.generalPanelTabs
809
+ });
810
+ }
811
+ }, Fe = class m extends s {
684
812
  constructor() {
685
- super(C.REQUIRED_METHODS, C);
813
+ super(m.REQUIRED_METHODS, m);
686
814
  }
687
- openAiAssistant({ value: e, onDataSelectCallback: r, onCancelCallback: s, type: E }) {
815
+ openAiAssistant(t) {
688
816
  throw new Error("Method openAiAssistant() must be implemented by the subclass");
689
817
  }
690
818
  };
691
- pt.REQUIRED_METHODS = ["openAiAssistant"];
692
- var Kt = class g extends a {
819
+ Fe.REQUIRED_METHODS = ["openAiAssistant"];
820
+ var He = class R extends s {
693
821
  constructor() {
694
- super(g.REQUIRED_METHODS, g);
822
+ super(R.REQUIRED_METHODS, R);
695
823
  }
696
824
  /**
697
825
  * Retrieves the name of the category.
@@ -704,11 +832,11 @@ var Kt = class g extends a {
704
832
  /**
705
833
  * Opens a popup dialog for creating or updating a display condition.
706
834
  *
707
- * @param {DisplayCondition} currentCondition - The currently selected display condition to edit.
708
- * @param {ExternalDisplayConditionSelectedCB} successCallback - Callback executed with the updated or newly created condition upon success.
709
- * @param {() => void} cancelCallback - Callback executed when the dialog is closed without making changes.
835
+ * @param {DisplayCondition} _currentCondition - The currently selected display condition to edit.
836
+ * @param {ExternalDisplayConditionSelectedCB} _successCallback - Callback executed with the updated or newly created condition upon success.
837
+ * @param {() => void} _cancelCallback - Callback executed when the dialog is closed without making changes.
710
838
  */
711
- openExternalDisplayConditionsDialog(e, r, s) {
839
+ openExternalDisplayConditionsDialog(t, a, i) {
712
840
  throw new Error("Method openExternalDisplayConditionsDialog() must be implemented by the subclass");
713
841
  }
714
842
  /**
@@ -729,19 +857,19 @@ var Kt = class g extends a {
729
857
  throw new Error("Method getContextActionIndex() must be implemented by the subclass");
730
858
  }
731
859
  };
732
- Kt.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
733
- var Ft = class m extends a {
860
+ He.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
861
+ var Xe = class L extends s {
734
862
  constructor() {
735
- super(m.REQUIRED_METHODS, m);
863
+ super(L.REQUIRED_METHODS, L);
736
864
  }
737
- openImageLibrary(e, r, s) {
865
+ openImageLibrary(t, a, i) {
738
866
  throw new Error("Method openImageLibrary() must be implemented by the subclass");
739
867
  }
740
868
  };
741
- Ft.REQUIRED_METHODS = ["openImageLibrary"];
742
- var wt = class b extends a {
869
+ Xe.REQUIRED_METHODS = ["openImageLibrary"];
870
+ var ke = class _ extends s {
743
871
  constructor() {
744
- super(b.REQUIRED_METHODS, b);
872
+ super(_.REQUIRED_METHODS, _);
745
873
  }
746
874
  /**
747
875
  * @description Returns the translated name/label for the tab
@@ -754,45 +882,46 @@ var wt = class b extends a {
754
882
  * @description Opens the external image library tab and provides a container for rendering
755
883
  * @param _container - DOM element container where the external library UI should be rendered
756
884
  * @param _onImageSelectCallback - Callback to invoke when an image is selected
885
+ * @param _selectedNode - (Optional) Selected node for which the gallery is being opened
757
886
  */
758
- openImageLibraryTab(e, r) {
887
+ openImageLibraryTab(t, a, i) {
759
888
  throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
760
889
  }
761
890
  };
762
- wt.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
763
- var Pt = class N extends a {
891
+ ke.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
892
+ var pe = class C extends s {
764
893
  constructor() {
765
- super(N.REQUIRED_METHODS, N);
894
+ super(C.REQUIRED_METHODS, C);
766
895
  }
767
- openSmartElementsLibrary(e, r) {
896
+ openSmartElementsLibrary(t, a) {
768
897
  throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
769
898
  }
770
899
  };
771
- Pt.REQUIRED_METHODS = ["openSmartElementsLibrary"];
772
- var Ht = class A extends a {
900
+ pe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
901
+ var Ge = class A extends s {
773
902
  constructor() {
774
903
  super(A.REQUIRED_METHODS, A);
775
904
  }
776
- openExternalVideosLibraryDialog(e, r, s) {
905
+ openExternalVideosLibraryDialog(t, a, i) {
777
906
  throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
778
907
  }
779
908
  };
780
- Ht.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
781
- var Q = class D extends a {
909
+ Ge.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
910
+ var V = class N extends s {
782
911
  constructor() {
783
- super(D.REQUIRED_METHODS, D);
912
+ super(N.REQUIRED_METHODS, N);
784
913
  }
785
- registerIconsSvg(e) {
914
+ registerIconsSvg(t) {
786
915
  throw new Error("Method registerIconsSvg() must be implemented by the subclass");
787
916
  }
788
917
  };
789
- Q.REQUIRED_METHODS = ["registerIconsSvg"];
790
- var ce = Q, _e = class {
791
- constructor(t) {
792
- this.key = t;
918
+ V.REQUIRED_METHODS = ["registerIconsSvg"];
919
+ var gt = V, mt = class {
920
+ constructor(e) {
921
+ this.key = e;
793
922
  }
794
- withParams(t) {
795
- return this.params = t, this;
923
+ withParams(e) {
924
+ return this.params = e, this;
796
925
  }
797
926
  getValue() {
798
927
  return {
@@ -800,15 +929,15 @@ var ce = Q, _e = class {
800
929
  params: this.params
801
930
  };
802
931
  }
803
- }, f = class S extends a {
932
+ }, Q = class D extends s {
804
933
  constructor() {
805
- super(S.REQUIRED_METHODS, S);
934
+ super(D.REQUIRED_METHODS, D);
806
935
  }
807
936
  /**
808
937
  * Called when the UI element should render its content into the provided container.
809
938
  * @param container - The HTMLElement where the UI element should be rendered.
810
939
  */
811
- onRender(e) {
940
+ onRender(t) {
812
941
  throw new Error("Method onRender() must be implemented by the subclass");
813
942
  }
814
943
  /**
@@ -829,7 +958,7 @@ var ce = Q, _e = class {
829
958
  * Implement this if the element manages a state or value and needs to be updated externally.
830
959
  * @param value - The new value to set.
831
960
  */
832
- setValue(e) {
961
+ setValue(t) {
833
962
  }
834
963
  /**
835
964
  * @description Optional hook called when one of the element's supported attributes ({@link UEAttr}) gets updated externally.
@@ -837,7 +966,7 @@ var ce = Q, _e = class {
837
966
  * @param name - The name of the attribute that was updated.
838
967
  * @param value - The new value of the attribute.
839
968
  */
840
- onAttributeUpdated(e, r) {
969
+ onAttributeUpdated(t, a) {
841
970
  }
842
971
  /**
843
972
  * Gets the unique identifier for this UI element type.
@@ -855,62 +984,63 @@ var ce = Q, _e = class {
855
984
  throw new Error("Method getTemplate() must be implemented by the subclass");
856
985
  }
857
986
  };
858
- f.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
859
- var he = f, Y = class B extends a {
987
+ Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
988
+ var Rt = Q, f = class S extends s {
860
989
  constructor() {
861
- super(B.REQUIRED_METHODS, B);
990
+ super(S.REQUIRED_METHODS, S);
862
991
  }
863
- registerUiElements(e) {
992
+ registerUiElements(t) {
864
993
  throw new Error("Method registerUiElements() must be implemented by the subclass");
865
994
  }
866
995
  };
867
- Y.REQUIRED_METHODS = ["registerUiElements"];
868
- var Re = Y;
996
+ f.REQUIRED_METHODS = ["registerUiElements"];
997
+ var Lt = f;
869
998
  export {
870
- Xt as Block,
871
- kt as BlockAttr,
872
- et as BlockCompositionType,
873
- O as BlockSelector,
874
- ht as BlockType,
999
+ Qe as Block,
1000
+ fe as BlockAttr,
1001
+ $ as BlockCompositionType,
1002
+ I as BlockSelector,
1003
+ le as BlockType,
875
1004
  x as BuiltInControl,
876
1005
  n as BuiltInControlTypes,
877
- Qt as ButtonAlignBuiltInControl,
878
- ft as ButtonBackgroundColorBuiltInControl,
879
- Yt as ButtonBorderBuiltInControl,
880
- Vt as ButtonBorderRadiusBuiltInControl,
881
- $t as ButtonColorBuiltInControl,
882
- w as ButtonControls,
883
- Wt as ButtonFitToContainerBuiltInControl,
884
- zt as ButtonFontFamilyBuiltInControl,
885
- Zt as ButtonMarginsBuiltInControl,
886
- jt as ButtonPaddingsBuiltInControl,
887
- qt as ButtonTextBuiltInControl,
888
- Jt as ButtonTextSizeBuiltInControl,
889
- te as ButtonTextStyleAndFontColorBuiltInControl,
890
- Rt as ContainerControls,
891
- ee as Control,
892
- Ut as Extension,
893
- Te as ExtensionBuilder,
894
- F as GeneralControls,
895
- ce as IconsRegistry,
1006
+ We as ButtonAlignBuiltInControl,
1007
+ ze as ButtonBackgroundColorBuiltInControl,
1008
+ Ze as ButtonBorderBuiltInControl,
1009
+ $e as ButtonBorderRadiusBuiltInControl,
1010
+ je as ButtonColorBuiltInControl,
1011
+ K as ButtonControls,
1012
+ qe as ButtonFitToContainerBuiltInControl,
1013
+ Je as ButtonFontFamilyBuiltInControl,
1014
+ et as ButtonMarginsBuiltInControl,
1015
+ tt as ButtonPaddingsBuiltInControl,
1016
+ rt as ButtonTextBuiltInControl,
1017
+ at as ButtonTextSizeBuiltInControl,
1018
+ nt as ButtonTextStyleAndFontColorBuiltInControl,
1019
+ oe as ContainerControls,
1020
+ st as Control,
1021
+ de as EditorStatePropertyType,
1022
+ Ke as Extension,
1023
+ bt as ExtensionBuilder,
1024
+ w as GeneralControls,
1025
+ gt as IconsRegistry,
896
1026
  H as ImageControls,
897
- re as ImageMarginsBuiltInControl,
898
- ne as ImageSizeBuiltInControl,
899
- _e as ModificationDescription,
900
- se as SettingsPanelRegistry,
901
- ae as SettingsPanelTab,
902
- Lt as SettingsTab,
903
- ie as TextAlignBuiltInControl,
904
- oe as TextBlockBackgroundBuiltInControl,
905
- Ee as TextColorBuiltInControl,
906
- P as TextControls,
907
- le as TextFontFamilyBuiltInControl,
908
- de as TextLineSpacingBuiltInControl,
909
- ue as TextPaddingsBuiltInControl,
910
- Ie as TextSizeBuiltInControl,
911
- Oe as TextStyleBuiltInControl,
912
- Gt as UEAttr,
913
- he as UIElement,
914
- Re as UIElementTagRegistry,
915
- yt as UIElementType
1027
+ it as ImageMarginsBuiltInControl,
1028
+ Et as ImageSizeBuiltInControl,
1029
+ mt as ModificationDescription,
1030
+ ue as PreviewDeviceMode,
1031
+ lt as SettingsPanelRegistry,
1032
+ ot as SettingsPanelTab,
1033
+ Ie as SettingsTab,
1034
+ dt as TextAlignBuiltInControl,
1035
+ ut as TextColorBuiltInControl,
1036
+ F as TextControls,
1037
+ It as TextFontFamilyBuiltInControl,
1038
+ Tt as TextLineSpacingBuiltInControl,
1039
+ ct as TextPaddingsBuiltInControl,
1040
+ Ot as TextSizeBuiltInControl,
1041
+ ht as TextStyleBuiltInControl,
1042
+ Ye as UEAttr,
1043
+ Rt as UIElement,
1044
+ Lt as UIElementTagRegistry,
1045
+ Pe as UIElementType
916
1046
  };