@aws/mynah-ui 4.23.0-beta.8 → 4.23.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.
- package/dist/components/chat-item/chat-item-tree-view-wrapper.d.ts +4 -1
- package/dist/components/chat-item/chat-item-tree-view.d.ts +4 -1
- package/dist/components/chat-item/chat-prompt-input.d.ts +1 -0
- package/dist/components/chat-item/prompt-input/prompt-text-input.d.ts +9 -1
- package/dist/helper/quick-pick-data-handler.d.ts +2 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +5 -10
- package/docs/DATAMODEL.md +142 -16
- package/docs/PROPERTIES.md +1 -1
- package/docs/img/data-model/tabStore/contextCommands.png +0 -0
- package/docs/img/data-model/tabStore/contextItem.png +0 -0
- package/docs/img/data-model/tabStore/groupAction.png +0 -0
- package/docs/img/data-model/tabStore/hoveredContextItem.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 +9 -0
- package/ui-tests/dist/main.js +1362 -0
- package/ui-tests/dist/main.js.map +1 -0
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
6
6
|
import { FileNodeAction, ReferenceTrackerInformation, TreeNodeDetails } from '../../static';
|
|
7
|
+
import { MynahIcons, MynahIconsType } from '../icon';
|
|
7
8
|
export interface ChatItemTreeViewWrapperProps {
|
|
8
9
|
tabId: string;
|
|
9
10
|
messageId: string;
|
|
@@ -12,10 +13,12 @@ export interface ChatItemTreeViewWrapperProps {
|
|
|
12
13
|
classNames?: string[];
|
|
13
14
|
rootTitle?: string;
|
|
14
15
|
deletedFiles: string[];
|
|
16
|
+
flatList?: boolean;
|
|
17
|
+
folderIcon?: MynahIcons | MynahIconsType | null;
|
|
15
18
|
actions?: Record<string, FileNodeAction[]>;
|
|
16
19
|
details?: Record<string, TreeNodeDetails>;
|
|
17
20
|
hideFileCount?: boolean;
|
|
18
|
-
|
|
21
|
+
collapsed?: boolean;
|
|
19
22
|
referenceSuggestionLabel: string;
|
|
20
23
|
references: ReferenceTrackerInformation[];
|
|
21
24
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
2
2
|
import { TreeNode } from '../../helper/file-tree';
|
|
3
|
+
import { MynahIcons, MynahIconsType } from '../icon';
|
|
3
4
|
export interface ChatItemTreeViewProps {
|
|
4
5
|
node: TreeNode;
|
|
5
6
|
depth?: number;
|
|
6
7
|
tabId: string;
|
|
7
8
|
messageId: string;
|
|
8
9
|
hideFileCount?: boolean;
|
|
9
|
-
|
|
10
|
+
collapsed?: boolean;
|
|
11
|
+
folderIcon?: MynahIcons | MynahIconsType | null;
|
|
10
12
|
}
|
|
11
13
|
export declare class ChatItemTreeView {
|
|
12
14
|
private readonly node;
|
|
15
|
+
private readonly folderIcon;
|
|
13
16
|
private isOpen;
|
|
14
17
|
private readonly depth;
|
|
15
18
|
private readonly tabId;
|
|
@@ -34,6 +34,7 @@ export declare class ChatPromptInput {
|
|
|
34
34
|
private readonly userPromptHistory;
|
|
35
35
|
private userPromptHistoryIndex;
|
|
36
36
|
private lastUnsentUserPrompt;
|
|
37
|
+
private readonly markerRemovalRegex;
|
|
37
38
|
constructor(props: ChatPromptInputProps);
|
|
38
39
|
private readonly updateAvailableCharactersIndicator;
|
|
39
40
|
private readonly handleInputKeydown;
|
|
@@ -11,6 +11,7 @@ export interface PromptTextInputProps {
|
|
|
11
11
|
export declare class PromptTextInput {
|
|
12
12
|
render: ExtendedHTMLElement;
|
|
13
13
|
promptTextInputMaxLength: number;
|
|
14
|
+
private lastCursorIndex;
|
|
14
15
|
private readonly props;
|
|
15
16
|
private readonly promptTextInput;
|
|
16
17
|
private promptInputOverlay;
|
|
@@ -19,6 +20,7 @@ export declare class PromptTextInput {
|
|
|
19
20
|
private contextTooltip;
|
|
20
21
|
private contextTooltipTimeout;
|
|
21
22
|
constructor(props: PromptTextInputProps);
|
|
23
|
+
private readonly updateCursorPos;
|
|
22
24
|
private readonly checkIsEmpty;
|
|
23
25
|
private readonly removeContextPlaceholderOverlay;
|
|
24
26
|
private readonly insertElementToGivenPosition;
|
|
@@ -35,9 +37,15 @@ export declare class PromptTextInput {
|
|
|
35
37
|
readonly updateTextInputMaxLength: (maxLength: number) => void;
|
|
36
38
|
readonly updateTextInputPlaceholder: (text: string) => void;
|
|
37
39
|
readonly deleteTextRange: (position: number, endPosition: number) => void;
|
|
38
|
-
|
|
40
|
+
/**
|
|
41
|
+
* Returns the cursorLine, totalLines and if the cursor is at the beginning or end of the whole text
|
|
42
|
+
* @returns {cursorLine: number, totalLines: number, isAtTheBeginning: boolean, isAtTheEnd: boolean}
|
|
43
|
+
*/
|
|
44
|
+
readonly getCursorPosition: () => {
|
|
39
45
|
cursorLine: number;
|
|
40
46
|
totalLines: number;
|
|
47
|
+
isAtTheBeginning: boolean;
|
|
48
|
+
isAtTheEnd: boolean;
|
|
41
49
|
};
|
|
42
50
|
readonly getUsedContext: () => QuickActionCommand[];
|
|
43
51
|
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import { QuickActionCommandGroup } from '../static';
|
|
2
2
|
export declare const filterQuickPickItems: (commands: QuickActionCommandGroup[], searchTerm: string) => QuickActionCommandGroup[];
|
|
3
|
+
export declare const MARK_OPEN = "<mark>";
|
|
4
|
+
export declare const MARK_CLOSE = "</mark>";
|