@aws/mynah-ui 3.3.2 → 3.4.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.
|
@@ -0,0 +1,19 @@
|
|
|
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 { ChatItemAction } from '../../static';
|
|
7
|
+
export interface ChatItemFollowUpOptionProps {
|
|
8
|
+
followUpOption: ChatItemAction;
|
|
9
|
+
onClick: (followUpOption: ChatItemAction) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare class ChatItemFollowUpOption {
|
|
12
|
+
private readonly props;
|
|
13
|
+
render: ExtendedHTMLElement;
|
|
14
|
+
private followupTooltip;
|
|
15
|
+
private followupTooltipTimeout;
|
|
16
|
+
constructor(props: ChatItemFollowUpOptionProps);
|
|
17
|
+
private readonly showCroppedFollowupText;
|
|
18
|
+
readonly hideCroppedFollowupText: () => void;
|
|
19
|
+
}
|
|
@@ -12,9 +12,6 @@ export declare class ChatItemFollowUpContainer {
|
|
|
12
12
|
private readonly props;
|
|
13
13
|
render: ExtendedHTMLElement;
|
|
14
14
|
private readonly itemAddListenerId;
|
|
15
|
-
private
|
|
16
|
-
private followupTooltipTimeout;
|
|
15
|
+
private followupOptions;
|
|
17
16
|
constructor(props: ChatItemFollowUpProps);
|
|
18
|
-
private readonly showCroppedFollowupText;
|
|
19
|
-
private readonly hideCroppedFollowupText;
|
|
20
17
|
}
|
package/dist/main.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
import { RelevancyVoteType, FeedbackPayload, MynahUIDataModel, NotificationType, ChatItem,
|
|
5
|
+
import { RelevancyVoteType, FeedbackPayload, MynahUIDataModel, NotificationType, ChatItem, ChatItemAction, ChatPrompt, MynahUITabStoreModel, MynahUITabStoreTab, ConfigModel, ReferenceTrackerInformation, CodeSelectionType, Engagement } from './static';
|
|
6
6
|
import './styles/styles.scss';
|
|
7
|
-
export { FeedbackPayload, RelevancyVoteType, EngagementType, Engagement, MynahUIDataModel, NotificationType, ChatItem,
|
|
7
|
+
export { FeedbackPayload, RelevancyVoteType, EngagementType, Engagement, MynahUIDataModel, NotificationType, ChatItem, ChatItemAction, ChatItemType, ChatPrompt, SourceLink } from './static';
|
|
8
8
|
export { ToggleOption } from './components/toggle';
|
|
9
9
|
export { MynahIcons } from './components/icon';
|
|
10
10
|
export interface MynahUIProps {
|
|
@@ -18,7 +18,8 @@ export interface MynahUIProps {
|
|
|
18
18
|
onStopChatResponse?: (tabId: string) => void;
|
|
19
19
|
onResetStore?: (tabId: string) => void;
|
|
20
20
|
onChatPrompt?: (tabId: string, prompt: ChatPrompt) => void;
|
|
21
|
-
onFollowUpClicked?: (tabId: string, messageId: string, followUp:
|
|
21
|
+
onFollowUpClicked?: (tabId: string, messageId: string, followUp: ChatItemAction) => void;
|
|
22
|
+
onBodyActionClicked?: (tabId: string, messageId: string, action: ChatItemAction) => void;
|
|
22
23
|
onTabChange?: (tabId: string) => void;
|
|
23
24
|
onTabAdd?: (tabId: string) => void;
|
|
24
25
|
onTabRemove?: (tabId: string) => void;
|