@contentgrowth/llm-service 1.0.6 → 1.0.8

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.
@@ -192,6 +192,7 @@ interface TapToTalkProps {
192
192
  tooltip?: string;
193
193
  onFocusTarget?: () => void;
194
194
  accentColor?: string;
195
+ leftAction?: React.ReactNode;
195
196
  }
196
197
  declare const TapToTalk: React.FC<TapToTalkProps>;
197
198
 
@@ -192,6 +192,7 @@ interface TapToTalkProps {
192
192
  tooltip?: string;
193
193
  onFocusTarget?: () => void;
194
194
  accentColor?: string;
195
+ leftAction?: React.ReactNode;
195
196
  }
196
197
  declare const TapToTalk: React.FC<TapToTalkProps>;
197
198
 
@@ -801,7 +801,8 @@ var TapToTalk = ({
801
801
  disabled = false,
802
802
  tooltip = "Tap to speak",
803
803
  onFocusTarget,
804
- accentColor = "bg-emerald-600"
804
+ accentColor = "bg-emerald-600",
805
+ leftAction
805
806
  }) => {
806
807
  var _a;
807
808
  const globalConfig = useChatConfig();
@@ -992,23 +993,26 @@ var TapToTalk = ({
992
993
  logs.map((log, i) => /* @__PURE__ */ jsx7("div", { className: "mb-0.5 border-b border-gray-700/50 pb-0.5 break-all", children: log }, i)),
993
994
  logs.length === 0 && /* @__PURE__ */ jsx7("div", { children: "No logs yet..." })
994
995
  ] }),
995
- /* @__PURE__ */ jsxs5(
996
- "button",
997
- {
998
- ...handlers,
999
- disabled: disabled || isTranscribing && !isListening,
1000
- className: `flex items-center justify-center gap-3 px-6 py-3 rounded-xl transition-all duration-300 w-full font-medium shadow-md touch-none select-none
996
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-2 w-full", children: [
997
+ leftAction,
998
+ /* @__PURE__ */ jsxs5(
999
+ "button",
1000
+ {
1001
+ ...handlers,
1002
+ disabled: disabled || isTranscribing && !isListening,
1003
+ className: `flex items-center justify-center gap-3 px-6 py-3 rounded-xl transition-all duration-300 flex-1 font-medium shadow-md touch-none select-none
1001
1004
  ${bgColor} text-white
1002
1005
  ${disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"}
1003
1006
  ${className}`,
1004
- title: label,
1005
- children: [
1006
- /* @__PURE__ */ jsx7("div", { className: "flex items-center justify-center shrink-0", children: Icon }),
1007
- /* @__PURE__ */ jsx7("span", { className: "truncate", children: label }),
1008
- errorMsg && /* @__PURE__ */ jsx7("span", { className: "text-[10px] bg-white/20 px-1.5 py-0.5 rounded text-red-100 animate-in fade-in slide-in-from-right-1", children: errorMsg })
1009
- ]
1010
- }
1011
- )
1007
+ title: label,
1008
+ children: [
1009
+ /* @__PURE__ */ jsx7("div", { className: "flex items-center justify-center shrink-0", children: Icon }),
1010
+ /* @__PURE__ */ jsx7("span", { className: "truncate", children: label }),
1011
+ errorMsg && /* @__PURE__ */ jsx7("span", { className: "text-[10px] bg-white/20 px-1.5 py-0.5 rounded text-red-100 animate-in fade-in slide-in-from-right-1", children: errorMsg })
1012
+ ]
1013
+ }
1014
+ )
1015
+ ] })
1012
1016
  ] });
1013
1017
  };
1014
1018