@nordicsemiconductor/pc-nrfconnect-shared 166.0.0 → 167.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,14 @@ 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
+ ## 167.0.0 - 2024-03-08
11
+
12
+ ### Fixed
13
+
14
+ - `Group` will not collapse on click unless collapsible property is set
15
+ - `ConfirmCloseDialog` now cancels launcher's request to reload. Requires
16
+ engine version 4.4.1
17
+
10
18
  ## 166.0.0 - 2024-03-05
11
19
 
12
20
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "166.0.0",
3
+ "version": "167.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -72,6 +72,7 @@ export default () => {
72
72
  }
73
73
  }}
74
74
  onCancel={() => {
75
+ getCurrentWindow().emit('restart-cancelled');
75
76
  dispatch(setShowCloseDialog(false));
76
77
  confirmedDialogs.forEach(confirmedDialog =>
77
78
  dispatch(addConfirmBeforeClose(confirmedDialog))
@@ -100,11 +100,14 @@ export const Group = ({
100
100
  <div className={className}>
101
101
  <button
102
102
  className={classNames(
103
- 'tw-row tw-preflight tw-flex tw-items-center tw-justify-between tw-text-left',
104
- headingFullWidth && 'tw-w-full'
103
+ 'tw-row tw-preflight tw- tw-flex tw-items-center tw-justify-between tw-text-left',
104
+ headingFullWidth && 'tw-w-full',
105
+ !collapsible && ' tw-cursor-default'
105
106
  )}
106
107
  type="button"
107
108
  onClick={() => {
109
+ if (!collapsible) return;
110
+
108
111
  if (!collapsibleDivRef.current || !initStateSet.current)
109
112
  return;
110
113
 
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmCloseDialog.d.ts","sourceRoot":"","sources":["../../../../src/ConfirmBeforeClose/ConfirmCloseDialog.tsx"],"names":[],"mappings":";;AAqBA,wBA+DE"}
1
+ {"version":3,"file":"ConfirmCloseDialog.d.ts","sourceRoot":"","sources":["../../../../src/ConfirmBeforeClose/ConfirmCloseDialog.tsx"],"names":[],"mappings":";;AAqBA,wBAgEE"}
@@ -1 +1 @@
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"}
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;iBAsF/C,CAAC"}