@useinsider/guido 3.8.1-beta.2ee94c2 → 3.8.1-beta.6c0ee3f
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/dist/composables/useHtmlValidator.js +180 -133
- package/dist/config/compiler/utils/recommendationCompilerUtils.js +58 -57
- package/dist/config/compiler/utils/recommendationIgnoreUtils.js +15 -0
- package/dist/config/migrator/recommendation/extractors.js +44 -22
- package/dist/config/migrator/recommendation/htmlBuilder.js +175 -169
- package/dist/config/migrator/recommendationMigrator.js +30 -31
- package/dist/extensions/Blocks/Recommendation/block.js +4 -1
- package/dist/extensions/Blocks/Recommendation/constants/selectors.js +26 -20
- package/dist/extensions/Blocks/Recommendation/controls/cardComposition/index.js +176 -145
- package/dist/extensions/Blocks/Recommendation/controls/main/index.js +58 -57
- package/dist/extensions/Blocks/Recommendation/controls/main/layoutOrientation.js +43 -31
- package/dist/extensions/Blocks/Recommendation/controls/main/productCount.js +3 -2
- package/dist/extensions/Blocks/Recommendation/controls/main/productLayout.js +55 -45
- package/dist/extensions/Blocks/Recommendation/controls/main/utils.js +63 -56
- package/dist/extensions/Blocks/Recommendation/controls/syncInfoMessage.js +7 -6
- package/dist/extensions/Blocks/Recommendation/extension.js +3 -2
- package/dist/extensions/Blocks/Recommendation/settingsPanel.js +3 -2
- package/dist/extensions/Blocks/Recommendation/store/recommendation.js +3 -2
- package/dist/extensions/Blocks/Recommendation/templates/grid/template.js +13 -12
- package/dist/extensions/Blocks/Recommendation/templates/index.js +7 -6
- package/dist/extensions/Blocks/Recommendation/templates/utils.js +1 -1
- package/dist/extensions/Blocks/controlFactories.js +76 -57
- package/dist/src/composables/useHtmlValidator.d.ts +27 -0
- package/dist/src/composables/useHtmlValidator.test.d.ts +1 -0
- package/dist/src/config/compiler/utils/recommendationIgnoreUtils.d.ts +17 -0
- package/dist/src/config/compiler/utils/recommendationIgnoreUtils.test.d.ts +1 -0
- package/dist/src/config/migrator/recommendation/extractors.d.ts +15 -0
- package/dist/src/config/migrator/recommendation/htmlBuilder.d.ts +8 -0
- package/dist/src/extensions/Blocks/CouponBlock/controls/index.d.ts +1 -1
- package/dist/src/extensions/Blocks/Items/controls/index.d.ts +3 -3
- package/dist/src/extensions/Blocks/Recommendation/constants/index.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/constants/selectors.d.ts +21 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/cardComposition/index.d.ts +7 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/layoutOrientation.d.ts +5 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/productLayout.d.ts +6 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/main/utils.d.ts +9 -0
- package/dist/src/extensions/Blocks/Recommendation/controls/name/index.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/controls/oldPrice/index.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusDiscount/index.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/controls/omnibusPrice/index.d.ts +1 -1
- package/dist/src/extensions/Blocks/Recommendation/controls/price/index.d.ts +1 -1
- package/dist/src/extensions/Blocks/controlFactories.d.ts +10 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TextAlignBuiltInControl as a, TextColorBuiltInControl as g, TextSizeBuiltInControl as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
1
|
+
import { TextAlignBuiltInControl as a, TextColorBuiltInControl as g, TextSizeBuiltInControl as f, TextStyleBuiltInControl as x, TextFontFamilyBuiltInControl as C, ButtonBackgroundColorBuiltInControl as T, TextPaddingsBuiltInControl as B, ImageSizeBuiltInControl as m, ImageMarginsBuiltInControl as y, ButtonAlignBuiltInControl as I, ButtonBorderBuiltInControl as S, ButtonBorderRadiusBuiltInControl as A, ButtonColorBuiltInControl as b, ButtonFontFamilyBuiltInControl as N, ButtonMarginsBuiltInControl as q, ButtonPaddingsBuiltInControl as $, ButtonTextBuiltInControl as k, ButtonTextSizeBuiltInControl as p, ButtonTextStyleAndFontColorBuiltInControl as h, ButtonFitToContainerBuiltInControl as F, TextLineSpacingBuiltInControl as M } from "../../node_modules/@stripoinc/ui-editor-extensions/dist/esm/index.js";
|
|
2
|
+
const R = "buttonTextStyleForm", _ = "backgroundColor", E = /* @__PURE__ */ new Set(["", "transparent", "rgba(0, 0, 0, 0)"]);
|
|
3
|
+
function z(o, n, r) {
|
|
4
4
|
return class extends a {
|
|
5
5
|
getId() {
|
|
6
6
|
return o;
|
|
@@ -13,7 +13,7 @@ function P(o, n, r) {
|
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function v(o, n, r) {
|
|
17
17
|
return class extends g {
|
|
18
18
|
getId() {
|
|
19
19
|
return o;
|
|
@@ -26,8 +26,8 @@ function _(o, n, r) {
|
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
return class extends
|
|
29
|
+
function P(o, n, r) {
|
|
30
|
+
return class extends f {
|
|
31
31
|
getId() {
|
|
32
32
|
return o;
|
|
33
33
|
}
|
|
@@ -39,8 +39,8 @@ function v(o, n, r) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
return class extends
|
|
42
|
+
function D(o, n, r) {
|
|
43
|
+
return class extends x {
|
|
44
44
|
getId() {
|
|
45
45
|
return o;
|
|
46
46
|
}
|
|
@@ -52,7 +52,7 @@ function L(o, n, r) {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function K(o, n, r) {
|
|
56
56
|
return class extends C {
|
|
57
57
|
getId() {
|
|
58
58
|
return o;
|
|
@@ -65,7 +65,7 @@ function R(o, n, r) {
|
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function L(o, n, r) {
|
|
69
69
|
return class extends T {
|
|
70
70
|
getId() {
|
|
71
71
|
return o;
|
|
@@ -76,9 +76,28 @@ function O(o, n, r) {
|
|
|
76
76
|
const t = e.closest(r);
|
|
77
77
|
return t ? t.querySelectorAll(`[esd-extension-block-id="${n}"]`) : [];
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Mirrors the picked background onto each target cell as an INLINE style.
|
|
81
|
+
*
|
|
82
|
+
* Stripo's built-in applies the background as a stylesheet rule, not inline. On
|
|
83
|
+
* regeneration we re-bake the captured color inline (cellBgStyleAttr); inline then
|
|
84
|
+
* outranks Stripo's rule in the cascade, so a later re-edit silently has no effect
|
|
85
|
+
* (SD-143023). Writing the inline here keeps it the single source of truth and in
|
|
86
|
+
* sync on every edit. Merged into the parent control's single patch (no extra apply).
|
|
87
|
+
*/
|
|
88
|
+
getAdditionalModifications(e) {
|
|
89
|
+
const t = this.getTargetNodes(e);
|
|
90
|
+
if (!t.length)
|
|
91
|
+
return;
|
|
92
|
+
const s = this.api.getValues()[_], i = !s || E.has(s), c = this.api.getDocumentModifier();
|
|
93
|
+
return t.forEach((u) => {
|
|
94
|
+
const l = c.modifyHtml(u);
|
|
95
|
+
i ? l.removeStyle("background-color") : l.setStyle("background-color", s);
|
|
96
|
+
}), c;
|
|
97
|
+
}
|
|
79
98
|
};
|
|
80
99
|
}
|
|
81
|
-
function
|
|
100
|
+
function U(o, n, r) {
|
|
82
101
|
return class extends B {
|
|
83
102
|
getId() {
|
|
84
103
|
return o;
|
|
@@ -91,7 +110,7 @@ function Y(o, n, r) {
|
|
|
91
110
|
}
|
|
92
111
|
};
|
|
93
112
|
}
|
|
94
|
-
function
|
|
113
|
+
function Y(o, n, r) {
|
|
95
114
|
return class extends M {
|
|
96
115
|
getId() {
|
|
97
116
|
return o;
|
|
@@ -101,8 +120,8 @@ function w(o, n, r) {
|
|
|
101
120
|
}
|
|
102
121
|
};
|
|
103
122
|
}
|
|
104
|
-
function
|
|
105
|
-
return class extends
|
|
123
|
+
function w(o, n, r = ".ins-recommendation-product-container") {
|
|
124
|
+
return class extends I {
|
|
106
125
|
getId() {
|
|
107
126
|
return o;
|
|
108
127
|
}
|
|
@@ -112,7 +131,7 @@ function D(o, n, r = ".ins-recommendation-product-container") {
|
|
|
112
131
|
}
|
|
113
132
|
};
|
|
114
133
|
}
|
|
115
|
-
function
|
|
134
|
+
function G(o, n, r = ".ins-recommendation-product-container") {
|
|
116
135
|
return class extends b {
|
|
117
136
|
getId() {
|
|
118
137
|
return o;
|
|
@@ -123,7 +142,7 @@ function H(o, n, r = ".ins-recommendation-product-container") {
|
|
|
123
142
|
}
|
|
124
143
|
};
|
|
125
144
|
}
|
|
126
|
-
function
|
|
145
|
+
function H(o, n, r = ".ins-recommendation-product-container") {
|
|
127
146
|
return class extends S {
|
|
128
147
|
getId() {
|
|
129
148
|
return o;
|
|
@@ -134,7 +153,7 @@ function K(o, n, r = ".ins-recommendation-product-container") {
|
|
|
134
153
|
}
|
|
135
154
|
};
|
|
136
155
|
}
|
|
137
|
-
function
|
|
156
|
+
function V(o, n, r = ".ins-recommendation-product-container") {
|
|
138
157
|
return class extends A {
|
|
139
158
|
getId() {
|
|
140
159
|
return o;
|
|
@@ -145,7 +164,7 @@ function U(o, n, r = ".ins-recommendation-product-container") {
|
|
|
145
164
|
}
|
|
146
165
|
};
|
|
147
166
|
}
|
|
148
|
-
function
|
|
167
|
+
function W(o, n, r = ".ins-recommendation-product-container") {
|
|
149
168
|
return class extends N {
|
|
150
169
|
getId() {
|
|
151
170
|
return o;
|
|
@@ -156,7 +175,7 @@ function V(o, n, r = ".ins-recommendation-product-container") {
|
|
|
156
175
|
}
|
|
157
176
|
};
|
|
158
177
|
}
|
|
159
|
-
function
|
|
178
|
+
function X(o, n, r = ".ins-recommendation-product-container") {
|
|
160
179
|
return class extends q {
|
|
161
180
|
getId() {
|
|
162
181
|
return o;
|
|
@@ -167,7 +186,7 @@ function W(o, n, r = ".ins-recommendation-product-container") {
|
|
|
167
186
|
}
|
|
168
187
|
};
|
|
169
188
|
}
|
|
170
|
-
function
|
|
189
|
+
function j(o, n, r = ".ins-recommendation-product-container") {
|
|
171
190
|
return class extends $ {
|
|
172
191
|
getId() {
|
|
173
192
|
return o;
|
|
@@ -178,7 +197,7 @@ function X(o, n, r = ".ins-recommendation-product-container") {
|
|
|
178
197
|
}
|
|
179
198
|
};
|
|
180
199
|
}
|
|
181
|
-
function
|
|
200
|
+
function J(o, n, r = ".ins-recommendation-product-container") {
|
|
182
201
|
return class extends k {
|
|
183
202
|
getId() {
|
|
184
203
|
return o;
|
|
@@ -189,7 +208,7 @@ function j(o, n, r = ".ins-recommendation-product-container") {
|
|
|
189
208
|
}
|
|
190
209
|
};
|
|
191
210
|
}
|
|
192
|
-
function
|
|
211
|
+
function Q(o, n, r = ".ins-recommendation-product-container") {
|
|
193
212
|
return class extends p {
|
|
194
213
|
getId() {
|
|
195
214
|
return o;
|
|
@@ -200,8 +219,8 @@ function G(o, n, r = ".ins-recommendation-product-container") {
|
|
|
200
219
|
}
|
|
201
220
|
};
|
|
202
221
|
}
|
|
203
|
-
function
|
|
204
|
-
return class extends
|
|
222
|
+
function Z(o, n, r) {
|
|
223
|
+
return class extends h {
|
|
205
224
|
getId() {
|
|
206
225
|
return o;
|
|
207
226
|
}
|
|
@@ -223,21 +242,21 @@ function J(o, n, r) {
|
|
|
223
242
|
const t = e.closest(r);
|
|
224
243
|
if (!t)
|
|
225
244
|
return;
|
|
226
|
-
const
|
|
227
|
-
if (!
|
|
245
|
+
const s = t.querySelectorAll(`[esd-extension-block-id="${n}"] a.es-button`);
|
|
246
|
+
if (!s.length)
|
|
228
247
|
return;
|
|
229
|
-
const
|
|
230
|
-
if (!
|
|
248
|
+
const i = this.api.getValues()[R];
|
|
249
|
+
if (!i)
|
|
231
250
|
return;
|
|
232
|
-
const
|
|
233
|
-
return
|
|
234
|
-
l.modifyHtml(d).setStyle("font-weight",
|
|
251
|
+
const c = i.bold ? "bold" : "normal", u = i.italic ? "italic" : "normal", l = this.api.getDocumentModifier();
|
|
252
|
+
return s.forEach((d) => {
|
|
253
|
+
l.modifyHtml(d).setStyle("font-weight", c).setStyle("font-style", u);
|
|
235
254
|
}), l;
|
|
236
255
|
}
|
|
237
256
|
};
|
|
238
257
|
}
|
|
239
|
-
function
|
|
240
|
-
return class extends
|
|
258
|
+
function tt(o, n, r) {
|
|
259
|
+
return class extends F {
|
|
241
260
|
getId() {
|
|
242
261
|
return o;
|
|
243
262
|
}
|
|
@@ -247,8 +266,8 @@ function Q(o, n, r) {
|
|
|
247
266
|
}
|
|
248
267
|
};
|
|
249
268
|
}
|
|
250
|
-
function
|
|
251
|
-
return class extends
|
|
269
|
+
function et(o, n, r) {
|
|
270
|
+
return class extends m {
|
|
252
271
|
getId() {
|
|
253
272
|
return o;
|
|
254
273
|
}
|
|
@@ -262,7 +281,7 @@ function Z(o, n, r) {
|
|
|
262
281
|
}
|
|
263
282
|
};
|
|
264
283
|
}
|
|
265
|
-
function
|
|
284
|
+
function nt(o, n, r) {
|
|
266
285
|
return class extends y {
|
|
267
286
|
getId() {
|
|
268
287
|
return o;
|
|
@@ -278,25 +297,25 @@ function tt(o, n, r) {
|
|
|
278
297
|
};
|
|
279
298
|
}
|
|
280
299
|
export {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
300
|
+
w as createButtonAlignControl,
|
|
301
|
+
H as createButtonBorderControl,
|
|
302
|
+
V as createButtonBorderRadiusControl,
|
|
303
|
+
G as createButtonColorControl,
|
|
304
|
+
tt as createButtonFitToContainerControl,
|
|
305
|
+
W as createButtonFontFamilyControl,
|
|
306
|
+
X as createButtonMarginsControl,
|
|
307
|
+
j as createButtonPaddingsControl,
|
|
308
|
+
J as createButtonTextControl,
|
|
309
|
+
Q as createButtonTextSizeControl,
|
|
310
|
+
Z as createButtonTextStyleAndFontColorControl,
|
|
311
|
+
nt as createImageMarginsControl,
|
|
312
|
+
et as createImageSizeControl,
|
|
313
|
+
U as createPaddingsControl,
|
|
314
|
+
z as createTextAlignControl,
|
|
315
|
+
L as createTextBackgroundColorControl,
|
|
316
|
+
v as createTextColorControl,
|
|
317
|
+
K as createTextFontFamilyControl,
|
|
318
|
+
Y as createTextLineSpacingControl,
|
|
319
|
+
P as createTextSizeControl,
|
|
320
|
+
D as createTextStyleControl
|
|
302
321
|
};
|
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
import type { DynamicContent } from '@@/Types/generic';
|
|
2
|
+
import type { FiltersResponse } from '@@/Types/recommendation';
|
|
3
|
+
/**
|
|
4
|
+
* Parses a `{{recoId_index_attributeName}}` variable (already stripped of the
|
|
5
|
+
* braces/whitespace) into its recommendation id and attribute name. Returns
|
|
6
|
+
* null for anything that isn't a well-formed recommendation variable.
|
|
7
|
+
*/
|
|
8
|
+
export declare function parseRecommendationVariable(field: string): {
|
|
9
|
+
recoId: string;
|
|
10
|
+
attribute: string;
|
|
11
|
+
} | null;
|
|
12
|
+
/**
|
|
13
|
+
* Builds the set of attribute forms valid inside partner-authored
|
|
14
|
+
* `{{recoId_index_attribute}}` variables: the built-in compiler attributes plus
|
|
15
|
+
* each account attribute in its canonical token form — bare for
|
|
16
|
+
* `defaultAttribute`, `product_attribute.<name>` for `productAttribute`. Using
|
|
17
|
+
* `resolveProductAttrValue` (the same producer the block builder uses) keeps the
|
|
18
|
+
* validator's notion of "valid form" identical to what is actually emitted.
|
|
19
|
+
*/
|
|
20
|
+
export declare function buildPartnerAttributeNameSet(filterList: FiltersResponse): Set<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the `{{...}}` custom fields in the HTML that are invalid. Partner
|
|
23
|
+
* attributes in `ins-skip-compile` blocks (recoId ∈ ignoredIds) are checked
|
|
24
|
+
* against `ignoredAttributeNames`; Guido-generated reco variables and known merge
|
|
25
|
+
* tags pass. An unrecognized dotted token is ignored: it was never captured
|
|
26
|
+
* before, so flagging it would false-positive on merge tags like `{{user.name}}`.
|
|
27
|
+
*/
|
|
28
|
+
export declare function findInvalidCustomFields(html: string, validCustomFields: string[], recommendationBlockIds: string[], ignoredIds: Set<string>, ignoredAttributeNames: Set<string> | null): string[];
|
|
2
29
|
export declare const useHtmlValidator: () => {
|
|
3
30
|
validateHtml: (html: string, customFields: DynamicContent[], isOnSaveValidation?: boolean) => Promise<boolean>;
|
|
4
31
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns true when a recommendation block has opted out of Guido's
|
|
3
|
+
* product-data → template-variable substitution. Partners signal opt-out by
|
|
4
|
+
* adding the `ins-skip-compile` class on the `.recommendation-block-v2`
|
|
5
|
+
* element. Only the variable substitution is skipped — campaign URL building,
|
|
6
|
+
* hidden-row removal, Outlook image widths, discount conditions, text-trim CSS
|
|
7
|
+
* and general HTML optimizations still apply. See `CSS_CLASS_SKIP_COMPILE` for
|
|
8
|
+
* the full scope.
|
|
9
|
+
*/
|
|
10
|
+
export declare function isIgnoredRecommendationBlock(block: Element): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* DOM-parses the HTML once and returns the set of `recommendation-id`
|
|
13
|
+
* values that belong to ignored blocks. Use this in regex/string-based
|
|
14
|
+
* compiler rules where the rule processes flat matches and only has the
|
|
15
|
+
* extracted block ID rather than a DOM Element reference.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getIgnoredRecommendationBlockIds(html: string): Set<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,3 +5,18 @@ export declare function extractTitleText(block: Element): string;
|
|
|
5
5
|
* the caller treats that as "no segment background".
|
|
6
6
|
*/
|
|
7
7
|
export declare function extractCardBgColor(block: Element): string;
|
|
8
|
+
/**
|
|
9
|
+
* Reads the legacy block's own `currency-*` attributes into a
|
|
10
|
+
* `currencySettings`-shaped object that `mapCurrency` understands. Used as a
|
|
11
|
+
* fallback when the external recommendationConfigs map has no entry for this
|
|
12
|
+
* block, so the migrated block keeps its real currency instead of defaulting.
|
|
13
|
+
* Returns undefined when the block carries no `currency` attribute.
|
|
14
|
+
*/
|
|
15
|
+
export declare function extractCurrencyFromBlock(block: Element): Record<string, string> | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* True when a PM has manually opted the legacy block out of content
|
|
18
|
+
* regeneration by adding the `ins-skip-compile` class. Detected before rebuild
|
|
19
|
+
* so the migrator preserves the partner's markup verbatim (keeping their
|
|
20
|
+
* hand-authored variables) instead of regenerating the block.
|
|
21
|
+
*/
|
|
22
|
+
export declare function isPartnerManagedBlock(block: Element): boolean;
|
|
@@ -8,4 +8,12 @@ export declare function buildBlockHtml(params: {
|
|
|
8
8
|
extraClasses?: string;
|
|
9
9
|
legacyId?: string;
|
|
10
10
|
legacyBgColor?: string;
|
|
11
|
+
/**
|
|
12
|
+
* When set, the block's existing inner HTML is preserved verbatim instead
|
|
13
|
+
* of regenerating product rows — used for partner-customized blocks so
|
|
14
|
+
* their hand-authored `{{...}}` variables survive migration.
|
|
15
|
+
*/
|
|
16
|
+
preserveInnerHtml?: string;
|
|
17
|
+
/** Adds the `ins-skip-compile` opt-out class to the migrated block. */
|
|
18
|
+
skipCompile?: boolean;
|
|
11
19
|
}): string;
|
|
@@ -74,11 +74,11 @@ export declare const TextBackgroundControl: {
|
|
|
74
74
|
new (): {
|
|
75
75
|
getId(): string;
|
|
76
76
|
getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
|
|
77
|
+
getAdditionalModifications(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
77
78
|
getParentControlId(): string;
|
|
78
79
|
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
79
80
|
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
80
81
|
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
81
|
-
getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
82
82
|
isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
|
|
83
83
|
};
|
|
84
84
|
};
|
|
@@ -232,11 +232,11 @@ export declare const OriginalPriceControls: {
|
|
|
232
232
|
new (): {
|
|
233
233
|
getId(): string;
|
|
234
234
|
getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
|
|
235
|
+
getAdditionalModifications(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
235
236
|
getParentControlId(): string;
|
|
236
237
|
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
237
238
|
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
238
239
|
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
239
|
-
getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
240
240
|
isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
|
|
241
241
|
};
|
|
242
242
|
};
|
|
@@ -318,11 +318,11 @@ export declare const PriceControls: {
|
|
|
318
318
|
new (): {
|
|
319
319
|
getId(): string;
|
|
320
320
|
getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
|
|
321
|
+
getAdditionalModifications(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
321
322
|
getParentControlId(): string;
|
|
322
323
|
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
323
324
|
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
324
325
|
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
325
|
-
getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
326
326
|
isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
|
|
327
327
|
};
|
|
328
328
|
};
|
|
@@ -404,11 +404,11 @@ export declare const NameControls: {
|
|
|
404
404
|
new (): {
|
|
405
405
|
getId(): string;
|
|
406
406
|
getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
|
|
407
|
+
getAdditionalModifications(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
407
408
|
getParentControlId(): string;
|
|
408
409
|
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
409
410
|
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
410
411
|
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
411
|
-
getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
412
412
|
isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
|
|
413
413
|
};
|
|
414
414
|
};
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
*/
|
|
9
9
|
export { RecommendationBlockId } from './blockIds';
|
|
10
10
|
export { RecommendationControlId } from './controlIds';
|
|
11
|
-
export { BLOCK_ROOT_SELECTOR, CONTAINER_SELECTOR, DESKTOP_CONTAINER_SELECTOR, MOBILE_CONTAINER_SELECTOR, MOBILE_ROW_SELECTOR, CSS_CLASS_RECO_BUTTON, CURRENCY_ATTR, ATTR_PRODUCT_IMAGE, ATTR_PRODUCT_NAME, ATTR_PRODUCT_PRICE, ATTR_PRODUCT_OLD_PRICE, ATTR_PRODUCT_OMNIBUS_PRICE, ATTR_PRODUCT_OMNIBUS_DISCOUNT, ATTR_PRODUCT_BUTTON, ATTR_CUSTOM_PREFIX, ATTR_DATA_CUSTOM_ATTRIBUTES, ATTR_PRODUCT_ATTR, PRODUCT_ATTRIBUTE_PREFIX, BUILT_IN_DEFAULT_ATTRIBUTES, } from './selectors';
|
|
11
|
+
export { BLOCK_ROOT_SELECTOR, CONTAINER_SELECTOR, DESKTOP_CONTAINER_SELECTOR, MOBILE_CONTAINER_SELECTOR, MOBILE_ROW_SELECTOR, CSS_CLASS_RECO_BUTTON, CSS_CLASS_SKIP_COMPILE, RECOMMENDATION_VARIABLE_BUILTIN_ATTRIBUTES, CURRENCY_ATTR, ATTR_PRODUCT_IMAGE, ATTR_PRODUCT_NAME, ATTR_PRODUCT_PRICE, ATTR_PRODUCT_OLD_PRICE, ATTR_PRODUCT_OMNIBUS_PRICE, ATTR_PRODUCT_OMNIBUS_DISCOUNT, ATTR_PRODUCT_BUTTON, ATTR_CUSTOM_PREFIX, ATTR_DATA_CUSTOM_ATTRIBUTES, ATTR_PRODUCT_ATTR, PRODUCT_ATTRIBUTE_PREFIX, BUILT_IN_DEFAULT_ATTRIBUTES, } from './selectors';
|
|
12
12
|
export { LAYOUT_VALUES, LAYOUT_OPTIONS, DEFAULT_PRODUCTS_PER_ROW, DEFAULT_CARDS_IN_ROW, DEFAULT_MOBILE_CARDS_IN_ROW, MAX_PRODUCT_COUNT, MIN_PRODUCT_COUNT, MAX_PRODUCTS_PER_ROW, MIN_PRODUCTS_PER_ROW, MAX_MOBILE_PRODUCTS_PER_ROW, MIN_MOBILE_PRODUCTS_PER_ROW, DEFAULT_COLUMN_SPACING, DEFAULT_ROW_SPACING, DEFAULT_MOBILE_COLUMN_SPACING, DEFAULT_MOBILE_ROW_SPACING, MIN_SPACING, MAX_SPACING, SPACING_STEP, } from './layout';
|
|
13
13
|
export { DEFAULT_NODE_CONFIG, DEFAULT_CURRENCY, DEFAULT_COMPOSITION, DEFAULT_VISIBILITY, CURRENT_CONFIG_VERSION, EXCLUDED_ALGORITHM_IDS, } from './defaultConfig';
|
|
@@ -23,6 +23,18 @@ export declare const MOBILE_ROW_SELECTOR = ".ins-recommendation-mobile-row";
|
|
|
23
23
|
* `{{cId_pIdx_url}}` template variable.
|
|
24
24
|
*/
|
|
25
25
|
export declare const CSS_CLASS_RECO_BUTTON = "reco-v3-button";
|
|
26
|
+
/**
|
|
27
|
+
* Opt-out class for partners who want to inject their own template variables
|
|
28
|
+
* into a recommendation block. When present on `.recommendation-block-v2`,
|
|
29
|
+
* Guido skips ONLY its product-data → template-variable substitution
|
|
30
|
+
* (`replaceProductAttributes`) for that block — partners author their own
|
|
31
|
+
* `{{recoId_index_attribute}}` variables. Everything else (campaign URL
|
|
32
|
+
* building, hidden-row removal, Outlook image widths, text-trim CSS, discount
|
|
33
|
+
* conditions, store hydration, store-level config validation, and general HTML
|
|
34
|
+
* optimizations) still applies. The class is preserved in the final compiled
|
|
35
|
+
* output so partners may use it for their own styling.
|
|
36
|
+
*/
|
|
37
|
+
export declare const CSS_CLASS_SKIP_COMPILE = "ins-skip-compile";
|
|
26
38
|
/**
|
|
27
39
|
* Currency HTML attributes set on the block element
|
|
28
40
|
* These are read by the HTML compiler at runtime to format prices
|
|
@@ -63,3 +75,12 @@ export declare const PRODUCT_ATTRIBUTE_PREFIX = "product_attribute.";
|
|
|
63
75
|
* Used to exclude these from the custom attribute dropdown to prevent duplication with toggles.
|
|
64
76
|
*/
|
|
65
77
|
export declare const BUILT_IN_DEFAULT_ATTRIBUTES: Set<string>;
|
|
78
|
+
/**
|
|
79
|
+
* Attribute names valid inside a `{{recoId_index_attributeName}}` template
|
|
80
|
+
* variable regardless of the account's custom attribute list. Every built-in
|
|
81
|
+
* composition attribute is valid, plus `currency` and `discount` which the
|
|
82
|
+
* compiler emits but are not composition toggles. Custom attributes are
|
|
83
|
+
* validated separately against the account's fetched attribute list
|
|
84
|
+
* (`stripo/email-recommendation-attributes`).
|
|
85
|
+
*/
|
|
86
|
+
export declare const RECOMMENDATION_VARIABLE_BUILTIN_ATTRIBUTES: Set<string>;
|
|
@@ -17,6 +17,13 @@ export declare class RecommendationCardCompositionControl extends CommonControl
|
|
|
17
17
|
getId(): string;
|
|
18
18
|
getTemplate(): string;
|
|
19
19
|
onRender(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Card composition restructures the block (toggles/reorders/adds attribute
|
|
22
|
+
* cells), which would corrupt a partner-managed (`ins-skip-compile`) block's
|
|
23
|
+
* preserved markup. There is no native tab-disable API, so the whole control
|
|
24
|
+
* container is rendered inert (greyed + non-interactive) instead.
|
|
25
|
+
*/
|
|
26
|
+
_syncDisabledState(): void;
|
|
20
27
|
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
21
28
|
onDestroy(): void;
|
|
22
29
|
private _initializeComposition;
|
|
@@ -21,6 +21,11 @@ export declare class LayoutOrientationControl extends CommonControl {
|
|
|
21
21
|
getTemplate(): string;
|
|
22
22
|
onRender(): void;
|
|
23
23
|
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
24
|
+
/**
|
|
25
|
+
* Layout orientation restructures the whole block, which is meaningless for
|
|
26
|
+
* partner-managed (`ins-skip-compile`) blocks — disable the control there.
|
|
27
|
+
*/
|
|
28
|
+
_syncDisabledState(): void;
|
|
24
29
|
_setFormValues(): void;
|
|
25
30
|
/**
|
|
26
31
|
* Handles layout change
|
|
@@ -30,6 +30,12 @@ export declare class ProductLayoutControl extends CommonControl {
|
|
|
30
30
|
getTemplate(): string;
|
|
31
31
|
onRender(): void;
|
|
32
32
|
onTemplateNodeUpdated(node: ImmutableHtmlNode): void;
|
|
33
|
+
/**
|
|
34
|
+
* Products-per-row and mobile-layout restructure the block, which is
|
|
35
|
+
* meaningless for partner-managed (`ins-skip-compile`) blocks — disable
|
|
36
|
+
* these inputs there. Disabling coexists with the visibility logic above.
|
|
37
|
+
*/
|
|
38
|
+
_syncDisabledState(): void;
|
|
33
39
|
onDestroy(): void;
|
|
34
40
|
_setFormValues(): void;
|
|
35
41
|
/**
|
|
@@ -35,6 +35,15 @@ interface DocumentModifier {
|
|
|
35
35
|
* @returns The block element or null if not found
|
|
36
36
|
*/
|
|
37
37
|
export declare function getBlockElement(currentNode: ImmutableHtmlNode | null | undefined): ImmutableHtmlNode | null;
|
|
38
|
+
/**
|
|
39
|
+
* True when the recommendation block has opted out of Guido's content
|
|
40
|
+
* regeneration via the `ins-skip-compile` class. Partner-managed blocks carry
|
|
41
|
+
* hand-authored `{{...}}` variables in their cells, so Guido must never
|
|
42
|
+
* overwrite their content with product data (regenerate / in-place update).
|
|
43
|
+
* @param currentNode - The current template node
|
|
44
|
+
* @returns True if the block opted out of content regeneration
|
|
45
|
+
*/
|
|
46
|
+
export declare function isPartnerManagedBlock(currentNode: ImmutableHtmlNode | null | undefined): boolean;
|
|
38
47
|
/**
|
|
39
48
|
* Gets the current layout orientation from the block's data attribute
|
|
40
49
|
* Supports both old (horizontal/vertical) and new (list/grid) values for backward compatibility
|
|
@@ -73,11 +73,11 @@ export declare const NameControls: {
|
|
|
73
73
|
new (): {
|
|
74
74
|
getId(): string;
|
|
75
75
|
getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
|
|
76
|
+
getAdditionalModifications(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
76
77
|
getParentControlId(): string;
|
|
77
78
|
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
78
79
|
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
79
80
|
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
80
|
-
getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
81
81
|
isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
|
|
82
82
|
};
|
|
83
83
|
};
|
|
@@ -72,11 +72,11 @@ export declare const OldPriceControls: {
|
|
|
72
72
|
new (): {
|
|
73
73
|
getId(): string;
|
|
74
74
|
getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
|
|
75
|
+
getAdditionalModifications(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
75
76
|
getParentControlId(): string;
|
|
76
77
|
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
77
78
|
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
78
79
|
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
79
|
-
getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
80
80
|
isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
|
|
81
81
|
};
|
|
82
82
|
};
|
|
@@ -75,11 +75,11 @@ export declare const OmnibusDiscountControls: {
|
|
|
75
75
|
new (): {
|
|
76
76
|
getId(): string;
|
|
77
77
|
getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
|
|
78
|
+
getAdditionalModifications(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
78
79
|
getParentControlId(): string;
|
|
79
80
|
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
80
81
|
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
81
82
|
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
82
|
-
getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
83
83
|
isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
@@ -75,11 +75,11 @@ export declare const OmnibusPriceControls: {
|
|
|
75
75
|
new (): {
|
|
76
76
|
getId(): string;
|
|
77
77
|
getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
|
|
78
|
+
getAdditionalModifications(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
78
79
|
getParentControlId(): string;
|
|
79
80
|
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
80
81
|
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
81
82
|
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
82
|
-
getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
83
83
|
isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
|
|
84
84
|
};
|
|
85
85
|
};
|
|
@@ -72,11 +72,11 @@ export declare const PriceControls: {
|
|
|
72
72
|
new (): {
|
|
73
73
|
getId(): string;
|
|
74
74
|
getTargetNodes(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode[];
|
|
75
|
+
getAdditionalModifications(root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
75
76
|
getParentControlId(): string;
|
|
76
77
|
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
77
78
|
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
78
79
|
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
79
|
-
getAdditionalModifications(_root: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
80
80
|
isVisible(_node: import("@stripoinc/ui-editor-extensions").ImmutableHtmlNode): boolean;
|
|
81
81
|
};
|
|
82
82
|
};
|
|
@@ -98,11 +98,20 @@ export declare function createTextBackgroundColorControl(controlId: string, targ
|
|
|
98
98
|
new (): {
|
|
99
99
|
getId(): string;
|
|
100
100
|
getTargetNodes(root: ImmutableHtmlNode): ImmutableHtmlNode[];
|
|
101
|
+
/**
|
|
102
|
+
* Mirrors the picked background onto each target cell as an INLINE style.
|
|
103
|
+
*
|
|
104
|
+
* Stripo's built-in applies the background as a stylesheet rule, not inline. On
|
|
105
|
+
* regeneration we re-bake the captured color inline (cellBgStyleAttr); inline then
|
|
106
|
+
* outranks Stripo's rule in the cascade, so a later re-edit silently has no effect
|
|
107
|
+
* (SD-143023). Writing the inline here keeps it the single source of truth and in
|
|
108
|
+
* sync on every edit. Merged into the parent control's single patch (no extra apply).
|
|
109
|
+
*/
|
|
110
|
+
getAdditionalModifications(root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
101
111
|
getParentControlId(): string;
|
|
102
112
|
api: import("@stripoinc/ui-editor-extensions").ControlApi;
|
|
103
113
|
getLabels(): import("@stripoinc/ui-editor-extensions").ControlLabels | undefined;
|
|
104
114
|
getModificationDescription(): import("@stripoinc/ui-editor-extensions").ModificationDescription | undefined;
|
|
105
|
-
getAdditionalModifications(_root: ImmutableHtmlNode): import("@stripoinc/ui-editor-extensions").TemplateModifier<import("@stripoinc/ui-editor-extensions").HtmlNodeModifier, import("@stripoinc/ui-editor-extensions").CssNodeModifier> | undefined;
|
|
106
115
|
isVisible(_node: ImmutableHtmlNode): boolean;
|
|
107
116
|
};
|
|
108
117
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@useinsider/guido",
|
|
3
|
-
"version": "3.8.1-beta.
|
|
3
|
+
"version": "3.8.1-beta.6c0ee3f",
|
|
4
4
|
"description": "Guido is a Vue + TypeScript wrapper for Email Plugin. Easily embed the email editor in your Vue applications.",
|
|
5
5
|
"main": "./dist/guido.umd.cjs",
|
|
6
6
|
"module": "./dist/library.js",
|