@nordicsemiconductor/pc-nrfconnect-shared 244.0.0 → 245.0.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 +53 -10
- package/dist/scripts/nordic-publish.js +2 -2
- package/dist/typings/ipc/device.d.ts +1 -1
- package/dist/typings/ipc/device.d.ts.map +1 -1
- package/dist/typings/ipc/schema/packageJson.d.ts +9 -9
- package/dist/typings/src/About/About.d.ts +1 -2
- package/dist/typings/src/About/About.d.ts.map +1 -1
- package/dist/typings/src/About/ApplicationCard.d.ts +4 -1
- package/dist/typings/src/About/ApplicationCard.d.ts.map +1 -1
- package/dist/typings/src/About/DeviceCard.d.ts +4 -1
- package/dist/typings/src/About/DeviceCard.d.ts.map +1 -1
- package/dist/typings/src/About/DocumentationCard.d.ts +5 -3
- package/dist/typings/src/About/DocumentationCard.d.ts.map +1 -1
- package/dist/typings/src/About/SupportCard.d.ts +5 -3
- package/dist/typings/src/About/SupportCard.d.ts.map +1 -1
- package/dist/typings/src/Button/Button.d.ts +5 -9
- package/dist/typings/src/Button/Button.d.ts.map +1 -1
- package/dist/typings/src/Card/Card.d.ts +24 -6
- package/dist/typings/src/Card/Card.d.ts.map +1 -1
- package/dist/typings/src/Device/deviceInfo/deviceInfo.d.ts.map +1 -1
- package/dist/typings/src/utils/packageJson.d.ts +2 -2
- package/ipc/device.ts +1 -0
- package/package.json +3 -3
- package/release_notes.md +34 -2
- package/scripts/nordic-publish.ts +1 -1
- package/src/About/About.tsx +15 -13
- package/src/About/ApplicationCard.tsx +11 -4
- package/src/About/DeviceCard.tsx +18 -6
- package/src/About/DocumentationCard.tsx +12 -7
- package/src/About/SupportCard.tsx +12 -4
- package/src/Button/Button.tsx +17 -16
- package/src/Card/Card.tsx +101 -14
- package/src/Device/deviceInfo/deviceInfo.ts +11 -0
- package/src/utils/useStopwatch.test.tsx +4 -4
- package/src/About/about.scss +0 -40
- package/src/Card/card.module.scss +0 -28
package/Changelog.md
CHANGED
|
@@ -7,8 +7,51 @@ This project does _not_ adhere to
|
|
|
7
7
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
|
|
8
8
|
every new version is a new major version.
|
|
9
9
|
|
|
10
|
+
## 245.0.0 - 2026-04-21
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Added proto-slot components `Card.Header`, `Card.Header.Title`, `Card.Body`.
|
|
15
|
+
- Added support for `className` and `ref` on `Card` and its proto-slot
|
|
16
|
+
components.
|
|
17
|
+
- Added support for `cardTitleClassName` and `cardSubtitleClassName` on
|
|
18
|
+
`Card.Header.Title`
|
|
19
|
+
- nRF54LS05 to the list of the known devices.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- Upgraded `tailwind` to `3.4.14` to allow for use of min/max width and min/max
|
|
24
|
+
height with usual spacing units instead of screen sizes.
|
|
25
|
+
- Refactored `Card` component to remove dependency on bootstrap and to allow for
|
|
26
|
+
more flexibility.
|
|
27
|
+
|
|
28
|
+
### Steps to upgrade when using this package
|
|
29
|
+
|
|
30
|
+
#### Migrating the `Card` component
|
|
31
|
+
|
|
32
|
+
The `title` and `titleButton` are no longer available on `Card`, and the overall
|
|
33
|
+
structure of `Card` changed. Follow this format:
|
|
34
|
+
|
|
35
|
+
```tsx
|
|
36
|
+
import { Card } from '@nordicsemiconductor/pc-nrfconnect-shared';
|
|
37
|
+
|
|
38
|
+
<Card>
|
|
39
|
+
<Card.Header className="tw-flex tw-flex-row tw-justify-between">
|
|
40
|
+
<Card.Header.Title cardTitle="your title here" />
|
|
41
|
+
{ /* your button here */ }
|
|
42
|
+
</Card.Header>
|
|
43
|
+
<Card.Body>
|
|
44
|
+
{ /* your card content here */ }
|
|
45
|
+
</Card.Body>
|
|
46
|
+
</Card>
|
|
47
|
+
```
|
|
48
|
+
|
|
10
49
|
## 244.0.0 - 2026-01-22
|
|
11
50
|
|
|
51
|
+
### Added
|
|
52
|
+
|
|
53
|
+
- Added `primary-outline` variant for `Button`
|
|
54
|
+
|
|
12
55
|
### Changed
|
|
13
56
|
|
|
14
57
|
- Major upgrade of `esbuild` and `esbuild-sass-plugin` which brings along Sass
|
|
@@ -496,7 +539,7 @@ Overrides v202 as it was released a prerelease.
|
|
|
496
539
|
- When publishing the app via FTP (usually in the azure release pipeline), add
|
|
497
540
|
the parameter `--destination ftp` when calling the nordic-publish script.
|
|
498
541
|
- Copy the files `build.yml`, `release.yml`, and `release-latest.yml` from
|
|
499
|
-
https://github.com/
|
|
542
|
+
https://github.com/nordicsemi/pc-nrfconnect-boilerplate/tree/main/.github/workflows
|
|
500
543
|
to `.github/workflows`. If appropriate for an app, customise the list of
|
|
501
544
|
sources to deploy to in `release.yml`.
|
|
502
545
|
|
|
@@ -1153,21 +1196,21 @@ Overrides v202 as it was released a prerelease.
|
|
|
1153
1196
|
|
|
1154
1197
|
### Fixed
|
|
1155
1198
|
|
|
1156
|
-
- `
|
|
1199
|
+
- `useStopwatch` milliseconds was not correctly calculated
|
|
1157
1200
|
- External JLink devices would not connect to apps device list properly if
|
|
1158
1201
|
selected before they are connected to the debug-in heder of the device
|
|
1159
1202
|
|
|
1160
1203
|
### Changed
|
|
1161
1204
|
|
|
1162
|
-
- `
|
|
1205
|
+
- `useStopwatch` reset and start no longer force a rerender if these are a
|
|
1163
1206
|
dependency of a useEffect
|
|
1164
|
-
- `
|
|
1207
|
+
- `useStopwatch` start optional time param no longer default to the last time
|
|
1165
1208
|
when paused but 0.
|
|
1166
1209
|
- `nrfutil device device-info` returns undefined if reading info throws
|
|
1167
1210
|
|
|
1168
1211
|
### Steps to upgrade when using this package
|
|
1169
1212
|
|
|
1170
|
-
- `
|
|
1213
|
+
- `useStopwatch` If start() was used after a pause() with no call to reset()
|
|
1171
1214
|
start need to be called with time i.e. start(time)
|
|
1172
1215
|
|
|
1173
1216
|
## 135.0.0 - 2023-11-29
|
|
@@ -2009,7 +2052,7 @@ The package.json can be changed as follows:
|
|
|
2009
2052
|
- Turn off tree-shaking for tailwind classes during a development build.
|
|
2010
2053
|
- Added .tw-preflight css class to be used when transitioning to tailwind. For
|
|
2011
2054
|
more details:
|
|
2012
|
-
https://github.com/
|
|
2055
|
+
https://github.com/nordicsemi/pc-nrfconnect-shared/blob/main/src/App/preflight.scss
|
|
2013
2056
|
|
|
2014
2057
|
### Changed
|
|
2015
2058
|
|
|
@@ -2627,7 +2670,7 @@ module.exports = {
|
|
|
2627
2670
|
|
|
2628
2671
|
### Added
|
|
2629
2672
|
|
|
2630
|
-
- `
|
|
2673
|
+
- `useStopwatch` hook
|
|
2631
2674
|
|
|
2632
2675
|
### Fix
|
|
2633
2676
|
|
|
@@ -4681,9 +4724,9 @@ module.exports = require('pc-nrfconnect-shared/config/jest.config')();
|
|
|
4681
4724
|
JavaScript to TypeScript: `deviceInfo`. While most is already prepared for
|
|
4682
4725
|
that, the `webpack.config.js` in the launcher still needs two adjustments to
|
|
4683
4726
|
work with this: The lines
|
|
4684
|
-
[39](https://github.com/
|
|
4727
|
+
[39](https://github.com/nordicsemi/pc-nrfconnect-launcher/blob/497c1fde51246e1a4fcbc9efbb595d6764a7e056/webpack.config.js#L39)
|
|
4685
4728
|
and
|
|
4686
|
-
[69](https://github.com/
|
|
4729
|
+
[69](https://github.com/nordicsemi/pc-nrfconnect-launcher/blob/497c1fde51246e1a4fcbc9efbb595d6764a7e056/webpack.config.js#L69)
|
|
4687
4730
|
needs to be changed, so that webpack does not only pick up files with the
|
|
4688
4731
|
ending `.jsx?` but also `.tsx?`. Apps, on the other hand, do not need to be
|
|
4689
4732
|
changed for this.
|
|
@@ -4874,7 +4917,7 @@ module.exports = require('pc-nrfconnect-shared/config/jest.config')();
|
|
|
4874
4917
|
be shown. Add a `@include scrollbars(BACKGROUND-COLOUR);` with an appropriate
|
|
4875
4918
|
replacement for `BACKGROUND-COLOUR` to the fitting selector in the SCSS files.
|
|
4876
4919
|
When searching for `@include scrollbars` you can find
|
|
4877
|
-
[an example for this in the source code of `pc-nrfconnect-shared`](https://github.com/
|
|
4920
|
+
[an example for this in the source code of `pc-nrfconnect-shared`](https://github.com/nordicsemi/pc-nrfconnect-shared/blob/cef186fcc4631d6c737ce4c5d299fef53a0ffcc2/src/Device/DeviceSelector/DeviceList/device-list.scss#L7).
|
|
4878
4921
|
|
|
4879
4922
|
## 4.8.8
|
|
4880
4923
|
|