@wise/dynamic-flow-types 3.0.0-experimental-9cbdd3f → 3.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.
@@ -5,7 +5,7 @@ export type BoxRendererProps = BaseRendererProps & {
5
5
  type: 'box';
6
6
  control?: string;
7
7
  children: ReactNode;
8
- childrenProps: readonly RendererProps[];
8
+ childrenProps: RendererProps[];
9
9
  margin: Margin;
10
10
  width: Size;
11
11
  };
@@ -8,7 +8,7 @@ export type ColumnsRendererProps = BaseRendererProps & {
8
8
  bias: Bias;
9
9
  margin: Margin;
10
10
  startChildren: ReactNode;
11
- startChildrenProps: readonly RendererProps[];
11
+ startChildrenProps: RendererProps[];
12
12
  endChildren: ReactNode;
13
- endChildrenProps: readonly RendererProps[];
13
+ endChildrenProps: RendererProps[];
14
14
  };
@@ -3,5 +3,5 @@ import { BaseRendererProps, RendererProps } from './RendererProps';
3
3
  export type CoreContainerRendererProps = BaseRendererProps & {
4
4
  type: 'container';
5
5
  children: ReactNode;
6
- childrenProps: readonly RendererProps[];
6
+ childrenProps: RendererProps[];
7
7
  };
@@ -5,7 +5,7 @@ import { Margin } from './constants';
5
5
  export type DecisionRendererProps = BaseRendererProps & {
6
6
  type: 'decision';
7
7
  control?: string;
8
- options: readonly DecisionOption[];
8
+ options: DecisionOption[];
9
9
  margin: Margin;
10
10
  title?: string;
11
11
  };
@@ -5,6 +5,6 @@ export type FormRendererProps = BaseRendererProps & {
5
5
  type: 'form';
6
6
  control?: string;
7
7
  children: ReactNode;
8
- childrenProps: readonly RendererProps[];
8
+ childrenProps: RendererProps[];
9
9
  margin: Margin;
10
10
  };
@@ -3,7 +3,7 @@ import { BaseRendererProps } from './RendererProps';
3
3
  export type InstructionsRendererProps = BaseRendererProps & {
4
4
  type: 'instructions';
5
5
  control?: string;
6
- items: readonly InstructionItem[];
6
+ items: InstructionItem[];
7
7
  margin: Margin;
8
8
  title?: string;
9
9
  };
@@ -6,7 +6,7 @@ export type ListRendererProps = BaseRendererProps & {
6
6
  type: 'list';
7
7
  callToAction?: ListCallToAction;
8
8
  control?: string;
9
- items: readonly ListItem[];
9
+ items: ListItem[];
10
10
  margin: Margin;
11
11
  title?: string;
12
12
  };
@@ -6,7 +6,7 @@ export type ModalRendererProps = BaseRendererProps & {
6
6
  control?: string;
7
7
  content: {
8
8
  children: ReactNode;
9
- childrenProps: readonly RendererProps[];
9
+ childrenProps: RendererProps[];
10
10
  title?: string;
11
11
  };
12
12
  margin: Margin;
@@ -6,7 +6,7 @@ export type MultiSelectInputRendererProps = Omit<BaseInputRendererProps, 'requir
6
6
  description?: string;
7
7
  maxItems?: number;
8
8
  minItems?: number;
9
- selectedIndices: readonly number[];
10
- options: readonly SelectInputRendererOption[];
9
+ selectedIndices: number[];
10
+ options: SelectInputRendererOption[];
11
11
  onSelect: (indices: number[]) => void;
12
12
  };
@@ -7,10 +7,10 @@ export type MultiUploadInputRendererProps = BaseInputRendererProps & {
7
7
  maxSize?: number;
8
8
  minItems?: number;
9
9
  maxItems?: number;
10
- accepts?: readonly string[];
10
+ accepts?: string[];
11
11
  source?: UploadSource;
12
12
  uploadLabel?: string;
13
- value: readonly FileWithId[];
13
+ value: FileWithId[];
14
14
  onInsertFile: (index: number, file: File) => Promise<string>;
15
15
  onRemoveFile: (index: number) => Promise<void>;
16
16
  };
@@ -9,7 +9,7 @@ export type RepeatableRendererProps = BaseRendererProps & {
9
9
  addItemTitle: string;
10
10
  description?: string;
11
11
  children: ReactNode;
12
- childrenProps: readonly RendererProps[];
12
+ childrenProps: RendererProps[];
13
13
  editableItem: ReactNode;
14
14
  editableItemProps: RendererProps | null;
15
15
  editItemTitle: string;
@@ -3,7 +3,7 @@ import { BaseRendererProps } from './RendererProps';
3
3
  export type ReviewRendererProps = BaseRendererProps & {
4
4
  type: 'review';
5
5
  control?: string;
6
- fields: readonly ReviewField[];
6
+ fields: ReviewField[];
7
7
  margin: Margin;
8
8
  title?: string;
9
9
  callToAction?: ReviewCallToAction;
@@ -27,7 +27,7 @@ export type ErrorSearchState = {
27
27
  };
28
28
  export type ResultsSearchState = {
29
29
  type: 'results';
30
- results: readonly SearchResult[];
30
+ results: SearchResult[];
31
31
  };
32
32
  export type SearchResult = Pick<SearchResultSpec, 'description' | 'icon' | 'title' | 'type'> & {
33
33
  id?: string;
@@ -9,7 +9,7 @@ export type SectionRendererProps = BaseRendererProps & {
9
9
  description?: string;
10
10
  help?: string;
11
11
  children: ReactNode;
12
- childrenProps: readonly RendererProps[];
12
+ childrenProps: RendererProps[];
13
13
  icon?: Icon;
14
14
  image?: Image;
15
15
  };
@@ -8,7 +8,7 @@ export type SelectInputRendererProps = BaseInputRendererProps & {
8
8
  autoComplete: string;
9
9
  children: ReactNode;
10
10
  childrenProps: RendererProps | null;
11
- options: readonly SelectInputRendererOption[];
11
+ options: SelectInputRendererOption[];
12
12
  selectedIndex: number | null;
13
13
  onSelect: (index: number | null) => void;
14
14
  };
@@ -17,6 +17,6 @@ export type SelectInputRendererOption = {
17
17
  disabled: boolean;
18
18
  icon?: Icon;
19
19
  image?: Image;
20
- keywords: readonly string[];
20
+ keywords: string[];
21
21
  title: string;
22
22
  };
@@ -4,7 +4,7 @@ import { Margin } from './constants';
4
4
  export type StatusListRendererProps = BaseRendererProps & {
5
5
  type: 'status-list';
6
6
  control?: string;
7
- items: readonly StatusListItem[];
7
+ items: StatusListItem[];
8
8
  margin: Margin;
9
9
  title?: string;
10
10
  };
@@ -35,5 +35,5 @@ export type StepRendererProps = BaseRendererProps & {
35
35
  */
36
36
  onAction?: (action: Action) => void | Promise<void>;
37
37
  children: ReactNode;
38
- childrenProps: readonly RendererProps[];
38
+ childrenProps: RendererProps[];
39
39
  };
@@ -5,7 +5,7 @@ export type UploadInputRendererProps = BaseInputRendererProps & {
5
5
  type: 'input-upload';
6
6
  cameraConfig?: JsonElement;
7
7
  maxSize?: number;
8
- accepts?: readonly string[];
8
+ accepts?: string[];
9
9
  source?: UploadSource;
10
10
  value: File | null;
11
11
  onUpload: (file: File | null) => Promise<void>;