@aws/mynah-ui 3.3.3 → 3.5.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/components/chat-item/chat-item-buttons.d.ts +18 -0
- package/dist/components/chat-item/chat-item-card.d.ts +4 -0
- package/dist/components/chat-item/chat-item-followup-option.d.ts +20 -0
- package/dist/components/chat-item/chat-item-followup.d.ts +1 -4
- package/dist/components/chat-item/chat-item-form-items.d.ts +18 -0
- package/dist/components/feedback-form/feedback-form.d.ts +0 -1
- package/dist/components/select.d.ts +27 -0
- package/dist/components/text-area.d.ts +20 -0
- package/dist/main.d.ts +8 -3
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +25 -2
- package/package.json +1 -1
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,26 @@ export interface ChatItem {
|
|
|
100
101
|
filePaths?: string[];
|
|
101
102
|
deletedFiles?: string[];
|
|
102
103
|
};
|
|
104
|
+
icon?: MynahIcons;
|
|
105
|
+
status?: 'info' | 'success' | 'warning' | 'error';
|
|
106
|
+
buttons?: ChatItemButton[];
|
|
107
|
+
formItems?: ChatItemFormItem[];
|
|
108
|
+
}
|
|
109
|
+
export interface ChatItemFormItem {
|
|
110
|
+
id: string;
|
|
111
|
+
title?: string;
|
|
112
|
+
input?: string;
|
|
113
|
+
options?: Array<{
|
|
114
|
+
value: string;
|
|
115
|
+
label: string;
|
|
116
|
+
}>;
|
|
103
117
|
}
|
|
104
118
|
export interface ChatPrompt {
|
|
105
119
|
prompt?: string;
|
|
106
120
|
escapedPrompt?: string;
|
|
107
121
|
command?: string;
|
|
108
122
|
}
|
|
109
|
-
export interface
|
|
123
|
+
export interface ChatItemAction extends ChatPrompt {
|
|
110
124
|
type?: string;
|
|
111
125
|
pillText: string;
|
|
112
126
|
disabled?: boolean;
|
|
@@ -114,6 +128,15 @@ export interface ChatItemFollowUp extends ChatPrompt {
|
|
|
114
128
|
status?: 'info' | 'success' | 'warning' | 'error';
|
|
115
129
|
icon?: MynahIcons;
|
|
116
130
|
}
|
|
131
|
+
export interface ChatItemButton {
|
|
132
|
+
keepCardAfterClick?: boolean;
|
|
133
|
+
text: string;
|
|
134
|
+
id: string;
|
|
135
|
+
disabled?: boolean;
|
|
136
|
+
description?: string;
|
|
137
|
+
status?: 'info' | 'success' | 'warning' | 'error';
|
|
138
|
+
icon?: MynahIcons;
|
|
139
|
+
}
|
|
117
140
|
export declare enum KeyMap {
|
|
118
141
|
ESCAPE = "Escape",
|
|
119
142
|
ENTER = "Enter",
|
package/package.json
CHANGED