@aws/mynah-ui 4.10.0-beta.6 → 4.10.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.
- package/dist/__test__/main.spec.d.ts +1 -0
- package/dist/components/__test__/button.spec.d.ts +1 -0
- package/dist/components/__test__/chat-item/chat-item-followup.spec.d.ts +1 -0
- package/dist/components/__test__/chat-item/chat-prompt-input.spec.d.ts +1 -0
- package/dist/components/__test__/feedback-form/feedback-form.spec.d.ts +1 -0
- package/dist/components/__test__/notification.spec.d.ts +1 -0
- package/dist/components/__test__/syntax-highlighter.spec.d.ts +1 -0
- package/dist/components/__test__/toggle.spec.d.ts +1 -0
- package/dist/components/button.d.ts +6 -8
- package/dist/components/card/card-body.d.ts +0 -2
- package/dist/components/card/card.d.ts +1 -2
- package/dist/components/chat-item/chat-item-buttons.d.ts +0 -1
- package/dist/components/chat-item/chat-item-card.d.ts +18 -13
- package/dist/components/chat-item/chat-item-form-items.d.ts +0 -1
- package/dist/components/chat-item/chat-item-relevance-vote.d.ts +0 -1
- package/dist/components/chat-item/chat-item-tree-view-wrapper.d.ts +0 -1
- package/dist/components/chat-item/chat-wrapper.d.ts +0 -1
- package/dist/components/chat-item/prompt-input/send-button.d.ts +5 -4
- package/dist/components/collapsible-content.d.ts +0 -1
- package/dist/components/feedback-form/feedback-form.d.ts +0 -1
- package/dist/components/form-items/radio-group.d.ts +1 -15
- package/dist/components/form-items/select.d.ts +1 -16
- package/dist/components/form-items/stars.d.ts +0 -1
- package/dist/components/form-items/text-area.d.ts +1 -15
- package/dist/components/form-items/text-input.d.ts +2 -16
- package/dist/components/icon.d.ts +0 -1
- package/dist/components/navigation-tabs.d.ts +0 -1
- package/dist/components/notification.d.ts +0 -1
- package/dist/components/overlay.d.ts +0 -1
- package/dist/components/syntax-highlighter.d.ts +0 -2
- package/dist/components/toggle.d.ts +0 -1
- package/dist/helper/__test__/date-time.spec.d.ts +1 -0
- package/dist/helper/__test__/dom.spec.d.ts +1 -0
- package/dist/helper/__test__/events.spec.d.ts +1 -0
- package/dist/helper/__test__/file-tree.spec.d.ts +1 -0
- package/dist/helper/config.d.ts +1 -2
- package/dist/helper/dom.d.ts +0 -2
- package/dist/main.d.ts +6 -14
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +1 -15
- package/package.json +1 -2
- package/cloudscape-wrapper/lib/main.d.ts +0 -3
- package/cloudscape-wrapper/lib/main.es.js +0 -25994
- package/cloudscape-wrapper/lib/main.js +0 -25999
- package/cloudscape-wrapper/package.json +0 -72
- package/dist/components/chat-item/chat-item-card-content.d.ts +0 -35
- package/docs/CONFIG.md +0 -311
- package/docs/DATAMODEL.md +0 -1988
- package/docs/DEVELOPER.md +0 -499
- package/docs/PROPERTIES.md +0 -862
- package/docs/STARTUP.md +0 -51
- package/docs/STYLING.md +0 -195
- package/docs/USAGE.md +0 -502
- package/docs/img/code-attachment.png +0 -0
- package/docs/img/customForm.png +0 -0
- package/docs/img/data-model/chatItems/actions.png +0 -0
- package/docs/img/data-model/chatItems/answer.png +0 -0
- package/docs/img/data-model/chatItems/answerStream.png +0 -0
- package/docs/img/data-model/chatItems/body.png +0 -0
- package/docs/img/data-model/chatItems/canBeVoted.png +0 -0
- package/docs/img/data-model/chatItems/codeInsertAndCopyButtons.png +0 -0
- package/docs/img/data-model/chatItems/codeReference-1.png +0 -0
- package/docs/img/data-model/chatItems/codeReference-2.png +0 -0
- package/docs/img/data-model/chatItems/codeResult.png +0 -0
- package/docs/img/data-model/chatItems/customRenderer_html.png +0 -0
- package/docs/img/data-model/chatItems/customRenderer_json.png +0 -0
- package/docs/img/data-model/chatItems/followUp-1.png +0 -0
- package/docs/img/data-model/chatItems/followUp-2.png +0 -0
- package/docs/img/data-model/chatItems/icon.png +0 -0
- package/docs/img/data-model/chatItems/notification-1.png +0 -0
- package/docs/img/data-model/chatItems/notification-2.png +0 -0
- package/docs/img/data-model/chatItems/notification-3.png +0 -0
- package/docs/img/data-model/chatItems/notification-4.png +0 -0
- package/docs/img/data-model/chatItems/options-all-filled.png +0 -0
- package/docs/img/data-model/chatItems/options-mandatory-filled.png +0 -0
- package/docs/img/data-model/chatItems/options-submitted.png +0 -0
- package/docs/img/data-model/chatItems/options.png +0 -0
- package/docs/img/data-model/chatItems/prompt.png +0 -0
- package/docs/img/data-model/chatItems/relatedContent-1.png +0 -0
- package/docs/img/data-model/chatItems/relatedContent-2.png +0 -0
- package/docs/img/data-model/chatItems/relatedContent-3.png +0 -0
- package/docs/img/data-model/chatItems/status.png +0 -0
- package/docs/img/data-model/chatItems/systemPrompt.png +0 -0
- package/docs/img/data-model/tabStore/loadingChat-1.png +0 -0
- package/docs/img/data-model/tabStore/loadingChat-2.png +0 -0
- package/docs/img/data-model/tabStore/promptInputDisabledState.png +0 -0
- package/docs/img/data-model/tabStore/promptInputPlaceholder.png +0 -0
- package/docs/img/data-model/tabStore/promptInputStickyCard.png +0 -0
- package/docs/img/data-model/tabStore/quickActionCommands.png +0 -0
- package/docs/img/data-model/tabStore/selectedCodeSnippet.png +0 -0
- package/docs/img/data-model/tabStore/stopChatResponse.png +0 -0
- package/docs/img/data-model/tabStore/tabBarButtons1.png +0 -0
- package/docs/img/data-model/tabStore/tabBarButtons2.png +0 -0
- package/docs/img/data-model/tabStore/tabTitle.png +0 -0
- package/docs/img/developer/comp0.png +0 -0
- package/docs/img/developer/comp1.png +0 -0
- package/docs/img/developer/comp2.png +0 -0
- package/docs/img/feedbackOptions.png +0 -0
- package/docs/img/maxTabs1.png +0 -0
- package/docs/img/noPrompt.png +0 -0
- package/docs/img/notification.png +0 -0
- package/docs/img/onBeforeTabRemove.png +0 -0
- package/docs/img/onBodyActionClicked.png +0 -0
- package/docs/img/onChatItemEngagement.png +0 -0
- package/docs/img/onChatPrompt.png +0 -0
- package/docs/img/onCodeInsertToCursorPosition.png +0 -0
- package/docs/img/onCopyCodeToClipboard.png +0 -0
- package/docs/img/onCustomFormAction.png +0 -0
- package/docs/img/onFileActionClick.png +0 -0
- package/docs/img/onFollowupClicked.png +0 -0
- package/docs/img/onInfoLinkClick.png +0 -0
- package/docs/img/onLinkClick.png +0 -0
- package/docs/img/onOpenDiff.png +0 -0
- package/docs/img/onSendFeedback-1.png +0 -0
- package/docs/img/onSendFeedback-2.png +0 -0
- package/docs/img/onSendFeedback-3.png +0 -0
- package/docs/img/onShowMoreClick.png +0 -0
- package/docs/img/onSourceLinkClick.png +0 -0
- package/docs/img/onStopChatResponse.png +0 -0
- package/docs/img/onTabAdd.png +0 -0
- package/docs/img/onTabChange.png +0 -0
- package/docs/img/onTabRemove.png +0 -0
- package/docs/img/onVote.png +0 -0
- package/docs/img/prompt-with-code-attached.png +0 -0
- package/docs/img/splash.gif +0 -0
- package/docs/img/texts/codeFileSuggestions.png +0 -0
- package/docs/img/texts/copyInsertToCursor.png +0 -0
- package/docs/img/texts/feedbackForm.png +0 -0
- package/docs/img/texts/fileTreeTitle.png +0 -0
- package/docs/img/texts/mainTitle.png +0 -0
- package/docs/img/texts/noMoreTabs.png +0 -0
- package/docs/img/texts/noTabsOpen.png +0 -0
- package/docs/img/texts/pleaseSelect.png +0 -0
- package/docs/img/texts/spinnerText.png +0 -0
- package/docs/img/texts/stopGenerating.png +0 -0
- package/docs/img/texts/tabCloseConfirmation.png +0 -0
- package/docs/img/texts/voteAndSourceActions.png +0 -0
- package/docs/img/theming-1.png +0 -0
- package/docs/img/theming-2.png +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../helper/dom';
|
|
6
6
|
import { OverlayHorizontalDirection, OverlayVerticalDirection } from './overlay';
|
|
7
|
-
import '../styles/components/_button.scss';
|
|
8
7
|
export interface ButtonProps {
|
|
9
8
|
classNames?: string[];
|
|
10
9
|
attributes?: Record<string, string>;
|
|
11
|
-
icon?: HTMLElement | ExtendedHTMLElement;
|
|
10
|
+
icon?: HTMLElement | ExtendedHTMLElement | string;
|
|
12
11
|
label?: HTMLElement | ExtendedHTMLElement | string;
|
|
13
12
|
tooltip?: string;
|
|
14
13
|
tooltipVerticalDirection?: OverlayVerticalDirection;
|
|
@@ -18,14 +17,13 @@ export interface ButtonProps {
|
|
|
18
17
|
additionalEvents?: Record<string, (event?: any) => any>;
|
|
19
18
|
onClick: (e: Event) => void;
|
|
20
19
|
}
|
|
21
|
-
export declare
|
|
22
|
-
render: ExtendedHTMLElement;
|
|
23
|
-
updateLabel: (label: HTMLElement | ExtendedHTMLElement | string) => void;
|
|
24
|
-
setEnabled: (enabled: boolean) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare class Button extends ButtonAbstract {
|
|
20
|
+
export declare class Button {
|
|
27
21
|
render: ExtendedHTMLElement;
|
|
22
|
+
private buttonTooltip;
|
|
23
|
+
private buttonTooltipTimeout;
|
|
28
24
|
constructor(props: ButtonProps);
|
|
25
|
+
private readonly showButtonTooltip;
|
|
26
|
+
readonly hideButtonTooltip: () => void;
|
|
29
27
|
updateLabel: (label: HTMLElement | ExtendedHTMLElement | string) => void;
|
|
30
28
|
setEnabled: (enabled: boolean) => void;
|
|
31
29
|
}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { DomBuilderObject, ExtendedHTMLElement } from '../../helper/dom';
|
|
6
6
|
import { OnCopiedToClipboardFunction, OnInsertToCursorPositionFunction, ReferenceTrackerInformation } from '../../static';
|
|
7
|
-
import '../../styles/components/card/_card.scss';
|
|
8
7
|
export declare const highlightersWithTooltip: {
|
|
9
8
|
start: {
|
|
10
9
|
markupStart: string;
|
|
@@ -25,7 +24,6 @@ export interface CardBodyProps {
|
|
|
25
24
|
useParts?: boolean;
|
|
26
25
|
codeBlockStartIndex?: number;
|
|
27
26
|
processChildren?: boolean;
|
|
28
|
-
classNames?: string[];
|
|
29
27
|
onLinkClick?: (url: string, e: MouseEvent) => void;
|
|
30
28
|
onCopiedToClipboard?: OnCopiedToClipboardFunction;
|
|
31
29
|
onInsertToCursorPosition?: OnInsertToCursorPositionFunction;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { DomBuilderObject, ExtendedHTMLElement } from '../../helper/dom';
|
|
6
6
|
import { EngagementType } from '../../static';
|
|
7
|
-
import '../../styles/components/card/_card.scss';
|
|
8
7
|
export interface CardProps extends Partial<DomBuilderObject> {
|
|
9
8
|
border?: boolean;
|
|
10
9
|
background?: boolean;
|
|
@@ -25,12 +24,12 @@ export interface CardProps extends Partial<DomBuilderObject> {
|
|
|
25
24
|
}) => void;
|
|
26
25
|
}
|
|
27
26
|
export declare class Card {
|
|
28
|
-
render: ExtendedHTMLElement;
|
|
29
27
|
private readonly props;
|
|
30
28
|
private engagementStartTime;
|
|
31
29
|
private totalMouseDistanceTraveled;
|
|
32
30
|
private previousMousePosition;
|
|
33
31
|
private mouseDownInfo;
|
|
32
|
+
render: ExtendedHTMLElement;
|
|
34
33
|
constructor(props: CardProps);
|
|
35
34
|
private readonly resetEngagement;
|
|
36
35
|
private readonly handleEngagement;
|
|
@@ -7,7 +7,6 @@ import { ChatItemButton } from '../../static';
|
|
|
7
7
|
import { ChatItemFormItemsWrapper } from './chat-item-form-items';
|
|
8
8
|
export interface ChatItemButtonsWrapperProps {
|
|
9
9
|
tabId: string;
|
|
10
|
-
classNames?: string[];
|
|
11
10
|
buttons: ChatItemButton[];
|
|
12
11
|
formItems: ChatItemFormItemsWrapper | null;
|
|
13
12
|
useButtonComponent?: boolean;
|
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
6
6
|
import { CardRenderDetails, ChatItem } from '../../static';
|
|
7
|
+
import { CardBody } from '../card/card-body';
|
|
8
|
+
import { ChatItemTreeViewWrapper } from './chat-item-tree-view-wrapper';
|
|
9
|
+
import { ChatItemFormItemsWrapper } from './chat-item-form-items';
|
|
10
|
+
import { ChatItemButtonsWrapper } from './chat-item-buttons';
|
|
7
11
|
export interface ChatItemCardProps {
|
|
8
12
|
tabId: string;
|
|
9
13
|
chatItem: ChatItem;
|
|
@@ -11,23 +15,24 @@ export interface ChatItemCardProps {
|
|
|
11
15
|
export declare class ChatItemCard {
|
|
12
16
|
readonly props: ChatItemCardProps;
|
|
13
17
|
render: ExtendedHTMLElement;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
private
|
|
25
|
-
private votes;
|
|
18
|
+
contentBody: CardBody | null;
|
|
19
|
+
chatAvatar: ExtendedHTMLElement;
|
|
20
|
+
updateStack: Array<Partial<ChatItem>>;
|
|
21
|
+
chatFormItems: ChatItemFormItemsWrapper | null;
|
|
22
|
+
customRendererWrapper: CardBody | null;
|
|
23
|
+
chatButtons: ChatItemButtonsWrapper | null;
|
|
24
|
+
fileTreeWrapper: ChatItemTreeViewWrapper | null;
|
|
25
|
+
typewriterItemIndex: number;
|
|
26
|
+
previousTypewriterItemIndex: number;
|
|
27
|
+
typewriterId: string;
|
|
28
|
+
private updateTimer;
|
|
26
29
|
constructor(props: ChatItemCardProps);
|
|
27
30
|
private readonly generateCard;
|
|
28
31
|
private readonly getCardClasses;
|
|
29
|
-
private readonly
|
|
32
|
+
private readonly getCardContent;
|
|
30
33
|
private readonly getChatAvatar;
|
|
34
|
+
private readonly getInsertedTypewriterPartsCss;
|
|
35
|
+
private readonly getInsertingTypewriterPartsCss;
|
|
31
36
|
private readonly checkCardSnap;
|
|
32
37
|
readonly updateCard: () => void;
|
|
33
38
|
readonly updateCardStack: (updateWith: Partial<ChatItem>) => void;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
6
6
|
import { CardRenderDetails, ChatItem, PromptAttachmentType } from '../../static';
|
|
7
|
-
import '../../styles/components/chat/_chat-wrapper.scss';
|
|
8
7
|
export declare const CONTAINER_GAP = 12;
|
|
9
8
|
export interface ChatWrapperProps {
|
|
10
9
|
onStopChatResponse?: (tabId: string) => void;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ExtendedHTMLElement } from '../../../helper/dom';
|
|
2
|
-
export interface
|
|
2
|
+
export interface ISendButtonProps {
|
|
3
3
|
tabId: string;
|
|
4
4
|
onClick: () => void;
|
|
5
5
|
}
|
|
6
6
|
export declare class SendButton {
|
|
7
|
-
|
|
8
|
-
private readonly
|
|
9
|
-
constructor(props:
|
|
7
|
+
private readonly _props;
|
|
8
|
+
private readonly _render;
|
|
9
|
+
constructor(props: ISendButtonProps);
|
|
10
|
+
get render(): ExtendedHTMLElement;
|
|
10
11
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { DomBuilderObject, ExtendedHTMLElement } from '../helper/dom';
|
|
6
|
-
import '../styles/components/_collapsible-content.scss';
|
|
7
6
|
interface CollapsibleContentProps {
|
|
8
7
|
title: string | ExtendedHTMLElement | HTMLElement | DomBuilderObject;
|
|
9
8
|
children: Array<string | ExtendedHTMLElement | HTMLElement | DomBuilderObject>;
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
6
|
-
import '../../styles/components/_form-input.scss';
|
|
7
6
|
interface SelectOption {
|
|
8
7
|
value: string;
|
|
9
8
|
label: string;
|
|
@@ -17,13 +16,7 @@ export interface RadioGroupProps {
|
|
|
17
16
|
options?: SelectOption[];
|
|
18
17
|
onChange?: (value: string) => void;
|
|
19
18
|
}
|
|
20
|
-
export declare
|
|
21
|
-
render: ExtendedHTMLElement;
|
|
22
|
-
setValue: (value: string) => void;
|
|
23
|
-
getValue: () => string;
|
|
24
|
-
setEnabled: (enabled: boolean) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare class RadioGroupInternal extends RadioGroupAbstract {
|
|
19
|
+
export declare class RadioGroup {
|
|
27
20
|
private readonly radioGroupElement;
|
|
28
21
|
private readonly groupName;
|
|
29
22
|
render: ExtendedHTMLElement;
|
|
@@ -32,11 +25,4 @@ export declare class RadioGroupInternal extends RadioGroupAbstract {
|
|
|
32
25
|
getValue: () => string;
|
|
33
26
|
setEnabled: (enabled: boolean) => void;
|
|
34
27
|
}
|
|
35
|
-
export declare class RadioGroup extends RadioGroupAbstract {
|
|
36
|
-
render: ExtendedHTMLElement;
|
|
37
|
-
constructor(props: RadioGroupProps);
|
|
38
|
-
setValue: (value: string) => void;
|
|
39
|
-
getValue: () => string;
|
|
40
|
-
setEnabled: (enabled: boolean) => void;
|
|
41
|
-
}
|
|
42
28
|
export {};
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
6
6
|
import { MynahIcons } from '../icon';
|
|
7
|
-
import '../../styles/components/_form-input.scss';
|
|
8
7
|
interface SelectOption {
|
|
9
8
|
value: string;
|
|
10
9
|
label: string;
|
|
@@ -17,16 +16,9 @@ export interface SelectProps {
|
|
|
17
16
|
value?: string;
|
|
18
17
|
optional?: boolean;
|
|
19
18
|
options?: SelectOption[];
|
|
20
|
-
placeholder?: string;
|
|
21
19
|
onChange?: (value: string) => void;
|
|
22
20
|
}
|
|
23
|
-
export declare
|
|
24
|
-
render: ExtendedHTMLElement;
|
|
25
|
-
setValue: (value: string) => void;
|
|
26
|
-
getValue: () => string;
|
|
27
|
-
setEnabled: (enabled: boolean) => void;
|
|
28
|
-
}
|
|
29
|
-
export declare class SelectInternal {
|
|
21
|
+
export declare class Select {
|
|
30
22
|
private readonly selectElement;
|
|
31
23
|
render: ExtendedHTMLElement;
|
|
32
24
|
constructor(props: SelectProps);
|
|
@@ -34,11 +26,4 @@ export declare class SelectInternal {
|
|
|
34
26
|
getValue: () => string;
|
|
35
27
|
setEnabled: (enabled: boolean) => void;
|
|
36
28
|
}
|
|
37
|
-
export declare class Select extends SelectAbstract {
|
|
38
|
-
render: ExtendedHTMLElement;
|
|
39
|
-
constructor(props: SelectProps);
|
|
40
|
-
setValue: (value: string) => void;
|
|
41
|
-
getValue: () => string;
|
|
42
|
-
setEnabled: (enabled: boolean) => void;
|
|
43
|
-
}
|
|
44
29
|
export {};
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
6
|
-
import '../../styles/components/_form-input.scss';
|
|
7
6
|
export interface TextAreaProps {
|
|
8
7
|
classNames?: string[];
|
|
9
8
|
attributes?: Record<string, string>;
|
|
@@ -12,13 +11,7 @@ export interface TextAreaProps {
|
|
|
12
11
|
value?: string;
|
|
13
12
|
onChange?: (value: string) => void;
|
|
14
13
|
}
|
|
15
|
-
export declare
|
|
16
|
-
render: ExtendedHTMLElement;
|
|
17
|
-
setValue: (value: string) => void;
|
|
18
|
-
getValue: () => string;
|
|
19
|
-
setEnabled: (enabled: boolean) => void;
|
|
20
|
-
}
|
|
21
|
-
export declare class TextAreaInternal extends TextAreaAbstract {
|
|
14
|
+
export declare class TextArea {
|
|
22
15
|
private readonly inputElement;
|
|
23
16
|
render: ExtendedHTMLElement;
|
|
24
17
|
constructor(props: TextAreaProps);
|
|
@@ -26,10 +19,3 @@ export declare class TextAreaInternal extends TextAreaAbstract {
|
|
|
26
19
|
getValue: () => string;
|
|
27
20
|
setEnabled: (enabled: boolean) => void;
|
|
28
21
|
}
|
|
29
|
-
export declare class TextArea extends TextAreaAbstract {
|
|
30
|
-
render: ExtendedHTMLElement;
|
|
31
|
-
constructor(props: TextAreaProps);
|
|
32
|
-
setValue: (value: string) => void;
|
|
33
|
-
getValue: () => string;
|
|
34
|
-
setEnabled: (enabled: boolean) => void;
|
|
35
|
-
}
|
|
@@ -3,23 +3,16 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
6
|
-
import '../../styles/components/_form-input.scss';
|
|
7
6
|
export interface TextInputProps {
|
|
8
7
|
classNames?: string[];
|
|
9
8
|
attributes?: Record<string, string>;
|
|
10
9
|
label?: HTMLElement | ExtendedHTMLElement | string;
|
|
11
10
|
placeholder?: string;
|
|
12
|
-
|
|
11
|
+
numeric?: boolean;
|
|
13
12
|
value?: string;
|
|
14
13
|
onChange?: (value: string) => void;
|
|
15
14
|
}
|
|
16
|
-
export declare
|
|
17
|
-
render: ExtendedHTMLElement;
|
|
18
|
-
setValue: (value: string) => void;
|
|
19
|
-
getValue: () => string;
|
|
20
|
-
setEnabled: (enabled: boolean) => void;
|
|
21
|
-
}
|
|
22
|
-
export declare class TextInputInternal extends TextInputAbstract {
|
|
15
|
+
export declare class TextInput {
|
|
23
16
|
private readonly inputElement;
|
|
24
17
|
render: ExtendedHTMLElement;
|
|
25
18
|
constructor(props: TextInputProps);
|
|
@@ -27,10 +20,3 @@ export declare class TextInputInternal extends TextInputAbstract {
|
|
|
27
20
|
getValue: () => string;
|
|
28
21
|
setEnabled: (enabled: boolean) => void;
|
|
29
22
|
}
|
|
30
|
-
export declare class TextInput extends TextInputAbstract {
|
|
31
|
-
render: ExtendedHTMLElement;
|
|
32
|
-
constructor(props: TextInputProps);
|
|
33
|
-
setValue: (value: string) => void;
|
|
34
|
-
getValue: () => string;
|
|
35
|
-
setEnabled: (enabled: boolean) => void;
|
|
36
|
-
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../helper/dom';
|
|
6
|
-
import '../styles/components/_nav-tabs.scss';
|
|
7
6
|
export interface TabsProps {
|
|
8
7
|
onChange?: (selectedTabId: string) => void;
|
|
9
8
|
onBeforeTabRemove?: (tabId: string) => boolean;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { DomBuilderObject, ExtendedHTMLElement } from '../helper/dom';
|
|
6
6
|
import { NotificationType } from '../static';
|
|
7
|
-
import '../styles/components/_notification.scss';
|
|
8
7
|
type NotificationContentType = string | ExtendedHTMLElement | HTMLElement | DomBuilderObject;
|
|
9
8
|
export interface NotificationProps {
|
|
10
9
|
duration?: number;
|
|
@@ -28,7 +28,6 @@ import 'prismjs/components/prism-less.min';
|
|
|
28
28
|
import 'prismjs/plugins/line-numbers/prism-line-numbers.js';
|
|
29
29
|
import 'prismjs/plugins/keep-markup/prism-keep-markup.js';
|
|
30
30
|
import { CodeSelectionType } from '../static';
|
|
31
|
-
import '../styles/components/_syntax-highlighter.scss';
|
|
32
31
|
export declare const highlighters: {
|
|
33
32
|
start: {
|
|
34
33
|
markup: string;
|
|
@@ -63,7 +62,6 @@ export interface SyntaxHighlighterProps {
|
|
|
63
62
|
}
|
|
64
63
|
export declare class SyntaxHighlighter {
|
|
65
64
|
private readonly props?;
|
|
66
|
-
private readonly codeBlockButtons;
|
|
67
65
|
render: ExtendedHTMLElement;
|
|
68
66
|
constructor(props: SyntaxHighlighterProps);
|
|
69
67
|
private readonly getSelectedCodeContextMenu;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/helper/config.d.ts
CHANGED
|
@@ -2,10 +2,9 @@
|
|
|
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 {
|
|
5
|
+
import { ConfigModel, ConfigOptions, ConfigTexts } from '../static';
|
|
6
6
|
interface ConfigFullModel extends ConfigOptions {
|
|
7
7
|
texts: ConfigTexts;
|
|
8
|
-
componentClasses: ComponentOverrides;
|
|
9
8
|
}
|
|
10
9
|
export declare class Config {
|
|
11
10
|
private static instance;
|
package/dist/helper/dom.d.ts
CHANGED
|
@@ -51,7 +51,6 @@ export declare class DomBuilder {
|
|
|
51
51
|
private portals;
|
|
52
52
|
private constructor();
|
|
53
53
|
static getInstance(rootSelector?: string): DomBuilder;
|
|
54
|
-
setRoot: (rootSelector?: string) => void;
|
|
55
54
|
addClass: (this: ExtendedHTMLElement, className: string) => ExtendedHTMLElement;
|
|
56
55
|
removeClass: (this: ExtendedHTMLElement, className: string) => ExtendedHTMLElement;
|
|
57
56
|
toggleClass: (this: ExtendedHTMLElement, className: string) => ExtendedHTMLElement;
|
|
@@ -67,5 +66,4 @@ export declare class DomBuilder {
|
|
|
67
66
|
removeAllPortals: (portalsWithName: MynahPortalNames) => void;
|
|
68
67
|
}
|
|
69
68
|
export declare const htmlDecode: (input: string) => string;
|
|
70
|
-
export declare const getTypewriterPartsCss: (typewriterId: string, lastVisibleItemIndex: number, totalNumberOfItems: number, timeForEach: number) => ExtendedHTMLElement;
|
|
71
69
|
export {};
|
package/dist/main.d.ts
CHANGED
|
@@ -4,19 +4,11 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { RelevancyVoteType, FeedbackPayload, MynahUIDataModel, NotificationType, ChatItem, ChatItemAction, ChatPrompt, MynahUITabStoreModel, MynahUITabStoreTab, ConfigModel, ReferenceTrackerInformation, CodeSelectionType, Engagement, ChatItemFormItem, ChatItemButton, CardRenderDetails, PromptAttachmentType } from './static';
|
|
6
6
|
import './styles/styles.scss';
|
|
7
|
-
export { generateUID } from './helper/guid';
|
|
8
7
|
export { ChatItemBodyRenderer, } from './helper/dom';
|
|
9
8
|
export { AllowedAttributesInCustomRenderer, AllowedTagsInCustomRenderer } from './helper/sanitize';
|
|
10
|
-
export
|
|
9
|
+
export { FeedbackPayload, RelevancyVoteType, EngagementType, Engagement, MynahUIDataModel, NotificationType, ChatItem, ChatItemAction, ChatItemType, ChatPrompt, SourceLink, } from './static';
|
|
11
10
|
export { ToggleOption } from './components/toggle';
|
|
12
11
|
export { MynahIcons } from './components/icon';
|
|
13
|
-
export { DomBuilder, DomBuilderObject, ExtendedHTMLElement, } from './helper/dom';
|
|
14
|
-
export { ButtonProps, ButtonAbstract } from './components/button';
|
|
15
|
-
export { RadioGroupProps, RadioGroupAbstract } from './components/form-items/radio-group';
|
|
16
|
-
export { SelectProps, SelectAbstract } from './components/form-items/select';
|
|
17
|
-
export { TextInputProps, TextInputAbstract } from './components/form-items/text-input';
|
|
18
|
-
export { TextAreaProps, TextAreaAbstract } from './components/form-items/text-area';
|
|
19
|
-
export { ChatItemCardContent, ChatItemCardContentProps } from './components/chat-item/chat-item-card-content';
|
|
20
12
|
export interface MynahUIProps {
|
|
21
13
|
rootSelector?: string;
|
|
22
14
|
defaults?: MynahUITabStoreTab;
|
|
@@ -141,12 +133,12 @@ export declare class MynahUI {
|
|
|
141
133
|
/**
|
|
142
134
|
* -1 for infinite
|
|
143
135
|
*/
|
|
144
|
-
duration?: number;
|
|
145
|
-
type?: NotificationType;
|
|
146
|
-
title?: string;
|
|
136
|
+
duration?: number | undefined;
|
|
137
|
+
type?: NotificationType | undefined;
|
|
138
|
+
title?: string | undefined;
|
|
147
139
|
content: string;
|
|
148
|
-
onNotificationClick?: (eventId: string) => void;
|
|
149
|
-
onNotificationHide?: (eventId: string) => void;
|
|
140
|
+
onNotificationClick?: ((eventId: string) => void) | undefined;
|
|
141
|
+
onNotificationHide?: ((eventId: string) => void) | undefined;
|
|
150
142
|
}) => void;
|
|
151
143
|
/**
|
|
152
144
|
* Simply creates and shows a notification
|