@spiffcommerce/core 0.10.34 → 0.10.36

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
@@ -432,7 +432,6 @@ type SelectionCallback = (callbackOptions: {
432
432
  }) => void;
433
433
  type StepSpecificStorageCallback = (selections: _StepStorage1) => void;
434
434
  type StorageCallback = (storage: WorkflowStorage) => void;
435
- type UpdateCallback = (isUpdating: boolean) => void;
436
435
  type CurrentVariationRecordCallback = (variationRecord: null | VariationRecord) => void;
437
436
  type VariationRecordsCallback = (records: VariationRecord[]) => void;
438
437
  export interface WorkflowManager {
@@ -449,7 +448,6 @@ export interface WorkflowManager {
449
448
  addSelectionCallback: (callback: SelectionCallback) => void;
450
449
  addStepSpecificStorageCallback: (callback: StepSpecificStorageCallback, stepName: string) => void;
451
450
  addStorageCallback: (callback: StorageCallback) => void;
452
- addUpdateCallback: (callback: UpdateCallback) => void;
453
451
  addVariationRecord: (variationRecord: Omit<VariationRecord, "recordNumber">) => VariationRecord;
454
452
  addVariationRecordsCallback: (callback: VariationRecordsCallback) => void;
455
453
  getCommandDispatcher: () => (command: _CanvasCommand1) => void;
@@ -473,8 +471,9 @@ export interface WorkflowManager {
473
471
  getWorkflowSelections: () => WorkflowSelections;
474
472
  isDesignInitialized: () => boolean;
475
473
  markStepsAsInitialised: (stepNames: string[]) => void;
476
- markUpdateCompleted: (update: string) => void;
477
- markUpdatePending: (update: string) => void;
474
+ getUpdatesPending: () => boolean;
475
+ markUpdateCompleted: (id: string) => void;
476
+ markUpdatePending: () => string;
478
477
  outstandingRequestsPromise: () => Promise<void>;
479
478
  removeVariationRecord: (recordNumber: number) => VariationRecord[];
480
479
  reset: () => Promise<void>;
@@ -1329,7 +1328,6 @@ export class MockWorkflowManager implements WorkflowManager {
1329
1328
  addSelectionCallback(_callback: SelectionCallback): void;
1330
1329
  addStepSpecificStorageCallback(_callback: StepSpecificStorageCallback, _stepName: string): void;
1331
1330
  addStorageCallback(_callback: StorageCallback): void;
1332
- addUpdateCallback(_callback: UpdateCallback): void;
1333
1331
  addVariationRecordsCallback(_callback: VariationRecordsCallback): void;
1334
1332
  getCommandDispatcher(): (_command: _CanvasCommand1) => void;
1335
1333
  getLayouts(): any[];
@@ -1356,8 +1354,9 @@ export class MockWorkflowManager implements WorkflowManager {
1356
1354
  stepGroups: any[];
1357
1355
  };
1358
1356
  markStepsAsInitialised(_stepNames: string[]): void;
1357
+ getUpdatesPending: () => boolean;
1359
1358
  markUpdateCompleted(_update: string): void;
1360
- markUpdatePending(_update: string): void;
1359
+ markUpdatePending(): string;
1361
1360
  getWorkflowSelections(): {};
1362
1361
  setCurrentAdjustingStepId(_stepId: string): void;
1363
1362
  setAllScenes(_config: WorkflowScenesConfiguration): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spiffcommerce/core",
3
- "version": "0.10.34",
3
+ "version": "0.10.36",
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",