@aws/mynah-ui 3.0.7 → 3.1.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.
|
@@ -14,10 +14,13 @@ export declare const highlightersWithTooltip: {
|
|
|
14
14
|
markup: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
+
export declare const PARTS_CLASS_NAME = "typewriter-part";
|
|
18
|
+
export declare const PARTS_CLASS_NAME_VISIBLE = "typewriter";
|
|
17
19
|
export interface CardBodyProps {
|
|
18
20
|
body: string;
|
|
19
21
|
children?: Array<ExtendedHTMLElement | HTMLElement | string | DomBuilderObject>;
|
|
20
22
|
highlightRangeWithTooltip?: ReferenceTrackerInformation[];
|
|
23
|
+
useParts?: boolean;
|
|
21
24
|
onLinkClick?: (url: string, e: MouseEvent) => void;
|
|
22
25
|
onCopiedToClipboard?: OnCopiedToClipboardFunction;
|
|
23
26
|
onInsertToCursorPosition?: OnInsertToCursorPositionFunction;
|
|
@@ -14,11 +14,14 @@ export declare class ChatItemCard {
|
|
|
14
14
|
render: ExtendedHTMLElement;
|
|
15
15
|
contentBody: CardBody;
|
|
16
16
|
chatAvatar: ExtendedHTMLElement;
|
|
17
|
+
updateStack: Array<Partial<ChatItem>>;
|
|
18
|
+
typewriterItemIndex: number;
|
|
17
19
|
private updateTimer;
|
|
18
20
|
constructor(props: ChatItemCardProps);
|
|
19
21
|
private readonly generateCard;
|
|
20
22
|
private readonly getCardClasses;
|
|
21
23
|
private readonly getCardContent;
|
|
22
24
|
private readonly getChatAvatar;
|
|
23
|
-
readonly updateCard: (
|
|
25
|
+
readonly updateCard: () => void;
|
|
26
|
+
readonly updateCardStack: (updateWith: Partial<ChatItem>) => void;
|
|
24
27
|
}
|