@factorialco/f0-react 1.383.2 → 1.385.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.
- package/dist/{DataCollectionStorageProvider-CILsBY3D.js → DataCollectionStorageProvider-CGbqg3A9.js} +1 -1
- package/dist/{F0AiChat-A_15tua6.js → F0AiChat-Ddo83UfP.js} +9254 -9240
- package/dist/{F0HILActionConfirmation-D_Flf3Fk.js → F0HILActionConfirmation-C475SHSS.js} +1 -1
- package/dist/ai.d.ts +25 -7
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +18 -6
- package/dist/experimental.js +835 -836
- package/dist/f0.d.ts +25 -8
- package/dist/f0.js +5 -5
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -339,6 +339,7 @@ export declare type AiChatProviderProps = {
|
|
|
339
339
|
threadId: string;
|
|
340
340
|
feedback: string;
|
|
341
341
|
}) => void;
|
|
342
|
+
tracking?: AiChatTrackingOptions;
|
|
342
343
|
} & Pick<CopilotKitProps, "agent" | "credentials" | "children" | "runtimeUrl" | "showDevConsole" | "threadId" | "headers">;
|
|
343
344
|
|
|
344
345
|
/**
|
|
@@ -369,6 +370,7 @@ declare type AiChatProviderReturnValue = {
|
|
|
369
370
|
threadId: string;
|
|
370
371
|
feedback: string;
|
|
371
372
|
}) => void;
|
|
373
|
+
tracking?: AiChatTrackingOptions;
|
|
372
374
|
/**
|
|
373
375
|
* Clear/reset the chat conversation
|
|
374
376
|
*/
|
|
@@ -435,8 +437,20 @@ declare interface AiChatState {
|
|
|
435
437
|
threadId: string;
|
|
436
438
|
feedback: string;
|
|
437
439
|
}) => void;
|
|
440
|
+
tracking?: AiChatTrackingOptions;
|
|
438
441
|
}
|
|
439
442
|
|
|
443
|
+
/**
|
|
444
|
+
* Tracking options for the AI chat
|
|
445
|
+
*/
|
|
446
|
+
declare type AiChatTrackingOptions = {
|
|
447
|
+
onVisibility?: () => void;
|
|
448
|
+
onClose?: () => void;
|
|
449
|
+
onWelcomeSuggestionClick?: (suggestion: WelcomeScreenSuggestion) => void;
|
|
450
|
+
onNewChat?: () => void;
|
|
451
|
+
onMessage?: (message: Message) => void;
|
|
452
|
+
};
|
|
453
|
+
|
|
440
454
|
/**
|
|
441
455
|
* AI Chat translations type
|
|
442
456
|
*/
|
|
@@ -2833,7 +2847,7 @@ export declare const F0AiChat: () => JSX_2.Element | null;
|
|
|
2833
2847
|
/**
|
|
2834
2848
|
* @experimental This is an experimental component use it at your own risk
|
|
2835
2849
|
*/
|
|
2836
|
-
export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, disclaimer, resizable, defaultVisualizationMode, lockVisualizationMode, footer, onThumbsUp, onThumbsDown, children, agent, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
|
|
2850
|
+
export declare const F0AiChatProvider: ({ enabled, greeting, initialMessage, welcomeScreenSuggestions, disclaimer, resizable, defaultVisualizationMode, lockVisualizationMode, footer, onThumbsUp, onThumbsDown, children, agent, tracking, ...copilotKitProps }: AiChatProviderProps) => JSX_2.Element;
|
|
2837
2851
|
|
|
2838
2852
|
export declare const F0AiChatTextArea: ({ submitLabel, inProgress, onSend, onStop, placeholders, defaultPlaceholder, autoFocus, }: F0AiChatTextAreaProps) => JSX_2.Element;
|
|
2839
2853
|
|
|
@@ -4437,12 +4451,16 @@ export declare interface F0OneIconProps extends SVGProps<SVGSVGElement> {
|
|
|
4437
4451
|
size?: "xs" | "sm" | "md" | "lg";
|
|
4438
4452
|
}
|
|
4439
4453
|
|
|
4440
|
-
export declare const F0OneSwitch: ({ className, disabled, tooltip, autoOpen, }: F0OneSwitchProps) => JSX_2.Element | null;
|
|
4454
|
+
export declare const F0OneSwitch: ({ className, disabled, onVisible, tooltip, autoOpen, onToggle, }: F0OneSwitchProps) => JSX_2.Element | null;
|
|
4441
4455
|
|
|
4442
4456
|
/**
|
|
4443
4457
|
* Props for the F0OneSwitch component
|
|
4444
4458
|
*/
|
|
4445
4459
|
export declare type F0OneSwitchProps = React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> & {
|
|
4460
|
+
/** Callback when the switch is visible */
|
|
4461
|
+
onVisible?: () => void;
|
|
4462
|
+
/** Callback when the switch is toggled */
|
|
4463
|
+
onToggle?: () => void;
|
|
4446
4464
|
/** Custom text shown in the tooltip when the chat is closed */
|
|
4447
4465
|
tooltip?: {
|
|
4448
4466
|
whenDisabled?: string;
|
|
@@ -4591,7 +4609,6 @@ declare type F0SelectBaseProps<T extends string, R = unknown> = {
|
|
|
4591
4609
|
onOpenChange?: (open: boolean) => void;
|
|
4592
4610
|
searchEmptyMessage?: string;
|
|
4593
4611
|
className?: string;
|
|
4594
|
-
selectContentClassName?: string;
|
|
4595
4612
|
actions?: Action_2[];
|
|
4596
4613
|
/** Container element to render the portal content into */
|
|
4597
4614
|
portalContainer?: HTMLElement | null;
|
|
@@ -8330,11 +8347,6 @@ declare module "gridstack" {
|
|
|
8330
8347
|
}
|
|
8331
8348
|
|
|
8332
8349
|
|
|
8333
|
-
declare namespace Calendar {
|
|
8334
|
-
var displayName: string;
|
|
8335
|
-
}
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
8350
|
declare module "@tiptap/core" {
|
|
8339
8351
|
interface Commands<ReturnType> {
|
|
8340
8352
|
aiBlock: {
|
|
@@ -8382,3 +8394,8 @@ declare module "@tiptap/core" {
|
|
|
8382
8394
|
};
|
|
8383
8395
|
}
|
|
8384
8396
|
}
|
|
8397
|
+
|
|
8398
|
+
|
|
8399
|
+
declare namespace Calendar {
|
|
8400
|
+
var displayName: string;
|
|
8401
|
+
}
|
package/dist/f0.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { aa as ye, ab as dt, a6 as le, a7 as At, ac as fo, ad as Ri, ae as Ai, af as ls, ag as Ul, ah as ho, ai as wt, u as Tt, aj as Wr, ak as Zl, al as ql, am as Kl, an as Xl, ao as at, ap as Yl, aq as Jl, ar as mo, as as Ql, at as po, au as go, av as Ln, aw as vo, ax as yo, ay as ln, az as bo, aA as ec, aB as tc, aC as rc, aD as nc, aE as ic, a8 as qe, aF as cs, aG as sc, aH as oc, aI as ac, aJ as lc, aK as xo, aL as cc, aM as dc, aN as uc, aO as wo, aP as fc, aQ as ar, aR as hc, aS as mc, aT as pc, aU as gc, aV as Ti, aW as vc, aX as _o, aY as yc, a9 as bc, aZ as xc, a_ as wc, a$ as _c, b0 as Cc, b1 as Co, b2 as Ec, b3 as Sc, b4 as kc, b5 as Dc, b6 as Nc, b7 as Rc, b8 as Ac, b9 as Tc, ba as Oc, bb as Mc, bc as Lc, I as Fc, bd as Ic, be as Pc, bf as zc, bg as Bc } from "./F0AiChat-
|
|
2
|
-
import { A as Vv, bv as Hv, B as jv, C as $v, E as Wv, bK as Gv, h as Uv, F as Zv, a as qv, x as Kv, i as Xv, b as Yv, bh as Jv, bi as Qv, bj as ey, bl as ty, bm as ry, bn as ny, bo as iy, bp as sy, bq as oy, br as ay, bG as ly, s as cy, t as dy, v as uy, bu as fy, w as hy, c as my, bw as py, n as gy, o as vy, p as yy, H as by, k as xy, L as wy, O as _y, bt as Cy, q as Ey, P as Sy, S as ky, T as Dy, l as Ny, m as Ry, U as Ay, bH as Ty, bB as Oy, r as My, j as Ly, bE as Fy, bA as Iy, bL as Py, bz as zy, by as By, bk as Vy, d as Hy, bx as jy, bC as $y, e as Wy, bM as Gy, bs as Uy, bD as Zy, g as qy, f as Ky, bJ as Xy, bF as Yy, bI as Jy } from "./F0AiChat-
|
|
1
|
+
import { aa as ye, ab as dt, a6 as le, a7 as At, ac as fo, ad as Ri, ae as Ai, af as ls, ag as Ul, ah as ho, ai as wt, u as Tt, aj as Wr, ak as Zl, al as ql, am as Kl, an as Xl, ao as at, ap as Yl, aq as Jl, ar as mo, as as Ql, at as po, au as go, av as Ln, aw as vo, ax as yo, ay as ln, az as bo, aA as ec, aB as tc, aC as rc, aD as nc, aE as ic, a8 as qe, aF as cs, aG as sc, aH as oc, aI as ac, aJ as lc, aK as xo, aL as cc, aM as dc, aN as uc, aO as wo, aP as fc, aQ as ar, aR as hc, aS as mc, aT as pc, aU as gc, aV as Ti, aW as vc, aX as _o, aY as yc, a9 as bc, aZ as xc, a_ as wc, a$ as _c, b0 as Cc, b1 as Co, b2 as Ec, b3 as Sc, b4 as kc, b5 as Dc, b6 as Nc, b7 as Rc, b8 as Ac, b9 as Tc, ba as Oc, bb as Mc, bc as Lc, I as Fc, bd as Ic, be as Pc, bf as zc, bg as Bc } from "./F0AiChat-Ddo83UfP.js";
|
|
2
|
+
import { A as Vv, bv as Hv, B as jv, C as $v, E as Wv, bK as Gv, h as Uv, F as Zv, a as qv, x as Kv, i as Xv, b as Yv, bh as Jv, bi as Qv, bj as ey, bl as ty, bm as ry, bn as ny, bo as iy, bp as sy, bq as oy, br as ay, bG as ly, s as cy, t as dy, v as uy, bu as fy, w as hy, c as my, bw as py, n as gy, o as vy, p as yy, H as by, k as xy, L as wy, O as _y, bt as Cy, q as Ey, P as Sy, S as ky, T as Dy, l as Ny, m as Ry, U as Ay, bH as Ty, bB as Oy, r as My, j as Ly, bE as Fy, bA as Iy, bL as Py, bz as zy, by as By, bk as Vy, d as Hy, bx as jy, bC as $y, e as Wy, bM as Gy, bs as Uy, bD as Zy, g as qy, f as Ky, bJ as Xy, bF as Yy, bI as Jy } from "./F0AiChat-Ddo83UfP.js";
|
|
3
3
|
import { jsx as f, jsxs as W, Fragment as Yt } from "react/jsx-runtime";
|
|
4
4
|
import * as lt from "react";
|
|
5
5
|
import q, { forwardRef as Ke, useRef as Y, useImperativeHandle as Vc, Children as cn, createContext as vt, useContext as ct, useState as re, useMemo as H, useEffect as ie, useCallback as K, useLayoutEffect as ui, createElement as Qr, isValidElement as Eo, Fragment as Hc, memo as jc, useReducer as $c, cloneElement as Wc, PureComponent as Gc, useId as Uc } from "react";
|
|
6
6
|
import { createPortal as So, unstable_batchedUpdates as en, flushSync as Zc } from "react-dom";
|
|
7
|
-
import { L as ko, C as qc, i as Do, D as Kc, S as ds, a as Xc, f as Yn, b as _r, c as Yc, A as Jc, d as tn, e as No, E as Qc, g as sn, h as ed, j as td, k as rd, l as ir, m as Ro, u as nd, G as id, n as sd, o as us, p as od, q as Ao, r as ad, B as To, X as Oo, Y as fi, s as ld, t as Mo, v as cd, w as dd, x as ud, y as fd, z as hd, F as md, H as pd, I as gd, J as fs, K as vd, M as Nr, N as Jn, O as yd, P as bd, Q as xd, R as wd, T as _d, U as Cd, V as Ed, W as Sd, Z as kd, _ as Dd, $ as Nd, a0 as hs, a1 as Rd, a2 as Ad, a3 as hi, a4 as Lo, a5 as Td, a6 as Od, a7 as Md, a8 as Ld, a9 as Fo, aa as Oi, ab as Fd, ac as Id, ad as Pd, ae as zd, af as Bd, ag as Io, ah as Po, ai as Vd, aj as Hd, ak as jd, al as $d } from "./DataCollectionStorageProvider-
|
|
8
|
-
import { aB as eb, am as tb, an as rb, aq as nb, at as ib, au as sb, av as ob, ax as ab, ay as lb, az as cb, aw as db, ao as ub, ap as fb, aA as hb, ar as mb, as as pb, aC as gb, aD as vb, aE as yb, aF as bb } from "./DataCollectionStorageProvider-
|
|
9
|
-
import { A as wb, F as _b, c as Cb, b as Eb, a as Sb, o as kb, u as Db } from "./F0HILActionConfirmation-
|
|
7
|
+
import { L as ko, C as qc, i as Do, D as Kc, S as ds, a as Xc, f as Yn, b as _r, c as Yc, A as Jc, d as tn, e as No, E as Qc, g as sn, h as ed, j as td, k as rd, l as ir, m as Ro, u as nd, G as id, n as sd, o as us, p as od, q as Ao, r as ad, B as To, X as Oo, Y as fi, s as ld, t as Mo, v as cd, w as dd, x as ud, y as fd, z as hd, F as md, H as pd, I as gd, J as fs, K as vd, M as Nr, N as Jn, O as yd, P as bd, Q as xd, R as wd, T as _d, U as Cd, V as Ed, W as Sd, Z as kd, _ as Dd, $ as Nd, a0 as hs, a1 as Rd, a2 as Ad, a3 as hi, a4 as Lo, a5 as Td, a6 as Od, a7 as Md, a8 as Ld, a9 as Fo, aa as Oi, ab as Fd, ac as Id, ad as Pd, ae as zd, af as Bd, ag as Io, ah as Po, ai as Vd, aj as Hd, ak as jd, al as $d } from "./DataCollectionStorageProvider-CGbqg3A9.js";
|
|
8
|
+
import { aB as eb, am as tb, an as rb, aq as nb, at as ib, au as sb, av as ob, ax as ab, ay as lb, az as cb, aw as db, ao as ub, ap as fb, aA as hb, ar as mb, as as pb, aC as gb, aD as vb, aE as yb, aF as bb } from "./DataCollectionStorageProvider-CGbqg3A9.js";
|
|
9
|
+
import { A as wb, F as _b, c as Cb, b as Eb, a as Sb, o as kb, u as Db } from "./F0HILActionConfirmation-C475SHSS.js";
|
|
10
10
|
import { defaultTranslations as Rb } from "./i18n-provider-defaults.js";
|
|
11
11
|
import './f0.css';const Wd = {
|
|
12
12
|
xs: 1,
|
|
@@ -631,11 +631,6 @@ declare module "gridstack" {
|
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
|
|
634
|
-
declare namespace Calendar {
|
|
635
|
-
var displayName: string;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
|
|
639
634
|
declare module "@tiptap/core" {
|
|
640
635
|
interface Commands<ReturnType> {
|
|
641
636
|
aiBlock: {
|
|
@@ -683,3 +678,8 @@ declare module "@tiptap/core" {
|
|
|
683
678
|
};
|
|
684
679
|
}
|
|
685
680
|
}
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
declare namespace Calendar {
|
|
684
|
+
var displayName: string;
|
|
685
|
+
}
|