@factorialco/f0-react 8.32.0 → 8.32.2

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 (36) hide show
  1. package/dist/{ChatPdfThumbnail-BSSuwnX6.js → ChatPdfThumbnail-DtjnbxlK.js} +1 -1
  2. package/dist/{ChatPostComposerDialog-DT2qzJz7.js → ChatPostComposerDialog-BaTMTzP7.js} +3 -3
  3. package/dist/{ChatSheetThumbnail-CyiwSdZJ.js → ChatSheetThumbnail-P76Jt0_u.js} +1 -1
  4. package/dist/{DocumentToolbar-COZ7xCb5.js → DocumentToolbar-DmU2Z6yx.js} +2 -2
  5. package/dist/{DocxViewer-Cwm_Q0g6.js → DocxViewer-C54WGD1S.js} +2 -2
  6. package/dist/{F0AiProcessingOverlay-CLBRUF77.js → F0AiProcessingOverlay-DZi5LhAe.js} +958 -958
  7. package/dist/{F0CanvasPanel-j19rKA2q.js → F0CanvasPanel-WVtVnJRZ.js} +846 -817
  8. package/dist/{F0Map-BYEGbNFJ.js → F0Map-CNWfSFZ1.js} +4 -4
  9. package/dist/{F0VideoPlayer-DLC7folq.js → F0VideoPlayer-D7c3Yh3w.js} +2 -2
  10. package/dist/{MapProvider-wJjbpL-O.js → MapProvider-27XPHPiu.js} +3 -3
  11. package/dist/{SheetViewer-DMCfqh-D.js → SheetViewer-1drEsfd7.js} +4 -4
  12. package/dist/{TextViewer-D4X0yq0F.js → TextViewer-EXSsPDXE.js} +2 -2
  13. package/dist/ai.d.ts +9 -9
  14. package/dist/ai.js +2 -2
  15. package/dist/browser-DqC2vZ6l.js +765 -0
  16. package/dist/component-status.d.ts +8 -8
  17. package/dist/component-status.js +1 -1
  18. package/dist/{experimental-C3h3olmD.js → experimental-BVFSvDo0.js} +1828 -1838
  19. package/dist/experimental.d.ts +9 -9
  20. package/dist/experimental.js +88 -88
  21. package/dist/f0.d.ts +10 -10
  22. package/dist/f0.js +9390 -9393
  23. package/dist/i18n-provider-defaults.d.ts +8 -8
  24. package/dist/index-6YSyIntj.js +4 -0
  25. package/dist/{index-D0RZbFbo.js → index-BC3sRBhO.js} +3 -3
  26. package/dist/{index-DPzxBulj.js → index-C3NBN1Ds.js} +2 -2
  27. package/dist/index-D-dPYkJS.js +2332 -0
  28. package/dist/{index-XRldN0kV.js → index-P3wd7w_Q.js} +1 -1
  29. package/dist/{index-2cL0J9Pc.js → index-SaYqmPwO.js} +3 -3
  30. package/dist/papaparse.min-Bh1MVuzw.js +405 -0
  31. package/dist/{pdfWorker-CQHWwuw6.js → pdfWorker-Bt3dfOGU.js} +2 -2
  32. package/dist/sheetPreview-BiccmyTD.js +2377 -0
  33. package/package.json +6 -2
  34. package/dist/index-no2co85K.js +0 -4
  35. package/dist/sheetPreview-Bqj3xODH.js +0 -51
  36. package/dist/xlsx-CzlURDDb.js +0 -24525
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "8.32.0",
3
+ "version": "8.32.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/factorialco/f0.git",
@@ -95,10 +95,12 @@
95
95
  "embla-carousel-wheel-gestures": "^8.0.1",
96
96
  "gridstack": "^12.3.3",
97
97
  "libphonenumber-js": "^1.13.9",
98
+ "papaparse": "5.7.0",
98
99
  "prosemirror-state": "^1.4.3",
99
100
  "prosemirror-view": "^1.38.1",
100
101
  "react-phone-number-input": "^3.4.17",
101
102
  "react-remove-scroll": "^2.7.1",
103
+ "read-excel-file": "9.3.12",
102
104
  "rehype-stringify": "^10.0.1",
103
105
  "remark-gfm": "^4.0.1",
104
106
  "remark-parse": "^11.0.0",
@@ -106,7 +108,7 @@
106
108
  "unified": "^11.0.5",
107
109
  "use-deep-compare-effect": "^1.8.1",
108
110
  "vaul": "^1.1.2",
109
- "xlsx": "^0.18.5",
111
+ "write-excel-file": "4.1.1",
110
112
  "y-prosemirror": "^1.3.6",
111
113
  "y-protocols": "^1.0.6",
112
114
  "yjs": "^13.6.27",
@@ -147,6 +149,7 @@
147
149
  "@types/google.maps": "^3.66.2",
148
150
  "@types/lodash": "^4.17.16",
149
151
  "@types/node": "^22.13.9",
152
+ "@types/papaparse": "^5.5.2",
150
153
  "@types/react": "^18.3.18",
151
154
  "@types/react-dom": "^18.3.1",
152
155
  "@types/twemoji-parser": "^13.1.4",
@@ -170,6 +173,7 @@
170
173
  "eslint-plugin-react-refresh": "^0.4.26",
171
174
  "eslint-plugin-sonarjs": "^4.2.0",
172
175
  "eslint-plugin-storybook": "^10.3.3",
176
+ "fflate": "0.8.2",
173
177
  "globals": "^16.0.0",
174
178
  "http-server": "^14.1.1",
175
179
  "jsdom": "^26.0.0",
@@ -1,4 +0,0 @@
1
- import { F as r } from "./F0VideoPlayer-DLC7folq.js";
2
- export {
3
- r as F0VideoPlayer
4
- };
@@ -1,51 +0,0 @@
1
- import { utils as a, read as f } from "./xlsx-CzlURDDb.js";
2
- const l = [80, 75, 3, 4], w = [208, 207, 17, 224], d = (e, t) => t.every((r, o) => e[o] === r), y = (e) => {
3
- try {
4
- return new TextDecoder("utf-8", { fatal: !0 }).decode(e);
5
- } catch {
6
- return null;
7
- }
8
- }, k = (e) => {
9
- const t = new Uint8Array(e);
10
- if (!d(t, l) && !d(t, w)) {
11
- const r = y(t);
12
- if (r !== null)
13
- return f(r, { type: "string", raw: !0 });
14
- }
15
- return f(e, { type: "array", raw: !0 });
16
- }, m = (e, { maxRows: t, maxCols: r }) => {
17
- const o = k(e);
18
- return o.SheetNames.map((s) => {
19
- const c = o.Sheets[s], u = c?.["!ref"];
20
- if (!c || !u)
21
- return { name: s, rows: [], truncatedRows: !1 };
22
- const n = a.decode_range(u), i = n.e.r - n.s.r + 1 > t;
23
- n.e.r = Math.min(n.e.r, n.s.r + t - 1), n.e.c = Math.min(n.e.c, n.s.c + r - 1);
24
- const h = a.sheet_to_json(c, {
25
- header: 1,
26
- raw: !1,
27
- // formatted text, not raw values
28
- defval: "",
29
- range: n
30
- });
31
- return { name: s, rows: h, truncatedRows: i };
32
- });
33
- }, _ = (e) => {
34
- const t = e.reduce((r, o) => Math.max(r, o.length), 0);
35
- return Array.from({ length: t }, (r, o) => a.encode_col(o));
36
- }, g = async (e, {
37
- maxRows: t,
38
- maxCols: r,
39
- withCredentials: o = !0
40
- }) => {
41
- const s = await fetch(e, {
42
- credentials: o ? "include" : "same-origin"
43
- });
44
- if (!s.ok)
45
- throw new Error(`Failed to fetch sheet: ${s.status}`);
46
- return m(await s.arrayBuffer(), { maxRows: t, maxCols: r });
47
- };
48
- export {
49
- _ as c,
50
- g as f
51
- };