@object-ui/plugin-view 3.3.2 → 4.0.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/CHANGELOG.md +37 -0
- package/README.md +26 -0
- package/dist/index.js +1081 -650
- package/dist/index.umd.cjs +1 -1
- package/dist/packages/plugin-view/src/ManageViewsDialog.d.ts +27 -0
- package/dist/packages/plugin-view/src/ViewTabBar.d.ts +15 -0
- package/dist/packages/plugin-view/src/config/view-config-schema.d.ts +17 -0
- package/dist/packages/plugin-view/src/index.d.ts +4 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @object-ui/plugin-view
|
|
2
2
|
|
|
3
|
+
## 4.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @object-ui/types@4.0.1
|
|
8
|
+
- @object-ui/core@4.0.1
|
|
9
|
+
- @object-ui/react@4.0.1
|
|
10
|
+
- @object-ui/components@4.0.1
|
|
11
|
+
- @object-ui/plugin-form@4.0.1
|
|
12
|
+
- @object-ui/plugin-grid@4.0.1
|
|
13
|
+
|
|
14
|
+
## 4.0.0
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
- @object-ui/types@4.0.0
|
|
20
|
+
- @object-ui/components@4.0.0
|
|
21
|
+
- @object-ui/core@4.0.0
|
|
22
|
+
- @object-ui/plugin-form@4.0.0
|
|
23
|
+
- @object-ui/plugin-grid@4.0.0
|
|
24
|
+
- @object-ui/react@4.0.0
|
|
25
|
+
|
|
26
|
+
## 3.4.0
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [a2d7023]
|
|
31
|
+
- Updated dependencies [f1ca238]
|
|
32
|
+
- Updated dependencies [de881ef]
|
|
33
|
+
- @object-ui/components@3.4.0
|
|
34
|
+
- @object-ui/plugin-grid@3.4.0
|
|
35
|
+
- @object-ui/types@3.4.0
|
|
36
|
+
- @object-ui/plugin-form@3.4.0
|
|
37
|
+
- @object-ui/core@3.4.0
|
|
38
|
+
- @object-ui/react@3.4.0
|
|
39
|
+
|
|
3
40
|
## 3.3.2
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -367,3 +367,29 @@ const userView: ObjectViewSchema = {
|
|
|
367
367
|
## License
|
|
368
368
|
|
|
369
369
|
MIT — see [LICENSE](./LICENSE).
|
|
370
|
+
|
|
371
|
+
## Multi-view UX
|
|
372
|
+
|
|
373
|
+
In addition to the renderer, the package ships two components that wrap an
|
|
374
|
+
object's set of saved views (Airtable / Notion-style):
|
|
375
|
+
|
|
376
|
+
- **`<ViewTabBar>`** — a horizontal strip of view tabs. Per-tab chevron menu
|
|
377
|
+
exposes rename, pin, duplicate, set default, delete, and "Manage all
|
|
378
|
+
views…". An overflow `… N more` dropdown surfaces the remaining views and
|
|
379
|
+
links to the management dialog. (In-place tab drag is intentionally
|
|
380
|
+
disabled — reordering happens in `<ManageViewsDialog>` to avoid the
|
|
381
|
+
ambiguity of "does dragging the visible tab change the global order or
|
|
382
|
+
just the visible subset?".)
|
|
383
|
+
- **`<ManageViewsDialog>`** — a Shadcn `Dialog` containing a vertical sortable
|
|
384
|
+
list of **every** view (visible + overflow + metadata-defined). Supports
|
|
385
|
+
drag-reorder, search, inline rename, pin / set-default toggles, and a per-row
|
|
386
|
+
`⋯` action menu (rename, duplicate, edit configuration, set default,
|
|
387
|
+
pin/unpin, delete). Open it from the chevron menu's "Manage all views…"
|
|
388
|
+
item or from the header of the overflow `… N more` dropdown.
|
|
389
|
+
|
|
390
|
+
Both components share the same callback surface
|
|
391
|
+
(`onRenameView`, `onDeleteView`, `onReorderViews`, …) so a host like
|
|
392
|
+
`@object-ui/app-shell`'s `ObjectView` wires the same set of handlers into
|
|
393
|
+
both. View ordering is persisted to `localStorage` under
|
|
394
|
+
`viewOrder:{objectName}` and, for backend-saved views, also written back as
|
|
395
|
+
`sortOrder`.
|