@wise/dynamic-flow-types 3.0.0-experimental-0afa26a → 3.0.0-experimental-ffcedb9

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.
@@ -6,10 +6,6 @@ export interface BaseInputRendererProps extends BaseRendererProps {
6
6
  control?: string;
7
7
  description?: string;
8
8
  disabled: boolean;
9
- /**
10
- * @deprecated please use the `validationState` property instead
11
- */
12
- error?: string;
13
9
  help?: string;
14
10
  placeholder?: string;
15
11
  required: boolean;
@@ -7,7 +7,6 @@ import { BaseRendererProps, RendererProps } from './RendererProps';
7
7
  export type BoxRendererProps = BaseRendererProps & {
8
8
  type: 'box';
9
9
  control?: string;
10
- border: boolean;
11
10
  children: ReactNode;
12
11
  childrenProps: RendererProps[];
13
12
  margin: Margin;
@@ -14,7 +14,7 @@ export type DecisionRendererProps = BaseRendererProps & {
14
14
  };
15
15
  export type DecisionOption = {
16
16
  description?: string;
17
- disabled?: boolean;
17
+ disabled: boolean;
18
18
  href?: string;
19
19
  icon?: Icon;
20
20
  image?: Image;
@@ -6,7 +6,6 @@ import { SelectInputRendererOption } from './SelectInputRendererProps';
6
6
  export type MultiSelectInputRendererProps = Omit<BaseInputRendererProps, 'required'> & {
7
7
  type: 'input-multi-select';
8
8
  autoComplete: string;
9
- label?: string;
10
9
  description?: string;
11
10
  /** @experimental */
12
11
  maxItems?: number;
@@ -1,15 +1,17 @@
1
- import { JsonObject } from '../next';
1
+ import { JsonElement } from '../next';
2
+ import { UploadSource } from '../next/feature/UploadSource';
2
3
  import { BaseInputRendererProps, ValidationResult } from './BaseInputRendererProps';
3
4
  /**
4
5
  * @experimental Expect RendererProps to change as we align them across platform
5
6
  */
6
7
  export type MultiUploadInputRendererProps = BaseInputRendererProps & {
7
8
  type: 'input-upload-multi';
8
- cameraConfig?: JsonObject;
9
+ cameraConfig?: JsonElement;
9
10
  maxSize?: number;
10
11
  minItems?: number;
11
12
  maxItems?: number;
12
13
  accepts?: string[];
14
+ source?: UploadSource;
13
15
  uploadLabel?: string;
14
16
  value: FileWithId[];
15
17
  onInsertFile: (index: number, file: File) => Promise<string>;
@@ -16,10 +16,6 @@ export type RepeatableRendererProps = BaseRendererProps & {
16
16
  editableItem: ReactNode;
17
17
  editableItemProps: RendererProps | null;
18
18
  editItemTitle: string;
19
- /**
20
- * @deprecated please use the `validationState` property instead
21
- */
22
- error?: string;
23
19
  /** @experimental */
24
20
  validationState: ValidationResult | undefined;
25
21
  items: RepeatableItemRendererProps[];
@@ -20,6 +20,6 @@ export type SelectInputRendererOption = {
20
20
  disabled: boolean;
21
21
  icon?: Icon;
22
22
  image?: Image;
23
- keywords?: string[];
23
+ keywords: string[];
24
24
  title: string;
25
25
  };
@@ -1,11 +1,15 @@
1
+ import { JsonElement } from '../next';
2
+ import { UploadSource } from '../next/feature/UploadSource';
1
3
  import { BaseInputRendererProps } from './BaseInputRendererProps';
2
4
  /**
3
5
  * @experimental Expect RendererProps to change as we align them across platform
4
6
  */
5
7
  export type UploadInputRendererProps = BaseInputRendererProps & {
6
8
  type: 'input-upload';
9
+ cameraConfig?: JsonElement;
7
10
  maxSize?: number;
8
11
  accepts?: string[];
12
+ source?: UploadSource;
9
13
  value: File | null;
10
14
  onUpload: (file: File | null) => Promise<void>;
11
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "3.0.0-experimental-0afa26a",
3
+ "version": "3.0.0-experimental-ffcedb9",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {