@spiffcommerce/core 26.9.0 → 26.9.2

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
@@ -8874,7 +8874,7 @@ class rs {
8874
8874
  }
8875
8875
  return !a.data.curved && e.length > 0 && !Array.from(d.values()).every((u) => u) ? (o.errorData || (o.errorData = {}), o.errorData.doesNotFit = !0, o) : (n.updateStorage(a.stepName, { text: t }), n.updateMetadata(a.stepName, {
8876
8876
  text: s
8877
- }), (i.defaultCleared || !a.data.deleteDefaultOnFocus) && n.setMandatoryFulfilled(a.stepName, !0), o.command = new O(l), o);
8877
+ }), (i.defaultCleared || !a.data.deleteDefaultOnFocus) && s.trim() !== "" && n.setMandatoryFulfilled(a.stepName, !0), o.command = new O(l), o);
8878
8878
  }
8879
8879
  async selectVariant(t, e, a, n, i) {
8880
8880
  const s = await this.selectVariantCommand(
@@ -9185,7 +9185,7 @@ class rs {
9185
9185
  return;
9186
9186
  s.updateStorage(t.stepName, { text: A }), s.updateMetadata(t.stepName, {
9187
9187
  text: this.injectReplaceableText(A, t.data)
9188
- }), (i.defaultCleared || !t.data.deleteDefaultOnFocus) && s.setMandatoryFulfilled(t.stepName, !0);
9188
+ }), (i.defaultCleared || !t.data.deleteDefaultOnFocus) && A.trim() !== "" && s.setMandatoryFulfilled(t.stepName, !0);
9189
9189
  const C = [];
9190
9190
  for (const y of h) {
9191
9191
  const v = t.data.curved ? u : (g.get(y.id) || []).join(`
@@ -14782,7 +14782,7 @@ class ic {
14782
14782
  } catch (a) {
14783
14783
  throw console.error(a), new lt("Critical - Unable to synchronize workflow state with server.");
14784
14784
  }
14785
- }, this.options = t, this.options.applicationKey && gr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.9.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
14785
+ }, this.options = t, this.options.applicationKey && gr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.9.2"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
14786
14786
  }
14787
14787
  configure(t) {
14788
14788
  pt.setHubUrl(t.hubUrl), pt.setServerUrl(t.serverUrl), pt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && pr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();