@aws/mynah-ui 4.4.2 → 4.5.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/README.md +1 -1
- package/dist/components/button.d.ts +8 -0
- package/dist/components/chat-item/chat-item-card.d.ts +1 -0
- package/dist/components/navigation-tab-bar-buttons.d.ts +14 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/static.d.ts +15 -1
- package/package.json +1 -1
package/dist/static.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export interface MynahUIDataModel {
|
|
|
28
28
|
promptInputDisabledState?: boolean;
|
|
29
29
|
chatItems?: ChatItem[];
|
|
30
30
|
selectedCodeSnippet?: string;
|
|
31
|
+
tabBarButtons?: TabBarMainAction[];
|
|
31
32
|
}
|
|
32
33
|
export interface MynahUITabStoreTab {
|
|
33
34
|
isSelected?: boolean;
|
|
@@ -56,7 +57,8 @@ export declare enum MynahEventNames {
|
|
|
56
57
|
FILE_ACTION_CLICK = "fileActionClick",
|
|
57
58
|
CUSTOM_FORM_ACTION_CLICK = "customFormActionClick",
|
|
58
59
|
ADD_CODE_SNIPPET = "addCodeSnippet",
|
|
59
|
-
REMOVE_CODE_SNIPPET = "removeCodeSnippet"
|
|
60
|
+
REMOVE_CODE_SNIPPET = "removeCodeSnippet",
|
|
61
|
+
TAB_BAR_BUTTON_CLICK = "tabBarButtonClick"
|
|
60
62
|
}
|
|
61
63
|
export declare enum MynahPortalNames {
|
|
62
64
|
WRAPPER = "wrapper",
|
|
@@ -158,6 +160,17 @@ export interface ChatItemButton {
|
|
|
158
160
|
status?: 'info' | 'success' | 'warning' | 'error';
|
|
159
161
|
icon?: MynahIcons;
|
|
160
162
|
}
|
|
163
|
+
export interface TabBarAction {
|
|
164
|
+
text?: string;
|
|
165
|
+
id: string;
|
|
166
|
+
disabled?: boolean;
|
|
167
|
+
description?: string;
|
|
168
|
+
status?: 'info' | 'success' | 'warning' | 'error';
|
|
169
|
+
icon?: MynahIcons;
|
|
170
|
+
}
|
|
171
|
+
export interface TabBarMainAction extends TabBarAction {
|
|
172
|
+
items?: TabBarAction[];
|
|
173
|
+
}
|
|
161
174
|
export interface FileNodeAction {
|
|
162
175
|
name: string;
|
|
163
176
|
label?: string;
|
|
@@ -266,6 +279,7 @@ export interface ConfigOptions {
|
|
|
266
279
|
label: string;
|
|
267
280
|
value: string;
|
|
268
281
|
}>;
|
|
282
|
+
tabBarButtons?: TabBarMainAction[];
|
|
269
283
|
maxTabs: number;
|
|
270
284
|
showPromptField: boolean;
|
|
271
285
|
autoFocus: boolean;
|
package/package.json
CHANGED