@spiffcommerce/core 21.11.0 → 21.11.2-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.js CHANGED
@@ -1909,7 +1909,7 @@ class Ra {
1909
1909
  async init(e, t, A) {
1910
1910
  if (A)
1911
1911
  return await this.reload(e, t, A), null;
1912
- if (t.setMandatoryFulfilled(e.stepName, !1), t.markStepsAsInitialised([e.stepName]), e.option && e.option.variants && e.option.variants.length > 0) {
1912
+ if (e.mandatory && t.setMandatoryFulfilled(e.stepName, !1), t.markStepsAsInitialised([e.stepName]), e.option && e.option.variants && e.option.variants.length > 0) {
1913
1913
  const a = e.option, n = V.getDefaultVariant(a);
1914
1914
  return n ? this.selectVariantCommand(
1915
1915
  e,
@@ -2308,7 +2308,7 @@ class Ha {
2308
2308
  throw new He(e, "Missing regions.");
2309
2309
  a(!0);
2310
2310
  const s = A.map((I) => new ee(I.id));
2311
- n.setMandatoryFulfilled(e.stepName, !1);
2311
+ e.mandatory && n.setMandatoryFulfilled(e.stepName, !1);
2312
2312
  const o = t.asset;
2313
2313
  if (!o)
2314
2314
  throw new te(t);
@@ -2684,7 +2684,7 @@ class ba {
2684
2684
  const s = i == null ? void 0 : i.fileLink;
2685
2685
  if (!s)
2686
2686
  return console.error("No URL for picture!"), null;
2687
- a(!0), A.setMandatoryFulfilled(e.stepName, !1);
2687
+ a(!0), e.mandatory && A.setMandatoryFulfilled(e.stepName, !1);
2688
2688
  const r = A.getRegionElements(e.stepName).map((l) => new ee(l.id)), g = (l) => {
2689
2689
  const w = A.getLayouts().find((h) => h.panelId === l.panelId);
2690
2690
  if (!w)
@@ -7736,6 +7736,7 @@ class kn extends tA {
7736
7736
  * a loose target but should be kept in mind when making changes.
7737
7737
  */
7738
7738
  async execute() {
7739
+ performance.mark("spiff-core-rqp-execute-start");
7739
7740
  const e = this.layouts.find((l) => l.layoutState.layout.id === this.layoutId);
7740
7741
  if (!e)
7741
7742
  return;
@@ -7762,7 +7763,7 @@ class kn extends tA {
7762
7763
  DOMParser: Jt(),
7763
7764
  fetch: et
7764
7765
  });
7765
- B.resize(s, o), await B.render(), this.onRender();
7766
+ B.resize(s, o), await B.render(), this.onRender(), performance.mark("spiff-core-rqp-execute-end"), performance.measure("spiff-core-rqp-execute", "spiff-core-rqp-execute-start", "spiff-core-rqp-execute-end");
7766
7767
  }
7767
7768
  }
7768
7769
  const Vi = (c, e) => {