@spiffcommerce/core 0.10.184 → 0.10.186
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 +2 -2
- package/dist/module.js +3 -3
- package/dist/types.d.ts +28 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -24,6 +24,23 @@ declare class GraphQlManager {
|
|
|
24
24
|
getShadowGraphqlClient(): ApolloClient<any>;
|
|
25
25
|
}
|
|
26
26
|
export const graphQlManager: GraphQlManager;
|
|
27
|
+
/**
|
|
28
|
+
* A renderable scene is a scene that can be displayed to the user. This is based on the workflow state.
|
|
29
|
+
*/
|
|
30
|
+
export interface RenderableScene {
|
|
31
|
+
/**
|
|
32
|
+
* The id of the scene.
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
* The title of the scene.
|
|
37
|
+
*/
|
|
38
|
+
title: string;
|
|
39
|
+
/**
|
|
40
|
+
* The id of each step inside the scene that can be rendered. This is based on the workflow state.
|
|
41
|
+
*/
|
|
42
|
+
renderableSteps: string[];
|
|
43
|
+
}
|
|
27
44
|
/**
|
|
28
45
|
* Information parsed froma workflow structure that is relevant
|
|
29
46
|
* to a given scene.
|
|
@@ -1256,7 +1273,7 @@ export class BulkStepHandle extends StepHandle<_BulkStepData1> {
|
|
|
1256
1273
|
/**
|
|
1257
1274
|
* @param variant The variant to select. This is not supported in the bulk step.
|
|
1258
1275
|
*/
|
|
1259
|
-
selectVariant(
|
|
1276
|
+
selectVariant(): Promise<void>;
|
|
1260
1277
|
setDesignName(designName: string): Promise<void>;
|
|
1261
1278
|
addVariationRecord(): VariationRecord;
|
|
1262
1279
|
updateBulkIsConnected(bulkIsConnected: boolean): void;
|
|
@@ -1521,6 +1538,16 @@ export interface WorkflowExperience {
|
|
|
1521
1538
|
* @param scene The scene you want the steps for.
|
|
1522
1539
|
*/
|
|
1523
1540
|
getStepsByScene(scene: StepGroup): StepHandle<_AnyStepData1>[];
|
|
1541
|
+
/**
|
|
1542
|
+
* Attaches a listener to the scenes on a workflow experience. The scenes returned are a subset of the scenes configured in the
|
|
1543
|
+
* workflow and are based on the current state of the experience. This is useful for building a navigation menu.
|
|
1544
|
+
* @param cb The callback to be called when the scenes change. The new scenes are passed as an argument.
|
|
1545
|
+
*/
|
|
1546
|
+
attachRenderableSceneListener(cb: (scenes: RenderableScene[]) => void): void;
|
|
1547
|
+
/**
|
|
1548
|
+
* Detaches a listener from the scenes on a workflow experience.
|
|
1549
|
+
*/
|
|
1550
|
+
detachRenderableSceneListener(cb: (scenes: RenderableScene[]) => void): void;
|
|
1524
1551
|
/**
|
|
1525
1552
|
* Saves this experience to storage. This may be local or remote depending
|
|
1526
1553
|
* on configuration.
|