@nordicsemiconductor/pc-nrfconnect-shared 110.0.0 → 112.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,41 @@ 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
+ ## 112 - 2023-09-25
11
+
12
+ ### Fixed
13
+
14
+ - Type problem when wrong `setTimeout` is chosen by TypeScript. The
15
+ `setTimeout` functions in node or in the browser return different types.
16
+ Sometimes TypeScript gets confused from which one to choose the types. Using
17
+ explicitly the version from the browser fixes this.
18
+
19
+ ## 111 - 2023-09-22
20
+
21
+ ### Added
22
+
23
+ - Optional property `nrfConnectForDesktop.supportedDevices` in `package.json`.
24
+ Will for now only be used by the Quickstart app.
25
+ - Output link to where in Azure a release should be created.
26
+
27
+ ### Fixed
28
+
29
+ - List items in dialog bodies had the wrong size: They inherited the size from
30
+ the document body instead of using the same size as was used in the dialog
31
+ in paragraphs.
32
+
33
+ ### Steps to upgrade
34
+
35
+ - If you get compilation errors, you may have to create a TypeScript type
36
+ definition file (e.g. svg.d.ts) in your project containing this:
37
+
38
+ ```ts
39
+ declare module '!!@svgr!*.svg' {
40
+ const svg: React.ElementType;
41
+ export default svg;
42
+ }
43
+ ```
44
+
10
45
  ## 110 - 2023-09-22
11
46
 
12
47
  ### Fixed
@@ -77,7 +112,8 @@ every new version is a new major version.
77
112
 
78
113
  ### Steps to upgrade
79
114
 
80
- - Update `nrfConnectForDesktop.nrfutil` to version 1.4.2 in `package.json`
115
+ - Update `nrfConnectForDesktop.nrfutil.device` to version 1.4.2 in
116
+ `package.json`
81
117
 
82
118
  ## 102 - 2023-09-05
83
119
 
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" ?>
2
2
  <!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
3
- <coverage lines-valid="3207" lines-covered="1788" line-rate="0.5575" branches-valid="1532" branches-covered="448" branch-rate="0.2924" timestamp="1695373602458" complexity="0" version="0.1">
3
+ <coverage lines-valid="3208" lines-covered="1788" line-rate="0.5573" branches-valid="1532" branches-covered="448" branch-rate="0.2924" timestamp="1695625847286" complexity="0" version="0.1">
4
4
  <sources>
5
5
  <source>/home/vsts/work/1/s</source>
6
6
  </sources>
@@ -1615,9 +1615,9 @@
1615
1615
  </class>
1616
1616
  </classes>
1617
1617
  </package>
1618
- <package name="scripts" line-rate="0.7118000000000001" branch-rate="0.36">
1618
+ <package name="scripts" line-rate="0.7" branch-rate="0.36">
1619
1619
  <classes>
1620
- <class name="release-shared.ts" filename="scripts/release-shared.ts" line-rate="0.7118000000000001" branch-rate="0.36">
1620
+ <class name="release-shared.ts" filename="scripts/release-shared.ts" line-rate="0.7" branch-rate="0.36">
1621
1621
  <methods>
1622
1622
  <method name="(anonymous_7)" hits="0" signature="()V">
1623
1623
  <lines>
@@ -1757,9 +1757,10 @@
1757
1757
  <line number="197" hits="0" branch="true" condition-coverage="0% (0/2)"/>
1758
1758
  <line number="200" hits="0" branch="true" condition-coverage="0% (0/1)"/>
1759
1759
  <line number="201" hits="0" branch="false"/>
1760
- <line number="205" hits="1" branch="false"/>
1761
- <line number="206" hits="1" branch="true" condition-coverage="0% (0/1)"/>
1762
- <line number="207" hits="0" branch="false"/>
1760
+ <line number="202" hits="0" branch="false"/>
1761
+ <line number="208" hits="1" branch="false"/>
1762
+ <line number="209" hits="1" branch="true" condition-coverage="0% (0/1)"/>
1763
+ <line number="210" hits="0" branch="false"/>
1763
1764
  </lines>
1764
1765
  </class>
1765
1766
  </classes>
@@ -2503,87 +2504,87 @@
2503
2504
  </method>
2504
2505
  <method name="(anonymous_21)" hits="8" signature="()V">
2505
2506
  <lines>
2506
- <line number="52" hits="8"/>
2507
+ <line number="49" hits="8"/>
2507
2508
  </lines>
2508
2509
  </method>
2509
2510
  <method name="(anonymous_22)" hits="8" signature="()V">
2510
2511
  <lines>
2511
- <line number="65" hits="8"/>
2512
+ <line number="62" hits="8"/>
2512
2513
  </lines>
2513
2514
  </method>
2514
2515
  <method name="(anonymous_23)" hits="0" signature="()V">
2515
2516
  <lines>
2516
- <line number="75" hits="0"/>
2517
+ <line number="72" hits="0"/>
2517
2518
  </lines>
2518
2519
  </method>
2519
2520
  <method name="(anonymous_24)" hits="1" signature="()V">
2520
2521
  <lines>
2521
- <line number="84" hits="1"/>
2522
+ <line number="81" hits="1"/>
2522
2523
  </lines>
2523
2524
  </method>
2524
2525
  <method name="(anonymous_25)" hits="0" signature="()V">
2525
2526
  <lines>
2526
- <line number="91" hits="0"/>
2527
+ <line number="88" hits="0"/>
2527
2528
  </lines>
2528
2529
  </method>
2529
2530
  <method name="(anonymous_26)" hits="0" signature="()V">
2530
2531
  <lines>
2531
- <line number="95" hits="0"/>
2532
+ <line number="92" hits="0"/>
2532
2533
  </lines>
2533
2534
  </method>
2534
2535
  <method name="(anonymous_27)" hits="0" signature="()V">
2535
2536
  <lines>
2536
- <line number="101" hits="0"/>
2537
+ <line number="98" hits="0"/>
2537
2538
  </lines>
2538
2539
  </method>
2539
2540
  <method name="(anonymous_28)" hits="0" signature="()V">
2540
2541
  <lines>
2541
- <line number="107" hits="0"/>
2542
+ <line number="104" hits="0"/>
2542
2543
  </lines>
2543
2544
  </method>
2544
2545
  <method name="(anonymous_29)" hits="78" signature="()V">
2545
2546
  <lines>
2546
- <line number="128" hits="78"/>
2547
+ <line number="125" hits="78"/>
2547
2548
  </lines>
2548
2549
  </method>
2549
2550
  <method name="(anonymous_30)" hits="67" signature="()V">
2550
2551
  <lines>
2551
- <line number="131" hits="67"/>
2552
+ <line number="128" hits="67"/>
2552
2553
  </lines>
2553
2554
  </method>
2554
2555
  <method name="(anonymous_31)" hits="151" signature="()V">
2555
2556
  <lines>
2556
- <line number="134" hits="151"/>
2557
+ <line number="131" hits="151"/>
2557
2558
  </lines>
2558
2559
  </method>
2559
2560
  <method name="(anonymous_32)" hits="84" signature="()V">
2560
2561
  <lines>
2561
- <line number="138" hits="84"/>
2562
+ <line number="135" hits="84"/>
2562
2563
  </lines>
2563
2564
  </method>
2564
2565
  <method name="(anonymous_33)" hits="0" signature="()V">
2565
2566
  <lines>
2566
- <line number="141" hits="0"/>
2567
+ <line number="138" hits="0"/>
2567
2568
  </lines>
2568
2569
  </method>
2569
2570
  <method name="(anonymous_34)" hits="0" signature="()V">
2570
2571
  <lines>
2571
- <line number="144" hits="0"/>
2572
+ <line number="141" hits="0"/>
2572
2573
  </lines>
2573
2574
  </method>
2574
2575
  <method name="(anonymous_35)" hits="0" signature="()V">
2575
2576
  <lines>
2576
- <line number="147" hits="0"/>
2577
+ <line number="144" hits="0"/>
2577
2578
  </lines>
2578
2579
  </method>
2579
2580
  <method name="(anonymous_36)" hits="0" signature="()V">
2580
2581
  <lines>
2581
- <line number="149" hits="0"/>
2582
+ <line number="146" hits="0"/>
2582
2583
  </lines>
2583
2584
  </method>
2584
2585
  <method name="(anonymous_38)" hits="8" signature="()V">
2585
2586
  <lines>
2586
- <line number="152" hits="8"/>
2587
+ <line number="149" hits="8"/>
2587
2588
  </lines>
2588
2589
  </method>
2589
2590
  </methods>
@@ -2591,57 +2592,57 @@
2591
2592
  <line number="7" hits="10" branch="false"/>
2592
2593
  <line number="36" hits="10" branch="false"/>
2593
2594
  <line number="40" hits="10" branch="false"/>
2594
- <line number="48" hits="0" branch="false"/>
2595
- <line number="49" hits="0" branch="false"/>
2596
- <line number="56" hits="8" branch="false"/>
2595
+ <line number="45" hits="0" branch="false"/>
2596
+ <line number="46" hits="0" branch="false"/>
2597
+ <line number="53" hits="8" branch="false"/>
2598
+ <line number="54" hits="8" branch="false"/>
2599
+ <line number="56" hits="8" branch="true" condition-coverage="100% (1/1)"/>
2597
2600
  <line number="57" hits="8" branch="false"/>
2598
- <line number="59" hits="8" branch="true" condition-coverage="100% (1/1)"/>
2599
- <line number="60" hits="8" branch="false"/>
2600
- <line number="61" hits="8" branch="false"/>
2601
- <line number="69" hits="8" branch="true" condition-coverage="100% (2/2)"/>
2602
- <line number="70" hits="8" branch="false"/>
2603
- <line number="71" hits="8" branch="false"/>
2604
- <line number="72" hits="8" branch="false"/>
2605
- <line number="79" hits="0" branch="true" condition-coverage="0% (0/1)"/>
2606
- <line number="80" hits="0" branch="false"/>
2607
- <line number="85" hits="1" branch="false"/>
2608
- <line number="86" hits="1" branch="true" condition-coverage="0% (0/1)"/>
2609
- <line number="87" hits="0" branch="false"/>
2610
- <line number="92" hits="0" branch="true" condition-coverage="0% (0/1)"/>
2611
- <line number="99" hits="0" branch="true" condition-coverage="0% (0/1)"/>
2601
+ <line number="58" hits="8" branch="false"/>
2602
+ <line number="66" hits="8" branch="true" condition-coverage="100% (2/2)"/>
2603
+ <line number="67" hits="8" branch="false"/>
2604
+ <line number="68" hits="8" branch="false"/>
2605
+ <line number="69" hits="8" branch="false"/>
2606
+ <line number="76" hits="0" branch="true" condition-coverage="0% (0/1)"/>
2607
+ <line number="77" hits="0" branch="false"/>
2608
+ <line number="82" hits="1" branch="false"/>
2609
+ <line number="83" hits="1" branch="true" condition-coverage="0% (0/1)"/>
2610
+ <line number="84" hits="0" branch="false"/>
2611
+ <line number="89" hits="0" branch="true" condition-coverage="0% (0/1)"/>
2612
+ <line number="96" hits="0" branch="true" condition-coverage="0% (0/1)"/>
2613
+ <line number="102" hits="0" branch="false"/>
2612
2614
  <line number="105" hits="0" branch="false"/>
2613
- <line number="108" hits="0" branch="false"/>
2614
- <line number="114" hits="57" branch="false"/>
2615
+ <line number="111" hits="57" branch="false"/>
2616
+ <line number="113" hits="0" branch="false"/>
2617
+ <line number="114" hits="0" branch="false"/>
2618
+ <line number="115" hits="8" branch="false"/>
2615
2619
  <line number="116" hits="0" branch="false"/>
2616
- <line number="117" hits="0" branch="false"/>
2617
- <line number="118" hits="8" branch="false"/>
2620
+ <line number="117" hits="1" branch="false"/>
2621
+ <line number="118" hits="0" branch="false"/>
2618
2622
  <line number="119" hits="0" branch="false"/>
2619
- <line number="120" hits="1" branch="false"/>
2623
+ <line number="120" hits="0" branch="false"/>
2620
2624
  <line number="121" hits="0" branch="false"/>
2621
- <line number="122" hits="0" branch="false"/>
2622
- <line number="123" hits="0" branch="false"/>
2623
- <line number="124" hits="0" branch="false"/>
2624
- <line number="126" hits="10" branch="false"/>
2625
- <line number="128" hits="46" branch="false"/>
2626
- <line number="129" hits="78" branch="false"/>
2627
- <line number="131" hits="26" branch="false"/>
2628
- <line number="132" hits="67" branch="false"/>
2629
- <line number="134" hits="72" branch="false"/>
2630
- <line number="135" hits="151" branch="true" condition-coverage="50% (1/2)"/>
2631
- <line number="138" hits="46" branch="false"/>
2632
- <line number="139" hits="84" branch="false"/>
2625
+ <line number="123" hits="10" branch="false"/>
2626
+ <line number="125" hits="46" branch="false"/>
2627
+ <line number="126" hits="78" branch="false"/>
2628
+ <line number="128" hits="26" branch="false"/>
2629
+ <line number="129" hits="67" branch="false"/>
2630
+ <line number="131" hits="72" branch="false"/>
2631
+ <line number="132" hits="151" branch="true" condition-coverage="50% (1/2)"/>
2632
+ <line number="135" hits="46" branch="false"/>
2633
+ <line number="136" hits="84" branch="false"/>
2634
+ <line number="138" hits="10" branch="false"/>
2635
+ <line number="139" hits="0" branch="false"/>
2633
2636
  <line number="141" hits="10" branch="false"/>
2634
2637
  <line number="142" hits="0" branch="false"/>
2635
2638
  <line number="144" hits="10" branch="false"/>
2636
2639
  <line number="145" hits="0" branch="false"/>
2637
- <line number="147" hits="10" branch="false"/>
2638
- <line number="148" hits="0" branch="false"/>
2639
- <line number="149" hits="10" branch="false"/>
2640
- <line number="150" hits="0" branch="false"/>
2641
- <line number="152" hits="8" branch="false"/>
2642
- <line number="153" hits="8" branch="true" condition-coverage="0% (0/1)"/>
2643
- <line number="154" hits="0" branch="true" condition-coverage="0% (0/4)"/>
2644
- <line number="156" hits="8" branch="false"/>
2640
+ <line number="146" hits="10" branch="false"/>
2641
+ <line number="147" hits="0" branch="false"/>
2642
+ <line number="149" hits="8" branch="false"/>
2643
+ <line number="150" hits="8" branch="true" condition-coverage="0% (0/1)"/>
2644
+ <line number="151" hits="0" branch="true" condition-coverage="0% (0/4)"/>
2645
+ <line number="153" hits="8" branch="false"/>
2645
2646
  </lines>
2646
2647
  </class>
2647
2648
  <class name="deviceLister.ts" filename="src/Device/deviceLister.ts" line-rate="0.3148" branch-rate="0.09699999999999999">
package/ipc/MetaFiles.ts CHANGED
@@ -4,6 +4,8 @@
4
4
  * SPDX-License-Identifier: LicenseRef-Nordic-4-Clause
5
5
  */
6
6
 
7
+ import { DevicePCA } from '../src/Device/deviceInfo/deviceInfo';
8
+
7
9
  export type UrlString = string;
8
10
 
9
11
  export interface SourceJson {
@@ -43,6 +45,7 @@ interface ObjectContainingOptionalStrings {
43
45
  }
44
46
 
45
47
  interface NrfConnectForDesktop {
48
+ supportedDevices?: DevicePCA[];
46
49
  nrfutil?: NrfutilModules;
47
50
  html?: string;
48
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "110.0.0",
3
+ "version": "112.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -199,6 +199,9 @@ const main = () => {
199
199
 
200
200
  if (noErrors) {
201
201
  doRelease(nextReleaseNumber);
202
+ console.log(
203
+ '\nAll done on GitHub. Now go to Azure and create a release there:\nhttps://dev.azure.com/NordicSemiconductor/Wayland/_release?definitionId=33'
204
+ );
202
205
  }
203
206
  };
204
207
 
@@ -27,7 +27,7 @@ export interface DeviceAutoSelectState {
27
27
  device?: Device;
28
28
  disconnectionTime?: number;
29
29
  waitForDevice?: WaitForDevice;
30
- autoReconnectTimeout?: NodeJS.Timeout;
30
+ autoReconnectTimeout?: number;
31
31
  lastArrivedDeviceId?: number;
32
32
  arrivedButWrongWhen?: boolean;
33
33
  onCancelTimeout?: () => void;
@@ -41,10 +41,7 @@ const slice = createSlice({
41
41
  name: 'deviceAutoSelect',
42
42
  initialState,
43
43
  reducers: {
44
- setWaitForDeviceTimeout: (
45
- state,
46
- action: PayloadAction<NodeJS.Timeout>
47
- ) => {
44
+ setWaitForDeviceTimeout: (state, action: PayloadAction<number>) => {
48
45
  clearTimeout(state.autoReconnectTimeout);
49
46
  state.autoReconnectTimeout = action.payload;
50
47
  },
@@ -43,7 +43,7 @@ import unknownNordicLogo from '!!@svgr!./unknown-nordic-logo.svg';
43
43
 
44
44
  type Device = NrfutilDevice | WrappedDevice;
45
45
 
46
- type DevicePCA =
46
+ export type DevicePCA =
47
47
  | 'PCA10028'
48
48
  | 'PCA10031'
49
49
  | 'PCA10040'
@@ -81,7 +81,7 @@ const initAutoReconnectTimeout =
81
81
 
82
82
  dispatch(
83
83
  setWaitForDeviceTimeout(
84
- setTimeout(() => {
84
+ window.setTimeout(() => {
85
85
  dispatch(closeDeviceSetupDialog());
86
86
  if (waitForDevice?.onFail)
87
87
  waitForDevice?.onFail(
@@ -36,7 +36,8 @@
36
36
  overflow-wrap: anywhere;
37
37
  padding: 32px 16px 16px 16px;
38
38
  margin: 0;
39
- p {
39
+ p,
40
+ li {
40
41
  font-size: 14px;
41
42
  }
42
43
  }
@@ -43,10 +43,10 @@ const FlashMessage = ({ flashMessage }: FlashMessageProps) => {
43
43
  const [fadeoutTimer, setFadeoutTimer] = useState<string>(
44
44
  dismissTime == null ? 'unset' : `${dismissTime}ms`
45
45
  );
46
- const timeoutHandler = useRef<NodeJS.Timeout | undefined>(undefined);
46
+ const timeoutHandler = useRef<number | undefined>(undefined);
47
47
 
48
48
  if (timeoutHandler.current == null && dismissTime != null) {
49
- timeoutHandler.current = setTimeout(() => {
49
+ timeoutHandler.current = window.setTimeout(() => {
50
50
  dispatch(removeMessage(id));
51
51
  }, dismissTime);
52
52
  }
@@ -58,7 +58,7 @@ const FlashMessage = ({ flashMessage }: FlashMessageProps) => {
58
58
 
59
59
  const addFadeout = () => {
60
60
  if (dismissTime) {
61
- timeoutHandler.current = setTimeout(() => {
61
+ timeoutHandler.current = window.setTimeout(() => {
62
62
  dispatch(removeMessage(id));
63
63
  }, dismissTime);
64
64
  setFadeoutTimer(`${dismissTime}ms`);
@@ -1,3 +1,4 @@
1
+ import { DevicePCA } from '../src/Device/deviceInfo/deviceInfo';
1
2
  export type UrlString = string;
2
3
  export interface SourceJson {
3
4
  name: string;
@@ -30,6 +31,7 @@ interface ObjectContainingOptionalStrings {
30
31
  [index: string]: string | undefined;
31
32
  }
32
33
  interface NrfConnectForDesktop {
34
+ supportedDevices?: DevicePCA[];
33
35
  nrfutil?: NrfutilModules;
34
36
  html?: string;
35
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MetaFiles.d.ts","sourceRoot":"","sources":["../../../ipc/MetaFiles.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,EAAE,CAAC;AAExC,MAAM,MAAM,WAAW,GAAG;IACtB,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,SAAS,CAAC;IACtB,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC,CAAC;AAEF,MAAM,WAAW,OAAO;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,EAAE,SAAS,CAAC;IACnB,eAAe,EAAE,SAAS,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,WAAW,CAAC;IACtB,SAAS,CAAC,E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MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AACvC,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAEhD,MAAM,WAAW,cAAc;IAC3B,CAAC,IAAI,EAAE,iBAAiB,GAAG;QACvB,oBAAoB;QACpB,GAAG,oBAAoB,EAAE;KAC5B,CAAC;CACL;AAED,MAAM,WAAW,WAAW;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,YAAY,CAAC;IAGtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,+BAA+B,GAAG,MAAM,CAAC;IAC/C,YAAY,CAAC,EAAE,+BAA+B,CAAC;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,eAAe,CAAC,EAAE,+BAA+B,CAAC;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,+BAA+B,CAAC;IAC1C,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,+BAA+B,CAAC;IACnD,UAAU,CAAC,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,SAAS,CAAC;KAClB,CAAC;IACF,OAAO,CAAC,EAAE,+BAA+B,CAAC;CAC7C"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { AppThunk, RootState } from '../store';
3
2
  import type { Device } from './deviceSlice';
4
3
  export interface WaitForDevice {
@@ -13,12 +12,12 @@ export interface DeviceAutoSelectState {
13
12
  device?: Device;
14
13
  disconnectionTime?: number;
15
14
  waitForDevice?: WaitForDevice;
16
- autoReconnectTimeout?: NodeJS.Timeout;
15
+ autoReconnectTimeout?: number;
17
16
  lastArrivedDeviceId?: number;
18
17
  arrivedButWrongWhen?: boolean;
19
18
  onCancelTimeout?: () => void;
20
19
  }
21
- export declare const reducer: import("redux").Reducer<DeviceAutoSelectState, import("redux").AnyAction>, setWaitForDeviceTimeout: import("@reduxjs/toolkit").ActionCreatorWithPayload<NodeJS.Timeout, "deviceAutoSelect/setWaitForDeviceTimeout">, clearWaitForDeviceTimeout: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "deviceAutoSelect/clearWaitForDeviceTimeout">, setAutoSelectDevice: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<Device | undefined, "deviceAutoSelect/setAutoSelectDevice">, setDisconnectedTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number | undefined, "deviceAutoSelect/setDisconnectedTime">, setAutoReselect: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "deviceAutoSelect/setAutoReselect">, setWaitForDevice: import("@reduxjs/toolkit").ActionCreatorWithPayload<WaitForDevice, "deviceAutoSelect/setWaitForDevice">, setLastArrivedDeviceId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number | undefined, "deviceAutoSelect/setLastArrivedDeviceId">, setArrivedButWrongWhen: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, "deviceAutoSelect/setArrivedButWrongWhen">, setOnCancelTimeout: import("@reduxjs/toolkit").ActionCreatorWithPayload<() => void, "deviceAutoSelect/setOnCancelTimeout">;
20
+ export declare const reducer: import("redux").Reducer<DeviceAutoSelectState, import("redux").AnyAction>, setWaitForDeviceTimeout: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, "deviceAutoSelect/setWaitForDeviceTimeout">, clearWaitForDeviceTimeout: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "deviceAutoSelect/clearWaitForDeviceTimeout">, setAutoSelectDevice: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<Device | undefined, "deviceAutoSelect/setAutoSelectDevice">, setDisconnectedTime: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number | undefined, "deviceAutoSelect/setDisconnectedTime">, setAutoReselect: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, "deviceAutoSelect/setAutoReselect">, setWaitForDevice: import("@reduxjs/toolkit").ActionCreatorWithPayload<WaitForDevice, "deviceAutoSelect/setWaitForDevice">, setLastArrivedDeviceId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number | undefined, "deviceAutoSelect/setLastArrivedDeviceId">, setArrivedButWrongWhen: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<boolean | undefined, "deviceAutoSelect/setArrivedButWrongWhen">, setOnCancelTimeout: import("@reduxjs/toolkit").ActionCreatorWithPayload<() => void, "deviceAutoSelect/setOnCancelTimeout">;
22
21
  export declare const getAutoReselectDevice: (state: RootState) => Device | undefined;
23
22
  export declare const getAutoReselect: (state: RootState) => boolean;
24
23
  export declare const getWaitingToAutoReselect: (state: RootState) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"deviceAutoSelectSlice.d.ts","sourceRoot":"","sources":["../../../../src/Device/deviceAutoSelectSlice.ts"],"names":[],"mappings":";AAQA,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EACE,QAAQ,GACR,iBAAiB,GACjB,mBAAmB,GACnB,YAAY,GACZ,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC;IACpC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,qBAAqB;IAClC,YAAY,EAAE,OAAO,CAAC;IACtB,M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B,QAAO,QAKrC,CAAC"}
@@ -2,6 +2,7 @@
2
2
  import { NrfutilDevice } from '../../../nrfutil';
3
3
  import type { Device as WrappedDevice } from '../deviceSlice';
4
4
  type Device = NrfutilDevice | WrappedDevice;
5
+ export type DevicePCA = 'PCA10028' | 'PCA10031' | 'PCA10040' | 'PCA10056' | 'PCA10059' | 'PCA10090' | 'PCA10095' | 'PCA10100' | 'PCA10121' | 'PCA20020' | 'PCA20035' | 'PCA10143' | 'PCA10152' | 'PCA10153' | 'PCA20049';
5
6
  interface DeviceInfo {
6
7
  name?: string | null;
7
8
  cores?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"deviceInfo.d.ts","sourceRoot":"","sources":["../../../../../src/Device/deviceInfo/deviceInfo.ts"],"names":[],"mappings":";AA8BA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,IAAI,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAY9D,KAAK,MAAM,GAAG,aAAa,GAAG,aAAa,CAAC;AAmB5C,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;AAoLD,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":";AA8BA,OAAO,EAAE,aA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