@ai4b-team/fsaos-gateway-sdk 3.33.0 → 3.34.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.
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,20 @@ 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
+ A save preserves unseen IDs, rejects stale Space callbacks and invalid lists,
312
+ and reconciles through the existing coalesced arrangement refresh. No polling,
313
+ item reads or parent changes are involved. For paged collections, apply ordering
314
+ in the backend before pagination; this hook does not discover Project folders
315
+ or provide that paged read contract.