@aws/mynah-ui 4.35.0-beta.8 → 4.35.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.
- package/dist/main.d.ts +7 -3
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/docs/PROPERTIES.md +50 -0
- package/docs/USAGE.md +26 -1
- package/docs/img/splashLoaderActions.png +0 -0
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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 { RelevancyVoteType, FeedbackPayload, MynahUIDataModel, NotificationType, ChatItem, ChatItemAction, ChatPrompt, MynahUITabStoreModel, MynahUITabStoreTab, ConfigModel, ReferenceTrackerInformation, CodeSelectionType, Engagement, ChatItemFormItem, ChatItemButton, CardRenderDetails, PromptAttachmentType, QuickActionCommand, DetailedList, TreeNodeDetails } from './static';
|
|
5
|
+
import { RelevancyVoteType, FeedbackPayload, MynahUIDataModel, NotificationType, ChatItem, ChatItemAction, ChatPrompt, MynahUITabStoreModel, MynahUITabStoreTab, ConfigModel, ReferenceTrackerInformation, CodeSelectionType, Engagement, ChatItemFormItem, ChatItemButton, CardRenderDetails, PromptAttachmentType, QuickActionCommand, DetailedList, TreeNodeDetails, Action } from './static';
|
|
6
6
|
import { DetailedListSheetProps } from './components/detailed-list/detailed-list-sheet';
|
|
7
7
|
import { MynahUIDataStore } from './helper/store';
|
|
8
8
|
export { generateUID } from './helper/guid';
|
|
@@ -25,7 +25,8 @@ export interface MynahUIProps {
|
|
|
25
25
|
defaults?: MynahUITabStoreTab;
|
|
26
26
|
splashScreenInitialStatus?: {
|
|
27
27
|
visible: boolean;
|
|
28
|
-
text
|
|
28
|
+
text?: string;
|
|
29
|
+
actions?: Action[];
|
|
29
30
|
};
|
|
30
31
|
tabs?: MynahUITabStoreModel;
|
|
31
32
|
config?: Partial<ConfigModel>;
|
|
@@ -92,6 +93,7 @@ export interface MynahUIProps {
|
|
|
92
93
|
onQuickCommandGroupActionClick?: (tabId: string, action: {
|
|
93
94
|
id: string;
|
|
94
95
|
}, eventId?: string) => void;
|
|
96
|
+
onSplashLoaderActionClick?: (action: Action, eventId?: string) => void;
|
|
95
97
|
}
|
|
96
98
|
export declare class MynahUI {
|
|
97
99
|
private readonly render;
|
|
@@ -99,12 +101,14 @@ export declare class MynahUI {
|
|
|
99
101
|
private readonly props;
|
|
100
102
|
private readonly splashLoader;
|
|
101
103
|
private readonly splashLoaderText;
|
|
104
|
+
private readonly splashLoaderActions;
|
|
102
105
|
private readonly tabsWrapper;
|
|
103
106
|
private readonly tabContentsWrapper;
|
|
104
107
|
private readonly feedbackForm?;
|
|
105
108
|
private readonly sheet?;
|
|
106
109
|
private readonly chatWrappers;
|
|
107
110
|
constructor(props: MynahUIProps);
|
|
111
|
+
private readonly getSplashLoaderActions;
|
|
108
112
|
private readonly getUserEventId;
|
|
109
113
|
private readonly focusToInput;
|
|
110
114
|
private readonly addGlobalListeners;
|
|
@@ -187,7 +191,7 @@ export declare class MynahUI {
|
|
|
187
191
|
/**
|
|
188
192
|
* Toggles the visibility of the splash loader screen
|
|
189
193
|
*/
|
|
190
|
-
toggleSplashLoader: (visible: boolean, text?: string) => void;
|
|
194
|
+
toggleSplashLoader: (visible: boolean, text?: string, actions?: Action[]) => void;
|
|
191
195
|
/**
|
|
192
196
|
* Simply creates and shows a notification
|
|
193
197
|
* @param props NotificationProps
|