@aws/mynah-ui 4.0.2 → 4.0.4
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 +2 -1
- package/dist/components/chat-item/chat-item-form-items.d.ts +1 -1
- package/dist/components/chat-item/chat-item-tree-view-wrapper.d.ts +3 -1
- package/dist/components/chat-item/chat-prompt-input.d.ts +1 -1
- package/dist/components/chat-item/chat-wrapper.d.ts +2 -0
- package/dist/components/feedback-form/custom-form.d.ts +24 -0
- package/dist/components/icon.d.ts +3 -0
- package/dist/components/navigation-tabs.d.ts +4 -0
- package/dist/components/toggle.d.ts +1 -1
- package/dist/helper/config.d.ts +6 -2
- package/dist/helper/dom.d.ts +7 -1
- package/dist/helper/file-tree.d.ts +5 -1
- package/dist/main.d.ts +10 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +50 -24
- package/package.json +1 -1
package/dist/static.d.ts
CHANGED
|
@@ -49,6 +49,8 @@ export declare enum MynahEventNames {
|
|
|
49
49
|
SHOW_MORE_WEB_RESULTS_CLICK = "showMoreWebResultsClick",
|
|
50
50
|
SHOW_FEEDBACK_FORM = "showFeedbackForm",
|
|
51
51
|
OPEN_DIFF = "openDiff",
|
|
52
|
+
FILE_ACTION_CLICK = "fileActionClick",
|
|
53
|
+
CUSTOM_FORM_ACTION_CLICK = "customFormActionClick",
|
|
52
54
|
ADD_CODE_SNIPPET = "addCodeSnippet",
|
|
53
55
|
REMOVE_CODE_SNIPPET = "removeCodeSnippet"
|
|
54
56
|
}
|
|
@@ -84,6 +86,11 @@ export declare enum ChatItemType {
|
|
|
84
86
|
ANSWER_PART = "answer-part",
|
|
85
87
|
CODE_RESULT = "code-result"
|
|
86
88
|
}
|
|
89
|
+
export interface TreeNodeDetails {
|
|
90
|
+
status?: 'info' | 'success' | 'warning' | 'error';
|
|
91
|
+
icon?: MynahIcons;
|
|
92
|
+
label?: string;
|
|
93
|
+
}
|
|
87
94
|
export interface ChatItem {
|
|
88
95
|
type: ChatItemType;
|
|
89
96
|
body?: string;
|
|
@@ -101,6 +108,8 @@ export interface ChatItem {
|
|
|
101
108
|
fileList?: {
|
|
102
109
|
filePaths?: string[];
|
|
103
110
|
deletedFiles?: string[];
|
|
111
|
+
actions?: Record<string, FileNodeAction[]>;
|
|
112
|
+
details?: Record<string, TreeNodeDetails>;
|
|
104
113
|
};
|
|
105
114
|
icon?: MynahIcons;
|
|
106
115
|
status?: 'info' | 'success' | 'warning' | 'error';
|
|
@@ -142,6 +151,14 @@ export interface ChatItemButton {
|
|
|
142
151
|
status?: 'info' | 'success' | 'warning' | 'error';
|
|
143
152
|
icon?: MynahIcons;
|
|
144
153
|
}
|
|
154
|
+
export interface FileNodeAction {
|
|
155
|
+
name: string;
|
|
156
|
+
label?: string;
|
|
157
|
+
disabled?: boolean;
|
|
158
|
+
description?: string;
|
|
159
|
+
status?: 'info' | 'success' | 'warning' | 'error';
|
|
160
|
+
icon: MynahIcons;
|
|
161
|
+
}
|
|
145
162
|
export declare enum KeyMap {
|
|
146
163
|
ESCAPE = "Escape",
|
|
147
164
|
ENTER = "Enter",
|
|
@@ -210,34 +227,43 @@ export declare enum NotificationType {
|
|
|
210
227
|
WARNING = "warning",
|
|
211
228
|
ERROR = "error"
|
|
212
229
|
}
|
|
213
|
-
export interface
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
230
|
+
export interface ConfigTexts {
|
|
231
|
+
mainTitle: string;
|
|
232
|
+
feedbackFormTitle: string;
|
|
233
|
+
feedbackFormOptionsLabel: string;
|
|
234
|
+
feedbackFormCommentLabel: string;
|
|
235
|
+
feedbackThanks: string;
|
|
236
|
+
feedbackReportButtonLabel: string;
|
|
237
|
+
codeSuggestions: string;
|
|
238
|
+
clickFileToViewDiff: string;
|
|
239
|
+
files: string;
|
|
240
|
+
changes: string;
|
|
241
|
+
insertAtCursorLabel: string;
|
|
242
|
+
copy: string;
|
|
243
|
+
showMore: string;
|
|
244
|
+
save: string;
|
|
245
|
+
cancel: string;
|
|
246
|
+
submit: string;
|
|
247
|
+
pleaseSelect: string;
|
|
248
|
+
stopGenerating: string;
|
|
249
|
+
copyToClipboard: string;
|
|
250
|
+
noMoreTabsTooltip: string;
|
|
251
|
+
codeSuggestionWithReferenceTitle: string;
|
|
252
|
+
spinnerText: string;
|
|
253
|
+
tabCloseConfirmationMessage: string;
|
|
254
|
+
tabCloseConfirmationKeepButton: string;
|
|
255
|
+
tabCloseConfirmationCloseButton: string;
|
|
256
|
+
}
|
|
257
|
+
export interface ConfigOptions {
|
|
237
258
|
feedbackOptions: Array<{
|
|
238
259
|
label: string;
|
|
239
260
|
value: string;
|
|
240
261
|
}>;
|
|
241
262
|
maxTabs: number;
|
|
242
263
|
showPromptField: boolean;
|
|
264
|
+
autoFocus: boolean;
|
|
265
|
+
maxUserInput: number;
|
|
266
|
+
}
|
|
267
|
+
export interface ConfigModel extends ConfigOptions {
|
|
268
|
+
texts: Partial<ConfigTexts>;
|
|
243
269
|
}
|
package/package.json
CHANGED