@wise/dynamic-flow-types 3.9.0 → 3.10.0-experimental-5de9758
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 +731 -690
- package/build/main.mjs +731 -690
- package/build/next/feature/SuggestionsValue.d.ts +5 -0
- package/build/next/feature/SummaryProvider.d.ts +4 -0
- package/build/next/feature/SummarySummariser.d.ts +9 -0
- package/build/next/feature/toolbar/Toolbar.d.ts +14 -0
- package/build/next/feature/toolbar/ToolbarButton.d.ts +41 -0
- package/build/next/feature/toolbar/ToolbarItem.d.ts +2 -0
- package/build/next/index.d.ts +4 -0
- package/build/next/layout/DecisionLayoutOption.d.ts +5 -0
- package/build/next/layout/ListLayoutItem.d.ts +5 -0
- package/build/next/layout/ReviewLayoutField.d.ts +7 -2
- package/build/next/responses/search/SearchResultAction.d.ts +5 -0
- package/build/next/responses/search/SearchResultSearch.d.ts +5 -0
- package/build/next/schema/AllOfSchema.d.ts +7 -2
- package/build/next/schema/ArraySchemaList.d.ts +7 -2
- package/build/next/schema/ArraySchemaTuple.d.ts +7 -2
- package/build/next/schema/BlobSchema.d.ts +7 -2
- package/build/next/schema/BooleanSchema.d.ts +7 -2
- package/build/next/schema/ConstSchema.d.ts +7 -2
- package/build/next/schema/IntegerSchema.d.ts +7 -2
- package/build/next/schema/NumberSchema.d.ts +7 -2
- package/build/next/schema/ObjectSchema.d.ts +7 -2
- package/build/next/schema/OneOfSchema.d.ts +7 -2
- package/build/next/schema/StringSchema.d.ts +6 -0
- package/build/next/step/Step.d.ts +6 -0
- package/build/renderers/BaseInputRendererProps.d.ts +2 -0
- package/build/renderers/DecisionRendererProps.d.ts +2 -0
- package/build/renderers/FormSectionRendererProps.d.ts +2 -0
- package/build/renderers/ListRendererProps.d.ts +2 -0
- package/build/renderers/Media.d.ts +28 -0
- package/build/renderers/RepeatableRendererProps.d.ts +3 -0
- package/build/renderers/ReviewRendererProps.d.ts +2 -0
- package/build/renderers/SearchRendererProps.d.ts +2 -0
- package/build/renderers/SelectInputRendererProps.d.ts +2 -0
- package/build/renderers/Suggestions.d.ts +2 -0
- package/build/renderers/index.d.ts +2 -0
- package/build/zod/schemas.d.ts +2503 -1396
- package/build/zod/schemas.ts +780 -733
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { JsonElement } from '../JsonElement';
|
|
2
2
|
import type { Icon } from '../misc/Icon';
|
|
3
3
|
import type { Image } from '../misc/Image';
|
|
4
|
+
import type { Media } from '../misc/media/Media';
|
|
4
5
|
/**
|
|
5
6
|
* Represents a suggested value.
|
|
6
7
|
*/
|
|
@@ -26,6 +27,10 @@ export type SuggestionsValue = {
|
|
|
26
27
|
*/
|
|
27
28
|
tag?: string;
|
|
28
29
|
/**
|
|
30
|
+
* A media object (avatar, icon, image) which the client can use to represent this suggestion.
|
|
31
|
+
*/
|
|
32
|
+
media?: Media;
|
|
33
|
+
/**
|
|
29
34
|
* An optional identifier to be used in analytics tracking.
|
|
30
35
|
*/
|
|
31
36
|
analyticsId?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Icon } from '../misc/Icon';
|
|
2
2
|
import type { Image } from '../misc/Image';
|
|
3
|
+
import type { Media } from '../misc/media/Media';
|
|
3
4
|
/**
|
|
4
5
|
* A schema which summarises its child schemas.
|
|
5
6
|
* Default values can be specified for the summary if values are not provided by its child schemas.
|
|
@@ -37,4 +38,12 @@ export type SummarySummariser = {
|
|
|
37
38
|
* If true, the image of this schema can be used as a summary image.
|
|
38
39
|
*/
|
|
39
40
|
providesImage?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* A Media to be used for the summary if a media is not provided by a child schema.
|
|
43
|
+
*/
|
|
44
|
+
defaultMedia?: Media;
|
|
45
|
+
/**
|
|
46
|
+
* If true, the media of this schema can be used as a summary media.
|
|
47
|
+
*/
|
|
48
|
+
providesMedia?: boolean;
|
|
40
49
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ToolbarItem } from './ToolbarItem';
|
|
2
|
+
/**
|
|
3
|
+
* `Toolbar` contains an optional array of type `Toolbar.Item` containing items to be displayed in the toolbar.
|
|
4
|
+
*/
|
|
5
|
+
export type Toolbar = {
|
|
6
|
+
/**
|
|
7
|
+
* Specify a particular control to use to represent the toolbar. If the control is unknown, it will be ignored.
|
|
8
|
+
*/
|
|
9
|
+
control?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The items to be displayed in the toolbar.
|
|
12
|
+
*/
|
|
13
|
+
items: ToolbarItem[];
|
|
14
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Behavior } from '../Behavior';
|
|
2
|
+
import type { Media } from '../../misc/media/Media';
|
|
3
|
+
import type { Context } from '../../misc/Context';
|
|
4
|
+
export type ToolbarButton = {
|
|
5
|
+
/**
|
|
6
|
+
* It must be `toolbar-button`.
|
|
7
|
+
*/
|
|
8
|
+
type: 'toolbar-button';
|
|
9
|
+
/**
|
|
10
|
+
* A user-facing title.
|
|
11
|
+
*/
|
|
12
|
+
title: string;
|
|
13
|
+
/**
|
|
14
|
+
* A behavior to be performed when the button is pressed.
|
|
15
|
+
*/
|
|
16
|
+
behavior: Behavior;
|
|
17
|
+
/**
|
|
18
|
+
* An optional description for screen readers.
|
|
19
|
+
*/
|
|
20
|
+
accessibilityDescription?: string;
|
|
21
|
+
/**
|
|
22
|
+
* A visual asset which the client can use to represent this type.
|
|
23
|
+
*/
|
|
24
|
+
media?: Media;
|
|
25
|
+
/**
|
|
26
|
+
* Specify a particular control to use to represent the toolbar button. If the control is unknown, it will be ignored.
|
|
27
|
+
*/
|
|
28
|
+
control?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The semantics of the button. Defaults to neutral.
|
|
31
|
+
*/
|
|
32
|
+
context?: Context;
|
|
33
|
+
/**
|
|
34
|
+
* If `true`, user interaction is disabled. Defaults to `false`.
|
|
35
|
+
*/
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* An optional identifier to be used in analytics tracking.
|
|
39
|
+
*/
|
|
40
|
+
analyticsId?: string;
|
|
41
|
+
};
|
package/build/next/index.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ export type { Behavior } from './feature/Behavior';
|
|
|
12
12
|
export type { DismissBehavior } from './feature/DismissBehavior';
|
|
13
13
|
export type { LinkBehavior } from './feature/LinkBehavior';
|
|
14
14
|
export type { ModalBehavior } from './feature/ModalBehavior';
|
|
15
|
+
export type { Toolbar } from './feature/toolbar/Toolbar';
|
|
16
|
+
export type { ToolbarButton } from './feature/toolbar/ToolbarButton';
|
|
17
|
+
export type { ToolbarItem } from './feature/toolbar/ToolbarItem';
|
|
15
18
|
export type { LinkHandler } from './feature/LinkHandler';
|
|
16
19
|
export type { AdditionalInfo } from './misc/AdditionalInfo';
|
|
17
20
|
export type { Align } from './misc/Align';
|
|
@@ -20,6 +23,7 @@ export type { Context } from './misc/Context';
|
|
|
20
23
|
export type { Icon } from './misc/Icon';
|
|
21
24
|
export type { Image } from './misc/Image';
|
|
22
25
|
export type { InlineAlert } from './misc/InlineAlert';
|
|
26
|
+
export type { Media } from './misc/media/Media';
|
|
23
27
|
export type { Size as Margin, Size } from './misc/Size';
|
|
24
28
|
export type { SupportingValues } from './misc/SupportingValues';
|
|
25
29
|
export type { AlertLayout } from './layout/AlertLayout';
|
|
@@ -4,6 +4,7 @@ import type { Image } from '../misc/Image';
|
|
|
4
4
|
import type { Behavior } from '../feature/Behavior';
|
|
5
5
|
import type { SupportingValues } from '../misc/SupportingValues';
|
|
6
6
|
import type { InlineAlert } from '../misc/InlineAlert';
|
|
7
|
+
import type { Media } from '../misc/media/Media';
|
|
7
8
|
/**
|
|
8
9
|
* An option is a single entry in the decision that the user can choose.
|
|
9
10
|
*/
|
|
@@ -55,6 +56,10 @@ export type DecisionLayoutOption = {
|
|
|
55
56
|
*/
|
|
56
57
|
inlineAlert?: InlineAlert;
|
|
57
58
|
/**
|
|
59
|
+
* A media object (avatar, icon, image) which the client can use to represent this option.
|
|
60
|
+
*/
|
|
61
|
+
media?: Media;
|
|
62
|
+
/**
|
|
58
63
|
* An optional identifier to be used in analytics tracking.
|
|
59
64
|
*/
|
|
60
65
|
analyticsId?: string;
|
|
@@ -4,6 +4,7 @@ import type { Image } from '../misc/Image';
|
|
|
4
4
|
import type { AdditionalInfo } from '../misc/AdditionalInfo';
|
|
5
5
|
import type { SupportingValues } from '../misc/SupportingValues';
|
|
6
6
|
import type { InlineAlert } from '../misc/InlineAlert';
|
|
7
|
+
import type { Media } from '../misc/media/Media';
|
|
7
8
|
/**
|
|
8
9
|
* A single entry in a [ListLayout].
|
|
9
10
|
*/
|
|
@@ -62,6 +63,10 @@ export type ListLayoutItem = {
|
|
|
62
63
|
*/
|
|
63
64
|
description?: string;
|
|
64
65
|
/**
|
|
66
|
+
* A media object (avatar, icon, image) which the client can use to represent this item.
|
|
67
|
+
*/
|
|
68
|
+
media?: Media;
|
|
69
|
+
/**
|
|
65
70
|
* An optional identifier to be used in analytics tracking.
|
|
66
71
|
*/
|
|
67
72
|
analyticsId?: string;
|
|
@@ -4,6 +4,7 @@ import type { Image } from '../misc/Image';
|
|
|
4
4
|
import type { AdditionalInfo } from '../misc/AdditionalInfo';
|
|
5
5
|
import type { InlineAlert } from '../misc/InlineAlert';
|
|
6
6
|
import type { ReviewLayoutCallToAction } from './ReviewLayoutCallToAction';
|
|
7
|
+
import type { Media } from '../misc/media/Media';
|
|
7
8
|
/**
|
|
8
9
|
* A single field in a [ReviewLayout]
|
|
9
10
|
*/
|
|
@@ -32,11 +33,11 @@ export type ReviewLayoutField = {
|
|
|
32
33
|
*/
|
|
33
34
|
tag?: string;
|
|
34
35
|
/**
|
|
35
|
-
* An icon to represent the
|
|
36
|
+
* An icon to represent the field.
|
|
36
37
|
*/
|
|
37
38
|
icon?: Icon;
|
|
38
39
|
/**
|
|
39
|
-
* An image to represent the
|
|
40
|
+
* An image to represent the field.
|
|
40
41
|
*/
|
|
41
42
|
image?: Image;
|
|
42
43
|
/**
|
|
@@ -52,6 +53,10 @@ export type ReviewLayoutField = {
|
|
|
52
53
|
*/
|
|
53
54
|
callToAction?: ReviewLayoutCallToAction;
|
|
54
55
|
/**
|
|
56
|
+
* A media object (avatar, icon, image) which the client can use to represent this field.
|
|
57
|
+
*/
|
|
58
|
+
media?: Media;
|
|
59
|
+
/**
|
|
55
60
|
* An optional identifier to be used in analytics tracking.
|
|
56
61
|
*/
|
|
57
62
|
analyticsId?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Icon } from '../../misc/Icon';
|
|
2
2
|
import type { Image } from '../../misc/Image';
|
|
3
3
|
import type { Action } from '../../feature/Action';
|
|
4
|
+
import type { Media } from '../../misc/media/Media';
|
|
4
5
|
/**
|
|
5
6
|
* A search result which contains an [com.wise.dynamicflow.feature.Action] to perform when the result is selected.
|
|
6
7
|
*/
|
|
@@ -29,4 +30,8 @@ export type SearchResultAction = {
|
|
|
29
30
|
* The action to perform when the option is selected.
|
|
30
31
|
*/
|
|
31
32
|
value: Action;
|
|
33
|
+
/**
|
|
34
|
+
* The media object (avatar, icon, image) which the client can use to represent this search result.
|
|
35
|
+
*/
|
|
36
|
+
media?: Media;
|
|
32
37
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Icon } from '../../misc/Icon';
|
|
2
2
|
import type { Image } from '../../misc/Image';
|
|
3
3
|
import type { SearchSearchRequest } from './SearchSearchRequest';
|
|
4
|
+
import type { Media } from '../../misc/media/Media';
|
|
4
5
|
/**
|
|
5
6
|
* A search result which contains another search to be performed when selected. Can be used to provide groups of
|
|
6
7
|
* results or simple pagination.
|
|
@@ -30,4 +31,8 @@ export type SearchResultSearch = {
|
|
|
30
31
|
* A search configuration to used when the option is selected.
|
|
31
32
|
*/
|
|
32
33
|
value: SearchSearchRequest;
|
|
34
|
+
/**
|
|
35
|
+
* The media object (avatar, icon, image) which the client can use to represent this search result.
|
|
36
|
+
*/
|
|
37
|
+
media?: Media;
|
|
33
38
|
};
|
|
@@ -3,6 +3,7 @@ import type { Icon } from '../misc/Icon';
|
|
|
3
3
|
import type { Image } from '../misc/Image';
|
|
4
4
|
import type { SummaryProvider } from '../feature/SummaryProvider';
|
|
5
5
|
import type { AlertLayout } from '../layout/AlertLayout';
|
|
6
|
+
import type { Media } from '../misc/media/Media';
|
|
6
7
|
/**
|
|
7
8
|
* A schema which merges the value of its child schemas.
|
|
8
9
|
* Use an allOf schema to represent a form section where the submission payload is the result of merging the allOf's child schemas.
|
|
@@ -45,11 +46,11 @@ export type AllOfSchema = {
|
|
|
45
46
|
*/
|
|
46
47
|
hidden?: boolean;
|
|
47
48
|
/**
|
|
48
|
-
* An icon which the client can use to represent this
|
|
49
|
+
* An icon which the client can use to represent this entity.
|
|
49
50
|
*/
|
|
50
51
|
icon?: Icon;
|
|
51
52
|
/**
|
|
52
|
-
* An image which the client can use to represent this
|
|
53
|
+
* An image which the client can use to represent this entity.
|
|
53
54
|
*/
|
|
54
55
|
image?: Image;
|
|
55
56
|
/**
|
|
@@ -73,4 +74,8 @@ export type AllOfSchema = {
|
|
|
73
74
|
* [com.wise.dynamicflow.feature.Action] for server-side validation.
|
|
74
75
|
*/
|
|
75
76
|
alert?: AlertLayout;
|
|
77
|
+
/**
|
|
78
|
+
* A media object which the client can use to represent this entity.
|
|
79
|
+
*/
|
|
80
|
+
media?: Media;
|
|
76
81
|
};
|
|
@@ -5,6 +5,7 @@ import type { SummarySummariser } from '../feature/SummarySummariser';
|
|
|
5
5
|
import type { PersistAsync } from '../feature/PersistAsync';
|
|
6
6
|
import type { ValidateAsync } from '../feature/ValidateAsync';
|
|
7
7
|
import type { AlertLayout } from '../layout/AlertLayout';
|
|
8
|
+
import type { Media } from '../misc/media/Media';
|
|
8
9
|
/**
|
|
9
10
|
* A variable length array where each item matches the items JSON schema. This can be used, for example, to create a
|
|
10
11
|
* repeating form section, or multi-file upload.
|
|
@@ -66,11 +67,11 @@ export type ArraySchemaList = {
|
|
|
66
67
|
*/
|
|
67
68
|
hidden?: boolean;
|
|
68
69
|
/**
|
|
69
|
-
* An icon which the client can use to represent this
|
|
70
|
+
* An icon which the client can use to represent this entity.
|
|
70
71
|
*/
|
|
71
72
|
icon?: Icon;
|
|
72
73
|
/**
|
|
73
|
-
* An image which the client can use to represent this
|
|
74
|
+
* An image which the client can use to represent this entity.
|
|
74
75
|
*/
|
|
75
76
|
image?: Image;
|
|
76
77
|
/**
|
|
@@ -112,4 +113,8 @@ export type ArraySchemaList = {
|
|
|
112
113
|
* Defaults to false.
|
|
113
114
|
*/
|
|
114
115
|
disabled?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* A media object which the client can use to represent this entity.
|
|
118
|
+
*/
|
|
119
|
+
media?: Media;
|
|
115
120
|
};
|
|
@@ -5,6 +5,7 @@ import type { SummaryProvider } from '../feature/SummaryProvider';
|
|
|
5
5
|
import type { PersistAsync } from '../feature/PersistAsync';
|
|
6
6
|
import type { ValidateAsync } from '../feature/ValidateAsync';
|
|
7
7
|
import type { AlertLayout } from '../layout/AlertLayout';
|
|
8
|
+
import type { Media } from '../misc/media/Media';
|
|
8
9
|
/**
|
|
9
10
|
* A fixed-length array where each schema represents the data at the corresponding element in the array.
|
|
10
11
|
* As ordering needs to remain consistent, the submission value will include null values where applicable.
|
|
@@ -45,11 +46,11 @@ export type ArraySchemaTuple = {
|
|
|
45
46
|
*/
|
|
46
47
|
hidden?: boolean;
|
|
47
48
|
/**
|
|
48
|
-
* An icon which the client can use to represent this
|
|
49
|
+
* An icon which the client can use to represent this entity.
|
|
49
50
|
*/
|
|
50
51
|
icon?: Icon;
|
|
51
52
|
/**
|
|
52
|
-
* An image which the client can use to represent this
|
|
53
|
+
* An image which the client can use to represent this entity.
|
|
53
54
|
*/
|
|
54
55
|
image?: Image;
|
|
55
56
|
/**
|
|
@@ -81,4 +82,8 @@ export type ArraySchemaTuple = {
|
|
|
81
82
|
* [com.wise.dynamicflow.feature.Action] for server-side validation.
|
|
82
83
|
*/
|
|
83
84
|
alert?: AlertLayout;
|
|
85
|
+
/**
|
|
86
|
+
* A media object which the client can use to represent this entity.
|
|
87
|
+
*/
|
|
88
|
+
media?: Media;
|
|
84
89
|
};
|
|
@@ -5,6 +5,7 @@ import type { ValidateAsync } from '../feature/ValidateAsync';
|
|
|
5
5
|
import type { AlertLayout } from '../layout/AlertLayout';
|
|
6
6
|
import type { JsonElement } from '../JsonElement';
|
|
7
7
|
import type { UploadSource } from '../feature/UploadSource';
|
|
8
|
+
import type { Media } from '../misc/media/Media';
|
|
8
9
|
/**
|
|
9
10
|
* Represents a binary data submission using Form Data rather than JSON.
|
|
10
11
|
* It can only be used as the schema of a [com.wise.dynamicflow.feature.PersistAsync] configuration.
|
|
@@ -40,11 +41,11 @@ export type BlobSchema = {
|
|
|
40
41
|
*/
|
|
41
42
|
hidden?: boolean;
|
|
42
43
|
/**
|
|
43
|
-
* An icon which the client can use to represent this
|
|
44
|
+
* An icon which the client can use to represent this entity.
|
|
44
45
|
*/
|
|
45
46
|
icon?: Icon;
|
|
46
47
|
/**
|
|
47
|
-
* An image which the client can use to represent this
|
|
48
|
+
* An image which the client can use to represent this entity.
|
|
48
49
|
*/
|
|
49
50
|
image?: Image;
|
|
50
51
|
/**
|
|
@@ -101,4 +102,8 @@ export type BlobSchema = {
|
|
|
101
102
|
* Defaults to false.
|
|
102
103
|
*/
|
|
103
104
|
disabled?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* A media object which the client can use to represent this entity.
|
|
107
|
+
*/
|
|
108
|
+
media?: Media;
|
|
104
109
|
};
|
|
@@ -6,6 +6,7 @@ import type { ValidateAsync } from '../feature/ValidateAsync';
|
|
|
6
6
|
import type { AlertLayout } from '../layout/AlertLayout';
|
|
7
7
|
import type { Help } from '../feature/Help';
|
|
8
8
|
import type { Behavior } from '../feature/Behavior';
|
|
9
|
+
import type { Media } from '../misc/media/Media';
|
|
9
10
|
/**
|
|
10
11
|
* Represents a boolean value in the submission.
|
|
11
12
|
* The submission value is either `true` or `false`, defaulting to `false`.
|
|
@@ -67,11 +68,11 @@ export type BooleanSchema = {
|
|
|
67
68
|
*/
|
|
68
69
|
disabled?: boolean;
|
|
69
70
|
/**
|
|
70
|
-
* An icon which the client can use to represent this
|
|
71
|
+
* An icon which the client can use to represent this entity.
|
|
71
72
|
*/
|
|
72
73
|
icon?: Icon;
|
|
73
74
|
/**
|
|
74
|
-
* An image which the client can use to represent this
|
|
75
|
+
* An image which the client can use to represent this entity.
|
|
75
76
|
*/
|
|
76
77
|
image?: Image;
|
|
77
78
|
/**
|
|
@@ -134,4 +135,8 @@ export type BooleanSchema = {
|
|
|
134
135
|
* The [com.wise.dynamicflow.feature.Behavior] that should be performed when the schema value changes.
|
|
135
136
|
*/
|
|
136
137
|
onChange?: Behavior;
|
|
138
|
+
/**
|
|
139
|
+
* A media object which the client can use to represent this entity.
|
|
140
|
+
*/
|
|
141
|
+
media?: Media;
|
|
137
142
|
};
|
|
@@ -3,6 +3,7 @@ import type { JsonElement } from '../JsonElement';
|
|
|
3
3
|
import type { Icon } from '../misc/Icon';
|
|
4
4
|
import type { Image } from '../misc/Image';
|
|
5
5
|
import type { SummaryProvider } from '../feature/SummaryProvider';
|
|
6
|
+
import type { Media } from '../misc/media/Media';
|
|
6
7
|
/**
|
|
7
8
|
* Represents a constant value in the submission.
|
|
8
9
|
*/
|
|
@@ -44,11 +45,11 @@ export type ConstSchema = {
|
|
|
44
45
|
*/
|
|
45
46
|
description?: string;
|
|
46
47
|
/**
|
|
47
|
-
* An icon which the client can use to represent this
|
|
48
|
+
* An icon which the client can use to represent this entity.
|
|
48
49
|
*/
|
|
49
50
|
icon?: Icon;
|
|
50
51
|
/**
|
|
51
|
-
* An image which the client can use to represent this
|
|
52
|
+
* An image which the client can use to represent this entity.
|
|
52
53
|
*/
|
|
53
54
|
image?: Image;
|
|
54
55
|
/**
|
|
@@ -70,4 +71,8 @@ export type ConstSchema = {
|
|
|
70
71
|
* Defaults to false.
|
|
71
72
|
*/
|
|
72
73
|
disabled?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* A media object which the client can use to represent this entity.
|
|
76
|
+
*/
|
|
77
|
+
media?: Media;
|
|
73
78
|
};
|
|
@@ -7,6 +7,7 @@ import type { AlertLayout } from '../layout/AlertLayout';
|
|
|
7
7
|
import type { AutocompleteToken } from '../misc/AutocompleteToken';
|
|
8
8
|
import type { Help } from '../feature/Help';
|
|
9
9
|
import type { Behavior } from '../feature/Behavior';
|
|
10
|
+
import type { Media } from '../misc/media/Media';
|
|
10
11
|
/**
|
|
11
12
|
* Represents a numeric value which must be a whole number. For floating point numbers, use a [NumberSchema] instead.
|
|
12
13
|
* When not provided, the submission value is `null`.
|
|
@@ -81,11 +82,11 @@ export type IntegerSchema = {
|
|
|
81
82
|
*/
|
|
82
83
|
disabled?: boolean;
|
|
83
84
|
/**
|
|
84
|
-
* An icon which the client can use to represent this
|
|
85
|
+
* An icon which the client can use to represent this entity.
|
|
85
86
|
*/
|
|
86
87
|
icon?: Icon;
|
|
87
88
|
/**
|
|
88
|
-
* An image which the client can use to represent this
|
|
89
|
+
* An image which the client can use to represent this entity.
|
|
89
90
|
*/
|
|
90
91
|
image?: Image;
|
|
91
92
|
/**
|
|
@@ -160,4 +161,8 @@ export type IntegerSchema = {
|
|
|
160
161
|
* The [com.wise.dynamicflow.feature.Behavior] that should be performed when the schema value changes.
|
|
161
162
|
*/
|
|
162
163
|
onChange?: Behavior;
|
|
164
|
+
/**
|
|
165
|
+
* A media object which the client can use to represent this entity.
|
|
166
|
+
*/
|
|
167
|
+
media?: Media;
|
|
163
168
|
};
|
|
@@ -7,6 +7,7 @@ import type { AlertLayout } from '../layout/AlertLayout';
|
|
|
7
7
|
import type { AutocompleteToken } from '../misc/AutocompleteToken';
|
|
8
8
|
import type { Help } from '../feature/Help';
|
|
9
9
|
import type { Behavior } from '../feature/Behavior';
|
|
10
|
+
import type { Media } from '../misc/media/Media';
|
|
10
11
|
/**
|
|
11
12
|
* Represents any numeric value - either an integer or a floating point number.
|
|
12
13
|
* If the value should always be an integer, consider using an [IntegerSchema] instead.
|
|
@@ -82,11 +83,11 @@ export type NumberSchema = {
|
|
|
82
83
|
*/
|
|
83
84
|
disabled?: boolean;
|
|
84
85
|
/**
|
|
85
|
-
* An icon which the client can use to represent this
|
|
86
|
+
* An icon which the client can use to represent this entity.
|
|
86
87
|
*/
|
|
87
88
|
icon?: Icon;
|
|
88
89
|
/**
|
|
89
|
-
* An image which the client can use to represent this
|
|
90
|
+
* An image which the client can use to represent this entity.
|
|
90
91
|
*/
|
|
91
92
|
image?: Image;
|
|
92
93
|
/**
|
|
@@ -161,4 +162,8 @@ export type NumberSchema = {
|
|
|
161
162
|
* The [com.wise.dynamicflow.feature.Behavior] that should be performed when the schema value changes.
|
|
162
163
|
*/
|
|
163
164
|
onChange?: Behavior;
|
|
165
|
+
/**
|
|
166
|
+
* A media object which the client can use to represent this entity.
|
|
167
|
+
*/
|
|
168
|
+
media?: Media;
|
|
164
169
|
};
|
|
@@ -4,6 +4,7 @@ import type { Icon } from '../misc/Icon';
|
|
|
4
4
|
import type { Image } from '../misc/Image';
|
|
5
5
|
import type { SummaryProvider } from '../feature/SummaryProvider';
|
|
6
6
|
import type { AlertLayout } from '../layout/AlertLayout';
|
|
7
|
+
import type { Media } from '../misc/media/Media';
|
|
7
8
|
/**
|
|
8
9
|
* Represents an object value in the submission.
|
|
9
10
|
* The value for submission includes only non-null property values. If all property values are null, the value is an empty object.
|
|
@@ -65,11 +66,11 @@ export type ObjectSchema = {
|
|
|
65
66
|
*/
|
|
66
67
|
hidden?: boolean;
|
|
67
68
|
/**
|
|
68
|
-
* An icon which the client can use to represent this
|
|
69
|
+
* An icon which the client can use to represent this entity.
|
|
69
70
|
*/
|
|
70
71
|
icon?: Icon;
|
|
71
72
|
/**
|
|
72
|
-
* An image which the client can use to represent this
|
|
73
|
+
* An image which the client can use to represent this entity.
|
|
73
74
|
*/
|
|
74
75
|
image?: Image;
|
|
75
76
|
/**
|
|
@@ -93,4 +94,8 @@ export type ObjectSchema = {
|
|
|
93
94
|
* [com.wise.dynamicflow.feature.Action] for server-side validation.
|
|
94
95
|
*/
|
|
95
96
|
alert?: AlertLayout;
|
|
97
|
+
/**
|
|
98
|
+
* A media object which the client can use to represent this entity.
|
|
99
|
+
*/
|
|
100
|
+
media?: Media;
|
|
96
101
|
};
|
|
@@ -7,6 +7,7 @@ import type { AlertLayout } from '../layout/AlertLayout';
|
|
|
7
7
|
import type { Help } from '../feature/Help';
|
|
8
8
|
import type { AutocompleteToken } from '../misc/AutocompleteToken';
|
|
9
9
|
import type { Behavior } from '../feature/Behavior';
|
|
10
|
+
import type { Media } from '../misc/media/Media';
|
|
10
11
|
/**
|
|
11
12
|
* Offers a choice between a number of child schemas.
|
|
12
13
|
* Use a oneOf schema to represent either the selection of one of many constant values (e.g. a select box or dropdown)
|
|
@@ -138,11 +139,11 @@ export type OneOfSchema = {
|
|
|
138
139
|
*/
|
|
139
140
|
hidden?: boolean;
|
|
140
141
|
/**
|
|
141
|
-
* An icon which the client can use to represent this
|
|
142
|
+
* An icon which the client can use to represent this entity.
|
|
142
143
|
*/
|
|
143
144
|
icon?: Icon;
|
|
144
145
|
/**
|
|
145
|
-
* An image which the client can use to represent this
|
|
146
|
+
* An image which the client can use to represent this entity.
|
|
146
147
|
*/
|
|
147
148
|
image?: Image;
|
|
148
149
|
/**
|
|
@@ -214,4 +215,8 @@ export type OneOfSchema = {
|
|
|
214
215
|
* The [com.wise.dynamicflow.feature.Behavior] that should be performed when the schema value changes.
|
|
215
216
|
*/
|
|
216
217
|
onChange?: Behavior;
|
|
218
|
+
/**
|
|
219
|
+
* A media object which the client can use to represent this entity.
|
|
220
|
+
*/
|
|
221
|
+
media?: Media;
|
|
217
222
|
};
|
|
@@ -12,6 +12,7 @@ import type { AutocompleteToken } from '../misc/AutocompleteToken';
|
|
|
12
12
|
import type { Help } from '../feature/Help';
|
|
13
13
|
import type { Suggestions } from '../feature/Suggestions';
|
|
14
14
|
import type { Behavior } from '../feature/Behavior';
|
|
15
|
+
import type { Media } from '../misc/media/Media';
|
|
15
16
|
/**
|
|
16
17
|
* Represents a string value in the submission.
|
|
17
18
|
* This could be used for standard text input, or a format can be provided
|
|
@@ -222,4 +223,9 @@ export type StringSchema = {
|
|
|
222
223
|
* The [com.wise.dynamicflow.feature.Behavior] that should be performed when the schema value changes.
|
|
223
224
|
*/
|
|
224
225
|
onChange?: Behavior;
|
|
226
|
+
/**
|
|
227
|
+
* A media object (avatar, icon, image) which the client can use to represent this schema.
|
|
228
|
+
* Media can be shown inside text input fields.
|
|
229
|
+
*/
|
|
230
|
+
media?: Media;
|
|
225
231
|
};
|
|
@@ -7,6 +7,7 @@ import type { Polling } from '../feature/Polling';
|
|
|
7
7
|
import type { LinkHandler } from '../feature/LinkHandler';
|
|
8
8
|
import type { StepError } from '../feature/StepError';
|
|
9
9
|
import type { Navigation } from '../feature/Navigation';
|
|
10
|
+
import type { Toolbar } from '../feature/toolbar/Toolbar';
|
|
10
11
|
/**
|
|
11
12
|
* A step represents a single screen in a flow. It is made up of schemas, which represent data to be collected from the
|
|
12
13
|
* user, layouts which describe how the screen looks, and a number of advanced features to provide more complex
|
|
@@ -98,4 +99,9 @@ export type Step = {
|
|
|
98
99
|
* Must be an ISO 8601 formatted string. After this time has passed, the step will be refreshed. It should include date, time, and timezone.
|
|
99
100
|
*/
|
|
100
101
|
refreshAfter?: string;
|
|
102
|
+
/**
|
|
103
|
+
* An optional toolbar to be displayed at the top of the step.
|
|
104
|
+
* See [com.wise.dynamicflow.feature.toolbar.Toolbar].
|
|
105
|
+
*/
|
|
106
|
+
toolbar?: Toolbar;
|
|
101
107
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Icon } from './Icon';
|
|
2
2
|
import { Image } from './Image';
|
|
3
|
+
import { Media } from './Media';
|
|
3
4
|
import { BaseRendererProps } from './RendererProps';
|
|
4
5
|
export type BaseInputRendererProps = BaseRendererProps & {
|
|
5
6
|
id: string;
|
|
@@ -12,6 +13,7 @@ export type BaseInputRendererProps = BaseRendererProps & {
|
|
|
12
13
|
validationState: ValidationResult | undefined;
|
|
13
14
|
icon?: Icon;
|
|
14
15
|
image?: Image;
|
|
16
|
+
media?: Media;
|
|
15
17
|
title?: string;
|
|
16
18
|
onBlur: () => void;
|
|
17
19
|
onFocus: () => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Icon } from './Icon';
|
|
2
2
|
import { Image } from './Image';
|
|
3
|
+
import { Media } from './Media';
|
|
3
4
|
import { BaseRendererProps } from './RendererProps';
|
|
4
5
|
import { InlineAlert, Margin, SupportingValues } from './constants';
|
|
5
6
|
export type DecisionRendererProps = BaseRendererProps & {
|
|
@@ -16,6 +17,7 @@ export type DecisionOption = {
|
|
|
16
17
|
href?: string;
|
|
17
18
|
icon?: Icon;
|
|
18
19
|
image?: Image;
|
|
20
|
+
media?: Media;
|
|
19
21
|
title: string;
|
|
20
22
|
tag?: string;
|
|
21
23
|
/** @experimental This feature may be changed in the future without notice. */
|
|
@@ -2,6 +2,7 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { Icon } from './Icon';
|
|
3
3
|
import { Image } from './Image';
|
|
4
4
|
import { BaseRendererProps, RendererProps } from './RendererProps';
|
|
5
|
+
import { Media } from './Media';
|
|
5
6
|
export type FormSectionRendererProps = BaseRendererProps & {
|
|
6
7
|
type: 'form-section';
|
|
7
8
|
control?: string;
|
|
@@ -12,4 +13,5 @@ export type FormSectionRendererProps = BaseRendererProps & {
|
|
|
12
13
|
childrenProps: RendererProps[];
|
|
13
14
|
icon?: Icon;
|
|
14
15
|
image?: Image;
|
|
16
|
+
media?: Media;
|
|
15
17
|
};
|
|
@@ -2,6 +2,7 @@ import { SupportingValues } from '../next';
|
|
|
2
2
|
import { CallToAction } from './CallToAction';
|
|
3
3
|
import { Icon } from './Icon';
|
|
4
4
|
import { Image } from './Image';
|
|
5
|
+
import { Media } from './Media';
|
|
5
6
|
import { BaseRendererProps } from './RendererProps';
|
|
6
7
|
import { AdditionalInfo, InlineAlert, Margin } from './constants';
|
|
7
8
|
export type ListRendererProps = BaseRendererProps & {
|
|
@@ -16,6 +17,7 @@ export type ListItem = {
|
|
|
16
17
|
analyticsId?: string;
|
|
17
18
|
icon?: Icon;
|
|
18
19
|
image?: Image;
|
|
20
|
+
media?: Media;
|
|
19
21
|
title?: string;
|
|
20
22
|
/** @deprecated Use `description` instead. */
|
|
21
23
|
subtitle?: string;
|