@voltro/client 0.87.0 → 0.89.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 +272 -6
- package/THIRD-PARTY-NOTICES.md +6 -1349
- package/dist/analyticsCatalog.js +1 -2
- package/dist/apiConnectivity.js +1 -2
- package/dist/apiRoleTransports.js +1 -2
- package/dist/apiRuntime.js +1 -2
- package/dist/apiSocketTracker.js +1 -2
- package/dist/apiSupervisor.js +1 -2
- package/dist/authRefresh.js +1 -2
- package/dist/awaitResolvedApi.js +1 -2
- package/dist/cellMerger.js +1 -2
- package/dist/clientDiagnostics.js +1 -2
- package/dist/clientErrorBus.js +1 -2
- package/dist/clientScheduler.js +1 -2
- package/dist/connectionPrerequisite.js +1 -2
- package/dist/connectionScope.js +1 -2
- package/dist/connectionSetupController.js +1 -2
- package/dist/createHooks.js +1 -2
- package/dist/deepLink.js +1 -2
- package/dist/filters.js +1 -2
- package/dist/formBinding.js +1 -2
- package/dist/formData.js +1 -2
- package/dist/formFlashId.js +1 -2
- package/dist/formRejection.js +1 -2
- package/dist/formSource.js +1 -2
- package/dist/frameworkRuntimesContext.js +1 -2
- package/dist/globalContext.js +1 -2
- package/dist/index.js +1 -2
- package/dist/liveRowSort.js +1 -2
- package/dist/mutationConnectionSetup.js +1 -2
- package/dist/mutationIdentity.js +1 -2
- package/dist/mutationSerialExecution.js +1 -2
- package/dist/mutationsBus.js +1 -2
- package/dist/onlineSource.js +1 -2
- package/dist/outbox.js +1 -2
- package/dist/outboxHttp.js +1 -2
- package/dist/outboxState.js +1 -2
- package/dist/permissions.js +1 -2
- package/dist/platform.js +1 -2
- package/dist/preloadSeed.js +1 -2
- package/dist/provider.js +1 -2
- package/dist/query.js +1 -2
- package/dist/recoveryCoordinator.js +1 -2
- package/dist/recoveryRetry.js +1 -2
- package/dist/richText.js +1 -2
- package/dist/rpcErrorBus.js +1 -2
- package/dist/rpcErrorKind.js +1 -2
- package/dist/runRpc.js +1 -2
- package/dist/runtimeCapabilities.js +1 -2
- package/dist/runtimeContext.js +1 -2
- package/dist/schemaFields.js +1 -2
- package/dist/scopeMembership.js +1 -2
- package/dist/seedResolvers.js +1 -2
- package/dist/sequence.js +1 -2
- package/dist/serverRequest.js +1 -2
- package/dist/serviceClient.js +1 -2
- package/dist/squashRpcCause.js +1 -2
- package/dist/stableKey.js +1 -2
- package/dist/store.js +1 -2
- package/dist/storeStorage.js +1 -2
- package/dist/subscriptionCache.js +1 -2
- package/dist/tagWalk.js +1 -2
- package/dist/traceBus.js +1 -2
- package/dist/tracking.js +1 -2
- package/dist/uploadProgress.js +1 -2
- package/dist/useAction.js +1 -2
- package/dist/useAgent.js +1 -2
- package/dist/useAgentChat.js +1 -2
- package/dist/useAgentStream.js +1 -2
- package/dist/useApiOnline.js +1 -2
- package/dist/useCapabilityManifest.js +1 -2
- package/dist/useConnectionSetup.js +1 -2
- package/dist/useConnectionStatus.js +1 -2
- package/dist/useConnections.js +1 -2
- package/dist/useDataCopilot.js +1 -2
- package/dist/useDataTable.js +1 -2
- package/dist/useDerived.js +1 -2
- package/dist/useEvent.js +1 -2
- package/dist/useFormBinding.js +2 -3
- package/dist/useLocalQuery.js +1 -2
- package/dist/useMutation.js +1 -2
- package/dist/useOnRpcError.js +1 -2
- package/dist/usePreloadedSubscription.js +1 -2
- package/dist/usePreview.js +1 -2
- package/dist/useProvenance.js +1 -2
- package/dist/useQueryField.js +1 -2
- package/dist/useRecord.js +1 -2
- package/dist/useRefreshSubscriptions.js +1 -2
- package/dist/useResourceCan.js +1 -2
- package/dist/useResumableAgentStream.js +1 -2
- package/dist/useRpcCaller.js +1 -2
- package/dist/useSequence.js +1 -2
- package/dist/useSkeleton.js +1 -2
- package/dist/useSubscription.js +1 -2
- package/dist/useSubscriptionHealth.js +1 -2
- package/dist/useTranscription.js +1 -2
- package/dist/useUndo.js +1 -2
- package/dist/useUndoLog.js +1 -2
- package/dist/useUpload.js +1 -2
- package/dist/useWindowedSubscription.js +1 -2
- package/dist/useWorkflow.js +1 -2
- package/dist/useWorkflowRunState.js +1 -2
- package/dist/validation.js +1 -2
- package/dist/validationMessages.js +1 -2
- package/package.json +4 -4
package/dist/useRpcCaller.js
CHANGED
|
@@ -3,7 +3,7 @@ import { resolveByTag as t } from "./tagWalk.js";
|
|
|
3
3
|
import { runRpcPromise as n } from "./runRpc.js";
|
|
4
4
|
import { awaitResolvedApi as r } from "./awaitResolvedApi.js";
|
|
5
5
|
import { useMemo as i, useRef as a } from "react";
|
|
6
|
-
|
|
6
|
+
// src/useRpcCaller.ts
|
|
7
7
|
var o = (o) => {
|
|
8
8
|
let s = e(o), c = a(s);
|
|
9
9
|
return c.current = s, i(() => Object.freeze({ call: async (e, i, a) => {
|
|
@@ -13,5 +13,4 @@ var o = (o) => {
|
|
|
13
13
|
return n(s, u(i), { signal: a?.signal });
|
|
14
14
|
} }), [o]);
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { o as useRpcCaller };
|
package/dist/useSequence.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { runSequence as e } from "./sequence.js";
|
|
2
2
|
import { useCallback as t, useRef as n, useState as r } from "react";
|
|
3
|
-
|
|
3
|
+
// src/useSequence.ts
|
|
4
4
|
var i = (i = {}) => {
|
|
5
5
|
let [a, o] = r(!1), [s, c] = r(void 0), [l, u] = r(void 0), d = n(i);
|
|
6
6
|
return d.current = i, {
|
|
@@ -21,5 +21,4 @@ var i = (i = {}) => {
|
|
|
21
21
|
failedStep: l
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
export { i as useSequence };
|
package/dist/useSkeleton.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFrameworkApi as e } from "./runtimeContext.js";
|
|
2
2
|
import { schemaToColumns as t, schemaToFields as n } from "./schemaFields.js";
|
|
3
3
|
import { useMemo as r } from "react";
|
|
4
|
-
|
|
4
|
+
// src/useSkeleton.ts
|
|
5
5
|
var i = (t, i) => {
|
|
6
6
|
let a = e(t).descriptors[i]?.input;
|
|
7
7
|
return r(() => a === void 0 ? [] : n(a), [a]);
|
|
@@ -9,5 +9,4 @@ var i = (t, i) => {
|
|
|
9
9
|
let a = e(n).descriptors[i]?.output;
|
|
10
10
|
return r(() => a === void 0 ? [] : t(a), [a]);
|
|
11
11
|
};
|
|
12
|
-
//#endregion
|
|
13
12
|
export { i as useFormSkeleton, a as useTableSkeleton };
|
package/dist/useSubscription.js
CHANGED
|
@@ -2,7 +2,7 @@ import { useFrameworkApi as e } from "./runtimeContext.js";
|
|
|
2
2
|
import { resolveByTag as t } from "./tagWalk.js";
|
|
3
3
|
import { useCallback as n, useMemo as r, useRef as i, useSyncExternalStore as a } from "react";
|
|
4
4
|
import { Stream as o } from "effect";
|
|
5
|
-
|
|
5
|
+
// src/useSubscription.ts
|
|
6
6
|
var s = Object.freeze({
|
|
7
7
|
data: void 0,
|
|
8
8
|
revision: -1,
|
|
@@ -94,5 +94,4 @@ function l(l, u, d = {}, f = {}) {
|
|
|
94
94
|
failed: !D && k.error !== void 0
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
//#endregion
|
|
98
97
|
export { l as useSubscription };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useFrameworkApi as e } from "./runtimeContext.js";
|
|
2
2
|
import { useEffect as t, useState as n } from "react";
|
|
3
|
-
|
|
3
|
+
// src/useSubscriptionHealth.ts
|
|
4
4
|
var r = {
|
|
5
5
|
failed: [],
|
|
6
6
|
healthy: !0
|
|
@@ -28,5 +28,4 @@ var r = {
|
|
|
28
28
|
};
|
|
29
29
|
}, [a]), o;
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { i as useSubscriptionHealth };
|
package/dist/useTranscription.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useAction as e } from "./useAction.js";
|
|
2
2
|
import { useUpload as t } from "./useUpload.js";
|
|
3
3
|
import { useCallback as n, useMemo as r, useRef as i, useState as a } from "react";
|
|
4
|
-
|
|
4
|
+
// src/useTranscription.ts
|
|
5
5
|
var o = (o, s) => {
|
|
6
6
|
let c = t(o), l = e(o, s.action), [u, d] = a("idle"), [f, p] = a(void 0), [m, h] = a(void 0), g = i(s.extra);
|
|
7
7
|
g.current = s.extra;
|
|
@@ -47,5 +47,4 @@ var o = (o, s) => {
|
|
|
47
47
|
y
|
|
48
48
|
]);
|
|
49
49
|
};
|
|
50
|
-
//#endregion
|
|
51
50
|
export { o as useTranscription };
|
package/dist/useUndo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback as e, useMemo as t, useState as n } from "react";
|
|
2
|
-
|
|
2
|
+
// src/useUndo.ts
|
|
3
3
|
var r = (r) => {
|
|
4
4
|
let [i, a] = n([]), [o, s] = n([]), c = e((e) => {
|
|
5
5
|
a((t) => [...t, e]), s([]);
|
|
@@ -29,5 +29,4 @@ var r = (r) => {
|
|
|
29
29
|
u
|
|
30
30
|
]);
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { r as useUndo };
|
package/dist/useUndoLog.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSubscription as e } from "./useSubscription.js";
|
|
2
2
|
import { useMutation as t } from "./useMutation.js";
|
|
3
3
|
import { useCallback as n, useMemo as r } from "react";
|
|
4
|
-
|
|
4
|
+
// src/useUndoLog.ts
|
|
5
5
|
var i = "__voltro.undo.log", a = "__voltro.undo.apply", o = "__voltro.undo.redo", s = (e) => {
|
|
6
6
|
if (e.length < 32 || Object.getPrototypeOf(e) !== Array.prototype || Object.hasOwn(e, "find")) return;
|
|
7
7
|
let t, n;
|
|
@@ -40,5 +40,4 @@ var i = "__voltro.undo.log", a = "__voltro.undo.apply", o = "__voltro.undo.redo"
|
|
|
40
40
|
redoLast: x
|
|
41
41
|
};
|
|
42
42
|
};
|
|
43
|
-
//#endregion
|
|
44
43
|
export { a as UNDO_APPLY_TAG, i as UNDO_LOG_TAG, o as UNDO_REDO_TAG, c as useUndoLog };
|
package/dist/useUpload.js
CHANGED
|
@@ -6,7 +6,7 @@ import { awaitResolvedApi as a } from "./awaitResolvedApi.js";
|
|
|
6
6
|
import { createUploadProgress as o } from "./uploadProgress.js";
|
|
7
7
|
import { useCallback as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
8
8
|
import { pluginTag as d } from "@voltro/protocol";
|
|
9
|
-
|
|
9
|
+
// src/useUpload.ts
|
|
10
10
|
var f = "@voltro/plugin-storage", p = (e) => d(f, e), m = (e, t, n, r) => new Promise((i, a) => {
|
|
11
11
|
let o = new XMLHttpRequest();
|
|
12
12
|
o.open("PUT", e), o.upload.onprogress = (e) => {
|
|
@@ -292,5 +292,4 @@ var f = "@voltro/plugin-storage", p = (e) => d(f, e), m = (e, t, n, r) => new Pr
|
|
|
292
292
|
I
|
|
293
293
|
]);
|
|
294
294
|
};
|
|
295
|
-
//#endregion
|
|
296
295
|
export { v as useUpload };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useSubscription as e } from "./useSubscription.js";
|
|
2
2
|
import { useCallback as t, useMemo as n, useRef as r, useState as i } from "react";
|
|
3
|
-
|
|
3
|
+
// src/useWindowedSubscription.ts
|
|
4
4
|
var a = (e) => {
|
|
5
5
|
let { scrollTop: t, viewportHeight: n, rowHeight: r, overscan: i = 5, total: a } = e, o = r > 0 ? r : 1, s = Math.max(0, Math.floor(t / o)), c = Math.ceil(n / o), l = Math.max(0, s - i), u = s + c + i, d = a === void 0 ? u : Math.min(u, a);
|
|
6
6
|
return {
|
|
@@ -61,5 +61,4 @@ var a = (e) => {
|
|
|
61
61
|
error: y.error
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
-
//#endregion
|
|
65
64
|
export { a as computeWindow, o as useWindowedSubscription };
|
package/dist/useWorkflow.js
CHANGED
|
@@ -6,7 +6,7 @@ import { runRpcPromise as i } from "./runRpc.js";
|
|
|
6
6
|
import { awaitResolvedApi as a } from "./awaitResolvedApi.js";
|
|
7
7
|
import { useCallback as o, useMemo as s, useRef as c, useState as l } from "react";
|
|
8
8
|
import { Effect as u, Option as d, Stream as f } from "effect";
|
|
9
|
-
|
|
9
|
+
// src/useWorkflow.ts
|
|
10
10
|
var p = async (t) => {
|
|
11
11
|
let r = n(t.client, t.tag), a = u.currentSpan.pipe(u.tap((n) => u.sync(() => {
|
|
12
12
|
e({
|
|
@@ -280,5 +280,4 @@ var p = async (t) => {
|
|
|
280
280
|
deliveries: n.data
|
|
281
281
|
};
|
|
282
282
|
};
|
|
283
|
-
//#endregion
|
|
284
283
|
export { m as useWorkflow, S as useWorkflowDomainEvents, C as useWorkflowEventDeliveries, x as useWorkflowEvents, _ as useWorkflowRun, b as useWorkflowRunEvents, y as useWorkflowRunSteps, v as useWorkflowRuns, h as useWorkflowSignal, g as useWorkflowUpdate };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useWorkflow as e, useWorkflowRun as t, useWorkflowRunEvents as n, useWorkflowRunSteps as r } from "./useWorkflow.js";
|
|
2
2
|
import { useCallback as i, useMemo as a } from "react";
|
|
3
|
-
|
|
3
|
+
// src/useWorkflowRunState.ts
|
|
4
4
|
var o = (e, t) => {
|
|
5
5
|
let n = e.payload;
|
|
6
6
|
if (!n || typeof n != "object") return;
|
|
@@ -89,5 +89,4 @@ var o = (e, t) => {
|
|
|
89
89
|
x
|
|
90
90
|
]);
|
|
91
91
|
};
|
|
92
|
-
//#endregion
|
|
93
92
|
export { d as useWorkflowRunState };
|
package/dist/validation.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useSubscription as e } from "./useSubscription.js";
|
|
2
2
|
import { useEffect as t, useMemo as n, useState as r } from "react";
|
|
3
|
-
|
|
3
|
+
// src/validation.ts
|
|
4
4
|
var i = (e, n = 300) => {
|
|
5
5
|
let [i, a] = r(e);
|
|
6
6
|
return t(() => {
|
|
@@ -35,5 +35,4 @@ var i = (e, n = 300) => {
|
|
|
35
35
|
skipEmpty: d
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
//#endregion
|
|
39
38
|
export { o as useAsyncValidation, i as useDebounced, a as validationStatus };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { createContext as e, createElement as t, useContext as n } from "react";
|
|
2
|
-
|
|
2
|
+
// src/validationMessages.tsx
|
|
3
3
|
var r = e(void 0), i = (e) => t(r.Provider, { value: e.messages }, e.children), a = () => n(r);
|
|
4
|
-
//#endregion
|
|
5
4
|
export { i as ValidationMessagesProvider, a as useValidationMessages };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltro/client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.89.0",
|
|
4
4
|
"description": "Framework-agnostic client bindings — the typed RpcClient, subscription cache, and reactive data layer the web hooks build on.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"voltro",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@tanstack/form-core": "^1.33.5",
|
|
57
|
-
"@tanstack/react-store": "^0.11.
|
|
58
|
-
"@voltro/protocol": "0.
|
|
57
|
+
"@tanstack/react-store": "^0.11.2",
|
|
58
|
+
"@voltro/protocol": "0.89.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"effect": "4.0
|
|
61
|
+
"effect": "4.1.0",
|
|
62
62
|
"react": "^19.0.0"
|
|
63
63
|
},
|
|
64
64
|
"peerDependenciesMeta": {
|