@bcrumbs.net/bc-chat 1.0.85 → 1.0.87

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/build/index.d.ts CHANGED
@@ -132,6 +132,10 @@ interface AutoCompleteControls {
132
132
  onInputChange?: (text: string) => void;
133
133
  /** Callback to mutate the auto-complete suggestion. Called with updated suggestion or null to reset */
134
134
  onAutoCompleteMutate?: (suggestion: string | null) => void;
135
+ /** When set, replaces the entire composer draft (e.g. enhance). Parent clears after apply. */
136
+ autoCompleteReplaceDraft?: string;
137
+ /** Bumped when replace draft is applied so the same text can be applied again. */
138
+ autoCompleteReplaceDraftKey?: number;
135
139
  }
136
140
 
137
141
  interface ChatProps extends AutoCompleteControls {
@@ -170,6 +174,6 @@ interface ChatProps extends AutoCompleteControls {
170
174
  /** Called when user clicks "Add Contact" on a contact message card */
171
175
  onContactAddContact?: (contact: ContactMessagePayload) => void;
172
176
  }
173
- declare const Chat: ({ config, messages, sendMessage, debug, minimize, onReachingUp, agentsIdsAvatarsMap, actionChips, noteMode, onNoteSend, onCloseNoteMode, searchPattern, notePlaceholder, searchMatchNo, onSearchMatchCount, onMessageReply, replyMessageTitle, replyMessageContent, onCancelReplyMessage, errorMessage, autoCompleteEnabled, autoCompleteSuggestion, onInputChange, onAutoCompleteMutate, onContactMessage, onContactAddContact, }: ChatProps) => react_jsx_runtime.JSX.Element;
177
+ declare const Chat: ({ config, messages, sendMessage, debug, minimize, onReachingUp, agentsIdsAvatarsMap, actionChips, noteMode, onNoteSend, onCloseNoteMode, searchPattern, notePlaceholder, searchMatchNo, onSearchMatchCount, onMessageReply, replyMessageTitle, replyMessageContent, onCancelReplyMessage, errorMessage, autoCompleteEnabled, autoCompleteSuggestion, onInputChange, onAutoCompleteMutate, autoCompleteReplaceDraft, autoCompleteReplaceDraftKey, onContactMessage, onContactAddContact, }: ChatProps) => react_jsx_runtime.JSX.Element;
174
178
 
175
179
  export { Chat as BCChat };