@aws/mynah-ui 2.0.0-beta.15.1 → 2.0.0-beta.15.4

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.
@@ -11,28 +11,22 @@ export declare class ChatPromptInput {
11
11
  render: ExtendedHTMLElement;
12
12
  private readonly props;
13
13
  private readonly attachmentWrapper;
14
- private readonly promptTextInputWrapper;
15
14
  private readonly promptTextInput;
16
- private readonly promptTextInputSizer;
17
15
  private readonly promptTextInputCommand;
18
16
  private readonly remainingCharsIndicator;
19
17
  private readonly sendButton;
20
18
  private readonly codeSnippet;
21
- private currentAttachmentLength;
22
19
  private quickActionCommands;
23
20
  private commandSelector;
24
21
  private commandSelectorOpen;
25
22
  private selectedCommand;
26
- private inputDisabled;
27
23
  private attachment?;
28
24
  private filteredCommandsList;
29
25
  constructor(props: ChatPromptInputProps);
30
- private readonly updateAvailableChars;
26
+ private readonly updateAvailableCharactersIndicator;
31
27
  private readonly handleInputKeydown;
32
28
  private readonly getQuickCommandActions;
33
29
  private readonly handleCommandSelection;
34
- private readonly calculateTextAreaHeight;
35
- private readonly resetTextAreaHeight;
36
30
  readonly clearTextArea: () => void;
37
31
  readonly addText: (textToAdd: string) => void;
38
32
  private readonly sendPrompt;
@@ -1,17 +1,16 @@
1
1
  import { ExtendedHTMLElement } from '../../../helper/dom';
2
2
  export interface ICodeSnippetProps {
3
3
  tabId: string;
4
- onCodeSnippetAdd?: (codeSnippet: string) => void;
5
- onCodeSnippetRemove?: () => void;
6
4
  }
7
5
  export interface ISelectCodeSnippetEvent {
8
6
  tabId: string;
9
7
  selectedCodeSnippet?: string;
10
8
  }
11
9
  export declare class CodeSnippet {
12
- private readonly props;
13
- render: ExtendedHTMLElement;
14
- availableChars: number;
10
+ private readonly _props;
11
+ private readonly _render;
15
12
  constructor(props: ICodeSnippetProps);
13
+ get render(): ExtendedHTMLElement;
14
+ readonly updateSelectedCodeSnippet: (selectedCodeSnippet: string | undefined) => void;
16
15
  readonly clear: () => void;
17
16
  }
@@ -0,0 +1,21 @@
1
+ import { ExtendedHTMLElement } from '../../../helper/dom';
2
+ export interface IPromptTextInputProps {
3
+ tabId: string;
4
+ onKeydown: (e: KeyboardEvent) => void;
5
+ onInput?: (e: KeyboardEvent) => void;
6
+ }
7
+ export declare class PromptTextInput {
8
+ private readonly _props;
9
+ private readonly _render;
10
+ private readonly _promptTextInputSizer;
11
+ private readonly _promptTextInput;
12
+ constructor(props: IPromptTextInputProps);
13
+ get render(): ExtendedHTMLElement;
14
+ private readonly updatePromptTextInputSizer;
15
+ readonly clear: () => void;
16
+ readonly focus: () => void;
17
+ readonly getTextInputValue: () => string;
18
+ readonly updateTextInputValue: (value: string) => void;
19
+ readonly updateTextInputMaxLength: (maxLength: number) => void;
20
+ readonly updateTextInputPlaceholder: (text: string) => void;
21
+ }
@@ -0,0 +1,11 @@
1
+ import { ExtendedHTMLElement } from '../../../helper/dom';
2
+ export interface ISendButtonProps {
3
+ tabId: string;
4
+ onClick: () => void;
5
+ }
6
+ export declare class SendButton {
7
+ private readonly _props;
8
+ private readonly _render;
9
+ constructor(props: ISendButtonProps);
10
+ get render(): ExtendedHTMLElement;
11
+ }