@aws/mynah-ui 4.33.1 → 4.34.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/components/chat-item/prompt-input/prompt-options.d.ts +4 -2
- 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 +5 -0
- package/docs/DATAMODEL.md +27 -0
- package/docs/PROPERTIES.md +19 -0
- package/docs/img/data-model/tabStore/promptButtons.png +0 -0
- package/package.json +1 -1
- package/ui-tests/dist/main.js +11 -11
- package/ui-tests/dist/main.js.map +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ExtendedHTMLElement } from '../../../helper/dom';
|
|
2
|
-
import { FilterOption } from '../../../static';
|
|
2
|
+
import { ChatItemButton, FilterOption } from '../../../static';
|
|
3
3
|
export interface PromptOptionsProps {
|
|
4
4
|
classNames?: string[];
|
|
5
5
|
filterOptions: FilterOption[];
|
|
6
|
+
buttons: ChatItemButton[];
|
|
6
7
|
onFiltersChange?: (filterFormData: Record<string, any>, isValid: boolean) => void;
|
|
8
|
+
onButtonClick?: (buttonId: string) => void;
|
|
7
9
|
}
|
|
8
10
|
export declare class PromptOptions {
|
|
9
11
|
render: ExtendedHTMLElement;
|
|
@@ -11,6 +13,6 @@ export declare class PromptOptions {
|
|
|
11
13
|
private formItemsWrapper;
|
|
12
14
|
constructor(props: PromptOptionsProps);
|
|
13
15
|
private readonly getFilterOptionsWrapper;
|
|
14
|
-
readonly update: (filterOptions
|
|
16
|
+
readonly update: (filterOptions?: FilterOption[], buttons?: ChatItemButton[]) => void;
|
|
15
17
|
readonly getOptionValues: () => Record<string, string>;
|
|
16
18
|
}
|
package/dist/main.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ export interface MynahUIProps {
|
|
|
80
80
|
formItemValues?: Record<string, string>;
|
|
81
81
|
}, eventId?: string) => void;
|
|
82
82
|
onPromptInputOptionChange?: (tabId: string, optionsValues: Record<string, string>, eventId?: string) => void;
|
|
83
|
+
onPromptInputButtonClick?: (tabId: string, buttonId: string, eventId?: string) => void;
|
|
83
84
|
/**
|
|
84
85
|
* @deprecated since version 4.6.3. Will be dropped after version 5.x.x. Use {@link onFileClick} instead
|
|
85
86
|
*/
|