@scalar/use-codemirror 0.5.4 → 0.7.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
@@ -10,20 +10,20 @@
10
10
  flex-grow: 1;
11
11
  max-width: 100%;
12
12
 
13
- font-size: var(--theme-small);
13
+ font-size: var(--theme-small, var(--default-theme-small));
14
14
  }
15
15
 
16
16
  /* .scalar-api-client__codemirror.ͼw {
17
- background-color: var(--theme-background-1);
17
+ background-color: var(--theme-background-1, var(--default-theme-background-1));
18
18
  }
19
19
 
20
20
  .scalar-api-client__codemirror--read-only.ͼw {
21
- background-color: var(--theme-background-2);
21
+ background-color: var(--theme-background-2, var(--default-theme-background-2));
22
22
  } */
23
23
 
24
24
  /** URL input */
25
25
  .scalar-api-client__url-input {
26
- font-weight: var(--theme-semibold);
26
+ font-weight: var(--theme-semibold, var(--default-theme-semibold));
27
27
  }
28
28
 
29
29
  /* .scalar-api-client__url-input .cm-scroller {
@@ -34,5 +34,5 @@
34
34
  align-items: center !important;
35
35
  } */
36
36
  .scalar-api-client__variable {
37
- color: var(--scalar-api-client-color);
37
+ color: var(--scalar-api-client-color, var(--default-scalar-api-client-color));
38
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,uCAqCrB,CAAA;AAEF,eAAO,MAAM,SAAS,uCAkCpB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,uCA0DrB,CAAA;AAEF,eAAO,MAAM,SAAS,uCA0DpB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type CodeMirrorLanguage = 'axios' | 'c' | 'clojure' | 'csharp' | 'go' | 'http' | 'html' | 'java' | 'javascript' | 'json' | 'kotlin' | 'node' | 'objc' | 'ocaml' | 'powershell' | 'python' | 'r' | 'ruby' | 'shell' | 'swift' | 'php';
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAC1B,OAAO,GACP,GAAG,GACH,SAAS,GACT,QAAQ,GACR,IAAI,GACJ,MAAM,GACN,MAAM,GACN,MAAM,GACN,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,OAAO,GACP,YAAY,GACZ,QAAQ,GACR,GAAG,GACH,MAAM,GACN,OAAO,GACP,OAAO,GACP,KAAK,CAAA"}
package/package.json CHANGED
@@ -1,71 +1,70 @@
1
1
  {
2
2
  "name": "@scalar/use-codemirror",
3
3
  "description": "CodeMirror for Vue",
4
- "keywords": [
5
- "vue",
6
- "vue3",
7
- "composable",
8
- "codemirror"
9
- ],
10
- "version": "0.5.4",
4
+ "version": "0.7.0",
11
5
  "author": "Scalar (https://github.com/scalar)",
12
- "homepage": "https://github.com/scalar/scalar",
13
- "repository": {
14
- "type": "git",
15
- "url": "https://github.com/scalar/scalar.git",
16
- "directory": "packages/use-codemirror"
17
- },
18
- "bugs": {
19
- "url": "https://github.com/scalar/scalar/issues/new"
20
- },
21
- "license": "MIT",
22
- "engines": {
23
- "node": ">=18"
24
- },
25
- "type": "module",
26
- "main": "dist/index.js",
27
- "module": "dist/index.js",
28
- "files": [
29
- "dist"
30
- ],
31
- "exports": {
32
- "import": "./dist/index.js"
33
- },
6
+ "bugs": "https://github.com/scalar/scalar/issues/new",
34
7
  "dependencies": {
35
- "@codemirror/lang-java": "^6.0.1",
8
+ "@codemirror/lang-html": "6.4.6",
9
+ "@codemirror/lang-java": "6.0.1",
36
10
  "@codemirror/lang-javascript": "6.2.1",
37
11
  "@codemirror/lang-json": "6.0.1",
38
12
  "@codemirror/lang-python": "6.1.3",
39
- "@codemirror/language": "6.9.0",
13
+ "@codemirror/language": "6.9.1",
40
14
  "@codemirror/legacy-modes": "6.3.3",
41
15
  "@codemirror/state": "6.2.1",
42
- "@codemirror/view": "6.18.0",
43
- "@headlessui/vue": "1.7.14",
44
- "@lezer/common": "1.0.3",
45
- "@lezer/lr": "1.3.10",
16
+ "@codemirror/view": "6.20.0",
17
+ "@headlessui/vue": "1.7.16",
18
+ "@lezer/common": "1.1.0",
46
19
  "@lezer/highlight": "1.1.6",
47
- "@uiw/codemirror-theme-duotone": "4.21.13",
48
- "@uiw/codemirror-themes": "4.21.13",
49
- "@vueuse/core": "10.1.2",
50
- "axios": "1.4.0",
20
+ "@lezer/lr": "1.3.11",
21
+ "@uiw/codemirror-theme-duotone": "4.21.16",
22
+ "@uiw/codemirror-themes": "4.21.16",
23
+ "@vueuse/core": "10.4.1",
24
+ "axios": "1.5.0",
51
25
  "codemirror": "6.0.1",
52
26
  "javascript-time-ago": "2.5.9",
53
- "nanoid": "4.0.2",
54
- "pretty-bytes": "6.1.0",
27
+ "nanoid": "5.0.1",
28
+ "pretty-bytes": "6.1.1",
55
29
  "pretty-ms": "8.0.0",
56
30
  "tippy.js": "6.3.7"
57
31
  },
58
32
  "devDependencies": {
59
- "@vitejs/plugin-vue": "4.2.3",
60
- "tsc-alias": "1.8.6",
61
- "vite": "4.4.8",
62
- "vitest": "0.34.1",
63
- "@vitest/coverage-v8": "^0.34.4",
64
- "vue-tsc": "1.8.8"
33
+ "@vitejs/plugin-vue": "4.3.4",
34
+ "@vitest/coverage-v8": "0.34.4",
35
+ "tsc-alias": "1.8.8",
36
+ "vite": "4.4.9",
37
+ "vitest": "0.34.4",
38
+ "vue-tsc": "1.8.13"
65
39
  },
40
+ "engines": {
41
+ "node": ">=18"
42
+ },
43
+ "exports": {
44
+ "import": "./dist/index.js"
45
+ },
46
+ "files": [
47
+ "dist"
48
+ ],
49
+ "homepage": "https://github.com/scalar/scalar",
50
+ "keywords": [
51
+ "codemirror",
52
+ "composable",
53
+ "vue",
54
+ "vue3"
55
+ ],
56
+ "license": "MIT",
57
+ "main": "dist/index.js",
58
+ "module": "dist/index.js",
66
59
  "peerDependencies": {
67
60
  "vue": "3.3.4"
68
61
  },
62
+ "repository": {
63
+ "type": "git",
64
+ "url": "https://github.com/scalar/scalar.git",
65
+ "directory": "packages/use-codemirror"
66
+ },
67
+ "type": "module",
69
68
  "scripts": {
70
69
  "build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
71
70
  "dev": "vite",