@wise/dynamic-flow-client 2.3.2 → 2.4.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,11 +2,13 @@ export declare const FormControlType: {
2
2
  RADIO: string;
3
3
  CHECKBOX: string;
4
4
  SELECT: string;
5
+ EMAIL: string;
5
6
  FILE: string;
6
7
  DATE: string;
7
8
  DATETIME: string;
8
9
  DATELOOKUP: string;
9
10
  TEL: string;
11
+ NUMERIC: string;
10
12
  NUMBER: string;
11
13
  HIDDEN: string;
12
14
  PASSWORD: string;
@@ -8,11 +8,13 @@ export default class FormControl extends PureComponent<FormControlProps, FormCon
8
8
  RADIO: string;
9
9
  CHECKBOX: string;
10
10
  SELECT: string;
11
+ EMAIL: string;
11
12
  FILE: string;
12
13
  DATE: string;
13
14
  DATETIME: string;
14
15
  DATELOOKUP: string;
15
16
  TEL: string;
17
+ NUMERIC: string;
16
18
  NUMBER: string;
17
19
  HIDDEN: string;
18
20
  PASSWORD: string;
@@ -1,6 +1,7 @@
1
- import { BasicModel, Schema } from '@wise/dynamic-flow-types';
1
+ import { BasicModel, Schema, StringSchema } from '@wise/dynamic-flow-types';
2
2
  import { FormControlType } from '../../common/constants';
3
3
  export declare const getControlType: (schema: Schema) => (typeof FormControlType)[keyof typeof FormControlType] | undefined;
4
+ export declare const getStringSchemaControlType: ({ format, control, }: StringSchema) => (typeof FormControlType)[keyof typeof FormControlType] | undefined;
4
5
  declare const SchemaFormControl: {
5
6
  (props: SchemaFormControlProps): JSX.Element;
6
7
  defaultProps: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "2.3.2",
3
+ "version": "2.4.0",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.min.js",
@@ -93,7 +93,7 @@
93
93
  "classnames": "2.3.2",
94
94
  "react-webcam": "^7.1.1",
95
95
  "screenfull": "^5.2.0",
96
- "@wise/dynamic-flow-types": "2.0.1"
96
+ "@wise/dynamic-flow-types": "2.1.0"
97
97
  },
98
98
  "prettier": "@transferwise/eslint-config/.prettierrc.js",
99
99
  "scripts": {