UNPKG

3.57 kBJavaScriptView Raw
1var __read = (this && this.__read) || function (o, n) {
2 var m = typeof Symbol === "function" && o[Symbol.iterator];
3 if (!m) return o;
4 var i = m.call(o), r, ar = [], e;
5 try {
6 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
7 }
8 catch (error) { e = { error: error }; }
9 finally {
10 try {
11 if (r && !r.done && (m = i["return"])) m.call(i);
12 }
13 finally { if (e) throw e.error; }
14 }
15 return ar;
16};
17var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
19 if (ar || !(i in from)) {
20 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
21 ar[i] = from[i];
22 }
23 }
24 return to.concat(ar || Array.prototype.slice.call(from));
25};
26import { GraphiQL } from './components/GraphiQL';
27export { GraphiQL };
28export default GraphiQL;
29export { QueryEditor } from './components/QueryEditor';
30export { VariableEditor } from './components/VariableEditor';
31export { DocExplorer } from './components/DocExplorer';
32export { ToolbarMenu, ToolbarMenuItem } from './components/ToolbarMenu';
33export { ToolbarButton } from './components/ToolbarButton';
34export { ToolbarGroup } from './components/ToolbarGroup';
35export { ToolbarSelect, ToolbarSelectOption } from './components/ToolbarSelect';
36import { onHasCompletion as _onHasCompletion } from '@graphiql/react';
37import { fillLeafs as _fillLeafs, getSelectedOperationName as _getSelectedOperationName, mergeAst as _mergeAst, } from '@graphiql/toolkit';
38export var onHasCompletion = function onHasCompletion() {
39 var args = [];
40 for (var _i = 0; _i < arguments.length; _i++) {
41 args[_i] = arguments[_i];
42 }
43 console.warn('Importing `onHasCompletion` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `onHasCompletion` function provided by the `@graphiql/react` package.');
44 return _onHasCompletion.apply(void 0, __spreadArray([], __read(args), false));
45};
46export var fillLeafs = function fillLeafs() {
47 var args = [];
48 for (var _i = 0; _i < arguments.length; _i++) {
49 args[_i] = arguments[_i];
50 }
51 console.warn('Importing `fillLeafs` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `fillLeafs` function provided by the `@graphiql/toolkit` package.');
52 return _fillLeafs.apply(void 0, __spreadArray([], __read(args), false));
53};
54export var getSelectedOperationName = function getSelectedOperationName() {
55 var args = [];
56 for (var _i = 0; _i < arguments.length; _i++) {
57 args[_i] = arguments[_i];
58 }
59 console.warn('Importing `getSelectedOperationName` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `getSelectedOperationName` function provided by the `@graphiql/toolkit` package.');
60 return _getSelectedOperationName.apply(void 0, __spreadArray([], __read(args), false));
61};
62export var mergeAst = function mergeAst() {
63 var args = [];
64 for (var _i = 0; _i < arguments.length; _i++) {
65 args[_i] = arguments[_i];
66 }
67 console.warn('Importing `mergeAst` from `graphiql` is deprecated and will be removed in the next major version. Please switch to importing the `mergeAst` function provided by the `@graphiql/toolkit` package.');
68 return _mergeAst.apply(void 0, __spreadArray([], __read(args), false));
69};
70//# sourceMappingURL=index.js.map
\No newline at end of file