@spiffcommerce/core 33.12.0-beta.22b3f894-b8b2-544e-9e3a-fbfc0a46726b → 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.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
|
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;
|
|
@@ -7360,6 +7359,7 @@ class Vo {
|
|
|
7360
7359
|
return new H(
|
|
7361
7360
|
{
|
|
7362
7361
|
stepRegion: d,
|
|
7362
|
+
stepRegionIndex: c.regionIndex,
|
|
7363
7363
|
stepName: i,
|
|
7364
7364
|
id: c.id,
|
|
7365
7365
|
src: s,
|
|
@@ -7432,8 +7432,7 @@ class Ne {
|
|
|
7432
7432
|
), l = Object.values(a.layouts).map((c) => c.elements).flat().filter((c) => c.stepName === t.stepName).map((c) => ({
|
|
7433
7433
|
id: c.id,
|
|
7434
7434
|
region: c.stepRegion,
|
|
7435
|
-
regionIndex: c.stepRegionIndex
|
|
7436
|
-
// TODO: remove or
|
|
7435
|
+
regionIndex: c.stepRegionIndex
|
|
7437
7436
|
}));
|
|
7438
7437
|
if (!t.option || (t.option.variants || []).length === 0) {
|
|
7439
7438
|
const c = t.data.regions.map((d) => pa(d));
|
|
@@ -7526,7 +7525,7 @@ class Ne {
|
|
|
7526
7525
|
);
|
|
7527
7526
|
o && (o.command && i.getCommandDispatcher()(o.command), o.followup && await o.followup());
|
|
7528
7527
|
}
|
|
7529
|
-
getCreateElementCommand(t, e, a, i) {
|
|
7528
|
+
getCreateElementCommand(t, e, a, i, r) {
|
|
7530
7529
|
return new H(
|
|
7531
7530
|
{
|
|
7532
7531
|
id: t,
|
|
@@ -7538,18 +7537,19 @@ class Ne {
|
|
|
7538
7537
|
layer: e.layer,
|
|
7539
7538
|
layerIndex: e.layerIndex,
|
|
7540
7539
|
rotation: e.rotation,
|
|
7541
|
-
scaleX: e.width /
|
|
7542
|
-
scaleY: e.height /
|
|
7543
|
-
path:
|
|
7544
|
-
dataWidth:
|
|
7545
|
-
dataHeight:
|
|
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,
|
|
7546
7545
|
stepRegion: e,
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7546
|
+
stepRegionIndex: a,
|
|
7547
|
+
stepName: r.stepName,
|
|
7548
|
+
disablePlaceholder: r.disablePlaceholder,
|
|
7549
|
+
pattern: r.pattern,
|
|
7550
7550
|
immutable: e.immutable
|
|
7551
7551
|
},
|
|
7552
|
-
|
|
7552
|
+
i
|
|
7553
7553
|
);
|
|
7554
7554
|
}
|
|
7555
7555
|
async loadPatternFromString(t, e, a = !0, i = void 0, r) {
|
|
@@ -7676,7 +7676,7 @@ class Ne {
|
|
|
7676
7676
|
if (!E)
|
|
7677
7677
|
throw new K(h);
|
|
7678
7678
|
return {
|
|
7679
|
-
command: this.getCreateElementCommand(D, h, E, {
|
|
7679
|
+
command: this.getCreateElementCommand(D, h, g, E, {
|
|
7680
7680
|
frameData: m,
|
|
7681
7681
|
pattern: b,
|
|
7682
7682
|
disablePlaceholder: t.data.disablePlaceholder,
|
|
@@ -7821,8 +7821,7 @@ class zo {
|
|
|
7821
7821
|
const A = s.map((u) => ({
|
|
7822
7822
|
id: u.id,
|
|
7823
7823
|
region: u.stepRegion,
|
|
7824
|
-
regionIndex: u.stepRegionIndex
|
|
7825
|
-
// TODO: remove or
|
|
7824
|
+
regionIndex: u.stepRegionIndex
|
|
7826
7825
|
}));
|
|
7827
7826
|
await e.setSelectionsAndElements(
|
|
7828
7827
|
t.stepName,
|
|
@@ -8018,8 +8017,7 @@ class Go {
|
|
|
8018
8017
|
const A = d.material, u = s.map((h) => ({
|
|
8019
8018
|
id: h.id,
|
|
8020
8019
|
region: h.stepRegion,
|
|
8021
|
-
regionIndex: h.stepRegionIndex
|
|
8022
|
-
// TODO: remove or
|
|
8020
|
+
regionIndex: h.stepRegionIndex
|
|
8023
8021
|
}));
|
|
8024
8022
|
await e.setSelectionsAndElements(
|
|
8025
8023
|
t.stepName,
|
|
@@ -8097,8 +8095,7 @@ class Wo {
|
|
|
8097
8095
|
const A = s.map((u) => ({
|
|
8098
8096
|
id: u.id,
|
|
8099
8097
|
region: u.stepRegion,
|
|
8100
|
-
regionIndex: u.stepRegionIndex
|
|
8101
|
-
// TODO: remove or
|
|
8098
|
+
regionIndex: u.stepRegionIndex
|
|
8102
8099
|
}));
|
|
8103
8100
|
await e.setSelectionsAndElements(
|
|
8104
8101
|
t.stepName,
|
|
@@ -8172,8 +8169,7 @@ class qo {
|
|
|
8172
8169
|
), l = Object.values(a.layouts).map((c) => c.elements).flat().filter((c) => c.stepName === t.stepName).map((c) => ({
|
|
8173
8170
|
id: c.id,
|
|
8174
8171
|
region: c.stepRegion,
|
|
8175
|
-
regionIndex: c.stepRegionIndex
|
|
8176
|
-
// TODO: remove or
|
|
8172
|
+
regionIndex: c.stepRegionIndex
|
|
8177
8173
|
}));
|
|
8178
8174
|
await e.setSelectionsAndElements(t.stepName, [], l, async () => {
|
|
8179
8175
|
e.updateStorage(t.stepName, { text: i?.storage?.text }), e.setMandatoryFulfilled(t.stepName, i?.storage?.text !== "");
|
|
@@ -8303,8 +8299,7 @@ class Ho {
|
|
|
8303
8299
|
const A = s.map((u) => ({
|
|
8304
8300
|
id: u.id,
|
|
8305
8301
|
region: u.stepRegion,
|
|
8306
|
-
regionIndex: u.stepRegionIndex
|
|
8307
|
-
// TODO: remove or
|
|
8302
|
+
regionIndex: u.stepRegionIndex
|
|
8308
8303
|
}));
|
|
8309
8304
|
await e.setSelectionsAndElements(
|
|
8310
8305
|
t.stepName,
|
|
@@ -8489,8 +8484,7 @@ class Yo {
|
|
|
8489
8484
|
const A = s.map((u) => ({
|
|
8490
8485
|
id: u.id,
|
|
8491
8486
|
region: u.stepRegion,
|
|
8492
|
-
regionIndex: u.stepRegionIndex
|
|
8493
|
-
// TODO: remove or
|
|
8487
|
+
regionIndex: u.stepRegionIndex
|
|
8494
8488
|
}));
|
|
8495
8489
|
await e.setSelectionsAndElements(
|
|
8496
8490
|
t.stepName,
|
|
@@ -8961,8 +8955,7 @@ class Xo {
|
|
|
8961
8955
|
const A = await this.fontDataFromVariant(d), u = s.map((p) => ({
|
|
8962
8956
|
id: p.id,
|
|
8963
8957
|
region: p.stepRegion,
|
|
8964
|
-
regionIndex: p.stepRegionIndex
|
|
8965
|
-
// TODO: remove or
|
|
8958
|
+
regionIndex: p.stepRegionIndex
|
|
8966
8959
|
})), h = i.storage?.color;
|
|
8967
8960
|
let g = i.storage?.text;
|
|
8968
8961
|
const m = e.getWorkflowExperience().getBundle();
|
|
@@ -11422,7 +11415,7 @@ const al = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
|
|
|
11422
11415
|
}
|
|
11423
11416
|
serialize() {
|
|
11424
11417
|
const t = this.getCommandContext().getState();
|
|
11425
|
-
if (!t)
|
|
11418
|
+
if (console.log({ fullState: t }), !t)
|
|
11426
11419
|
throw new R("Attempted to serialize state before it was initialized.");
|
|
11427
11420
|
const e = It(t.transaction), a = this.dehydrateState(e);
|
|
11428
11421
|
return JSON.stringify(a);
|
|
@@ -16222,7 +16215,7 @@ class $d {
|
|
|
16222
16215
|
} catch (a) {
|
|
16223
16216
|
throw console.error(a), new mt("Critical - Unable to synchronize workflow state with server.");
|
|
16224
16217
|
}
|
|
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("------------------------");
|
|
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("------------------------");
|
|
16226
16219
|
}
|
|
16227
16220
|
configure(t) {
|
|
16228
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);
|