@lotics/ui 5.1.0 → 5.1.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/AGENTS.md +3 -2
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -204,8 +204,9 @@ activeIndex onIndexChange>` (built-in prev/next/ESC/rotate); `onRemove` → drop
|
|
|
204
204
|
media card), and takes `uploading` to dim it with a spinner while the bytes are still going up.
|
|
205
205
|
Never hand-build a drop well, a file row grid, or a preview modal. In a custom-code APP, don't
|
|
206
206
|
hand-roll the upload+preview state either — `@lotics/app-sdk` `useAttachments()` gives the chat's
|
|
207
|
-
instant-preview lifecycle (local object-URL now, `file_id` on complete); map
|
|
208
|
-
|
|
207
|
+
instant-preview lifecycle (local object-URL now, `file_id` on complete); map each `AttachedFile` to a
|
|
208
|
+
`DisplayFile` (snake → camel: `preview_url`→`url`, `mime_type`→`mimeType`) for
|
|
209
|
+
`<FileThumbnail file={…} uploading={f.status === "uploading"} />`.
|
|
209
210
|
|
|
210
211
|
### Quick capture — the SPEED surface
|
|
211
212
|
For fast repeat entry (logging activity, expenses), one compact capture row (a `SegmentedControl`
|