@wise/dynamic-flow-types 1.7.0 → 2.0.1

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.
@@ -2,5 +2,5 @@ export type BasicModel = boolean | number | string;
2
2
  export type ObjectModel = {
3
3
  [key: string]: Model;
4
4
  };
5
- export type ArrayModel = Array<BasicModel | null>;
5
+ export type ArrayModel = Array<Model | null>;
6
6
  export type Model = BasicModel | ObjectModel | ArrayModel | null;
@@ -1,8 +1,12 @@
1
1
  import { Action } from './Action';
2
2
  export type Navigation = {
3
- backButton?: BackButton;
3
+ back?: BackBehaviour;
4
+ /**
5
+ * @deprecated Please use back instead
6
+ */
7
+ backButton?: BackBehaviour;
4
8
  };
5
- export type BackButton = {
9
+ export type BackBehaviour = {
6
10
  title?: string;
7
11
  action: Action;
8
12
  };
@@ -70,9 +70,8 @@ export type AllOfSchema = Omit<SchemaBase, 'allOf'> & {
70
70
  };
71
71
  export type ArraySchema = Omit<SchemaBase, 'persistAsync'> & {
72
72
  type: 'array';
73
- addItemTitle?: string;
74
- editItemTitle?: string;
75
- removeItemTitle?: string;
73
+ addItemTitle: string;
74
+ editItemTitle: string;
76
75
  items: Schema | Schema[];
77
76
  maxItems?: number;
78
77
  minItems?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "1.7.0",
3
+ "version": "2.0.1",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {