@lumerahq/ui 0.21.4 → 0.21.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 +11 -0
- package/dist/{RecordSheet-BmeZVI4A.js → RecordSheet-1aS1sssQ.js} +4 -4
- package/dist/{audit-log-vQ6gnzav.js → audit-log-DW-ts7mh.js} +1 -1
- package/dist/{automations-CwXZdHMe.js → automations-4aVNe5uF.js} +18 -3
- package/dist/components/index.js +1 -1
- package/dist/{highlighted-body-JLMTFACH-obfWig4N.js → highlighted-body-JLMTFACH-D1NSviFj.js} +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/index.js +5 -5
- package/dist/lib/bridge.d.ts +1 -1
- package/dist/lib/bridge.d.ts.map +1 -1
- package/dist/lib/index.js +2 -2
- package/dist/mermaid-WFAXDIZX-f94Zh_PW.js +4 -0
- package/dist/{use-automation-run-C8Sz1K2R.js → use-automation-run-udyHkYbG.js} +1 -1
- package/dist/{use-sql-table-D4wkMzsk.js → use-sql-table-CgGHt8b8.js} +3 -3
- package/package.json +2 -2
- package/dist/mermaid-WFAXDIZX-BQpH56uT.js +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to `@lumerahq/ui`. Earlier releases are not documented here.
|
|
4
4
|
|
|
5
|
+
## 0.21.5
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Bridge calls to an app's own API (`/api/app-api/...`) now wait 60 seconds by default instead of 15. An app API that has gone unused for weeks takes about 20 seconds to wake, and Lumera now retries the call while it wakes for apps that wait this long. Other bridge calls keep the 15 second default, and a `timeout` you pass still wins.
|
|
10
|
+
- `parentApiRequest` and `parentApiStream` now tell Lumera how long the app waits, so Lumera never retries a call after the app has given up on it. A stream without a `timeout` still has no deadline.
|
|
11
|
+
|
|
12
|
+
### Adoption
|
|
13
|
+
|
|
14
|
+
- Existing customer apps get this when they upgrade `@lumerahq/ui` and republish. Until then, their App API calls through the bridge still fail fast with a 502 while an idle app API wakes.
|
|
15
|
+
|
|
5
16
|
## 0.21.4
|
|
6
17
|
|
|
7
18
|
### Changed
|
|
@@ -2,8 +2,8 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import React__default, { useContext, createContext, forwardRef, createElement, memo, useId as useId$1, useMemo, useRef, useEffect, useLayoutEffect, isValidElement, cloneElement, useSyncExternalStore, useState, useCallback, Suspense, lazy } from "react";
|
|
4
4
|
import { p as clsx, c as cn$1, a as formatCellValue$2 } from "./formatters-Ejvss8qz.js";
|
|
5
|
-
import { U as pbSql, o as getDownloadUrl, L as parentApiRequest, M as parentApiStream, B as BridgeError, k as getAppProjectExternalId, a7 as resolveProjectResourceId, a as automationStatuses, n as getAutomationRunFileDownloadUrl, F as listAutomationRunFiles } from "./automations-
|
|
6
|
-
import { u as useAgentChat, b as useAgentChatSessions, a as areAgentChatMutationsBlocked, c as useAutomationRun } from "./use-automation-run-
|
|
5
|
+
import { U as pbSql, o as getDownloadUrl, L as parentApiRequest, M as parentApiStream, B as BridgeError, k as getAppProjectExternalId, a7 as resolveProjectResourceId, a as automationStatuses, n as getAutomationRunFileDownloadUrl, F as listAutomationRunFiles } from "./automations-4aVNe5uF.js";
|
|
6
|
+
import { u as useAgentChat, b as useAgentChatSessions, a as areAgentChatMutationsBlocked, c as useAutomationRun } from "./use-automation-run-udyHkYbG.js";
|
|
7
7
|
import * as ReactDOM from "react-dom";
|
|
8
8
|
import { createPortal } from "react-dom";
|
|
9
9
|
const mergeClasses = (...classes) => classes.filter((className, index2, array) => {
|
|
@@ -27619,7 +27619,7 @@ var Ts = (e) => {
|
|
|
27619
27619
|
for (; t > 0 && e[t - 1] === `
|
|
27620
27620
|
`; ) t--;
|
|
27621
27621
|
return e.slice(0, t);
|
|
27622
|
-
}, Ps = lazy(() => import("./highlighted-body-JLMTFACH-
|
|
27622
|
+
}, Ps = lazy(() => import("./highlighted-body-JLMTFACH-D1NSviFj.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), At = ({ code: e, language: t, className: n, children: o, isIncomplete: r = false, startLine: s2, lineNumbers: a3, ...i }) => {
|
|
27623
27623
|
let l = w(), { codeBlockMaxHeight: c2 } = useContext(R), d2 = useMemo(() => Ts(e), [e]), p2 = useMemo(() => ({ bg: "transparent", fg: "inherit", tokens: d2.split(`
|
|
27624
27624
|
`).map((b2) => [{ content: b2, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [d2]);
|
|
27625
27625
|
return jsx(Lt.Provider, { value: { code: e }, children: jsxs(It, { dir: "ltr", isIncomplete: r, language: t, children: [jsx(Dt, { language: t }), o ? jsx("div", { className: l("pointer-events-none absolute top-2 right-2 z-10 flex items-center"), children: jsx("div", { className: l("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: o }) }) : null, jsx(Suspense, { fallback: jsx(In, { className: n, language: t, lineNumbers: a3, maxHeight: c2, result: p2, startLine: s2, ...i }), children: jsx(Ps, { className: n, code: d2, isIncomplete: r, language: t, lineNumbers: a3, maxHeight: c2, raw: p2, startLine: s2, ...i }) })] }) });
|
|
@@ -28054,7 +28054,7 @@ var Co = ({ children: e, className: t, maxHeight: n, showControls: o, showCopy:
|
|
|
28054
28054
|
let l = w(), { isAnimating: c2 } = useContext(R), d2 = rt(n), p2 = st(c2, !!d2, e), b2 = o && r, f2 = o && s2, u = o && a3, g2 = b2 || f2 || u;
|
|
28055
28055
|
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: [g2 ? jsxs("div", { className: l("flex items-center justify-end gap-1"), children: [b2 ? jsx(Ze, {}) : null, f2 ? jsx(Ge, {}) : null, u ? jsx(ho, { showCopy: b2, showDownload: f2, children: e }) : null] }) : null, jsx("div", { className: l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"), ref: p2, style: d2 ? { maxHeight: d2 } : void 0, children: jsx("table", { className: l("w-full divide-y divide-border", t), "data-streamdown": "table", ...i, children: e }) })] });
|
|
28056
28056
|
};
|
|
28057
|
-
var Na = /startLine=(\d+)/, Ra = /\bnoLineNumbers\b/, Ia = lazy(() => import("./mermaid-WFAXDIZX-
|
|
28057
|
+
var Na = /startLine=(\d+)/, Ra = /\bnoLineNumbers\b/, Ia = lazy(() => import("./mermaid-WFAXDIZX-f94Zh_PW.js").then((e) => ({ default: e.Mermaid }))), La = /language-([^\s]+)/, Da = "node";
|
|
28058
28058
|
function H(e, t) {
|
|
28059
28059
|
let n = Object.keys(e);
|
|
28060
28060
|
if (n.length !== Object.keys(t).length) return false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a3 as requestApi } from "./automations-
|
|
1
|
+
import { a3 as requestApi } from "./automations-4aVNe5uF.js";
|
|
2
2
|
const RECORD_AUDIT_EXPORT_LIMIT = 1e4;
|
|
3
3
|
const RECORD_AUDIT_MAX_COLLECTIONS = 20;
|
|
4
4
|
const normalizeRecordAuditPageSize = (value = 50) => Math.min(200, Math.max(1, Math.trunc(value) || 50));
|
|
@@ -222,6 +222,16 @@ function installCustomerAppUpdates(isTrustedParent) {
|
|
|
222
222
|
}
|
|
223
223
|
const __vite_import_meta_env__ = { "DEV": false };
|
|
224
224
|
const DEFAULT_TIMEOUT_MS = 15e3;
|
|
225
|
+
const APP_API_TIMEOUT_MS = 6e4;
|
|
226
|
+
const defaultRequestTimeout = (url) => {
|
|
227
|
+
try {
|
|
228
|
+
if (new URL(url, window.location.origin).pathname.startsWith("/api/app-api/")) {
|
|
229
|
+
return APP_API_TIMEOUT_MS;
|
|
230
|
+
}
|
|
231
|
+
} catch {
|
|
232
|
+
}
|
|
233
|
+
return DEFAULT_TIMEOUT_MS;
|
|
234
|
+
};
|
|
225
235
|
const viteEnv = __vite_import_meta_env__ ?? {};
|
|
226
236
|
const DEBUG = !!viteEnv.DEV;
|
|
227
237
|
const parseParentOrigins = (value) => (value ?? "").split(",").map((item) => item.trim()).filter(Boolean);
|
|
@@ -1212,7 +1222,7 @@ const parentApiRequest = async (request2) => {
|
|
|
1212
1222
|
}
|
|
1213
1223
|
ensureListener();
|
|
1214
1224
|
const id = generateId();
|
|
1215
|
-
const timeout = request2.timeout ??
|
|
1225
|
+
const timeout = request2.timeout ?? defaultRequestTimeout(request2.url);
|
|
1216
1226
|
return new Promise((resolve, reject) => {
|
|
1217
1227
|
const timeoutId = setTimeout(() => {
|
|
1218
1228
|
pendingRequests.delete(id);
|
|
@@ -1236,7 +1246,10 @@ const parentApiRequest = async (request2) => {
|
|
|
1236
1246
|
body: request2.body,
|
|
1237
1247
|
isBase64: request2.isBase64,
|
|
1238
1248
|
fileName: request2.fileName,
|
|
1239
|
-
formFieldName: request2.formFieldName
|
|
1249
|
+
formFieldName: request2.formFieldName,
|
|
1250
|
+
// The parent tells the backend, which resends to a waking App API
|
|
1251
|
+
// Lambda only when the app waits long enough.
|
|
1252
|
+
timeout
|
|
1240
1253
|
}
|
|
1241
1254
|
},
|
|
1242
1255
|
"*"
|
|
@@ -1279,7 +1292,9 @@ const parentApiStream = (request2, handlers) => {
|
|
|
1279
1292
|
...request2.headers
|
|
1280
1293
|
},
|
|
1281
1294
|
body: request2.body,
|
|
1282
|
-
isBase64: request2.isBase64
|
|
1295
|
+
isBase64: request2.isBase64,
|
|
1296
|
+
// Unset means no deadline; see parentApiRequest.
|
|
1297
|
+
timeout
|
|
1283
1298
|
}
|
|
1284
1299
|
},
|
|
1285
1300
|
"*"
|
package/dist/components/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-
|
|
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-1aS1sssQ.js";
|
|
2
2
|
export {
|
|
3
3
|
A as ActivityStrip,
|
|
4
4
|
a as AgentChat,
|
package/dist/{highlighted-body-JLMTFACH-obfWig4N.js → highlighted-body-JLMTFACH-D1NSviFj.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as R, W as Wc, J as In } from "./RecordSheet-
|
|
1
|
+
import { I as R, W as Wc, J as In } from "./RecordSheet-1aS1sssQ.js";
|
|
2
2
|
import { useContext, useState, useEffect } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
var T = ({ code: s, isIncomplete: l = false, language: e, maxHeight: d, raw: t, className: a, startLine: c$1, lineNumbers: p, ...f$1 }) => {
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, u, b, c, d } from "../use-automation-run-
|
|
2
|
-
import { u as u2, a as a2, b as b2, c as c2, d as d2, e, f, g } from "../use-sql-table-
|
|
1
|
+
import { a, u, b, c, d } from "../use-automation-run-udyHkYbG.js";
|
|
2
|
+
import { u as u2, a as a2, b as b2, c as c2, d as d2, e, f, g } from "../use-sql-table-CgGHt8b8.js";
|
|
3
3
|
export {
|
|
4
4
|
a as areAgentChatMutationsBlocked,
|
|
5
5
|
u as useAgentChat,
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
2
|
-
import { a as a2, u as u2, b as b2, c as c2, d as d2 } from "./use-automation-run-
|
|
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-
|
|
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-
|
|
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-1aS1sssQ.js";
|
|
2
|
+
import { a as a2, u as u2, b as b2, c as c2, d as d2 } from "./use-automation-run-udyHkYbG.js";
|
|
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-CgGHt8b8.js";
|
|
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-4aVNe5uF.js";
|
|
5
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
|
-
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-
|
|
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-DW-ts7mh.js";
|
|
8
8
|
export {
|
|
9
9
|
A as ActivityStrip,
|
|
10
10
|
a as AgentChat,
|
package/dist/lib/bridge.d.ts
CHANGED
|
@@ -120,7 +120,7 @@ export type BridgeRequest = {
|
|
|
120
120
|
fileName?: string;
|
|
121
121
|
/** Multipart field name for fileName uploads. Defaults to `file`. */
|
|
122
122
|
formFieldName?: string;
|
|
123
|
-
/** Request timeout in milliseconds (default: 15000) */
|
|
123
|
+
/** Request timeout in milliseconds (default: 60000 for `/api/app-api/` calls, 15000 otherwise) */
|
|
124
124
|
timeout?: number;
|
|
125
125
|
};
|
|
126
126
|
/**
|
package/dist/lib/bridge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../src/lib/bridge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bridge.d.ts","sourceRoot":"","sources":["../../src/lib/bridge.ts"],"names":[],"mappings":"AA4FA,eAAO,MAAM,sBAAsB,KAA0D,CAAC;AAQ9F,MAAM,MAAM,mBAAmB,GAAG;IAChC,sEAAsE;IACtE,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B,CAAC;AA2CF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GAAI,QAAQ,mBAAmB,KAAG,MAI1E,CAAC;AAMF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,YAAY,GAAG,iBAAiB,CAAC;AAE/E,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,OAAO,CAAC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AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,mBAAmB,KAAG,IAE7D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,QAAO,OAAsE,CAAC;AAErG;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,QAAO,IAqFnC,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa,GAAI,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,SAAS,KAAK,IAAI,KAAG,CAAC,MAAM,IAAI,CA6B/F,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,gBAAgB,GAAU,SAAS,aAAa,KAAG,OAAO,CAAC,cAAc,CA2DrF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,aAAa,EAAE,UAAU,oBAAoB,KAAG,YA4DxF,CAAC"}
|
package/dist/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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-4aVNe5uF.js";
|
|
2
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
|
-
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-
|
|
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-DW-ts7mh.js";
|
|
5
5
|
export {
|
|
6
6
|
B as BridgeError,
|
|
7
7
|
E as EXPECTED_PARENT_ORIGIN,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect, useCallback, useLayoutEffect, useRef, useSyncExternalStore, useMemo } from "react";
|
|
2
|
-
import { a4 as updateBlockers, a5 as getDraftOwner, a6 as subscribeDraftOwner, i as ensureAutomationRun, g as createAutomationRun, c as cancelAutomationRun, a as automationStatuses, m as getAutomationRun } from "./automations-
|
|
2
|
+
import { a4 as updateBlockers, a5 as getDraftOwner, a6 as subscribeDraftOwner, i as ensureAutomationRun, g as createAutomationRun, c as cancelAutomationRun, a as automationStatuses, m as getAutomationRun } from "./automations-4aVNe5uF.js";
|
|
3
3
|
import { useQueryClient, useMutation, useQuery } from "@tanstack/react-query";
|
|
4
4
|
function isActiveStatus(status) {
|
|
5
5
|
return status === "queued" || status === "claimed" || status === "preparing" || status === "submitting" || status === "running";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useQueryClient, useQuery, useMutation, useInfiniteQuery } from "@tanstack/react-query";
|
|
2
2
|
import { useState, useCallback, useEffect, useMemo } from "react";
|
|
3
|
-
import { a as automationStatuses, H as listRunsByAgent, g as createAutomationRun, a2 as uploadFile, K as onInitMessage, U as pbSql, W as pbUpdateRecord } from "./automations-
|
|
4
|
-
import { d as useUpdateBlocker } from "./use-automation-run-
|
|
5
|
-
import { n as normalizeRecordAuditCollections, e as normalizeRecordAuditPageSize, l as listRecordAuditLog, g as getRecordAuditLogSnapshot } from "./audit-log-
|
|
3
|
+
import { a as automationStatuses, H as listRunsByAgent, g as createAutomationRun, a2 as uploadFile, K as onInitMessage, U as pbSql, W as pbUpdateRecord } from "./automations-4aVNe5uF.js";
|
|
4
|
+
import { d as useUpdateBlocker } from "./use-automation-run-udyHkYbG.js";
|
|
5
|
+
import { n as normalizeRecordAuditCollections, e as normalizeRecordAuditPageSize, l as listRecordAuditLog, g as getRecordAuditLogSnapshot } from "./audit-log-DW-ts7mh.js";
|
|
6
6
|
function useAutomationAgent({
|
|
7
7
|
agentId,
|
|
8
8
|
limit = 5,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumerahq/ui",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.css"
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"tailwindcss": "^4.1.17",
|
|
74
74
|
"tw-animate-css": "^1.4.0",
|
|
75
75
|
"typescript": "~5.9.3",
|
|
76
|
-
"vite": "^7.
|
|
76
|
+
"vite": "^7.3.7",
|
|
77
77
|
"vite-plugin-dts": "^4.5.4"
|
|
78
78
|
}
|
|
79
79
|
}
|