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