@aws/mynah-ui 4.23.0-beta.7 → 4.23.0-beta.9

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.
@@ -12,10 +12,11 @@ export interface ChatItemTreeViewWrapperProps {
12
12
  classNames?: string[];
13
13
  rootTitle?: string;
14
14
  deletedFiles: string[];
15
+ flatList?: boolean;
15
16
  actions?: Record<string, FileNodeAction[]>;
16
17
  details?: Record<string, TreeNodeDetails>;
17
18
  hideFileCount?: boolean;
18
- collapsedByDefault?: boolean;
19
+ collapsed?: boolean;
19
20
  referenceSuggestionLabel: string;
20
21
  references: ReferenceTrackerInformation[];
21
22
  }
@@ -6,7 +6,7 @@ export interface ChatItemTreeViewProps {
6
6
  tabId: string;
7
7
  messageId: string;
8
8
  hideFileCount?: boolean;
9
- collapsedByDefault?: boolean;
9
+ collapsed?: boolean;
10
10
  }
11
11
  export declare class ChatItemTreeView {
12
12
  private readonly node;
@@ -16,11 +16,15 @@ export declare class PromptTextInput {
16
16
  private promptInputOverlay;
17
17
  private keydownSupport;
18
18
  private readonly selectedContext;
19
+ private contextTooltip;
20
+ private contextTooltipTimeout;
19
21
  constructor(props: PromptTextInputProps);
20
22
  private readonly checkIsEmpty;
21
23
  private readonly removeContextPlaceholderOverlay;
22
24
  private readonly insertElementToGivenPosition;
23
25
  private readonly moveCursorToEnd;
26
+ private readonly showContextTooltip;
27
+ private readonly hideContextTooltip;
24
28
  readonly insertContextItem: (contextItem: QuickActionCommand, position: number) => void;
25
29
  readonly getCursorPos: () => number;
26
30
  readonly clear: () => void;
@@ -10,6 +10,7 @@ export interface TextAreaProps {
10
10
  attributes?: Record<string, string>;
11
11
  label?: HTMLElement | ExtendedHTMLElement | string;
12
12
  description?: ExtendedHTMLElement;
13
+ mandatory?: boolean;
13
14
  fireModifierAndEnterKeyPress?: () => void;
14
15
  placeholder?: string;
15
16
  validationPatterns?: {
@@ -10,6 +10,7 @@ export interface TextInputProps {
10
10
  attributes?: Record<string, string>;
11
11
  label?: HTMLElement | ExtendedHTMLElement | string;
12
12
  description?: ExtendedHTMLElement;
13
+ mandatory?: boolean;
13
14
  fireModifierAndEnterKeyPress?: () => void;
14
15
  placeholder?: string;
15
16
  type?: 'text' | 'number' | 'email';
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  input: string;
10
10
  inputWrapper: string;
11
11
  remainingCharsIndicator: string;
12
+ contextTooltip: string;
12
13
  selectedCommand: string;
13
14
  quickPicksWrapper: string;
14
15
  quickPicksGroup: string;
@@ -2,13 +2,18 @@
2
2
  * Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
+ import { ExtendedHTMLElement } from '../main';
5
6
  import { ValidationPattern } from '../static';
6
7
  export declare const isTextualFormItemValid: (value: string, validationPatterns: {
7
8
  operator?: 'and' | 'or';
8
9
  genericValidationErrorMessage?: string;
9
10
  patterns: ValidationPattern[];
10
- }) => {
11
+ }, mandatory?: boolean) => {
11
12
  isValid: boolean;
12
13
  validationErrors: string[];
13
14
  };
14
15
  export declare const isMandatoryItemValid: (value: string) => boolean;
16
+ export declare const checkTextElementValidation: (inputElement: ExtendedHTMLElement, validationPatterns: {
17
+ operator?: 'and' | 'or';
18
+ patterns: ValidationPattern[];
19
+ } | undefined, validationErrorBlock: ExtendedHTMLElement, readyToValidate: boolean, mandatory?: boolean) => void;