@nordicsemiconductor/pc-nrfconnect-shared 243.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.
Files changed (42) hide show
  1. package/Changelog.md +60 -10
  2. package/README.md +10 -0
  3. package/dist/bootstrap.css +250 -233
  4. package/dist/scripts/nordic-publish.js +4 -4
  5. package/dist/typings/ipc/device.d.ts +1 -1
  6. package/dist/typings/ipc/device.d.ts.map +1 -1
  7. package/dist/typings/ipc/schema/packageJson.d.ts +9 -9
  8. package/dist/typings/scripts/esbuild-renderer.d.ts +4 -3
  9. package/dist/typings/scripts/esbuild-renderer.d.ts.map +1 -1
  10. package/dist/typings/src/About/About.d.ts +1 -2
  11. package/dist/typings/src/About/About.d.ts.map +1 -1
  12. package/dist/typings/src/About/ApplicationCard.d.ts +4 -1
  13. package/dist/typings/src/About/ApplicationCard.d.ts.map +1 -1
  14. package/dist/typings/src/About/DeviceCard.d.ts +4 -1
  15. package/dist/typings/src/About/DeviceCard.d.ts.map +1 -1
  16. package/dist/typings/src/About/DocumentationCard.d.ts +5 -3
  17. package/dist/typings/src/About/DocumentationCard.d.ts.map +1 -1
  18. package/dist/typings/src/About/SupportCard.d.ts +5 -3
  19. package/dist/typings/src/About/SupportCard.d.ts.map +1 -1
  20. package/dist/typings/src/Button/Button.d.ts +5 -9
  21. package/dist/typings/src/Button/Button.d.ts.map +1 -1
  22. package/dist/typings/src/Card/Card.d.ts +24 -6
  23. package/dist/typings/src/Card/Card.d.ts.map +1 -1
  24. package/dist/typings/src/Device/deviceInfo/deviceInfo.d.ts.map +1 -1
  25. package/dist/typings/src/utils/packageJson.d.ts +2 -2
  26. package/ipc/device.ts +1 -0
  27. package/package.json +5 -5
  28. package/release_notes.md +32 -7
  29. package/scripts/esbuild-renderer.ts +5 -3
  30. package/scripts/nordic-publish.ts +1 -1
  31. package/src/About/About.tsx +15 -13
  32. package/src/About/ApplicationCard.tsx +11 -4
  33. package/src/About/DeviceCard.tsx +18 -6
  34. package/src/About/DocumentationCard.tsx +12 -7
  35. package/src/About/SupportCard.tsx +12 -4
  36. package/src/Button/Button.tsx +17 -16
  37. package/src/Card/Card.tsx +101 -14
  38. package/src/Device/deviceInfo/deviceInfo.ts +11 -0
  39. package/src/utils/useStopwatch.test.tsx +4 -4
  40. package/src/variables.scss +20 -18
  41. package/src/About/about.scss +0 -40
  42. package/src/Card/card.module.scss +0 -28
package/Changelog.md CHANGED
@@ -7,6 +7,56 @@ 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
+
49
+ ## 244.0.0 - 2026-01-22
50
+
51
+ ### Added
52
+
53
+ - Added `primary-outline` variant for `Button`
54
+
55
+ ### Changed
56
+
57
+ - Major upgrade of `esbuild` and `esbuild-sass-plugin` which brings along Sass
58
+ updates and deprecations.
59
+
10
60
  ## 243.0.0 - 2026-01-22
11
61
 
12
62
  ### Fixed
@@ -489,7 +539,7 @@ Overrides v202 as it was released a prerelease.
489
539
  - When publishing the app via FTP (usually in the azure release pipeline), add
490
540
  the parameter `--destination ftp` when calling the nordic-publish script.
491
541
  - Copy the files `build.yml`, `release.yml`, and `release-latest.yml` from
492
- https://github.com/NordicSemiconductor/pc-nrfconnect-boilerplate/tree/main/.github/workflows
542
+ https://github.com/nordicsemi/pc-nrfconnect-boilerplate/tree/main/.github/workflows
493
543
  to `.github/workflows`. If appropriate for an app, customise the list of
494
544
  sources to deploy to in `release.yml`.
495
545
 
@@ -1146,21 +1196,21 @@ Overrides v202 as it was released a prerelease.
1146
1196
 
1147
1197
  ### Fixed
1148
1198
 
1149
- - `useStopWatch` milliseconds was not correctly calculated
1199
+ - `useStopwatch` milliseconds was not correctly calculated
1150
1200
  - External JLink devices would not connect to apps device list properly if
1151
1201
  selected before they are connected to the debug-in heder of the device
1152
1202
 
1153
1203
  ### Changed
1154
1204
 
1155
- - `useStopWatch` reset and start no longer force a rerender if these are a
1205
+ - `useStopwatch` reset and start no longer force a rerender if these are a
1156
1206
  dependency of a useEffect
1157
- - `useStopWatch` start optional time param no longer default to the last time
1207
+ - `useStopwatch` start optional time param no longer default to the last time
1158
1208
  when paused but 0.
1159
1209
  - `nrfutil device device-info` returns undefined if reading info throws
1160
1210
 
1161
1211
  ### Steps to upgrade when using this package
1162
1212
 
1163
- - `useStopWatch` If start() was used after a pause() with no call to reset()
1213
+ - `useStopwatch` If start() was used after a pause() with no call to reset()
1164
1214
  start need to be called with time i.e. start(time)
1165
1215
 
1166
1216
  ## 135.0.0 - 2023-11-29
@@ -2002,7 +2052,7 @@ The package.json can be changed as follows:
2002
2052
  - Turn off tree-shaking for tailwind classes during a development build.
2003
2053
  - Added .tw-preflight css class to be used when transitioning to tailwind. For
2004
2054
  more details:
2005
- https://github.com/NordicSemiconductor/pc-nrfconnect-shared/blob/main/src/App/preflight.scss
2055
+ https://github.com/nordicsemi/pc-nrfconnect-shared/blob/main/src/App/preflight.scss
2006
2056
 
2007
2057
  ### Changed
2008
2058
 
@@ -2620,7 +2670,7 @@ module.exports = {
2620
2670
 
2621
2671
  ### Added
2622
2672
 
2623
- - `useStopWatch` hook
2673
+ - `useStopwatch` hook
2624
2674
 
2625
2675
  ### Fix
2626
2676
 
@@ -4674,9 +4724,9 @@ module.exports = require('pc-nrfconnect-shared/config/jest.config')();
4674
4724
  JavaScript to TypeScript: `deviceInfo`. While most is already prepared for
4675
4725
  that, the `webpack.config.js` in the launcher still needs two adjustments to
4676
4726
  work with this: The lines
4677
- [39](https://github.com/NordicSemiconductor/pc-nrfconnect-launcher/blob/497c1fde51246e1a4fcbc9efbb595d6764a7e056/webpack.config.js#L39)
4727
+ [39](https://github.com/nordicsemi/pc-nrfconnect-launcher/blob/497c1fde51246e1a4fcbc9efbb595d6764a7e056/webpack.config.js#L39)
4678
4728
  and
4679
- [69](https://github.com/NordicSemiconductor/pc-nrfconnect-launcher/blob/497c1fde51246e1a4fcbc9efbb595d6764a7e056/webpack.config.js#L69)
4729
+ [69](https://github.com/nordicsemi/pc-nrfconnect-launcher/blob/497c1fde51246e1a4fcbc9efbb595d6764a7e056/webpack.config.js#L69)
4680
4730
  needs to be changed, so that webpack does not only pick up files with the
4681
4731
  ending `.jsx?` but also `.tsx?`. Apps, on the other hand, do not need to be
4682
4732
  changed for this.
@@ -4867,7 +4917,7 @@ module.exports = require('pc-nrfconnect-shared/config/jest.config')();
4867
4917
  be shown. Add a `@include scrollbars(BACKGROUND-COLOUR);` with an appropriate
4868
4918
  replacement for `BACKGROUND-COLOUR` to the fitting selector in the SCSS files.
4869
4919
  When searching for `@include scrollbars` you can find
4870
- [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).
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).
4871
4921
 
4872
4922
  ## 4.8.8
4873
4923
 
package/README.md CHANGED
@@ -17,6 +17,16 @@ If there is no latest entry there yet, and you do not intend to release the
17
17
  change as a new version right ahead, add a new section with the heading
18
18
  `## Unreleased` at the top.
19
19
 
20
+ ## Disabled Sass warnings
21
+
22
+ Because we still use an outdated version of Bootstrap, we would get several Sass
23
+ warnings when using the latest version of Sass. Our goal is to move away from
24
+ Bootstrap (and mostly also plain CSS/Sass) but until that is accomplished we
25
+ would get those warnings. Because of that, some Sass warnings are silenced. If
26
+ you want to see all Sass warnings, set the env variable
27
+ `ENABLE_ALL_SASS_WARNINGS` to `true` while building an app or shared, e.g. by
28
+ calling `ENABLE_ALL_SASS_WARNINGS=true npm run build:dev`.
29
+
20
30
  ## Releasing
21
31
 
22
32
  To release, two files must be up-to-date: