@aws/mynah-ui 4.14.0 → 4.15.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.
@@ -14,7 +14,10 @@ export interface ButtonProps {
14
14
  tooltipVerticalDirection?: OverlayVerticalDirection;
15
15
  tooltipHorizontalDirection?: OverlayHorizontalDirection;
16
16
  children?: Array<HTMLElement | ExtendedHTMLElement | string>;
17
+ disabled?: boolean;
17
18
  primary?: boolean;
19
+ border?: boolean;
20
+ status?: 'primary' | 'info' | 'success' | 'warning' | 'error';
18
21
  additionalEvents?: Record<string, (event?: any) => any>;
19
22
  onClick: (e: Event) => void;
20
23
  }
@@ -22,10 +25,12 @@ export declare abstract class ButtonAbstract {
22
25
  render: ExtendedHTMLElement;
23
26
  updateLabel: (label: HTMLElement | ExtendedHTMLElement | string) => void;
24
27
  setEnabled: (enabled: boolean) => void;
28
+ hideTooltip: () => void;
25
29
  }
26
30
  export declare class Button extends ButtonAbstract {
27
31
  render: ExtendedHTMLElement;
28
32
  constructor(props: ButtonProps);
29
33
  updateLabel: (label: HTMLElement | ExtendedHTMLElement | string) => void;
30
34
  setEnabled: (enabled: boolean) => void;
35
+ hideTooltip: () => void;
31
36
  }
@@ -3,7 +3,7 @@ export interface SendButtonProps {
3
3
  tabId: string;
4
4
  onClick: () => void;
5
5
  }
6
- export declare class SendButton {
6
+ export declare class PromptInputSendButton {
7
7
  render: ExtendedHTMLElement;
8
8
  private readonly props;
9
9
  constructor(props: SendButtonProps);
@@ -47,9 +47,14 @@ export interface ExtendedHTMLElement extends HTMLInputElement {
47
47
  }
48
48
  export declare class DomBuilder {
49
49
  private static instance;
50
+ private rootFocus;
50
51
  root: ExtendedHTMLElement;
51
52
  private portals;
52
53
  private constructor();
54
+ private readonly attachRootFocusListeners;
55
+ private readonly onRootFocus;
56
+ private readonly onRootBlur;
57
+ readonly setFocusToRoot: () => void;
53
58
  static getInstance(rootSelector?: string): DomBuilder;
54
59
  setRoot: (rootSelector?: string) => void;
55
60
  addClass: (this: ExtendedHTMLElement, className: string) => ExtendedHTMLElement;
package/dist/main.d.ts CHANGED
@@ -24,6 +24,7 @@ export interface MynahUIProps {
24
24
  config?: Partial<ConfigModel>;
25
25
  onShowMoreWebResultsClick?: (tabId: string, messageId: string, eventId?: string) => void;
26
26
  onReady?: () => void;
27
+ onFocusStateChanged?: (focusState: boolean) => void;
27
28
  onVote?: (tabId: string, messageId: string, vote: RelevancyVoteType, eventId?: string) => void;
28
29
  onStopChatResponse?: (tabId: string, eventId?: string) => void;
29
30
  onResetStore?: (tabId: string) => void;