@aws/mynah-ui 4.0.3 → 4.1.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/card/card-body.d.ts +1 -0
- 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-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/helper/file-tree.d.ts +5 -1
- package/dist/main.d.ts +9 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +18 -0
- package/package.json +3 -2
- package/postinstall.js +5 -0
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",
|
|
@@ -220,6 +237,7 @@ export interface ConfigTexts {
|
|
|
220
237
|
codeSuggestions: string;
|
|
221
238
|
clickFileToViewDiff: string;
|
|
222
239
|
files: string;
|
|
240
|
+
changes: string;
|
|
223
241
|
insertAtCursorLabel: string;
|
|
224
242
|
copy: string;
|
|
225
243
|
showMore: string;
|
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
|
|
4
|
+
"version": "4.1.0",
|
|
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",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"watch": "webpack --config webpack.config.js --mode development --watch",
|
|
18
18
|
"lint-fix": "npx eslint \"./**\" --fix",
|
|
19
19
|
"lint": "npx eslint \"./**\"",
|
|
20
|
-
"test": "jest"
|
|
20
|
+
"test": "jest",
|
|
21
|
+
"postinstall": "node postinstall.js"
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
24
|
"marked": "^7.0.3",
|