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