@spiffcommerce/core 34.1.0-beta.ad8ae86e-9b1c-5fbd-bd4b-f385c5bfbb76 → 34.1.0-beta.b737d236-4f23-52f6-9704-e61e958b8bf8
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 +104 -104
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15110,14 +15110,13 @@ class dn {
|
|
|
15110
15110
|
}
|
|
15111
15111
|
}
|
|
15112
15112
|
async addWorkflowExperience(t) {
|
|
15113
|
-
|
|
15113
|
+
await this.initializeAdditionalRequiredColorChannels(t), t.setBundle(this), await this.appendWorkflowExperience(t), await this.injectExperienceIntoPreviewService(t), await t.getWorkflowManager().getInitializationPromise();
|
|
15114
15114
|
const e = await this.getGlobalProperties();
|
|
15115
|
-
console.log(`log: awe 7 ${Date.now()}`);
|
|
15116
15115
|
for (const a of e)
|
|
15117
|
-
await a.applyGlobalState([t])
|
|
15116
|
+
await a.applyGlobalState([t]);
|
|
15118
15117
|
this.fireEvent("workflow-experience-added", {
|
|
15119
15118
|
workflowExperiences: [t]
|
|
15120
|
-
})
|
|
15119
|
+
});
|
|
15121
15120
|
}
|
|
15122
15121
|
async addWorkflowExperiences(t) {
|
|
15123
15122
|
for (const s of t)
|
|
@@ -15489,17 +15488,27 @@ class dn {
|
|
|
15489
15488
|
async loadExistingWorkflowExperiences(t, e, a) {
|
|
15490
15489
|
if (t.length === 0) return;
|
|
15491
15490
|
const i = await this.client.getWorkflowExperiences(
|
|
15492
|
-
t.map((
|
|
15491
|
+
t.map((s) => ({
|
|
15493
15492
|
type: "transaction",
|
|
15494
|
-
transactionId:
|
|
15493
|
+
transactionId: s
|
|
15495
15494
|
})),
|
|
15496
15495
|
e,
|
|
15497
15496
|
void 0,
|
|
15498
15497
|
a
|
|
15499
15498
|
);
|
|
15500
|
-
if (i.forEach((
|
|
15501
|
-
for (const
|
|
15502
|
-
await this.injectExperienceIntoPreviewService(
|
|
15499
|
+
if (i.forEach((s) => s.setBundle(this)), i.forEach((s) => s.checkForPriceBreakChanges()), this.workflowExperiences = i, this.previewService)
|
|
15500
|
+
for (const s of i)
|
|
15501
|
+
await this.injectExperienceIntoPreviewService(s);
|
|
15502
|
+
const r = this.getIntegrationProductIds() || [], o = this.getProductCollection();
|
|
15503
|
+
if (o) {
|
|
15504
|
+
const s = o.getProducts();
|
|
15505
|
+
for (const l of r)
|
|
15506
|
+
if (!s.find((d) => d.getCurrentIntegration().id === l)) {
|
|
15507
|
+
for (const d of i)
|
|
15508
|
+
d.getProduct()?.integrationProducts?.map((A) => A.id)?.includes(l) && await d.clearProduct();
|
|
15509
|
+
await this.removeIntegrationProductIds([l]);
|
|
15510
|
+
}
|
|
15511
|
+
}
|
|
15503
15512
|
}
|
|
15504
15513
|
async updateBundle() {
|
|
15505
15514
|
if (!(await y.getShadowGraphqlClient().mutate({
|