@spiffcommerce/core 16.2.2-rc.0 → 16.2.3-rc.0
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.js +6 -9
- package/dist/index.umd.cjs +21 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2394,7 +2394,7 @@ class ya {
|
|
|
2394
2394
|
if (!h)
|
|
2395
2395
|
throw new _(B);
|
|
2396
2396
|
await d.applyModelVariant(
|
|
2397
|
-
A.
|
|
2397
|
+
A.stepName || "",
|
|
2398
2398
|
{
|
|
2399
2399
|
model: h,
|
|
2400
2400
|
contextService: e.getLayoutPreviewService()
|
|
@@ -2424,8 +2424,8 @@ class ya {
|
|
|
2424
2424
|
await t.setSelectionsAndElements(A.stepName, [e], [], async () => {
|
|
2425
2425
|
try {
|
|
2426
2426
|
const i = t.getModelContainer();
|
|
2427
|
-
i &&
|
|
2428
|
-
A.
|
|
2427
|
+
i && i.applyModelVariant(
|
|
2428
|
+
A.stepName,
|
|
2429
2429
|
{
|
|
2430
2430
|
model: n,
|
|
2431
2431
|
contextService: t.getLayoutPreviewService()
|
|
@@ -5260,7 +5260,7 @@ class Xa {
|
|
|
5260
5260
|
}
|
|
5261
5261
|
const l = n.data;
|
|
5262
5262
|
this.modelContainer.applyModelVariant(
|
|
5263
|
-
n.
|
|
5263
|
+
n.stepName,
|
|
5264
5264
|
{
|
|
5265
5265
|
model: B,
|
|
5266
5266
|
contextService: this.getLayoutPreviewService()
|
|
@@ -5382,10 +5382,7 @@ class Xa {
|
|
|
5382
5382
|
), A), []);
|
|
5383
5383
|
}
|
|
5384
5384
|
getInvalidModelVariants() {
|
|
5385
|
-
return this.workflow.steps.reduce((A, e) =>
|
|
5386
|
-
var t;
|
|
5387
|
-
return e.type === "Model" && ((t = e.option) != null && t.id) && !aA(e, this.stepSelections) && A.push(e.option.id), A;
|
|
5388
|
-
}, []);
|
|
5385
|
+
return this.workflow.steps.reduce((A, e) => (e.type === f.Model && !aA(e, this.stepSelections) && A.push(e.stepName), A), []);
|
|
5389
5386
|
}
|
|
5390
5387
|
async stepElementsForIntroducedSilentSteps(A, e) {
|
|
5391
5388
|
const t = this.product;
|
|
@@ -5474,7 +5471,7 @@ class Xa {
|
|
|
5474
5471
|
const E = l.map((m) => new $(m.id)), C = new de(this.constructSerializableWorkflow()), Q = [...w, ...E, C];
|
|
5475
5472
|
Q.length > 0 && this.commandContext.apply(new G(Q), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
|
|
5476
5473
|
const u = this.getInvalidModelVariants(), p = this.modelContainer;
|
|
5477
|
-
|
|
5474
|
+
p && u.forEach((m) => {
|
|
5478
5475
|
p.applyModelVariant(
|
|
5479
5476
|
m,
|
|
5480
5477
|
{
|