@aws/mynah-ui 2.0.0-beta.2 → 2.0.0-beta.3
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-prompt-input.d.ts +3 -6
- package/dist/components/chat-item/chat-wrapper.d.ts +1 -1
- package/dist/components/syntax-highlighter.d.ts +4 -1
- package/dist/main.d.ts +2 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +6 -2
- package/package.json +1 -1
package/dist/static.d.ts
CHANGED
|
@@ -22,7 +22,8 @@ export declare enum MynahEventNames {
|
|
|
22
22
|
SUGGESTION_OPEN = "suggestionOpen",
|
|
23
23
|
SUGGESTION_LINK_COPY = "suggestionLinkCopy",
|
|
24
24
|
SUGGESTION_ENGAGEMENT = "suggestionEngagement",
|
|
25
|
-
|
|
25
|
+
COPY_CODE_TO_CLIPBOARD = "copyCodeToClipboard",
|
|
26
|
+
INSERT_CODE_TO_CURSOR_POSITION = "insertCodeToCursorPosition",
|
|
26
27
|
CHAT_PROMPT = "chatPrompt",
|
|
27
28
|
FOLLOW_UP_CLICKED = "followUpClicked",
|
|
28
29
|
SUGGESTION_ATTACHED_TO_CHAT = "suggestionAttachedToChat",
|
|
@@ -95,6 +96,8 @@ export declare enum ChatItemType {
|
|
|
95
96
|
export interface ChatItem {
|
|
96
97
|
body?: string;
|
|
97
98
|
type: ChatItemType;
|
|
99
|
+
id?: string;
|
|
100
|
+
canBeVoted?: boolean;
|
|
98
101
|
followUp?: {
|
|
99
102
|
text?: string;
|
|
100
103
|
options?: ChatItemFollowUp[];
|
|
@@ -109,7 +112,7 @@ export interface ChatItem {
|
|
|
109
112
|
};
|
|
110
113
|
}
|
|
111
114
|
export interface ChatPrompt {
|
|
112
|
-
prompt
|
|
115
|
+
prompt?: string;
|
|
113
116
|
attachment?: Suggestion;
|
|
114
117
|
}
|
|
115
118
|
export interface ChatItemFollowUp extends ChatPrompt {
|
|
@@ -151,6 +154,7 @@ export declare const SupportedCodingLanguagesExtensionToTypeMap: {
|
|
|
151
154
|
json: string;
|
|
152
155
|
};
|
|
153
156
|
export declare type OnCopiedToClipboardFunction = (type?: 'selection' | 'block', text?: string) => void;
|
|
157
|
+
export declare type OnInsertToCursorPositionFunction = (type?: 'selection' | 'block', text?: string) => void;
|
|
154
158
|
export declare enum SuggestionEventName {
|
|
155
159
|
OPEN = "openSuggestion",
|
|
156
160
|
COPY = "copy"
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws/mynah-ui",
|
|
3
3
|
"displayName": "AWS Mynah UI",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.3",
|
|
5
5
|
"description": "AWS Tookit VSCode and Intellij IDE Extension Mynah UI",
|
|
6
6
|
"publisher": "Amazon Web Services",
|
|
7
7
|
"license": "Apache License 2.0",
|