@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/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 ConfigModel {
214
- texts: {
215
- mainTitle: string;
216
- feedbackFormTitle: string;
217
- feedbackFormOptionsLabel: string;
218
- feedbackFormCommentLabel: string;
219
- feedbackThanks: string;
220
- feedbackReportButtonLabel: string;
221
- codeSuggestions: string;
222
- clickFileToViewDiff: string;
223
- files: string;
224
- insertAtCursorLabel: string;
225
- copy: string;
226
- showMore: string;
227
- save: string;
228
- cancel: string;
229
- submit: string;
230
- pleaseSelect: string;
231
- stopGenerating: string;
232
- copyToClipboard: string;
233
- noMoreTabsTooltip: string;
234
- codeSuggestionWithReferenceTitle: string;
235
- spinnerText: string;
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws/mynah-ui",
3
3
  "displayName": "AWS Mynah UI",
4
- "version": "4.0.2",
4
+ "version": "4.0.4",
5
5
  "description": "AWS Toolkit VSCode and Intellij IDE Extension Mynah UI",
6
6
  "publisher": "Amazon Web Services",
7
7
  "license": "Apache License 2.0",