@factorialco/f0-react 4.55.0 → 4.56.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.
@@ -1,8 +1,8 @@
1
1
  import { jsxs as a, jsx as r, Fragment as N } from "react/jsx-runtime";
2
2
  import { useState as i, useEffect as k } from "react";
3
- import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-DvAledR4.js";
3
+ import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-BeVQHrJo.js";
4
4
  import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
5
- import { u as _, D as j } from "./DocumentToolbar-ZnR9EUMa.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-DQpt1krt.js";
6
6
  const g = 1e3, F = 100, G = ({
7
7
  url: n,
8
8
  filename: y,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as _, useEffect as h } from "react";
3
- import { u as x, S as p, p as w } from "./F0CanvasPanel-DvAledR4.js";
4
- import { u as y, D as g } from "./DocumentToolbar-ZnR9EUMa.js";
3
+ import { u as x, S as p, p as w } from "./F0CanvasPanel-BeVQHrJo.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-DQpt1krt.js";
5
5
  const k = 2 * 1024 * 1024, v = [
6
6
  "[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-2xl [&_h1]:font-semibold",
7
7
  "[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-xl [&_h2]:font-semibold",
package/dist/ai.d.ts CHANGED
@@ -2949,10 +2949,20 @@ export declare const F0AiChatCreditsButton: ({ credits, employeeCredits, trigger
2949
2949
  * - with-history: title acts as a thread selector (clickable) — the host
2950
2950
  * wires `onOpenHistory` to mount its own history dialog.
2951
2951
  * - legacy: title is static; a "new chat" button is shown when `hasMessages`.
2952
+ * Hosts can add header actions that F0 renders alongside the built-in controls.
2952
2953
  *
2953
2954
  * Decoupled from CopilotKit and `useAiChat()` — everything via props.
2954
2955
  */
2955
- export declare const F0AiChatHeader: ({ historyEnabled, title, currentThreadTitle, fullscreen, lockVisualizationMode, onToggleVisualizationMode, onClose, onNewChat, onOpenHistory, hasMessages, credits, employeeCredits, compact, }: F0AiChatHeaderProps) => JSX_2.Element;
2956
+ export declare const F0AiChatHeader: ({ historyEnabled, title, currentThreadTitle, fullscreen, lockVisualizationMode, onToggleVisualizationMode, onClose, onNewChat, onOpenHistory, hasMessages, credits, employeeCredits, compact, actions, }: F0AiChatHeaderProps) => JSX_2.Element;
2957
+
2958
+ export declare interface F0AiChatHeaderAction {
2959
+ /** Stable identifier used as the React key. */
2960
+ id: string;
2961
+ /** Already-localized accessible label and tooltip. */
2962
+ label: string;
2963
+ icon: IconType;
2964
+ onClick: () => void;
2965
+ }
2956
2966
 
2957
2967
  export declare type F0AiChatHeaderProps = {
2958
2968
  /**
@@ -2987,9 +2997,9 @@ export declare type F0AiChatHeaderProps = {
2987
2997
  /** Legacy variant gate: only renders the "new chat" button when true. */
2988
2998
  hasMessages?: boolean;
2989
2999
  /**
2990
- * Minimal header: render only the expand + close controls (no title, new
2991
- * chat or credits popover). Use when a sidebar owns the chat navigation and
2992
- * the credits/settings popover (see `F0AiChatCreditsButton`).
3000
+ * Minimal header: render only header actions plus the expand and close controls
3001
+ * (no title, new chat or credits popover). Use when a sidebar owns the chat
3002
+ * navigation and the credits/settings popover (see `F0AiChatCreditsButton`).
2993
3003
  */
2994
3004
  compact?: boolean;
2995
3005
  /** Credits configuration. When present, renders the credits popover button. */
@@ -3000,6 +3010,11 @@ export declare type F0AiChatHeaderProps = {
3000
3010
  * with `credits`). Hosts opt in per-employee.
3001
3011
  */
3002
3012
  employeeCredits?: AiChatEmployeeCredits;
3013
+ /**
3014
+ * Additional actions rendered immediately before the fullscreen and close
3015
+ * controls. F0 owns their presentation so they match the built-in actions.
3016
+ */
3017
+ actions?: F0AiChatHeaderAction[];
3003
3018
  };
3004
3019
 
3005
3020
  /**
@@ -5203,8 +5218,10 @@ declare module "@tiptap/core" {
5203
5218
 
5204
5219
  declare module "@tiptap/core" {
5205
5220
  interface Commands<ReturnType> {
5206
- transcript: {
5207
- insertTranscript: (data: TranscriptData) => ReturnType;
5221
+ videoEmbed: {
5222
+ setVideoEmbed: (options: {
5223
+ src: string;
5224
+ }) => ReturnType;
5208
5225
  };
5209
5226
  }
5210
5227
  }
@@ -5212,10 +5229,8 @@ declare module "@tiptap/core" {
5212
5229
 
5213
5230
  declare module "@tiptap/core" {
5214
5231
  interface Commands<ReturnType> {
5215
- videoEmbed: {
5216
- setVideoEmbed: (options: {
5217
- src: string;
5218
- }) => ReturnType;
5232
+ transcript: {
5233
+ insertTranscript: (data: TranscriptData) => ReturnType;
5219
5234
  };
5220
5235
  }
5221
5236
  }
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
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-DvAledR4.js";
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-BeVQHrJo.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-BVHAspoQ.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-D5hKB9d7.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -59,6 +59,16 @@ export declare interface ComponentEntry {
59
59
  storyFile: string;
60
60
  }
61
61
 
62
+ /**
63
+ * The maturity status badge, sized to sit inline next to a component title. On
64
+ * hover/focus it reveals the full maturity summary and Definition-of-Done
65
+ * checklist in a tooltip — the same information the `ComponentStability` panel
66
+ * shows, so collapsing the section loses no context.
67
+ *
68
+ * Renders nothing when the name doesn't resolve to a tracked component.
69
+ */
70
+ export declare function ComponentMaturityTag({ componentName, components, className, }: ComponentStabilityProps): default_2.JSX.Element | null;
71
+
62
72
  /**
63
73
  * Renders a component's maturity status and Definition-of-Done checklist. All
64
74
  * text (badge label, summary, checklist labels and hints) comes from the
@@ -304,8 +314,10 @@ declare module "@tiptap/core" {
304
314
 
305
315
  declare module "@tiptap/core" {
306
316
  interface Commands<ReturnType> {
307
- transcript: {
308
- insertTranscript: (data: TranscriptData) => ReturnType;
317
+ videoEmbed: {
318
+ setVideoEmbed: (options: {
319
+ src: string;
320
+ }) => ReturnType;
309
321
  };
310
322
  }
311
323
  }
@@ -313,10 +325,8 @@ declare module "@tiptap/core" {
313
325
 
314
326
  declare module "@tiptap/core" {
315
327
  interface Commands<ReturnType> {
316
- videoEmbed: {
317
- setVideoEmbed: (options: {
318
- src: string;
319
- }) => ReturnType;
328
+ transcript: {
329
+ insertTranscript: (data: TranscriptData) => ReturnType;
320
330
  };
321
331
  }
322
332
  }