@codecademy/codebytes 1.0.38-alpha.67bac49c19.0 → 1.0.38-alpha.af1bf3f67d.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/dist/MonacoEditor/index.js +1 -3
- package/dist/codeByteEditor.js +3 -4
- package/dist/drawers.js +1 -3
- package/dist/editor.js +1 -3
- package/dist/helpers/index.js +1 -1
- package/dist/languageSelection.js +1 -2
- package/package.json +3 -3
|
@@ -7,9 +7,7 @@ import ReactMonacoEditor from '@monaco-editor/react';
|
|
|
7
7
|
import React, { useCallback, useRef } from 'react';
|
|
8
8
|
import ResizeObserver from 'react-resize-observer';
|
|
9
9
|
import { dark } from './theme';
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
11
|
export const SimpleMonacoEditor = _ref => {
|
|
14
12
|
let value = _ref.value,
|
|
15
13
|
language = _ref.language,
|
package/dist/codeByteEditor.js
CHANGED
|
@@ -3,7 +3,7 @@ const _excluded = ["text", "language", "hideCopyButton", "snippetsBaseUrl", "onE
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
8
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
9
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -12,7 +12,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
12
12
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
14
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
15
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
15
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
16
16
|
import { Box, IconButton } from '@codecademy/gamut';
|
|
17
17
|
import { FaviconIcon } from '@codecademy/gamut-icons';
|
|
18
18
|
import { Background, system } from '@codecademy/gamut-styles';
|
|
@@ -23,8 +23,7 @@ import { trackClick } from './helpers';
|
|
|
23
23
|
import { useEverInView } from './helpers/useEverInView';
|
|
24
24
|
import { LanguageSelection } from './languageSelection';
|
|
25
25
|
import { trackUserImpression } from './libs/eventTracking';
|
|
26
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
27
|
const editorBaseStyles = system.css({
|
|
29
28
|
border: 1,
|
|
30
29
|
borderColor: 'gray-900',
|
package/dist/drawers.js
CHANGED
|
@@ -9,9 +9,7 @@ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringif
|
|
|
9
9
|
import { Box, FlexBox, IconButton } from '@codecademy/gamut';
|
|
10
10
|
import { ArrowChevronLeftIcon, ArrowChevronRightIcon } from '@codecademy/gamut-icons';
|
|
11
11
|
import React, { useState } from 'react';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
13
|
const DrawerLabel = /*#__PURE__*/_styled("span", {
|
|
16
14
|
target: "e1keub6a2",
|
|
17
15
|
label: "DrawerLabel"
|
package/dist/editor.js
CHANGED
|
@@ -13,9 +13,7 @@ import { postSnippet } from './api';
|
|
|
13
13
|
import { Drawers } from './drawers';
|
|
14
14
|
import { trackClick } from './helpers';
|
|
15
15
|
import { SimpleMonacoEditor } from './MonacoEditor';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
19
17
|
const Output = /*#__PURE__*/_styled("pre", {
|
|
20
18
|
target: "e1lzxy8e1",
|
|
21
19
|
label: "Output"
|
package/dist/helpers/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
2
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
3
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
5
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
6
|
import { trackUserClick } from '../libs/eventTracking';
|
|
7
7
|
export const trackClick = (target, trackingData) => trackUserClick(_objectSpread(_objectSpread({}, trackingData), {}, {
|
|
@@ -2,8 +2,7 @@ import { Select, Text } from '@codecademy/gamut';
|
|
|
2
2
|
import { ColorMode } from '@codecademy/gamut-styles';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { LanguageOptions } from './consts';
|
|
5
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
6
|
export const LanguageSelection = _ref => {
|
|
8
7
|
let onChange = _ref.onChange;
|
|
9
8
|
return /*#__PURE__*/_jsxs(ColorMode, {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/codebytes",
|
|
3
3
|
"description": "Codebytes Editor",
|
|
4
|
-
"version": "1.0.38-alpha.
|
|
4
|
+
"version": "1.0.38-alpha.af1bf3f67d.0",
|
|
5
5
|
"author": "Codecademy Engineering <dev@codecademy.com>",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@codecademy/tracking": "1.0.30-alpha.
|
|
7
|
+
"@codecademy/tracking": "1.0.30-alpha.af1bf3f67d.0",
|
|
8
8
|
"@monaco-editor/react": "^4.4.5",
|
|
9
9
|
"react-resize-observer": "^1.1.1"
|
|
10
10
|
},
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"dist/**/[A-Z]**/[A-Z]*.js",
|
|
37
37
|
"dist/**/[A-Z]**/index.js"
|
|
38
38
|
],
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "696525d530a70fefbc01cf02997d94ce82406edb"
|
|
40
40
|
}
|