@bpmn-io/feel-editor 0.1.0 → 0.2.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 CHANGED
@@ -6,7 +6,11 @@ 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
- ## 0.0.1
9
+ ## 0.2.0
10
+
11
+ * `FEAT`: add variable suggestion ([#9](https://github.com/bpmn-io/feel-editor/pull/9))
12
+
13
+ ## 0.1.0
10
14
 
11
15
  * `FEAT`: initial release, create a FEEL editor with Code highlighting ([#4](https://github.com/bpmn-io/feel-editor/pull/4))
12
16
  * `FEAT`: highlight syntax errors ([#7](https://github.com/bpmn-io/feel-editor/pull/7))
package/README.md CHANGED
@@ -25,6 +25,24 @@ const editor = new FeelEditor({
25
25
  });
26
26
  ```
27
27
 
28
+ ### Variables
29
+
30
+ You can provide a variables array that will be used for auto completion. The Variables
31
+ need to be in the following format:
32
+
33
+ ```JavaScript
34
+ const editor = new FeelEditor({
35
+ container,
36
+ variables: [
37
+ {
38
+ name: 'variablename to match',
39
+ detail: 'optional inline info',
40
+ info: 'optional pop-out info'
41
+ }
42
+ ]
43
+ });
44
+ ```
45
+
28
46
  ## Hacking the Project
29
47
 
30
48
  To get the development setup make sure to have [NodeJS](https://nodejs.org/en/download/) installed.