@fsegurai/codemirror-theme-android-studio 6.0.2 → 6.0.6

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/README.md CHANGED
@@ -1,28 +1,28 @@
1
- <!-- NOTE: README.md is generated from src/README.md -->
2
-
3
- # @fsegurai/codemirror-theme-android-studio [![NPM version](https://img.shields.io/npm/v/@fsegurai/codemirror-theme-android-studio.svg)](https://www.npmjs.org/package/@fsegurai/codemirror-theme-android-studio)
4
-
5
- [ [**WEBSITE**](https://codemirror.net/6/) | [**ISSUES**](https://github.com/codemirror/codemirror.next/issues) | [**DEMO**](https://fsegurai.github.io/codemirror-themes/) ]
6
-
7
- This package implements the Android Studio theme for the
8
- [CodeMirror](https://codemirror.net/6/) code editor.
9
-
10
- The [project page](https://codemirror.net/6/) has more information, a
11
- number of [examples](https://codemirror.net/6/examples/) and the
12
- [documentation](https://codemirror.net/6/docs/).
13
-
14
- This code is released under an
15
- [MIT license](https://github.com/fsegurai/cm6-themes/tree/main/LICENSE).
16
-
17
- We aim to be an inclusive, welcoming community. To make that explicit,
18
- we have a [code of
19
- conduct](http://contributor-covenant.org/version/1/1/0/) that applies
20
- to communication around the project.
21
-
22
- ## API Reference
23
-
24
- @androidStudio
25
-
26
- @androidStudioTheme
27
-
1
+ <!-- NOTE: README.md is generated from src/README.md -->
2
+
3
+ # @fsegurai/codemirror-theme-android-studio [![NPM version](https://img.shields.io/npm/v/@fsegurai/codemirror-theme-android-studio.svg)](https://www.npmjs.org/package/@fsegurai/codemirror-theme-android-studio)
4
+
5
+ [ [**WEBSITE**](https://codemirror.net/6/) | [**ISSUES**](https://github.com/codemirror/codemirror.next/issues) | [**DEMO**](https://fsegurai.github.io/codemirror-themes/) ]
6
+
7
+ This package implements the Android Studio theme for the
8
+ [CodeMirror](https://codemirror.net/6/) code editor.
9
+
10
+ The [project page](https://codemirror.net/6/) has more information, a
11
+ number of [examples](https://codemirror.net/6/examples/) and the
12
+ [documentation](https://codemirror.net/6/docs/).
13
+
14
+ This code is released under an
15
+ [MIT license](https://github.com/fsegurai/cm6-themes/tree/main/LICENSE).
16
+
17
+ We aim to be an inclusive, welcoming community. To make that explicit,
18
+ we have a [code of
19
+ conduct](http://contributor-covenant.org/version/1/1/0/) that applies
20
+ to communication around the project.
21
+
22
+ ## API Reference
23
+
24
+ @androidStudio
25
+
26
+ @androidStudioTheme
27
+
28
28
  @androidStudioHighlightStyle
package/dist/index.cjs CHANGED
@@ -22,27 +22,27 @@ base0C = '#a9b7c6'; // AttributeName
22
22
  const androidStudioTheme = view.EditorView.theme({
23
23
  '&': {
24
24
  color: base01,
25
- backgroundColor: base00
25
+ backgroundColor: base00,
26
26
  },
27
27
  '.cm-content': {
28
- caretColor: base04
28
+ caretColor: base04,
29
29
  },
30
30
  '&.cm-focused .cm-cursor': {
31
- borderLeftColor: base04
31
+ borderLeftColor: base04,
32
32
  },
33
33
  '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
34
- backgroundColor: base02
34
+ backgroundColor: base02,
35
35
  },
36
36
  '.cm-activeLine': {
37
- backgroundColor: base03
37
+ backgroundColor: base03,
38
38
  },
39
39
  '.cm-gutters': {
40
40
  backgroundColor: base00,
41
- color: base01
41
+ color: base01,
42
42
  },
43
43
  '.cm-tooltip': {
44
- backgroundColor: base01
45
- }
44
+ backgroundColor: base01,
45
+ },
46
46
  }, { dark: true });
47
47
  // Define the highlighting style for code in the Android Studio theme.
48
48
  const androidStudioHighlightStyle = language.HighlightStyle.define([
@@ -54,12 +54,12 @@ const androidStudioHighlightStyle = language.HighlightStyle.define([
54
54
  { tag: [highlight.tags.string, highlight.tags.propertyName, highlight.tags.attributeValue], color: base0A },
55
55
  { tag: [highlight.tags.heading, highlight.tags.typeName], color: base0B },
56
56
  { tag: [highlight.tags.attributeName], color: base0C },
57
- { tag: highlight.tags.emphasis, fontStyle: 'italic' }
57
+ { tag: highlight.tags.emphasis, fontStyle: 'italic' },
58
58
  ]);
59
59
  // Extension to enable the Android Studio theme (both the editor theme and the highlight style).
60
60
  const androidStudio = [
61
61
  androidStudioTheme,
62
- language.syntaxHighlighting(androidStudioHighlightStyle)
62
+ language.syntaxHighlighting(androidStudioHighlightStyle),
63
63
  ];
64
64
 
65
65
  exports.androidStudio = androidStudio;
package/dist/index.js CHANGED
@@ -20,27 +20,27 @@ base0C = '#a9b7c6'; // AttributeName
20
20
  const androidStudioTheme = /*@__PURE__*/EditorView.theme({
21
21
  '&': {
22
22
  color: base01,
23
- backgroundColor: base00
23
+ backgroundColor: base00,
24
24
  },
25
25
  '.cm-content': {
26
- caretColor: base04
26
+ caretColor: base04,
27
27
  },
28
28
  '&.cm-focused .cm-cursor': {
29
- borderLeftColor: base04
29
+ borderLeftColor: base04,
30
30
  },
31
31
  '&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection': {
32
- backgroundColor: base02
32
+ backgroundColor: base02,
33
33
  },
34
34
  '.cm-activeLine': {
35
- backgroundColor: base03
35
+ backgroundColor: base03,
36
36
  },
37
37
  '.cm-gutters': {
38
38
  backgroundColor: base00,
39
- color: base01
39
+ color: base01,
40
40
  },
41
41
  '.cm-tooltip': {
42
- backgroundColor: base01
43
- }
42
+ backgroundColor: base01,
43
+ },
44
44
  }, { dark: true });
45
45
  // Define the highlighting style for code in the Android Studio theme.
46
46
  const androidStudioHighlightStyle = /*@__PURE__*/HighlightStyle.define([
@@ -52,12 +52,12 @@ const androidStudioHighlightStyle = /*@__PURE__*/HighlightStyle.define([
52
52
  { tag: [tags.string, tags.propertyName, tags.attributeValue], color: base0A },
53
53
  { tag: [tags.heading, tags.typeName], color: base0B },
54
54
  { tag: [tags.attributeName], color: base0C },
55
- { tag: tags.emphasis, fontStyle: 'italic' }
55
+ { tag: tags.emphasis, fontStyle: 'italic' },
56
56
  ]);
57
57
  // Extension to enable the Android Studio theme (both the editor theme and the highlight style).
58
58
  const androidStudio = [
59
59
  androidStudioTheme,
60
- /*@__PURE__*/syntaxHighlighting(androidStudioHighlightStyle)
60
+ /*@__PURE__*/syntaxHighlighting(androidStudioHighlightStyle),
61
61
  ];
62
62
 
63
63
  export { androidStudio, androidStudioHighlightStyle, androidStudioTheme };
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
- {
2
- "name": "@fsegurai/codemirror-theme-android-studio",
3
- "description": "Android Studio theme for the CodeMirror code editor",
4
- "version": "6.0.2",
5
- "type": "module",
6
- "main": "dist/index.cjs",
7
- "exports": {
8
- "import": "./dist/index.js",
9
- "require": "./dist/index.cjs"
10
- },
11
- "types": "dist/index.d.ts",
12
- "module": "dist/index.js",
13
- "sideEffects": false,
14
- "scripts": {
15
- "test": "cm-runtests",
16
- "prepare": "cm-buildhelper src/index.ts"
17
- },
18
- "keywords": [
19
- "editor",
20
- "code",
21
- "codemirror"
22
- ],
23
- "author": {
24
- "name": "Fabián Segura",
25
- "url": "https://www.fsegurai.com/"
26
- },
27
- "license": "MIT",
28
- "repository": {
29
- "type": "git",
30
- "url": "git+https://github.com/fsegurai/codemirror-themes.git"
31
- },
32
- "bugs": {
33
- "url": "https://github.com/fsegurai/codemirror-themes/issues"
34
- },
35
- "homepage": "https://github.com/fsegurai/codemirror-themes#readme",
36
- "peerDependencies": {
37
- "@lezer/highlight": "^1.0.0",
38
- "@codemirror/language": "^6.0.0",
39
- "@codemirror/state": "^6.0.0",
40
- "@codemirror/view": "^6.0.0"
41
- },
42
- "devDependencies": {
43
- "@codemirror/buildhelper": "^1.0.1"
44
- }
45
- }
1
+ {
2
+ "name": "@fsegurai/codemirror-theme-android-studio",
3
+ "description": "Android Studio theme for the CodeMirror code editor",
4
+ "version": "6.0.6",
5
+ "type": "module",
6
+ "main": "dist/index.cjs",
7
+ "exports": {
8
+ "import": "./dist/index.js",
9
+ "require": "./dist/index.cjs"
10
+ },
11
+ "types": "dist/index.d.ts",
12
+ "module": "dist/index.js",
13
+ "sideEffects": false,
14
+ "scripts": {
15
+ "test": "cm-runtests",
16
+ "prepare": "cm-buildhelper src/index.ts"
17
+ },
18
+ "keywords": [
19
+ "editor",
20
+ "code",
21
+ "codemirror"
22
+ ],
23
+ "author": {
24
+ "name": "Fabián Segura",
25
+ "url": "https://www.fsegurai.com/"
26
+ },
27
+ "license": "MIT",
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "git+https://github.com/fsegurai/codemirror-themes.git"
31
+ },
32
+ "bugs": {
33
+ "url": "https://github.com/fsegurai/codemirror-themes/issues"
34
+ },
35
+ "homepage": "https://github.com/fsegurai/codemirror-themes#readme",
36
+ "peerDependencies": {
37
+ "@lezer/highlight": "^1.0.0",
38
+ "@codemirror/language": "^6.0.0",
39
+ "@codemirror/state": "^6.0.0",
40
+ "@codemirror/view": "^6.0.0"
41
+ },
42
+ "devDependencies": {
43
+ "@codemirror/buildhelper": "^1.0.2"
44
+ }
45
+ }