@nordicsemiconductor/pc-nrfconnect-shared 162.0.0 → 164.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
CHANGED
|
@@ -7,6 +7,18 @@ 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
|
+
## 164.0.0 - 2024-03-05
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Device setup dialog failed to show on JLink device with no FW
|
|
15
|
+
|
|
16
|
+
## 163.0.0 - 2024-03-05
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- Fixed issue with `Group` remaining expanded in some cases
|
|
21
|
+
|
|
10
22
|
## 162.0.0 - 2024-03-05
|
|
11
23
|
|
|
12
24
|
### Changed
|
package/package.json
CHANGED
|
@@ -124,7 +124,7 @@ export const jprogDeviceSetup = (
|
|
|
124
124
|
programDeviceWithFw(device, firmwareOption, onProgress)
|
|
125
125
|
),
|
|
126
126
|
})),
|
|
127
|
-
isExpectedFirmware: (device, deviceInfo) => (
|
|
127
|
+
isExpectedFirmware: (device, deviceInfo) => async (_, getState) => {
|
|
128
128
|
const fwVersions = firmwareOptions(device, firmware, deviceInfo);
|
|
129
129
|
if (fwVersions.length === 0) {
|
|
130
130
|
return Promise.resolve({
|
|
@@ -146,7 +146,8 @@ export const jprogDeviceSetup = (
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
try {
|
|
150
|
+
const info = await NrfutilDeviceLib.getFwInfo(device);
|
|
150
151
|
if (info.imageInfoList.length > 0) {
|
|
151
152
|
const fw = fwVersions.find(version =>
|
|
152
153
|
info.imageInfoList.find(
|
|
@@ -161,11 +162,13 @@ export const jprogDeviceSetup = (
|
|
|
161
162
|
validFirmware: fw !== undefined,
|
|
162
163
|
});
|
|
163
164
|
}
|
|
165
|
+
} catch {
|
|
166
|
+
// do nothing
|
|
167
|
+
}
|
|
164
168
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
});
|
|
169
|
+
return Promise.resolve({
|
|
170
|
+
device,
|
|
171
|
+
validFirmware: false,
|
|
169
172
|
});
|
|
170
173
|
},
|
|
171
174
|
tryToSwitchToApplicationMode: () => () => Promise.resolve(null),
|
package/src/Group/Group.tsx
CHANGED
|
@@ -45,8 +45,9 @@ const collapseSection = (element: HTMLDivElement) => {
|
|
|
45
45
|
|
|
46
46
|
const expandSection = (element: HTMLDivElement) => {
|
|
47
47
|
const sectionHeight = element.scrollHeight;
|
|
48
|
+
const clientHeight = element.clientHeight;
|
|
48
49
|
|
|
49
|
-
if (sectionHeight ===
|
|
50
|
+
if (sectionHeight === clientHeight) return;
|
|
50
51
|
|
|
51
52
|
element.style.height = `${sectionHeight}px`;
|
|
52
53
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jprogOperations.d.ts","sourceRoot":"","sources":["../../../../src/Device/jprogOperations.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAmGxD,eAAO,MAAM,gBAAgB,aACf,UAAU,EAAE,uEAGvB,
|
|
1
|
+
{"version":3,"file":"jprogOperations.d.ts","sourceRoot":"","sources":["../../../../src/Device/jprogOperations.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAmGxD,eAAO,MAAM,gBAAgB,aACf,UAAU,EAAE,uEAGvB,WA6DD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/Group/Group.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA2B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../../src/Group/Group.tsx"],"names":[],"mappings":"AAMA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAmEhD,eAAO,MAAM,KAAK;;aAYL,MAAM;;;eAGJ,MAAM,SAAS;;;;iCAIE,OAAO,KAAK,IAAI;iBAmF/C,CAAC"}
|