@spiffcommerce/core 26.8.0 → 26.9.0

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
@@ -10785,9 +10785,9 @@ const Tn = class ta {
10785
10785
  * This includes camera & model animations. If the preview is unavailable
10786
10786
  * this function will do nothing.
10787
10787
  */
10788
- executeAnimations() {
10789
- const t = this.manager.getPreviewService(), e = this.manager.getModelContainer(), a = this.step.data.modelAnimation, n = this.step.data.lookAtAnimation;
10790
- t ? n && t.executeCameraAnimation(n) : console.warn("No preview service available, cannot execute camera animations."), e ? a && e.executeAnimation(a) : console.warn("No model container available, cannot execute model animations.");
10788
+ executeAnimations(t) {
10789
+ const e = this.manager.getPreviewService(), a = this.manager.getModelContainer(), n = this.step.data.modelAnimation, i = this.step.data.lookAtAnimation;
10790
+ e ? i && e.executeCameraAnimation(i) : console.warn("No preview service available, cannot execute camera animations."), a ? n && a.executeAnimation(n, t) : console.warn("No model container available, cannot execute model animations.");
10791
10791
  }
10792
10792
  };
10793
10793
  Tn.updateState = /* @__PURE__ */ new Map();
@@ -14739,7 +14739,7 @@ const Ua = S`
14739
14739
  delete s.data.__typename, (o = s.option) != null && o.id && ((l = s.option.defaultVariant) != null && l.asset && U.cacheAsset(s.option.defaultVariant.asset), s.option.colorProfile && U.cacheAsset(s.option.colorProfile), (c = s.option.variants) == null || c.forEach((d) => {
14740
14740
  d.asset && U.cacheAsset(d.asset), d.thumbnail && U.cacheAsset(d.thumbnail), d.material && U.cacheMaterial(d.material);
14741
14741
  }), Wt.set({ id: s.option.id }, Promise.resolve(s.option)));
14742
- }), i.finalizeStepConfig || (i.finalizeStepConfig = {}), i.finalizeStepConfig.termsMarkdown = i.partner.termsMarkdown;
14742
+ }), i.finalizeStepConfig || (i.finalizeStepConfig = {}), i.finalizeStepConfig.termsMarkdown = i.partner.termsMarkdown || i.finalizeStepConfig.termsMarkdown;
14743
14743
  }), a;
14744
14744
  }, jo = async (r, t) => {
14745
14745
  const a = (await t).find((n) => n.id === r);
@@ -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.8.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.0"), 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();