@wise/dynamic-flow-types 3.6.3 → 3.7.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 +78 -28
- package/build/main.mjs +78 -28
- package/build/next/feature/SuggestionsValue.d.ts +4 -0
- package/build/next/layout/AlertLayout.d.ts +4 -0
- package/build/next/layout/BoxLayout.d.ts +4 -0
- package/build/next/layout/ButtonLayout.d.ts +4 -0
- package/build/next/layout/ColumnsLayout.d.ts +4 -0
- package/build/next/layout/DecisionLayout.d.ts +4 -0
- package/build/next/layout/DecisionLayoutOption.d.ts +4 -0
- package/build/next/layout/DividerLayout.d.ts +4 -0
- package/build/next/layout/FormLayout.d.ts +4 -0
- package/build/next/layout/HeadingLayout.d.ts +4 -0
- package/build/next/layout/ImageLayout.d.ts +4 -0
- package/build/next/layout/InfoLayout.d.ts +4 -0
- package/build/next/layout/InstructionsLayout.d.ts +4 -0
- package/build/next/layout/InstructionsLayoutItem.d.ts +4 -0
- package/build/next/layout/ListLayout.d.ts +4 -0
- package/build/next/layout/ListLayoutItem.d.ts +4 -0
- package/build/next/layout/LoadingIndicatorLayout.d.ts +4 -0
- package/build/next/layout/MarkdownLayout.d.ts +4 -0
- package/build/next/layout/ModalLayout.d.ts +4 -0
- package/build/next/layout/ParagraphLayout.d.ts +4 -0
- package/build/next/layout/ReviewLayout.d.ts +4 -0
- package/build/next/layout/ReviewLayoutField.d.ts +4 -0
- package/build/next/layout/SearchLayout.d.ts +4 -0
- package/build/next/layout/SectionLayout.d.ts +4 -0
- package/build/next/layout/StatusListLayout.d.ts +4 -0
- package/build/next/layout/StatusListLayoutItem.d.ts +4 -0
- package/build/next/layout/TabsLayout.d.ts +4 -0
- package/build/next/layout/TabsLayoutTab.d.ts +4 -0
- package/build/next/misc/media/AvatarContent.d.ts +6 -0
- package/build/next/misc/media/AvatarTextContent.d.ts +17 -0
- package/build/next/misc/media/AvatarUriContent.d.ts +17 -0
- package/build/next/misc/media/Media.d.ts +6 -0
- package/build/next/misc/media/MediaAvatar.d.ts +18 -0
- package/build/next/misc/media/MediaImage.d.ts +17 -0
- package/build/renderers/DecisionRendererProps.d.ts +1 -0
- package/build/renderers/ListRendererProps.d.ts +1 -0
- package/build/renderers/RendererProps.d.ts +1 -0
- package/build/renderers/ReviewRendererProps.d.ts +1 -0
- package/build/zod/schemas.d.ts +228 -0
- package/build/zod/schemas.ts +56 -0
- package/package.json +1 -1
|
@@ -51,4 +51,8 @@ export type ReviewLayoutField = {
|
|
|
51
51
|
* A titled [com.wise.dynamicflow.feature.Behavior], associated with a specific field, and which can be performed by the user
|
|
52
52
|
*/
|
|
53
53
|
callToAction?: ReviewLayoutCallToAction;
|
|
54
|
+
/**
|
|
55
|
+
* An optional identifier to be used in analytics tracking.
|
|
56
|
+
*/
|
|
57
|
+
analyticsId?: string;
|
|
54
58
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AvatarTextContent } from './AvatarTextContent';
|
|
2
|
+
import type { AvatarUriContent } from './AvatarUriContent';
|
|
3
|
+
/**
|
|
4
|
+
* Describes the properties of a visual asset. It can be one of two mutually exclusive types: URI or Text.
|
|
5
|
+
*/
|
|
6
|
+
export type AvatarContent = AvatarTextContent | AvatarUriContent;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An avatar content that is text.
|
|
3
|
+
*/
|
|
4
|
+
export type AvatarTextContent = {
|
|
5
|
+
/**
|
|
6
|
+
* It must be `text`.
|
|
7
|
+
*/
|
|
8
|
+
type: 'text';
|
|
9
|
+
/**
|
|
10
|
+
* The text to be displayed.
|
|
11
|
+
*/
|
|
12
|
+
text: string;
|
|
13
|
+
/**
|
|
14
|
+
* The URI with which the badge is configured.
|
|
15
|
+
*/
|
|
16
|
+
badgeUri?: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An avatar content that is a URI.
|
|
3
|
+
*/
|
|
4
|
+
export type AvatarUriContent = {
|
|
5
|
+
/**
|
|
6
|
+
* It must be `uri`.
|
|
7
|
+
*/
|
|
8
|
+
type: 'uri';
|
|
9
|
+
/**
|
|
10
|
+
* The URI with which the avatar is configured.
|
|
11
|
+
*/
|
|
12
|
+
uri: string;
|
|
13
|
+
/**
|
|
14
|
+
* The URI with which the badge is configured.
|
|
15
|
+
*/
|
|
16
|
+
badgeUri?: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AvatarContent } from './AvatarContent';
|
|
2
|
+
/**
|
|
3
|
+
* Avatar is a representation of a unique entity. It's comprised of one or more AvatarContent and an optional accessibilityDescription for screen readers.
|
|
4
|
+
*/
|
|
5
|
+
export type MediaAvatar = {
|
|
6
|
+
/**
|
|
7
|
+
* It must be `avatar`.
|
|
8
|
+
*/
|
|
9
|
+
type: 'avatar';
|
|
10
|
+
/**
|
|
11
|
+
* The content to be displayed in the Avatar.
|
|
12
|
+
*/
|
|
13
|
+
content: AvatarContent[];
|
|
14
|
+
/**
|
|
15
|
+
* An optional description for screen readers.
|
|
16
|
+
*/
|
|
17
|
+
accessibilityDescription?: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An Image Media.
|
|
3
|
+
*/
|
|
4
|
+
export type MediaImage = {
|
|
5
|
+
/**
|
|
6
|
+
* It must be `image`.
|
|
7
|
+
*/
|
|
8
|
+
type: 'image';
|
|
9
|
+
/**
|
|
10
|
+
* The URI to use to fetch the image.
|
|
11
|
+
*/
|
|
12
|
+
uri: string;
|
|
13
|
+
/**
|
|
14
|
+
* A description of the content of the image to be used by screen readers.
|
|
15
|
+
*/
|
|
16
|
+
accessibilityDescription?: string;
|
|
17
|
+
};
|
|
@@ -48,6 +48,7 @@ export type RenderFunction = (props: RendererProps | null) => JSX.Element | null
|
|
|
48
48
|
export type Renderers = readonly (Renderer<StepRendererProps> | Renderer<CoreContainerRendererProps> | Renderer<AlertRendererProps> | Renderer<BoxRendererProps> | Renderer<ColumnsRendererProps> | Renderer<DecisionRendererProps> | Renderer<DividerRendererProps> | Renderer<ExternalConfirmationRendererProps> | Renderer<FormRendererProps> | Renderer<HeadingRendererProps> | Renderer<InstructionsRendererProps> | Renderer<ListRendererProps> | Renderer<LoadingIndicatorRendererProps> | Renderer<MarkdownRendererProps> | Renderer<ImageRendererProps> | Renderer<ModalRendererProps> | Renderer<ModalContentRendererProps> | Renderer<ParagraphRendererProps> | Renderer<ReviewRendererProps> | Renderer<SearchRendererProps> | Renderer<StatusListRendererProps> | Renderer<CheckboxInputRendererProps> | Renderer<ButtonRendererProps> | Renderer<DateInputRendererProps> | Renderer<HiddenRendererProps> | Renderer<IntegerInputRendererProps> | Renderer<NumberInputRendererProps> | Renderer<RepeatableRendererProps> | Renderer<RootRendererProps> | Renderer<FormSectionRendererProps> | Renderer<SelectInputRendererProps> | Renderer<SectionRendererProps> | Renderer<MultiSelectInputRendererProps> | Renderer<TabsRendererProps> | Renderer<TextInputRendererProps> | Renderer<UploadInputRendererProps> | Renderer<MultiUploadInputRendererProps>)[];
|
|
49
49
|
export type BaseRendererProps = {
|
|
50
50
|
uid: string;
|
|
51
|
+
analyticsId?: string;
|
|
51
52
|
render: RenderFunction;
|
|
52
53
|
httpClient: typeof fetch;
|
|
53
54
|
trackEvent: AnalyticsEventDispatcher;
|