@lumerahq/ui 0.20.5 → 0.21.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.
- package/CHANGELOG.md +21 -0
- package/dist/{RecordSheet-SPyDKXhe.js → RecordSheet-2eblaDCh.js} +5 -4
- package/dist/{audit-log-Dmzbqtc0.js → audit-log-BNaHuJ1Y.js} +1 -1
- package/dist/{automations-DD15itWa.js → automations-3V0uflxE.js} +300 -37
- package/dist/components/agent-chat/AgentChatComposer.d.ts.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/{highlighted-body-OFNGDK62-V4GWTV8L.js → highlighted-body-OFNGDK62-DH1q0LXj.js} +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +5 -4
- package/dist/hooks/use-agent-chat.d.ts.map +1 -1
- package/dist/hooks/use-chat-draft.d.ts +3 -0
- package/dist/hooks/use-chat-draft.d.ts.map +1 -0
- package/dist/hooks/use-file-upload.d.ts.map +1 -1
- package/dist/hooks/use-update-blocker.d.ts +6 -0
- package/dist/hooks/use-update-blocker.d.ts.map +1 -0
- package/dist/index.js +47 -45
- package/dist/lib/bridge.d.ts +4 -29
- package/dist/lib/bridge.d.ts.map +1 -1
- package/dist/lib/customer-app-updates.d.ts +3 -0
- package/dist/lib/customer-app-updates.d.ts.map +1 -0
- package/dist/lib/draft-hooks.d.ts +24 -0
- package/dist/lib/draft-hooks.d.ts.map +1 -0
- package/dist/lib/drafts.d.ts +17 -0
- package/dist/lib/drafts.d.ts.map +1 -0
- package/dist/lib/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +41 -40
- package/dist/lib/safe-updates.d.ts +25 -0
- package/dist/lib/safe-updates.d.ts.map +1 -0
- package/dist/mermaid-GHXKKRXX-0N4Lxc6D.js +4 -0
- package/dist/ui.css +4 -0
- package/dist/{use-automation-run-D69xZvR9.js → use-automation-run-C0JNbLzy.js} +157 -7
- package/dist/{use-sql-table-_aMNbZ6w.js → use-sql-table-iSVW_brl.js} +4 -2
- package/package.json +1 -1
- package/dist/mermaid-GHXKKRXX-wgWycT_j.js +0 -4
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 } from "./use-automation-run-
|
|
3
|
-
import { u as u3, a as a3, b as b3, c as c3, d as
|
|
4
|
-
import { B as B2, E as E2, a as a4, b as b4, c as c4, d as
|
|
5
|
-
import { c as c5, f as f4, a as a5, b as b5, d as
|
|
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-2eblaDCh.js";
|
|
2
|
+
import { a as a2, u as u2, b as b2, c as c2, d as d2 } from "./use-automation-run-C0JNbLzy.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-iSVW_brl.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-3V0uflxE.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";
|
|
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
|
|
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-BNaHuJ1Y.js";
|
|
8
8
|
export {
|
|
9
9
|
A as ActivityStrip,
|
|
10
10
|
a as AgentChat,
|
|
@@ -34,7 +34,7 @@ export {
|
|
|
34
34
|
c6 as buildRecordAuditLogPath,
|
|
35
35
|
b4 as buildShareableAppUrl,
|
|
36
36
|
c4 as cancelAutomationRun,
|
|
37
|
-
|
|
37
|
+
d4 as cancelRun,
|
|
38
38
|
n as chatMarkdownComponents,
|
|
39
39
|
e3 as clearAutomationCache,
|
|
40
40
|
o as clipLabel,
|
|
@@ -52,7 +52,7 @@ export {
|
|
|
52
52
|
f4 as formatBoolean,
|
|
53
53
|
a5 as formatCellValue,
|
|
54
54
|
b5 as formatCurrency,
|
|
55
|
-
|
|
55
|
+
d5 as formatDate,
|
|
56
56
|
e4 as formatDateTime,
|
|
57
57
|
g4 as formatEditor,
|
|
58
58
|
h3 as formatFile,
|
|
@@ -74,55 +74,56 @@ export {
|
|
|
74
74
|
q2 as getRunFileUrl,
|
|
75
75
|
r2 as getRunFiles,
|
|
76
76
|
s2 as getShareableAppUrl,
|
|
77
|
-
t2 as
|
|
78
|
-
u4 as
|
|
79
|
-
v2 as
|
|
77
|
+
t2 as getUpdateBlockerReasons,
|
|
78
|
+
u4 as getUploadUrl,
|
|
79
|
+
v2 as getViewerContext,
|
|
80
|
+
w2 as hasMemberTag,
|
|
80
81
|
u as humanizeCollectionName,
|
|
81
|
-
|
|
82
|
+
x2 as isActiveStatus,
|
|
82
83
|
v as isActivityBlock,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
y2 as isCompanyAdmin,
|
|
85
|
+
z2 as isDepartment,
|
|
86
|
+
A2 as isEmbedded,
|
|
86
87
|
w as isExploratoryToolCallError,
|
|
87
88
|
x as isMutatingToolCall,
|
|
88
|
-
|
|
89
|
+
C2 as isOrganizationMember,
|
|
89
90
|
y as isSessionActive,
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
D2 as isTerminalStatus,
|
|
92
|
+
F2 as listAutomationRunFiles,
|
|
92
93
|
l4 as listRecordAuditLog,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
G2 as listRuns,
|
|
95
|
+
H as listRunsByAgent,
|
|
96
|
+
I as listRunsByExternalId,
|
|
97
|
+
J as logout,
|
|
97
98
|
n4 as normalizeRecordAuditCollections,
|
|
98
|
-
|
|
99
|
+
d6 as normalizeRecordAuditExportLimit,
|
|
99
100
|
e5 as normalizeRecordAuditPageSize,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
K as onInitMessage,
|
|
102
|
+
L as parentApiRequest,
|
|
103
|
+
M as parentApiStream,
|
|
103
104
|
z as parseSessionActivity,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
105
|
+
N as pbBulkDelete,
|
|
106
|
+
O as pbBulkUpdate,
|
|
107
|
+
P as pbCreate,
|
|
108
|
+
Q as pbDelete,
|
|
109
|
+
R2 as pbGet,
|
|
110
|
+
S2 as pbList,
|
|
111
|
+
T2 as pbSearch,
|
|
112
|
+
U as pbSql,
|
|
113
|
+
V as pbUpdate,
|
|
114
|
+
W as pbUpdateRecord,
|
|
115
|
+
X as pbUpsert,
|
|
116
|
+
Y as pollAutomationRun,
|
|
117
|
+
Z as pollRun,
|
|
118
|
+
_ as postReadyMessage,
|
|
118
119
|
q3 as queryClient,
|
|
119
120
|
r3 as recordAuditActorLabel,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
$ as redirectToLogin,
|
|
122
|
+
a0 as sendEmail,
|
|
123
|
+
a1 as serializeBridgeRuntimeConfig,
|
|
123
124
|
s3 as stripHtml,
|
|
124
125
|
B as summarizeActivityLabels,
|
|
125
|
-
|
|
126
|
+
a22 as uploadFile,
|
|
126
127
|
u2 as useAgentChat,
|
|
127
128
|
b2 as useAgentChatSessions,
|
|
128
129
|
u3 as useAutomationAgent,
|
|
@@ -131,11 +132,12 @@ export {
|
|
|
131
132
|
a3 as useFileUpload,
|
|
132
133
|
b3 as useLumeraUser,
|
|
133
134
|
c3 as usePbSql,
|
|
134
|
-
|
|
135
|
+
d3 as usePbUpdate,
|
|
135
136
|
e2 as useRecordAuditLog,
|
|
136
137
|
f2 as useRecordAuditLogSnapshot,
|
|
137
138
|
g2 as useSqlTable,
|
|
138
139
|
E as useToolRenderers,
|
|
140
|
+
d2 as useUpdateBlocker,
|
|
139
141
|
F as warmCollectionCache,
|
|
140
142
|
G as withDataSync
|
|
141
143
|
};
|
package/dist/lib/bridge.d.ts
CHANGED
|
@@ -1,32 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bridge module for parent-child iframe communication.
|
|
3
|
-
*
|
|
4
|
-
* This module handles all communication between a Lumera custom app (iframe)
|
|
5
|
-
* and the Lumera parent application. It provides:
|
|
6
|
-
* - Authentication handshake (ready/init messages)
|
|
7
|
-
* - API request proxying through the parent
|
|
8
|
-
* - Standalone dev mode for local development
|
|
9
|
-
*
|
|
10
|
-
* Future cleanup direction:
|
|
11
|
-
* - Prefer runtime bridge config over build-time env injection for custom
|
|
12
|
-
* parent origins. Hosts can provide runtime config via the iframe `name`
|
|
13
|
-
* payload, and apps can extend it programmatically with `configureBridge()`.
|
|
14
|
-
* - Prefer `VITE_PARENT_ORIGINS` over `VITE_PARENT_ORIGIN` for all remaining
|
|
15
|
-
* env-based configuration.
|
|
16
|
-
* - Prefer the allowlist model (`EXPECTED_PARENT_ORIGINS`) over the singular
|
|
17
|
-
* compatibility export (`EXPECTED_PARENT_ORIGIN`).
|
|
18
|
-
* - Once all downstream apps/configs have migrated to runtime/plural config and
|
|
19
|
-
* no external consumers import `EXPECTED_PARENT_ORIGIN`, we can deprecate
|
|
20
|
-
* then remove:
|
|
21
|
-
* - `VITE_PARENT_ORIGIN`
|
|
22
|
-
* - `EXPECTED_PARENT_ORIGIN`
|
|
23
|
-
* - That removal should happen only in a deliberate breaking release after:
|
|
24
|
-
* 1. templates and docs use only runtime config and/or `VITE_PARENT_ORIGINS`
|
|
25
|
-
* 2. published Lumera apps no longer depend on the singular export/env var
|
|
26
|
-
* 3. a major/minor migration note is shipped for external consumers
|
|
27
|
-
*
|
|
28
|
-
* @module bridge
|
|
29
|
-
*/
|
|
30
1
|
export declare const EXPECTED_PARENT_ORIGIN: any;
|
|
31
2
|
export type BridgeRuntimeConfig = {
|
|
32
3
|
/** Additional trusted parent origins/patterns resolved at runtime. */
|
|
@@ -213,6 +184,10 @@ export declare class BridgeError extends Error {
|
|
|
213
184
|
* Returns the project external ID (package.json name) if available.
|
|
214
185
|
*/
|
|
215
186
|
export declare function getAppProjectExternalId(): string | undefined;
|
|
187
|
+
/** Observe identity changes without starting auth for custom chat transports. */
|
|
188
|
+
export declare function subscribeDraftOwner(listener: () => void): () => void;
|
|
189
|
+
/** Identity scope for per-tab drafts; never persist anonymous visitor drafts. */
|
|
190
|
+
export declare function getDraftOwner(): string | null;
|
|
216
191
|
/** Return the latest viewer context delivered during app initialization. */
|
|
217
192
|
export declare function getViewerContext(): ViewerContext | undefined;
|
|
218
193
|
export declare const isOrganizationMember: (viewer: ViewerContext | null | undefined) => viewer is ViewerContext & {
|
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"],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ourceRoot":"","sources":["../../src/lib/customer-app-updates.ts"],"names":[],"mappings":"AAIA,6EAA6E;AAC7E,wBAAgB,yBAAyB,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAkC5F"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type StateSetter<T> = (next: T | ((previous: T) => T)) => void;
|
|
2
|
+
type Hooks = {
|
|
3
|
+
useCallback: <T extends (...args: never[]) => unknown>(callback: T, deps: readonly unknown[]) => T;
|
|
4
|
+
useLayoutEffect: (effect: () => undefined | (() => void), deps?: readonly unknown[]) => void;
|
|
5
|
+
useRef: <T>(initial: T) => {
|
|
6
|
+
current: T;
|
|
7
|
+
};
|
|
8
|
+
useState: <T>(initial: T | (() => T)) => [T, StateSetter<T>];
|
|
9
|
+
useSyncExternalStore: <T>(subscribe: (onStoreChange: () => void) => () => void, getSnapshot: () => T, getServerSnapshot?: () => T) => T;
|
|
10
|
+
};
|
|
11
|
+
export declare function createDraftHook({ useCallback, useLayoutEffect, useRef, useState, useSyncExternalStore }: Hooks): <T>(options: {
|
|
12
|
+
identity: string;
|
|
13
|
+
key: string | null;
|
|
14
|
+
initial: T;
|
|
15
|
+
empty: T;
|
|
16
|
+
preferInitial?: boolean;
|
|
17
|
+
carryFrom?: string;
|
|
18
|
+
}) => [T, StateSetter<T>, () => () => void];
|
|
19
|
+
export declare function createUpdateBlockerHook({ useLayoutEffect, useRef }: Pick<Hooks, 'useLayoutEffect' | 'useRef'>): (options: {
|
|
20
|
+
blocked: boolean;
|
|
21
|
+
reason: string;
|
|
22
|
+
}) => void;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=draft-hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"draft-hooks.d.ts","sourceRoot":"","sources":["../../src/lib/draft-hooks.ts"],"names":[],"mappings":"AAGA,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE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,CAAC,CAAC,EAAE,MAAM,MAAM,IAAI,CAAC,CA8B1C;AAED,wBAAgB,uBAAuB,CAAC,EAAE,eAAe,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,iBAAiB,GAAG,QAAQ,CAAC,IAC3E,SAAS;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,KAAG,IAAI,CAetF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Acknowledgments outlive React components, but cannot erase newer edits. */
|
|
2
|
+
export declare class DraftSession<T> {
|
|
3
|
+
private listeners;
|
|
4
|
+
private value;
|
|
5
|
+
private revision;
|
|
6
|
+
private key;
|
|
7
|
+
private empty;
|
|
8
|
+
private storage;
|
|
9
|
+
constructor(key: string | null, initial: T, empty: T);
|
|
10
|
+
private newRevision;
|
|
11
|
+
subscribe: (listener: () => void) => (() => void);
|
|
12
|
+
getSnapshot: () => T;
|
|
13
|
+
set(value: T): void;
|
|
14
|
+
captureAcknowledgement: () => (() => void);
|
|
15
|
+
}
|
|
16
|
+
export declare function draftSession<T>(identity: string, key: string | null, initial: T, empty: T, preferInitial?: boolean): DraftSession<T>;
|
|
17
|
+
//# sourceMappingURL=drafts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drafts.d.ts","sourceRoot":"","sources":["../../src/lib/drafts.ts"],"names":[],"mappings":"AAsBA,8EAA8E;AAC9E,qBAAa,YAAY,CAAC,CAAC;IACzB,OAAO,CAAC,SAAS,CAAyB;IAC1C,OAAO,CAAC,KAAK,CAAI;IACjB,OAAO,CAAC,QAAQ,CAAS;IAEzB,OAAO,CAAC,GAAG,CAAgB;IAC3B,OAAO,CAAC,KAAK,CAAI;IACjB,OAAO,CAAC,OAAO,CAAgB;gBAEnB,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;IAQpD,OAAO,CAAC,WAAW;IAInB,SAAS,GAAI,UAAU,MAAM,IAAI,KAAG,CAAC,MAAM,IAAI,CAAC,CAK9C;IAEF,WAAW,QAAO,CAAC,CAAe;IAElC,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IAcnB,sBAAsB,QAAO,CAAC,MAAM,IAAI,CAAC,CASvC;CACH;AAID,wBAAgB,YAAY,CAAC,CAAC,EAC5B,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,MAAM,GAAG,IAAI,EAClB,OAAO,EAAE,CAAC,EACV,KAAK,EAAE,CAAC,EACR,aAAa,UAAQ,GACpB,YAAY,CAAC,CAAC,CAAC,CAejB"}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -10,4 +10,6 @@ export { type ColumnType, type FileDescriptor as FormatterFileDescriptor, type F
|
|
|
10
10
|
export { queryClient } from './query-client';
|
|
11
11
|
export { cn } from './utils';
|
|
12
12
|
export { buildRecordAuditCsv, buildRecordAuditLogPath, fetchRecordAuditLogCsv, getRecordAuditLogSnapshot, type ListRecordAuditLogParams, listRecordAuditLog, normalizeRecordAuditCollections, normalizeRecordAuditExportLimit, normalizeRecordAuditPageSize, RECORD_AUDIT_EXPORT_LIMIT, RECORD_AUDIT_MAX_COLLECTIONS, type RecordAuditActor, type RecordAuditCollectionStatus, type RecordAuditCsvResult, type RecordAuditEntry, type RecordAuditEvent, type RecordAuditExecution, type RecordAuditField, type RecordAuditFilters, type RecordAuditListResponse, type RecordAuditPagination, type RecordAuditSnapshot, type RecordAuditSnapshotResponse, type RecordAuditStore, type RecordAuditSummarySegment, recordAuditActorLabel, } from './audit-log';
|
|
13
|
+
/** Reasons registered by forms and operations currently deferring updates. */
|
|
14
|
+
export { getUpdateBlockerReasons } from './safe-updates';
|
|
13
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],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a,CAAC;AAErB,8EAA8E;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/lib/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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 } from "../automations-
|
|
2
|
-
import { c as c2, f as f2, a as
|
|
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-3V0uflxE.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";
|
|
3
3
|
import { q as q2 } from "../query-client-DdOWay4_.js";
|
|
4
|
-
import { R as R2, a as
|
|
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-BNaHuJ1Y.js";
|
|
5
5
|
export {
|
|
6
6
|
B as BridgeError,
|
|
7
7
|
E as EXPECTED_PARENT_ORIGIN,
|
|
8
8
|
R2 as RECORD_AUDIT_EXPORT_LIMIT,
|
|
9
|
-
|
|
9
|
+
a4 as RECORD_AUDIT_MAX_COLLECTIONS,
|
|
10
10
|
a as automationStatuses,
|
|
11
11
|
b3 as buildRecordAuditCsv,
|
|
12
12
|
c3 as buildRecordAuditLogPath,
|
|
@@ -22,7 +22,7 @@ export {
|
|
|
22
22
|
j as ensureRun,
|
|
23
23
|
f3 as fetchRecordAuditLogCsv,
|
|
24
24
|
f2 as formatBoolean,
|
|
25
|
-
|
|
25
|
+
a3 as formatCellValue,
|
|
26
26
|
b2 as formatCurrency,
|
|
27
27
|
d2 as formatDate,
|
|
28
28
|
e2 as formatDateTime,
|
|
@@ -45,46 +45,47 @@ export {
|
|
|
45
45
|
q as getRunFileUrl,
|
|
46
46
|
r as getRunFiles,
|
|
47
47
|
s as getShareableAppUrl,
|
|
48
|
-
t as
|
|
49
|
-
u as
|
|
50
|
-
v as
|
|
51
|
-
w as
|
|
52
|
-
x as
|
|
53
|
-
y as
|
|
54
|
-
z as
|
|
55
|
-
A as
|
|
56
|
-
C as
|
|
57
|
-
D as
|
|
48
|
+
t as getUpdateBlockerReasons,
|
|
49
|
+
u as getUploadUrl,
|
|
50
|
+
v as getViewerContext,
|
|
51
|
+
w as hasMemberTag,
|
|
52
|
+
x as isActiveStatus,
|
|
53
|
+
y as isCompanyAdmin,
|
|
54
|
+
z as isDepartment,
|
|
55
|
+
A as isEmbedded,
|
|
56
|
+
C as isOrganizationMember,
|
|
57
|
+
D as isTerminalStatus,
|
|
58
|
+
F as listAutomationRunFiles,
|
|
58
59
|
l3 as listRecordAuditLog,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
G as listRuns,
|
|
61
|
+
H as listRunsByAgent,
|
|
62
|
+
I as listRunsByExternalId,
|
|
63
|
+
J as logout,
|
|
63
64
|
n3 as normalizeRecordAuditCollections,
|
|
64
65
|
d3 as normalizeRecordAuditExportLimit,
|
|
65
66
|
e3 as normalizeRecordAuditPageSize,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
67
|
+
K as onInitMessage,
|
|
68
|
+
L as parentApiRequest,
|
|
69
|
+
M as parentApiStream,
|
|
70
|
+
N as pbBulkDelete,
|
|
71
|
+
O as pbBulkUpdate,
|
|
72
|
+
P as pbCreate,
|
|
73
|
+
Q as pbDelete,
|
|
74
|
+
R as pbGet,
|
|
75
|
+
S as pbList,
|
|
76
|
+
T as pbSearch,
|
|
77
|
+
U as pbSql,
|
|
78
|
+
V as pbUpdate,
|
|
79
|
+
W as pbUpdateRecord,
|
|
80
|
+
X as pbUpsert,
|
|
81
|
+
Y as pollAutomationRun,
|
|
82
|
+
Z as pollRun,
|
|
83
|
+
_ as postReadyMessage,
|
|
83
84
|
q2 as queryClient,
|
|
84
85
|
r2 as recordAuditActorLabel,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
$ as redirectToLogin,
|
|
87
|
+
a0 as sendEmail,
|
|
88
|
+
a1 as serializeBridgeRuntimeConfig,
|
|
88
89
|
s2 as stripHtml,
|
|
89
|
-
|
|
90
|
+
a2 as uploadFile
|
|
90
91
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** Shared by the platform and customer apps. Never infer safety from idle time. */
|
|
2
|
+
export declare class UpdateBlockers {
|
|
3
|
+
private readers;
|
|
4
|
+
register(read: () => boolean, reason?: () => string): () => void;
|
|
5
|
+
get reasons(): string[];
|
|
6
|
+
get blocked(): boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const updateBlockers: UpdateBlockers;
|
|
9
|
+
export declare const getUpdateBlockerReasons: () => string[];
|
|
10
|
+
/** Conservative fallback for forms which have not adopted useUpdateBlocker. */
|
|
11
|
+
export declare function hasEditedFields(doc: Document): boolean;
|
|
12
|
+
export declare function hasUpdateBlockers(): boolean;
|
|
13
|
+
/** Ask every child document afresh. Unknown/old frames fail closed. */
|
|
14
|
+
export declare function childrenReady(win?: Window): Promise<boolean>;
|
|
15
|
+
export declare function installUpdateSafety(isTrustedParent: (origin: string) => boolean): void;
|
|
16
|
+
export declare function mayAutoUpdate(blocked: boolean, hidden: boolean, idleFor: number): boolean;
|
|
17
|
+
export declare function readVersionFrom(url: string | URL): Promise<string | null>;
|
|
18
|
+
export type UpdateMonitorOptions = {
|
|
19
|
+
currentVersion: string;
|
|
20
|
+
readVersion: () => Promise<string | null>;
|
|
21
|
+
onAvailable: (reload: () => void) => void;
|
|
22
|
+
};
|
|
23
|
+
/** One monitor per surface. The version must identify the frontend artifact. */
|
|
24
|
+
export declare function monitorUpdates(options: UpdateMonitorOptions): () => void;
|
|
25
|
+
//# sourceMappingURL=safe-updates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-updates.d.ts","sourceRoot":"","sources":["../../src/lib/safe-updates.ts"],"names":[],"mappings":"AAAA,mFAAmF;AACnF,qBAAa,cAAc;IACzB,OAAO,CAAC,OAAO,CAA0C;IAEzD,QAAQ,CAAC,IAAI,EAAE,MAAM,OAAO,EAAE,MAAM,GAAE,MAAM,MAAgC,GAAG,MAAM,IAAI;IAOzF,IAAI,OAAO,IAAI,MAAM,EAAE,CAUtB;IAED,IAAI,OAAO,IAAI,OAAO,CASrB;CACF;AAED,eAAO,MAAM,cAAc,gBAAuB,CAAC;AACnD,eAAO,MAAM,uBAAuB,QAAO,MAAM,EAA4B,CAAC;AAS9E,+EAA+E;AAC/E,wBAAgB,eAAe,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAqBtD;AAED,wBAAgB,iBAAiB,IAAI,OAAO,CAE3C;AAMD,uEAAuE;AACvE,wBAAsB,aAAa,CAAC,GAAG,GAAE,MAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CA8C1E;AAED,wBAAgB,mBAAmB,CAAC,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAuDtF;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAEzF;AAED,wBAAsB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,OAAO,CAAC,MAAM,GAAG,IA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