@aws/mynah-ui 4.26.0-beta.5 → 4.27.0-beta.1
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/feedback-form/feedback-form.d.ts +4 -4
- package/dist/components/icon.d.ts +2 -0
- package/dist/components/sheet.d.ts +20 -0
- package/dist/helper/test-ids.d.ts +2 -5
- package/dist/main.d.ts +13 -3
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +5 -0
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +6 -1
- package/docs/DATAMODEL.md +23 -7
- package/package.json +1 -1
- package/dist/components/feedback-form/custom-form.d.ts +0 -25
package/dist/static.d.ts
CHANGED
|
@@ -163,6 +163,11 @@ export declare enum MynahEventNames {
|
|
|
163
163
|
TABBED_CONTENT_SWITCH = "tabbedContentSwitch",
|
|
164
164
|
SHOW_MORE_WEB_RESULTS_CLICK = "showMoreWebResultsClick",
|
|
165
165
|
SHOW_FEEDBACK_FORM = "showFeedbackForm",
|
|
166
|
+
OPEN_SHEET = "openSheet",
|
|
167
|
+
CLOSE_SHEET = "closeSheet",
|
|
168
|
+
DETAIL_ACTION_CLICK = "detailActionClick",
|
|
169
|
+
DETAIL_FILTER_CHANGE = "detailFilterChange",
|
|
170
|
+
DETAIL_ITEM_CLICK = "detailItemClick",
|
|
166
171
|
FILE_CLICK = "fileClick",
|
|
167
172
|
FILE_ACTION_CLICK = "fileActionClick",
|
|
168
173
|
TAB_FOCUS = "tabFocus",
|
|
@@ -181,7 +186,7 @@ export declare enum MynahPortalNames {
|
|
|
181
186
|
WRAPPER = "wrapper",
|
|
182
187
|
SIDE_NAV = "sideNav",
|
|
183
188
|
OVERLAY = "overlay",
|
|
184
|
-
|
|
189
|
+
SHEET = "sheet"
|
|
185
190
|
}
|
|
186
191
|
export type PromptAttachmentType = 'code' | 'markdown';
|
|
187
192
|
export interface SourceLinkMetaData {
|
package/docs/DATAMODEL.md
CHANGED
|
@@ -2825,22 +2825,38 @@ export interface ChatPrompt {
|
|
|
2825
2825
|
|
|
2826
2826
|
# `DetailedListItem`
|
|
2827
2827
|
|
|
2828
|
-
|
|
2828
|
+
DetailedList items can be rendered in an `DetailedListItemGroup` within the `chatItems?` array. These items are full width information displays, with an optional icon on the left, and room for a title, description, and a list of actions.
|
|
2829
2829
|
|
|
2830
2830
|
```typescript
|
|
2831
|
+
export interface DetailedList {
|
|
2832
|
+
filterOptions?: FilterOption[] | null;
|
|
2833
|
+
list?: DetailedListItemGroup[];
|
|
2834
|
+
header?: {
|
|
2835
|
+
title?: string;
|
|
2836
|
+
icon?: MynahIcons | MynahIconsType;
|
|
2837
|
+
description?: string;
|
|
2838
|
+
};
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2831
2841
|
export interface DetailedListItemGroup {
|
|
2832
|
-
|
|
2842
|
+
groupName?: string;
|
|
2843
|
+
actions?: Action[];
|
|
2833
2844
|
icon?: MynahIcons | MynahIconsType;
|
|
2834
|
-
children
|
|
2845
|
+
children?: DetailedListItem[];
|
|
2835
2846
|
}
|
|
2836
2847
|
|
|
2837
2848
|
export interface DetailedListItem {
|
|
2838
|
-
messageId?: string;
|
|
2839
|
-
icon?: MynahIcons | MynahIconsType;
|
|
2840
2849
|
title?: string;
|
|
2850
|
+
name?: string;
|
|
2851
|
+
id?: string;
|
|
2852
|
+
icon?: MynahIcons | MynahIconsType;
|
|
2841
2853
|
description?: string;
|
|
2842
|
-
|
|
2843
|
-
|
|
2854
|
+
disabled?: boolean;
|
|
2855
|
+
followupText?: string;
|
|
2844
2856
|
clickable?: boolean;
|
|
2857
|
+
actions?: ChatItemButton[];
|
|
2858
|
+
children?: DetailedListItemGroup[];
|
|
2859
|
+
keywords?: string[];
|
|
2860
|
+
}
|
|
2845
2861
|
}
|
|
2846
2862
|
```
|
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.
|
|
4
|
+
"version": "4.27.0-beta.1",
|
|
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",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
*/
|
|
5
|
-
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
6
|
-
import { ChatItem } from '../../static';
|
|
7
|
-
import { ChatItemFormItemsWrapper } from '../chat-item/chat-item-form-items';
|
|
8
|
-
import { ChatItemButtonsWrapper } from '../chat-item/chat-item-buttons';
|
|
9
|
-
export interface CustomFormWrapperProps {
|
|
10
|
-
tabId: string;
|
|
11
|
-
chatItem: Partial<ChatItem>;
|
|
12
|
-
title?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
onFormAction?: (actionName: string, formData: Record<string, string>) => void;
|
|
15
|
-
onFormDisabled?: () => void;
|
|
16
|
-
onCloseButtonClick?: (e: Event) => void;
|
|
17
|
-
}
|
|
18
|
-
export declare class CustomFormWrapper {
|
|
19
|
-
readonly props: CustomFormWrapperProps;
|
|
20
|
-
render: ExtendedHTMLElement;
|
|
21
|
-
chatFormItems: ChatItemFormItemsWrapper | null;
|
|
22
|
-
chatButtons: ChatItemButtonsWrapper | null;
|
|
23
|
-
constructor(props: CustomFormWrapperProps);
|
|
24
|
-
private readonly getFormItems;
|
|
25
|
-
}
|