@aws/mynah-ui 4.36.0-beta.1 → 4.36.0
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-wrapper.d.ts +5 -4
- package/dist/components/detailed-list/detailed-list-item.d.ts +1 -0
- package/dist/components/detailed-list/detailed-list.d.ts +2 -0
- package/dist/components/form-items/text-input.d.ts +2 -0
- package/dist/helper/test-ids.d.ts +3 -3
- package/dist/main.d.ts +12 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +8 -1
- package/docs/CONFIG.md +38 -1
- package/docs/DATAMODEL.md +6 -1
- package/docs/PROPERTIES.md +20 -0
- package/docs/USAGE.md +39 -0
- package/docs/img/dragOverlayIcon.png +0 -0
- package/docs/img/texts/dragOverlayText.png +0 -0
- package/docs/img/texts/pinContextHint.png +0 -0
- package/package.json +1 -1
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Context-selector-should-filter-context-selector-list/Open-MynahUI-Context-selector-should-filter-context-selector-list-1.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Context-selector-should-render-the-context-selector/Open-MynahUI-Context-selector-should-render-the-context-selector-1.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-1.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-2.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-3.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-4.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-5.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-6.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button-1.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button-2.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-Action-Commands-Header-should-handle-quick-action-commands-header-interaction/quick-action-commands-header-hover.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-Action-Commands-Header-should-not-render-header-when-not-applicable/quick-action-commands-header-not-present.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-Action-Commands-Header-should-render-header-with-correct-status-styling/quick-action-commands-header-status.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-Action-Commands-Header-should-render-the-quick-action-commands-header/quick-action-commands-header.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-command-selector-should-filter-quick-command-selector-list/Open-MynahUI-Quick-command-selector-should-filter-quick-command-selector-list-1.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-Quick-command-selector-should-render-the-quick-command-selector/Open-MynahUI-Quick-command-selector-should-render-the-quick-command-selector-1.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-1.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-2.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-3.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-parse-markdown/Open-MynahUI-should-parse-markdown-1.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-render-custom-icons-correctly/Open-MynahUI-should-render-custom-icons-correctly-2.png +0 -0
- package/ui-tests/__snapshots__/chromium/Open-MynahUI-should-render-information-cards-correctly/Open-MynahUI-should-render-information-cards-correctly-1.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Context-selector-should-filter-context-selector-list/Open-MynahUI-Context-selector-should-filter-context-selector-list-1.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Context-selector-should-render-the-context-selector/Open-MynahUI-Context-selector-should-render-the-context-selector-1.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-1.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-2.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-3.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-4.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-5.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button/Open-MynahUI-Prompt-Top-Bar-should-render-prompt-top-bar-with-title-context-items-and-button-6.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button-1.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button/Open-MynahUI-Prompt-Top-Bar-should-show-overlay-when-clicking-top-bar-button-2.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-Action-Commands-Header-should-handle-quick-action-commands-header-interaction/quick-action-commands-header-hover.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-Action-Commands-Header-should-not-render-header-when-not-applicable/quick-action-commands-header-not-present.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-Action-Commands-Header-should-render-header-with-correct-status-styling/quick-action-commands-header-status.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-Action-Commands-Header-should-render-the-quick-action-commands-header/quick-action-commands-header.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-command-selector-should-filter-quick-command-selector-list/Open-MynahUI-Quick-command-selector-should-filter-quick-command-selector-list-1.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-Quick-command-selector-should-render-the-quick-command-selector/Open-MynahUI-Quick-command-selector-should-render-the-quick-command-selector-1.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-1.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-2.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-keep-the-content-inside-window-boundaries/Open-MynahUI-should-keep-the-content-inside-window-boundaries-3.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-parse-markdown/Open-MynahUI-should-parse-markdown-1.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-render-custom-icons-correctly/Open-MynahUI-should-render-custom-icons-correctly-2.png +0 -0
- package/ui-tests/__snapshots__/webkit/Open-MynahUI-should-render-information-cards-correctly/Open-MynahUI-should-render-information-cards-correctly-1.png +0 -0
|
@@ -28,6 +28,10 @@ export declare class ChatWrapper {
|
|
|
28
28
|
private lastStreamingChatItemMessageId;
|
|
29
29
|
private allRenderedChatItems;
|
|
30
30
|
render: ExtendedHTMLElement;
|
|
31
|
+
private readonly dragOverlayContent;
|
|
32
|
+
private readonly dragBlurOverlay;
|
|
33
|
+
private dragOverlayVisibility;
|
|
34
|
+
private imageContextFeatureEnabled;
|
|
31
35
|
constructor(props: ChatWrapperProps);
|
|
32
36
|
private readonly getNewConversationGroupElement;
|
|
33
37
|
private readonly removeEmptyCardsAndFollowups;
|
|
@@ -47,10 +51,7 @@ export declare class ChatWrapper {
|
|
|
47
51
|
updateTopBarButtonItemOverlay: (data: DetailedList) => void;
|
|
48
52
|
closeTopBarButtonItemOverlay: () => void;
|
|
49
53
|
getPromptInputCursorPosition: () => number;
|
|
50
|
-
/**
|
|
51
|
-
* Returns true if the current tab has an image context command available.
|
|
52
|
-
*/
|
|
53
|
-
private hasImageContextCommand;
|
|
54
54
|
destroy: () => void;
|
|
55
55
|
getCurrentTriggerSource(): 'top-bar' | 'prompt-input';
|
|
56
|
+
setDragOverlayVisible(visible: boolean): void;
|
|
56
57
|
}
|
|
@@ -6,6 +6,7 @@ export interface DetailedListItemWrapperProps {
|
|
|
6
6
|
onSelect?: (detailedListItem: DetailedListItem) => void;
|
|
7
7
|
onClick?: (detailedListItem: DetailedListItem) => void;
|
|
8
8
|
onActionClick?: (action: ChatItemButton, detailedListItem?: DetailedListItem) => void;
|
|
9
|
+
onShowActionMenuOverlay?: () => void;
|
|
9
10
|
selectable?: boolean;
|
|
10
11
|
clickable?: boolean;
|
|
11
12
|
textDirection?: 'row' | 'column';
|
|
@@ -40,6 +40,8 @@ export declare class DetailedListWrapper {
|
|
|
40
40
|
private readonly getDetailedListItemGroups;
|
|
41
41
|
private readonly getDetailedListItemElements;
|
|
42
42
|
readonly changeTarget: (direction: 'up' | 'down', snapOnLastAndFirst?: boolean, scrollIntoView?: boolean) => void;
|
|
43
|
+
private readonly setFocus;
|
|
44
|
+
private readonly setFocusByIndex;
|
|
43
45
|
readonly getTargetElement: () => DetailedListItem | null;
|
|
44
46
|
readonly update: (detailedList: DetailedList, preserveScrollPosition?: boolean) => void;
|
|
45
47
|
}
|
|
@@ -20,6 +20,7 @@ export interface TextInputProps {
|
|
|
20
20
|
operator?: 'and' | 'or';
|
|
21
21
|
patterns: ValidationPattern[];
|
|
22
22
|
};
|
|
23
|
+
validateOnChange?: boolean;
|
|
23
24
|
value?: string;
|
|
24
25
|
onChange?: (value: string) => void;
|
|
25
26
|
onKeyPress?: (event: KeyboardEvent) => void;
|
|
@@ -37,6 +38,7 @@ export declare class TextInputInternal extends TextInputAbstract {
|
|
|
37
38
|
private readonly validationErrorBlock;
|
|
38
39
|
private readonly props;
|
|
39
40
|
private readyToValidate;
|
|
41
|
+
private touched;
|
|
40
42
|
render: ExtendedHTMLElement;
|
|
41
43
|
constructor(props: TextInputProps);
|
|
42
44
|
setValue: (value: string) => void;
|
|
@@ -25,9 +25,9 @@ declare const _default: {
|
|
|
25
25
|
topBarButton: string;
|
|
26
26
|
topBarContextPill: string;
|
|
27
27
|
topBarContextTooltip: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
topBarOverflowPill: string;
|
|
29
|
+
topBarOverflowOverlay: string;
|
|
30
|
+
topBarActionOverlay: string;
|
|
31
31
|
};
|
|
32
32
|
chat: {
|
|
33
33
|
wrapper: string;
|
package/dist/main.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export interface MynahUIProps {
|
|
|
53
53
|
onTabAdd?: (tabId: string, eventId?: string) => void;
|
|
54
54
|
onContextSelected?: (contextItem: QuickActionCommand, tabId: string, eventId?: string) => boolean;
|
|
55
55
|
onTabRemove?: (tabId: string, eventId?: string) => void;
|
|
56
|
+
onSearchShortcut?: (tabId: string, eventId?: string) => void;
|
|
56
57
|
/**
|
|
57
58
|
* @param tabId tabId which the close button triggered
|
|
58
59
|
* @returns boolean -> If you want to close the tab immediately send true
|
|
@@ -195,6 +196,17 @@ export declare class MynahUI {
|
|
|
195
196
|
*/
|
|
196
197
|
getAllTabs: () => MynahUITabStoreModel;
|
|
197
198
|
getTabData: (tabId: string) => MynahUIDataStore;
|
|
199
|
+
/**
|
|
200
|
+
* Sets the drag overlay visibility for a specific tab
|
|
201
|
+
* @param tabId The tab ID to set the drag overlay visibility for
|
|
202
|
+
* @param visible Whether the drag overlay should be visible
|
|
203
|
+
*/
|
|
204
|
+
setDragOverlayVisible: (tabId: string, visible: boolean) => void;
|
|
205
|
+
/**
|
|
206
|
+
* Programmatically resets topBarClicked for the specified tab by dispatching a RESET_TOP_BAR_CLICKED event.
|
|
207
|
+
* @param tabId The tab ID
|
|
208
|
+
*/
|
|
209
|
+
resetTopBarClicked: (tabId: string) => void;
|
|
198
210
|
/**
|
|
199
211
|
* Toggles the visibility of the splash loader screen
|
|
200
212
|
*/
|