@spiffcommerce/core 27.2.0 → 27.2.1-beta.0994c120-6a24-5eff-b92b-5baef3c4caf9

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 CHANGED
@@ -14,17 +14,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
14
14
  - `Fixed` for any bug fixes.
15
15
  - `Security` in case of vulnerabilities.
16
16
 
17
+ ## [27.2.1] - 28-07-2025
18
+
19
+ ## Fixed
20
+
21
+ - `WorkflowExperience.assignCustomerDetails` should no longer fail when you have ownership of the associated Transaction.
22
+
17
23
  ## [27.2.0] - 24-07-2025
18
24
 
19
25
  ## Added
20
26
 
21
- - Bundles now have the `applyGlobalPropertyState` method for copying one global state onto another.
27
+ - Bundles now have the `applyGlobalPropertyState` method for copying one global state onto another.
22
28
 
23
29
  ## [27.1.1] - 23-07-2025
24
30
 
25
31
  ## Fixed
26
32
 
27
- - Correctly the case of handle multiple text steps that are conditional and share a text aspect.
33
+ - Correctly the case of handle multiple text steps that are conditional and share a text aspect.
28
34
 
29
35
  ## [27.1.0] - 16-07-2025
30
36
 
@@ -36,13 +42,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
36
42
 
37
43
  ## Changed
38
44
 
39
- - Modified the functions for logging in as a customer.
45
+ - Modified the functions for logging in as a customer.
40
46
 
41
47
  ## [26.40.0] - 10-07-2025
42
48
 
43
49
  ## Added
44
50
 
45
- - Added `setDispatchDate` and `setPurchaseOrder` to `Bundle`.
51
+ - Added `setDispatchDate` and `setPurchaseOrder` to `Bundle`.
46
52
 
47
53
  ## [26.39.0] - 08-07-2025
48
54
 
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
  */
@@ -2610,6 +2611,7 @@ interface WorkflowManager {
2610
2611
  updateStorage: (stepName: string, update: StepStorage) => void;
2611
2612
  getModelContainer: () => ModelContainer | undefined;
2612
2613
  setModelContainer: (container: ModelContainer) => void;
2614
+ unsetInitialized: () => void;
2613
2615
  /**
2614
2616
  * Injects the model of this product into the preview service.
2615
2617
  * This also overwrites the internal preview service.
@@ -4991,6 +4993,7 @@ declare class DigitalContentStepService implements StepService<DigitalContentSte
4991
4993
  declare const digitalContentStepService: DigitalContentStepService;
4992
4994
 
4993
4995
  declare class MockWorkflowManager implements WorkflowManager {
4996
+ unsetInitialized: () => void;
4994
4997
  getTemplatingContext: () => void;
4995
4998
  removeRecipientCallback: (callback: RecipientCallback) => void;
4996
4999
  addRecipientCallback: (callback: RecipientCallback) => void;