@wise/dynamic-flow-client 3.16.3 → 3.16.4
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.
- package/build/main.js +80 -75
- package/build/main.min.js +1 -1
- package/build/main.mjs +58 -53
- package/build/types/common/httpClientContext/HttpClientContext.d.ts +0 -1
- package/build/types/legacy/common/contexts/dynamicFlowContexts/DynamicFlowContexts.d.ts +0 -1
- package/build/types/legacy/common/contexts/featureContext/FeatureContext.d.ts +0 -1
- package/build/types/legacy/common/contexts/logContext/LogContext.d.ts +0 -1
- package/build/types/legacy/common/utils/api-utils.d.ts +1 -1
- package/build/types/legacy/dynamicFlow/utils/responseParsers/response-parsers.d.ts +1 -1
- package/build/types/legacy/dynamicFlow/utils/useDynamicFlowState.d.ts +0 -1
- package/build/types/legacy/dynamicFlow/utils/useErrorResponse.d.ts +1 -1
- package/build/types/legacy/dynamicFlow/utils/useLoader.d.ts +0 -1
- package/build/types/legacy/formControl/FormControl.d.ts +1 -1
- package/build/types/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/utils/summary-utils.d.ts +1 -1
- package/build/types/legacy/jsonSchemaForm/promotedOneOfSchema/promotedOneOfControl/PromotedOneOfControl.d.ts +0 -1
- package/build/types/legacy/jsonSchemaForm/schemaFormControl/utils/mapping-utils.d.ts +1 -1
- package/build/types/legacy/test-utils/log-utils.d.ts +0 -1
- package/build/types/revamp/DynamicFragmentCore.d.ts +2 -3
- package/build/types/revamp/DynamicFragmentWise.d.ts +2 -3
- package/build/types/revamp/domain/components/AlertComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/AllOfComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/BoxComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ButtonComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ColumnsComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ConstComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DateInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DecisionComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DividerComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/FormComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/HeadingComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ImageComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/InstructionsComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/IntegerInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/LoadingIndicatorComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MarkdownComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ModalComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MultiSelectInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/MultiUploadInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/NumberInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ObjectComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ParagraphComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/ReviewComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/SelectInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/StatusListComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/StepDomainComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/TextInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/TupleComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/UploadInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/repeatableComponent/RepeatableComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/searchComponent/SearchComponent.d.ts +1 -1
- package/build/types/revamp/domain/mappers/schema/tests/test-utils.d.ts +2 -3
- package/build/types/revamp/domain/mappers/schema/utils/mapCommonSchemaProps.d.ts +1 -1
- package/build/types/revamp/domain/mappers/utils/legacy-utils.d.ts +3 -3
- package/build/types/revamp/useDynamicFlowCore.d.ts +0 -1
- package/build/types/revamp/utils/type-utils.d.ts +2 -2
- package/package.json +26 -26
|
@@ -6,4 +6,4 @@ export type ColumnsComponent = LayoutComponent & {
|
|
|
6
6
|
endComponents: DomainComponent[];
|
|
7
7
|
getChildren: () => DomainComponent[];
|
|
8
8
|
};
|
|
9
|
-
export declare const createColumnsComponent: (columnsProps: Pick<ColumnsComponent,
|
|
9
|
+
export declare const createColumnsComponent: (columnsProps: Pick<ColumnsComponent, "uid" | "bias" | "control" | "margin" | "startComponents" | "endComponents">) => ColumnsComponent;
|
|
@@ -4,7 +4,7 @@ export type ConstComponent = BaseComponent & {
|
|
|
4
4
|
type: 'const';
|
|
5
5
|
getLocalValue: () => LocalValue;
|
|
6
6
|
};
|
|
7
|
-
export declare const createConstComponent: (hiddenProps: Pick<ConstComponent,
|
|
7
|
+
export declare const createConstComponent: (hiddenProps: Pick<ConstComponent, "analyticsId" | "uid"> & {
|
|
8
8
|
value: Model;
|
|
9
9
|
summary: RepeatableSummary;
|
|
10
10
|
}) => ConstComponent;
|
|
@@ -11,7 +11,7 @@ export type DateInputComponent = InputComponent<string | null> & {
|
|
|
11
11
|
validationState: ValidationState;
|
|
12
12
|
onChange: (value: string | null) => void;
|
|
13
13
|
};
|
|
14
|
-
export declare const createDateInputComponent: (textInputProps: Pick<DateInputComponent,
|
|
14
|
+
export declare const createDateInputComponent: (textInputProps: Pick<DateInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "errors" | "description" | "disabled" | "help" | "hidden" | "minimumDate" | "maximumDate" | "persistedState" | "placeholder" | "required" | "title" | "value" | "validationState"> & {
|
|
15
15
|
checks: IsInvalidCheck<string | null>[];
|
|
16
16
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
17
17
|
performRefresh: PerformRefresh | undefined;
|
|
@@ -13,4 +13,4 @@ export type DecisionOption = {
|
|
|
13
13
|
title: string;
|
|
14
14
|
onClick: () => void;
|
|
15
15
|
};
|
|
16
|
-
export declare const createDecisionComponent: (decisionProps: Pick<DecisionComponent,
|
|
16
|
+
export declare const createDecisionComponent: (decisionProps: Pick<DecisionComponent, "uid" | "control" | "margin" | "options" | "title">) => DecisionComponent;
|
|
@@ -2,4 +2,4 @@ import type { LayoutComponent } from '../types';
|
|
|
2
2
|
export type DividerComponent = LayoutComponent & {
|
|
3
3
|
type: 'divider';
|
|
4
4
|
};
|
|
5
|
-
export declare const createDividerComponent: (props: Pick<DividerComponent,
|
|
5
|
+
export declare const createDividerComponent: (props: Pick<DividerComponent, "uid" | "control" | "margin">) => DividerComponent;
|
|
@@ -4,4 +4,4 @@ export type FormComponent = LayoutComponent & {
|
|
|
4
4
|
components: DomainComponent[];
|
|
5
5
|
getChildren: () => DomainComponent[];
|
|
6
6
|
};
|
|
7
|
-
export declare const createFormComponent: (formProps: Pick<FormComponent,
|
|
7
|
+
export declare const createFormComponent: (formProps: Pick<FormComponent, "uid" | "components" | "control" | "margin">) => FormComponent;
|
|
@@ -6,4 +6,4 @@ export type HeadingComponent = LayoutComponent & {
|
|
|
6
6
|
align: Align;
|
|
7
7
|
size: Size;
|
|
8
8
|
};
|
|
9
|
-
export declare const createHeadingComponent: (headingProps: Pick<HeadingComponent,
|
|
9
|
+
export declare const createHeadingComponent: (headingProps: Pick<HeadingComponent, "uid" | "control" | "text" | "align" | "margin" | "size">) => HeadingComponent;
|
|
@@ -6,4 +6,4 @@ export type ImageComponent = LayoutComponent & {
|
|
|
6
6
|
size: Size;
|
|
7
7
|
url: string;
|
|
8
8
|
};
|
|
9
|
-
export declare const createImageComponent: (imageProps: Pick<ImageComponent,
|
|
9
|
+
export declare const createImageComponent: (imageProps: Pick<ImageComponent, "uid" | "accessibilityDescription" | "control" | "margin" | "size" | "url">) => ImageComponent;
|
|
@@ -8,4 +8,4 @@ export type InstructionItem = {
|
|
|
8
8
|
context: Context;
|
|
9
9
|
text: string;
|
|
10
10
|
};
|
|
11
|
-
export declare const createInstructionsComponent: (instructionsProps: Pick<InstructionsComponent,
|
|
11
|
+
export declare const createInstructionsComponent: (instructionsProps: Pick<InstructionsComponent, "uid" | "control" | "items" | "margin" | "title">) => InstructionsComponent;
|
|
@@ -9,7 +9,7 @@ export type IntegerInputComponent = InputComponent<number | null> & {
|
|
|
9
9
|
validationState: ValidationState;
|
|
10
10
|
onChange: (value: number | null) => void;
|
|
11
11
|
};
|
|
12
|
-
export declare const createIntegerInputComponent: (integerInputProps: Pick<IntegerInputComponent,
|
|
12
|
+
export declare const createIntegerInputComponent: (integerInputProps: Pick<IntegerInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "description" | "disabled" | "errors" | "help" | "hidden" | "persistedState" | "placeholder" | "required" | "title" | "value" | "validationState"> & {
|
|
13
13
|
checks: IsInvalidCheck<number | null>[];
|
|
14
14
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
15
15
|
performRefresh: PerformRefresh | undefined;
|
|
@@ -5,4 +5,4 @@ export type LoadingIndicatorComponent = LayoutComponent & {
|
|
|
5
5
|
control?: string;
|
|
6
6
|
size: Size;
|
|
7
7
|
};
|
|
8
|
-
export declare const createLoadingIndicatorComponent: (loadingIndicatorProps: Pick<LoadingIndicatorComponent,
|
|
8
|
+
export declare const createLoadingIndicatorComponent: (loadingIndicatorProps: Pick<LoadingIndicatorComponent, "uid" | "control" | "margin" | "size">) => LoadingIndicatorComponent;
|
|
@@ -4,4 +4,4 @@ export type MarkdownComponent = LayoutComponent & {
|
|
|
4
4
|
align: Align;
|
|
5
5
|
content: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const createMarkdownComponent: (markdownProps: Pick<MarkdownComponent,
|
|
7
|
+
export declare const createMarkdownComponent: (markdownProps: Pick<MarkdownComponent, "uid" | "align" | "control" | "content" | "margin">) => MarkdownComponent;
|
|
@@ -9,4 +9,4 @@ export type ModalComponent = LayoutComponent & {
|
|
|
9
9
|
export type ModalContent = {
|
|
10
10
|
components: DomainComponent[];
|
|
11
11
|
};
|
|
12
|
-
export declare const createModalComponent: (modalProps: Pick<ModalComponent,
|
|
12
|
+
export declare const createModalComponent: (modalProps: Pick<ModalComponent, "uid" | "content" | "control" | "margin" | "trigger">) => ModalComponent;
|
|
@@ -15,7 +15,7 @@ export type MultiSelectComponent = InputComponent<LocalValueArray | null> & {
|
|
|
15
15
|
getSelectedChildren: () => DomainComponent[] | null;
|
|
16
16
|
onSelect: (indices: number[]) => void;
|
|
17
17
|
};
|
|
18
|
-
export declare const createMultiSelectComponent: (multiSelectProps: Pick<MultiSelectComponent,
|
|
18
|
+
export declare const createMultiSelectComponent: (multiSelectProps: Pick<MultiSelectComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "description" | "disabled" | "errors" | "hidden" | "persistedState" | "required" | "title" | "validationState"> & {
|
|
19
19
|
checks: IsInvalidCheck<LocalValueArray | null>[];
|
|
20
20
|
initialValue: LocalValue;
|
|
21
21
|
options: (SelectInputOption & {
|
|
@@ -14,7 +14,7 @@ export type MultiUploadInputComponent = InputComponent<File[]> & {
|
|
|
14
14
|
onDelete: (fileId: string) => Promise<void>;
|
|
15
15
|
onUpload: (file: File, fileId: string) => Promise<void>;
|
|
16
16
|
};
|
|
17
|
-
export declare const createMultiUploadInputComponent: (uploadInputProps: Pick<MultiUploadInputComponent,
|
|
17
|
+
export declare const createMultiUploadInputComponent: (uploadInputProps: Pick<MultiUploadInputComponent, "uid" | "id" | "accepts" | "analyticsId" | "autoComplete" | "control" | "errors" | "description" | "disabled" | "format" | "help" | "hidden" | "maxSize" | "minItems" | "maxItems" | "persistedState" | "placeholder" | "required" | "title" | "uploadLabel" | "value"> & {
|
|
18
18
|
checks: IsInvalidCheck<File[]>[];
|
|
19
19
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
20
20
|
onValueChange: OnValueChange;
|
|
@@ -9,7 +9,7 @@ export type NumberInputComponent = InputComponent<number | null> & {
|
|
|
9
9
|
validationState: ValidationState;
|
|
10
10
|
onChange: (value: number | null) => void;
|
|
11
11
|
};
|
|
12
|
-
export declare const createNumberInputComponent: (numberInputProps: Pick<NumberInputComponent,
|
|
12
|
+
export declare const createNumberInputComponent: (numberInputProps: Pick<NumberInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "description" | "disabled" | "errors" | "help" | "hidden" | "persistedState" | "placeholder" | "required" | "title" | "value" | "validationState"> & {
|
|
13
13
|
checks: IsInvalidCheck<number | null>[];
|
|
14
14
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
15
15
|
performRefresh: PerformRefresh | undefined;
|
|
@@ -5,7 +5,7 @@ export type ObjectComponent = ComponentWithTitle & {
|
|
|
5
5
|
getChildren: () => DomainComponent[];
|
|
6
6
|
getLocalValue: () => LocalValueObject;
|
|
7
7
|
};
|
|
8
|
-
export declare const createObjectComponent: (objectProps: Pick<ObjectComponent,
|
|
8
|
+
export declare const createObjectComponent: (objectProps: Pick<ObjectComponent, "control" | "description" | "componentMap" | "title" | "help" | "hidden"> & {
|
|
9
9
|
uid: string;
|
|
10
10
|
analyticsId?: string;
|
|
11
11
|
displayOrder: string[];
|
|
@@ -4,4 +4,4 @@ export type ParagraphComponent = LayoutComponent & {
|
|
|
4
4
|
align: Align;
|
|
5
5
|
text: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const createParagraphComponent: (paragraphProps: Pick<ParagraphComponent,
|
|
7
|
+
export declare const createParagraphComponent: (paragraphProps: Pick<ParagraphComponent, "uid" | "align" | "control" | "margin" | "text">) => ParagraphComponent;
|
|
@@ -14,4 +14,4 @@ export type ReviewCallToAction = {
|
|
|
14
14
|
title: string;
|
|
15
15
|
onClick: () => void;
|
|
16
16
|
};
|
|
17
|
-
export declare const createReviewComponent: (reviewProps: Pick<ReviewComponent,
|
|
17
|
+
export declare const createReviewComponent: (reviewProps: Pick<ReviewComponent, "uid" | "callToAction" | "control" | "fields" | "margin" | "title">) => ReviewComponent;
|
|
@@ -22,7 +22,7 @@ export type SelectInputOption = {
|
|
|
22
22
|
keywords?: string[];
|
|
23
23
|
disabled: boolean;
|
|
24
24
|
};
|
|
25
|
-
export declare const createSelectInputComponent: (selectProps: Pick<SelectInputComponent,
|
|
25
|
+
export declare const createSelectInputComponent: (selectProps: Pick<SelectInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "errors" | "description" | "disabled" | "help" | "hidden" | "persistedState" | "placeholder" | "required" | "title"> & {
|
|
26
26
|
initialValue: LocalValue;
|
|
27
27
|
options: (SelectInputOption & {
|
|
28
28
|
component: DomainComponent;
|
|
@@ -5,4 +5,4 @@ export type StatusListComponent = LayoutComponent & {
|
|
|
5
5
|
items: StatusListLayoutItem[];
|
|
6
6
|
title?: string;
|
|
7
7
|
};
|
|
8
|
-
export declare const createStatusListComponent: (statusListProps: Pick<StatusListComponent,
|
|
8
|
+
export declare const createStatusListComponent: (statusListProps: Pick<StatusListComponent, "uid" | "control" | "items" | "margin" | "title">) => StatusListComponent;
|
|
@@ -23,7 +23,7 @@ type BackNavigation = {
|
|
|
23
23
|
title?: string;
|
|
24
24
|
onClick: () => void;
|
|
25
25
|
};
|
|
26
|
-
export declare const createStepComponent: (stepProps: Pick<StepDomainComponent,
|
|
26
|
+
export declare const createStepComponent: (stepProps: Pick<StepDomainComponent, "uid" | "back" | "components" | "description" | "error" | "external" | "loadingState" | "step" | "title" | "trackEvent" | "onAction"> & {
|
|
27
27
|
stepPolling?: StepPolling;
|
|
28
28
|
updateComponent: UpdateComponent;
|
|
29
29
|
}) => StepDomainComponent;
|
|
@@ -10,7 +10,7 @@ export type TextInputComponent = InputComponent<string | null> & {
|
|
|
10
10
|
validationState: ValidationState;
|
|
11
11
|
onChange: (value: string | null) => void;
|
|
12
12
|
};
|
|
13
|
-
export declare const createTextInputComponent: (textInputProps: Pick<TextInputComponent,
|
|
13
|
+
export declare const createTextInputComponent: (textInputProps: Pick<TextInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "errors" | "description" | "disabled" | "displayFormat" | "help" | "hidden" | "persistedState" | "placeholder" | "required" | "title" | "value" | "validationState"> & {
|
|
14
14
|
checks: IsInvalidCheck<string | null>[];
|
|
15
15
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
16
16
|
performValidationAsync: PerformValidationAsync | undefined;
|
|
@@ -5,7 +5,7 @@ export type TupleComponent = ComponentWithTitle & {
|
|
|
5
5
|
getChildren: () => DomainComponent[];
|
|
6
6
|
getLocalValue: () => LocalValueArray;
|
|
7
7
|
};
|
|
8
|
-
export declare const createTupleComponent: (tupleProps: Pick<TupleComponent,
|
|
8
|
+
export declare const createTupleComponent: (tupleProps: Pick<TupleComponent, "control" | "description" | "components" | "title" | "help" | "hidden"> & {
|
|
9
9
|
uid: string;
|
|
10
10
|
analyticsId?: string;
|
|
11
11
|
summariser: (value: LocalValue | null) => RepeatableSummary;
|
|
@@ -10,7 +10,7 @@ export type UploadInputComponent = InputComponent<File | null> & {
|
|
|
10
10
|
persistedState: PersistedState;
|
|
11
11
|
onUpload: (value: File | null) => Promise<void>;
|
|
12
12
|
};
|
|
13
|
-
export declare const createUploadInputComponent: (uploadInputProps: Pick<UploadInputComponent,
|
|
13
|
+
export declare const createUploadInputComponent: (uploadInputProps: Pick<UploadInputComponent, "uid" | "id" | "accepts" | "analyticsId" | "autoComplete" | "control" | "errors" | "description" | "disabled" | "format" | "help" | "hidden" | "maxSize" | "persistedState" | "placeholder" | "required" | "title" | "value"> & {
|
|
14
14
|
checks: IsInvalidCheck<File | null>[];
|
|
15
15
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
16
16
|
performRefresh?: PerformRefresh | undefined;
|
|
@@ -18,7 +18,7 @@ export type RepeatableComponent = ComponentWithTitle & {
|
|
|
18
18
|
onRemove: () => void;
|
|
19
19
|
onSave: () => boolean;
|
|
20
20
|
};
|
|
21
|
-
export declare const createRepeatableComponent: (repeatableProps: Pick<RepeatableComponent,
|
|
21
|
+
export declare const createRepeatableComponent: (repeatableProps: Pick<RepeatableComponent, "uid" | "id" | "addItemTitle" | "components" | "control" | "description" | "editItemTitle" | "errors" | "hidden" | "title"> & {
|
|
22
22
|
analyticsId?: string;
|
|
23
23
|
checks: IsInvalidCheck<LocalValueArray | null>[];
|
|
24
24
|
summary?: SummarySummariser;
|
|
@@ -22,4 +22,4 @@ export type SearchComponent = LayoutComponent & {
|
|
|
22
22
|
onChange: (query: string) => void;
|
|
23
23
|
onSelect: (result: SearchResult) => void;
|
|
24
24
|
};
|
|
25
|
-
export declare const createSearchComponent: (searchProps: Pick<SearchComponent,
|
|
25
|
+
export declare const createSearchComponent: (searchProps: Pick<SearchComponent, "uid" | "control" | "emptyMessage" | "margin" | "title">, performSearch: PerformSearch, onAction: OnAction, updateComponent: UpdateComponent) => SearchComponent;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
1
|
import type { Schema, Step } from '@wise/dynamic-flow-types/build/next';
|
|
3
2
|
import type { MapperProps, SchemaMapperProps } from '../types';
|
|
4
3
|
import type { DomainComponent } from '../../../types';
|
|
@@ -19,10 +18,10 @@ export declare const getMockSchemaMapperProps: <S extends Schema>(schemaMapperPr
|
|
|
19
18
|
}) => {
|
|
20
19
|
uid: string;
|
|
21
20
|
schema: (Schema | undefined) & S;
|
|
22
|
-
model: import("@wise/dynamic-flow-types/build/next").
|
|
21
|
+
model: import("@wise/dynamic-flow-types/build/next").Model;
|
|
23
22
|
localValue: import("../../../types").LocalValue;
|
|
24
23
|
required: boolean;
|
|
25
|
-
validationErrors: import("@wise/dynamic-flow-types/build/next").
|
|
24
|
+
validationErrors: import("@wise/dynamic-flow-types/build/next").ValidationError;
|
|
26
25
|
persistAsyncConfig?: import("../../types").PersistAsyncConfig | undefined;
|
|
27
26
|
};
|
|
28
27
|
export declare const mockUpdateFunction: <C extends DomainComponent>(draftComponent: C) => jest.Mock<any, any, any>;
|
|
@@ -13,7 +13,7 @@ export declare const mapCommonSchemaProps: (schemaMapperProps: SchemaMapperProps
|
|
|
13
13
|
keywords: string[] | undefined;
|
|
14
14
|
required: boolean;
|
|
15
15
|
title: string | undefined;
|
|
16
|
-
summariser: (value: import("../../../types").LocalValue) => {
|
|
16
|
+
summariser: (value: import("../../../types").LocalValue | null) => {
|
|
17
17
|
title?: undefined;
|
|
18
18
|
description?: undefined;
|
|
19
19
|
icon?: undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Context as DFContext, Align as DFAlign, Action } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import type { Align, Bias, Context } from '../../types';
|
|
3
3
|
export declare const mapLegacyContext: (context: DFContext) => Context;
|
|
4
|
-
export declare const mapLegacyBias: (bias:
|
|
4
|
+
export declare const mapLegacyBias: (bias: "left" | "right" | "none") => Bias;
|
|
5
5
|
export declare const mapLegacyAlign: (align: DFAlign) => Align;
|
|
6
|
-
export declare const mapLegacyActionTypeToContext: (type: Action[
|
|
7
|
-
export declare const mapLegacyActionTypeToControl: (type: Action[
|
|
6
|
+
export declare const mapLegacyActionTypeToContext: (type: Action["type"]) => Context;
|
|
7
|
+
export declare const mapLegacyActionTypeToControl: (type: Action["type"]) => "primary" | "secondary" | "tertiary";
|
|
@@ -24,8 +24,8 @@ export declare const isHiddenComponent: (component: DomainComponent) => componen
|
|
|
24
24
|
export declare const isRepeatableComponent: (component: DomainComponent) => component is RepeatableComponent;
|
|
25
25
|
export declare const isObjectLocalValue: (value: LocalValue) => value is LocalValueObject;
|
|
26
26
|
export declare const isArrayLocalValue: (value: LocalValue) => value is LocalValueArray;
|
|
27
|
-
export declare const isObjectModel: (model: Model) => model is Record<string,
|
|
28
|
-
export declare const isArrayModel: (model: Model) => model is
|
|
27
|
+
export declare const isObjectModel: (model: Model) => model is Record<string, Model>;
|
|
28
|
+
export declare const isArrayModel: (model: Model) => model is Model[];
|
|
29
29
|
export declare const isAllOfSchema: (schema: Schema) => schema is AllOfSchema;
|
|
30
30
|
export declare const isBooleanSchema: (schema: Schema) => schema is BooleanSchema;
|
|
31
31
|
export declare const isBlobSchema: (schema: Schema) => schema is BlobSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.4",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -27,42 +27,42 @@
|
|
|
27
27
|
"url": "git+https://github.com/transferwise/dynamic-flow.git"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@babel/core": "7.
|
|
30
|
+
"@babel/core": "7.25.2",
|
|
31
31
|
"@babel/plugin-syntax-flow": "7.24.7",
|
|
32
|
-
"@babel/plugin-transform-react-jsx": "7.
|
|
33
|
-
"@babel/preset-env": "7.
|
|
32
|
+
"@babel/plugin-transform-react-jsx": "7.25.2",
|
|
33
|
+
"@babel/preset-env": "7.25.3",
|
|
34
34
|
"@babel/preset-react": "7.24.7",
|
|
35
35
|
"@babel/preset-typescript": "7.24.7",
|
|
36
36
|
"@cfaester/enzyme-adapter-react-18": "0.8.0",
|
|
37
|
-
"@chromatic-com/storybook": "1.
|
|
37
|
+
"@chromatic-com/storybook": "1.6.1",
|
|
38
38
|
"@formatjs/cli": "^6.2.12",
|
|
39
|
-
"@storybook/addon-a11y": "^8.
|
|
40
|
-
"@storybook/addon-actions": "^8.
|
|
41
|
-
"@storybook/addon-essentials": "^8.
|
|
42
|
-
"@storybook/addon-interactions": "^8.
|
|
43
|
-
"@storybook/addon-links": "^8.
|
|
39
|
+
"@storybook/addon-a11y": "^8.2.8",
|
|
40
|
+
"@storybook/addon-actions": "^8.2.8",
|
|
41
|
+
"@storybook/addon-essentials": "^8.2.8",
|
|
42
|
+
"@storybook/addon-interactions": "^8.2.8",
|
|
43
|
+
"@storybook/addon-links": "^8.2.8",
|
|
44
44
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
45
|
-
"@storybook/manager-api": "^8.
|
|
46
|
-
"@storybook/react": "^8.
|
|
47
|
-
"@storybook/react-webpack5": "^8.
|
|
48
|
-
"@storybook/test": "^8.
|
|
49
|
-
"@storybook/types": "^8.
|
|
45
|
+
"@storybook/manager-api": "^8.2.8",
|
|
46
|
+
"@storybook/react": "^8.2.8",
|
|
47
|
+
"@storybook/react-webpack5": "^8.2.8",
|
|
48
|
+
"@storybook/test": "^8.2.8",
|
|
49
|
+
"@storybook/types": "^8.2.8",
|
|
50
50
|
"@testing-library/dom": "10.4.0",
|
|
51
|
-
"@testing-library/jest-dom": "6.4.
|
|
51
|
+
"@testing-library/jest-dom": "6.4.8",
|
|
52
52
|
"@testing-library/react": "16.0.0",
|
|
53
53
|
"@testing-library/react-hooks": "8.0.1",
|
|
54
54
|
"@testing-library/user-event": "14.5.2",
|
|
55
|
-
"@transferwise/components": "46.
|
|
55
|
+
"@transferwise/components": "46.62.1",
|
|
56
56
|
"@transferwise/formatting": "^2.13.0",
|
|
57
57
|
"@transferwise/icons": "3.13.0",
|
|
58
|
-
"@transferwise/neptune-css": "14.
|
|
58
|
+
"@transferwise/neptune-css": "14.14.0",
|
|
59
59
|
"@types/enzyme": "^3.10.18",
|
|
60
60
|
"@types/jest": "29.5.12",
|
|
61
61
|
"@types/react": "18.3.3",
|
|
62
62
|
"@types/react-dom": "18.3.0",
|
|
63
63
|
"@types/react-intl": "3.0.0",
|
|
64
64
|
"@wise/art": "2.14.0",
|
|
65
|
-
"@wise/components-theming": "^1.
|
|
65
|
+
"@wise/components-theming": "^1.6.0",
|
|
66
66
|
"babel-jest": "29.7.0",
|
|
67
67
|
"enzyme": "^3.11.0",
|
|
68
68
|
"esbuild": "0.23.0",
|
|
@@ -72,20 +72,20 @@
|
|
|
72
72
|
"jest-watch-typeahead": "^2.2.2",
|
|
73
73
|
"nanoid": "5.0.7",
|
|
74
74
|
"npm-run-all2": "6.2.2",
|
|
75
|
-
"postcss": "^8.4.
|
|
75
|
+
"postcss": "^8.4.41",
|
|
76
76
|
"postcss-cli": "^11.0.0",
|
|
77
77
|
"postcss-import": "^15.1.0",
|
|
78
78
|
"react": "18.3.1",
|
|
79
79
|
"react-dom": "18.3.1",
|
|
80
80
|
"react-intl": "6.6.8",
|
|
81
|
-
"storybook": "8.
|
|
82
|
-
"stylelint": "16.
|
|
81
|
+
"storybook": "8.2.8",
|
|
82
|
+
"stylelint": "16.8.1",
|
|
83
83
|
"stylelint-config-standard": "36.0.1",
|
|
84
84
|
"stylelint-no-unsupported-browser-features": "8.0.1",
|
|
85
85
|
"stylelint-value-no-unknown-custom-properties": "6.0.1",
|
|
86
|
-
"tsx": "4.
|
|
87
|
-
"typescript": "5.4
|
|
88
|
-
"webpack": "5.
|
|
86
|
+
"tsx": "4.17.0",
|
|
87
|
+
"typescript": "5.5.4",
|
|
88
|
+
"webpack": "5.93.0",
|
|
89
89
|
"@wise/dynamic-flow-renderers": "0.0.0",
|
|
90
90
|
"@wise/dynamic-flow-fixtures": "0.0.1"
|
|
91
91
|
},
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"nanoid": "5.0.7",
|
|
105
105
|
"react-webcam": "^7.2.0",
|
|
106
106
|
"screenfull": "^5.2.0",
|
|
107
|
-
"@wise/dynamic-flow-types": "2.18.
|
|
107
|
+
"@wise/dynamic-flow-types": "2.18.4"
|
|
108
108
|
},
|
|
109
109
|
"scripts": {
|
|
110
110
|
"dev": "pnpm build:visual-tests && storybook dev -p 3003",
|