@factorialco/f0-react 12.9.1 → 12.11.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 (113) hide show
  1. package/dist/ArchiveThumbnail-cs8kx5Zf.js +70 -0
  2. package/dist/ArchiveViewer-BXUH8Lm5.js +172 -0
  3. package/dist/{ChatPostComposerDialog-CWTlUs36.js → ChatPostComposerDialog-CGil1xkf.js} +4 -4
  4. package/dist/{CoachmarkProvider-BMunnTvE.js → CoachmarkProvider-cZnuTk79.js} +21047 -21041
  5. package/dist/CodeThumbnail-Dcer4AyK.js +31 -0
  6. package/dist/CodeViewer-DFBwdIFm.js +98 -0
  7. package/dist/DocumentToolbar-vZEyzJ89.js +74 -0
  8. package/dist/{DocxThumbnail-kHTNnwW0.js → DocxThumbnail-CK9vFoTB.js} +2 -2
  9. package/dist/{DocxViewer-C1yw4Yqt.js → DocxViewer-DQV5Kv1n.js} +25 -23
  10. package/dist/ExternalLink-RdKU698E.js +22 -0
  11. package/dist/{F0AiProcessingOverlay-cdj77_VP.js → F0AiProcessingOverlay-DjGkQ2Nc.js} +1903 -1795
  12. package/dist/{popover-BjrPOMeQ.js → F0Button-FXkThQ9H.js} +3164 -8587
  13. package/dist/{F0CanvasPanel-DPEwyR89.js → F0CanvasPanel-BgDo2LWP.js} +3704 -3274
  14. package/dist/F0DocumentViewer-BXifXzUW.js +79 -0
  15. package/dist/F0DocumentViewer-DWuIFBHu.js +3 -0
  16. package/dist/F0Icon-Cj0USbCF.js +202 -0
  17. package/dist/{F0Map-ZSo-alK8.js → F0Map-Dwev4u-_.js} +199 -191
  18. package/dist/{F0Select-B-ZxVjXG.js → F0Select-BWWdEd7l.js} +6696 -6726
  19. package/dist/{F0Text-D92NWQRd.js → F0Text-DMZW7dhN.js} +25 -41
  20. package/dist/{F0VideoPlayer-B1-tEFuq.js → F0VideoPlayer-BmCmHG87.js} +206 -202
  21. package/dist/F0VideoPlayer-C8oYUUZM.js +1 -0
  22. package/dist/HtmlThumbnail-BAgkBH2r.js +60 -0
  23. package/dist/HtmlViewer-FRfNoxhP.js +208 -0
  24. package/dist/LockLocked-gdodYvT_.js +41 -0
  25. package/dist/{Map-B_Hw6nIS.js → Map-BxGPElF2.js} +56 -53
  26. package/dist/{PdfThumbnail-BWqOqM04.js → PdfThumbnail-CpGZz5Kq.js} +5 -5
  27. package/dist/PdfViewer-C81MK43i.js +296 -0
  28. package/dist/SandboxedHtmlFrame-B6YWhgyg.js +309 -0
  29. package/dist/{SheetViewer-B8JTSi3B.js → SheetViewer-DPGpMNqq.js} +36 -26
  30. package/dist/TextThumbnail-DKNxh344.js +15 -0
  31. package/dist/{TextViewer-CEZd1H8u.js → TextViewer-BH42AeG8.js} +44 -41
  32. package/dist/ai.d.ts +3 -3
  33. package/dist/ai.js +5 -5
  34. package/dist/bash-BcZBmoDA.js +169 -0
  35. package/dist/c-Dv-5_kUQ.js +187 -0
  36. package/dist/component-status.js +2 -2
  37. package/dist/core-C0MCmPil.js +842 -0
  38. package/dist/cpp-CMQhucZt.js +236 -0
  39. package/dist/csharp-CuDKSCf2.js +260 -0
  40. package/dist/css-Dta7Q4Li.js +145 -0
  41. package/dist/dart-po7Eq73d.js +134 -0
  42. package/dist/diff-IgsQP-8T.js +39 -0
  43. package/dist/dist-D-MJbPvE.js +59 -0
  44. package/dist/dockerfile-B4Bz9I5u.js +34 -0
  45. package/dist/dos-1TcyLtUq.js +57 -0
  46. package/dist/elixir-BnEjyLGa.js +189 -0
  47. package/dist/erlang-tgri7ZSv.js +218 -0
  48. package/dist/experimental.d.ts +24 -4
  49. package/dist/experimental.js +5080 -4883
  50. package/dist/{exports-BdFDYdp1.d.ts → exports-C0yM5usu.d.ts} +13 -2
  51. package/dist/f0.d.ts +130 -8
  52. package/dist/f0.js +751 -745
  53. package/dist/fetchText-o_GOtiv3.js +54 -0
  54. package/dist/go-CEVmppuo.js +144 -0
  55. package/dist/graphql-BWwc-u8d.js +67 -0
  56. package/dist/groovy-BELuqtd6.js +127 -0
  57. package/dist/haskell-Cxh7aaFM.js +138 -0
  58. package/dist/highlight-CyebkDAD.js +114 -0
  59. package/dist/i18n-provider-BBhzYHef.js +150 -0
  60. package/dist/{i18n-provider-defaults-p0UGTA_k.js → i18n-provider-defaults-BUagKwGN.js} +32 -1
  61. package/dist/{i18n-provider-defaults-DQxuUMpU.d.ts → i18n-provider-defaults-CTDMMs-y.d.ts} +31 -0
  62. package/dist/i18n-provider-defaults.d.ts +1 -1
  63. package/dist/i18n-provider-defaults.js +1 -1
  64. package/dist/{index-DIwa_k8B.d.ts → index-CduxMW5L.d.ts} +16 -2
  65. package/dist/ini-DA-F0rRr.js +88 -0
  66. package/dist/java-Bujnoc_f.js +174 -0
  67. package/dist/javascript-BeEhpXRE.js +431 -0
  68. package/dist/json-CxvE7tEw.js +42 -0
  69. package/dist/kotlin-DOwDGI_m.js +206 -0
  70. package/dist/less-DWlR-e-o.js +196 -0
  71. package/dist/lua-BlZiakwh.js +46 -0
  72. package/dist/makefile-D3841Yg4.js +57 -0
  73. package/dist/{maplibre-BSY0r3_z.js → maplibre-g-8NG-3q.js} +1 -1
  74. package/dist/markdown-D1wNG79U.js +178 -0
  75. package/dist/objectivec-DxtRzTBy.js +117 -0
  76. package/dist/ownValue-D4uSXt0d.js +4 -0
  77. package/dist/{pdfWorker-DRgGoc3T.js → pdfWorker-D5NB2V5s.js} +12 -9
  78. package/dist/pdfWorkerConfig-BwllKt1K.js +8 -0
  79. package/dist/perl-BWRmkuyz.js +192 -0
  80. package/dist/php-CjwybYSP.js +300 -0
  81. package/dist/popover-CQztsDta.js +4486 -0
  82. package/dist/{posts-DGtDUrKT.js → posts-BHRBUAYJ.js} +2 -0
  83. package/dist/powershell-CgKcNA5Q.js +188 -0
  84. package/dist/properties-Bc45MTzW.js +38 -0
  85. package/dist/protobuf-Bv_xSUaI.js +61 -0
  86. package/dist/purify.es-ZpfdAuNV.js +545 -0
  87. package/dist/python-D8PdGjgy.js +238 -0
  88. package/dist/r-DA-9ZIdU.js +140 -0
  89. package/dist/{renderDocx-_UmnE-yc.js → renderDocx-BW-uDyaZ.js} +2 -0
  90. package/dist/ruby-Bqr16BpN.js +262 -0
  91. package/dist/rust-BCvJMwk8.js +182 -0
  92. package/dist/scala-Du8mOD2z.js +162 -0
  93. package/dist/scss-AMxHqh46.js +155 -0
  94. package/dist/skeleton-DqejhQgn.js +72 -0
  95. package/dist/sql-BbYSgcOA.js +118 -0
  96. package/dist/styles.css +1 -1
  97. package/dist/swift-DRKtalPn.js +575 -0
  98. package/dist/toolbarStyles-0IygMI4H.js +52 -0
  99. package/dist/{types-hr47rxX3.d.ts → types-DlwD3i9z.d.ts} +3 -95
  100. package/dist/typescript-Bv8uKU6V.js +516 -0
  101. package/dist/{useData-B7LYSzh0.js → useData-Dkq5W4r6.js} +4917 -4876
  102. package/dist/useFetchedText-BR3_KLXx.js +38 -0
  103. package/dist/useThumbnailText-DwXQvLIe.js +22 -0
  104. package/dist/xml-BVpP05uE.js +162 -0
  105. package/dist/yaml-BNe2WG-i.js +144 -0
  106. package/dist/zipTree-B2zUYl6b.js +247 -0
  107. package/package.json +2 -1
  108. package/dist/DocumentToolbar-iHZHYbFM.js +0 -70
  109. package/dist/F0DocumentViewer-CzNVxjsJ.js +0 -3
  110. package/dist/F0DocumentViewer-sRCjFb2O.js +0 -400
  111. package/dist/F0VideoPlayer-B4Nu7ugx.js +0 -1
  112. package/dist/TextThumbnail-X04JgaNI.js +0 -26
  113. package/dist/dist-DvxtFKDL.js +0 -78
@@ -1,30 +1,31 @@
1
- import { Yn as e, ar as t, er as n, nr as r } from "./popover-BjrPOMeQ.js";
2
- import { z as i } from "./useData-B7LYSzh0.js";
1
+ import { a as e } from "./i18n-provider-BBhzYHef.js";
2
+ import { Dt as t, St as n, kt as r } from "./F0Button-FXkThQ9H.js";
3
+ import { z as i } from "./useData-Dkq5W4r6.js";
3
4
  import { createContext as a, forwardRef as o, useCallback as s, useContext as c, useMemo as l, useRef as u, useState as d } from "react";
4
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
5
+ import { jsx as f } from "react/jsx-runtime";
5
6
  //#region ../../node_modules/.pnpm/motion@12.17.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs
6
- var m = a(null);
7
+ var p = a(null);
7
8
  //#endregion
8
9
  //#region ../../node_modules/.pnpm/motion@12.17.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/utils/use-is-mounted.mjs
9
- function h() {
10
+ function m() {
10
11
  let e = u(!1);
11
- return n(() => (e.current = !0, () => {
12
+ return t(() => (e.current = !0, () => {
12
13
  e.current = !1;
13
14
  }), []), e;
14
15
  }
15
16
  //#endregion
16
17
  //#region ../../node_modules/.pnpm/motion@12.17.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/utils/use-force-update.mjs
17
- function g() {
18
- let t = h(), [n, r] = d(0), i = s(() => {
19
- t.current && r(n + 1);
20
- }, [n]);
21
- return [s(() => e.postRender(i), [i]), n];
18
+ function h() {
19
+ let e = m(), [t, r] = d(0), i = s(() => {
20
+ e.current && r(t + 1);
21
+ }, [t]);
22
+ return [s(() => n.postRender(i), [i]), t];
22
23
  }
23
24
  //#endregion
24
25
  //#region ../../node_modules/.pnpm/motion@12.17.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/projection/node/group.mjs
25
- var _ = (e) => !e.isLayoutDirty && e.willUpdate(!1);
26
- function v() {
27
- let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new WeakMap(), n = () => e.forEach(_);
26
+ var g = (e) => !e.isLayoutDirty && e.willUpdate(!1);
27
+ function _() {
28
+ let e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new WeakMap(), n = () => e.forEach(g);
28
29
  return {
29
30
  add: (r) => {
30
31
  e.add(r), t.set(r, r.addEventListener("willUpdate", n));
@@ -39,43 +40,26 @@ function v() {
39
40
  }
40
41
  //#endregion
41
42
  //#region ../../node_modules/.pnpm/motion@12.17.0_@emotion+is-prop-valid@1.3.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/motion/dist/es/framer-motion/dist/es/components/LayoutGroup/index.mjs
42
- var y = (e) => e === !0, b = (e) => y(e === !0) || e === "id", x = ({ children: e, id: t, inherit: n = !0 }) => {
43
- let i = c(r), a = c(m), [o, s] = g(), d = u(null), p = i.id || a;
44
- d.current === null && (b(n) && p && (t = t ? p + "-" + t : p), d.current = {
43
+ var v = (e) => e === !0, y = (e) => v(e === !0) || e === "id", b = ({ children: e, id: t, inherit: n = !0 }) => {
44
+ let i = c(r), a = c(p), [o, s] = h(), d = u(null), m = i.id || a;
45
+ d.current === null && (y(n) && m && (t = t ? m + "-" + t : m), d.current = {
45
46
  id: t,
46
- group: y(n) && i.group || v()
47
+ group: v(n) && i.group || _()
47
48
  });
48
- let h = l(() => ({
49
+ let g = l(() => ({
49
50
  ...d.current,
50
51
  forceRender: o
51
52
  }), [s]);
52
53
  return f(r.Provider, {
53
- value: h,
54
+ value: g,
54
55
  children: e
55
56
  });
56
- }, S = o((e, t) => /* @__PURE__ */ p("svg", {
57
- xmlns: "http://www.w3.org/2000/svg",
58
- fill: "none",
59
- viewBox: "0 0 24 24",
60
- ref: t,
61
- ...e,
62
- children: [/* @__PURE__ */ f("path", {
63
- stroke: "currentColor",
64
- strokeLinecap: "round",
65
- strokeLinejoin: "round",
66
- d: "M16.9497 7.05026L12 12L7.05025 16.9498"
67
- }), /* @__PURE__ */ f("path", {
68
- stroke: "currentColor",
69
- strokeLinecap: "round",
70
- strokeLinejoin: "round",
71
- d: "M12 12L7.05025 7.05026L16.9497 16.9498"
72
- })]
73
- })), C = o((e, t) => /* @__PURE__ */ f(i, {
57
+ }, x = o((e, t) => /* @__PURE__ */ f(i, {
74
58
  ref: t,
75
59
  markdown: e.markdown ?? !0,
76
60
  ...e
77
61
  }));
78
- C.displayName = "F0Text";
79
- var w = t(C);
62
+ x.displayName = "F0Text";
63
+ var S = e(x);
80
64
  //#endregion
81
- export { S as n, x as r, w as t };
65
+ export { b as n, S as t };