@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.
@@ -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 when the user **Accepts** an AI suggestion. Persist `payload.isAiTagged` (or the
75
- * full payload) in host state and send on template save the editor ref `get()` only
76
- * returns body text. See `MERCHANT_ADMIN_REACT_INTEGRATION.md` (AI tag section).
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 when the user **Accepts** an AI suggestion. Persist `payload.isAiTagged` (or the
143
- * full payload) in host state and send on template save the editor ref `get()` only
144
- * returns body text. See `MERCHANT_ADMIN_REACT_INTEGRATION.md` (AI tag section).
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
  /**