@wise/dynamic-flow-types 1.4.0 → 1.5.0

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/build/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './spec/Action';
3
3
  export * from './spec/core';
4
4
  export * from './spec/LayoutComponent';
5
5
  export * from './spec/Model';
6
+ export * from './spec/Navigation';
6
7
  export * from './spec/PersistAsync';
7
8
  export * from './spec/Polling';
8
9
  export * from './spec/Promotion';
@@ -0,0 +1,8 @@
1
+ import { Action } from './Action';
2
+ export type Navigation = {
3
+ backButton?: BackButton;
4
+ };
5
+ export type BackButton = {
6
+ title?: string;
7
+ action: Action;
8
+ };
@@ -1,6 +1,7 @@
1
1
  import { Action } from './Action';
2
2
  import { LayoutComponent } from './LayoutComponent';
3
3
  import { ObjectModel } from './Model';
4
+ import { Navigation } from './Navigation';
4
5
  import { ExternalStepPollingConfiguration, ExternalStepPollingResponseHandler, PollingConfiguration } from './Polling';
5
6
  import { Schema } from './Schema';
6
7
  import { Image } from './core';
@@ -19,6 +20,10 @@ type BaseStep = {
19
20
  schemas?: Schema[];
20
21
  actions?: Action[];
21
22
  model?: ObjectModel;
23
+ /**
24
+ * @experimental navigation is experimental and subject to change
25
+ */
26
+ navigation?: Navigation;
22
27
  refreshUrl?: string;
23
28
  /**
24
29
  * @deprecated Please use refreshUrl instead
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {