@spiffcommerce/core 27.2.0-beta.2a17a167-4433-5a09-95c8-ee4c8186de81 → 27.2.0-beta.f4d0b75a-c5ee-5aa0-b0f7-2903595ecb5d

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
@@ -8866,14 +8866,12 @@ class Bs {
8866
8866
  }
8867
8867
  async init(t, e, a) {
8868
8868
  var i, s, o, l, c;
8869
- console.log("OPT LOG: text init");
8870
8869
  const n = t.option;
8871
8870
  if (!n)
8872
- return console.log("OPT LOG: text no option"), null;
8871
+ return null;
8873
8872
  if (a)
8874
- console.log("OPT LOG: text reload"), await this.reload(t, e, a);
8873
+ await this.reload(t, e, a);
8875
8874
  else {
8876
- console.log("OPT LOG: text not reload");
8877
8875
  const d = this.getDefaultImageFillVariant(t.data), A = (i = d == null ? void 0 : d.asset) == null ? void 0 : i.fileLink, u = A ? await sa(A) : void 0, h = u ? {
8878
8876
  src: u.src,
8879
8877
  height: u.height,
@@ -8900,11 +8898,9 @@ class Bs {
8900
8898
  });
8901
8899
  if (y) {
8902
8900
  const S = C.getGlobalPropertyStateManager().getAspect(y.name);
8903
- console.log(`OPT LOG: text not reload option aspect, variant id ${S}`), S && (f = (o = n.variants) == null ? void 0 : o.find((I) => I.id === S));
8904
- } else
8905
- console.log("OPT LOG: text not reload no option aspect");
8906
- } else
8907
- console.log("OPT LOG: text not reload no bundle stuff");
8901
+ S && (f = (o = n.variants) == null ? void 0 : o.find((I) => I.id === S));
8902
+ }
8903
+ }
8908
8904
  if (e.updateStorage(t.stepName, {
8909
8905
  text: p,
8910
8906
  inputText: t.data.defaultText || "",
@@ -8917,7 +8913,7 @@ class Bs {
8917
8913
  fillImage: d == null ? void 0 : d.name,
8918
8914
  strokeColor: t.data.strokeEnabled ? g == null ? void 0 : g.color : void 0
8919
8915
  }), f || (f = H.getDefaultVariant(n)), f)
8920
- return console.log("OPT LOG: text not reload variant"), this.selectVariantCommand(
8916
+ return this.selectVariantCommand(
8921
8917
  t,
8922
8918
  f,
8923
8919
  { text: p },
@@ -8930,9 +8926,8 @@ class Bs {
8930
8926
  h,
8931
8927
  m
8932
8928
  );
8933
- console.log("OPT LOG: text not reload no variant");
8934
8929
  }
8935
- return console.log("OPT LOG: text not reload end"), null;
8930
+ return null;
8936
8931
  }
8937
8932
  findLayoutElements(t, e) {
8938
8933
  return t.getRegionElements(e.stepName).map((i) => V(i.id, t.getAllLayoutData()));
@@ -15994,7 +15989,7 @@ class rd {
15994
15989
  } catch (a) {
15995
15990
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15996
15991
  }
15997
- }, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.2.0-beta.f4d0b75a-c5ee-5aa0-b0f7-2903595ecb5d"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15992
+ }, this.options = t, this.options.applicationKey && Rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.2.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15998
15993
  }
15999
15994
  configure(t) {
16000
15995
  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 && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);