@ai4b-team/fsaos-gateway-sdk 3.33.0 → 3.34.1
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/README.md +24 -0
- package/dist/iife/gateway.js +5 -5
- package/dist/iife/gateway.js.map +4 -4
- package/dist/iife/ui.js +1 -1
- package/dist/index.cjs +3266 -3189
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -1
- package/dist/index.d.ts +27 -1
- package/dist/index.js +3266 -3190
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -200,6 +200,7 @@ reconciles the remaining count. No background polling is used.
|
|
|
200
200
|
| `useChannelMessages(opts)` | Channel messages + bundled cards |
|
|
201
201
|
| `useInfiniteChannelMessages(opts)` | Cursor-paginated messages (live tail) |
|
|
202
202
|
| `useAllChannels()` / `useChannels()` / `useDmChannels()` | Channel lists (all / public / DM) |
|
|
203
|
+
| `usePersonalItemOrder('channel-order' \| 'project-order', items)` | Apply and save the selected Space member's personal order through existing arrangements. |
|
|
203
204
|
| `useNotifications(opts?)` | Notifications feed |
|
|
204
205
|
| `useUnreadCounts(opts?)` | Aggregated unread counts |
|
|
205
206
|
|
|
@@ -295,3 +296,26 @@ This SDK has **zero** references to "kernel" in source, bundle, or type declarat
|
|
|
295
296
|
and use this package as a dependency in your own applications, but you may **not**
|
|
296
297
|
copy, modify, or redistribute it as a standalone library. All rights reserved by
|
|
297
298
|
AI4B Team.
|
|
299
|
+
|
|
300
|
+
### Personal channel and project ordering
|
|
301
|
+
|
|
302
|
+
`usePersonalItemOrder(key, items)` reuses `resolve-arrangement` and the ordinary
|
|
303
|
+
`update` primitive. Supply a complete collection of canonical IDs; render the
|
|
304
|
+
returned `items` and call `reorder(ids)` once at drop. It returns `contextKey`
|
|
305
|
+
for resetting in-progress UI gestures when the Space changes, plus `ready`,
|
|
306
|
+
`supported`, `isLoading`, `isSaving`, `error`, `saveError` and `refetch`.
|
|
307
|
+
|
|
308
|
+
The hook reads only the selected Space member's provisioned `channel-order` or
|
|
309
|
+
`project-order` arrangement. Account mounts are unsupported and make no requests.
|
|
310
|
+
It never creates a missing arrangement or falls back to a shared blueprint.
|
|
311
|
+
Channels without a saved position appear **before** manually ordered channels,
|
|
312
|
+
newest creation first using `Channel.createdAt` from the existing query payload.
|
|
313
|
+
Missing/equal creation times retain source order. With no saved order, this is
|
|
314
|
+
also the channel list's default order. Existing manually placed channels keep
|
|
315
|
+
their relative positions. Arrival/removal performs no arrangement write; the
|
|
316
|
+
next explicit reorder saves the supplied order. Project ordering is unchanged.
|
|
317
|
+
A save preserves unseen IDs, rejects stale Space callbacks and invalid lists,
|
|
318
|
+
and reconciles through the existing coalesced arrangement refresh. No polling,
|
|
319
|
+
item reads or parent changes are involved. For paged collections, apply ordering
|
|
320
|
+
in the backend before pagination; this hook does not discover Project folders
|
|
321
|
+
or provide that paged read contract.
|