@factorialco/f0-react 9.4.0 → 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.
- package/dist/{ChatPdfThumbnail-D4DN5xr2.js → ChatPdfThumbnail-BBt6-rXl.js} +1 -1
- package/dist/{ChatPostComposerDialog-l1iabm-7.js → ChatPostComposerDialog-SaIhKHkT.js} +2 -2
- package/dist/{CoachmarkProvider-B1YG7W1t.js → CoachmarkProvider-CBe3NTRf.js} +28 -26
- package/dist/{DocumentToolbar-CmyNC2wp.js → DocumentToolbar-BN7KIzkf.js} +1 -1
- package/dist/{DocxViewer-de6X1Pon.js → DocxViewer-DIlrhbrY.js} +1 -1
- package/dist/{F0DocumentViewer-DTY1Upm6.js → F0DocumentViewer-Kffu1zsI.js} +2 -2
- package/dist/{F0Map-Ib5OFPWf.js → F0Map-CKMlYGGC.js} +2 -2
- package/dist/{F0VideoPlayer-B7zpyW3g.js → F0VideoPlayer-B1dfglRq.js} +1 -1
- package/dist/{SheetViewer-BO_8Vz3d.js → SheetViewer-DVXM5Oly.js} +2 -2
- package/dist/{TextViewer-BGDy0VE3.js → TextViewer-upCa213i.js} +1 -1
- package/dist/ai.d.ts +14 -14
- package/dist/component-status.d.ts +14 -14
- package/dist/component-status.js +1 -1
- package/dist/{experimental-CJxYO3TS.js → experimental-DkeyDyS_.js} +6 -6
- package/dist/experimental.d.ts +14 -14
- package/dist/experimental.js +3 -3
- package/dist/f0.d.ts +14 -14
- package/dist/f0.js +6 -6
- package/dist/i18n-provider-defaults.d.ts +14 -14
- package/dist/index-B4EAbNDB.js +8 -0
- package/dist/{index-B4YJYrDq.js → index-BGT2ggPa.js} +2 -2
- package/dist/index-BH2v80tU.js +4 -0
- package/dist/{index-B_CHe0P4.js → index-Ch-sJvZ_.js} +1 -1
- package/dist/{pdfWorker-Ddggmoi-.js → pdfWorker-D14RlFoX.js} +1 -1
- package/package.json +1 -1
- package/dist/index-5n9cK7fI.js +0 -4
- package/dist/index-D3eRTe5Y.js +0 -8
|
@@ -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-
|
|
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-
|
|
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(
|
|
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
|
|
12224
|
+
const b = (C) => xj(C, n, {
|
|
12225
12225
|
minDate: r,
|
|
12226
12226
|
maxDate: o
|
|
12227
|
-
}),
|
|
12228
|
-
if (
|
|
12227
|
+
}), w = (C, E) => {
|
|
12228
|
+
if (C === "") {
|
|
12229
12229
|
t?.({
|
|
12230
12230
|
value: void 0,
|
|
12231
|
-
granularity:
|
|
12232
|
-
}), g(
|
|
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
|
|
12237
|
+
const S = E.toString(
|
|
12236
12238
|
e?.value,
|
|
12237
12239
|
f,
|
|
12238
12240
|
l ?? "long",
|
|
12239
12241
|
u
|
|
12240
|
-
),
|
|
12241
|
-
|
|
12242
|
+
), A = E.toRange(
|
|
12243
|
+
C === S ? e?.value : E.fromString(C, f, u)
|
|
12242
12244
|
);
|
|
12243
|
-
|
|
12244
|
-
value:
|
|
12245
|
-
granularity:
|
|
12246
|
-
}), g(
|
|
12247
|
-
},
|
|
12248
|
-
|
|
12249
|
-
},
|
|
12250
|
-
p(
|
|
12251
|
-
},
|
|
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:
|
|
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(""),
|
|
12263
|
+
s?.(), p(""), w("", n);
|
|
12262
12264
|
},
|
|
12263
|
-
onKeyDown: (
|
|
12264
|
-
|
|
12265
|
+
onKeyDown: (C) => {
|
|
12266
|
+
C.key === "Enter" && x();
|
|
12265
12267
|
},
|
|
12266
12268
|
type: "text",
|
|
12267
|
-
onChange:
|
|
12268
|
-
error:
|
|
12269
|
-
onBlur:
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
@@ -6858,9 +6858,8 @@ declare module "@tiptap/core" {
|
|
|
6858
6858
|
|
|
6859
6859
|
declare module "@tiptap/core" {
|
|
6860
6860
|
interface Commands<ReturnType> {
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
6861
|
+
moodTracker: {
|
|
6862
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
6864
6863
|
};
|
|
6865
6864
|
}
|
|
6866
6865
|
}
|
|
@@ -6868,9 +6867,9 @@ declare module "@tiptap/core" {
|
|
|
6868
6867
|
|
|
6869
6868
|
declare module "@tiptap/core" {
|
|
6870
6869
|
interface Commands<ReturnType> {
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6870
|
+
aiBlock: {
|
|
6871
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
6872
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
6874
6873
|
};
|
|
6875
6874
|
}
|
|
6876
6875
|
}
|
|
@@ -6878,10 +6877,8 @@ declare module "@tiptap/core" {
|
|
|
6878
6877
|
|
|
6879
6878
|
declare module "@tiptap/core" {
|
|
6880
6879
|
interface Commands<ReturnType> {
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
unsetIndent: () => ReturnType;
|
|
6884
|
-
outdent: () => ReturnType;
|
|
6880
|
+
transcript: {
|
|
6881
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
6885
6882
|
};
|
|
6886
6883
|
}
|
|
6887
6884
|
}
|
|
@@ -6889,8 +6886,9 @@ declare module "@tiptap/core" {
|
|
|
6889
6886
|
|
|
6890
6887
|
declare module "@tiptap/core" {
|
|
6891
6888
|
interface Commands<ReturnType> {
|
|
6892
|
-
|
|
6893
|
-
|
|
6889
|
+
fontSize: {
|
|
6890
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
6891
|
+
unsetFontSize: () => ReturnType;
|
|
6894
6892
|
};
|
|
6895
6893
|
}
|
|
6896
6894
|
}
|
|
@@ -6898,8 +6896,10 @@ declare module "@tiptap/core" {
|
|
|
6898
6896
|
|
|
6899
6897
|
declare module "@tiptap/core" {
|
|
6900
6898
|
interface Commands<ReturnType> {
|
|
6901
|
-
|
|
6902
|
-
|
|
6899
|
+
indent: {
|
|
6900
|
+
setIndent: (level: number) => ReturnType;
|
|
6901
|
+
unsetIndent: () => ReturnType;
|
|
6902
|
+
outdent: () => ReturnType;
|
|
6903
6903
|
};
|
|
6904
6904
|
}
|
|
6905
6905
|
}
|
|
@@ -319,9 +319,8 @@ declare module "@tiptap/core" {
|
|
|
319
319
|
|
|
320
320
|
declare module "@tiptap/core" {
|
|
321
321
|
interface Commands<ReturnType> {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
322
|
+
moodTracker: {
|
|
323
|
+
insertMoodTracker: (data: MoodTrackerData) => ReturnType;
|
|
325
324
|
};
|
|
326
325
|
}
|
|
327
326
|
}
|
|
@@ -329,9 +328,9 @@ declare module "@tiptap/core" {
|
|
|
329
328
|
|
|
330
329
|
declare module "@tiptap/core" {
|
|
331
330
|
interface Commands<ReturnType> {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
331
|
+
aiBlock: {
|
|
332
|
+
insertAIBlock: (data: AIBlockData, config: AIBlockConfig) => ReturnType;
|
|
333
|
+
executeAIAction: (actionType: string, config: AIBlockConfig) => ReturnType;
|
|
335
334
|
};
|
|
336
335
|
}
|
|
337
336
|
}
|
|
@@ -339,10 +338,8 @@ declare module "@tiptap/core" {
|
|
|
339
338
|
|
|
340
339
|
declare module "@tiptap/core" {
|
|
341
340
|
interface Commands<ReturnType> {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
unsetIndent: () => ReturnType;
|
|
345
|
-
outdent: () => ReturnType;
|
|
341
|
+
transcript: {
|
|
342
|
+
insertTranscript: (data: TranscriptData) => ReturnType;
|
|
346
343
|
};
|
|
347
344
|
}
|
|
348
345
|
}
|
|
@@ -350,8 +347,9 @@ declare module "@tiptap/core" {
|
|
|
350
347
|
|
|
351
348
|
declare module "@tiptap/core" {
|
|
352
349
|
interface Commands<ReturnType> {
|
|
353
|
-
|
|
354
|
-
|
|
350
|
+
fontSize: {
|
|
351
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
352
|
+
unsetFontSize: () => 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
|
-
|
|
363
|
-
|
|
360
|
+
indent: {
|
|
361
|
+
setIndent: (level: number) => ReturnType;
|
|
362
|
+
unsetIndent: () => ReturnType;
|
|
363
|
+
outdent: () => ReturnType;
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
}
|