@codecademy/codebytes 2.0.0 → 2.1.0-alpha.bb3cd18aa.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,18 @@
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 { colors, editorColors } from '@codecademy/gamut-styles';
6
+ import { trueColors } from '@codecademy/gamut-styles';
7
+ import { deprecatedEditorSyntaxColors } from './deprecatedEditorSyntaxColors';
7
8
  const darkTheme = {
8
- blue: editorColors.blue,
9
- deepPurple: editorColors.deepPurple,
10
- gray: editorColors.gray,
11
- green: editorColors.green,
12
- orange: editorColors.orange,
13
- purple: editorColors.purple,
14
- red: editorColors.red,
15
- white: colors.white,
16
- yellow: editorColors.yellow
9
+ blue: deprecatedEditorSyntaxColors.blue,
10
+ deepPurple: deprecatedEditorSyntaxColors.deepPurple,
11
+ gray: deprecatedEditorSyntaxColors.gray,
12
+ green: deprecatedEditorSyntaxColors.green,
13
+ orange: deprecatedEditorSyntaxColors.orange,
14
+ purple: deprecatedEditorSyntaxColors.purple,
15
+ red: deprecatedEditorSyntaxColors.red,
16
+ white: trueColors.white,
17
+ yellow: deprecatedEditorSyntaxColors.yellow
17
18
  };
18
19
  export const syntax = {
19
20
  attribute: darkTheme.green,
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Deprecated Gamut Monaco syntax hexes (formerly `editorColors` in gamut-styles).
3
+ * Canonical copy for the monorepo; published in `@codecademy/codebytes`.
4
+ */
5
+ export declare const deprecatedEditorSyntaxColors: {
6
+ readonly blue: "#83fff5";
7
+ readonly deepPurple: "#cc7bc2";
8
+ readonly gray: "#939598";
9
+ readonly green: "#b4d353";
10
+ readonly orange: "#ff8973";
11
+ readonly purple: "#b3ccff";
12
+ readonly red: "#ea6c8b";
13
+ readonly yellow: "#ffe083";
14
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Deprecated Gamut Monaco syntax hexes (formerly `editorColors` in gamut-styles).
3
+ * Canonical copy for the monorepo; published in `@codecademy/codebytes`.
4
+ */
5
+ export const deprecatedEditorSyntaxColors = {
6
+ blue: '#83fff5',
7
+ deepPurple: '#cc7bc2',
8
+ gray: '#939598',
9
+ green: '#b4d353',
10
+ orange: '#ff8973',
11
+ purple: '#b3ccff',
12
+ red: '#ea6c8b',
13
+ yellow: '#ffe083'
14
+ };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './codeByteEditor';
2
2
  export * from './consts';
3
+ export * from './MonacoEditor/deprecatedEditorSyntaxColors';
3
4
  export * from './types';
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './codeByteEditor';
2
2
  export * from './consts';
3
+ export * from './MonacoEditor/deprecatedEditorSyntaxColors';
3
4
  export * from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codecademy/codebytes",
3
- "version": "2.0.0",
3
+ "version": "2.1.0-alpha.bb3cd18aa.0",
4
4
  "description": "Codebytes Editor",
5
5
  "license": "MIT",
6
6
  "repository": "git@github.com:codecademy-engineering/mono.git",