@lumerahq/ui 0.20.4 → 0.20.5

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  Notable changes to `@lumerahq/ui`. Earlier releases are not documented here.
4
4
 
5
+ ## 0.20.5
6
+
7
+ ### Fixed
8
+
9
+ - `AgentChat` file uploads through `createLumeraAgentChatTransport` allow 5 minutes instead of 60 seconds, matching Studio. Files under the 100 MB limit no longer time out at around 50 MB on slower connections.
10
+
5
11
  ## 0.20.2
6
12
 
7
13
  ### Fixed
@@ -23975,7 +23975,7 @@ var lr = (e) => {
23975
23975
  for (; t > 0 && e[t - 1] === `
23976
23976
  `; ) t--;
23977
23977
  return e.slice(0, t);
23978
- }, cr = lazy(() => import("./highlighted-body-OFNGDK62-C5rM6lfe.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), st = ({ code: e, language: t, className: o, children: n, isIncomplete: r = false, startLine: s2, lineNumbers: a, ...l }) => {
23978
+ }, cr = lazy(() => import("./highlighted-body-OFNGDK62-V4GWTV8L.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), st = ({ code: e, language: t, className: o, children: n, isIncomplete: r = false, startLine: s2, lineNumbers: a, ...l }) => {
23979
23979
  let i = y2(), d2 = useMemo(() => lr(e), [e]), c2 = useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: d2.split(`
23980
23980
  `).map((p2) => [{ content: p2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [d2]);
23981
23981
  return jsx(nt.Provider, { value: { code: e }, children: jsxs(ot, { isIncomplete: r, language: t, children: [jsx(rt, { language: t }), n ? jsx("div", { className: i("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"), children: jsx("div", { className: i("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "code-block-actions", children: n }) }) : null, jsx(Suspense, { fallback: jsx(At, { className: o, language: t, lineNumbers: a, result: c2, startLine: s2, ...l }), children: jsx(cr, { className: o, code: d2, language: t, lineNumbers: a, raw: c2, startLine: s2, ...l }) })] }) });
@@ -24337,7 +24337,7 @@ var vo = ({ children: e, className: t, showControls: o, showCopy: n = true, show
24337
24337
  let l = y2(), i = o && n, d2 = o && r, c2 = o && s2, p2 = i || d2 || c2;
24338
24338
  return jsxs("div", { className: l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"), "data-streamdown": "table-wrapper", children: [p2 ? jsxs("div", { className: l("flex items-center justify-end gap-1"), children: [i ? jsx(Te, {}) : null, d2 ? jsx(Pe, {}) : null, c2 ? jsx(Co, { showCopy: i, showDownload: d2, children: e }) : null] }) : null, jsx("div", { className: l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"), children: jsx("table", { className: l("w-full divide-y divide-border", t), "data-streamdown": "table", ...a, children: e }) })] });
24339
24339
  };
24340
- var es = /startLine=(\d+)/, ts = /\bnoLineNumbers\b/, os = lazy(() => import("./mermaid-GHXKKRXX-D9EEvV_b.js").then((e) => ({ default: e.Mermaid }))), ns = /language-([^\s]+)/;
24340
+ var es = /startLine=(\d+)/, ts = /\bnoLineNumbers\b/, os = lazy(() => import("./mermaid-GHXKKRXX-wgWycT_j.js").then((e) => ({ default: e.Mermaid }))), ns = /language-([^\s]+)/;
24341
24341
  function qe(e, t) {
24342
24342
  if (!(e != null && e.position || t != null && t.position)) return true;
24343
24343
  if (!(e != null && e.position && (t != null && t.position))) return false;
@@ -28793,6 +28793,7 @@ const DEFAULT_HISTORY_LIMIT = 10;
28793
28793
  const DEFAULT_STREAM_WAIT_MS = 1e4;
28794
28794
  const DEFAULT_RECONNECT_DELAY_MS = 750;
28795
28795
  const DEFAULT_MAX_RECONNECTS = 30;
28796
+ const UPLOAD_TIMEOUT_MS = 5 * 60 * 1e3;
28796
28797
  function createLumeraAgentChatTransport(options) {
28797
28798
  const request = options.request ?? parentApiRequest;
28798
28799
  const stream = options.stream ?? parentApiStream;
@@ -28944,7 +28945,7 @@ function createLumeraAgentChatTransport(options) {
28944
28945
  isBase64: true,
28945
28946
  fileName: file.name,
28946
28947
  formFieldName: "file",
28947
- timeout: 6e4
28948
+ timeout: UPLOAD_TIMEOUT_MS
28948
28949
  });
28949
28950
  ensureBridgeOK(response, "Failed to upload file");
28950
28951
  return parseUploadResult(response.body, file);
@@ -1 +1 @@
1
- {"version":3,"file":"lumera-agent-transport.d.ts","sourceRoot":"","sources":["../../../src/components/agent-chat/lumera-agent-transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAA0D,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAG9G,OAAO,KAAK,EASV,iBAAiB,EAOjB,oBAAoB,EAIpB,kBAAkB,EAEnB,MAAM,YAAY,CAAC;AAQpB,MAAM,WAAW,+BAA+B;IAC9C,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpG,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,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,OAAO,CAAC,cAAc,CAAC,CAAC;IAC9D,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,0BAA0B,KAAK,YAAY,CAAC;CACzF;AAED,KAAK,0BAA0B,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAsGxE,wBAAgB,8BAA8B,CAC5C,OAAO,EAAE,+BAA+B,GACvC,kBAAkB,CAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,CAgMzD"}
@@ -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-BvgG7jSX.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-SPyDKXhe.js";
2
2
  export {
3
3
  A as ActivityStrip,
4
4
  a as AgentChat,
@@ -1,4 +1,4 @@
1
- import { I as R$1, L as Li, J as At } from "./RecordSheet-BvgG7jSX.js";
1
+ import { I as R$1, L as Li, J as At } from "./RecordSheet-SPyDKXhe.js";
2
2
  import { useContext, useState, useEffect } from "react";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  var R = ({ code: s, language: e, raw: t, className: h, startLine: d, lineNumbers: m, ...p }) => {
package/dist/index.js CHANGED
@@ -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-BvgG7jSX.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-SPyDKXhe.js";
2
2
  import { a as a2, u as u2, b as b2, c as c2 } from "./use-automation-run-D69xZvR9.js";
3
3
  import { u as u3, a as a3, b as b3, c as c3, d as d2, e as e2, f as f2, g as g2 } from "./use-sql-table-_aMNbZ6w.js";
4
4
  import { B as B2, E as E2, a as a4, b as b4, c as c4, d as d3, 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 } from "./automations-DD15itWa.js";
@@ -0,0 +1,4 @@
1
+ import { H as po } from "./RecordSheet-SPyDKXhe.js";
2
+ export {
3
+ po as Mermaid
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumerahq/ui",
3
- "version": "0.20.4",
3
+ "version": "0.20.5",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "*.css"
@@ -1,4 +0,0 @@
1
- import { H as po } from "./RecordSheet-BvgG7jSX.js";
2
- export {
3
- po as Mermaid
4
- };