@aws/mynah-ui 4.31.0-beta.6 → 4.31.0-beta.7
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/background.d.ts +0 -1
- package/dist/components/button.d.ts +0 -1
- package/dist/components/card/card-body.d.ts +0 -1
- package/dist/components/card/card.d.ts +0 -1
- package/dist/components/chat-item/chat-item-card.d.ts +5 -0
- package/dist/components/chat-item/chat-item-information-card.d.ts +0 -1
- package/dist/components/chat-item/chat-item-tabbed-card.d.ts +0 -1
- package/dist/components/chat-item/chat-item-tree-view-wrapper.d.ts +5 -1
- package/dist/components/chat-item/chat-item-tree-view.d.ts +2 -0
- package/dist/components/chat-item/chat-prompt-input.d.ts +1 -0
- package/dist/components/chat-item/chat-wrapper.d.ts +0 -1
- package/dist/components/collapsible-content.d.ts +0 -1
- package/dist/components/form-items/checkbox.d.ts +0 -1
- package/dist/components/form-items/radio-group.d.ts +0 -1
- package/dist/components/form-items/select.d.ts +0 -1
- package/dist/components/form-items/stars.d.ts +0 -1
- package/dist/components/form-items/text-area.d.ts +0 -1
- package/dist/components/form-items/text-input.d.ts +0 -1
- package/dist/components/icon.d.ts +2 -0
- package/dist/components/more-content-indicator.d.ts +0 -1
- package/dist/components/navigation-tabs.d.ts +0 -1
- package/dist/components/no-tabs.d.ts +0 -1
- package/dist/components/notification.d.ts +0 -1
- package/dist/components/overlay.d.ts +0 -1
- package/dist/components/progress.d.ts +0 -2
- package/dist/components/sheet.d.ts +0 -1
- package/dist/components/spinner/spinner.d.ts +0 -1
- package/dist/components/syntax-highlighter.d.ts +0 -1
- package/dist/components/tabs.d.ts +0 -1
- package/dist/components/title-description-with-icon.d.ts +0 -1
- package/dist/helper/file-tree.d.ts +3 -2
- package/dist/helper/style-loader.d.ts +12 -0
- package/dist/main.d.ts +3 -3
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +10 -0
- package/docs/DATAMODEL.md +39 -9
- package/docs/img/data-model/chatItems/shimmer.gif +0 -0
- package/package.json +1 -1
package/dist/static.d.ts
CHANGED
|
@@ -282,8 +282,11 @@ export interface ProgressField {
|
|
|
282
282
|
}
|
|
283
283
|
export interface TreeNodeDetails {
|
|
284
284
|
status?: Status;
|
|
285
|
+
visibleName?: string;
|
|
285
286
|
icon?: MynahIcons | MynahIconsType | null;
|
|
286
287
|
iconForegroundStatus?: Status;
|
|
288
|
+
labelIcon?: MynahIcons | MynahIconsType | null;
|
|
289
|
+
labelIconForegroundStatus?: Status;
|
|
287
290
|
label?: string;
|
|
288
291
|
changes?: {
|
|
289
292
|
added?: number;
|
|
@@ -292,6 +295,7 @@ export interface TreeNodeDetails {
|
|
|
292
295
|
};
|
|
293
296
|
description?: string;
|
|
294
297
|
clickable?: boolean;
|
|
298
|
+
data?: Record<string, string>;
|
|
295
299
|
}
|
|
296
300
|
export interface ChatItemContent {
|
|
297
301
|
header?: (ChatItemContent & {
|
|
@@ -300,6 +304,7 @@ export interface ChatItemContent {
|
|
|
300
304
|
iconForegroundStatus?: Status;
|
|
301
305
|
status?: {
|
|
302
306
|
status?: Status;
|
|
307
|
+
description?: string;
|
|
303
308
|
icon?: MynahIcons | MynahIconsType;
|
|
304
309
|
text?: string;
|
|
305
310
|
};
|
|
@@ -318,6 +323,9 @@ export interface ChatItemContent {
|
|
|
318
323
|
fileList?: {
|
|
319
324
|
fileTreeTitle?: string;
|
|
320
325
|
rootFolderTitle?: string;
|
|
326
|
+
rootFolderStatusIcon?: MynahIcons | MynahIconsType;
|
|
327
|
+
rootFolderStatusIconForegroundStatus?: Status;
|
|
328
|
+
rootFolderLabel?: string;
|
|
321
329
|
filePaths?: string[];
|
|
322
330
|
deletedFiles?: string[];
|
|
323
331
|
flatList?: boolean;
|
|
@@ -351,6 +359,7 @@ export interface ChatItem extends ChatItemContent {
|
|
|
351
359
|
messageId?: string;
|
|
352
360
|
snapToTop?: boolean;
|
|
353
361
|
autoCollapse?: boolean;
|
|
362
|
+
contentHorizontalAlignment?: 'default' | 'center';
|
|
354
363
|
canBeVoted?: boolean;
|
|
355
364
|
canBeDismissed?: boolean;
|
|
356
365
|
title?: string;
|
|
@@ -362,6 +371,7 @@ export interface ChatItem extends ChatItemContent {
|
|
|
362
371
|
iconStatus?: 'main' | 'primary' | 'clear' | Status;
|
|
363
372
|
hoverEffect?: boolean;
|
|
364
373
|
status?: Status;
|
|
374
|
+
shimmer?: boolean;
|
|
365
375
|
}
|
|
366
376
|
export interface ValidationPattern {
|
|
367
377
|
pattern: string | RegExp;
|
package/docs/DATAMODEL.md
CHANGED
|
@@ -1055,16 +1055,23 @@ interface FileNodeAction {
|
|
|
1055
1055
|
label?: string;
|
|
1056
1056
|
disabled?: boolean;
|
|
1057
1057
|
description?: string;
|
|
1058
|
-
status?:
|
|
1059
|
-
icon: MynahIcons;
|
|
1058
|
+
status?: Status;
|
|
1059
|
+
icon: MynahIcons | MynahIconsType;
|
|
1060
1060
|
}
|
|
1061
1061
|
|
|
1062
1062
|
interface TreeNodeDetails {
|
|
1063
|
-
status?:
|
|
1064
|
-
icon?: MynahIcons;
|
|
1063
|
+
status?: Status;
|
|
1064
|
+
icon?: MynahIcons | MynahIconsType | null;
|
|
1065
|
+
iconForegroundStatus?: Status;
|
|
1065
1066
|
label?: string;
|
|
1066
|
-
|
|
1067
|
-
|
|
1067
|
+
changes?: {
|
|
1068
|
+
added?: number;
|
|
1069
|
+
deleted?: number;
|
|
1070
|
+
total?: number;
|
|
1071
|
+
};
|
|
1072
|
+
description?: string;
|
|
1073
|
+
clickable?: boolean;
|
|
1074
|
+
data?: Record<string, string>;
|
|
1068
1075
|
}
|
|
1069
1076
|
|
|
1070
1077
|
interface SourceLink {
|
|
@@ -1158,16 +1165,23 @@ interface ChatItemContent {
|
|
|
1158
1165
|
codeBlockActions?: CodeBlockActions | null;
|
|
1159
1166
|
}
|
|
1160
1167
|
|
|
1161
|
-
interface ChatItem extends ChatItemContent{
|
|
1168
|
+
interface ChatItem extends ChatItemContent {
|
|
1162
1169
|
type: ChatItemType;
|
|
1163
1170
|
messageId?: string;
|
|
1164
1171
|
snapToTop?: boolean;
|
|
1165
1172
|
autoCollapse?: boolean;
|
|
1166
1173
|
canBeVoted?: boolean;
|
|
1167
|
-
|
|
1174
|
+
canBeDismissed?: boolean;
|
|
1175
|
+
title?: string;
|
|
1176
|
+
fullWidth?: boolean;
|
|
1177
|
+
padding?: boolean;
|
|
1178
|
+
muted?: boolean;
|
|
1179
|
+
icon?: MynahIcons | MynahIconsType | CustomIcon;
|
|
1180
|
+
iconForegroundStatus?: Status;
|
|
1168
1181
|
iconStatus?: 'main' | 'primary' | 'clear' | Status;
|
|
1169
1182
|
hoverEffect?: boolean;
|
|
1170
|
-
status?:
|
|
1183
|
+
status?: Status;
|
|
1184
|
+
shimmer?: boolean;
|
|
1171
1185
|
}
|
|
1172
1186
|
// #################################
|
|
1173
1187
|
```
|
|
@@ -1957,6 +1971,22 @@ mynahUI.addChatItem(tabId, {
|
|
|
1957
1971
|
|
|
1958
1972
|
---
|
|
1959
1973
|
|
|
1974
|
+
## `shimmer`
|
|
1975
|
+
It will give the text in the chat item an animated shimmer effect.
|
|
1976
|
+
|
|
1977
|
+
```typescript
|
|
1978
|
+
mynahUI.addChatItem(tabId, {
|
|
1979
|
+
type: ChatItemType.ANSWER,
|
|
1980
|
+
messageId: new Date().getTime().toString(),
|
|
1981
|
+
body: 'Thinking...',
|
|
1982
|
+
shimmer: true,
|
|
1983
|
+
});
|
|
1984
|
+
```
|
|
1985
|
+
|
|
1986
|
+
<p align="center">
|
|
1987
|
+
<img src="./img/data-model/chatItems/shimmer.gif" alt="shimmer" style="max-width:200px; width:100%;border: 1px solid #e0e0e0;">
|
|
1988
|
+
</p>
|
|
1989
|
+
|
|
1960
1990
|
## `padding`
|
|
1961
1991
|
It will allow you to control the padding, by default it is `true`. If you set it to `false`, it will not show any paddings around the contents.
|
|
1962
1992
|
|
|
Binary file
|
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.31.0-beta.
|
|
4
|
+
"version": "4.31.0-beta.7",
|
|
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",
|