@spiffcommerce/core 34.1.0-beta.7d1062f1-7d67-5ea3-8640-5d0681c80907 → 34.1.0-beta.7e5ee51f-b12a-53aa-ac2e-c2fc2ef09fac
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15500,17 +15500,15 @@ class dn {
|
|
|
15500
15500
|
for (const s of i)
|
|
15501
15501
|
await this.injectExperienceIntoPreviewService(s);
|
|
15502
15502
|
const r = this.getIntegrationProductIds() || [], o = this.getProductCollection();
|
|
15503
|
-
if (o) {
|
|
15503
|
+
if (o && r.length > 0) {
|
|
15504
|
+
await o.fetchProducts();
|
|
15504
15505
|
const s = o.getProducts();
|
|
15505
|
-
|
|
15506
|
-
|
|
15507
|
-
|
|
15508
|
-
|
|
15509
|
-
|
|
15510
|
-
|
|
15511
|
-
await this.removeIntegrationProductIds([l]);
|
|
15512
|
-
}
|
|
15513
|
-
}
|
|
15506
|
+
for (const l of r)
|
|
15507
|
+
if (!s.find((d) => d.getCurrentIntegration().id === l)) {
|
|
15508
|
+
for (const d of i)
|
|
15509
|
+
d.getProduct()?.integrationProducts?.map((A) => A.id)?.includes(l) && await d.clearProduct();
|
|
15510
|
+
await this.removeIntegrationProductIds([l]);
|
|
15511
|
+
}
|
|
15514
15512
|
}
|
|
15515
15513
|
}
|
|
15516
15514
|
async updateBundle() {
|
|
@@ -16171,7 +16169,7 @@ class Od {
|
|
|
16171
16169
|
} catch (a) {
|
|
16172
16170
|
throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
|
|
16173
16171
|
}
|
|
16174
|
-
}, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.1.0-beta.
|
|
16172
|
+
}, this.options = t, this.options.applicationKey && nr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.1.0-beta.7d1062f1-7d67-5ea3-8640-5d0681c80907"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16175
16173
|
}
|
|
16176
16174
|
configure(t) {
|
|
16177
16175
|
pt.setHubUrl(t.hubUrl), pt.setServerUrl(t.serverUrl), pt.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 && rr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|