@spiffcommerce/core 27.2.1-beta.79d76762-97a7-51e6-8168-080be1e15965 → 27.2.1-beta.a8b1f8cd-0b04-53b5-a366-47541710f2da

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
@@ -10867,13 +10867,13 @@ class go {
10867
10867
  ...this.stepSelections,
10868
10868
  [t]: { selectedVariants: e }
10869
10869
  }, this.selectionCost = Object.values(this.stepSelections).reduce((E, B) => E + B.selectedVariants.map((I) => I.priceModifier || 0).reduce((I, D) => I + D, 0), 0), this.workflow.steps.forEach((E) => {
10870
- yt(E, this.stepSelections) || (this.stepInitialised[E.stepName] = !1, delete this.stepMetadata[E.stepName], delete this.stepSelections[E.stepName], delete this.storage[E.stepName]);
10870
+ yt(E, this.stepSelections) || (console.log(`LOG: unsetting step ${E.stepTitle} (${E.stepName})`), this.stepInitialised[E.stepName] = !1, delete this.stepMetadata[E.stepName], delete this.stepSelections[E.stepName], delete this.storage[E.stepName]);
10871
10871
  });
10872
10872
  const s = this.allScenes, o = Dt(s, i), l = Dt(s, this.stepSelections), c = o.map((E) => E.silentSteps).flat(), A = l.map((E) => E.silentSteps).flat().filter(
10873
10873
  (E) => !c.some((B) => B.stepName === E.stepName)
10874
10874
  );
10875
10875
  c.forEach((E) => {
10876
- yt(E, this.stepSelections) || (this.stepInitialised[E.stepName] = !1);
10876
+ yt(E, this.stepSelections) || (console.log(`LOG: unsetting step ${E.stepTitle} (${E.stepName})`), this.stepInitialised[E.stepName] = !1);
10877
10877
  });
10878
10878
  const u = this.getInvalidCanvasRegions(), { stepElements: h, commands: g } = await this.stepElementsForIntroducedSilentSteps(A, !1);
10879
10879
  this.stepElements = {
@@ -10907,7 +10907,7 @@ class go {
10907
10907
  const e = Dt(this.allScenes, this.stepSelections).map((l) => l.renderableSteps), a = [], n = e.flat();
10908
10908
  console.log(`LOG: ensure ${n.length} steps loaded`);
10909
10909
  for (const l of n)
10910
- if (console.log(`LOG: is ${l.stepTitle} (${l.stepName}) inited? ${this.stepInitialised[l.stepName]}`), !this.stepInitialised[l.stepName])
10910
+ if (l.type === P.Text && console.log(`LOG: is ${l.stepTitle} (${l.stepName}) inited? ${this.stepInitialised[l.stepName]}`), !this.stepInitialised[l.stepName])
10911
10911
  switch (this.stepInitialised[l.stepName] = !0, l.type) {
10912
10912
  case P.DigitalContent:
10913
10913
  a.push(
@@ -14872,10 +14872,9 @@ class Je {
14872
14872
  async applyGlobalPropertyState(t) {
14873
14873
  var a;
14874
14874
  const e = await this.globalPropertyHandleService.getHandles();
14875
- console.log(`LOG: ${e.length} handles`);
14876
14875
  for (const n of t.aspects) {
14877
14876
  const i = n == null ? void 0 : n.name, s = e.find((o) => o.getName() === i);
14878
- if (console.log(`LOG: handle for ${i}? ${s}`), s)
14877
+ if (s)
14879
14878
  switch (n.type) {
14880
14879
  case G.FileUpload: {
14881
14880
  const o = s, l = await ve([n.value]);
@@ -15922,7 +15921,7 @@ class rd {
15922
15921
  } catch (a) {
15923
15922
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15924
15923
  }
15925
- }, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.2.1-beta.ba9aed1e-3075-5c0b-8797-fad18911dd7e"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15924
+ }, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.2.1-beta.79d76762-97a7-51e6-8168-080be1e15965"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15926
15925
  }
15927
15926
  configure(t) {
15928
15927
  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 && $r(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Ut.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);