@spiffcommerce/core 32.3.1-beta.0913bb04-4304-5dae-95b3-20ea61cba9ab → 32.3.1-beta.535b64df-4d00-52c9-95fe-209938040cab

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
@@ -14233,7 +14233,7 @@ class vl {
14233
14233
  if (!this.state || !t?.getWorkflowManager()?.getModelContainer())
14234
14234
  return;
14235
14235
  const e = this.state.transactions.find(
14236
- (s) => s.transactionId === t.getWorkflowManager().getTransaction().id
14236
+ (s) => s.transactionId === t.getTransaction().id
14237
14237
  );
14238
14238
  if (!e)
14239
14239
  return;
@@ -14250,7 +14250,7 @@ class vl {
14250
14250
  return t.activeTransform && t.transforms ? t.transforms[t.activeTransform] : t.transform;
14251
14251
  }
14252
14252
  updateWorkflowExperienceTransform(t, e, a) {
14253
- const r = t.getWorkflowManager().getTransaction().id;
14253
+ const r = t.getTransaction().id;
14254
14254
  this.state ? this.state.transactions || (this.state.transactions = []) : this.state = {
14255
14255
  transactions: []
14256
14256
  };
@@ -14264,7 +14264,7 @@ class vl {
14264
14264
  activateWorkflowExperienceTransform(t, e) {
14265
14265
  if (!t?.getWorkflowManager()?.getModelContainer() || !this.state)
14266
14266
  return;
14267
- const a = t.getWorkflowManager().getTransaction().id, r = this.state.transactions.find((l) => l.transactionId === a), i = r?.transforms?.[e];
14267
+ const a = t.getTransaction().id, r = this.state.transactions.find((l) => l.transactionId === a), i = r?.transforms?.[e];
14268
14268
  if (!i)
14269
14269
  return;
14270
14270
  const s = this.flipTransform(
@@ -14886,7 +14886,9 @@ class Ze {
14886
14886
  if (e) {
14887
14887
  e.integrationProductIds || (e.integrationProductIds = []), e.integrationProductIds = [...e.integrationProductIds, t];
14888
14888
  const a = JSON.stringify(e);
14889
- this.bundleStateManager.setState(a);
14889
+ this.bundleStateManager.setState(a), this.fireEvent("bundle-integration-products-added", {
14890
+ integrationProductIds: e.integrationProductIds
14891
+ });
14890
14892
  }
14891
14893
  }
14892
14894
  getTemplate() {
@@ -16123,7 +16125,7 @@ class bd {
16123
16125
  } catch (a) {
16124
16126
  throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
16125
16127
  }
16126
- }, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.3.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16128
+ }, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.3.1-beta.f47441d7-c6fd-544a-8448-b3ed6932599d"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16127
16129
  }
16128
16130
  configure(t) {
16129
16131
  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);