@spiffcommerce/core 0.10.42 → 0.10.44

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/types.d.ts CHANGED
@@ -469,7 +469,14 @@ export interface WorkflowManager {
469
469
  getTransaction: () => Transaction;
470
470
  getWorkflow: () => _Workflow1;
471
471
  getWorkflowSelections: () => WorkflowSelections;
472
- isDesignInitialized: () => boolean;
472
+ /**
473
+ * A promise resolving when the initial state of the workflow has completed loading.
474
+ */
475
+ getInitializationPromise: () => Promise<void>;
476
+ /**
477
+ * Returns true when the initial state of the workflow has been loaded and settled.
478
+ */
479
+ isInitialized(): boolean;
473
480
  markStepsAsInitialised: (stepNames: string[]) => void;
474
481
  getUpdatesPending: () => boolean;
475
482
  markUpdateCompleted: (id: string) => void;
@@ -1297,7 +1304,8 @@ export class Client {
1297
1304
  getTransaction(): Transaction;
1298
1305
  }
1299
1306
  export class MockWorkflowManager implements WorkflowManager {
1300
- isDesignInitialized(): boolean;
1307
+ getInitializationPromise(): Promise<void>;
1308
+ isInitialized(): boolean;
1301
1309
  getCommandContext: () => _CommandContext1;
1302
1310
  getAllLayoutData: () => LayoutState[];
1303
1311
  getMetadata: (stepName: string) => StepMetadata | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "0.10.42",
3
+ "version": "0.10.44",
4
4
  "description": "Core client API for interacting with the Spiff Commerce backend.",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",