@useinsider/guido 2.0.0-beta.dbde199 → 2.0.0-beta.e66a90a

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 (117) hide show
  1. package/dist/@types/config/schemas.js +53 -39
  2. package/dist/components/organisms/email-preview/amp/AmpToggle.vue.js +2 -2
  3. package/dist/components/organisms/header/RightSlot.vue2.js +10 -10
  4. package/dist/composables/useConfig.js +29 -27
  5. package/dist/composables/useSave.js +13 -11
  6. package/dist/config/migrator/recommendationMigrator.js +2 -2
  7. package/dist/extensions/Blocks/Recommendation/block.js +1 -1
  8. package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +4 -0
  9. package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +4 -0
  10. package/dist/extensions/Blocks/Recommendation/constants/selectors.js +11 -0
  11. package/dist/extensions/Blocks/Recommendation/controls/button/index.js +64 -0
  12. package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +100 -0
  13. package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +243 -0
  14. package/dist/extensions/Blocks/Recommendation/controls/image/index.js +19 -0
  15. package/dist/extensions/Blocks/Recommendation/controls/layout/index.js +104 -0
  16. package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +86 -0
  17. package/dist/extensions/Blocks/Recommendation/controls/main/currency.js +134 -0
  18. package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +54 -0
  19. package/dist/extensions/Blocks/Recommendation/controls/main/index.js +106 -0
  20. package/dist/extensions/Blocks/Recommendation/controls/main/locale.js +64 -0
  21. package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +123 -0
  22. package/dist/extensions/Blocks/Recommendation/controls/main/shuffle.js +60 -0
  23. package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +112 -0
  24. package/dist/extensions/Blocks/Recommendation/controls/name/index.js +46 -0
  25. package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +76 -0
  26. package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +44 -0
  27. package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +48 -0
  28. package/dist/extensions/Blocks/Recommendation/controls/{omnibusDiscountTextAfterControl.js → omnibusDiscount/textAfter.js} +15 -13
  29. package/dist/extensions/Blocks/Recommendation/controls/{omnibusDiscountTextBeforeControl.js → omnibusDiscount/textBefore.js} +15 -13
  30. package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +48 -0
  31. package/dist/extensions/Blocks/Recommendation/controls/{omnibusPriceTextAfterControl.js → omnibusPrice/textAfter.js} +16 -14
  32. package/dist/extensions/Blocks/Recommendation/controls/{omnibusPriceTextBeforeControl.js → omnibusPrice/textBefore.js} +14 -12
  33. package/dist/extensions/Blocks/Recommendation/controls/price/index.js +44 -0
  34. package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +224 -0
  35. package/dist/extensions/Blocks/Recommendation/extension.js +40 -19
  36. package/dist/extensions/Blocks/Recommendation/recommendation.css.js +5 -0
  37. package/dist/extensions/Blocks/Recommendation/settingsPanel.js +46 -43
  38. package/dist/extensions/Blocks/Recommendation/store/recommendation.js +20 -20
  39. package/dist/extensions/Blocks/Recommendation/templates/horizontal/elementRenderer.js +157 -0
  40. package/dist/extensions/Blocks/Recommendation/templates/horizontal/template.js +72 -0
  41. package/dist/extensions/Blocks/Recommendation/templates/index.js +12 -0
  42. package/dist/extensions/Blocks/Recommendation/templates/utils.js +173 -0
  43. package/dist/extensions/Blocks/Recommendation/templates/vertical/elementRenderer.js +186 -0
  44. package/dist/extensions/Blocks/Recommendation/templates/vertical/migration.js +251 -0
  45. package/dist/extensions/Blocks/Recommendation/templates/vertical/template.js +61 -0
  46. package/dist/extensions/Blocks/Unsubscribe/extension.js +9 -9
  47. package/dist/extensions/Blocks/common-control.js +6 -7
  48. package/dist/extensions/Blocks/controlFactories.js +156 -122
  49. package/dist/guido.css +1 -1
  50. package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +110 -113
  51. package/dist/src/@types/config/index.d.ts +2 -2
  52. package/dist/src/@types/config/schemas.d.ts +26 -0
  53. package/dist/src/@types/config/types.d.ts +7 -1
  54. package/dist/src/composables/useConfig.d.ts +6 -0
  55. package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +13 -0
  56. package/dist/src/extensions/Blocks/Recommendation/{constants.d.ts → constants/controlIds.d.ts} +1 -33
  57. package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +11 -0
  58. package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +19 -0
  59. package/dist/src/extensions/Blocks/Recommendation/controls/button/index.d.ts +143 -0
  60. package/dist/src/extensions/Blocks/Recommendation/controls/{cardBackgroundColorControl.d.ts → cardBackground/index.d.ts} +19 -3
  61. package/dist/src/extensions/Blocks/Recommendation/{cardCompositionControl.d.ts → controls/cardComposition/index.d.ts} +23 -7
  62. package/dist/src/extensions/Blocks/Recommendation/controls/image/index.d.ts +35 -0
  63. package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +21 -651
  64. package/dist/src/extensions/Blocks/Recommendation/controls/layout/index.d.ts +34 -0
  65. package/dist/src/extensions/Blocks/Recommendation/controls/main/algorithm.d.ts +17 -0
  66. package/dist/src/extensions/Blocks/Recommendation/controls/main/currency.d.ts +16 -0
  67. package/dist/src/extensions/Blocks/Recommendation/controls/main/filters.d.ts +22 -0
  68. package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +54 -0
  69. package/dist/src/extensions/Blocks/Recommendation/controls/main/locale.d.ts +15 -0
  70. package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +40 -0
  71. package/dist/src/extensions/Blocks/Recommendation/controls/main/shuffle.d.ts +15 -0
  72. package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +81 -0
  73. package/dist/src/extensions/Blocks/Recommendation/controls/name/index.d.ts +97 -0
  74. package/dist/src/extensions/Blocks/Recommendation/controls/{nameTextTrimControl.d.ts → name/textTrim.d.ts} +1 -1
  75. package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/index.d.ts +95 -0
  76. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +100 -0
  77. package/dist/src/extensions/Blocks/Recommendation/controls/{omnibusDiscountTextAfterControl.d.ts → omnibusDiscount/textAfter.d.ts} +1 -1
  78. package/dist/src/extensions/Blocks/Recommendation/controls/{omnibusDiscountTextBeforeControl.d.ts → omnibusDiscount/textBefore.d.ts} +1 -1
  79. package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +100 -0
  80. package/dist/src/extensions/Blocks/Recommendation/controls/{omnibusPriceTextAfterControl.d.ts → omnibusPrice/textAfter.d.ts} +1 -1
  81. package/dist/src/extensions/Blocks/Recommendation/controls/{omnibusPriceTextBeforeControl.d.ts → omnibusPrice/textBefore.d.ts} +1 -1
  82. package/dist/src/extensions/Blocks/Recommendation/controls/price/index.d.ts +95 -0
  83. package/dist/src/extensions/Blocks/Recommendation/controls/{spacingControl.d.ts → spacing/index.d.ts} +26 -9
  84. package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +9 -0
  85. package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +16 -16
  86. package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/elementRenderer.d.ts +8 -0
  87. package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/migration.d.ts +25 -0
  88. package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/template.d.ts +18 -0
  89. package/dist/src/extensions/Blocks/Recommendation/templates/index.d.ts +39 -0
  90. package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +45 -0
  91. package/dist/src/extensions/Blocks/Recommendation/templates/vertical/elementRenderer.d.ts +7 -0
  92. package/dist/src/extensions/Blocks/Recommendation/templates/vertical/migration.d.ts +23 -0
  93. package/dist/src/extensions/Blocks/Recommendation/templates/vertical/template.d.ts +33 -0
  94. package/dist/src/extensions/Blocks/common-control.d.ts +1 -1
  95. package/dist/src/stores/config.d.ts +147 -1
  96. package/dist/static/styles/components/button.css.js +1 -1
  97. package/dist/static/styles/customEditorStyle.css.js +25 -2
  98. package/dist/stores/config.js +7 -0
  99. package/package.json +1 -1
  100. package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -193
  101. package/dist/extensions/Blocks/Recommendation/constants.js +0 -14
  102. package/dist/extensions/Blocks/Recommendation/control.js +0 -336
  103. package/dist/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.js +0 -68
  104. package/dist/extensions/Blocks/Recommendation/controls/index.js +0 -272
  105. package/dist/extensions/Blocks/Recommendation/controls/nameTextTrimControl.js +0 -74
  106. package/dist/extensions/Blocks/Recommendation/controls/priceHideControl.js +0 -60
  107. package/dist/extensions/Blocks/Recommendation/controls/priceInlineLayoutControl.js +0 -160
  108. package/dist/extensions/Blocks/Recommendation/controls/spacingControl.js +0 -188
  109. package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +0 -184
  110. package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +0 -189
  111. package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -209
  112. package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -38
  113. package/dist/src/extensions/Blocks/Recommendation/controls/priceHideControl.d.ts +0 -16
  114. package/dist/src/extensions/Blocks/Recommendation/controls/priceInlineLayoutControl.d.ts +0 -50
  115. package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +0 -16
  116. package/dist/src/extensions/Blocks/Recommendation/templates/migrationTemplate.d.ts +0 -16
  117. package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +0 -52
@@ -196,7 +196,7 @@ var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
196
196
  }
197
197
  };
198
198
  y.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
199
- var we = y, W = class c extends a {
199
+ var Ue = y, W = class c extends a {
200
200
  constructor() {
201
201
  super(c.REQUIRED_METHODS, c);
202
202
  }
@@ -237,35 +237,32 @@ var Z = {
237
237
  alt: "alt",
238
238
  href: "href",
239
239
  width: "width"
240
- }, j = {
241
- href: "href"
242
- }, Pe = {
243
- BLOCK_IMAGE: Z,
244
- BLOCK_BUTTON: j
245
- }, v = "esd-block-button", U = "esd-block-text", w = "esd-block-image", q = "esd-structure", J = "esd-block-video", ee = "esd-block-social", te = "esd-block-banner", re = "esd-block-timer", ne = "esd-block-menu", ae = "esd-block-html", se = "esd-block-spacer", ie = "esd-container-frame", Ee = "esd-stripe", le = "esd-amp-form", I = ((e) => (e.BUTTON = `.${v}`, e.TEXT = `.${U}`, e.IMAGE = `.${w}`, e.STRUCTURE = `.${q}`, e.VIDEO = `.${J}`, e.SOCIAL = `.${ee}`, e.BANNER = `.${te}`, e.TIMER = `.${re}`, e.MENU = `.${ne}`, e.HTML = `.${ae}`, e.SPACER = `.${se}`, e.CONTAINER = `.${ie}`, e.STRIPE = `.${Ee}`, e.FORM = `.${le}`, e))(I || {}), oe = /* @__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))(oe || {}), P = /* @__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))(P || {}), 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 || {}), de = /* @__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))(de || {}), n = {
240
+ }, we = {
241
+ BLOCK_IMAGE: Z
242
+ }, v = "esd-block-button", U = "esd-block-text", w = "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", ne = "esd-block-html", ae = "esd-block-spacer", se = "esd-container-frame", ie = "esd-stripe", Ee = "esd-amp-form", I = ((e) => (e.BUTTON = `.${v}`, e.TEXT = `.${U}`, e.IMAGE = `.${w}`, e.STRUCTURE = `.${j}`, e.VIDEO = `.${q}`, e.SOCIAL = `.${J}`, e.BANNER = `.${ee}`, e.TIMER = `.${te}`, e.MENU = `.${re}`, e.HTML = `.${ne}`, e.SPACER = `.${ae}`, 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 || {}), P = /* @__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))(P || {}), 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 = {
246
243
  BLOCK_BUTTON: K,
247
244
  BLOCK_TEXT: F,
248
245
  BLOCK_IMAGE: H,
249
246
  GENERAL: P
250
- }, ue = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(ue || {}), E = {
247
+ }, de = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(de || {}), E = {
251
248
  name: "name",
252
249
  disabled: "disabled"
253
- }, Ie = {
250
+ }, ue = {
254
251
  ...E,
255
252
  caption: "caption",
256
253
  icon: "icon"
257
- }, Te = {
254
+ }, Ie = {
258
255
  ...E,
259
256
  caption: "caption"
260
- }, ce = {
257
+ }, Te = {
261
258
  ...E,
262
259
  minValue: "min-value",
263
260
  maxValue: "max-value",
264
261
  step: "step"
265
- }, Oe = {
262
+ }, ce = {
266
263
  ...E,
267
264
  text: "text"
268
- }, he = {
265
+ }, Oe = {
269
266
  ...E
270
267
  }, X = {
271
268
  ...E,
@@ -273,42 +270,42 @@ var Z = {
273
270
  multiSelect: "multi-select",
274
271
  placeholder: "placeholder",
275
272
  items: "items"
276
- }, ge = {
273
+ }, he = {
277
274
  ...X
278
- }, be = {
275
+ }, ge = {
279
276
  text: "text",
280
277
  value: "value"
281
- }, me = {
278
+ }, be = {
282
279
  text: "text",
283
280
  icon: "icon",
284
281
  value: "value"
285
- }, Re = {
282
+ }, me = {
286
283
  ...E
287
- }, _e = {
284
+ }, Re = {
288
285
  controlId: "control-id"
289
- }, Le = {
286
+ }, _e = {
290
287
  ...E,
291
288
  icon: "icon",
292
289
  position: "position"
293
- }, Ce = {
290
+ }, Le = {
294
291
  ...E
295
- }, Ke = {
296
- BUTTON: Ie,
297
- CHECKBOX: Te,
292
+ }, Pe = {
293
+ BUTTON: ue,
294
+ CHECKBOX: Ie,
298
295
  COLOR: E,
299
- COUNTER: ce,
300
- LABEL: Oe,
301
- RADIO_BUTTONS: he,
296
+ COUNTER: Te,
297
+ LABEL: ce,
298
+ RADIO_BUTTONS: Oe,
302
299
  SELECTPICKER: X,
303
- FONT_FAMILY_SELECT: ge,
300
+ FONT_FAMILY_SELECT: he,
304
301
  SWITCHER: E,
305
- TEXT: Re,
306
- SELECT_ITEM: be,
307
- RADIO_ITEM: me,
308
- NESTED_CONTROL: _e,
309
- ORDERABLE: Le,
310
- ORDERABLE_ITEM: Ce
311
- }, Ae = /* @__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))(Ae || {}), M = class {
302
+ TEXT: me,
303
+ SELECT_ITEM: ge,
304
+ RADIO_ITEM: be,
305
+ NESTED_CONTROL: Re,
306
+ ORDERABLE: _e,
307
+ ORDERABLE_ITEM: Le
308
+ }, Ce = /* @__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))(Ce || {}), M = class {
312
309
  /**
313
310
  * @description returns map of nodes parent control operates on
314
311
  */
@@ -344,55 +341,55 @@ var Z = {
344
341
  const t = e.querySelectorAll(I.BUTTON), r = e.asElement().hasClass(v) ? [e] : [];
345
342
  return t.length ? t : r;
346
343
  }
347
- }, Fe = class extends i {
344
+ }, Ke = class extends i {
348
345
  getParentControlId() {
349
346
  return n.BLOCK_BUTTON.BORDER_RADIUS;
350
347
  }
351
348
  getLabels() {
352
349
  }
353
- }, He = class extends i {
350
+ }, Fe = class extends i {
354
351
  getParentControlId() {
355
352
  return n.BLOCK_BUTTON.ALIGNMENT;
356
353
  }
357
- }, Xe = class extends i {
354
+ }, He = class extends i {
358
355
  getParentControlId() {
359
356
  return n.GENERAL.BACKGROUND_COLOR;
360
357
  }
361
- }, ke = class extends i {
358
+ }, Xe = class extends i {
362
359
  getParentControlId() {
363
360
  return n.BLOCK_BUTTON.BORDER;
364
361
  }
365
362
  getLabels() {
366
363
  }
367
- }, Ge = class extends i {
364
+ }, ke = class extends i {
368
365
  getParentControlId() {
369
366
  return n.BLOCK_BUTTON.COLOR;
370
367
  }
371
- }, Ve = class extends i {
368
+ }, Ge = class extends i {
372
369
  getParentControlId() {
373
370
  return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
374
371
  }
375
- }, pe = class extends i {
372
+ }, Ve = class extends i {
376
373
  getParentControlId() {
377
374
  return n.BLOCK_BUTTON.FONT_FAMILY;
378
375
  }
379
- }, Qe = class extends i {
376
+ }, pe = class extends i {
380
377
  getParentControlId() {
381
378
  return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
382
379
  }
383
- }, fe = class extends i {
380
+ }, Qe = class extends i {
384
381
  getParentControlId() {
385
382
  return n.BLOCK_BUTTON.INTERNAL_INDENTS;
386
383
  }
387
- }, Ye = class extends i {
384
+ }, fe = class extends i {
388
385
  getParentControlId() {
389
386
  return n.BLOCK_BUTTON.TEXT;
390
387
  }
391
- }, $e = class extends i {
388
+ }, Ye = class extends i {
392
389
  getParentControlId() {
393
390
  return n.BLOCK_BUTTON.FONT_SIZE;
394
391
  }
395
- }, We = class extends i {
392
+ }, $e = class extends i {
396
393
  getParentControlId() {
397
394
  return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
398
395
  }
@@ -454,7 +451,7 @@ var Z = {
454
451
  }
455
452
  };
456
453
  k.REQUIRED_METHODS = ["getId", "getTemplate"];
457
- var ze = k, Ne = class g extends a {
454
+ var We = k, Ae = class g extends a {
458
455
  constructor() {
459
456
  super(g.REQUIRED_METHODS, g);
460
457
  }
@@ -523,17 +520,17 @@ var ze = k, Ne = class g extends a {
523
520
  onDestroy() {
524
521
  }
525
522
  };
526
- Ne.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
523
+ Ae.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
527
524
  var G = class extends M {
528
525
  getTargetNodes(e) {
529
526
  const t = e.querySelectorAll(I.IMAGE), r = e.asElement().hasClass(w) ? [e] : [];
530
527
  return t.length ? t : r;
531
528
  }
532
- }, Ze = class extends G {
529
+ }, ze = class extends G {
533
530
  getParentControlId() {
534
531
  return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
535
532
  }
536
- }, je = class extends G {
533
+ }, Ze = class extends G {
537
534
  getParentControlId() {
538
535
  return n.BLOCK_IMAGE.SIZE;
539
536
  }
@@ -546,7 +543,7 @@ var G = class extends M {
546
543
  }
547
544
  };
548
545
  V.REQUIRED_METHODS = ["registerBlockControls"];
549
- var qe = V, Je = class {
546
+ var je = V, qe = class {
550
547
  constructor(e, t) {
551
548
  this.tabId = e, this.controlsIds = t;
552
549
  }
@@ -574,35 +571,35 @@ var qe = V, Je = class {
574
571
  const t = e.querySelectorAll(I.TEXT), r = e.asElement().hasClass(U) ? [e] : [];
575
572
  return t.length ? t : r;
576
573
  }
577
- }, et = class extends l {
574
+ }, Je = class extends l {
578
575
  getParentControlId() {
579
576
  return n.GENERAL.TEXT_ALIGN;
580
577
  }
581
- }, tt = class extends l {
578
+ }, et = class extends l {
582
579
  getParentControlId() {
583
580
  return n.GENERAL.TEXT_COLOR;
584
581
  }
585
- }, rt = class extends l {
582
+ }, tt = class extends l {
586
583
  getParentControlId() {
587
584
  return n.BLOCK_TEXT.FONT_FAMILY;
588
585
  }
589
- }, nt = class extends l {
586
+ }, rt = class extends l {
590
587
  getParentControlId() {
591
588
  return n.GENERAL.TEXT_LINE_SPACING;
592
589
  }
593
- }, at = class extends l {
590
+ }, nt = class extends l {
594
591
  getParentControlId() {
595
592
  return n.BLOCK_TEXT.INTERNAL_INDENTS;
596
593
  }
597
- }, st = class extends l {
594
+ }, at = class extends l {
598
595
  getParentControlId() {
599
596
  return n.GENERAL.TEXT_SIZE;
600
597
  }
601
- }, it = class extends l {
598
+ }, st = class extends l {
602
599
  getParentControlId() {
603
600
  return n.GENERAL.TEXT_STYLE;
604
601
  }
605
- }, De = class {
602
+ }, Ne = class {
606
603
  constructor(e) {
607
604
  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);
608
605
  }
@@ -663,7 +660,7 @@ var qe = V, Je = class {
663
660
  getGeneralPanelTabs() {
664
661
  return this.generalPanelTabs;
665
662
  }
666
- }, Et = class {
663
+ }, it = class {
667
664
  constructor() {
668
665
  this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
669
666
  }
@@ -731,7 +728,7 @@ var qe = V, Je = class {
731
728
  return this.generalPanelTabs.push(e), this;
732
729
  }
733
730
  build() {
734
- return new De({
731
+ return new Ne({
735
732
  i18n: this.i18n,
736
733
  styles: this.styles.map((e) => e.trim()).join(`
737
734
  `),
@@ -753,7 +750,7 @@ var qe = V, Je = class {
753
750
  generalPanelTabs: this.generalPanelTabs
754
751
  });
755
752
  }
756
- }, Se = class m extends a {
753
+ }, De = class m extends a {
757
754
  constructor() {
758
755
  super(m.REQUIRED_METHODS, m);
759
756
  }
@@ -761,8 +758,8 @@ var qe = V, Je = class {
761
758
  throw new Error("Method openAiAssistant() must be implemented by the subclass");
762
759
  }
763
760
  };
764
- Se.REQUIRED_METHODS = ["openAiAssistant"];
765
- var Be = class R extends a {
761
+ De.REQUIRED_METHODS = ["openAiAssistant"];
762
+ var Se = class R extends a {
766
763
  constructor() {
767
764
  super(R.REQUIRED_METHODS, R);
768
765
  }
@@ -802,8 +799,8 @@ var Be = class R extends a {
802
799
  throw new Error("Method getContextActionIndex() must be implemented by the subclass");
803
800
  }
804
801
  };
805
- Be.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
806
- var Me = class _ extends a {
802
+ Se.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
803
+ var Be = class _ extends a {
807
804
  constructor() {
808
805
  super(_.REQUIRED_METHODS, _);
809
806
  }
@@ -811,8 +808,8 @@ var Me = class _ extends a {
811
808
  throw new Error("Method openImageLibrary() must be implemented by the subclass");
812
809
  }
813
810
  };
814
- Me.REQUIRED_METHODS = ["openImageLibrary"];
815
- var xe = class L extends a {
811
+ Be.REQUIRED_METHODS = ["openImageLibrary"];
812
+ var Me = class L extends a {
816
813
  constructor() {
817
814
  super(L.REQUIRED_METHODS, L);
818
815
  }
@@ -833,8 +830,8 @@ var xe = class L extends a {
833
830
  throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
834
831
  }
835
832
  };
836
- xe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
837
- var ye = class C extends a {
833
+ Me.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
834
+ var xe = class C extends a {
838
835
  constructor() {
839
836
  super(C.REQUIRED_METHODS, C);
840
837
  }
@@ -842,8 +839,8 @@ var ye = class C extends a {
842
839
  throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
843
840
  }
844
841
  };
845
- ye.REQUIRED_METHODS = ["openSmartElementsLibrary"];
846
- var ve = class A extends a {
842
+ xe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
843
+ var ye = class A extends a {
847
844
  constructor() {
848
845
  super(A.REQUIRED_METHODS, A);
849
846
  }
@@ -851,7 +848,7 @@ var ve = class A extends a {
851
848
  throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
852
849
  }
853
850
  };
854
- ve.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
851
+ ye.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
855
852
  var p = class N extends a {
856
853
  constructor() {
857
854
  super(N.REQUIRED_METHODS, N);
@@ -861,7 +858,7 @@ var p = class N extends a {
861
858
  }
862
859
  };
863
860
  p.REQUIRED_METHODS = ["registerIconsSvg"];
864
- var lt = p, ot = class {
861
+ var Et = p, lt = class {
865
862
  constructor(e) {
866
863
  this.key = e;
867
864
  }
@@ -930,7 +927,7 @@ var lt = p, ot = class {
930
927
  }
931
928
  };
932
929
  Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
933
- var dt = Q, f = class S extends a {
930
+ var ot = Q, f = class S extends a {
934
931
  constructor() {
935
932
  super(S.REQUIRED_METHODS, S);
936
933
  }
@@ -939,51 +936,51 @@ var dt = Q, f = class S extends a {
939
936
  }
940
937
  };
941
938
  f.REQUIRED_METHODS = ["registerUiElements"];
942
- var ut = f;
939
+ var dt = f;
943
940
  export {
944
- we as Block,
945
- Pe as BlockAttr,
941
+ Ue as Block,
942
+ we as BlockAttr,
946
943
  $ as BlockCompositionType,
947
944
  I as BlockSelector,
948
- oe as BlockType,
945
+ le as BlockType,
949
946
  M as BuiltInControl,
950
947
  n as BuiltInControlTypes,
951
- He as ButtonAlignBuiltInControl,
952
- Xe as ButtonBackgroundColorBuiltInControl,
953
- ke as ButtonBorderBuiltInControl,
954
- Fe as ButtonBorderRadiusBuiltInControl,
955
- Ge as ButtonColorBuiltInControl,
948
+ Fe as ButtonAlignBuiltInControl,
949
+ He as ButtonBackgroundColorBuiltInControl,
950
+ Xe as ButtonBorderBuiltInControl,
951
+ Ke as ButtonBorderRadiusBuiltInControl,
952
+ ke as ButtonColorBuiltInControl,
956
953
  K as ButtonControls,
957
- Ve as ButtonFitToContainerBuiltInControl,
958
- pe as ButtonFontFamilyBuiltInControl,
959
- Qe as ButtonMarginsBuiltInControl,
960
- fe as ButtonPaddingsBuiltInControl,
961
- Ye as ButtonTextBuiltInControl,
962
- $e as ButtonTextSizeBuiltInControl,
963
- We as ButtonTextStyleAndFontColorBuiltInControl,
964
- de as ContainerControls,
965
- ze as Control,
966
- De as Extension,
967
- Et as ExtensionBuilder,
954
+ Ge as ButtonFitToContainerBuiltInControl,
955
+ Ve as ButtonFontFamilyBuiltInControl,
956
+ pe as ButtonMarginsBuiltInControl,
957
+ Qe as ButtonPaddingsBuiltInControl,
958
+ fe as ButtonTextBuiltInControl,
959
+ Ye as ButtonTextSizeBuiltInControl,
960
+ $e as ButtonTextStyleAndFontColorBuiltInControl,
961
+ oe as ContainerControls,
962
+ We as Control,
963
+ Ne as Extension,
964
+ it as ExtensionBuilder,
968
965
  P as GeneralControls,
969
- lt as IconsRegistry,
966
+ Et as IconsRegistry,
970
967
  H as ImageControls,
971
- Ze as ImageMarginsBuiltInControl,
972
- je as ImageSizeBuiltInControl,
973
- ot as ModificationDescription,
974
- qe as SettingsPanelRegistry,
975
- Je as SettingsPanelTab,
976
- ue as SettingsTab,
977
- et as TextAlignBuiltInControl,
978
- tt as TextColorBuiltInControl,
968
+ ze as ImageMarginsBuiltInControl,
969
+ Ze as ImageSizeBuiltInControl,
970
+ lt as ModificationDescription,
971
+ je as SettingsPanelRegistry,
972
+ qe as SettingsPanelTab,
973
+ de as SettingsTab,
974
+ Je as TextAlignBuiltInControl,
975
+ et as TextColorBuiltInControl,
979
976
  F as TextControls,
980
- rt as TextFontFamilyBuiltInControl,
981
- nt as TextLineSpacingBuiltInControl,
982
- at as TextPaddingsBuiltInControl,
983
- st as TextSizeBuiltInControl,
984
- it as TextStyleBuiltInControl,
985
- Ke as UEAttr,
986
- dt as UIElement,
987
- ut as UIElementTagRegistry,
988
- Ae as UIElementType
977
+ tt as TextFontFamilyBuiltInControl,
978
+ rt as TextLineSpacingBuiltInControl,
979
+ nt as TextPaddingsBuiltInControl,
980
+ at as TextSizeBuiltInControl,
981
+ st as TextStyleBuiltInControl,
982
+ Pe as UEAttr,
983
+ ot as UIElement,
984
+ dt as UIElementTagRegistry,
985
+ Ce as UIElementType
989
986
  };
@@ -7,8 +7,8 @@
7
7
  * - Default values for optional configuration
8
8
  * - Validation utilities
9
9
  */
10
- export { MessageType, ProductType, GuidoConfigSchema, IdentitySchema, PartnerSchema, TemplateSchema, EditorSchema, UISchema, FeaturesSchema, BlocksSchema, CompilerSchema, DynamicContentSchema, EmailHeaderSchema, DefaultBlockTypeSchema, CustomBlockTypeSchema, CompilerRuleSchema, CompilerRuleTypeSchema, ReplaceRuleSchema, RegexRuleSchema, RemoveRuleSchema, CustomRuleSchema, } from './schemas';
11
- export type { GuidoConfig, GuidoConfigInput, IdentityConfig, IdentityConfigInput, PartnerConfig, PartnerConfigInput, TemplateConfig, TemplateConfigInput, EditorConfig, EditorConfigInput, UIConfig, UIConfigInput, FeaturesConfig, FeaturesConfigInput, BlocksConfig, BlocksConfigInput, CompilerConfig, CompilerConfigInput, EmailHeader, DynamicContent, DefaultBlockType, CustomBlockType, BlockType, FeatureName, CompilerRule, ReplaceRule, RegexRule, RemoveRule, CustomRule, DeepPartial, ConfigOverrides, } from './types';
10
+ export { MessageType, ProductType, GuidoConfigSchema, IdentitySchema, PartnerSchema, TemplateSchema, EditorSchema, UISchema, FeaturesSchema, BlocksSchema, CompilerSchema, CallbacksSchema, DynamicContentSchema, EmailHeaderSchema, DefaultBlockTypeSchema, CustomBlockTypeSchema, CompilerRuleSchema, CompilerRuleTypeSchema, ReplaceRuleSchema, RegexRuleSchema, RemoveRuleSchema, CustomRuleSchema, } from './schemas';
11
+ export type { GuidoConfig, GuidoConfigInput, IdentityConfig, IdentityConfigInput, PartnerConfig, PartnerConfigInput, TemplateConfig, TemplateConfigInput, EditorConfig, EditorConfigInput, UIConfig, UIConfigInput, FeaturesConfig, FeaturesConfigInput, BlocksConfig, BlocksConfigInput, CompilerConfig, CompilerConfigInput, CallbacksConfig, CallbacksConfigInput, ExternalValidationHandler, EmailHeader, DynamicContent, DefaultBlockType, CustomBlockType, BlockType, FeatureName, CompilerRule, ReplaceRule, RegexRule, RemoveRule, CustomRule, DeepPartial, ConfigOverrides, } from './types';
12
12
  export { DEFAULT_EMAIL_HEADER, DEFAULT_TEMPLATE, DEFAULT_EDITOR, DEFAULT_UI, DEFAULT_FEATURES, DEFAULT_BLOCKS, DEFAULT_COMPILER, DEFAULT_PRODUCT_TYPE, DEFAULT_MESSAGE_TYPE, DEFAULT_USERNAME, EDITOR_TYPE, TEST_PARTNERS, isTestPartner, } from './defaults';
13
13
  export { validateConfig, parseConfig, parseConfigSafe, getValidationErrors, isValidConfig, validateIdentity, validatePartner, } from './validator';
14
14
  export type { ValidationResult, ValidationError, } from './validator';
@@ -5,7 +5,14 @@
5
5
  * All types are inferred from these schemas to ensure single source of truth.
6
6
  * @module @types/config/schemas
7
7
  */
8
+ import type { SavedTemplateDetails } from '../stripo';
8
9
  import * as v from 'valibot';
10
+ /**
11
+ * Handler function for external validation before save
12
+ * @param data - The template details to validate
13
+ * @returns Promise<boolean> - true if valid, false to cancel save
14
+ */
15
+ export type ExternalValidationHandler = (data: SavedTemplateDetails) => Promise<boolean>;
9
16
  /**
10
17
  * Message type constants for email templates
11
18
  */
@@ -346,6 +353,16 @@ export declare const CompilerSchema: v.ObjectSchema<{
346
353
  /** Skip default compiler rules */
347
354
  readonly ignoreDefaultRules: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
348
355
  }, undefined>;
356
+ /**
357
+ * Callbacks configuration - event handlers and hooks
358
+ */
359
+ export declare const CallbacksSchema: v.ObjectSchema<{
360
+ /**
361
+ * External validation handler called before save completes.
362
+ * Return false to cancel the save operation.
363
+ */
364
+ readonly externalValidation: v.OptionalSchema<v.CustomSchema<ExternalValidationHandler, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
365
+ }, undefined>;
349
366
  /**
350
367
  * Complete Guido configuration schema
351
368
  *
@@ -358,6 +375,7 @@ export declare const CompilerSchema: v.ObjectSchema<{
358
375
  * - features: Feature toggles
359
376
  * - blocks: Block configuration
360
377
  * - compiler: HTML compilation
378
+ * - callbacks: Event handlers and hooks
361
379
  */
362
380
  export declare const GuidoConfigSchema: v.ObjectSchema<{
363
381
  /** Identity configuration (required) */
@@ -510,4 +528,12 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
510
528
  /** Skip default compiler rules */
511
529
  readonly ignoreDefaultRules: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
512
530
  }, undefined>, {}>;
531
+ /** Callbacks and event handlers */
532
+ readonly callbacks: v.OptionalSchema<v.ObjectSchema<{
533
+ /**
534
+ * External validation handler called before save completes.
535
+ * Return false to cancel the save operation.
536
+ */
537
+ readonly externalValidation: v.OptionalSchema<v.CustomSchema<ExternalValidationHandler, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
538
+ }, undefined>, {}>;
513
539
  }, undefined>;
@@ -5,7 +5,7 @@
5
5
  * This ensures type definitions are always in sync with validation.
6
6
  * @module @types/config/types
7
7
  */
8
- import type { GuidoConfigSchema, IdentitySchema, PartnerSchema, TemplateSchema, EditorSchema, UISchema, FeaturesSchema, BlocksSchema, CompilerSchema, DynamicContentSchema, EmailHeaderSchema, CompilerRuleSchema, ReplaceRuleSchema, RegexRuleSchema, RemoveRuleSchema, CustomRuleSchema, DefaultBlockTypeSchema, CustomBlockTypeSchema } from './schemas';
8
+ import type { GuidoConfigSchema, IdentitySchema, PartnerSchema, TemplateSchema, EditorSchema, UISchema, FeaturesSchema, BlocksSchema, CompilerSchema, CallbacksSchema, DynamicContentSchema, EmailHeaderSchema, CompilerRuleSchema, ReplaceRuleSchema, RegexRuleSchema, RemoveRuleSchema, CustomRuleSchema, DefaultBlockTypeSchema, CustomBlockTypeSchema, ExternalValidationHandler } from './schemas';
9
9
  import type * as v from 'valibot';
10
10
  /**
11
11
  * Complete validated Guido configuration.
@@ -41,6 +41,10 @@ export type FeaturesConfig = v.InferOutput<typeof FeaturesSchema>;
41
41
  export type BlocksConfig = v.InferOutput<typeof BlocksSchema>;
42
42
  /** Compiler configuration (custom rules, ignore defaults) */
43
43
  export type CompilerConfig = v.InferOutput<typeof CompilerSchema>;
44
+ /** Callbacks configuration (event handlers and hooks) */
45
+ export type CallbacksConfig = v.InferOutput<typeof CallbacksSchema>;
46
+ /** Re-export ExternalValidationHandler for convenience */
47
+ export type { ExternalValidationHandler };
44
48
  /** Email header configuration (senderName, subject) */
45
49
  export type EmailHeader = v.InferOutput<typeof EmailHeaderSchema>;
46
50
  /** Dynamic content item */
@@ -85,6 +89,8 @@ export type FeaturesConfigInput = v.InferInput<typeof FeaturesSchema>;
85
89
  export type BlocksConfigInput = v.InferInput<typeof BlocksSchema>;
86
90
  /** Input type for compiler configuration */
87
91
  export type CompilerConfigInput = v.InferInput<typeof CompilerSchema>;
92
+ /** Input type for callbacks configuration */
93
+ export type CallbacksConfigInput = v.InferInput<typeof CallbacksSchema>;
88
94
  /** Default Stripo block types */
89
95
  export type DefaultBlockType = v.InferOutput<typeof DefaultBlockTypeSchema>;
90
96
  /** Custom Guido block types */
@@ -91,6 +91,9 @@ export declare const useConfig: () => {
91
91
  })[];
92
92
  ignoreDefaultRules: boolean;
93
93
  };
94
+ callbacks: {
95
+ externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
96
+ };
94
97
  } | null>;
95
98
  initialized: import("vue").Ref<boolean>;
96
99
  identity: import("vue").ComputedRef<{
@@ -177,6 +180,9 @@ export declare const useConfig: () => {
177
180
  })[];
178
181
  ignoreDefaultRules: boolean;
179
182
  } | null>;
183
+ callbacks: import("vue").ComputedRef<{
184
+ externalValidation?: import("@@/Types/config").ExternalValidationHandler | undefined;
185
+ } | null>;
180
186
  templateId: import("vue").ComputedRef<string>;
181
187
  userId: import("vue").ComputedRef<string>;
182
188
  variationId: import("vue").ComputedRef<string>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Block IDs used in the Recommendation Extension
3
+ * These IDs are used in the esd-extension-block-id attribute to identify specific blocks
4
+ */
5
+ export declare enum RecommendationBlockId {
6
+ BUTTON = "recommendation-block-button",
7
+ NAME = "recommendation-block-name",
8
+ PRICE = "recommendation-block-price",
9
+ OLD_PRICE = "recommendation-block-old-price",
10
+ OMNIBUS_PRICE = "recommendation-block-omnibus-price",
11
+ OMNIBUS_DISCOUNT = "recommendation-block-omnibus-discount",
12
+ IMAGE = "recommendation-block-image"
13
+ }