@factorialco/f0-react 6.22.1 → 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-DiaHNd_B.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-DiaHNd_B.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-Cvgj-Z0z.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-DiaHNd_B.js";
4
- import { u as y, D as g } from "./DocumentToolbar-Cvgj-Z0z.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
@@ -3026,6 +3026,21 @@ export declare const defaultTranslations: {
3026
3026
  readonly submit: "Submit";
3027
3027
  readonly stepOf: "Step {{current}} of {{total}}";
3028
3028
  };
3029
+ readonly widgets: {
3030
+ /** Turns a widget over to read what it is telling you (Home's `info`). */
3031
+ readonly whatThisMeans: "What this info means?";
3032
+ /** The button on that other side, which turns it back. */
3033
+ readonly gotIt: "Got it";
3034
+ /** The widget menu's own items, and the dialogs they open. */
3035
+ readonly editParams: "Edit params";
3036
+ readonly editParamsTitle: "Edit widget params";
3037
+ readonly removeWidget: "Remove widget";
3038
+ readonly addWidget: "Add widget";
3039
+ /** Heads the widgets a Home suggests, at the top of the picker. */
3040
+ readonly recommended: "Recommended";
3041
+ /** Why a drop onto a pinned widget was refused. `{{title}}` is its name. */
3042
+ readonly cannotMoveHere: "You can't move a widget here — {{title}} is locked.";
3043
+ };
3029
3044
  readonly pdfViewer: {
3030
3045
  readonly toolbar: "Document toolbar";
3031
3046
  readonly previousPage: "Previous page";
@@ -3881,8 +3896,16 @@ declare type F0AvatarListProps = {
3881
3896
  */
3882
3897
  noTooltip?: boolean;
3883
3898
  /**
3884
- * The maximum number of avatars to display.
3885
- * @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.
3886
3909
  */
3887
3910
  max?: number;
3888
3911
  /**
@@ -3890,10 +3913,17 @@ declare type F0AvatarListProps = {
3890
3913
  */
3891
3914
  remainingCount?: number;
3892
3915
  /**
3893
- * The layout of the avatar list.
3894
- * - "fill" - Avatars will expand to fill the available width, with overflow items shown in a counter
3895
- * - "compact" - Avatars will be stacked tightly together up to the max limit, with remaining shown in counter
3896
- * @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.
3897
3927
  */
3898
3928
  layout?: "fill" | "compact";
3899
3929
  /**
@@ -5531,9 +5561,11 @@ declare namespace Calendar {
5531
5561
 
5532
5562
  declare module "@tiptap/core" {
5533
5563
  interface Commands<ReturnType> {
5534
- aiBlock: {
5535
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
5536
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
5564
+ enhanceHighlight: {
5565
+ setEnhanceHighlight: (from: number, to: number, options?: {
5566
+ placeholder?: string;
5567
+ }) => ReturnType;
5568
+ clearEnhanceHighlight: () => ReturnType;
5537
5569
  };
5538
5570
  }
5539
5571
  }
@@ -5541,11 +5573,9 @@ declare module "@tiptap/core" {
5541
5573
 
5542
5574
  declare module "@tiptap/core" {
5543
5575
  interface Commands<ReturnType> {
5544
- enhanceHighlight: {
5545
- setEnhanceHighlight: (from: number, to: number, options?: {
5546
- placeholder?: string;
5547
- }) => ReturnType;
5548
- clearEnhanceHighlight: () => ReturnType;
5576
+ aiBlock: {
5577
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
5578
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
5549
5579
  };
5550
5580
  }
5551
5581
  }
@@ -5583,10 +5613,8 @@ declare module "@tiptap/core" {
5583
5613
 
5584
5614
  declare module "@tiptap/core" {
5585
5615
  interface Commands<ReturnType> {
5586
- videoEmbed: {
5587
- setVideoEmbed: (options: {
5588
- src: string;
5589
- }) => ReturnType;
5616
+ transcript: {
5617
+ insertTranscript: (data: TranscriptData) => ReturnType;
5590
5618
  };
5591
5619
  }
5592
5620
  }
@@ -5594,8 +5622,10 @@ declare module "@tiptap/core" {
5594
5622
 
5595
5623
  declare module "@tiptap/core" {
5596
5624
  interface Commands<ReturnType> {
5597
- transcript: {
5598
- insertTranscript: (data: TranscriptData) => ReturnType;
5625
+ videoEmbed: {
5626
+ setVideoEmbed: (options: {
5627
+ src: string;
5628
+ }) => ReturnType;
5599
5629
  };
5600
5630
  }
5601
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-DiaHNd_B.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-mte_XVAK.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,
@@ -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
  }
@@ -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
  }