@aws/mynah-ui 4.39.2 → 4.40.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.
|
@@ -49,6 +49,7 @@ export declare class ChatPromptInput {
|
|
|
49
49
|
private userPromptHistoryIndex;
|
|
50
50
|
private lastUnsentUserPrompt;
|
|
51
51
|
private readonly markerRemovalRegex;
|
|
52
|
+
private quickPickFilterDebounceTimer;
|
|
52
53
|
constructor(props: ChatPromptInputProps);
|
|
53
54
|
private readonly onContextSelectorButtonClick;
|
|
54
55
|
private readonly updateAvailableCharactersIndicator;
|
|
@@ -21,6 +21,7 @@ export declare class PromptTextInput {
|
|
|
21
21
|
private contextTooltip;
|
|
22
22
|
private contextTooltipTimeout;
|
|
23
23
|
private mutationObserver;
|
|
24
|
+
private hasImageCommand;
|
|
24
25
|
constructor(props: PromptTextInputProps);
|
|
25
26
|
private readonly setupContextRemovalObserver;
|
|
26
27
|
private readonly handleContextRemoval;
|
package/dist/main.d.ts
CHANGED
|
@@ -52,6 +52,13 @@ export interface MynahUIProps {
|
|
|
52
52
|
onTabChange?: (tabId: string, eventId?: string) => void;
|
|
53
53
|
onTabAdd?: (tabId: string, eventId?: string) => void;
|
|
54
54
|
onContextSelected?: (contextItem: QuickActionCommand, tabId: string, eventId?: string) => boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Called when the user types in the `@` context picker.
|
|
57
|
+
* The host should send the search term to the server for filtering
|
|
58
|
+
* and update the store's `contextCommands` with the server response.
|
|
59
|
+
* If not provided, client-side filtering is used as a fallback.
|
|
60
|
+
*/
|
|
61
|
+
onContextCommandFilter?: (tabId: string, searchTerm: string) => void;
|
|
55
62
|
onTabRemove?: (tabId: string, eventId?: string) => void;
|
|
56
63
|
onSearchShortcut?: (tabId: string, eventId?: string) => void;
|
|
57
64
|
/**
|