@wise/dynamic-flow-types 1.2.1 → 1.3.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 { Margin, Size, Icon, Image, Align, Orientation, Reference, Alert } from './core';
5
- export type LayoutComponent = AlertLayout | BoxLayout | ButtonLayout | ColumnsLayout | DecisionLayout | DividerLayout | ExternalLayout | FormLayout | HeadingLayout | ImageLayout | InfoLayout | ListLayout | LoadingIndicatorLayout | MarkdownLayout | ParagraphLayout | ReviewLayout | StatusListLayout;
5
+ export type LayoutComponent = AlertLayout | BoxLayout | ButtonLayout | ColumnsLayout | DecisionLayout | DividerLayout | ExternalLayout | FormLayout | HeadingLayout | ImageLayout | InfoLayout | InstructionsLayout | ListLayout | LoadingIndicatorLayout | MarkdownLayout | ParagraphLayout | ReviewLayout | StatusListLayout;
6
6
  export type AlertLayout = {
7
7
  type: 'alert';
8
8
  } & Alert;
@@ -97,6 +97,12 @@ export type InfoLayout = {
97
97
  margin?: Margin;
98
98
  align?: Align;
99
99
  };
100
+ export type InstructionsLayout = {
101
+ type: 'instructions';
102
+ title?: string;
103
+ items: Instruction[];
104
+ margin?: Margin;
105
+ };
100
106
  /**
101
107
  * @deprecated Please use StatusListLayout instead
102
108
  */
@@ -161,4 +167,8 @@ type ReviewField = {
161
167
  label: string;
162
168
  value: string | number | boolean | null | undefined;
163
169
  };
170
+ type Instruction = {
171
+ text: string;
172
+ context: 'positive' | 'negative' | 'neutral' | 'warning';
173
+ };
164
174
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "1.2.1",
3
+ "version": "1.3.0",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {