File tree 6 files changed +15
-0
lines changed
6 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 20
20
"css-loader" : " ^7.1.2" ,
21
21
"html-webpack-plugin" : " ^5.6.2" ,
22
22
"jest" : " ^29.7.0" ,
23
+ "monaco-editor" : " ^0.52.0" ,
23
24
"monaco-editor-webpack-plugin" : " ^7.1.0" ,
24
25
"style-loader" : " ^4.0.0" ,
25
26
"swc-loader" : " ^0.2.6" ,
Original file line number Diff line number Diff line change 47
47
"eslint-plugin-react-hooks" : " ^5.0.0" ,
48
48
"eslint-plugin-testing-library" : " ^6.4.0" ,
49
49
"prettier" : " 3.3.3" ,
50
+ "typescript" : " ^5.4.5" ,
50
51
"typescript-eslint" : " ^8.11.0"
51
52
},
52
53
"config" : {
Original file line number Diff line number Diff line change 37
37
"@hawtio/camel-model-v4_8" : " npm:@hawtio/camel-model@~4.8.0" ,
38
38
"@jolokia.js/simple" : " ^2.1.7" ,
39
39
"@module-federation/utilities" : " ^3.1.16" ,
40
+ "@monaco-editor/react" : " ^4.6.0" ,
40
41
"@patternfly/react-charts" : " ~7.3.0" ,
41
42
"@patternfly/react-code-editor" : " ~5.3.3" ,
42
43
"@patternfly/react-core" : " ~5.3.3" ,
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ import { doSendMessage } from './endpoints-service'
30
30
// TODO: Parameterise the version of Camel mode for the exchange headers
31
31
import { headers as exchangeHeaders } from './exchange-headers-camel-model.json'
32
32
33
+ import { loader } from '@monaco-editor/react'
34
+
35
+ loader . config ( { monaco : monacoEditor } )
36
+
33
37
export const SendMessage : React . FunctionComponent = ( ) => {
34
38
const { selectedNode } = useContext ( CamelContext )
35
39
const messageHeaders = useRef < { name : string ; value : string } [ ] > ( [ ] )
Original file line number Diff line number Diff line change @@ -8,6 +8,11 @@ import { routesService } from './routes-service'
8
8
import { eventService } from '@hawtiosrc/core'
9
9
import { Alert , AlertActionCloseButton , AlertVariant } from '@patternfly/react-core'
10
10
11
+ import * as monaco from 'monaco-editor'
12
+ import { loader } from '@monaco-editor/react'
13
+
14
+ loader . config ( { monaco } )
15
+
11
16
export const Source : React . FunctionComponent = ( ) => {
12
17
const { selectedNode } = useContext ( CamelContext )
13
18
const [ xmlSource , setXmlSource ] = useState ( '' )
Original file line number Diff line number Diff line change @@ -2016,6 +2016,7 @@ __metadata:
2016
2016
eslint-plugin-react-hooks: "npm:^5.0.0"
2017
2017
eslint-plugin-testing-library: "npm:^6.4.0"
2018
2018
prettier: "npm:3.3.3"
2019
+ typescript: "npm:^5.4.5"
2019
2020
typescript-eslint: "npm:^8.11.0"
2020
2021
languageName: unknown
2021
2022
linkType: soft
@@ -2028,6 +2029,7 @@ __metadata:
2028
2029
"@hawtio/camel-model-v4_8": "npm:@hawtio/camel-model@~4.8.0"
2029
2030
"@jolokia.js/simple": "npm:^2.1.7"
2030
2031
"@module-federation/utilities": "npm:^3.1.16"
2032
+ "@monaco-editor/react": "npm:^4.6.0"
2031
2033
"@patternfly/react-charts": "npm:~7.3.0"
2032
2034
"@patternfly/react-code-editor": "npm:~5.3.3"
2033
2035
"@patternfly/react-core": "npm:~5.3.3"
@@ -4742,6 +4744,7 @@ __metadata:
4742
4744
css-loader: "npm:^7.1.2"
4743
4745
html-webpack-plugin: "npm:^5.6.2"
4744
4746
jest: "npm:^29.7.0"
4747
+ monaco-editor: "npm:^0.52.0"
4745
4748
monaco-editor-webpack-plugin: "npm:^7.1.0"
4746
4749
react: "npm:^18.3.1"
4747
4750
react-dom: "npm:^18.3.1"
You can’t perform that action at this time.
0 commit comments