fluentui-extended 2026.8.53 → 2026.8.60

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 ADDED
@@ -0,0 +1,194 @@
1
+ # Changelog
2
+
3
+ > Version format: `YYYY.M.DD` (e.g., `2026.8.30` = August 30, 2026)
4
+
5
+ ## Unreleased
6
+
7
+ - ✨ **[ParentPortal](README.md#parentportal)** — new component that renders Fluent UI content in the
8
+ parent document, escaping iframe boundaries with full Griffel styling and theme token sync. Designed
9
+ for Dynamics 365 web resources where dialogs must float above the D365 page without causing iframe
10
+ resize or scrollbars.
11
+ - ✨ **[CommandBar tooltips](README.md#tooltips)** — commands take Fluent tooltips in three forms:
12
+ `title` for a plain line, `title` + `description` for the Fluent 2 rich tooltip, and `tooltip` for
13
+ a fully custom element. `description` accepts markup, so it can carry its own emphasis.
14
+ - 🐛 A tooltip on a command with a visible label now appears on hover. Previously tooltips were
15
+ rendered only for icon-only commands, so `title` on a labelled command did nothing.
16
+ - 🐛 Fixed tooltips on commands with `subItems`. The tooltip wrapped the `Menu` rather than the
17
+ button inside it, so the ref and hover handlers landed on a component that could not use them and
18
+ the tooltip never opened.
19
+ - ♿ The tooltip's `relationship` is now derived from whether the command has a visible label:
20
+ `label` for icon-only commands, `description` otherwise, so a labelled command no longer risks
21
+ announcing its explanation in place of its name.
22
+ - 📝 Release history moved out of the README into this file. The README had grown past the ~64KB
23
+ cap npm applies to the readme shown on the package page, so it was being truncated mid-sentence
24
+ and the page rendered without it.
25
+
26
+ Seven new Dynamics 365 components, plus the shared Web API client they sit on.
27
+
28
+ - ✨ **[SystemUserPersona](README.md#systemuserpersona)** — a `systemuser` persona with the contact card a
29
+ persona shows on a model-driven form. Loads lazily on hover intent; the record photo is addressed
30
+ by URL rather than selected inline, since `entityimage` is binary and bloats every response.
31
+ - ✨ **[OwnerLookup](README.md#ownerlookup)** — a preconfigured `Lookup` for `ownerid`, which is polymorphic:
32
+ an owner is a systemuser *or* a team. Both are searched in parallel, results render as personas or
33
+ team glyphs, selections show as the usual Lookup badges, and multi-select comes from Lookup.
34
+ - ✨ **[Lookup hover cards](README.md#hover-cards)** — `showHoverCard` adds a lazy record card to the dropdown
35
+ rows, the resolved badge, or both. Supply `hoverCardColumns` to have it fetched from the Web API,
36
+ or `renderHoverCard` to build the body yourself. Nothing loads until a pointer settles.
37
+ - 🔧 **[Generated documentation screenshots](README.md#documentation-screenshots).** `npm run shots` captures
38
+ each component in isolation via `?shot=<id>`, populated from fixtures rather than a live org.
39
+ - ✨ `open` on `OptionSetField` and `RecordHoverCard` for rendering an expanded state without
40
+ driving a pointer — used by the captures, and useful in tests.
41
+
42
+ - 💄 **`filled-darker` is now the default appearance** across every field component — Lookup,
43
+ QueryBuilder, DateTimeField and OptionSetField — matching native Dynamics 365. Fluent's default is
44
+ `outline`. **Breaking for anyone relying on the previous outline look**; pass
45
+ `appearance="outline"` to restore it. See [Appearance](README.md#appearance).
46
+ - 💄 **Resolved lookups now render like Dynamics at rest**: table icon or entity image, the record
47
+ name as a link, and a magnifier in place of the chevron. New `entityIcon`, `entityImage`,
48
+ `recordLinkAppearance` and `onRecordClick` props.
49
+ - 🐛 **Attribute metadata requests failed against live environments.** `Format` was included in the
50
+ `$select` against the base `Attributes` collection, but it is declared on derived types — Dynamics
51
+ rejects the whole request with *"Could not find a property named 'Format' on type
52
+ 'Microsoft.Dynamics.CRM.AttributeMetadata'"*. `Format` and `DateTimeBehavior` are now fetched
53
+ through cast segments and merged in, which also means `DateTimeField`'s metadata auto-load works
54
+ (it could never have resolved a behavior before).
55
+
56
+ - ✨ **[CommandBar](README.md#commandbar)** — commands that no longer fit collapse into a "More commands" menu
57
+ instead of wrapping or being clipped. Widths are measured from the DOM rather than estimated.
58
+ - ✨ **[EntityGrid](README.md#entitygrid)** — a subgrid with columns named from entity metadata, server-side
59
+ paging via `Prefer: odata.maxpagesize` and `@odata.nextLink`, server-side sorting, and lookups
60
+ rendered from their formatted-value annotations rather than as GUIDs.
61
+ - ✨ **[DateTimeField](README.md#datetimefield)** — respects the attribute's `DateTimeBehavior`, so `DateOnly`
62
+ and `TimeZoneIndependent` values never pass through UTC and cannot drift a day.
63
+ - ✨ **[OptionSetField](README.md#optionsetfield)** — optionset and multi-select picklist field that reads
64
+ global option sets as well as local ones, and round-trips multi-selects as the comma-separated
65
+ string Dynamics stores.
66
+ - ✨ **[RecordHoverCard](README.md#recordhovercard)** — lazy record loading gated on hover intent, so dragging
67
+ a pointer across a grid column does not fire a request per row.
68
+ - ✨ **[Web API client](README.md#web-api-client)** — one client with a process-wide metadata cache shared by
69
+ the new components. Promises are cached rather than values, so components mounting in the same tick
70
+ share a round trip; failures are not cached. Lookup and QueryBuilder are not yet migrated onto it.
71
+ - 🔧 Test harness split into one tab per component.
72
+
73
+ ## 2026.8.40
74
+
75
+ QueryBuilder layout and query options.
76
+
77
+ - 🐛 **Toolbar was crushed when the query grew.** In a height-constrained parent the header and
78
+ toolbar were the only flex items able to shrink, so they were compressed and clipped instead of
79
+ the filter list scrolling. Header and toolbar are now pinned, and the filter groups plus previews
80
+ scroll together as one region. See [Layout and Scrolling](README.md#layout-and-scrolling).
81
+ - ✨ **Root `<fetch>` query options.** Generated FetchXML now carries `mapping`, `no-lock` and
82
+ `distinct`, matching what the Dynamics advanced-find editor emits. `distinct` defaults to `true`.
83
+ New `distinct`, `noLock` and `top` props override per instance, and options on an imported query
84
+ are preserved through a serialize round-trip rather than silently dropped.
85
+ - ✨ Preview cards grow to fit their content instead of scrolling internally.
86
+ - 💄 Component header now reads "Query Builder: {entity}" rather than "Edit filters: {entity}".
87
+ - 🔧 Test harness split into **Lookup** and **Query Builder** tabs.
88
+
89
+ ## 2026.8.36
90
+
91
+ QueryBuilder field-type and FetchXML correctness pass.
92
+
93
+ - 🐛 **Every field resolved as `string`.** `dataTypeFromAttribute` compared `AttributeTypeName.Value`
94
+ (which is suffixed — `MoneyType`, `PicklistType`, `BooleanType`) against unsuffixed names, so only
95
+ lookups were typed correctly. Money fields offered "Contains", optionsets rendered a text box, and
96
+ booleans never reached their branch.
97
+ - 🐛 **Optionset and boolean options were never loaded** for main-entity fields. The component's field
98
+ loader fetched attributes and lookup targets but no option metadata.
99
+ - 🐛 **Global option sets returned no options** — only `OptionSet` was expanded, never `GlobalOptionSet`.
100
+ - 🐛 **Boolean fields** now use their Dynamics labels ("Allowed" / "Not Allowed") instead of hardcoded
101
+ Yes/No, and match on truthiness so a saved `value="1"` no longer displays as "No".
102
+ - 🐛 **"Does Not Contain" produced invalid FetchXML** (`operator="not-contain"`, which does not exist).
103
+ Now serialized as `not-like` with `%` wildcards.
104
+ - 🐛 **Date picker shifted the day** in UTC+ timezones — `toISOString()` converted local midnight to
105
+ the previous UTC day.
106
+ - 🐛 **`IsValidForAdvancedFind` was never requested**, so the filter meant to hide non-filterable
107
+ attributes did nothing.
108
+ - 🐛 **"Has Value" left the value box enabled**; no-value operators now disable it correctly.
109
+ - 🐛 **"Last X Days" rendered a date picker** instead of a number input.
110
+ - 🐛 **`not-between` and fiscal period-and-year operators had no second value input.**
111
+ - 🐛 **`link-entity` guessed `from="<entity>id"`**, which is wrong for activity entities
112
+ (`email`, `task`, `appointment` all use `activityid`). Now uses `PrimaryIdAttribute`.
113
+ - 🐛 **Invalid OData output.** Untranslatable operators were emitted as a `/* comment */` in the filter
114
+ string; nested related-entity conditions were silently coerced to `eq`. Both are now omitted.
115
+ - ✨ **Edit FetchXML** toolbar button — opens the current query as editable FetchXML to tweak or paste
116
+ over (`showEditFetchXmlButton`).
117
+ - ✨ **Show/Hide OData and FetchXML** toolbar toggles (`showPreviewToggleButtons`).
118
+ - ✨ `QueryBuilderApplyResult.odataUnsupported` reports conditions OData cannot express, surfaced as a
119
+ warning in the OData preview. New `isOperatorConvertibleToOData` helper.
120
+ - ✨ Option metadata is fetched once per attribute type rather than once per field.
121
+ - 💄 Softer, more rounded containers matching other Dynamics surfaces.
122
+ - ⚠️ **Breaking:** `odataUnsupported` is a required field on `QueryBuilderApplyResult`. Consumers only
123
+ reading the result are unaffected; anyone constructing the type will need to add it.
124
+
125
+ ## 2026.8.30
126
+
127
+ - ✨ Added multi-entity filter pattern with drill-down header ("← All" back button) in test harness
128
+ - ✨ Added "Details Only (No Secondary Text)" example to test harness
129
+ - ✨ Support for React elements in `secondaryText` and `details[].value` (Badges, icons, styled text)
130
+ - ♻️ Improved `aria-selected`/`aria-disabled` attribute handling
131
+ - 📝 Documentation overhaul with complete API reference and examples
132
+
133
+ ## 2026.6.12
134
+
135
+ - ✨ Added React 19 support to peerDependencies
136
+ - 📝 Updated README with cross-document support documentation
137
+
138
+ ## 2026.2.19
139
+
140
+ - 🐛 Fixed cross-document dismiss in Dynamics 365 iframes using `ownerDocument`
141
+
142
+ ## 2026.2.17
143
+
144
+ - 🐛 Removed `requestAnimationFrame` — handler registers immediately
145
+ - 🐛 Switched to capture phase for dismiss handler to prevent D365 DOM interference
146
+
147
+ ## 2026.2.15
148
+
149
+ - ✨ Added controlled `open` and `onOpenChange` props for programmatic dropdown control
150
+ - 🐛 Removed `requestAnimationFrame` from dismiss handler
151
+
152
+ ## 2026.2.13
153
+
154
+ - ♻️ Rebuilt popup from scratch using custom element (Fluent UI Popover had unexpected behavior)
155
+
156
+ ## 2026.2.11
157
+
158
+ - 🐛 Added `onOpenChange` callback to sync internal state with Popover dismiss events (outside click, Escape, focus loss)
159
+
160
+ ## 2026.2.10
161
+
162
+ - 🐛 Fixed Lookup not allowing space character in search input
163
+
164
+ ## 2026.2.8
165
+
166
+ - ✨ **QueryBuilder**: Native API integration for field metadata
167
+ - ✨ **QueryBuilder**: Lookup field support with related entity validation
168
+
169
+ ## 2026.2.7
170
+
171
+ - ♻️ Removed `Xrm` global dependency — now uses native `/api/data/v9.2/` fetch calls
172
+
173
+ ## 2026.2.6
174
+
175
+ - ♻️ **QueryBuilder**: Refactored to reuse shared components and styles
176
+
177
+ ## 2026.2.5
178
+
179
+ - ✨ **QueryBuilder**: Initial release (beta) — Advanced Find-style query builder
180
+ - ♻️ **Lookup**: Changed from options-only to popup-based rendering
181
+
182
+ ## 2026.2.3
183
+
184
+ - ✨ Added `id` prop — auto-generated if not provided
185
+
186
+ ## 2026.2.2
187
+
188
+ - 🐛 Fixed classic JSX transform for React 16 compatibility
189
+ - ✨ Added React 16.8+ support
190
+
191
+ ## 2026.2.1
192
+
193
+ - 🎉 Initial release
194
+ - ✨ Lookup component with async search, expandable details, header/footer