@bpmn-io/feel-editor 1.0.1 → 1.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/dist/index.es.js CHANGED
@@ -4,7 +4,7 @@ import { syntaxTree, LanguageSupport, syntaxHighlighting, HighlightStyle, bracke
4
4
  import { linter as linter$1, setDiagnosticsEffect } from '@codemirror/lint';
5
5
  import { Facet, Compartment, EditorState } from '@codemirror/state';
6
6
  import { EditorView, tooltips, keymap } from '@codemirror/view';
7
- import { snippets, feelLanguage } from 'lang-feel';
7
+ import { snippets, keywordCompletions, feelLanguage } from 'lang-feel';
8
8
  import { domify } from 'min-dom';
9
9
  import { cmFeelLinter } from '@bpmn-io/feel-lint';
10
10
  import { tags as tags$1 } from '@lezer/highlight';
@@ -724,7 +724,8 @@ function autocompletion() {
724
724
  variables,
725
725
  builtins,
726
726
  completeFromList(snippets.map(s => ({ ...s, boost: -1 }))),
727
- pathExpression
727
+ pathExpression,
728
+ ...keywordCompletions
728
729
  ]
729
730
  })
730
731
  ];
package/dist/index.js CHANGED
@@ -726,7 +726,8 @@ function autocompletion() {
726
726
  variables,
727
727
  builtins,
728
728
  autocomplete.completeFromList(langFeel.snippets.map(s => ({ ...s, boost: -1 }))),
729
- pathExpression
729
+ pathExpression,
730
+ ...langFeel.keywordCompletions
730
731
  ]
731
732
  })
732
733
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/feel-editor",
3
- "version": "1.0.1",
3
+ "version": "1.2.0",
4
4
  "description": "Editor for FEEL expressions.",
5
5
  "files": [
6
6
  "dist"
@@ -11,8 +11,8 @@
11
11
  "all": "run-s lint test build",
12
12
  "compile:builtins": "node scripts/compileBuiltins.js",
13
13
  "test": "karma start",
14
- "build": "rollup -c",
15
- "build:watch": "rollup -cw",
14
+ "build": "rollup -c --bundleConfigAsCjs",
15
+ "build:watch": "npm run build -- -w",
16
16
  "builtins": "run-s pull:platform-docs compile:builtins",
17
17
  "lint": "eslint .",
18
18
  "pull:platform-docs": "git -C camunda-platform-docs pull || git clone git@github.com:camunda/camunda-platform-docs.git camunda-platform-docs",
@@ -47,33 +47,33 @@
47
47
  ],
48
48
  "license": "MIT",
49
49
  "dependencies": {
50
- "@bpmn-io/feel-lint": "^1.0.0",
51
- "@codemirror/autocomplete": "^6.3.2",
52
- "@codemirror/commands": "^6.2.4",
53
- "@codemirror/language": "^6.3.1",
54
- "@codemirror/lint": "^6.4.0",
55
- "@codemirror/state": "^6.1.4",
56
- "@codemirror/view": "^6.5.1",
57
- "@lezer/highlight": "^1.1.6",
58
- "lang-feel": "^1.0.0",
50
+ "@bpmn-io/feel-lint": "^1.2.0",
51
+ "@codemirror/autocomplete": "^6.12.0",
52
+ "@codemirror/commands": "^6.3.3",
53
+ "@codemirror/language": "^6.10.0",
54
+ "@codemirror/lint": "^6.4.2",
55
+ "@codemirror/state": "^6.4.0",
56
+ "@codemirror/view": "^6.23.0",
57
+ "@lezer/highlight": "^1.2.0",
58
+ "lang-feel": "^2.0.0",
59
59
  "min-dom": "^4.1.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@babel/core": "^7.22.8",
63
- "@rollup/plugin-commonjs": "^23.0.2",
64
- "@rollup/plugin-json": "^5.0.1",
65
- "@testing-library/dom": "^8.17.1",
66
- "@testing-library/user-event": "^14.4.3",
63
+ "@rollup/plugin-commonjs": "^25.0.7",
64
+ "@rollup/plugin-json": "^6.1.0",
65
+ "@testing-library/dom": "^9.3.3",
66
+ "@testing-library/user-event": "^14.5.1",
67
67
  "babel-loader": "^9.1.3",
68
68
  "babel-plugin-istanbul": "^6.1.1",
69
- "chai": "^4.3.6",
69
+ "chai": "^4.3.10",
70
70
  "cross-env": "^7.0.3",
71
- "eslint": "^8.44.0",
71
+ "eslint": "^8.56.0",
72
72
  "eslint-plugin-bpmn-io": "^1.0.0",
73
73
  "glob": "^8.0.3",
74
- "karma": "^6.3.19",
75
- "karma-chrome-launcher": "^3.1.1",
76
- "karma-coverage": "^2.2.0",
74
+ "karma": "^6.4.2",
75
+ "karma-chrome-launcher": "^3.2.0",
76
+ "karma-coverage": "^2.2.1",
77
77
  "karma-debug-launcher": "^0.0.5",
78
78
  "karma-env-preprocessor": "^0.1.1",
79
79
  "karma-firefox-launcher": "^2.1.2",
@@ -81,13 +81,13 @@
81
81
  "karma-sinon-chai": "^2.0.2",
82
82
  "karma-webpack": "^5.0.0",
83
83
  "marked": "^9.1.2",
84
- "mocha": "^10.0.0",
84
+ "mocha": "^10.2.0",
85
85
  "mocha-test-container-support": "^0.2.0",
86
86
  "npm-run-all": "^4.1.5",
87
- "puppeteer": "^19.3.0",
88
- "rollup": "^3.3.0",
89
- "sinon": "^14.0.0",
87
+ "puppeteer": "^21.6.1",
88
+ "rollup": "^4.9.1",
89
+ "sinon": "^17.0.1",
90
90
  "sinon-chai": "^3.7.0",
91
- "webpack": "^5.72.1"
91
+ "webpack": "^5.89.0"
92
92
  }
93
93
  }