@graphql-hive/laboratory
Version:
[Hive](https://the-guild.dev/graphql/hive) is a fully open-source schema registry, analytics, metrics and gateway for [GraphQL federation](https://the-guild.dev/graphql/hive/federation) and other GraphQL APIs.
83 lines (82 loc) • 2.81 kB
JavaScript
import { m as editor_api_exports } from "./editor.api-DPgI1LYm.js";
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/
var __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __copyProps = (e, s, c, l) => {
if (s && typeof s == "object" || typeof s == "function") for (let u of __getOwnPropNames(s)) !__hasOwnProp.call(e, u) && u !== c && __defProp(e, u, {
get: () => s[u],
enumerable: !(l = __getOwnPropDesc(s, u)) || l.enumerable
});
return e;
}, __reExport = (e, a, o) => (__copyProps(e, a, "default"), o && __copyProps(o, a, "default")), monaco_editor_core_exports = {};
__reExport(monaco_editor_core_exports, editor_api_exports);
var jsonDefaults = new class {
constructor(e, a, o) {
this._onDidChange = new monaco_editor_core_exports.Emitter(), this._languageId = e, this.setDiagnosticsOptions(a), this.setModeConfiguration(o);
}
get onDidChange() {
return this._onDidChange.event;
}
get languageId() {
return this._languageId;
}
get modeConfiguration() {
return this._modeConfiguration;
}
get diagnosticsOptions() {
return this._diagnosticsOptions;
}
setDiagnosticsOptions(e) {
this._diagnosticsOptions = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this);
}
setModeConfiguration(e) {
this._modeConfiguration = e || /* @__PURE__ */ Object.create(null), this._onDidChange.fire(this);
}
}("json", {
validate: !0,
allowComments: !0,
schemas: [],
enableSchemaRequest: !1,
schemaRequest: "warning",
schemaValidation: "warning",
comments: "error",
trailingCommas: "error"
}, {
documentFormattingEdits: !0,
documentRangeFormattingEdits: !0,
completionItems: !0,
hovers: !0,
documentSymbols: !0,
tokens: !0,
colors: !0,
foldingRanges: !0,
diagnostics: !0,
selectionRanges: !0
}), getWorker = () => getMode().then((e) => e.getWorker());
monaco_editor_core_exports.languages.json = {
jsonDefaults,
getWorker
};
function getMode() {
return import("./jsonMode-CWm2wmKR.js");
}
monaco_editor_core_exports.languages.register({
id: "json",
extensions: [
".json",
".bowerrc",
".jshintrc",
".jscsrc",
".eslintrc",
".babelrc",
".har"
],
aliases: ["JSON", "json"],
mimetypes: ["application/json"]
}), monaco_editor_core_exports.languages.onLanguage("json", () => {
getMode().then((e) => e.setupMode(jsonDefaults));
});
export { jsonDefaults as n, getWorker as t };