@aws/mynah-ui 4.11.1 → 4.12.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.
@@ -5,6 +5,7 @@ export interface ChatItemTreeFileProps {
5
5
  tabId: string;
6
6
  messageId: string;
7
7
  filePath: string;
8
+ originalFilePath: string;
8
9
  fileName: string;
9
10
  icon?: MynahIcons;
10
11
  deleted?: boolean;
@@ -18,16 +18,20 @@ export declare class ChatPromptInput {
18
18
  private readonly remainingCharsIndicator;
19
19
  private readonly sendButton;
20
20
  private readonly promptAttachment;
21
- private quickActionCommands;
22
- private commandSelector;
23
- private commandSelectorOpen;
21
+ private quickPickTriggerIndex;
22
+ private quickPickType;
23
+ private textAfter;
24
+ private quickPickItemGroups;
25
+ private filteredQuickPickItemGroups;
26
+ private quickPick;
27
+ private quickPickOpen;
24
28
  private selectedCommand;
25
- private filteredCommandsList;
26
29
  constructor(props: ChatPromptInputProps);
27
30
  private readonly updateAvailableCharactersIndicator;
28
31
  private readonly handleInputKeydown;
29
- private readonly getQuickCommandActions;
30
- private readonly handleCommandSelection;
32
+ private readonly getQuickPickItemGroups;
33
+ private readonly handleQuickActionCommandSelection;
34
+ private readonly handleContextCommandSelection;
31
35
  readonly clearTextArea: (keepAttachment?: boolean) => void;
32
36
  readonly addAttachment: (attachmentContent: string, type?: PromptAttachmentType) => void;
33
37
  private readonly sendPrompt;
@@ -14,10 +14,18 @@ export declare class PromptTextInput {
14
14
  private keydownSupport;
15
15
  constructor(props: PromptTextInputProps);
16
16
  private readonly updatePromptTextInputSizer;
17
+ readonly getCursorPos: () => number;
18
+ readonly getWordAndIndexOnCursorPos: () => {
19
+ wordStartIndex: number;
20
+ word: string;
21
+ };
17
22
  readonly clear: () => void;
18
- readonly focus: () => void;
23
+ readonly focus: (cursorIndex?: number) => void;
19
24
  readonly getTextInputValue: () => string;
20
- readonly updateTextInputValue: (value: string) => void;
25
+ readonly updateTextInputValue: (value: string, placeHolder?: {
26
+ index?: number;
27
+ text?: string;
28
+ }) => void;
21
29
  readonly updateTextInputMaxLength: (maxLength: number) => void;
22
30
  readonly updateTextInputPlaceholder: (text: string) => void;
23
31
  }
@@ -8,6 +8,7 @@ export interface FileNode {
8
8
  name: string;
9
9
  type: 'file';
10
10
  filePath: string;
11
+ originalFilePath: string;
11
12
  deleted: boolean;
12
13
  actions?: FileNodeAction[];
13
14
  details?: TreeNodeDetails;