@spiffcommerce/core 26.21.0-beta.6f310999-fed0-54d6-8925-d68e8de36a86 → 26.21.0-beta.86f658bf-0d08-5dba-83d7-47af5ddfeadf

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.mjs CHANGED
@@ -12127,7 +12127,7 @@ class bo {
12127
12127
  const p = u.getCurrentVariant();
12128
12128
  if (!p)
12129
12129
  return;
12130
- c.selectVariant(p), d.delete(JSON.stringify(m));
12130
+ console.log("COLOR DEBUG: copying starget step"), c.selectVariant(p), d.delete(JSON.stringify(m));
12131
12131
  } else if (f && (g == null ? void 0 : g.getType()) === "Text") {
12132
12132
  const p = u.getText();
12133
12133
  c.setText(p), d.delete(JSON.stringify(m));
@@ -13417,7 +13417,7 @@ class _n extends Ba {
13417
13417
  return n.id === ((s = (i = this.optionResource) == null ? void 0 : i.defaultVariant) == null ? void 0 : s.id);
13418
13418
  }
13419
13419
  );
13420
- t && await this.selectVariant(new it(t));
13420
+ t && (console.log(`COLOR DEBUG: initing global default for ${JSON.stringify(t, null, 2)}`), await this.selectVariant(new it(t)));
13421
13421
  }
13422
13422
  /**
13423
13423
  * Gets the currently selected variant, or undefined if no variant is selected.
@@ -13473,7 +13473,7 @@ class _n extends Ba {
13473
13473
  return a ? (console.log(`Applying global state using variant ${a.id} for aspect ${e}`), this.applyVariantSelection(new it(a), t)) : Promise.resolve();
13474
13474
  }
13475
13475
  async applyVariantSelection(t, e) {
13476
- const n = this.getSharedSteps(e).map((i) => i.selectVariant(t));
13476
+ const n = this.getSharedSteps(e).map((i) => (console.log("COLOR DEBUG: applying variant selection"), i.selectVariant(t)));
13477
13477
  await Promise.all(n);
13478
13478
  }
13479
13479
  }
@@ -13509,7 +13509,7 @@ class Ha extends _n {
13509
13509
  const i = this.getSharedSteps(e).map((s) => {
13510
13510
  switch (s.getType()) {
13511
13511
  case D.Shape:
13512
- return s.selectVariant(t);
13512
+ return console.log("COLOR DEBUG: shape?"), s.selectVariant(t);
13513
13513
  case D.Text:
13514
13514
  return s.setFillColor({
13515
13515
  fill: t.getColor(),
@@ -13596,7 +13596,7 @@ class jo {
13596
13596
  else {
13597
13597
  if (n === 1) {
13598
13598
  const c = o.findIndex((d) => !d.channel);
13599
- this.globalPropertyState.aspects.splice(c, 1);
13599
+ console.log(`COLOR DEBUG: channel 1, about to splice index ${c} of ${JSON.stringify(this.globalPropertyState.aspects)}`), this.globalPropertyState.aspects.splice(c, 1), console.log(`COLOR DEBUG: splice result: ${JSON.stringify(this.globalPropertyState.aspects)}`);
13600
13600
  }
13601
13601
  console.log(`COLOR DEBUG: adding value ${e} to channel ${n}, name ${t}`), this.globalPropertyState.aspects.push({
13602
13602
  name: t,
@@ -15213,7 +15213,7 @@ class kc {
15213
15213
  } catch (a) {
15214
15214
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15215
15215
  }
15216
- }, this.options = t, this.options.applicationKey && xr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.21.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15216
+ }, this.options = t, this.options.applicationKey && xr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.21.0-beta.42b9cd00-4ce1-5564-9951-337d0077061c"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15217
15217
  }
15218
15218
  configure(t) {
15219
15219
  wt.setHubUrl(t.hubUrl), wt.setServerUrl(t.serverUrl), wt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && kr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();