@spiffcommerce/core 33.10.0-beta.5fa0eff7-42c6-5b6e-bd12-b92e6a4b201c → 33.10.0-beta.d5491186-1127-55b5-8fd7-1bfb834be9ec
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -14965,19 +14965,19 @@ class oa {
|
|
|
14965
14965
|
});
|
|
14966
14966
|
}
|
|
14967
14967
|
}
|
|
14968
|
-
async
|
|
14969
|
-
const
|
|
14970
|
-
if (
|
|
14971
|
-
const
|
|
14972
|
-
|
|
14973
|
-
const
|
|
14974
|
-
this.bundleStateManager.setState(
|
|
14975
|
-
integrationProductIds:
|
|
14968
|
+
async removeIntegrationProductIds(t) {
|
|
14969
|
+
const e = this.bundleStateManager.getState();
|
|
14970
|
+
if (e) {
|
|
14971
|
+
const a = t.filter((i) => (e.integrationProductIds ?? []).includes(i));
|
|
14972
|
+
e.integrationProductIds = (e.integrationProductIds ?? []).filter((i) => !a.includes(i));
|
|
14973
|
+
const r = JSON.stringify(e);
|
|
14974
|
+
this.bundleStateManager.setState(r), this.fireEvent("bundle-integration-products-removed", {
|
|
14975
|
+
integrationProductIds: a
|
|
14976
14976
|
}), await y.getShadowGraphqlClient().mutate({
|
|
14977
14977
|
mutation: ra,
|
|
14978
14978
|
variables: {
|
|
14979
14979
|
id: this.id,
|
|
14980
|
-
bundleStateData:
|
|
14980
|
+
bundleStateData: r
|
|
14981
14981
|
},
|
|
14982
14982
|
context: {
|
|
14983
14983
|
bundleOwnerId: this.ownerId
|
|
@@ -16221,7 +16221,7 @@ class $d {
|
|
|
16221
16221
|
} catch (a) {
|
|
16222
16222
|
throw console.error(a), new mt("Critical - Unable to synchronize workflow state with server.");
|
|
16223
16223
|
}
|
|
16224
|
-
}, this.options = t, this.options.applicationKey && ii(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.10.0-beta.
|
|
16224
|
+
}, this.options = t, this.options.applicationKey && ii(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.10.0-beta.5fa0eff7-42c6-5b6e-bd12-b92e6a4b201c"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16225
16225
|
}
|
|
16226
16226
|
configure(t) {
|
|
16227
16227
|
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 && si(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Wt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|