@actis/codemirror 26.9.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/LICENSE +674 -0
- package/README.md +23 -0
- package/dist/index.cjs +731 -0
- package/dist/index.d.cts +54 -0
- package/dist/index.d.mts +54 -0
- package/dist/index.mjs +715 -0
- package/package.json +68 -0
- package/styles.css +79 -0
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@actis/codemirror",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "26.9.0",
|
|
5
|
+
"description": "Reusable CodeMirror extensions for editing Actis GLSL shaders.",
|
|
6
|
+
"author": "Leandro Peres <leandroperes@protonmail.com>",
|
|
7
|
+
"license": "GPL-3.0",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/SOHNE/Actis.git",
|
|
11
|
+
"directory": "package-integrations/codemirror"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/SOHNE/Actis/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"actis",
|
|
18
|
+
"codemirror",
|
|
19
|
+
"glsl",
|
|
20
|
+
"shader",
|
|
21
|
+
"webgl"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"./styles.css"
|
|
25
|
+
],
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.mts",
|
|
29
|
+
"import": "./dist/index.mjs",
|
|
30
|
+
"require": "./dist/index.cjs"
|
|
31
|
+
},
|
|
32
|
+
"./styles.css": "./styles.css"
|
|
33
|
+
},
|
|
34
|
+
"main": "dist/index.cjs",
|
|
35
|
+
"module": "dist/index.mjs",
|
|
36
|
+
"types": "dist/index.d.mts",
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"styles.css"
|
|
40
|
+
],
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@codemirror/autocomplete": "^6.20.1",
|
|
43
|
+
"@codemirror/lang-cpp": "^6.0.3",
|
|
44
|
+
"@codemirror/language": "^6.12.3",
|
|
45
|
+
"@codemirror/lint": "^6.9.5",
|
|
46
|
+
"@codemirror/state": "^6.6.0",
|
|
47
|
+
"@codemirror/view": "^6.41.0",
|
|
48
|
+
"@lezer/highlight": "^1.2.3",
|
|
49
|
+
"codemirror": "^6.0.2"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@codemirror/autocomplete": "^6.20.1",
|
|
53
|
+
"@codemirror/lang-cpp": "^6.0.3",
|
|
54
|
+
"@codemirror/language": "^6.12.3",
|
|
55
|
+
"@codemirror/lint": "^6.9.5",
|
|
56
|
+
"@codemirror/state": "^6.6.0",
|
|
57
|
+
"@codemirror/view": "^6.41.0",
|
|
58
|
+
"@lezer/highlight": "^1.2.3",
|
|
59
|
+
"codemirror": "^6.0.2",
|
|
60
|
+
"tsdown": "^0.21.8",
|
|
61
|
+
"typescript": "5.9.3"
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "tsdown",
|
|
65
|
+
"dev": "tsdown --watch",
|
|
66
|
+
"test": "echo \"No tests configured for @actis/codemirror\""
|
|
67
|
+
}
|
|
68
|
+
}
|
package/styles.css
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.cm-actis-editor {
|
|
2
|
+
height: 100%;
|
|
3
|
+
min-height: 0;
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.cm-actis-editor .cm-editor {
|
|
8
|
+
height: 100% !important;
|
|
9
|
+
|
|
10
|
+
--cm-font-family: 'Fira Code', monospace;
|
|
11
|
+
--cm-font-ligatures: contextual;
|
|
12
|
+
--cm-font-feature-settings: 'calt' 1;
|
|
13
|
+
--cm-font-size: 14px;
|
|
14
|
+
--cm-line-height: 1.6;
|
|
15
|
+
--cm-font-weight-bold: bold;
|
|
16
|
+
--cm-font-style-italic: italic;
|
|
17
|
+
|
|
18
|
+
--cm-foreground: hsl(0 5% 21%);
|
|
19
|
+
--cm-background: hsl(0 0% 100%);
|
|
20
|
+
--cm-keyword: hsl(155 48% 30%);
|
|
21
|
+
--cm-property: hsl(45 69% 35%);
|
|
22
|
+
--cm-punctuation: hsl(0 5% 21%);
|
|
23
|
+
--cm-line-number: hsl(0 0% 60%);
|
|
24
|
+
--cm-comment: hsl(120 5% 65%);
|
|
25
|
+
--cm-variable: hsl(205 47% 41%);
|
|
26
|
+
--cm-string: hsl(355 43% 55%);
|
|
27
|
+
--cm-decorator: hsl(178 25% 56%);
|
|
28
|
+
--cm-definition-keyword: hsl(205 77% 38%);
|
|
29
|
+
--cm-line-highlight-background: hsl(0 0% 95%);
|
|
30
|
+
--cm-line-highlight-border: hsl(0 0% 88%);
|
|
31
|
+
--cm-selection-background: hsl(210 43% 92%);
|
|
32
|
+
--cm-tooltip-background: hsl(0 0% 98%);
|
|
33
|
+
--cm-border: hsl(0 0% 89%);
|
|
34
|
+
--cm-word-highlight-background: hsl(210 91% 61% / 0.15);
|
|
35
|
+
--cm-matching-bracket-background: hsl(0 0% 94%);
|
|
36
|
+
--cm-nonmatching-bracket-background: hsl(355 100% 94%);
|
|
37
|
+
--cm-bracket-underline-offset: calc(var(--cm-font-size) * var(--cm-line-height) * 0.15);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dark .cm-actis-editor .cm-editor,
|
|
41
|
+
[data-theme='dark'] .cm-actis-editor .cm-editor {
|
|
42
|
+
--cm-foreground: hsl(0 0% 83%);
|
|
43
|
+
--cm-background: hsl(0 0% 12%);
|
|
44
|
+
--cm-keyword: hsl(212 51% 59%);
|
|
45
|
+
--cm-property: hsl(207 84% 85%);
|
|
46
|
+
--cm-punctuation: hsl(0 0% 83%);
|
|
47
|
+
--cm-line-number: hsl(0 0% 52%);
|
|
48
|
+
--cm-comment: hsl(108 32% 47%);
|
|
49
|
+
--cm-variable: hsl(207 84% 85%);
|
|
50
|
+
--cm-string: hsl(15 66% 64%);
|
|
51
|
+
--cm-decorator: hsl(48 53% 75%);
|
|
52
|
+
--cm-definition-keyword: hsl(212 51% 59%);
|
|
53
|
+
--cm-line-highlight-background: hsl(0 0% 17%);
|
|
54
|
+
--cm-line-highlight-border: hsl(0 0% 24%);
|
|
55
|
+
--cm-selection-background: hsl(210 52% 31%);
|
|
56
|
+
--cm-tooltip-background: hsl(0 0% 15%);
|
|
57
|
+
--cm-border: hsl(0 0% 27%);
|
|
58
|
+
--cm-word-highlight-background: hsl(210 91% 61% / 0.25);
|
|
59
|
+
--cm-matching-bracket-background: hsl(0 0% 23%);
|
|
60
|
+
--cm-nonmatching-bracket-background: hsl(355 56% 22%);
|
|
61
|
+
--cm-bracket-underline-offset: calc(var(--cm-font-size) * var(--cm-line-height) * 0.15);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.cm-actis-editor .cm-fold-placeholder {
|
|
65
|
+
background: var(--cm-line-highlight-background) !important;
|
|
66
|
+
color: var(--cm-foreground) !important;
|
|
67
|
+
border-color: var(--cm-line-highlight-border);
|
|
68
|
+
border-radius: 3px;
|
|
69
|
+
border-width: 1px;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
font-size: 0.85em;
|
|
72
|
+
padding: 0 6px;
|
|
73
|
+
user-select: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.cm-actis-editor .cm-fold-placeholder:hover {
|
|
77
|
+
background: var(--cm-selection-background) !important;
|
|
78
|
+
color: var(--cm-punctuation) !important;
|
|
79
|
+
}
|