@spiffcommerce/core 39.0.0 → 39.1.1

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.d.ts CHANGED
@@ -1430,6 +1430,10 @@ declare abstract class GlobalPropertyHandle {
1430
1430
  * @returns Whether this aspect has been marked as `completed` for mandatory checks. Note that this function always returns `true` if the aspect has not been marked as mandatory.
1431
1431
  */
1432
1432
  isMandatoryFulfilled(): boolean;
1433
+ /**
1434
+ * @returns Whether this aspect has been marked as silent and therefore should not be displayed to the user.
1435
+ */
1436
+ isSilent(): boolean;
1433
1437
  /**
1434
1438
  * Applies the global state to all shared steps, if the state is set.
1435
1439
  * @param targetExperiences Optionally filter the workflow experiences it should be applied to.
@@ -2967,6 +2971,7 @@ interface GlobalPropertyConfigurationAspect {
2967
2971
  conditionMode?: GlobalPropertyConfigurationConditionMode;
2968
2972
  data?: GlobalPropertyConfigurationAspectData;
2969
2973
  mandatory?: boolean;
2974
+ silent?: boolean;
2970
2975
  }
2971
2976
  interface GlobalPropertyConfigurationAspectData {
2972
2977
  fileUpload?: GlobalPropertyConfigurationAspectFileUploadData;
package/dist/index.mjs CHANGED
@@ -7468,14 +7468,16 @@ class ke {
7468
7468
  t.option,
7469
7469
  t.overrideDefaultVariantId
7470
7470
  );
7471
- return s ? this.selectVariantCommand(
7472
- t,
7473
- s,
7474
- [],
7475
- e,
7476
- void 0,
7477
- r || t.data.placeholderImageUrl
7478
- ) : null;
7471
+ if (s)
7472
+ return this.selectVariantCommand(
7473
+ t,
7474
+ s,
7475
+ [],
7476
+ e,
7477
+ void 0,
7478
+ r || t.data.placeholderImageUrl
7479
+ );
7480
+ if (t.option.variants?.length !== 0) return null;
7479
7481
  }
7480
7482
  return this.selectVariantCommand(
7481
7483
  t,
@@ -10394,6 +10396,7 @@ const Vd = (i, t) => {
10394
10396
  description
10395
10397
  entityId
10396
10398
  mandatory
10399
+ silent
10397
10400
  conditions {
10398
10401
  targetAspectName
10399
10402
  action
@@ -13689,6 +13692,12 @@ class $a {
13689
13692
  isMandatoryFulfilled() {
13690
13693
  return !this.property.mandatory || !!this.bundle.getGlobalPropertyStateManager().getAspectMandatoryFulfilled(this.property.name);
13691
13694
  }
13695
+ /**
13696
+ * @returns Whether this aspect has been marked as silent and therefore should not be displayed to the user.
13697
+ */
13698
+ isSilent() {
13699
+ return !!this.property.silent;
13700
+ }
13692
13701
  /**
13693
13702
  * Returns all steps that share this property.
13694
13703
  * @param targetExperiences Optionally filter the steps to only those in the given experiences.
@@ -16219,7 +16228,7 @@ class Wd {
16219
16228
  } catch (a) {
16220
16229
  throw console.error(a), new ft("Critical - Unable to synchronize workflow state with server.");
16221
16230
  }
16222
- }, this.options = t, this.options.applicationKey && ur(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 39.0.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16231
+ }, this.options = t, this.options.applicationKey && ur(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 39.1.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16223
16232
  }
16224
16233
  configure(t) {
16225
16234
  yt.setHubUrl(t.hubUrl), yt.setServerUrl(t.serverUrl), yt.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 && hr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Gt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);