@valtzu/codemirror-lang-el 0.7.0 → 0.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/CHANGELOG.md +13 -0
- package/README.md +18 -25
- package/dist/index.cjs +181 -112
- package/dist/index.d.cts +73 -4
- package/dist/index.d.ts +73 -4
- package/dist/index.js +189 -123
- package/package.json +8 -13
- package/dist/complete.cjs +0 -224
- package/dist/complete.d.cts +0 -3
- package/dist/complete.d.ts +0 -3
- package/dist/complete.js +0 -220
- package/dist/linter.cjs +0 -207
- package/dist/linter.d.cts +0 -8
- package/dist/linter.d.ts +0 -8
- package/dist/linter.js +0 -202
- package/dist/tooltip.cjs +0 -258
- package/dist/tooltip.d.cts +0 -7
- package/dist/tooltip.d.ts +0 -7
- package/dist/tooltip.js +0 -253
- package/dist/utils.cjs +0 -150
- package/dist/utils.d.cts +0 -53
- package/dist/utils.d.ts +0 -53
- package/dist/utils.js +0 -141
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
CHANGELOG
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
0.9
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
* **BC BREAK:** Separate files are no longer included in the release (due to using `cm-buildhelper`)
|
|
8
|
+
* Tests are now in TypeScript too
|
|
9
|
+
* Autocomplete is now less aggressive
|
|
10
|
+
* Severity of "too many arguments" linter error was lowered from error -> warning
|
|
11
|
+
|
|
12
|
+
0.8
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
* Lint type of call arguments, if defined
|
|
16
|
+
|
|
4
17
|
0.7
|
|
5
18
|
---
|
|
6
19
|
|
package/README.md
CHANGED
|
@@ -6,19 +6,33 @@
|
|
|
6
6
|
|
|
7
7
|
#### Linting
|
|
8
8
|
|
|
9
|
-

|
|
10
|
+
|
|
11
|
+
1. Lint variable & function names
|
|
12
|
+
1. Lint object properties & methods, even on expression result
|
|
13
|
+
1. Lint argument count (only max. count checked for now)
|
|
14
|
+
1. Lint argument types
|
|
10
15
|
|
|
11
16
|
#### Autocompletion
|
|
12
17
|
|
|
13
18
|

|
|
14
19
|
|
|
20
|
+
1. Complete variables & functions
|
|
21
|
+
1. Complete object properties & methods, even on expression result
|
|
22
|
+
1. Complete operator keywords (like `starts with`)
|
|
23
|
+
1. Show list of all available keywords (using `Ctrl+space` by default)
|
|
24
|
+
|
|
15
25
|
#### Hover tooltip
|
|
16
26
|
|
|
17
27
|

|
|
18
28
|
|
|
29
|
+
1. Show description about a variable / function / object member / keyword
|
|
30
|
+
|
|
19
31
|
#### Function argument hints
|
|
20
32
|
|
|
21
|
-

|
|
34
|
+
|
|
35
|
+
1. Show function argument name when the editor cursor is exactly at starting position of the argument
|
|
22
36
|
|
|
23
37
|
---
|
|
24
38
|
|
|
@@ -50,27 +64,6 @@ yarn add @valtzu/codemirror-lang-el
|
|
|
50
64
|
|
|
51
65
|
```html
|
|
52
66
|
<div id="editor"></div>
|
|
53
|
-
<script type="importmap">
|
|
54
|
-
{
|
|
55
|
-
"imports": {
|
|
56
|
-
"codemirror": "https://esm.sh/*codemirror@6.0.1",
|
|
57
|
-
"@codemirror/state": "https://esm.sh/*@codemirror/state@6.4.1",
|
|
58
|
-
"@codemirror/search": "https://esm.sh/*@codemirror/search@6.5.6",
|
|
59
|
-
"@codemirror/autocomplete": "https://esm.sh/*@codemirror/autocomplete@6.9.0",
|
|
60
|
-
"@codemirror/view": "https://esm.sh/*@codemirror/view@6.26.3",
|
|
61
|
-
"@codemirror/commands": "https://esm.sh/*@codemirror/commands@6.2.5",
|
|
62
|
-
"@codemirror/language": "https://esm.sh/*@codemirror/language@6.9.0",
|
|
63
|
-
"@codemirror/lint": "https://esm.sh/*@codemirror/lint@6.4.1",
|
|
64
|
-
"@lezer/lr": "https://esm.sh/*@lezer/lr@1.3.9",
|
|
65
|
-
"@lezer/highlight": "https://esm.sh/*@lezer/highlight@1.1.6",
|
|
66
|
-
"@lezer/common": "https://esm.sh/*@lezer/common@1.2.1",
|
|
67
|
-
"style-mod": "https://esm.sh/*style-mod@4.1.2",
|
|
68
|
-
"w3c-keyname": "https://esm.sh/*w3c-keyname@2.2.8",
|
|
69
|
-
"crelt": "https://esm.sh/*crelt@1.0.6",
|
|
70
|
-
"@valtzu/codemirror-lang-el": "https://esm.sh/*@valtzu/codemirror-lang-el@0.6.3"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
</script>
|
|
74
67
|
<script type="module">
|
|
75
68
|
import { EditorView, basicSetup } from "codemirror";
|
|
76
69
|
import { acceptCompletion } from "@codemirror/autocomplete";
|
|
@@ -103,7 +96,7 @@ yarn add @valtzu/codemirror-lang-el
|
|
|
103
96
|
{ name: "user", type: ["User"], info: 'This is the user' },
|
|
104
97
|
],
|
|
105
98
|
functions: [
|
|
106
|
-
{ name: "is_granted", args: ["
|
|
99
|
+
{ name: "is_granted", args: [{name: "attributes", type: ["string"]}, {name: "object", type: ["object"], optional: true}], info: 'Check if subject has permission to the object', returnType: ['bool'] },
|
|
107
100
|
],
|
|
108
101
|
})
|
|
109
102
|
],
|
|
@@ -115,4 +108,4 @@ yarn add @valtzu/codemirror-lang-el
|
|
|
115
108
|
|
|
116
109
|
### Contributing
|
|
117
110
|
|
|
118
|
-
Contributions are
|
|
111
|
+
Contributions are welcome.
|