@kusto/monaco-kusto 7.2.0 → 7.3.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/README.md CHANGED
@@ -72,6 +72,10 @@ There are 2 APIs to set a Kusto schema:
72
72
 
73
73
  ## Changelog
74
74
 
75
+ ### 7.2.1
76
+
77
+ - fix: Added types back to global api
78
+
75
79
  ### 7.2.0
76
80
 
77
81
  - Added "themeNames" object to exports which contains the theme we register with monaco: kusto-light, kusto-dark, and kusto-dark2
package/globalApi.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- // Augments monaco global types with Kusto api. Should be imported if you're using amd modules, or if you've set `MonacoEnvironment.globalApi` to true.
1
+ // Augments monaco global types with Kusto api. Should be imported if you're
2
+ // using amd modules, or if you've set `MonacoEnvironment.globalApi` to true.
2
3
 
3
4
  /// <reference types="monaco-editor/monaco" />
4
5
 
@@ -8,6 +9,44 @@ declare namespace monaco.editor {
8
9
  }
9
10
  }
10
11
 
12
+ // No easy way to declare a namespace that matches an existing module right
13
+ // now
14
+ // https://github.com/microsoft/TypeScript/issues/10187
15
+
16
+ // Export everything but the types
11
17
  declare namespace monaco.languages {
12
18
  export const kusto: typeof import('@kusto/monaco-kusto');
13
19
  }
20
+
21
+ // Types must be manually re-exported right now :(
22
+ declare namespace monaco.languages.kusto {
23
+ export type LanguageSettings = import('@kusto/monaco-kusto').LanguageSettings;
24
+ export type SyntaxErrorAsMarkDownOptions = import('@kusto/monaco-kusto').SyntaxErrorAsMarkDownOptions;
25
+ export type QuickFixCodeActionOptions = import('@kusto/monaco-kusto').QuickFixCodeActionOptions;
26
+ export type FormatterOptions = import('@kusto/monaco-kusto').FormatterOptions;
27
+ export type FormatterPlacementStyle = import('@kusto/monaco-kusto').FormatterPlacementStyle;
28
+ export type LanguageServiceDefaults = import('@kusto/monaco-kusto').LanguageServiceDefaults;
29
+ export type KustoWorker = import('@kusto/monaco-kusto').KustoWorker;
30
+ export type WorkerAccessor = import('@kusto/monaco-kusto').WorkerAccessor;
31
+ export type Column = import('@kusto/monaco-kusto').Column;
32
+ export type Table = import('@kusto/monaco-kusto').Table;
33
+ export type ScalarParameter = import('@kusto/monaco-kusto').ScalarParameter;
34
+ export type TabularParameter = import('@kusto/monaco-kusto').TabularParameter;
35
+ export type InputParameter = import('@kusto/monaco-kusto').InputParameter;
36
+ export type Function = import('@kusto/monaco-kusto').Function;
37
+ export type Database = import('@kusto/monaco-kusto').Database;
38
+ export type EngineSchema = import('@kusto/monaco-kusto').EngineSchema;
39
+ export type ClusterMangerSchema = import('@kusto/monaco-kusto').ClusterMangerSchema;
40
+ export type DataManagementSchema = import('@kusto/monaco-kusto').DataManagementSchema;
41
+ export type Schema = import('@kusto/monaco-kusto').Schema;
42
+ export type VisualizationType = import('@kusto/monaco-kusto').VisualizationType;
43
+ export type Scale = import('@kusto/monaco-kusto').Scale;
44
+ export type LegendVisibility = import('@kusto/monaco-kusto').LegendVisibility;
45
+ export type YSplit = import('@kusto/monaco-kusto').YSplit;
46
+ export type Kind = import('@kusto/monaco-kusto').Kind;
47
+ export type RenderOptions = import('@kusto/monaco-kusto').RenderOptions;
48
+ export type RenderInfo = import('@kusto/monaco-kusto').RenderInfo;
49
+ export type DatabaseReference = import('@kusto/monaco-kusto').DatabaseReference;
50
+ export type ClusterReference = import('@kusto/monaco-kusto').ClusterReference;
51
+ export type OnDidProvideCompletionItems = import('@kusto/monaco-kusto').OnDidProvideCompletionItems;
52
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kusto/monaco-kusto",
3
- "version": "7.2.0",
3
+ "version": "7.3.0",
4
4
  "description": "CSL, KQL plugin for the Monaco Editor",
5
5
  "author": {
6
6
  "name": "Microsoft"
@@ -52,7 +52,7 @@
52
52
  "concurrently": "^7.6.0",
53
53
  "http-server": "^0.12.3",
54
54
  "live-server": "^1.2.1",
55
- "monaco-editor": "~0.37.0",
55
+ "monaco-editor": "~0.38.0",
56
56
  "rimraf": "^4.1.2",
57
57
  "rollup": "^3.17.3",
58
58
  "terser": "^5.16.2",
@@ -61,13 +61,13 @@
61
61
  "vscode-languageserver-textdocument": "1.0.4"
62
62
  },
63
63
  "dependencies": {
64
- "@kusto/language-service": "0.0.41",
65
- "@kusto/language-service-next": "0.0.64",
64
+ "@kusto/language-service": "0.0.42",
65
+ "@kusto/language-service-next": "0.0.65",
66
66
  "lodash-es": "^4.17.21",
67
67
  "vscode-languageserver-types": "3.16.0",
68
68
  "xregexp": "^5.1.1"
69
69
  },
70
70
  "peerDependencies": {
71
- "monaco-editor": "~0.37.0"
71
+ "monaco-editor": "~0.38.0"
72
72
  }
73
73
  }