@object-ui/plugin-detail 4.3.0 → 4.5.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 +66 -0
- package/dist/index.js +2791 -2252
- package/dist/index.umd.cjs +3 -3
- package/dist/packages/plugin-detail/src/DetailView.d.ts.map +1 -1
- package/dist/packages/plugin-detail/src/HistoryTimeline.d.ts +30 -0
- package/dist/packages/plugin-detail/src/HistoryTimeline.d.ts.map +1 -0
- package/dist/packages/plugin-detail/src/RecordActivityTimeline.d.ts +4 -0
- package/dist/packages/plugin-detail/src/RecordActivityTimeline.d.ts.map +1 -1
- package/dist/packages/plugin-detail/src/RecordChatterPanel.d.ts.map +1 -1
- package/dist/packages/plugin-detail/src/RelatedList.d.ts.map +1 -1
- package/dist/packages/plugin-detail/src/index.d.ts +10 -0
- package/dist/packages/plugin-detail/src/index.d.ts.map +1 -1
- package/dist/packages/plugin-detail/src/renderers/record-activity.d.ts +10 -0
- package/dist/packages/plugin-detail/src/renderers/record-activity.d.ts.map +1 -0
- package/dist/packages/plugin-detail/src/renderers/record-chatter.d.ts +10 -0
- package/dist/packages/plugin-detail/src/renderers/record-chatter.d.ts.map +1 -0
- package/dist/packages/plugin-detail/src/renderers/record-details.d.ts +10 -0
- package/dist/packages/plugin-detail/src/renderers/record-details.d.ts.map +1 -0
- package/dist/packages/plugin-detail/src/renderers/record-highlights.d.ts +10 -0
- package/dist/packages/plugin-detail/src/renderers/record-highlights.d.ts.map +1 -0
- package/dist/packages/plugin-detail/src/renderers/record-path.d.ts +10 -0
- package/dist/packages/plugin-detail/src/renderers/record-path.d.ts.map +1 -0
- package/dist/packages/plugin-detail/src/renderers/record-quick-actions.d.ts +22 -0
- package/dist/packages/plugin-detail/src/renderers/record-quick-actions.d.ts.map +1 -0
- package/dist/packages/plugin-detail/src/renderers/record-related-list.d.ts +10 -0
- package/dist/packages/plugin-detail/src/renderers/record-related-list.d.ts.map +1 -0
- package/dist/packages/plugin-detail/src/useDetailTranslation.d.ts.map +1 -1
- package/package.json +12 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,71 @@
|
|
|
1
1
|
# @object-ui/plugin-detail
|
|
2
2
|
|
|
3
|
+
## 4.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ab5e281: `record:highlights` renderer normalizes rich field items.
|
|
8
|
+
|
|
9
|
+
`RecordHighlightsComponentProps.fields` is now `Array<string | { name, label?, icon?, type? }>`. The renderer normalizes both forms before passing to `HeaderHighlight`, so schemas can attach per-instance label/icon overrides without editing the underlying object metadata. FLS and `redactFields` still apply on the normalized list.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- d714e85: Lookup display-name resolution now falls back through a Salesforce-style chain
|
|
14
|
+
when an `$expand`'d reference object lacks a top-level `name`/`label`/
|
|
15
|
+
`display_name`/`title` field:
|
|
16
|
+
1. Standard display fields (existing behaviour)
|
|
17
|
+
2. `salutation first_name last_name` composite — handles person records that
|
|
18
|
+
only carry first/last name parts
|
|
19
|
+
3. `email` — last-resort identifier, beats the opaque id
|
|
20
|
+
|
|
21
|
+
Applies to `LookupCellRenderer`, `PageHeader.subtitle` interpolation,
|
|
22
|
+
`DetailView` page-mode `titleFormat`, and the shared `formatRecordTitle`
|
|
23
|
+
utility. Concretely: a Contact reference with `first_name: Bob`, `last_name:
|
|
24
|
+
Lin` and no `name` field now renders as `Bob Lin` everywhere — instead of
|
|
25
|
+
the email or [object Object] fallback.
|
|
26
|
+
|
|
27
|
+
## 4.4.0
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- 67dabe1: feat(page-header): first-class `actions` property on page:header
|
|
32
|
+
|
|
33
|
+
PageHeader now accepts an `actions: ActionDef[]` (or string[]) property
|
|
34
|
+
and renders the toolbar inline in the header's right-aligned action slot.
|
|
35
|
+
Removes the need for authors to declare a sibling `record:quick_actions`
|
|
36
|
+
node and the `-mt-12` visual offset hack to pair the toolbar with the
|
|
37
|
+
title. The hack still applies for legacy schemas using the sibling form
|
|
38
|
+
(via location:'record_header'); the new in-header rendering opts out via
|
|
39
|
+
an `inline: true` flag automatically set by PageHeader.
|
|
40
|
+
|
|
41
|
+
- e33d575: Support dotted paths (e.g. `{account.name}`) in object `titleFormat`. When a
|
|
42
|
+
placeholder resolves to an expanded reference object, automatically extract
|
|
43
|
+
its `name`/`label`/`display_name`/`title` so detail page titles render the
|
|
44
|
+
related record's display name instead of falling through to the object label.
|
|
45
|
+
|
|
46
|
+
## 4.3.1
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- 0d8eb98: feat(detail): Salesforce-style record header + section field grid
|
|
51
|
+
- `page:header` now renders an icon chip (resolves Lucide names via
|
|
52
|
+
`LazyIcon`) plus subtitle, so detail pages can show
|
|
53
|
+
"Name / Company" without an extra component.
|
|
54
|
+
- `record:details` normalises string field entries (`fields: ['email']`)
|
|
55
|
+
into the `{name, label?}` shape expected by `DetailSection`, and maps
|
|
56
|
+
section `label` → `title`. Schemas authored against `@objectstack/spec`
|
|
57
|
+
now produce a real grouped field grid instead of an empty card.
|
|
58
|
+
|
|
59
|
+
- b0bc410: feat(detail): pair quick actions with header, suppress duplicate title chip
|
|
60
|
+
- `record:quick_actions` placed at `record_header` now visually pairs
|
|
61
|
+
with the surrounding `page:header` (Salesforce Lightning placement)
|
|
62
|
+
instead of orphaning into its own row below the title.
|
|
63
|
+
- `record:details` defaults to `showHeader: false` on the inner
|
|
64
|
+
DetailView so embedded record pages no longer render a duplicate
|
|
65
|
+
title chip + star/copy buttons under the page header. The legacy
|
|
66
|
+
standalone DetailView screens are unaffected (showHeader defaults
|
|
67
|
+
to true on that direct path).
|
|
68
|
+
|
|
3
69
|
## 4.3.0
|
|
4
70
|
|
|
5
71
|
## 4.2.1
|