@wise/dynamic-flow-types 2.9.0 → 2.10.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.
@@ -43,6 +43,11 @@ export type ArraySchemaList = {
43
43
  */
44
44
  maxItems?: number;
45
45
  /**
46
+ * A user-facing placeholder value to use for the field. This can be used to provide an example of the expected
47
+ * input.
48
+ */
49
+ placeholder?: string;
50
+ /**
46
51
  * A user-facing title for the schema.
47
52
  */
48
53
  title?: string;
@@ -101,4 +106,9 @@ export type ArraySchemaList = {
101
106
  * to the user-facing error message to display if the validation fails.
102
107
  */
103
108
  validationMessages?: Record<string, string>;
109
+ /**
110
+ * If true, the UI for this schema will not accept input, but the corresponding data will still be submitted.
111
+ * Defaults to false.
112
+ */
113
+ disabled?: boolean;
104
114
  };
@@ -15,11 +15,6 @@ export type BlobSchema = {
15
15
  */
16
16
  type: 'blob';
17
17
  /**
18
- * If true, the UI for this schema will not accept input, but the corresponding data will still be submitted.
19
- * Defaults to false.
20
- */
21
- disabled?: boolean;
22
- /**
23
18
  * @deprecated Please use nested oneOf schemas instead.
24
19
  */
25
20
  promoted?: boolean;
@@ -101,4 +96,9 @@ export type BlobSchema = {
101
96
  * Valid sources for the file. If null, any source is permitted.
102
97
  */
103
98
  source?: UploadSource;
99
+ /**
100
+ * If true, the UI for this schema will not accept input, but the corresponding data will still be submitted.
101
+ * Defaults to false.
102
+ */
103
+ disabled?: boolean;
104
104
  };
@@ -12,11 +12,6 @@ import type { AutocompleteToken } from '../misc/AutocompleteToken';
12
12
  * or alternative sections of a form (e.g. when the user can complete either section A or section B).
13
13
  */
14
14
  export type OneOfSchema = {
15
- /**
16
- * If true, the UI for this schema will not accept input, but the corresponding data will still be submitted.
17
- * Defaults to false.
18
- */
19
- disabled?: boolean;
20
15
  /**
21
16
  * @deprecated This property is deprecated
22
17
  */
@@ -144,4 +139,9 @@ export type OneOfSchema = {
144
139
  * to the user-facing error message to display if the validation fails.
145
140
  */
146
141
  validationMessages?: Record<string, string>;
142
+ /**
143
+ * If true, the UI for this schema will not accept input, but the corresponding data will still be submitted.
144
+ * Defaults to false.
145
+ */
146
+ disabled?: boolean;
147
147
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "2.9.0",
3
+ "version": "2.10.0",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,7 +14,7 @@
14
14
  "build"
15
15
  ],
16
16
  "devDependencies": {
17
- "@formatjs/cli": "^6.2.7",
17
+ "@formatjs/cli": "^6.2.8",
18
18
  "esbuild": "0.20.2",
19
19
  "npm-run-all2": "5.0.2",
20
20
  "ts-to-zod": "3.7.3",