@codecademy/codebytes 1.0.16-alpha.ccf19ea669.0 → 1.0.16-alpha.d82770a4c7.0
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.
|
@@ -3,17 +3,13 @@
|
|
|
3
3
|
// We are working on a monaco package in client-modules that has more configuration around themes and languages
|
|
4
4
|
// Monaco as a shared package RFC https://www.notion.so/codecademy/Monaco-editor-as-a-shared-package-1f4484db165b4abc8394c3556451ef6a
|
|
5
5
|
|
|
6
|
-
import ReactMonacoEditor
|
|
7
|
-
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
6
|
+
import ReactMonacoEditor from '@monaco-editor/react';
|
|
8
7
|
import React, { useCallback, useRef } from 'react';
|
|
9
8
|
import ResizeObserver from 'react-resize-observer';
|
|
10
9
|
import { dark } from './theme';
|
|
11
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
11
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
loader.config({
|
|
15
|
-
monaco: monaco
|
|
16
|
-
});
|
|
17
13
|
export var SimpleMonacoEditor = function SimpleMonacoEditor(_ref) {
|
|
18
14
|
var value = _ref.value,
|
|
19
15
|
language = _ref.language,
|
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/codebytes",
|
|
3
3
|
"description": "Codebytes Editor",
|
|
4
|
-
"version": "1.0.16-alpha.
|
|
4
|
+
"version": "1.0.16-alpha.d82770a4c7.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codecademy/tracking": "1.0.
|
|
7
|
+
"@codecademy/tracking": "1.0.13-alpha.d82770a4c7.0",
|
|
8
8
|
"@monaco-editor/react": "^4.4.5",
|
|
9
|
-
"js-base64": "^3.6.0",
|
|
10
|
-
"jsuri": "^1.3.1",
|
|
11
9
|
"react-resize-observer": "^1.1.1"
|
|
12
10
|
},
|
|
13
11
|
"files": [
|
|
@@ -21,10 +19,9 @@
|
|
|
21
19
|
"@codecademy/gamut-icons": "*",
|
|
22
20
|
"@codecademy/gamut-styles": "*",
|
|
23
21
|
"@codecademy/variance": "*",
|
|
24
|
-
"@emotion/react": "^11.7.1",
|
|
25
22
|
"@emotion/styled": "^11.3.0",
|
|
26
|
-
"
|
|
27
|
-
"react
|
|
23
|
+
"monaco-editor": "^0.20.0",
|
|
24
|
+
"react": ">=16.8.1"
|
|
28
25
|
},
|
|
29
26
|
"publishConfig": {
|
|
30
27
|
"access": "public"
|
|
@@ -39,5 +36,5 @@
|
|
|
39
36
|
"dist/**/[A-Z]**/[A-Z]*.js",
|
|
40
37
|
"dist/**/[A-Z]**/index.js"
|
|
41
38
|
],
|
|
42
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "a6bc0b29f1d62af69ea18fe9cbc1946892458132"
|
|
43
40
|
}
|