@wise/dynamic-flow-types 1.6.0 → 2.0.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.
@@ -2,7 +2,7 @@ import { Action } from './Action';
2
2
  import { ExternalStepPollingConfiguration, ExternalStepPollingResponseHandler } from './Polling';
3
3
  import { Schema } from './Schema';
4
4
  import { SearchConfig } from './Search';
5
- import { Margin, Size, Icon, Image, Align, Orientation, Reference, Alert } from './core';
5
+ import { Margin, Size, Icon, Image, Align, Orientation, Reference, Alert, Help } from './core';
6
6
  export type LayoutComponent = AlertLayout | BoxLayout | ButtonLayout | ColumnsLayout | DecisionLayout | DividerLayout | ExternalLayout | FormLayout | HeadingLayout | ImageLayout | InfoLayout | InstructionsLayout | ListLayout | LoadingIndicatorLayout | MarkdownLayout | ParagraphLayout | ReviewLayout | StatusListLayout | SearchLayout;
7
7
  export type AlertLayout = {
8
8
  type: 'alert';
@@ -86,11 +86,15 @@ export type ImageLayout = {
86
86
  type: 'image';
87
87
  url: string;
88
88
  /**
89
- * @deprecated Only supported on web client
89
+ * @deprecated Please use accessibilityDescription
90
90
  */
91
91
  text?: string;
92
92
  size?: Size;
93
93
  margin?: Margin;
94
+ /**
95
+ * @experimental accessibilityDescription is experimental and subject to change
96
+ */
97
+ accessibilityDescription?: string;
94
98
  };
95
99
  export type InfoLayout = {
96
100
  type: 'info';
@@ -173,6 +177,7 @@ export type SearchLayout = SearchConfig & {
173
177
  type ReviewField = {
174
178
  label: string;
175
179
  value: string | number | boolean | null | undefined;
180
+ help?: Help;
176
181
  };
177
182
  type Instruction = {
178
183
  text: string;
@@ -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;
@@ -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.6.0",
3
+ "version": "2.0.0",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {