@aws/mynah-ui 4.22.1 → 4.23.0-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/chat-item/chat-prompt-input.d.ts +0 -1
- package/dist/components/chat-item/prompt-input/prompt-text-input.d.ts +9 -16
- package/dist/helper/quick-pick-data-handler.d.ts +3 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +10 -1
- 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 -1359
- package/ui-tests/dist/main.js.map +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ExtendedHTMLElement } from '../../../helper/dom';
|
|
2
|
+
import { QuickActionCommand } from '../../../static';
|
|
2
3
|
export interface PromptTextInputProps {
|
|
3
4
|
tabId: string;
|
|
4
5
|
initMaxLength: number;
|
|
5
|
-
contextReplacement?: boolean;
|
|
6
|
-
contextItems?: string[];
|
|
7
6
|
onKeydown: (e: KeyboardEvent) => void;
|
|
8
7
|
onInput?: (e: KeyboardEvent) => void;
|
|
9
8
|
onFocus?: () => void;
|
|
@@ -13,32 +12,26 @@ export declare class PromptTextInput {
|
|
|
13
12
|
render: ExtendedHTMLElement;
|
|
14
13
|
promptTextInputMaxLength: number;
|
|
15
14
|
private readonly props;
|
|
16
|
-
private readonly promptTextInputSizer;
|
|
17
15
|
private readonly promptTextInput;
|
|
18
16
|
private promptInputOverlay;
|
|
19
17
|
private keydownSupport;
|
|
20
18
|
constructor(props: PromptTextInputProps);
|
|
21
|
-
private readonly
|
|
22
|
-
readonly
|
|
19
|
+
private readonly checkIsEmpty;
|
|
20
|
+
private readonly removeContextPlaceholderOverlay;
|
|
21
|
+
private readonly insertElementToGivenPosition;
|
|
22
|
+
readonly insertContextItem: (contextItem: QuickActionCommand, position: number) => void;
|
|
23
23
|
readonly getCursorPos: () => number;
|
|
24
|
-
readonly getWordAndIndexOnCursorPos: () => {
|
|
25
|
-
wordStartIndex: number;
|
|
26
|
-
word: string;
|
|
27
|
-
};
|
|
28
|
-
readonly getContextElementAtTextIndex: (textIndex: number) => HTMLSpanElement | null;
|
|
29
24
|
readonly clear: () => void;
|
|
30
|
-
readonly focus: (
|
|
25
|
+
readonly focus: () => void;
|
|
31
26
|
readonly blur: () => void;
|
|
32
27
|
readonly getTextInputValue: () => string;
|
|
33
|
-
readonly updateTextInputValue: (value: string
|
|
34
|
-
index?: number;
|
|
35
|
-
text?: string;
|
|
36
|
-
}) => void;
|
|
28
|
+
readonly updateTextInputValue: (value: string) => void;
|
|
37
29
|
readonly updateTextInputMaxLength: (maxLength: number) => void;
|
|
38
30
|
readonly updateTextInputPlaceholder: (text: string) => void;
|
|
39
|
-
readonly
|
|
31
|
+
readonly deleteTextRange: (position: number, endPosition: number) => void;
|
|
40
32
|
readonly getCursorLine: () => {
|
|
41
33
|
cursorLine: number;
|
|
42
34
|
totalLines: number;
|
|
43
35
|
};
|
|
36
|
+
readonly getUsedContext: () => string[][];
|
|
44
37
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { QuickActionCommandGroupInternal } from '../static';
|
|
2
|
+
export declare const filterQuickPickItems: (commands: QuickActionCommandGroupInternal[], searchTerm: string) => QuickActionCommandGroupInternal[];
|
|
3
|
+
export declare const addRouteToCommandGroups: (commandGroups: QuickActionCommandGroupInternal[], parentRoute?: string[]) => QuickActionCommandGroupInternal[];
|
package/dist/main.d.ts
CHANGED