@patternfly/react-code-editor 5.0.0-alpha.4 → 5.0.0-alpha.40
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 +506 -0
- package/README.md +3 -3
- package/dist/esm/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/esm/components/CodeEditor/CodeEditor.js +15 -13
- package/dist/esm/components/CodeEditor/CodeEditor.js.map +1 -1
- package/dist/esm/components/CodeEditor/CodeEditorControl.d.ts +1 -11
- package/dist/esm/components/CodeEditor/CodeEditorControl.d.ts.map +1 -1
- package/dist/esm/components/CodeEditor/CodeEditorControl.js +2 -25
- package/dist/esm/components/CodeEditor/CodeEditorControl.js.map +1 -1
- package/dist/js/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/js/components/CodeEditor/CodeEditor.js +25 -23
- package/dist/js/components/CodeEditor/CodeEditor.js.map +1 -1
- package/dist/js/components/CodeEditor/CodeEditorControl.d.ts +1 -11
- package/dist/js/components/CodeEditor/CodeEditorControl.d.ts.map +1 -1
- package/dist/js/components/CodeEditor/CodeEditorControl.js +2 -25
- package/dist/js/components/CodeEditor/CodeEditorControl.js.map +1 -1
- package/package.json +8 -8
- package/src/components/CodeEditor/CodeEditor.tsx +38 -27
- package/src/components/CodeEditor/CodeEditorControl.tsx +2 -76
- package/src/components/CodeEditor/examples/CodeEditorBasic.tsx +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,512 @@
|
|
|
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.40](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.39...@patternfly/react-code-editor@5.0.0-alpha.40) (2023-03-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
9
|
+
|
|
10
|
+
# [5.0.0-alpha.39](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.38...@patternfly/react-code-editor@5.0.0-alpha.39) (2023-03-17)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
13
|
+
|
|
14
|
+
# [5.0.0-alpha.38](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.37...@patternfly/react-code-editor@5.0.0-alpha.38) (2023-03-17)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
17
|
+
|
|
18
|
+
# [5.0.0-alpha.37](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.36...@patternfly/react-code-editor@5.0.0-alpha.37) (2023-03-17)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
21
|
+
|
|
22
|
+
# [5.0.0-alpha.36](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.35...@patternfly/react-code-editor@5.0.0-alpha.36) (2023-03-17)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
25
|
+
|
|
26
|
+
# [5.0.0-alpha.35](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.34...@patternfly/react-code-editor@5.0.0-alpha.35) (2023-03-15)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
29
|
+
|
|
30
|
+
# [5.0.0-alpha.34](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.33...@patternfly/react-code-editor@5.0.0-alpha.34) (2023-03-15)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
33
|
+
|
|
34
|
+
# [5.0.0-alpha.33](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.32...@patternfly/react-code-editor@5.0.0-alpha.33) (2023-03-13)
|
|
35
|
+
|
|
36
|
+
- EmptyState component cleanup to match core implementation (#8737) ([40dd9ad](https://github.com/patternfly/patternfly-react/commit/40dd9ad4b2ab32887c2f72a10eb78f2c4ee5ac4b)), closes [#8737](https://github.com/patternfly/patternfly-react/issues/8737) [#8555](https://github.com/patternfly/patternfly-react/issues/8555)
|
|
37
|
+
|
|
38
|
+
### BREAKING CHANGES
|
|
39
|
+
|
|
40
|
+
- closes #8555, fixes #8455
|
|
41
|
+
|
|
42
|
+
- docs(EmptyState): updated examples
|
|
43
|
+
|
|
44
|
+
updated examples of EmptyState usage on the PatternFly web to use new API
|
|
45
|
+
|
|
46
|
+
# [5.0.0-alpha.32](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.31...@patternfly/react-code-editor@5.0.0-alpha.32) (2023-03-13)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
49
|
+
|
|
50
|
+
# [5.0.0-alpha.31](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.30...@patternfly/react-code-editor@5.0.0-alpha.31) (2023-03-10)
|
|
51
|
+
|
|
52
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
53
|
+
|
|
54
|
+
# [5.0.0-alpha.30](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.29...@patternfly/react-code-editor@5.0.0-alpha.30) (2023-03-09)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
57
|
+
|
|
58
|
+
# [5.0.0-alpha.29](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.28...@patternfly/react-code-editor@5.0.0-alpha.29) (2023-03-09)
|
|
59
|
+
|
|
60
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
61
|
+
|
|
62
|
+
# [5.0.0-alpha.28](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.27...@patternfly/react-code-editor@5.0.0-alpha.28) (2023-03-09)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
65
|
+
|
|
66
|
+
# [5.0.0-alpha.27](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.26...@patternfly/react-code-editor@5.0.0-alpha.27) (2023-03-08)
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
69
|
+
|
|
70
|
+
# [5.0.0-alpha.26](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.25...@patternfly/react-code-editor@5.0.0-alpha.26) (2023-03-07)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
73
|
+
|
|
74
|
+
# [5.0.0-alpha.25](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.24...@patternfly/react-code-editor@5.0.0-alpha.25) (2023-03-04)
|
|
75
|
+
|
|
76
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
77
|
+
|
|
78
|
+
# [5.0.0-alpha.24](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.23...@patternfly/react-code-editor@5.0.0-alpha.24) (2023-03-03)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
81
|
+
|
|
82
|
+
# [5.0.0-alpha.23](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.22...@patternfly/react-code-editor@5.0.0-alpha.23) (2023-03-03)
|
|
83
|
+
|
|
84
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
85
|
+
|
|
86
|
+
# [5.0.0-alpha.22](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.21...@patternfly/react-code-editor@5.0.0-alpha.22) (2023-03-02)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
89
|
+
|
|
90
|
+
# [5.0.0-alpha.21](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.20...@patternfly/react-code-editor@5.0.0-alpha.21) (2023-03-02)
|
|
91
|
+
|
|
92
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
93
|
+
|
|
94
|
+
# 5.0.0-alpha.20 (2023-03-02)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
97
|
+
|
|
98
|
+
# [5.0.0-alpha.19](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.18...@patternfly/react-code-editor@5.0.0-alpha.19) (2023-03-01)
|
|
99
|
+
|
|
100
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
101
|
+
|
|
102
|
+
# [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)
|
|
103
|
+
|
|
104
|
+
### Features
|
|
105
|
+
|
|
106
|
+
- **Checkbox:** changed order of onChange params ([#8750](https://github.com/patternfly/patternfly-react/issues/8750)) ([0a87f55](https://github.com/patternfly/patternfly-react/commit/0a87f554e4cf3abb99de8f2ccd53737f0cf489b1))
|
|
107
|
+
|
|
108
|
+
# [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)
|
|
109
|
+
|
|
110
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
111
|
+
|
|
112
|
+
# [5.0.0-alpha.16](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.15...@patternfly/react-code-editor@5.0.0-alpha.16) (2023-02-28)
|
|
113
|
+
|
|
114
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
115
|
+
|
|
116
|
+
# [5.0.0-alpha.15](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.14...@patternfly/react-code-editor@5.0.0-alpha.15) (2023-02-27)
|
|
117
|
+
|
|
118
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
119
|
+
|
|
120
|
+
# 5.0.0-alpha.14 (2023-02-22)
|
|
121
|
+
|
|
122
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
123
|
+
|
|
124
|
+
# [5.0.0-alpha.13](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.12...@patternfly/react-code-editor@5.0.0-alpha.13) (2023-02-16)
|
|
125
|
+
|
|
126
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
127
|
+
|
|
128
|
+
# [5.0.0-alpha.12](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.11...@patternfly/react-code-editor@5.0.0-alpha.12) (2023-02-15)
|
|
129
|
+
|
|
130
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
131
|
+
|
|
132
|
+
# [5.0.0-alpha.11](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.10...@patternfly/react-code-editor@5.0.0-alpha.11) (2023-02-10)
|
|
133
|
+
|
|
134
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
135
|
+
|
|
136
|
+
# [5.0.0-alpha.10](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.9...@patternfly/react-code-editor@5.0.0-alpha.10) (2023-02-10)
|
|
137
|
+
|
|
138
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
139
|
+
|
|
140
|
+
# [5.0.0-alpha.9](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.8...@patternfly/react-code-editor@5.0.0-alpha.9) (2023-02-09)
|
|
141
|
+
|
|
142
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
143
|
+
|
|
144
|
+
# [5.0.0-alpha.8](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.7...@patternfly/react-code-editor@5.0.0-alpha.8) (2023-02-08)
|
|
145
|
+
|
|
146
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
147
|
+
|
|
148
|
+
# [5.0.0-alpha.7](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.6...@patternfly/react-code-editor@5.0.0-alpha.7) (2023-02-08)
|
|
149
|
+
|
|
150
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
151
|
+
|
|
152
|
+
## [4.82.113](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.112...@patternfly/react-code-editor@4.82.113) (2023-01-27)
|
|
153
|
+
|
|
154
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
155
|
+
|
|
156
|
+
## 4.82.112 (2023-01-24)
|
|
157
|
+
|
|
158
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
159
|
+
|
|
160
|
+
## [4.82.111](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.110...@patternfly/react-code-editor@4.82.111) (2023-01-23)
|
|
161
|
+
|
|
162
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
163
|
+
|
|
164
|
+
## [4.82.110](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.109...@patternfly/react-code-editor@4.82.110) (2023-01-23)
|
|
165
|
+
|
|
166
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
167
|
+
|
|
168
|
+
## [4.82.109](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.108...@patternfly/react-code-editor@4.82.109) (2023-01-20)
|
|
169
|
+
|
|
170
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
171
|
+
|
|
172
|
+
## [4.82.108](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.107...@patternfly/react-code-editor@4.82.108) (2023-01-20)
|
|
173
|
+
|
|
174
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
175
|
+
|
|
176
|
+
## [4.82.107](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.106...@patternfly/react-code-editor@4.82.107) (2023-01-19)
|
|
177
|
+
|
|
178
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
179
|
+
|
|
180
|
+
## 4.82.106 (2023-01-19)
|
|
181
|
+
|
|
182
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
183
|
+
|
|
184
|
+
## [4.82.105](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.104...@patternfly/react-code-editor@4.82.105) (2023-01-19)
|
|
185
|
+
|
|
186
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
187
|
+
|
|
188
|
+
## [4.82.104](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.103...@patternfly/react-code-editor@4.82.104) (2023-01-19)
|
|
189
|
+
|
|
190
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
191
|
+
|
|
192
|
+
## [4.82.103](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.102...@patternfly/react-code-editor@4.82.103) (2023-01-19)
|
|
193
|
+
|
|
194
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
195
|
+
|
|
196
|
+
## 4.82.102 (2023-01-18)
|
|
197
|
+
|
|
198
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
199
|
+
|
|
200
|
+
## [4.82.101](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.100...@patternfly/react-code-editor@4.82.101) (2023-01-18)
|
|
201
|
+
|
|
202
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
203
|
+
|
|
204
|
+
## 4.82.100 (2023-01-18)
|
|
205
|
+
|
|
206
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
207
|
+
|
|
208
|
+
## [4.82.99](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.98...@patternfly/react-code-editor@4.82.99) (2023-01-17)
|
|
209
|
+
|
|
210
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
211
|
+
|
|
212
|
+
## [4.82.98](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.97...@patternfly/react-code-editor@4.82.98) (2023-01-16)
|
|
213
|
+
|
|
214
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
215
|
+
|
|
216
|
+
## [4.82.97](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.96...@patternfly/react-code-editor@4.82.97) (2023-01-13)
|
|
217
|
+
|
|
218
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
219
|
+
|
|
220
|
+
## [4.82.96](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.95...@patternfly/react-code-editor@4.82.96) (2023-01-13)
|
|
221
|
+
|
|
222
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
223
|
+
|
|
224
|
+
## [4.82.95](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.94...@patternfly/react-code-editor@4.82.95) (2023-01-13)
|
|
225
|
+
|
|
226
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
227
|
+
|
|
228
|
+
## [4.82.94](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.93...@patternfly/react-code-editor@4.82.94) (2023-01-12)
|
|
229
|
+
|
|
230
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
231
|
+
|
|
232
|
+
## 4.82.93 (2023-01-11)
|
|
233
|
+
|
|
234
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
235
|
+
|
|
236
|
+
## [4.82.92](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.91...@patternfly/react-code-editor@4.82.92) (2023-01-11)
|
|
237
|
+
|
|
238
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
239
|
+
|
|
240
|
+
## 4.82.91 (2023-01-09)
|
|
241
|
+
|
|
242
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
243
|
+
|
|
244
|
+
## [4.82.90](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.89...@patternfly/react-code-editor@4.82.90) (2023-01-06)
|
|
245
|
+
|
|
246
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
247
|
+
|
|
248
|
+
## 4.82.89 (2023-01-06)
|
|
249
|
+
|
|
250
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
251
|
+
|
|
252
|
+
## [4.82.88](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.87...@patternfly/react-code-editor@4.82.88) (2023-01-06)
|
|
253
|
+
|
|
254
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
255
|
+
|
|
256
|
+
## [4.82.87](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.86...@patternfly/react-code-editor@4.82.87) (2023-01-05)
|
|
257
|
+
|
|
258
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
259
|
+
|
|
260
|
+
## [4.82.86](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.85...@patternfly/react-code-editor@4.82.86) (2023-01-05)
|
|
261
|
+
|
|
262
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
263
|
+
|
|
264
|
+
## [4.82.85](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.84...@patternfly/react-code-editor@4.82.85) (2023-01-04)
|
|
265
|
+
|
|
266
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
267
|
+
|
|
268
|
+
## 4.82.84 (2023-01-04)
|
|
269
|
+
|
|
270
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
271
|
+
|
|
272
|
+
## 4.82.83 (2022-12-19)
|
|
273
|
+
|
|
274
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
275
|
+
|
|
276
|
+
## [4.82.82](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.81...@patternfly/react-code-editor@4.82.82) (2022-12-12)
|
|
277
|
+
|
|
278
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
279
|
+
|
|
280
|
+
## [4.82.81](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.80...@patternfly/react-code-editor@4.82.81) (2022-12-09)
|
|
281
|
+
|
|
282
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
283
|
+
|
|
284
|
+
## [4.82.80](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.79...@patternfly/react-code-editor@4.82.80) (2022-12-08)
|
|
285
|
+
|
|
286
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
287
|
+
|
|
288
|
+
## [4.82.79](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.78...@patternfly/react-code-editor@4.82.79) (2022-12-08)
|
|
289
|
+
|
|
290
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
291
|
+
|
|
292
|
+
## 4.82.78 (2022-12-08)
|
|
293
|
+
|
|
294
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
295
|
+
|
|
296
|
+
## 4.82.77 (2022-12-08)
|
|
297
|
+
|
|
298
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
299
|
+
|
|
300
|
+
## [4.82.76](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.75...@patternfly/react-code-editor@4.82.76) (2022-12-07)
|
|
301
|
+
|
|
302
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
303
|
+
|
|
304
|
+
## [4.82.75](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.74...@patternfly/react-code-editor@4.82.75) (2022-12-07)
|
|
305
|
+
|
|
306
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
307
|
+
|
|
308
|
+
## [4.82.74](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.73...@patternfly/react-code-editor@4.82.74) (2022-12-06)
|
|
309
|
+
|
|
310
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
311
|
+
|
|
312
|
+
## [4.82.73](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.72...@patternfly/react-code-editor@4.82.73) (2022-12-06)
|
|
313
|
+
|
|
314
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
315
|
+
|
|
316
|
+
## [4.82.72](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.71...@patternfly/react-code-editor@4.82.72) (2022-12-06)
|
|
317
|
+
|
|
318
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
319
|
+
|
|
320
|
+
## 4.82.71 (2022-12-06)
|
|
321
|
+
|
|
322
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
323
|
+
|
|
324
|
+
## [4.82.70](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.69...@patternfly/react-code-editor@4.82.70) (2022-12-05)
|
|
325
|
+
|
|
326
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
327
|
+
|
|
328
|
+
## 4.82.69 (2022-12-01)
|
|
329
|
+
|
|
330
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
331
|
+
|
|
332
|
+
## 4.82.68 (2022-11-30)
|
|
333
|
+
|
|
334
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
335
|
+
|
|
336
|
+
## [4.82.67](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.66...@patternfly/react-code-editor@4.82.67) (2022-11-16)
|
|
337
|
+
|
|
338
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
339
|
+
|
|
340
|
+
## [4.82.66](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.65...@patternfly/react-code-editor@4.82.66) (2022-11-15)
|
|
341
|
+
|
|
342
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
343
|
+
|
|
344
|
+
## [4.82.65](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.64...@patternfly/react-code-editor@4.82.65) (2022-11-15)
|
|
345
|
+
|
|
346
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
347
|
+
|
|
348
|
+
## [4.82.64](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.63...@patternfly/react-code-editor@4.82.64) (2022-11-09)
|
|
349
|
+
|
|
350
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
351
|
+
|
|
352
|
+
## [4.82.63](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.62...@patternfly/react-code-editor@4.82.63) (2022-11-09)
|
|
353
|
+
|
|
354
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
355
|
+
|
|
356
|
+
## [4.82.62](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.61...@patternfly/react-code-editor@4.82.62) (2022-11-08)
|
|
357
|
+
|
|
358
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
359
|
+
|
|
360
|
+
## [4.82.61](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.60...@patternfly/react-code-editor@4.82.61) (2022-11-07)
|
|
361
|
+
|
|
362
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
363
|
+
|
|
364
|
+
## [4.82.60](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.59...@patternfly/react-code-editor@4.82.60) (2022-11-07)
|
|
365
|
+
|
|
366
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
367
|
+
|
|
368
|
+
## [4.82.59](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.58...@patternfly/react-code-editor@4.82.59) (2022-11-07)
|
|
369
|
+
|
|
370
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
371
|
+
|
|
372
|
+
## [4.82.58](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.57...@patternfly/react-code-editor@4.82.58) (2022-11-04)
|
|
373
|
+
|
|
374
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
375
|
+
|
|
376
|
+
## 4.82.57 (2022-11-04)
|
|
377
|
+
|
|
378
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
379
|
+
|
|
380
|
+
## 4.82.56 (2022-11-01)
|
|
381
|
+
|
|
382
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
383
|
+
|
|
384
|
+
## [4.82.55](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.54...@patternfly/react-code-editor@4.82.55) (2022-10-27)
|
|
385
|
+
|
|
386
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
387
|
+
|
|
388
|
+
## [4.82.54](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.53...@patternfly/react-code-editor@4.82.54) (2022-10-26)
|
|
389
|
+
|
|
390
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
391
|
+
|
|
392
|
+
## [4.82.53](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.52...@patternfly/react-code-editor@4.82.53) (2022-10-26)
|
|
393
|
+
|
|
394
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
395
|
+
|
|
396
|
+
## 4.82.52 (2022-10-25)
|
|
397
|
+
|
|
398
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
399
|
+
|
|
400
|
+
## [4.82.51](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.50...@patternfly/react-code-editor@4.82.51) (2022-10-24)
|
|
401
|
+
|
|
402
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
403
|
+
|
|
404
|
+
## [4.82.50](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.49...@patternfly/react-code-editor@4.82.50) (2022-10-24)
|
|
405
|
+
|
|
406
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
407
|
+
|
|
408
|
+
## [4.82.49](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.48...@patternfly/react-code-editor@4.82.49) (2022-10-24)
|
|
409
|
+
|
|
410
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
411
|
+
|
|
412
|
+
## [4.82.48](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.47...@patternfly/react-code-editor@4.82.48) (2022-10-24)
|
|
413
|
+
|
|
414
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
415
|
+
|
|
416
|
+
## [4.82.47](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.46...@patternfly/react-code-editor@4.82.47) (2022-10-22)
|
|
417
|
+
|
|
418
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
419
|
+
|
|
420
|
+
## [4.82.46](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.45...@patternfly/react-code-editor@4.82.46) (2022-10-21)
|
|
421
|
+
|
|
422
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
423
|
+
|
|
424
|
+
## [4.82.45](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.44...@patternfly/react-code-editor@4.82.45) (2022-10-21)
|
|
425
|
+
|
|
426
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
427
|
+
|
|
428
|
+
## [4.82.44](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.43...@patternfly/react-code-editor@4.82.44) (2022-10-21)
|
|
429
|
+
|
|
430
|
+
### Bug Fixes
|
|
431
|
+
|
|
432
|
+
- **CodeEditor:** use codeEditorControls and clean up overall ([#7931](https://github.com/patternfly/patternfly-react/issues/7931)) ([69d5937](https://github.com/patternfly/patternfly-react/commit/69d5937fd5fa56ace7543a740ba253bdc851009e))
|
|
433
|
+
|
|
434
|
+
## [4.82.43](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.42...@patternfly/react-code-editor@4.82.43) (2022-10-20)
|
|
435
|
+
|
|
436
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
437
|
+
|
|
438
|
+
## [4.82.42](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.41...@patternfly/react-code-editor@4.82.42) (2022-10-19)
|
|
439
|
+
|
|
440
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
441
|
+
|
|
442
|
+
## [4.82.41](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.40...@patternfly/react-code-editor@4.82.41) (2022-10-18)
|
|
443
|
+
|
|
444
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
445
|
+
|
|
446
|
+
## [4.82.40](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.39...@patternfly/react-code-editor@4.82.40) (2022-10-18)
|
|
447
|
+
|
|
448
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
449
|
+
|
|
450
|
+
## [4.82.39](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.38...@patternfly/react-code-editor@4.82.39) (2022-10-17)
|
|
451
|
+
|
|
452
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
453
|
+
|
|
454
|
+
## [4.82.38](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.37...@patternfly/react-code-editor@4.82.38) (2022-10-14)
|
|
455
|
+
|
|
456
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
457
|
+
|
|
458
|
+
## [4.82.37](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.36...@patternfly/react-code-editor@4.82.37) (2022-10-14)
|
|
459
|
+
|
|
460
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
461
|
+
|
|
462
|
+
## [4.82.36](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.35...@patternfly/react-code-editor@4.82.36) (2022-10-14)
|
|
463
|
+
|
|
464
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
465
|
+
|
|
466
|
+
## [4.82.35](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.34...@patternfly/react-code-editor@4.82.35) (2022-10-13)
|
|
467
|
+
|
|
468
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
469
|
+
|
|
470
|
+
## [4.82.34](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.33...@patternfly/react-code-editor@4.82.34) (2022-10-13)
|
|
471
|
+
|
|
472
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
473
|
+
|
|
474
|
+
## [4.82.33](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.32...@patternfly/react-code-editor@4.82.33) (2022-10-13)
|
|
475
|
+
|
|
476
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
477
|
+
|
|
478
|
+
## [4.82.32](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.31...@patternfly/react-code-editor@4.82.32) (2022-10-12)
|
|
479
|
+
|
|
480
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
481
|
+
|
|
482
|
+
## [4.82.31](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.30...@patternfly/react-code-editor@4.82.31) (2022-10-12)
|
|
483
|
+
|
|
484
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
485
|
+
|
|
486
|
+
## [4.82.30](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.29...@patternfly/react-code-editor@4.82.30) (2022-10-12)
|
|
487
|
+
|
|
488
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
489
|
+
|
|
490
|
+
## [4.82.29](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.28...@patternfly/react-code-editor@4.82.29) (2022-10-12)
|
|
491
|
+
|
|
492
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
493
|
+
|
|
494
|
+
## 4.82.28 (2022-10-12)
|
|
495
|
+
|
|
496
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
497
|
+
|
|
498
|
+
## [4.82.27](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.26...@patternfly/react-code-editor@4.82.27) (2022-10-10)
|
|
499
|
+
|
|
500
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
501
|
+
|
|
502
|
+
## [4.82.26](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@4.82.25...@patternfly/react-code-editor@4.82.26) (2022-10-05)
|
|
503
|
+
|
|
504
|
+
# [5.0.0-alpha.6](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.5...@patternfly/react-code-editor@5.0.0-alpha.6) (2023-02-02)
|
|
505
|
+
|
|
506
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
507
|
+
|
|
508
|
+
# [5.0.0-alpha.5](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.4...@patternfly/react-code-editor@5.0.0-alpha.5) (2023-02-02)
|
|
509
|
+
|
|
510
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
511
|
+
|
|
6
512
|
# 5.0.0-alpha.4 (2023-01-18)
|
|
7
513
|
|
|
8
514
|
**Note:** Version bump only for package @patternfly/react-code-editor
|
package/README.md
CHANGED
|
@@ -47,9 +47,9 @@ Install peer deps
|
|
|
47
47
|
```json
|
|
48
48
|
"monaco-editor": "^0.21.3",
|
|
49
49
|
"monaco-editor-webpack-plugin": "^2.1.0",
|
|
50
|
-
"react": "^
|
|
51
|
-
"react-dom": "^
|
|
52
|
-
"react-monaco-editor": "^0.
|
|
50
|
+
"react": "^17 || ^18",
|
|
51
|
+
"react-dom": "^17 || ^18",
|
|
52
|
+
"react-monaco-editor": "^0.51.0"
|
|
53
53
|
```
|
|
54
54
|
|
|
55
55
|
To properly install the library `monaco-editor-webpack-plugin` be sure to follow the [plugin instructions](https://github.com/microsoft/monaco-editor/tree/main/webpack-plugin)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/CodeEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,
|
|
1
|
+
{"version":3,"file":"CodeEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/CodeEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAWL,YAAY,EACZ,eAAe,EAEhB,MAAM,wBAAwB,CAAC;AAChC,OAAqB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAMhE,OAAiB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAIzD,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,oBAAY,QAAQ;IAClB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,CAAC,MAAM;IACP,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,UAAU,eAAe;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M,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,qBAAa,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAC/E,MAAM,CAAC,WAAW,SAAgB;IAClC,OAAO,CAAC,MAAM,CAA6C;IAC3D,OAAO,CAAC,UAAU,CAAqC;IACvD,OAAO,CAAC,GAAG,CAAqC;IAChD,OAAO,CAAC,KAAK,CAAuB;IACpC,OAAO,CAAC,QAAQ,CAAY;IAE5B,MAAM,CAAC,YAAY,EAAE,eAAe,CA6ClC;IAEF,MAAM,CAAC,wBAAwB,CAAC,QAAQ,EAAE,QAAQ;gBAyBtC,KAAK,EAAE,eAAe;IAalC,qBAAqB;IAMrB,QAAQ,EAAE,aAAa,CASrB;IAIF,MAAM,CAAC,wBAAwB,CAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,eAAe;;;;IActF,YAAY,aAIV;IAEF,iBAAiB;IAMjB,oBAAoB;IAKpB,gBAAgB,UAAW,aAAa,UAKtC;IAEF,cAAc,EAAE,cAAc,CAW5B;IAEF,gBAAgB,UAAW,MAAM,YAAY,MAAM,UAMjD;IAEF,qBAAqB,aAA4C;IACjE,sBAAsB,aAA6C;IAEnE,QAAQ,CAAC,UAAU,EAAE,IAAI;IASzB,cAAc,kBAAmB,IAAI,EAAE,UAkBrC;IAEF,cAAc,kBAAmB,aAAa,EAAE,UAK9C;IAEF,QAAQ,aAGN;IAEF,QAAQ,aAQN;IAEF,gBAAgB,aAEd;IAEF,MAAM;CAgNP"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { css } from '@patternfly/react-styles';
|
|
3
3
|
import styles from '@patternfly/react-styles/css/components/CodeEditor/code-editor';
|
|
4
|
-
import { Button, ButtonVariant, EmptyState, EmptyStateBody, EmptyStateIcon,
|
|
4
|
+
import { Button, ButtonVariant, EmptyState, EmptyStateBody, EmptyStateIcon, EmptyStateActions, EmptyStateVariant, EmptyStateFooter, getResizeObserver, Popover, EmptyStateHeader } from '@patternfly/react-core';
|
|
5
5
|
import MonacoEditor from 'react-monaco-editor';
|
|
6
6
|
import CopyIcon from '@patternfly/react-icons/dist/esm/icons/copy-icon';
|
|
7
7
|
import UploadIcon from '@patternfly/react-icons/dist/esm/icons/upload-icon';
|
|
@@ -122,7 +122,7 @@ export class CodeEditor extends React.Component {
|
|
|
122
122
|
this.editorDidMount = (editor, monaco) => {
|
|
123
123
|
// eslint-disable-next-line no-bitwise
|
|
124
124
|
editor.addCommand(monaco.KeyMod.Shift | monaco.KeyCode.Tab, () => this.wrapperRef.current.focus());
|
|
125
|
-
Array.from(document.getElementsByClassName('monaco-editor')).forEach(editorElement => editorElement.removeAttribute('role'));
|
|
125
|
+
Array.from(document.getElementsByClassName('monaco-editor')).forEach((editorElement) => editorElement.removeAttribute('role'));
|
|
126
126
|
this.props.onEditorDidMount(editor, monaco);
|
|
127
127
|
this.editor = editor;
|
|
128
128
|
if (this.props.height === 'sizeToFit') {
|
|
@@ -144,7 +144,7 @@ export class CodeEditor extends React.Component {
|
|
|
144
144
|
this.handleFileChange('', fileHandle.name); // Show the filename while reading
|
|
145
145
|
this.handleFileReadStarted();
|
|
146
146
|
this.readFile(fileHandle)
|
|
147
|
-
.then(data => {
|
|
147
|
+
.then((data) => {
|
|
148
148
|
this.handleFileReadFinished();
|
|
149
149
|
this.toggleEmptyState();
|
|
150
150
|
this.handleFileChange(data, fileHandle.name);
|
|
@@ -259,16 +259,18 @@ export class CodeEditor extends React.Component {
|
|
|
259
259
|
} }, optionsProp);
|
|
260
260
|
return (React.createElement(Dropzone, { multiple: false, onDropAccepted: this.onDropAccepted, onDropRejected: this.onDropRejected }, ({ getRootProps, getInputProps, isDragActive, open }) => {
|
|
261
261
|
const emptyState = providedEmptyState ||
|
|
262
|
-
(isUploadEnabled ? (React.createElement(EmptyState, { variant: EmptyStateVariant.
|
|
263
|
-
React.createElement(EmptyStateIcon, { icon: CodeIcon }),
|
|
264
|
-
React.createElement(Title, { headingLevel: "h4", size: "lg" }, emptyStateTitle),
|
|
262
|
+
(isUploadEnabled ? (React.createElement(EmptyState, { variant: EmptyStateVariant.sm },
|
|
263
|
+
React.createElement(EmptyStateHeader, { titleText: emptyStateTitle, icon: React.createElement(EmptyStateIcon, { icon: CodeIcon }), headingLevel: "h4" }),
|
|
265
264
|
React.createElement(EmptyStateBody, null, emptyStateBody),
|
|
266
|
-
React.createElement(
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
React.createElement(
|
|
265
|
+
React.createElement(EmptyStateFooter, null,
|
|
266
|
+
React.createElement(EmptyStateActions, null,
|
|
267
|
+
React.createElement(Button, { variant: "primary", onClick: open }, emptyStateButton)),
|
|
268
|
+
React.createElement(EmptyStateActions, null,
|
|
269
|
+
React.createElement(Button, { variant: "link", onClick: this.toggleEmptyState }, emptyStateLink))))) : (React.createElement(EmptyState, { variant: EmptyStateVariant.sm },
|
|
270
|
+
React.createElement(EmptyStateHeader, { titleText: emptyStateTitle, icon: React.createElement(EmptyStateIcon, { icon: CodeIcon }), headingLevel: "h4" }),
|
|
271
|
+
React.createElement(EmptyStateFooter, null,
|
|
272
|
+
React.createElement(EmptyStateActions, null,
|
|
273
|
+
React.createElement(Button, { variant: "primary", onClick: this.toggleEmptyState }, emptyStateLink))))));
|
|
272
274
|
const tooltipProps = {
|
|
273
275
|
position: toolTipPosition,
|
|
274
276
|
exitDelay: toolTipDelay,
|
|
@@ -294,7 +296,7 @@ export class CodeEditor extends React.Component {
|
|
|
294
296
|
const editor = (React.createElement("div", { className: css(styles.codeEditorCode), ref: this.wrapperRef, tabIndex: 0 },
|
|
295
297
|
React.createElement(MonacoEditor, { height: height, width: width, language: language, value: value, options: options, overrideServices: overrideServices, onChange: this.onChange, editorDidMount: this.editorDidMount, theme: isDarkTheme ? 'vs-dark' : 'vs-light' })));
|
|
296
298
|
return (React.createElement("div", { className: css(styles.codeEditor, isReadOnly && styles.modifiers.readOnly, className), ref: this.ref }, isUploadEnabled || providedEmptyState ? (React.createElement("div", Object.assign({}, getRootProps({
|
|
297
|
-
onClick: event => event.preventDefault() // Prevents clicking TextArea from opening file dialog
|
|
299
|
+
onClick: (event) => event.preventDefault() // Prevents clicking TextArea from opening file dialog
|
|
298
300
|
}), { className: `pf-c-file-upload ${isDragActive && 'pf-m-drag-hover'} ${isLoading && 'pf-m-loading'}` }),
|
|
299
301
|
editorHeader,
|
|
300
302
|
React.createElement("div", { className: css(styles.codeEditorMain) },
|