@bpmn-io/feel-editor 0.8.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/dist/index.es.js +5 -1
- package/dist/index.js +5 -1
- package/package.json +7 -4
package/dist/index.es.js
CHANGED
|
@@ -657,6 +657,7 @@ var theme = [ baseTheme, highlightTheme, syntaxClasses ];
|
|
|
657
657
|
|
|
658
658
|
/**
|
|
659
659
|
* @typedef {object} Variable
|
|
660
|
+
* @typedef {import('@codemirror/state').Extension} Extension
|
|
660
661
|
* @property {string} name name or key of the variable
|
|
661
662
|
* @property {string} [info] short information about the variable, e.g. type
|
|
662
663
|
* @property {string} [detail] longer description of the variable content
|
|
@@ -671,6 +672,7 @@ const autocompletionConf = new Compartment();
|
|
|
671
672
|
*
|
|
672
673
|
* @param {Object} config
|
|
673
674
|
* @param {DOMNode} config.container
|
|
675
|
+
* @param {Extension[]} [config.extensions]
|
|
674
676
|
* @param {DOMNode|String} [config.tooltipContainer]
|
|
675
677
|
* @param {Function} [config.onChange]
|
|
676
678
|
* @param {Function} [config.onKeyDown]
|
|
@@ -682,6 +684,7 @@ const autocompletionConf = new Compartment();
|
|
|
682
684
|
* @returns {Object} editor
|
|
683
685
|
*/
|
|
684
686
|
function FeelEditor({
|
|
687
|
+
extensions: editorExtensions = [],
|
|
685
688
|
container,
|
|
686
689
|
tooltipContainer,
|
|
687
690
|
onChange = () => {},
|
|
@@ -743,7 +746,8 @@ function FeelEditor({
|
|
|
743
746
|
linter,
|
|
744
747
|
lintHandler,
|
|
745
748
|
tooltipLayout,
|
|
746
|
-
theme
|
|
749
|
+
theme,
|
|
750
|
+
...editorExtensions
|
|
747
751
|
];
|
|
748
752
|
|
|
749
753
|
if (readOnly) {
|
package/dist/index.js
CHANGED
|
@@ -659,6 +659,7 @@ var theme = [ baseTheme, highlightTheme, syntaxClasses ];
|
|
|
659
659
|
|
|
660
660
|
/**
|
|
661
661
|
* @typedef {object} Variable
|
|
662
|
+
* @typedef {import('@codemirror/state').Extension} Extension
|
|
662
663
|
* @property {string} name name or key of the variable
|
|
663
664
|
* @property {string} [info] short information about the variable, e.g. type
|
|
664
665
|
* @property {string} [detail] longer description of the variable content
|
|
@@ -673,6 +674,7 @@ const autocompletionConf = new state.Compartment();
|
|
|
673
674
|
*
|
|
674
675
|
* @param {Object} config
|
|
675
676
|
* @param {DOMNode} config.container
|
|
677
|
+
* @param {Extension[]} [config.extensions]
|
|
676
678
|
* @param {DOMNode|String} [config.tooltipContainer]
|
|
677
679
|
* @param {Function} [config.onChange]
|
|
678
680
|
* @param {Function} [config.onKeyDown]
|
|
@@ -684,6 +686,7 @@ const autocompletionConf = new state.Compartment();
|
|
|
684
686
|
* @returns {Object} editor
|
|
685
687
|
*/
|
|
686
688
|
function FeelEditor({
|
|
689
|
+
extensions: editorExtensions = [],
|
|
687
690
|
container,
|
|
688
691
|
tooltipContainer,
|
|
689
692
|
onChange = () => {},
|
|
@@ -745,7 +748,8 @@ function FeelEditor({
|
|
|
745
748
|
linter,
|
|
746
749
|
lintHandler,
|
|
747
750
|
tooltipLayout,
|
|
748
|
-
theme
|
|
751
|
+
theme,
|
|
752
|
+
...editorExtensions
|
|
749
753
|
];
|
|
750
754
|
|
|
751
755
|
if (readOnly) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/feel-editor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Editor for FEEL expressions.",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">= 16"
|
|
32
|
+
},
|
|
30
33
|
"keywords": [
|
|
31
34
|
"bpmn-io",
|
|
32
35
|
"feel",
|
|
@@ -44,7 +47,6 @@
|
|
|
44
47
|
],
|
|
45
48
|
"license": "MIT",
|
|
46
49
|
"dependencies": {
|
|
47
|
-
"@babel/core": "^7.20.2",
|
|
48
50
|
"@bpmn-io/feel-lint": "^0.2.0",
|
|
49
51
|
"@codemirror/autocomplete": "^6.3.2",
|
|
50
52
|
"@codemirror/commands": "^6.2.4",
|
|
@@ -53,16 +55,17 @@
|
|
|
53
55
|
"@codemirror/state": "^6.1.4",
|
|
54
56
|
"@codemirror/view": "^6.5.1",
|
|
55
57
|
"@lezer/highlight": "^1.1.6",
|
|
56
|
-
"babel-loader": "^9.1.0",
|
|
57
|
-
"babel-plugin-istanbul": "^6.1.1",
|
|
58
58
|
"lang-feel": "^1.0.0",
|
|
59
59
|
"min-dom": "^4.1.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
+
"@babel/core": "^7.22.8",
|
|
62
63
|
"@rollup/plugin-commonjs": "^23.0.2",
|
|
63
64
|
"@rollup/plugin-json": "^5.0.1",
|
|
64
65
|
"@testing-library/dom": "^8.17.1",
|
|
65
66
|
"@testing-library/user-event": "^14.4.3",
|
|
67
|
+
"babel-loader": "^9.1.3",
|
|
68
|
+
"babel-plugin-istanbul": "^6.1.1",
|
|
66
69
|
"chai": "^4.3.6",
|
|
67
70
|
"cross-env": "^7.0.3",
|
|
68
71
|
"eslint": "^8.44.0",
|