@useinsider/guido 1.0.3-beta.dfb1fcf → 1.0.3-beta.e0403cf
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 +0 -3
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +73 -79
- package/dist/components/organisms/header/RightSlot.vue.js +1 -1
- package/dist/components/organisms/header/RightSlot.vue2.js +22 -23
- package/dist/composables/useGuidoActions.js +9 -19
- package/dist/composables/useStripo.js +38 -44
- package/dist/config/compiler/unsubscribeCompilerRules.js +28 -33
- package/dist/enums/defaults.js +1 -2
- package/dist/enums/unsubscribe.js +25 -27
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +68 -158
- package/dist/extensions/Blocks/Recommendation/constants.js +1 -10
- package/dist/extensions/Blocks/Recommendation/control.js +59 -74
- package/dist/extensions/Blocks/Recommendation/controls/button/align.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/border.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/borderRadius.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/color.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/fitToContent.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/fontFamily.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/margins.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/paddings.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/text.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/textSize.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/image/margins.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/image/size.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/align.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/background.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/color.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/fontFamily.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/paddings.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/size.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/name/style.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/align.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/background.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/color.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/paddings.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/size.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/oldPrice/style.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/align.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/background.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/color.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/fontFamily.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/paddings.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/size.js +13 -0
- package/dist/extensions/Blocks/Recommendation/controls/price/style.js +13 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +40 -16
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +71 -124
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +1 -1
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +65 -89
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +19 -56
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +45 -74
- package/dist/extensions/DynamicContent/dynamic-content-modal.js +19 -25
- package/dist/extensions/DynamicContent/dynamic-content.js +33 -128
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +70 -75
- package/dist/src/@types/generic.d.ts +6 -27
- package/dist/src/components/Guido.vue.d.ts +2 -3
- package/dist/src/composables/useGuidoActions.d.ts +0 -9
- package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +3 -54
- package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +1 -41
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +2 -5
- package/dist/src/extensions/Blocks/Recommendation/controls/button/align.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/border.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/borderRadius.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/color.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fitToContent.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/fontFamily.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/margins.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/paddings.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/text.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textSize.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/button/textStyleAndFontColor.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/image/margins.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/image/size.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/align.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/background.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/color.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/fontFamily.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/paddings.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/size.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/style.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/align.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/background.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/color.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/fontFamily.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/paddings.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/size.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/style.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/align.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/background.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/color.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/fontFamily.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/paddings.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/size.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/price/style.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/store/recommendation.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +3 -3
- package/dist/src/extensions/Blocks/Recommendation/templates/migrationTemplate.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +7 -15
- package/dist/src/extensions/DynamicContent/dynamic-content-modal.d.ts +2 -9
- package/dist/src/extensions/DynamicContent/dynamic-content.d.ts +2 -52
- package/dist/src/stores/config.d.ts +2 -3
- package/dist/src/stores/dynamic-content.d.ts +3 -3
- package/dist/src/stores/editor.d.ts +1 -1
- package/dist/src/stores/onboarding.d.ts +1 -1
- package/dist/src/stores/preview.d.ts +1 -1
- package/dist/src/stores/recommendation.d.ts +1 -1
- package/dist/src/stores/save-as-template.d.ts +1 -1
- package/dist/src/stores/toaster.d.ts +1 -1
- package/dist/src/stores/unsubscribe.d.ts +1 -1
- package/dist/src/stores/version-history.d.ts +1 -1
- package/dist/src/utils/genericUtil.d.ts +0 -1
- package/dist/static/styles/components/wide-panel.css.js +4 -0
- package/dist/static/styles/customEditorStyle.css.js +0 -14
- package/dist/stores/config.js +5 -5
- package/dist/stores/dynamic-content.js +2 -2
- package/dist/stores/editor.js +1 -1
- package/dist/stores/onboarding.js +27 -27
- package/dist/stores/preview.js +1 -1
- package/dist/stores/recommendation.js +3 -3
- package/dist/stores/save-as-template.js +2 -2
- package/dist/stores/toaster.js +1 -1
- package/dist/stores/unsubscribe.js +1 -1
- package/dist/stores/version-history.js +4 -4
- package/dist/utils/genericUtil.js +9 -20
- package/package.json +1 -1
- package/dist/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.js +0 -68
- package/dist/extensions/Blocks/Recommendation/controls/index.js +0 -272
- package/dist/extensions/Blocks/Recommendation/controls/nameTextTrimControl.js +0 -74
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscountTextAfterControl.js +0 -71
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscountTextBeforeControl.js +0 -71
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPriceTextAfterControl.js +0 -71
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPriceTextBeforeControl.js +0 -71
- package/dist/extensions/Blocks/Recommendation/controls/priceHideControl.js +0 -60
- package/dist/extensions/Blocks/Recommendation/controls/priceInlineLayoutControl.js +0 -160
- package/dist/extensions/Blocks/Recommendation/controls/spacingControl.js +0 -188
- package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +0 -25
- package/dist/extensions/Blocks/controlFactories.js +0 -234
- package/dist/src/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.d.ts +0 -25
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +0 -71
- package/dist/src/extensions/Blocks/Recommendation/controls/nameTextTrimControl.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextAfterControl.d.ts +0 -15
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextBeforeControl.d.ts +0 -15
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextAfterControl.d.ts +0 -15
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextBeforeControl.d.ts +0 -15
- package/dist/src/extensions/Blocks/Recommendation/controls/priceHideControl.d.ts +0 -16
- package/dist/src/extensions/Blocks/Recommendation/controls/priceInlineLayoutControl.d.ts +0 -50
- package/dist/src/extensions/Blocks/Recommendation/controls/spacingControl.d.ts +0 -60
- package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.d.ts +0 -19
- package/dist/src/extensions/Blocks/controlFactories.d.ts +0 -95
- package/dist/src/utils/environmentUtil.d.ts +0 -5
- package/dist/utils/environmentUtil.js +0 -4
|
@@ -21,7 +21,7 @@ ${s.map((E) => ` - ${E}`).join(`
|
|
|
21
21
|
* This validation runs only once per class type and results are cached.
|
|
22
22
|
*/
|
|
23
23
|
validateImplementation(e, r) {
|
|
24
|
-
var
|
|
24
|
+
var O;
|
|
25
25
|
const s = [], E = r.name, T = Object.getPrototypeOf(this);
|
|
26
26
|
e.forEach((l) => {
|
|
27
27
|
if (typeof this[l] != "function") {
|
|
@@ -29,7 +29,7 @@ ${s.map((E) => ` - ${E}`).join(`
|
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
T[l] === r.prototype[l] && s.push(`Method ${l}() must be implemented (currently using base class error-throwing implementation)`);
|
|
32
|
-
}), u.validatedClasses.add(r), s.length > 0 ? (u.validationErrors.set(r, s), console.error(`[${E} Validation] ${E} validation failed:`, s)) : typeof process < "u" && ((
|
|
32
|
+
}), u.validatedClasses.add(r), s.length > 0 ? (u.validationErrors.set(r, s), console.error(`[${E} Validation] ${E} validation failed:`, s)) : typeof process < "u" && ((O = process.env) == null ? void 0 : O.NODE_ENV) === "development" && console.log(`[${E} Validation] ✅ ${E} validated successfully`);
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
B.validatedClasses = /* @__PURE__ */ new Set();
|
|
@@ -231,33 +231,33 @@ var rt = {
|
|
|
231
231
|
}, Pt = {
|
|
232
232
|
BLOCK_IMAGE: rt,
|
|
233
233
|
BLOCK_BUTTON: nt
|
|
234
|
-
}, U = "esd-block-button", y = "esd-block-text", K = "esd-block-image", st = "esd-structure", it = "esd-block-video", at = "esd-block-social", ot = "esd-block-banner", Et = "esd-block-timer", lt = "esd-block-menu", dt = "esd-block-html", ut = "esd-block-spacer",
|
|
234
|
+
}, U = "esd-block-button", y = "esd-block-text", K = "esd-block-image", st = "esd-structure", it = "esd-block-video", at = "esd-block-social", ot = "esd-block-banner", Et = "esd-block-timer", lt = "esd-block-menu", dt = "esd-block-html", ut = "esd-block-spacer", Ot = "esd-container-frame", It = "esd-stripe", Tt = "esd-amp-form", I = ((t) => (t.BUTTON = `.${U}`, t.TEXT = `.${y}`, t.IMAGE = `.${K}`, t.STRUCTURE = `.${st}`, t.VIDEO = `.${it}`, t.SOCIAL = `.${at}`, t.BANNER = `.${ot}`, t.TIMER = `.${Et}`, t.MENU = `.${lt}`, t.HTML = `.${dt}`, t.SPACER = `.${ut}`, t.CONTAINER = `.${Ot}`, t.STRIPE = `.${It}`, t.FORM = `.${Tt}`, t))(I || {}), ct = /* @__PURE__ */ ((t) => (t.BLOCK_IMAGE = "BLOCK_IMAGE", t.BLOCK_TEXT = "BLOCK_TEXT", t.BLOCK_BUTTON = "BLOCK_BUTTON", t.BLOCK_SPACER = "BLOCK_SPACER", t.BLOCK_VIDEO = "BLOCK_VIDEO", t.BLOCK_SOCIAL = "BLOCK_SOCIAL", t.BLOCK_BANNER = "BLOCK_BANNER", t.BLOCK_TIMER = "BLOCK_TIMER", t.BLOCK_MENU = "BLOCK_MENU", t.BLOCK_MENU_ITEM = "BLOCK_MENU_ITEM", t.BLOCK_HTML = "BLOCK_HTML", t.BLOCK_AMP_CAROUSEL = "BLOCK_AMP_CAROUSEL", t.BLOCK_AMP_ACCORDION = "BLOCK_AMP_ACCORDION", t.BLOCK_AMP_FORM = "BLOCK_AMP_FORM", t.CONTAINER = "CONTAINER", t.FORM_CONTAINER = "FORM_CONTAINER", t.STRUCTURE = "STRUCTURE", t.STRIPE = "STRIPE", t.EMPTY_CONTAINER = "EMPTY_CONTAINER", t.CUSTOM_BLOCK_LINK = "CUSTOM_BLOCK_LINK", t.CUSTOM_BLOCK_IMAGE = "CUSTOM_BLOCK_IMAGE", t.CUSTOM_BLOCK_TEXT = "CUSTOM_BLOCK_TEXT", t))(ct || {}), p = /* @__PURE__ */ ((t) => (t.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", t.APPLY_CONDITION = "applyCondition", t.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", t.BACKGROUND_COLOR = "backgroundColor", t.BACKGROUND_IMAGE = "generalImageContainer", t.TEXT_COLOR = "textColor", t.TEXT_STYLE = "textStyle", t.TEXT_SIZE = "textSize", t.TEXT_LINE_SPACING = "textLineSpacing", t.TEXT_ALIGN = "textAlign", t.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", t.HIDDEN_NODE = "hiddenNode", t.SMART_BLOCK = "smartBlock", t.SYNCHRONIZED_MODULE = "synchronizedModuleForm", t.FONT_FAMILY = "generalFontFamilyForm", t.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", t.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", t))(p || {}), F = /* @__PURE__ */ ((t) => (t.ADJUST_TO_WIDTH = "adjustToWidth", t.ALIGNMENT = "buttonAlignment", t.BORDER = "buttonBorder", t.BORDER_RADIUS = "buttonBorderRadius", t.COLOR = "buttonColor", t.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", t.EXTERNAL_INDENTS = "buttonExternalIndents", t.FIXED_HEIGHT = "buttonFixedHeightForm", t.FONT_COLOR = "buttonFontColor", t.FONT_FAMILY = "buttonFontFamily", t.FONT_SIZE = "buttonFontSize", t.ICON = "buttonIconContainer", t.ICON_ALIGN = "buttonIconAlign", t.ICON_INDENT = "buttonIconIndent", t.ICON_WIDTH = "buttonIconWidth", t.IMAGE = "buttonImageForm", t.INTERNAL_INDENTS = "buttonInternalIndents", t.LINK = "buttonLink", t.MIME_TYPE = "buttonMimeTypeForm", t.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", t.TEXT = "buttonText", t.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", t.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", t.HOVERED_COLOR = "hoveredButtonColorForm", t.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", t))(F || {}), w = /* @__PURE__ */ ((t) => (t.HIDDEN_NODE = "hiddenNodeText", t.PARAGRAPH_STYLE = "paragraphStyleForm", t.ALIGN = "textAlignmentForm", t.ANCHOR_CONTAINER = "textAnchorForm", t.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", t.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", t.FONT_COLOR = "textBlockFontColor", t.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", t.FONT_FAMILY = "textFontFamily", t.FONT_SIZE = "textBlockFontSize", t.DIRECTION = "textBlockDirectionForm", t.INSERT_FORM = "textBlockInsertForm", t.LINK_DATA = "textBlockLinkDataForm", t.FORMAT = "textBlockTextFormatForm", t.FIXED_HEIGHT = "textFixedHeightForm", t.INTERNAL_INDENTS = "textInternalIndents", t.LINE_HEIGHT = "textLineHeightForm", t.LINKS_COLOR = "textLinksFontColorForm", t.MIME_TYPE = "textMimeTypeForm", t.NO_LINE_WRAPS = "textNoLineWrapsForm", t))(w || {}), P = /* @__PURE__ */ ((t) => (t.ALT_TEXT = "altText", t.LINK = "blockLink", t.ALIGNMENT = "imageAlignment", t.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", t.BORDER_RADIUS = "imageBorderRadiusForm", t.IMAGE = "imageImageForm", t.EXTERNAL_INDENTS = "imageExternalIndents", t.MIME_TYPE = "imageMimeTypeForm", t.RESPONSIVE = "imageResponsive", t.ROLLOVER_IMAGE = "imageRolloverImageForm", t.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", t.SIZE = "imageSizeContainer", t))(P || {}), _t = /* @__PURE__ */ ((t) => (t.BACKGROUND_COLOR = "containerBackgroundColorForm", t.BORDER_FORM = "containerBorderForm", t.BORDER_RADIUS = "containerBorderRadiusForm", t.EXTERNAL_INDENTS = "containerExternalIndentsForm", t.IMAGE_CONTAINER = "containerImageContainerForm", t.MIME_TYPE = "containerMimeTypeForm", t.DISPLAY_CONDITIONS = "displayConditions", t.HIDDEN_NODE = "containerHiddenNodeForm", t))(_t || {}), n = {
|
|
235
235
|
BLOCK_BUTTON: F,
|
|
236
236
|
BLOCK_TEXT: w,
|
|
237
237
|
BLOCK_IMAGE: P,
|
|
238
238
|
GENERAL: p
|
|
239
|
-
}, Rt = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(Rt || {}),
|
|
239
|
+
}, Rt = /* @__PURE__ */ ((t) => (t.SETTINGS = "settings", t.STYLES = "styles", t.DATA = "data", t))(Rt || {}), a = {
|
|
240
240
|
name: "name",
|
|
241
241
|
disabled: "disabled"
|
|
242
242
|
}, ht = {
|
|
243
|
-
...
|
|
243
|
+
...a,
|
|
244
244
|
caption: "caption",
|
|
245
245
|
icon: "icon"
|
|
246
246
|
}, Ct = {
|
|
247
|
-
...
|
|
247
|
+
...a,
|
|
248
248
|
caption: "caption"
|
|
249
249
|
}, Lt = {
|
|
250
|
-
...
|
|
250
|
+
...a,
|
|
251
251
|
minValue: "min-value",
|
|
252
252
|
maxValue: "max-value",
|
|
253
253
|
step: "step"
|
|
254
254
|
}, gt = {
|
|
255
|
-
...
|
|
255
|
+
...a,
|
|
256
256
|
text: "text"
|
|
257
257
|
}, mt = {
|
|
258
|
-
...
|
|
258
|
+
...a
|
|
259
259
|
}, H = {
|
|
260
|
-
...
|
|
260
|
+
...a,
|
|
261
261
|
searchable: "searchable",
|
|
262
262
|
multiSelect: "multi-select",
|
|
263
263
|
placeholder: "placeholder",
|
|
@@ -271,25 +271,25 @@ var rt = {
|
|
|
271
271
|
text: "text",
|
|
272
272
|
value: "value"
|
|
273
273
|
}, Dt = {
|
|
274
|
-
...
|
|
274
|
+
...a
|
|
275
275
|
}, St = {
|
|
276
276
|
controlId: "control-id"
|
|
277
277
|
}, Bt = {
|
|
278
|
-
...
|
|
278
|
+
...a,
|
|
279
279
|
icon: "icon",
|
|
280
280
|
position: "position"
|
|
281
281
|
}, Mt = {
|
|
282
|
-
...
|
|
282
|
+
...a
|
|
283
283
|
}, Ht = {
|
|
284
284
|
BUTTON: ht,
|
|
285
285
|
CHECKBOX: Ct,
|
|
286
|
-
COLOR:
|
|
286
|
+
COLOR: a,
|
|
287
287
|
COUNTER: Lt,
|
|
288
288
|
LABEL: gt,
|
|
289
289
|
RADIO_BUTTONS: mt,
|
|
290
290
|
SELECTPICKER: H,
|
|
291
291
|
FONT_FAMILY_SELECT: At,
|
|
292
|
-
SWITCHER:
|
|
292
|
+
SWITCHER: a,
|
|
293
293
|
TEXT: Dt,
|
|
294
294
|
SELECT_ITEM: Nt,
|
|
295
295
|
RADIO_ITEM: bt,
|
|
@@ -327,60 +327,56 @@ var rt = {
|
|
|
327
327
|
isVisible(t) {
|
|
328
328
|
return !0;
|
|
329
329
|
}
|
|
330
|
-
},
|
|
330
|
+
}, o = class extends M {
|
|
331
331
|
getTargetNodes(t) {
|
|
332
|
-
const e = t.querySelectorAll(
|
|
332
|
+
const e = t.querySelectorAll(I.BUTTON), r = t.asElement().hasClass(U) ? [t] : [];
|
|
333
333
|
return e.length ? e : r;
|
|
334
334
|
}
|
|
335
|
-
}, Xt = class extends
|
|
335
|
+
}, Xt = class extends o {
|
|
336
336
|
getParentControlId() {
|
|
337
337
|
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
338
338
|
}
|
|
339
339
|
getLabels() {
|
|
340
340
|
}
|
|
341
|
-
}, kt = class extends
|
|
341
|
+
}, kt = class extends o {
|
|
342
342
|
getParentControlId() {
|
|
343
343
|
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
344
344
|
}
|
|
345
|
-
}, Vt = class extends
|
|
346
|
-
getParentControlId() {
|
|
347
|
-
return n.GENERAL.BACKGROUND_COLOR;
|
|
348
|
-
}
|
|
349
|
-
}, Gt = class extends a {
|
|
345
|
+
}, Vt = class extends o {
|
|
350
346
|
getParentControlId() {
|
|
351
347
|
return n.BLOCK_BUTTON.BORDER;
|
|
352
348
|
}
|
|
353
349
|
getLabels() {
|
|
354
350
|
}
|
|
355
|
-
},
|
|
351
|
+
}, Gt = class extends o {
|
|
356
352
|
getParentControlId() {
|
|
357
353
|
return n.BLOCK_BUTTON.COLOR;
|
|
358
354
|
}
|
|
359
|
-
},
|
|
355
|
+
}, ft = class extends o {
|
|
360
356
|
getParentControlId() {
|
|
361
357
|
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
362
358
|
}
|
|
363
|
-
},
|
|
359
|
+
}, Qt = class extends o {
|
|
364
360
|
getParentControlId() {
|
|
365
361
|
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
366
362
|
}
|
|
367
|
-
},
|
|
363
|
+
}, Yt = class extends o {
|
|
368
364
|
getParentControlId() {
|
|
369
365
|
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
370
366
|
}
|
|
371
|
-
},
|
|
367
|
+
}, $t = class extends o {
|
|
372
368
|
getParentControlId() {
|
|
373
369
|
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
374
370
|
}
|
|
375
|
-
},
|
|
371
|
+
}, Wt = class extends o {
|
|
376
372
|
getParentControlId() {
|
|
377
373
|
return n.BLOCK_BUTTON.TEXT;
|
|
378
374
|
}
|
|
379
|
-
},
|
|
375
|
+
}, zt = class extends o {
|
|
380
376
|
getParentControlId() {
|
|
381
377
|
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
382
378
|
}
|
|
383
|
-
},
|
|
379
|
+
}, Zt = class extends o {
|
|
384
380
|
getParentControlId() {
|
|
385
381
|
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
386
382
|
}
|
|
@@ -442,16 +438,16 @@ var rt = {
|
|
|
442
438
|
}
|
|
443
439
|
};
|
|
444
440
|
X.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
445
|
-
var
|
|
441
|
+
var jt = X, k = class extends M {
|
|
446
442
|
getTargetNodes(t) {
|
|
447
|
-
const e = t.querySelectorAll(
|
|
443
|
+
const e = t.querySelectorAll(I.IMAGE), r = t.asElement().hasClass(K) ? [t] : [];
|
|
448
444
|
return e.length ? e : r;
|
|
449
445
|
}
|
|
450
|
-
},
|
|
446
|
+
}, qt = class extends k {
|
|
451
447
|
getParentControlId() {
|
|
452
448
|
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
453
449
|
}
|
|
454
|
-
},
|
|
450
|
+
}, Jt = class extends k {
|
|
455
451
|
getParentControlId() {
|
|
456
452
|
return n.BLOCK_IMAGE.SIZE;
|
|
457
453
|
}
|
|
@@ -464,7 +460,7 @@ var qt = X, k = class extends M {
|
|
|
464
460
|
}
|
|
465
461
|
};
|
|
466
462
|
V.REQUIRED_METHODS = ["registerBlockControls"];
|
|
467
|
-
var
|
|
463
|
+
var te = V, ee = class {
|
|
468
464
|
constructor(t, e) {
|
|
469
465
|
this.tabId = t, this.controlsIds = e;
|
|
470
466
|
}
|
|
@@ -489,13 +485,17 @@ var ee = V, re = class {
|
|
|
489
485
|
}
|
|
490
486
|
}, d = class extends M {
|
|
491
487
|
getTargetNodes(t) {
|
|
492
|
-
const e = t.querySelectorAll(
|
|
488
|
+
const e = t.querySelectorAll(I.TEXT), r = t.asElement().hasClass(y) ? [t] : [];
|
|
493
489
|
return e.length ? e : r;
|
|
494
490
|
}
|
|
495
|
-
},
|
|
491
|
+
}, re = class extends d {
|
|
496
492
|
getParentControlId() {
|
|
497
493
|
return n.GENERAL.TEXT_ALIGN;
|
|
498
494
|
}
|
|
495
|
+
}, ne = class extends d {
|
|
496
|
+
getParentControlId() {
|
|
497
|
+
return n.BLOCK_TEXT.TEXT_BLOCK_BACKGROUND_COLOR;
|
|
498
|
+
}
|
|
499
499
|
}, se = class extends d {
|
|
500
500
|
getParentControlId() {
|
|
501
501
|
return n.GENERAL.TEXT_COLOR;
|
|
@@ -505,24 +505,20 @@ var ee = V, re = class {
|
|
|
505
505
|
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
506
506
|
}
|
|
507
507
|
}, ae = class extends d {
|
|
508
|
-
getParentControlId() {
|
|
509
|
-
return n.GENERAL.TEXT_LINE_SPACING;
|
|
510
|
-
}
|
|
511
|
-
}, oe = class extends d {
|
|
512
508
|
getParentControlId() {
|
|
513
509
|
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
514
510
|
}
|
|
515
|
-
},
|
|
511
|
+
}, oe = class extends d {
|
|
516
512
|
getParentControlId() {
|
|
517
513
|
return n.GENERAL.TEXT_SIZE;
|
|
518
514
|
}
|
|
519
|
-
},
|
|
515
|
+
}, Ee = class extends d {
|
|
520
516
|
getParentControlId() {
|
|
521
517
|
return n.GENERAL.TEXT_STYLE;
|
|
522
518
|
}
|
|
523
519
|
}, xt = class {
|
|
524
|
-
constructor(t, e, r = [], s, E = [], T,
|
|
525
|
-
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = $, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = E, this.settingsPanelRegistry = T, this.contextActions =
|
|
520
|
+
constructor(t, e, r = [], s, E = [], T, O = [], l = [], v, Y, $, W, z, Z, j, q) {
|
|
521
|
+
this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.i18n = t, this.styles = e, this.previewStyles = $, this.uiElements = r, this.uiElementTagRegistry = s, this.controls = E, this.settingsPanelRegistry = T, this.contextActions = O, this.blocks = l, this.externalSmartElementsLibrary = v, this.externalImageLibrary = Y, this.externalAiAssistant = W, this.externalDisplayConditionsLibrary = z, this.externalVideoLibrary = Z, this.blocksPanel = j, this.iconsRegistry = q, this.id = Math.random().toString(36).substring(2);
|
|
526
522
|
}
|
|
527
523
|
getI18n() {
|
|
528
524
|
return this.i18n;
|
|
@@ -575,7 +571,7 @@ var ee = V, re = class {
|
|
|
575
571
|
getIconsRegistry() {
|
|
576
572
|
return this.iconsRegistry;
|
|
577
573
|
}
|
|
578
|
-
},
|
|
574
|
+
}, le = class {
|
|
579
575
|
constructor() {
|
|
580
576
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [];
|
|
581
577
|
}
|
|
@@ -743,7 +739,7 @@ var G = class b extends i {
|
|
|
743
739
|
}
|
|
744
740
|
};
|
|
745
741
|
G.REQUIRED_METHODS = ["registerIconsSvg"];
|
|
746
|
-
var
|
|
742
|
+
var de = G, ue = class {
|
|
747
743
|
constructor(t) {
|
|
748
744
|
this.key = t;
|
|
749
745
|
}
|
|
@@ -821,51 +817,50 @@ var Oe = f, Q = class S extends i {
|
|
|
821
817
|
}
|
|
822
818
|
};
|
|
823
819
|
Q.REQUIRED_METHODS = ["registerUiElements"];
|
|
824
|
-
var
|
|
820
|
+
var Ie = Q;
|
|
825
821
|
export {
|
|
826
822
|
wt as Block,
|
|
827
823
|
Pt as BlockAttr,
|
|
828
824
|
J as BlockCompositionType,
|
|
829
|
-
|
|
825
|
+
I as BlockSelector,
|
|
830
826
|
ct as BlockType,
|
|
831
827
|
M as BuiltInControl,
|
|
832
828
|
n as BuiltInControlTypes,
|
|
833
829
|
kt as ButtonAlignBuiltInControl,
|
|
834
|
-
Vt as
|
|
835
|
-
Gt as ButtonBorderBuiltInControl,
|
|
830
|
+
Vt as ButtonBorderBuiltInControl,
|
|
836
831
|
Xt as ButtonBorderRadiusBuiltInControl,
|
|
837
|
-
|
|
832
|
+
Gt as ButtonColorBuiltInControl,
|
|
838
833
|
F as ButtonControls,
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
834
|
+
ft as ButtonFitToContainerBuiltInControl,
|
|
835
|
+
Qt as ButtonFontFamilyBuiltInControl,
|
|
836
|
+
Yt as ButtonMarginsBuiltInControl,
|
|
837
|
+
$t as ButtonPaddingsBuiltInControl,
|
|
838
|
+
Wt as ButtonTextBuiltInControl,
|
|
839
|
+
zt as ButtonTextSizeBuiltInControl,
|
|
840
|
+
Zt as ButtonTextStyleAndFontColorBuiltInControl,
|
|
846
841
|
_t as ContainerControls,
|
|
847
|
-
|
|
842
|
+
jt as Control,
|
|
848
843
|
xt as Extension,
|
|
849
|
-
|
|
844
|
+
le as ExtensionBuilder,
|
|
850
845
|
p as GeneralControls,
|
|
851
|
-
|
|
846
|
+
de as IconsRegistry,
|
|
852
847
|
P as ImageControls,
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
848
|
+
qt as ImageMarginsBuiltInControl,
|
|
849
|
+
Jt as ImageSizeBuiltInControl,
|
|
850
|
+
ue as ModificationDescription,
|
|
851
|
+
te as SettingsPanelRegistry,
|
|
852
|
+
ee as SettingsPanelTab,
|
|
858
853
|
Rt as SettingsTab,
|
|
859
|
-
|
|
854
|
+
re as TextAlignBuiltInControl,
|
|
855
|
+
ne as TextBlockBackgroundBuiltInControl,
|
|
860
856
|
se as TextColorBuiltInControl,
|
|
861
857
|
w as TextControls,
|
|
862
858
|
ie as TextFontFamilyBuiltInControl,
|
|
863
|
-
ae as
|
|
864
|
-
oe as
|
|
865
|
-
Ee as
|
|
866
|
-
le as TextStyleBuiltInControl,
|
|
859
|
+
ae as TextPaddingsBuiltInControl,
|
|
860
|
+
oe as TextSizeBuiltInControl,
|
|
861
|
+
Ee as TextStyleBuiltInControl,
|
|
867
862
|
Ht as UEAttr,
|
|
868
863
|
Oe as UIElement,
|
|
869
|
-
|
|
864
|
+
Ie as UIElementTagRegistry,
|
|
870
865
|
vt as UIElementType
|
|
871
866
|
};
|
|
@@ -7,7 +7,6 @@ type Features = {
|
|
|
7
7
|
saveAsTemplate?: boolean;
|
|
8
8
|
versionHistory?: boolean;
|
|
9
9
|
testMessage?: boolean;
|
|
10
|
-
displayConditions?: boolean;
|
|
11
10
|
};
|
|
12
11
|
type Partner = {
|
|
13
12
|
partnerName: string;
|
|
@@ -38,39 +37,15 @@ export type TemplateConfig = {
|
|
|
38
37
|
selectedUnsubscribePages?: number[];
|
|
39
38
|
variationId?: string;
|
|
40
39
|
};
|
|
41
|
-
export type
|
|
40
|
+
export type DynamicContent = {
|
|
42
41
|
value: string;
|
|
42
|
+
text: string;
|
|
43
43
|
fallback?: string;
|
|
44
44
|
format?: {
|
|
45
45
|
key: string;
|
|
46
46
|
value: string;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
-
export type DynamicContent = BaseDynamicContent & {
|
|
50
|
-
text: string;
|
|
51
|
-
};
|
|
52
|
-
export type MergeTag = BaseDynamicContent & {
|
|
53
|
-
label: string;
|
|
54
|
-
selStart?: number;
|
|
55
|
-
selEnd?: number;
|
|
56
|
-
hidden?: boolean;
|
|
57
|
-
};
|
|
58
|
-
export type PositionData = {
|
|
59
|
-
x: number;
|
|
60
|
-
y: number;
|
|
61
|
-
width?: number;
|
|
62
|
-
height?: number;
|
|
63
|
-
};
|
|
64
|
-
export type DynamicContentEvent = {
|
|
65
|
-
attribute: DynamicContent;
|
|
66
|
-
position?: PositionData;
|
|
67
|
-
};
|
|
68
|
-
export type MergeTagClickEvent = {
|
|
69
|
-
position: PositionData;
|
|
70
|
-
element: HTMLElement;
|
|
71
|
-
tagValue: string | null;
|
|
72
|
-
tagLabel: string | null;
|
|
73
|
-
};
|
|
74
49
|
export interface EmailHeader {
|
|
75
50
|
senderName: string;
|
|
76
51
|
subject: string;
|
|
@@ -86,6 +61,10 @@ export interface TooltipOptions {
|
|
|
86
61
|
};
|
|
87
62
|
preventXss?: boolean;
|
|
88
63
|
}
|
|
64
|
+
export type MergeTag = {
|
|
65
|
+
label: string;
|
|
66
|
+
value: string;
|
|
67
|
+
};
|
|
89
68
|
export type TextValueObject = {
|
|
90
69
|
text: string;
|
|
91
70
|
value: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DynamicContent, GuidoConfig,
|
|
1
|
+
import type { DynamicContent, GuidoConfig, TemplateConfig } from '@@/Types/generic';
|
|
2
2
|
import type { SavedTemplateDetails } from '@@/Types/stripo';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
templateId: string;
|
|
@@ -20,14 +20,13 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<__
|
|
|
20
20
|
hasChanges: import("vue").ComputedRef<boolean>;
|
|
21
21
|
saveSilent: () => Promise<SavedTemplateDetails | undefined> | undefined;
|
|
22
22
|
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {
|
|
23
|
-
"dynamic-content:open": (detail: DynamicContent | null
|
|
23
|
+
"dynamic-content:open": (detail: DynamicContent | null) => void;
|
|
24
24
|
back: () => void;
|
|
25
25
|
"save:start": () => void;
|
|
26
26
|
"save:complete": (data: Omit<SavedTemplateDetails, "forceRecreate">) => void;
|
|
27
27
|
"on-change": (hasChanges: boolean) => void;
|
|
28
28
|
ready: () => void;
|
|
29
29
|
"onboarding:finished": () => void;
|
|
30
|
-
"test-email:click": () => void;
|
|
31
30
|
}, string, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>>, {}>;
|
|
32
31
|
export default _default;
|
|
33
32
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -3,11 +3,9 @@ import type { InjectionKey } from 'vue';
|
|
|
3
3
|
export type BackHandler = () => void;
|
|
4
4
|
export type SaveStartHandler = () => void;
|
|
5
5
|
export type SaveCompleteHandler = (template: Omit<SavedTemplateDetails, 'forceRecreate'>) => void;
|
|
6
|
-
export type TestEmailClickHandler = () => void;
|
|
7
6
|
export declare const BACK_KEY: InjectionKey<BackHandler>;
|
|
8
7
|
export declare const SAVE_START_KEY: InjectionKey<SaveStartHandler>;
|
|
9
8
|
export declare const SAVE_COMPLETE_KEY: InjectionKey<SaveCompleteHandler>;
|
|
10
|
-
export declare const TEST_EMAIL_CLICK_KEY: InjectionKey<TestEmailClickHandler>;
|
|
11
9
|
/**
|
|
12
10
|
* Provides Guido action handlers to child components
|
|
13
11
|
*/
|
|
@@ -15,7 +13,6 @@ export declare const provideGuidoActions: (actions: {
|
|
|
15
13
|
onBack: BackHandler;
|
|
16
14
|
onSaveStart: SaveStartHandler;
|
|
17
15
|
onSaveComplete: SaveCompleteHandler;
|
|
18
|
-
onTestEmailClick: TestEmailClickHandler;
|
|
19
16
|
}) => void;
|
|
20
17
|
/**
|
|
21
18
|
* Provides individual Guido action handlers
|
|
@@ -38,11 +35,6 @@ export declare const useSaveStart: () => SaveStartHandler;
|
|
|
38
35
|
* @returns Save complete function
|
|
39
36
|
*/
|
|
40
37
|
export declare const useSaveComplete: () => SaveCompleteHandler;
|
|
41
|
-
/**
|
|
42
|
-
* Hook to use the test email click handler
|
|
43
|
-
* @returns Test email click function
|
|
44
|
-
*/
|
|
45
|
-
export declare const useTestEmailClick: () => TestEmailClickHandler;
|
|
46
38
|
/**
|
|
47
39
|
* Convenience hook to get all Guido actions
|
|
48
40
|
* @returns Object containing all action handlers
|
|
@@ -51,5 +43,4 @@ export declare const useGuidoActions: () => {
|
|
|
51
43
|
back: BackHandler;
|
|
52
44
|
saveStart: SaveStartHandler;
|
|
53
45
|
saveComplete: SaveCompleteHandler;
|
|
54
|
-
testEmailClick: TestEmailClickHandler;
|
|
55
46
|
};
|
|
@@ -7,73 +7,22 @@ export interface CardCompositionItem {
|
|
|
7
7
|
visible: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare class RecommendationCardCompositionControl extends CommonControl {
|
|
10
|
+
private currentComposition;
|
|
11
|
+
private currentVisibility;
|
|
10
12
|
getId(): string;
|
|
11
13
|
getTemplate(): string;
|
|
12
14
|
onRender(): void;
|
|
13
15
|
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
14
16
|
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
private _createItemContent;
|
|
18
|
-
/**
|
|
19
|
-
* Registers event listeners for composition and visibility changes
|
|
20
|
-
*/
|
|
21
|
-
private _registerValueChangeListeners;
|
|
22
|
-
/**
|
|
23
|
-
* Initializes composition order and visibility state from the current node
|
|
17
|
+
* Initialize the composition order and visibility from the block or use defaults
|
|
24
18
|
*/
|
|
25
19
|
private _initializeComposition;
|
|
26
|
-
/**
|
|
27
|
-
* Reads composition order from node's data-card-composition attribute
|
|
28
|
-
* Falls back to default order if attribute is not present
|
|
29
|
-
*/
|
|
30
|
-
private _readCompositionFromNode;
|
|
31
|
-
/**
|
|
32
|
-
* Gets default composition order
|
|
33
|
-
*/
|
|
34
|
-
private _getDefaultComposition;
|
|
35
|
-
/**
|
|
36
|
-
* Builds visibility values object from the visibility map
|
|
37
|
-
*/
|
|
38
|
-
private _buildVisibilityValues;
|
|
39
|
-
/**
|
|
40
|
-
* Read visibility state from individual row elements' data-visibility attributes
|
|
41
|
-
* This ensures toggles reflect the actual DOM state
|
|
42
|
-
*/
|
|
43
|
-
private _readVisibilityFromRows;
|
|
44
|
-
/**
|
|
45
|
-
* Returns default visibility values for all items
|
|
46
|
-
*/
|
|
47
|
-
private _getDefaultVisibilities;
|
|
48
|
-
/**
|
|
49
|
-
* Extracts visibility values from DOM nodes
|
|
50
|
-
*/
|
|
51
|
-
private _extractVisibilityFromRows;
|
|
52
|
-
/**
|
|
53
|
-
* Parses visibility value from string to boolean
|
|
54
|
-
* Accepts "1", "true" as true, everything else as false
|
|
55
|
-
*/
|
|
56
|
-
private _parseVisibilityValue;
|
|
57
|
-
/**
|
|
58
|
-
* Merges extracted visibilities with default values for missing keys
|
|
59
|
-
*/
|
|
60
|
-
private _mergeWithDefaults;
|
|
61
20
|
/**
|
|
62
21
|
* Apply the reordered composition to the block's HTML structure
|
|
63
|
-
* Updates the data-card-composition attribute and reorders product attributes
|
|
64
22
|
*/
|
|
65
23
|
private _applyCompositionToBlock;
|
|
66
|
-
/**
|
|
67
|
-
* Reorders attribute rows within each product row based on composition order
|
|
68
|
-
*/
|
|
69
|
-
private _reorderProductAttributes;
|
|
70
|
-
/**
|
|
71
|
-
* Builds HTML string with attributes ordered according to composition
|
|
72
|
-
*/
|
|
73
|
-
private _buildCompositionHtml;
|
|
74
24
|
/**
|
|
75
25
|
* Apply visibility changes to the block's HTML structure
|
|
76
|
-
* Updates display style and data-visibility attribute for all matching rows
|
|
77
26
|
*/
|
|
78
27
|
private _applyVisibilityToBlock;
|
|
79
28
|
}
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Attribute type constants used in templates
|
|
3
|
-
* These are used as keys in ElementRenderer and composition arrays
|
|
4
|
-
*/
|
|
5
|
-
export declare const ATTR_PRODUCT_IMAGE = "productImage";
|
|
6
|
-
export declare const ATTR_PRODUCT_NAME = "productName";
|
|
7
|
-
export declare const ATTR_PRODUCT_PRICE = "productPrice";
|
|
8
|
-
export declare const ATTR_PRODUCT_OLD_PRICE = "productOldPrice";
|
|
9
|
-
export declare const ATTR_PRODUCT_OMNIBUS_PRICE = "productOmnibusPrice";
|
|
10
|
-
export declare const ATTR_PRODUCT_OMNIBUS_DISCOUNT = "productOmnibusDiscount";
|
|
11
|
-
export declare const ATTR_PRODUCT_BUTTON = "productButton";
|
|
12
|
-
export declare const ATTR_DATA_PRICE_INLINE = "data-price-inline";
|
|
13
1
|
/**
|
|
14
2
|
* Block IDs used in the Recommendation Extension
|
|
15
3
|
* These IDs are used in the esd-extension-block-id attribute to identify specific blocks
|
|
@@ -19,8 +7,6 @@ export declare enum RecommendationBlockId {
|
|
|
19
7
|
NAME = "recommendation-block-name",
|
|
20
8
|
PRICE = "recommendation-block-price",
|
|
21
9
|
OLD_PRICE = "recommendation-block-old-price",
|
|
22
|
-
OMNIBUS_PRICE = "recommendation-block-omnibus-price",
|
|
23
|
-
OMNIBUS_DISCOUNT = "recommendation-block-omnibus-discount",
|
|
24
10
|
IMAGE = "recommendation-block-image"
|
|
25
11
|
}
|
|
26
12
|
/**
|
|
@@ -43,17 +29,13 @@ export declare enum RecommendationControlId {
|
|
|
43
29
|
NAME_BACKGROUND = "recommendation-block-name-background-control",
|
|
44
30
|
NAME_COLOR = "recommendation-block-name-color-control",
|
|
45
31
|
NAME_FONT_FAMILY = "recommendation-block-name-font-family-control",
|
|
46
|
-
NAME_LINE_SPACING = "recommendation-block-name-line-spacing-control",
|
|
47
32
|
NAME_PADDINGS = "recommendation-block-name-paddings-control",
|
|
48
33
|
NAME_SIZE = "recommendation-block-name-size-control",
|
|
49
34
|
NAME_STYLE = "recommendation-block-name-style-control",
|
|
50
|
-
NAME_TEXT_TRIM = "recommendation-block-name-text-trim-control",
|
|
51
35
|
PRICE_ALIGN = "recommendation-block-price-align-control",
|
|
52
36
|
PRICE_BACKGROUND = "recommendation-block-price-background-control",
|
|
53
37
|
PRICE_COLOR = "recommendation-block-price-color-control",
|
|
54
38
|
PRICE_FONT_FAMILY = "recommendation-block-price-font-family-control",
|
|
55
|
-
PRICE_HIDE_IF_SAME = "recommendation-block-price-hide-if-same-control",
|
|
56
|
-
PRICE_LINE_SPACING = "recommendation-block-price-line-spacing-control",
|
|
57
39
|
PRICE_PADDINGS = "recommendation-block-price-paddings-control",
|
|
58
40
|
PRICE_SIZE = "recommendation-block-price-size-control",
|
|
59
41
|
PRICE_STYLE = "recommendation-block-price-style-control",
|
|
@@ -61,31 +43,9 @@ export declare enum RecommendationControlId {
|
|
|
61
43
|
OLD_PRICE_BACKGROUND = "recommendation-block-old-price-background-control",
|
|
62
44
|
OLD_PRICE_COLOR = "recommendation-block-old-price-color-control",
|
|
63
45
|
OLD_PRICE_FONT_FAMILY = "recommendation-block-old-price-font-family-control",
|
|
64
|
-
OLD_PRICE_LINE_SPACING = "recommendation-block-old-price-line-spacing-control",
|
|
65
46
|
OLD_PRICE_PADDINGS = "recommendation-block-old-price-paddings-control",
|
|
66
47
|
OLD_PRICE_SIZE = "recommendation-block-old-price-size-control",
|
|
67
48
|
OLD_PRICE_STYLE = "recommendation-block-old-price-style-control",
|
|
68
|
-
OMNIBUS_PRICE_ALIGN = "recommendation-block-omnibus-price-align-control",
|
|
69
|
-
OMNIBUS_PRICE_BACKGROUND = "recommendation-block-omnibus-price-background-control",
|
|
70
|
-
OMNIBUS_PRICE_COLOR = "recommendation-block-omnibus-price-color-control",
|
|
71
|
-
OMNIBUS_PRICE_FONT_FAMILY = "recommendation-block-omnibus-price-font-family-control",
|
|
72
|
-
OMNIBUS_PRICE_LINE_SPACING = "recommendation-block-omnibus-price-line-spacing-control",
|
|
73
|
-
OMNIBUS_PRICE_PADDINGS = "recommendation-block-omnibus-price-paddings-control",
|
|
74
|
-
OMNIBUS_PRICE_SIZE = "recommendation-block-omnibus-price-size-control",
|
|
75
|
-
OMNIBUS_PRICE_STYLE = "recommendation-block-omnibus-price-style-control",
|
|
76
|
-
OMNIBUS_PRICE_TEXT_BEFORE = "recommendation-block-omnibus-price-text-before-control",
|
|
77
|
-
OMNIBUS_PRICE_TEXT_AFTER = "recommendation-block-omnibus-price-text-after-control",
|
|
78
|
-
OMNIBUS_DISCOUNT_ALIGN = "recommendation-block-omnibus-discount-align-control",
|
|
79
|
-
OMNIBUS_DISCOUNT_BACKGROUND = "recommendation-block-omnibus-discount-background-control",
|
|
80
|
-
OMNIBUS_DISCOUNT_COLOR = "recommendation-block-omnibus-discount-color-control",
|
|
81
|
-
OMNIBUS_DISCOUNT_FONT_FAMILY = "recommendation-block-omnibus-discount-font-family-control",
|
|
82
|
-
OMNIBUS_DISCOUNT_LINE_SPACING = "recommendation-block-omnibus-discount-line-spacing-control",
|
|
83
|
-
OMNIBUS_DISCOUNT_PADDINGS = "recommendation-block-omnibus-discount-paddings-control",
|
|
84
|
-
OMNIBUS_DISCOUNT_SIZE = "recommendation-block-omnibus-discount-size-control",
|
|
85
|
-
OMNIBUS_DISCOUNT_STYLE = "recommendation-block-omnibus-discount-style-control",
|
|
86
|
-
OMNIBUS_DISCOUNT_TEXT_BEFORE = "recommendation-block-omnibus-discount-text-before-control",
|
|
87
|
-
OMNIBUS_DISCOUNT_TEXT_AFTER = "recommendation-block-omnibus-discount-text-after-control",
|
|
88
49
|
IMAGE_SIZE = "recommendation-block-image-size-control",
|
|
89
|
-
IMAGE_MARGINS = "recommendation-block-image-margins-control"
|
|
90
|
-
PRICE_INLINE_LAYOUT = "recommendation-block-price-inline-layout-control"
|
|
50
|
+
IMAGE_MARGINS = "recommendation-block-image-margins-control"
|
|
91
51
|
}
|
|
@@ -17,6 +17,8 @@ export declare class RecommendationBlockControl extends CommonControl {
|
|
|
17
17
|
_getProductLayout(): string;
|
|
18
18
|
_getFilterStatus(): string;
|
|
19
19
|
_getShuffleProducts(): string;
|
|
20
|
+
_getResponsive(): string;
|
|
21
|
+
_onFilterChange(value: boolean): void;
|
|
20
22
|
_onFilterSelectClick(): void;
|
|
21
23
|
_onDataChange(item: string, value: string | number | string[]): void;
|
|
22
24
|
/**
|
|
@@ -24,11 +26,6 @@ export declare class RecommendationBlockControl extends CommonControl {
|
|
|
24
26
|
*/
|
|
25
27
|
_getCardComposition(): string[];
|
|
26
28
|
_regenerateProductRows(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Reapply spacing values after product regeneration
|
|
29
|
-
* This ensures spacing persists when products are regenerated
|
|
30
|
-
*/
|
|
31
|
-
_reapplySpacing(): void;
|
|
32
29
|
_debouncedRegenerateProductRows: import("@vueuse/shared").PromisifyFn<() => void>;
|
|
33
30
|
_onCurrencyConfigChange(item: string, value: string | number): void;
|
|
34
31
|
_onCurrencyChange(value: string): void;
|