@spiffcommerce/core 29.0.3 → 29.0.4

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
@@ -14809,7 +14809,7 @@ const Sl = v`
14809
14809
  class Je {
14810
14810
  constructor(t, e, a, n, i, s) {
14811
14811
  var c, d, A;
14812
- this.workflowExperiences = [], this.eventEmitter = new yl(), this.client = t, this.id = e.id, this.name = e.name || "", this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(((c = e.metadata) == null ? void 0 : c.map((u) => [u.key, u.value])) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new ul(e.bundleStateData);
14812
+ this.workflowExperiences = [], this.eventEmitter = new yl(), this.client = t, this.id = e.id, this.name = e.name || "", this.dispatchDate = e.dispatchDate, this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(((c = e.metadata) == null ? void 0 : c.map((u) => [u.key, u.value])) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new ul(e.bundleStateData);
14813
14813
  const o = (d = this.productCollection) == null ? void 0 : d.globalPropertyConfiguration;
14814
14814
  this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new Al(
14815
14815
  this.id,
@@ -14970,7 +14970,10 @@ class Je {
14970
14970
  const c = (a = n.storage) == null ? void 0 : a.colors;
14971
14971
  if (c) {
14972
14972
  const d = Object.fromEntries(
14973
- c.map((A) => [A.key, { browserValue: A.browserValue, pmsValue: A.pmsValue }]) ?? []
14973
+ c.map((A) => [
14974
+ A.key,
14975
+ { browserValue: A.browserValue, pmsValue: A.pmsValue }
14976
+ ]) ?? []
14974
14977
  );
14975
14978
  await o.changeColors(d);
14976
14979
  }
@@ -16085,7 +16088,7 @@ class hd {
16085
16088
  } catch (a) {
16086
16089
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
16087
16090
  }
16088
- }, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 29.0.3"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16091
+ }, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 29.0.4"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16089
16092
  }
16090
16093
  configure(t) {
16091
16094
  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);