@spiffcommerce/core 16.2.5 → 16.3.0

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/index.js CHANGED
@@ -1636,7 +1636,7 @@ class Qe {
1636
1636
  C("Undefined vector silent step source");
1637
1637
  return;
1638
1638
  }
1639
- Z(l).then((Q) => {
1639
+ Z(l, !0).then((Q) => {
1640
1640
  E(Q);
1641
1641
  }).catch((Q) => console.error(Q));
1642
1642
  }))()), h = {
@@ -1832,7 +1832,7 @@ class fa {
1832
1832
  throw new _(A);
1833
1833
  const a = t.fileLink;
1834
1834
  if (a)
1835
- return Z(a);
1835
+ return Z(a, !0);
1836
1836
  throw new lA(t);
1837
1837
  };
1838
1838
  }
@@ -1982,7 +1982,7 @@ class fa {
1982
1982
  };
1983
1983
  le.set(A, s), e.setPatternData(s);
1984
1984
  } else {
1985
- const t = await Me(A), a = await De(t), n = {
1985
+ const t = await Me(A, !0), a = await De(t), n = {
1986
1986
  src: A,
1987
1987
  width: a.width,
1988
1988
  height: a.height,
@@ -2082,7 +2082,7 @@ const ZA = new fa();
2082
2082
  class Fa {
2083
2083
  async getIllustrationBody(A) {
2084
2084
  return new Promise((e) => {
2085
- Z(A).then((t) => {
2085
+ Z(A, !0).then((t) => {
2086
2086
  e(t);
2087
2087
  }).catch((t) => console.error(t));
2088
2088
  });
@@ -2424,7 +2424,7 @@ class ya {
2424
2424
  await t.setSelectionsAndElements(A.stepName, [e], [], async () => {
2425
2425
  try {
2426
2426
  const i = t.getModelContainer();
2427
- i && i.applyModelVariant(
2427
+ i && await i.applyModelVariant(
2428
2428
  A.stepName,
2429
2429
  {
2430
2430
  model: n,
@@ -7129,7 +7129,7 @@ const hn = [
7129
7129
  const i = (m = s.asset) == null ? void 0 : m.fileLink;
7130
7130
  if (!i)
7131
7131
  return console.error(`No asset link for variant with ID: ${a.illustrationVariantId}`), [];
7132
- const o = await Z(i), c = /<svg.*?<\/svg>/s, r = o.match(c) || [], B = (r == null ? void 0 : r.length) > 0 ? r[0] : "", w = Pe().parseFromString(B, "image/svg+xml").firstElementChild;
7132
+ const o = await Z(i, !0), c = /<svg.*?<\/svg>/s, r = o.match(c) || [], B = (r == null ? void 0 : r.length) > 0 ? r[0] : "", w = Pe().parseFromString(B, "image/svg+xml").firstElementChild;
7133
7133
  if (!w)
7134
7134
  return console.error("Failed to read SVG."), [];
7135
7135
  He(w);
@@ -7348,7 +7348,7 @@ const hn = [
7348
7348
  }
7349
7349
  else {
7350
7350
  console.log(`fetching ${n}`);
7351
- const c = await Z(n), r = (B) => {
7351
+ const c = await Z(n, !0), r = (B) => {
7352
7352
  const l = /<svg.*?<\/svg>/s, d = B.match(l) || [], w = (d == null ? void 0 : d.length) > 0 ? d[0] : "", C = Pe().parseFromString(w, "image/svg+xml").firstElementChild;
7353
7353
  if (!C)
7354
7354
  throw new rA("Failed to read SVG.");
@@ -7399,7 +7399,7 @@ const hn = [
7399
7399
  if (!E)
7400
7400
  return;
7401
7401
  console.log(`fetching ${E}`);
7402
- const C = await Me(E), Q = await Ht(C), u = UA(Q);
7402
+ const C = await Me(E, !0), Q = await Ht(C), u = UA(Q);
7403
7403
  return await Ut(u, E), {
7404
7404
  assetUrl: E,
7405
7405
  name: u.names.fullName.en