@elastic/monaco-esql 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # ES|QL syntax grammar for Monaco editor
2
2
 
3
- This package contains the ES|QL grammar form Monarch (the Monaco editor grammar engine).
3
+ This package contains the ES|QL grammar form Monarch (the Monaco editor
4
+ grammar engine).
5
+
6
+ <img width="725" alt="image" src="https://github.com/user-attachments/assets/a725841e-68d6-4765-aa29-54a3062e6a3e" />
4
7
 
5
8
 
6
9
  ## Usage
package/lib/monarch.js CHANGED
@@ -244,7 +244,6 @@ exports.monarchLanguage = {
244
244
  "@options": { token: "keyword.option.$0" },
245
245
  "@literals": { token: "keyword.literal.$0" },
246
246
  "@functions": { token: "identifier.function.$0" },
247
- "@delimiters": { token: "delimiter" },
248
247
  "@namedOperators": { token: "keyword.operator.$0" },
249
248
  "@default": "identifier",
250
249
  },
@@ -253,6 +252,14 @@ exports.monarchLanguage = {
253
252
  { include: "@expression" },
254
253
  { include: "@processingCommand" },
255
254
  [/\[|\(|\)|\]/, "@brackets"],
255
+ [
256
+ /[^\s]+/,
257
+ {
258
+ cases: {
259
+ "@delimiters": "delimiter",
260
+ },
261
+ },
262
+ ],
256
263
  ],
257
264
  // --------------------------------- Hidden channel: whitespace and comments
258
265
  whitespace: [
@@ -308,8 +315,6 @@ exports.monarchLanguage = {
308
315
  [/"/, "string", "@string"],
309
316
  // Escaped column parts: nested.`escaped`.column
310
317
  [/`/, "string", "@column_escape_part"],
311
- // Source index pattern date-math expression: <logs-{now/d}>
312
- [/</, "string", "@datemath_source"],
313
318
  ],
314
319
  literal: [
315
320
  { include: "@number" },
@@ -350,11 +355,5 @@ exports.monarchLanguage = {
350
355
  [/\\./, "string.escape.invalid"],
351
356
  [/`/, "string", "@pop"],
352
357
  ],
353
- datemath_source: [
354
- [/[^>]+/, "string"],
355
- [/@escapes/, "string.escape"],
356
- [/\\./, "string.escape.invalid"],
357
- [/>/, "string", "@pop"],
358
- ],
359
358
  },
360
359
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elastic/monaco-esql",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -58,17 +58,16 @@
58
58
  "@storybook/react": "^8.6.3",
59
59
  "@storybook/react-vite": "^8.6.3",
60
60
  "@storybook/test": "^8.6.3",
61
+ "@types/react": "^19.0.10",
61
62
  "@vitest/browser": "^3.0.7",
62
63
  "@vitest/coverage-v8": "^3.0.7",
63
64
  "monaco-editor": "^0.52.2",
64
65
  "playwright": "^1.50.1",
66
+ "react": "^19.0.0",
67
+ "react-dom": "^19.0.0",
65
68
  "storybook": "^8.6.3",
66
69
  "typescript": "^5.7.3",
67
70
  "vitest": "^3.0.7"
68
71
  },
69
- "dependencies": {
70
- "@types/react": "^19.0.10",
71
- "react": "^19.0.0",
72
- "react-dom": "^19.0.0"
73
- }
72
+ "dependencies": {}
74
73
  }