@spiffcommerce/core 34.4.1-beta.ba0b3078-f186-5da9-9ea7-a1c70c98b862 → 34.4.1-beta.c626c011-1b3b-595f-9e38-1d62fdf92d5d

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
@@ -6990,7 +6990,7 @@ class ta extends O {
6990
6990
  super(), this.id = t, this.strokeColor = e, this.strokeThickness = a;
6991
6991
  }
6992
6992
  apply(t) {
6993
- console.log("log: apply textStrokeCommand"), this.oldState = t;
6993
+ this.oldState = t;
6994
6994
  const e = z(this.id, Object.values(t.layouts));
6995
6995
  if (!e.id)
6996
6996
  throw new W();
@@ -8750,7 +8750,7 @@ class Xo {
8750
8750
  height: s.height,
8751
8751
  width: s.width,
8752
8752
  scale: t.data.imageFillScale || 1
8753
- } : void 0, c = this.getDefaultStrokeColorVariant(t.data), d = c?.color ? {
8753
+ } : void 0, c = this.getDefaultStrokeColorVariant(t.data), d = t.data.strokeEnabled && c?.color ? {
8754
8754
  browserValue: c.color,
8755
8755
  pmsValue: c.name
8756
8756
  } : void 0;
@@ -9007,7 +9007,10 @@ class Xo {
9007
9007
  e.getCommandDispatcher()(f);
9008
9008
  }
9009
9009
  ), s.length === 0 && l) {
9010
- const p = V.getDefaultVariant(l, t.overrideDefaultVariantId);
9010
+ const p = V.getDefaultVariant(
9011
+ l,
9012
+ t.overrideDefaultVariantId
9013
+ );
9011
9014
  if (p) {
9012
9015
  const f = await this.selectVariantCommand(
9013
9016
  t,
@@ -9043,7 +9046,10 @@ class Xo {
9043
9046
  const h = c.getGlobalPropertyStateManager().getAspect(A.name);
9044
9047
  if (h)
9045
9048
  if (s.length === 0 && l) {
9046
- const g = V.getDefaultVariant(l, t.overrideDefaultVariantId);
9049
+ const g = V.getDefaultVariant(
9050
+ l,
9051
+ t.overrideDefaultVariantId
9052
+ );
9047
9053
  if (g) {
9048
9054
  const m = await this.selectVariantCommand(
9049
9055
  t,
@@ -9087,7 +9093,7 @@ class Xo {
9087
9093
  }
9088
9094
  getDefaultStrokeColorVariant(t) {
9089
9095
  const e = t.strokeOption;
9090
- if (console.log(`log: stroke option for step is ${JSON.stringify(e, null, 2)}`), !!e)
9096
+ if (e)
9091
9097
  return V.getDefaultVariant(e);
9092
9098
  }
9093
9099
  async fontDataFromVariant(t) {
@@ -9112,9 +9118,7 @@ class Xo {
9112
9118
  u.push(...m);
9113
9119
  }
9114
9120
  if (c) {
9115
- const m = i.map(
9116
- (p) => new ta(p.id, c, t.data.strokeThickness)
9117
- );
9121
+ const m = i.map((p) => new ta(p.id, c, t.data.strokeThickness));
9118
9122
  u.push(...m);
9119
9123
  }
9120
9124
  const h = await this.changeInputTextWithRegion(
@@ -9160,8 +9164,8 @@ class Xo {
9160
9164
  g.push(...p);
9161
9165
  }
9162
9166
  if (c) {
9163
- const p = i.map(
9164
- (f) => new ta(f.id, c, t.data.strokeThickness)
9167
+ const p = u.map(
9168
+ (f) => new ta(f.newElement.id, c, t.data.strokeThickness)
9165
9169
  );
9166
9170
  g.push(...p);
9167
9171
  }
@@ -10984,7 +10988,7 @@ const nl = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
10984
10988
  throw console.error(g), this.initialized = !1, new Error("Workflow initialization failed due to an error. See console.");
10985
10989
  }), this.initializationPromise.finally(
10986
10990
  () => this.commandContext.registerStateCallback(() => {
10987
- console.log("log: state callback"), this.updateStateWithServer(), this.renderLayouts();
10991
+ this.updateStateWithServer(), this.renderLayouts();
10988
10992
  })
10989
10993
  ), h && await this.injectIntoPreviewService(h, !0);
10990
10994
  }, this.renderLayouts = () => {
@@ -11693,7 +11697,7 @@ const nl = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
11693
11697
  this.editedCallbacks.forEach((t) => t(this.editedSteps));
11694
11698
  }
11695
11699
  onElementsChange() {
11696
- console.log("log: onElementsChange"), this.elementsCallbacks.forEach((t) => t(this.stepElements));
11700
+ this.elementsCallbacks.forEach((t) => t(this.stepElements));
11697
11701
  }
11698
11702
  onInformationResultChange() {
11699
11703
  this.informationResultCallbacks.forEach((t) => t(this.informationResults));
@@ -11715,7 +11719,6 @@ const nl = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
11715
11719
  });
11716
11720
  }
11717
11721
  async onSelectionChange() {
11718
- console.log("log: onSelectionChange");
11719
11722
  const t = await this.traversableScenes();
11720
11723
  for (const e of this.selectionCallbacks)
11721
11724
  e({
@@ -16167,7 +16170,7 @@ class Ud {
16167
16170
  } catch (a) {
16168
16171
  throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
16169
16172
  }
16170
- }, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.4.1-beta.827901f8-3412-509a-84d5-bf0bf6d771b0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16173
+ }, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.4.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16171
16174
  }
16172
16175
  configure(t) {
16173
16176
  pt.setHubUrl(t.hubUrl), pt.setServerUrl(t.serverUrl), pt.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 && rr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);