@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/ai.d.ts CHANGED
@@ -1513,6 +1513,13 @@ export declare type ChatThread = {
1513
1513
  title: string;
1514
1514
  createdAt: string;
1515
1515
  updatedAt: string;
1516
+ /** Rendered before the title (e.g. a chart icon for Analytics chats). */
1517
+ icon?: IconType;
1518
+ /**
1519
+ * Secondary label at the row's end, revealed on hover/focus like the date
1520
+ * (e.g. "Analytics" for mode-bound chats).
1521
+ */
1522
+ trailingLabel?: string;
1516
1523
  };
1517
1524
 
1518
1525
  /**
@@ -3370,6 +3377,11 @@ export declare type F0AiMessagesContainerProps = {
3370
3377
  /** Welcome phrase shown centered when the chat is empty. Falls back to
3371
3378
  * `translations.ai.defaultInitialMessage` if omitted. */
3372
3379
  initialMessage?: string | string[];
3380
+ /** Static line above the welcome phrase, same size but secondary color
3381
+ * (e.g. "Analytics mode:"). */
3382
+ initialMessageCaption?: string;
3383
+ /** Smaller secondary line below the welcome phrase. */
3384
+ initialMessageSubtitle?: string;
3373
3385
  /** Called when the user clicks the welcome phrase (used by F0AiChat to open
3374
3386
  * the pong easter egg). When omitted the phrase is non-interactive. */
3375
3387
  onWelcomeClick?: () => void;
@@ -3726,7 +3738,7 @@ declare type F0AvatarTeamProps = {
3726
3738
  * Shows an avatar, title, optional description, and a configurable action button.
3727
3739
  *
3728
3740
  * @deprecated Being replaced by `F0CardHorizontal` (`@/experimental/F0CardHorizontal`).
3729
- * The co-creation flow already renders these cards with `F0CardHorizontal` directly
3741
+ * The AI Cocreation flow already renders these cards with `F0CardHorizontal` directly
3730
3742
  * (Open/Close → `primaryAction`; superseded → a faded `opacity-50 pointer-events-none`
3731
3743
  * wrapper). Don't add new usages; migrate the remaining one
3732
3744
  * (`F0AiMessagesContainer/FormCard`) once its inline `children` preview has an
@@ -3938,7 +3950,7 @@ declare const f0FileItemSizes: readonly ["md", "lg"];
3938
3950
  * @deprecated Being replaced by `F0CardHorizontal` (`@/experimental/F0CardHorizontal`),
3939
3951
  * which this component already wraps. Use `F0CardHorizontal` directly: `confirmAction` /
3940
3952
  * `rejectAction` for the pending state, `status` for the resolved outcome, and
3941
- * `secondaryActions` for a single CTA. The co-creation flow no longer uses this component —
3953
+ * `secondaryActions` for a single CTA. The AI Cocreation flow no longer uses this component —
3942
3954
  * don't add new usages.
3943
3955
  * @removeIn 5.0.0
3944
3956
  */
@@ -5262,9 +5274,11 @@ declare namespace Calendar {
5262
5274
 
5263
5275
  declare module "@tiptap/core" {
5264
5276
  interface Commands<ReturnType> {
5265
- aiBlock: {
5266
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
5267
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
5277
+ enhanceHighlight: {
5278
+ setEnhanceHighlight: (from: number, to: number, options?: {
5279
+ placeholder?: string;
5280
+ }) => ReturnType;
5281
+ clearEnhanceHighlight: () => ReturnType;
5268
5282
  };
5269
5283
  }
5270
5284
  }
@@ -5272,11 +5286,9 @@ declare module "@tiptap/core" {
5272
5286
 
5273
5287
  declare module "@tiptap/core" {
5274
5288
  interface Commands<ReturnType> {
5275
- enhanceHighlight: {
5276
- setEnhanceHighlight: (from: number, to: number, options?: {
5277
- placeholder?: string;
5278
- }) => ReturnType;
5279
- clearEnhanceHighlight: () => ReturnType;
5289
+ aiBlock: {
5290
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
5291
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
5280
5292
  };
5281
5293
  }
5282
5294
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-CAY9Mu_e.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-BBVFRBSW.js";
3
+ import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-YSzHusB4.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -285,9 +285,11 @@ declare namespace Calendar {
285
285
 
286
286
  declare module "@tiptap/core" {
287
287
  interface Commands<ReturnType> {
288
- aiBlock: {
289
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
290
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
288
+ enhanceHighlight: {
289
+ setEnhanceHighlight: (from: number, to: number, options?: {
290
+ placeholder?: string;
291
+ }) => ReturnType;
292
+ clearEnhanceHighlight: () => ReturnType;
291
293
  };
292
294
  }
293
295
  }
@@ -295,11 +297,9 @@ declare module "@tiptap/core" {
295
297
 
296
298
  declare module "@tiptap/core" {
297
299
  interface Commands<ReturnType> {
298
- enhanceHighlight: {
299
- setEnhanceHighlight: (from: number, to: number, options?: {
300
- placeholder?: string;
301
- }) => ReturnType;
302
- clearEnhanceHighlight: () => ReturnType;
300
+ aiBlock: {
301
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
302
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
303
303
  };
304
304
  }
305
305
  }