oui-spec 0.2.0 → 0.4.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 (63) hide show
  1. package/README.md +94 -122
  2. package/dist/{chunk-CVUUSPF4.js → chunk-BMCL2K74.js} +2 -2
  3. package/dist/chunk-BMCL2K74.js.map +1 -0
  4. package/dist/{chunk-MTMEW6MM.cjs → chunk-DCVVTP3V.cjs} +72 -23
  5. package/dist/chunk-DCVVTP3V.cjs.map +1 -0
  6. package/dist/chunk-DGMKSJTY.cjs +573 -0
  7. package/dist/chunk-DGMKSJTY.cjs.map +1 -0
  8. package/dist/chunk-F3SKRAGU.cjs +98 -0
  9. package/dist/chunk-F3SKRAGU.cjs.map +1 -0
  10. package/dist/{chunk-YDMGV72W.js → chunk-F3WKIRAU.js} +72 -23
  11. package/dist/chunk-F3WKIRAU.js.map +1 -0
  12. package/dist/chunk-GXTNZ44I.js +569 -0
  13. package/dist/chunk-GXTNZ44I.js.map +1 -0
  14. package/dist/chunk-IIZ6HL2L.js +89 -0
  15. package/dist/chunk-IIZ6HL2L.js.map +1 -0
  16. package/dist/chunk-NYCJZQSP.js +92 -0
  17. package/dist/chunk-NYCJZQSP.js.map +1 -0
  18. package/dist/chunk-ROGKEMLL.cjs +91 -0
  19. package/dist/chunk-ROGKEMLL.cjs.map +1 -0
  20. package/dist/{chunk-3DCIL4FV.cjs → chunk-ZKM4XWAB.cjs} +2 -2
  21. package/dist/chunk-ZKM4XWAB.cjs.map +1 -0
  22. package/dist/core/index.cjs +10 -6
  23. package/dist/core/index.d.cts +15 -8
  24. package/dist/core/index.d.ts +15 -8
  25. package/dist/core/index.js +3 -3
  26. package/dist/index.cjs +28 -12
  27. package/dist/index.d.cts +5 -4
  28. package/dist/index.d.ts +5 -4
  29. package/dist/index.js +5 -5
  30. package/dist/react/index.cjs +15 -3
  31. package/dist/react/index.d.cts +33 -50
  32. package/dist/react/index.d.ts +33 -50
  33. package/dist/react/index.js +1 -1
  34. package/dist/spec/index.cjs +2 -2
  35. package/dist/spec/index.d.cts +35 -7
  36. package/dist/spec/index.d.ts +35 -7
  37. package/dist/spec/index.js +1 -1
  38. package/dist/{define-surface-D6XPtoqu.d.cts → surface-runtime-BzIKgL_I.d.cts} +102 -2
  39. package/dist/{define-surface-DXBop-uB.d.ts → surface-runtime-DeByfbKg.d.ts} +102 -2
  40. package/dist/transport/index.cjs +4 -4
  41. package/dist/transport/index.d.cts +2 -2
  42. package/dist/transport/index.d.ts +2 -2
  43. package/dist/transport/index.js +2 -2
  44. package/dist/{websocket-CrI0yRNo.d.cts → websocket-YfWILdZ4.d.cts} +36 -18
  45. package/dist/{websocket-CiWvkaz_.d.ts → websocket-c5tIUWY5.d.ts} +36 -18
  46. package/package.json +5 -1
  47. package/spec/OUI-SPEC-v0.1.md +229 -155
  48. package/dist/chunk-2ON5IEXB.cjs +0 -167
  49. package/dist/chunk-2ON5IEXB.cjs.map +0 -1
  50. package/dist/chunk-3DCIL4FV.cjs.map +0 -1
  51. package/dist/chunk-5TQ6AVQH.cjs +0 -108
  52. package/dist/chunk-5TQ6AVQH.cjs.map +0 -1
  53. package/dist/chunk-CVUUSPF4.js.map +0 -1
  54. package/dist/chunk-HK7OXB2W.cjs +0 -157
  55. package/dist/chunk-HK7OXB2W.cjs.map +0 -1
  56. package/dist/chunk-ILUTAHUJ.js +0 -154
  57. package/dist/chunk-ILUTAHUJ.js.map +0 -1
  58. package/dist/chunk-MTMEW6MM.cjs.map +0 -1
  59. package/dist/chunk-O6EI77LD.js +0 -106
  60. package/dist/chunk-O6EI77LD.js.map +0 -1
  61. package/dist/chunk-UIGRLZOX.js +0 -164
  62. package/dist/chunk-UIGRLZOX.js.map +0 -1
  63. package/dist/chunk-YDMGV72W.js.map +0 -1
@@ -1,4 +1,5 @@
1
- import { JSONSchema, OUIActionPolling, OUIActivation, OUISurface } from './spec/index.js';
1
+ import { JSONSchema, OUIActionPolling, OUIActivation, OUISurface, OUISurfaceSnapshot, OUIActionRequest, OUIActionResult } from './spec/index.js';
2
+ import { S as SocketLike, d as OUITransportConfig } from './websocket-c5tIUWY5.js';
2
3
 
3
4
  /**
4
5
  * Nominal branding for values OUI must construct itself.
@@ -148,4 +149,103 @@ interface DefinedSurface<TContext = unknown> extends SurfaceDefinition<TContext>
148
149
  getPollingConfig(actionId: string): OUIActionPolling | undefined;
149
150
  }
150
151
 
151
- export { type ActionDefinition as A, type DefinedSurface as D, type OUIBranded as O, type SurfaceDefinition as S, type ActionHandlerResult as a, type ActionPollingConfig as b, type ObservationDefinition as c, defineSurface as d };
152
+ /**
153
+ * The client-side surface runtime.
154
+ *
155
+ * Holds the surfaces a client has mounted, answers every action request with a
156
+ * result, and produces the snapshot an agent runtime works from.
157
+ *
158
+ * WHY THIS EXISTS
159
+ *
160
+ * The first integration kept no client-side record of what was mounted. Each
161
+ * surface hook registered itself with a server-side registry and listened for
162
+ * dispatches on its own. Three things followed:
163
+ *
164
+ * - The registry was the only record of what the client could do, and it lost
165
+ * entries: a dead socket's cleanup removed a live tab's registration, and the
166
+ * browser never registered again. The agent then had no UI tools at all.
167
+ * - Nothing answered a dispatch. The agent was told an action succeeded before
168
+ * the client had run it, and never saw the page an action led to.
169
+ * - Every hook listened independently, through two paths, so one dispatch ran
170
+ * twice and nothing de-duplicated it.
171
+ *
172
+ * Here the client is the record. `snapshot()` is what the client can do right
173
+ * now, and every request is run once, waited on until the UI settles, and
174
+ * answered with its result and the snapshot after it.
175
+ */
176
+
177
+ interface SettleOptions {
178
+ /**
179
+ * The UI counts as settled once nothing has mounted, unmounted or changed an
180
+ * observation for this long, and no hold is open. Default 250 ms.
181
+ */
182
+ quietMs?: number;
183
+ /** Give up waiting after this long and answer with `settled: false`. Default 5000 ms. */
184
+ timeoutMs?: number;
185
+ }
186
+ interface SurfaceRuntimeOptions {
187
+ /** The socket to answer requests on. Can be set or replaced later with `attach`. */
188
+ socket?: SocketLike | null;
189
+ /** Wire configuration for the transport the runtime builds on the socket. */
190
+ transport?: OUITransportConfig;
191
+ /**
192
+ * Also announce registrations and observations over the transport, for agent
193
+ * runtimes that keep a server-side registry. Default true.
194
+ *
195
+ * An agent runtime that takes the client's snapshot instead (sent with each
196
+ * turn, and returned on every result) has no use for them: set false.
197
+ */
198
+ announce?: boolean;
199
+ settle?: SettleOptions;
200
+ /** How many answered request ids to remember, for de-duplication. Default 500. */
201
+ dedupeWindow?: number;
202
+ /**
203
+ * Decides whether a request that arrived on the socket may run at all. A
204
+ * refused request is neither run nor answered, and is logged.
205
+ *
206
+ * The server should be the only sender of action requests, but a client can
207
+ * also check that a request is one it expects: for example, only while its
208
+ * agent has a turn in progress. Requests passed to `execute` directly are
209
+ * not checked; they come from the application itself.
210
+ */
211
+ accept?: (request: OUIActionRequest) => boolean;
212
+ }
213
+ interface MountedSurface {
214
+ readonly surfaceId: string;
215
+ /** Record an observation value. A no-op once unmounted. */
216
+ pushObservation(observationId: string, value: unknown): void;
217
+ /** Remove this mount. Other mounts of the same surface id are unaffected. */
218
+ unmount(): void;
219
+ }
220
+ interface SurfaceRuntime {
221
+ /**
222
+ * Mount a surface. `getContext` is read when an action runs, so handlers see
223
+ * the latest state rather than the state at mount time.
224
+ *
225
+ * Mounting the same surface id twice is allowed (React StrictMode does it on
226
+ * every mount); the most recent mount serves its actions.
227
+ */
228
+ mount<TContext>(surface: DefinedSurface<TContext>, getContext: () => TContext): MountedSurface;
229
+ /** Answer requests arriving on this socket (null detaches). */
230
+ attach(socket: SocketLike | null): void;
231
+ /** What the client can do right now. */
232
+ snapshot(): OUISurfaceSnapshot;
233
+ /**
234
+ * Run a request once and resolve with its result. A request id seen before
235
+ * resolves with the first result instead of running again.
236
+ */
237
+ execute(request: OUIActionRequest): Promise<OUIActionResult>;
238
+ /**
239
+ * Keep the UI unsettled until the returned function is called. For work an
240
+ * action starts that mounting and unmounting cannot show, such as a route's
241
+ * code still loading or a page fetching the data it will display.
242
+ */
243
+ hold(): () => void;
244
+ /** Called whenever the snapshot changes. */
245
+ subscribe(listener: () => void): () => void;
246
+ /** Stop polling, detach from the socket and forget every mount. */
247
+ dispose(): void;
248
+ }
249
+ declare function createSurfaceRuntime(options?: SurfaceRuntimeOptions): SurfaceRuntime;
250
+
251
+ export { type ActionDefinition as A, type DefinedSurface as D, type MountedSurface as M, type OUIBranded as O, type SettleOptions as S, type ActionHandlerResult as a, type ActionPollingConfig as b, type ObservationDefinition as c, type SurfaceDefinition as d, type SurfaceRuntime as e, type SurfaceRuntimeOptions as f, createSurfaceRuntime as g, defineSurface as h };
@@ -1,17 +1,17 @@
1
1
  'use strict';
2
2
 
3
- var chunk5TQ6AVQH_cjs = require('../chunk-5TQ6AVQH.cjs');
4
- var chunkMTMEW6MM_cjs = require('../chunk-MTMEW6MM.cjs');
3
+ var chunkROGKEMLL_cjs = require('../chunk-ROGKEMLL.cjs');
4
+ var chunkDCVVTP3V_cjs = require('../chunk-DCVVTP3V.cjs');
5
5
 
6
6
 
7
7
 
8
8
  Object.defineProperty(exports, "createDirectTransportPair", {
9
9
  enumerable: true,
10
- get: function () { return chunk5TQ6AVQH_cjs.createDirectTransportPair; }
10
+ get: function () { return chunkROGKEMLL_cjs.createDirectTransportPair; }
11
11
  });
12
12
  Object.defineProperty(exports, "createWebSocketTransport", {
13
13
  enumerable: true,
14
- get: function () { return chunkMTMEW6MM_cjs.createWebSocketTransport; }
14
+ get: function () { return chunkDCVVTP3V_cjs.createWebSocketTransport; }
15
15
  });
16
16
  //# sourceMappingURL=index.cjs.map
17
17
  //# sourceMappingURL=index.cjs.map
@@ -1,5 +1,5 @@
1
- import { b as OUITransport } from '../websocket-CrI0yRNo.cjs';
2
- export { O as OUIActionHandler, a as OUIObservationHandler, c as OUITransportConfig, S as SocketLike, d as createWebSocketTransport } from '../websocket-CrI0yRNo.cjs';
1
+ import { c as OUITransport } from '../websocket-YfWILdZ4.cjs';
2
+ export { O as OUIActionHandler, a as OUIObservationHandler, b as OUIResultHandler, d as OUITransportConfig, S as SocketLike, e as createWebSocketTransport } from '../websocket-YfWILdZ4.cjs';
3
3
  import '../spec/index.cjs';
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { b as OUITransport } from '../websocket-CiWvkaz_.js';
2
- export { O as OUIActionHandler, a as OUIObservationHandler, c as OUITransportConfig, S as SocketLike, d as createWebSocketTransport } from '../websocket-CiWvkaz_.js';
1
+ import { c as OUITransport } from '../websocket-c5tIUWY5.js';
2
+ export { O as OUIActionHandler, a as OUIObservationHandler, b as OUIResultHandler, d as OUITransportConfig, S as SocketLike, e as createWebSocketTransport } from '../websocket-c5tIUWY5.js';
3
3
  import '../spec/index.js';
4
4
 
5
5
  /**
@@ -1,4 +1,4 @@
1
- export { createDirectTransportPair } from '../chunk-O6EI77LD.js';
2
- export { createWebSocketTransport } from '../chunk-YDMGV72W.js';
1
+ export { createDirectTransportPair } from '../chunk-IIZ6HL2L.js';
2
+ export { createWebSocketTransport } from '../chunk-F3WKIRAU.js';
3
3
  //# sourceMappingURL=index.js.map
4
4
  //# sourceMappingURL=index.js.map
@@ -1,20 +1,28 @@
1
- import { OUIObservationUpdate, OUISurface } from './spec/index.cjs';
1
+ import { OUIActionRequest, OUIActionResult, OUIObservationUpdate, OUISurface } from './spec/index.cjs';
2
2
 
3
3
  /**
4
4
  * OUI Transport — the wire protocol between agent runtime and surfaces.
5
5
  *
6
- * Two one-way channels:
7
- * - Dispatch channel (server → client): sends action instructions
8
- * - Observation channel (client → server): pushes state updates
6
+ * - Dispatch (runtime → client): an `OUIActionRequest`, carrying a `requestId`.
7
+ * - Result (client → runtime): the `OUIActionResult` for that `requestId`.
8
+ * - Observations (client → runtime): state updates pushed as they happen.
9
+ * - Surface lifecycle (client → runtime): registration, for runtimes that keep
10
+ * a server-side registry. A runtime can instead take the client's snapshot.
9
11
  *
10
- * NO request/response. NO correlation IDs. NO waiting.
11
- * The Lambda dispatches and terminates. The browser processes and pushes state.
12
+ * Every dispatch is answered by exactly one result. An earlier version of this
13
+ * transport had no correlation id and no result channel, so an agent could
14
+ * never learn whether its action ran, and was told it succeeded before the
15
+ * client had done anything.
12
16
  */
13
17
  interface OUITransport {
14
- /** Dispatch an action to a surface (one-way, fire-and-forget) */
15
- dispatch(surfaceId: string, actionId: string, params: Record<string, unknown>): void;
16
- /** Receive dispatched actions (surface/client side) */
18
+ /** Send an action request to the client. */
19
+ dispatch(request: OUIActionRequest): void;
20
+ /** Receive action requests (client side). */
17
21
  onAction(handler: OUIActionHandler): () => void;
22
+ /** Answer an action request (client side). */
23
+ sendResult(result: OUIActionResult): void;
24
+ /** Receive action results (runtime side). */
25
+ onResult(handler: OUIResultHandler): () => void;
18
26
  /** Push an observation update from the surface to the agent runtime */
19
27
  pushObservation(update: OUIObservationUpdate): void;
20
28
  /** Receive observation updates (runtime/server side) */
@@ -29,11 +37,20 @@ interface OUITransport {
29
37
  onSurfaceDeregister(handler: (surfaceId: string) => void): () => void;
30
38
  readonly connected: boolean;
31
39
  connect(): Promise<void>;
40
+ /** Disconnect the underlying socket. The integrator owns the socket: prefer `dispose`. */
32
41
  disconnect(): void;
33
42
  onConnectionChange(handler: (connected: boolean) => void): () => void;
43
+ /**
44
+ * Detach every listener this transport attached to its socket, and leave the
45
+ * socket connected. A socket outlives the transports built on it; without
46
+ * this, each one leaked its connection listeners onto the shared socket.
47
+ */
48
+ dispose(): void;
34
49
  }
35
- /** Handler for incoming action dispatches (client side) */
36
- type OUIActionHandler = (surfaceId: string, actionId: string, params: Record<string, unknown>) => void;
50
+ /** Handler for incoming action requests (client side) */
51
+ type OUIActionHandler = (request: OUIActionRequest) => void;
52
+ /** Handler for incoming action results (runtime side) */
53
+ type OUIResultHandler = (result: OUIActionResult) => void;
37
54
  /** Handler for incoming observation updates (server side) */
38
55
  type OUIObservationHandler = (update: OUIObservationUpdate) => void;
39
56
  /**
@@ -44,7 +61,7 @@ interface OUITransportConfig {
44
61
  namespace?: string;
45
62
  /** Connection timeout in ms */
46
63
  connectTimeoutMs?: number;
47
- /** Whether to buffer dispatches while disconnected */
64
+ /** Whether to buffer outbound messages while disconnected */
48
65
  bufferWhileDisconnected?: boolean;
49
66
  /** Max buffer size (messages dropped after this) */
50
67
  maxBufferSize?: number;
@@ -54,11 +71,12 @@ interface OUITransportConfig {
54
71
  * WebSocket transport using Socket.IO.
55
72
  * Maps OUI protocol events to socket events with a configurable namespace prefix.
56
73
  *
57
- * Events emitted:
58
- * {ns}:dispatch — action dispatch (server → client)
59
- * {ns}:observation — observation update (client → server)
60
- * {ns}:surface:register — surface registration (client → server)
61
- * {ns}:surface:deregister — surface deregistration (client → server)
74
+ * Events:
75
+ * {ns}:dispatch — action request (runtime → client)
76
+ * {ns}:action:result — action result (client → runtime)
77
+ * {ns}:observation — observation (client → runtime)
78
+ * {ns}:surface:register — registration (client → runtime)
79
+ * {ns}:surface:deregister — deregistration (client → runtime)
62
80
  */
63
81
  declare function createWebSocketTransport(socket: SocketLike, config?: OUITransportConfig): OUITransport;
64
82
  /**
@@ -75,4 +93,4 @@ interface SocketLike {
75
93
  disconnect?(): void;
76
94
  }
77
95
 
78
- export { type OUIActionHandler as O, type SocketLike as S, type OUIObservationHandler as a, type OUITransport as b, type OUITransportConfig as c, createWebSocketTransport as d };
96
+ export { type OUIActionHandler as O, type SocketLike as S, type OUIObservationHandler as a, type OUIResultHandler as b, type OUITransport as c, type OUITransportConfig as d, createWebSocketTransport as e };
@@ -1,20 +1,28 @@
1
- import { OUIObservationUpdate, OUISurface } from './spec/index.js';
1
+ import { OUIActionRequest, OUIActionResult, OUIObservationUpdate, OUISurface } from './spec/index.js';
2
2
 
3
3
  /**
4
4
  * OUI Transport — the wire protocol between agent runtime and surfaces.
5
5
  *
6
- * Two one-way channels:
7
- * - Dispatch channel (server → client): sends action instructions
8
- * - Observation channel (client → server): pushes state updates
6
+ * - Dispatch (runtime → client): an `OUIActionRequest`, carrying a `requestId`.
7
+ * - Result (client → runtime): the `OUIActionResult` for that `requestId`.
8
+ * - Observations (client → runtime): state updates pushed as they happen.
9
+ * - Surface lifecycle (client → runtime): registration, for runtimes that keep
10
+ * a server-side registry. A runtime can instead take the client's snapshot.
9
11
  *
10
- * NO request/response. NO correlation IDs. NO waiting.
11
- * The Lambda dispatches and terminates. The browser processes and pushes state.
12
+ * Every dispatch is answered by exactly one result. An earlier version of this
13
+ * transport had no correlation id and no result channel, so an agent could
14
+ * never learn whether its action ran, and was told it succeeded before the
15
+ * client had done anything.
12
16
  */
13
17
  interface OUITransport {
14
- /** Dispatch an action to a surface (one-way, fire-and-forget) */
15
- dispatch(surfaceId: string, actionId: string, params: Record<string, unknown>): void;
16
- /** Receive dispatched actions (surface/client side) */
18
+ /** Send an action request to the client. */
19
+ dispatch(request: OUIActionRequest): void;
20
+ /** Receive action requests (client side). */
17
21
  onAction(handler: OUIActionHandler): () => void;
22
+ /** Answer an action request (client side). */
23
+ sendResult(result: OUIActionResult): void;
24
+ /** Receive action results (runtime side). */
25
+ onResult(handler: OUIResultHandler): () => void;
18
26
  /** Push an observation update from the surface to the agent runtime */
19
27
  pushObservation(update: OUIObservationUpdate): void;
20
28
  /** Receive observation updates (runtime/server side) */
@@ -29,11 +37,20 @@ interface OUITransport {
29
37
  onSurfaceDeregister(handler: (surfaceId: string) => void): () => void;
30
38
  readonly connected: boolean;
31
39
  connect(): Promise<void>;
40
+ /** Disconnect the underlying socket. The integrator owns the socket: prefer `dispose`. */
32
41
  disconnect(): void;
33
42
  onConnectionChange(handler: (connected: boolean) => void): () => void;
43
+ /**
44
+ * Detach every listener this transport attached to its socket, and leave the
45
+ * socket connected. A socket outlives the transports built on it; without
46
+ * this, each one leaked its connection listeners onto the shared socket.
47
+ */
48
+ dispose(): void;
34
49
  }
35
- /** Handler for incoming action dispatches (client side) */
36
- type OUIActionHandler = (surfaceId: string, actionId: string, params: Record<string, unknown>) => void;
50
+ /** Handler for incoming action requests (client side) */
51
+ type OUIActionHandler = (request: OUIActionRequest) => void;
52
+ /** Handler for incoming action results (runtime side) */
53
+ type OUIResultHandler = (result: OUIActionResult) => void;
37
54
  /** Handler for incoming observation updates (server side) */
38
55
  type OUIObservationHandler = (update: OUIObservationUpdate) => void;
39
56
  /**
@@ -44,7 +61,7 @@ interface OUITransportConfig {
44
61
  namespace?: string;
45
62
  /** Connection timeout in ms */
46
63
  connectTimeoutMs?: number;
47
- /** Whether to buffer dispatches while disconnected */
64
+ /** Whether to buffer outbound messages while disconnected */
48
65
  bufferWhileDisconnected?: boolean;
49
66
  /** Max buffer size (messages dropped after this) */
50
67
  maxBufferSize?: number;
@@ -54,11 +71,12 @@ interface OUITransportConfig {
54
71
  * WebSocket transport using Socket.IO.
55
72
  * Maps OUI protocol events to socket events with a configurable namespace prefix.
56
73
  *
57
- * Events emitted:
58
- * {ns}:dispatch — action dispatch (server → client)
59
- * {ns}:observation — observation update (client → server)
60
- * {ns}:surface:register — surface registration (client → server)
61
- * {ns}:surface:deregister — surface deregistration (client → server)
74
+ * Events:
75
+ * {ns}:dispatch — action request (runtime → client)
76
+ * {ns}:action:result — action result (client → runtime)
77
+ * {ns}:observation — observation (client → runtime)
78
+ * {ns}:surface:register — registration (client → runtime)
79
+ * {ns}:surface:deregister — deregistration (client → runtime)
62
80
  */
63
81
  declare function createWebSocketTransport(socket: SocketLike, config?: OUITransportConfig): OUITransport;
64
82
  /**
@@ -75,4 +93,4 @@ interface SocketLike {
75
93
  disconnect?(): void;
76
94
  }
77
95
 
78
- export { type OUIActionHandler as O, type SocketLike as S, type OUIObservationHandler as a, type OUITransport as b, type OUITransportConfig as c, createWebSocketTransport as d };
96
+ export { type OUIActionHandler as O, type SocketLike as S, type OUIObservationHandler as a, type OUIResultHandler as b, type OUITransport as c, type OUITransportConfig as d, createWebSocketTransport as e };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oui-spec",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "OUI — The OpenUI Specification. A machine-readable contract for agent-controllable user interfaces.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -86,14 +86,18 @@
86
86
  }
87
87
  },
88
88
  "devDependencies": {
89
+ "@testing-library/react": "^16.3.3",
89
90
  "@types/react": "^19.0.0",
91
+ "@types/react-dom": "^19.3.0",
90
92
  "@typescript-eslint/eslint-plugin": "^8.0.0",
91
93
  "@typescript-eslint/parser": "^8.0.0",
92
94
  "eslint": "^9.0.0",
93
95
  "husky": "^9.1.7",
96
+ "jsdom": "^26.1.0",
94
97
  "lint-staged": "^16.4.0",
95
98
  "prettier": "^3.9.6",
96
99
  "react": "^19.0.0",
100
+ "react-dom": "^19.3.0",
97
101
  "tsup": "^8.4.0",
98
102
  "typescript": "^5.8.0",
99
103
  "vitest": "^3.0.0"