@aws/mynah-ui 4.35.0-beta.4 → 4.35.0-beta.6
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-item-card.d.ts +1 -0
- package/dist/components/form-items/select.d.ts +4 -0
- package/dist/components/icon.d.ts +4 -0
- package/dist/components/overlay.d.ts +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +23 -8
- package/package.json +1 -1
- package/test-config/config.js +1 -0
package/dist/static.d.ts
CHANGED
|
@@ -375,24 +375,29 @@ export interface ChatItemContent {
|
|
|
375
375
|
icon?: MynahIcons | MynahIconsType;
|
|
376
376
|
content: ChatItemContent;
|
|
377
377
|
} | null;
|
|
378
|
+
summary?: {
|
|
379
|
+
isCollapsed?: boolean;
|
|
380
|
+
content?: ChatItemContent;
|
|
381
|
+
collapsedContent?: ChatItemContent[];
|
|
382
|
+
} | null;
|
|
378
383
|
tabbedContent?: Array<ToggleOption & {
|
|
379
384
|
content: ChatItemContent;
|
|
380
385
|
}> | null;
|
|
381
386
|
codeBlockActions?: CodeBlockActions | null;
|
|
387
|
+
fullWidth?: boolean;
|
|
388
|
+
padding?: boolean;
|
|
389
|
+
wrapCodes?: boolean;
|
|
390
|
+
muted?: boolean;
|
|
382
391
|
}
|
|
383
392
|
export interface ChatItem extends ChatItemContent {
|
|
384
393
|
type: ChatItemType;
|
|
385
394
|
messageId?: string;
|
|
386
395
|
snapToTop?: boolean;
|
|
387
|
-
wrapCodes?: boolean;
|
|
388
396
|
autoCollapse?: boolean;
|
|
389
397
|
contentHorizontalAlignment?: 'default' | 'center';
|
|
390
398
|
canBeVoted?: boolean;
|
|
391
399
|
canBeDismissed?: boolean;
|
|
392
400
|
title?: string;
|
|
393
|
-
fullWidth?: boolean;
|
|
394
|
-
padding?: boolean;
|
|
395
|
-
muted?: boolean;
|
|
396
401
|
icon?: MynahIcons | MynahIconsType | CustomIcon;
|
|
397
402
|
iconForegroundStatus?: Status;
|
|
398
403
|
iconStatus?: 'main' | 'primary' | 'clear' | Status;
|
|
@@ -424,8 +429,17 @@ export type TextBasedFormItem = BaseFormItem & {
|
|
|
424
429
|
patterns: ValidationPattern[];
|
|
425
430
|
};
|
|
426
431
|
};
|
|
427
|
-
type
|
|
428
|
-
type: 'select'
|
|
432
|
+
type DropdownFormItem = BaseFormItem & {
|
|
433
|
+
type: 'select';
|
|
434
|
+
border?: boolean;
|
|
435
|
+
autoWidth?: boolean;
|
|
436
|
+
options?: Array<{
|
|
437
|
+
value: string;
|
|
438
|
+
label: string;
|
|
439
|
+
}>;
|
|
440
|
+
};
|
|
441
|
+
type Stars = BaseFormItem & {
|
|
442
|
+
type: 'stars';
|
|
429
443
|
options?: Array<{
|
|
430
444
|
value: string;
|
|
431
445
|
label: string;
|
|
@@ -445,8 +459,8 @@ type CheckboxFormItem = BaseFormItem & {
|
|
|
445
459
|
label?: string;
|
|
446
460
|
alternateTooltip?: string;
|
|
447
461
|
};
|
|
448
|
-
export type SingularFormItem = TextBasedFormItem |
|
|
449
|
-
export type ChatItemFormItem = TextBasedFormItem |
|
|
462
|
+
export type SingularFormItem = TextBasedFormItem | DropdownFormItem | RadioGroupFormItem | CheckboxFormItem | Stars;
|
|
463
|
+
export type ChatItemFormItem = TextBasedFormItem | DropdownFormItem | RadioGroupFormItem | CheckboxFormItem | ListFormItem | Stars;
|
|
450
464
|
export type FilterOption = ChatItemFormItem;
|
|
451
465
|
export interface ListFormItem {
|
|
452
466
|
type: 'list';
|
|
@@ -636,6 +650,7 @@ export interface ConfigTexts {
|
|
|
636
650
|
save: string;
|
|
637
651
|
cancel: string;
|
|
638
652
|
submit: string;
|
|
653
|
+
add: string;
|
|
639
654
|
pleaseSelect: string;
|
|
640
655
|
stopGenerating: string;
|
|
641
656
|
copyToClipboard: 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.35.0-beta.
|
|
4
|
+
"version": "4.35.0-beta.6",
|
|
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",
|
package/test-config/config.js
CHANGED