@aws/mynah-ui 4.25.1 → 4.26.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/chat-item/chat-item-form-items.d.ts +3 -0
- package/dist/components/chat-item/chat-wrapper.d.ts +1 -0
- package/dist/components/detailed-list/detailed-list-item.d.ts +13 -0
- package/dist/components/detailed-list/detailed-list.d.ts +18 -0
- package/dist/components/form-items/select.d.ts +3 -2
- package/dist/components/form-items/text-input.d.ts +2 -0
- package/dist/helper/chat-item.d.ts +1 -2
- package/dist/helper/quick-pick-data-handler.d.ts +6 -1
- package/dist/helper/test-ids.d.ts +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +22 -7
- package/docs/DATAMODEL.md +9 -7
- package/docs/PROPERTIES.md +26 -1
- package/package.json +1 -1
- package/dist/components/chat-item/prompt-input/prompt-input-quick-pick-item.d.ts +0 -13
- package/dist/components/chat-item/prompt-input/prompt-input-quick-pick-selector.d.ts +0 -18
- 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
|
@@ -8,6 +8,9 @@ export interface ChatItemFormItemsWrapperProps {
|
|
|
8
8
|
tabId: string;
|
|
9
9
|
chatItem: Partial<ChatItem>;
|
|
10
10
|
classNames?: string[];
|
|
11
|
+
onModifierEnterPress?: (formData: Record<string, any>, tabId: string) => void;
|
|
12
|
+
onTextualItemKeyPress?: (event: KeyboardEvent, itemId: string, formData: Record<string, any>, tabId: string, disableAllCallback: () => void) => void;
|
|
13
|
+
onFormChange?: (formData: Record<string, any>, isValid: boolean, tabId: string) => void;
|
|
11
14
|
}
|
|
12
15
|
export declare class ChatItemFormItemsWrapper {
|
|
13
16
|
private readonly props;
|
|
@@ -13,6 +13,7 @@ export interface ChatWrapperProps {
|
|
|
13
13
|
export declare class ChatWrapper {
|
|
14
14
|
private readonly props;
|
|
15
15
|
private readonly chatItemsContainer;
|
|
16
|
+
private activeConversationGroup;
|
|
16
17
|
private readonly intermediateBlockContainer;
|
|
17
18
|
private readonly promptInputElement;
|
|
18
19
|
private readonly promptInput;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
2
|
+
import { DetailedListItem } from '../../static';
|
|
3
|
+
export interface DetailedListItemWrapperProps {
|
|
4
|
+
listItem: DetailedListItem;
|
|
5
|
+
onSelect: (detailedListItem: DetailedListItem) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare class DetailedListItemWrapper {
|
|
8
|
+
render: ExtendedHTMLElement;
|
|
9
|
+
private readonly props;
|
|
10
|
+
constructor(props: DetailedListItemWrapperProps);
|
|
11
|
+
readonly setFocus: (isFocused: boolean) => void;
|
|
12
|
+
readonly getItem: () => DetailedListItem;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
2
|
+
import { ChatItemButton, DetailedList, DetailedListItem, DetailedListItemGroup } from '../../static';
|
|
3
|
+
export interface DetailedListWrapperProps {
|
|
4
|
+
detailedList: DetailedList;
|
|
5
|
+
onQuickPickGroupActionClick: (action: ChatItemButton) => void;
|
|
6
|
+
onQuickPickItemSelect: (detailedListItem: DetailedListItem) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare class DetailedListWrapper {
|
|
9
|
+
render: ExtendedHTMLElement;
|
|
10
|
+
private readonly props;
|
|
11
|
+
private activeTargetElementIndex;
|
|
12
|
+
private allSelectableDetailedListElements;
|
|
13
|
+
constructor(props: DetailedListWrapperProps);
|
|
14
|
+
private readonly getQuickPickGroups;
|
|
15
|
+
readonly changeTarget: (direction: 'up' | 'down') => void;
|
|
16
|
+
readonly getTargetElement: () => DetailedListItem | null;
|
|
17
|
+
readonly updateList: (detailedListItemGroups: DetailedListItemGroup[]) => void;
|
|
18
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
6
|
-
import { MynahIcons } from '../icon';
|
|
6
|
+
import { MynahIcons, MynahIconsType } from '../icon';
|
|
7
7
|
import '../../styles/components/_form-input.scss';
|
|
8
8
|
interface SelectOption {
|
|
9
9
|
value: string;
|
|
@@ -12,7 +12,8 @@ interface SelectOption {
|
|
|
12
12
|
export interface SelectProps {
|
|
13
13
|
classNames?: string[];
|
|
14
14
|
attributes?: Record<string, string>;
|
|
15
|
-
|
|
15
|
+
handleIcon?: MynahIcons | MynahIconsType;
|
|
16
|
+
icon?: MynahIcons | MynahIconsType;
|
|
16
17
|
label?: HTMLElement | ExtendedHTMLElement | string;
|
|
17
18
|
description?: ExtendedHTMLElement;
|
|
18
19
|
value?: string;
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
6
6
|
import { ValidationPattern } from '../../static';
|
|
7
7
|
import '../../styles/components/_form-input.scss';
|
|
8
|
+
import { MynahIcons, MynahIconsType } from '../icon';
|
|
8
9
|
export interface TextInputProps {
|
|
9
10
|
classNames?: string[];
|
|
10
11
|
attributes?: Record<string, string>;
|
|
11
12
|
label?: HTMLElement | ExtendedHTMLElement | string;
|
|
12
13
|
autoFocus?: boolean;
|
|
13
14
|
description?: ExtendedHTMLElement;
|
|
15
|
+
icon?: MynahIcons | MynahIconsType;
|
|
14
16
|
mandatory?: boolean;
|
|
15
17
|
fireModifierAndEnterKeyPress?: () => void;
|
|
16
18
|
placeholder?: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ChatItem, ChatItemContent
|
|
1
|
+
import { ChatItem, ChatItemContent } from '../static';
|
|
2
2
|
export declare const emptyChatItemContent: ChatItemContent;
|
|
3
|
-
export declare function isChatItem(item: ChatItem | InformationItemGroup): item is ChatItem;
|
|
4
3
|
export declare const chatItemHasContent: (chatItem: Partial<ChatItem>) => boolean;
|
|
5
4
|
export declare const copyToClipboard: (textToSendClipboard: string, onCopied?: () => void) => Promise<void>;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { QuickActionCommandGroup } from '../static';
|
|
1
|
+
import { DetailedListItem, DetailedListItemGroup, QuickActionCommand, QuickActionCommandGroup } from '../static';
|
|
2
2
|
export declare const filterQuickPickItems: (commands: QuickActionCommandGroup[], searchTerm: string) => QuickActionCommandGroup[];
|
|
3
3
|
export declare const MARK_OPEN = "<mark>";
|
|
4
4
|
export declare const MARK_CLOSE = "</mark>";
|
|
5
|
+
export declare const convertDetailedListGroupsToQuickActionCommandGroups: (detailedListItemGroups: DetailedListItemGroup[]) => QuickActionCommandGroup[];
|
|
6
|
+
export declare const convertDetailedListItemToQuickActionCommand: (detailedListItem: DetailedListItem) => QuickActionCommand;
|
|
7
|
+
export declare const convertQuickActionCommandGroupsToDetailedListGroups: (quickActionCommandGroup: QuickActionCommandGroup[]) => DetailedListItemGroup[];
|
|
8
|
+
export declare const convertQuickActionCommandToDetailedListItem: (quickActionCommand: QuickActionCommand) => DetailedListItem;
|
|
9
|
+
export declare const chunkArray: <T>(array: T[], chunkSize: number) => T[][];
|
package/dist/main.d.ts
CHANGED
|
@@ -71,6 +71,7 @@ export interface MynahUIProps {
|
|
|
71
71
|
onSendFeedback?: (tabId: string, feedbackPayload: FeedbackPayload, eventId?: string) => void;
|
|
72
72
|
onFormModifierEnterPress?: (formData: Record<string, string>, tabId: string, eventId?: string) => void;
|
|
73
73
|
onFormTextualItemKeyPress?: (event: KeyboardEvent, formData: Record<string, string>, itemId: string, tabId: string, eventId?: string) => boolean;
|
|
74
|
+
onFormChange?: (formData: Record<string, any>, isValid: boolean, tabId: string) => void;
|
|
74
75
|
onCustomFormAction?: (tabId: string, action: {
|
|
75
76
|
id: string;
|
|
76
77
|
text?: string;
|