@spiffcommerce/core 26.37.0 → 26.38.0-beta.5ca9f352-6f83-5c80-8498-c6e19c4f3a04

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
+ ## [26.38.0] - 07-07-2025
18
+
19
+ ## Added
20
+
21
+ - `WorkflowManager` now has the function `addRecipientCallback` to listen to changes to the attached Recipient.
22
+
17
23
  ## [26.35.0] - 03-07-2025
18
24
 
19
25
  ## Added
20
26
 
21
- - The `Bundle` type now has the `productsCount` property.
27
+ - The `Bundle` type now has the `productsCount` property.
22
28
 
23
29
  ## [26.33.0] - 02-07-2025
24
30
 
25
31
  ## Added
26
32
 
27
- - The method `getBundlesForCustomer` now has an "ordered" option.
33
+ - The method `getBundlesForCustomer` now has an "ordered" option.
28
34
 
29
35
  ## [26.31.0] - 24-06-2025
30
36
 
package/dist/index.d.ts CHANGED
@@ -2497,6 +2497,7 @@ type SelectionCallback = (callbackOptions: {
2497
2497
  type StepSpecificStorageCallback = (selections: StepStorage) => void;
2498
2498
  type StorageCallback = (storage: WorkflowStorage) => void;
2499
2499
  type ValidationCallback = (validationErrors: ValidationErrors) => void;
2500
+ type RecipientCallback = (recipient: Recipient | undefined) => void;
2500
2501
  type StateMutationFunc = (options?: Omit<MutationOptions, "mutation">) => Promise<FetchResult<any, Record<string, any>, Record<string, any>>>;
2501
2502
  interface WorkflowManager {
2502
2503
  addPoller: (poller: Poller) => void;
@@ -2512,6 +2513,8 @@ interface WorkflowManager {
2512
2513
  addStepSpecificStorageCallback: (callback: StepSpecificStorageCallback, stepName: string) => void;
2513
2514
  addStorageCallback: (callback: StorageCallback) => void;
2514
2515
  addValidationCallback: (callback: ValidationCallback) => void;
2516
+ addRecipientCallback: (callback: RecipientCallback) => void;
2517
+ removeRecipientCallback: (callback: RecipientCallback) => void;
2515
2518
  getCommandDispatcher: () => (command: CanvasCommand) => void;
2516
2519
  getCommandContext: () => CommandContext;
2517
2520
  getLayouts: () => ILayout[];
@@ -4941,6 +4944,8 @@ declare class DigitalContentStepService implements StepService<DigitalContentSte
4941
4944
  declare const digitalContentStepService: DigitalContentStepService;
4942
4945
 
4943
4946
  declare class MockWorkflowManager implements WorkflowManager {
4947
+ removeRecipientCallback: (callback: RecipientCallback) => void;
4948
+ addRecipientCallback: (callback: RecipientCallback) => void;
4944
4949
  updateRecipient(_firstName?: string, _lastName?: string, _address?: string, _suburb?: string, _state?: string, _email?: string, _postalCode?: string, _country?: string, _mobile?: string, _company?: string): Promise<void>;
4945
4950
  approveTransaction(_note?: string): Promise<void>;
4946
4951
  rejectTransaction(_note?: string): Promise<void>;