@factorialco/f0-react 1.421.0 → 1.422.0

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.
@@ -1,7 +1,7 @@
1
1
  import { defaultTranslations as ke } from "./i18n-provider-defaults.js";
2
2
  import { jsx as q, jsxs as le } from "react/jsx-runtime";
3
3
  import { useInsertionEffect as Xe, createContext as Ye, useContext as $e, useRef as B, useEffect as ie, useState as Ue, useCallback as qe, useMemo as He } from "react";
4
- import { r as Ke, l as je, m as Qe, n as Je, o as Me, p as Ze, q as et, s as tt, t as rt, v as nt, w as Ne, x as ot, V as it, y as st, z as at, A as ct, S as ut, H as lt, B as se, D as ft, E as dt, G as ht, J as mt, K as pt, L as vt, M as fe, N as gt } from "./registry-CpP6Cwro.js";
4
+ import { r as Ke, l as je, m as Qe, n as Je, o as Me, p as Ze, q as et, s as tt, t as rt, v as nt, w as Ne, x as ot, V as it, y as st, z as at, A as ct, S as ut, H as lt, B as se, D as ft, E as dt, G as ht, J as mt, K as pt, L as vt, M as fe, N as gt } from "./registry-WX4F5JvC.js";
5
5
  import { useTrackVolume as wt } from "@livekit/components-react";
6
6
  function Tt(t, e, r) {
7
7
  Xe(() => t.on(e, r), [t, e, r]);
package/dist/ai.d.ts CHANGED
@@ -399,6 +399,16 @@ export declare const aiTranslations: {
399
399
  readonly controls: "← → to move";
400
400
  readonly escToExit: "Esc to exit";
401
401
  };
402
+ readonly creditWarning: {
403
+ readonly soft: "You're running low on AI credits.";
404
+ readonly getCredits: "Get credits";
405
+ readonly dismiss: "Dismiss";
406
+ readonly messageBanner: {
407
+ readonly title: "This response requires credits";
408
+ readonly description: "Your company has run out of AI credits.";
409
+ readonly actionLabel: "Get credits";
410
+ };
411
+ };
402
412
  readonly growth: {
403
413
  readonly demoCard: {
404
414
  readonly title: "See {{moduleName}} in action";
@@ -632,6 +642,9 @@ export declare const ChatSpinner: ForwardRefExoticComponent<Omit<SVGProps<SVGSVG
632
642
 
633
643
  declare type ChatTextareaProps = InputProps & {
634
644
  submitLabel?: string;
645
+ creditWarning?: "soft";
646
+ onDismissCreditWarning?: () => void;
647
+ onGetCredits?: () => void;
635
648
  };
636
649
 
637
650
  declare interface CollectionComputation {
@@ -1109,6 +1122,16 @@ export declare const defaultTranslations: {
1109
1122
  readonly controls: "← → to move";
1110
1123
  readonly escToExit: "Esc to exit";
1111
1124
  };
1125
+ readonly creditWarning: {
1126
+ readonly soft: "You're running low on AI credits.";
1127
+ readonly getCredits: "Get credits";
1128
+ readonly dismiss: "Dismiss";
1129
+ readonly messageBanner: {
1130
+ readonly title: "This response requires credits";
1131
+ readonly description: "Your company has run out of AI credits.";
1132
+ readonly actionLabel: "Get credits";
1133
+ };
1134
+ };
1112
1135
  readonly growth: {
1113
1136
  readonly demoCard: {
1114
1137
  readonly title: "See {{moduleName}} in action";
@@ -1381,7 +1404,7 @@ export declare const F0AiChat: () => JSX_2.Element | null;
1381
1404
  */
1382
1405
  export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, disclaimer, resizable, defaultVisualizationMode, lockVisualizationMode, historyEnabled, footer, VoiceMode, entityResolvers, toolHints, credits, onThumbsUp, onThumbsDown, children, agent, tracking, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
1383
1406
 
1384
- export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, }: ChatTextareaProps) => JSX_2.Element;
1407
+ export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, creditWarning, onDismissCreditWarning, onGetCredits, }: ChatTextareaProps) => JSX_2.Element;
1385
1408
 
1386
1409
  /**
1387
1410
  * @experimental This is an experimental component use it at your own risk
@@ -1798,10 +1821,8 @@ declare module "@tiptap/core" {
1798
1821
 
1799
1822
  declare module "@tiptap/core" {
1800
1823
  interface Commands<ReturnType> {
1801
- videoEmbed: {
1802
- setVideoEmbed: (options: {
1803
- src: string;
1804
- }) => ReturnType;
1824
+ transcript: {
1825
+ insertTranscript: (data: TranscriptData) => ReturnType;
1805
1826
  };
1806
1827
  }
1807
1828
  }
@@ -1809,8 +1830,10 @@ declare module "@tiptap/core" {
1809
1830
 
1810
1831
  declare module "@tiptap/core" {
1811
1832
  interface Commands<ReturnType> {
1812
- transcript: {
1813
- insertTranscript: (data: TranscriptData) => ReturnType;
1833
+ videoEmbed: {
1834
+ setVideoEmbed: (options: {
1835
+ src: string;
1836
+ }) => ReturnType;
1814
1837
  };
1815
1838
  }
1816
1839
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { i as t, h as i, F as e, a as n, C as o, b as r, j as A, k as c, I as u, g as F, c as h, d as C, u as l, f as I, e as f } from "./registry-CpP6Cwro.js";
1
+ import { i as t, h as i, F as e, a as n, C as o, b as r, j as A, k as c, I as u, g as F, c as h, d as C, u as l, f as I, e as f } from "./registry-WX4F5JvC.js";
2
2
  import { defaultTranslations as d } from "./i18n-provider-defaults.js";
3
- import { A as p, F as S, c as g, d as v, b as x, a as k, o as O, u as P } from "./F0HILActionConfirmation-CNd9CvgI.js";
3
+ import { A as p, F as S, c as g, d as v, b as x, a as k, o as O, u as P } from "./F0HILActionConfirmation-DxshcaDQ.js";
4
4
  export {
5
5
  p as AiChatTranslationsProvider,
6
6
  t as ChatSpinner,
@@ -2678,6 +2678,16 @@ declare const defaultTranslations: {
2678
2678
  readonly controls: "← → to move";
2679
2679
  readonly escToExit: "Esc to exit";
2680
2680
  };
2681
+ readonly creditWarning: {
2682
+ readonly soft: "You're running low on AI credits.";
2683
+ readonly getCredits: "Get credits";
2684
+ readonly dismiss: "Dismiss";
2685
+ readonly messageBanner: {
2686
+ readonly title: "This response requires credits";
2687
+ readonly description: "Your company has run out of AI credits.";
2688
+ readonly actionLabel: "Get credits";
2689
+ };
2690
+ };
2681
2691
  readonly growth: {
2682
2692
  readonly demoCard: {
2683
2693
  readonly title: "See {{moduleName}} in action";
@@ -7233,10 +7243,8 @@ declare module "@tiptap/core" {
7233
7243
 
7234
7244
  declare module "@tiptap/core" {
7235
7245
  interface Commands<ReturnType> {
7236
- videoEmbed: {
7237
- setVideoEmbed: (options: {
7238
- src: string;
7239
- }) => ReturnType;
7246
+ transcript: {
7247
+ insertTranscript: (data: TranscriptData) => ReturnType;
7240
7248
  };
7241
7249
  }
7242
7250
  }
@@ -7244,8 +7252,10 @@ declare module "@tiptap/core" {
7244
7252
 
7245
7253
  declare module "@tiptap/core" {
7246
7254
  interface Commands<ReturnType> {
7247
- transcript: {
7248
- insertTranscript: (data: TranscriptData) => ReturnType;
7255
+ videoEmbed: {
7256
+ setVideoEmbed: (options: {
7257
+ src: string;
7258
+ }) => ReturnType;
7249
7259
  };
7250
7260
  }
7251
7261
  }