@aws/mynah-ui 4.6.2 → 4.6.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/card/card.d.ts +4 -0
- package/dist/components/chat-item/chat-item-tree-file.d.ts +17 -0
- package/dist/components/icon.d.ts +1 -0
- package/dist/components/notification.d.ts +4 -0
- package/dist/components/overlay.d.ts +36 -0
- package/dist/helper/events.d.ts +15 -0
- package/dist/helper/store.d.ts +38 -0
- package/dist/helper/tabs-store.d.ts +50 -4
- package/dist/main.d.ts +68 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +79 -1
- package/package.json +1 -1
package/dist/static.d.ts
CHANGED
|
@@ -14,27 +14,84 @@ export interface QuickActionCommandGroup {
|
|
|
14
14
|
groupName?: string;
|
|
15
15
|
commands: QuickActionCommand[];
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* data store model to update the mynah ui partially or fully
|
|
19
|
+
*/
|
|
17
20
|
export interface MynahUIDataModel {
|
|
21
|
+
/**
|
|
22
|
+
* Tab title
|
|
23
|
+
* */
|
|
18
24
|
tabTitle?: string;
|
|
25
|
+
/**
|
|
26
|
+
* If tab is running an action (loadingChat = true) this markdown will be shown before close in a popup
|
|
27
|
+
*/
|
|
19
28
|
tabCloseConfirmationMessage?: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* Keep tab open button text
|
|
31
|
+
*/
|
|
20
32
|
tabCloseConfirmationKeepButton?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Close tab button text
|
|
35
|
+
*/
|
|
21
36
|
tabCloseConfirmationCloseButton?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Chat screen loading animation state (mainly use during the stream or getting the initial answer)
|
|
39
|
+
*/
|
|
22
40
|
loadingChat?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Show chat avatars or not
|
|
43
|
+
* */
|
|
23
44
|
showChatAvatars?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Show cancel button while loading the chat
|
|
47
|
+
* */
|
|
24
48
|
cancelButtonWhenLoading?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Quick Action commands to show when user hits / to the input initially
|
|
51
|
+
*/
|
|
25
52
|
quickActionCommands?: QuickActionCommandGroup[];
|
|
53
|
+
/**
|
|
54
|
+
* Placeholder to be shown on prompt input
|
|
55
|
+
*/
|
|
26
56
|
promptInputPlaceholder?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Info block to be shown under prompt input
|
|
59
|
+
*/
|
|
27
60
|
promptInputInfo?: string;
|
|
61
|
+
/**
|
|
62
|
+
* A sticky chat item card on top of the prompt input
|
|
63
|
+
*/
|
|
28
64
|
promptInputStickyCard?: Partial<ChatItem> | null;
|
|
65
|
+
/**
|
|
66
|
+
* Prompt input field disabled state, set to tru to disable it
|
|
67
|
+
*/
|
|
29
68
|
promptInputDisabledState?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* List of chat item objects to be shown on the web suggestions search screen
|
|
71
|
+
*/
|
|
30
72
|
chatItems?: ChatItem[];
|
|
73
|
+
/**
|
|
74
|
+
* Attached code under the prompt input field
|
|
75
|
+
*/
|
|
31
76
|
selectedCodeSnippet?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Tab bar buttons next to the tab items
|
|
79
|
+
*/
|
|
32
80
|
tabBarButtons?: TabBarMainAction[];
|
|
33
81
|
}
|
|
34
82
|
export interface MynahUITabStoreTab {
|
|
83
|
+
/**
|
|
84
|
+
* Is tab selected
|
|
85
|
+
*/
|
|
35
86
|
isSelected?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Tab items data store
|
|
89
|
+
*/
|
|
36
90
|
store?: MynahUIDataModel;
|
|
37
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* tabs store model to update the tabs partially or fully
|
|
94
|
+
*/
|
|
38
95
|
export interface MynahUITabStoreModel {
|
|
39
96
|
[tabId: string]: MynahUITabStoreTab;
|
|
40
97
|
}
|
|
@@ -54,7 +111,7 @@ export declare enum MynahEventNames {
|
|
|
54
111
|
BODY_ACTION_CLICKED = "bodyActionClicked",
|
|
55
112
|
SHOW_MORE_WEB_RESULTS_CLICK = "showMoreWebResultsClick",
|
|
56
113
|
SHOW_FEEDBACK_FORM = "showFeedbackForm",
|
|
57
|
-
|
|
114
|
+
FILE_CLICK = "fileClick",
|
|
58
115
|
FILE_ACTION_CLICK = "fileActionClick",
|
|
59
116
|
CUSTOM_FORM_ACTION_CLICK = "customFormActionClick",
|
|
60
117
|
ADD_CODE_SNIPPET = "addCodeSnippet",
|
|
@@ -221,17 +278,38 @@ export declare enum RelevancyVoteType {
|
|
|
221
278
|
UP = "upvote",
|
|
222
279
|
DOWN = "downvote"
|
|
223
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* 'interaction' will be set if there was a potential text selection or a click input was triggered by the user.
|
|
283
|
+
* If this is a selection selectionDistanceTraveled object will also be filled
|
|
284
|
+
* 'timespend' will be set basically if there is no interaction except mouse movements in a time spent longer than the ENGAGEMENT_DURATION_LIMIT
|
|
285
|
+
* Don't forget that in 'timespend' case, user should leave the suggestion card at some point to count it as an interaction.
|
|
286
|
+
* (They need to go back to the code or move to another card instead)
|
|
287
|
+
*/
|
|
224
288
|
export declare enum EngagementType {
|
|
225
289
|
INTERACTION = "interaction",
|
|
226
290
|
TIME = "timespend"
|
|
227
291
|
}
|
|
228
292
|
export interface Engagement {
|
|
293
|
+
/**
|
|
294
|
+
* Engagement type
|
|
295
|
+
*/
|
|
229
296
|
engagementType: EngagementType;
|
|
297
|
+
/**
|
|
298
|
+
* Total duration in ms till the engagement triggered.
|
|
299
|
+
*/
|
|
230
300
|
engagementDurationTillTrigger: number;
|
|
301
|
+
/**
|
|
302
|
+
* Total mouse movement in x and y directions till the engagement triggered.
|
|
303
|
+
* To avoid confusion: this is not the distance between start and end points, this is the total traveled distance.
|
|
304
|
+
*/
|
|
231
305
|
totalMouseDistanceTraveled: {
|
|
232
306
|
x: number;
|
|
233
307
|
y: number;
|
|
234
308
|
};
|
|
309
|
+
/**
|
|
310
|
+
* If the engagementType is "interaction" and this object has a value, you can assume it as a text selection.
|
|
311
|
+
* If the engagementType is "interaction" but this object is not defined, you can assume it as a click
|
|
312
|
+
*/
|
|
235
313
|
selectionDistanceTraveled?: {
|
|
236
314
|
x: number;
|
|
237
315
|
y: number;
|
package/package.json
CHANGED