@bikdotai/bik-component-library 0.0.777-beta.20 → 0.0.777-beta.24
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/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.d.ts +8 -6
- package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.js +2 -2
- package/dist/cjs/components/WhatsAppTextEditor/ai/aiTag.d.ts +15 -10
- package/dist/cjs/components/WhatsAppTextEditor/ai/aiTag.js +1 -1
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.d.ts +8 -6
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.js +2 -2
- package/dist/esm/components/WhatsAppTextEditor/ai/aiTag.d.ts +15 -10
- package/dist/esm/components/WhatsAppTextEditor/ai/aiTag.js +1 -1
- package/package.json +1 -1
|
@@ -71,9 +71,10 @@ export type CustomEditorProps = React.TextareaHTMLAttributes<HTMLTextAreaElement
|
|
|
71
71
|
instructionSuggestions?: string[];
|
|
72
72
|
onAnalyticsEvent?: (name: AIEventName, payload: AIEventPayload) => void;
|
|
73
73
|
/**
|
|
74
|
-
* Fires
|
|
75
|
-
*
|
|
76
|
-
*
|
|
74
|
+
* Fires on AI-tag computations:
|
|
75
|
+
* - `source: "accept"` after accepting a suggestion (addition check: >=50% => true)
|
|
76
|
+
* - `source: "post_edit_debounce"` after edit idle/blur (retention check: <50% => true)
|
|
77
|
+
* Persist `payload.isAiTagged` (or full payload) in host state and send on save.
|
|
77
78
|
*/
|
|
78
79
|
onAITagComputed?: (payload: AITagPayload) => void;
|
|
79
80
|
/**
|
|
@@ -139,9 +140,10 @@ export declare const WhatsAppTextEditor: React.ForwardRefExoticComponent<React.T
|
|
|
139
140
|
instructionSuggestions?: string[] | undefined;
|
|
140
141
|
onAnalyticsEvent?: ((name: AIEventName, payload: AIEventPayload) => void) | undefined;
|
|
141
142
|
/**
|
|
142
|
-
* Fires
|
|
143
|
-
*
|
|
144
|
-
*
|
|
143
|
+
* Fires on AI-tag computations:
|
|
144
|
+
* - `source: "accept"` after accepting a suggestion (addition check: >=50% => true)
|
|
145
|
+
* - `source: "post_edit_debounce"` after edit idle/blur (retention check: <50% => true)
|
|
146
|
+
* Persist `payload.isAiTagged` (or full payload) in host state and send on save.
|
|
145
147
|
*/
|
|
146
148
|
onAITagComputed?: ((payload: AITagPayload) => void) | undefined;
|
|
147
149
|
/**
|