@wise/dynamic-flow-types 2.22.3 → 2.23.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 +22 -16
- package/build/main.min.js +1 -1
- package/build/main.mjs +22 -16
- package/build/next/feature/Action.d.ts +10 -8
- package/build/next/feature/Polling.d.ts +4 -2
- package/build/next/layout/ItemCallToAction.d.ts +18 -0
- package/build/next/layout/StatusListLayoutItem.d.ts +6 -0
- package/build/zod/schemas.d.ts +785 -221
- package/build/zod/schemas.ts +65 -58
- package/package.json +4 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Behavior } from '../feature/Behavior';
|
|
2
|
+
/**
|
|
3
|
+
* The call to action configuration to be used by the status list item.
|
|
4
|
+
*/
|
|
5
|
+
export type ItemCallToAction = {
|
|
6
|
+
/**
|
|
7
|
+
* A user-facing title.
|
|
8
|
+
*/
|
|
9
|
+
title: string;
|
|
10
|
+
/**
|
|
11
|
+
* A description of the call to action to be used by screen readers.
|
|
12
|
+
*/
|
|
13
|
+
accessibilityDescription?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Behavior that should be performed when user interacts with call to action.
|
|
16
|
+
*/
|
|
17
|
+
behavior: Behavior;
|
|
18
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Icon } from '../misc/Icon';
|
|
2
2
|
import type { StatusListLayoutStatus } from './StatusListLayoutStatus';
|
|
3
|
+
import type { ItemCallToAction } from './ItemCallToAction';
|
|
3
4
|
/**
|
|
4
5
|
* A single entry in a [StatusListLayout].
|
|
5
6
|
*/
|
|
@@ -20,4 +21,9 @@ export type StatusListLayoutItem = {
|
|
|
20
21
|
* The status of the item, if it has one.
|
|
21
22
|
*/
|
|
22
23
|
status?: StatusListLayoutStatus;
|
|
24
|
+
/**
|
|
25
|
+
* A titled call to action which can be performed by the user.
|
|
26
|
+
* @experimental This feature may be changed in the future without notice.
|
|
27
|
+
*/
|
|
28
|
+
callToAction?: ItemCallToAction;
|
|
23
29
|
};
|