@wise/dynamic-flow-client 2.9.0 → 2.9.1

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.
@@ -22,4 +22,4 @@ export declare function isFileUploadSchema(schema: {
22
22
  format?: string;
23
23
  }): schema is FileUploadSchema;
24
24
  export declare const isMultipleFileUploadSchema: (schema: Schema) => schema is MultipleFileUploadSchema;
25
- export declare const getSchemaType: (schema: Schema) => "allOf" | "persistAsync" | "array" | "object" | "oneOf" | "readOnly" | "validationAsync" | "promotedOneOf" | "basic" | null;
25
+ export declare const getSchemaType: (schema: Schema) => "array" | "object" | "allOf" | "persistAsync" | "oneOf" | "readOnly" | "validationAsync" | "promotedOneOf" | "basic" | null;
@@ -1,6 +1,6 @@
1
1
  import type { SearchConfig, SearchResult } from '@wise/dynamic-flow-types';
2
2
  export declare const useSearch: (defaultSearchConfig: SearchConfig) => {
3
- status: "success" | "loading" | "error" | "idle";
3
+ status: "error" | "success" | "loading" | "idle";
4
4
  results: SearchResult[];
5
5
  search: (query: string, { url, method, param }?: SearchConfig) => Promise<void>;
6
6
  };
@@ -9,7 +9,7 @@ export type AllOfComponent = BaseComponent<Model> & {
9
9
  title?: string;
10
10
  getChildren: () => StepComponent[];
11
11
  };
12
- export declare const createAllOfComponent: (allOfProps: Pick<AllOfComponent, "description" | "help" | "title" | "control" | "components"> & {
12
+ export declare const createAllOfComponent: (allOfProps: Pick<AllOfComponent, "control" | "title" | "description" | "help" | "components"> & {
13
13
  uid: string;
14
14
  analyticsId?: string | undefined;
15
15
  summariser: (value: Model | null) => RepeatableSummary;
@@ -4,7 +4,7 @@ import type { PerformPersistAsync } from '../features/persistAsync/getPerformPer
4
4
  export type BooleanInputComponent = InputComponent<boolean> & {
5
5
  type: 'boolean';
6
6
  };
7
- export declare const createBooleanInputComponent: (booleanInputProps: Pick<BooleanInputComponent, "analyticsId" | "description" | "disabled" | "help" | "title" | "control" | "id" | "errors" | "required" | "value" | "uid"> & {
7
+ export declare const createBooleanInputComponent: (booleanInputProps: Pick<BooleanInputComponent, "value" | "control" | "title" | "description" | "id" | "disabled" | "help" | "analyticsId" | "required" | "errors" | "uid"> & {
8
8
  checks: IsInvalidCheck<boolean | null>[];
9
9
  performPersistAsync: PerformPersistAsync | undefined;
10
10
  summariser: (value: boolean | null) => RepeatableSummary;
@@ -6,7 +6,7 @@ export type DateInputComponent = InputComponent<string> & {
6
6
  minimumDate?: string;
7
7
  maximumDate?: string;
8
8
  };
9
- export declare const createDateInputComponent: (textInputProps: Pick<DateInputComponent, "analyticsId" | "description" | "disabled" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "minimumDate" | "maximumDate" | "uid"> & {
9
+ export declare const createDateInputComponent: (textInputProps: Pick<DateInputComponent, "value" | "control" | "title" | "description" | "id" | "disabled" | "analyticsId" | "placeholder" | "required" | "errors" | "autoComplete" | "minimumDate" | "maximumDate" | "uid"> & {
10
10
  checks: IsInvalidCheck<string | null>[];
11
11
  performPersistAsync: PerformPersistAsync | undefined;
12
12
  summariser: (value: string | null) => RepeatableSummary;
@@ -4,7 +4,7 @@ import type { PerformPersistAsync } from '../features/persistAsync/getPerformPer
4
4
  export type IntegerInputComponent = InputComponent<number> & {
5
5
  type: 'integer';
6
6
  };
7
- export declare const createIntegerInputComponent: (integerInputProps: Pick<IntegerInputComponent, "analyticsId" | "description" | "disabled" | "help" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid"> & {
7
+ export declare const createIntegerInputComponent: (integerInputProps: Pick<IntegerInputComponent, "value" | "control" | "title" | "description" | "id" | "disabled" | "help" | "analyticsId" | "placeholder" | "required" | "errors" | "autoComplete" | "uid"> & {
8
8
  checks: IsInvalidCheck<number | null>[];
9
9
  performPersistAsync: PerformPersistAsync | undefined;
10
10
  summariser: (value: number | null) => RepeatableSummary;
@@ -4,7 +4,7 @@ import type { PerformPersistAsync } from '../features/persistAsync/getPerformPer
4
4
  export type NumberInputComponent = InputComponent<number> & {
5
5
  type: 'number';
6
6
  };
7
- export declare const createNumberInputComponent: (numberInputProps: Pick<NumberInputComponent, "analyticsId" | "description" | "disabled" | "help" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid"> & {
7
+ export declare const createNumberInputComponent: (numberInputProps: Pick<NumberInputComponent, "value" | "control" | "title" | "description" | "id" | "disabled" | "help" | "analyticsId" | "placeholder" | "required" | "errors" | "autoComplete" | "uid"> & {
8
8
  checks: IsInvalidCheck<number | null>[];
9
9
  performPersistAsync: PerformPersistAsync | undefined;
10
10
  summariser: (value: number | null) => RepeatableSummary;
@@ -9,7 +9,7 @@ export type ObjectComponent = BaseComponent<Record<string, Model>> & {
9
9
  title?: string;
10
10
  getChildren: () => StepComponent[];
11
11
  };
12
- export declare const createObjectComponent: (objectProps: Pick<ObjectComponent, "description" | "help" | "title" | "control" | "componentMap"> & {
12
+ export declare const createObjectComponent: (objectProps: Pick<ObjectComponent, "control" | "title" | "description" | "help" | "componentMap"> & {
13
13
  uid: string;
14
14
  analyticsId?: string | undefined;
15
15
  displayOrder: string[];
@@ -20,7 +20,7 @@ export type SelectInputOption = {
20
20
  keywords?: string[];
21
21
  disabled: boolean;
22
22
  };
23
- export declare const createSelectInputComponent: (selectProps: Pick<SelectInputComponent, "analyticsId" | "description" | "disabled" | "help" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "autoComplete" | "uid"> & {
23
+ export declare const createSelectInputComponent: (selectProps: Pick<SelectInputComponent, "control" | "title" | "description" | "id" | "disabled" | "help" | "analyticsId" | "placeholder" | "required" | "errors" | "autoComplete" | "uid"> & {
24
24
  initialValue: Model;
25
25
  options: (SelectInputOption & {
26
26
  component: StepComponent;
@@ -5,7 +5,7 @@ export type TextInputComponent = InputComponent<string> & {
5
5
  type: 'text';
6
6
  displayFormat?: string;
7
7
  };
8
- export declare const createTextInputComponent: (textInputProps: Pick<TextInputComponent, "analyticsId" | "description" | "disabled" | "help" | "title" | "placeholder" | "control" | "displayFormat" | "id" | "errors" | "required" | "value" | "autoComplete" | "uid"> & {
8
+ export declare const createTextInputComponent: (textInputProps: Pick<TextInputComponent, "value" | "control" | "title" | "description" | "id" | "disabled" | "help" | "analyticsId" | "placeholder" | "required" | "displayFormat" | "errors" | "autoComplete" | "uid"> & {
9
9
  checks: IsInvalidCheck<string | null>[];
10
10
  performPersistAsync: PerformPersistAsync | undefined;
11
11
  summariser: (value: string | null) => RepeatableSummary;
@@ -5,7 +5,7 @@ export type UploadInputComponent = InputComponent<string> & {
5
5
  type: 'upload';
6
6
  accepts?: string[];
7
7
  };
8
- export declare const createUploadInputComponent: (uploadInputProps: Pick<UploadInputComponent, "analyticsId" | "description" | "disabled" | "title" | "placeholder" | "control" | "id" | "errors" | "required" | "value" | "accepts" | "autoComplete" | "uid"> & {
8
+ export declare const createUploadInputComponent: (uploadInputProps: Pick<UploadInputComponent, "value" | "control" | "title" | "description" | "id" | "disabled" | "accepts" | "analyticsId" | "placeholder" | "required" | "errors" | "autoComplete" | "uid"> & {
9
9
  checks: IsInvalidCheck<string | null>[];
10
10
  performPersistAsync: PerformPersistAsync | undefined;
11
11
  summariser: (value: string | null) => RepeatableSummary;
@@ -22,7 +22,7 @@ export type RepeatableComponent = BaseComponent<Model[]> & {
22
22
  onRemove: () => void;
23
23
  onSave: () => boolean;
24
24
  };
25
- export declare const createRepeatableComponent: (repeatableProps: Pick<RepeatableComponent, "description" | "title" | "control" | "id" | "errors" | "components" | "addItemTitle" | "editItemTitle" | "uid"> & {
25
+ export declare const createRepeatableComponent: (repeatableProps: Pick<RepeatableComponent, "control" | "title" | "description" | "id" | "components" | "addItemTitle" | "editItemTitle" | "errors" | "uid"> & {
26
26
  analyticsId?: string | undefined;
27
27
  checks: IsInvalidCheck<Model[] | null>[];
28
28
  summary?: SummarySummariser | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-client",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "Dynamic Flow web client",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./build/main.min.js",
@@ -92,7 +92,7 @@
92
92
  "classnames": "2.5.1",
93
93
  "react-webcam": "^7.2.0",
94
94
  "screenfull": "^5.2.0",
95
- "@wise/dynamic-flow-types": "2.6.2"
95
+ "@wise/dynamic-flow-types": "2.6.3"
96
96
  },
97
97
  "scripts": {
98
98
  "dev": "storybook dev -p 3003",