@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
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Icon, Image } from '.';
|
|
2
|
+
export type Media = MediaAvatar | MediaImage | LegacyMedia;
|
|
3
|
+
export type MediaAvatar = {
|
|
4
|
+
type: 'avatar';
|
|
5
|
+
content: AvatarContent[];
|
|
6
|
+
accessibilityDescription?: string;
|
|
7
|
+
};
|
|
8
|
+
export type AvatarContent = AvatarTextContent | AvatarUriContent;
|
|
9
|
+
export type AvatarTextContent = {
|
|
10
|
+
type: 'text';
|
|
11
|
+
text: string;
|
|
12
|
+
badgeUri?: string;
|
|
13
|
+
};
|
|
14
|
+
export type AvatarUriContent = {
|
|
15
|
+
type: 'uri';
|
|
16
|
+
uri: string;
|
|
17
|
+
badgeUri?: string;
|
|
18
|
+
};
|
|
19
|
+
export type MediaImage = {
|
|
20
|
+
type: 'image';
|
|
21
|
+
uri: string;
|
|
22
|
+
accessibilityDescription?: string;
|
|
23
|
+
};
|
|
24
|
+
export type LegacyMedia = {
|
|
25
|
+
type: 'legacy';
|
|
26
|
+
icon?: Icon;
|
|
27
|
+
image?: Image;
|
|
28
|
+
};
|
|
@@ -3,6 +3,7 @@ import { Icon } from './Icon';
|
|
|
3
3
|
import { Image } from './Image';
|
|
4
4
|
import { ValidationResult } from './BaseInputRendererProps';
|
|
5
5
|
import { BaseRendererProps, RendererProps } from './RendererProps';
|
|
6
|
+
import { Media } from './Media';
|
|
6
7
|
export type RepeatableRendererProps = BaseRendererProps & {
|
|
7
8
|
type: 'repeatable';
|
|
8
9
|
control?: string;
|
|
@@ -20,6 +21,7 @@ export type RepeatableRendererProps = BaseRendererProps & {
|
|
|
20
21
|
minItems?: number;
|
|
21
22
|
icon?: Icon;
|
|
22
23
|
image?: Image;
|
|
24
|
+
media?: Media;
|
|
23
25
|
onAdd: () => void;
|
|
24
26
|
onEdit: (itemIndex: number) => void;
|
|
25
27
|
onSave: () => boolean;
|
|
@@ -30,5 +32,6 @@ export type RepeatableItemRendererProps = {
|
|
|
30
32
|
description?: string;
|
|
31
33
|
icon?: Icon;
|
|
32
34
|
image?: Image;
|
|
35
|
+
media?: Media;
|
|
33
36
|
title?: string;
|
|
34
37
|
};
|
|
@@ -2,6 +2,7 @@ import { CallToAction } from './CallToAction';
|
|
|
2
2
|
import { AdditionalInfo, InlineAlert, Margin } from './constants';
|
|
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
|
export type ReviewRendererProps = BaseRendererProps & {
|
|
7
8
|
type: 'review';
|
|
@@ -28,4 +29,5 @@ export type ReviewField = {
|
|
|
28
29
|
icon?: Icon;
|
|
29
30
|
/** @experimental This feature may be changed in the future without notice. */
|
|
30
31
|
image?: Image;
|
|
32
|
+
media?: Media;
|
|
31
33
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Media } from '.';
|
|
1
2
|
import type { SearchResult as SearchResultSpec } from '../next';
|
|
2
3
|
import { Margin } from './constants';
|
|
3
4
|
import { Image } from './Image';
|
|
@@ -32,5 +33,6 @@ export type ResultsSearchState = {
|
|
|
32
33
|
export type SearchResult = Pick<SearchResultSpec, 'description' | 'icon' | 'title' | 'type'> & {
|
|
33
34
|
id?: string;
|
|
34
35
|
image?: Image;
|
|
36
|
+
media?: Media;
|
|
35
37
|
onClick: () => void;
|
|
36
38
|
};
|
|
@@ -3,6 +3,7 @@ import { BaseInputRendererProps } from './BaseInputRendererProps';
|
|
|
3
3
|
import { Icon } from './Icon';
|
|
4
4
|
import { Image } from './Image';
|
|
5
5
|
import { RendererProps } from './RendererProps';
|
|
6
|
+
import { Media } from '.';
|
|
6
7
|
export type SelectInputRendererProps = BaseInputRendererProps & {
|
|
7
8
|
type: 'input-select';
|
|
8
9
|
autoComplete: string;
|
|
@@ -17,6 +18,7 @@ export type SelectInputRendererOption = {
|
|
|
17
18
|
disabled: boolean;
|
|
18
19
|
icon?: Icon;
|
|
19
20
|
image?: Image;
|
|
21
|
+
media?: Media;
|
|
20
22
|
keywords: string[];
|
|
21
23
|
title: string;
|
|
22
24
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { JsonElement } from '../next';
|
|
2
2
|
import { Icon } from './Icon';
|
|
3
3
|
import { Image } from './Image';
|
|
4
|
+
import { Media } from './Media';
|
|
4
5
|
export type Suggestions = {
|
|
5
6
|
values: SuggestionValue[];
|
|
6
7
|
};
|
|
@@ -9,5 +10,6 @@ export type SuggestionValue = {
|
|
|
9
10
|
value?: JsonElement;
|
|
10
11
|
icon?: Icon;
|
|
11
12
|
image?: Image;
|
|
13
|
+
media?: Media;
|
|
12
14
|
tag?: string;
|
|
13
15
|
};
|
|
@@ -40,6 +40,8 @@ export type { ValidationResult } from './BaseInputRendererProps';
|
|
|
40
40
|
export type { Align, Context, Margin, Size } from './constants';
|
|
41
41
|
export type { Icon } from './Icon';
|
|
42
42
|
export type { Image } from './Image';
|
|
43
|
+
export type { Media, MediaAvatar, MediaImage, LegacyMedia, AvatarContent, AvatarTextContent, AvatarUriContent, } from './Media';
|
|
44
|
+
export type { AdditionalInfo, InlineAlert, SupportingValues } from './constants';
|
|
43
45
|
export type { Renderer, RendererProps, Renderers, RenderFunction } from './RendererProps';
|
|
44
46
|
export type { CallToAction } from './CallToAction';
|
|
45
47
|
/** @deprecated Please use `CallToAction` instead. */
|