koishi-plugin-codemirror 0.0.3 → 0.1.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.
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .bottom[data-v-59cec160]>*{max-height:60vh}.select-all{-webkit-user-select:all;user-select:all}
1
+ .bottom[data-v-b65221da]>*{max-height:60vh}.select-all{-webkit-user-select:all;user-select:all}
package/lib/index.js CHANGED
@@ -18,15 +18,15 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  Config: () => Config,
24
24
  apply: () => apply,
25
25
  filter: () => filter,
26
26
  inject: () => inject,
27
27
  name: () => name
28
28
  });
29
- module.exports = __toCommonJS(src_exports);
29
+ module.exports = __toCommonJS(index_exports);
30
30
  var import_koishi = require("koishi");
31
31
  var import_path = require("path");
32
32
  var name = "codemirror";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-codemirror",
3
3
  "description": "CodeMirror schema role for Koishi Web UI",
4
- "version": "0.0.3",
4
+ "version": "0.1.0",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -25,12 +25,16 @@
25
25
  },
26
26
  "browser": true
27
27
  },
28
+ "scripts": {
29
+ "prepare": "cp ../../LICENSE ."
30
+ },
28
31
  "devDependencies": {
29
- "@codemirror/lang-javascript": "^6.2.2",
30
- "@codemirror/lang-json": "^6.0.1",
31
- "@codemirror/theme-one-dark": "^6.1.2",
32
+ "@codemirror/lang-javascript": "^6.2.4",
33
+ "@codemirror/lang-json": "^6.0.2",
34
+ "@codemirror/lang-yaml": "^6.1.2",
35
+ "@codemirror/theme-one-dark": "^6.1.3",
32
36
  "@koishijs/client": "^5.29.2",
33
- "codemirror": "^6.0.1"
37
+ "codemirror": "^6.0.2"
34
38
  },
35
39
  "peerDependencies": {
36
40
  "@koishijs/plugin-console": "^5.29.2",
package/readme.md CHANGED
@@ -18,4 +18,4 @@ export const Config: Schema<Config> = Schema.object({
18
18
 
19
19
  ![](images/screenshot.png)
20
20
 
21
- `.role("codemirror")` 还接受第二参数 `extra`,目前,唯一有效的值为 `{ lang: "json" }`,可将编辑语言改为 JSON。
21
+ `.role("codemirror")` 还接受第二参数 `extra`,接受一个带有 `lang` 属性的对象,可更改编辑语言,目前支持的值有 `json`、`yaml`/`yml`。