@useinsider/guido 3.8.1-beta.1a5be20 → 3.8.1-beta.1dd45b4

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.
@@ -1,15 +1,16 @@
1
- const n = "newsletter.already-in-progress", e = "newsletter.campaign-could-not-be-saved", s = / (==|<=|>=|!=|>|<|in) | (if|elif|endif|else|and|or) |("[\S ]+")|('[\S ]+')|([^”\s\n]+)|(({%)|( %}))/gm, o = /{%( )*now( )(".*")( )*%}/gm, E = /\{\{[^{}]+\}\}/g, i = /(\s)data-[\w-]+=(?:"[^"]*"|'[^']*')/g, t = /^[A-Za-z0-9_.]+$/, _ = [
1
+ const n = "newsletter.already-in-progress", e = "newsletter.campaign-could-not-be-saved", s = / (==|<=|>=|!=|>|<|in) | (if|elif|endif|else|and|or) |("[\S ]+")|('[\S ]+')|([^”\s\n]+)|(({%)|( %}))/gm, o = /{%( )*now( )(".*")( )*%}/gm, E = /\{\{[^{}]+\}\}/g, _ = /(\s)data-[\w-]+=(?:"[^"]*"|'[^']*')/g, i = /^[A-Za-z0-9_.]+$/, t = [
2
2
  "ins-unsubscribe-link",
3
3
  "ins-global-unsubscribe-link",
4
- "ins-preferences-unsubscribe-link"
4
+ "ins-preferences-unsubscribe-link",
5
+ "@COUPON_CODE"
5
6
  ];
6
7
  export {
7
- _ as ALLOWED_DYNAMIC_SYSTEM_TOKENS,
8
+ t as ALLOWED_DYNAMIC_SYSTEM_TOKENS,
8
9
  e as CampaignCouldNotBeSavedKey,
9
10
  n as CanNotMakeAnyChangesForRunningKey,
10
- i as DATA_ATTRIBUTE_REGEX,
11
+ _ as DATA_ATTRIBUTE_REGEX,
11
12
  o as DISPLAY_CONDITIONS_EXCEPTIONS_REGEX,
12
13
  s as DISPLAY_CONDITIONS_REGEX,
13
14
  E as DYNAMIC_CONTENT_TAG_REGEX,
14
- t as VALID_DYNAMIC_VARIABLE_REGEX
15
+ i as VALID_DYNAMIC_VARIABLE_REGEX
15
16
  };
@@ -93,8 +93,8 @@ function $(e, t = {}) {
93
93
  productsPerRow: c.mobileCardsInRow,
94
94
  composition: d,
95
95
  filterList: l.filterList,
96
- // One product per row has no gutter suppress padding without clobbering the stored value.
97
- cellPadding: c.mobileCardsInRow === 1 ? "0" : U(c.mobileColumnSpacing),
96
+ // Match the initial render's gutter so a regeneration never changes block height (SD-143023).
97
+ cellPadding: U(c.mobileColumnSpacing),
98
98
  rowSpacingPx: c.mobileRowSpacing,
99
99
  ...t
100
100
  })}</table></td>`, E = n.querySelector(N);
@@ -120,8 +120,8 @@ function ee(e, t = {}) {
120
120
  productsPerRow: a,
121
121
  composition: d,
122
122
  filterList: c.filterList,
123
- // One product per row has no gutter suppress padding without clobbering the stored value.
124
- cellPadding: a === 1 ? "0" : U(p.columnSpacing),
123
+ // Match the initial render's gutter so a regeneration never changes block height (SD-143023).
124
+ cellPadding: U(p.columnSpacing),
125
125
  rowSpacingPx: p.rowSpacing,
126
126
  ...t
127
127
  });
@@ -277,7 +277,7 @@ function re(e, t, n) {
277
277
  });
278
278
  }), s;
279
279
  }
280
- function I(e, t, n) {
280
+ function h(e, t, n) {
281
281
  if (!("querySelectorAll" in e))
282
282
  return !1;
283
283
  const o = e.querySelectorAll(
@@ -321,12 +321,12 @@ function ge(e) {
321
321
  `[esd-extension-block-id="${m.IMAGE}"]`
322
322
  ).length !== o.length)
323
323
  return !1;
324
- let i = I(r, n, o);
324
+ let i = h(r, n, o);
325
325
  const u = C(t), c = S.getConfig(t);
326
326
  if (u !== "list" && c.mobileLayoutEnabled && "querySelector" in t) {
327
327
  const l = t.querySelector(O);
328
328
  if (l) {
329
- const a = I(
329
+ const a = h(
330
330
  l,
331
331
  n,
332
332
  o
@@ -336,7 +336,7 @@ function ge(e) {
336
336
  }
337
337
  return i && n.apply(new g("Updated product content in-place")), !0;
338
338
  }
339
- function h(e, t, n) {
339
+ function I(e, t, n) {
340
340
  if (!("querySelectorAll" in e))
341
341
  return !1;
342
342
  const o = e.querySelectorAll(
@@ -370,12 +370,12 @@ function Se(e) {
370
370
  if (r.length === 0)
371
371
  return !1;
372
372
  const s = j(t);
373
- let i = h(s, n, r);
373
+ let i = I(s, n, r);
374
374
  const u = C(t), c = S.getConfig(t);
375
375
  if (u !== "list" && c.mobileLayoutEnabled && "querySelector" in t) {
376
376
  const l = t.querySelector(O);
377
377
  if (l) {
378
- const a = h(l, n, r);
378
+ const a = I(l, n, r);
379
379
  i = i || a;
380
380
  }
381
381
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.8.1-beta.1a5be20",
3
+ "version": "3.8.1-beta.1dd45b4",
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",