@factorialco/f0-react 9.3.1 → 9.4.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-D4DN5xr2.js → ChatPdfThumbnail-BBt6-rXl.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-l1iabm-7.js → ChatPostComposerDialog-SaIhKHkT.js} +2 -2
  3. package/dist/{CoachmarkProvider-B1YG7W1t.js → CoachmarkProvider-CBe3NTRf.js} +28 -26
  4. package/dist/{DocumentToolbar-CmyNC2wp.js → DocumentToolbar-BN7KIzkf.js} +1 -1
  5. package/dist/{DocxViewer-de6X1Pon.js → DocxViewer-DIlrhbrY.js} +1 -1
  6. package/dist/{F0DocumentViewer-DTY1Upm6.js → F0DocumentViewer-Kffu1zsI.js} +2 -2
  7. package/dist/{F0Map-Ib5OFPWf.js → F0Map-CKMlYGGC.js} +2 -2
  8. package/dist/{F0VideoPlayer-B7zpyW3g.js → F0VideoPlayer-B1dfglRq.js} +1 -1
  9. package/dist/{SheetViewer-BO_8Vz3d.js → SheetViewer-DVXM5Oly.js} +2 -2
  10. package/dist/{TextViewer-BGDy0VE3.js → TextViewer-upCa213i.js} +1 -1
  11. package/dist/ai.d.ts +22 -22
  12. package/dist/component-status.d.ts +22 -22
  13. package/dist/component-status.js +1 -1
  14. package/dist/{experimental-CJxYO3TS.js → experimental-DkeyDyS_.js} +6 -6
  15. package/dist/experimental.d.ts +22 -22
  16. package/dist/experimental.js +3 -3
  17. package/dist/f0.d.ts +22 -22
  18. package/dist/f0.js +6 -6
  19. package/dist/i18n-provider-defaults.d.ts +22 -22
  20. package/dist/index-B4EAbNDB.js +8 -0
  21. package/dist/{index-B4YJYrDq.js → index-BGT2ggPa.js} +2 -2
  22. package/dist/index-BH2v80tU.js +4 -0
  23. package/dist/{index-B_CHe0P4.js → index-Ch-sJvZ_.js} +1 -1
  24. package/dist/{pdfWorker-Ddggmoi-.js → pdfWorker-D14RlFoX.js} +1 -1
  25. package/package.json +1 -1
  26. package/dist/index-5n9cK7fI.js +0 -4
  27. package/dist/index-D3eRTe5Y.js +0 -8
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { D as l, P as d, e as s } from "./pdfWorker-Ddggmoi-.js";
2
+ import { D as l, P as d, e as s } from "./pdfWorker-D14RlFoX.js";
3
3
  s();
4
4
  const f = ({
5
5
  url: n,
@@ -1,8 +1,8 @@
1
1
  import { jsx as c, jsxs as M } from "react/jsx-runtime";
2
2
  import { useRef as R, useState as n, useCallback as v } from "react";
3
- import { F as _ } from "./CoachmarkProvider-B1YG7W1t.js";
3
+ import { F as _ } from "./CoachmarkProvider-CBe3NTRf.js";
4
4
  import { u as O, n as x } from "./F0CanvasPanel-DKFZlybo.js";
5
- import { u as S, a as B, s as P, n as L } from "./experimental-CJxYO3TS.js";
5
+ import { u as S, a as B, s as P, n as L } from "./experimental-DkeyDyS_.js";
6
6
  const N = 140, j = 1e4, Y = ({
7
7
  onClose: d,
8
8
  searchMembers: f
@@ -12210,7 +12210,7 @@ const UD = Qe(
12210
12210
  }, d) => {
12211
12211
  const f = Re(), { locale: u } = oa(), [h, p] = J(
12212
12212
  () => n.toString(e?.value, f, l ?? "long", u)
12213
- ), [y, g] = J(!1);
12213
+ ), [y, g] = J(null), v = y !== null && y.range === e?.value;
12214
12214
  ie(() => {
12215
12215
  p(
12216
12216
  n.toString(
@@ -12221,52 +12221,54 @@ const UD = Qe(
12221
12221
  )
12222
12222
  );
12223
12223
  }, [e, n, f, l, u]);
12224
- const v = (_) => xj(_, n, {
12224
+ const b = (C) => xj(C, n, {
12225
12225
  minDate: r,
12226
12226
  maxDate: o
12227
- }), b = (_, C) => {
12228
- if (_ === "") {
12227
+ }), w = (C, E) => {
12228
+ if (C === "") {
12229
12229
  t?.({
12230
12230
  value: void 0,
12231
- granularity: C.key
12232
- }), g(c.required ?? !1);
12231
+ granularity: E.key
12232
+ }), g(
12233
+ c.required && e?.value !== void 0 ? { range: void 0 } : null
12234
+ );
12233
12235
  return;
12234
12236
  }
12235
- const E = C.toString(
12237
+ const S = E.toString(
12236
12238
  e?.value,
12237
12239
  f,
12238
12240
  l ?? "long",
12239
12241
  u
12240
- ), S = C.toRange(
12241
- _ === E ? e?.value : C.fromString(_, f, u)
12242
+ ), A = E.toRange(
12243
+ C === S ? e?.value : E.fromString(C, f, u)
12242
12244
  );
12243
- S && (v(S?.from) && v(S?.to) ? (t?.({
12244
- value: S,
12245
- granularity: C.key
12246
- }), g(!1)) : g(!0));
12247
- }, w = () => {
12248
- b(h, n);
12249
- }, x = (_) => {
12250
- p(_);
12251
- }, k = c.placeholder ?? n.placeholder();
12245
+ A && (b(A?.from) && b(A?.to) ? (t?.({
12246
+ value: A,
12247
+ granularity: E.key
12248
+ }), g(null)) : g({ range: e?.value }));
12249
+ }, x = () => {
12250
+ w(h, n);
12251
+ }, k = (C) => {
12252
+ p(C);
12253
+ }, _ = c.placeholder ?? n.placeholder();
12252
12254
  return /* @__PURE__ */ m(
12253
12255
  OO,
12254
12256
  {
12255
12257
  ...c,
12256
- placeholder: k,
12258
+ placeholder: _,
12257
12259
  icon: a ? xh("date") : void 0,
12258
12260
  ref: d,
12259
12261
  onFocus: () => i?.(!0),
12260
12262
  onClear: () => {
12261
- s?.(), p(""), b("", n);
12263
+ s?.(), p(""), w("", n);
12262
12264
  },
12263
- onKeyDown: (_) => {
12264
- _.key === "Enter" && w();
12265
+ onKeyDown: (C) => {
12266
+ C.key === "Enter" && x();
12265
12267
  },
12266
12268
  type: "text",
12267
- onChange: x,
12268
- error: y || c.error,
12269
- onBlur: w,
12269
+ onChange: k,
12270
+ error: v || c.error,
12271
+ onBlur: x,
12270
12272
  value: h,
12271
12273
  onClickContent: () => i?.(!0)
12272
12274
  }
@@ -39750,7 +39752,7 @@ const A0 = ({
39750
39752
  }
39751
39753
  );
39752
39754
  }, Xhe = vz(
39753
- () => import("./index-B4YJYrDq.js").then((e) => ({ default: e.MapCollection }))
39755
+ () => import("./index-BGT2ggPa.js").then((e) => ({ default: e.MapCollection }))
39754
39756
  ), Xs = {
39755
39757
  table: {
39756
39758
  name: "Table",
@@ -1,7 +1,7 @@
1
1
  import { jsxs as m, jsx as l } from "react/jsx-runtime";
2
2
  import { useState as w, useCallback as d, useMemo as x } from "react";
3
3
  import { u as C, j as S, k, l as N, m as h } from "./F0CanvasPanel-DKFZlybo.js";
4
- import { n as v, b as F, f as $, t as j, c as b, T as n, d as D } from "./F0DocumentViewer-DTY1Upm6.js";
4
+ import { n as v, b as F, f as $, t as j, c as b, T as n, d as D } from "./F0DocumentViewer-Kffu1zsI.js";
5
5
  const g = () => {
6
6
  const [t, e] = w(1), c = d(
7
7
  () => e((o) => v(o) ?? o),
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import { useRef as b, useState as p, useEffect as w } from "react";
3
3
  import { r as v } from "./renderDocx-E222oLTQ.js";
4
4
  import { u as x, S as y } from "./F0CanvasPanel-DKFZlybo.js";
5
- import { u as k, D } from "./DocumentToolbar-CmyNC2wp.js";
5
+ import { u as k, D } from "./DocumentToolbar-BN7KIzkf.js";
6
6
  const z = ({
7
7
  url: l,
8
8
  filename: g,
@@ -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
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-DKFZlybo.js";
4
- import { e as $e, D as Be, P as Me } from "./pdfWorker-Ddggmoi-.js";
4
+ import { e as $e, D as Be, P as Me } from "./pdfWorker-D14RlFoX.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-BO_8Vz3d.js")), ot = X(() => import("./DocxViewer-de6X1Pon.js")), nt = X(() => import("./TextViewer-BGDy0VE3.js")), se = 48, rt = 150, ue = ce((e, t) => {
275
+ const tt = X(() => import("./SheetViewer-DVXM5Oly.js")), ot = X(() => import("./DocxViewer-DIlrhbrY.js")), nt = X(() => import("./TextViewer-upCa213i.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,6 +1,6 @@
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-B1YG7W1t.js";
3
+ import { c as Zn, d as Kn, e as qn } from "./CoachmarkProvider-CBe3NTRf.js";
4
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-DKFZlybo.js";
5
5
  import { d as D, f as ra } from "./tooltip-VHD1kZdF.js";
6
6
  import { createPortal as ia } from "react-dom";
@@ -1527,7 +1527,7 @@ const Lo = {
1527
1527
  }, []);
1528
1528
  return j(() => () => a.current?.disconnect(), []), { containerRef: l, isDark: e };
1529
1529
  }, Ya = {
1530
- maplibre: () => import("./index-B_CHe0P4.js").then((e) => e.createMaplibreAdapter),
1530
+ maplibre: () => import("./index-Ch-sJvZ_.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.
@@ -3,7 +3,7 @@ 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-B1YG7W1t.js";
6
+ import { b as vt } from "./CoachmarkProvider-CBe3NTRf.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
3
  import { u as F, T as S, h as T, S as V, i as A } from "./F0CanvasPanel-DKFZlybo.js";
4
- import { d as D } from "./F0DocumentViewer-DTY1Upm6.js";
4
+ import { d as D } from "./F0DocumentViewer-Kffu1zsI.js";
5
5
  import { f as L, c as R } from "./sheetPreview-DC9RRwv0.js";
6
- import { u as z, D as U } from "./DocumentToolbar-CmyNC2wp.js";
6
+ import { u as z, D as U } from "./DocumentToolbar-BN7KIzkf.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
3
  import { u as w, S as y, p as g } from "./F0CanvasPanel-DKFZlybo.js";
4
- import { u as k, D as v } from "./DocumentToolbar-CmyNC2wp.js";
4
+ import { u as k, D as v } from "./DocumentToolbar-BN7KIzkf.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
@@ -6844,17 +6844,6 @@ declare namespace Calendar {
6844
6844
  }
6845
6845
 
6846
6846
 
6847
- declare module "@tiptap/core" {
6848
- interface Commands<ReturnType> {
6849
- indent: {
6850
- setIndent: (level: number) => ReturnType;
6851
- unsetIndent: () => ReturnType;
6852
- outdent: () => ReturnType;
6853
- };
6854
- }
6855
- }
6856
-
6857
-
6858
6847
  declare module "@tiptap/core" {
6859
6848
  interface Commands<ReturnType> {
6860
6849
  enhanceHighlight: {
@@ -6869,9 +6858,8 @@ declare module "@tiptap/core" {
6869
6858
 
6870
6859
  declare module "@tiptap/core" {
6871
6860
  interface Commands<ReturnType> {
6872
- fontSize: {
6873
- setFontSize: (fontSize: string) => ReturnType;
6874
- unsetFontSize: () => ReturnType;
6861
+ moodTracker: {
6862
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
6875
6863
  };
6876
6864
  }
6877
6865
  }
@@ -6889,10 +6877,8 @@ declare module "@tiptap/core" {
6889
6877
 
6890
6878
  declare module "@tiptap/core" {
6891
6879
  interface Commands<ReturnType> {
6892
- videoEmbed: {
6893
- setVideoEmbed: (options: {
6894
- src: string;
6895
- }) => ReturnType;
6880
+ transcript: {
6881
+ insertTranscript: (data: TranscriptData) => ReturnType;
6896
6882
  };
6897
6883
  }
6898
6884
  }
@@ -6900,8 +6886,9 @@ declare module "@tiptap/core" {
6900
6886
 
6901
6887
  declare module "@tiptap/core" {
6902
6888
  interface Commands<ReturnType> {
6903
- transcript: {
6904
- insertTranscript: (data: TranscriptData) => ReturnType;
6889
+ fontSize: {
6890
+ setFontSize: (fontSize: string) => ReturnType;
6891
+ unsetFontSize: () => ReturnType;
6905
6892
  };
6906
6893
  }
6907
6894
  }
@@ -6909,8 +6896,21 @@ declare module "@tiptap/core" {
6909
6896
 
6910
6897
  declare module "@tiptap/core" {
6911
6898
  interface Commands<ReturnType> {
6912
- moodTracker: {
6913
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
6899
+ indent: {
6900
+ setIndent: (level: number) => ReturnType;
6901
+ unsetIndent: () => ReturnType;
6902
+ outdent: () => ReturnType;
6903
+ };
6904
+ }
6905
+ }
6906
+
6907
+
6908
+ declare module "@tiptap/core" {
6909
+ interface Commands<ReturnType> {
6910
+ videoEmbed: {
6911
+ setVideoEmbed: (options: {
6912
+ src: string;
6913
+ }) => ReturnType;
6914
6914
  };
6915
6915
  }
6916
6916
  }
@@ -305,17 +305,6 @@ declare namespace Calendar {
305
305
  }
306
306
 
307
307
 
308
- declare module "@tiptap/core" {
309
- interface Commands<ReturnType> {
310
- indent: {
311
- setIndent: (level: number) => ReturnType;
312
- unsetIndent: () => ReturnType;
313
- outdent: () => ReturnType;
314
- };
315
- }
316
- }
317
-
318
-
319
308
  declare module "@tiptap/core" {
320
309
  interface Commands<ReturnType> {
321
310
  enhanceHighlight: {
@@ -330,9 +319,8 @@ declare module "@tiptap/core" {
330
319
 
331
320
  declare module "@tiptap/core" {
332
321
  interface Commands<ReturnType> {
333
- fontSize: {
334
- setFontSize: (fontSize: string) => ReturnType;
335
- unsetFontSize: () => ReturnType;
322
+ moodTracker: {
323
+ insertMoodTracker: (data: MoodTrackerData) => ReturnType;
336
324
  };
337
325
  }
338
326
  }
@@ -350,10 +338,8 @@ declare module "@tiptap/core" {
350
338
 
351
339
  declare module "@tiptap/core" {
352
340
  interface Commands<ReturnType> {
353
- videoEmbed: {
354
- setVideoEmbed: (options: {
355
- src: string;
356
- }) => ReturnType;
341
+ transcript: {
342
+ insertTranscript: (data: TranscriptData) => ReturnType;
357
343
  };
358
344
  }
359
345
  }
@@ -361,8 +347,9 @@ declare module "@tiptap/core" {
361
347
 
362
348
  declare module "@tiptap/core" {
363
349
  interface Commands<ReturnType> {
364
- transcript: {
365
- insertTranscript: (data: TranscriptData) => ReturnType;
350
+ fontSize: {
351
+ setFontSize: (fontSize: string) => ReturnType;
352
+ unsetFontSize: () => ReturnType;
366
353
  };
367
354
  }
368
355
  }
@@ -370,8 +357,21 @@ declare module "@tiptap/core" {
370
357
 
371
358
  declare module "@tiptap/core" {
372
359
  interface Commands<ReturnType> {
373
- moodTracker: {
374
- insertMoodTracker: (data: MoodTrackerData) => ReturnType;
360
+ indent: {
361
+ setIndent: (level: number) => ReturnType;
362
+ unsetIndent: () => ReturnType;
363
+ outdent: () => ReturnType;
364
+ };
365
+ }
366
+ }
367
+
368
+
369
+ declare module "@tiptap/core" {
370
+ interface Commands<ReturnType> {
371
+ videoEmbed: {
372
+ setVideoEmbed: (options: {
373
+ src: string;
374
+ }) => ReturnType;
375
375
  };
376
376
  }
377
377
  }