@bpmn-io/feel-editor 0.8.1 → 0.9.1

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 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.8.1",
3
+ "version": "0.9.1",
4
4
  "description": "Editor for FEEL expressions.",
5
5
  "files": [
6
6
  "dist"
@@ -47,7 +47,7 @@
47
47
  ],
48
48
  "license": "MIT",
49
49
  "dependencies": {
50
- "@bpmn-io/feel-lint": "^0.2.0",
50
+ "@bpmn-io/feel-lint": "^1.0.0",
51
51
  "@codemirror/autocomplete": "^6.3.2",
52
52
  "@codemirror/commands": "^6.2.4",
53
53
  "@codemirror/language": "^6.3.1",