@elastic/monaco-esql 3.1.12 → 3.1.15

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/NOTICE.txt ADDED
@@ -0,0 +1,2 @@
1
+ ES|QL highlighting for Monarch
2
+ Copyright 2025-2026 Elasticsearch B.V.
package/README.md CHANGED
@@ -20,7 +20,6 @@ monaco.languages.setMonarchTokensProvider("esql", monarchLanguage);
20
20
  ## Releasing
21
21
 
22
22
  To release a new version add a `publish` label to the PR.
23
- Or you can run the `Release` Github action manually from Github web.
24
23
 
25
24
  There is no need to bump the version manually, release-it does it automatically.
26
25
 
@@ -1,4 +1,12 @@
1
1
  "use strict";
2
+ /*
3
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4
+ * or more contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright
6
+ * ownership. Elasticsearch B.V. licenses this file to you under
7
+ * the MIT license (the "License"); you may
8
+ * not use this file except in compliance with the License.
9
+ */
2
10
  Object.defineProperty(exports, "__esModule", { value: true });
3
11
  exports.temporalUnits = exports.operators = exports.delimiters = exports.functions = exports.literals = exports.options = exports.processingCommands = exports.sourceCommands = exports.headerCommands = void 0;
4
12
  exports.headerCommands = ["SET"];
@@ -9,6 +17,7 @@ exports.sourceCommands = [
9
17
  "SHOW INFO",
10
18
  "SHOW",
11
19
  "TS",
20
+ "PROMQL",
12
21
  ];
13
22
  exports.processingCommands = [
14
23
  "CHANGE_POINT",
package/lib/index.js CHANGED
@@ -1,4 +1,12 @@
1
1
  "use strict";
2
+ /*
3
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4
+ * or more contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright
6
+ * ownership. Elasticsearch B.V. licenses this file to you under
7
+ * the MIT license (the "License"); you may
8
+ * not use this file except in compliance with the License.
9
+ */
2
10
  Object.defineProperty(exports, "__esModule", { value: true });
3
11
  exports.monarch = void 0;
4
12
  const tslib_1 = require("tslib");
@@ -1,4 +1,12 @@
1
1
  "use strict";
2
+ /*
3
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4
+ * or more contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright
6
+ * ownership. Elasticsearch B.V. licenses this file to you under
7
+ * the MIT license (the "License"); you may
8
+ * not use this file except in compliance with the License.
9
+ */
2
10
  Object.defineProperty(exports, "__esModule", { value: true });
3
11
  exports.language = void 0;
4
12
  const tslib_1 = require("tslib");
package/lib/monarch.js CHANGED
@@ -1,4 +1,12 @@
1
1
  "use strict";
2
+ /*
3
+ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
4
+ * or more contributor license agreements. See the NOTICE file distributed with
5
+ * this work for additional information regarding copyright
6
+ * ownership. Elasticsearch B.V. licenses this file to you under
7
+ * the MIT license (the "License"); you may
8
+ * not use this file except in compliance with the License.
9
+ */
2
10
  Object.defineProperty(exports, "__esModule", { value: true });
3
11
  exports.create = void 0;
4
12
  const create = (deps = {}) => {
@@ -183,8 +191,14 @@ const create = (deps = {}) => {
183
191
  ],
184
192
  // Triple double-quoted strings: """str"""
185
193
  string_triple: [
194
+ // Needed to avoid poping on these cases: | WHERE KQL("""log.level:"warning""""),
195
+ // without this it will pop on warning""", leaving ") as invalid tokens.
196
+ [/"(?=""")/, "string.triple"],
197
+ // End string_triple when """ is found
186
198
  [/"""/, "string.triple", "@pop"],
199
+ // The following two rules match the string content, contemplating the apearance of isolated quotes.
187
200
  [/[^"]+/, "string.triple"],
201
+ [/"/, "string.triple"],
188
202
  ],
189
203
  // Backtick quoted "strings". ES|QL does not have back-tick "strings"
190
204
  // *per se*, but column parts can have backtick-escaped parts.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elastic/monaco-esql",
3
- "version": "3.1.12",
3
+ "version": "3.1.15",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -9,21 +9,23 @@
9
9
  "description": "Monaco editor Monarch language syntax definitions for ES|QL",
10
10
  "main": "lib/index.js",
11
11
  "files": [
12
+ "NOTICE.txt",
12
13
  "LICENSE",
13
14
  "lib/"
14
15
  ],
15
16
  "scripts": {
16
17
  "format": "biome format ./src",
17
18
  "format:fix": "biome format --write ./src",
18
- "lint": "biome lint ./src",
19
- "lint:fix": "biome lint --write ./src",
19
+ "lint": "eslint .",
20
+ "lint:fix": "eslint . --fix",
20
21
  "test": "echo \"no tests...\"",
21
22
  "clean": "npx rimraf@5.0.5 lib",
22
23
  "build:es2020": "tsc --project tsconfig.build.json --module commonjs --target es2020 --outDir lib",
23
24
  "build": "yarn build:es2020",
24
25
  "storybook": "storybook dev -p 6006",
25
26
  "build-storybook": "storybook build",
26
- "release": "npx release-it --ci"
27
+ "release": "npx release-it --ci",
28
+ "prepare": "husky"
27
29
  },
28
30
  "license": "MIT",
29
31
  "repository": {
@@ -50,23 +52,36 @@
50
52
  "monaco-editor": "*"
51
53
  },
52
54
  "devDependencies": {
53
- "@biomejs/biome": "2.3.8",
55
+ "@babel/eslint-parser": "7.28.5",
56
+ "@biomejs/biome": "2.3.11",
54
57
  "@chromatic-com/storybook": "4.1.3",
58
+ "@eslint/js": "9.39.2",
55
59
  "@monaco-editor/react": "4.7.0",
56
- "@storybook/addon-docs": "10.1.2",
57
- "@storybook/addon-onboarding": "10.1.2",
58
- "@storybook/addon-vitest": "10.1.2",
59
- "@storybook/react-vite": "10.1.2",
60
+ "@storybook/addon-docs": "10.1.11",
61
+ "@storybook/addon-onboarding": "10.1.11",
62
+ "@storybook/addon-vitest": "10.1.11",
63
+ "@storybook/react-vite": "10.1.11",
60
64
  "@types/react": "19.2.7",
61
- "@vitest/browser": "4.0.14",
62
- "@vitest/browser-playwright": "4.0.14",
63
- "@vitest/coverage-v8": "4.0.14",
65
+ "@vitest/browser": "4.0.16",
66
+ "@vitest/browser-playwright": "4.0.16",
67
+ "@vitest/coverage-v8": "4.0.16",
68
+ "eslint": "9.39.2",
69
+ "eslint-plugin-react": "7.37.5",
70
+ "globals": "17.0.0",
71
+ "husky": "9.1.7",
72
+ "lint-staged": "16.2.7",
64
73
  "monaco-editor": "0.55.1",
65
74
  "playwright": "1.57.0",
66
- "react": "19.2.0",
67
- "react-dom": "19.2.0",
68
- "storybook": "10.1.2",
75
+ "react": "19.2.3",
76
+ "react-dom": "19.2.3",
77
+ "storybook": "10.1.11",
69
78
  "typescript": "5.9.3",
70
- "vitest": "4.0.14"
79
+ "typescript-eslint": "8.52.0",
80
+ "vitest": "4.0.16"
81
+ },
82
+ "lint-staged": {
83
+ "*.{js,ts,tsx,mjs}": [
84
+ "eslint --fix"
85
+ ]
71
86
  }
72
87
  }