@patternfly/react-code-editor 5.0.0-alpha.13 → 5.0.0-alpha.131
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 +488 -0
- package/README.md +3 -3
- package/dist/esm/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/esm/components/CodeEditor/CodeEditor.js +17 -15
- package/dist/esm/components/CodeEditor/CodeEditor.js.map +1 -1
- package/dist/js/components/CodeEditor/CodeEditor.d.ts.map +1 -1
- package/dist/js/components/CodeEditor/CodeEditor.js +16 -14
- package/dist/js/components/CodeEditor/CodeEditor.js.map +1 -1
- package/package.json +8 -8
- package/src/components/CodeEditor/CodeEditor.tsx +40 -29
- package/src/components/CodeEditor/__test__/CodeEditor.test.tsx +14 -0
- package/src/components/CodeEditor/__test__/__snapshots__/CodeEditor.test.tsx.snap +40 -49
- package/src/components/CodeEditor/examples/CodeEditorBasic.tsx +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,494 @@
|
|
|
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.131](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.130...@patternfly/react-code-editor@5.0.0-alpha.131) (2023-06-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
9
|
+
|
|
10
|
+
# [5.0.0-alpha.130](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.129...@patternfly/react-code-editor@5.0.0-alpha.130) (2023-06-01)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
13
|
+
|
|
14
|
+
# [5.0.0-alpha.129](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.128...@patternfly/react-code-editor@5.0.0-alpha.129) (2023-06-01)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
17
|
+
|
|
18
|
+
# [5.0.0-alpha.128](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.127...@patternfly/react-code-editor@5.0.0-alpha.128) (2023-05-31)
|
|
19
|
+
|
|
20
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
21
|
+
|
|
22
|
+
# 5.0.0-alpha.127 (2023-05-31)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
25
|
+
|
|
26
|
+
# [5.0.0-alpha.126](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.125...@patternfly/react-code-editor@5.0.0-alpha.126) (2023-05-31)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
29
|
+
|
|
30
|
+
# [5.0.0-alpha.125](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.124...@patternfly/react-code-editor@5.0.0-alpha.125) (2023-05-31)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
33
|
+
|
|
34
|
+
# [5.0.0-alpha.124](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.123...@patternfly/react-code-editor@5.0.0-alpha.124) (2023-05-31)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
37
|
+
|
|
38
|
+
# [5.0.0-alpha.123](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.122...@patternfly/react-code-editor@5.0.0-alpha.123) (2023-05-30)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
41
|
+
|
|
42
|
+
# [5.0.0-alpha.122](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.121...@patternfly/react-code-editor@5.0.0-alpha.122) (2023-05-30)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
45
|
+
|
|
46
|
+
# [5.0.0-alpha.121](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.120...@patternfly/react-code-editor@5.0.0-alpha.121) (2023-05-26)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
49
|
+
|
|
50
|
+
# [5.0.0-alpha.120](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.119...@patternfly/react-code-editor@5.0.0-alpha.120) (2023-05-25)
|
|
51
|
+
|
|
52
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
53
|
+
|
|
54
|
+
# [5.0.0-alpha.119](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.118...@patternfly/react-code-editor@5.0.0-alpha.119) (2023-05-25)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
57
|
+
|
|
58
|
+
# [5.0.0-alpha.118](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.117...@patternfly/react-code-editor@5.0.0-alpha.118) (2023-05-25)
|
|
59
|
+
|
|
60
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
61
|
+
|
|
62
|
+
# 5.0.0-alpha.117 (2023-05-23)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
65
|
+
|
|
66
|
+
# [5.0.0-alpha.116](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.115...@patternfly/react-code-editor@5.0.0-alpha.116) (2023-05-19)
|
|
67
|
+
|
|
68
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
69
|
+
|
|
70
|
+
# [5.0.0-alpha.115](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.114...@patternfly/react-code-editor@5.0.0-alpha.115) (2023-05-18)
|
|
71
|
+
|
|
72
|
+
### Bug Fixes
|
|
73
|
+
|
|
74
|
+
- **Multiple:** update old component classnames ([#9139](https://github.com/patternfly/patternfly-react/issues/9139)) ([8fbd940](https://github.com/patternfly/patternfly-react/commit/8fbd9401cd27cb84e73722292a2765781a46a6f7))
|
|
75
|
+
|
|
76
|
+
# [5.0.0-alpha.114](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.113...@patternfly/react-code-editor@5.0.0-alpha.114) (2023-05-18)
|
|
77
|
+
|
|
78
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
79
|
+
|
|
80
|
+
# [5.0.0-alpha.113](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.112...@patternfly/react-code-editor@5.0.0-alpha.113) (2023-05-18)
|
|
81
|
+
|
|
82
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
83
|
+
|
|
84
|
+
# [5.0.0-alpha.112](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.111...@patternfly/react-code-editor@5.0.0-alpha.112) (2023-05-18)
|
|
85
|
+
|
|
86
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
87
|
+
|
|
88
|
+
# [5.0.0-alpha.111](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.110...@patternfly/react-code-editor@5.0.0-alpha.111) (2023-05-18)
|
|
89
|
+
|
|
90
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
91
|
+
|
|
92
|
+
# [5.0.0-alpha.110](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.109...@patternfly/react-code-editor@5.0.0-alpha.110) (2023-05-18)
|
|
93
|
+
|
|
94
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
95
|
+
|
|
96
|
+
# [5.0.0-alpha.109](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.108...@patternfly/react-code-editor@5.0.0-alpha.109) (2023-05-18)
|
|
97
|
+
|
|
98
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
99
|
+
|
|
100
|
+
# [5.0.0-alpha.108](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.107...@patternfly/react-code-editor@5.0.0-alpha.108) (2023-05-17)
|
|
101
|
+
|
|
102
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
103
|
+
|
|
104
|
+
# [5.0.0-alpha.107](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.106...@patternfly/react-code-editor@5.0.0-alpha.107) (2023-05-17)
|
|
105
|
+
|
|
106
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
107
|
+
|
|
108
|
+
# [5.0.0-alpha.106](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.105...@patternfly/react-code-editor@5.0.0-alpha.106) (2023-05-17)
|
|
109
|
+
|
|
110
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
111
|
+
|
|
112
|
+
# [5.0.0-alpha.105](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.104...@patternfly/react-code-editor@5.0.0-alpha.105) (2023-05-17)
|
|
113
|
+
|
|
114
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
115
|
+
|
|
116
|
+
# [5.0.0-alpha.104](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.103...@patternfly/react-code-editor@5.0.0-alpha.104) (2023-05-17)
|
|
117
|
+
|
|
118
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
119
|
+
|
|
120
|
+
# [5.0.0-alpha.103](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.102...@patternfly/react-code-editor@5.0.0-alpha.103) (2023-05-16)
|
|
121
|
+
|
|
122
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
123
|
+
|
|
124
|
+
# [5.0.0-alpha.102](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.101...@patternfly/react-code-editor@5.0.0-alpha.102) (2023-05-16)
|
|
125
|
+
|
|
126
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
127
|
+
|
|
128
|
+
# [5.0.0-alpha.101](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.100...@patternfly/react-code-editor@5.0.0-alpha.101) (2023-05-16)
|
|
129
|
+
|
|
130
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
131
|
+
|
|
132
|
+
# [5.0.0-alpha.100](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.99...@patternfly/react-code-editor@5.0.0-alpha.100) (2023-05-15)
|
|
133
|
+
|
|
134
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
135
|
+
|
|
136
|
+
# [5.0.0-alpha.99](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.98...@patternfly/react-code-editor@5.0.0-alpha.99) (2023-05-11)
|
|
137
|
+
|
|
138
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
139
|
+
|
|
140
|
+
# [5.0.0-alpha.98](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.97...@patternfly/react-code-editor@5.0.0-alpha.98) (2023-05-11)
|
|
141
|
+
|
|
142
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
143
|
+
|
|
144
|
+
# [5.0.0-alpha.97](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.96...@patternfly/react-code-editor@5.0.0-alpha.97) (2023-05-11)
|
|
145
|
+
|
|
146
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
147
|
+
|
|
148
|
+
# [5.0.0-alpha.96](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.95...@patternfly/react-code-editor@5.0.0-alpha.96) (2023-05-09)
|
|
149
|
+
|
|
150
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
151
|
+
|
|
152
|
+
# [5.0.0-alpha.95](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.94...@patternfly/react-code-editor@5.0.0-alpha.95) (2023-05-09)
|
|
153
|
+
|
|
154
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
155
|
+
|
|
156
|
+
# 5.0.0-alpha.94 (2023-05-08)
|
|
157
|
+
|
|
158
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
159
|
+
|
|
160
|
+
# [5.0.0-alpha.93](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.92...@patternfly/react-code-editor@5.0.0-alpha.93) (2023-05-08)
|
|
161
|
+
|
|
162
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
163
|
+
|
|
164
|
+
# [5.0.0-alpha.92](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.91...@patternfly/react-code-editor@5.0.0-alpha.92) (2023-05-05)
|
|
165
|
+
|
|
166
|
+
### Bug Fixes
|
|
167
|
+
|
|
168
|
+
- **deps:** updated Core for v5 versioning ([#9075](https://github.com/patternfly/patternfly-react/issues/9075)) ([3879fc7](https://github.com/patternfly/patternfly-react/commit/3879fc757aefeed80b0694365aa20d5ca856a797))
|
|
169
|
+
|
|
170
|
+
# [5.0.0-alpha.91](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.90...@patternfly/react-code-editor@5.0.0-alpha.91) (2023-05-05)
|
|
171
|
+
|
|
172
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
173
|
+
|
|
174
|
+
# 5.0.0-alpha.90 (2023-05-04)
|
|
175
|
+
|
|
176
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
177
|
+
|
|
178
|
+
# [5.0.0-alpha.89](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.88...@patternfly/react-code-editor@5.0.0-alpha.89) (2023-05-03)
|
|
179
|
+
|
|
180
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
181
|
+
|
|
182
|
+
# [5.0.0-alpha.88](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.87...@patternfly/react-code-editor@5.0.0-alpha.88) (2023-05-03)
|
|
183
|
+
|
|
184
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
185
|
+
|
|
186
|
+
# [5.0.0-alpha.87](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.86...@patternfly/react-code-editor@5.0.0-alpha.87) (2023-05-03)
|
|
187
|
+
|
|
188
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
189
|
+
|
|
190
|
+
# [5.0.0-alpha.86](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.85...@patternfly/react-code-editor@5.0.0-alpha.86) (2023-05-02)
|
|
191
|
+
|
|
192
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
193
|
+
|
|
194
|
+
# [5.0.0-alpha.85](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.84...@patternfly/react-code-editor@5.0.0-alpha.85) (2023-05-02)
|
|
195
|
+
|
|
196
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
197
|
+
|
|
198
|
+
# [5.0.0-alpha.84](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.83...@patternfly/react-code-editor@5.0.0-alpha.84) (2023-04-28)
|
|
199
|
+
|
|
200
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
201
|
+
|
|
202
|
+
# [5.0.0-alpha.83](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.82...@patternfly/react-code-editor@5.0.0-alpha.83) (2023-04-27)
|
|
203
|
+
|
|
204
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
205
|
+
|
|
206
|
+
# [5.0.0-alpha.82](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.81...@patternfly/react-code-editor@5.0.0-alpha.82) (2023-04-27)
|
|
207
|
+
|
|
208
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
209
|
+
|
|
210
|
+
# [5.0.0-alpha.81](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.80...@patternfly/react-code-editor@5.0.0-alpha.81) (2023-04-27)
|
|
211
|
+
|
|
212
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
213
|
+
|
|
214
|
+
# [5.0.0-alpha.80](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.79...@patternfly/react-code-editor@5.0.0-alpha.80) (2023-04-27)
|
|
215
|
+
|
|
216
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
217
|
+
|
|
218
|
+
# [5.0.0-alpha.79](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.78...@patternfly/react-code-editor@5.0.0-alpha.79) (2023-04-26)
|
|
219
|
+
|
|
220
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
221
|
+
|
|
222
|
+
# [5.0.0-alpha.78](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.77...@patternfly/react-code-editor@5.0.0-alpha.78) (2023-04-25)
|
|
223
|
+
|
|
224
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
225
|
+
|
|
226
|
+
# [5.0.0-alpha.77](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.76...@patternfly/react-code-editor@5.0.0-alpha.77) (2023-04-25)
|
|
227
|
+
|
|
228
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
229
|
+
|
|
230
|
+
# [5.0.0-alpha.76](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.75...@patternfly/react-code-editor@5.0.0-alpha.76) (2023-04-24)
|
|
231
|
+
|
|
232
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
233
|
+
|
|
234
|
+
# [5.0.0-alpha.75](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.74...@patternfly/react-code-editor@5.0.0-alpha.75) (2023-04-20)
|
|
235
|
+
|
|
236
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
237
|
+
|
|
238
|
+
# [5.0.0-alpha.74](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.73...@patternfly/react-code-editor@5.0.0-alpha.74) (2023-04-19)
|
|
239
|
+
|
|
240
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
241
|
+
|
|
242
|
+
# [5.0.0-alpha.73](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.72...@patternfly/react-code-editor@5.0.0-alpha.73) (2023-04-17)
|
|
243
|
+
|
|
244
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
245
|
+
|
|
246
|
+
# [5.0.0-alpha.72](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.71...@patternfly/react-code-editor@5.0.0-alpha.72) (2023-04-17)
|
|
247
|
+
|
|
248
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
249
|
+
|
|
250
|
+
# [5.0.0-alpha.71](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.70...@patternfly/react-code-editor@5.0.0-alpha.71) (2023-04-14)
|
|
251
|
+
|
|
252
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
253
|
+
|
|
254
|
+
# [5.0.0-alpha.70](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.69...@patternfly/react-code-editor@5.0.0-alpha.70) (2023-04-14)
|
|
255
|
+
|
|
256
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
257
|
+
|
|
258
|
+
# [5.0.0-alpha.69](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.68...@patternfly/react-code-editor@5.0.0-alpha.69) (2023-04-13)
|
|
259
|
+
|
|
260
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
261
|
+
|
|
262
|
+
# [5.0.0-alpha.68](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.67...@patternfly/react-code-editor@5.0.0-alpha.68) (2023-04-13)
|
|
263
|
+
|
|
264
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
265
|
+
|
|
266
|
+
# [5.0.0-alpha.67](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.66...@patternfly/react-code-editor@5.0.0-alpha.67) (2023-04-13)
|
|
267
|
+
|
|
268
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
269
|
+
|
|
270
|
+
# [5.0.0-alpha.66](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.65...@patternfly/react-code-editor@5.0.0-alpha.66) (2023-04-12)
|
|
271
|
+
|
|
272
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
273
|
+
|
|
274
|
+
# 5.0.0-alpha.65 (2023-04-12)
|
|
275
|
+
|
|
276
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
277
|
+
|
|
278
|
+
# [5.0.0-alpha.64](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.63...@patternfly/react-code-editor@5.0.0-alpha.64) (2023-04-11)
|
|
279
|
+
|
|
280
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
281
|
+
|
|
282
|
+
# [5.0.0-alpha.63](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.62...@patternfly/react-code-editor@5.0.0-alpha.63) (2023-04-11)
|
|
283
|
+
|
|
284
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
285
|
+
|
|
286
|
+
# [5.0.0-alpha.62](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.61...@patternfly/react-code-editor@5.0.0-alpha.62) (2023-04-11)
|
|
287
|
+
|
|
288
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
289
|
+
|
|
290
|
+
# 5.0.0-alpha.61 (2023-04-10)
|
|
291
|
+
|
|
292
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
293
|
+
|
|
294
|
+
# [5.0.0-alpha.60](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.59...@patternfly/react-code-editor@5.0.0-alpha.60) (2023-04-07)
|
|
295
|
+
|
|
296
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
297
|
+
|
|
298
|
+
# [5.0.0-alpha.59](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.58...@patternfly/react-code-editor@5.0.0-alpha.59) (2023-04-06)
|
|
299
|
+
|
|
300
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
301
|
+
|
|
302
|
+
# [5.0.0-alpha.58](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.57...@patternfly/react-code-editor@5.0.0-alpha.58) (2023-04-05)
|
|
303
|
+
|
|
304
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
305
|
+
|
|
306
|
+
# [5.0.0-alpha.57](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.56...@patternfly/react-code-editor@5.0.0-alpha.57) (2023-04-05)
|
|
307
|
+
|
|
308
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
309
|
+
|
|
310
|
+
# [5.0.0-alpha.56](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.55...@patternfly/react-code-editor@5.0.0-alpha.56) (2023-04-05)
|
|
311
|
+
|
|
312
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
313
|
+
|
|
314
|
+
# [5.0.0-alpha.55](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.54...@patternfly/react-code-editor@5.0.0-alpha.55) (2023-04-05)
|
|
315
|
+
|
|
316
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
317
|
+
|
|
318
|
+
# [5.0.0-alpha.54](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.53...@patternfly/react-code-editor@5.0.0-alpha.54) (2023-04-05)
|
|
319
|
+
|
|
320
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
321
|
+
|
|
322
|
+
# [5.0.0-alpha.53](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.52...@patternfly/react-code-editor@5.0.0-alpha.53) (2023-04-04)
|
|
323
|
+
|
|
324
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
325
|
+
|
|
326
|
+
# [5.0.0-alpha.52](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.51...@patternfly/react-code-editor@5.0.0-alpha.52) (2023-04-03)
|
|
327
|
+
|
|
328
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
329
|
+
|
|
330
|
+
# [5.0.0-alpha.51](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.50...@patternfly/react-code-editor@5.0.0-alpha.51) (2023-03-27)
|
|
331
|
+
|
|
332
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
333
|
+
|
|
334
|
+
# 5.0.0-alpha.50 (2023-03-27)
|
|
335
|
+
|
|
336
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
337
|
+
|
|
338
|
+
# [5.0.0-alpha.49](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.48...@patternfly/react-code-editor@5.0.0-alpha.49) (2023-03-24)
|
|
339
|
+
|
|
340
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
341
|
+
|
|
342
|
+
# [5.0.0-alpha.48](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.47...@patternfly/react-code-editor@5.0.0-alpha.48) (2023-03-24)
|
|
343
|
+
|
|
344
|
+
### Bug Fixes
|
|
345
|
+
|
|
346
|
+
- **CodeEditor:** fix typo in README ([#8849](https://github.com/patternfly/patternfly-react/issues/8849)) ([4579484](https://github.com/patternfly/patternfly-react/commit/4579484257d866e75b22325349f19940fb17c631))
|
|
347
|
+
|
|
348
|
+
# [5.0.0-alpha.47](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.46...@patternfly/react-code-editor@5.0.0-alpha.47) (2023-03-24)
|
|
349
|
+
|
|
350
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
351
|
+
|
|
352
|
+
# [5.0.0-alpha.46](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.45...@patternfly/react-code-editor@5.0.0-alpha.46) (2023-03-24)
|
|
353
|
+
|
|
354
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
355
|
+
|
|
356
|
+
# [5.0.0-alpha.45](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.44...@patternfly/react-code-editor@5.0.0-alpha.45) (2023-03-23)
|
|
357
|
+
|
|
358
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
359
|
+
|
|
360
|
+
# [5.0.0-alpha.44](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.43...@patternfly/react-code-editor@5.0.0-alpha.44) (2023-03-23)
|
|
361
|
+
|
|
362
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
363
|
+
|
|
364
|
+
# [5.0.0-alpha.43](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.42...@patternfly/react-code-editor@5.0.0-alpha.43) (2023-03-22)
|
|
365
|
+
|
|
366
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
367
|
+
|
|
368
|
+
# 5.0.0-alpha.42 (2023-03-21)
|
|
369
|
+
|
|
370
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
371
|
+
|
|
372
|
+
# [5.0.0-alpha.41](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-code-editor@5.0.0-alpha.40...@patternfly/react-code-editor@5.0.0-alpha.41) (2023-03-20)
|
|
373
|
+
|
|
374
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
375
|
+
|
|
376
|
+
# [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)
|
|
377
|
+
|
|
378
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
379
|
+
|
|
380
|
+
# [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)
|
|
381
|
+
|
|
382
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
383
|
+
|
|
384
|
+
# [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)
|
|
385
|
+
|
|
386
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
387
|
+
|
|
388
|
+
# [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)
|
|
389
|
+
|
|
390
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
391
|
+
|
|
392
|
+
# [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)
|
|
393
|
+
|
|
394
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
395
|
+
|
|
396
|
+
# [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)
|
|
397
|
+
|
|
398
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
399
|
+
|
|
400
|
+
# [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)
|
|
401
|
+
|
|
402
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
403
|
+
|
|
404
|
+
# [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)
|
|
405
|
+
|
|
406
|
+
- 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)
|
|
407
|
+
|
|
408
|
+
### BREAKING CHANGES
|
|
409
|
+
|
|
410
|
+
- closes #8555, fixes #8455
|
|
411
|
+
|
|
412
|
+
- docs(EmptyState): updated examples
|
|
413
|
+
|
|
414
|
+
updated examples of EmptyState usage on the PatternFly web to use new API
|
|
415
|
+
|
|
416
|
+
# [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)
|
|
417
|
+
|
|
418
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
419
|
+
|
|
420
|
+
# [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)
|
|
421
|
+
|
|
422
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
423
|
+
|
|
424
|
+
# [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)
|
|
425
|
+
|
|
426
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
427
|
+
|
|
428
|
+
# [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)
|
|
429
|
+
|
|
430
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
431
|
+
|
|
432
|
+
# [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)
|
|
433
|
+
|
|
434
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
435
|
+
|
|
436
|
+
# [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)
|
|
437
|
+
|
|
438
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
439
|
+
|
|
440
|
+
# [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)
|
|
441
|
+
|
|
442
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
443
|
+
|
|
444
|
+
# [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)
|
|
445
|
+
|
|
446
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
447
|
+
|
|
448
|
+
# [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)
|
|
449
|
+
|
|
450
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
451
|
+
|
|
452
|
+
# [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)
|
|
453
|
+
|
|
454
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
455
|
+
|
|
456
|
+
# [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)
|
|
457
|
+
|
|
458
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
459
|
+
|
|
460
|
+
# [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)
|
|
461
|
+
|
|
462
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
463
|
+
|
|
464
|
+
# 5.0.0-alpha.20 (2023-03-02)
|
|
465
|
+
|
|
466
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
467
|
+
|
|
468
|
+
# [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)
|
|
469
|
+
|
|
470
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
471
|
+
|
|
472
|
+
# [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)
|
|
473
|
+
|
|
474
|
+
### Features
|
|
475
|
+
|
|
476
|
+
- **Checkbox:** changed order of onChange params ([#8750](https://github.com/patternfly/patternfly-react/issues/8750)) ([0a87f55](https://github.com/patternfly/patternfly-react/commit/0a87f554e4cf3abb99de8f2ccd53737f0cf489b1))
|
|
477
|
+
|
|
478
|
+
# [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)
|
|
479
|
+
|
|
480
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
481
|
+
|
|
482
|
+
# [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)
|
|
483
|
+
|
|
484
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
485
|
+
|
|
486
|
+
# [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)
|
|
487
|
+
|
|
488
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
489
|
+
|
|
490
|
+
# 5.0.0-alpha.14 (2023-02-22)
|
|
491
|
+
|
|
492
|
+
**Note:** Version bump only for package @patternfly/react-code-editor
|
|
493
|
+
|
|
6
494
|
# [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)
|
|
7
495
|
|
|
8
496
|
**Note:** Version bump only for package @patternfly/react-code-editor
|
package/README.md
CHANGED
|
@@ -47,8 +47,8 @@ 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": "^
|
|
50
|
+
"react": "^17 || ^18",
|
|
51
|
+
"react-dom": "^17 || ^18",
|
|
52
52
|
"react-monaco-editor": "^0.51.0"
|
|
53
53
|
```
|
|
54
54
|
|
|
@@ -72,7 +72,7 @@ Next, replace all of the `react-script` references in your `package.json` `scrip
|
|
|
72
72
|
}
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
Next, create a `config-
|
|
75
|
+
Next, create a `config-overrides.js` file at the root of your project and add the following:
|
|
76
76
|
|
|
77
77
|
```javascript
|
|
78
78
|
const MonacoWebpackPlugin = require('monaco-editor-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,E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AAC,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,
|
|
@@ -284,7 +286,7 @@ export class CodeEditor extends React.Component {
|
|
|
284
286
|
isDownloadEnabled && (!showEmptyState || !!value) && (React.createElement(CodeEditorControl, { icon: React.createElement(DownloadIcon, null), "aria-label": downloadButtonAriaLabel, tooltipProps: Object.assign({ content: React.createElement("div", null, downloadButtonToolTipText) }, tooltipProps), onClick: this.download })),
|
|
285
287
|
customControls && customControls)),
|
|
286
288
|
React.createElement("div", { className: css(styles.codeEditorHeaderMain) }, headerMainContent),
|
|
287
|
-
!!shortcutsPopoverProps.bodyContent && (React.createElement("div", { className: "pf-c-code-editor__keyboard-shortcuts" },
|
|
289
|
+
!!shortcutsPopoverProps.bodyContent && (React.createElement("div", { className: "pf-v5-c-code-editor__keyboard-shortcuts" },
|
|
288
290
|
React.createElement(Popover, Object.assign({}, shortcutsPopoverProps),
|
|
289
291
|
React.createElement(Button, { variant: ButtonVariant.link, icon: React.createElement(HelpIcon, null) }, shortcutsPopoverButtonText)))),
|
|
290
292
|
isLanguageLabelVisible && (React.createElement("div", { className: css(styles.codeEditorTab) },
|
|
@@ -294,8 +296,8 @@ 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
|
|
298
|
-
}), { className: `pf-c-file-upload ${isDragActive && 'pf-m-drag-hover'} ${isLoading && 'pf-m-loading'}` }),
|
|
299
|
+
onClick: (event) => event.preventDefault() // Prevents clicking TextArea from opening file dialog
|
|
300
|
+
}), { className: `pf-v5-c-file-upload ${isDragActive && 'pf-m-drag-hover'} ${isLoading && 'pf-m-loading'}` }),
|
|
299
301
|
editorHeader,
|
|
300
302
|
React.createElement("div", { className: css(styles.codeEditorMain) },
|
|
301
303
|
React.createElement("input", Object.assign({}, getInputProps())),
|