@factorialco/f0-react 12.10.0 → 12.12.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 (122) hide show
  1. package/dist/ArchiveThumbnail-b34U-zTc.js +70 -0
  2. package/dist/ArchiveViewer-BpmryW7A.js +172 -0
  3. package/dist/{ChatPostComposerDialog-DcmLrQk6.js → ChatPostComposerDialog-Cr207fXs.js} +4 -4
  4. package/dist/{CoachmarkProvider-XfLjB3dH.js → CoachmarkProvider-CsytVD-X.js} +29764 -29935
  5. package/dist/CodeThumbnail-8NiQ3uzU.js +31 -0
  6. package/dist/CodeViewer-BNZqt-5s.js +98 -0
  7. package/dist/DocumentToolbar-DUe9R1rU.js +74 -0
  8. package/dist/{DocxThumbnail-kHTNnwW0.js → DocxThumbnail-CK9vFoTB.js} +2 -2
  9. package/dist/{DocxViewer-CqHgSExq.js → DocxViewer-BUMy2iL7.js} +25 -23
  10. package/dist/ExternalLink-RdKU698E.js +22 -0
  11. package/dist/{F0AiProcessingOverlay-H23WHd7F.js → F0AiProcessingOverlay-CiUTeBwG.js} +1388 -1384
  12. package/dist/F0Alert-Ca8sBfXN.js +102 -0
  13. package/dist/F0AudioPlayer-BefDLQA2.js +1083 -0
  14. package/dist/F0AudioPlayer-CNb4kXOk.js +3 -0
  15. package/dist/{popover-BjrPOMeQ.js → F0Button-d91IgOnc.js} +3164 -8587
  16. package/dist/{F0CanvasPanel--hLKeQvg.js → F0CanvasPanel-BOo_mxBl.js} +10286 -9593
  17. package/dist/F0DocumentViewer-CaYAO9ok.js +3 -0
  18. package/dist/F0DocumentViewer-h0XY5tgT.js +90 -0
  19. package/dist/F0Icon-DmCBV0gK.js +202 -0
  20. package/dist/{F0Map-hvgCUGk8.js → F0Map-b1uYlF_H.js} +614 -613
  21. package/dist/F0SegmentedControl-DXoAzTmH.js +103 -0
  22. package/dist/{F0Select-B-ZxVjXG.js → F0Select-BZ20yXKy.js} +9172 -9251
  23. package/dist/{F0VideoPlayer-CNp5hXgp.js → F0VideoPlayer-D85XCpqh.js} +390 -430
  24. package/dist/F0VideoPlayer-_zLFiEIp.js +1 -0
  25. package/dist/HtmlThumbnail-BJuJkuvu.js +60 -0
  26. package/dist/HtmlViewer-DxOnMV30.js +208 -0
  27. package/dist/LayoutGroup-BGb5jMxE.js +57 -0
  28. package/dist/LockLocked-gdodYvT_.js +41 -0
  29. package/dist/{Map-eIXVKc1x.js → Map-BOMgctnS.js} +55 -52
  30. package/dist/{PdfThumbnail-CCSmwxQU.js → PdfThumbnail-98PDy4ud.js} +5 -5
  31. package/dist/PdfViewer-nBnKrTYD.js +296 -0
  32. package/dist/SandboxedHtmlFrame-B95lWsIP.js +309 -0
  33. package/dist/{SheetViewer-BN5UYkEZ.js → SheetViewer-CD9SHbXJ.js} +36 -26
  34. package/dist/TextThumbnail-DKNxh344.js +15 -0
  35. package/dist/{TextViewer-Bt0_dYB-.js → TextViewer-DxRBCXzV.js} +44 -41
  36. package/dist/ai.d.ts +3 -3
  37. package/dist/ai.js +5 -5
  38. package/dist/bash-BcZBmoDA.js +169 -0
  39. package/dist/c-Dv-5_kUQ.js +187 -0
  40. package/dist/component-status.js +2 -2
  41. package/dist/core-C0MCmPil.js +842 -0
  42. package/dist/cpp-CMQhucZt.js +236 -0
  43. package/dist/csharp-CuDKSCf2.js +260 -0
  44. package/dist/css-Dta7Q4Li.js +145 -0
  45. package/dist/dart-po7Eq73d.js +134 -0
  46. package/dist/diff-IgsQP-8T.js +39 -0
  47. package/dist/dist-CFY0KELA.js +55 -0
  48. package/dist/dist-DtILhk4w.js +253 -0
  49. package/dist/dist-zvwuNflP.js +59 -0
  50. package/dist/dockerfile-B4Bz9I5u.js +34 -0
  51. package/dist/dos-1TcyLtUq.js +57 -0
  52. package/dist/elixir-BnEjyLGa.js +189 -0
  53. package/dist/erlang-tgri7ZSv.js +218 -0
  54. package/dist/experimental.d.ts +24 -4
  55. package/dist/experimental.js +5957 -5752
  56. package/dist/{exports-BByQBwpi.d.ts → exports-cxvNeHfV.d.ts} +1 -1
  57. package/dist/f0.d.ts +130 -8
  58. package/dist/f0.js +1969 -3034
  59. package/dist/fetchText-o_GOtiv3.js +54 -0
  60. package/dist/go-CEVmppuo.js +144 -0
  61. package/dist/graphql-BWwc-u8d.js +67 -0
  62. package/dist/groovy-BELuqtd6.js +127 -0
  63. package/dist/haskell-Cxh7aaFM.js +138 -0
  64. package/dist/highlight-CqFL-_MG.js +114 -0
  65. package/dist/i18n-provider-Bdgo-LeP.js +150 -0
  66. package/dist/{i18n-provider-defaults-p0UGTA_k.js → i18n-provider-defaults-B9vdZZeS.js} +35 -1
  67. package/dist/{i18n-provider-defaults-DQxuUMpU.d.ts → i18n-provider-defaults-DyPn8R7T.d.ts} +34 -0
  68. package/dist/i18n-provider-defaults.d.ts +1 -1
  69. package/dist/i18n-provider-defaults.js +1 -1
  70. package/dist/{index-D3nEDg8x.d.ts → index-DF8ubeg6.d.ts} +1 -1
  71. package/dist/ini-DA-F0rRr.js +88 -0
  72. package/dist/java-Bujnoc_f.js +174 -0
  73. package/dist/javascript-BeEhpXRE.js +431 -0
  74. package/dist/json-CxvE7tEw.js +42 -0
  75. package/dist/kotlin-DOwDGI_m.js +206 -0
  76. package/dist/less-DWlR-e-o.js +196 -0
  77. package/dist/localized-BrUgGMzm.js +46 -0
  78. package/dist/lua-BlZiakwh.js +46 -0
  79. package/dist/makefile-D3841Yg4.js +57 -0
  80. package/dist/{maplibre-Bywi9z2G.js → maplibre-Ip4Qe9dM.js} +1 -1
  81. package/dist/markdown-D1wNG79U.js +178 -0
  82. package/dist/objectivec-DxtRzTBy.js +117 -0
  83. package/dist/ownValue-D4uSXt0d.js +4 -0
  84. package/dist/{pdfWorker-CKgxOaCl.js → pdfWorker-DMjHHAyP.js} +12 -9
  85. package/dist/pdfWorkerConfig-BwllKt1K.js +8 -0
  86. package/dist/perl-BWRmkuyz.js +192 -0
  87. package/dist/php-CjwybYSP.js +300 -0
  88. package/dist/popover-ics24JxK.js +4486 -0
  89. package/dist/{posts-DGtDUrKT.js → posts-BHRBUAYJ.js} +2 -0
  90. package/dist/powershell-CgKcNA5Q.js +188 -0
  91. package/dist/properties-Bc45MTzW.js +38 -0
  92. package/dist/protobuf-Bv_xSUaI.js +61 -0
  93. package/dist/purify.es-ZpfdAuNV.js +545 -0
  94. package/dist/python-D8PdGjgy.js +238 -0
  95. package/dist/r-DA-9ZIdU.js +140 -0
  96. package/dist/{renderDocx-_UmnE-yc.js → renderDocx-BW-uDyaZ.js} +2 -0
  97. package/dist/ruby-Bqr16BpN.js +262 -0
  98. package/dist/rust-BCvJMwk8.js +182 -0
  99. package/dist/scala-Du8mOD2z.js +162 -0
  100. package/dist/scrollarea-cxaFAWG5.js +691 -0
  101. package/dist/scss-AMxHqh46.js +155 -0
  102. package/dist/skeleton-AC0Fb8zj.js +72 -0
  103. package/dist/sql-BbYSgcOA.js +118 -0
  104. package/dist/styles.css +1 -1
  105. package/dist/swift-DRKtalPn.js +575 -0
  106. package/dist/toolbarStyles-lTj_42zD.js +52 -0
  107. package/dist/{types-UMYBr8Mi.d.ts → types-geibVrTM.d.ts} +3 -95
  108. package/dist/typescript-Bv8uKU6V.js +516 -0
  109. package/dist/{useData-B7LYSzh0.js → useData-BYkiGUHX.js} +4734 -5375
  110. package/dist/useFetchedText-BR3_KLXx.js +38 -0
  111. package/dist/useThumbnailText-DwXQvLIe.js +22 -0
  112. package/dist/xml-BVpP05uE.js +162 -0
  113. package/dist/yaml-BNe2WG-i.js +144 -0
  114. package/dist/zipTree-B2zUYl6b.js +247 -0
  115. package/package.json +2 -1
  116. package/dist/DocumentToolbar-CqbY6eID.js +0 -70
  117. package/dist/F0DocumentViewer-BN-2IVgz.js +0 -400
  118. package/dist/F0DocumentViewer-D1G3M2J_.js +0 -3
  119. package/dist/F0Text-D92NWQRd.js +0 -81
  120. package/dist/F0VideoPlayer-D4bZBBLK.js +0 -1
  121. package/dist/TextThumbnail-X04JgaNI.js +0 -26
  122. package/dist/dist-DvxtFKDL.js +0 -78
@@ -1,19 +1,29 @@
1
- import { ln as e, rn as t } from "./popover-BjrPOMeQ.js";
2
- import { Kr as n, v as r, y as i } from "./F0CanvasPanel--hLKeQvg.js";
3
- import { o as a } from "./F0DocumentViewer-BN-2IVgz.js";
4
- import { n as o, t as s } from "./DocumentToolbar-CqbY6eID.js";
1
+ import { r as e } from "./i18n-provider-Bdgo-LeP.js";
2
+ import { t } from "./skeleton-AC0Fb8zj.js";
3
+ import { Xr as n, m as r, p as i } from "./F0CanvasPanel-BOo_mxBl.js";
4
+ import { c as a } from "./toolbarStyles-lTj_42zD.js";
5
+ import { n as o, t as s } from "./DocumentToolbar-DUe9R1rU.js";
5
6
  import { n as c, t as l } from "./sheetPreview-Ca0kCtSa.js";
6
7
  import { useEffect as u, useState as d } from "react";
7
8
  import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
8
9
  //#region src/addons/documents/F0DocumentViewer/components/SheetViewer.tsx
9
- var h = 1e3, g = 100, _ = ({ url: _, filename: v, withCredentials: y = !0, actions: b, toolbar: x = "top" }) => {
10
- let S = t(), C = o(), [w, T] = d(null), [E, D] = d(!1), [O, k] = d(0);
10
+ var h = 1e3, g = 100, _ = ({ url: t, filename: r, withCredentials: i, hideDownload: o }) => {
11
+ let s = e();
12
+ return /* @__PURE__ */ m("div", {
13
+ className: "flex shrink-0 items-center gap-2 border-0 border-t border-solid border-f1-border-secondary px-3 py-1.5 text-sm text-f1-foreground-secondary",
14
+ children: [s.t("pdfViewer.showingFirstRows.other", { count: h }), o ? null : /* @__PURE__ */ p(n, {
15
+ onClick: () => void a(t, r, i),
16
+ children: s.pdfViewer.download
17
+ })]
18
+ });
19
+ }, v = ({ url: n, filename: a, withCredentials: v = !0, actions: y, toolbar: b = "top", hideDownload: x = !1 }) => {
20
+ let S = e(), C = o(), [w, T] = d(null), [E, D] = d(!1), [O, k] = d(0);
11
21
  u(() => {
12
22
  let e = !1;
13
- return T(null), D(!1), k(0), c(_, {
23
+ return T(null), D(!1), k(0), c(n, {
14
24
  maxRows: h,
15
25
  maxCols: g,
16
- withCredentials: y
26
+ withCredentials: v
17
27
  }).then((t) => {
18
28
  e || (t.length === 0 ? D(!0) : T(t));
19
29
  }).catch(() => {
@@ -21,15 +31,16 @@ var h = 1e3, g = 100, _ = ({ url: _, filename: v, withCredentials: y = !0, actio
21
31
  }), () => {
22
32
  e = !0;
23
33
  };
24
- }, [_, y]);
34
+ }, [n, v]);
25
35
  let A = w ? w[Math.min(O, w.length - 1)] : null, j = A ? l(A.rows) : [], M = /* @__PURE__ */ p(s, {
26
- url: _,
27
- filename: v,
28
- withCredentials: y,
29
- actions: b,
36
+ url: n,
37
+ filename: a,
38
+ withCredentials: v,
39
+ actions: y,
30
40
  zoom: C,
31
- placement: x,
32
- children: w && w.length > 1 ? /* @__PURE__ */ p(r, {
41
+ placement: b,
42
+ hideDownload: x,
43
+ children: w && w.length > 1 ? /* @__PURE__ */ p(i, {
33
44
  type: "single",
34
45
  size: "sm",
35
46
  value: String(O),
@@ -37,7 +48,7 @@ var h = 1e3, g = 100, _ = ({ url: _, filename: v, withCredentials: y = !0, actio
37
48
  e && k(Number(e));
38
49
  },
39
50
  className: "justify-start",
40
- children: w.map((e, t) => /* @__PURE__ */ p(i, {
51
+ children: w.map((e, t) => /* @__PURE__ */ p(r, {
41
52
  value: String(t),
42
53
  className: "whitespace-nowrap",
43
54
  children: e.name
@@ -47,7 +58,7 @@ var h = 1e3, g = 100, _ = ({ url: _, filename: v, withCredentials: y = !0, actio
47
58
  return /* @__PURE__ */ m("div", {
48
59
  className: "relative flex h-full w-full flex-col bg-f1-background",
49
60
  children: [
50
- x === "top" ? M : null,
61
+ b === "top" ? M : null,
51
62
  E ? /* @__PURE__ */ p("div", {
52
63
  className: "flex min-h-0 grow items-center justify-center text-f1-foreground-secondary",
53
64
  children: S.pdfViewer.previewFailed
@@ -67,21 +78,20 @@ var h = 1e3, g = 100, _ = ({ url: _, filename: v, withCredentials: y = !0, actio
67
78
  children: e[n] ?? ""
68
79
  }, n))] }, t)) })]
69
80
  })
70
- }), A.truncatedRows ? /* @__PURE__ */ m("div", {
71
- className: "flex shrink-0 items-center gap-2 border-0 border-t border-solid border-f1-border-secondary px-3 py-1.5 text-sm text-f1-foreground-secondary",
72
- children: [S.t("pdfViewer.showingFirstRows.other", { count: h }), /* @__PURE__ */ p(n, {
73
- onClick: () => void a(_, v, y),
74
- children: S.pdfViewer.download
75
- })]
76
- }) : null] }) : /* @__PURE__ */ p(e, {
81
+ }), A.truncatedRows ? /* @__PURE__ */ p(_, {
82
+ url: n,
83
+ filename: a,
84
+ withCredentials: v,
85
+ hideDownload: x
86
+ }) : null] }) : /* @__PURE__ */ p(t, {
77
87
  role: "status",
78
88
  "aria-busy": !0,
79
89
  "aria-label": S.pdfViewer.loading,
80
90
  className: "min-h-0 w-full grow rounded-none"
81
91
  }),
82
- x === "floating" ? M : null
92
+ b === "floating" ? M : null
83
93
  ]
84
94
  });
85
95
  };
86
96
  //#endregion
87
- export { _ as default };
97
+ export { v as default };
@@ -0,0 +1,15 @@
1
+ import { t as e } from "./useThumbnailText-DwXQvLIe.js";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ //#region src/elements/primitives/_primitives/F0Attachments/components/thumbnails/TextThumbnail.tsx
4
+ var n = 4096, r = ({ url: r, onError: i, onRendered: a }) => {
5
+ let o = e(r, n, {
6
+ onError: i,
7
+ onLoaded: a
8
+ });
9
+ return o === null ? null : /* @__PURE__ */ t("pre", {
10
+ className: "m-0 whitespace-pre-wrap break-words bg-f1-background p-3 text-left font-mono text-sm leading-5 text-f1-foreground-secondary",
11
+ children: o
12
+ });
13
+ };
14
+ //#endregion
15
+ export { r as default };
@@ -1,9 +1,12 @@
1
- import { ln as e, rn as t, xt as n } from "./popover-BjrPOMeQ.js";
2
- import { n as r, t as i } from "./DocumentToolbar-CqbY6eID.js";
3
- import { useEffect as a, useState as o } from "react";
4
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
1
+ import { r as e } from "./i18n-provider-Bdgo-LeP.js";
2
+ import { t } from "./skeleton-AC0Fb8zj.js";
3
+ import { a as n } from "./F0Button-d91IgOnc.js";
4
+ import { n as r, t as i } from "./DocumentToolbar-DUe9R1rU.js";
5
+ import { t as a } from "./fetchText-o_GOtiv3.js";
6
+ import { useEffect as o, useState as s } from "react";
7
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
5
8
  //#region src/addons/documents/F0DocumentViewer/components/TextViewer.tsx
6
- var l = 2097152, u = [
9
+ var u = 2097152, d = [
7
10
  "[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-2xl [&_h1]:font-semibold",
8
11
  "[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-xl [&_h2]:font-semibold",
9
12
  "[&_h3]:mb-2 [&_h3]:mt-4 [&_h3]:text-lg [&_h3]:font-semibold",
@@ -20,57 +23,57 @@ var l = 2097152, u = [
20
23
  "[&_th]:border [&_th]:border-solid [&_th]:border-f1-border-secondary [&_th]:px-2 [&_th]:py-1 [&_th]:text-left [&_th]:font-medium",
21
24
  "[&_td]:border [&_td]:border-solid [&_td]:border-f1-border-secondary [&_td]:px-2 [&_td]:py-1",
22
25
  "[&_hr]:my-4 [&_hr]:border-f1-border-secondary"
23
- ].join(" "), d = (e, t) => !!t?.toLowerCase().includes("markdown") || e.toLowerCase().endsWith(".md") || e.toLowerCase().endsWith(".markdown"), f = ({ url: f, name: p, mimeType: m, withCredentials: h = !0, actions: g, toolbar: _ = "top" }) => {
24
- let v = t(), y = r(), [b, x] = o(null), [S, C] = o(!1);
25
- a(() => {
26
- let e = !1;
27
- return x(null), C(!1), fetch(f, { credentials: h ? "include" : "same-origin" }).then((e) => {
28
- if (!e.ok) throw Error(`${e.status}`);
29
- return e.text();
26
+ ].join(" "), f = (e, t) => !!t?.toLowerCase().includes("markdown") || e.toLowerCase().endsWith(".md") || e.toLowerCase().endsWith(".markdown"), p = ({ url: p, name: m, mimeType: h, withCredentials: g = !0, actions: _, toolbar: v = "top", hideDownload: y = !1 }) => {
27
+ let b = e(), x = r(), [S, C] = s(null), [w, T] = s(!1);
28
+ o(() => {
29
+ let e = new AbortController();
30
+ return C(null), T(!1), a(p, {
31
+ withCredentials: g,
32
+ maxChars: u,
33
+ signal: e.signal
30
34
  }).then((t) => {
31
- e || x(t.slice(0, l));
35
+ e.signal.aborted || C(t);
32
36
  }).catch(() => {
33
- e || C(!0);
34
- }), () => {
35
- e = !0;
36
- };
37
- }, [f, h]);
38
- let w = /* @__PURE__ */ s(i, {
39
- url: f,
40
- filename: p,
41
- withCredentials: h,
42
- actions: g,
43
- zoom: y,
44
- placement: _
37
+ e.signal.aborted || T(!0);
38
+ }), () => e.abort();
39
+ }, [p, g]);
40
+ let E = /* @__PURE__ */ c(i, {
41
+ url: p,
42
+ filename: m,
43
+ withCredentials: g,
44
+ actions: _,
45
+ zoom: x,
46
+ placement: v,
47
+ hideDownload: y
45
48
  });
46
- return /* @__PURE__ */ c("div", {
49
+ return /* @__PURE__ */ l("div", {
47
50
  className: "relative flex h-full w-full flex-col bg-f1-background",
48
51
  children: [
49
- _ === "top" ? w : null,
50
- S ? /* @__PURE__ */ s("div", {
52
+ v === "top" ? E : null,
53
+ w ? /* @__PURE__ */ c("div", {
51
54
  className: "flex min-h-0 grow items-center justify-center text-f1-foreground-secondary",
52
- children: v.pdfViewer.previewFailed
53
- }) : b === null ? /* @__PURE__ */ s(e, {
55
+ children: b.pdfViewer.previewFailed
56
+ }) : S === null ? /* @__PURE__ */ c(t, {
54
57
  role: "status",
55
58
  "aria-busy": !0,
56
- "aria-label": v.pdfViewer.loading,
59
+ "aria-label": b.pdfViewer.loading,
57
60
  className: "min-h-0 w-full grow rounded-none"
58
- }) : /* @__PURE__ */ s("div", {
61
+ }) : /* @__PURE__ */ c("div", {
59
62
  className: "min-h-0 grow overflow-auto",
60
- children: /* @__PURE__ */ s("div", {
61
- style: { zoom: y.scale },
62
- children: d(p, m) ? /* @__PURE__ */ s("div", {
63
- className: `mx-auto max-w-3xl px-6 py-4 text-base text-f1-foreground ${u}`,
64
- dangerouslySetInnerHTML: { __html: n(b) }
65
- }) : /* @__PURE__ */ s("pre", {
63
+ children: /* @__PURE__ */ c("div", {
64
+ style: { zoom: x.scale },
65
+ children: f(m, h) ? /* @__PURE__ */ c("div", {
66
+ className: `mx-auto max-w-3xl px-6 py-4 text-base text-f1-foreground ${d}`,
67
+ dangerouslySetInnerHTML: { __html: n(S) }
68
+ }) : /* @__PURE__ */ c("pre", {
66
69
  className: "m-0 whitespace-pre-wrap break-words px-6 py-4 font-mono text-sm text-f1-foreground",
67
- children: b
70
+ children: S
68
71
  })
69
72
  })
70
73
  }),
71
- _ === "floating" ? w : null
74
+ v === "floating" ? E : null
72
75
  ]
73
76
  });
74
77
  };
75
78
  //#endregion
76
- export { f as default };
79
+ export { p as default };
package/dist/ai.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as AiChatCredits, $r as ChatDashboardMetricFormat, Ar as AiChatShowFilesItem, At as CustomEntityRefCard, B as RenderableTurn, Br as ChatDashboardBarChartConfig, Ct as WelcomeScreenSuggestionItem, Dr as AiChatFileKind, Er as AiChatFile, Et as SidePanelContent, F as F0AiMessagesContainerProps, Fr as CanvasActions, G as F0AiChatProps, Gr as ChatDashboardConfig, H as MarkdownTagRenderers, Hr as ChatDashboardChartItem, I as WelcomeScreenCta, Ir as CanvasContent, J as AiChatComposerActionItem, Jr as ChatDashboardFunnelChartConfig, K as F0AiChatProvider, Kr as ChatDashboardDateNavigationGranularity, L as FeedbackConfig, Lr as CanvasContentBase, M as useAiChatTranslations, Mr as AutofillTimesheetCanvasContent, Mt as EntityRefs, N as useAiChat, Nr as AutofillTimesheetShift, Nt as EntityResolvers, Or as AiChatFilePreviewConfig, P as F0AiMessagesContainer, Pr as BulkResolveInconsistenciesCanvasContent, Pt as EntityUrlBuilders, Q as AiChatCreditWarning, Qr as ChatDashboardLineChartConfig, R as UserReaction, Rr as CanvasEntityDefinition, St as WelcomeScreenSuggestion, Tt as aiTranslations, U as markdownRenderers, Ur as ChatDashboardCollectionItem, V as ThinkingProps, Vr as ChatDashboardChartConfig, W as F0AiChat, Wr as ChatDashboardColumn, X as AiChatComposerActionSubmenu, Xr as ChatDashboardHeatmapChartConfig, Y as AiChatComposerActionSeparator, Yr as ChatDashboardGaugeChartConfig, Z as AiChatComposerActionToggle, Zr as ChatDashboardItem, _i as PieComputation, ai as CollectionComputation, at as AiChatTrackingOptions, br as CandidateProfile, bt as UploadedFile, ci as DashboardFetchSpec, ct as AiChatUsageLimits, d as useFormCardValueFormatter, di as DataDownloadDataset, dt as AppendToolCall, ei as ChatDashboardMetricItem, f as useSetFormCardValueFormatter, fi as FormCanvasContent, fr as ExpenseProfile, ft as CreditsUsage, gi as MetricComputation, gt as F0ToolCall, hi as HeatmapComputation, ht as F0Message, i as useI18n, ii as ChatDashboardScatterChartConfig, it as AiChatProviderProps, j as AiChatTranslationsProvider, jr as AggregationType, jt as CustomEntityRefConfig, kr as AiChatFileUrlResolver, l as FormCardValueFormatterEntry, li as DashboardMetadata, lt as AiChatUsageLimitsSection, mi as GaugeComputation, mr as RequisitionProfile, mt as F0AiChatWelcomeCard, n as I18nProviderProps, ni as ChatDashboardPieChartConfig, nt as AiChatFileAttachmentConfig, oi as DashboardCanvasActions, ot as AiChatTranslations, pi as FormatPreset, pr as VacancyProfile, pt as F0AIMessage, q as AiChatComposerAction, qr as ChatDashboardFilterDefinition, ri as ChatDashboardRadarChartConfig, rt as AiChatMode, si as DashboardCanvasContent, st as AiChatTranslationsProviderProps, t as I18nProvider, ti as ChatDashboardNavigationFilterDefinition, u as FormCardValueFormatterProvider, ui as DataDownloadCanvasContent, ut as AppendMessage, vi as RadarComputation, wt as WelcomeSuggestionClickEvent, xr as PersonProfile, xt as VisualizationMode, yi as ScatterComputation, yr as JobPostingProfile, z as useToolCallId, zr as ChartComputation } from "./index-D3nEDg8x.js";
2
- import { n as TranslationsType, r as defaultTranslations } from "./i18n-provider-defaults-DQxuUMpU.js";
3
- import { $ as DateGroup, $t as useCanvasEntity, A as ComposerMentionRef, At as F0OneIcon, B as UserBinaryPart, Bt as MaskOptions, C as F0ChatComposerVoice, Ct as F0AiInsightCardProps, D as ComposerMention, E as ComposerEditor, F as F0AiChatTextArea, Ft as F0HILActionConfirmationProps, G as TrackedMention, Gt as actionItemStatuses, H as MentionItem, Ht as F0ActionItem, I as AiChatTextAreaUsageLimits, It as F0AuraVoiceAnimation, J as usageLimitsPopoverSides, Jt as ClarifyingQuestionState, K as F0AiChatUsageLimitsButtonProps, Kt as F0ClarifyingPanel, L as AttachedFile, Lt as F0AuraVoiceAnimationProps, M as ComposerMentionSource, Mt as OneIconSize, N as createPersonMentionSource, Nt as oneIconSizes, O as ComposerMentionItem, Ot as F0OneSwitch, P as DropOverlay, Pt as F0HILActionConfirmation, Q as F0AiChatHistory, Qt as ResolvedStepAnswer, R as F0AiChatTextAreaProps, Rt as CSSRgbString, S as F0ChatComposerState, St as ContentType, T as ComposerTranscribeFn, Tt as contentTypes, U as MentionSearchContext, Ut as ActionItemStatus, V as UserTextPart, Vt as ChatSpinner, W as MentionSource, Wt as F0ActionItemProps, X as ThreadItem, Xt as ClarifyingStepData, Y as ThreadListSkeleton, Yt as ClarifyingSelectionMode, Z as CollapsibleGroup, Zt as ClarifyingStepState, _ as ComposerAutocompletePlugin, _t as F0AiProposalCardHiddenActions, a as PongBall, at as F0AiChatCreditsButton, b as F0ChatComposerLabels, bt as AiInsightCardContent, c as F0AiFileAttachments, ct as F0AiChatHeaderProps, d as aiChatFileFromUploadedFile, dt as F0AiMessageSource, en as F0CanvasCard, et as F0AiChatHistoryProps, f as aiChatFilesFromMessage, ft as F0AiMessageSources, g as ComposerAutocomplete, gt as F0AiProposalCardBaseProps, h as F0ChatComposer, ht as F0AiProposalCardActions, i as F0CanvasPanelProps, it as useChatHistory, j as ComposerMentionSearchContext, jt as F0OneIconProps, k as ComposerMentionPinned, kt as F0OneSwitchProps, l as F0AiFileAttachmentsProps, lt as F0AiTableCard, m as F0AiChatUsageLimitsButton, mt as F0AiProposalCard, n as F0AiProcessingOverlayProps, nt as ThreadGroup, o as F0AiPong, ot as F0AiChatHeader, p as aiChatMessageText, pt as F0AiMessageSourcesProps, q as UsageLimitsPopoverSide, qt as ClarifyingOption, r as F0CanvasPanel, rt as ChatThread, s as F0AiFilePreviewsProvider, st as F0AiChatHeaderAction, t as F0AiProcessingOverlay, tn as F0CanvasCardProps, tt as ThreadActionHandlers, u as aiChatFileFromShowFilesItem, ut as F0AiTableCardProps, v as F0ChatComposerDraft, vt as F0AiProposalCardProps, w as RecorderStatus, wt as SparklineDataPoint, x as F0ChatComposerProps, xt as BalanceConfig, y as F0ChatComposerHandle, yt as F0AiInsightCard, z as F0AiChatTextAreaSubmitPayload, zt as F0AiMask } from "./exports-BByQBwpi.js";
1
+ import { $ as AiChatCredits, $r as ChatDashboardMetricFormat, Ar as AiChatShowFilesItem, At as CustomEntityRefCard, B as RenderableTurn, Br as ChatDashboardBarChartConfig, Ct as WelcomeScreenSuggestionItem, Dr as AiChatFileKind, Er as AiChatFile, Et as SidePanelContent, F as F0AiMessagesContainerProps, Fr as CanvasActions, G as F0AiChatProps, Gr as ChatDashboardConfig, H as MarkdownTagRenderers, Hr as ChatDashboardChartItem, I as WelcomeScreenCta, Ir as CanvasContent, J as AiChatComposerActionItem, Jr as ChatDashboardFunnelChartConfig, K as F0AiChatProvider, Kr as ChatDashboardDateNavigationGranularity, L as FeedbackConfig, Lr as CanvasContentBase, M as useAiChatTranslations, Mr as AutofillTimesheetCanvasContent, Mt as EntityRefs, N as useAiChat, Nr as AutofillTimesheetShift, Nt as EntityResolvers, Or as AiChatFilePreviewConfig, P as F0AiMessagesContainer, Pr as BulkResolveInconsistenciesCanvasContent, Pt as EntityUrlBuilders, Q as AiChatCreditWarning, Qr as ChatDashboardLineChartConfig, R as UserReaction, Rr as CanvasEntityDefinition, St as WelcomeScreenSuggestion, Tt as aiTranslations, U as markdownRenderers, Ur as ChatDashboardCollectionItem, V as ThinkingProps, Vr as ChatDashboardChartConfig, W as F0AiChat, Wr as ChatDashboardColumn, X as AiChatComposerActionSubmenu, Xr as ChatDashboardHeatmapChartConfig, Y as AiChatComposerActionSeparator, Yr as ChatDashboardGaugeChartConfig, Z as AiChatComposerActionToggle, Zr as ChatDashboardItem, _i as PieComputation, ai as CollectionComputation, at as AiChatTrackingOptions, br as CandidateProfile, bt as UploadedFile, ci as DashboardFetchSpec, ct as AiChatUsageLimits, d as useFormCardValueFormatter, di as DataDownloadDataset, dt as AppendToolCall, ei as ChatDashboardMetricItem, f as useSetFormCardValueFormatter, fi as FormCanvasContent, fr as ExpenseProfile, ft as CreditsUsage, gi as MetricComputation, gt as F0ToolCall, hi as HeatmapComputation, ht as F0Message, i as useI18n, ii as ChatDashboardScatterChartConfig, it as AiChatProviderProps, j as AiChatTranslationsProvider, jr as AggregationType, jt as CustomEntityRefConfig, kr as AiChatFileUrlResolver, l as FormCardValueFormatterEntry, li as DashboardMetadata, lt as AiChatUsageLimitsSection, mi as GaugeComputation, mr as RequisitionProfile, mt as F0AiChatWelcomeCard, n as I18nProviderProps, ni as ChatDashboardPieChartConfig, nt as AiChatFileAttachmentConfig, oi as DashboardCanvasActions, ot as AiChatTranslations, pi as FormatPreset, pr as VacancyProfile, pt as F0AIMessage, q as AiChatComposerAction, qr as ChatDashboardFilterDefinition, ri as ChatDashboardRadarChartConfig, rt as AiChatMode, si as DashboardCanvasContent, st as AiChatTranslationsProviderProps, t as I18nProvider, ti as ChatDashboardNavigationFilterDefinition, u as FormCardValueFormatterProvider, ui as DataDownloadCanvasContent, ut as AppendMessage, vi as RadarComputation, wt as WelcomeSuggestionClickEvent, xr as PersonProfile, xt as VisualizationMode, yi as ScatterComputation, yr as JobPostingProfile, z as useToolCallId, zr as ChartComputation } from "./index-DF8ubeg6.js";
2
+ import { n as TranslationsType, r as defaultTranslations } from "./i18n-provider-defaults-DyPn8R7T.js";
3
+ import { $ as DateGroup, $t as useCanvasEntity, A as ComposerMentionRef, At as F0OneIcon, B as UserBinaryPart, Bt as MaskOptions, C as F0ChatComposerVoice, Ct as F0AiInsightCardProps, D as ComposerMention, E as ComposerEditor, F as F0AiChatTextArea, Ft as F0HILActionConfirmationProps, G as TrackedMention, Gt as actionItemStatuses, H as MentionItem, Ht as F0ActionItem, I as AiChatTextAreaUsageLimits, It as F0AuraVoiceAnimation, J as usageLimitsPopoverSides, Jt as ClarifyingQuestionState, K as F0AiChatUsageLimitsButtonProps, Kt as F0ClarifyingPanel, L as AttachedFile, Lt as F0AuraVoiceAnimationProps, M as ComposerMentionSource, Mt as OneIconSize, N as createPersonMentionSource, Nt as oneIconSizes, O as ComposerMentionItem, Ot as F0OneSwitch, P as DropOverlay, Pt as F0HILActionConfirmation, Q as F0AiChatHistory, Qt as ResolvedStepAnswer, R as F0AiChatTextAreaProps, Rt as CSSRgbString, S as F0ChatComposerState, St as ContentType, T as ComposerTranscribeFn, Tt as contentTypes, U as MentionSearchContext, Ut as ActionItemStatus, V as UserTextPart, Vt as ChatSpinner, W as MentionSource, Wt as F0ActionItemProps, X as ThreadItem, Xt as ClarifyingStepData, Y as ThreadListSkeleton, Yt as ClarifyingSelectionMode, Z as CollapsibleGroup, Zt as ClarifyingStepState, _ as ComposerAutocompletePlugin, _t as F0AiProposalCardHiddenActions, a as PongBall, at as F0AiChatCreditsButton, b as F0ChatComposerLabels, bt as AiInsightCardContent, c as F0AiFileAttachments, ct as F0AiChatHeaderProps, d as aiChatFileFromUploadedFile, dt as F0AiMessageSource, en as F0CanvasCard, et as F0AiChatHistoryProps, f as aiChatFilesFromMessage, ft as F0AiMessageSources, g as ComposerAutocomplete, gt as F0AiProposalCardBaseProps, h as F0ChatComposer, ht as F0AiProposalCardActions, i as F0CanvasPanelProps, it as useChatHistory, j as ComposerMentionSearchContext, jt as F0OneIconProps, k as ComposerMentionPinned, kt as F0OneSwitchProps, l as F0AiFileAttachmentsProps, lt as F0AiTableCard, m as F0AiChatUsageLimitsButton, mt as F0AiProposalCard, n as F0AiProcessingOverlayProps, nt as ThreadGroup, o as F0AiPong, ot as F0AiChatHeader, p as aiChatMessageText, pt as F0AiMessageSourcesProps, q as UsageLimitsPopoverSide, qt as ClarifyingOption, r as F0CanvasPanel, rt as ChatThread, s as F0AiFilePreviewsProvider, st as F0AiChatHeaderAction, t as F0AiProcessingOverlay, tn as F0CanvasCardProps, tt as ThreadActionHandlers, u as aiChatFileFromShowFilesItem, ut as F0AiTableCardProps, v as F0ChatComposerDraft, vt as F0AiProposalCardProps, w as RecorderStatus, wt as SparklineDataPoint, x as F0ChatComposerProps, xt as BalanceConfig, y as F0ChatComposerHandle, yt as F0AiInsightCard, z as F0AiChatTextAreaSubmitPayload, zt as F0AiMask } from "./exports-cxvNeHfV.js";
4
4
  export { ActionItemStatus, type AggregationType, type AiChatComposerAction, type AiChatComposerActionItem, type AiChatComposerActionSeparator, type AiChatComposerActionSubmenu, type AiChatComposerActionToggle, type AiChatCreditWarning, type AiChatCredits, type AiChatFile, type AiChatFileAttachmentConfig, type AiChatFileKind, type AiChatFilePreviewConfig, type AiChatFileUrlResolver, type AiChatMode, type AiChatProviderProps, type AiChatShowFilesItem, type AiChatTextAreaUsageLimits, type AiChatTrackingOptions, type AiChatTranslations, AiChatTranslationsProvider, type AiChatTranslationsProviderProps, type AiChatUsageLimits, type AiChatUsageLimitsSection, type AiInsightCardContent, type AppendMessage, type AppendToolCall, type AttachedFile, type AutofillTimesheetCanvasContent, type AutofillTimesheetShift, type BalanceConfig, type BulkResolveInconsistenciesCanvasContent, type CSSRgbString, type CandidateProfile, type CanvasActions, type CanvasContent, type CanvasContentBase, type CanvasEntityDefinition, type ChartComputation, type ChatDashboardBarChartConfig, type ChatDashboardChartConfig, type ChatDashboardChartItem, type ChatDashboardCollectionItem, type ChatDashboardColumn, type ChatDashboardConfig, type ChatDashboardDateNavigationGranularity, type ChatDashboardFilterDefinition, type ChatDashboardFunnelChartConfig, type ChatDashboardGaugeChartConfig, type ChatDashboardHeatmapChartConfig, type ChatDashboardItem, type ChatDashboardLineChartConfig, type ChatDashboardMetricFormat, type ChatDashboardMetricItem, type ChatDashboardNavigationFilterDefinition, type ChatDashboardPieChartConfig, type ChatDashboardRadarChartConfig, type ChatDashboardScatterChartConfig, ChatSpinner, type ChatThread, type ClarifyingOption, type ClarifyingQuestionState, type ClarifyingSelectionMode, type ClarifyingStepData, type ClarifyingStepState, CollapsibleGroup, type CollectionComputation, type ComposerAutocomplete, type ComposerAutocompletePlugin, type ComposerEditor, type ComposerMention, type ComposerMentionItem, type ComposerMentionPinned, type ComposerMentionRef, type ComposerMentionSearchContext, type ComposerMentionSource, type ComposerTranscribeFn, type ContentType, type CreditsUsage, type CustomEntityRefCard, type CustomEntityRefConfig, type DashboardCanvasActions, type DashboardCanvasContent, type DashboardFetchSpec, type DashboardMetadata, type DataDownloadCanvasContent, type DataDownloadDataset, type DateGroup, DropOverlay, type EntityRefs, type EntityResolvers, type EntityUrlBuilders, type ExpenseProfile, type F0AIMessage, F0ActionItem, F0ActionItemProps, F0AiChat, F0AiChatCreditsButton, F0AiChatHeader, type F0AiChatHeaderAction, type F0AiChatHeaderProps, F0AiChatHistory, type F0AiChatHistoryProps, type F0AiChatProps, F0AiChatProvider, F0AiChatTextArea, type F0AiChatTextAreaProps, type F0AiChatTextAreaSubmitPayload, F0AiChatUsageLimitsButton, type F0AiChatUsageLimitsButtonProps, type F0AiChatWelcomeCard, F0AiFileAttachments, type F0AiFileAttachmentsProps, F0AiFilePreviewsProvider, F0AiInsightCard, type F0AiInsightCardProps, F0AiMask, type F0AiMessageSource, F0AiMessageSources, type F0AiMessageSourcesProps, F0AiMessagesContainer, type F0AiMessagesContainerProps, F0AiPong, F0AiProcessingOverlay, type F0AiProcessingOverlayProps, F0AiProposalCard, F0AiProposalCardActions, F0AiProposalCardBaseProps, F0AiProposalCardHiddenActions, F0AiProposalCardProps, F0AiTableCard, type F0AiTableCardProps, F0AuraVoiceAnimation, F0AuraVoiceAnimationProps, F0CanvasCard, type F0CanvasCardProps, F0CanvasPanel, type F0CanvasPanelProps, F0ChatComposer, type F0ChatComposerDraft, type F0ChatComposerHandle, type F0ChatComposerLabels, type F0ChatComposerProps, type F0ChatComposerState, type F0ChatComposerVoice, F0ClarifyingPanel, F0HILActionConfirmation, type F0HILActionConfirmationProps, type F0Message, F0OneIcon, F0OneIconProps, F0OneSwitch, F0OneSwitchProps, type F0ToolCall, type FeedbackConfig, type FormCanvasContent, type FormCardValueFormatterEntry, FormCardValueFormatterProvider, type FormatPreset, type GaugeComputation, type HeatmapComputation, I18nProvider, type I18nProviderProps, type JobPostingProfile, type MarkdownTagRenderers, type MaskOptions, type MentionItem, type MentionSearchContext, type MentionSource, type MetricComputation, OneIconSize, type PersonProfile, type PieComputation, PongBall, type RadarComputation, type RecorderStatus, type RenderableTurn, type RequisitionProfile, type ResolvedStepAnswer, type ScatterComputation, type SidePanelContent, type SparklineDataPoint, type ThinkingProps, type ThreadActionHandlers, type ThreadGroup, ThreadItem, ThreadListSkeleton, type TrackedMention, type TranslationsType, type UploadedFile, type UsageLimitsPopoverSide, type UserBinaryPart, type UserReaction, type UserTextPart, type VacancyProfile, type VisualizationMode, type WelcomeScreenCta, type WelcomeScreenSuggestion, type WelcomeScreenSuggestionItem, type WelcomeSuggestionClickEvent, actionItemStatuses, aiChatFileFromShowFilesItem, aiChatFileFromUploadedFile, aiChatFilesFromMessage, aiChatMessageText, aiTranslations, contentTypes, createPersonMentionSource, defaultTranslations, markdownRenderers, oneIconSizes, usageLimitsPopoverSides, useAiChat, useAiChatTranslations, useCanvasEntity, useChatHistory, useFormCardValueFormatter, useI18n, useSetFormCardValueFormatter, useToolCallId };
package/dist/ai.js CHANGED
@@ -1,5 +1,5 @@
1
- import { rn as e, tn as t } from "./popover-BjrPOMeQ.js";
2
- import { A as n, C as r, D as i, E as a, F as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, _ as g, a as _, b as v, c as y, d as b, f as x, g as S, h as C, i as w, j as T, k as E, l as D, m as O, n as k, o as A, p as j, r as M, s as N, t as P, u as F, v as I, w as L, x as R, y as z, z as B } from "./F0AiProcessingOverlay-H23WHd7F.js";
3
- import { A as V, E as H, Nt as U, Ot as W, Pt as G, R as K, T as q, j as J, k as Y, n as X, t as Z, tt as Q, z as $ } from "./F0CanvasPanel--hLKeQvg.js";
4
- import { t as ee } from "./i18n-provider-defaults-p0UGTA_k.js";
5
- export { v as AiChatTranslationsProvider, G as ChatSpinner, A as CollapsibleGroup, J as DropOverlay, U as F0ActionItem, q as F0AiChat, y as F0AiChatCreditsButton, D as F0AiChatHeader, w as F0AiChatHistory, H as F0AiChatProvider, o as F0AiChatTextArea, c as F0AiChatUsageLimitsButton, h as F0AiFileAttachments, Q as F0AiFilePreviewsProvider, O as F0AiInsightCard, g as F0AiMask, b as F0AiMessageSources, r as F0AiMessagesContainer, Y as F0AiPong, P as F0AiProcessingOverlay, x as F0AiProposalCard, F as F0AiTableCard, S as F0AuraVoiceAnimation, E as F0CanvasCard, Z as F0CanvasPanel, $ as F0ChatComposer, I as F0ClarifyingPanel, C as F0HILActionConfirmation, W as F0OneIcon, X as F0OneSwitch, a as FormCardValueFormatterProvider, t as I18nProvider, V as PongBall, N as ThreadItem, _ as ThreadListSkeleton, B as actionItemStatuses, n as aiChatFileFromShowFilesItem, T as aiChatFileFromUploadedFile, l as aiChatFilesFromMessage, u as aiChatMessageText, m as aiTranslations, j as contentTypes, s as createPersonMentionSource, ee as defaultTranslations, f as markdownRenderers, p as oneIconSizes, k as usageLimitsPopoverSides, K as useAiChat, R as useAiChatTranslations, z as useCanvasEntity, M as useChatHistory, i as useFormCardValueFormatter, e as useI18n, d as useSetFormCardValueFormatter, L as useToolCallId };
1
+ import { r as e, t } from "./i18n-provider-Bdgo-LeP.js";
2
+ import { A as n, C as r, D as i, E as a, F as o, I as s, L as c, M as l, N as u, O as d, P as f, R as p, S as m, T as h, _ as g, a as _, b as v, c as y, d as b, f as x, g as S, h as C, i as w, j as T, k as E, l as D, m as O, n as k, o as A, p as j, r as M, s as N, t as P, u as F, v as I, w as L, x as R, y as z, z as B } from "./F0AiProcessingOverlay-CiUTeBwG.js";
3
+ import { E as V, Lt as H, Mt as U, R as W, Rt as G, T as K, b as q, n as J, t as Y, tt as X, w as Z, x as Q, z as $ } from "./F0CanvasPanel-BOo_mxBl.js";
4
+ import { t as ee } from "./i18n-provider-defaults-B9vdZZeS.js";
5
+ export { v as AiChatTranslationsProvider, G as ChatSpinner, A as CollapsibleGroup, V as DropOverlay, H as F0ActionItem, q as F0AiChat, y as F0AiChatCreditsButton, D as F0AiChatHeader, w as F0AiChatHistory, Q as F0AiChatProvider, o as F0AiChatTextArea, c as F0AiChatUsageLimitsButton, h as F0AiFileAttachments, X as F0AiFilePreviewsProvider, O as F0AiInsightCard, g as F0AiMask, b as F0AiMessageSources, r as F0AiMessagesContainer, Z as F0AiPong, P as F0AiProcessingOverlay, x as F0AiProposalCard, F as F0AiTableCard, S as F0AuraVoiceAnimation, E as F0CanvasCard, Y as F0CanvasPanel, $ as F0ChatComposer, I as F0ClarifyingPanel, C as F0HILActionConfirmation, U as F0OneIcon, J as F0OneSwitch, a as FormCardValueFormatterProvider, t as I18nProvider, K as PongBall, N as ThreadItem, _ as ThreadListSkeleton, B as actionItemStatuses, n as aiChatFileFromShowFilesItem, T as aiChatFileFromUploadedFile, l as aiChatFilesFromMessage, u as aiChatMessageText, m as aiTranslations, j as contentTypes, s as createPersonMentionSource, ee as defaultTranslations, f as markdownRenderers, p as oneIconSizes, k as usageLimitsPopoverSides, W as useAiChat, R as useAiChatTranslations, z as useCanvasEntity, M as useChatHistory, i as useFormCardValueFormatter, e as useI18n, d as useSetFormCardValueFormatter, L as useToolCallId };
@@ -0,0 +1,169 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/bash.js
2
+ function e(e) {
3
+ let t = e.regex, n = {}, r = {
4
+ begin: /\$\{/,
5
+ end: /\}/,
6
+ contains: ["self", {
7
+ begin: /:-/,
8
+ contains: [n]
9
+ }]
10
+ };
11
+ Object.assign(n, {
12
+ className: "variable",
13
+ variants: [{ begin: t.concat(/\$[\w\d#@][\w\d_]*/, "(?![\\w\\d])(?![$])") }, r]
14
+ });
15
+ let i = {
16
+ className: "subst",
17
+ begin: /\$\(/,
18
+ end: /\)/,
19
+ contains: [e.BACKSLASH_ESCAPE]
20
+ }, a = e.inherit(e.COMMENT(), {
21
+ match: [/(^|\s)/, /#.*$/],
22
+ scope: { 2: "comment" }
23
+ }), o = {
24
+ begin: /<<-?\s*(?=\w+)/,
25
+ starts: { contains: [e.END_SAME_AS_BEGIN({
26
+ begin: /(\w+)/,
27
+ end: /(\w+)/,
28
+ className: "string"
29
+ })] }
30
+ }, s = {
31
+ className: "string",
32
+ begin: /"/,
33
+ end: /"/,
34
+ contains: [
35
+ e.BACKSLASH_ESCAPE,
36
+ n,
37
+ i
38
+ ]
39
+ };
40
+ i.contains.push(s);
41
+ let c = { match: /\\"/ }, l = {
42
+ className: "string",
43
+ begin: /'/,
44
+ end: /'/
45
+ }, u = { match: /\\'/ }, d = {
46
+ begin: /\$?\(\(/,
47
+ end: /\)\)/,
48
+ contains: [
49
+ {
50
+ begin: /\d+#[0-9a-f]+/,
51
+ className: "number"
52
+ },
53
+ e.NUMBER_MODE,
54
+ n
55
+ ]
56
+ }, f = e.SHEBANG({
57
+ binary: `(${[
58
+ "fish",
59
+ "bash",
60
+ "zsh",
61
+ "sh",
62
+ "csh",
63
+ "ksh",
64
+ "tcsh",
65
+ "dash",
66
+ "scsh"
67
+ ].join("|")})`,
68
+ relevance: 10
69
+ }), p = {
70
+ className: "function",
71
+ begin: /\w[\w\d_]*\s*\(\s*\)\s*\{/,
72
+ returnBegin: !0,
73
+ contains: [e.inherit(e.TITLE_MODE, { begin: /\w[\w\d_]*/ })],
74
+ relevance: 0
75
+ }, m = [
76
+ "if",
77
+ "then",
78
+ "else",
79
+ "elif",
80
+ "fi",
81
+ "time",
82
+ "for",
83
+ "while",
84
+ "until",
85
+ "in",
86
+ "do",
87
+ "done",
88
+ "case",
89
+ "esac",
90
+ "coproc",
91
+ "function",
92
+ "select"
93
+ ], h = ["true", "false"], g = { match: /(\/[a-z._-]+)+/ }, _ = [
94
+ "break",
95
+ "cd",
96
+ "continue",
97
+ "eval",
98
+ "exec",
99
+ "exit",
100
+ "export",
101
+ "getopts",
102
+ "hash",
103
+ "pwd",
104
+ "readonly",
105
+ "return",
106
+ "shift",
107
+ "test",
108
+ "times",
109
+ "trap",
110
+ "umask",
111
+ "unset"
112
+ ], v = [
113
+ "alias",
114
+ "bind",
115
+ "builtin",
116
+ "caller",
117
+ "command",
118
+ "declare",
119
+ "echo",
120
+ "enable",
121
+ "help",
122
+ "let",
123
+ "local",
124
+ "logout",
125
+ "mapfile",
126
+ "printf",
127
+ "read",
128
+ "readarray",
129
+ "source",
130
+ "sudo",
131
+ "type",
132
+ "typeset",
133
+ "ulimit",
134
+ "unalias"
135
+ ], y = /* @__PURE__ */ "autoload.bg.bindkey.bye.cap.chdir.clone.comparguments.compcall.compctl.compdescribe.compfiles.compgroups.compquote.comptags.comptry.compvalues.dirs.disable.disown.echotc.echoti.emulate.fc.fg.float.functions.getcap.getln.history.integer.jobs.kill.limit.log.noglob.popd.print.pushd.pushln.rehash.sched.setcap.setopt.stat.suspend.ttyctl.unfunction.unhash.unlimit.unsetopt.vared.wait.whence.where.which.zcompile.zformat.zftp.zle.zmodload.zparseopts.zprof.zpty.zregexparse.zsocket.zstyle.ztcp".split("."), b = /* @__PURE__ */ "chcon.chgrp.chown.chmod.cp.dd.df.dir.dircolors.ln.ls.mkdir.mkfifo.mknod.mktemp.mv.realpath.rm.rmdir.shred.sync.touch.truncate.vdir.b2sum.base32.base64.cat.cksum.comm.csplit.cut.expand.fmt.fold.head.join.md5sum.nl.numfmt.od.paste.ptx.pr.sha1sum.sha224sum.sha256sum.sha384sum.sha512sum.shuf.sort.split.sum.tac.tail.tr.tsort.unexpand.uniq.wc.arch.basename.chroot.date.dirname.du.echo.env.expr.factor.groups.hostid.id.link.logname.nice.nohup.nproc.pathchk.pinky.printenv.printf.pwd.readlink.runcon.seq.sleep.stat.stdbuf.stty.tee.test.timeout.tty.uname.unlink.uptime.users.who.whoami.yes".split(".");
136
+ return {
137
+ name: "Bash",
138
+ aliases: ["sh", "zsh"],
139
+ keywords: {
140
+ $pattern: /\b[a-z][a-z0-9._-]+\b/,
141
+ keyword: m,
142
+ literal: h,
143
+ built_in: [
144
+ ..._,
145
+ ...v,
146
+ "set",
147
+ "shopt",
148
+ ...y,
149
+ ...b
150
+ ]
151
+ },
152
+ contains: [
153
+ f,
154
+ e.SHEBANG(),
155
+ p,
156
+ d,
157
+ a,
158
+ o,
159
+ g,
160
+ s,
161
+ c,
162
+ l,
163
+ u,
164
+ n
165
+ ]
166
+ };
167
+ }
168
+ //#endregion
169
+ export { e as default };
@@ -0,0 +1,187 @@
1
+ //#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/c.js
2
+ function e(e) {
3
+ let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
4
+ className: "type",
5
+ variants: [{ begin: "\\b[a-z\\d_]*_t\\b" }, { match: t.concat(/\batomic_/, t.either("bool", "char", "schar", "uchar", "short", "ushort", "int", "uint", "long", "ulong", "llong", "ullong", "char16_t", "char32_t", "wchar_t", "int_least8_t", "uint_least8_t", "int_least16_t", "uint_least16_t", "int_least32_t", "uint_least32_t", "int_least64_t", "uint_least64_t", "int_fast8_t", "uint_fast8_t", "int_fast16_t", "uint_fast16_t", "int_fast32_t", "uint_fast32_t", "int_fast64_t", "uint_fast64_t", "intptr_t", "uintptr_t", "size_t", "ptrdiff_t", "intmax_t", "uintmax_t"), /\b/) }]
6
+ }, o = {
7
+ className: "string",
8
+ variants: [
9
+ {
10
+ begin: "(u8?|U|L)?\"",
11
+ end: "\"",
12
+ illegal: "\\n",
13
+ contains: [e.BACKSLASH_ESCAPE]
14
+ },
15
+ {
16
+ begin: "(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",
17
+ end: "'",
18
+ illegal: "."
19
+ },
20
+ e.END_SAME_AS_BEGIN({
21
+ begin: /(?:u8?|U|L)?R"([^()\\\s"]{0,16})\(/,
22
+ end: /\)([^()\\\s"]{0,16})"/
23
+ })
24
+ ]
25
+ }, s = {
26
+ className: "number",
27
+ variants: [
28
+ { match: /\b(0b[01']+)/ },
29
+ { match: /(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/ },
30
+ { match: /(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/ },
31
+ { match: /(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/ }
32
+ ],
33
+ relevance: 0
34
+ }, c = {
35
+ scope: "meta",
36
+ begin: /#\s*include\b/,
37
+ end: /$/,
38
+ keywords: { keyword: "include" },
39
+ contains: [
40
+ { begin: /\\\n/ },
41
+ o,
42
+ {
43
+ scope: "string",
44
+ begin: /<.*?>/
45
+ },
46
+ n,
47
+ e.C_BLOCK_COMMENT_MODE
48
+ ]
49
+ }, l = {
50
+ className: "meta",
51
+ begin: /#\s*[a-z]+\b/,
52
+ end: /$/,
53
+ keywords: { keyword: "if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include" },
54
+ contains: [
55
+ {
56
+ begin: /\\\n/,
57
+ relevance: 0
58
+ },
59
+ e.inherit(o, { className: "string" }),
60
+ n,
61
+ e.C_BLOCK_COMMENT_MODE
62
+ ]
63
+ }, u = [c, l], d = {
64
+ className: "title",
65
+ begin: t.optional(r) + e.IDENT_RE,
66
+ relevance: 0
67
+ }, f = t.optional(r) + e.IDENT_RE + "\\s*\\(", p = {
68
+ keyword: /* @__PURE__ */ "asm.auto.break.case.continue.default.do.else.enum.extern.for.fortran.goto.if.inline.register.restrict.return.sizeof.typeof.typeof_unqual.struct.switch.typedef.union.volatile.while._Alignas._Alignof._Atomic._Generic._Noreturn._Static_assert._Thread_local.alignas.alignof.noreturn.static_assert.thread_local._Pragma".split("."),
69
+ type: /* @__PURE__ */ "float.double.signed.unsigned.int.short.long.char.void._Bool._BitInt._Complex._Imaginary._Decimal32._Decimal64._Decimal96._Decimal128._Decimal64x._Decimal128x._Float16._Float32._Float64._Float128._Float32x._Float64x._Float128x.const.static.constexpr.complex.bool.imaginary".split("."),
70
+ literal: "true false NULL",
71
+ built_in: "std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"
72
+ }, m = [
73
+ ...u,
74
+ a,
75
+ n,
76
+ e.C_BLOCK_COMMENT_MODE,
77
+ s,
78
+ o
79
+ ], h = {
80
+ variants: [
81
+ {
82
+ begin: /=/,
83
+ end: /;/
84
+ },
85
+ {
86
+ begin: /\(/,
87
+ end: /\)/
88
+ },
89
+ {
90
+ beginKeywords: "new throw return else",
91
+ end: /;/
92
+ }
93
+ ],
94
+ keywords: p,
95
+ contains: m.concat([{
96
+ begin: /\(/,
97
+ end: /\)/,
98
+ keywords: p,
99
+ contains: m.concat(["self"]),
100
+ relevance: 0
101
+ }]),
102
+ relevance: 0
103
+ }, g = {
104
+ begin: "(" + i + "[\\*&\\s]+){1,12}" + f,
105
+ returnBegin: !0,
106
+ end: /[{;=]/,
107
+ excludeEnd: !0,
108
+ keywords: p,
109
+ illegal: /[^\w\s\*&:<>.]/,
110
+ contains: [
111
+ {
112
+ begin: "decltype\\(auto\\)",
113
+ keywords: p,
114
+ relevance: 0
115
+ },
116
+ {
117
+ begin: f,
118
+ returnBegin: !0,
119
+ contains: [e.inherit(d, { className: "title.function" })],
120
+ relevance: 0
121
+ },
122
+ {
123
+ relevance: 0,
124
+ match: /,/
125
+ },
126
+ {
127
+ className: "params",
128
+ begin: /\(/,
129
+ end: /\)/,
130
+ keywords: p,
131
+ relevance: 0,
132
+ contains: [
133
+ n,
134
+ e.C_BLOCK_COMMENT_MODE,
135
+ o,
136
+ s,
137
+ a,
138
+ {
139
+ begin: /\(/,
140
+ end: /\)/,
141
+ keywords: p,
142
+ relevance: 0,
143
+ contains: [
144
+ "self",
145
+ n,
146
+ e.C_BLOCK_COMMENT_MODE,
147
+ o,
148
+ s,
149
+ a
150
+ ]
151
+ }
152
+ ]
153
+ },
154
+ a,
155
+ n,
156
+ e.C_BLOCK_COMMENT_MODE,
157
+ ...u
158
+ ]
159
+ };
160
+ return {
161
+ name: "C",
162
+ aliases: ["h"],
163
+ keywords: p,
164
+ disableAutodetect: !0,
165
+ illegal: "</",
166
+ contains: [].concat(h, g, m, [
167
+ ...u,
168
+ {
169
+ begin: e.IDENT_RE + "::",
170
+ keywords: p
171
+ },
172
+ {
173
+ className: "class",
174
+ beginKeywords: "enum class struct union",
175
+ end: /[{;:<>=]/,
176
+ contains: [{ beginKeywords: "final class struct" }, e.TITLE_MODE]
177
+ }
178
+ ]),
179
+ exports: {
180
+ preprocessor: l,
181
+ strings: o,
182
+ keywords: p
183
+ }
184
+ };
185
+ }
186
+ //#endregion
187
+ export { e as default };