@aws/mynah-ui 4.27.0 → 4.28.1-beta.1
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/card/card-body.d.ts +1 -0
- package/dist/components/chat-item/chat-item-card-content.d.ts +1 -0
- package/dist/components/chat-item/chat-item-card.d.ts +3 -0
- package/dist/components/detailed-list/detailed-list.d.ts +3 -0
- package/dist/components/syntax-highlighter.d.ts +2 -1
- package/dist/helper/test-ids.d.ts +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +1 -0
- package/docs/DATAMODEL.md +24 -0
- package/docs/img/data-model/chatItems/autoCollapse.png +0 -0
- package/package.json +1 -1
- 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
|
@@ -24,6 +24,7 @@ export interface CardBodyProps {
|
|
|
24
24
|
childLocation?: 'above-body' | 'below-body';
|
|
25
25
|
highlightRangeWithTooltip?: ReferenceTrackerInformation[] | null;
|
|
26
26
|
hideCodeBlockLanguage?: boolean;
|
|
27
|
+
unlimitedCodeBlockHeight?: boolean;
|
|
27
28
|
codeBlockActions?: CodeBlockActions;
|
|
28
29
|
useParts?: boolean;
|
|
29
30
|
codeBlockStartIndex?: number;
|
|
@@ -10,6 +10,7 @@ export interface ChatItemCardContentProps {
|
|
|
10
10
|
testId?: string;
|
|
11
11
|
renderAsStream?: boolean;
|
|
12
12
|
classNames?: string[];
|
|
13
|
+
unlimitedCodeBlockHeight?: boolean;
|
|
13
14
|
hideCodeBlockLanguage?: boolean;
|
|
14
15
|
codeReference?: ReferenceTrackerInformation[] | null;
|
|
15
16
|
onAnimationStateChange?: (isAnimating: boolean) => void;
|
|
@@ -30,6 +30,8 @@ export declare class ChatItemCard {
|
|
|
30
30
|
private chatButtonsOutside;
|
|
31
31
|
private fileTreeWrapper;
|
|
32
32
|
private followUps;
|
|
33
|
+
private readonly moreContentIndicator;
|
|
34
|
+
private isMoreContentExpanded;
|
|
33
35
|
private votes;
|
|
34
36
|
private footer;
|
|
35
37
|
private header;
|
|
@@ -37,6 +39,7 @@ export declare class ChatItemCard {
|
|
|
37
39
|
private readonly getCardFooter;
|
|
38
40
|
private readonly getCardHeader;
|
|
39
41
|
private readonly generateCard;
|
|
42
|
+
private readonly setMaxHeightClass;
|
|
40
43
|
private readonly getCardClasses;
|
|
41
44
|
private readonly updateCardContent;
|
|
42
45
|
private readonly getChatAvatar;
|
|
@@ -12,13 +12,16 @@ export declare class DetailedListWrapper {
|
|
|
12
12
|
private readonly detailedListItemGroupsContainer;
|
|
13
13
|
private readonly filtersContainer;
|
|
14
14
|
private readonly headerContainer;
|
|
15
|
+
private readonly observer;
|
|
15
16
|
private readonly props;
|
|
17
|
+
private detailedListItemsBlockData;
|
|
16
18
|
private activeTargetElementIndex;
|
|
17
19
|
private allSelectableDetailedListElements;
|
|
18
20
|
constructor(props: DetailedListWrapperProps);
|
|
19
21
|
private readonly getHeader;
|
|
20
22
|
private readonly getFilters;
|
|
21
23
|
private readonly getDetailedListItemGroups;
|
|
24
|
+
private readonly getDetailedListItemElements;
|
|
22
25
|
readonly changeTarget: (direction: 'up' | 'down', snapOnLastAndFirst?: boolean, scrollIntoView?: boolean) => void;
|
|
23
26
|
readonly getTargetElement: () => DetailedListItem | null;
|
|
24
27
|
readonly update: (detailedList: DetailedList) => void;
|
|
@@ -14,11 +14,12 @@ export interface SyntaxHighlighterProps {
|
|
|
14
14
|
index?: number;
|
|
15
15
|
codeBlockActions?: CodeBlockActions;
|
|
16
16
|
hideLanguage?: boolean;
|
|
17
|
+
unlimitedHeight?: boolean;
|
|
17
18
|
onCopiedToClipboard?: (type?: CodeSelectionType, text?: string, codeBlockIndex?: number) => void;
|
|
18
19
|
onCodeBlockAction?: OnCodeBlockActionFunction;
|
|
19
20
|
}
|
|
20
21
|
export declare class SyntaxHighlighter {
|
|
21
|
-
private readonly props
|
|
22
|
+
private readonly props;
|
|
22
23
|
private readonly codeBlockButtons;
|
|
23
24
|
render: ExtendedHTMLElement;
|
|
24
25
|
constructor(props: SyntaxHighlighterProps);
|