@spiffcommerce/core 33.12.0-beta.22b3f894-b8b2-544e-9e3a-fbfc0a46726b → 33.12.0-beta.4826d4d8-6470-544a-acf3-c570a8f15440

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
@@ -7293,8 +7293,7 @@ class Vo {
7293
7293
  ), l = Object.values(a.layouts).map((c) => c.elements).flat().filter((c) => c.stepName === t.stepName).map((c) => ({
7294
7294
  id: c.id,
7295
7295
  region: c.stepRegion,
7296
- regionIndex: c.stepRegionIndex ?? 0
7297
- // TODO: remove or
7296
+ regionIndex: c.stepRegionIndex
7298
7297
  }));
7299
7298
  await e.setSelectionsAndElements(t.stepName, [], l, async () => {
7300
7299
  const c = i?.storage?.videoShortUrl, d = i?.storage?.videoUrl;
@@ -7432,8 +7431,7 @@ class Ne {
7432
7431
  ), l = Object.values(a.layouts).map((c) => c.elements).flat().filter((c) => c.stepName === t.stepName).map((c) => ({
7433
7432
  id: c.id,
7434
7433
  region: c.stepRegion,
7435
- regionIndex: c.stepRegionIndex ?? 0
7436
- // TODO: remove or
7434
+ regionIndex: c.stepRegionIndex
7437
7435
  }));
7438
7436
  if (!t.option || (t.option.variants || []).length === 0) {
7439
7437
  const c = t.data.regions.map((d) => pa(d));
@@ -7821,8 +7819,7 @@ class zo {
7821
7819
  const A = s.map((u) => ({
7822
7820
  id: u.id,
7823
7821
  region: u.stepRegion,
7824
- regionIndex: u.stepRegionIndex ?? 0
7825
- // TODO: remove or
7822
+ regionIndex: u.stepRegionIndex
7826
7823
  }));
7827
7824
  await e.setSelectionsAndElements(
7828
7825
  t.stepName,
@@ -8018,8 +8015,7 @@ class Go {
8018
8015
  const A = d.material, u = s.map((h) => ({
8019
8016
  id: h.id,
8020
8017
  region: h.stepRegion,
8021
- regionIndex: h.stepRegionIndex ?? 0
8022
- // TODO: remove or
8018
+ regionIndex: h.stepRegionIndex
8023
8019
  }));
8024
8020
  await e.setSelectionsAndElements(
8025
8021
  t.stepName,
@@ -8097,8 +8093,7 @@ class Wo {
8097
8093
  const A = s.map((u) => ({
8098
8094
  id: u.id,
8099
8095
  region: u.stepRegion,
8100
- regionIndex: u.stepRegionIndex ?? 0
8101
- // TODO: remove or
8096
+ regionIndex: u.stepRegionIndex
8102
8097
  }));
8103
8098
  await e.setSelectionsAndElements(
8104
8099
  t.stepName,
@@ -8172,8 +8167,7 @@ class qo {
8172
8167
  ), l = Object.values(a.layouts).map((c) => c.elements).flat().filter((c) => c.stepName === t.stepName).map((c) => ({
8173
8168
  id: c.id,
8174
8169
  region: c.stepRegion,
8175
- regionIndex: c.stepRegionIndex ?? 0
8176
- // TODO: remove or
8170
+ regionIndex: c.stepRegionIndex
8177
8171
  }));
8178
8172
  await e.setSelectionsAndElements(t.stepName, [], l, async () => {
8179
8173
  e.updateStorage(t.stepName, { text: i?.storage?.text }), e.setMandatoryFulfilled(t.stepName, i?.storage?.text !== "");
@@ -8303,8 +8297,7 @@ class Ho {
8303
8297
  const A = s.map((u) => ({
8304
8298
  id: u.id,
8305
8299
  region: u.stepRegion,
8306
- regionIndex: u.stepRegionIndex ?? 0
8307
- // TODO: remove or
8300
+ regionIndex: u.stepRegionIndex
8308
8301
  }));
8309
8302
  await e.setSelectionsAndElements(
8310
8303
  t.stepName,
@@ -8489,8 +8482,7 @@ class Yo {
8489
8482
  const A = s.map((u) => ({
8490
8483
  id: u.id,
8491
8484
  region: u.stepRegion,
8492
- regionIndex: u.stepRegionIndex ?? 0
8493
- // TODO: remove or
8485
+ regionIndex: u.stepRegionIndex
8494
8486
  }));
8495
8487
  await e.setSelectionsAndElements(
8496
8488
  t.stepName,
@@ -8961,8 +8953,7 @@ class Xo {
8961
8953
  const A = await this.fontDataFromVariant(d), u = s.map((p) => ({
8962
8954
  id: p.id,
8963
8955
  region: p.stepRegion,
8964
- regionIndex: p.stepRegionIndex ?? 0
8965
- // TODO: remove or
8956
+ regionIndex: p.stepRegionIndex
8966
8957
  })), h = i.storage?.color;
8967
8958
  let g = i.storage?.text;
8968
8959
  const m = e.getWorkflowExperience().getBundle();
@@ -16222,7 +16213,7 @@ class $d {
16222
16213
  } catch (a) {
16223
16214
  throw console.error(a), new mt("Critical - Unable to synchronize workflow state with server.");
16224
16215
  }
16225
- }, this.options = t, this.options.applicationKey && rr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.12.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
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("------------------------");
16226
16217
  }
16227
16218
  configure(t) {
16228
16219
  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);