@wise/dynamic-flow-types 2.10.0 → 2.11.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.
@@ -5,7 +5,7 @@ import type { PersistAsync } from './PersistAsync';
5
5
  import type { Promotion } from './Promotion';
6
6
  import type { ValidationAsync } from './ValidationAsync';
7
7
  import type { Icon, Image, Alert, Help } from './core';
8
- export type Schema = AllOfSchema | ArraySchema | BlobSchema | BooleanSchema | IntegerSchema | NumberSchema | ObjectSchema | OneOfSchema | StringSchema | ListArraySchema | TupleArraySchema | FileUploadSchema | MultipleFileUploadSchema | ConstSchema;
8
+ export type Schema = AllOfSchema | ArraySchema | BlobSchema | BooleanSchema | IntegerSchema | NumberSchema | ObjectSchema | OneOfSchema | StringSchema | ListArraySchema | TupleArraySchema | FileUploadSchema | MultipleFileUploadSchema | MultiSelectSchema | ConstSchema;
9
9
  type SchemaBase = {
10
10
  $id?: string;
11
11
  type?: 'boolean' | 'blob' | 'array' | 'integer' | 'number' | 'string' | 'object';
@@ -88,6 +88,12 @@ export type TupleArraySchema = ArraySchema & {
88
88
  export type MultipleFileUploadSchema = ListArraySchema & {
89
89
  items: PersistAsyncSchema;
90
90
  };
91
+ export type MultiSelectSchema = ListArraySchema & {
92
+ placeholder?: string;
93
+ items: Omit<OneOfSchema, 'oneOf'> & {
94
+ oneOf: ConstSchema[];
95
+ };
96
+ };
91
97
  export type BlobSchema = SchemaBase & {
92
98
  type: 'blob';
93
99
  accepts?: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "2.10.0",
3
+ "version": "2.11.0",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {