@foris/ai-agent 0.6.0 → 0.7.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 (56) hide show
  1. package/dist/ai-agent.es.js +1 -1
  2. package/dist/ai-agent.umd.js +479 -578
  3. package/dist/ai-chat-panel/ChatPanel.d.ts +2 -0
  4. package/dist/ai-chat-panel/chatPanel.constants.d.ts +6 -0
  5. package/dist/ai-prompt-code-editor/editor-input.d.ts +11 -0
  6. package/dist/{arc-Cwy_FAAZ.js → arc-D25sVj89.js} +1 -1
  7. package/dist/{architectureDiagram-VXUJARFQ-B1-UJMiM.js → architectureDiagram-VXUJARFQ-Cgk-YoAJ.js} +3 -3
  8. package/dist/{blockDiagram-VD42YOAC-Bg7WuLT0.js → blockDiagram-VD42YOAC-DEl6OtG0.js} +4 -4
  9. package/dist/{c4Diagram-YG6GDRKO-CNvcQC6a.js → c4Diagram-YG6GDRKO-C_brDMc_.js} +3 -3
  10. package/dist/{channel-DIM_8NS4.js → channel-BP0bUxGp.js} +1 -1
  11. package/dist/{chunk-4BX2VUAB-BWcWjYwu.js → chunk-4BX2VUAB-C5fELlqE.js} +1 -1
  12. package/dist/{chunk-55IACEB6-DtNYl9nY.js → chunk-55IACEB6-DaHkCIMI.js} +1 -1
  13. package/dist/{chunk-B4BG7PRW-DBB5S5cH.js → chunk-B4BG7PRW-C2Vtaq9f.js} +4 -4
  14. package/dist/{chunk-DI55MBZ5-C6nAAiqC.js → chunk-DI55MBZ5-DmM1ZmJ9.js} +3 -3
  15. package/dist/{chunk-FMBD7UC4-B6AjbSrR.js → chunk-FMBD7UC4-MWLCTT_V.js} +1 -1
  16. package/dist/{chunk-QN33PNHL-B0uYFSeh.js → chunk-QN33PNHL-BFfd-KsX.js} +1 -1
  17. package/dist/{chunk-QZHKN3VN-CSDjUowT.js → chunk-QZHKN3VN-DvYwzcYM.js} +1 -1
  18. package/dist/{chunk-TZMSLE5B-Ca1zk2vP.js → chunk-TZMSLE5B-B_VLLszl.js} +1 -1
  19. package/dist/{classDiagram-2ON5EDUG-C_c8E9FP.js → classDiagram-2ON5EDUG-CEjscqbc.js} +6 -6
  20. package/dist/{classDiagram-v2-WZHVMYZB-C_c8E9FP.js → classDiagram-v2-WZHVMYZB-CEjscqbc.js} +6 -6
  21. package/dist/{code-block-QI2IAROF-CuUy0mnB.js → code-block-QI2IAROF-MPMUtVbZ.js} +1 -1
  22. package/dist/components/ai-chat-logo/AiChatLogo.d.ts +5 -0
  23. package/dist/components/ai-chat-logo/index.d.ts +2 -0
  24. package/dist/components/ai-elements/conversation.d.ts +7 -4
  25. package/dist/components/ai-elements/message.d.ts +8 -8
  26. package/dist/components/ai-elements/tool.d.ts +9 -9
  27. package/dist/components/ui/input-group.d.ts +8 -8
  28. package/dist/{cose-bilkent-S5V4N54A-C7Y9e90Q.js → cose-bilkent-S5V4N54A-DNnmrjSK.js} +2 -2
  29. package/dist/{dagre-6UL2VRFP-BYW0skUi.js → dagre-6UL2VRFP-c7TGz1C2.js} +2 -2
  30. package/dist/{diagram-PSM6KHXK-Bznhb7hC.js → diagram-PSM6KHXK-CyVHRF5H.js} +4 -4
  31. package/dist/{diagram-QEK2KX5R-BgSmsry5.js → diagram-QEK2KX5R-BQj43c4D.js} +3 -3
  32. package/dist/{diagram-S2PKOQOG-PXuksWgt.js → diagram-S2PKOQOG-Dp2Zxf6h.js} +3 -3
  33. package/dist/{erDiagram-Q2GNP2WA-BZj3IESM.js → erDiagram-Q2GNP2WA-UU_sJ3Nk.js} +5 -5
  34. package/dist/{flowDiagram-NV44I4VS-Bc6_zLaJ.js → flowDiagram-NV44I4VS-DmHh0Mw6.js} +6 -6
  35. package/dist/{ganttDiagram-JELNMOA3-CLMVqeY5.js → ganttDiagram-JELNMOA3-B2DD6FxH.js} +3 -3
  36. package/dist/{gitGraphDiagram-NY62KEGX-4mKiKaxs.js → gitGraphDiagram-NY62KEGX-BIUvS6sD.js} +4 -4
  37. package/dist/hooks/useChatScroll.d.ts +13 -0
  38. package/dist/{index-Z0agb9P7.js → index-DWpc-Mxs.js} +13735 -13750
  39. package/dist/{infoDiagram-WHAUD3N6-CZgQFgny.js → infoDiagram-WHAUD3N6-Cz5rmERs.js} +2 -2
  40. package/dist/{journeyDiagram-XKPGCS4Q-CNy0BP9N.js → journeyDiagram-XKPGCS4Q-Dia_QTZe.js} +5 -5
  41. package/dist/{kanban-definition-3W4ZIXB7-CEX_c0Kj.js → kanban-definition-3W4ZIXB7-ClIKCv5J.js} +3 -3
  42. package/dist/{linear-CD6IiF07.js → linear-ZyP8gWvJ.js} +1 -1
  43. package/dist/{mermaid-NA5CF7SZ-CH1oqogY.js → mermaid-NA5CF7SZ-BbXrnAMx.js} +1 -1
  44. package/dist/{mermaid.core-ZUwHDr0v.js → mermaid.core-Ce2qm3MW.js} +31 -31
  45. package/dist/{mindmap-definition-VGOIOE7T-BURJsEy8.js → mindmap-definition-VGOIOE7T-CUj7ttm7.js} +4 -4
  46. package/dist/{pieDiagram-ADFJNKIX-DhjpfyOd.js → pieDiagram-ADFJNKIX-w5KEkOWO.js} +4 -4
  47. package/dist/{quadrantDiagram-AYHSOK5B-BPfUc7N-.js → quadrantDiagram-AYHSOK5B-C4-Gx7bz.js} +3 -3
  48. package/dist/{requirementDiagram-UZGBJVZJ-CnxEdTU8.js → requirementDiagram-UZGBJVZJ-Cr3_wZVs.js} +4 -4
  49. package/dist/{sankeyDiagram-TZEHDZUN-BEAqOkfR.js → sankeyDiagram-TZEHDZUN-DqXQCv8A.js} +2 -2
  50. package/dist/{sequenceDiagram-WL72ISMW-Do4JCDiB.js → sequenceDiagram-WL72ISMW-DFW243PP.js} +4 -4
  51. package/dist/{stateDiagram-FKZM4ZOC-SCm7q9lv.js → stateDiagram-FKZM4ZOC-C7xue1N-.js} +5 -5
  52. package/dist/{stateDiagram-v2-4FDKWEC3-D6CFYySF.js → stateDiagram-v2-4FDKWEC3-CxbMhTx0.js} +5 -5
  53. package/dist/style.css +1 -1
  54. package/dist/{timeline-definition-IT6M3QCI-pBxBbVmM.js → timeline-definition-IT6M3QCI-HXVoEY4s.js} +3 -3
  55. package/dist/{xychartDiagram-PRI3JC2R-DzokeHor.js → xychartDiagram-PRI3JC2R-7Isc60Pi.js} +3 -3
  56. package/package.json +1 -1
@@ -1,6 +1,8 @@
1
1
  interface ChatPanelProps {
2
2
  api: string;
3
3
  headers?: any;
4
+ className?: string;
5
+ onClose?: () => void;
4
6
  }
5
7
  export declare const ChatPanel: (props: ChatPanelProps) => import("react/jsx-runtime").JSX.Element;
6
8
  export default ChatPanel;
@@ -20,4 +20,10 @@ export type MessageType = {
20
20
  };
21
21
  tool?: ToolCall;
22
22
  };
23
+ export type SuggestionType = {
24
+ key: string;
25
+ title: string;
26
+ description: string;
27
+ };
23
28
  export declare const INITIAL_MESSAGES: MessageType[];
29
+ export declare const INITIAL_SUGGESTIONS: SuggestionType[];
@@ -0,0 +1,11 @@
1
+ interface EditorInputProps {
2
+ value?: string;
3
+ placeholder?: string;
4
+ label?: string;
5
+ loading?: boolean;
6
+ disabled?: boolean;
7
+ setValue?: (value: string) => void;
8
+ onSubmit?: () => void;
9
+ }
10
+ declare const EditorInput: ({ value, placeholder, label, loading, disabled, setValue, onSubmit, }: EditorInputProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default EditorInput;
@@ -1,4 +1,4 @@
1
- import { M as ln, N as an, O as y, P as tn, Q as Y, R as O, S as _, T as un, V as rn, W as j, X as o, Y as Q, Z as sn, $ as on, a0 as fn } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { M as ln, N as an, O as y, P as tn, Q as Y, R as O, S as _, T as un, V as rn, W as j, X as o, Y as Q, Z as sn, $ as on, a0 as fn } from "./mermaid.core-Ce2qm3MW.js";
2
2
  function cn(l) {
3
3
  return l.innerRadius;
4
4
  }
@@ -1,8 +1,8 @@
1
- import { E as Ze, s as ke, g as qe, o as Qe, p as Je, b as Ke, c as je, _ as dt, v as _e, F as tr, G as er, ax as rr, ay as ir, l as Re, j as ar, K as nr, ad as or, t as sr, az as ye, d as Ee, aA as ve, i as hr } from "./mermaid.core-ZUwHDr0v.js";
2
- import { p as lr } from "./chunk-4BX2VUAB-BWcWjYwu.js";
1
+ import { E as Ze, s as ke, g as qe, o as Qe, p as Je, b as Ke, c as je, _ as dt, v as _e, F as tr, G as er, ax as rr, ay as ir, l as Re, j as ar, K as nr, ad as or, t as sr, az as ye, d as Ee, aA as ve, i as hr } from "./mermaid.core-Ce2qm3MW.js";
2
+ import { p as lr } from "./chunk-4BX2VUAB-C5fELlqE.js";
3
3
  import { p as fr } from "./treemap-KMMF4GRG-D_L55G0b.js";
4
4
  import { c as Se } from "./cytoscape.esm-ClN43hhW.js";
5
- import { c as me, g as cr } from "./index-Z0agb9P7.js";
5
+ import { c as me, g as cr } from "./index-DWpc-Mxs.js";
6
6
  import "react";
7
7
  import "react-dom";
8
8
  var Fe = { exports: {} }, ue = { exports: {} }, de = { exports: {} }, we;
@@ -1,8 +1,8 @@
1
- import { g as Ce } from "./chunk-FMBD7UC4-B6AjbSrR.js";
2
- import { aG as Ie, aH as Be, aI as Oe, aJ as Jt, aK as Qt, aL as Rt, aM as Ae, aN as Re, aO as te, aP as Tt, aQ as gt, aR as ee, aS as ze, aT as Me, aU as je, aV as Fe, aW as Pe, aX as We, aY as Ye, _ as g, d as z, l as L, j as R, i as mt, aZ as Ke, G as it, a_ as Z, az as re, ar as Ue, u as rt, a$ as He, a9 as Xe, a4 as Ve, k as Ge, v as $e, B as Ze, aa as qe, b0 as Je, b1 as Lt, e as Qe } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { g as Ce } from "./chunk-FMBD7UC4-MWLCTT_V.js";
2
+ import { aG as Ie, aH as Be, aI as Oe, aJ as Jt, aK as Qt, aL as Rt, aM as Ae, aN as Re, aO as te, aP as Tt, aQ as gt, aR as ee, aS as ze, aT as Me, aU as je, aV as Fe, aW as Pe, aX as We, aY as Ye, _ as g, d as z, l as L, j as R, i as mt, aZ as Ke, G as it, a_ as Z, az as re, ar as Ue, u as rt, a$ as He, a9 as Xe, a4 as Ve, k as Ge, v as $e, B as Ze, aa as qe, b0 as Je, b1 as Lt, e as Qe } from "./mermaid.core-Ce2qm3MW.js";
3
3
  import { G as tr } from "./graph-DB2UxkYH.js";
4
- import { c as er } from "./channel-DIM_8NS4.js";
5
- import "./index-Z0agb9P7.js";
4
+ import { c as er } from "./channel-BP0bUxGp.js";
5
+ import "./index-DWpc-Mxs.js";
6
6
  import "react";
7
7
  import "react-dom";
8
8
  function rr(e, t) {
@@ -1,6 +1,6 @@
1
- import { d as Se, g as De } from "./chunk-TZMSLE5B-Ca1zk2vP.js";
2
- import { _ as g, a as Pe, s as Be, g as Ie, b as Me, c as Le, d as Dt, w as Ne, e as $t, f as de, h as Tt, i as ge, j as jt, l as fe, k as Ye, m as je } from "./mermaid.core-ZUwHDr0v.js";
3
- import "./index-Z0agb9P7.js";
1
+ import { d as Se, g as De } from "./chunk-TZMSLE5B-B_VLLszl.js";
2
+ import { _ as g, a as Pe, s as Be, g as Ie, b as Me, c as Le, d as Dt, w as Ne, e as $t, f as de, h as Tt, i as ge, j as jt, l as fe, k as Ye, m as je } from "./mermaid.core-Ce2qm3MW.js";
3
+ import "./index-DWpc-Mxs.js";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  var Ft = function() {
@@ -1,4 +1,4 @@
1
- import { U as a, C as n } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { U as a, C as n } from "./mermaid.core-Ce2qm3MW.js";
2
2
  const t = (r, o) => a.lang.round(n.parse(r)[o]);
3
3
  export {
4
4
  t as c
@@ -1,4 +1,4 @@
1
- import { _ as l } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { _ as l } from "./mermaid.core-Ce2qm3MW.js";
2
2
  function m(e, c) {
3
3
  var i, t, o;
4
4
  e.accDescr && ((i = c.setAccDescription) == null || i.call(c, e.accDescr)), e.accTitle && ((t = c.setAccTitle) == null || t.call(c, e.accTitle)), e.title && ((o = c.setDiagramTitle) == null || o.call(c, e.title));
@@ -1,4 +1,4 @@
1
- import { _ as a, j as o } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { _ as a, j as o } from "./mermaid.core-Ce2qm3MW.js";
2
2
  var g = /* @__PURE__ */ a((t, e) => {
3
3
  let n;
4
4
  return e === "sandbox" && (n = o("#i" + t)), (e === "sandbox" ? o(n.nodes()[0].contentDocument.body) : o("body")).select(`[id="${t}"]`);
@@ -1,7 +1,7 @@
1
- import { g as et } from "./chunk-FMBD7UC4-B6AjbSrR.js";
2
- import { g as tt } from "./chunk-55IACEB6-DtNYl9nY.js";
3
- import { s as st } from "./chunk-QN33PNHL-B0uYFSeh.js";
4
- import { _ as f, i as it, d as F, a8 as R, j as Z, s as at, g as nt, c as rt, b as ut, o as lt, p as ot, e as v, v as ct, l as Oe, u as we, t as ht, z as dt, A as pt } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { g as et } from "./chunk-FMBD7UC4-MWLCTT_V.js";
2
+ import { g as tt } from "./chunk-55IACEB6-DaHkCIMI.js";
3
+ import { s as st } from "./chunk-QN33PNHL-BFfd-KsX.js";
4
+ import { _ as f, i as it, d as F, a8 as R, j as Z, s as at, g as nt, c as rt, b as ut, o as lt, p as ot, e as v, v as ct, l as Oe, u as we, t as ht, z as dt, A as pt } from "./mermaid.core-Ce2qm3MW.js";
5
5
  var Ve = function() {
6
6
  var s = /* @__PURE__ */ f(function(I, o, h, p) {
7
7
  for (h = h || {}, p = I.length; p--; h[I[p]] = o)
@@ -1,6 +1,6 @@
1
- import { g as te } from "./chunk-55IACEB6-DtNYl9nY.js";
2
- import { s as ee } from "./chunk-QN33PNHL-B0uYFSeh.js";
3
- import { _ as f, g as se, s as ie, b as re, c as ae, o as ne, p as oe, d as F, l as b, ab as le, e as W, v as ce, A as he, u as ue } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { g as te } from "./chunk-55IACEB6-DaHkCIMI.js";
2
+ import { s as ee } from "./chunk-QN33PNHL-BFfd-KsX.js";
3
+ import { _ as f, g as se, s as ie, b as re, c as ae, o as ne, p as oe, d as F, l as b, ab as le, e as W, v as ce, A as he, u as ue } from "./mermaid.core-Ce2qm3MW.js";
4
4
  var vt = function() {
5
5
  var e = /* @__PURE__ */ f(function(V, o, h, n) {
6
6
  for (h = h || {}, n = V.length; n--; h[V[n]] = o)
@@ -1,4 +1,4 @@
1
- import { _ as e } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { _ as e } from "./mermaid.core-Ce2qm3MW.js";
2
2
  var l = /* @__PURE__ */ e(() => `
3
3
  /* Font Awesome icon styling - consolidated */
4
4
  .label-icon {
@@ -1,4 +1,4 @@
1
- import { _ as a, k as w, l as x } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { _ as a, k as w, l as x } from "./mermaid.core-Ce2qm3MW.js";
2
2
  var d = /* @__PURE__ */ a((e, t, i, o) => {
3
3
  e.attr("class", i);
4
4
  const { width: r, height: h, x: n, y: c } = u(e, t);
@@ -1,4 +1,4 @@
1
- import { _ as s } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { _ as s } from "./mermaid.core-Ce2qm3MW.js";
2
2
  var t, e = (t = class {
3
3
  /**
4
4
  * @param init - Function that creates the default state.
@@ -1,4 +1,4 @@
1
- import { _ as n, n as c, m as l } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { _ as n, n as c, m as l } from "./mermaid.core-Ce2qm3MW.js";
2
2
  var o = /* @__PURE__ */ n((a, t) => {
3
3
  const e = a.append("rect");
4
4
  if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
@@ -1,9 +1,9 @@
1
- import { c as a, C as s, a as e, s as t } from "./chunk-B4BG7PRW-DBB5S5cH.js";
2
- import { _ as i } from "./mermaid.core-ZUwHDr0v.js";
3
- import "./chunk-FMBD7UC4-B6AjbSrR.js";
4
- import "./chunk-55IACEB6-DtNYl9nY.js";
5
- import "./chunk-QN33PNHL-B0uYFSeh.js";
6
- import "./index-Z0agb9P7.js";
1
+ import { c as a, C as s, a as e, s as t } from "./chunk-B4BG7PRW-C2Vtaq9f.js";
2
+ import { _ as i } from "./mermaid.core-Ce2qm3MW.js";
3
+ import "./chunk-FMBD7UC4-MWLCTT_V.js";
4
+ import "./chunk-55IACEB6-DaHkCIMI.js";
5
+ import "./chunk-QN33PNHL-BFfd-KsX.js";
6
+ import "./index-DWpc-Mxs.js";
7
7
  import "react";
8
8
  import "react-dom";
9
9
  var f = {
@@ -1,9 +1,9 @@
1
- import { c as a, C as s, a as e, s as t } from "./chunk-B4BG7PRW-DBB5S5cH.js";
2
- import { _ as i } from "./mermaid.core-ZUwHDr0v.js";
3
- import "./chunk-FMBD7UC4-B6AjbSrR.js";
4
- import "./chunk-55IACEB6-DtNYl9nY.js";
5
- import "./chunk-QN33PNHL-B0uYFSeh.js";
6
- import "./index-Z0agb9P7.js";
1
+ import { c as a, C as s, a as e, s as t } from "./chunk-B4BG7PRW-C2Vtaq9f.js";
2
+ import { _ as i } from "./mermaid.core-Ce2qm3MW.js";
3
+ import "./chunk-FMBD7UC4-MWLCTT_V.js";
4
+ import "./chunk-55IACEB6-DaHkCIMI.js";
5
+ import "./chunk-QN33PNHL-BFfd-KsX.js";
6
+ import "./index-DWpc-Mxs.js";
7
7
  import "react";
8
8
  import "react-dom";
9
9
  var f = {
@@ -12,7 +12,7 @@ var $ = (e, r, t) => (Ce(e, r, "read from private field"), t ? t.call(e) : r.get
12
12
  r instanceof WeakSet ? r.add(e) : r.set(e, t);
13
13
  }, M = (e, r, t, n) => (Ce(e, r, "write to private field"), n ? n.call(e, t) : r.set(e, t), t);
14
14
  var be = (e, r, t) => (Ce(e, r, "access private method"), t), Ve = (e, r, t) => Br(Tr(e), t, r);
15
- import { u as Re, j as v, C as Vr, D as zr, a as Wr, b as Hr } from "./index-Z0agb9P7.js";
15
+ import { u as Re, j as v, C as Vr, D as zr, a as Wr, b as Hr } from "./index-DWpc-Mxs.js";
16
16
  import { memo as Xr, useMemo as pr, useContext as Zr, useState as Qr, useEffect as qr } from "react";
17
17
  import "react-dom";
18
18
  function ne(e) {
@@ -0,0 +1,5 @@
1
+ interface AiChatLogoProps {
2
+ className?: string;
3
+ }
4
+ declare const AiChatLogo: ({ className }: AiChatLogoProps) => import("react/jsx-runtime").JSX.Element;
5
+ export default AiChatLogo;
@@ -0,0 +1,2 @@
1
+ import AiChatLogo from './AiChatLogo';
2
+ export default AiChatLogo;
@@ -1,11 +1,14 @@
1
1
  import { Button } from '../ui/button';
2
- import type { ComponentProps } from "react";
3
- import { StickToBottom } from "use-stick-to-bottom";
4
- export type ConversationProps = ComponentProps<typeof StickToBottom>;
2
+ import type { ComponentProps } from 'react';
3
+ import { StickToBottom } from 'use-stick-to-bottom';
4
+ export type ConversationProps = ComponentProps<typeof StickToBottom> & {
5
+ ref?: React.Ref<HTMLDivElement>;
6
+ onScroll?: (e: React.UIEvent<HTMLDivElement>) => void;
7
+ };
5
8
  export declare const Conversation: ({ className, ...props }: ConversationProps) => import("react/jsx-runtime").JSX.Element;
6
9
  export type ConversationContentProps = ComponentProps<typeof StickToBottom.Content>;
7
10
  export declare const ConversationContent: ({ className, ...props }: ConversationContentProps) => import("react/jsx-runtime").JSX.Element;
8
- export type ConversationEmptyStateProps = ComponentProps<"div"> & {
11
+ export type ConversationEmptyStateProps = ComponentProps<'div'> & {
9
12
  title?: string;
10
13
  description?: string;
11
14
  icon?: React.ReactNode;
@@ -1,14 +1,14 @@
1
1
  import { Button } from '../ui/button';
2
- import type { FileUIPart, UIMessage } from "ai";
3
- import type { ComponentProps, HTMLAttributes } from "react";
4
- import { Streamdown } from "streamdown";
2
+ import type { FileUIPart, UIMessage } from 'ai';
3
+ import type { ComponentProps, HTMLAttributes } from 'react';
4
+ import { Streamdown } from 'streamdown';
5
5
  export type MessageProps = HTMLAttributes<HTMLDivElement> & {
6
- from: UIMessage["role"];
6
+ from: UIMessage['role'];
7
7
  };
8
8
  export declare const Message: ({ className, from, ...props }: MessageProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export type MessageContentProps = HTMLAttributes<HTMLDivElement>;
10
10
  export declare const MessageContent: ({ children, className, ...props }: MessageContentProps) => import("react/jsx-runtime").JSX.Element;
11
- export type MessageActionsProps = ComponentProps<"div">;
11
+ export type MessageActionsProps = ComponentProps<'div'>;
12
12
  export declare const MessageActions: ({ className, children, ...props }: MessageActionsProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export type MessageActionProps = ComponentProps<typeof Button> & {
14
14
  tooltip?: string;
@@ -23,7 +23,7 @@ export declare const MessageBranch: ({ defaultBranch, onBranchChange, className,
23
23
  export type MessageBranchContentProps = HTMLAttributes<HTMLDivElement>;
24
24
  export declare const MessageBranchContent: ({ children, ...props }: MessageBranchContentProps) => import("react/jsx-runtime").JSX.Element[];
25
25
  export type MessageBranchSelectorProps = HTMLAttributes<HTMLDivElement> & {
26
- from: UIMessage["role"];
26
+ from: UIMessage['role'];
27
27
  };
28
28
  export declare const MessageBranchSelector: ({ className, from, ...props }: MessageBranchSelectorProps) => import("react/jsx-runtime").JSX.Element | null;
29
29
  export type MessageBranchPreviousProps = ComponentProps<typeof Button>;
@@ -40,7 +40,7 @@ export type MessageAttachmentProps = HTMLAttributes<HTMLDivElement> & {
40
40
  onRemove?: () => void;
41
41
  };
42
42
  export declare function MessageAttachment({ data, className, onRemove, ...props }: MessageAttachmentProps): import("react/jsx-runtime").JSX.Element;
43
- export type MessageAttachmentsProps = ComponentProps<"div">;
43
+ export type MessageAttachmentsProps = ComponentProps<'div'>;
44
44
  export declare function MessageAttachments({ children, className, ...props }: MessageAttachmentsProps): import("react/jsx-runtime").JSX.Element | null;
45
- export type MessageToolbarProps = ComponentProps<"div">;
45
+ export type MessageToolbarProps = ComponentProps<'div'>;
46
46
  export declare const MessageToolbar: ({ className, children, ...props }: MessageToolbarProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,23 +1,23 @@
1
1
  import { Collapsible, CollapsibleContent } from '../ui/collapsible';
2
- import type { ToolUIPart } from "ai";
3
- import type { ComponentProps } from "react";
2
+ import type { ToolUIPart } from 'ai';
3
+ import type { ComponentProps } from 'react';
4
4
  export type ToolProps = ComponentProps<typeof Collapsible>;
5
5
  export declare const Tool: ({ className, ...props }: ToolProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export type ToolHeaderProps = {
7
7
  title?: string;
8
- type: ToolUIPart["type"];
9
- state: ToolUIPart["state"];
8
+ type: ToolUIPart['type'];
9
+ state: ToolUIPart['state'];
10
10
  className?: string;
11
11
  };
12
12
  export declare const ToolHeader: ({ className, title, type, state, ...props }: ToolHeaderProps) => import("react/jsx-runtime").JSX.Element;
13
13
  export type ToolContentProps = ComponentProps<typeof CollapsibleContent>;
14
14
  export declare const ToolContent: ({ className, ...props }: ToolContentProps) => import("react/jsx-runtime").JSX.Element;
15
- export type ToolInputProps = ComponentProps<"div"> & {
16
- input: ToolUIPart["input"];
15
+ export type ToolInputProps = ComponentProps<'div'> & {
16
+ input: ToolUIPart['input'];
17
17
  };
18
18
  export declare const ToolInput: ({ className, input, ...props }: ToolInputProps) => import("react/jsx-runtime").JSX.Element;
19
- export type ToolOutputProps = ComponentProps<"div"> & {
20
- output: ToolUIPart["output"];
21
- errorText: ToolUIPart["errorText"];
19
+ export type ToolOutputProps = ComponentProps<'div'> & {
20
+ output: ToolUIPart['output'];
21
+ errorText: ToolUIPart['errorText'];
22
22
  };
23
23
  export declare const ToolOutput: ({ className, output, errorText, ...props }: ToolOutputProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,16 +1,16 @@
1
- import * as React from "react";
2
- import { type VariantProps } from "class-variance-authority";
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
3
  import { Button } from './button';
4
- declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
4
+ declare function InputGroup({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
5
5
  declare const inputGroupAddonVariants: (props?: ({
6
6
  align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
7
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
- declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
8
+ declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
9
9
  declare const inputGroupButtonVariants: (props?: ({
10
10
  size?: "sm" | "icon-sm" | "xs" | "icon-xs" | null | undefined;
11
11
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
- declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
13
- declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
14
- declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
15
- declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
12
+ declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
13
+ declare function InputGroupText({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
14
+ declare function InputGroupInput({ className, ...props }: React.ComponentProps<'input'>): import("react/jsx-runtime").JSX.Element;
15
+ declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<'textarea'>): import("react/jsx-runtime").JSX.Element;
16
16
  export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
@@ -1,6 +1,6 @@
1
- import { _ as V, j as lt, l as k } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { _ as V, j as lt, l as k } from "./mermaid.core-Ce2qm3MW.js";
2
2
  import { c as J } from "./cytoscape.esm-ClN43hhW.js";
3
- import { c as $, g as gt } from "./index-Z0agb9P7.js";
3
+ import { c as $, g as gt } from "./index-DWpc-Mxs.js";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  var tt = { exports: {} }, Z = { exports: {} }, Q = { exports: {} }, q;
@@ -1,7 +1,7 @@
1
- import { _ as X, al as j, am as F, an as Y, ao as H, l as i, d as V, ap as q, aq as U, ai as $, ar as z, aj as P, ah as K, as as Q, at as W, au as Z } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { _ as X, al as j, am as F, an as Y, ao as H, l as i, d as V, ap as q, aq as U, ai as $, ar as z, aj as P, ah as K, as as Q, at as W, au as Z } from "./mermaid.core-Ce2qm3MW.js";
2
2
  import { i as x, G as B } from "./graph-DB2UxkYH.js";
3
3
  import { b as L, m as A, l as I } from "./layout-Q6wQN5dr.js";
4
- import "./index-Z0agb9P7.js";
4
+ import "./index-DWpc-Mxs.js";
5
5
  import "react";
6
6
  import "react-dom";
7
7
  var ee = 4;
@@ -1,10 +1,10 @@
1
- import { s as he, g as ue, o as pe, p as fe, b as ge, c as me, _ as w, G as te, F as ae, b2 as ye, v as Se, E as ve, l as J, K as xe, k as be, b3 as P, j as Y } from "./mermaid.core-ZUwHDr0v.js";
2
- import { s as we } from "./chunk-QN33PNHL-B0uYFSeh.js";
3
- import { p as Ce } from "./chunk-4BX2VUAB-BWcWjYwu.js";
1
+ import { s as he, g as ue, o as pe, p as fe, b as ge, c as me, _ as w, G as te, F as ae, b2 as ye, v as Se, E as ve, l as J, K as xe, k as be, b3 as P, j as Y } from "./mermaid.core-Ce2qm3MW.js";
2
+ import { s as we } from "./chunk-QN33PNHL-BFfd-KsX.js";
3
+ import { p as Ce } from "./chunk-4BX2VUAB-C5fELlqE.js";
4
4
  import { p as Te } from "./treemap-KMMF4GRG-D_L55G0b.js";
5
5
  import { b as I } from "./defaultLocale-DcQU6Vee.js";
6
6
  import { o as Z } from "./ordinal-MUacOSdK.js";
7
- import "./index-Z0agb9P7.js";
7
+ import "./index-DWpc-Mxs.js";
8
8
  import "react";
9
9
  import "react-dom";
10
10
  import "./init-DjUOC4st.js";
@@ -1,7 +1,7 @@
1
- import { E as k, _ as l, s as R, g as E, o as F, p as I, b as _, c as D, l as G, F as y, G as C, v as P, K as z, a1 as V } from "./mermaid.core-ZUwHDr0v.js";
2
- import { p as W } from "./chunk-4BX2VUAB-BWcWjYwu.js";
1
+ import { E as k, _ as l, s as R, g as E, o as F, p as I, b as _, c as D, l as G, F as y, G as C, v as P, K as z, a1 as V } from "./mermaid.core-Ce2qm3MW.js";
2
+ import { p as W } from "./chunk-4BX2VUAB-C5fELlqE.js";
3
3
  import { p as B } from "./treemap-KMMF4GRG-D_L55G0b.js";
4
- import "./index-Z0agb9P7.js";
4
+ import "./index-DWpc-Mxs.js";
5
5
  import "react";
6
6
  import "react-dom";
7
7
  var h = {
@@ -1,7 +1,7 @@
1
- import { E as B, s as C, g as S, o as D, p as T, b as E, c as F, _ as b, F as m, G as P, v as z, l as w, K as A, k as W } from "./mermaid.core-ZUwHDr0v.js";
2
- import { p as _ } from "./chunk-4BX2VUAB-BWcWjYwu.js";
1
+ import { E as B, s as C, g as S, o as D, p as T, b as E, c as F, _ as b, F as m, G as P, v as z, l as w, K as A, k as W } from "./mermaid.core-Ce2qm3MW.js";
2
+ import { p as _ } from "./chunk-4BX2VUAB-C5fELlqE.js";
3
3
  import { p as N } from "./treemap-KMMF4GRG-D_L55G0b.js";
4
- import "./index-Z0agb9P7.js";
4
+ import "./index-DWpc-Mxs.js";
5
5
  import "react";
6
6
  import "react-dom";
7
7
  var L = B.packet, u, v = (u = class {
@@ -1,8 +1,8 @@
1
- import { g as Dt } from "./chunk-55IACEB6-DtNYl9nY.js";
2
- import { s as wt } from "./chunk-QN33PNHL-B0uYFSeh.js";
3
- import { _ as u, s as Vt, g as Lt, c as Mt, b as Bt, o as Ft, p as Yt, d as tt, l as D, v as Pt, t as zt, D as Gt, z as Kt, A as Zt, j as Ut, u as jt, B as Wt } from "./mermaid.core-ZUwHDr0v.js";
4
- import { c as Qt } from "./channel-DIM_8NS4.js";
5
- import "./index-Z0agb9P7.js";
1
+ import { g as Dt } from "./chunk-55IACEB6-DaHkCIMI.js";
2
+ import { s as wt } from "./chunk-QN33PNHL-BFfd-KsX.js";
3
+ import { _ as u, s as Vt, g as Lt, c as Mt, b as Bt, o as Ft, p as Yt, d as tt, l as D, v as Pt, t as zt, D as Gt, z as Kt, A as Zt, j as Ut, u as jt, B as Wt } from "./mermaid.core-Ce2qm3MW.js";
4
+ import { c as Qt } from "./channel-BP0bUxGp.js";
5
+ import "./index-DWpc-Mxs.js";
6
6
  import "react";
7
7
  import "react-dom";
8
8
  var dt = function() {
@@ -1,9 +1,9 @@
1
- import { g as qt } from "./chunk-FMBD7UC4-B6AjbSrR.js";
2
- import { d as b1, s as Ht, c as Xt, o as Qt, g as Jt, b as Zt, p as $t, _ as m, e as te, q as ee, J as se, r as ie, l as t1, t as st, u as it, j as S1, v as re, x as ae, y as Ot, z as ne, A as ue, B as oe } from "./mermaid.core-ZUwHDr0v.js";
3
- import { g as le } from "./chunk-55IACEB6-DtNYl9nY.js";
4
- import { s as ce } from "./chunk-QN33PNHL-B0uYFSeh.js";
5
- import { c as he } from "./channel-DIM_8NS4.js";
6
- import "./index-Z0agb9P7.js";
1
+ import { g as qt } from "./chunk-FMBD7UC4-MWLCTT_V.js";
2
+ import { d as b1, s as Ht, c as Xt, o as Qt, g as Jt, b as Zt, p as $t, _ as m, e as te, q as ee, J as se, r as ie, l as t1, t as st, u as it, j as S1, v as re, x as ae, y as Ot, z as ne, A as ue, B as oe } from "./mermaid.core-Ce2qm3MW.js";
3
+ import { g as le } from "./chunk-55IACEB6-DaHkCIMI.js";
4
+ import { s as ce } from "./chunk-QN33PNHL-BFfd-KsX.js";
5
+ import { c as he } from "./channel-BP0bUxGp.js";
6
+ import "./index-DWpc-Mxs.js";
7
7
  import "react";
8
8
  import "react-dom";
9
9
  var de = "flowchart-", O1, pe = (O1 = class {
@@ -1,6 +1,6 @@
1
- import { b4 as Je, b5 as Ke, b6 as tn, b7 as en, b8 as In, b9 as se, ba as Ln, _ as d, bb as rt, d as _t, s as An, g as Wn, o as $n, p as On, c as Hn, b as Nn, v as Pn, m as Vn, l as Tt, j as Bt, k as zn, e as Rn, u as Zn } from "./mermaid.core-ZUwHDr0v.js";
2
- import { c as ne, g as re } from "./index-Z0agb9P7.js";
3
- import { b as Bn, t as We, c as Xn, a as qn, l as Gn } from "./linear-CD6IiF07.js";
1
+ import { b4 as Je, b5 as Ke, b6 as tn, b7 as en, b8 as In, b9 as se, ba as Ln, _ as d, bb as rt, d as _t, s as An, g as Wn, o as $n, p as On, c as Hn, b as Nn, v as Pn, m as Vn, l as Tt, j as Bt, k as zn, e as Rn, u as Zn } from "./mermaid.core-Ce2qm3MW.js";
2
+ import { c as ne, g as re } from "./index-DWpc-Mxs.js";
3
+ import { b as Bn, t as We, c as Xn, a as qn, l as Gn } from "./linear-ZyP8gWvJ.js";
4
4
  import { i as jn } from "./init-DjUOC4st.js";
5
5
  import "react";
6
6
  import "react-dom";
@@ -1,8 +1,8 @@
1
- import { p as Z } from "./chunk-4BX2VUAB-BWcWjYwu.js";
2
- import { I as F } from "./chunk-QZHKN3VN-CSDjUowT.js";
3
- import { E as U, _ as h, d as rr, F as er, G as tr, H as ar, l as m, s as nr, g as sr, b as or, c as cr, o as ir, p as dr, e as B, v as hr, j as lr, u as $r, I as fr } from "./mermaid.core-ZUwHDr0v.js";
1
+ import { p as Z } from "./chunk-4BX2VUAB-C5fELlqE.js";
2
+ import { I as F } from "./chunk-QZHKN3VN-DvYwzcYM.js";
3
+ import { E as U, _ as h, d as rr, F as er, G as tr, H as ar, l as m, s as nr, g as sr, b as or, c as cr, o as ir, p as dr, e as B, v as hr, j as lr, u as $r, I as fr } from "./mermaid.core-Ce2qm3MW.js";
4
4
  import { p as gr } from "./treemap-KMMF4GRG-D_L55G0b.js";
5
- import "./index-Z0agb9P7.js";
5
+ import "./index-DWpc-Mxs.js";
6
6
  import "react";
7
7
  import "react-dom";
8
8
  var u = {
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ interface UseChatScrollOptions {
3
+ threshold?: number;
4
+ delay?: number;
5
+ }
6
+ export declare const useChatScroll: (dependencies: any[], options?: UseChatScrollOptions) => {
7
+ scrollRef: import("react").RefObject<HTMLDivElement>;
8
+ contentRef: import("react").RefObject<HTMLDivElement>;
9
+ scrollToBottom: (immediate?: boolean) => void;
10
+ resetUserScrolling: () => void;
11
+ isAtBottom: () => boolean;
12
+ };
13
+ export {};