@spiffcommerce/core 33.10.0-beta.10d617dd-d791-5d6c-80c8-ea72e7147136 → 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/dist/index.mjs CHANGED
@@ -14965,19 +14965,19 @@ class oa {
14965
14965
  });
14966
14966
  }
14967
14967
  }
14968
- async clearIntegrationProductIds() {
14969
- const t = this.bundleStateManager.getState();
14970
- if (t) {
14971
- const e = [...t.integrationProductIds ?? []];
14972
- t.integrationProductIds = [];
14973
- const a = JSON.stringify(t);
14974
- this.bundleStateManager.setState(a), this.fireEvent("bundle-integration-products-removed", {
14975
- integrationProductIds: e
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: a
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"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
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);