@wise/dynamic-flow-types 2.20.1 → 2.22.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.
@@ -163,6 +163,7 @@ export type ModalRendererProps = {
163
163
  control?: string;
164
164
  content: {
165
165
  components: ReactNode;
166
+ title?: string;
166
167
  };
167
168
  margin: Margin;
168
169
  trigger: {
@@ -278,8 +279,8 @@ export type ButtonRendererProps = {
278
279
  */
279
280
  export type DateInputRendererProps = BaseInputRendererProps & {
280
281
  type: 'input-date';
281
- minimumDate?: string;
282
282
  maximumDate?: string;
283
+ minimumDate?: string;
283
284
  value: string | null;
284
285
  onChange: (value: string | null) => void;
285
286
  };
@@ -290,12 +291,20 @@ export type HiddenRendererProps = {
290
291
  export type IntegerInputRendererProps = BaseInputRendererProps & {
291
292
  type: 'input-integer';
292
293
  value: number | null;
294
+ /** @experimental */
295
+ maximum?: number;
296
+ /** @experimental */
297
+ minimum?: number;
293
298
  onChange: (value: number | null) => void;
294
299
  };
295
- export type MultiSelectInputRendererProps = BaseInputRendererProps & {
300
+ export type MultiSelectInputRendererProps = Omit<BaseInputRendererProps, 'required'> & {
296
301
  type: 'input-multi-select';
297
302
  label?: string;
298
303
  description?: string;
304
+ /** @experimental */
305
+ maxItems?: number;
306
+ /** @experimental */
307
+ minItems?: number;
299
308
  selectedIndices: number[];
300
309
  options: SelectInputRendererOption[];
301
310
  onSelect: (indices: number[]) => void;
@@ -303,6 +312,10 @@ export type MultiSelectInputRendererProps = BaseInputRendererProps & {
303
312
  export type NumberInputRendererProps = BaseInputRendererProps & {
304
313
  type: 'input-number';
305
314
  value: number | null;
315
+ /** @experimental */
316
+ maximum?: number;
317
+ /** @experimental */
318
+ minimum?: number;
306
319
  onChange: (value: number | null) => void;
307
320
  };
308
321
  export type RepeatableRendererProps = {
@@ -316,6 +329,10 @@ export type RepeatableRendererProps = {
316
329
  error?: string;
317
330
  items: RepeatableItemRendererProps[];
318
331
  title: string;
332
+ /** @experimental */
333
+ maxItems?: number;
334
+ /** @experimental */
335
+ minItems?: number;
319
336
  onAdd: () => void;
320
337
  onEdit: (itemIndex: number) => void;
321
338
  onSave: () => boolean;
@@ -350,6 +367,10 @@ export type TextInputRendererProps = BaseInputRendererProps & {
350
367
  type: 'input-text';
351
368
  displayFormat?: string;
352
369
  value: string | null;
370
+ /** @experimental */
371
+ maxLength?: number;
372
+ /** @experimental */
373
+ minLength?: number;
353
374
  onChange: (value: string | null) => void;
354
375
  };
355
376
  export type UploadInputRendererProps = BaseInputRendererProps & {
@@ -166,6 +166,7 @@ export type ModalLayout = {
166
166
  };
167
167
  content: {
168
168
  components: LayoutComponent[];
169
+ title?: string;
169
170
  };
170
171
  margin?: Margin;
171
172
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "2.20.1",
3
+ "version": "2.22.0",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "devDependencies": {
26
26
  "@formatjs/cli": "^6.2.12",
27
- "@types/react": "18.3.4",
27
+ "@types/react": "18.3.5",
28
28
  "esbuild": "0.23.1",
29
29
  "npm-run-all2": "6.2.2",
30
30
  "ts-to-zod": "3.6.1",