@handled-ai/design-system 0.9.20 → 0.9.22

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.
@@ -81,6 +81,7 @@ interface SuggestedAction {
81
81
  callMeta?: SuggestedActionCallMeta;
82
82
  manualMeta?: SuggestedActionManualMeta;
83
83
  browserMeta?: SuggestedActionBrowserMeta;
84
+ onFeedback?: (type: "up" | "down", pills: string[], detail: string) => void;
84
85
  }
85
86
  interface SuggestedActionsProps {
86
87
  actions: SuggestedAction[];
@@ -940,6 +940,7 @@ function SuggestedActionCard({
940
940
  onOpenRecentActivity,
941
941
  onMarkComplete,
942
942
  onDispatchAgent,
943
+ onFeedback,
943
944
  iconMap,
944
945
  sendLabel,
945
946
  accountDetailsLabel,
@@ -1056,10 +1057,14 @@ function SuggestedActionCard({
1056
1057
  feedbackOpen && /* @__PURE__ */ jsx("div", { className: "px-5 py-3 border-b border-border/40 animate-in fade-in slide-in-from-top-2 duration-200", children: /* @__PURE__ */ jsx(
1057
1058
  DraftFeedbackInline,
1058
1059
  {
1059
- onRegenerateRequest: (pills, detail) => console.log("Regenerate:", pills, detail),
1060
- onSubmitFeedback: (type, pills, detail) => console.log("Feedback:", type, pills, detail),
1060
+ onRegenerateRequest: (pills, detail) => {
1061
+ onFeedback == null ? void 0 : onFeedback("down", pills, detail);
1062
+ },
1063
+ onSubmitFeedback: (type, pills, detail) => {
1064
+ onFeedback == null ? void 0 : onFeedback(type, pills, detail);
1065
+ },
1061
1066
  onDiscardRequest: (pills, detail) => {
1062
- console.log("Discard:", pills, detail);
1067
+ onFeedback == null ? void 0 : onFeedback("down", pills, detail);
1063
1068
  onDismiss == null ? void 0 : onDismiss(action.id);
1064
1069
  }
1065
1070
  }
@@ -1521,6 +1526,7 @@ function SuggestedActions({
1521
1526
  onOpenRecentActivity,
1522
1527
  onMarkComplete,
1523
1528
  onDispatchAgent,
1529
+ onFeedback: action.onFeedback,
1524
1530
  iconMap,
1525
1531
  sendLabel,
1526
1532
  accountDetailsLabel,