@lumerahq/ui 0.21.3 → 0.21.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/Markdown.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAiB,EAAE,SAAS,EAAE,EAAE,sBAAsB,2CA4BhH"}
1
+ {"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/Markdown.tsx"],"names":[],"mappings":"AAUA,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAiB,EAAE,SAAS,EAAE,EAAE,sBAAsB,2CA8BhH"}
@@ -4,5 +4,10 @@ import { Components } from 'streamdown';
4
4
  * <picture><source srcset> is the other way a URL reaches the DOM.
5
5
  */
6
6
  export declare const chatImageGuardComponents: Components;
7
+ /**
8
+ * Tables keep their full height in chat. Streamdown's default is a 300px box
9
+ * with its own scrollbar, too small for the tables finance answers are made of.
10
+ */
11
+ export declare const CHAT_TABLE_MAX_HEIGHT = 0;
7
12
  export declare const chatMarkdownComponents: Components;
8
13
  //# sourceMappingURL=chat-markdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat-markdown.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/chat-markdown.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAsE7C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,UAGtC,CAAC;AAcF,eAAO,MAAM,sBAAsB,EAAE,UAqCpC,CAAC"}
1
+ {"version":3,"file":"chat-markdown.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/chat-markdown.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAsE7C;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,UAGtC,CAAC;AAcF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,eAAO,MAAM,sBAAsB,EAAE,UAqCpC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { A, a, b, c, d, e, f, g, h, D, i, j, k, R, S, T, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, B, C, E, F, G } from "../RecordSheet-C8dir0Jk.js";
1
+ import { A, a, b, c, d, e, f, g, h, D, i, j, k, R, S, T, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, B, C, E, F, G } from "../RecordSheet-BmeZVI4A.js";
2
2
  export {
3
3
  A as ActivityStrip,
4
4
  a as AgentChat,
@@ -3213,6 +3213,5 @@ export {
3213
3213
  formatSelect as n,
3214
3214
  formatText as o,
3215
3215
  clsx as p,
3216
- stripHtml as s,
3217
- twMerge as t
3216
+ stripHtml as s
3218
3217
  };
@@ -0,0 +1,21 @@
1
+ import { I as R, W as Wc, J as In } from "./RecordSheet-BmeZVI4A.js";
2
+ import { useContext, useState, useEffect } from "react";
3
+ import { jsx } from "react/jsx-runtime";
4
+ var T = ({ code: s, isIncomplete: l = false, language: e, maxHeight: d, raw: t, className: a, startLine: c$1, lineNumbers: p, ...f$1 }) => {
5
+ let { shikiTheme: r } = useContext(R), o = Wc(), [H, i] = useState(t);
6
+ return useEffect(() => {
7
+ if (!o) {
8
+ i(t);
9
+ return;
10
+ }
11
+ let n = true, u = o.highlight({ code: s, isIncomplete: l, language: e, themes: r }, (B) => {
12
+ n && i(B);
13
+ });
14
+ return u && i(u), () => {
15
+ n = false;
16
+ };
17
+ }, [s, l, e, r, o, t]), jsx(In, { className: a, language: e, lineNumbers: p, maxHeight: d, result: H, startLine: c$1, ...f$1 });
18
+ };
19
+ export {
20
+ T as HighlightedCodeBlockBody
21
+ };
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { A, a, b, c, d, e, f, g, h, D, i, j, k, R, S, T, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, B, C, E, F, G } from "./RecordSheet-C8dir0Jk.js";
1
+ import { A, a, b, c, d, e, f, g, h, D, i, j, k, R, S, T, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, B, C, E, F, G } from "./RecordSheet-BmeZVI4A.js";
2
2
  import { a as a2, u as u2, b as b2, c as c2, d as d2 } from "./use-automation-run-C8Sz1K2R.js";
3
3
  import { u as u3, a as a3, b as b3, c as c3, d as d3, e as e2, f as f2, g as g2 } from "./use-sql-table-D4wkMzsk.js";
4
4
  import { B as B2, E as E2, a as a4, b as b4, c as c4, d as d4, e as e3, f as f3, g as g3, h as h2, i as i2, j as j2, k as k2, l as l2, m as m2, n as n2, o as o2, p as p2, q as q2, r as r2, s as s2, t as t2, u as u4, v as v2, w as w2, x as x2, y as y2, z as z2, A as A2, C as C2, D as D2, F as F2, G as G2, H, I, J, K, L, M, N, O, P, Q, R as R2, S as S2, T as T2, U, V, W, X, Y, Z, _, $, a0, a1, a2 as a22 } from "./automations-CwXZdHMe.js";
5
- import { c as c5, f as f4, a as a5, b as b5, d as d5, e as e4, g as g4, h as h3, i as i3, j as j3, k as k3, l as l3, m as m3, n as n3, o as o3, s as s3 } from "./formatters-BuHr2I8Z.js";
5
+ import { c as c5, f as f4, a as a5, b as b5, d as d5, e as e4, g as g4, h as h3, i as i3, j as j3, k as k3, l as l3, m as m3, n as n3, o as o3, s as s3 } from "./formatters-Ejvss8qz.js";
6
6
  import { q as q3 } from "./query-client-DdOWay4_.js";
7
7
  import { R as R3, a as a6, b as b6, c as c6, f as f5, g as g5, l as l4, n as n4, d as d6, e as e5, r as r3 } from "./audit-log-vQ6gnzav.js";
8
8
  export {
package/dist/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { B, E, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, C, D, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, _, $, a0, a1, a2 } from "../automations-CwXZdHMe.js";
2
- import { c as c2, f as f2, a as a3, b as b2, d as d2, e as e2, g as g2, h as h2, i as i2, j as j2, k as k2, l as l2, m as m2, n as n2, o as o2, s as s2 } from "../formatters-BuHr2I8Z.js";
2
+ import { c as c2, f as f2, a as a3, b as b2, d as d2, e as e2, g as g2, h as h2, i as i2, j as j2, k as k2, l as l2, m as m2, n as n2, o as o2, s as s2 } from "../formatters-Ejvss8qz.js";
3
3
  import { q as q2 } from "../query-client-DdOWay4_.js";
4
4
  import { R as R2, a as a4, b as b3, c as c3, f as f3, g as g3, l as l3, n as n3, d as d3, e as e3, r as r2 } from "../audit-log-vQ6gnzav.js";
5
5
  export {
@@ -0,0 +1,4 @@
1
+ import { H as co } from "./RecordSheet-BmeZVI4A.js";
2
+ export {
3
+ co as Mermaid
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumerahq/ui",
3
- "version": "0.21.3",
3
+ "version": "0.21.4",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -55,7 +55,7 @@
55
55
  "class-variance-authority": "^0.7.1",
56
56
  "clsx": "^2.1.1",
57
57
  "lucide-react": "^1.7.0",
58
- "streamdown": "^2.5.0",
58
+ "streamdown": "^2.7.1",
59
59
  "tailwind-merge": "^3.4.0"
60
60
  },
61
61
  "devDependencies": {
@@ -1,19 +0,0 @@
1
- import { I as R$1, L as Li, J as At } from "./RecordSheet-C8dir0Jk.js";
2
- import { useContext, useState, useEffect } from "react";
3
- import { jsx } from "react/jsx-runtime";
4
- var R = ({ code: s, language: e, raw: t, className: h, startLine: d, lineNumbers: m, ...p }) => {
5
- let { shikiTheme: l } = useContext(R$1), o = Li(), [a, i] = useState(t);
6
- return useEffect(() => {
7
- if (!o) {
8
- i(t);
9
- return;
10
- }
11
- let r = o.highlight({ code: s, language: e, themes: l }, (c) => {
12
- i(c);
13
- });
14
- r && i(r);
15
- }, [s, e, l, o, t]), jsx(At, { className: h, language: e, lineNumbers: m, result: a, startLine: d, ...p });
16
- };
17
- export {
18
- R as HighlightedCodeBlockBody
19
- };
@@ -1,4 +0,0 @@
1
- import { H as po } from "./RecordSheet-C8dir0Jk.js";
2
- export {
3
- po as Mermaid
4
- };