@pluno/product-agent-web 0.1.171 → 0.1.172
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/product-agent-widget.js +2 -2
- package/dist/widget.d.ts +1 -1
- package/package.json +1 -1
|
@@ -5919,10 +5919,10 @@ async function Au(t = {}) {
|
|
|
5919
5919
|
if (!a)
|
|
5920
5920
|
return;
|
|
5921
5921
|
const g = e.proactiveSuggestion !== null;
|
|
5922
|
-
e.proactiveSuggestion = null, Ge = null, pe = "idle", ve && (ve.value = ""), g && e.onProactiveSuggestionDismiss?.(a.id), at();
|
|
5922
|
+
e.proactiveSuggestion = null, Ge = null, pe = "idle", ve && (ve.value = ""), g && e.onProactiveSuggestionDismiss?.(a.id, "dismiss"), at();
|
|
5923
5923
|
}), E?.addEventListener("click", () => {
|
|
5924
5924
|
const a = e.proactiveSuggestion;
|
|
5925
|
-
a && (Ge = null, e.proactiveSuggestion = null, e.onProactiveSuggestionDismiss?.(a.id), v.value = a.suggestedQuery, v.dispatchEvent(new Event("input", { bubbles: !0 })), Ve(v, "proactive_suggestion_edit"), v.setSelectionRange(v.value.length, v.value.length), at());
|
|
5925
|
+
a && (Ge = null, e.proactiveSuggestion = null, e.onProactiveSuggestionDismiss?.(a.id, "edit"), v.value = a.suggestedQuery, v.dispatchEvent(new Event("input", { bubbles: !0 })), Ve(v, "proactive_suggestion_edit"), v.setSelectionRange(v.value.length, v.value.length), at());
|
|
5926
5926
|
}), rt?.addEventListener("click", () => {
|
|
5927
5927
|
const a = e.proactiveSuggestion;
|
|
5928
5928
|
a && (Ge = a, pe = "idle", ve && (ve.value = ""), e.proactiveSuggestion = null, e.onProactiveSuggestionNeverShow?.(a.id), at(), window.requestAnimationFrame(() => ve?.focus()));
|
package/dist/widget.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export type ProductAgentWidgetOptions = {
|
|
|
54
54
|
onMorningReportSnooze?: () => void;
|
|
55
55
|
onMorningReportTaskStart?: () => void;
|
|
56
56
|
proactiveSuggestion?: ProductAgentWidgetProactiveSuggestion | null;
|
|
57
|
-
onProactiveSuggestionDismiss?: (suggestionId: string) => void;
|
|
57
|
+
onProactiveSuggestionDismiss?: (suggestionId: string, reason: "dismiss" | "edit") => void;
|
|
58
58
|
onProactiveSuggestionNeverShow?: (suggestionId: string) => void;
|
|
59
59
|
onProactiveSuggestionFeedbackSubmit?: (suggestionId: string, suggestedQuery: string, feedback: string) => void | Promise<void>;
|
|
60
60
|
onProactiveSuggestionTaskStart?: (suggestionId: string) => void;
|
package/package.json
CHANGED