@spiffcommerce/core 34.1.0-beta.7a56a636-d7cf-54ee-8dfc-5407b655bd46 → 34.1.0-beta.ad8ae86e-9b1c-5fbd-bd4b-f385c5bfbb76

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,7 +4186,6 @@ const Y = new Or(), Un = C`
4186
4186
  externalCartProductId
4187
4187
  externalCartProductVariantId
4188
4188
  id
4189
- bundleIndex
4190
4189
  completed
4191
4190
  lastSyncedAt
4192
4191
  priceModifierTotal
@@ -13084,9 +13083,6 @@ class bl {
13084
13083
  getBundle() {
13085
13084
  return this.bundle;
13086
13085
  }
13087
- getBundleIndex() {
13088
- return this.transaction.bundleIndex;
13089
- }
13090
13086
  setBundle(t) {
13091
13087
  this.bundle = t;
13092
13088
  }
@@ -15114,13 +15110,14 @@ class dn {
15114
15110
  }
15115
15111
  }
15116
15112
  async addWorkflowExperience(t) {
15117
- await this.initializeAdditionalRequiredColorChannels(t), t.setBundle(this), await this.appendWorkflowExperience(t), await this.injectExperienceIntoPreviewService(t), await t.getWorkflowManager().getInitializationPromise();
15113
+ console.log(`log: awe 1 ${Date.now()}`), await this.initializeAdditionalRequiredColorChannels(t), console.log(`log: awe 2 ${Date.now()}`), t.setBundle(this), console.log(`log: awe 3 ${Date.now()}`), await this.appendWorkflowExperience(t), console.log(`log: awe 4 ${Date.now()}`), await this.injectExperienceIntoPreviewService(t), console.log(`log: awe 5 ${Date.now()}`), await t.getWorkflowManager().getInitializationPromise(), console.log(`log: awe 6 ${Date.now()}`);
15118
15114
  const e = await this.getGlobalProperties();
15115
+ console.log(`log: awe 7 ${Date.now()}`);
15119
15116
  for (const a of e)
15120
- await a.applyGlobalState([t]);
15117
+ await a.applyGlobalState([t]), console.log(`log: awe global ${Date.now()}`);
15121
15118
  this.fireEvent("workflow-experience-added", {
15122
15119
  workflowExperiences: [t]
15123
- });
15120
+ }), console.log(`log: awe 8 ${Date.now()}`);
15124
15121
  }
15125
15122
  async addWorkflowExperiences(t) {
15126
15123
  for (const s of t)
@@ -15282,11 +15279,7 @@ class dn {
15282
15279
  this.workflowExperiences[t] = this.workflowExperiences[e], this.workflowExperiences[e] = a, await this.updateTransactionOrder();
15283
15280
  }
15284
15281
  getWorkflowExperiences() {
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
+ return [...this.workflowExperiences];
15290
15283
  }
15291
15284
  async sortWorkflowExperiences(t) {
15292
15285
  this.workflowExperiences = this.workflowExperiences.sort(t), await this.updateTransactionOrder();
@@ -16166,7 +16159,7 @@ class Od {
16166
16159
  } catch (a) {
16167
16160
  throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
16168
16161
  }
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-beta.3fb0da60-1da5-5e84-b959-ca75a31ba2e9"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16162
+ }, 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("------------------------");
16170
16163
  }
16171
16164
  configure(t) {
16172
16165
  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);