🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@codemirror/theme-one-dark

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codemirror/theme-one-dark - npm Package Compare versions

Comparing version
0.19.1
to
0.20.0
+6
-0
CHANGELOG.md

@@ -0,1 +1,7 @@

## 0.20.0 (2022-04-20)
### Breaking changes
Update dependencies to 0.20.0
## 0.19.1 (2021-11-06)

@@ -2,0 +8,0 @@

+5
-4

@@ -6,3 +6,4 @@ 'use strict';

var view = require('@codemirror/view');
var highlight = require('@codemirror/highlight');
var language = require('@codemirror/language');
var highlight = require('@lezer/highlight');

@@ -23,3 +24,3 @@ // Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors

},
"&.cm-focused .cm-cursor": { borderLeftColor: cursor },
".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor },
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: selection },

@@ -77,3 +78,3 @@ ".cm-panels": { backgroundColor: darkBackground, color: ivory },

*/
const oneDarkHighlightStyle = highlight.HighlightStyle.define([
const oneDarkHighlightStyle = language.HighlightStyle.define([
{ tag: highlight.tags.keyword,

@@ -118,3 +119,3 @@ color: violet },

*/
const oneDark = [oneDarkTheme, oneDarkHighlightStyle];
const oneDark = [oneDarkTheme, language.syntaxHighlighting(oneDarkHighlightStyle)];

@@ -121,0 +122,0 @@ exports.oneDark = oneDark;

import { Extension } from '@codemirror/state';
import { HighlightStyle } from '@codemirror/highlight';
import { HighlightStyle } from '@codemirror/language';

@@ -4,0 +4,0 @@ /**

import { EditorView } from '@codemirror/view';
import { HighlightStyle, tags } from '@codemirror/highlight';
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language';
import { tags } from '@lezer/highlight';

@@ -18,3 +19,3 @@ // Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors

},
"&.cm-focused .cm-cursor": { borderLeftColor: cursor },
".cm-cursor, .cm-dropCursor": { borderLeftColor: cursor },
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection": { backgroundColor: selection },

@@ -112,4 +113,4 @@ ".cm-panels": { backgroundColor: darkBackground, color: ivory },

*/
const oneDark = [oneDarkTheme, oneDarkHighlightStyle];
const oneDark = [oneDarkTheme, /*@__PURE__*/syntaxHighlighting(oneDarkHighlightStyle)];
export { oneDark, oneDarkHighlightStyle, oneDarkTheme };
{
"name": "@codemirror/theme-one-dark",
"version": "0.19.1",
"version": "0.20.0",
"description": "One Dark theme for the CodeMirror code editor",

@@ -29,5 +29,6 @@ "scripts": {

"dependencies": {
"@codemirror/highlight": "^0.19.0",
"@codemirror/state": "^0.19.0",
"@codemirror/view": "^0.19.0"
"@lezer/highlight": "^0.16.0",
"@codemirror/language": "^0.20.0",
"@codemirror/state": "^0.20.0",
"@codemirror/view": "^0.20.0"
},

@@ -34,0 +35,0 @@ "devDependencies": {