@spiffcommerce/core 34.0.3-beta.6d7fde93-0fc9-5d74-8047-8b63fdf949f3 → 34.1.0-beta.3fb0da60-1da5-5e84-b959-ca75a31ba2e9

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
@@ -4186,6 +4186,7 @@ const Y = new Or(), Un = C`
4186
4186
  externalCartProductId
4187
4187
  externalCartProductVariantId
4188
4188
  id
4189
+ bundleIndex
4189
4190
  completed
4190
4191
  lastSyncedAt
4191
4192
  priceModifierTotal
@@ -12504,7 +12505,7 @@ const pl = async (n, t) => {
12504
12505
  const s = Object.entries(localStorage).find(([c, d]) => c.startsWith("CognitoIdentityServiceProvider") && c.endsWith("idToken"))?.[0] || "", l = localStorage.getItem(s);
12505
12506
  l && !Te(l) && (e.Authorization = `Bearer ${l}`);
12506
12507
  }
12507
- return (await t.getIntegration()).partner.beta && (e["X-Spiff-Beta"] = "true"), console.log(e), (await y.getShadowGraphqlClient().mutate({
12508
+ return (await t.getIntegration()).partner.beta && (e["X-Spiff-Beta"] = "true"), (await y.getShadowGraphqlClient().mutate({
12508
12509
  mutation: ml,
12509
12510
  errorPolicy: "all",
12510
12511
  fetchPolicy: "no-cache",
@@ -13083,6 +13084,9 @@ class bl {
13083
13084
  getBundle() {
13084
13085
  return this.bundle;
13085
13086
  }
13087
+ getBundleIndex() {
13088
+ return this.transaction.bundleIndex;
13089
+ }
13086
13090
  setBundle(t) {
13087
13091
  this.bundle = t;
13088
13092
  }
@@ -15278,7 +15282,11 @@ class dn {
15278
15282
  this.workflowExperiences[t] = this.workflowExperiences[e], this.workflowExperiences[e] = a, await this.updateTransactionOrder();
15279
15283
  }
15280
15284
  getWorkflowExperiences() {
15281
- return [...this.workflowExperiences];
15285
+ const t = [...this.workflowExperiences], e = (a, i) => {
15286
+ const r = a.getBundleIndex(), o = i.getBundleIndex();
15287
+ return r === void 0 || o === void 0 ? 0 : r > o ? -1 : 1;
15288
+ };
15289
+ return t.sort(e), t;
15282
15290
  }
15283
15291
  async sortWorkflowExperiences(t) {
15284
15292
  this.workflowExperiences = this.workflowExperiences.sort(t), await this.updateTransactionOrder();
@@ -16158,7 +16166,7 @@ class Od {
16158
16166
  } catch (a) {
16159
16167
  throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
16160
16168
  }
16161
- }, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.0.3-beta.3987fca8-b016-56d4-a950-f6baef18904a"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16169
+ }, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.1.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16162
16170
  }
16163
16171
  configure(t) {
16164
16172
  pt.setHubUrl(t.hubUrl), pt.setServerUrl(t.serverUrl), pt.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 && rr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);