@factorialco/f0-react 2.41.3 → 2.41.5
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/ai.d.ts +12 -14
- package/dist/ai.js +1 -1
- package/dist/experimental.d.ts +6 -6
- package/dist/f0.d.ts +12 -14
- package/dist/f0.js +3 -3
- package/dist/i18n-provider-defaults.d.ts +6 -6
- package/dist/{useChatHistory-nSWZKUHs.js → useChatHistory-DdaYq0tI.js} +1912 -1885
- package/package.json +1 -1
package/dist/ai.d.ts
CHANGED
|
@@ -3013,16 +3013,14 @@ export declare type F0CanvasPanelProps = {
|
|
|
3013
3013
|
};
|
|
3014
3014
|
|
|
3015
3015
|
/**
|
|
3016
|
-
*
|
|
3016
|
+
* Clarifying question panel — content only, no mount animation.
|
|
3017
3017
|
*
|
|
3018
|
-
*
|
|
3019
|
-
*
|
|
3020
|
-
*
|
|
3021
|
-
* dismissal. No manual ResizeObserver.
|
|
3018
|
+
* The parent slot (F0AiChatTextArea) owns the enter/exit animation so
|
|
3019
|
+
* nested height animations don't conflict. Step-to-step transitions are
|
|
3020
|
+
* still animated internally via F0ClarifyingPanelContent.
|
|
3022
3021
|
*
|
|
3023
|
-
*
|
|
3024
|
-
*
|
|
3025
|
-
* — embedders can construct a state object themselves.
|
|
3022
|
+
* When used standalone (e.g. Storybook), wrap in a motion.div with
|
|
3023
|
+
* `overflow-hidden` and `height: 0 → "auto"`.
|
|
3026
3024
|
*/
|
|
3027
3025
|
export declare const F0ClarifyingPanel: ({ clarifyingQuestion, isSubmitDisabled, }: F0ClarifyingPanelProps) => JSX_2.Element;
|
|
3028
3026
|
|
|
@@ -4296,8 +4294,10 @@ declare module "@tiptap/core" {
|
|
|
4296
4294
|
|
|
4297
4295
|
declare module "@tiptap/core" {
|
|
4298
4296
|
interface Commands<ReturnType> {
|
|
4299
|
-
|
|
4300
|
-
|
|
4297
|
+
videoEmbed: {
|
|
4298
|
+
setVideoEmbed: (options: {
|
|
4299
|
+
src: string;
|
|
4300
|
+
}) => ReturnType;
|
|
4301
4301
|
};
|
|
4302
4302
|
}
|
|
4303
4303
|
}
|
|
@@ -4305,10 +4305,8 @@ declare module "@tiptap/core" {
|
|
|
4305
4305
|
|
|
4306
4306
|
declare module "@tiptap/core" {
|
|
4307
4307
|
interface Commands<ReturnType> {
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
src: string;
|
|
4311
|
-
}) => ReturnType;
|
|
4308
|
+
transcript: {
|
|
4309
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
4312
4310
|
};
|
|
4313
4311
|
}
|
|
4314
4312
|
}
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-Czxg0RlQ.js";
|
|
2
2
|
import { defaultTranslations as m } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-
|
|
3
|
+
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-DdaYq0tI.js";
|
|
4
4
|
export {
|
|
5
5
|
c as AiChatTranslationsProvider,
|
|
6
6
|
I as ChatSpinner,
|
package/dist/experimental.d.ts
CHANGED
|
@@ -8764,8 +8764,10 @@ declare module "@tiptap/core" {
|
|
|
8764
8764
|
|
|
8765
8765
|
declare module "@tiptap/core" {
|
|
8766
8766
|
interface Commands<ReturnType> {
|
|
8767
|
-
|
|
8768
|
-
|
|
8767
|
+
videoEmbed: {
|
|
8768
|
+
setVideoEmbed: (options: {
|
|
8769
|
+
src: string;
|
|
8770
|
+
}) => ReturnType;
|
|
8769
8771
|
};
|
|
8770
8772
|
}
|
|
8771
8773
|
}
|
|
@@ -8773,10 +8775,8 @@ declare module "@tiptap/core" {
|
|
|
8773
8775
|
|
|
8774
8776
|
declare module "@tiptap/core" {
|
|
8775
8777
|
interface Commands<ReturnType> {
|
|
8776
|
-
|
|
8777
|
-
|
|
8778
|
-
src: string;
|
|
8779
|
-
}) => ReturnType;
|
|
8778
|
+
transcript: {
|
|
8779
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
8780
8780
|
};
|
|
8781
8781
|
}
|
|
8782
8782
|
}
|
package/dist/f0.d.ts
CHANGED
|
@@ -6883,16 +6883,14 @@ displayName: string;
|
|
|
6883
6883
|
}>;
|
|
6884
6884
|
|
|
6885
6885
|
/**
|
|
6886
|
-
*
|
|
6886
|
+
* Clarifying question panel — content only, no mount animation.
|
|
6887
6887
|
*
|
|
6888
|
-
*
|
|
6889
|
-
*
|
|
6890
|
-
*
|
|
6891
|
-
* dismissal. No manual ResizeObserver.
|
|
6888
|
+
* The parent slot (F0AiChatTextArea) owns the enter/exit animation so
|
|
6889
|
+
* nested height animations don't conflict. Step-to-step transitions are
|
|
6890
|
+
* still animated internally via F0ClarifyingPanelContent.
|
|
6892
6891
|
*
|
|
6893
|
-
*
|
|
6894
|
-
*
|
|
6895
|
-
* — embedders can construct a state object themselves.
|
|
6892
|
+
* When used standalone (e.g. Storybook), wrap in a motion.div with
|
|
6893
|
+
* `overflow-hidden` and `height: 0 → "auto"`.
|
|
6896
6894
|
*/
|
|
6897
6895
|
export declare const F0ClarifyingPanel: ({ clarifyingQuestion, isSubmitDisabled, }: F0ClarifyingPanelProps) => JSX_2.Element;
|
|
6898
6896
|
|
|
@@ -15590,8 +15588,10 @@ declare module "@tiptap/core" {
|
|
|
15590
15588
|
|
|
15591
15589
|
declare module "@tiptap/core" {
|
|
15592
15590
|
interface Commands<ReturnType> {
|
|
15593
|
-
|
|
15594
|
-
|
|
15591
|
+
videoEmbed: {
|
|
15592
|
+
setVideoEmbed: (options: {
|
|
15593
|
+
src: string;
|
|
15594
|
+
}) => ReturnType;
|
|
15595
15595
|
};
|
|
15596
15596
|
}
|
|
15597
15597
|
}
|
|
@@ -15599,10 +15599,8 @@ declare module "@tiptap/core" {
|
|
|
15599
15599
|
|
|
15600
15600
|
declare module "@tiptap/core" {
|
|
15601
15601
|
interface Commands<ReturnType> {
|
|
15602
|
-
|
|
15603
|
-
|
|
15604
|
-
src: string;
|
|
15605
|
-
}) => ReturnType;
|
|
15602
|
+
transcript: {
|
|
15603
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
15606
15604
|
};
|
|
15607
15605
|
}
|
|
15608
15606
|
}
|
package/dist/f0.js
CHANGED
|
@@ -3,8 +3,8 @@ import { gA as Mme, D as Eme, aM as Lme, F as Nme, a as Ime, e as kme, b1 as Rme
|
|
|
3
3
|
import { jsx as w, jsxs as B, Fragment as kt } from "react/jsx-runtime";
|
|
4
4
|
import * as Yn from "react";
|
|
5
5
|
import He, { forwardRef as Jr, useRef as se, useImperativeHandle as kH, Children as Yv, createContext as en, useContext as _r, useState as ye, useMemo as ae, useEffect as _e, useCallback as te, useLayoutEffect as Zb, createElement as Xd, isValidElement as Ik, Fragment as Ig, memo as kk, useReducer as RH, cloneElement as PH, useId as kg } from "react";
|
|
6
|
-
import { z as OH, B as BH, U as aT, D as oT, E as $m, G as sT, H as VH, I as na, J as Io, K as FH, L as Hw, M as Rr, N as fi, O as zH, P as GH, Q as Rk, Z as Wo, R as HH, S as WH, T as UH, V as Pk, W as Xv, X as Ww, Y as Ok, _ as Bk, $ as pn, a0 as $H, a1 as YH, a2 as Vk, a3 as Rg, a4 as XH, a5 as qH, a6 as Fk, a7 as ZH, a8 as jH, a9 as KH, aa as QH, ab as JH, ac as eW, F as tW } from "./useChatHistory-
|
|
7
|
-
import { A as Iye, C as kye, h as Rye, t as Pye, v as Oye, x as Bye, ah as Vye, n as Fye, j as zye, r as Gye, y as Hye, q as Wye, s as Uye, k as $ye, e as Yye, g as Xye, l as qye, i as Zye, a as jye, p as Kye, ai as Qye, af as Jye, ae as e0e, ag as t0e, m as r0e, o as n0e, ad as i0e, b as a0e, f as o0e, w as s0e, c as l0e, d as u0e, u as c0e } from "./useChatHistory-
|
|
6
|
+
import { z as OH, B as BH, U as aT, D as oT, E as $m, G as sT, H as VH, I as na, J as Io, K as FH, L as Hw, M as Rr, N as fi, O as zH, P as GH, Q as Rk, Z as Wo, R as HH, S as WH, T as UH, V as Pk, W as Xv, X as Ww, Y as Ok, _ as Bk, $ as pn, a0 as $H, a1 as YH, a2 as Vk, a3 as Rg, a4 as XH, a5 as qH, a6 as Fk, a7 as ZH, a8 as jH, a9 as KH, aa as QH, ab as JH, ac as eW, F as tW } from "./useChatHistory-DdaYq0tI.js";
|
|
7
|
+
import { A as Iye, C as kye, h as Rye, t as Pye, v as Oye, x as Bye, ah as Vye, n as Fye, j as zye, r as Gye, y as Hye, q as Wye, s as Uye, k as $ye, e as Yye, g as Xye, l as qye, i as Zye, a as jye, p as Kye, ai as Qye, af as Jye, ae as e0e, ag as t0e, m as r0e, o as n0e, ad as i0e, b as a0e, f as o0e, w as s0e, c as l0e, d as u0e, u as c0e } from "./useChatHistory-DdaYq0tI.js";
|
|
8
8
|
import { createPortal as zk, unstable_batchedUpdates as qd, flushSync as rW } from "react-dom";
|
|
9
9
|
import { C as nW, o as iW, G as jb, H as Gk, ag as Hk, Q as Wk, ae as aW, U as oW, X as Uk, Y as Uw, ah as $w, a9 as sW, ai as lW, aj as uW, d as Pg, ak as cW, R as Yw, u as Xw, W as $k, O as qw, al as Yk, am as Zw, p as fW, a4 as Xk, $ as qk, an as dW, ao as hW, ap as vW, aq as pW, ar as gW, M as mW, as as Kb } from "./useDataCollectionSource-D66orUfb.js";
|
|
10
10
|
import { r as d0e, s as h0e, t as v0e, z as p0e, az as g0e, ay as m0e, au as y0e, F as b0e, J as x0e, af as _0e, K as w0e, v as S0e, aA as C0e, ab as T0e, ac as D0e, aa as A0e, ad as M0e, N as E0e, w as L0e, P as N0e, y as I0e, D as k0e, T as R0e, x as P0e, E as O0e, aC as B0e, m as V0e, n as F0e, at as z0e, aB as G0e, a7 as H0e, I as W0e, aD as U0e, aE as $0e, av as Y0e, aw as X0e, ax as q0e, e as Z0e, aF as j0e } from "./useDataCollectionSource-D66orUfb.js";
|
|
@@ -63163,7 +63163,7 @@ function XG(r) {
|
|
|
63163
63163
|
for (const Lt of Object.keys(Oe))
|
|
63164
63164
|
Oe[Lt] === null && (Oe[Lt] = void 0);
|
|
63165
63165
|
const ht = await s(Oe);
|
|
63166
|
-
ht.success ? (X.reset(
|
|
63166
|
+
ht.success ? (X.reset(X.getValues()), xt(), mt(ht.message), Ye("success"), G.current = setTimeout(() => {
|
|
63167
63167
|
Ye("idle"), mt(void 0), G.current = null;
|
|
63168
63168
|
}, O ?? 2e3)) : (Ye("idle"), ht.errors && Object.entries(ht.errors).forEach(([Lt, Ht]) => {
|
|
63169
63169
|
X.setError(Lt, { message: Ht });
|
|
@@ -881,8 +881,10 @@ declare module "@tiptap/core" {
|
|
|
881
881
|
|
|
882
882
|
declare module "@tiptap/core" {
|
|
883
883
|
interface Commands<ReturnType> {
|
|
884
|
-
|
|
885
|
-
|
|
884
|
+
videoEmbed: {
|
|
885
|
+
setVideoEmbed: (options: {
|
|
886
|
+
src: string;
|
|
887
|
+
}) => ReturnType;
|
|
886
888
|
};
|
|
887
889
|
}
|
|
888
890
|
}
|
|
@@ -890,10 +892,8 @@ declare module "@tiptap/core" {
|
|
|
890
892
|
|
|
891
893
|
declare module "@tiptap/core" {
|
|
892
894
|
interface Commands<ReturnType> {
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
src: string;
|
|
896
|
-
}) => ReturnType;
|
|
895
|
+
transcript: {
|
|
896
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
897
897
|
};
|
|
898
898
|
}
|
|
899
899
|
}
|