@object-ui/plugin-designer 6.1.0 → 6.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,102 @@
1
1
  # @object-ui/plugin-designer
2
2
 
3
+ ## 6.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - fe3c1d3: Metadata Admin engine — unified UI for all 27 metadata types.
8
+
9
+ A generic, schema-driven admin shell that replaces the old per-type
10
+ bespoke pages with a single registry-driven engine. Admins can now browse,
11
+ create, override, diff, and roll back every registered metadata type from
12
+ the Setup app → _All Metadata Types_.
13
+
14
+ ### New: `@object-ui/app-shell` views/metadata-admin
15
+ - **`MetadataDirectoryPage`** — auto-grouped tile directory by domain, with
16
+ free-text search, domain chips, and a _Writable only_ filter.
17
+ - **`MetadataResourceListPage` / `MetadataResourceEditPage` / `…CreatePage` / `…HistoryPage`** —
18
+ generic CRUD shell. Uses the new `/meta/types` schema field to render
19
+ SchemaForm; uses `?layers=code,overlay,effective` to power a 3-state diff
20
+ tab; uses `/references` to warn before destructive deletes.
21
+ - **`MetadataQuickFind`** — Cmd+Shift+M palette searching across types and
22
+ items.
23
+ - **`PermissionMatrixEditor`** — Salesforce-style matrix custom editor for
24
+ `type=permission`. Objects × CRUD/VAMA/lifecycle columns with cascade
25
+ rules (viewAllRecords ⟹ allowRead, etc.), expandable per-object field
26
+ R/W subtable, bulk-set (R / CRUD / All / None), filter, _only granted_
27
+ toggle, destructive-change confirmation, profile switch.
28
+ - **`DesignerEditorWrapper`** — generic load–edit–save shell that hosts any
29
+ bespoke designer (`ObjectViewConfigurator`, `DashboardEditor`,
30
+ `PageCanvasEditor`, …). Handles dirty tracking, Save / Reset / Refresh /
31
+ History buttons, and the read-only fallback when `allowOrgOverride` is
32
+ false.
33
+ - **`i18n.ts`** — bilingual (`en-US`, `zh-CN`) bundle for built-in type
34
+ labels, domain labels, and engine UI strings, with `detectLocale()` and a
35
+ `t(key)` helper.
36
+
37
+ ### New routing variant
38
+ - App nav now supports `{ type: 'component', componentRef, params? }` items.
39
+ `AppContent` resolves them through the existing `ComponentRegistry`.
40
+ - Built-in components registered: `metadata:directory`, `metadata:resource`,
41
+ `metadata:object/edit` (FieldsPage), `metadata:permission/edit`
42
+ (PermissionMatrixEditor), and lazy designer wrappers for view / dashboard
43
+ / page.
44
+
45
+ ### Plugin-designer
46
+ - Lazy-exported `ObjectManager`, `FieldDesigner`, `ObjectViewConfigurator`,
47
+ `DashboardEditor`, `PageCanvasEditor`, `MetadataObjectsPage`, and
48
+ `MetadataFieldsPage` so the engine can mount them on demand.
49
+
50
+ The temporary `/dev/meta` route is removed. Setup app navigation flows
51
+ through the new component routes.
52
+
53
+ - ec8dcde: Add visual editing for object & field metadata in the Setup app.
54
+
55
+ **`@object-ui/data-objectstack`** — new `MetadataClient` class. A thin,
56
+ auth-friendly wrapper over the framework's `/api/v1/meta/*` REST
57
+ endpoints (list / get / save / reset / history), with first-class
58
+ support for `If-Match` (optimistic concurrency), `X-Actor` (audit
59
+ attribution), environment-scoped paths
60
+ (`/environments/:id/meta/*`), and 404-as-null semantics. Use
61
+ `new MetadataClient({ baseUrl })` or `client.withEnvironment(id)` to
62
+ target a specific environment.
63
+
64
+ **`@object-ui/plugin-designer`** — two new route-ready pages that
65
+ together close the "Data Model" management loop in the Setup app:
66
+ - `MetadataObjectsPage` — lists every object schema (via
67
+ `MetadataClient.list('object')`), renders the existing
68
+ `ObjectManager`, and persists edits/deletes through PUT/DELETE on
69
+ the metadata REST surface. Honours `allowRuntimeCreate` and
70
+ surfaces server errors verbatim.
71
+ - `MetadataFieldsPage` — for a single object, loads the parent
72
+ schema, projects `fields` into the existing `FieldDesigner`, and
73
+ on save merges the edited field map back into the object before
74
+ issuing a single PUT. Preserves unknown per-field attributes so
75
+ nothing the designer doesn't render is dropped.
76
+
77
+ Both pages take either a pre-built `MetadataClient` or a
78
+ `MetadataClientConfig`; neither imposes a routing convention on the
79
+ host app — they can be mounted anywhere (e.g.
80
+ `/apps/setup/_meta/object` and `/apps/setup/_meta/object/:name/fields`).
81
+
82
+ These additions do not modify the underlying `ObjectManager` /
83
+ `FieldDesigner` components, which remain pure controlled-input
84
+ components usable in non-REST contexts.
85
+
86
+ ### Patch Changes
87
+
88
+ - Updated dependencies [fe3c1d3]
89
+ - Updated dependencies [ec8dcde]
90
+ - @object-ui/data-objectstack@6.2.0
91
+ - @object-ui/plugin-form@6.2.0
92
+ - @object-ui/plugin-grid@6.2.0
93
+ - @object-ui/react@6.2.0
94
+ - @object-ui/components@6.2.0
95
+ - @object-ui/fields@6.2.0
96
+ - @object-ui/types@6.2.0
97
+ - @object-ui/core@6.2.0
98
+ - @object-ui/i18n@6.2.0
99
+
3
100
  ## 6.1.0
4
101
 
5
102
  ### Patch Changes