@wise/dynamic-flow-types 3.11.0 → 3.11.1
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/next/index.d.ts
CHANGED
|
@@ -7,14 +7,11 @@ export type { Polling } from './feature/Polling';
|
|
|
7
7
|
export type { PollingOnError } from './feature/PollingOnError';
|
|
8
8
|
export type { ValidateAsync } from './feature/ValidateAsync';
|
|
9
9
|
export type { ActionBehavior } from './feature/ActionBehavior';
|
|
10
|
-
export type { CopyBehavior } from './feature/CopyBehavior';
|
|
11
10
|
export type { Behavior } from './feature/Behavior';
|
|
11
|
+
export type { CopyBehavior } from './feature/CopyBehavior';
|
|
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';
|
|
18
15
|
export type { LinkHandler } from './feature/LinkHandler';
|
|
19
16
|
export type { AdditionalInfo } from './misc/AdditionalInfo';
|
|
20
17
|
export type { Align } from './misc/Align';
|
|
@@ -84,6 +81,9 @@ export type { StringSchemaFormat } from './schema/StringSchemaFormat';
|
|
|
84
81
|
export type { ActionResponseBody } from './responses/action/ActionResponseBody';
|
|
85
82
|
export type { ErrorResponseBody } from './responses/error/ErrorResponseBody';
|
|
86
83
|
export type { ModalResponseBody } from './responses/modal/ModalResponseBody';
|
|
84
|
+
export type { Toolbar } from './feature/toolbar/Toolbar';
|
|
85
|
+
export type { ToolbarButton } from './feature/toolbar/ToolbarButton';
|
|
86
|
+
export type { ToolbarItem } from './feature/toolbar/ToolbarItem';
|
|
87
87
|
export type { Step } from './step/Step';
|
|
88
88
|
export type { JsonArray, JsonElement, JsonObject, JsonPrimitive } from './JsonElement';
|
|
89
89
|
export type Model = JsonElement;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Action, Step } from '../next';
|
|
2
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Context, Media } from '.';
|
|
3
|
+
import type { Action, Step } from '../next';
|
|
3
4
|
import { BaseRendererProps, RendererProps } from './RendererProps';
|
|
4
5
|
export type AnalyticsEventDispatcher = (eventName: string, properties?: Record<string, unknown>) => void;
|
|
5
6
|
export type LoadingState = 'idle' | 'initial' | 'submitting' | 'refreshing';
|
|
@@ -23,6 +24,7 @@ export type StepRendererProps = BaseRendererProps & {
|
|
|
23
24
|
external?: {
|
|
24
25
|
url: string;
|
|
25
26
|
};
|
|
27
|
+
toolbar?: Toolbar;
|
|
26
28
|
/**
|
|
27
29
|
* @deprecated Please use the stepLoadingState instead.
|
|
28
30
|
*/
|
|
@@ -41,3 +43,21 @@ export type StepRendererProps = BaseRendererProps & {
|
|
|
41
43
|
children: ReactNode;
|
|
42
44
|
childrenProps: RendererProps[];
|
|
43
45
|
};
|
|
46
|
+
type Toolbar = {
|
|
47
|
+
type: 'toolbar';
|
|
48
|
+
control?: string;
|
|
49
|
+
items: ToolbarItem[];
|
|
50
|
+
};
|
|
51
|
+
type ToolbarItem = ToolbarButton;
|
|
52
|
+
type ToolbarButton = {
|
|
53
|
+
type: 'toolbar-button';
|
|
54
|
+
control?: string;
|
|
55
|
+
title: string;
|
|
56
|
+
accessibilityDescription?: string;
|
|
57
|
+
media?: Media;
|
|
58
|
+
context?: Context;
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
analyticsId?: string;
|
|
61
|
+
onClick?: () => void;
|
|
62
|
+
};
|
|
63
|
+
export {};
|