@bpmn-io/feel-editor 0.0.1-alpha0 → 0.3.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 -1
- package/README.md +19 -0
- package/dist/index.es.js +5334 -4111
- package/dist/index.js +5334 -4111
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,4 +6,16 @@ All notable changes to [min-dom](https://github.com/bpmn-io/min-dom) are documen
|
|
|
6
6
|
|
|
7
7
|
___Note:__ Yet to be released changes appear here._
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 0.3.0
|
|
10
|
+
|
|
11
|
+
* `FEAT`: add onLint callback ([#10](https://github.com/bpmn-io/feel-editor/pull/10))
|
|
12
|
+
* `FEAT`: set caret position in `editor.focus` ([#15](https://github.com/bpmn-io/feel-editor/pull/15))
|
|
13
|
+
|
|
14
|
+
## 0.2.0
|
|
15
|
+
|
|
16
|
+
* `FEAT`: add variable suggestion ([#9](https://github.com/bpmn-io/feel-editor/pull/9))
|
|
17
|
+
|
|
18
|
+
## 0.1.0
|
|
19
|
+
|
|
20
|
+
* `FEAT`: initial release, create a FEEL editor with Code highlighting ([#4](https://github.com/bpmn-io/feel-editor/pull/4))
|
|
21
|
+
* `FEAT`: highlight syntax errors ([#7](https://github.com/bpmn-io/feel-editor/pull/7))
|
package/README.md
CHANGED
|
@@ -21,10 +21,29 @@ const editor = new FeelEditor({
|
|
|
21
21
|
container,
|
|
22
22
|
onChange,
|
|
23
23
|
onKeyDown,
|
|
24
|
+
onLint,
|
|
24
25
|
value
|
|
25
26
|
});
|
|
26
27
|
```
|
|
27
28
|
|
|
29
|
+
### Variables
|
|
30
|
+
|
|
31
|
+
You can provide a variables array that will be used for auto completion. The Variables
|
|
32
|
+
need to be in the following format:
|
|
33
|
+
|
|
34
|
+
```JavaScript
|
|
35
|
+
const editor = new FeelEditor({
|
|
36
|
+
container,
|
|
37
|
+
variables: [
|
|
38
|
+
{
|
|
39
|
+
name: 'variablename to match',
|
|
40
|
+
detail: 'optional inline info',
|
|
41
|
+
info: 'optional pop-out info'
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
});
|
|
45
|
+
```
|
|
46
|
+
|
|
28
47
|
## Hacking the Project
|
|
29
48
|
|
|
30
49
|
To get the development setup make sure to have [NodeJS](https://nodejs.org/en/download/) installed.
|