@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.
Files changed (105) hide show
  1. package/CHANGELOG.md +272 -6
  2. package/THIRD-PARTY-NOTICES.md +6 -1349
  3. package/dist/analyticsCatalog.js +1 -2
  4. package/dist/apiConnectivity.js +1 -2
  5. package/dist/apiRoleTransports.js +1 -2
  6. package/dist/apiRuntime.js +1 -2
  7. package/dist/apiSocketTracker.js +1 -2
  8. package/dist/apiSupervisor.js +1 -2
  9. package/dist/authRefresh.js +1 -2
  10. package/dist/awaitResolvedApi.js +1 -2
  11. package/dist/cellMerger.js +1 -2
  12. package/dist/clientDiagnostics.js +1 -2
  13. package/dist/clientErrorBus.js +1 -2
  14. package/dist/clientScheduler.js +1 -2
  15. package/dist/connectionPrerequisite.js +1 -2
  16. package/dist/connectionScope.js +1 -2
  17. package/dist/connectionSetupController.js +1 -2
  18. package/dist/createHooks.js +1 -2
  19. package/dist/deepLink.js +1 -2
  20. package/dist/filters.js +1 -2
  21. package/dist/formBinding.js +1 -2
  22. package/dist/formData.js +1 -2
  23. package/dist/formFlashId.js +1 -2
  24. package/dist/formRejection.js +1 -2
  25. package/dist/formSource.js +1 -2
  26. package/dist/frameworkRuntimesContext.js +1 -2
  27. package/dist/globalContext.js +1 -2
  28. package/dist/index.js +1 -2
  29. package/dist/liveRowSort.js +1 -2
  30. package/dist/mutationConnectionSetup.js +1 -2
  31. package/dist/mutationIdentity.js +1 -2
  32. package/dist/mutationSerialExecution.js +1 -2
  33. package/dist/mutationsBus.js +1 -2
  34. package/dist/onlineSource.js +1 -2
  35. package/dist/outbox.js +1 -2
  36. package/dist/outboxHttp.js +1 -2
  37. package/dist/outboxState.js +1 -2
  38. package/dist/permissions.js +1 -2
  39. package/dist/platform.js +1 -2
  40. package/dist/preloadSeed.js +1 -2
  41. package/dist/provider.js +1 -2
  42. package/dist/query.js +1 -2
  43. package/dist/recoveryCoordinator.js +1 -2
  44. package/dist/recoveryRetry.js +1 -2
  45. package/dist/richText.js +1 -2
  46. package/dist/rpcErrorBus.js +1 -2
  47. package/dist/rpcErrorKind.js +1 -2
  48. package/dist/runRpc.js +1 -2
  49. package/dist/runtimeCapabilities.js +1 -2
  50. package/dist/runtimeContext.js +1 -2
  51. package/dist/schemaFields.js +1 -2
  52. package/dist/scopeMembership.js +1 -2
  53. package/dist/seedResolvers.js +1 -2
  54. package/dist/sequence.js +1 -2
  55. package/dist/serverRequest.js +1 -2
  56. package/dist/serviceClient.js +1 -2
  57. package/dist/squashRpcCause.js +1 -2
  58. package/dist/stableKey.js +1 -2
  59. package/dist/store.js +1 -2
  60. package/dist/storeStorage.js +1 -2
  61. package/dist/subscriptionCache.js +1 -2
  62. package/dist/tagWalk.js +1 -2
  63. package/dist/traceBus.js +1 -2
  64. package/dist/tracking.js +1 -2
  65. package/dist/uploadProgress.js +1 -2
  66. package/dist/useAction.js +1 -2
  67. package/dist/useAgent.js +1 -2
  68. package/dist/useAgentChat.js +1 -2
  69. package/dist/useAgentStream.js +1 -2
  70. package/dist/useApiOnline.js +1 -2
  71. package/dist/useCapabilityManifest.js +1 -2
  72. package/dist/useConnectionSetup.js +1 -2
  73. package/dist/useConnectionStatus.js +1 -2
  74. package/dist/useConnections.js +1 -2
  75. package/dist/useDataCopilot.js +1 -2
  76. package/dist/useDataTable.js +1 -2
  77. package/dist/useDerived.js +1 -2
  78. package/dist/useEvent.js +1 -2
  79. package/dist/useFormBinding.js +2 -3
  80. package/dist/useLocalQuery.js +1 -2
  81. package/dist/useMutation.js +1 -2
  82. package/dist/useOnRpcError.js +1 -2
  83. package/dist/usePreloadedSubscription.js +1 -2
  84. package/dist/usePreview.js +1 -2
  85. package/dist/useProvenance.js +1 -2
  86. package/dist/useQueryField.js +1 -2
  87. package/dist/useRecord.js +1 -2
  88. package/dist/useRefreshSubscriptions.js +1 -2
  89. package/dist/useResourceCan.js +1 -2
  90. package/dist/useResumableAgentStream.js +1 -2
  91. package/dist/useRpcCaller.js +1 -2
  92. package/dist/useSequence.js +1 -2
  93. package/dist/useSkeleton.js +1 -2
  94. package/dist/useSubscription.js +1 -2
  95. package/dist/useSubscriptionHealth.js +1 -2
  96. package/dist/useTranscription.js +1 -2
  97. package/dist/useUndo.js +1 -2
  98. package/dist/useUndoLog.js +1 -2
  99. package/dist/useUpload.js +1 -2
  100. package/dist/useWindowedSubscription.js +1 -2
  101. package/dist/useWorkflow.js +1 -2
  102. package/dist/useWorkflowRunState.js +1 -2
  103. package/dist/validation.js +1 -2
  104. package/dist/validationMessages.js +1 -2
  105. package/package.json +4 -4
@@ -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
- //#region src/useRpcCaller.ts
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 };
@@ -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
- //#region src/useSequence.ts
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 };
@@ -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
- //#region src/useSkeleton.ts
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 };
@@ -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
- //#region src/useSubscription.ts
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
- //#region src/useSubscriptionHealth.ts
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 };
@@ -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
- //#region src/useTranscription.ts
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
- //#region src/useUndo.ts
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 };
@@ -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
- //#region src/useUndoLog.ts
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
- //#region src/useUpload.ts
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
- //#region src/useWindowedSubscription.ts
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 };
@@ -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
- //#region src/useWorkflow.ts
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
- //#region src/useWorkflowRunState.ts
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 };
@@ -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
- //#region src/validation.ts
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
- //#region src/validationMessages.tsx
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.87.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.1",
58
- "@voltro/protocol": "0.87.0"
57
+ "@tanstack/react-store": "^0.11.2",
58
+ "@voltro/protocol": "0.89.0"
59
59
  },
60
60
  "peerDependencies": {
61
- "effect": "4.0.1",
61
+ "effect": "4.1.0",
62
62
  "react": "^19.0.0"
63
63
  },
64
64
  "peerDependenciesMeta": {