@spiffcommerce/core 28.0.1-beta.ac9a049c-ad73-555a-adbf-f7557a7cdbde → 28.0.1-beta.cf9847f6-7f99-59a1-a7ce-5381b1ac1990

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
@@ -13842,6 +13842,7 @@ class Zn extends Ia {
13842
13842
  }
13843
13843
  async applyGlobalState(t) {
13844
13844
  var n, i;
13845
+ console.log(`LOG: applying global state for option ${this.property.name}`);
13845
13846
  const e = this.getStateValue();
13846
13847
  if (!e)
13847
13848
  return Promise.resolve();
@@ -13869,6 +13870,7 @@ class Ja extends Zn {
13869
13870
  }
13870
13871
  async applyGlobalState(t) {
13871
13872
  var i, s, o;
13873
+ console.log(`LOG: applying global state for color ${this.property.name}`);
13872
13874
  const e = this.getStateValue();
13873
13875
  if (!e)
13874
13876
  return Promise.resolve();
@@ -13877,10 +13879,12 @@ class Ja extends Zn {
13877
13879
  return Promise.resolve();
13878
13880
  await this.applyColorVariant(new st(a), t);
13879
13881
  const n = (o = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name)) == null ? void 0 : o.customColor;
13880
- n && this.setCustomColor(n);
13882
+ console.log(`LOG: custom color ${n}`), n && this.setCustomColor(n);
13881
13883
  }
13882
13884
  async applyColorVariant(t, e, a) {
13883
- const i = this.getSharedSteps(e).map((s) => {
13885
+ const n = this.getSharedSteps(e);
13886
+ console.log(`LOG: applying color variant for ${n.length} shared steps`);
13887
+ const i = n.map((s) => {
13884
13888
  switch (s.getType()) {
13885
13889
  case P.Shape:
13886
13890
  return s.selectVariant(t);
@@ -15992,7 +15996,7 @@ class Ad {
15992
15996
  } catch (a) {
15993
15997
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15994
15998
  }
15995
- }, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 28.0.1-beta.29d7ea3f-e4d3-5c03-bd48-b02b5e782f5a"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15999
+ }, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 28.0.1-beta.ac9a049c-ad73-555a-adbf-f7557a7cdbde"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15996
16000
  }
15997
16001
  configure(t) {
15998
16002
  mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && Lr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);