Releases: Altinn/app-frontend-react
v4.9.0-preview.1
What's Changed
IMPORTANT: See how to use this preview version in the notes for v4.9.0-preview.0.
New Features 🎉
- Added download option for Link component by @SimenRokaas in #2411
Bugfixes 🐛
- Subforms: Fixing bug causing multiple subforms to always load the first data model
- Subforms: Fixinb bug causing an older/stale version of the main data model to be loaded when exiting the subform
- Add spacing for components rendered in tabs by @Magnusrm in #2417
- Preventing crash if function in ruleHandler is not found by @olemartinorg in #2418
- Avoiding removing stale options for hidden nodes by @olemartinorg in #2419
New Contributors
- @SimenRokaas made their first contribution in #2411
Full Changelog: v4.9.0-preview.0...v4.9.0-preview.1
v4.8.1
What's Changed
Bugfixes 🐛
- Preventing crash if function in ruleHandler is not found by @olemartinorg in #2418
- Avoiding removing stale options for hidden nodes by @olemartinorg in #2419
Full Changelog: v4.8.0...v4.8.1
v4.9.0-preview.0
This preview release includes early previews for new functionality, including support for multiple data models in the same task and support for sub-forms via the new Subform
component.
IMPORTANT: We've released a newer version with bugfixes (v4.9.0-preview.1), prefer to use that instead.
Using this pre-release
In your app, open App/views/Home/Index.cshtml
and change the two lines referring to the frontend version. Make them point to the pre-release:
- <link rel="stylesheet" type="text/css" href="https://altinncdn.no/toolkits/altinn-app-frontend/4/altinn-app-frontend.css">
- <script src="https://altinncdn.no/toolkits/altinn-app-frontend/4/altinn-app-frontend.js"></script>
+ <link rel="stylesheet" type="text/css" href="https://altinncdn.no/toolkits/altinn-app-frontend/4.9.0-preview.1/altinn-app-frontend.css">
+ <script src="https://altinncdn.no/toolkits/altinn-app-frontend/4.9.0-preview.1/altinn-app-frontend.js"></script>
Also change your App.csproj
file to use the latest backend preview release, v8.5.0-preview.1
Support for multiple data models in the same task
In short, this allows you to set up multiple data models, all of which needs to have a taskId
property in applicationmetadata.json
. When multiple data models have been added, you can refer to another data model component configurations by changing the value(s) in dataModelBindings
to point to your data model:
{
"id": "my-component",
"type": "Input",
"dataModelBindings": {
"simpleBinding": {
"dataType": "someDataType",
"field": "Path.Inside.DataModel"
}
}
}
Additionally, if you want to look up values in other data models in dynamic expressions, you can do that by adding a second argument to the dataModel
function. For example, ["dataModel", "Path.Inside.DataModel", "someDataType"]
will look up the path in the someDataType
model instead of the default model.
If the data model binding is not specifying any data model, we use the default model for the current layout-set as configured in layout-sets.json
.
Support for subforms
In order to set up a subform, please refer to the documentation here.
What's missing in this preview
Some functionality is still a work in progress and subject to change, including:
- Better support for automatic PDF generation when including one or more subforms (when referred to in Summary2)
- Making it possible to generate one PDF per subform, including support for naming these files differently per subform
- Proper validation and feedback to the user when attempting to submit the main form while there are validation errors in a subform (subforms can already be validated when using a CustomButton to go back to the main form)
v4.8.0
What's Changed
New Features 🎉
- Feat: External API by @cammiida in #2324
- Feat/2006 custom empty component text by @adamhaeger in #2327
- Add support for showing geometries in Map component by @bjosttveit in #2283
- Feat/2052 repeating group summary 2 by @Magnusrm in #2240
- Add summary2 for List component by @Magnusrm in #2403
Bugfixes 🐛
- Performance: Hierarchy generator rewrite by @olemartinorg in #2244
- not wrapping dropzone in label to prevent unwanted filepicker in complex mode by @adamhaeger in #2328
- Handling self-identifies users in party selection by @olemartinorg in #2336
- Ensures id in labelcontent for correct label and description ids by @cammiida in #2352
- Summary 2 merge and refactor after perfomance by @adamhaeger in #2350
- Preventing data model updates when rounding numbers in Input by @olemartinorg in #2380
- Replacing
useMediaQuery
with custom hook (fixes #2177) by @olemartinorg in #2377 - Minor fixes for RepeatingGroup in non-standard modes by @olemartinorg in #2376
Other Changes
- Updated quirks for fixed duplicate ids in apps by @olemartinorg in #2405
Dependency Upgrades 📦
- fix(deps): update dependency marked to v14 (main) by @renovate in #2294
- chore(deps): update npm non-major dependencies (main) by @renovate in #2330
- chore(deps): update npm non-major dependencies (main) by @renovate in #2365
- chore(deps): update dependency jsdom to v25 (main) by @renovate in #2364
- chore(deps): update npm non-major dependencies (main) by @renovate in #2393
- chore(deps): update dependency eslint-plugin-sonarjs to v2 (main) by @renovate in #2363
Full Changelog: v4.7.0...v4.8.0
v4.8.0-geometrymap.preview2
Preview of Geometry Map functionality.
v4.8.0-performance.preview1
This pre-release can be tested out directly by switching versions via DevTools:
- Open DevTools (either using the icon in the lower right in test environments, or use the keyboard shortcut
Ctrl + K
) - Use the dropdown on the first page of DevTools to switch version, and press the blue button
- The page will reload and this preview version will be active until you close the tab or refresh (it will then revert back to use the version the app is configured to use)
What's Changed
- Performance: Hierarchy generator rewrite by @olemartinorg in #2244
Full Changelog: v4.7.0...v4.8.0-performance.preview1
v4.7.0
What's Changed
New Features 🎉
- Added OpenByDefault property to Accordion 2.0 with test by @walldenfilippa in #2318
- Feature/number component by @paal2707 in #2196
- Feature/text component by @paal2707 in #2171
Bugfixes 🐛
- Grid rows in RepeatingGroup (rowsBefore/rowsAfter) fixes by @olemartinorg in #2313
- Fix summary2 validation message styling by @Magnusrm in #2312
- Fix payment information component not fetching latest data on first render by @Magnusrm in #2307
Full Changelog: v4.6.3...v4.7.0
Hotfixes
What's Changed
Bugfixes 🐛
- Improves AttachmentSummaryComponent2 implementation by @danielskovli in #2264
- fix: quickfix for fileupload window showing when clicking anywhere in the component by @adamhaeger in #2292
- chore: fix broken timestamp in pdf by @adamhaeger in #2303
- Fix inconsistent text styling by @bjosttveit in #2302
Dependency Upgrades 📦
Full Changelog: v4.6.2...v4.6.3
v4.6.2
What's Changed
Bugfixes 🐛
- Grid: Rendering header rows and non-header rows in order by @olemartinorg in #2299
- Logging errors when we see duplicate component IDs by @olemartinorg in #2300
Dependency Upgrades 📦
Full Changelog: v4.6.1...v4.6.2
v4.6.1
What's Changed
Bugfixes 🐛
- Respect
overrideItemProps
inComponentStructureWrapper
by @bjosttveit in #2289
Full Changelog: v4.6.0...v4.6.1