@react-fabric/monaco 1.0.0-beta.20 → 1.0.0-beta.22
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.
|
@@ -155,10 +155,11 @@ var CodeEditor = function CodeEditor(_ref) {
|
|
|
155
155
|
});
|
|
156
156
|
}, []);
|
|
157
157
|
return /*#__PURE__*/jsxRuntime.jsx(core.Section, {
|
|
158
|
+
className: "relative",
|
|
158
159
|
children: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
159
160
|
ref: containerRef,
|
|
160
161
|
"data-testid": "code-editor",
|
|
161
|
-
className: classNames(CodeEditor_module.codeEditor, "
|
|
162
|
+
className: classNames(CodeEditor_module.codeEditor, "absolute inset-0"),
|
|
162
163
|
children: /*#__PURE__*/jsxRuntime.jsx(MonacoEditor, {
|
|
163
164
|
editorDidMount: function editorDidMount(e, m) {
|
|
164
165
|
return [!!e && setEditorRef(e), !!m && setMonacoRef(m)];
|
|
@@ -155,10 +155,11 @@ var CodeEditor = function CodeEditor(_ref) {
|
|
|
155
155
|
});
|
|
156
156
|
}, []);
|
|
157
157
|
return /*#__PURE__*/jsx(Section, {
|
|
158
|
+
className: "relative",
|
|
158
159
|
children: /*#__PURE__*/jsx("div", {
|
|
159
160
|
ref: containerRef,
|
|
160
161
|
"data-testid": "code-editor",
|
|
161
|
-
className: classNames(classes.codeEditor, "
|
|
162
|
+
className: classNames(classes.codeEditor, "absolute inset-0"),
|
|
162
163
|
children: /*#__PURE__*/jsx(MonacoEditor, {
|
|
163
164
|
editorDidMount: function editorDidMount(e, m) {
|
|
164
165
|
return [!!e && setEditorRef(e), !!m && setMonacoRef(m)];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-fabric/monaco",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.22",
|
|
4
4
|
"description": "RUF: Monaco editor",
|
|
5
5
|
"author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"watch": "npm-run-all -p watch:rollup watch:dts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@react-fabric/core": "^1.0.0-beta.
|
|
37
|
-
"@react-fabric/utilities": "^1.0.0-beta.
|
|
36
|
+
"@react-fabric/core": "^1.0.0-beta.22",
|
|
37
|
+
"@react-fabric/utilities": "^1.0.0-beta.22",
|
|
38
38
|
"classnames": "^2.5.1",
|
|
39
39
|
"monaco-editor": "^0.52.0",
|
|
40
40
|
"react-monaco-editor": "^0.56.2"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"node": ">=18.12.0",
|
|
50
50
|
"npm": ">=8.19.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "71904746bcfbbb6b4ee39c5fc7a00c8f4a18a052"
|
|
53
53
|
}
|
|
@@ -223,11 +223,11 @@ export const CodeEditor = ({
|
|
|
223
223
|
}, []);
|
|
224
224
|
|
|
225
225
|
return (
|
|
226
|
-
<Section>
|
|
226
|
+
<Section className="relative">
|
|
227
227
|
<div
|
|
228
228
|
ref={containerRef}
|
|
229
229
|
data-testid="code-editor"
|
|
230
|
-
className={classNames(classes.codeEditor, "
|
|
230
|
+
className={classNames(classes.codeEditor, "absolute inset-0")}
|
|
231
231
|
>
|
|
232
232
|
<MonacoEditor
|
|
233
233
|
editorDidMount={(e, m) => [
|