@aws/mynah-ui 3.3.3 → 3.4.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/dist/static.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare enum MynahEventNames {
|
|
|
44
44
|
CHAT_PROMPT = "chatPrompt",
|
|
45
45
|
CHAT_ITEM_ADD = "chatItemAdd",
|
|
46
46
|
FOLLOW_UP_CLICKED = "followUpClicked",
|
|
47
|
+
BODY_ACTION_CLICKED = "bodyActionClicked",
|
|
47
48
|
SHOW_MORE_WEB_RESULTS_CLICK = "showMoreWebResultsClick",
|
|
48
49
|
SHOW_FEEDBACK_FORM = "showFeedbackForm",
|
|
49
50
|
OPEN_DIFF = "openDiff",
|
|
@@ -89,7 +90,7 @@ export interface ChatItem {
|
|
|
89
90
|
canBeVoted?: boolean;
|
|
90
91
|
followUp?: {
|
|
91
92
|
text?: string;
|
|
92
|
-
options?:
|
|
93
|
+
options?: ChatItemAction[];
|
|
93
94
|
};
|
|
94
95
|
relatedContent?: {
|
|
95
96
|
title?: string;
|
|
@@ -100,13 +101,16 @@ export interface ChatItem {
|
|
|
100
101
|
filePaths?: string[];
|
|
101
102
|
deletedFiles?: string[];
|
|
102
103
|
};
|
|
104
|
+
icon?: MynahIcons;
|
|
105
|
+
status?: 'info' | 'success' | 'warning' | 'error';
|
|
106
|
+
actions?: ChatItemAction[];
|
|
103
107
|
}
|
|
104
108
|
export interface ChatPrompt {
|
|
105
109
|
prompt?: string;
|
|
106
110
|
escapedPrompt?: string;
|
|
107
111
|
command?: string;
|
|
108
112
|
}
|
|
109
|
-
export interface
|
|
113
|
+
export interface ChatItemAction extends ChatPrompt {
|
|
110
114
|
type?: string;
|
|
111
115
|
pillText: string;
|
|
112
116
|
disabled?: boolean;
|
package/package.json
CHANGED