You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(uploader): deferred uploads on create + grouped listAll view (#3)
* Added ability to use the uploader when creating.
* feat(uploader): deferred uploads for create + grouped `list-all` view
- Allow mounting with model (no id) and queue files during create flow
- Attach queued files after save via `media:attach` event; emit `media-attached`
- `uploadFiles()` queues & flashes when no target; `nextOrder()` derives from queue
- Add `listAll` prop to show **all collections** grouped by collection name, still editable
- Docs: add Tailwind dark-mode snippet, usage examples, events & props updates
- Changelog/README: note new features and behavior; no breaking changes
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
## [Unreleased]
12
12
13
13
### Added
14
-
14
+
-**Deferred uploads on create**: You can now queue files before the target model exists and attach them after save by dispatching the `media:attach` event. The uploader accepts `model="post"` (no `id`) on create screens, holds the queue + per-file meta, and attaches once you dispatch. Emits `media-attached` when done.
15
+
-**`list-all` view**: Set `:list-all="true"` to show **all collections** for the current model in a single list, grouped by collection name. Items remain fully editable (caption/description/order).
16
+
-**Tailwind dark mode docs/snippets**: Added guidance and examples for enabling global light/dark mode with the Tailwind theme.
15
17
16
18
### Changed
19
+
- Graceful “no target yet” behavior on create screens:
20
+
-`nextOrder()` now derives order from the local queue if the model isn’t saved yet.
21
+
-`uploadFiles()`**queues** when there’s no target (instead of erroring) and flashes: _“Files queued. They will be attached after you save.”_
17
22
18
23
### Fixed
19
-
24
+
- N/A
20
25
21
26
---
22
27
## [v0.2.0] — 2025-09-01
@@ -95,5 +100,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
0 commit comments