@codecademy/codebytes 1.0.16-alpha.cb5a96bffb.0 → 1.0.16-alpha.ccf19ea669.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,13 +3,17 @@
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 from '@monaco-editor/react';
6
+ import ReactMonacoEditor, { loader } from '@monaco-editor/react';
7
+ import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
7
8
  import React, { useCallback, useRef } from 'react';
8
9
  import ResizeObserver from 'react-resize-observer';
9
10
  import { dark } from './theme';
10
11
  import { jsx as _jsx } from "react/jsx-runtime";
11
12
  import { Fragment as _Fragment } from "react/jsx-runtime";
12
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
14
+ loader.config({
15
+ monaco: monaco
16
+ });
13
17
  export var SimpleMonacoEditor = function SimpleMonacoEditor(_ref) {
14
18
  var value = _ref.value,
15
19
  language = _ref.language,
@@ -5,7 +5,7 @@
5
5
 
6
6
  import * as darkColors from './colorsDark';
7
7
  var c = function c(color) {
8
- return color.slice(1, color.length);
8
+ return color.substr(1);
9
9
  };
10
10
  var theme = function theme(_ref) {
11
11
  var ui = _ref.ui,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/codebytes",
3
3
  "description": "Codebytes Editor",
4
- "version": "1.0.16-alpha.cb5a96bffb.0",
4
+ "version": "1.0.16-alpha.ccf19ea669.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/tracking": "1.0.12",
@@ -39,5 +39,5 @@
39
39
  "dist/**/[A-Z]**/[A-Z]*.js",
40
40
  "dist/**/[A-Z]**/index.js"
41
41
  ],
42
- "gitHead": "e6bb6163950853fafa71f905cad89a192b927bf0"
42
+ "gitHead": "e1ad98e103372b75bee41076b3e50d5d3a6c22a6"
43
43
  }