@nivaro/react 0.2.39 → 0.2.41
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/dist/index.d.ts +37 -3
- package/dist/index.js +39351 -39130
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1190,6 +1190,29 @@ export declare function ChatRoomList({ rooms, onOpen, onNewGroup, archivedView,
|
|
|
1190
1190
|
loading?: boolean;
|
|
1191
1191
|
}): JSX.Element;
|
|
1192
1192
|
|
|
1193
|
+
/** One registered entity-room type, as `GET /chat/room-types` lists it. */
|
|
1194
|
+
declare interface ChatRoomTypeRow {
|
|
1195
|
+
id?: number;
|
|
1196
|
+
prefix: string;
|
|
1197
|
+
collection: string;
|
|
1198
|
+
match_field: string;
|
|
1199
|
+
is_active: boolean;
|
|
1200
|
+
label?: string | null;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
/**
|
|
1204
|
+
* THE room-type registry read — the ACTIVE types, one cache entry for every
|
|
1205
|
+
* reader (record links in text, the composer's # picker, room cards, the
|
|
1206
|
+
* record header's chat button). Readers that each wrote their own queryFn —
|
|
1207
|
+
* one under its own key — fetched the list twice per record page. Hosts
|
|
1208
|
+
* reading the registry themselves should use this too (efp-new's tab strip).
|
|
1209
|
+
*/
|
|
1210
|
+
export declare function chatRoomTypesQuery(client: Pick<NivaroClient, 'request'>): {
|
|
1211
|
+
queryKey: readonly ["nvr-chat-room-types"];
|
|
1212
|
+
queryFn: () => Promise<ChatRoomTypeRow[]>;
|
|
1213
|
+
staleTime: number;
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1193
1216
|
export declare function ChatRoomView({ room, label: labelProp, onBack, onOpenSettings, renderMessageBody, initialUnread, anchor: anchorProp, openThread }: {
|
|
1194
1217
|
room: string;
|
|
1195
1218
|
label: string;
|
|
@@ -1437,6 +1460,12 @@ declare interface CoalescingOptions {
|
|
|
1437
1460
|
* error they would have seen without batching. Writes never batch.
|
|
1438
1461
|
*/
|
|
1439
1462
|
batchReads?: boolean;
|
|
1463
|
+
/**
|
|
1464
|
+
* Collection metadata reads (`GET /collections/<name>`) asked for within
|
|
1465
|
+
* ~10 ms ride one `GET /collections?names=`. On by default; an older server
|
|
1466
|
+
* without the batch is detected and the loader steps aside. `false` opts out.
|
|
1467
|
+
*/
|
|
1468
|
+
batchCollections?: boolean;
|
|
1440
1469
|
}
|
|
1441
1470
|
|
|
1442
1471
|
/** @deprecated Column model changed to plain field keys — kept for source
|
|
@@ -2631,6 +2660,9 @@ export declare interface ForceReloadDetail {
|
|
|
2631
2660
|
message?: string;
|
|
2632
2661
|
}
|
|
2633
2662
|
|
|
2663
|
+
/** Drop every settled metadata answer (call after a configuration write made outside the SDK client). */
|
|
2664
|
+
export declare function forgetSettledReads(): void;
|
|
2665
|
+
|
|
2634
2666
|
export declare function formatDate(date: string | Date, opts?: Intl.DateTimeFormatOptions): string;
|
|
2635
2667
|
|
|
2636
2668
|
export declare function formatDateTime(date: string | Date): string;
|
|
@@ -9152,9 +9184,11 @@ export declare function useQuickPickerSteps(collection: string | null | undefine
|
|
|
9152
9184
|
|
|
9153
9185
|
/**
|
|
9154
9186
|
* Real profile photo (Microsoft Graph, captured at login) with the caller's
|
|
9155
|
-
* initials disc as the fallback. The photo
|
|
9156
|
-
*
|
|
9157
|
-
*
|
|
9187
|
+
* initials disc as the fallback. The photo is a small data URI on the
|
|
9188
|
+
* person's card, read through the batched card loader (lib/user-cards) — so
|
|
9189
|
+
* a list of twenty people costs one request, and react-query keeps it per
|
|
9190
|
+
* user. Without a Nivaro client (no provider) it falls back to
|
|
9191
|
+
* GET /users/:id/avatar.
|
|
9158
9192
|
*
|
|
9159
9193
|
* The FALLBACK is the caller's own styled disc: every site already has its
|
|
9160
9194
|
* exact colors/ring/size, and this component must never change how a user
|