@aws/mynah-ui 4.30.2-beta.1 → 4.30.3
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/components/background.d.ts +0 -1
- package/dist/components/button.d.ts +0 -1
- package/dist/components/card/card-body.d.ts +0 -1
- package/dist/components/card/card.d.ts +0 -1
- package/dist/components/chat-item/chat-item-information-card.d.ts +0 -1
- package/dist/components/chat-item/chat-item-tabbed-card.d.ts +0 -1
- package/dist/components/chat-item/chat-wrapper.d.ts +0 -1
- package/dist/components/collapsible-content.d.ts +0 -1
- package/dist/components/form-items/checkbox.d.ts +0 -1
- package/dist/components/form-items/radio-group.d.ts +0 -1
- package/dist/components/form-items/select.d.ts +0 -1
- package/dist/components/form-items/stars.d.ts +0 -1
- package/dist/components/form-items/text-area.d.ts +0 -1
- package/dist/components/form-items/text-input.d.ts +0 -1
- package/dist/components/icon.d.ts +0 -1
- package/dist/components/more-content-indicator.d.ts +0 -1
- package/dist/components/navigation-tabs.d.ts +0 -1
- package/dist/components/no-tabs.d.ts +0 -1
- package/dist/components/notification.d.ts +0 -1
- package/dist/components/overlay.d.ts +0 -1
- package/dist/components/progress.d.ts +0 -2
- package/dist/components/sheet.d.ts +0 -1
- package/dist/components/spinner/spinner.d.ts +0 -1
- package/dist/components/syntax-highlighter.d.ts +0 -1
- package/dist/components/tabs.d.ts +0 -1
- package/dist/components/title-description-with-icon.d.ts +0 -1
- package/dist/helper/style-loader.d.ts +12 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/ui-tests/dist/27f62b53b93858475a7f.ttf +0 -0
- package/ui-tests/dist/d50a80138ec4f2fb5e9f.ttf +0 -0
- package/ui-tests/dist/index.html +9 -0
- package/ui-tests/dist/main.js +1362 -0
- package/ui-tests/dist/main.js.map +1 -0
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { DomBuilderEventHandler, DomBuilderEventHandlerWithOptions, ExtendedHTMLElement, GenericEvents } 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>;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { DomBuilderObject, ExtendedHTMLElement } from '../../helper/dom';
|
|
6
6
|
import { CodeBlockActions, OnCodeBlockActionFunction, OnCopiedToClipboardFunction, ReferenceTrackerInformation } from '../../static';
|
|
7
|
-
import '../../styles/components/card/_card.scss';
|
|
8
7
|
export declare const highlightersWithTooltip: {
|
|
9
8
|
start: {
|
|
10
9
|
markupStart: string;
|
|
@@ -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;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
2
2
|
import { ChatItemContent } from '../../static';
|
|
3
|
-
import '../../styles/components/chat/_chat-item-card-information-card.scss';
|
|
4
3
|
export interface ChatItemInformationCardProps {
|
|
5
4
|
tabId: string;
|
|
6
5
|
testId?: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
2
2
|
import { ChatItemContent } from '../../static';
|
|
3
3
|
import { ChatItemCard } from './chat-item-card';
|
|
4
|
-
import '../../styles/components/chat/_chat-item-card-tabbed-card.scss';
|
|
5
4
|
export interface ChatItemTabbedCardProps {
|
|
6
5
|
tabId: string;
|
|
7
6
|
messageId: string | undefined;
|
|
@@ -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;
|
|
@@ -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
|
testId?: string;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../../helper/dom';
|
|
6
6
|
import { ValidationPattern } from '../../static';
|
|
7
|
-
import '../../styles/components/_form-input.scss';
|
|
8
7
|
import { MynahIcons, MynahIconsType } from '../icon';
|
|
9
8
|
export interface TextInputProps {
|
|
10
9
|
classNames?: string[];
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../helper/dom';
|
|
6
6
|
import { MynahIcons, MynahIconsType } from './icon';
|
|
7
|
-
import '../styles/components/_more-content-indicator.scss';
|
|
8
7
|
interface MoreContentIndicatorProps {
|
|
9
8
|
icon?: MynahIcons | MynahIconsType;
|
|
10
9
|
border?: 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 declare const DEFAULT_TIMEOUT = 5000;
|
|
10
9
|
export interface NotificationProps {
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../helper/dom';
|
|
6
|
-
import '../styles/components/_collapsible-content.scss';
|
|
7
6
|
import { ChatItemButton, ProgressField } from '../static';
|
|
8
|
-
import '../styles/components/_progress.scss';
|
|
9
7
|
interface ProgressIndicatorProps extends ProgressField {
|
|
10
8
|
testId?: string;
|
|
11
9
|
classNames?: string[];
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { DomBuilderObject, ExtendedHTMLElement } from '../main';
|
|
6
|
-
import '../styles/components/_sheet.scss';
|
|
7
6
|
export interface SheetProps {
|
|
8
7
|
title?: string;
|
|
9
8
|
children?: Array<ExtendedHTMLElement | HTMLElement | string | DomBuilderObject>;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../helper/dom';
|
|
6
6
|
import { CodeBlockActions, CodeSelectionType, OnCodeBlockActionFunction } from '../static';
|
|
7
|
-
import '../styles/components/_syntax-highlighter.scss';
|
|
8
7
|
export interface SyntaxHighlighterProps {
|
|
9
8
|
codeStringWithMarkup: string;
|
|
10
9
|
language?: string;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ExtendedHTMLElement } from '../helper/dom';
|
|
6
6
|
import { MynahIcons, MynahIconsType } from './icon';
|
|
7
|
-
import '../styles/components/_tab.scss';
|
|
8
7
|
export interface ToggleOption {
|
|
9
8
|
label?: ExtendedHTMLElement | string | HTMLElement;
|
|
10
9
|
icon?: MynahIcons | MynahIconsType | null;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { DomBuilderObject, ExtendedHTMLElement } from '../helper/dom';
|
|
6
6
|
import { MynahIcons, MynahIconsType } from './icon';
|
|
7
|
-
import '../styles/components/_title-description-icon.scss';
|
|
8
7
|
interface TitleDescriptionWithIconProps {
|
|
9
8
|
title?: string | ExtendedHTMLElement | HTMLElement | DomBuilderObject;
|
|
10
9
|
description?: string | ExtendedHTMLElement | HTMLElement | DomBuilderObject;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
export declare class StyleLoader {
|
|
6
|
+
private readonly loadStyles;
|
|
7
|
+
private static instance;
|
|
8
|
+
private constructor();
|
|
9
|
+
load: (stylePath: string) => Promise<void>;
|
|
10
|
+
static getInstance(loadStyles?: boolean): StyleLoader;
|
|
11
|
+
destroy: () => void;
|
|
12
|
+
}
|
package/dist/main.d.ts
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { RelevancyVoteType, FeedbackPayload, MynahUIDataModel, NotificationType, ChatItem, ChatItemAction, ChatPrompt, MynahUITabStoreModel, MynahUITabStoreTab, ConfigModel, ReferenceTrackerInformation, CodeSelectionType, Engagement, ChatItemFormItem, ChatItemButton, CardRenderDetails, PromptAttachmentType, QuickActionCommand, DetailedList } from './static';
|
|
6
|
-
import './styles/styles.scss';
|
|
7
6
|
import { DetailedListSheetProps } from './components/detailed-list/detailed-list-sheet';
|
|
8
7
|
export { generateUID } from './helper/guid';
|
|
9
8
|
export { ChatItemBodyRenderer, } from './helper/dom';
|
|
@@ -21,6 +20,7 @@ export { ChatItemCardContent, ChatItemCardContentProps } from './components/chat
|
|
|
21
20
|
export { default as MynahUITestIds } from './helper/test-ids';
|
|
22
21
|
export interface MynahUIProps {
|
|
23
22
|
rootSelector?: string;
|
|
23
|
+
loadStyles?: boolean;
|
|
24
24
|
defaults?: MynahUITabStoreTab;
|
|
25
25
|
splashScreenInitialStatus?: {
|
|
26
26
|
visible: boolean;
|