@factorialco/f0-react 6.38.1 → 6.51.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.
Files changed (27) hide show
  1. package/dist/{ChatPdfThumbnail-BylbDvdh.js → ChatPdfThumbnail-BtJNIR03.js} +1 -1
  2. package/dist/{CoachmarkProvider-DDlkiieh.js → CoachmarkProvider-D1crauDt.js} +17536 -17054
  3. package/dist/{DocumentToolbar-C73oFj5j.js → DocumentToolbar-CYIgumvP.js} +2 -2
  4. package/dist/{DocxViewer-DvhVvro8.js → DocxViewer-BYC6ILzw.js} +2 -2
  5. package/dist/{F0AiProcessingOverlay-O9iKzCzA.js → F0AiProcessingOverlay-B_jVVBb3.js} +1675 -1687
  6. package/dist/{F0CanvasPanel-x0HG1lL2.js → F0CanvasPanel-D9QM6A5c.js} +24585 -24368
  7. package/dist/{F0VideoPlayer-CNLDjvWx.js → F0VideoPlayer-Czdae49M.js} +1 -1
  8. package/dist/{LocationMap-B9uJiP6s.js → LocationMap-_ELkGzce.js} +1 -1
  9. package/dist/{SheetViewer-Cb3M0JfB.js → SheetViewer-rS-lxOWo.js} +2 -2
  10. package/dist/{TextViewer-zWnCj_Ll.js → TextViewer-D_ddwlEE.js} +2 -2
  11. package/dist/ai.d.ts +32 -8
  12. package/dist/ai.js +2 -2
  13. package/dist/component-status.d.ts +6 -6
  14. package/dist/component-status.js +4 -4
  15. package/dist/{experimental-AwqVvQnQ.js → experimental-BsGKnyna.js} +12830 -12549
  16. package/dist/experimental.d.ts +485 -35
  17. package/dist/experimental.js +210 -205
  18. package/dist/f0.d.ts +296 -32
  19. package/dist/f0.js +16453 -15755
  20. package/dist/i18n-provider-defaults.d.ts +16 -6
  21. package/dist/i18n-provider-defaults.js +11 -1
  22. package/dist/index-C3HrVTrD.js +4 -0
  23. package/dist/{index-B9tGQBrU.js → index-CBvQMzjP.js} +3 -3
  24. package/dist/{pdfWorker-Bb9OLhh-.js → pdfWorker-BpY_xYql.js} +2 -2
  25. package/dist/styles.css +1 -1
  26. package/package.json +1 -1
  27. package/dist/index-DfvLN3Ea.js +0 -4
@@ -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-x0HG1lL2.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-D9QM6A5c.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-DTpaXpXW.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./experimental-AwqVvQnQ.js";
2
+ import { m } from "./experimental-BsGKnyna.js";
3
3
  import { useRef as l, useEffect as i, useState as b } from "react";
4
4
  const k = "https://tiles.openfreemap.org/styles/positron", y = "https://tiles.openfreemap.org/styles/dark", R = 15, d = (n) => {
5
5
  const [c, s] = b(!1);
@@ -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-x0HG1lL2.js";
3
+ import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-D9QM6A5c.js";
4
4
  import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
5
- import { u as _, D as j } from "./DocumentToolbar-C73oFj5j.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-CYIgumvP.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-x0HG1lL2.js";
4
- import { u as y, D as g } from "./DocumentToolbar-C73oFj5j.js";
3
+ import { u as x, S as p, p as w } from "./F0CanvasPanel-D9QM6A5c.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-CYIgumvP.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
@@ -527,6 +527,12 @@ declare type AiChatProviderReturnValue = {
527
527
  */
528
528
  processDroppedFiles: (files: File[]) => void;
529
529
  /* Excluded from this release type: setProcessDroppedFilesFunction */
530
+ /**
531
+ * Move focus into the mounted chat composer, or queue it until mount.
532
+ * Returns whether focus moved synchronously.
533
+ */
534
+ focusChatInput: () => boolean;
535
+ /* Excluded from this release type: setFocusChatInputFunction */
530
536
  /**
531
537
  * Pre-loaded context shown as an empty state in the chat.
532
538
  * Prepended to the first user message as `<pending-context>`.
@@ -791,6 +797,7 @@ export declare const aiTranslations: {
791
797
  readonly exporting: "Exporting…";
792
798
  };
793
799
  readonly dashboardItem: {
800
+ readonly askOne: "Ask One";
794
801
  readonly chartType: "Chart type";
795
802
  readonly errorTitle: "Error loading data";
796
803
  readonly retry: "Retry";
@@ -823,6 +830,7 @@ export declare const aiTranslations: {
823
830
  readonly fileUploadBlockedSubmit: "Your message wasn't sent because one of the attachments failed to upload. Remove it or retry.";
824
831
  readonly tooManyFilesError: "You can attach up to {{maxFiles}} files at once";
825
832
  readonly dropFilesHere: "Drop your files here";
833
+ readonly dropWidgetToDiscuss: "Drop here to discuss with One";
826
834
  readonly reply: "Reply";
827
835
  readonly removeQuote: "Remove quote";
828
836
  readonly clarifyingQuestion: {
@@ -2377,6 +2385,8 @@ export declare const defaultTranslations: {
2377
2385
  readonly hideAllColumns: "Hide all";
2378
2386
  readonly addColumn: "Add column";
2379
2387
  readonly removeColumn: "Remove column";
2388
+ readonly lockColumn: "Lock column: {{label}}";
2389
+ readonly unlockColumn: "Unlock column: {{label}}";
2380
2390
  };
2381
2391
  };
2382
2392
  readonly editableTable: {
@@ -2582,6 +2592,13 @@ export declare const defaultTranslations: {
2582
2592
  readonly exporting: "Exporting…";
2583
2593
  };
2584
2594
  readonly dashboardItem: {
2595
+ /**
2596
+ * Deliberately not `ai.ask` ("Ask One" by default here, but hosts
2597
+ * override it — factorial renders it as plain "Ask" for the widget and
2598
+ * insight-card buttons). This menu entry needs the product name spelled
2599
+ * out, so it owns its own key.
2600
+ */
2601
+ readonly askOne: "Ask One";
2585
2602
  readonly chartType: "Chart type";
2586
2603
  readonly errorTitle: "Error loading data";
2587
2604
  readonly retry: "Retry";
@@ -2614,6 +2631,7 @@ export declare const defaultTranslations: {
2614
2631
  readonly fileUploadBlockedSubmit: "Your message wasn't sent because one of the attachments failed to upload. Remove it or retry.";
2615
2632
  readonly tooManyFilesError: "You can attach up to {{maxFiles}} files at once";
2616
2633
  readonly dropFilesHere: "Drop your files here";
2634
+ readonly dropWidgetToDiscuss: "Drop here to discuss with One";
2617
2635
  readonly reply: "Reply";
2618
2636
  readonly removeQuote: "Remove quote";
2619
2637
  readonly clarifyingQuestion: {
@@ -3210,11 +3228,17 @@ declare type DropdownItemSeparator = {
3210
3228
  type: "separator";
3211
3229
  };
3212
3230
 
3213
- export declare const DropOverlay: ({ visible, onFilesDropped }: DropOverlayProps) => JSX_2.Element;
3231
+ export declare const DropOverlay: ({ visible, onFilesDropped, mode, }: DropOverlayProps) => JSX_2.Element;
3214
3232
 
3215
3233
  declare interface DropOverlayProps {
3216
3234
  visible: boolean;
3217
- onFilesDropped: (files: File[]) => void;
3235
+ /**
3236
+ * Handles a native file drop. Omit for `mode="discuss"`, where the drag is a
3237
+ * pointer gesture and carries no `dataTransfer`.
3238
+ */
3239
+ onFilesDropped?: (files: File[]) => void;
3240
+ /** Which drop the overlay is inviting. */
3241
+ mode?: "files" | "discuss";
3218
3242
  }
3219
3243
 
3220
3244
  /**
@@ -5740,10 +5764,8 @@ declare module "@tiptap/core" {
5740
5764
 
5741
5765
  declare module "@tiptap/core" {
5742
5766
  interface Commands<ReturnType> {
5743
- videoEmbed: {
5744
- setVideoEmbed: (options: {
5745
- src: string;
5746
- }) => ReturnType;
5767
+ transcript: {
5768
+ insertTranscript: (data: TranscriptData) => ReturnType;
5747
5769
  };
5748
5770
  }
5749
5771
  }
@@ -5751,8 +5773,10 @@ declare module "@tiptap/core" {
5751
5773
 
5752
5774
  declare module "@tiptap/core" {
5753
5775
  interface Commands<ReturnType> {
5754
- transcript: {
5755
- insertTranscript: (data: TranscriptData) => ReturnType;
5776
+ videoEmbed: {
5777
+ setVideoEmbed: (options: {
5778
+ src: string;
5779
+ }) => ReturnType;
5756
5780
  };
5757
5781
  }
5758
5782
  }
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-x0HG1lL2.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-D9QM6A5c.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-O9iKzCzA.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-B_jVVBb3.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -348,10 +348,8 @@ declare module "@tiptap/core" {
348
348
 
349
349
  declare module "@tiptap/core" {
350
350
  interface Commands<ReturnType> {
351
- videoEmbed: {
352
- setVideoEmbed: (options: {
353
- src: string;
354
- }) => ReturnType;
351
+ transcript: {
352
+ insertTranscript: (data: TranscriptData) => ReturnType;
355
353
  };
356
354
  }
357
355
  }
@@ -359,8 +357,10 @@ declare module "@tiptap/core" {
359
357
 
360
358
  declare module "@tiptap/core" {
361
359
  interface Commands<ReturnType> {
362
- transcript: {
363
- insertTranscript: (data: TranscriptData) => ReturnType;
360
+ videoEmbed: {
361
+ setVideoEmbed: (options: {
362
+ src: string;
363
+ }) => ReturnType;
364
364
  };
365
365
  }
366
366
  }