@patternfly/react-code-editor 5.0.0-alpha.17 → 5.0.0-alpha.18

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
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.0.0-alpha.18](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.17...@patternfly/react-code-editor@5.0.0-alpha.18) (2023-03-01)
7
+
8
+ ### Features
9
+
10
+ - **Checkbox:** changed order of onChange params ([#8750](https://github.com/patternfly/patternfly-react/issues/8750)) ([0a87f55](https://github.com/patternfly/patternfly-react/commit/0a87f554e4cf3abb99de8f2ccd53737f0cf489b1))
11
+
6
12
  # [5.0.0-alpha.17](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.16...@patternfly/react-code-editor@5.0.0-alpha.17) (2023-03-01)
7
13
 
8
14
  **Note:** Version bump only for package @patternfly/react-code-editor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-code-editor",
3
- "version": "5.0.0-alpha.17",
3
+ "version": "5.0.0-alpha.18",
4
4
  "description": "This package provides a PatternFly wrapper for the Monaco code editor\n",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -30,7 +30,7 @@
30
30
  "clean": "rimraf dist"
31
31
  },
32
32
  "dependencies": {
33
- "@patternfly/react-core": "^5.0.0-alpha.17",
33
+ "@patternfly/react-core": "^5.0.0-alpha.18",
34
34
  "@patternfly/react-icons": "^5.0.0-alpha.3",
35
35
  "@patternfly/react-styles": "^5.0.0-alpha.3",
36
36
  "react-dropzone": "14.2.3",
@@ -45,5 +45,5 @@
45
45
  "rimraf": "^2.6.2",
46
46
  "typescript": "^4.7.4"
47
47
  },
48
- "gitHead": "74884ce289eed041ecd7f28a0db5c73f5c616d34"
48
+ "gitHead": "9235609a8831e00cbe785e6a88ae42f587837f49"
49
49
  }
@@ -40,7 +40,7 @@ export const CodeEditorBasic: React.FunctionComponent = () => {
40
40
  <Checkbox
41
41
  label="Dark theme"
42
42
  isChecked={isDarkTheme}
43
- onChange={toggleDarkTheme}
43
+ onChange={(_event, checked) => toggleDarkTheme(checked)}
44
44
  aria-label="dark theme checkbox"
45
45
  id="toggle-theme"
46
46
  name="toggle-theme"
@@ -48,7 +48,7 @@ export const CodeEditorBasic: React.FunctionComponent = () => {
48
48
  <Checkbox
49
49
  label="Line numbers"
50
50
  isChecked={isLineNumbersVisible}
51
- onChange={toggleLineNumbers}
51
+ onChange={(_event, checked) => toggleLineNumbers(checked)}
52
52
  aria-label="line numbers checkbox"
53
53
  id="toggle-line-numbers"
54
54
  name="toggle-line-numbers"
@@ -56,7 +56,7 @@ export const CodeEditorBasic: React.FunctionComponent = () => {
56
56
  <Checkbox
57
57
  label="Read only"
58
58
  isChecked={isReadOnly}
59
- onChange={toggleReadOnly}
59
+ onChange={(_event, checked) => toggleReadOnly(checked)}
60
60
  aria-label="read only checkbox"
61
61
  id="toggle-read-only"
62
62
  name="toggle-read-only"
@@ -64,7 +64,7 @@ export const CodeEditorBasic: React.FunctionComponent = () => {
64
64
  <Checkbox
65
65
  label="Minimap"
66
66
  isChecked={isMinimapVisible}
67
- onChange={toggleMinimap}
67
+ onChange={(_event, checked) => toggleMinimap(checked)}
68
68
  aria-label="display minimap checkbox"
69
69
  id="toggle-minimap"
70
70
  name="toggle-minimap"