@spiffcommerce/core 44.5.6-alpha.5 → 44.5.6-alpha.6

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.
@@ -64868,12 +64868,7 @@ const cU = (r) => r.sort((e, t) => e.index - t.index).map((e) => ({
64868
64868
  f && this.setWorkflow(f);
64869
64869
  }
64870
64870
  async updateWorkflowConfiguration(e) {
64871
- e.panels && await this.updatePanels(e.panels), e.steps && await this.updateSteps(e.steps);
64872
- let t = this.getWorkflowExperience().getWorkflow().stepGroups || [];
64873
- e.stepGroups && (t = await this.updateScenes(e.stepGroups)), this.allScenes = h0({
64874
- ...this.getWorkflowExperience().getWorkflow(),
64875
- stepGroups: t
64876
- }), await this.ensureStepsAreLoaded(), this.renderLayouts(), await this.onSelectionChange();
64871
+ e.panels && await this.updatePanels(e.panels), e.steps && await this.updateSteps(e.steps), this.allScenes = h0(this.getWorkflowExperience().getWorkflow()), await this.ensureStepsAreLoaded(), this.renderLayouts(), await this.onSelectionChange();
64877
64872
  }
64878
64873
  async updatePanels(e) {
64879
64874
  const t = this.experience.getWorkflow();
@@ -64916,20 +64911,6 @@ const cU = (r) => r.sort((e, t) => e.index - t.index).map((e) => ({
64916
64911
  }
64917
64912
  delete this.stepSelections[e], delete this.stepMetadata[e], delete this.storage[e], delete this.stepElements[e], delete this.stepInitialised[e], delete this.stepSpecificServices[e], delete this.mandatorySteps[e], this.validationErrors.steps.delete(e);
64918
64913
  }
64919
- async updateScenes(e) {
64920
- const t = this.experience.getWorkflow();
64921
- if (!t) return [];
64922
- let n = [...t.stepGroups];
64923
- if (e.removed && (n = n.filter((i) => i.id && !e.removed.includes(i.id))), e.changed)
64924
- for (const i of e.changed) {
64925
- const a = i.id || i.name, s = n.findIndex((o) => o.id === a);
64926
- s >= 0 && (n[s] = i);
64927
- }
64928
- if (e.added)
64929
- for (const { item: i, index: a } of e.added)
64930
- n.splice(a, 0, i);
64931
- return n;
64932
- }
64933
64914
  getTemplatingContext() {
64934
64915
  const e = this.experience.getTransaction().recipient, t = { recipient: e };
64935
64916
  return this.recipientConversionConfiguration?.requestedDataItems?.forEach((n) => {
@@ -67539,7 +67520,7 @@ class QT {
67539
67520
  throw new Error("No workflow set");
67540
67521
  e.steps && this.cachedStepHandles.clear();
67541
67522
  const t = this.applyWorkflowChanges(this.workflow, e);
67542
- await this.workflowManager.updateWorkflowConfiguration(e), this.workflow = t, this.callEvent(
67523
+ this.workflow = t, await this.workflowManager.updateWorkflowConfiguration(e), this.callEvent(
67543
67524
  "WorkflowConfigurationChanged"
67544
67525
  /* WorkflowConfigurationChanged */
67545
67526
  );
@@ -72951,7 +72932,7 @@ class rz extends tz {
72951
72932
  });
72952
72933
  }
72953
72934
  async loadEventStreamCapability() {
72954
- const { EventStreamSerde: e, eventStreamSerdeProvider: t } = await import("./index.browser-oJDA3nBL.js"), n = this.resolveEventStreamMarshaller(t);
72935
+ const { EventStreamSerde: e, eventStreamSerdeProvider: t } = await import("./index.browser-CgwcA0Sd.js"), n = this.resolveEventStreamMarshaller(t);
72955
72936
  return new e({
72956
72937
  marshaller: n,
72957
72938
  serializer: this.serializer,
@@ -80389,7 +80370,7 @@ class rY {
80389
80370
  } catch (n) {
80390
80371
  throw console.error(n), new so("Critical - Unable to synchronize workflow state with server.");
80391
80372
  }
80392
- }, this.options = e, this.options.applicationKey && X4(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 44.5.6-alpha.4"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
80373
+ }, this.options = e, this.options.applicationKey && X4(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 44.5.6-alpha.5"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
80393
80374
  }
80394
80375
  configure(e) {
80395
80376
  Ps.setHubUrl(e.hubUrl), Ps.setServerUrl(e.serverUrl), Ps.setServicesApiUrl(e.servicesApiUrl), this.marketplaceThemeInstallId = e.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = e.marketplaceThemeInstallConfigurationId, this.userPoolClientId = e.userPoolClientId, this.userPoolRegion = e.userPoolRegion, this.spiffRegion = e.spiffRegion, e.bearerAuthenticationToken && K4(e.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Ed.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
@@ -80398,7 +80379,7 @@ class rY {
80398
80379
  * @returns The version of the @spiffcommerce/core package that this client is running.
80399
80380
  */
80400
80381
  getVersion() {
80401
- return "44.5.6-alpha.4";
80382
+ return "44.5.6-alpha.5";
80402
80383
  }
80403
80384
  /**
80404
80385
  * @returns The asset manager allows for common operations related to assets
@@ -82544,4 +82525,4 @@ export {
82544
82525
  d9 as y,
82545
82526
  c9 as z
82546
82527
  };
82547
- //# sourceMappingURL=index-BFeXhRxg.js.map
82528
+ //# sourceMappingURL=index-C-J-MnS9.js.map