@factorialco/f0-react 1.438.2 → 1.438.4

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 "./F0AiChat-C8H9OyiK.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 "./F0AiChat-DPDtak5l.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
@@ -241,6 +241,13 @@ declare type AiChatProviderReturnValue = {
241
241
  clarifyingQuestion: ClarifyingQuestionState | null;
242
242
  /** Set the current clarifying question (or null to dismiss) */
243
243
  setClarifyingQuestion: React.Dispatch<React.SetStateAction<ClarifyingQuestionState | null>>;
244
+ /**
245
+ * Whether files are currently being dragged over the chat window.
246
+ * Set by the ChatWindow drag listeners and read by the DropOverlay
247
+ * to control its visibility.
248
+ */
249
+ fileDragOver: boolean;
250
+ /* Excluded from this release type: setFileDragOver */
244
251
  } & Pick<AiChatState, "greeting" | "agent" | "disclaimer" | "resizable" | "entityRefs" | "toolHints" | "credits" | "fileAttachments"> & {
245
252
  /** The current canvas content, or null when canvas is closed */
246
253
  canvasContent: CanvasContent | null;
@@ -426,6 +433,7 @@ export declare const aiTranslations: {
426
433
  };
427
434
  readonly attachFile: "Attach file";
428
435
  readonly removeFile: "Remove";
436
+ readonly dropFilesHere: "Drop your files here";
429
437
  readonly clarifyingQuestion: {
430
438
  readonly submit: "Submit";
431
439
  readonly next: "Next";
@@ -1251,6 +1259,7 @@ export declare const defaultTranslations: {
1251
1259
  };
1252
1260
  readonly attachFile: "Attach file";
1253
1261
  readonly removeFile: "Remove";
1262
+ readonly dropFilesHere: "Drop your files here";
1254
1263
  readonly clarifyingQuestion: {
1255
1264
  readonly submit: "Submit";
1256
1265
  readonly next: "Next";
@@ -1969,11 +1978,6 @@ declare module "gridstack" {
1969
1978
  }
1970
1979
 
1971
1980
 
1972
- declare namespace Calendar {
1973
- var displayName: string;
1974
- }
1975
-
1976
-
1977
1981
  declare module "@tiptap/core" {
1978
1982
  interface Commands<ReturnType> {
1979
1983
  aiBlock: {
@@ -2021,3 +2025,8 @@ declare module "@tiptap/core" {
2021
2025
  };
2022
2026
  }
2023
2027
  }
2028
+
2029
+
2030
+ declare namespace Calendar {
2031
+ var displayName: string;
2032
+ }
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 "./F0AiChat-C8H9OyiK.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 "./F0AiChat-DPDtak5l.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-DjKwUcGT.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-DShSXZqM.js";
4
4
  export {
5
5
  p as AiChatTranslationsProvider,
6
6
  t as ChatSpinner,
@@ -114,6 +114,7 @@ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
114
114
  import { ValueDisplayRendererContext as ValueDisplayRendererContext_2 } from './experimental';
115
115
  import { VariantProps } from 'cva';
116
116
  import { VerticalBarChartProps } from './experimental';
117
+ import { VirtualItem } from '@tanstack/react-virtual';
117
118
  import { WidgetProps as WidgetProps_2 } from './experimental';
118
119
  import { WithDataTestIdProps as WithDataTestIdProps_2 } from './experimental';
119
120
  import { WithDataTestIdReturnType } from './experimental';
@@ -2852,6 +2853,7 @@ declare const defaultTranslations: {
2852
2853
  };
2853
2854
  readonly attachFile: "Attach file";
2854
2855
  readonly removeFile: "Remove";
2856
+ readonly dropFilesHere: "Drop your files here";
2855
2857
  readonly clarifyingQuestion: {
2856
2858
  readonly submit: "Submit";
2857
2859
  readonly next: "Next";
@@ -3122,7 +3124,7 @@ export declare interface DetailsItemType {
3122
3124
  spacingAtTheBottom?: boolean;
3123
3125
  }
3124
3126
 
3125
- export declare const Dialog: WithDataTestIdReturnType_5<ForwardRefExoticComponent<Omit<DialogProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>>;
3127
+ export declare const Dialog: WithDataTestIdReturnType_2<ForwardRefExoticComponent<Omit<DialogProps & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLElement | SVGElement>>>;
3126
3128
 
3127
3129
  declare type DialogProps = {
3128
3130
  header: {
@@ -6026,7 +6028,14 @@ declare interface ReactionProps {
6026
6028
  onInteraction?: (emoji: string) => void;
6027
6029
  }
6028
6030
 
6029
- declare interface ReactionsProps {
6031
+ /**
6032
+ * @experimental This is an experimental component use it at your own risk
6033
+ */
6034
+ export declare const Reactions: typeof _Reactions;
6035
+
6036
+ declare function _Reactions({ items, onInteraction, locale, action }: ReactionsProps): JSX_2.Element;
6037
+
6038
+ export declare interface ReactionsProps {
6030
6039
  items: ReactionProps[];
6031
6040
  onInteraction?: (emoji: string) => void;
6032
6041
  locale?: string;
@@ -7209,6 +7218,19 @@ declare const VerticalOverflowList: {
7209
7218
  displayName: string;
7210
7219
  };
7211
7220
 
7221
+ /**
7222
+ * @experimental This is an experimental component use it at your own risk
7223
+ */
7224
+ export declare const VirtualList: default_2.ForwardRefExoticComponent<VirtualListProps & default_2.RefAttributes<HTMLDivElement>>;
7225
+
7226
+ declare type VirtualListProps = {
7227
+ height: number;
7228
+ itemCount: number;
7229
+ itemSize: number | ((index: number) => number);
7230
+ renderer: (item: VirtualItem) => JSX.Element;
7231
+ className?: string;
7232
+ };
7233
+
7212
7234
  declare type VisualizacionTypeDefinition<Props, Settings = Record<string, never>> = {
7213
7235
  render: (props: Props) => JSX.Element;
7214
7236
  name: string;
@@ -7520,11 +7542,6 @@ declare module "gridstack" {
7520
7542
  }
7521
7543
 
7522
7544
 
7523
- declare namespace Calendar {
7524
- var displayName: string;
7525
- }
7526
-
7527
-
7528
7545
  declare module "@tiptap/core" {
7529
7546
  interface Commands<ReturnType> {
7530
7547
  aiBlock: {
@@ -7572,3 +7589,8 @@ declare module "@tiptap/core" {
7572
7589
  };
7573
7590
  }
7574
7591
  }
7592
+
7593
+
7594
+ declare namespace Calendar {
7595
+ var displayName: string;
7596
+ }