@aws/mynah-ui 4.5.4 → 4.5.6
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.
|
@@ -32,6 +32,7 @@ export declare class CardBody {
|
|
|
32
32
|
props: CardBodyProps;
|
|
33
33
|
private highlightRangeTooltip;
|
|
34
34
|
private highlightRangeTooltipTimeout;
|
|
35
|
+
private nextCodeBlockIndex;
|
|
35
36
|
constructor(props: CardBodyProps);
|
|
36
37
|
private readonly processNode;
|
|
37
38
|
private readonly getReferenceTrackerInformationFromElement;
|
|
@@ -27,7 +27,7 @@ import 'prismjs/components/prism-scss.min';
|
|
|
27
27
|
import 'prismjs/components/prism-less.min';
|
|
28
28
|
import 'prismjs/plugins/line-numbers/prism-line-numbers.js';
|
|
29
29
|
import 'prismjs/plugins/keep-markup/prism-keep-markup.js';
|
|
30
|
-
import {
|
|
30
|
+
import { CodeSelectionType } from '../static';
|
|
31
31
|
export declare const highlighters: {
|
|
32
32
|
start: {
|
|
33
33
|
markup: string;
|
|
@@ -56,12 +56,12 @@ export interface SyntaxHighlighterProps {
|
|
|
56
56
|
block?: boolean;
|
|
57
57
|
startingLineNumber?: number;
|
|
58
58
|
showCopyOptions?: boolean;
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
index?: number;
|
|
60
|
+
onCopiedToClipboard?: (type?: CodeSelectionType, text?: string, codeBlockIndex?: number) => void;
|
|
61
|
+
onInsertToCursorPosition?: (type?: CodeSelectionType, text?: string, codeBlockIndex?: number) => void;
|
|
61
62
|
}
|
|
62
63
|
export declare class SyntaxHighlighter {
|
|
63
|
-
private readonly
|
|
64
|
-
private readonly onInsertToCursorPosition?;
|
|
64
|
+
private readonly props?;
|
|
65
65
|
render: ExtendedHTMLElement;
|
|
66
66
|
constructor(props: SyntaxHighlighterProps);
|
|
67
67
|
private readonly getSelectedCodeContextMenu;
|
package/dist/main.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export interface MynahUIProps {
|
|
|
31
31
|
onTabRemove?: (tabId: string, eventId?: string) => void;
|
|
32
32
|
onBeforeTabRemove?: (tabId: string, eventId?: string) => boolean;
|
|
33
33
|
onChatItemEngagement?: (tabId: string, messageId: string, engagement: Engagement) => void;
|
|
34
|
-
onCopyCodeToClipboard?: (tabId: string, messageId: string, code?: string, type?: CodeSelectionType, referenceTrackerInformation?: ReferenceTrackerInformation[], eventId?: string) => void;
|
|
35
|
-
onCodeInsertToCursorPosition?: (tabId: string, messageId: string, code?: string, type?: CodeSelectionType, referenceTrackerInformation?: ReferenceTrackerInformation[], eventId?: string) => void;
|
|
34
|
+
onCopyCodeToClipboard?: (tabId: string, messageId: string, code?: string, type?: CodeSelectionType, referenceTrackerInformation?: ReferenceTrackerInformation[], eventId?: string, codeBlockIndex?: number, totalCodeBlocks?: number) => void;
|
|
35
|
+
onCodeInsertToCursorPosition?: (tabId: string, messageId: string, code?: string, type?: CodeSelectionType, referenceTrackerInformation?: ReferenceTrackerInformation[], eventId?: string, codeBlockIndex?: number, totalCodeBlocks?: number) => void;
|
|
36
36
|
onSourceLinkClick?: (tabId: string, messageId: string, link: string, mouseEvent?: MouseEvent, eventId?: string) => void;
|
|
37
37
|
onLinkClick?: (tabId: string, messageId: string, link: string, mouseEvent?: MouseEvent, eventId?: string) => void;
|
|
38
38
|
onInfoLinkClick?: (tabId: string, link: string, mouseEvent?: MouseEvent, eventId?: string) => void;
|