@factorialco/f0-react 9.6.0 → 9.7.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.
Files changed (31) hide show
  1. package/dist/{ChatPdfThumbnail-BJNuH3Kk.js → ChatPdfThumbnail-yraFe2ng.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-DXeFY7WG.js → ChatPostComposerDialog-BblH-Tcx.js} +3 -3
  3. package/dist/{CoachmarkProvider-BqGMYwuU.js → CoachmarkProvider--PuyIWtf.js} +14979 -14671
  4. package/dist/{DocumentToolbar-BASAjrEM.js → DocumentToolbar-DYdZp2dy.js} +2 -2
  5. package/dist/{DocxViewer-Cm764lTQ.js → DocxViewer-CYCgMBas.js} +2 -2
  6. package/dist/{F0AiProcessingOverlay-i0Yoa_vU.js → F0AiProcessingOverlay-BGBmeXP8.js} +833 -852
  7. package/dist/{F0CanvasPanel-9FFNyLel.js → F0CanvasPanel-ItEQhrkL.js} +11296 -11277
  8. package/dist/{F0DocumentViewer-X9uTRuKM.js → F0DocumentViewer-D_NRhkaf.js} +3 -3
  9. package/dist/{F0Map-BKZv02zL.js → F0Map-xGynCAG0.js} +4 -4
  10. package/dist/{F0VideoPlayer-BjcAExI-.js → F0VideoPlayer-BXv9qSDV.js} +2 -2
  11. package/dist/{SheetViewer-DhhRBQv1.js → SheetViewer-CWJ7YC8p.js} +3 -3
  12. package/dist/{TextViewer-CFpaJf1P.js → TextViewer-ed5C0tNK.js} +2 -2
  13. package/dist/ai.d.ts +18 -18
  14. package/dist/ai.js +2 -2
  15. package/dist/component-status.d.ts +18 -18
  16. package/dist/component-status.js +1 -1
  17. package/dist/{experimental-CHXAROSJ.js → experimental-0__hxgY-.js} +2091 -2080
  18. package/dist/experimental.d.ts +172 -18
  19. package/dist/experimental.js +266 -265
  20. package/dist/f0.d.ts +30 -30
  21. package/dist/f0.js +9724 -10031
  22. package/dist/i18n-provider-defaults.d.ts +18 -18
  23. package/dist/{index-D4KyAsr3.js → index-B7p223Ae.js} +2 -2
  24. package/dist/index-C87L5a9L.js +8 -0
  25. package/dist/index-DeRPe3lA.js +4 -0
  26. package/dist/{index-BwVOsDhQ.js → index-PFXXhVLQ.js} +3 -3
  27. package/dist/{index-B0pkWkPs.js → index-cGDWPhTc.js} +1 -1
  28. package/dist/{pdfWorker-Dku13BrA.js → pdfWorker-DcgOJiCp.js} +2 -2
  29. package/package.json +1 -1
  30. package/dist/index-D0UOb_at.js +0 -8
  31. package/dist/index-blRNr67I.js +0 -4
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, jsxs as P } from "react/jsx-runtime";
2
2
  import { lazy as X, forwardRef as ce, Suspense as Ce, useState as U, useRef as A, useCallback as w, useMemo as ie, useEffect as V } from "react";
3
- import { S as E, A as _e, u as Y, B as Te, x as Le, j as Fe, k as De, l as Ve, E as Ee, m as He, G as Ue, H as We, J as Oe, K as je } from "./F0CanvasPanel-9FFNyLel.js";
4
- import { e as $e, D as Be, P as Me } from "./pdfWorker-Dku13BrA.js";
3
+ import { S as E, A as _e, u as Y, B as Te, x as Le, j as Fe, k as De, l as Ve, E as Ee, m as He, G as Ue, H as We, J as Oe, K as je } from "./F0CanvasPanel-ItEQhrkL.js";
4
+ import { e as $e, D as Be, P as Me } from "./pdfWorker-DcgOJiCp.js";
5
5
  import { d as G } from "./tooltip-VHD1kZdF.js";
6
6
  import { F as ze } from "./Printer-BD-FEi_2.js";
7
7
  import './F0DocumentViewer.css';const ut = [
@@ -272,7 +272,7 @@ import './F0DocumentViewer.css';const ut = [
272
272
  }), i;
273
273
  };
274
274
  $e();
275
- const tt = X(() => import("./SheetViewer-DhhRBQv1.js")), ot = X(() => import("./DocxViewer-Cm764lTQ.js")), nt = X(() => import("./TextViewer-CFpaJf1P.js")), se = 48, rt = 150, ue = ce((e, t) => {
275
+ const tt = X(() => import("./SheetViewer-CWJ7YC8p.js")), ot = X(() => import("./DocxViewer-CYCgMBas.js")), nt = X(() => import("./TextViewer-ed5C0tNK.js")), se = 48, rt = 150, ue = ce((e, t) => {
276
276
  const { kind: o = "pdf", mimeType: i, toolbar: l = "top", ...s } = e;
277
277
  if (o === "pdf")
278
278
  return /* @__PURE__ */ r(me, { ref: t, toolbar: l, ...s });
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, jsxs as B, Fragment as De } from "react/jsx-runtime";
2
2
  import { forwardRef as ie, useMemo as ze, useEffect as j, useState as E, useRef as N, useLayoutEffect as Hn, useContext as Xn, createContext as Yn, useCallback as O, useId as Un, useImperativeHandle as Gn } from "react";
3
- import { c as Zn, d as Kn, e as qn } from "./CoachmarkProvider-BqGMYwuU.js";
4
- import { z as we, a6 as Vn, w as en, a7 as nt, a8 as lt, a9 as Oe, aa as oe, ab as tn, u as se, A as Fe, ac as Jn, ad as Qn, ae as ea, j as ta, af as na, ag as nn, ah as aa, ai as oa, aj as Rt, ak as an, al as la } from "./F0CanvasPanel-9FFNyLel.js";
3
+ import { c as Zn, d as Kn, e as qn } from "./CoachmarkProvider--PuyIWtf.js";
4
+ import { z as we, a6 as Vn, w as en, a7 as nt, a8 as lt, a9 as Oe, aa as oe, ab as tn, u as se, A as Fe, ac as Jn, ad as Qn, ae as ea, j as ta, af as na, ag as nn, ah as aa, ai as oa, aj as Rt, ak as an, al as la } from "./F0CanvasPanel-ItEQhrkL.js";
5
5
  import { d as D, f as ra } from "./tooltip-VHD1kZdF.js";
6
6
  import { createPortal as ia } from "react-dom";
7
7
  const sa = (e, t) => ({
@@ -1527,11 +1527,11 @@ const Lo = {
1527
1527
  }, []);
1528
1528
  return j(() => () => a.current?.disconnect(), []), { containerRef: l, isDark: e };
1529
1529
  }, Ya = {
1530
- maplibre: () => import("./index-D4KyAsr3.js").then((e) => e.createMaplibreAdapter),
1530
+ maplibre: () => import("./index-B7p223Ae.js").then((e) => e.createMaplibreAdapter),
1531
1531
  // Google needs its script in the page before a map can be constructed, so the
1532
1532
  // loader resolves only once the API is up - which is what keeps the factory
1533
1533
  // itself synchronous for every engine.
1534
- google: (e) => import("./index-B0pkWkPs.js").then((t) => t.loadGoogleAdapter(e))
1534
+ google: (e) => import("./index-cGDWPhTc.js").then((t) => t.loadGoogleAdapter(e))
1535
1535
  }, at = /* @__PURE__ */ new Map(), Ua = (e, t) => {
1536
1536
  const a = at.get(e);
1537
1537
  if (a)
@@ -1,9 +1,9 @@
1
- import { u as W, L as je, M as Xe, A as $, N as Ge, O as Ze, Q as Ye, R as qe, U as Qe, V as Je, W as et, X as tt, Y as nt, Z as rt, _ as at, $ as ot, a0 as st, a1 as ye, a2 as it, a3 as Ce, m as ct, a4 as lt, a5 as dt, w as ut, G as ft, H as mt } from "./F0CanvasPanel-9FFNyLel.js";
1
+ import { u as W, L as je, M as Xe, A as $, N as Ge, O as Ze, Q as Ye, R as qe, U as Qe, V as Je, W as et, X as tt, Y as nt, Z as rt, _ as at, $ as ot, a0 as st, a1 as ye, a2 as it, a3 as Ce, m as ct, a4 as lt, a5 as dt, w as ut, G as ft, H as mt } from "./F0CanvasPanel-ItEQhrkL.js";
2
2
  import { jsxs as R, jsx as c } from "react/jsx-runtime";
3
3
  import { forwardRef as re, useId as pt, useState as x, useRef as F, useEffect as _, useMemo as Q, useCallback as A } from "react";
4
4
  import { d as H, f as de } from "./tooltip-VHD1kZdF.js";
5
5
  import { F as Pe, a as ht, b as gt } from "./VolumeMuted-UfTwt2zn.js";
6
- import { b as vt } from "./CoachmarkProvider-BqGMYwuU.js";
6
+ import { b as vt } from "./CoachmarkProvider--PuyIWtf.js";
7
7
  function Re(e) {
8
8
  return Array.isArray(e) && e.every(
9
9
  (t) => typeof t == "object" && t !== null && "locale" in t && "value" in t
@@ -1,9 +1,9 @@
1
1
  import { jsx as r, jsxs as n, Fragment as v } from "react/jsx-runtime";
2
2
  import { useState as m, useEffect as E } from "react";
3
- import { u as F, T as S, h as T, S as V, i as A } from "./F0CanvasPanel-9FFNyLel.js";
4
- import { d as D } from "./F0DocumentViewer-X9uTRuKM.js";
3
+ import { u as F, T as S, h as T, S as V, i as A } from "./F0CanvasPanel-ItEQhrkL.js";
4
+ import { d as D } from "./F0DocumentViewer-D_NRhkaf.js";
5
5
  import { f as L, c as R } from "./sheetPreview-DC9RRwv0.js";
6
- import { u as z, D as U } from "./DocumentToolbar-BASAjrEM.js";
6
+ import { u as z, D as U } from "./DocumentToolbar-DYdZp2dy.js";
7
7
  const w = 1e3, _ = 100, $ = ({
8
8
  url: a,
9
9
  filename: f,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as u, useEffect as x } from "react";
3
- import { u as w, S as y, p as g } from "./F0CanvasPanel-9FFNyLel.js";
4
- import { u as k, D as v } from "./DocumentToolbar-BASAjrEM.js";
3
+ import { u as w, S as y, p as g } from "./F0CanvasPanel-ItEQhrkL.js";
4
+ import { u as k, D as v } from "./DocumentToolbar-DYdZp2dy.js";
5
5
  const q = 2 * 1024 * 1024, N = [
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
@@ -6856,9 +6856,8 @@ declare namespace Calendar {
6856
6856
 
6857
6857
  declare module "@tiptap/core" {
6858
6858
  interface Commands<ReturnType> {
6859
- aiBlock: {
6860
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
6861
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
6859
+ transcript: {
6860
+ insertTranscript: (data: TranscriptData) => ReturnType;
6862
6861
  };
6863
6862
  }
6864
6863
  }
@@ -6866,11 +6865,10 @@ declare module "@tiptap/core" {
6866
6865
 
6867
6866
  declare module "@tiptap/core" {
6868
6867
  interface Commands<ReturnType> {
6869
- enhanceHighlight: {
6870
- setEnhanceHighlight: (from: number, to: number, options?: {
6871
- placeholder?: string;
6868
+ videoEmbed: {
6869
+ setVideoEmbed: (options: {
6870
+ src: string;
6872
6871
  }) => ReturnType;
6873
- clearEnhanceHighlight: () => ReturnType;
6874
6872
  };
6875
6873
  }
6876
6874
  }
@@ -6889,9 +6887,9 @@ declare module "@tiptap/core" {
6889
6887
 
6890
6888
  declare module "@tiptap/core" {
6891
6889
  interface Commands<ReturnType> {
6892
- fontSize: {
6893
- setFontSize: (fontSize: string) => ReturnType;
6894
- unsetFontSize: () => ReturnType;
6890
+ aiBlock: {
6891
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
6892
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
6895
6893
  };
6896
6894
  }
6897
6895
  }
@@ -6899,8 +6897,11 @@ declare module "@tiptap/core" {
6899
6897
 
6900
6898
  declare module "@tiptap/core" {
6901
6899
  interface Commands<ReturnType> {
6902
- moodTracker: {
6903
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
6900
+ enhanceHighlight: {
6901
+ setEnhanceHighlight: (from: number, to: number, options?: {
6902
+ placeholder?: string;
6903
+ }) => ReturnType;
6904
+ clearEnhanceHighlight: () => ReturnType;
6904
6905
  };
6905
6906
  }
6906
6907
  }
@@ -6908,10 +6909,9 @@ declare module "@tiptap/core" {
6908
6909
 
6909
6910
  declare module "@tiptap/core" {
6910
6911
  interface Commands<ReturnType> {
6911
- videoEmbed: {
6912
- setVideoEmbed: (options: {
6913
- src: string;
6914
- }) => ReturnType;
6912
+ fontSize: {
6913
+ setFontSize: (fontSize: string) => ReturnType;
6914
+ unsetFontSize: () => ReturnType;
6915
6915
  };
6916
6916
  }
6917
6917
  }
@@ -6919,8 +6919,8 @@ declare module "@tiptap/core" {
6919
6919
 
6920
6920
  declare module "@tiptap/core" {
6921
6921
  interface Commands<ReturnType> {
6922
- transcript: {
6923
- insertTranscript: (data: TranscriptData) => ReturnType;
6922
+ moodTracker: {
6923
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
6924
6924
  };
6925
6925
  }
6926
6926
  }
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 m } from "./F0CanvasPanel-9FFNyLel.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 m } from "./F0CanvasPanel-ItEQhrkL.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as g, C as p, t as v, s as I, v as T, y as S, B as f, l as y, i as x, q as b, E as k, G as B, p as H, r as L, j as M, e as O, g as V, k as w, F as D, T as z, w as E, h as G, a as j, n as q, z as R, m as U, o as J, D as K, b as N, f as Q, x as W, c as X, d as Y, u as Z } from "./F0AiProcessingOverlay-i0Yoa_vU.js";
3
+ import { A as g, C as p, t as v, s as I, v as T, y as S, B as f, l as y, i as x, q as b, E as k, G as B, p as H, r as L, j as M, e as O, g as V, k as w, F as D, T as z, w as E, h as G, a as j, n as q, z as R, m as U, o as J, D as K, b as N, f as Q, x as W, c as X, d as Y, u as Z } from "./F0AiProcessingOverlay-BGBmeXP8.js";
4
4
  export {
5
5
  g as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -307,9 +307,8 @@ declare namespace Calendar {
307
307
 
308
308
  declare module "@tiptap/core" {
309
309
  interface Commands<ReturnType> {
310
- aiBlock: {
311
- insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
312
- executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
310
+ transcript: {
311
+ insertTranscript: (data: TranscriptData) => ReturnType;
313
312
  };
314
313
  }
315
314
  }
@@ -317,11 +316,10 @@ declare module "@tiptap/core" {
317
316
 
318
317
  declare module "@tiptap/core" {
319
318
  interface Commands<ReturnType> {
320
- enhanceHighlight: {
321
- setEnhanceHighlight: (from: number, to: number, options?: {
322
- placeholder?: string;
319
+ videoEmbed: {
320
+ setVideoEmbed: (options: {
321
+ src: string;
323
322
  }) => ReturnType;
324
- clearEnhanceHighlight: () => ReturnType;
325
323
  };
326
324
  }
327
325
  }
@@ -340,9 +338,9 @@ declare module "@tiptap/core" {
340
338
 
341
339
  declare module "@tiptap/core" {
342
340
  interface Commands<ReturnType> {
343
- fontSize: {
344
- setFontSize: (fontSize: string) => ReturnType;
345
- unsetFontSize: () => ReturnType;
341
+ aiBlock: {
342
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
343
+ executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
346
344
  };
347
345
  }
348
346
  }
@@ -350,8 +348,11 @@ declare module "@tiptap/core" {
350
348
 
351
349
  declare module "@tiptap/core" {
352
350
  interface Commands<ReturnType> {
353
- moodTracker: {
354
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
351
+ enhanceHighlight: {
352
+ setEnhanceHighlight: (from: number, to: number, options?: {
353
+ placeholder?: string;
354
+ }) => ReturnType;
355
+ clearEnhanceHighlight: () => ReturnType;
355
356
  };
356
357
  }
357
358
  }
@@ -359,10 +360,9 @@ declare module "@tiptap/core" {
359
360
 
360
361
  declare module "@tiptap/core" {
361
362
  interface Commands<ReturnType> {
362
- videoEmbed: {
363
- setVideoEmbed: (options: {
364
- src: string;
365
- }) => ReturnType;
363
+ fontSize: {
364
+ setFontSize: (fontSize: string) => ReturnType;
365
+ unsetFontSize: () => ReturnType;
366
366
  };
367
367
  }
368
368
  }
@@ -370,8 +370,8 @@ declare module "@tiptap/core" {
370
370
 
371
371
  declare module "@tiptap/core" {
372
372
  interface Commands<ReturnType> {
373
- transcript: {
374
- insertTranscript: (data: TranscriptData) => ReturnType;
373
+ moodTracker: {
374
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
375
375
  };
376
376
  }
377
377
  }