@neo4j-cypher/codemirror
Advanced tools
Comparing version 1.0.0-next.5 to 1.0.0-next.6
@@ -223,3 +223,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
const darkExtensions = [EditorView.theme({}, { | ||
const themeOverrides = { | ||
"&.cm-editor": { | ||
"&.cm-focused": { | ||
outline: "none" | ||
} | ||
} | ||
}; | ||
const darkExtensions = [EditorView.theme(themeOverrides, { | ||
dark: true | ||
@@ -229,2 +236,5 @@ }), EditorView.editorAttributes.of({ | ||
})]; | ||
const lightExtensions = [EditorView.theme(themeOverrides, { | ||
dark: false | ||
})]; | ||
export const historyExtensions = [historyExtension()]; | ||
@@ -260,3 +270,3 @@ export const indentWithTabExtensions = [keymap.of([indentWithTab])]; | ||
theme | ||
}) => theme === THEME_DARK ? darkExtensions : []; | ||
}) => theme === THEME_DARK ? darkExtensions : lightExtensions; | ||
export const getLineNumbersExtensions = ({ | ||
@@ -263,0 +273,0 @@ lineNumbers, |
@@ -216,3 +216,10 @@ "use strict"; | ||
exports.cypherLineNumbers = cypherLineNumbers; | ||
const darkExtensions = [_view.EditorView.theme({}, { | ||
const themeOverrides = { | ||
"&.cm-editor": { | ||
"&.cm-focused": { | ||
outline: "none" | ||
} | ||
} | ||
}; | ||
const darkExtensions = [_view.EditorView.theme(themeOverrides, { | ||
dark: true | ||
@@ -222,2 +229,5 @@ }), _view.EditorView.editorAttributes.of({ | ||
})]; | ||
const lightExtensions = [_view.EditorView.theme(themeOverrides, { | ||
dark: false | ||
})]; | ||
const historyExtensions = [(0, _commands.history)()]; | ||
@@ -265,3 +275,3 @@ exports.historyExtensions = historyExtensions; | ||
theme | ||
}) => theme === _cypherCodemirrorBase.THEME_DARK ? darkExtensions : []; | ||
}) => theme === _cypherCodemirrorBase.THEME_DARK ? darkExtensions : lightExtensions; | ||
exports.getThemeExtensions = getThemeExtensions; | ||
@@ -268,0 +278,0 @@ const getLineNumbersExtensions = ({ |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "1.0.0-next.5", | ||
"version": "1.0.0-next.6", | ||
"author": "Neo4j Inc.", | ||
@@ -12,0 +12,0 @@ "license": "GPL-3.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142488
3482