@wise/dynamic-flow-types 3.19.0 → 4.0.0-experimental-8f7ea55
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/renderers/BaseInputRendererProps.d.ts +0 -4
- package/build/renderers/CallToAction.d.ts +0 -2
- package/build/renderers/DecisionRendererProps.d.ts +0 -6
- package/build/renderers/FormSectionRendererProps.d.ts +0 -4
- package/build/renderers/Icon.d.ts +1 -1
- package/build/renderers/InstructionsRendererProps.d.ts +0 -2
- package/build/renderers/ListRendererProps.d.ts +1 -13
- package/build/renderers/MoneyInputRendererProps.d.ts +1 -1
- package/build/renderers/MultiUploadInputRendererProps.d.ts +2 -2
- package/build/renderers/RepeatableRendererProps.d.ts +0 -6
- package/build/renderers/ReviewRendererProps.d.ts +0 -11
- package/build/renderers/SearchRendererProps.d.ts +1 -1
- package/build/renderers/SelectInputRendererProps.d.ts +0 -4
- package/build/renderers/StatusListRendererProps.d.ts +0 -2
- package/build/renderers/StepRendererProps.d.ts +8 -13
- package/build/renderers/Suggestions.d.ts +1 -7
- package/build/renderers/TabsRendererProps.d.ts +0 -2
- package/build/renderers/UploadInputRendererProps.d.ts +2 -2
- package/build/renderers/constants.d.ts +1 -1
- package/build/renderers/index.d.ts +0 -7
- package/build/{next → spec}/index.d.ts +3 -0
- package/build/{main.js → spec/main.js} +1 -1
- package/build/zod/schemas.d.ts +660 -660
- package/build/zod/schemas.ts +1 -1
- package/package.json +7 -12
- package/build/index.d.ts +0 -16
- package/build/spec/Action.d.ts +0 -21
- package/build/spec/AutocompleteToken.d.ts +0 -396
- package/build/spec/FileUploadSchema.d.ts +0 -19
- package/build/spec/LayoutComponent.d.ts +0 -237
- package/build/spec/Model.d.ts +0 -6
- package/build/spec/Navigation.d.ts +0 -14
- package/build/spec/PersistAsync.d.ts +0 -8
- package/build/spec/Polling.d.ts +0 -28
- package/build/spec/Promotion.d.ts +0 -20
- package/build/spec/Schema.d.ts +0 -191
- package/build/spec/Search.d.ts +0 -21
- package/build/spec/Step.d.ts +0 -112
- package/build/spec/ValidationAsync.d.ts +0 -6
- package/build/spec/core.d.ts +0 -47
- package/build/spec/responses.d.ts +0 -18
- /package/build/{next → spec}/JsonElement.d.ts +0 -0
- /package/build/{next → spec}/feature/Action.d.ts +0 -0
- /package/build/{next → spec}/feature/ActionBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/ActionType.d.ts +0 -0
- /package/build/{next → spec}/feature/Behavior.d.ts +0 -0
- /package/build/{next → spec}/feature/ContainerBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/CopyBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/DismissBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/External.d.ts +0 -0
- /package/build/{next → spec}/feature/Help.d.ts +0 -0
- /package/build/{next → spec}/feature/Link.d.ts +0 -0
- /package/build/{next → spec}/feature/LinkBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/LinkHandler.d.ts +0 -0
- /package/build/{next → spec}/feature/ModalBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/Navigation.d.ts +0 -0
- /package/build/{next → spec}/feature/NavigationBackBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/NavigationStackBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/PersistAsync.d.ts +0 -0
- /package/build/{next → spec}/feature/Polling.d.ts +0 -0
- /package/build/{next → spec}/feature/PollingOnError.d.ts +0 -0
- /package/build/{next → spec}/feature/RefreshBehavior.d.ts +0 -0
- /package/build/{next → spec}/feature/StepError.d.ts +0 -0
- /package/build/{next → spec}/feature/Suggestions.d.ts +0 -0
- /package/build/{next → spec}/feature/SuggestionsValue.d.ts +0 -0
- /package/build/{next → spec}/feature/Summary.d.ts +0 -0
- /package/build/{next → spec}/feature/SummaryProvider.d.ts +0 -0
- /package/build/{next → spec}/feature/SummarySummariser.d.ts +0 -0
- /package/build/{next → spec}/feature/UploadSource.d.ts +0 -0
- /package/build/{next → spec}/feature/ValidateAsync.d.ts +0 -0
- /package/build/{next → spec}/feature/toolbar/Toolbar.d.ts +0 -0
- /package/build/{next → spec}/feature/toolbar/ToolbarButton.d.ts +0 -0
- /package/build/{next → spec}/feature/toolbar/ToolbarItem.d.ts +0 -0
- /package/build/{next → spec}/layout/AlertLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/AlertLayoutCallToAction.d.ts +0 -0
- /package/build/{next → spec}/layout/BoxLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ButtonLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ColumnsLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ColumnsLayoutBias.d.ts +0 -0
- /package/build/{next → spec}/layout/DecisionLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/DecisionLayoutOption.d.ts +0 -0
- /package/build/{next → spec}/layout/DividerLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/FormLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/FormLayoutSchemaReference.d.ts +0 -0
- /package/build/{next → spec}/layout/HeadingLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ImageLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/InfoLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/InstructionsLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/InstructionsLayoutItem.d.ts +0 -0
- /package/build/{next → spec}/layout/ItemCallToAction.d.ts +0 -0
- /package/build/{next → spec}/layout/Layout.d.ts +0 -0
- /package/build/{next → spec}/layout/ListLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ListLayoutCallToAction.d.ts +0 -0
- /package/build/{next → spec}/layout/ListLayoutItem.d.ts +0 -0
- /package/build/{next → spec}/layout/ListLayoutStatus.d.ts +0 -0
- /package/build/{next → spec}/layout/LoadingIndicatorLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/MarkdownLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ModalLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ModalLayoutContent.d.ts +0 -0
- /package/build/{next → spec}/layout/ModalLayoutTrigger.d.ts +0 -0
- /package/build/{next → spec}/layout/ParagraphLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ProgressLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ReviewLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/ReviewLayoutCallToAction.d.ts +0 -0
- /package/build/{next → spec}/layout/ReviewLayoutField.d.ts +0 -0
- /package/build/{next → spec}/layout/SearchLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/SectionLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/SectionLayoutCallToAction.d.ts +0 -0
- /package/build/{next → spec}/layout/StatusListLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/StatusListLayoutItem.d.ts +0 -0
- /package/build/{next → spec}/layout/StatusListLayoutStatus.d.ts +0 -0
- /package/build/{next → spec}/layout/TabsLayout.d.ts +0 -0
- /package/build/{next → spec}/layout/TabsLayoutTab.d.ts +0 -0
- /package/build/{main.mjs → spec/main.mjs} +0 -0
- /package/build/{next → spec}/misc/AdditionalInfo.d.ts +0 -0
- /package/build/{next → spec}/misc/Align.d.ts +0 -0
- /package/build/{next → spec}/misc/AutocapitalizationType.d.ts +0 -0
- /package/build/{next → spec}/misc/AutocompleteToken.d.ts +0 -0
- /package/build/{next → spec}/misc/Context.d.ts +0 -0
- /package/build/{next → spec}/misc/HttpMethod.d.ts +0 -0
- /package/build/{next → spec}/misc/Icon.d.ts +0 -0
- /package/build/{next → spec}/misc/IconNamed.d.ts +0 -0
- /package/build/{next → spec}/misc/IconText.d.ts +0 -0
- /package/build/{next → spec}/misc/Image.d.ts +0 -0
- /package/build/{next → spec}/misc/InlineAlert.d.ts +0 -0
- /package/build/{next → spec}/misc/Size.d.ts +0 -0
- /package/build/{next → spec}/misc/SupportingValues.d.ts +0 -0
- /package/build/{next → spec}/misc/media/AvatarContent.d.ts +0 -0
- /package/build/{next → spec}/misc/media/AvatarTextContent.d.ts +0 -0
- /package/build/{next → spec}/misc/media/AvatarUriContent.d.ts +0 -0
- /package/build/{next → spec}/misc/media/Media.d.ts +0 -0
- /package/build/{next → spec}/misc/media/MediaAvatar.d.ts +0 -0
- /package/build/{next → spec}/misc/media/MediaImage.d.ts +0 -0
- /package/build/{next → spec}/responses/action/ActionResponseBody.d.ts +0 -0
- /package/build/{next → spec}/responses/error/ErrorResponseBody.d.ts +0 -0
- /package/build/{next → spec}/responses/modal/ModalResponseBody.d.ts +0 -0
- /package/build/{next → spec}/responses/search/SearchResponseBody.d.ts +0 -0
- /package/build/{next → spec}/responses/search/SearchResult.d.ts +0 -0
- /package/build/{next → spec}/responses/search/SearchResultAction.d.ts +0 -0
- /package/build/{next → spec}/responses/search/SearchResultSearch.d.ts +0 -0
- /package/build/{next → spec}/responses/search/SearchSearchRequest.d.ts +0 -0
- /package/build/{next → spec}/schema/AllOfSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/ArraySchema.d.ts +0 -0
- /package/build/{next → spec}/schema/ArraySchemaList.d.ts +0 -0
- /package/build/{next → spec}/schema/ArraySchemaTuple.d.ts +0 -0
- /package/build/{next → spec}/schema/BlobSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/BooleanSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/ConstSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/IntegerSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/NumberSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/ObjectSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/OneOfSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/Schema.d.ts +0 -0
- /package/build/{next → spec}/schema/StringSchema.d.ts +0 -0
- /package/build/{next → spec}/schema/StringSchemaFormat.d.ts +0 -0
- /package/build/{next → spec}/step/Step.d.ts +0 -0
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Icon } from './Icon';
|
|
2
|
-
import { Image } from './Image';
|
|
3
1
|
import { Media } from './Media';
|
|
4
2
|
import { BaseRendererProps } from './RendererProps';
|
|
5
3
|
export type BaseInputRendererProps = BaseRendererProps & {
|
|
@@ -11,8 +9,6 @@ export type BaseInputRendererProps = BaseRendererProps & {
|
|
|
11
9
|
placeholder?: string;
|
|
12
10
|
required: boolean;
|
|
13
11
|
validationState: ValidationResult | undefined;
|
|
14
|
-
icon?: Icon;
|
|
15
|
-
image?: Image;
|
|
16
12
|
media?: Media;
|
|
17
13
|
title?: string;
|
|
18
14
|
onBlur: () => void;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Icon } from './Icon';
|
|
2
|
-
import { Image } from './Image';
|
|
3
1
|
import { Media } from './Media';
|
|
4
2
|
import { BaseRendererProps } from './RendererProps';
|
|
5
3
|
import { InlineAlert, Margin, SupportingValues } from './constants';
|
|
@@ -15,12 +13,8 @@ export type DecisionOption = {
|
|
|
15
13
|
description?: string;
|
|
16
14
|
disabled: boolean;
|
|
17
15
|
href?: string;
|
|
18
|
-
icon?: Icon;
|
|
19
|
-
image?: Image;
|
|
20
16
|
keywords?: string[];
|
|
21
17
|
media?: Media;
|
|
22
|
-
/** @deprecated Please use `tags` instead. */
|
|
23
|
-
tag?: string;
|
|
24
18
|
tags?: string[];
|
|
25
19
|
title: string;
|
|
26
20
|
additionalText?: string;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { Icon } from './Icon';
|
|
3
|
-
import type { Image } from './Image';
|
|
4
2
|
import type { BaseRendererProps, RendererProps } from './RendererProps';
|
|
5
3
|
import type { Media } from './Media';
|
|
6
4
|
export type FormSectionRendererProps = BaseRendererProps & {
|
|
@@ -11,7 +9,5 @@ export type FormSectionRendererProps = BaseRendererProps & {
|
|
|
11
9
|
help?: string;
|
|
12
10
|
children: ReactNode;
|
|
13
11
|
childrenProps: RendererProps[];
|
|
14
|
-
icon?: Icon;
|
|
15
|
-
image?: Image;
|
|
16
12
|
media?: Media;
|
|
17
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { Icon } from '../
|
|
1
|
+
export type { Icon } from '../spec';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { SupportingValues } from '../
|
|
1
|
+
import { SupportingValues } from '../spec';
|
|
2
2
|
import { CallToAction } from './CallToAction';
|
|
3
|
-
import { Icon } from './Icon';
|
|
4
|
-
import { Image } from './Image';
|
|
5
3
|
import { Media } from './Media';
|
|
6
4
|
import { BaseRendererProps } from './RendererProps';
|
|
7
5
|
import { AdditionalInfo, InlineAlert, Margin } from './constants';
|
|
@@ -15,19 +13,9 @@ export type ListRendererProps = BaseRendererProps & {
|
|
|
15
13
|
};
|
|
16
14
|
export type ListItem = {
|
|
17
15
|
analyticsId?: string;
|
|
18
|
-
icon?: Icon;
|
|
19
|
-
image?: Image;
|
|
20
16
|
media?: Media;
|
|
21
17
|
title?: string;
|
|
22
|
-
/** @deprecated Use `description` instead. */
|
|
23
|
-
subtitle?: string;
|
|
24
18
|
description?: string;
|
|
25
|
-
/** @deprecated Use `supportedValues` instead. */
|
|
26
|
-
value?: string;
|
|
27
|
-
/** @deprecated Use `supportedValues` instead. */
|
|
28
|
-
subvalue?: string;
|
|
29
|
-
/** @deprecated Please use `tags` instead. */
|
|
30
|
-
tag?: string;
|
|
31
19
|
tags?: string[];
|
|
32
20
|
/** @experimental This feature may be changed in the future without notice. */
|
|
33
21
|
supportingValues?: SupportingValues;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Media, ValidationResult } from '.';
|
|
2
|
-
import { JsonElement } from '../
|
|
2
|
+
import { JsonElement } from '../spec';
|
|
3
3
|
import type { BaseRendererProps } from './RendererProps';
|
|
4
4
|
export type MoneyInputRendererProps = BaseRendererProps & {
|
|
5
5
|
type: 'money-input';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JsonElement } from '../
|
|
2
|
-
import { UploadSource } from '../
|
|
1
|
+
import { JsonElement } from '../spec';
|
|
2
|
+
import { UploadSource } from '../spec/feature/UploadSource';
|
|
3
3
|
import { BaseInputRendererProps, ValidationResult } from './BaseInputRendererProps';
|
|
4
4
|
export type MultiUploadInputRendererProps = BaseInputRendererProps & {
|
|
5
5
|
type: 'input-upload-multi';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { Icon } from './Icon';
|
|
3
|
-
import { Image } from './Image';
|
|
4
2
|
import { ValidationResult } from './BaseInputRendererProps';
|
|
5
3
|
import { BaseRendererProps, RendererProps } from './RendererProps';
|
|
6
4
|
import { Media } from './Media';
|
|
@@ -19,8 +17,6 @@ export type RepeatableRendererProps = BaseRendererProps & {
|
|
|
19
17
|
title: string;
|
|
20
18
|
maxItems?: number;
|
|
21
19
|
minItems?: number;
|
|
22
|
-
icon?: Icon;
|
|
23
|
-
image?: Image;
|
|
24
20
|
media?: Media;
|
|
25
21
|
onAdd: () => void;
|
|
26
22
|
onEdit: (itemIndex: number) => void;
|
|
@@ -30,8 +26,6 @@ export type RepeatableRendererProps = BaseRendererProps & {
|
|
|
30
26
|
export type RepeatableItemRendererProps = {
|
|
31
27
|
id: string;
|
|
32
28
|
description?: string;
|
|
33
|
-
icon?: Icon;
|
|
34
|
-
image?: Image;
|
|
35
29
|
media?: Media;
|
|
36
30
|
title?: string;
|
|
37
31
|
tags?: string[];
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { CallToAction } from './CallToAction';
|
|
2
2
|
import { AdditionalInfo, InlineAlert, Margin } from './constants';
|
|
3
|
-
import { Icon } from './Icon';
|
|
4
|
-
import { Image } from './Image';
|
|
5
3
|
import { Media } from './Media';
|
|
6
4
|
import { BaseRendererProps } from './RendererProps';
|
|
7
5
|
export type ReviewRendererProps = BaseRendererProps & {
|
|
@@ -18,18 +16,9 @@ export type ReviewField = {
|
|
|
18
16
|
label: string;
|
|
19
17
|
value: string;
|
|
20
18
|
rawValue?: string;
|
|
21
|
-
/** @deprecated Please use `tags` instead. */
|
|
22
|
-
tag?: string;
|
|
23
19
|
tags?: string[];
|
|
24
|
-
/** @experimental This feature may be changed in the future without notice. */
|
|
25
20
|
additionalInfo?: AdditionalInfo;
|
|
26
|
-
/** @experimental This feature may be changed in the future without notice. */
|
|
27
21
|
inlineAlert?: InlineAlert;
|
|
28
|
-
/** @experimental This feature may be changed in the future without notice. */
|
|
29
22
|
callToAction?: CallToAction;
|
|
30
|
-
/** @experimental This feature may be changed in the future without notice. */
|
|
31
|
-
icon?: Icon;
|
|
32
|
-
/** @experimental This feature may be changed in the future without notice. */
|
|
33
|
-
image?: Image;
|
|
34
23
|
media?: Media;
|
|
35
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Media } from '.';
|
|
2
|
-
import type { SearchResult as SearchResultSpec } from '../
|
|
2
|
+
import type { SearchResult as SearchResultSpec } from '../spec';
|
|
3
3
|
import { Margin } from './constants';
|
|
4
4
|
import { Image } from './Image';
|
|
5
5
|
import { BaseRendererProps } from './RendererProps';
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { BaseInputRendererProps } from './BaseInputRendererProps';
|
|
3
|
-
import { Icon } from './Icon';
|
|
4
|
-
import { Image } from './Image';
|
|
5
3
|
import { RendererProps } from './RendererProps';
|
|
6
4
|
import { Media } from '.';
|
|
7
5
|
import { InlineAlert, SupportingValues } from './constants';
|
|
@@ -19,8 +17,6 @@ export type SelectInputRendererOption = {
|
|
|
19
17
|
analyticsId?: string;
|
|
20
18
|
description?: string;
|
|
21
19
|
disabled: boolean;
|
|
22
|
-
icon?: Icon;
|
|
23
|
-
image?: Image;
|
|
24
20
|
inlineAlert?: InlineAlert;
|
|
25
21
|
keywords: string[];
|
|
26
22
|
media?: Media;
|
|
@@ -15,8 +15,6 @@ export type StatusListItem = {
|
|
|
15
15
|
status?: 'done' | 'not-done' | 'pending';
|
|
16
16
|
title: string;
|
|
17
17
|
callToAction?: CallToAction;
|
|
18
|
-
/** @deprecated Please use `tags` instead. */
|
|
19
|
-
tag?: string;
|
|
20
18
|
tags?: string[];
|
|
21
19
|
};
|
|
22
20
|
export type StatusListItemStatus = 'done' | 'not-done' | 'pending';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { Context, Media } from '.';
|
|
3
|
-
import type { Action, Step } from '../
|
|
3
|
+
import type { Action, Step } from '../spec';
|
|
4
4
|
import { BaseRendererProps, RendererProps } from './RendererProps';
|
|
5
5
|
export type AnalyticsEventDispatcher = (eventName: string, properties?: Record<string, unknown>) => void;
|
|
6
6
|
export type LoadingState = 'idle' | 'initial' | 'submitting' | 'refreshing';
|
|
@@ -27,24 +27,19 @@ export type StepRendererProps = BaseRendererProps & {
|
|
|
27
27
|
toolbar?: Toolbar;
|
|
28
28
|
footer: ReactNode;
|
|
29
29
|
footerProps: RendererProps[];
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated Please use the stepLoadingState instead.
|
|
32
|
-
*/
|
|
33
|
-
loadingState: LoadingState;
|
|
34
30
|
title?: string;
|
|
35
31
|
tags?: string[];
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
childrenProps: RendererProps[];
|
|
36
34
|
/**
|
|
37
|
-
*
|
|
38
|
-
* @deprecated Please use childrenProps instead.
|
|
35
|
+
*
|
|
36
|
+
* @deprecated DO NOT USE! This will be removed in the next major release. Please use childrenProps instead.
|
|
39
37
|
*/
|
|
40
|
-
|
|
38
|
+
__rawStep?: Step;
|
|
41
39
|
/**
|
|
42
|
-
* @
|
|
43
|
-
* @deprecated Please use childrenProps instead.
|
|
40
|
+
* @deprecated DO NOT USE! This will be removed in the next major release. Please use childrenProps instead.
|
|
44
41
|
*/
|
|
45
|
-
|
|
46
|
-
children: ReactNode;
|
|
47
|
-
childrenProps: RendererProps[];
|
|
42
|
+
__onAction?: (action: Action) => void | Promise<void>;
|
|
48
43
|
};
|
|
49
44
|
type Toolbar = {
|
|
50
45
|
type: 'toolbar';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { JsonElement } from '../
|
|
2
|
-
import { Icon } from './Icon';
|
|
3
|
-
import { Image } from './Image';
|
|
1
|
+
import { JsonElement } from '../spec';
|
|
4
2
|
import { Media } from './Media';
|
|
5
3
|
export type Suggestions = {
|
|
6
4
|
values: SuggestionValue[];
|
|
@@ -8,10 +6,6 @@ export type Suggestions = {
|
|
|
8
6
|
export type SuggestionValue = {
|
|
9
7
|
label: string;
|
|
10
8
|
value?: JsonElement;
|
|
11
|
-
icon?: Icon;
|
|
12
|
-
image?: Image;
|
|
13
9
|
media?: Media;
|
|
14
|
-
/** @deprecated Please use `tags` instead. */
|
|
15
|
-
tag?: string;
|
|
16
10
|
tags?: string[];
|
|
17
11
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { JsonElement } from '../
|
|
2
|
-
import { UploadSource } from '../
|
|
1
|
+
import { JsonElement } from '../spec';
|
|
2
|
+
import { UploadSource } from '../spec/feature/UploadSource';
|
|
3
3
|
import { BaseInputRendererProps } from './BaseInputRendererProps';
|
|
4
4
|
export type UploadInputRendererProps = BaseInputRendererProps & {
|
|
5
5
|
type: 'input-upload';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type Align = 'start' | 'center' | 'end';
|
|
2
2
|
export type Autocapitalization = 'none' | 'sentences' | 'words' | 'characters';
|
|
3
3
|
export type Context = 'positive' | 'negative' | 'warning' | 'neutral';
|
|
4
|
-
export type { Margin, Size } from '../
|
|
4
|
+
export type { Margin, Size } from '../spec';
|
|
5
5
|
export type AdditionalInfo = {
|
|
6
6
|
href?: string;
|
|
7
7
|
text: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { CallToAction } from './CallToAction';
|
|
2
1
|
export type { AlertRendererProps } from './AlertRendererProps';
|
|
3
2
|
export type { BoxRendererProps } from './BoxRendererProps';
|
|
4
3
|
export type { ButtonRendererProps } from './ButtonRendererProps';
|
|
@@ -46,9 +45,3 @@ export type { Media, MediaAvatar, MediaImage, LegacyMedia, AvatarContent, Avatar
|
|
|
46
45
|
export type { AdditionalInfo, InlineAlert, SupportingValues } from './constants';
|
|
47
46
|
export type { Renderer, RendererProps, Renderers, RenderFunction } from './RendererProps';
|
|
48
47
|
export type { CallToAction } from './CallToAction';
|
|
49
|
-
/** @deprecated Please use `CallToAction` instead. */
|
|
50
|
-
export type AlertCallToAction = CallToAction;
|
|
51
|
-
/** @deprecated Please use `CallToAction` instead. */
|
|
52
|
-
export type ReviewCallToAction = CallToAction;
|
|
53
|
-
/** @deprecated Please use `CallToAction` instead. */
|
|
54
|
-
export type StatusListItemCallToAction = CallToAction;
|
|
@@ -14,6 +14,8 @@ export type { DismissBehavior } from './feature/DismissBehavior';
|
|
|
14
14
|
export type { LinkBehavior } from './feature/LinkBehavior';
|
|
15
15
|
export type { ModalBehavior } from './feature/ModalBehavior';
|
|
16
16
|
export type { LinkHandler } from './feature/LinkHandler';
|
|
17
|
+
export type { AutocompleteToken } from './misc/AutocompleteToken';
|
|
18
|
+
export type { HttpMethod } from './misc/HttpMethod';
|
|
17
19
|
export type { AdditionalInfo } from './misc/AdditionalInfo';
|
|
18
20
|
export type { Align } from './misc/Align';
|
|
19
21
|
export type { AutocapitalizationType } from './misc/AutocapitalizationType';
|
|
@@ -93,3 +95,4 @@ export type ValidationError = JsonElement;
|
|
|
93
95
|
export type Reference = {
|
|
94
96
|
$ref: string;
|
|
95
97
|
};
|
|
98
|
+
export { validateStep, validateActionResponse, validateErrorResponse } from '../zod/validators';
|
|
@@ -17,7 +17,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
|
-
// src/index.ts
|
|
20
|
+
// src/spec/index.ts
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
validateActionResponse: () => validateActionResponse,
|