@aws/mynah-ui 4.22.0 → 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.
@@ -24,7 +24,6 @@ export declare class ChatPromptInput {
24
24
  private remainingCharsOverlay;
25
25
  private quickPickTriggerIndex;
26
26
  private quickPickType;
27
- private textAfter;
28
27
  private quickPickItemGroups;
29
28
  private filteredQuickPickItemGroups;
30
29
  private quickPick;
@@ -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 updatePromptTextInputSizer;
22
- readonly setContextReplacement: (contextReplacement: boolean) => void;
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: (cursorIndex?: number) => void;
25
+ readonly focus: () => void;
31
26
  readonly blur: () => void;
32
27
  readonly getTextInputValue: () => string;
33
- readonly updateTextInputValue: (value: string, placeHolder?: {
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 updateContextItems: (contextItems: string[]) => void;
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
@@ -159,6 +159,7 @@ export declare class MynahUI {
159
159
  * @returns string selectedTabId or undefined
160
160
  */
161
161
  getAllTabs: () => MynahUITabStoreModel;
162
+ getTabData: (tabId: string) => any;
162
163
  /**
163
164
  * Toggles the visibility of the splash loader screen
164
165
  */