@factorialco/f0-react 2.57.0 → 2.59.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/{F0CanvasPanel-Dr6ruMgi.js → F0CanvasPanel-44Gm4epD.js} +16716 -16879
- package/dist/ai.d.ts +4 -11
- package/dist/ai.js +2 -2
- package/dist/experimental.d.ts +4 -7
- package/dist/experimental.js +1458 -1319
- package/dist/f0.d.ts +4 -11
- package/dist/f0.js +6 -6
- package/dist/{readDataCollectionStorage-DyBXGaXR.js → readDataCollectionStorage-U2-EKmqB.js} +3190 -3176
- package/dist/{useChatHistory-RT7UPbrU.js → useChatHistory-HVhWAfGi.js} +1356 -1354
- package/package.json +1 -1
package/dist/f0.d.ts
CHANGED
|
@@ -808,6 +808,10 @@ export declare type AiChatTrackingOptions = {
|
|
|
808
808
|
onWelcomeSuggestionClick?: (event: WelcomeSuggestionClickEvent) => void;
|
|
809
809
|
onNewChat?: () => void;
|
|
810
810
|
onMessage?: (message: F0Message) => void;
|
|
811
|
+
/** Mic button pressed — fires on intent, even if mic permission is later denied. */
|
|
812
|
+
onDictationStart?: () => void;
|
|
813
|
+
/** Dictation discarded by the user, while recording or mid-transcription. */
|
|
814
|
+
onDictationCancel?: () => void;
|
|
811
815
|
};
|
|
812
816
|
|
|
813
817
|
/**
|
|
@@ -2077,13 +2081,6 @@ declare type CardAvatarVariant = AvatarVariant | {
|
|
|
2077
2081
|
} | {
|
|
2078
2082
|
type: "date";
|
|
2079
2083
|
date: Date;
|
|
2080
|
-
} | {
|
|
2081
|
-
type: "pulse";
|
|
2082
|
-
firstName: string;
|
|
2083
|
-
lastName: string;
|
|
2084
|
-
src?: string;
|
|
2085
|
-
pulse?: Pulse;
|
|
2086
|
-
onPulseClick: () => void;
|
|
2087
2084
|
};
|
|
2088
2085
|
|
|
2089
2086
|
/**
|
|
@@ -13535,10 +13532,6 @@ declare type Props_3 = {
|
|
|
13535
13532
|
|
|
13536
13533
|
declare type Props_4 = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated" | "metadataRowGap" | "showBottomBorder">;
|
|
13537
13534
|
|
|
13538
|
-
declare type Pulse = (typeof pulses)[number];
|
|
13539
|
-
|
|
13540
|
-
declare const pulses: readonly ["superNegative", "negative", "neutral", "positive", "superPositive"];
|
|
13541
|
-
|
|
13542
13535
|
export declare type QuestionActionParams = {
|
|
13543
13536
|
questionId: string;
|
|
13544
13537
|
type: ActionType;
|
package/dist/f0.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { gp as VI, a5 as at, bj as Dx, m as ie, o as Ii, gj as FI, n as ea, eG as JF, ac as Pp, S as K, u as Ze, C as tt, d6 as nu, A as Op, i as GI, H as ja, cT as fs, a6 as ur, a2 as Rf, gq as eG, ab as Dl, gr as Y0, gs as tG, gt as rG, gu as HS, dY as nG, gv as iG, gw as HI, gx as aG, M as yt, aM as WI, bd as oG, dU as WS, s as iu, cN as $I, b7 as zl, be as sG, fg as Ax, aA as Mx, aB as Ex, aC as Lx, ai as Nx, c7 as nv, gy as Ix, gz as lG, gA as uG, fk as cG, gB as iv, aq as fG, f$ as Rx, gC as dG, Y as kf, bZ as hG, l as vG, k as pG, gD as UI, gE as gG, gF as mG, gG as YI, w as yG, gH as bG, gI as _G, gJ as xG, gK as $S, fe as wG, gL as SG, fJ as au, fK as Pf, fX as CG, fz as XI, a7 as bn, an as TG, cG as X0, cF as qI, fM as ZI, gM as DG, gN as AG, gO as yl, gP as Of, gQ as ou, gR as MG, gS as jI, gT as EG, gU as LG, fy as NG, gV as Bp, dg as kx, gb as IG, a0 as KI, fd as RG, bF as kG, aa as zp, g0 as Px, dL as PG, dM as OG, dN as BG, c as zG, eq as VG, z as QI, cM as ws, dx as JI, df as e2, bI as Ox, dz as t2, E as Vp, G as Fp, cw as Bx, L as Gp, V as cr, X as Vl, fD as Al, fE as Ml, K as El, fF as Ll, fB as FG, fC as ka, cz as r2, ap as GG, dd as av, bb as Fl, gW as Fr, bP as HG, dV as jc, bO as WG, az as $G, g5 as jr, gX as UG, gY as YG, gZ as n2, g_ as Hp, g$ as XG, h0 as qG, dj as i2, di as a2, dS as ZG, h1 as jG, aP as o2, aV as KG, fZ as QG, f_ as JG, bk as su, bo as lu, bv as Bf, dA as e3, bl as t3, b4 as r3, N as s2, bc as n3, _ as i3, da as US, dw as Kc, fh as a3, fi as o3, h2 as s3, aU as l3, bp as u3, cR as l2, a3 as c3, cE as f3, gm as d3, bx as h3, h3 as v3, h4 as p3, I as g3, h5 as m3, h6 as y3, h7 as b3, h8 as _3 } from "./F0CanvasPanel-44Gm4epD.js";
|
|
2
|
+
import { ho as wpe, D as Spe, aN as Cpe, F as Tpe, a as Dpe, hh as Ape, e as Mpe, b5 as Epe, aO as Lpe, by as Npe, dP as Ipe, aF as Rpe, bh as kpe, ah as Ppe, dX as Ope, bM as Bpe, f as zpe, dO as Vpe, hc as Fpe, hs as Gpe, aY as Hpe, d as Wpe, bN as $pe, as as Upe, bq as Ype, hj as Xpe, b0 as qpe, hk as Zpe, hm as jpe, hn as Kpe, c8 as Qpe, hp as Jpe, c3 as ege, c4 as tge, P as rge, hl as nge, c5 as ige, ht as age, h9 as oge, ha as sge, hb as lge, c6 as uge, hr as cge, hi as fge, hf as dge, he as hge, fw as vge, gc as pge, hq as gge, aS as mge, c2 as yge, b$ as bge, c1 as _ge, b_ as xge, hg as wge, ge as Sge, g8 as Cge, fN as Tge, bS as Dge, c0 as Age, dQ as Mge, fv as Ege, fO as Lge, b as Nge, bi as Ige, go as Rge, aQ as kge, dR as Pge, hd as Oge, ga as Bge, g9 as zge, hu as Vge } from "./F0CanvasPanel-44Gm4epD.js";
|
|
3
3
|
import { jsx as S, jsxs as z, Fragment as st } from "react/jsx-runtime";
|
|
4
4
|
import * as St from "react";
|
|
5
5
|
import _t, { forwardRef as Pr, useRef as ue, useImperativeHandle as x3, Children as ov, createContext as Or, useContext as fr, useState as ce, useMemo as se, useEffect as ge, useCallback as le, useLayoutEffect as q0, isValidElement as u2, Fragment as Wp, memo as c2, useReducer as w3, cloneElement as S3, useId as Ic, useSyncExternalStore as YS } from "react";
|
|
6
|
-
import { T as f2, z as C3, B as T3, D as D3, E as A3, G as d2, H as sv, I as zx, J as h2, K as v2, L as p2, M as M3, N as E3, O as L3, P as N3, Q as I3, F as R3 } from "./useChatHistory-
|
|
7
|
-
import { A as Gge, C as Hge, h as Wge, t as $ge, v as Uge, x as Yge, n as Xge, j as qge, r as Zge, y as jge, q as Kge, s as Qge, k as Jge, e as eme, R as tme, g as rme, l as nme, i as ime, a as ame, p as ome, m as sme, o as lme, b as ume, f as cme, w as fme, c as dme, d as hme, u as vme } from "./useChatHistory-
|
|
6
|
+
import { T as f2, z as C3, B as T3, D as D3, E as A3, G as d2, H as sv, I as zx, J as h2, K as v2, L as p2, M as M3, N as E3, O as L3, P as N3, Q as I3, F as R3 } from "./useChatHistory-HVhWAfGi.js";
|
|
7
|
+
import { A as Gge, C as Hge, h as Wge, t as $ge, v as Uge, x as Yge, n as Xge, j as qge, r as Zge, y as jge, q as Kge, s as Qge, k as Jge, e as eme, R as tme, g as rme, l as nme, i as ime, a as ame, p as ome, m as sme, o as lme, b as ume, f as cme, w as fme, c as dme, d as hme, u as vme } from "./useChatHistory-HVhWAfGi.js";
|
|
8
8
|
import { createPortal as Vx, unstable_batchedUpdates as ud } from "react-dom";
|
|
9
|
-
import { C as k3, F as P3,
|
|
10
|
-
import {
|
|
9
|
+
import { C as k3, F as P3, af as g2, ag as O3, ah as B3, ai as z3, aj as Fx, ak as Gx, G as V3, al as F3, Y as G3, a8 as H3, am as W3, Q as $3, an as U3, ao as Y3, c as $p, ap as zf, R as Hx, u as Wx, W as m2, O as $x, aq as y2, ar as XS, as as Ux, n as X3, e as b2, $ as _2, at as q3, au as Z3, av as j3, aw as K3, ax as Q3, ay as J3, M as eH, az as qS } from "./readDataCollectionStorage-U2-EKmqB.js";
|
|
10
|
+
import { q as gme, s as mme, H as yme, t as bme, z as _me, aP as xme, aO as wme, aK as Sme, aB as Cme, aA as Tme, aC as Dme, aD as Ame, U as Mme, J as Eme, ae as Lme, K as Nme, v as Ime, aQ as Rme, aa as kme, ab as Pme, a9 as Ome, ac as Bme, N as zme, w as Vme, P as Fme, y as Gme, D as Hme, ad as Wme, T as $me, x as Ume, E as Yme, aS as Xme, l as qme, m as Zme, aJ as jme, aG as Kme, aF as Qme, aR as Jme, a6 as eye, aW as tye, r as rye, aI as nye, I as iye, aT as aye, aU as oye, f as sye, aL as lye, aM as uye, aN as cye, aH as fye, g as dye, aE as hye, aV as vye } from "./readDataCollectionStorage-U2-EKmqB.js";
|
|
11
11
|
import { utils as Nl, write as x2 } from "./xlsx-Bedf3nwD.js";
|
|
12
12
|
import { defaultTranslations as gye } from "./i18n-provider-defaults.js";
|
|
13
13
|
import './f0.css';const tH = {
|