@useinsider/guido 3.20.1-beta.20dcf3d → 3.20.1-beta.23eb082

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,21 +1,21 @@
1
1
  import "../constants/selectors.js";
2
2
  import { RRS_CONFIG_VERSION as m } from "../constants/defaultConfig.js";
3
- import { sanitizeProductIds as p, PRODUCT_ID_SEPARATOR as d } from "./productIds.js";
4
- const u = "manualMerchandising";
5
- function f({ strategyId: e, nodeConfigVersion: t }) {
3
+ import { sanitizeProductIds as p } from "./productIds.js";
4
+ const d = "manualMerchandising";
5
+ function N({ strategyId: e, nodeConfigVersion: t }) {
6
6
  return !e && t < m;
7
7
  }
8
8
  const o = (e) => {
9
9
  const t = String(e ?? "").trim();
10
10
  return /^[1-9]\d*$/.test(t) ? t : null;
11
11
  };
12
- function R({ campaignId: e, templateLibraryId: t }) {
12
+ function f({ campaignId: e, templateLibraryId: t }) {
13
13
  if (o(e))
14
14
  return { scope: "campaign" };
15
15
  const n = o(t);
16
16
  return n ? { scope: "template", templateId: n } : { scope: "campaign" };
17
17
  }
18
- function S({
18
+ function y({
19
19
  blockId: e,
20
20
  url: t,
21
21
  campaignId: n,
@@ -24,7 +24,7 @@ function S({
24
24
  productIds: s,
25
25
  target: r
26
26
  }) {
27
- const i = c === u ? p(s).split(d).filter(Boolean) : [];
27
+ const i = c === d ? p(s).split(",").filter(Boolean) : [];
28
28
  return {
29
29
  ...r.scope === "template" ? { templateId: Number.parseInt(r.templateId) } : {
30
30
  campaignId: Number.parseInt(n) || 0,
@@ -36,7 +36,7 @@ function S({
36
36
  };
37
37
  }
38
38
  export {
39
- S as buildLegacyMigrationPayload,
40
- f as isLegacyStrategyConfig,
41
- R as resolveMigrationTarget
39
+ y as buildLegacyMigrationPayload,
40
+ N as isLegacyStrategyConfig,
41
+ f as resolveMigrationTarget
42
42
  };
@@ -1,8 +1,6 @@
1
- const i = ",";
2
- function o(t) {
3
- return t.map((n) => String(n ?? "").trim()).filter(Boolean).join(",");
1
+ function n(t) {
2
+ return t.map((i) => String(i ?? "").trim()).filter(Boolean).join(",");
4
3
  }
5
4
  export {
6
- i as PRODUCT_ID_SEPARATOR,
7
- o as sanitizeProductIds
5
+ n as sanitizeProductIds
8
6
  };
@@ -1,5 +1,3 @@
1
- /** Separator between product ids in the joined `productId` value. */
2
- export declare const PRODUCT_ID_SEPARATOR = ",";
3
1
  /**
4
2
  * Builds the request/URL `productId` value from raw product ID segments.
5
3
  * Trimming happens here — NOT on input change — so the user's in-progress
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useinsider/guido",
3
- "version": "3.20.1-beta.20dcf3d",
3
+ "version": "3.20.1-beta.23eb082",
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",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@stripoinc/ui-editor-extensions": "3.11.0",
56
56
  "@useinsider/design-system-organisms": "0.0.3-beta.d816f06",
57
- "@useinsider/design-system-vue": "1.5.0",
57
+ "@useinsider/design-system-vue": "2.3.1",
58
58
  "@vueuse/core": "11.3.0",
59
59
  "lodash-es": "4.17.21",
60
60
  "pinia": "2.3.1",