@uiw/codemirror-theme-sublime 4.21.25 → 4.22.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.
Files changed (2) hide show
  1. package/README.md +13 -0
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -17,6 +17,19 @@
17
17
  npm install @uiw/codemirror-theme-sublime --save
18
18
  ```
19
19
 
20
+ ```js
21
+ import { EditorState } from '@codemirror/state';
22
+ import { javascript } from '@codemirror/lang-javascript';
23
+ import { sublime } from '@uiw/codemirror-theme-sublime';
24
+
25
+ const state = EditorState.create({
26
+ doc: 'my source code',
27
+ extensions: [sublime, javascript({ jsx: true })],
28
+ });
29
+ ```
30
+
31
+ Using in React:
32
+
20
33
  ```jsx
21
34
  import { sublime, sublimeInit } from '@uiw/codemirror-theme-sublime';
22
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uiw/codemirror-theme-sublime",
3
- "version": "4.21.25",
3
+ "version": "4.22.0",
4
4
  "description": "Theme sublime for CodeMirror.",
5
5
  "homepage": "https://uiwjs.github.io/react-codemirror/#/theme/data/sublime",
6
6
  "funding": "https://jaywcjlove.github.io/#/sponsor",
@@ -22,7 +22,7 @@
22
22
  "cjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@uiw/codemirror-themes": "4.21.25"
25
+ "@uiw/codemirror-themes": "4.22.0"
26
26
  },
27
27
  "keywords": [
28
28
  "codemirror",