@spiffcommerce/core 27.2.1-beta.53daa97c-6932-5a12-a2b0-5f55ecb6f4c7 → 27.2.1-beta.79d76762-97a7-51e6-8168-080be1e15965

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
@@ -1374,13 +1374,14 @@ declare abstract class GlobalPropertyHandle {
1374
1374
  /**
1375
1375
  * Applies the global state to all shared steps, if the state is set.
1376
1376
  * @param targetExperiences Optionally filter the workflow experiences it should be applied to.
1377
+ * @param checkAllSteps Whether to consider all steps in the workflow, not just the ones that are conditionally active.
1377
1378
  */
1378
- abstract applyGlobalState(targetExperiences?: WorkflowExperience[]): Promise<void>;
1379
+ abstract applyGlobalState(targetExperiences?: WorkflowExperience[], checkAllSteps?: boolean): Promise<void>;
1379
1380
  /**
1380
1381
  * Returns all steps that share this property.
1381
1382
  * @param targetExperiences Optionally filter the steps to only those in the given experiences.
1382
1383
  */
1383
- protected getSharedSteps(targetExperiences?: WorkflowExperience[]): StepHandle<AnyStepData>[];
1384
+ protected getSharedSteps(targetExperiences?: WorkflowExperience[], checkAllSteps?: boolean): StepHandle<AnyStepData>[];
1384
1385
  protected getStateValue(): string | undefined;
1385
1386
  }
1386
1387
  /**
@@ -1427,7 +1428,7 @@ declare class FileUploadGlobalPropertyHandle extends GlobalPropertyHandle {
1427
1428
  getBackgroundRemovedImage(): Promise<Asset | undefined>;
1428
1429
  getUseOriginalImage(): boolean;
1429
1430
  setUseOriginalImage(value: boolean): Promise<void>;
1430
- applyGlobalState(targetExperiences?: WorkflowExperience[]): Promise<void>;
1431
+ applyGlobalState(targetExperiences?: WorkflowExperience[], checkAllSteps?: boolean): Promise<void>;
1431
1432
  getAvailableColors(): ColorOption[];
1432
1433
  getCurrentColors(): {
1433
1434
  [key: string]: ColorDefinition;
@@ -1439,7 +1440,7 @@ declare class FileUploadGlobalPropertyHandle extends GlobalPropertyHandle {
1439
1440
  } | undefined>;
1440
1441
  changeColors(newFills: {
1441
1442
  [key: string]: ColorDefinition;
1442
- }): Promise<void>;
1443
+ }, checkAllSteps?: boolean): Promise<void>;
1443
1444
  private applyImageSelection;
1444
1445
  private updateSharedStepStorage;
1445
1446
  }
@@ -1452,7 +1453,7 @@ declare class TextGlobalPropertyHandle extends GlobalPropertyHandle {
1452
1453
  /**
1453
1454
  * Set the text.
1454
1455
  */
1455
- setText(text: string): Promise<void>;
1456
+ setText(text: string, checkAllSteps?: boolean): Promise<void>;
1456
1457
  applyGlobalState(targetExperiences?: WorkflowExperience[]): Promise<void>;
1457
1458
  private applyTextSelection;
1458
1459
  }
@@ -1483,7 +1484,7 @@ declare class OptionGlobalPropertyHandle extends GlobalPropertyHandle {
1483
1484
  * Select a given variant on the option for all shared steps.
1484
1485
  * @param variant The variant to select.
1485
1486
  */
1486
- selectVariant(variant: Variant, channel?: number): Promise<void>;
1487
+ selectVariant(variant: Variant, channel?: number, checkAllSteps?: boolean): Promise<void>;
1487
1488
  applyGlobalState(targetExperiences?: WorkflowExperience[]): Promise<void>;
1488
1489
  private applyVariantSelection;
1489
1490
  }
@@ -1504,7 +1505,7 @@ declare class ColorOptionGlobalPropertyHandle extends OptionGlobalPropertyHandle
1504
1505
  /**
1505
1506
  * Sets a custom color on the global state.
1506
1507
  */
1507
- setCustomColor(color: string): void;
1508
+ setCustomColor(color: string, checkAllSteps?: boolean): void;
1508
1509
  /**
1509
1510
  * Gets the custom color used by the global state.
1510
1511
  */