@useinsider/guido 2.0.0-beta.1ba7e26 → 2.0.0-beta.1c331b8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/@types/config/schemas.js +3 -1
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +15 -17
- package/dist/components/organisms/email-preview/desktop-preview/DesktopPreview.vue.js +2 -2
- package/dist/components/organisms/email-preview/mobile-preview/ContentView.vue.js +5 -5
- package/dist/composables/useStripo.js +40 -40
- package/dist/config/migrator/index.js +8 -9
- package/dist/config/migrator/recommendationMigrator.js +2 -2
- package/dist/extensions/Blocks/CouponBlock/constants.js +4 -0
- package/dist/extensions/Blocks/CouponBlock/controls/index.js +29 -0
- package/dist/extensions/Blocks/CouponBlock/extension.js +5 -4
- package/dist/extensions/Blocks/CouponBlock/settingsPanel.js +20 -14
- package/dist/extensions/Blocks/CouponBlock/template.js +22 -11
- package/dist/extensions/Blocks/Items/block.js +40 -39
- package/dist/extensions/Blocks/Items/controls/button/link.js +11 -11
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +62 -50
- package/dist/extensions/Blocks/Items/controls/image/link.js +8 -8
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +15 -13
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +1 -1
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +1 -1
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +17 -15
- package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +15 -15
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +27 -29
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +127 -132
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +2 -2
- package/dist/extensions/Blocks/Items/layouts/horizontal.html.js +48 -58
- package/dist/extensions/Blocks/Items/layouts/vertical.html.js +58 -48
- package/dist/extensions/Blocks/Items/store/items-block.js +2 -2
- package/dist/extensions/Blocks/Items/template.js +125 -312
- package/dist/extensions/Blocks/Items/utils/syncAttributesFromConfigBlock.js +20 -11
- package/dist/extensions/Blocks/Recommendation/block.js +1 -1
- package/dist/extensions/Blocks/Recommendation/constants/blockIds.js +4 -0
- package/dist/extensions/Blocks/Recommendation/constants/controlIds.js +4 -0
- package/dist/extensions/Blocks/Recommendation/constants/layout.js +7 -0
- package/dist/extensions/Blocks/Recommendation/constants/selectors.js +11 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/index.js +64 -0
- package/dist/extensions/Blocks/Recommendation/controls/cardBackground/index.js +80 -0
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +238 -0
- package/dist/extensions/Blocks/Recommendation/controls/image/index.js +19 -0
- package/dist/extensions/Blocks/Recommendation/controls/layout/index.js +104 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/algorithm.js +86 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/currency.js +134 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/filters.js +54 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +134 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/locale.js +64 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +124 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/shuffle.js +60 -0
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +112 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/index.js +46 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/textTrim.js +76 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/index.js +44 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.js +48 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.js +73 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.js +73 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/index.js +48 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.js +73 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.js +73 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/index.js +44 -0
- package/dist/extensions/Blocks/Recommendation/controls/spacing/index.js +216 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +40 -43
- package/dist/extensions/Blocks/Recommendation/recommendation.css.js +5 -0
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +128 -72
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +28 -25
- package/dist/extensions/Blocks/Recommendation/templates/horizontal/elementRenderer.js +157 -0
- package/dist/extensions/Blocks/Recommendation/templates/horizontal/template.js +72 -0
- package/dist/extensions/Blocks/Recommendation/templates/index.js +12 -0
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +173 -0
- package/dist/extensions/Blocks/Recommendation/templates/vertical/elementRenderer.js +186 -0
- package/dist/extensions/Blocks/Recommendation/templates/vertical/migration.js +251 -0
- package/dist/extensions/Blocks/Recommendation/templates/vertical/template.js +62 -0
- package/dist/extensions/Blocks/Recommendation/utils/filterUtil.js +9 -9
- package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +36 -0
- package/dist/extensions/Blocks/common-control.js +53 -64
- package/dist/extensions/Blocks/controlFactories.js +162 -117
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +116 -120
- package/dist/services/stripoApi.js +6 -10
- package/dist/src/@types/config/schemas.d.ts +4 -0
- package/dist/src/composables/useConfig.d.ts +2 -0
- package/dist/src/extensions/Blocks/CouponBlock/constants.d.ts +14 -0
- package/dist/src/extensions/Blocks/CouponBlock/controls/index.d.ts +108 -0
- package/dist/src/extensions/Blocks/CouponBlock/template.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +4 -0
- package/dist/src/extensions/Blocks/Items/template.d.ts +1 -20
- package/dist/src/extensions/Blocks/Recommendation/constants/blockIds.d.ts +13 -0
- package/dist/src/extensions/Blocks/Recommendation/{constants.d.ts → constants/controlIds.d.ts} +19 -11
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +12 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/layout.d.ts +17 -0
- package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +19 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/index.d.ts +143 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/cardBackground/index.d.ts +31 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +95 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/image/index.d.ts +35 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +24 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/layout/index.d.ts +34 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/algorithm.d.ts +17 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/currency.d.ts +16 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/filters.d.ts +22 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/index.d.ts +43 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/locale.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +40 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/shuffle.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +81 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/index.d.ts +97 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/textTrim.d.ts +16 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/index.d.ts +95 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +100 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textAfter.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/textBefore.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +100 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textAfter.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/textBefore.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/index.d.ts +95 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/spacing/index.d.ts +72 -0
- package/dist/src/extensions/Blocks/Recommendation/extension.d.ts +9 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +16 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/elementRenderer.d.ts +8 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/migration.d.ts +25 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/horizontal/template.d.ts +18 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/index.d.ts +39 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/utils.d.ts +45 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/vertical/elementRenderer.d.ts +7 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/{migrationTemplate.d.ts → vertical/migration.d.ts} +11 -4
- package/dist/src/extensions/Blocks/Recommendation/templates/vertical/template.d.ts +33 -0
- package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.d.ts +19 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +8 -13
- package/dist/src/extensions/Blocks/controlFactories.d.ts +30 -7
- package/dist/src/stores/config.d.ts +17 -0
- package/dist/static/styles/components/wide-panel.css.js +0 -4
- package/dist/static/styles/customEditorStyle.css.js +38 -2
- package/package.json +1 -1
- package/dist/config/migrator/itemsBlockMigrator.js +0 -283
- package/dist/extensions/Blocks/Items/utils/nodeConfigUtils.js +0 -172
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +0 -103
- package/dist/extensions/Blocks/Recommendation/constants.js +0 -5
- package/dist/extensions/Blocks/Recommendation/control.js +0 -306
- package/dist/extensions/Blocks/Recommendation/controls/button/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/border.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/text.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/image/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/name/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/align.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/background.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/color.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/size.js +0 -13
- package/dist/extensions/Blocks/Recommendation/controls/price/style.js +0 -13
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +0 -160
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +0 -152
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +0 -180
- package/dist/src/config/migrator/itemsBlockMigrator.d.ts +0 -6
- package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +0 -71
- package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +0 -28
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +0 -35
- package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +0 -5
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +0 -44
|
@@ -196,9 +196,9 @@ 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
|
|
199
|
+
var Ue = y, W = class c extends a {
|
|
200
200
|
constructor() {
|
|
201
|
-
super(
|
|
201
|
+
super(c.REQUIRED_METHODS, c);
|
|
202
202
|
}
|
|
203
203
|
/**
|
|
204
204
|
* @deprecated - use {@link getPreviewInnerHtml} instead
|
|
@@ -214,9 +214,9 @@ var we = y, W = class O extends a {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
217
|
-
var z = class
|
|
217
|
+
var z = class O extends a {
|
|
218
218
|
constructor() {
|
|
219
|
-
super(
|
|
219
|
+
super(O.REQUIRED_METHODS, O);
|
|
220
220
|
}
|
|
221
221
|
getId() {
|
|
222
222
|
throw new Error("Method getId() must be implemented by the subclass");
|
|
@@ -236,29 +236,25 @@ var Z = {
|
|
|
236
236
|
src: "src",
|
|
237
237
|
alt: "alt",
|
|
238
238
|
href: "href",
|
|
239
|
-
width: "width"
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}, Pe = {
|
|
244
|
-
BLOCK_IMAGE: Z,
|
|
245
|
-
BLOCK_BUTTON: j
|
|
246
|
-
}, 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 = {
|
|
239
|
+
width: "width"
|
|
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 = {
|
|
247
243
|
BLOCK_BUTTON: K,
|
|
248
244
|
BLOCK_TEXT: F,
|
|
249
245
|
BLOCK_IMAGE: H,
|
|
250
246
|
GENERAL: P
|
|
251
|
-
},
|
|
247
|
+
}, de = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(de || {}), E = {
|
|
252
248
|
name: "name",
|
|
253
249
|
disabled: "disabled"
|
|
254
|
-
},
|
|
250
|
+
}, ue = {
|
|
255
251
|
...E,
|
|
256
252
|
caption: "caption",
|
|
257
253
|
icon: "icon"
|
|
258
|
-
},
|
|
254
|
+
}, Ie = {
|
|
259
255
|
...E,
|
|
260
256
|
caption: "caption"
|
|
261
|
-
},
|
|
257
|
+
}, Te = {
|
|
262
258
|
...E,
|
|
263
259
|
minValue: "min-value",
|
|
264
260
|
maxValue: "max-value",
|
|
@@ -266,7 +262,7 @@ var Z = {
|
|
|
266
262
|
}, ce = {
|
|
267
263
|
...E,
|
|
268
264
|
text: "text"
|
|
269
|
-
},
|
|
265
|
+
}, Oe = {
|
|
270
266
|
...E
|
|
271
267
|
}, X = {
|
|
272
268
|
...E,
|
|
@@ -274,42 +270,42 @@ var Z = {
|
|
|
274
270
|
multiSelect: "multi-select",
|
|
275
271
|
placeholder: "placeholder",
|
|
276
272
|
items: "items"
|
|
277
|
-
},
|
|
273
|
+
}, he = {
|
|
278
274
|
...X
|
|
279
|
-
},
|
|
275
|
+
}, ge = {
|
|
280
276
|
text: "text",
|
|
281
277
|
value: "value"
|
|
282
|
-
},
|
|
278
|
+
}, be = {
|
|
283
279
|
text: "text",
|
|
284
280
|
icon: "icon",
|
|
285
281
|
value: "value"
|
|
286
|
-
},
|
|
282
|
+
}, me = {
|
|
287
283
|
...E
|
|
288
|
-
},
|
|
284
|
+
}, Re = {
|
|
289
285
|
controlId: "control-id"
|
|
290
|
-
},
|
|
286
|
+
}, _e = {
|
|
291
287
|
...E,
|
|
292
288
|
icon: "icon",
|
|
293
289
|
position: "position"
|
|
294
|
-
},
|
|
290
|
+
}, Le = {
|
|
295
291
|
...E
|
|
296
|
-
},
|
|
297
|
-
BUTTON:
|
|
298
|
-
CHECKBOX:
|
|
292
|
+
}, Pe = {
|
|
293
|
+
BUTTON: ue,
|
|
294
|
+
CHECKBOX: Ie,
|
|
299
295
|
COLOR: E,
|
|
300
|
-
COUNTER:
|
|
296
|
+
COUNTER: Te,
|
|
301
297
|
LABEL: ce,
|
|
302
|
-
RADIO_BUTTONS:
|
|
298
|
+
RADIO_BUTTONS: Oe,
|
|
303
299
|
SELECTPICKER: X,
|
|
304
|
-
FONT_FAMILY_SELECT:
|
|
300
|
+
FONT_FAMILY_SELECT: he,
|
|
305
301
|
SWITCHER: E,
|
|
306
|
-
TEXT:
|
|
307
|
-
SELECT_ITEM:
|
|
308
|
-
RADIO_ITEM:
|
|
309
|
-
NESTED_CONTROL:
|
|
310
|
-
ORDERABLE:
|
|
311
|
-
ORDERABLE_ITEM:
|
|
312
|
-
},
|
|
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 {
|
|
313
309
|
/**
|
|
314
310
|
* @description returns map of nodes parent control operates on
|
|
315
311
|
*/
|
|
@@ -345,35 +341,35 @@ var Z = {
|
|
|
345
341
|
const t = e.querySelectorAll(I.BUTTON), r = e.asElement().hasClass(v) ? [e] : [];
|
|
346
342
|
return t.length ? t : r;
|
|
347
343
|
}
|
|
348
|
-
},
|
|
344
|
+
}, Ke = class extends i {
|
|
349
345
|
getParentControlId() {
|
|
350
346
|
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
351
347
|
}
|
|
352
348
|
getLabels() {
|
|
353
349
|
}
|
|
354
|
-
},
|
|
350
|
+
}, Fe = class extends i {
|
|
355
351
|
getParentControlId() {
|
|
356
352
|
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
357
353
|
}
|
|
358
|
-
},
|
|
354
|
+
}, He = class extends i {
|
|
359
355
|
getParentControlId() {
|
|
360
356
|
return n.GENERAL.BACKGROUND_COLOR;
|
|
361
357
|
}
|
|
362
|
-
},
|
|
358
|
+
}, Xe = class extends i {
|
|
363
359
|
getParentControlId() {
|
|
364
360
|
return n.BLOCK_BUTTON.BORDER;
|
|
365
361
|
}
|
|
366
362
|
getLabels() {
|
|
367
363
|
}
|
|
368
|
-
},
|
|
364
|
+
}, ke = class extends i {
|
|
369
365
|
getParentControlId() {
|
|
370
366
|
return n.BLOCK_BUTTON.COLOR;
|
|
371
367
|
}
|
|
372
|
-
},
|
|
368
|
+
}, Ge = class extends i {
|
|
373
369
|
getParentControlId() {
|
|
374
370
|
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
375
371
|
}
|
|
376
|
-
},
|
|
372
|
+
}, Ve = class extends i {
|
|
377
373
|
getParentControlId() {
|
|
378
374
|
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
379
375
|
}
|
|
@@ -381,19 +377,19 @@ var Z = {
|
|
|
381
377
|
getParentControlId() {
|
|
382
378
|
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
383
379
|
}
|
|
384
|
-
},
|
|
380
|
+
}, Qe = class extends i {
|
|
385
381
|
getParentControlId() {
|
|
386
382
|
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
387
383
|
}
|
|
388
|
-
},
|
|
384
|
+
}, fe = class extends i {
|
|
389
385
|
getParentControlId() {
|
|
390
386
|
return n.BLOCK_BUTTON.TEXT;
|
|
391
387
|
}
|
|
392
|
-
},
|
|
388
|
+
}, Ye = class extends i {
|
|
393
389
|
getParentControlId() {
|
|
394
390
|
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
395
391
|
}
|
|
396
|
-
},
|
|
392
|
+
}, $e = class extends i {
|
|
397
393
|
getParentControlId() {
|
|
398
394
|
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
399
395
|
}
|
|
@@ -455,7 +451,7 @@ var Z = {
|
|
|
455
451
|
}
|
|
456
452
|
};
|
|
457
453
|
k.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
458
|
-
var
|
|
454
|
+
var We = k, Ae = class g extends a {
|
|
459
455
|
constructor() {
|
|
460
456
|
super(g.REQUIRED_METHODS, g);
|
|
461
457
|
}
|
|
@@ -524,17 +520,17 @@ var ze = k, Ne = class g extends a {
|
|
|
524
520
|
onDestroy() {
|
|
525
521
|
}
|
|
526
522
|
};
|
|
527
|
-
|
|
523
|
+
Ae.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
528
524
|
var G = class extends M {
|
|
529
525
|
getTargetNodes(e) {
|
|
530
526
|
const t = e.querySelectorAll(I.IMAGE), r = e.asElement().hasClass(w) ? [e] : [];
|
|
531
527
|
return t.length ? t : r;
|
|
532
528
|
}
|
|
533
|
-
},
|
|
529
|
+
}, ze = class extends G {
|
|
534
530
|
getParentControlId() {
|
|
535
531
|
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
536
532
|
}
|
|
537
|
-
},
|
|
533
|
+
}, Ze = class extends G {
|
|
538
534
|
getParentControlId() {
|
|
539
535
|
return n.BLOCK_IMAGE.SIZE;
|
|
540
536
|
}
|
|
@@ -547,7 +543,7 @@ var G = class extends M {
|
|
|
547
543
|
}
|
|
548
544
|
};
|
|
549
545
|
V.REQUIRED_METHODS = ["registerBlockControls"];
|
|
550
|
-
var
|
|
546
|
+
var je = V, qe = class {
|
|
551
547
|
constructor(e, t) {
|
|
552
548
|
this.tabId = e, this.controlsIds = t;
|
|
553
549
|
}
|
|
@@ -575,35 +571,35 @@ var qe = V, Je = class {
|
|
|
575
571
|
const t = e.querySelectorAll(I.TEXT), r = e.asElement().hasClass(U) ? [e] : [];
|
|
576
572
|
return t.length ? t : r;
|
|
577
573
|
}
|
|
578
|
-
},
|
|
574
|
+
}, Je = class extends l {
|
|
579
575
|
getParentControlId() {
|
|
580
576
|
return n.GENERAL.TEXT_ALIGN;
|
|
581
577
|
}
|
|
578
|
+
}, et = class extends l {
|
|
579
|
+
getParentControlId() {
|
|
580
|
+
return n.GENERAL.TEXT_COLOR;
|
|
581
|
+
}
|
|
582
582
|
}, tt = class extends l {
|
|
583
583
|
getParentControlId() {
|
|
584
|
-
return n.BLOCK_TEXT.
|
|
584
|
+
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
585
585
|
}
|
|
586
586
|
}, rt = class extends l {
|
|
587
587
|
getParentControlId() {
|
|
588
|
-
return n.GENERAL.
|
|
588
|
+
return n.GENERAL.TEXT_LINE_SPACING;
|
|
589
589
|
}
|
|
590
590
|
}, nt = class extends l {
|
|
591
|
-
getParentControlId() {
|
|
592
|
-
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
593
|
-
}
|
|
594
|
-
}, at = class extends l {
|
|
595
591
|
getParentControlId() {
|
|
596
592
|
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
597
593
|
}
|
|
598
|
-
},
|
|
594
|
+
}, at = class extends l {
|
|
599
595
|
getParentControlId() {
|
|
600
596
|
return n.GENERAL.TEXT_SIZE;
|
|
601
597
|
}
|
|
602
|
-
},
|
|
598
|
+
}, st = class extends l {
|
|
603
599
|
getParentControlId() {
|
|
604
600
|
return n.GENERAL.TEXT_STYLE;
|
|
605
601
|
}
|
|
606
|
-
},
|
|
602
|
+
}, Ne = class {
|
|
607
603
|
constructor(e) {
|
|
608
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);
|
|
609
605
|
}
|
|
@@ -664,7 +660,7 @@ var qe = V, Je = class {
|
|
|
664
660
|
getGeneralPanelTabs() {
|
|
665
661
|
return this.generalPanelTabs;
|
|
666
662
|
}
|
|
667
|
-
},
|
|
663
|
+
}, it = class {
|
|
668
664
|
constructor() {
|
|
669
665
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
|
|
670
666
|
}
|
|
@@ -732,7 +728,7 @@ var qe = V, Je = class {
|
|
|
732
728
|
return this.generalPanelTabs.push(e), this;
|
|
733
729
|
}
|
|
734
730
|
build() {
|
|
735
|
-
return new
|
|
731
|
+
return new Ne({
|
|
736
732
|
i18n: this.i18n,
|
|
737
733
|
styles: this.styles.map((e) => e.trim()).join(`
|
|
738
734
|
`),
|
|
@@ -754,7 +750,7 @@ var qe = V, Je = class {
|
|
|
754
750
|
generalPanelTabs: this.generalPanelTabs
|
|
755
751
|
});
|
|
756
752
|
}
|
|
757
|
-
},
|
|
753
|
+
}, De = class m extends a {
|
|
758
754
|
constructor() {
|
|
759
755
|
super(m.REQUIRED_METHODS, m);
|
|
760
756
|
}
|
|
@@ -762,8 +758,8 @@ var qe = V, Je = class {
|
|
|
762
758
|
throw new Error("Method openAiAssistant() must be implemented by the subclass");
|
|
763
759
|
}
|
|
764
760
|
};
|
|
765
|
-
|
|
766
|
-
var
|
|
761
|
+
De.REQUIRED_METHODS = ["openAiAssistant"];
|
|
762
|
+
var Se = class R extends a {
|
|
767
763
|
constructor() {
|
|
768
764
|
super(R.REQUIRED_METHODS, R);
|
|
769
765
|
}
|
|
@@ -803,8 +799,8 @@ var Be = class R extends a {
|
|
|
803
799
|
throw new Error("Method getContextActionIndex() must be implemented by the subclass");
|
|
804
800
|
}
|
|
805
801
|
};
|
|
806
|
-
|
|
807
|
-
var
|
|
802
|
+
Se.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
803
|
+
var Be = class _ extends a {
|
|
808
804
|
constructor() {
|
|
809
805
|
super(_.REQUIRED_METHODS, _);
|
|
810
806
|
}
|
|
@@ -812,8 +808,8 @@ var Me = class _ extends a {
|
|
|
812
808
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
813
809
|
}
|
|
814
810
|
};
|
|
815
|
-
|
|
816
|
-
var
|
|
811
|
+
Be.REQUIRED_METHODS = ["openImageLibrary"];
|
|
812
|
+
var Me = class L extends a {
|
|
817
813
|
constructor() {
|
|
818
814
|
super(L.REQUIRED_METHODS, L);
|
|
819
815
|
}
|
|
@@ -834,8 +830,8 @@ var xe = class L extends a {
|
|
|
834
830
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
835
831
|
}
|
|
836
832
|
};
|
|
837
|
-
|
|
838
|
-
var
|
|
833
|
+
Me.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
834
|
+
var xe = class C extends a {
|
|
839
835
|
constructor() {
|
|
840
836
|
super(C.REQUIRED_METHODS, C);
|
|
841
837
|
}
|
|
@@ -843,8 +839,8 @@ var ye = class C extends a {
|
|
|
843
839
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
844
840
|
}
|
|
845
841
|
};
|
|
846
|
-
|
|
847
|
-
var
|
|
842
|
+
xe.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
843
|
+
var ye = class A extends a {
|
|
848
844
|
constructor() {
|
|
849
845
|
super(A.REQUIRED_METHODS, A);
|
|
850
846
|
}
|
|
@@ -852,8 +848,8 @@ var ve = class A extends a {
|
|
|
852
848
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
853
849
|
}
|
|
854
850
|
};
|
|
855
|
-
|
|
856
|
-
var
|
|
851
|
+
ye.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
852
|
+
var p = class N extends a {
|
|
857
853
|
constructor() {
|
|
858
854
|
super(N.REQUIRED_METHODS, N);
|
|
859
855
|
}
|
|
@@ -861,8 +857,8 @@ var Q = class N extends a {
|
|
|
861
857
|
throw new Error("Method registerIconsSvg() must be implemented by the subclass");
|
|
862
858
|
}
|
|
863
859
|
};
|
|
864
|
-
|
|
865
|
-
var
|
|
860
|
+
p.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
861
|
+
var Et = p, lt = class {
|
|
866
862
|
constructor(e) {
|
|
867
863
|
this.key = e;
|
|
868
864
|
}
|
|
@@ -875,7 +871,7 @@ var lt = Q, ot = class {
|
|
|
875
871
|
params: this.params
|
|
876
872
|
};
|
|
877
873
|
}
|
|
878
|
-
},
|
|
874
|
+
}, Q = class D extends a {
|
|
879
875
|
constructor() {
|
|
880
876
|
super(D.REQUIRED_METHODS, D);
|
|
881
877
|
}
|
|
@@ -930,8 +926,8 @@ var lt = Q, ot = class {
|
|
|
930
926
|
throw new Error("Method getTemplate() must be implemented by the subclass");
|
|
931
927
|
}
|
|
932
928
|
};
|
|
933
|
-
|
|
934
|
-
var
|
|
929
|
+
Q.REQUIRED_METHODS = ["onRender", "getId", "getTemplate"];
|
|
930
|
+
var ot = Q, f = class S extends a {
|
|
935
931
|
constructor() {
|
|
936
932
|
super(S.REQUIRED_METHODS, S);
|
|
937
933
|
}
|
|
@@ -940,51 +936,51 @@ var dt = p, f = class S extends a {
|
|
|
940
936
|
}
|
|
941
937
|
};
|
|
942
938
|
f.REQUIRED_METHODS = ["registerUiElements"];
|
|
943
|
-
var
|
|
939
|
+
var dt = f;
|
|
944
940
|
export {
|
|
945
|
-
|
|
946
|
-
|
|
941
|
+
Ue as Block,
|
|
942
|
+
we as BlockAttr,
|
|
947
943
|
$ as BlockCompositionType,
|
|
948
944
|
I as BlockSelector,
|
|
949
|
-
|
|
945
|
+
le as BlockType,
|
|
950
946
|
M as BuiltInControl,
|
|
951
947
|
n as BuiltInControlTypes,
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
948
|
+
Fe as ButtonAlignBuiltInControl,
|
|
949
|
+
He as ButtonBackgroundColorBuiltInControl,
|
|
950
|
+
Xe as ButtonBorderBuiltInControl,
|
|
951
|
+
Ke as ButtonBorderRadiusBuiltInControl,
|
|
952
|
+
ke as ButtonColorBuiltInControl,
|
|
957
953
|
K as ButtonControls,
|
|
958
|
-
|
|
959
|
-
|
|
954
|
+
Ge as ButtonFitToContainerBuiltInControl,
|
|
955
|
+
Ve as ButtonFontFamilyBuiltInControl,
|
|
960
956
|
pe as ButtonMarginsBuiltInControl,
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
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,
|
|
969
965
|
P as GeneralControls,
|
|
970
|
-
|
|
966
|
+
Et as IconsRegistry,
|
|
971
967
|
H as ImageControls,
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
rt 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,
|
|
981
976
|
F as TextControls,
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
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
|
|
990
986
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useHttp as m } from "../composables/useHttp.js";
|
|
2
|
-
import { useToaster as
|
|
3
|
-
import { MAX_DEFAULT_TEMPLATE_ID as
|
|
2
|
+
import { useToaster as i } from "../composables/useToaster.js";
|
|
3
|
+
import { MAX_DEFAULT_TEMPLATE_ID as p } from "../enums/defaults.js";
|
|
4
4
|
const y = () => {
|
|
5
|
-
const { get: r } = m(), { handleError: o } =
|
|
5
|
+
const { get: r } = m(), { handleError: o } = i();
|
|
6
6
|
return {
|
|
7
7
|
getToken: async () => {
|
|
8
8
|
try {
|
|
@@ -26,17 +26,13 @@ const y = () => {
|
|
|
26
26
|
getDefaultTemplate: async () => {
|
|
27
27
|
const t = {
|
|
28
28
|
html: "",
|
|
29
|
-
css: ""
|
|
30
|
-
forceRecreate: !0
|
|
29
|
+
css: ""
|
|
31
30
|
};
|
|
32
31
|
try {
|
|
33
|
-
const c = new URLSearchParams(window.location.search).get("default-template"), s = c ? parseInt(c) : 0, l = s >= 1 && s <=
|
|
32
|
+
const c = new URLSearchParams(window.location.search).get("default-template"), s = c ? parseInt(c) : 0, l = s >= 1 && s <= p ? s : 0, { data: n } = await r(
|
|
34
33
|
`/stripo/default-template/${l}`
|
|
35
34
|
), a = typeof n == "string" ? JSON.parse(n) : n;
|
|
36
|
-
return !a || typeof a != "object" || !("html" in a) || !("css" in a) ? t :
|
|
37
|
-
...a,
|
|
38
|
-
forceRecreate: !0
|
|
39
|
-
};
|
|
35
|
+
return !a || typeof a != "object" || !("html" in a) || !("css" in a) ? t : a;
|
|
40
36
|
} catch (e) {
|
|
41
37
|
return o(e, "Failed to fetch default template"), t;
|
|
42
38
|
}
|
|
@@ -90,6 +90,8 @@ export declare const TemplateSchema: v.ObjectSchema<{
|
|
|
90
90
|
}, undefined>, undefined>, readonly []>;
|
|
91
91
|
/** Selected unsubscribe page IDs */
|
|
92
92
|
readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
|
|
93
|
+
/** Force recreate template in Stripo storage (use true when updating externally modified templates) */
|
|
94
|
+
readonly forceRecreate: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
93
95
|
}, undefined>;
|
|
94
96
|
/**
|
|
95
97
|
* Email header configuration (sender name and subject)
|
|
@@ -400,6 +402,8 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
400
402
|
}, undefined>, undefined>, readonly []>;
|
|
401
403
|
/** Selected unsubscribe page IDs */
|
|
402
404
|
readonly selectedUnsubscribePages: v.OptionalSchema<v.ArraySchema<v.NumberSchema<undefined>, undefined>, readonly []>;
|
|
405
|
+
/** Force recreate template in Stripo storage (use true when updating externally modified templates) */
|
|
406
|
+
readonly forceRecreate: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
403
407
|
}, undefined>, {}>;
|
|
404
408
|
/** Editor settings */
|
|
405
409
|
readonly editor: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -31,6 +31,7 @@ export declare const useConfig: () => {
|
|
|
31
31
|
} | undefined;
|
|
32
32
|
}[];
|
|
33
33
|
selectedUnsubscribePages: number[];
|
|
34
|
+
forceRecreate: boolean;
|
|
34
35
|
};
|
|
35
36
|
editor: {
|
|
36
37
|
locale: string;
|
|
@@ -116,6 +117,7 @@ export declare const useConfig: () => {
|
|
|
116
117
|
} | undefined;
|
|
117
118
|
}[];
|
|
118
119
|
selectedUnsubscribePages: number[];
|
|
120
|
+
forceRecreate: boolean;
|
|
119
121
|
} | null>;
|
|
120
122
|
editor: import("vue").ComputedRef<{
|
|
121
123
|
locale: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Control IDs used in the CouponBlock Extension
|
|
3
|
+
* These IDs are returned by the getId() method of each control
|
|
4
|
+
*/
|
|
5
|
+
export declare enum CouponControlId {
|
|
6
|
+
TEXT_ALIGN = "coupon-block-text-align-control",
|
|
7
|
+
TEXT_COLOR = "coupon-block-text-color-control",
|
|
8
|
+
TEXT_SIZE = "coupon-block-text-size-control",
|
|
9
|
+
TEXT_STYLE = "coupon-block-text-style-control",
|
|
10
|
+
TEXT_FONT_FAMILY = "coupon-block-text-font-family-control",
|
|
11
|
+
TEXT_BACKGROUND = "coupon-block-text-background-control",
|
|
12
|
+
TEXT_PADDINGS = "coupon-block-text-paddings-control",
|
|
13
|
+
TEXT_LINE_SPACING = "coupon-block-text-line-spacing-control"
|
|
14
|
+
}
|