@spiffcommerce/core 26.37.0 → 26.38.0-beta.086120bb-2716-5d55-859d-f71980f25fb6

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
@@ -1565,6 +1565,7 @@ declare enum ProductCollectionProductSortKey {
1565
1565
  declare class ProductCollection {
1566
1566
  private readonly collection;
1567
1567
  private fullFetched;
1568
+ private fetched;
1568
1569
  constructor(collection: ProductCollectionResource);
1569
1570
  /**
1570
1571
  * The ID of the product collection.
@@ -2497,6 +2498,7 @@ type SelectionCallback = (callbackOptions: {
2497
2498
  type StepSpecificStorageCallback = (selections: StepStorage) => void;
2498
2499
  type StorageCallback = (storage: WorkflowStorage) => void;
2499
2500
  type ValidationCallback = (validationErrors: ValidationErrors) => void;
2501
+ type RecipientCallback = (recipient: Recipient | undefined) => void;
2500
2502
  type StateMutationFunc = (options?: Omit<MutationOptions, "mutation">) => Promise<FetchResult<any, Record<string, any>, Record<string, any>>>;
2501
2503
  interface WorkflowManager {
2502
2504
  addPoller: (poller: Poller) => void;
@@ -2512,6 +2514,8 @@ interface WorkflowManager {
2512
2514
  addStepSpecificStorageCallback: (callback: StepSpecificStorageCallback, stepName: string) => void;
2513
2515
  addStorageCallback: (callback: StorageCallback) => void;
2514
2516
  addValidationCallback: (callback: ValidationCallback) => void;
2517
+ addRecipientCallback: (callback: RecipientCallback) => void;
2518
+ removeRecipientCallback: (callback: RecipientCallback) => void;
2515
2519
  getCommandDispatcher: () => (command: CanvasCommand) => void;
2516
2520
  getCommandContext: () => CommandContext;
2517
2521
  getLayouts: () => ILayout[];
@@ -4941,6 +4945,8 @@ declare class DigitalContentStepService implements StepService<DigitalContentSte
4941
4945
  declare const digitalContentStepService: DigitalContentStepService;
4942
4946
 
4943
4947
  declare class MockWorkflowManager implements WorkflowManager {
4948
+ removeRecipientCallback: (callback: RecipientCallback) => void;
4949
+ addRecipientCallback: (callback: RecipientCallback) => void;
4944
4950
  updateRecipient(_firstName?: string, _lastName?: string, _address?: string, _suburb?: string, _state?: string, _email?: string, _postalCode?: string, _country?: string, _mobile?: string, _company?: string): Promise<void>;
4945
4951
  approveTransaction(_note?: string): Promise<void>;
4946
4952
  rejectTransaction(_note?: string): Promise<void>;