@ukiahinsure/a2ui-react-adapter 0.1.18 → 0.1.19
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.
|
@@ -142,6 +142,14 @@ interface A2UIRendererActionEvent {
|
|
|
142
142
|
sourceComponentId: string;
|
|
143
143
|
context: Readonly<Record<string, unknown>>;
|
|
144
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* Fields whose values a server update changed on an already-rendered surface
|
|
147
|
+
* (the agent filled or corrected them). Values themselves are never exposed.
|
|
148
|
+
*/
|
|
149
|
+
interface A2UIFieldUpdateEvent {
|
|
150
|
+
surfaceId: string;
|
|
151
|
+
fields: readonly string[];
|
|
152
|
+
}
|
|
145
153
|
type A2UIFieldControl = "text" | "date" | "choice";
|
|
146
154
|
type A2UIFieldValue = string | number | boolean | null;
|
|
147
155
|
/** Safe structural metadata used only for labels, validation, and focus. */
|
|
@@ -173,6 +181,8 @@ interface A2UIClientAdapterOptions {
|
|
|
173
181
|
onAck?: (envelope: Extract<A2UIServerEnvelope, {
|
|
174
182
|
kind: "ack";
|
|
175
183
|
}>) => void;
|
|
184
|
+
/** Server updates that changed field values on a rendered surface. */
|
|
185
|
+
onFieldUpdate?: (event: A2UIFieldUpdateEvent) => void;
|
|
176
186
|
}
|
|
177
187
|
declare class A2UIClientAdapter {
|
|
178
188
|
#private;
|
|
@@ -216,6 +226,7 @@ declare class A2UIClientAdapter {
|
|
|
216
226
|
subscribe: (listener: () => void) => (() => void);
|
|
217
227
|
subscribeActions: (listener: (event: A2UIRendererActionEvent) => void) => (() => void);
|
|
218
228
|
subscribeClientErrors: (listener: (event: A2UIClientErrorEvent) => void) => (() => void);
|
|
229
|
+
subscribeFieldUpdates: (listener: (event: A2UIFieldUpdateEvent) => void) => (() => void);
|
|
219
230
|
/** Monotonic change counter for `useSyncExternalStore`. */
|
|
220
231
|
getVersion: () => number;
|
|
221
232
|
dispose(): void;
|
|
@@ -352,4 +363,4 @@ declare class A2UISessionController {
|
|
|
352
363
|
stop(): void;
|
|
353
364
|
}
|
|
354
365
|
|
|
355
|
-
export { A2UIClientAdapter as A, type
|
|
366
|
+
export { A2UIClientAdapter as A, type A2UITabDescriptor as B, type A2UITrustedServerParticipant as C, A2UI_CAPABILITIES_TOPIC as D, A2UI_CLIENT_TOPIC as E, A2UI_PROTOCOL_VERSION as F, A2UI_SERVER_TOPIC as G, type AckEnvelope as H, type AckFieldError as I, type AdapterSurface as J, CLIENT_ACTIONS as K, CLIENT_ERROR_CODES as L, type ClientAction as M, type ClientErrorCode as N, ENVELOPE_VERSION as O, MAX_ENVELOPE_BYTES as P, type ParticipantRole as Q, type SnapshotEnvelope as R, type SectionNavigation as S, type SurfaceUpdateEnvelope as T, type A2UISurfaceMetadata as a, A2UISessionController as b, type A2UIRoomLike as c, type A2UIActionDeliveryStatus as d, type A2UIActionResult as e, type A2UIActionState as f, type A2UICapabilityEnvelope as g, type A2UIClientActionEnvelope as h, type A2UIClientAdapterOptions as i, type A2UIClientErrorEnvelope as j, type A2UIClientErrorEvent as k, type A2UIEditingSnapshot as l, type A2UIFieldControl as m, type A2UIFieldDescriptor as n, type A2UIFieldInteractionField as o, type A2UIFieldInteractionGroup as p, type A2UIFieldUpdateEvent as q, type A2UIFieldValue as r, type A2UIPendingAction as s, type A2UIRendererActionEvent as t, type A2UIServerEnvelope as u, type A2UISessionControllerOptions as v, type A2UISessionSnapshot as w, type A2UISessionStatus as x, type A2UIStreamParticipant as y, type A2UISurfaceStructure as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ukiahinsure/a2ui-react-adapter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"description": "Reusable MedAid A2UI client adapter: LiveKit envelope handling and official A2UI v0.9.1 React rendering behind a clean public API.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|