@factorialco/f0-react 4.67.0 → 4.68.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.
- package/dist/{ChatPdfThumbnail-DdGaoAhx.js → ChatPdfThumbnail-CaG1phtP.js} +1 -1
- package/dist/{DocumentToolbar-BTKvzHAu.js → DocumentToolbar-DxRPtnyk.js} +2 -2
- package/dist/{DocxViewer-C8TSH4uj.js → DocxViewer-B_wA8l77.js} +2 -2
- package/dist/{F0AiProcessingOverlay-D4uoUT5u.js → F0AiProcessingOverlay-C0NmG1vV.js} +1396 -1579
- package/dist/{F0CanvasPanel-DxDzkDr0.js → F0CanvasPanel-BStowVw4.js} +555 -553
- package/dist/F0VideoPlayer-BWRlLaGW.js +1418 -0
- package/dist/{SheetViewer-L64AYlhM.js → SheetViewer-BioSNqUs.js} +2 -2
- package/dist/{TextViewer-DdteOLrX.js → TextViewer-BtNnw0eP.js} +2 -2
- package/dist/VolumeMuted-XL3dwOL-.js +189 -0
- package/dist/ai.d.ts +6 -0
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +126 -6
- package/dist/experimental.js +7060 -6188
- package/dist/f0.d.ts +6 -0
- package/dist/f0.js +14640 -16043
- package/dist/i18n-provider-defaults.d.ts +6 -0
- package/dist/i18n-provider-defaults.js +7 -1
- package/dist/{index-BvfA8BM8.js → index-BZPUbw4M.js} +1 -1
- package/dist/{index-CnX1kb-7.js → index-Cql9uxeA.js} +3 -3
- package/dist/index-D_vSP4tQ.js +4 -0
- package/dist/{pdfWorker-JxQes0dQ.js → pdfWorker-CMiWD9U2.js} +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -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-
|
|
3
|
+
import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-BStowVw4.js";
|
|
4
4
|
import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
|
|
5
|
-
import { u as _, D as j } from "./DocumentToolbar-
|
|
5
|
+
import { u as _, D as j } from "./DocumentToolbar-DxRPtnyk.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-
|
|
4
|
-
import { u as y, D as g } from "./DocumentToolbar-
|
|
3
|
+
import { u as x, S as p, p as w } from "./F0CanvasPanel-BStowVw4.js";
|
|
4
|
+
import { u as y, D as g } from "./DocumentToolbar-DxRPtnyk.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",
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as t } from "react";
|
|
3
|
+
const s = (r, e) => /* @__PURE__ */ n(
|
|
4
|
+
"svg",
|
|
5
|
+
{
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
fill: "none",
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
ref: e,
|
|
10
|
+
...r,
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ o(
|
|
13
|
+
"circle",
|
|
14
|
+
{
|
|
15
|
+
cx: 12,
|
|
16
|
+
cy: 12,
|
|
17
|
+
r: 8,
|
|
18
|
+
stroke: "currentColor",
|
|
19
|
+
vectorEffect: "non-scaling-stroke"
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
/* @__PURE__ */ o(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
stroke: "currentColor",
|
|
26
|
+
strokeLinecap: "round",
|
|
27
|
+
strokeLinejoin: "round",
|
|
28
|
+
d: "M19 12H5.00001",
|
|
29
|
+
vectorEffect: "non-scaling-stroke"
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
/* @__PURE__ */ o(
|
|
33
|
+
"path",
|
|
34
|
+
{
|
|
35
|
+
stroke: "currentColor",
|
|
36
|
+
d: "M12 20C10.2326 18.1964 9.00001 14.7247 9.00001 12C9.00001 9.27527 10.2326 5.80363 12 4",
|
|
37
|
+
vectorEffect: "non-scaling-stroke"
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
/* @__PURE__ */ o(
|
|
41
|
+
"path",
|
|
42
|
+
{
|
|
43
|
+
stroke: "currentColor",
|
|
44
|
+
d: "M12 20C13.7674 18.1964 15 14.7247 15 12C15 9.27527 13.7674 5.80363 12 4",
|
|
45
|
+
vectorEffect: "non-scaling-stroke"
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
), f = t(s), c = (r, e) => /* @__PURE__ */ n(
|
|
51
|
+
"svg",
|
|
52
|
+
{
|
|
53
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
54
|
+
fill: "none",
|
|
55
|
+
viewBox: "0 0 24 24",
|
|
56
|
+
ref: e,
|
|
57
|
+
...r,
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ o(
|
|
60
|
+
"path",
|
|
61
|
+
{
|
|
62
|
+
stroke: "currentColor",
|
|
63
|
+
d: "M10.3036 4.71638C11.0868 3.46223 12.9132 3.46223 13.6964 4.71638L14.4364 5.90129C14.7887 6.46555 15.3986 6.81766 16.0635 6.8407L17.4596 6.88908C18.9373 6.94029 19.8505 8.52194 19.156 9.8273L18.4998 11.0606C18.1873 11.6479 18.1873 12.3521 18.4998 12.9394L19.156 14.1727C19.8505 15.4781 18.9373 17.0597 17.4596 17.1109L16.0635 17.1593C15.3986 17.1823 14.7887 17.5345 14.4364 18.0987L13.6964 19.2836C12.9132 20.5378 11.0868 20.5378 10.3036 19.2836L9.56365 18.0987C9.21127 17.5345 8.60139 17.1823 7.93654 17.1593L6.54039 17.1109C5.06266 17.0597 4.14949 15.4781 4.84401 14.1727L5.50018 12.9394C5.81266 12.3521 5.81266 11.6479 5.50018 11.0606L4.84401 9.8273C4.14949 8.52194 5.06266 6.94029 6.54039 6.88908L7.93654 6.8407C8.60139 6.81766 9.21127 6.46555 9.56365 5.90129L10.3036 4.71638Z",
|
|
64
|
+
vectorEffect: "non-scaling-stroke"
|
|
65
|
+
}
|
|
66
|
+
),
|
|
67
|
+
/* @__PURE__ */ o(
|
|
68
|
+
"circle",
|
|
69
|
+
{
|
|
70
|
+
cx: 11.999,
|
|
71
|
+
cy: 12,
|
|
72
|
+
r: 2.5,
|
|
73
|
+
stroke: "currentColor",
|
|
74
|
+
vectorEffect: "non-scaling-stroke"
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
), L = t(c), i = (r, e) => /* @__PURE__ */ n(
|
|
80
|
+
"svg",
|
|
81
|
+
{
|
|
82
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
83
|
+
fill: "none",
|
|
84
|
+
viewBox: "0 0 24 24",
|
|
85
|
+
ref: e,
|
|
86
|
+
...r,
|
|
87
|
+
children: [
|
|
88
|
+
/* @__PURE__ */ o(
|
|
89
|
+
"path",
|
|
90
|
+
{
|
|
91
|
+
stroke: "currentColor",
|
|
92
|
+
strokeLinecap: "round",
|
|
93
|
+
strokeLinejoin: "round",
|
|
94
|
+
d: "M11 5L6 9H3V15H6L11 19V5Z",
|
|
95
|
+
vectorEffect: "non-scaling-stroke"
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ o(
|
|
99
|
+
"path",
|
|
100
|
+
{
|
|
101
|
+
stroke: "currentColor",
|
|
102
|
+
strokeLinecap: "round",
|
|
103
|
+
strokeLinejoin: "round",
|
|
104
|
+
d: "M15 9.5C16 10.6667 16 13.3333 15 14.5",
|
|
105
|
+
vectorEffect: "non-scaling-stroke"
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
/* @__PURE__ */ o(
|
|
109
|
+
"path",
|
|
110
|
+
{
|
|
111
|
+
stroke: "currentColor",
|
|
112
|
+
strokeLinecap: "round",
|
|
113
|
+
strokeLinejoin: "round",
|
|
114
|
+
d: "M17.5 7C19.6667 9.33333 19.6667 14.6667 17.5 17",
|
|
115
|
+
vectorEffect: "non-scaling-stroke"
|
|
116
|
+
}
|
|
117
|
+
)
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
), g = t(i), l = (r, e) => /* @__PURE__ */ n(
|
|
121
|
+
"svg",
|
|
122
|
+
{
|
|
123
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
124
|
+
fill: "none",
|
|
125
|
+
viewBox: "0 0 24 24",
|
|
126
|
+
ref: e,
|
|
127
|
+
...r,
|
|
128
|
+
children: [
|
|
129
|
+
/* @__PURE__ */ o(
|
|
130
|
+
"path",
|
|
131
|
+
{
|
|
132
|
+
stroke: "currentColor",
|
|
133
|
+
strokeLinecap: "round",
|
|
134
|
+
strokeLinejoin: "round",
|
|
135
|
+
d: "M11 5L6 9H3V15H6L11 19V5Z",
|
|
136
|
+
vectorEffect: "non-scaling-stroke"
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
/* @__PURE__ */ o(
|
|
140
|
+
"path",
|
|
141
|
+
{
|
|
142
|
+
stroke: "currentColor",
|
|
143
|
+
strokeLinecap: "round",
|
|
144
|
+
strokeLinejoin: "round",
|
|
145
|
+
d: "M15 9.5C16 10.6667 16 13.3333 15 14.5",
|
|
146
|
+
vectorEffect: "non-scaling-stroke"
|
|
147
|
+
}
|
|
148
|
+
)
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
), u = t(l), a = (r, e) => /* @__PURE__ */ n(
|
|
152
|
+
"svg",
|
|
153
|
+
{
|
|
154
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
155
|
+
fill: "none",
|
|
156
|
+
viewBox: "0 0 24 24",
|
|
157
|
+
ref: e,
|
|
158
|
+
...r,
|
|
159
|
+
children: [
|
|
160
|
+
/* @__PURE__ */ o(
|
|
161
|
+
"path",
|
|
162
|
+
{
|
|
163
|
+
stroke: "currentColor",
|
|
164
|
+
strokeLinecap: "round",
|
|
165
|
+
strokeLinejoin: "round",
|
|
166
|
+
d: "M11 5L6 9H3V15H6L11 19V5Z",
|
|
167
|
+
vectorEffect: "non-scaling-stroke"
|
|
168
|
+
}
|
|
169
|
+
),
|
|
170
|
+
/* @__PURE__ */ o(
|
|
171
|
+
"path",
|
|
172
|
+
{
|
|
173
|
+
stroke: "currentColor",
|
|
174
|
+
strokeLinecap: "round",
|
|
175
|
+
strokeLinejoin: "round",
|
|
176
|
+
d: "M15.5 9.5L20.5 14.5M20.5 9.5L15.5 14.5",
|
|
177
|
+
vectorEffect: "non-scaling-stroke"
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
]
|
|
181
|
+
}
|
|
182
|
+
), v = t(a);
|
|
183
|
+
export {
|
|
184
|
+
L as F,
|
|
185
|
+
f as a,
|
|
186
|
+
v as b,
|
|
187
|
+
u as c,
|
|
188
|
+
g as d
|
|
189
|
+
};
|
package/dist/ai.d.ts
CHANGED
|
@@ -2394,7 +2394,9 @@ export declare const defaultTranslations: {
|
|
|
2394
2394
|
readonly cancelRecording: "Cancel recording";
|
|
2395
2395
|
readonly dropFilesHere: "Drop your files here";
|
|
2396
2396
|
readonly removeFile: "Remove";
|
|
2397
|
+
readonly removeNamedFile: "Remove {{name}}";
|
|
2397
2398
|
readonly tooManyFilesError: "You can attach up to {{maxFiles}} files at once";
|
|
2399
|
+
readonly fileTooLargeError: "Each file must be {{maxFileSize}} or smaller";
|
|
2398
2400
|
readonly fileUploadError: "Upload failed";
|
|
2399
2401
|
readonly micPermissionDenied: "Microphone access is blocked. Allow it in your browser settings to dictate.";
|
|
2400
2402
|
readonly micError: "Couldn't access the microphone.";
|
|
@@ -2430,6 +2432,7 @@ export declare const defaultTranslations: {
|
|
|
2430
2432
|
readonly reply: "Reply";
|
|
2431
2433
|
readonly react: "Add reaction";
|
|
2432
2434
|
readonly download: "Download";
|
|
2435
|
+
readonly downloadNamedFile: "Download {{name}}";
|
|
2433
2436
|
readonly removeQuote: "Remove quote";
|
|
2434
2437
|
readonly edit: "Edit";
|
|
2435
2438
|
readonly editing: "Editing";
|
|
@@ -2443,7 +2446,10 @@ export declare const defaultTranslations: {
|
|
|
2443
2446
|
readonly previousImage: "Previous image";
|
|
2444
2447
|
readonly nextImage: "Next image";
|
|
2445
2448
|
readonly openDocument: "Open document";
|
|
2449
|
+
readonly openNamedDocument: "Open {{name}}";
|
|
2446
2450
|
readonly documentPreview: "Document preview";
|
|
2451
|
+
readonly videoPlayerLabel: "Video player: {{name}}";
|
|
2452
|
+
readonly loadingVideo: "Loading video: {{name}}";
|
|
2447
2453
|
readonly photo: "Photo";
|
|
2448
2454
|
readonly photoCount: {
|
|
2449
2455
|
readonly one: "{{count}} photo";
|
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-
|
|
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-BStowVw4.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-
|
|
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-C0NmG1vV.js";
|
|
4
4
|
export {
|
|
5
5
|
P as AiChatTranslationsProvider,
|
|
6
6
|
e as ChatSpinner,
|