@spiffcommerce/core 27.3.0-beta.1585d9b8-15c4-5217-8f48-b75f0565fba9 → 27.3.0-beta.39cbc175-4d16-5eeb-9cf8-4e8442e4f73d

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
@@ -9111,17 +9111,20 @@ class xs {
9111
9111
  console.log("LOG: text reload b");
9112
9112
  const m = e.getWorkflowExperience().getBundle();
9113
9113
  if (m && t.globalPropertyAspectConfigurations) {
9114
+ console.log("LOG: text reload found bundle");
9114
9115
  const g = (h = m.getGlobalPropertyConfiguration()) == null ? void 0 : h.aspects, p = g == null ? void 0 : g.find((f) => {
9115
9116
  var C;
9116
9117
  return f.type === j.Text && ((C = t.globalPropertyAspectConfigurations) == null ? void 0 : C.map((w) => w.aspectName).includes(f.name));
9117
9118
  });
9118
9119
  if (p) {
9120
+ console.log("LOG: text reload found aspect");
9119
9121
  const C = m.getGlobalPropertyStateManager().getAspect(p.name);
9120
9122
  if (C)
9121
- if (o.length === 0 && l) {
9122
- console.log("LOG: text reload a variant no elements");
9123
+ if (console.log("LOG: text reload b found aspect text"), o.length === 0 && l) {
9124
+ console.log("LOG: text reload b variant no elements");
9123
9125
  const w = Y.getDefaultVariant(l);
9124
9126
  if (w) {
9127
+ console.log("LOG: text reload b variant default");
9125
9128
  const S = await this.selectVariantCommand(
9126
9129
  t,
9127
9130
  w,
@@ -9136,7 +9139,7 @@ class xs {
9136
9139
  e.getCommandDispatcher()(S.command);
9137
9140
  }
9138
9141
  } else {
9139
- console.log("LOG: text reload a variant yes elements");
9142
+ console.log("LOG: text reload b variant yes elements");
9140
9143
  const { command: w } = W.updateInputText(
9141
9144
  C,
9142
9145
  o,
@@ -9147,6 +9150,7 @@ class xs {
9147
9150
  }
9148
9151
  }
9149
9152
  }
9153
+ console.log("LOG: text reload b end");
9150
9154
  }
9151
9155
  }
9152
9156
  getDefaultColorVariant(t) {
@@ -13772,10 +13776,7 @@ class sl extends Ia {
13772
13776
  * Set the text.
13773
13777
  */
13774
13778
  async setText(t) {
13775
- console.log(`LOG: global setting text ${t}`), await Promise.all([
13776
- this.bundle.getGlobalPropertyStateManager().setAspect(this.property.name, t),
13777
- this.applyTextSelection(t)
13778
- ]);
13779
+ console.log(`LOG: global setting text ${t}`), await this.bundle.getGlobalPropertyStateManager().setAspect(this.property.name, t), await this.applyTextSelection(t);
13779
13780
  }
13780
13781
  async applyGlobalState(t) {
13781
13782
  const e = this.getStateValue();
@@ -15984,7 +15985,7 @@ class Ad {
15984
15985
  } catch (a) {
15985
15986
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15986
15987
  }
15987
- }, this.options = t, this.options.applicationKey && Lr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.3.0-beta.d19ddd38-fcd3-5036-a764-7674af30aff5"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15988
+ }, this.options = t, this.options.applicationKey && Lr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 27.3.0-beta.496e85e9-64e7-50d6-b532-939e82cd6b86"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15988
15989
  }
15989
15990
  configure(t) {
15990
15991
  mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.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 && Vr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Ut.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);