@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/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
- FEEDBACK_FORM = "feedbackForm"
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
- Information 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.
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
- title?: string;
2842
+ groupName?: string;
2843
+ actions?: Action[];
2833
2844
  icon?: MynahIcons | MynahIconsType;
2834
- children: DetailedListItem[];
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
- actions?: ChatItemButton[];
2843
- active?: boolean;
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.26.0",
4
+ "version": "4.27.0-beta.2",
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
- }
@@ -1,9 +0,0 @@
1
- <html theme="base-light">
2
- <head>
3
- <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1" />
4
- <script defer src="main.js"></script></head>
5
-
6
- <body>
7
- <div id="mynah-ui-wrapper"></div>
8
- </body>
9
- </html>