@wise/dynamic-flow-client 3.22.2 → 3.23.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.
- package/build/main.js +45 -9
- package/build/main.min.js +1 -1
- package/build/main.mjs +45 -9
- package/build/types/revamp/domain/components/AllOfComponent.d.ts +4 -1
- package/build/types/revamp/domain/components/BooleanInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/DateInputComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/IntegerInputComponent.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/RepeatableComponent.d.ts +1 -1
- package/build/types/revamp/domain/components/SelectInputComponent.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/mappers/schema/utils/mapCommonSchemaProps.d.ts +2 -0
- package/build/types/revamp/domain/types.d.ts +2 -0
- package/build/types/revamp/renderers/mappers/allOfComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/objectComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/tupleComponentToProps.d.ts +1 -1
- package/build/types/revamp/renderers/mappers/utils/inputComponentToProps.d.ts +2 -0
- package/package.json +18 -18
package/build/main.mjs
CHANGED
|
@@ -138,12 +138,12 @@ var init_clsx = __esm({
|
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
// ../../node_modules/.pnpm/@wise+art@2.
|
|
141
|
+
// ../../node_modules/.pnpm/@wise+art@2.16.1_@transferwise+neptune-css@14.19.0_@types+react@18.3.11_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-a91e5689.esm.js
|
|
142
142
|
import { useState as useState2, useEffect as useEffect2, forwardRef, Suspense, lazy } from "react";
|
|
143
143
|
import { jsx as jsx17, jsxs as jsxs4, Fragment as Fragment3 } from "react/jsx-runtime";
|
|
144
144
|
var unknownFlagName, Flag, Sizes, ImageSizes, imageSizes, Assets, RenderMode;
|
|
145
145
|
var init_index_a91e5689_esm = __esm({
|
|
146
|
-
"../../node_modules/.pnpm/@wise+art@2.
|
|
146
|
+
"../../node_modules/.pnpm/@wise+art@2.16.1_@transferwise+neptune-css@14.19.0_@types+react@18.3.11_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index-a91e5689.esm.js"() {
|
|
147
147
|
"use strict";
|
|
148
148
|
init_clsx();
|
|
149
149
|
unknownFlagName = "wise";
|
|
@@ -1455,12 +1455,14 @@ var alertComponentToProps = ({
|
|
|
1455
1455
|
});
|
|
1456
1456
|
|
|
1457
1457
|
// src/revamp/renderers/mappers/allOfComponentToProps.ts
|
|
1458
|
-
var allOfComponentToProps = ({ control, description, help, title }, children) => ({
|
|
1458
|
+
var allOfComponentToProps = ({ control, description, help, icon, image, title }, children) => ({
|
|
1459
1459
|
type: "form-section",
|
|
1460
1460
|
children,
|
|
1461
1461
|
control,
|
|
1462
1462
|
description,
|
|
1463
1463
|
help,
|
|
1464
|
+
icon,
|
|
1465
|
+
image,
|
|
1464
1466
|
title
|
|
1465
1467
|
});
|
|
1466
1468
|
|
|
@@ -1485,7 +1487,9 @@ var inputComponentToProps = (component, type) => {
|
|
|
1485
1487
|
disabled,
|
|
1486
1488
|
errors,
|
|
1487
1489
|
help,
|
|
1490
|
+
icon,
|
|
1488
1491
|
id,
|
|
1492
|
+
image,
|
|
1489
1493
|
placeholder,
|
|
1490
1494
|
required,
|
|
1491
1495
|
title,
|
|
@@ -1502,7 +1506,9 @@ var inputComponentToProps = (component, type) => {
|
|
|
1502
1506
|
disabled,
|
|
1503
1507
|
error: (_a = messages == null ? void 0 : messages.error) != null ? _a : errors == null ? void 0 : errors[0],
|
|
1504
1508
|
help,
|
|
1509
|
+
icon,
|
|
1505
1510
|
id,
|
|
1511
|
+
image,
|
|
1506
1512
|
label: title,
|
|
1507
1513
|
placeholder,
|
|
1508
1514
|
required,
|
|
@@ -1708,12 +1714,14 @@ var numberInputComponentToProps = (component) => __spreadProps(__spreadValues({}
|
|
|
1708
1714
|
});
|
|
1709
1715
|
|
|
1710
1716
|
// src/revamp/renderers/mappers/objectComponentToProps.ts
|
|
1711
|
-
var objectComponentToProps = ({ control, description, help, title }, children) => ({
|
|
1717
|
+
var objectComponentToProps = ({ control, description, help, icon, image, title }, children) => ({
|
|
1712
1718
|
type: "form-section",
|
|
1713
1719
|
children,
|
|
1714
1720
|
control,
|
|
1715
1721
|
description,
|
|
1716
1722
|
help,
|
|
1723
|
+
icon,
|
|
1724
|
+
image,
|
|
1717
1725
|
title
|
|
1718
1726
|
});
|
|
1719
1727
|
|
|
@@ -1740,6 +1748,8 @@ var repeatableComponentToProps = (component, children, editableItemChildren) =>
|
|
|
1740
1748
|
description,
|
|
1741
1749
|
editItemTitle,
|
|
1742
1750
|
errors,
|
|
1751
|
+
icon,
|
|
1752
|
+
image,
|
|
1743
1753
|
maxItems,
|
|
1744
1754
|
minItems,
|
|
1745
1755
|
summaryDefaults,
|
|
@@ -1770,6 +1780,8 @@ var repeatableComponentToProps = (component, children, editableItemChildren) =>
|
|
|
1770
1780
|
editableItem: editableItemChildren,
|
|
1771
1781
|
editItemTitle,
|
|
1772
1782
|
error: errors == null ? void 0 : errors[0],
|
|
1783
|
+
icon,
|
|
1784
|
+
image,
|
|
1773
1785
|
items: itemProps,
|
|
1774
1786
|
maxItems,
|
|
1775
1787
|
minItems,
|
|
@@ -1911,12 +1923,14 @@ var uploadInputComponentToProps = (component) => {
|
|
|
1911
1923
|
};
|
|
1912
1924
|
|
|
1913
1925
|
// src/revamp/renderers/mappers/tupleComponentToProps.ts
|
|
1914
|
-
var tupleComponentToProps = ({ control, description, help, title }, children) => ({
|
|
1926
|
+
var tupleComponentToProps = ({ control, description, help, icon, image, title }, children) => ({
|
|
1915
1927
|
type: "form-section",
|
|
1916
1928
|
children,
|
|
1917
1929
|
control,
|
|
1918
1930
|
description,
|
|
1919
1931
|
help,
|
|
1932
|
+
icon,
|
|
1933
|
+
image,
|
|
1920
1934
|
title
|
|
1921
1935
|
});
|
|
1922
1936
|
|
|
@@ -7850,7 +7864,7 @@ var schemaHasValidationMessages = (schema) => Boolean("validationMessages" in sc
|
|
|
7850
7864
|
var mapCommonSchemaProps = (schemaMapperProps) => {
|
|
7851
7865
|
var _a;
|
|
7852
7866
|
const { uid, schema, required, validationErrors } = schemaMapperProps;
|
|
7853
|
-
const { $id, analyticsId, control, description, keywords, title, hidden } = schema;
|
|
7867
|
+
const { $id, analyticsId, control, description, icon, image, keywords, title, hidden } = schema;
|
|
7854
7868
|
return __spreadValues(__spreadValues({
|
|
7855
7869
|
uid,
|
|
7856
7870
|
id: $id != null ? $id : uid,
|
|
@@ -7860,6 +7874,8 @@ var mapCommonSchemaProps = (schemaMapperProps) => {
|
|
|
7860
7874
|
disabled: schemaHasDisabled(schema) ? schema.disabled : false,
|
|
7861
7875
|
errors: isString(validationErrors) ? [validationErrors] : void 0,
|
|
7862
7876
|
hidden: Boolean(hidden),
|
|
7877
|
+
icon,
|
|
7878
|
+
image,
|
|
7863
7879
|
keywords,
|
|
7864
7880
|
required: Boolean(required),
|
|
7865
7881
|
title,
|
|
@@ -7997,6 +8013,8 @@ var createObjectComponent = (objectProps) => {
|
|
|
7997
8013
|
displayOrder,
|
|
7998
8014
|
help,
|
|
7999
8015
|
hidden,
|
|
8016
|
+
icon,
|
|
8017
|
+
image,
|
|
8000
8018
|
summariser,
|
|
8001
8019
|
title
|
|
8002
8020
|
} = objectProps;
|
|
@@ -8009,6 +8027,8 @@ var createObjectComponent = (objectProps) => {
|
|
|
8009
8027
|
description,
|
|
8010
8028
|
help,
|
|
8011
8029
|
hidden,
|
|
8030
|
+
icon,
|
|
8031
|
+
image,
|
|
8012
8032
|
title,
|
|
8013
8033
|
getChildren() {
|
|
8014
8034
|
return displayOrder.map((propName) => this.componentMap[propName]);
|
|
@@ -8107,7 +8127,7 @@ var validateDisplayOrder = ($id, displayOrder, properties, logEvent) => {
|
|
|
8107
8127
|
|
|
8108
8128
|
// src/revamp/domain/components/AllOfComponent.ts
|
|
8109
8129
|
var createAllOfComponent = (allOfProps) => {
|
|
8110
|
-
const { uid, analyticsId, components, control, description, help, hidden, title } = allOfProps;
|
|
8130
|
+
const { uid, analyticsId, components, control, description, help, hidden, icon, image, title } = allOfProps;
|
|
8111
8131
|
return {
|
|
8112
8132
|
type: "all-of",
|
|
8113
8133
|
uid,
|
|
@@ -8117,6 +8137,8 @@ var createAllOfComponent = (allOfProps) => {
|
|
|
8117
8137
|
description,
|
|
8118
8138
|
help,
|
|
8119
8139
|
hidden,
|
|
8140
|
+
icon,
|
|
8141
|
+
image,
|
|
8120
8142
|
title,
|
|
8121
8143
|
getChildren() {
|
|
8122
8144
|
return this.components;
|
|
@@ -9521,7 +9543,19 @@ var arraySchemaToMultiSelectComponent = (schemaMapperProps, mapperProps) => {
|
|
|
9521
9543
|
|
|
9522
9544
|
// src/revamp/domain/components/TupleComponent.ts
|
|
9523
9545
|
var createTupleComponent = (tupleProps) => {
|
|
9524
|
-
const {
|
|
9546
|
+
const {
|
|
9547
|
+
uid,
|
|
9548
|
+
analyticsId,
|
|
9549
|
+
components,
|
|
9550
|
+
control,
|
|
9551
|
+
description,
|
|
9552
|
+
help,
|
|
9553
|
+
hidden,
|
|
9554
|
+
icon,
|
|
9555
|
+
image,
|
|
9556
|
+
summariser,
|
|
9557
|
+
title
|
|
9558
|
+
} = tupleProps;
|
|
9525
9559
|
return {
|
|
9526
9560
|
type: "tuple",
|
|
9527
9561
|
uid,
|
|
@@ -9531,6 +9565,8 @@ var createTupleComponent = (tupleProps) => {
|
|
|
9531
9565
|
description,
|
|
9532
9566
|
help,
|
|
9533
9567
|
hidden,
|
|
9568
|
+
icon,
|
|
9569
|
+
image,
|
|
9534
9570
|
title,
|
|
9535
9571
|
getChildren() {
|
|
9536
9572
|
return this.components;
|
|
@@ -11546,7 +11582,7 @@ var DateInputRenderer_default = DateInputRenderer;
|
|
|
11546
11582
|
// ../renderers/src/DecisionRenderer.tsx
|
|
11547
11583
|
import { NavigationOptionsList, NavigationOption, Header } from "@transferwise/components";
|
|
11548
11584
|
|
|
11549
|
-
// ../../node_modules/.pnpm/@wise+art@2.
|
|
11585
|
+
// ../../node_modules/.pnpm/@wise+art@2.16.1_@transferwise+neptune-css@14.19.0_@types+react@18.3.11_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wise/art/dist/index.esm.js
|
|
11550
11586
|
init_index_a91e5689_esm();
|
|
11551
11587
|
init_clsx();
|
|
11552
11588
|
import "react";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Model } from '@wise/dynamic-flow-types/build/next';
|
|
2
2
|
import type { BaseComponent, LocalValue, RepeatableSummary, DomainComponent } from '../types';
|
|
3
|
+
import { Icon, Image } from '@wise/dynamic-flow-types/build/next';
|
|
3
4
|
export type AllOfComponent = BaseComponent & {
|
|
4
5
|
type: 'all-of';
|
|
5
6
|
components: DomainComponent[];
|
|
@@ -7,11 +8,13 @@ export type AllOfComponent = BaseComponent & {
|
|
|
7
8
|
description?: string;
|
|
8
9
|
help?: string;
|
|
9
10
|
hidden: boolean;
|
|
11
|
+
icon?: Icon;
|
|
12
|
+
image?: Image;
|
|
10
13
|
title?: string;
|
|
11
14
|
getChildren: () => DomainComponent[];
|
|
12
15
|
getLocalValue: () => LocalValue;
|
|
13
16
|
};
|
|
14
|
-
export declare const createAllOfComponent: (allOfProps: Pick<AllOfComponent, "control" | "description" | "components" | "
|
|
17
|
+
export declare const createAllOfComponent: (allOfProps: Pick<AllOfComponent, "control" | "description" | "components" | "help" | "hidden" | "icon" | "image" | "title"> & {
|
|
15
18
|
uid: string;
|
|
16
19
|
analyticsId?: string;
|
|
17
20
|
summariser: (value: Model | null) => RepeatableSummary;
|
|
@@ -8,7 +8,7 @@ export type BooleanInputComponent = InputComponent<boolean> & {
|
|
|
8
8
|
validationAsyncState: ValidationAsyncState;
|
|
9
9
|
onChange: (value: boolean) => void;
|
|
10
10
|
};
|
|
11
|
-
export declare const createBooleanInputComponent: (booleanInputProps: Pick<BooleanInputComponent, "uid" | "id" | "analyticsId" | "control" | "description" | "disabled" | "errors" | "help" | "hidden" | "persistedState" | "required" | "title" | "value" | "validationAsyncState"> & {
|
|
11
|
+
export declare const createBooleanInputComponent: (booleanInputProps: Pick<BooleanInputComponent, "uid" | "id" | "analyticsId" | "control" | "description" | "disabled" | "errors" | "help" | "hidden" | "icon" | "image" | "persistedState" | "required" | "title" | "value" | "validationAsyncState"> & {
|
|
12
12
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
13
13
|
performRefresh: PerformRefresh | undefined;
|
|
14
14
|
performValidationAsync: PerformValidationAsync | undefined;
|
|
@@ -11,7 +11,7 @@ export type DateInputComponent = InputComponent<string | null> & {
|
|
|
11
11
|
validationAsyncState: ValidationAsyncState;
|
|
12
12
|
onChange: (value: string | null) => void;
|
|
13
13
|
};
|
|
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" | "validationAsyncState"> & {
|
|
14
|
+
export declare const createDateInputComponent: (textInputProps: Pick<DateInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "errors" | "description" | "disabled" | "help" | "hidden" | "icon" | "image" | "minimumDate" | "maximumDate" | "persistedState" | "placeholder" | "required" | "title" | "value" | "validationAsyncState"> & {
|
|
15
15
|
checks: IsInvalidCheck<string | null>[];
|
|
16
16
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
17
17
|
performRefresh: PerformRefresh | undefined;
|
|
@@ -11,7 +11,7 @@ export type IntegerInputComponent = InputComponent<number | null> & {
|
|
|
11
11
|
validationAsyncState: ValidationAsyncState;
|
|
12
12
|
onChange: (value: number | null) => void;
|
|
13
13
|
};
|
|
14
|
-
export declare const createIntegerInputComponent: (integerInputProps: Pick<IntegerInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "description" | "disabled" | "errors" | "help" | "hidden" | "maximum" | "minimum" | "persistedState" | "placeholder" | "required" | "title" | "value" | "validationAsyncState"> & {
|
|
14
|
+
export declare const createIntegerInputComponent: (integerInputProps: Pick<IntegerInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "description" | "disabled" | "errors" | "help" | "hidden" | "icon" | "image" | "maximum" | "minimum" | "persistedState" | "placeholder" | "required" | "title" | "value" | "validationAsyncState"> & {
|
|
15
15
|
checks: IsInvalidCheck<number | null>[];
|
|
16
16
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
17
17
|
performRefresh: PerformRefresh | undefined;
|
|
@@ -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, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "description" | "disabled" | "errors" | "hidden" | "maxItems" | "minItems" | "required" | "title" | "validationAsyncState"> & {
|
|
18
|
+
export declare const createMultiSelectComponent: (multiSelectProps: Pick<MultiSelectComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "description" | "disabled" | "errors" | "hidden" | "icon" | "image" | "maxItems" | "minItems" | "required" | "title" | "validationAsyncState"> & {
|
|
19
19
|
checks: IsInvalidCheck<LocalValueArray | null>[];
|
|
20
20
|
initialValue: LocalValue;
|
|
21
21
|
options: (SelectInputOption & {
|
|
@@ -16,7 +16,7 @@ export type MultiUploadInputComponent = InputComponent<File[]> & {
|
|
|
16
16
|
onDelete: (fileId: string) => Promise<void>;
|
|
17
17
|
onUpload: (file: File, fileId: string) => Promise<void>;
|
|
18
18
|
};
|
|
19
|
-
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"> & {
|
|
19
|
+
export declare const createMultiUploadInputComponent: (uploadInputProps: Pick<MultiUploadInputComponent, "uid" | "id" | "accepts" | "analyticsId" | "autoComplete" | "control" | "errors" | "description" | "disabled" | "format" | "help" | "hidden" | "icon" | "image" | "maxSize" | "minItems" | "maxItems" | "persistedState" | "placeholder" | "required" | "title" | "uploadLabel" | "value"> & {
|
|
20
20
|
checks: IsInvalidCheck<File[]>[];
|
|
21
21
|
fileChecks: IsInvalidCheck<File>[];
|
|
22
22
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
@@ -11,7 +11,7 @@ export type NumberInputComponent = InputComponent<number | null> & {
|
|
|
11
11
|
validationAsyncState: ValidationAsyncState;
|
|
12
12
|
onChange: (value: number | null) => void;
|
|
13
13
|
};
|
|
14
|
-
export declare const createNumberInputComponent: (numberInputProps: Pick<NumberInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "description" | "disabled" | "errors" | "help" | "hidden" | "maximum" | "minimum" | "persistedState" | "placeholder" | "required" | "title" | "value" | "validationAsyncState"> & {
|
|
14
|
+
export declare const createNumberInputComponent: (numberInputProps: Pick<NumberInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "description" | "disabled" | "errors" | "help" | "hidden" | "icon" | "image" | "maximum" | "minimum" | "persistedState" | "placeholder" | "required" | "title" | "value" | "validationAsyncState"> & {
|
|
15
15
|
checks: IsInvalidCheck<number | null>[];
|
|
16
16
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
17
17
|
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, "control" | "description" | "componentMap" | "
|
|
8
|
+
export declare const createObjectComponent: (objectProps: Pick<ObjectComponent, "control" | "description" | "componentMap" | "help" | "hidden" | "icon" | "image" | "title"> & {
|
|
9
9
|
uid: string;
|
|
10
10
|
analyticsId?: string;
|
|
11
11
|
displayOrder: string[];
|
|
@@ -20,7 +20,7 @@ export type RepeatableComponent = ComponentWithTitle & {
|
|
|
20
20
|
onRemove: () => void;
|
|
21
21
|
onSave: () => boolean;
|
|
22
22
|
};
|
|
23
|
-
export declare const createRepeatableComponent: (repeatableProps: Pick<RepeatableComponent, "uid" | "id" | "addItemTitle" | "components" | "control" | "description" | "editItemTitle" | "errors" | "hidden" | "maxItems" | "minItems" | "title"> & {
|
|
23
|
+
export declare const createRepeatableComponent: (repeatableProps: Pick<RepeatableComponent, "uid" | "id" | "addItemTitle" | "components" | "control" | "description" | "editItemTitle" | "errors" | "hidden" | "icon" | "image" | "maxItems" | "minItems" | "title"> & {
|
|
24
24
|
analyticsId?: string;
|
|
25
25
|
checks: IsInvalidCheck<LocalValueArray | null>[];
|
|
26
26
|
summary?: SummarySummariser;
|
|
@@ -21,7 +21,7 @@ export type SelectInputOption = {
|
|
|
21
21
|
keywords?: string[];
|
|
22
22
|
disabled: boolean;
|
|
23
23
|
};
|
|
24
|
-
export declare const createSelectInputComponent: (selectProps: Pick<SelectInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "errors" | "description" | "disabled" | "help" | "hidden" | "placeholder" | "required" | "title"> & {
|
|
24
|
+
export declare const createSelectInputComponent: (selectProps: Pick<SelectInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "errors" | "description" | "disabled" | "help" | "hidden" | "icon" | "image" | "placeholder" | "required" | "title"> & {
|
|
25
25
|
initialModel: Model;
|
|
26
26
|
options: (SelectInputOption & {
|
|
27
27
|
component: DomainComponent;
|
|
@@ -12,7 +12,7 @@ export type TextInputComponent = InputComponent<string | null> & {
|
|
|
12
12
|
validationAsyncState: ValidationAsyncState;
|
|
13
13
|
onChange: (value: string | null) => void;
|
|
14
14
|
};
|
|
15
|
-
export declare const createTextInputComponent: (textInputProps: Pick<TextInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "errors" | "description" | "disabled" | "displayFormat" | "help" | "hidden" | "maxLength" | "minLength" | "persistedState" | "placeholder" | "required" | "title" | "value" | "validationAsyncState"> & {
|
|
15
|
+
export declare const createTextInputComponent: (textInputProps: Pick<TextInputComponent, "uid" | "id" | "analyticsId" | "autoComplete" | "control" | "errors" | "description" | "disabled" | "displayFormat" | "help" | "hidden" | "icon" | "image" | "maxLength" | "minLength" | "persistedState" | "placeholder" | "required" | "title" | "value" | "validationAsyncState"> & {
|
|
16
16
|
checks: IsInvalidCheck<string | null>[];
|
|
17
17
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
18
18
|
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, "control" | "description" | "components" | "
|
|
8
|
+
export declare const createTupleComponent: (tupleProps: Pick<TupleComponent, "control" | "description" | "components" | "help" | "hidden" | "icon" | "image" | "title"> & {
|
|
9
9
|
uid: string;
|
|
10
10
|
analyticsId?: string;
|
|
11
11
|
summariser: (value: LocalValue | null) => RepeatableSummary;
|
|
@@ -11,7 +11,7 @@ export type UploadInputComponent = InputComponent<File | null> & {
|
|
|
11
11
|
validationAsyncState?: undefined;
|
|
12
12
|
onUpload: (value: File | null) => Promise<void>;
|
|
13
13
|
};
|
|
14
|
-
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
|
+
export declare const createUploadInputComponent: (uploadInputProps: Pick<UploadInputComponent, "uid" | "id" | "accepts" | "analyticsId" | "autoComplete" | "control" | "errors" | "description" | "disabled" | "format" | "help" | "hidden" | "icon" | "image" | "maxSize" | "persistedState" | "placeholder" | "required" | "title" | "value"> & {
|
|
15
15
|
checks: IsInvalidCheck<File | null>[];
|
|
16
16
|
performPersistAsync: PerformPersistAsync | undefined;
|
|
17
17
|
performRefresh?: PerformRefresh | undefined;
|
|
@@ -10,6 +10,8 @@ export declare const mapCommonSchemaProps: (schemaMapperProps: SchemaMapperProps
|
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
errors: string[] | undefined;
|
|
12
12
|
hidden: boolean;
|
|
13
|
+
icon: import("@wise/dynamic-flow-types/build/next").Icon | undefined;
|
|
14
|
+
image: import("@wise/dynamic-flow-types/build/next").Image | undefined;
|
|
13
15
|
keywords: string[] | undefined;
|
|
14
16
|
required: boolean;
|
|
15
17
|
title: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { AllOfComponent } from '../../domain/components/AllOfComponent';
|
|
3
3
|
import type { FormSectionRendererProps } from '@wise/dynamic-flow-renderers';
|
|
4
|
-
export declare const allOfComponentToProps: ({ control, description, help, title }: AllOfComponent, children: ReactNode) => FormSectionRendererProps;
|
|
4
|
+
export declare const allOfComponentToProps: ({ control, description, help, icon, image, title }: AllOfComponent, children: ReactNode) => FormSectionRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { ObjectComponent } from '../../domain/components/ObjectComponent';
|
|
3
3
|
import type { FormSectionRendererProps } from '@wise/dynamic-flow-renderers';
|
|
4
|
-
export declare const objectComponentToProps: ({ control, description, help, title }: ObjectComponent, children: ReactNode) => FormSectionRendererProps;
|
|
4
|
+
export declare const objectComponentToProps: ({ control, description, help, icon, image, title }: ObjectComponent, children: ReactNode) => FormSectionRendererProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { TupleComponent } from '../../domain/components/TupleComponent';
|
|
3
3
|
import { FormSectionRendererProps } from '@wise/dynamic-flow-renderers';
|
|
4
|
-
export declare const tupleComponentToProps: ({ control, description, help, title }: TupleComponent, children: ReactNode) => FormSectionRendererProps;
|
|
4
|
+
export declare const tupleComponentToProps: ({ control, description, help, icon, image, title }: TupleComponent, children: ReactNode) => FormSectionRendererProps;
|
|
@@ -8,7 +8,9 @@ export declare const inputComponentToProps: <T extends string, V extends LocalVa
|
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
error: string | undefined;
|
|
10
10
|
help: string | undefined;
|
|
11
|
+
icon: import("@wise/dynamic-flow-renderers").Icon | undefined;
|
|
11
12
|
id: string;
|
|
13
|
+
image: import("@wise/dynamic-flow-renderers").Image | undefined;
|
|
12
14
|
label: string | undefined;
|
|
13
15
|
placeholder: string | undefined;
|
|
14
16
|
required: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise/dynamic-flow-client",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.23.0",
|
|
4
4
|
"description": "Dynamic Flow web client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./build/main.min.js",
|
|
@@ -34,32 +34,32 @@
|
|
|
34
34
|
"@babel/preset-react": "7.25.7",
|
|
35
35
|
"@babel/preset-typescript": "7.25.7",
|
|
36
36
|
"@chromatic-com/storybook": "2.0.2",
|
|
37
|
-
"@formatjs/cli": "^6.
|
|
38
|
-
"@storybook/addon-a11y": "^8.3.
|
|
39
|
-
"@storybook/addon-actions": "^8.3.
|
|
40
|
-
"@storybook/addon-essentials": "^8.3.
|
|
41
|
-
"@storybook/addon-interactions": "^8.3.
|
|
42
|
-
"@storybook/addon-links": "^8.3.
|
|
37
|
+
"@formatjs/cli": "^6.3.0",
|
|
38
|
+
"@storybook/addon-a11y": "^8.3.6",
|
|
39
|
+
"@storybook/addon-actions": "^8.3.6",
|
|
40
|
+
"@storybook/addon-essentials": "^8.3.6",
|
|
41
|
+
"@storybook/addon-interactions": "^8.3.6",
|
|
42
|
+
"@storybook/addon-links": "^8.3.6",
|
|
43
43
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
44
|
-
"@storybook/manager-api": "^8.3.
|
|
45
|
-
"@storybook/react": "^8.3.
|
|
46
|
-
"@storybook/react-webpack5": "^8.3.
|
|
47
|
-
"@storybook/test": "^8.3.
|
|
48
|
-
"@storybook/types": "^8.3.
|
|
44
|
+
"@storybook/manager-api": "^8.3.6",
|
|
45
|
+
"@storybook/react": "^8.3.6",
|
|
46
|
+
"@storybook/react-webpack5": "^8.3.6",
|
|
47
|
+
"@storybook/test": "^8.3.6",
|
|
48
|
+
"@storybook/types": "^8.3.6",
|
|
49
49
|
"@testing-library/dom": "10.4.0",
|
|
50
|
-
"@testing-library/jest-dom": "6.
|
|
50
|
+
"@testing-library/jest-dom": "6.6.2",
|
|
51
51
|
"@testing-library/react": "16.0.1",
|
|
52
52
|
"@testing-library/user-event": "14.5.2",
|
|
53
53
|
"@transferwise/components": "46.71.3",
|
|
54
54
|
"@transferwise/formatting": "^2.13.0",
|
|
55
55
|
"@transferwise/icons": "3.13.1",
|
|
56
56
|
"@transferwise/neptune-css": "14.19.0",
|
|
57
|
-
"@types/node": "22.7.
|
|
57
|
+
"@types/node": "22.7.7",
|
|
58
58
|
"@types/jest": "29.5.13",
|
|
59
59
|
"@types/react": "18.3.11",
|
|
60
60
|
"@types/react-dom": "18.3.1",
|
|
61
61
|
"@types/react-intl": "3.0.0",
|
|
62
|
-
"@wise/art": "2.
|
|
62
|
+
"@wise/art": "2.16.1",
|
|
63
63
|
"@wise/components-theming": "^1.6.0",
|
|
64
64
|
"babel-jest": "29.7.0",
|
|
65
65
|
"esbuild": "0.24.0",
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
"jest-fetch-mock": "^3.0.3",
|
|
69
69
|
"jest-watch-typeahead": "^2.2.2",
|
|
70
70
|
"nanoid": "5.0.7",
|
|
71
|
-
"npm-run-all2": "6.2.
|
|
71
|
+
"npm-run-all2": "6.2.4",
|
|
72
72
|
"postcss": "^8.4.47",
|
|
73
73
|
"postcss-cli": "^11.0.0",
|
|
74
74
|
"postcss-import": "^15.1.0",
|
|
75
75
|
"react": "18.3.1",
|
|
76
76
|
"react-dom": "18.3.1",
|
|
77
77
|
"react-intl": "6.8.0",
|
|
78
|
-
"storybook": "^8.3.
|
|
78
|
+
"storybook": "^8.3.6",
|
|
79
79
|
"stylelint": "16.10.0",
|
|
80
80
|
"stylelint-config-standard": "36.0.1",
|
|
81
81
|
"stylelint-no-unsupported-browser-features": "8.0.1",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"nanoid": "5.0.7",
|
|
102
102
|
"react-webcam": "^7.2.0",
|
|
103
103
|
"screenfull": "^5.2.0",
|
|
104
|
-
"@wise/dynamic-flow-types": "2.
|
|
104
|
+
"@wise/dynamic-flow-types": "2.25.0"
|
|
105
105
|
},
|
|
106
106
|
"scripts": {
|
|
107
107
|
"dev": "pnpm build:visual-tests && storybook dev -p 3003",
|