@codingame/monaco-editor-wrapper 2.2.2 → 3.0.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.
Files changed (40) hide show
  1. package/README.md +1 -3
  2. package/dist/_monaco-editor_commonjs-external.js +32 -0
  3. package/dist/configuration/index.d.ts +3 -3
  4. package/dist/css.worker.js +1 -1
  5. package/dist/features/extensionConfigurations.js +1 -2
  6. package/dist/features/htmlContribution.js +7 -7
  7. package/dist/features/jsonContribution.js +6 -66
  8. package/dist/features/typescriptContribution.d.ts +0 -4
  9. package/dist/features/typescriptContribution.js +1 -29
  10. package/dist/hacks.d.ts +15 -2
  11. package/dist/html.worker.js +1 -1
  12. package/dist/index.d.ts +1 -4
  13. package/dist/index.js +64 -12
  14. package/dist/index2.js +2207 -0
  15. package/dist/json.worker.js +1 -1
  16. package/dist/keybindings/index.d.ts +1 -1
  17. package/dist/languages/extensions/extensionConfigurationLoader.d.ts +2 -2
  18. package/dist/languages/extensions/languageConfigurationLoader.d.ts +1 -10
  19. package/dist/languages/extensions/snippetLoader.d.ts +1 -2
  20. package/dist/languages/extensions/themeLoader.d.ts +1 -2
  21. package/dist/languages/index.d.ts +1 -0
  22. package/dist/languages/textMate/index.d.ts +0 -2
  23. package/dist/main.js +134 -12531
  24. package/dist/monaco.d.ts +2 -2
  25. package/dist/theme/index.d.ts +2 -2
  26. package/dist/ts.worker.js +1 -1
  27. package/dist/vim.js +9699 -0
  28. package/dist/worker.js +1 -1
  29. package/package.json +26 -25
  30. package/stats.html +1451 -106
  31. package/dist/_rollupPluginBabelHelpers.js +0 -42
  32. package/dist/keybindings/keybindingHelper.d.ts +0 -2
  33. package/dist/languages/monarch/index.d.ts +0 -7
  34. package/dist/languages/monarch/stub-generator.d.ts +0 -2
  35. package/dist/languages/textMate/CGTMGrammarFactory.d.ts +0 -5
  36. package/dist/languages/textMate/CGTMTokenizationSupport.d.ts +0 -8
  37. package/dist/stub-generator.js +0 -15
  38. package/dist/theme/registry.d.ts +0 -9
  39. package/dist/theme/semanticHighlight.d.ts +0 -1
  40. package/dist/theme/tools.d.ts +0 -12
@@ -1,42 +0,0 @@
1
- function ownKeys(object, enumerableOnly) {
2
- var keys = Object.keys(object);
3
-
4
- if (Object.getOwnPropertySymbols) {
5
- var symbols = Object.getOwnPropertySymbols(object);
6
- enumerableOnly && (symbols = symbols.filter(function (sym) {
7
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
8
- })), keys.push.apply(keys, symbols);
9
- }
10
-
11
- return keys;
12
- }
13
-
14
- function _objectSpread2(target) {
15
- for (var i = 1; i < arguments.length; i++) {
16
- var source = null != arguments[i] ? arguments[i] : {};
17
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
18
- _defineProperty(target, key, source[key]);
19
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
20
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
21
- });
22
- }
23
-
24
- return target;
25
- }
26
-
27
- function _defineProperty(obj, key, value) {
28
- if (key in obj) {
29
- Object.defineProperty(obj, key, {
30
- value: value,
31
- enumerable: true,
32
- configurable: true,
33
- writable: true
34
- });
35
- } else {
36
- obj[key] = value;
37
- }
38
-
39
- return obj;
40
- }
41
-
42
- export { _objectSpread2 as _, _defineProperty as a };
@@ -1,2 +0,0 @@
1
- import * as monaco from 'monaco-editor';
2
- export declare function updateKeybindings(bindings: monaco.extra.IUserFriendlyKeybinding[]): void;
@@ -1,7 +0,0 @@
1
- import * as monaco from 'monaco-editor';
2
- interface MonarchLanguage {
3
- conf?: monaco.languages.LanguageConfiguration;
4
- language: monaco.languages.IMonarchLanguage;
5
- }
6
- export declare const languageLoader: Partial<Record<string, () => Promise<MonarchLanguage>>>;
7
- export {};
@@ -1,2 +0,0 @@
1
- import * as monaco from 'monaco-editor';
2
- export declare const language: monaco.languages.IMonarchLanguage;
@@ -1,5 +0,0 @@
1
- import * as monaco from 'monaco-editor';
2
- export declare type GrammarLoader = Partial<Record<string, () => Promise<object>>>;
3
- export default class CGTMGrammarFactory extends monaco.extra.TMGrammarFactory {
4
- constructor(grammarDefinitions: monaco.extra.IValidGrammarDefinition[], scopeGrammarLoader: GrammarLoader, onigasmBinaryUrl: string);
5
- }
@@ -1,8 +0,0 @@
1
- import * as monaco from 'monaco-editor';
2
- import { IGrammar } from 'vscode-textmate';
3
- export default class CGTMTokenizationSupport extends monaco.extra.TMTokenizationSupportWithLineLimit {
4
- private languageId;
5
- private grammar;
6
- constructor(languageId: string, encodedLanguageId: monaco.languages.LanguageId, actual: monaco.extra.TMTokenization, grammar: IGrammar);
7
- tokenize(line: string, hasEOL: boolean, state: monaco.languages.IState): monaco.TokenizationResult;
8
- }
@@ -1,15 +0,0 @@
1
- const language = {
2
- keywords: ['read', 'loop', 'gameloop', 'write', 'INPUT', 'OUTPUT', 'STATEMENT', 'loopline', 'call', 'dump'],
3
- tokenizer: {
4
- root: [[/[a-zA-Z_$][\w$]*/, {
5
- cases: {
6
- '@keywords': {
7
- token: 'keyword.$0'
8
- },
9
- '@default': 'identifier'
10
- }
11
- }]]
12
- }
13
- };
14
-
15
- export { language };
@@ -1,9 +0,0 @@
1
- import * as monaco from 'monaco-editor';
2
- import { IVSCodeTheme } from './tools';
3
- export interface Theme {
4
- id: string;
5
- label: string;
6
- }
7
- export declare function defineVSCodeTheme(id: string, vscodeThemeLoader: (uri?: monaco.Uri) => Promise<IVSCodeTheme>, themeExtensionPoint?: Partial<monaco.extra.IThemeExtensionPoint>, extensionData?: Partial<monaco.extra.ExtensionData>): Promise<void>;
8
- export declare function getThemeData(themeName: string): monaco.extra.ColorThemeData | null;
9
- export declare function getThemes(): Theme[];
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- import * as monaco from 'monaco-editor';
2
- export interface IVSCodeTheme {
3
- colors?: {
4
- [name: string]: string;
5
- };
6
- tokenColors: monaco.extra.ITextMateThemingRule[];
7
- semanticTokenColors?: Record<string, monaco.extra.ITokenColorizationSetting | string>;
8
- semanticHighlighting?: boolean;
9
- }
10
- declare function convertTheme(themeData: monaco.extra.ColorThemeData, base: monaco.editor.BuiltinTheme): monaco.editor.IStandaloneThemeData;
11
- declare function fixVSCodeThemeColors(vscodeTheme: IVSCodeTheme): IVSCodeTheme;
12
- export { fixVSCodeThemeColors, convertTheme };