@factorialco/f0-react 6.23.0 → 6.23.1

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
  /**
@@ -5544,16 +5559,6 @@ declare namespace Calendar {
5544
5559
  }
5545
5560
 
5546
5561
 
5547
- declare module "@tiptap/core" {
5548
- interface Commands<ReturnType> {
5549
- aiBlock: {
5550
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
5551
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
5552
- };
5553
- }
5554
- }
5555
-
5556
-
5557
5562
  declare module "@tiptap/core" {
5558
5563
  interface Commands<ReturnType> {
5559
5564
  enhanceHighlight: {
@@ -5568,9 +5573,9 @@ declare module "@tiptap/core" {
5568
5573
 
5569
5574
  declare module "@tiptap/core" {
5570
5575
  interface Commands<ReturnType> {
5571
- fontSize: {
5572
- setFontSize: (fontSize: string) => ReturnType;
5573
- unsetFontSize: () => ReturnType;
5576
+ aiBlock: {
5577
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
5578
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
5574
5579
  };
5575
5580
  }
5576
5581
  }
@@ -5578,8 +5583,9 @@ declare module "@tiptap/core" {
5578
5583
 
5579
5584
  declare module "@tiptap/core" {
5580
5585
  interface Commands<ReturnType> {
5581
- moodTracker: {
5582
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
5586
+ fontSize: {
5587
+ setFontSize: (fontSize: string) => ReturnType;
5588
+ unsetFontSize: () => ReturnType;
5583
5589
  };
5584
5590
  }
5585
5591
  }
@@ -5598,10 +5604,8 @@ declare module "@tiptap/core" {
5598
5604
 
5599
5605
  declare module "@tiptap/core" {
5600
5606
  interface Commands<ReturnType> {
5601
- videoEmbed: {
5602
- setVideoEmbed: (options: {
5603
- src: string;
5604
- }) => ReturnType;
5607
+ moodTracker: {
5608
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
5605
5609
  };
5606
5610
  }
5607
5611
  }
@@ -5616,6 +5620,17 @@ declare module "@tiptap/core" {
5616
5620
  }
5617
5621
 
5618
5622
 
5623
+ declare module "@tiptap/core" {
5624
+ interface Commands<ReturnType> {
5625
+ videoEmbed: {
5626
+ setVideoEmbed: (options: {
5627
+ src: string;
5628
+ }) => ReturnType;
5629
+ };
5630
+ }
5631
+ }
5632
+
5633
+
5619
5634
  declare namespace F0GraphNodeWrapperInner {
5620
5635
  var displayName: string;
5621
5636
  }
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,
@@ -283,16 +283,6 @@ declare namespace Calendar {
283
283
  }
284
284
 
285
285
 
286
- declare module "@tiptap/core" {
287
- interface Commands<ReturnType> {
288
- aiBlock: {
289
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
290
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
291
- };
292
- }
293
- }
294
-
295
-
296
286
  declare module "@tiptap/core" {
297
287
  interface Commands<ReturnType> {
298
288
  enhanceHighlight: {
@@ -307,9 +297,9 @@ declare module "@tiptap/core" {
307
297
 
308
298
  declare module "@tiptap/core" {
309
299
  interface Commands<ReturnType> {
310
- fontSize: {
311
- setFontSize: (fontSize: string) => ReturnType;
312
- unsetFontSize: () => ReturnType;
300
+ aiBlock: {
301
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
302
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
313
303
  };
314
304
  }
315
305
  }
@@ -317,8 +307,9 @@ declare module "@tiptap/core" {
317
307
 
318
308
  declare module "@tiptap/core" {
319
309
  interface Commands<ReturnType> {
320
- moodTracker: {
321
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
310
+ fontSize: {
311
+ setFontSize: (fontSize: string) => ReturnType;
312
+ unsetFontSize: () => ReturnType;
322
313
  };
323
314
  }
324
315
  }
@@ -337,10 +328,8 @@ declare module "@tiptap/core" {
337
328
 
338
329
  declare module "@tiptap/core" {
339
330
  interface Commands<ReturnType> {
340
- videoEmbed: {
341
- setVideoEmbed: (options: {
342
- src: string;
343
- }) => ReturnType;
331
+ moodTracker: {
332
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
344
333
  };
345
334
  }
346
335
  }
@@ -355,6 +344,17 @@ declare module "@tiptap/core" {
355
344
  }
356
345
 
357
346
 
347
+ declare module "@tiptap/core" {
348
+ interface Commands<ReturnType> {
349
+ videoEmbed: {
350
+ setVideoEmbed: (options: {
351
+ src: string;
352
+ }) => ReturnType;
353
+ };
354
+ }
355
+ }
356
+
357
+
358
358
  declare namespace F0GraphNodeWrapperInner {
359
359
  var displayName: string;
360
360
  }