@codecademy/codebytes 0.2.1-alpha.f3c23d.0 → 0.2.1-alpha.f45f38.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.
package/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
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
- ### [0.2.1-alpha.f3c23d.0](https://github.com/Codecademy/client-modules/compare/@codecademy/codebytes@0.2.0...@codecademy/codebytes@0.2.1-alpha.f3c23d.0) (2022-01-10)
6
+ ### [0.2.1-alpha.f45f38.0](https://github.com/Codecademy/client-modules/compare/@codecademy/codebytes@0.2.0...@codecademy/codebytes@0.2.1-alpha.f45f38.0) (2022-01-11)
7
7
 
8
8
  **Note:** Version bump only for package @codecademy/codebytes
9
9
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/codebytes",
3
3
  "description": "Codebytes Code Editor",
4
- "version": "0.2.1-alpha.f3c23d.0",
4
+ "version": "0.2.1-alpha.f45f38.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "sideEffects": [
7
7
  "**/*.css",
@@ -28,7 +28,7 @@
28
28
  "@emotion/styled": "^11.3.0",
29
29
  "@loadable/component": "^5.13.1",
30
30
  "@monaco-editor/react": "4.3.1",
31
- "monaco-editor": "0.20.0",
31
+ "monaco-editor": ">= 0.25.0 < 1",
32
32
  "react-resize-observer": "1.1.1"
33
33
  },
34
34
  "scripts": {
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "5895d8746a933760d317cc5ec5e494ca7e7f8010"
53
+ "gitHead": "783fed789d9754d46535c05f38b2a8a8185aa298"
54
54
  }
@@ -26,7 +26,6 @@ export const SimpleMonacoEditor: React.FC<SimpleMonacoEditorProps> = ({
26
26
  language,
27
27
  onChange,
28
28
  }) => {
29
- /* The library doesn't export the required type for the editor and so we'll use any for now */
30
29
  const editorRef = useRef<any>(null);
31
30
  const editorWillMount = useCallback(
32
31
  (editor: ThemedEditor, monaco: Monaco) => {
package/src/editor.tsx CHANGED
@@ -39,10 +39,7 @@ type EditorProps = {
39
39
  hideCopyButton: boolean;
40
40
  language: languageOption;
41
41
  text: string;
42
- // eslint-disable-next-line react/no-unused-prop-types
43
- onChange: (
44
- text: string
45
- ) => void /* TODO: Add onChange behavior in DISC-353 */;
42
+ onChange: (text: string) => void;
46
43
  onCopy?: (text: string, language: string) => void;
47
44
  snippetsBaseUrl?: string;
48
45
  };