@factorialco/f0-react 4.75.1 → 4.77.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/{F0AiProcessingOverlay-BBVFRBSW.js → F0AiProcessingOverlay-YSzHusB4.js} +2097 -2063
- package/dist/ai.d.ts +22 -10
- package/dist/ai.js +1 -1
- package/dist/component-status.d.ts +8 -8
- package/dist/component-status.js +5 -5
- package/dist/experimental.d.ts +8 -8
- package/dist/f0.d.ts +22 -10
- package/dist/f0.js +2 -2
- package/dist/i18n-provider-defaults.d.ts +8 -8
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -11885,9 +11885,11 @@ declare namespace Calendar {
|
|
|
11885
11885
|
|
|
11886
11886
|
declare module "@tiptap/core" {
|
|
11887
11887
|
interface Commands<ReturnType> {
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
|
|
11888
|
+
enhanceHighlight: {
|
|
11889
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
11890
|
+
placeholder?: string;
|
|
11891
|
+
}) => ReturnType;
|
|
11892
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
11891
11893
|
};
|
|
11892
11894
|
}
|
|
11893
11895
|
}
|
|
@@ -11895,11 +11897,9 @@ declare module "@tiptap/core" {
|
|
|
11895
11897
|
|
|
11896
11898
|
declare module "@tiptap/core" {
|
|
11897
11899
|
interface Commands<ReturnType> {
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11901
|
-
}) => ReturnType;
|
|
11902
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
11900
|
+
aiBlock: {
|
|
11901
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
11902
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
11903
11903
|
};
|
|
11904
11904
|
}
|
|
11905
11905
|
}
|
package/dist/f0.d.ts
CHANGED
|
@@ -2992,6 +2992,13 @@ export declare type ChatThread = {
|
|
|
2992
2992
|
title: string;
|
|
2993
2993
|
createdAt: string;
|
|
2994
2994
|
updatedAt: string;
|
|
2995
|
+
/** Rendered before the title (e.g. a chart icon for Analytics chats). */
|
|
2996
|
+
icon?: IconType;
|
|
2997
|
+
/**
|
|
2998
|
+
* Secondary label at the row's end, revealed on hover/focus like the date
|
|
2999
|
+
* (e.g. "Analytics" for mode-bound chats).
|
|
3000
|
+
*/
|
|
3001
|
+
trailingLabel?: string;
|
|
2995
3002
|
};
|
|
2996
3003
|
|
|
2997
3004
|
/**
|
|
@@ -6875,6 +6882,11 @@ export declare type F0AiMessagesContainerProps = {
|
|
|
6875
6882
|
/** Welcome phrase shown centered when the chat is empty. Falls back to
|
|
6876
6883
|
* `translations.ai.defaultInitialMessage` if omitted. */
|
|
6877
6884
|
initialMessage?: string | string[];
|
|
6885
|
+
/** Static line above the welcome phrase, same size but secondary color
|
|
6886
|
+
* (e.g. "Analytics mode:"). */
|
|
6887
|
+
initialMessageCaption?: string;
|
|
6888
|
+
/** Smaller secondary line below the welcome phrase. */
|
|
6889
|
+
initialMessageSubtitle?: string;
|
|
6878
6890
|
/** Called when the user clicks the welcome phrase (used by F0AiChat to open
|
|
6879
6891
|
* the pong easter egg). When omitted the phrase is non-interactive. */
|
|
6880
6892
|
onWelcomeClick?: () => void;
|
|
@@ -7928,7 +7940,7 @@ export declare type F0ButtonToggleProps = Omit<F0ButtonToggleInternalProps, (typ
|
|
|
7928
7940
|
* Shows an avatar, title, optional description, and a configurable action button.
|
|
7929
7941
|
*
|
|
7930
7942
|
* @deprecated Being replaced by `F0CardHorizontal` (`@/experimental/F0CardHorizontal`).
|
|
7931
|
-
* The
|
|
7943
|
+
* The AI Cocreation flow already renders these cards with `F0CardHorizontal` directly
|
|
7932
7944
|
* (Open/Close → `primaryAction`; superseded → a faded `opacity-50 pointer-events-none`
|
|
7933
7945
|
* wrapper). Don't add new usages; migrate the remaining one
|
|
7934
7946
|
* (`F0AiMessagesContainer/FormCard`) once its inline `children` preview has an
|
|
@@ -10668,7 +10680,7 @@ export declare type F0HeadingProps = Omit<TextProps, "className" | "variant" | "
|
|
|
10668
10680
|
* @deprecated Being replaced by `F0CardHorizontal` (`@/experimental/F0CardHorizontal`),
|
|
10669
10681
|
* which this component already wraps. Use `F0CardHorizontal` directly: `confirmAction` /
|
|
10670
10682
|
* `rejectAction` for the pending state, `status` for the resolved outcome, and
|
|
10671
|
-
* `secondaryActions` for a single CTA. The
|
|
10683
|
+
* `secondaryActions` for a single CTA. The AI Cocreation flow no longer uses this component —
|
|
10672
10684
|
* don't add new usages.
|
|
10673
10685
|
* @removeIn 5.0.0
|
|
10674
10686
|
*/
|
|
@@ -18868,9 +18880,11 @@ declare namespace Calendar {
|
|
|
18868
18880
|
|
|
18869
18881
|
declare module "@tiptap/core" {
|
|
18870
18882
|
interface Commands<ReturnType> {
|
|
18871
|
-
|
|
18872
|
-
|
|
18873
|
-
|
|
18883
|
+
enhanceHighlight: {
|
|
18884
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
18885
|
+
placeholder?: string;
|
|
18886
|
+
}) => ReturnType;
|
|
18887
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
18874
18888
|
};
|
|
18875
18889
|
}
|
|
18876
18890
|
}
|
|
@@ -18878,11 +18892,9 @@ declare module "@tiptap/core" {
|
|
|
18878
18892
|
|
|
18879
18893
|
declare module "@tiptap/core" {
|
|
18880
18894
|
interface Commands<ReturnType> {
|
|
18881
|
-
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
}) => ReturnType;
|
|
18885
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
18895
|
+
aiBlock: {
|
|
18896
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
18897
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
18886
18898
|
};
|
|
18887
18899
|
}
|
|
18888
18900
|
}
|
package/dist/f0.js
CHANGED
|
@@ -3,8 +3,8 @@ import { hR as zfe, C as Vfe, D as Ffe, ax as Gfe, c as Hfe, F as Wfe, a as Ufe,
|
|
|
3
3
|
import { jsx as w, jsxs as B, Fragment as rt } from "react/jsx-runtime";
|
|
4
4
|
import * as yt from "react";
|
|
5
5
|
import VF, { forwardRef as Sr, useRef as ce, useImperativeHandle as FF, Children as yd, createContext as ka, useContext as Qo, useState as ue, useMemo as ye, useEffect as Ae, useCallback as ve, useLayoutEffect as Hy, isValidElement as TN, Fragment as zl, useSyncExternalStore as pl, useId as rc, memo as GF } from "react";
|
|
6
|
-
import { D as HF, E as WF, G as UF, H as _d, I as Ab, J as DN, K as AN, L as Zn, M as $F, N as YF, O as XF, P as qF, Q as ZF, F as jF } from "./F0AiProcessingOverlay-
|
|
7
|
-
import { A as vde, C as pde, t as gde, s as mde, v as yde, y as _de, l as bde, i as xde, q as wde, z as Sde, B as Cde, p as Tde, r as Dde, j as Ade, e as Mde, g as Ede, k as Lde, T as Nde, w as Ide, h as kde, a as Pde, n as Rde, m as Ode, o as Bde, b as zde, f as Vde, x as Fde, c as Gde, d as Hde, u as Wde } from "./F0AiProcessingOverlay-
|
|
6
|
+
import { D as HF, E as WF, G as UF, H as _d, I as Ab, J as DN, K as AN, L as Zn, M as $F, N as YF, O as XF, P as qF, Q as ZF, F as jF } from "./F0AiProcessingOverlay-YSzHusB4.js";
|
|
7
|
+
import { A as vde, C as pde, t as gde, s as mde, v as yde, y as _de, l as bde, i as xde, q as wde, z as Sde, B as Cde, p as Tde, r as Dde, j as Ade, e as Mde, g as Ede, k as Lde, T as Nde, w as Ide, h as kde, a as Pde, n as Rde, m as Ode, o as Bde, b as zde, f as Vde, x as Fde, c as Gde, d as Hde, u as Wde } from "./F0AiProcessingOverlay-YSzHusB4.js";
|
|
8
8
|
import { d as te, u as rf, h as KF, i as Ys, P as nf, g as Vl, j as QF, f as Pa } from "./tooltip-Cik7KBQT.js";
|
|
9
9
|
import { createPortal as qv } from "react-dom";
|
|
10
10
|
import { C as JF, ap as e5, aq as t5, ar as r5, as as Tw, at as n5, au as i5, av as a5, aw as o5, ax as s5, ay as l5, az as u5, j as c5, F as MN, aA as f5, aB as h5, aC as d5, aD as v5, aE as p5, aF as EN, aG as g5, aH as Zv, aI as Va, aJ as m5, aK as Mb, aL as Eb, K as y5, aM as _5, aN as hs, aO as LN, aP as b5, aQ as x5, aR as w5, aS as S5, aT as C5, aU as T5, a0 as D5, ag as A5, aV as M5, X as E5, E as L5, a as N5, e as jv, R as Lb, u as Nb, _ as NN, O as Ib, aW as IN, aX as Dw, aY as kb, s as I5, f as kN, a4 as PN, aZ as k5, a_ as P5, a$ as R5, b0 as O5, M as B5 } from "./index-D2DZqULg.js";
|
|
@@ -1099,9 +1099,11 @@ declare namespace Calendar {
|
|
|
1099
1099
|
|
|
1100
1100
|
declare module "@tiptap/core" {
|
|
1101
1101
|
interface Commands<ReturnType> {
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1102
|
+
enhanceHighlight: {
|
|
1103
|
+
setEnhanceHighlight: (from: number, to: number, options?: {
|
|
1104
|
+
placeholder?: string;
|
|
1105
|
+
}) => ReturnType;
|
|
1106
|
+
clearEnhanceHighlight: () => ReturnType;
|
|
1105
1107
|
};
|
|
1106
1108
|
}
|
|
1107
1109
|
}
|
|
@@ -1109,11 +1111,9 @@ declare module "@tiptap/core" {
|
|
|
1109
1111
|
|
|
1110
1112
|
declare module "@tiptap/core" {
|
|
1111
1113
|
interface Commands<ReturnType> {
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
}) => ReturnType;
|
|
1116
|
-
clearEnhanceHighlight: () => ReturnType;
|
|
1114
|
+
aiBlock: {
|
|
1115
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
1116
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
1117
1117
|
};
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|