@spiffcommerce/core 32.2.4-beta.dc196f53-5f18-5038-aa12-74b58d514361 → 32.2.5

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
@@ -13838,7 +13838,7 @@ class Za extends nr {
13838
13838
  * @param variant The variant to select.
13839
13839
  */
13840
13840
  async selectVariant(t, e) {
13841
- await this.bundle.getGlobalPropertyStateManager().setAspect(this.property.name, t.getId(), void 0, e);
13841
+ await this.bundle.getGlobalPropertyStateManager().setAspect(this.property.name, t.getId(), void 0, e), await this.applyColorVariant(t, void 0, e);
13842
13842
  }
13843
13843
  async applyGlobalState(t) {
13844
13844
  const e = this.getStateValue();
@@ -14889,10 +14889,8 @@ class Ze {
14889
14889
  break;
14890
14890
  }
14891
14891
  case U.ColorOption: {
14892
- const s = i, l = s.getAllVariants().find((c) => c.getId() === a.value);
14893
- l && await s.selectVariant(l), a.storage && a.storage.customColor && s.setCustomColor(
14894
- a.storage.customColor
14895
- );
14892
+ const s = i, l = s.getAllVariants().find((d) => d.getId() === a.value), c = a.storage ? a.storage : void 0;
14893
+ l && await s.selectVariant(l), c?.customColor && s.setCustomColor(c.customColor);
14896
14894
  break;
14897
14895
  }
14898
14896
  case U.Option: {
@@ -16005,7 +16003,7 @@ class vd {
16005
16003
  } catch (a) {
16006
16004
  throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
16007
16005
  }
16008
- }, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.2.4-beta.69c3a90e-c69d-5222-bce0-3d9f2163c2ae"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16006
+ }, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.2.5"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16009
16007
  }
16010
16008
  configure(t) {
16011
16009
  gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.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 && Hr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);