@nordicsemiconductor/pc-nrfconnect-shared 197.0.0 → 198.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.
@@ -50,8 +50,8 @@ interface DeviceInfo {
50
50
  cores?: number;
51
51
  icon: React.ElementType;
52
52
  website: {
53
- productPagePath?: string;
54
- buyOnlineParams?: string;
53
+ productPage?: string;
54
+ buyOnline?: string;
55
55
  };
56
56
  }
57
57
 
@@ -61,8 +61,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
61
61
  cores: 1,
62
62
  icon: nrf51logo,
63
63
  website: {
64
- productPagePath: 'Software-and-tools/Development-Kits/nRF51-DK',
65
- buyOnlineParams: 'search_token=nrf51-DK&series_token=nRF51822',
64
+ productPage:
65
+ 'https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF51-DK',
66
+ buyOnline:
67
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nrf51-DK&series_token=nRF51822',
66
68
  },
67
69
  },
68
70
  PCA10031: {
@@ -70,8 +72,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
70
72
  cores: 1,
71
73
  icon: nrf51logo,
72
74
  website: {
73
- productPagePath: 'Software-and-tools/Development-Kits/nRF51-Dongle',
74
- buyOnlineParams: 'search_token=nRF51-Dongle&series_token=nRF51822',
75
+ productPage:
76
+ 'https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF51-Dongle',
77
+ buyOnline:
78
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF51-Dongle&series_token=nRF51822',
75
79
  },
76
80
  },
77
81
  PCA10040: {
@@ -79,8 +83,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
79
83
  cores: 1,
80
84
  icon: nrf52logo,
81
85
  website: {
82
- productPagePath: 'Software-and-tools/Development-Kits/nRF52-DK',
83
- buyOnlineParams: 'search_token=nRF52-DK&series_token=nRF52832',
86
+ productPage:
87
+ 'https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52-DK',
88
+ buyOnline:
89
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF52-DK&series_token=nRF52832',
84
90
  },
85
91
  },
86
92
  PCA10056: {
@@ -88,8 +94,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
88
94
  cores: 1,
89
95
  icon: nrf52logo,
90
96
  website: {
91
- productPagePath: 'Software-and-tools/Development-Kits/nRF52840-DK',
92
- buyOnlineParams: 'search_token=nrf52840-DK&series_token=nRF52840',
97
+ productPage:
98
+ 'https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52840-DK',
99
+ buyOnline:
100
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nrf52840-DK&series_token=nRF52840',
93
101
  },
94
102
  },
95
103
  PCA10059: {
@@ -97,10 +105,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
97
105
  cores: 1,
98
106
  icon: nrf52logo,
99
107
  website: {
100
- productPagePath:
101
- 'Software-and-tools/Development-Kits/nRF52840-Dongle',
102
- buyOnlineParams:
103
- 'search_token=nRF52840DONGLE&series_token=nRF52840',
108
+ productPage:
109
+ 'https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52840-Dongle',
110
+ buyOnline:
111
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF52840DONGLE&series_token=nRF52840',
104
112
  },
105
113
  },
106
114
  PCA10090: {
@@ -108,8 +116,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
108
116
  cores: 1,
109
117
  icon: nrf91logo,
110
118
  website: {
111
- productPagePath: 'Software-and-tools/Development-Kits/nRF9160-DK',
112
- buyOnlineParams: 'search_token=nrf9160-DK&series_token=nRF9160',
119
+ productPage:
120
+ 'https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF9160-DK',
121
+ buyOnline:
122
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nrf9160-DK&series_token=nRF9160',
113
123
  },
114
124
  },
115
125
  PCA10095: {
@@ -117,8 +127,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
117
127
  cores: 2,
118
128
  icon: nrf53logo,
119
129
  website: {
120
- productPagePath: 'Software-and-tools/Development-Kits/nRF5340-DK',
121
- buyOnlineParams: 'search_token=nRF5340-DK&series_token=nRF5340',
130
+ productPage:
131
+ 'https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF5340-DK',
132
+ buyOnline:
133
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF5340-DK&series_token=nRF5340',
122
134
  },
123
135
  },
124
136
  PCA10100: {
@@ -126,8 +138,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
126
138
  cores: 1,
127
139
  icon: nrf52logo,
128
140
  website: {
129
- productPagePath: 'Software-and-tools/Development-Kits/nRF52833-DK',
130
- buyOnlineParams: 'search_token=nRF52833-DK&series_token=nRF52833',
141
+ productPage:
142
+ 'https://www.nordicsemi.com/Software-and-tools/Development-Kits/nRF52833-DK',
143
+ buyOnline:
144
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF52833-DK&series_token=nRF52833',
131
145
  },
132
146
  },
133
147
  PCA10121: {
@@ -135,9 +149,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
135
149
  cores: 2,
136
150
  icon: nrf53logo,
137
151
  website: {
138
- productPagePath: 'Products/Development-hardware/nRF5340-Audio-DK',
139
- buyOnlineParams:
140
- 'search_token=nRF5340-Audio-DK&series_token=nRF5340',
152
+ productPage:
153
+ 'https://www.nordicsemi.com/Products/Development-hardware/nRF5340-Audio-DK',
154
+ buyOnline:
155
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF5340-Audio-DK&series_token=nRF5340',
141
156
  },
142
157
  },
143
158
  PCA20020: {
@@ -145,9 +160,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
145
160
  cores: 1,
146
161
  icon: nrf52logo,
147
162
  website: {
148
- productPagePath:
149
- 'Software-and-tools/Prototyping-platforms/Nordic-Thingy-52',
150
- buyOnlineParams: 'search_token=nRF6936&series_token=nRF52832',
163
+ productPage:
164
+ 'https://www.nordicsemi.com/Software-and-tools/Prototyping-platforms/Nordic-Thingy-52',
165
+ buyOnline:
166
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF6936&series_token=nRF52832',
151
167
  },
152
168
  },
153
169
  PCA20035: {
@@ -155,9 +171,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
155
171
  cores: 1,
156
172
  icon: nrf91logo,
157
173
  website: {
158
- productPagePath:
159
- 'Software-and-tools/Prototyping-platforms/Nordic-Thingy-91',
160
- buyOnlineParams: 'search_token=nRF6943&series_token=nRF9160',
174
+ productPage:
175
+ 'https://www.nordicsemi.com/Software-and-tools/Prototyping-platforms/Nordic-Thingy-91',
176
+ buyOnline:
177
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF6943&series_token=nRF9160',
161
178
  },
162
179
  },
163
180
  PCA10143: {
@@ -165,8 +182,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
165
182
  cores: 2,
166
183
  icon: nrf7002logo,
167
184
  website: {
168
- productPagePath: 'Products/Development-hardware/nRF7002-DK',
169
- buyOnlineParams: 'search_token=nRF7002-DK&series_token=nRF7002',
185
+ productPage:
186
+ 'https://www.nordicsemi.com/Products/Development-hardware/nRF7002-DK',
187
+ buyOnline:
188
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF7002-DK&series_token=nRF7002',
170
189
  },
171
190
  },
172
191
  PCA10152: {
@@ -174,8 +193,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
174
193
  cores: 2,
175
194
  icon: nPMFamilyLogo,
176
195
  website: {
177
- productPagePath: 'Products/Development-hardware/nPM1300-EK',
178
- buyOnlineParams: 'search_token=NPM1300EK',
196
+ productPage:
197
+ 'https://www.nordicsemi.com/Products/Development-hardware/nPM1300-EK',
198
+ buyOnline:
199
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=NPM1300EK',
179
200
  },
180
201
  },
181
202
  PCA10153: {
@@ -183,26 +204,27 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
183
204
  cores: 1,
184
205
  icon: nrf91logo,
185
206
  website: {
186
- productPagePath: 'Products/Development-hardware/nrf9161dk',
187
- buyOnlineParams: 'search_token=NRF9161-dk',
207
+ productPage:
208
+ 'https://www.nordicsemi.com/Products/Development-hardware/nRF9161-DK',
209
+ buyOnline:
210
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=NRF9161-DK',
188
211
  },
189
212
  },
190
213
  PCA10165: {
191
214
  name: 'nRF9131 EK',
192
215
  cores: 1,
193
216
  icon: nrf91logo,
194
- website: {
195
- productPagePath: 'Products/Development-hardware/nrf9131ek',
196
- buyOnlineParams: 'search_token=NRF9131-ek',
197
- },
217
+ website: {},
198
218
  },
199
219
  PCA20049: {
200
220
  name: 'Nordic Thingy:91 X',
201
221
  cores: 1,
202
222
  icon: nrf91logo,
203
223
  website: {
204
- productPagePath: 'Products/Development-hardware/thingy91x',
205
- buyOnlineParams: 'search_token=nRF9161-Thingy91x',
224
+ productPage:
225
+ 'https://www.nordicsemi.com/Products/Development-hardware/Nordic-Thingy-91-X',
226
+ buyOnline:
227
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=THINGY91X',
206
228
  },
207
229
  },
208
230
  PCA10171: {
@@ -210,8 +232,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
210
232
  cores: 1,
211
233
  icon: nrf91logo,
212
234
  website: {
213
- productPagePath: 'Products/Development-hardware/nrf5161dk',
214
- buyOnlineParams: 'search_token=NRF9151-dk',
235
+ productPage:
236
+ 'https://www.nordicsemi.com/Products/Development-hardware/nRF9151-DK',
237
+ buyOnline:
238
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=NRF9151-DK',
215
239
  },
216
240
  },
217
241
  PCA10156: {
@@ -219,8 +243,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
219
243
  cores: 1,
220
244
  icon: nrf54logo,
221
245
  website: {
222
- productPagePath: 'Products/Development-hardware/nrf54l15dk',
223
- buyOnlineParams: 'search_token=NRF54L15-dk',
246
+ productPage:
247
+ 'https://www.nordicsemi.com/Products/Development-hardware/nRF54L15-DK',
248
+ buyOnline:
249
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF54L15%20DK',
224
250
  },
225
251
  },
226
252
  PCA10175: {
@@ -228,8 +254,10 @@ const devicesByPca: { [P in KnownDevicePCA]: DeviceInfo } = {
228
254
  cores: 1,
229
255
  icon: nrf54logo,
230
256
  website: {
231
- productPagePath: 'Products/Development-hardware/nrf54h20dk',
232
- buyOnlineParams: 'search_token=NRF54H20-dk',
257
+ productPage:
258
+ 'https://www.nordicsemi.com/Products/Development-hardware/nRF54H20-DK',
259
+ buyOnline:
260
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF54H20%20DK',
233
261
  },
234
262
  },
235
263
  };
@@ -247,9 +275,10 @@ const ppkDeviceInfo = (device: Device): DeviceInfo => ({
247
275
  name: device.usb?.product,
248
276
  icon: ppkLogo,
249
277
  website: {
250
- productPagePath:
251
- 'Software-and-tools/Development-Tools/Power-Profiler-Kit-2',
252
- buyOnlineParams: 'search_token=nRF-PPK2',
278
+ productPage:
279
+ 'https://www.nordicsemi.com/Software-and-tools/Development-Tools/Power-Profiler-Kit-2',
280
+ buyOnline:
281
+ 'https://www.nordicsemi.com/About-us/BuyOnline?search_token=nRF-PPK2',
253
282
  },
254
283
  });
255
284
 
@@ -294,13 +323,3 @@ export const displayedDeviceName = (
294
323
 
295
324
  return deviceInfo(device).name || device.devkit?.boardVersion || 'Unknown';
296
325
  };
297
-
298
- export const productPageUrl = (device: Device) =>
299
- deviceInfo(device).website.productPagePath &&
300
- `https://www.nordicsemi.com/${deviceInfo(device).website.productPagePath}`;
301
-
302
- export const buyOnlineUrl = (device: Device) =>
303
- deviceInfo(device).website.buyOnlineParams &&
304
- `https://www.nordicsemi.com/About-us/BuyOnline?${
305
- deviceInfo(device).website.buyOnlineParams
306
- }`;
@@ -12,10 +12,7 @@ import si from 'systeminformation';
12
12
 
13
13
  import { getAllModuleVersions } from '../../nrfutil';
14
14
  import { describeVersion, findDependency } from '../../nrfutil/moduleVersion';
15
- import {
16
- deviceInfo as getDeviceInfo,
17
- productPageUrl,
18
- } from '../Device/deviceInfo/deviceInfo';
15
+ import { deviceInfo as getDeviceInfo } from '../Device/deviceInfo/deviceInfo';
19
16
  import { Device } from '../Device/deviceSlice';
20
17
  import logger from '../logging';
21
18
  import { getAppDataDir } from './appDirs';
@@ -115,7 +112,7 @@ const currentDeviceReport = (device?: Device, currentSerialNumber?: string) => {
115
112
  ` - name: ${deviceInfo.name}`,
116
113
  ` - serialNumber: ${currentSerialNumber}`,
117
114
  ` - cores: ${deviceInfo.cores ?? 'Unknown'}`,
118
- ` - website: ${productPageUrl(device) ?? 'Unknown'}`,
115
+ ` - website: ${deviceInfo.website.productPage ?? 'Unknown'}`,
119
116
  '',
120
117
  ];
121
118
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DeviceCard.d.ts","sourceRoot":"","sources":["../../../../src/About/DeviceCard.tsx"],"names":[],"mappings":";;AA2BA,wBAiDE"}
1
+ {"version":3,"file":"DeviceCard.d.ts","sourceRoot":"","sources":["../../../../src/About/DeviceCard.tsx"],"names":[],"mappings":";;AAuBA,wBAiDE"}
@@ -7,15 +7,13 @@ interface DeviceInfo {
7
7
  cores?: number;
8
8
  icon: React.ElementType;
9
9
  website: {
10
- productPagePath?: string;
11
- buyOnlineParams?: string;
10
+ productPage?: string;
11
+ buyOnline?: string;
12
12
  };
13
13
  }
14
14
  export declare const deviceInfo: (device: Device) => DeviceInfo;
15
15
  export declare const displayedDeviceName: (device: Device, { respectNickname }?: {
16
16
  respectNickname?: boolean | undefined;
17
17
  }) => string;
18
- export declare const productPageUrl: (device: Device) => string | undefined;
19
- export declare const buyOnlineUrl: (device: Device) => string | undefined;
20
18
  export {};
21
19
  //# sourceMappingURL=deviceInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../../../../src/Device/deviceInfo/deviceInfo.ts"],"names":[],"mappings":";AA+BA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAa9D,KAAK,MAAM,GAAG,aAAa,GAAG,aAAa,CAAC;AAE5C,UAAU,UAAU;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,OAAO,EAAE;QACL,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,eAAe,CAAC,EAAE,MAAM,CAAC;KAC5B,CAAC;CACL;AA6ND,eAAO,MAAM,UAAU,WAAY,MAAM,KAAG,UAC2B,CAAC;AASxE,eAAO,MAAM,mBAAmB,WACpB,MAAM;;YAQjB,CAAC;AAEF,eAAO,MAAM,cAAc,WAAY,MAAM,uBAEiC,CAAC;AAE/E,eAAO,MAAM,YAAY,WAAY,MAAM,uBAIrC,CAAC"}
1
+ {"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../../../../src/Device/deviceInfo/deviceInfo.ts"],"names":[],"mappings":";AA+BA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAa9D,KAAK,MAAM,GAAG,aAAa,GAAG,aAAa,CAAC;AAE5C,UAAU,UAAU;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC;IACxB,OAAO,EAAE;QACL,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACL;AA0PD,eAAO,MAAM,UAAU,WAAY,MAAM,KAAG,UAC2B,CAAC;AASxE,eAAO,MAAM,mBAAmB,WACpB,MAAM;;YAQjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"systemReport.d.ts","sourceRoot":"","sources":["../../../../src/utils/systemReport.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAwG/C,eAAO,MAAM,oBAAoB,cAClB,MAAM,eACJ,MAAM,EAAE,kBACL,MAAM,wBACA,MAAM,oBAQjB,CAAC;qCAGA,MAAM,EAAE,uBACC,MAAM,kBACX,MAAM;AAH1B,wBAwBE"}
1
+ {"version":3,"file":"systemReport.d.ts","sourceRoot":"","sources":["../../../../src/utils/systemReport.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAwG/C,eAAO,MAAM,oBAAoB,cAClB,MAAM,eACJ,MAAM,EAAE,kBACL,MAAM,wBACA,MAAM,oBAQjB,CAAC;qCAGA,MAAM,EAAE,uBACC,MAAM,kBACX,MAAM;AAH1B,wBAwBE"}