@aquera/nile-elements 0.1.52-beta-1.6 → 0.1.52-beta-1.7
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/index.js +1 -1
- package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
- package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
- package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
- package/dist/nile-code-editor/theme.cjs.js +1 -1
- package/dist/nile-code-editor/theme.cjs.js.map +1 -1
- package/dist/nile-code-editor/theme.esm.js +1 -1
- package/dist/src/nile-code-editor/nile-code-editor.js +4 -4
- package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
- package/dist/src/nile-code-editor/theme.d.ts +1 -1
- package/dist/src/nile-code-editor/theme.js +1 -1
- package/dist/src/nile-code-editor/theme.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-code-editor/nile-code-editor.ts +4 -4
- package/src/nile-code-editor/theme.ts +1 -1
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "Webcomponent nile-elements following open-wc recommendations",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "nile-elements",
|
6
|
-
"version": "0.1.52-beta-1.
|
6
|
+
"version": "0.1.52-beta-1.7",
|
7
7
|
"main": "dist/src/index.js",
|
8
8
|
"type": "module",
|
9
9
|
"module": "dist/src/index.js",
|
@@ -39,7 +39,7 @@ import { autocompletion,CompletionContext,CompletionResult } from '@codemirror/a
|
|
39
39
|
import NileElement from '../internal/nile-element';
|
40
40
|
import { basicSetup } from './extensionSetup';
|
41
41
|
import { classMap } from 'lit/directives/class-map.js';
|
42
|
-
import { Theme as DefaultTheme,
|
42
|
+
import { Theme as DefaultTheme, customisedThemeCss } from './theme';
|
43
43
|
import { keymap } from '@codemirror/view';
|
44
44
|
import { acceptCompletion } from '@codemirror/autocomplete';
|
45
45
|
|
@@ -86,7 +86,7 @@ export class NileCodeEditor extends NileElement {
|
|
86
86
|
|
87
87
|
@property({ type: Boolean, reflect: true , attribute: false }) disableSyntaxHighlighting: boolean = false;
|
88
88
|
|
89
|
-
@property({ type: Object, attribute: false }) customThemeCSS: object | null =
|
89
|
+
@property({ type: Object, attribute: false }) customThemeCSS: object | null = customisedThemeCss;
|
90
90
|
|
91
91
|
@property({ type: Boolean, reflect: true , attribute: true }) lineNumbersMultiline: boolean = true;
|
92
92
|
|
@@ -513,9 +513,9 @@ export class NileCodeEditor extends NileElement {
|
|
513
513
|
|
514
514
|
getCustomThemeExtension(): Extension {
|
515
515
|
if (this.customThemeCSS) {
|
516
|
-
return EditorView.theme(this.customThemeCSS as { [selector: string]: StyleSpec });
|
516
|
+
return [EditorView.theme(this.customThemeCSS as { [selector: string]: StyleSpec }), EditorView.theme(customisedThemeCss)];
|
517
517
|
}
|
518
|
-
return EditorView.theme(DefaultTheme);
|
518
|
+
return [EditorView.theme(customisedThemeCss), EditorView.theme(DefaultTheme)];
|
519
519
|
}
|
520
520
|
|
521
521
|
restrictSingleLine() {
|