@spiffcommerce/core 33.12.0-beta.4826d4d8-6470-544a-acf3-c570a8f15440 → 33.12.0-beta.e536eb62-177c-5e58-a918-ea45497d2498

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
@@ -7359,6 +7359,7 @@ class Vo {
7359
7359
  return new H(
7360
7360
  {
7361
7361
  stepRegion: d,
7362
+ stepRegionIndex: c.regionIndex,
7362
7363
  stepName: i,
7363
7364
  id: c.id,
7364
7365
  src: s,
@@ -7524,7 +7525,7 @@ class Ne {
7524
7525
  );
7525
7526
  o && (o.command && i.getCommandDispatcher()(o.command), o.followup && await o.followup());
7526
7527
  }
7527
- getCreateElementCommand(t, e, a, i) {
7528
+ getCreateElementCommand(t, e, a, i, r) {
7528
7529
  return new H(
7529
7530
  {
7530
7531
  id: t,
@@ -7536,18 +7537,19 @@ class Ne {
7536
7537
  layer: e.layer,
7537
7538
  layerIndex: e.layerIndex,
7538
7539
  rotation: e.rotation,
7539
- scaleX: e.width / i.frameData.width,
7540
- scaleY: e.height / i.frameData.height,
7541
- path: i.frameData.path,
7542
- dataWidth: i.frameData.width,
7543
- dataHeight: i.frameData.height,
7540
+ scaleX: e.width / r.frameData.width,
7541
+ scaleY: e.height / r.frameData.height,
7542
+ path: r.frameData.path,
7543
+ dataWidth: r.frameData.width,
7544
+ dataHeight: r.frameData.height,
7544
7545
  stepRegion: e,
7545
- stepName: i.stepName,
7546
- disablePlaceholder: i.disablePlaceholder,
7547
- pattern: i.pattern,
7546
+ stepRegionIndex: a,
7547
+ stepName: r.stepName,
7548
+ disablePlaceholder: r.disablePlaceholder,
7549
+ pattern: r.pattern,
7548
7550
  immutable: e.immutable
7549
7551
  },
7550
- a
7552
+ i
7551
7553
  );
7552
7554
  }
7553
7555
  async loadPatternFromString(t, e, a = !0, i = void 0, r) {
@@ -7674,7 +7676,7 @@ class Ne {
7674
7676
  if (!E)
7675
7677
  throw new K(h);
7676
7678
  return {
7677
- command: this.getCreateElementCommand(D, h, E, {
7679
+ command: this.getCreateElementCommand(D, h, g, E, {
7678
7680
  frameData: m,
7679
7681
  pattern: b,
7680
7682
  disablePlaceholder: t.data.disablePlaceholder,
@@ -11413,7 +11415,7 @@ const al = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
11413
11415
  }
11414
11416
  serialize() {
11415
11417
  const t = this.getCommandContext().getState();
11416
- if (!t)
11418
+ if (console.log({ fullState: t }), !t)
11417
11419
  throw new R("Attempted to serialize state before it was initialized.");
11418
11420
  const e = It(t.transaction), a = this.dehydrateState(e);
11419
11421
  return JSON.stringify(a);
@@ -16213,7 +16215,7 @@ class $d {
16213
16215
  } catch (a) {
16214
16216
  throw console.error(a), new mt("Critical - Unable to synchronize workflow state with server.");
16215
16217
  }
16216
- }, this.options = t, this.options.applicationKey && rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.12.0-beta.22b3f894-b8b2-544e-9e3a-fbfc0a46726b"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16218
+ }, this.options = t, this.options.applicationKey && rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.12.0-beta.4826d4d8-6470-544a-acf3-c570a8f15440"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16217
16219
  }
16218
16220
  configure(t) {
16219
16221
  ft.setHubUrl(t.hubUrl), ft.setServerUrl(t.serverUrl), ft.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 && sr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && zt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);