@factorialco/f0-react 6.23.0 → 6.23.2

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,4 +1,4 @@
1
- import { u as W, t as je, v as Ge, m as $, x as Xe, y as Ze, z as qe, A as Ye, B as Je, E as Qe, G as et, H as tt, J as nt, K as rt, L as at, M as ot, N as ye, O as st, Q as Ce, l as it, R as ct, U as lt, V as dt, w as ut, r as ft } from "./F0CanvasPanel-0gGxlTzq.js";
1
+ import { u as W, t as je, v as Ge, m as $, x as Xe, y as Ze, z as qe, A as Ye, B as Je, E as Qe, G as et, H as tt, J as nt, K as rt, L as at, M as ot, N as ye, O as st, Q as Ce, l as it, R as ct, U as lt, V as dt, w as ut, r as ft } from "./F0CanvasPanel-kyz8aCo6.js";
2
2
  import { jsxs as R, jsx as l } from "react/jsx-runtime";
3
3
  import { forwardRef as re, useId as mt, useState as x, useRef as O, useEffect as _, useMemo as J, useCallback as M } from "react";
4
4
  import { d as H, f as de } from "./tooltip-Cik7KBQT.js";
@@ -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-0gGxlTzq.js";
3
+ import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-kyz8aCo6.js";
4
4
  import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
5
- import { u as _, D as j } from "./DocumentToolbar-ELFIiBgd.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-CurruBn6.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-0gGxlTzq.js";
4
- import { u as y, D as g } from "./DocumentToolbar-ELFIiBgd.js";
3
+ import { u as x, S as p, p as w } from "./F0CanvasPanel-kyz8aCo6.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-CurruBn6.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
@@ -3896,8 +3896,16 @@ declare type F0AvatarListProps = {
3896
3896
  */
3897
3897
  noTooltip?: boolean;
3898
3898
  /**
3899
- * The maximum number of avatars to display.
3900
- * @default 3
3899
+ * The exact number of avatars to keep visible; the rest collapse into the
3900
+ * `+N` counter. Not a soft cap — a provided `max` is forwarded as
3901
+ * `OverflowList`'s `min` as well, so exactly this many avatars render even in
3902
+ * a container too narrow to fit them (see `F0AvatarList.tsx`).
3903
+ *
3904
+ * There is no numeric default. Left unset, the visible count is
3905
+ * container-driven: `OverflowList` measures the available width and shows as
3906
+ * many avatars as fit, collapsing the remainder into the counter. So passing
3907
+ * a number opts into a fixed footprint, and omitting it opts into filling
3908
+ * the row.
3901
3909
  */
3902
3910
  max?: number;
3903
3911
  /**
@@ -3905,10 +3913,17 @@ declare type F0AvatarListProps = {
3905
3913
  */
3906
3914
  remainingCount?: number;
3907
3915
  /**
3908
- * The layout of the avatar list.
3909
- * - "fill" - Avatars will expand to fill the available width, with overflow items shown in a counter
3910
- * - "compact" - Avatars will be stacked tightly together up to the max limit, with remaining shown in counter
3911
- * @default "compact"
3916
+ * @deprecated Never implemented — `F0AvatarList` has always ignored this
3917
+ * prop — and not needed, because `max` already selects between the two
3918
+ * layouts it described. Omit `max` for what this called `"fill"`:
3919
+ * `OverflowList` measures the row and shows as many avatars as fit. Pass a
3920
+ * `max` for `"compact"`: it doubles as `min`, so exactly that many stay
3921
+ * visible. A separate switch could only contradict `max` — `layout="fill"`
3922
+ * with `max={3}` has no coherent meaning — which is why this is going rather
3923
+ * than getting an implementation.
3924
+ * @removeIn 7.0.0
3925
+ * @migration Remove the prop. If you were passing `layout="compact"` to cap
3926
+ * the row, add `max={n}`: `"compact"` never capped anything.
3912
3927
  */
3913
3928
  layout?: "fill" | "compact";
3914
3929
  /**
@@ -5578,8 +5593,10 @@ declare module "@tiptap/core" {
5578
5593
 
5579
5594
  declare module "@tiptap/core" {
5580
5595
  interface Commands<ReturnType> {
5581
- moodTracker: {
5582
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
5596
+ indent: {
5597
+ setIndent: (level: number) => ReturnType;
5598
+ unsetIndent: () => ReturnType;
5599
+ outdent: () => ReturnType;
5583
5600
  };
5584
5601
  }
5585
5602
  }
@@ -5587,10 +5604,8 @@ declare module "@tiptap/core" {
5587
5604
 
5588
5605
  declare module "@tiptap/core" {
5589
5606
  interface Commands<ReturnType> {
5590
- indent: {
5591
- setIndent: (level: number) => ReturnType;
5592
- unsetIndent: () => ReturnType;
5593
- outdent: () => ReturnType;
5607
+ moodTracker: {
5608
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
5594
5609
  };
5595
5610
  }
5596
5611
  }
@@ -5598,10 +5613,8 @@ declare module "@tiptap/core" {
5598
5613
 
5599
5614
  declare module "@tiptap/core" {
5600
5615
  interface Commands<ReturnType> {
5601
- videoEmbed: {
5602
- setVideoEmbed: (options: {
5603
- src: string;
5604
- }) => ReturnType;
5616
+ transcript: {
5617
+ insertTranscript: (data: TranscriptData) => ReturnType;
5605
5618
  };
5606
5619
  }
5607
5620
  }
@@ -5609,8 +5622,10 @@ declare module "@tiptap/core" {
5609
5622
 
5610
5623
  declare module "@tiptap/core" {
5611
5624
  interface Commands<ReturnType> {
5612
- transcript: {
5613
- insertTranscript: (data: TranscriptData) => ReturnType;
5625
+ videoEmbed: {
5626
+ setVideoEmbed: (options: {
5627
+ src: string;
5628
+ }) => ReturnType;
5614
5629
  };
5615
5630
  }
5616
5631
  }
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-0gGxlTzq.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-kyz8aCo6.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-lZ3Po7hF.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-i1gfeTef.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -317,8 +317,10 @@ declare module "@tiptap/core" {
317
317
 
318
318
  declare module "@tiptap/core" {
319
319
  interface Commands<ReturnType> {
320
- moodTracker: {
321
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
320
+ indent: {
321
+ setIndent: (level: number) => ReturnType;
322
+ unsetIndent: () => ReturnType;
323
+ outdent: () => ReturnType;
322
324
  };
323
325
  }
324
326
  }
@@ -326,10 +328,8 @@ declare module "@tiptap/core" {
326
328
 
327
329
  declare module "@tiptap/core" {
328
330
  interface Commands<ReturnType> {
329
- indent: {
330
- setIndent: (level: number) => ReturnType;
331
- unsetIndent: () => ReturnType;
332
- outdent: () => ReturnType;
331
+ moodTracker: {
332
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
333
333
  };
334
334
  }
335
335
  }
@@ -337,10 +337,8 @@ declare module "@tiptap/core" {
337
337
 
338
338
  declare module "@tiptap/core" {
339
339
  interface Commands<ReturnType> {
340
- videoEmbed: {
341
- setVideoEmbed: (options: {
342
- src: string;
343
- }) => ReturnType;
340
+ transcript: {
341
+ insertTranscript: (data: TranscriptData) => ReturnType;
344
342
  };
345
343
  }
346
344
  }
@@ -348,8 +346,10 @@ declare module "@tiptap/core" {
348
346
 
349
347
  declare module "@tiptap/core" {
350
348
  interface Commands<ReturnType> {
351
- transcript: {
352
- insertTranscript: (data: TranscriptData) => ReturnType;
349
+ videoEmbed: {
350
+ setVideoEmbed: (options: {
351
+ src: string;
352
+ }) => ReturnType;
353
353
  };
354
354
  }
355
355
  }