@useinsider/guido 2.1.0 → 2.2.0-beta.1696353
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 +36 -0
- package/dist/@types/config/schemas.js +71 -66
- package/dist/components/Guido.vue.js +1 -1
- package/dist/components/Guido.vue2.js +69 -58
- package/dist/components/organisms/header/HeaderWrapper.vue.js +9 -9
- package/dist/composables/useActionsApi.js +15 -13
- package/dist/composables/useBlocksConfig.js +26 -16
- package/dist/config/migrator/itemsBlockMigrator.js +140 -123
- package/dist/enums/defaults.js +8 -4
- package/dist/extensions/Blocks/Items/block.js +19 -28
- package/dist/extensions/Blocks/Items/controls/button/link.js +19 -31
- package/dist/extensions/Blocks/Items/controls/cardComposition.js +137 -89
- package/dist/extensions/Blocks/Items/controls/image/link.js +19 -31
- package/dist/extensions/Blocks/Items/controls/name/trimming.js +28 -40
- package/dist/extensions/Blocks/Items/controls/price/currencyLocation.js +35 -47
- package/dist/extensions/Blocks/Items/controls/price/currencySymbol.js +49 -54
- package/dist/extensions/Blocks/Items/controls/price/formattedPrice.js +42 -51
- package/dist/extensions/Blocks/Items/controls/price/hideDiscount.js +23 -36
- package/dist/extensions/Blocks/Items/controls/price/priceOrientation.js +45 -57
- package/dist/extensions/Blocks/Items/controls/price/singlePrice.js +42 -60
- package/dist/extensions/Blocks/Items/controls/settingsControl.js +189 -196
- package/dist/extensions/Blocks/Items/enums/settingsEnums.js +0 -2
- package/dist/extensions/Blocks/Items/extension.js +8 -9
- package/dist/extensions/Blocks/Items/settingsPanel.js +10 -15
- package/dist/extensions/Blocks/Items/template.js +181 -175
- package/dist/extensions/Blocks/Items/utils/nodeConfigUtils.js +65 -65
- package/dist/extensions/Blocks/Recommendation/cardCompositionControl.js +153 -69
- package/dist/extensions/Blocks/Recommendation/constants.js +9 -1
- package/dist/extensions/Blocks/Recommendation/control.js +91 -61
- package/dist/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.js +68 -0
- package/dist/extensions/Blocks/Recommendation/controls/index.js +245 -0
- package/dist/extensions/Blocks/Recommendation/controls/nameTextTrimControl.js +74 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscountTextAfterControl.js +71 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusDiscountTextBeforeControl.js +71 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPriceTextAfterControl.js +71 -0
- package/dist/extensions/Blocks/Recommendation/controls/omnibusPriceTextBeforeControl.js +71 -0
- package/dist/extensions/Blocks/Recommendation/controls/spacingControl.js +188 -0
- package/dist/extensions/Blocks/Recommendation/extension.js +16 -42
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +117 -72
- package/dist/extensions/Blocks/Recommendation/templates/blockTemplate.js +85 -64
- package/dist/extensions/Blocks/Recommendation/templates/migrationTemplate.js +54 -17
- package/dist/extensions/Blocks/Recommendation/templates/templateUtils.js +74 -45
- package/dist/extensions/Blocks/Recommendation/utils/preserveTextStyles.js +25 -0
- package/dist/extensions/Blocks/common-control.js +91 -92
- package/dist/extensions/ModulesTabIcons/extension.js +17 -0
- package/dist/guido.css +1 -1
- package/dist/node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js +158 -95
- package/dist/package.json.js +1 -1
- package/dist/src/@types/config/schemas.d.ts +10 -2
- package/dist/src/composables/useConfig.d.ts +4 -0
- package/dist/src/enums/defaults.d.ts +4 -0
- package/dist/src/extensions/Blocks/Items/block.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/controls/button/link.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/controls/cardComposition.d.ts +5 -5
- package/dist/src/extensions/Blocks/Items/controls/image/link.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/controls/name/trimming.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/controls/price/currencyLocation.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/controls/price/currencySymbol.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/controls/price/formattedPrice.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/controls/price/hideDiscount.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/controls/price/priceOrientation.d.ts +0 -1
- package/dist/src/extensions/Blocks/Items/controls/price/singlePrice.d.ts +0 -5
- package/dist/src/extensions/Blocks/Items/controls/settingsControl.d.ts +10 -12
- package/dist/src/extensions/Blocks/Items/utils/nodeConfigUtils.d.ts +2 -1
- package/dist/src/extensions/Blocks/Recommendation/cardCompositionControl.d.ts +50 -3
- package/dist/src/extensions/Blocks/Recommendation/constants.d.ts +32 -0
- package/dist/src/extensions/Blocks/Recommendation/control.d.ts +5 -2
- package/dist/src/extensions/Blocks/Recommendation/controls/cardBackgroundColorControl.d.ts +25 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/index.d.ts +592 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/nameTextTrimControl.d.ts +16 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextAfterControl.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscountTextBeforeControl.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextAfterControl.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPriceTextBeforeControl.d.ts +15 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/spacingControl.d.ts +60 -0
- package/dist/src/extensions/Blocks/Recommendation/templates/blockTemplate.d.ts +3 -3
- package/dist/src/extensions/Blocks/Recommendation/templates/templateUtils.d.ts +15 -7
- package/dist/src/extensions/Blocks/Recommendation/utils/preserveTextStyles.d.ts +19 -0
- package/dist/src/extensions/Blocks/common-control.d.ts +4 -5
- package/dist/src/extensions/ModulesTabIcons/extension.d.ts +2 -0
- package/dist/src/stores/config.d.ts +36 -0
- package/dist/static/styles/components/notification.css.js +1 -0
- package/dist/static/styles/components/version-history.css.js +10 -2
- package/dist/static/styles/components/wide-panel.css.js +18 -6
- package/dist/static/styles/customEditorStyle.css.js +13 -0
- package/package.json +2 -2
- package/dist/extensions/Blocks/Items/store/items-block.js +0 -79
- 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/src/extensions/Blocks/Items/store/items-block.d.ts +0 -45
- 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
|
@@ -21,7 +21,7 @@ ${s.map((o) => ` - ${o}`).join(`
|
|
|
21
21
|
* This validation runs only once per class type and results are cached.
|
|
22
22
|
*/
|
|
23
23
|
validateImplementation(t, r) {
|
|
24
|
-
var
|
|
24
|
+
var x;
|
|
25
25
|
const s = [], o = r.name, Y = Object.getPrototypeOf(this);
|
|
26
26
|
t.forEach((u) => {
|
|
27
27
|
if (typeof this[u] != "function") {
|
|
@@ -29,12 +29,12 @@ ${s.map((o) => ` - ${o}`).join(`
|
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
Y[u] === r.prototype[u] && s.push(`Method ${u}() must be implemented (currently using base class error-throwing implementation)`);
|
|
32
|
-
}), d.validatedClasses.add(r), s.length > 0 ? (d.validationErrors.set(r, s), console.error(`[${o} Validation] ${o} validation failed:`, s)) : typeof process < "u" && ((
|
|
32
|
+
}), d.validatedClasses.add(r), s.length > 0 ? (d.validationErrors.set(r, s), console.error(`[${o} Validation] ${o} validation failed:`, s)) : typeof process < "u" && ((x = process.env) == null ? void 0 : x.NODE_ENV) === "development" && console.log(`[${o} Validation] ✅ ${o} validated successfully`);
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
B.validatedClasses = /* @__PURE__ */ new Set();
|
|
36
36
|
B.validationErrors = /* @__PURE__ */ new Map();
|
|
37
|
-
var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCTURE", e.CONTAINER = "CONTAINER", e))($ || {}),
|
|
37
|
+
var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCTURE", e.CONTAINER = "CONTAINER", e))($ || {}), v = class T extends a {
|
|
38
38
|
constructor() {
|
|
39
39
|
super(T.REQUIRED_METHODS, T);
|
|
40
40
|
}
|
|
@@ -195,8 +195,8 @@ var a = B, $ = /* @__PURE__ */ ((e) => (e.BLOCK = "BLOCK", e.STRUCTURE = "STRUCT
|
|
|
195
195
|
throw new Error("Method getDescription() must be implemented by the subclass");
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
|
-
|
|
199
|
-
var Pe =
|
|
198
|
+
v.REQUIRED_METHODS = ["getId", "getTemplate", "getIcon", "getName", "getDescription"];
|
|
199
|
+
var Pe = v, W = class c extends a {
|
|
200
200
|
constructor() {
|
|
201
201
|
super(c.REQUIRED_METHODS, c);
|
|
202
202
|
}
|
|
@@ -214,7 +214,74 @@ var Pe = y, W = class c extends a {
|
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
W.REQUIRED_METHODS = ["getPreviewInnerHtml"];
|
|
217
|
-
var
|
|
217
|
+
var we = class {
|
|
218
|
+
/**
|
|
219
|
+
* Generates HTML representation for a block item
|
|
220
|
+
* @param block - The block item to generate HTML for
|
|
221
|
+
* @returns HTML string representation of the block or undefined if default representation should be used
|
|
222
|
+
*/
|
|
223
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
224
|
+
getBlockItemHtml(e) {
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Determines whether a hint should be displayed for the block
|
|
228
|
+
* @param block - The block item to check hint visibility for
|
|
229
|
+
* @returns True if the hint should be visible, false otherwise
|
|
230
|
+
*/
|
|
231
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
232
|
+
isBlockHintVisible(e) {
|
|
233
|
+
return !0;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Gets the hint text for a block
|
|
237
|
+
* @param block - The block item to get hint for
|
|
238
|
+
* @returns The hint text for the block or undefined if default hint should be used
|
|
239
|
+
*/
|
|
240
|
+
getBlockHint(e) {
|
|
241
|
+
return {
|
|
242
|
+
title: e.title,
|
|
243
|
+
description: e.description
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Generates HTML representation for the blocks panel header
|
|
248
|
+
* @returns HTML string representation of the blocks panel header or undefined if header should not be shown
|
|
249
|
+
*/
|
|
250
|
+
getBlocksPanelHeaderHtml() {
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Generates HTML representation for the modules panel in collapsed state
|
|
254
|
+
* @returns HTML string representation of the collapsed modules panel or undefined if default representation should be used
|
|
255
|
+
*/
|
|
256
|
+
getModulesPanelCollapsedHtml() {
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Determines whether a hint should be displayed for the collapsed modules panel
|
|
260
|
+
* @returns True if the hint should be visible, false otherwise
|
|
261
|
+
*/
|
|
262
|
+
isModulesPanelCollapsedHintVisible() {
|
|
263
|
+
return !0;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Gets the custom delay for showing hints
|
|
267
|
+
* @returns The delay in milliseconds or undefined to use the default delay
|
|
268
|
+
*/
|
|
269
|
+
getHintDelay() {
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Gets the hint text for a modules panel block
|
|
273
|
+
* @returns The hint text for the modules panel or undefined if default hint should be used
|
|
274
|
+
*/
|
|
275
|
+
getModulesPanelHint() {
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Gets the icon name for the modules tab
|
|
279
|
+
* @returns The icon name for the modules tab or undefined if default icon or text should be used
|
|
280
|
+
*/
|
|
281
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
282
|
+
getModulesTabIconName(e) {
|
|
283
|
+
}
|
|
284
|
+
}, z = class O extends a {
|
|
218
285
|
constructor() {
|
|
219
286
|
super(O.REQUIRED_METHODS, O);
|
|
220
287
|
}
|
|
@@ -240,42 +307,42 @@ var Z = {
|
|
|
240
307
|
height: "height"
|
|
241
308
|
}, j = {
|
|
242
309
|
href: "href"
|
|
243
|
-
},
|
|
310
|
+
}, Ke = {
|
|
244
311
|
BLOCK_IMAGE: Z,
|
|
245
312
|
BLOCK_BUTTON: j
|
|
246
|
-
},
|
|
313
|
+
}, y = "esd-block-button", U = "esd-block-text", P = "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", le = "esd-stripe", Ee = "esd-amp-form", I = ((e) => (e.BUTTON = `.${y}`, e.TEXT = `.${U}`, e.IMAGE = `.${P}`, 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 = `.${le}`, e.FORM = `.${Ee}`, 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 || {}), w = /* @__PURE__ */ ((e) => (e.ANCHOR_LINK_CONTAINER = "anchorLinkFormContainer", e.APPLY_CONDITION = "applyCondition", e.APPLY_CONDITION_SWITCHER = "applyConditionSwitcher", e.BACKGROUND_COLOR = "backgroundColor", e.BACKGROUND_IMAGE = "generalImageContainer", e.TEXT_COLOR = "textColor", e.TEXT_STYLE = "textStyle", e.TEXT_SIZE = "textSize", e.TEXT_LINE_SPACING = "textLineSpacing", e.TEXT_ALIGN = "textAlign", e.FIXED_HEIGHT_SWITCHER = "fixedHeightSwitcherForm", e.HIDDEN_NODE = "hiddenNode", e.SMART_BLOCK = "smartBlock", e.SYNCHRONIZED_MODULE = "synchronizedModuleForm", e.FONT_FAMILY = "generalFontFamilyForm", e.BLOCK_INTERNAL_INDENTS = "generalBlockInternalIndents", e.STRUCTURE_INTERNAL_INDENTS = "generalStructureInternalIndents", e))(w || {}), K = /* @__PURE__ */ ((e) => (e.ADJUST_TO_WIDTH = "adjustToWidth", e.ALIGNMENT = "buttonAlignment", e.BORDER = "buttonBorder", e.BORDER_RADIUS = "buttonBorderRadius", e.COLOR = "buttonColor", e.BUTTON_BLOCK_BACKGROUND_COLOR = "buttonBlockBackgroundColor", e.EXTERNAL_INDENTS = "buttonExternalIndents", e.FIXED_HEIGHT = "buttonFixedHeightForm", e.FONT_COLOR = "buttonFontColor", e.FONT_FAMILY = "buttonFontFamily", e.FONT_SIZE = "buttonFontSize", e.ICON = "buttonIconContainer", e.ICON_ALIGN = "buttonIconAlign", e.ICON_INDENT = "buttonIconIndent", e.ICON_WIDTH = "buttonIconWidth", e.IMAGE = "buttonImageForm", e.INTERNAL_INDENTS = "buttonInternalIndents", e.LINK = "buttonLink", e.MIME_TYPE = "buttonMimeTypeForm", e.SWITCHER_HOVERED_STYLES = "buttonSwitcherHoveredStylesForm", e.TEXT = "buttonText", e.TEXT_STYLE_AND_COLOR = "buttonTextStyleAndColorForm", e.HOVERED_BORDER_COLOR = "hoveredStyleBorderButtonForm", e.HOVERED_COLOR = "hoveredButtonColorForm", e.HOVERED_TEXT_COLOR = "hoveredButtonTextColorForm", e))(K || {}), F = /* @__PURE__ */ ((e) => (e.HIDDEN_NODE = "hiddenNodeText", e.PARAGRAPH_STYLE = "paragraphStyleForm", e.ALIGN = "textAlignmentForm", e.ANCHOR_CONTAINER = "textAnchorForm", e.FONT_BACKGROUND_COLOR = "textBlockFontBackgroundColor", e.TEXT_BLOCK_BACKGROUND_COLOR = "textBlockBackgroundColor", e.FONT_COLOR = "textBlockFontColor", e.TEXT_BLOCK_FONT_FAMILY = "textBlockFontFamily", e.FONT_FAMILY = "textFontFamily", e.FONT_SIZE = "textBlockFontSize", e.DIRECTION = "textBlockDirectionForm", e.INSERT_FORM = "textBlockInsertForm", e.LINK_DATA = "textBlockLinkDataForm", e.FORMAT = "textBlockTextFormatForm", e.FIXED_HEIGHT = "textFixedHeightForm", e.INTERNAL_INDENTS = "textInternalIndents", e.LINE_HEIGHT = "textLineHeightForm", e.LINKS_COLOR = "textLinksFontColorForm", e.MIME_TYPE = "textMimeTypeForm", e.NO_LINE_WRAPS = "textNoLineWrapsForm", e))(F || {}), H = /* @__PURE__ */ ((e) => (e.ALT_TEXT = "altText", e.LINK = "blockLink", e.ALIGNMENT = "imageAlignment", e.ANCHOR_LINK_CONTAINER = "imageAnchorLinkContainerForm", e.BORDER_RADIUS = "imageBorderRadiusForm", e.IMAGE = "imageImageForm", e.EXTERNAL_INDENTS = "imageExternalIndents", e.MIME_TYPE = "imageMimeTypeForm", e.RESPONSIVE = "imageResponsive", e.ROLLOVER_IMAGE = "imageRolloverImageForm", e.ROLLOVER_SWITCHER = "imageRolloverSwitcherForm", e.SIZE = "imageSizeContainer", e))(H || {}), 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 = {
|
|
247
314
|
BLOCK_BUTTON: K,
|
|
248
315
|
BLOCK_TEXT: F,
|
|
249
316
|
BLOCK_IMAGE: H,
|
|
250
317
|
GENERAL: w
|
|
251
|
-
}, ue = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(ue || {}),
|
|
318
|
+
}, ue = /* @__PURE__ */ ((e) => (e.SETTINGS = "settings", e.STYLES = "styles", e.DATA = "data", e))(ue || {}), l = {
|
|
252
319
|
name: "name",
|
|
253
320
|
disabled: "disabled"
|
|
254
321
|
}, Ie = {
|
|
255
|
-
...
|
|
322
|
+
...l,
|
|
256
323
|
caption: "caption",
|
|
257
324
|
icon: "icon"
|
|
258
325
|
}, Te = {
|
|
259
|
-
...
|
|
326
|
+
...l,
|
|
260
327
|
caption: "caption"
|
|
261
328
|
}, ce = {
|
|
262
|
-
...
|
|
329
|
+
...l,
|
|
263
330
|
minValue: "min-value",
|
|
264
331
|
maxValue: "max-value",
|
|
265
332
|
step: "step"
|
|
266
333
|
}, Oe = {
|
|
267
|
-
...
|
|
334
|
+
...l,
|
|
268
335
|
text: "text"
|
|
269
|
-
},
|
|
270
|
-
...
|
|
271
|
-
},
|
|
272
|
-
...
|
|
336
|
+
}, ge = {
|
|
337
|
+
...l
|
|
338
|
+
}, k = {
|
|
339
|
+
...l,
|
|
273
340
|
searchable: "searchable",
|
|
274
341
|
multiSelect: "multi-select",
|
|
275
342
|
placeholder: "placeholder",
|
|
276
343
|
items: "items"
|
|
277
|
-
},
|
|
278
|
-
...
|
|
344
|
+
}, he = {
|
|
345
|
+
...k
|
|
279
346
|
}, be = {
|
|
280
347
|
text: "text",
|
|
281
348
|
value: "value"
|
|
@@ -284,32 +351,32 @@ var Z = {
|
|
|
284
351
|
icon: "icon",
|
|
285
352
|
value: "value"
|
|
286
353
|
}, Re = {
|
|
287
|
-
...
|
|
354
|
+
...l
|
|
288
355
|
}, _e = {
|
|
289
356
|
controlId: "control-id"
|
|
290
357
|
}, Le = {
|
|
291
|
-
...
|
|
358
|
+
...l,
|
|
292
359
|
icon: "icon",
|
|
293
360
|
position: "position"
|
|
294
361
|
}, Ce = {
|
|
295
|
-
...
|
|
296
|
-
},
|
|
362
|
+
...l
|
|
363
|
+
}, Fe = {
|
|
297
364
|
BUTTON: Ie,
|
|
298
365
|
CHECKBOX: Te,
|
|
299
|
-
COLOR:
|
|
366
|
+
COLOR: l,
|
|
300
367
|
COUNTER: ce,
|
|
301
368
|
LABEL: Oe,
|
|
302
|
-
RADIO_BUTTONS:
|
|
303
|
-
SELECTPICKER:
|
|
304
|
-
FONT_FAMILY_SELECT:
|
|
305
|
-
SWITCHER:
|
|
369
|
+
RADIO_BUTTONS: ge,
|
|
370
|
+
SELECTPICKER: k,
|
|
371
|
+
FONT_FAMILY_SELECT: he,
|
|
372
|
+
SWITCHER: l,
|
|
306
373
|
TEXT: Re,
|
|
307
374
|
SELECT_ITEM: be,
|
|
308
375
|
RADIO_ITEM: me,
|
|
309
376
|
NESTED_CONTROL: _e,
|
|
310
377
|
ORDERABLE: Le,
|
|
311
378
|
ORDERABLE_ITEM: Ce
|
|
312
|
-
}, Ae = /* @__PURE__ */ ((e) => (e.BUTTON = "UE-BUTTON", e.CHECKBOX = "UE-CHECKBOX", e.CHECK_BUTTONS = "UE-CHECK-BUTTONS", e.COLOR = "UE-COLOR", e.COUNTER = "UE-COUNTER", e.DATEPICKER = "UE-DATEPICKER", e.LABEL = "UE-LABEL", e.MESSAGE = "UE-MESSAGE", e.RADIO_BUTTONS = "UE-RADIO-BUTTONS", e.SELECTPICKER = "UE-SELECT", e.SWITCHER = "UE-SWITCHER", e.TEXT = "UE-TEXT", e.TEXTAREA = "UE-TEXTAREA", e.CHECK_ITEM = "UE-CHECK-ITEM", e.RADIO_ITEM = "UE-RADIO-ITEM", e.SELECT_ITEM = "UE-SELECT-ITEM", e.ICON = "UE-ICON", e.MERGETAGS = "UE-MERGETAGS", e.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", e.NESTED_CONTROL = "UE-NESTED-CONTROL", e.EXPANDABLE = "UE-EXPANDABLE", e.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", e.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", e.ORDERABLE = "UE-ORDERABLE", e.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", e.ORDERABLE_ICON = "UE-ORDERABLE-ICON", e.REPEATABLE = "UE-REPEATABLE", e))(Ae || {}),
|
|
379
|
+
}, Ae = /* @__PURE__ */ ((e) => (e.BUTTON = "UE-BUTTON", e.CHECKBOX = "UE-CHECKBOX", e.CHECK_BUTTONS = "UE-CHECK-BUTTONS", e.COLOR = "UE-COLOR", e.COUNTER = "UE-COUNTER", e.DATEPICKER = "UE-DATEPICKER", e.LABEL = "UE-LABEL", e.MESSAGE = "UE-MESSAGE", e.RADIO_BUTTONS = "UE-RADIO-BUTTONS", e.SELECTPICKER = "UE-SELECT", e.SWITCHER = "UE-SWITCHER", e.TEXT = "UE-TEXT", e.TEXTAREA = "UE-TEXTAREA", e.CHECK_ITEM = "UE-CHECK-ITEM", e.RADIO_ITEM = "UE-RADIO-ITEM", e.SELECT_ITEM = "UE-SELECT-ITEM", e.ICON = "UE-ICON", e.MERGETAGS = "UE-MERGETAGS", e.FONT_FAMILY_SELECT = "UE-FONT-FAMILY-SELECT", e.NESTED_CONTROL = "UE-NESTED-CONTROL", e.EXPANDABLE = "UE-EXPANDABLE", e.EXPANDABLE_HEADER = "UE-EXPANDABLE_HEADER", e.EXPANDABLE_CONTENT = "UE-EXPANDABLE_CONTENT", e.ORDERABLE = "UE-ORDERABLE", e.ORDERABLE_ITEM = "UE-ORDERABLE-ITEM", e.ORDERABLE_ICON = "UE-ORDERABLE-ICON", e.REPEATABLE = "UE-REPEATABLE", e))(Ae || {}), M = class {
|
|
313
380
|
/**
|
|
314
381
|
* @description returns map of nodes parent control operates on
|
|
315
382
|
*/
|
|
@@ -340,18 +407,18 @@ var Z = {
|
|
|
340
407
|
isVisible(e) {
|
|
341
408
|
return !0;
|
|
342
409
|
}
|
|
343
|
-
}, i = class extends
|
|
410
|
+
}, i = class extends M {
|
|
344
411
|
getTargetNodes(e) {
|
|
345
|
-
const t = e.querySelectorAll(I.BUTTON), r = e.asElement().hasClass(
|
|
412
|
+
const t = e.querySelectorAll(I.BUTTON), r = e.asElement().hasClass(y) ? [e] : [];
|
|
346
413
|
return t.length ? t : r;
|
|
347
414
|
}
|
|
348
|
-
},
|
|
415
|
+
}, He = class extends i {
|
|
349
416
|
getParentControlId() {
|
|
350
417
|
return n.BLOCK_BUTTON.BORDER_RADIUS;
|
|
351
418
|
}
|
|
352
419
|
getLabels() {
|
|
353
420
|
}
|
|
354
|
-
},
|
|
421
|
+
}, ke = class extends i {
|
|
355
422
|
getParentControlId() {
|
|
356
423
|
return n.BLOCK_BUTTON.ALIGNMENT;
|
|
357
424
|
}
|
|
@@ -359,7 +426,7 @@ var Z = {
|
|
|
359
426
|
getParentControlId() {
|
|
360
427
|
return n.GENERAL.BACKGROUND_COLOR;
|
|
361
428
|
}
|
|
362
|
-
},
|
|
429
|
+
}, Ve = class extends i {
|
|
363
430
|
getParentControlId() {
|
|
364
431
|
return n.BLOCK_BUTTON.BORDER;
|
|
365
432
|
}
|
|
@@ -369,39 +436,39 @@ var Z = {
|
|
|
369
436
|
getParentControlId() {
|
|
370
437
|
return n.BLOCK_BUTTON.COLOR;
|
|
371
438
|
}
|
|
372
|
-
},
|
|
439
|
+
}, pe = class extends i {
|
|
373
440
|
getParentControlId() {
|
|
374
441
|
return n.BLOCK_BUTTON.ADJUST_TO_WIDTH;
|
|
375
442
|
}
|
|
376
|
-
},
|
|
443
|
+
}, Qe = class extends i {
|
|
377
444
|
getParentControlId() {
|
|
378
445
|
return n.BLOCK_BUTTON.FONT_FAMILY;
|
|
379
446
|
}
|
|
380
|
-
},
|
|
447
|
+
}, fe = class extends i {
|
|
381
448
|
getParentControlId() {
|
|
382
449
|
return n.BLOCK_BUTTON.EXTERNAL_INDENTS;
|
|
383
450
|
}
|
|
384
|
-
},
|
|
451
|
+
}, Ye = class extends i {
|
|
385
452
|
getParentControlId() {
|
|
386
453
|
return n.BLOCK_BUTTON.INTERNAL_INDENTS;
|
|
387
454
|
}
|
|
388
|
-
},
|
|
455
|
+
}, $e = class extends i {
|
|
389
456
|
getParentControlId() {
|
|
390
457
|
return n.BLOCK_BUTTON.TEXT;
|
|
391
458
|
}
|
|
392
|
-
},
|
|
459
|
+
}, We = class extends i {
|
|
393
460
|
getParentControlId() {
|
|
394
461
|
return n.BLOCK_BUTTON.FONT_SIZE;
|
|
395
462
|
}
|
|
396
|
-
},
|
|
463
|
+
}, ze = class extends i {
|
|
397
464
|
getParentControlId() {
|
|
398
465
|
return n.BLOCK_BUTTON.TEXT_STYLE_AND_COLOR;
|
|
399
466
|
}
|
|
400
467
|
getLabels() {
|
|
401
468
|
}
|
|
402
|
-
},
|
|
469
|
+
}, X = class g extends a {
|
|
403
470
|
constructor() {
|
|
404
|
-
super(
|
|
471
|
+
super(g.REQUIRED_METHODS, g);
|
|
405
472
|
}
|
|
406
473
|
/**
|
|
407
474
|
* @description Allows to determine if control should be visible or hidden in control panel.
|
|
@@ -454,10 +521,10 @@ var Z = {
|
|
|
454
521
|
onDocumentChanged(t) {
|
|
455
522
|
}
|
|
456
523
|
};
|
|
457
|
-
|
|
458
|
-
var
|
|
524
|
+
X.REQUIRED_METHODS = ["getId", "getTemplate"];
|
|
525
|
+
var Ze = X, Ne = class h extends a {
|
|
459
526
|
constructor() {
|
|
460
|
-
super(
|
|
527
|
+
super(h.REQUIRED_METHODS, h);
|
|
461
528
|
}
|
|
462
529
|
/**
|
|
463
530
|
* Gets the unique identifier for this tab.
|
|
@@ -525,20 +592,20 @@ var ze = k, Ne = class g extends a {
|
|
|
525
592
|
}
|
|
526
593
|
};
|
|
527
594
|
Ne.REQUIRED_METHODS = ["getId", "getIcon", "getName", "getTemplate", "getTabIndex"];
|
|
528
|
-
var
|
|
595
|
+
var V = class extends M {
|
|
529
596
|
getTargetNodes(e) {
|
|
530
597
|
const t = e.querySelectorAll(I.IMAGE), r = e.asElement().hasClass(P) ? [e] : [];
|
|
531
598
|
return t.length ? t : r;
|
|
532
599
|
}
|
|
533
|
-
},
|
|
600
|
+
}, je = class extends V {
|
|
534
601
|
getParentControlId() {
|
|
535
602
|
return n.BLOCK_IMAGE.EXTERNAL_INDENTS;
|
|
536
603
|
}
|
|
537
|
-
},
|
|
604
|
+
}, qe = class extends V {
|
|
538
605
|
getParentControlId() {
|
|
539
606
|
return n.BLOCK_IMAGE.SIZE;
|
|
540
607
|
}
|
|
541
|
-
},
|
|
608
|
+
}, G = class b extends a {
|
|
542
609
|
constructor() {
|
|
543
610
|
super(b.REQUIRED_METHODS, b);
|
|
544
611
|
}
|
|
@@ -546,8 +613,8 @@ var G = class extends x {
|
|
|
546
613
|
throw new Error("Method registerBlockControls() must be implemented by the subclass");
|
|
547
614
|
}
|
|
548
615
|
};
|
|
549
|
-
|
|
550
|
-
var
|
|
616
|
+
G.REQUIRED_METHODS = ["registerBlockControls"];
|
|
617
|
+
var Je = G, et = class {
|
|
551
618
|
constructor(e, t) {
|
|
552
619
|
this.tabId = e, this.controlsIds = t;
|
|
553
620
|
}
|
|
@@ -570,40 +637,36 @@ var qe = V, Je = class {
|
|
|
570
637
|
const t = this.controlsIds.indexOf(e);
|
|
571
638
|
t !== -1 && this.controlsIds.splice(t, 1);
|
|
572
639
|
}
|
|
573
|
-
},
|
|
640
|
+
}, E = class extends M {
|
|
574
641
|
getTargetNodes(e) {
|
|
575
642
|
const t = e.querySelectorAll(I.TEXT), r = e.asElement().hasClass(U) ? [e] : [];
|
|
576
643
|
return t.length ? t : r;
|
|
577
644
|
}
|
|
578
|
-
},
|
|
645
|
+
}, tt = class extends E {
|
|
579
646
|
getParentControlId() {
|
|
580
647
|
return n.GENERAL.TEXT_ALIGN;
|
|
581
648
|
}
|
|
582
|
-
},
|
|
583
|
-
getParentControlId() {
|
|
584
|
-
return n.BLOCK_TEXT.TEXT_BLOCK_BACKGROUND_COLOR;
|
|
585
|
-
}
|
|
586
|
-
}, rt = class extends l {
|
|
649
|
+
}, rt = class extends E {
|
|
587
650
|
getParentControlId() {
|
|
588
651
|
return n.GENERAL.TEXT_COLOR;
|
|
589
652
|
}
|
|
590
|
-
}, nt = class extends
|
|
653
|
+
}, nt = class extends E {
|
|
591
654
|
getParentControlId() {
|
|
592
655
|
return n.BLOCK_TEXT.FONT_FAMILY;
|
|
593
656
|
}
|
|
594
|
-
}, at = class extends
|
|
657
|
+
}, at = class extends E {
|
|
595
658
|
getParentControlId() {
|
|
596
659
|
return n.GENERAL.TEXT_LINE_SPACING;
|
|
597
660
|
}
|
|
598
|
-
}, st = class extends
|
|
661
|
+
}, st = class extends E {
|
|
599
662
|
getParentControlId() {
|
|
600
663
|
return n.BLOCK_TEXT.INTERNAL_INDENTS;
|
|
601
664
|
}
|
|
602
|
-
}, it = class extends
|
|
665
|
+
}, it = class extends E {
|
|
603
666
|
getParentControlId() {
|
|
604
667
|
return n.GENERAL.TEXT_SIZE;
|
|
605
668
|
}
|
|
606
|
-
},
|
|
669
|
+
}, lt = class extends E {
|
|
607
670
|
getParentControlId() {
|
|
608
671
|
return n.GENERAL.TEXT_STYLE;
|
|
609
672
|
}
|
|
@@ -668,7 +731,7 @@ var qe = V, Je = class {
|
|
|
668
731
|
getGeneralPanelTabs() {
|
|
669
732
|
return this.generalPanelTabs;
|
|
670
733
|
}
|
|
671
|
-
},
|
|
734
|
+
}, Et = class {
|
|
672
735
|
constructor() {
|
|
673
736
|
this.styles = [], this.uiElements = [], this.controls = [], this.contextActions = [], this.blocks = [], this.generalPanelTabs = [];
|
|
674
737
|
}
|
|
@@ -808,7 +871,7 @@ var Be = class R extends a {
|
|
|
808
871
|
}
|
|
809
872
|
};
|
|
810
873
|
Be.REQUIRED_METHODS = ["getCategoryName", "openExternalDisplayConditionsDialog"];
|
|
811
|
-
var
|
|
874
|
+
var Me = class _ extends a {
|
|
812
875
|
constructor() {
|
|
813
876
|
super(_.REQUIRED_METHODS, _);
|
|
814
877
|
}
|
|
@@ -816,8 +879,8 @@ var xe = class _ extends a {
|
|
|
816
879
|
throw new Error("Method openImageLibrary() must be implemented by the subclass");
|
|
817
880
|
}
|
|
818
881
|
};
|
|
819
|
-
|
|
820
|
-
var
|
|
882
|
+
Me.REQUIRED_METHODS = ["openImageLibrary"];
|
|
883
|
+
var xe = class L extends a {
|
|
821
884
|
constructor() {
|
|
822
885
|
super(L.REQUIRED_METHODS, L);
|
|
823
886
|
}
|
|
@@ -838,8 +901,8 @@ var Me = class L extends a {
|
|
|
838
901
|
throw new Error("Method openImageLibraryTab() must be implemented by the subclass");
|
|
839
902
|
}
|
|
840
903
|
};
|
|
841
|
-
|
|
842
|
-
var
|
|
904
|
+
xe.REQUIRED_METHODS = ["getName", "openImageLibraryTab"];
|
|
905
|
+
var ve = class C extends a {
|
|
843
906
|
constructor() {
|
|
844
907
|
super(C.REQUIRED_METHODS, C);
|
|
845
908
|
}
|
|
@@ -847,8 +910,8 @@ var ye = class C extends a {
|
|
|
847
910
|
throw new Error("Method openSmartElementsLibrary() must be implemented by the subclass");
|
|
848
911
|
}
|
|
849
912
|
};
|
|
850
|
-
|
|
851
|
-
var
|
|
913
|
+
ve.REQUIRED_METHODS = ["openSmartElementsLibrary"];
|
|
914
|
+
var ye = class A extends a {
|
|
852
915
|
constructor() {
|
|
853
916
|
super(A.REQUIRED_METHODS, A);
|
|
854
917
|
}
|
|
@@ -856,7 +919,7 @@ var ve = class A extends a {
|
|
|
856
919
|
throw new Error("Method openExternalVideosLibraryDialog() must be implemented by the subclass");
|
|
857
920
|
}
|
|
858
921
|
};
|
|
859
|
-
|
|
922
|
+
ye.REQUIRED_METHODS = ["openExternalVideosLibraryDialog"];
|
|
860
923
|
var p = class N extends a {
|
|
861
924
|
constructor() {
|
|
862
925
|
super(N.REQUIRED_METHODS, N);
|
|
@@ -947,48 +1010,48 @@ f.REQUIRED_METHODS = ["registerUiElements"];
|
|
|
947
1010
|
var It = f;
|
|
948
1011
|
export {
|
|
949
1012
|
Pe as Block,
|
|
950
|
-
|
|
1013
|
+
Ke as BlockAttr,
|
|
951
1014
|
$ as BlockCompositionType,
|
|
952
1015
|
I as BlockSelector,
|
|
953
1016
|
oe as BlockType,
|
|
954
|
-
|
|
1017
|
+
we as BlocksPanel,
|
|
1018
|
+
M as BuiltInControl,
|
|
955
1019
|
n as BuiltInControlTypes,
|
|
956
|
-
|
|
1020
|
+
ke as ButtonAlignBuiltInControl,
|
|
957
1021
|
Xe as ButtonBackgroundColorBuiltInControl,
|
|
958
|
-
|
|
959
|
-
|
|
1022
|
+
Ve as ButtonBorderBuiltInControl,
|
|
1023
|
+
He as ButtonBorderRadiusBuiltInControl,
|
|
960
1024
|
Ge as ButtonColorBuiltInControl,
|
|
961
1025
|
K as ButtonControls,
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
1026
|
+
pe as ButtonFitToContainerBuiltInControl,
|
|
1027
|
+
Qe as ButtonFontFamilyBuiltInControl,
|
|
1028
|
+
fe as ButtonMarginsBuiltInControl,
|
|
1029
|
+
Ye as ButtonPaddingsBuiltInControl,
|
|
1030
|
+
$e as ButtonTextBuiltInControl,
|
|
1031
|
+
We as ButtonTextSizeBuiltInControl,
|
|
1032
|
+
ze as ButtonTextStyleAndFontColorBuiltInControl,
|
|
969
1033
|
de as ContainerControls,
|
|
970
|
-
|
|
1034
|
+
Ze as Control,
|
|
971
1035
|
De as Extension,
|
|
972
|
-
|
|
1036
|
+
Et as ExtensionBuilder,
|
|
973
1037
|
w as GeneralControls,
|
|
974
1038
|
ot as IconsRegistry,
|
|
975
1039
|
H as ImageControls,
|
|
976
|
-
|
|
977
|
-
|
|
1040
|
+
je as ImageMarginsBuiltInControl,
|
|
1041
|
+
qe as ImageSizeBuiltInControl,
|
|
978
1042
|
dt as ModificationDescription,
|
|
979
|
-
|
|
980
|
-
|
|
1043
|
+
Je as SettingsPanelRegistry,
|
|
1044
|
+
et as SettingsPanelTab,
|
|
981
1045
|
ue as SettingsTab,
|
|
982
|
-
|
|
983
|
-
tt as TextBlockBackgroundBuiltInControl,
|
|
1046
|
+
tt as TextAlignBuiltInControl,
|
|
984
1047
|
rt as TextColorBuiltInControl,
|
|
985
1048
|
F as TextControls,
|
|
986
1049
|
nt as TextFontFamilyBuiltInControl,
|
|
987
1050
|
at as TextLineSpacingBuiltInControl,
|
|
988
1051
|
st as TextPaddingsBuiltInControl,
|
|
989
1052
|
it as TextSizeBuiltInControl,
|
|
990
|
-
|
|
991
|
-
|
|
1053
|
+
lt as TextStyleBuiltInControl,
|
|
1054
|
+
Fe as UEAttr,
|
|
992
1055
|
ut as UIElement,
|
|
993
1056
|
It as UIElementTagRegistry,
|
|
994
1057
|
Ae as UIElementType
|
package/dist/package.json.js
CHANGED
|
@@ -116,7 +116,7 @@ export declare const EditorSchema: v.ObjectSchema<{
|
|
|
116
116
|
/** Locale for the editor UI */
|
|
117
117
|
readonly locale: v.OptionalSchema<v.StringSchema<undefined>, "en">;
|
|
118
118
|
/** Path to translations object */
|
|
119
|
-
readonly translationsPath: v.OptionalSchema<v.StringSchema<undefined>, "window.trans.
|
|
119
|
+
readonly translationsPath: v.OptionalSchema<v.StringSchema<undefined>, "window.trans[Object.keys(window.trans)[0]]">;
|
|
120
120
|
/** Migration date for template compatibility */
|
|
121
121
|
readonly migrationDate: v.OptionalSchema<v.NumberSchema<undefined>, 1759696858>;
|
|
122
122
|
/** Email header settings */
|
|
@@ -129,6 +129,10 @@ export declare const EditorSchema: v.ObjectSchema<{
|
|
|
129
129
|
readonly senderName: "";
|
|
130
130
|
readonly subject: "";
|
|
131
131
|
}>;
|
|
132
|
+
/** Folder name for user-saved modules (used by Stripo plugin panel for path construction) */
|
|
133
|
+
readonly savedModulesFolderName: v.OptionalSchema<v.StringSchema<undefined>, "savedModules">;
|
|
134
|
+
/** Folder name for default/prebuilt modules (used by Stripo plugin panel for path construction) */
|
|
135
|
+
readonly defaultModulesFolderName: v.OptionalSchema<v.StringSchema<undefined>, "defaultModules">;
|
|
132
136
|
}, undefined>;
|
|
133
137
|
/**
|
|
134
138
|
* UI configuration - visual elements and layout
|
|
@@ -428,7 +432,7 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
428
432
|
/** Locale for the editor UI */
|
|
429
433
|
readonly locale: v.OptionalSchema<v.StringSchema<undefined>, "en">;
|
|
430
434
|
/** Path to translations object */
|
|
431
|
-
readonly translationsPath: v.OptionalSchema<v.StringSchema<undefined>, "window.trans.
|
|
435
|
+
readonly translationsPath: v.OptionalSchema<v.StringSchema<undefined>, "window.trans[Object.keys(window.trans)[0]]">;
|
|
432
436
|
/** Migration date for template compatibility */
|
|
433
437
|
readonly migrationDate: v.OptionalSchema<v.NumberSchema<undefined>, 1759696858>;
|
|
434
438
|
/** Email header settings */
|
|
@@ -441,6 +445,10 @@ export declare const GuidoConfigSchema: v.ObjectSchema<{
|
|
|
441
445
|
readonly senderName: "";
|
|
442
446
|
readonly subject: "";
|
|
443
447
|
}>;
|
|
448
|
+
/** Folder name for user-saved modules (used by Stripo plugin panel for path construction) */
|
|
449
|
+
readonly savedModulesFolderName: v.OptionalSchema<v.StringSchema<undefined>, "savedModules">;
|
|
450
|
+
/** Folder name for default/prebuilt modules (used by Stripo plugin panel for path construction) */
|
|
451
|
+
readonly defaultModulesFolderName: v.OptionalSchema<v.StringSchema<undefined>, "defaultModules">;
|
|
444
452
|
}, undefined>, {}>;
|
|
445
453
|
/** UI configuration */
|
|
446
454
|
readonly ui: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -41,6 +41,8 @@ export declare const useConfig: () => {
|
|
|
41
41
|
senderName: string;
|
|
42
42
|
subject: string;
|
|
43
43
|
};
|
|
44
|
+
savedModulesFolderName: string;
|
|
45
|
+
defaultModulesFolderName: string;
|
|
44
46
|
};
|
|
45
47
|
ui: {
|
|
46
48
|
showHeader: boolean;
|
|
@@ -130,6 +132,8 @@ export declare const useConfig: () => {
|
|
|
130
132
|
senderName: string;
|
|
131
133
|
subject: string;
|
|
132
134
|
};
|
|
135
|
+
savedModulesFolderName: string;
|
|
136
|
+
defaultModulesFolderName: string;
|
|
133
137
|
} | null>;
|
|
134
138
|
ui: import("vue").ComputedRef<{
|
|
135
139
|
showHeader: boolean;
|
|
@@ -9,3 +9,7 @@ export declare const TemplateTypes: {
|
|
|
9
9
|
export declare const EditorType: number;
|
|
10
10
|
export declare const MAX_DEFAULT_TEMPLATE_ID = 13;
|
|
11
11
|
export declare const ProductIds: Record<string, number>;
|
|
12
|
+
export declare const ModuleFolderDefaults: {
|
|
13
|
+
readonly SAVED_MODULES: "savedModules";
|
|
14
|
+
readonly DEFAULT_MODULES: "defaultModules";
|
|
15
|
+
};
|
|
@@ -3,7 +3,6 @@ import { CommonControl } from '../../../common-control';
|
|
|
3
3
|
import { ItemsBlockControlId } from '../../enums/controlEnums';
|
|
4
4
|
export declare const CONTROL_BLOCK_ID = ItemsBlockControlId.BUTTON_LINK;
|
|
5
5
|
export declare class ButtonLinkControl extends CommonControl {
|
|
6
|
-
private store;
|
|
7
6
|
getId(): string;
|
|
8
7
|
getTemplate(): string;
|
|
9
8
|
onRender(): void;
|
|
@@ -2,7 +2,6 @@ import { ImmutableHtmlNode } from '@stripoinc/ui-editor-extensions';
|
|
|
2
2
|
import { CommonControl } from '../../common-control';
|
|
3
3
|
export declare const COMPOSITION_CONTROL_BLOCK_ID = "ui-elements-items-card-composition-block";
|
|
4
4
|
export declare class ItemsBlockCardCompositionControl extends CommonControl {
|
|
5
|
-
private store;
|
|
6
5
|
private visibilityState;
|
|
7
6
|
getId(): string;
|
|
8
7
|
getTemplate(): string;
|
|
@@ -19,10 +18,11 @@ export declare class ItemsBlockCardCompositionControl extends CommonControl {
|
|
|
19
18
|
* If itemsType is not BROWSED_ITEMS, show quantity
|
|
20
19
|
* If itemsType is BROWSED_ITEMS, hide quantity
|
|
21
20
|
* and mark it as '0'
|
|
21
|
+
* @param syncOnly - If true, only sync local state and UI without modifying the document
|
|
22
22
|
*/
|
|
23
|
-
_handleBrowsedItemsQuantity(): void;
|
|
24
|
-
_applyVisibilityStyles(): void;
|
|
25
|
-
_updateVisibilityAttribute(elementName: string, isVisible: boolean): void;
|
|
23
|
+
_handleBrowsedItemsQuantity(syncOnly?: boolean): void;
|
|
24
|
+
_applyVisibilityStyles(modifier?: ReturnType<typeof this.api.getDocumentModifier>): void;
|
|
25
|
+
_updateVisibilityAttribute(elementName: string, isVisible: boolean, modifier?: ReturnType<typeof this.api.getDocumentModifier>): void;
|
|
26
26
|
_listenToFormUpdates(): void;
|
|
27
27
|
_onProductImageChange(value: boolean): void;
|
|
28
28
|
_onProductNameChange(value: boolean): void;
|
|
@@ -37,6 +37,6 @@ export declare class ItemsBlockCardCompositionControl extends CommonControl {
|
|
|
37
37
|
* - When price is hidden, original price cell expands to 100%
|
|
38
38
|
* - When both are visible, they share 50% each
|
|
39
39
|
*/
|
|
40
|
-
_updatePriceCellWidthsForVerticalLayout(): void;
|
|
40
|
+
_updatePriceCellWidthsForVerticalLayout(modifier?: ReturnType<typeof this.api.getDocumentModifier>): void;
|
|
41
41
|
_onProductButtonChange(value: boolean): void;
|
|
42
42
|
}
|
|
@@ -3,7 +3,6 @@ import { CommonControl } from '../../../common-control';
|
|
|
3
3
|
import { ItemsBlockControlId } from '../../enums/controlEnums';
|
|
4
4
|
export declare const CONTROL_BLOCK_ID = ItemsBlockControlId.IMAGE_LINK;
|
|
5
5
|
export declare class ImageLinkControl extends CommonControl {
|
|
6
|
-
private store;
|
|
7
6
|
getId(): string;
|
|
8
7
|
getTemplate(): string;
|
|
9
8
|
onRender(): void;
|