@spiffcommerce/core 0.10.13 → 0.10.14
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/main.js +9 -9
- package/dist/module.js +2 -2
- package/dist/types.d.ts +4 -2
- package/package.json +3 -2
package/dist/types.d.ts
CHANGED
|
@@ -473,6 +473,7 @@ export interface WorkflowManager {
|
|
|
473
473
|
getTransaction: () => Transaction;
|
|
474
474
|
getWorkflow: () => _Workflow1;
|
|
475
475
|
getWorkflowSelections: () => WorkflowSelections;
|
|
476
|
+
isDesignInitialized: () => boolean;
|
|
476
477
|
markStepsAsInitialised: (stepNames: string[]) => void;
|
|
477
478
|
markUpdateCompleted: (update: string) => void;
|
|
478
479
|
markUpdatePending: (update: string) => void;
|
|
@@ -862,14 +863,14 @@ declare class OptionService {
|
|
|
862
863
|
export const optionService: OptionService;
|
|
863
864
|
export const CommandContextContext: import("react").Context<_CommandContext1>;
|
|
864
865
|
export const useLayouts: () => {
|
|
865
|
-
commandDispatcher: (command: _CanvasCommand1) => void;
|
|
866
|
+
commandDispatcher: (command: _CanvasCommand1, leaveOffUndoStack: boolean) => void;
|
|
866
867
|
getLayoutById: (id: string) => _LayoutData1;
|
|
867
868
|
getAllLayouts: () => _LayoutData1[];
|
|
868
869
|
getReducerState: () => _CommandState1;
|
|
869
870
|
lastUpdated: Date;
|
|
870
871
|
flattenSequence: (sequenceId: string, initialState: _LayoutsState1) => void;
|
|
871
872
|
};
|
|
872
|
-
export type CommandDispatcher = (command: _CanvasCommand1) => void;
|
|
873
|
+
export type CommandDispatcher = (command: _CanvasCommand1, leaveOffUndoStack: boolean) => void;
|
|
873
874
|
export type LayoutGetter = (layoutId: string) => _LayoutData1;
|
|
874
875
|
export type LayoutsGetter = () => _LayoutData1[];
|
|
875
876
|
/**
|
|
@@ -1282,6 +1283,7 @@ export class Client {
|
|
|
1282
1283
|
getTransaction(): Transaction;
|
|
1283
1284
|
}
|
|
1284
1285
|
export class MockWorkflowManager implements WorkflowManager {
|
|
1286
|
+
isDesignInitialized(): boolean;
|
|
1285
1287
|
getCommandContext: () => _CommandContext1;
|
|
1286
1288
|
getAllLayoutData: () => LayoutState[];
|
|
1287
1289
|
getMetadata: (stepName: string) => StepMetadata | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spiffcommerce/core",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.14",
|
|
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",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"@parcel/transformer-typescript-tsc": "^2.7.0",
|
|
44
44
|
"@parcel/transformer-typescript-types": "^2.7.0",
|
|
45
45
|
"@parcel/validator-typescript": "^2.7.0",
|
|
46
|
+
"@types/enzyme": "^3.10.12",
|
|
46
47
|
"@types/jest": "^29.0.3",
|
|
47
48
|
"@types/lodash.clonedeep": "^4.5.7",
|
|
48
49
|
"@types/lodash.debounce": "^4.0.7",
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
},
|
|
80
81
|
"dependencies": {
|
|
81
82
|
"@apollo/client": "^3.7.0",
|
|
82
|
-
"@spiffcommerce/papyrus": "^1.5.
|
|
83
|
+
"@spiffcommerce/papyrus": "^1.5.9",
|
|
83
84
|
"canvg": "https://github.com/spiffdev/canvg.git#03bcd151b12441e88ecb552bb658356f5bbe92c4",
|
|
84
85
|
"cross-fetch": "^3.1.5",
|
|
85
86
|
"graphql": "^16.6.0",
|