@aws/mynah-ui 4.26.0 → 4.27.0-beta.2
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/detailed-list/detailed-list-item.d.ts +8 -2
- package/dist/components/detailed-list/detailed-list-sheet.d.ts +22 -0
- package/dist/components/detailed-list/detailed-list.d.ts +3 -2
- package/dist/components/feedback-form/feedback-form.d.ts +4 -4
- package/dist/components/sheet.d.ts +22 -0
- package/dist/helper/test-ids.d.ts +6 -5
- package/dist/main.d.ts +8 -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 -2
- package/docs/DATAMODEL.md +23 -7
- package/package.json +1 -1
- package/dist/components/feedback-form/custom-form.d.ts +0 -25
- package/ui-tests/dist/27f62b53b93858475a7f.ttf +0 -0
- package/ui-tests/dist/d50a80138ec4f2fb5e9f.ttf +0 -0
- package/ui-tests/dist/index.html +0 -9
- package/ui-tests/dist/main.js +0 -1362
- package/ui-tests/dist/main.js.map +0 -1
package/dist/static.d.ts
CHANGED
|
@@ -163,6 +163,10 @@ 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
|
+
OPEN_DETAILED_LIST = "openDetailedList",
|
|
169
|
+
CLOSE_DETAILED_LIST = "closeDetailedList",
|
|
166
170
|
FILE_CLICK = "fileClick",
|
|
167
171
|
FILE_ACTION_CLICK = "fileActionClick",
|
|
168
172
|
TAB_FOCUS = "tabFocus",
|
|
@@ -181,7 +185,7 @@ export declare enum MynahPortalNames {
|
|
|
181
185
|
WRAPPER = "wrapper",
|
|
182
186
|
SIDE_NAV = "sideNav",
|
|
183
187
|
OVERLAY = "overlay",
|
|
184
|
-
|
|
188
|
+
SHEET = "sheet"
|
|
185
189
|
}
|
|
186
190
|
export type PromptAttachmentType = 'code' | 'markdown';
|
|
187
191
|
export interface SourceLinkMetaData {
|
|
@@ -218,6 +222,7 @@ export interface DetailedList {
|
|
|
218
222
|
icon?: MynahIcons | MynahIconsType;
|
|
219
223
|
description?: string;
|
|
220
224
|
};
|
|
225
|
+
selectable?: boolean;
|
|
221
226
|
}
|
|
222
227
|
export interface DetailedListItemGroup {
|
|
223
228
|
groupName?: string;
|
|
@@ -233,7 +238,6 @@ export interface DetailedListItem {
|
|
|
233
238
|
description?: string;
|
|
234
239
|
disabled?: boolean;
|
|
235
240
|
followupText?: string;
|
|
236
|
-
clickable?: boolean;
|
|
237
241
|
actions?: ChatItemButton[];
|
|
238
242
|
children?: DetailedListItemGroup[];
|
|
239
243
|
keywords?: string[];
|
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,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
|
-
}
|
|
Binary file
|
|
Binary file
|
package/ui-tests/dist/index.html
DELETED