graphiql-rails 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/graphiql/rails/application.js +3 -3
- data/app/assets/javascripts/graphiql/rails/{graphiql-0.8.0.js → graphiql-0.8.1.js} +1056 -673
- data/app/assets/javascripts/graphiql/rails/react-15.4.1.js +3756 -0
- data/app/assets/javascripts/graphiql/rails/{react-15.3.2.js → react-dom-15.4.1.js} +2617 -4973
- data/app/assets/stylesheets/graphiql/rails/application.css +1 -1
- data/app/assets/stylesheets/graphiql/rails/{graphiql-0.8.0.css → graphiql-0.8.1.css} +179 -208
- data/lib/graphiql/rails/version.rb +1 -1
- metadata +6 -6
- data/app/assets/javascripts/graphiql/rails/react-dom-15.3.2.js +0 -42
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff9e7cfa91d0280a9439eb68b3e887e3ca0771c3
|
4
|
+
data.tar.gz: 66e1bcecb13563434e9b79c77c95763b24be8695
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89bc8d04c82d84cafd494ec7266a4b50b62bdf853e7833c79603d9d510f1039e4ce0b611e5eb6923dd1510c416711f10cfb57b164ef6960ba10947246edf8288
|
7
|
+
data.tar.gz: 8a278bede62220cabcd029e01b8c84c235e5d0e221d8cf994fa4d025f78bbc508e4cd9957a9fd2cb690f7e2af5d4dee31b8e1a5017ebbad674680a65eaeb87ef
|
@@ -1,4 +1,4 @@
|
|
1
|
-
//= require ./react-15.
|
2
|
-
//= require ./react-dom-15.
|
1
|
+
//= require ./react-15.4.1
|
2
|
+
//= require ./react-dom-15.4.1
|
3
3
|
//= require ./fetch-0.10.1
|
4
|
-
//= require ./graphiql-0.8.
|
4
|
+
//= require ./graphiql-0.8.1
|
@@ -13,15 +13,27 @@ var _react = (typeof window !== "undefined" ? window['React'] : typeof global !=
|
|
13
13
|
|
14
14
|
var _react2 = _interopRequireDefault(_react);
|
15
15
|
|
16
|
-
var
|
16
|
+
var _graphql = require('graphql');
|
17
17
|
|
18
|
-
var
|
18
|
+
var _FieldDoc = require('./DocExplorer/FieldDoc');
|
19
19
|
|
20
|
-
var
|
20
|
+
var _FieldDoc2 = _interopRequireDefault(_FieldDoc);
|
21
21
|
|
22
|
-
var
|
22
|
+
var _SchemaDoc = require('./DocExplorer/SchemaDoc');
|
23
23
|
|
24
|
-
var
|
24
|
+
var _SchemaDoc2 = _interopRequireDefault(_SchemaDoc);
|
25
|
+
|
26
|
+
var _SearchBox = require('./DocExplorer/SearchBox');
|
27
|
+
|
28
|
+
var _SearchBox2 = _interopRequireDefault(_SearchBox);
|
29
|
+
|
30
|
+
var _SearchResults = require('./DocExplorer/SearchResults');
|
31
|
+
|
32
|
+
var _SearchResults2 = _interopRequireDefault(_SearchResults);
|
33
|
+
|
34
|
+
var _TypeDoc = require('./DocExplorer/TypeDoc');
|
35
|
+
|
36
|
+
var _TypeDoc2 = _interopRequireDefault(_TypeDoc);
|
25
37
|
|
26
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
27
39
|
|
@@ -101,7 +113,7 @@ var DocExplorer = exports.DocExplorer = function (_React$Component) {
|
|
101
113
|
if (navItem) {
|
102
114
|
if (navItem.name === 'Search Results') {
|
103
115
|
title = navItem.name;
|
104
|
-
content = _react2.default.createElement(
|
116
|
+
content = _react2.default.createElement(_SearchResults2.default, {
|
105
117
|
searchValue: navItem.searchValue,
|
106
118
|
schema: schema,
|
107
119
|
onClickType: this.handleClickTypeOrField,
|
@@ -110,7 +122,7 @@ var DocExplorer = exports.DocExplorer = function (_React$Component) {
|
|
110
122
|
} else {
|
111
123
|
title = navItem.name;
|
112
124
|
if ((0, _graphql.isType)(navItem)) {
|
113
|
-
content = _react2.default.createElement(
|
125
|
+
content = _react2.default.createElement(_TypeDoc2.default, {
|
114
126
|
key: navItem.name,
|
115
127
|
schema: schema,
|
116
128
|
type: navItem,
|
@@ -118,7 +130,7 @@ var DocExplorer = exports.DocExplorer = function (_React$Component) {
|
|
118
130
|
onClickField: this.handleClickTypeOrField
|
119
131
|
});
|
120
132
|
} else {
|
121
|
-
content = _react2.default.createElement(
|
133
|
+
content = _react2.default.createElement(_FieldDoc2.default, {
|
122
134
|
key: navItem.name,
|
123
135
|
field: navItem,
|
124
136
|
onClickType: this.handleClickTypeOrField
|
@@ -127,7 +139,7 @@ var DocExplorer = exports.DocExplorer = function (_React$Component) {
|
|
127
139
|
}
|
128
140
|
} else if (schema) {
|
129
141
|
title = 'Documentation Explorer';
|
130
|
-
content = _react2.default.createElement(
|
142
|
+
content = _react2.default.createElement(_SchemaDoc2.default, { schema: schema, onClickType: this.handleClickTypeOrField });
|
131
143
|
}
|
132
144
|
|
133
145
|
var prevName = void 0;
|
@@ -143,7 +155,7 @@ var DocExplorer = exports.DocExplorer = function (_React$Component) {
|
|
143
155
|
_react2.default.createElement('div', { className: 'spinner' })
|
144
156
|
);
|
145
157
|
|
146
|
-
var shouldSearchBoxAppear = content && (content.type ===
|
158
|
+
var shouldSearchBoxAppear = content && (content.type === _SearchResults2.default || content.type === _SchemaDoc2.default);
|
147
159
|
|
148
160
|
return _react2.default.createElement(
|
149
161
|
'div',
|
@@ -172,7 +184,7 @@ var DocExplorer = exports.DocExplorer = function (_React$Component) {
|
|
172
184
|
_react2.default.createElement(
|
173
185
|
'div',
|
174
186
|
{ className: 'doc-explorer-contents' },
|
175
|
-
_react2.default.createElement(
|
187
|
+
_react2.default.createElement(_SearchBox2.default, {
|
176
188
|
isShown: shouldSearchBoxAppear,
|
177
189
|
onSearch: this.handleSearch
|
178
190
|
}),
|
@@ -218,26 +230,379 @@ var DocExplorer = exports.DocExplorer = function (_React$Component) {
|
|
218
230
|
DocExplorer.propTypes = {
|
219
231
|
schema: _react.PropTypes.instanceOf(_graphql.GraphQLSchema)
|
220
232
|
};
|
233
|
+
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
234
|
+
},{"./DocExplorer/FieldDoc":2,"./DocExplorer/SchemaDoc":4,"./DocExplorer/SearchBox":5,"./DocExplorer/SearchResults":6,"./DocExplorer/TypeDoc":7,"graphql":64}],2:[function(require,module,exports){
|
235
|
+
(function (global){
|
236
|
+
'use strict';
|
237
|
+
|
238
|
+
Object.defineProperty(exports, "__esModule", {
|
239
|
+
value: true
|
240
|
+
});
|
241
|
+
|
242
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
243
|
+
|
244
|
+
var _react = (typeof window !== "undefined" ? window['React'] : typeof global !== "undefined" ? global['React'] : null);
|
245
|
+
|
246
|
+
var _react2 = _interopRequireDefault(_react);
|
247
|
+
|
248
|
+
var _MarkdownContent = require('./MarkdownContent');
|
249
|
+
|
250
|
+
var _MarkdownContent2 = _interopRequireDefault(_MarkdownContent);
|
251
|
+
|
252
|
+
var _TypeLink = require('./TypeLink');
|
253
|
+
|
254
|
+
var _TypeLink2 = _interopRequireDefault(_TypeLink);
|
255
|
+
|
256
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
257
|
+
|
258
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
259
|
+
|
260
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
261
|
+
|
262
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
263
|
+
* Copyright (c) 2015, Facebook, Inc.
|
264
|
+
* All rights reserved.
|
265
|
+
*
|
266
|
+
* This source code is licensed under the license found in the
|
267
|
+
* LICENSE-examples file in the root directory of this source tree.
|
268
|
+
*/
|
269
|
+
|
270
|
+
var FieldDoc = function (_React$Component) {
|
271
|
+
_inherits(FieldDoc, _React$Component);
|
272
|
+
|
273
|
+
function FieldDoc() {
|
274
|
+
_classCallCheck(this, FieldDoc);
|
275
|
+
|
276
|
+
return _possibleConstructorReturn(this, (FieldDoc.__proto__ || Object.getPrototypeOf(FieldDoc)).apply(this, arguments));
|
277
|
+
}
|
278
|
+
|
279
|
+
_createClass(FieldDoc, [{
|
280
|
+
key: 'shouldComponentUpdate',
|
281
|
+
value: function shouldComponentUpdate(nextProps) {
|
282
|
+
return this.props.field !== nextProps.field;
|
283
|
+
}
|
284
|
+
}, {
|
285
|
+
key: 'render',
|
286
|
+
value: function render() {
|
287
|
+
var _this2 = this;
|
288
|
+
|
289
|
+
var field = this.props.field;
|
290
|
+
|
291
|
+
var argsDef = void 0;
|
292
|
+
if (field.args && field.args.length > 0) {
|
293
|
+
argsDef = _react2.default.createElement(
|
294
|
+
'div',
|
295
|
+
{ className: 'doc-category' },
|
296
|
+
_react2.default.createElement(
|
297
|
+
'div',
|
298
|
+
{ className: 'doc-category-title' },
|
299
|
+
'arguments'
|
300
|
+
),
|
301
|
+
field.args.map(function (arg) {
|
302
|
+
return _react2.default.createElement(
|
303
|
+
'div',
|
304
|
+
{ key: arg.name, className: 'doc-category-item' },
|
305
|
+
_react2.default.createElement(
|
306
|
+
'div',
|
307
|
+
null,
|
308
|
+
_react2.default.createElement(
|
309
|
+
'span',
|
310
|
+
{ className: 'arg-name' },
|
311
|
+
arg.name
|
312
|
+
),
|
313
|
+
': ',
|
314
|
+
_react2.default.createElement(_TypeLink2.default, { type: arg.type, onClick: _this2.props.onClickType })
|
315
|
+
),
|
316
|
+
_react2.default.createElement(_MarkdownContent2.default, {
|
317
|
+
className: 'doc-value-description',
|
318
|
+
markdown: arg.description
|
319
|
+
})
|
320
|
+
);
|
321
|
+
})
|
322
|
+
);
|
323
|
+
}
|
324
|
+
|
325
|
+
return _react2.default.createElement(
|
326
|
+
'div',
|
327
|
+
null,
|
328
|
+
_react2.default.createElement(_MarkdownContent2.default, {
|
329
|
+
className: 'doc-type-description',
|
330
|
+
markdown: field.description || 'No Description'
|
331
|
+
}),
|
332
|
+
field.deprecationReason && _react2.default.createElement(_MarkdownContent2.default, {
|
333
|
+
className: 'doc-alert-text',
|
334
|
+
markdown: field.deprecationReason
|
335
|
+
}),
|
336
|
+
_react2.default.createElement(
|
337
|
+
'div',
|
338
|
+
{ className: 'doc-category' },
|
339
|
+
_react2.default.createElement(
|
340
|
+
'div',
|
341
|
+
{ className: 'doc-category-title' },
|
342
|
+
'type'
|
343
|
+
),
|
344
|
+
_react2.default.createElement(_TypeLink2.default, { type: field.type, onClick: this.props.onClickType })
|
345
|
+
),
|
346
|
+
argsDef
|
347
|
+
);
|
348
|
+
}
|
349
|
+
}]);
|
350
|
+
|
351
|
+
return FieldDoc;
|
352
|
+
}(_react2.default.Component);
|
353
|
+
|
354
|
+
FieldDoc.propTypes = {
|
355
|
+
field: _react.PropTypes.object,
|
356
|
+
onClickType: _react.PropTypes.func
|
357
|
+
};
|
358
|
+
exports.default = FieldDoc;
|
359
|
+
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
360
|
+
},{"./MarkdownContent":3,"./TypeLink":8}],3:[function(require,module,exports){
|
361
|
+
(function (global){
|
362
|
+
'use strict';
|
363
|
+
|
364
|
+
Object.defineProperty(exports, "__esModule", {
|
365
|
+
value: true
|
366
|
+
});
|
367
|
+
|
368
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
369
|
+
|
370
|
+
var _react = (typeof window !== "undefined" ? window['React'] : typeof global !== "undefined" ? global['React'] : null);
|
371
|
+
|
372
|
+
var _react2 = _interopRequireDefault(_react);
|
373
|
+
|
374
|
+
var _marked = require('marked');
|
375
|
+
|
376
|
+
var _marked2 = _interopRequireDefault(_marked);
|
377
|
+
|
378
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
379
|
+
|
380
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
381
|
+
|
382
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
383
|
+
|
384
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
385
|
+
* Copyright (c) 2015, Facebook, Inc.
|
386
|
+
* All rights reserved.
|
387
|
+
*
|
388
|
+
* This source code is licensed under the license found in the
|
389
|
+
* LICENSE-examples file in the root directory of this source tree.
|
390
|
+
*/
|
391
|
+
|
392
|
+
var MarkdownContent = function (_React$Component) {
|
393
|
+
_inherits(MarkdownContent, _React$Component);
|
394
|
+
|
395
|
+
function MarkdownContent() {
|
396
|
+
_classCallCheck(this, MarkdownContent);
|
397
|
+
|
398
|
+
return _possibleConstructorReturn(this, (MarkdownContent.__proto__ || Object.getPrototypeOf(MarkdownContent)).apply(this, arguments));
|
399
|
+
}
|
400
|
+
|
401
|
+
_createClass(MarkdownContent, [{
|
402
|
+
key: 'shouldComponentUpdate',
|
403
|
+
value: function shouldComponentUpdate(nextProps) {
|
404
|
+
return this.props.markdown !== nextProps.markdown;
|
405
|
+
}
|
406
|
+
}, {
|
407
|
+
key: 'render',
|
408
|
+
value: function render() {
|
409
|
+
var markdown = this.props.markdown;
|
410
|
+
if (!markdown) {
|
411
|
+
return _react2.default.createElement('div', null);
|
412
|
+
}
|
413
|
+
|
414
|
+
var html = (0, _marked2.default)(markdown, { sanitize: true });
|
415
|
+
return _react2.default.createElement('div', {
|
416
|
+
className: this.props.className,
|
417
|
+
dangerouslySetInnerHTML: { __html: html }
|
418
|
+
});
|
419
|
+
}
|
420
|
+
}]);
|
421
|
+
|
422
|
+
return MarkdownContent;
|
423
|
+
}(_react2.default.Component);
|
424
|
+
|
425
|
+
MarkdownContent.propTypes = {
|
426
|
+
markdown: _react.PropTypes.string,
|
427
|
+
className: _react.PropTypes.string
|
428
|
+
};
|
429
|
+
exports.default = MarkdownContent;
|
430
|
+
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
431
|
+
},{"marked":134}],4:[function(require,module,exports){
|
432
|
+
(function (global){
|
433
|
+
'use strict';
|
221
434
|
|
222
|
-
|
223
|
-
|
435
|
+
Object.defineProperty(exports, "__esModule", {
|
436
|
+
value: true
|
437
|
+
});
|
438
|
+
|
439
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
440
|
+
|
441
|
+
var _react = (typeof window !== "undefined" ? window['React'] : typeof global !== "undefined" ? global['React'] : null);
|
442
|
+
|
443
|
+
var _react2 = _interopRequireDefault(_react);
|
444
|
+
|
445
|
+
var _TypeLink = require('./TypeLink');
|
446
|
+
|
447
|
+
var _TypeLink2 = _interopRequireDefault(_TypeLink);
|
448
|
+
|
449
|
+
var _MarkdownContent = require('./MarkdownContent');
|
450
|
+
|
451
|
+
var _MarkdownContent2 = _interopRequireDefault(_MarkdownContent);
|
452
|
+
|
453
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
454
|
+
|
455
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
456
|
+
|
457
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
458
|
+
|
459
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
460
|
+
* Copyright (c) 2015, Facebook, Inc.
|
461
|
+
* All rights reserved.
|
462
|
+
*
|
463
|
+
* This source code is licensed under the license found in the
|
464
|
+
* LICENSE-examples file in the root directory of this source tree.
|
465
|
+
*/
|
466
|
+
|
467
|
+
// Render the top level Schema
|
468
|
+
var SchemaDoc = function (_React$Component) {
|
469
|
+
_inherits(SchemaDoc, _React$Component);
|
470
|
+
|
471
|
+
function SchemaDoc() {
|
472
|
+
_classCallCheck(this, SchemaDoc);
|
473
|
+
|
474
|
+
return _possibleConstructorReturn(this, (SchemaDoc.__proto__ || Object.getPrototypeOf(SchemaDoc)).apply(this, arguments));
|
475
|
+
}
|
476
|
+
|
477
|
+
_createClass(SchemaDoc, [{
|
478
|
+
key: 'shouldComponentUpdate',
|
479
|
+
value: function shouldComponentUpdate(nextProps) {
|
480
|
+
return this.props.schema !== nextProps.schema;
|
481
|
+
}
|
482
|
+
}, {
|
483
|
+
key: 'render',
|
484
|
+
value: function render() {
|
485
|
+
var schema = this.props.schema;
|
486
|
+
var queryType = schema.getQueryType();
|
487
|
+
var mutationType = schema.getMutationType && schema.getMutationType();
|
488
|
+
var subscriptionType = schema.getSubscriptionType && schema.getSubscriptionType();
|
489
|
+
|
490
|
+
return _react2.default.createElement(
|
491
|
+
'div',
|
492
|
+
null,
|
493
|
+
_react2.default.createElement(_MarkdownContent2.default, {
|
494
|
+
className: 'doc-type-description',
|
495
|
+
markdown: 'A GraphQL schema provides a root type for each kind of operation.'
|
496
|
+
}),
|
497
|
+
_react2.default.createElement(
|
498
|
+
'div',
|
499
|
+
{ className: 'doc-category' },
|
500
|
+
_react2.default.createElement(
|
501
|
+
'div',
|
502
|
+
{ className: 'doc-category-title' },
|
503
|
+
'root types'
|
504
|
+
),
|
505
|
+
_react2.default.createElement(
|
506
|
+
'div',
|
507
|
+
{ className: 'doc-category-item' },
|
508
|
+
_react2.default.createElement(
|
509
|
+
'span',
|
510
|
+
{ className: 'keyword' },
|
511
|
+
'query'
|
512
|
+
),
|
513
|
+
': ',
|
514
|
+
_react2.default.createElement(_TypeLink2.default, { type: queryType, onClick: this.props.onClickType })
|
515
|
+
),
|
516
|
+
mutationType && _react2.default.createElement(
|
517
|
+
'div',
|
518
|
+
{ className: 'doc-category-item' },
|
519
|
+
_react2.default.createElement(
|
520
|
+
'span',
|
521
|
+
{ className: 'keyword' },
|
522
|
+
'mutation'
|
523
|
+
),
|
524
|
+
': ',
|
525
|
+
_react2.default.createElement(_TypeLink2.default, { type: mutationType, onClick: this.props.onClickType })
|
526
|
+
),
|
527
|
+
subscriptionType && _react2.default.createElement(
|
528
|
+
'div',
|
529
|
+
{ className: 'doc-category-item' },
|
530
|
+
_react2.default.createElement(
|
531
|
+
'span',
|
532
|
+
{ className: 'keyword' },
|
533
|
+
'subscription'
|
534
|
+
),
|
535
|
+
': ',
|
536
|
+
_react2.default.createElement(_TypeLink2.default, {
|
537
|
+
type: subscriptionType,
|
538
|
+
onClick: this.props.onClickType
|
539
|
+
})
|
540
|
+
)
|
541
|
+
)
|
542
|
+
);
|
543
|
+
}
|
544
|
+
}]);
|
545
|
+
|
546
|
+
return SchemaDoc;
|
547
|
+
}(_react2.default.Component);
|
548
|
+
|
549
|
+
SchemaDoc.propTypes = {
|
550
|
+
schema: _react.PropTypes.object,
|
551
|
+
onClickType: _react.PropTypes.func
|
552
|
+
};
|
553
|
+
exports.default = SchemaDoc;
|
554
|
+
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
555
|
+
},{"./MarkdownContent":3,"./TypeLink":8}],5:[function(require,module,exports){
|
556
|
+
(function (global){
|
557
|
+
'use strict';
|
558
|
+
|
559
|
+
Object.defineProperty(exports, "__esModule", {
|
560
|
+
value: true
|
561
|
+
});
|
562
|
+
|
563
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
564
|
+
|
565
|
+
var _react = (typeof window !== "undefined" ? window['React'] : typeof global !== "undefined" ? global['React'] : null);
|
566
|
+
|
567
|
+
var _react2 = _interopRequireDefault(_react);
|
568
|
+
|
569
|
+
var _debounce = require('../../utility/debounce');
|
570
|
+
|
571
|
+
var _debounce2 = _interopRequireDefault(_debounce);
|
572
|
+
|
573
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
574
|
+
|
575
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
576
|
+
|
577
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
578
|
+
|
579
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
580
|
+
* Copyright (c) 2015, Facebook, Inc.
|
581
|
+
* All rights reserved.
|
582
|
+
*
|
583
|
+
* This source code is licensed under the license found in the
|
584
|
+
* LICENSE-examples file in the root directory of this source tree.
|
585
|
+
*/
|
586
|
+
|
587
|
+
var SearchBox = function (_React$Component) {
|
588
|
+
_inherits(SearchBox, _React$Component);
|
224
589
|
|
225
590
|
function SearchBox(props) {
|
226
591
|
_classCallCheck(this, SearchBox);
|
227
592
|
|
228
|
-
var
|
593
|
+
var _this = _possibleConstructorReturn(this, (SearchBox.__proto__ || Object.getPrototypeOf(SearchBox)).call(this, props));
|
229
594
|
|
230
|
-
|
231
|
-
|
232
|
-
|
595
|
+
_this.handleChange = function (event) {
|
596
|
+
_this.setState({ value: event.target.value });
|
597
|
+
_this._debouncedOnSearch();
|
233
598
|
};
|
234
599
|
|
235
|
-
|
600
|
+
_this.state = { value: '' };
|
236
601
|
|
237
|
-
|
238
|
-
|
602
|
+
_this._debouncedOnSearch = (0, _debounce2.default)(200, function () {
|
603
|
+
_this.props.onSearch(_this.state.value);
|
239
604
|
});
|
240
|
-
return
|
605
|
+
return _this;
|
241
606
|
}
|
242
607
|
|
243
608
|
_createClass(SearchBox, [{
|
@@ -268,24 +633,54 @@ var SearchBox = function (_React$Component2) {
|
|
268
633
|
return SearchBox;
|
269
634
|
}(_react2.default.Component);
|
270
635
|
|
271
|
-
// Render Search Results
|
272
|
-
|
273
|
-
|
274
636
|
SearchBox.propTypes = {
|
275
637
|
isShown: _react.PropTypes.bool,
|
276
638
|
onSearch: _react.PropTypes.func
|
277
639
|
};
|
640
|
+
exports.default = SearchBox;
|
641
|
+
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
642
|
+
},{"../../utility/debounce":17}],6:[function(require,module,exports){
|
643
|
+
(function (global){
|
644
|
+
'use strict';
|
278
645
|
|
279
|
-
|
280
|
-
|
646
|
+
Object.defineProperty(exports, "__esModule", {
|
647
|
+
value: true
|
648
|
+
});
|
649
|
+
|
650
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
651
|
+
|
652
|
+
var _react = (typeof window !== "undefined" ? window['React'] : typeof global !== "undefined" ? global['React'] : null);
|
653
|
+
|
654
|
+
var _react2 = _interopRequireDefault(_react);
|
655
|
+
|
656
|
+
var _TypeLink = require('./TypeLink');
|
281
657
|
|
282
|
-
|
283
|
-
_classCallCheck(this, SearchDoc);
|
658
|
+
var _TypeLink2 = _interopRequireDefault(_TypeLink);
|
284
659
|
|
285
|
-
|
660
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
661
|
+
|
662
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
663
|
+
|
664
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
665
|
+
|
666
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
667
|
+
* Copyright (c) 2015, Facebook, Inc.
|
668
|
+
* All rights reserved.
|
669
|
+
*
|
670
|
+
* This source code is licensed under the license found in the
|
671
|
+
* LICENSE-examples file in the root directory of this source tree.
|
672
|
+
*/
|
673
|
+
|
674
|
+
var SearchResults = function (_React$Component) {
|
675
|
+
_inherits(SearchResults, _React$Component);
|
676
|
+
|
677
|
+
function SearchResults() {
|
678
|
+
_classCallCheck(this, SearchResults);
|
679
|
+
|
680
|
+
return _possibleConstructorReturn(this, (SearchResults.__proto__ || Object.getPrototypeOf(SearchResults)).apply(this, arguments));
|
286
681
|
}
|
287
682
|
|
288
|
-
_createClass(
|
683
|
+
_createClass(SearchResults, [{
|
289
684
|
key: 'shouldComponentUpdate',
|
290
685
|
value: function shouldComponentUpdate(nextProps) {
|
291
686
|
return this.props.schema !== nextProps.schema || this.props.searchValue !== nextProps.searchValue;
|
@@ -293,7 +688,7 @@ var SearchDoc = function (_React$Component3) {
|
|
293
688
|
}, {
|
294
689
|
key: 'render',
|
295
690
|
value: function render() {
|
296
|
-
var
|
691
|
+
var _this2 = this;
|
297
692
|
|
298
693
|
var searchValue = this.props.searchValue;
|
299
694
|
var schema = this.props.schema;
|
@@ -320,7 +715,7 @@ var SearchDoc = function (_React$Component3) {
|
|
320
715
|
|
321
716
|
var type = typeMap[typeName];
|
322
717
|
var matchedOn = [];
|
323
|
-
if (
|
718
|
+
if (_this2._isMatch(typeName, searchValue)) {
|
324
719
|
matchedOn.push('Type Name');
|
325
720
|
}
|
326
721
|
|
@@ -328,7 +723,7 @@ var SearchDoc = function (_React$Component3) {
|
|
328
723
|
matchedTypes.push(_react2.default.createElement(
|
329
724
|
'div',
|
330
725
|
{ className: 'doc-category-item' },
|
331
|
-
_react2.default.createElement(
|
726
|
+
_react2.default.createElement(_TypeLink2.default, { type: type, onClick: onClickType })
|
332
727
|
));
|
333
728
|
}
|
334
729
|
|
@@ -337,7 +732,7 @@ var SearchDoc = function (_React$Component3) {
|
|
337
732
|
var fields = type.getFields();
|
338
733
|
Object.keys(fields).forEach(function (fieldName) {
|
339
734
|
var field = fields[fieldName];
|
340
|
-
if (
|
735
|
+
if (_this2._isMatch(fieldName, searchValue)) {
|
341
736
|
matchedFields.push(_react2.default.createElement(
|
342
737
|
'div',
|
343
738
|
{ className: 'doc-category-item' },
|
@@ -350,11 +745,11 @@ var SearchDoc = function (_React$Component3) {
|
|
350
745
|
field.name
|
351
746
|
),
|
352
747
|
' on ',
|
353
|
-
_react2.default.createElement(
|
748
|
+
_react2.default.createElement(_TypeLink2.default, { type: type, onClick: onClickType })
|
354
749
|
));
|
355
750
|
} else if (field.args && field.args.length) {
|
356
751
|
var matches = field.args.filter(function (arg) {
|
357
|
-
return
|
752
|
+
return _this2._isMatch(arg.name, searchValue);
|
358
753
|
});
|
359
754
|
if (matches.length > 0) {
|
360
755
|
matchedFields.push(_react2.default.createElement(
|
@@ -382,13 +777,13 @@ var SearchDoc = function (_React$Component3) {
|
|
382
777
|
arg.name
|
383
778
|
),
|
384
779
|
': ',
|
385
|
-
_react2.default.createElement(
|
780
|
+
_react2.default.createElement(_TypeLink2.default, { type: arg.type, onClick: onClickType })
|
386
781
|
);
|
387
782
|
})
|
388
783
|
),
|
389
784
|
')',
|
390
785
|
' on ',
|
391
|
-
_react2.default.createElement(
|
786
|
+
_react2.default.createElement(_TypeLink2.default, { type: type, onClick: onClickType })
|
392
787
|
));
|
393
788
|
}
|
394
789
|
}
|
@@ -424,141 +819,88 @@ var SearchDoc = function (_React$Component3) {
|
|
424
819
|
'No results found.'
|
425
820
|
);
|
426
821
|
}
|
427
|
-
|
428
|
-
return _react2.default.createElement(
|
429
|
-
'div',
|
430
|
-
null,
|
431
|
-
_react2.default.createElement(
|
432
|
-
'div',
|
433
|
-
{ className: 'doc-category' },
|
434
|
-
(matchedTypes.length > 0 || matchedFields.length > 0) && _react2.default.createElement(
|
435
|
-
'div',
|
436
|
-
{ className: 'doc-category-title' },
|
437
|
-
'search results'
|
438
|
-
),
|
439
|
-
matchedTypes,
|
440
|
-
matchedFields
|
441
|
-
)
|
442
|
-
);
|
443
|
-
}
|
444
|
-
}, {
|
445
|
-
key: '_isMatch',
|
446
|
-
value: function _isMatch(sourceText, searchValue) {
|
447
|
-
try {
|
448
|
-
var escaped = searchValue.replace(/[^_0-9A-Za-z]/g, function (ch) {
|
449
|
-
return '\\' + ch;
|
450
|
-
});
|
451
|
-
return sourceText.search(new RegExp(escaped, 'i')) !== -1;
|
452
|
-
} catch (e) {
|
453
|
-
return sourceText.toLowerCase().indexOf(searchValue.toLowerCase()) !== -1;
|
454
|
-
}
|
455
|
-
}
|
456
|
-
}]);
|
457
|
-
|
458
|
-
return SearchDoc;
|
459
|
-
}(_react2.default.Component);
|
460
|
-
|
461
|
-
// Render the top level Schema
|
462
|
-
|
463
|
-
|
464
|
-
SearchDoc.propTypes = {
|
465
|
-
schema: _react.PropTypes.object,
|
466
|
-
searchValue: _react.PropTypes.string,
|
467
|
-
onClickType: _react.PropTypes.func,
|
468
|
-
onClickField: _react.PropTypes.func
|
469
|
-
};
|
470
|
-
|
471
|
-
var SchemaDoc = function (_React$Component4) {
|
472
|
-
_inherits(SchemaDoc, _React$Component4);
|
473
|
-
|
474
|
-
function SchemaDoc() {
|
475
|
-
_classCallCheck(this, SchemaDoc);
|
476
|
-
|
477
|
-
return _possibleConstructorReturn(this, (SchemaDoc.__proto__ || Object.getPrototypeOf(SchemaDoc)).apply(this, arguments));
|
478
|
-
}
|
479
|
-
|
480
|
-
_createClass(SchemaDoc, [{
|
481
|
-
key: 'shouldComponentUpdate',
|
482
|
-
value: function shouldComponentUpdate(nextProps) {
|
483
|
-
return this.props.schema !== nextProps.schema;
|
484
|
-
}
|
485
|
-
}, {
|
486
|
-
key: 'render',
|
487
|
-
value: function render() {
|
488
|
-
var schema = this.props.schema;
|
489
|
-
var queryType = schema.getQueryType();
|
490
|
-
var mutationType = schema.getMutationType && schema.getMutationType();
|
491
|
-
var subscriptionType = schema.getSubscriptionType && schema.getSubscriptionType();
|
492
|
-
|
493
|
-
return _react2.default.createElement(
|
494
|
-
'div',
|
495
|
-
null,
|
496
|
-
_react2.default.createElement(MarkdownContent, {
|
497
|
-
className: 'doc-type-description',
|
498
|
-
markdown: 'A GraphQL schema provides a root type for each kind of operation.'
|
499
|
-
}),
|
500
|
-
_react2.default.createElement(
|
501
|
-
'div',
|
502
|
-
{ className: 'doc-category' },
|
503
|
-
_react2.default.createElement(
|
504
|
-
'div',
|
505
|
-
{ className: 'doc-category-title' },
|
506
|
-
'root types'
|
507
|
-
),
|
508
|
-
_react2.default.createElement(
|
509
|
-
'div',
|
510
|
-
{ className: 'doc-category-item' },
|
511
|
-
_react2.default.createElement(
|
512
|
-
'span',
|
513
|
-
{ className: 'keyword' },
|
514
|
-
'query'
|
515
|
-
),
|
516
|
-
': ',
|
517
|
-
_react2.default.createElement(TypeLink, { type: queryType, onClick: this.props.onClickType })
|
518
|
-
),
|
519
|
-
mutationType && _react2.default.createElement(
|
822
|
+
|
823
|
+
return _react2.default.createElement(
|
824
|
+
'div',
|
825
|
+
null,
|
826
|
+
_react2.default.createElement(
|
827
|
+
'div',
|
828
|
+
{ className: 'doc-category' },
|
829
|
+
(matchedTypes.length > 0 || matchedFields.length > 0) && _react2.default.createElement(
|
520
830
|
'div',
|
521
|
-
{ className: 'doc-category-
|
522
|
-
|
523
|
-
'span',
|
524
|
-
{ className: 'keyword' },
|
525
|
-
'mutation'
|
526
|
-
),
|
527
|
-
': ',
|
528
|
-
_react2.default.createElement(TypeLink, { type: mutationType, onClick: this.props.onClickType })
|
831
|
+
{ className: 'doc-category-title' },
|
832
|
+
'search results'
|
529
833
|
),
|
530
|
-
|
531
|
-
|
532
|
-
{ className: 'doc-category-item' },
|
533
|
-
_react2.default.createElement(
|
534
|
-
'span',
|
535
|
-
{ className: 'keyword' },
|
536
|
-
'subscription'
|
537
|
-
),
|
538
|
-
': ',
|
539
|
-
_react2.default.createElement(TypeLink, {
|
540
|
-
type: subscriptionType,
|
541
|
-
onClick: this.props.onClickType
|
542
|
-
})
|
543
|
-
)
|
834
|
+
matchedTypes,
|
835
|
+
matchedFields
|
544
836
|
)
|
545
837
|
);
|
546
838
|
}
|
839
|
+
}, {
|
840
|
+
key: '_isMatch',
|
841
|
+
value: function _isMatch(sourceText, searchValue) {
|
842
|
+
try {
|
843
|
+
var escaped = searchValue.replace(/[^_0-9A-Za-z]/g, function (ch) {
|
844
|
+
return '\\' + ch;
|
845
|
+
});
|
846
|
+
return sourceText.search(new RegExp(escaped, 'i')) !== -1;
|
847
|
+
} catch (e) {
|
848
|
+
return sourceText.toLowerCase().indexOf(searchValue.toLowerCase()) !== -1;
|
849
|
+
}
|
850
|
+
}
|
547
851
|
}]);
|
548
852
|
|
549
|
-
return
|
853
|
+
return SearchResults;
|
550
854
|
}(_react2.default.Component);
|
551
855
|
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
SchemaDoc.propTypes = {
|
856
|
+
SearchResults.propTypes = {
|
556
857
|
schema: _react.PropTypes.object,
|
557
|
-
|
858
|
+
searchValue: _react.PropTypes.string,
|
859
|
+
onClickType: _react.PropTypes.func,
|
860
|
+
onClickField: _react.PropTypes.func
|
558
861
|
};
|
862
|
+
exports.default = SearchResults;
|
863
|
+
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
864
|
+
},{"./TypeLink":8}],7:[function(require,module,exports){
|
865
|
+
(function (global){
|
866
|
+
'use strict';
|
867
|
+
|
868
|
+
Object.defineProperty(exports, "__esModule", {
|
869
|
+
value: true
|
870
|
+
});
|
871
|
+
|
872
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
873
|
+
|
874
|
+
var _react = (typeof window !== "undefined" ? window['React'] : typeof global !== "undefined" ? global['React'] : null);
|
875
|
+
|
876
|
+
var _react2 = _interopRequireDefault(_react);
|
877
|
+
|
878
|
+
var _graphql = require('graphql');
|
879
|
+
|
880
|
+
var _MarkdownContent = require('./MarkdownContent');
|
881
|
+
|
882
|
+
var _MarkdownContent2 = _interopRequireDefault(_MarkdownContent);
|
883
|
+
|
884
|
+
var _TypeLink = require('./TypeLink');
|
885
|
+
|
886
|
+
var _TypeLink2 = _interopRequireDefault(_TypeLink);
|
887
|
+
|
888
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
889
|
+
|
890
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
891
|
+
|
892
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
893
|
+
|
894
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
895
|
+
* Copyright (c) 2015, Facebook, Inc.
|
896
|
+
* All rights reserved.
|
897
|
+
*
|
898
|
+
* This source code is licensed under the license found in the
|
899
|
+
* LICENSE-examples file in the root directory of this source tree.
|
900
|
+
*/
|
559
901
|
|
560
|
-
var TypeDoc = function (_React$
|
561
|
-
_inherits(TypeDoc, _React$
|
902
|
+
var TypeDoc = function (_React$Component) {
|
903
|
+
_inherits(TypeDoc, _React$Component);
|
562
904
|
|
563
905
|
function TypeDoc() {
|
564
906
|
_classCallCheck(this, TypeDoc);
|
@@ -606,7 +948,7 @@ var TypeDoc = function (_React$Component5) {
|
|
606
948
|
return _react2.default.createElement(
|
607
949
|
'div',
|
608
950
|
{ key: subtype.name, className: 'doc-category-item' },
|
609
|
-
_react2.default.createElement(
|
951
|
+
_react2.default.createElement(_TypeLink2.default, { type: subtype, onClick: onClickType })
|
610
952
|
);
|
611
953
|
})
|
612
954
|
);
|
@@ -643,7 +985,7 @@ var TypeDoc = function (_React$Component5) {
|
|
643
985
|
arg.name
|
644
986
|
),
|
645
987
|
': ',
|
646
|
-
_react2.default.createElement(
|
988
|
+
_react2.default.createElement(_TypeLink2.default, { type: arg.type, onClick: onClickType })
|
647
989
|
);
|
648
990
|
});
|
649
991
|
}
|
@@ -666,7 +1008,7 @@ var TypeDoc = function (_React$Component5) {
|
|
666
1008
|
argsDef
|
667
1009
|
), ')'],
|
668
1010
|
': ',
|
669
|
-
_react2.default.createElement(
|
1011
|
+
_react2.default.createElement(_TypeLink2.default, { type: field.type, onClick: onClickType }),
|
670
1012
|
(field.isDeprecated || field.deprecationReason) && _react2.default.createElement(
|
671
1013
|
'span',
|
672
1014
|
{ className: 'doc-alert-text' },
|
@@ -702,11 +1044,11 @@ var TypeDoc = function (_React$Component5) {
|
|
702
1044
|
' (DEPRECATED)'
|
703
1045
|
)
|
704
1046
|
),
|
705
|
-
_react2.default.createElement(
|
1047
|
+
_react2.default.createElement(_MarkdownContent2.default, {
|
706
1048
|
className: 'doc-value-description',
|
707
1049
|
markdown: value.description
|
708
1050
|
}),
|
709
|
-
value.deprecationReason && _react2.default.createElement(
|
1051
|
+
value.deprecationReason && _react2.default.createElement(_MarkdownContent2.default, {
|
710
1052
|
className: 'doc-alert-text',
|
711
1053
|
markdown: value.deprecationReason
|
712
1054
|
})
|
@@ -718,7 +1060,7 @@ var TypeDoc = function (_React$Component5) {
|
|
718
1060
|
return _react2.default.createElement(
|
719
1061
|
'div',
|
720
1062
|
null,
|
721
|
-
_react2.default.createElement(
|
1063
|
+
_react2.default.createElement(_MarkdownContent2.default, {
|
722
1064
|
className: 'doc-type-description',
|
723
1065
|
markdown: type.description || 'No Description'
|
724
1066
|
}),
|
@@ -733,110 +1075,46 @@ var TypeDoc = function (_React$Component5) {
|
|
733
1075
|
return TypeDoc;
|
734
1076
|
}(_react2.default.Component);
|
735
1077
|
|
736
|
-
// Documentation for a field
|
737
|
-
|
738
|
-
|
739
1078
|
TypeDoc.propTypes = {
|
740
1079
|
schema: _react.PropTypes.instanceOf(_graphql.GraphQLSchema),
|
741
1080
|
type: _react.PropTypes.object,
|
742
1081
|
onClickType: _react.PropTypes.func,
|
743
1082
|
onClickField: _react.PropTypes.func
|
744
1083
|
};
|
1084
|
+
exports.default = TypeDoc;
|
1085
|
+
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
1086
|
+
},{"./MarkdownContent":3,"./TypeLink":8,"graphql":64}],8:[function(require,module,exports){
|
1087
|
+
(function (global){
|
1088
|
+
'use strict';
|
745
1089
|
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
function FieldDoc() {
|
750
|
-
_classCallCheck(this, FieldDoc);
|
751
|
-
|
752
|
-
return _possibleConstructorReturn(this, (FieldDoc.__proto__ || Object.getPrototypeOf(FieldDoc)).apply(this, arguments));
|
753
|
-
}
|
1090
|
+
Object.defineProperty(exports, "__esModule", {
|
1091
|
+
value: true
|
1092
|
+
});
|
754
1093
|
|
755
|
-
|
756
|
-
key: 'shouldComponentUpdate',
|
757
|
-
value: function shouldComponentUpdate(nextProps) {
|
758
|
-
return this.props.field !== nextProps.field;
|
759
|
-
}
|
760
|
-
}, {
|
761
|
-
key: 'render',
|
762
|
-
value: function render() {
|
763
|
-
var _this8 = this;
|
1094
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
764
1095
|
|
765
|
-
|
1096
|
+
var _react = (typeof window !== "undefined" ? window['React'] : typeof global !== "undefined" ? global['React'] : null);
|
766
1097
|
|
767
|
-
|
768
|
-
if (field.args && field.args.length > 0) {
|
769
|
-
argsDef = _react2.default.createElement(
|
770
|
-
'div',
|
771
|
-
{ className: 'doc-category' },
|
772
|
-
_react2.default.createElement(
|
773
|
-
'div',
|
774
|
-
{ className: 'doc-category-title' },
|
775
|
-
'arguments'
|
776
|
-
),
|
777
|
-
field.args.map(function (arg) {
|
778
|
-
return _react2.default.createElement(
|
779
|
-
'div',
|
780
|
-
{ key: arg.name, className: 'doc-category-item' },
|
781
|
-
_react2.default.createElement(
|
782
|
-
'div',
|
783
|
-
null,
|
784
|
-
_react2.default.createElement(
|
785
|
-
'span',
|
786
|
-
{ className: 'arg-name' },
|
787
|
-
arg.name
|
788
|
-
),
|
789
|
-
': ',
|
790
|
-
_react2.default.createElement(TypeLink, { type: arg.type, onClick: _this8.props.onClickType })
|
791
|
-
),
|
792
|
-
_react2.default.createElement(MarkdownContent, {
|
793
|
-
className: 'doc-value-description',
|
794
|
-
markdown: arg.description
|
795
|
-
})
|
796
|
-
);
|
797
|
-
})
|
798
|
-
);
|
799
|
-
}
|
1098
|
+
var _react2 = _interopRequireDefault(_react);
|
800
1099
|
|
801
|
-
|
802
|
-
'div',
|
803
|
-
null,
|
804
|
-
_react2.default.createElement(MarkdownContent, {
|
805
|
-
className: 'doc-type-description',
|
806
|
-
markdown: field.description || 'No Description'
|
807
|
-
}),
|
808
|
-
field.deprecationReason && _react2.default.createElement(MarkdownContent, {
|
809
|
-
className: 'doc-alert-text',
|
810
|
-
markdown: field.deprecationReason
|
811
|
-
}),
|
812
|
-
_react2.default.createElement(
|
813
|
-
'div',
|
814
|
-
{ className: 'doc-category' },
|
815
|
-
_react2.default.createElement(
|
816
|
-
'div',
|
817
|
-
{ className: 'doc-category-title' },
|
818
|
-
'type'
|
819
|
-
),
|
820
|
-
_react2.default.createElement(TypeLink, { type: field.type, onClick: this.props.onClickType })
|
821
|
-
),
|
822
|
-
argsDef
|
823
|
-
);
|
824
|
-
}
|
825
|
-
}]);
|
1100
|
+
var _graphql = require('graphql');
|
826
1101
|
|
827
|
-
|
828
|
-
}(_react2.default.Component);
|
1102
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
829
1103
|
|
830
|
-
|
1104
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
831
1105
|
|
1106
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
832
1107
|
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
|
1108
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
1109
|
+
* Copyright (c) 2015, Facebook, Inc.
|
1110
|
+
* All rights reserved.
|
1111
|
+
*
|
1112
|
+
* This source code is licensed under the license found in the
|
1113
|
+
* LICENSE-examples file in the root directory of this source tree.
|
1114
|
+
*/
|
837
1115
|
|
838
|
-
var TypeLink = function (_React$
|
839
|
-
_inherits(TypeLink, _React$
|
1116
|
+
var TypeLink = function (_React$Component) {
|
1117
|
+
_inherits(TypeLink, _React$Component);
|
840
1118
|
|
841
1119
|
function TypeLink() {
|
842
1120
|
_classCallCheck(this, TypeLink);
|
@@ -863,6 +1141,7 @@ TypeLink.propTypes = {
|
|
863
1141
|
type: _react.PropTypes.object,
|
864
1142
|
onClick: _react.PropTypes.func
|
865
1143
|
};
|
1144
|
+
exports.default = TypeLink;
|
866
1145
|
|
867
1146
|
|
868
1147
|
function renderType(type, _onClick) {
|
@@ -891,48 +1170,8 @@ function renderType(type, _onClick) {
|
|
891
1170
|
type.name
|
892
1171
|
);
|
893
1172
|
}
|
894
|
-
|
895
|
-
// Renders arbitrary markdown content
|
896
|
-
|
897
|
-
var MarkdownContent = function (_React$Component8) {
|
898
|
-
_inherits(MarkdownContent, _React$Component8);
|
899
|
-
|
900
|
-
function MarkdownContent() {
|
901
|
-
_classCallCheck(this, MarkdownContent);
|
902
|
-
|
903
|
-
return _possibleConstructorReturn(this, (MarkdownContent.__proto__ || Object.getPrototypeOf(MarkdownContent)).apply(this, arguments));
|
904
|
-
}
|
905
|
-
|
906
|
-
_createClass(MarkdownContent, [{
|
907
|
-
key: 'shouldComponentUpdate',
|
908
|
-
value: function shouldComponentUpdate(nextProps) {
|
909
|
-
return this.props.markdown !== nextProps.markdown;
|
910
|
-
}
|
911
|
-
}, {
|
912
|
-
key: 'render',
|
913
|
-
value: function render() {
|
914
|
-
var markdown = this.props.markdown;
|
915
|
-
if (!markdown) {
|
916
|
-
return _react2.default.createElement('div', null);
|
917
|
-
}
|
918
|
-
|
919
|
-
var html = (0, _marked2.default)(markdown, { sanitize: true });
|
920
|
-
return _react2.default.createElement('div', {
|
921
|
-
className: this.props.className,
|
922
|
-
dangerouslySetInnerHTML: { __html: html }
|
923
|
-
});
|
924
|
-
}
|
925
|
-
}]);
|
926
|
-
|
927
|
-
return MarkdownContent;
|
928
|
-
}(_react2.default.Component);
|
929
|
-
|
930
|
-
MarkdownContent.propTypes = {
|
931
|
-
markdown: _react.PropTypes.string,
|
932
|
-
className: _react.PropTypes.string
|
933
|
-
};
|
934
1173
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
935
|
-
},{"
|
1174
|
+
},{"graphql":64}],9:[function(require,module,exports){
|
936
1175
|
(function (global){
|
937
1176
|
'use strict';
|
938
1177
|
|
@@ -1102,7 +1341,7 @@ ExecuteButton.propTypes = {
|
|
1102
1341
|
operations: _react.PropTypes.array
|
1103
1342
|
};
|
1104
1343
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
1105
|
-
},{}],
|
1344
|
+
},{}],10:[function(require,module,exports){
|
1106
1345
|
(function (global){
|
1107
1346
|
'use strict';
|
1108
1347
|
|
@@ -1166,87 +1405,24 @@ var _elementPosition = require('../utility/elementPosition');
|
|
1166
1405
|
var _introspectionQueries = require('../utility/introspectionQueries');
|
1167
1406
|
|
1168
1407
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
1169
|
-
|
1170
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1171
|
-
|
1172
|
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
1173
|
-
|
1174
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
1175
|
-
* Copyright (c) 2015, Facebook, Inc.
|
1176
|
-
* All rights reserved.
|
1177
|
-
*
|
1178
|
-
* This source code is licensed under the license found in the
|
1179
|
-
* LICENSE-examples file in the root directory of this source tree.
|
1180
|
-
*/
|
1181
|
-
|
1182
|
-
/**
|
1183
|
-
* GraphiQL
|
1184
|
-
*
|
1185
|
-
* This React component is responsible for rendering the GraphiQL editor.
|
1186
|
-
*
|
1187
|
-
* Props:
|
1188
|
-
*
|
1189
|
-
* - fetcher: a function which accepts GraphQL-HTTP parameters and returns
|
1190
|
-
* a Promise or Observable which resolves to the GraphQL parsed
|
1191
|
-
* JSON response.
|
1192
|
-
*
|
1193
|
-
* - schema: a GraphQLSchema instance or `null` if one is not to be used.
|
1194
|
-
* If `undefined` is provided, GraphiQL will send an introspection query
|
1195
|
-
* using the fetcher to produce a schema.
|
1196
|
-
*
|
1197
|
-
* - query: an optional GraphQL string to use as the initial displayed query,
|
1198
|
-
* if `undefined` is provided, the stored query or defaultQuery will
|
1199
|
-
* be used.
|
1200
|
-
*
|
1201
|
-
* - variables: an optional GraphQL string to use as the initial displayed
|
1202
|
-
* query variables, if `undefined` is provided, the stored variables will
|
1203
|
-
* be used.
|
1204
|
-
*
|
1205
|
-
* - operationName: an optional name of which GraphQL operation should be
|
1206
|
-
* executed.
|
1207
|
-
*
|
1208
|
-
* - response: an optional JSON string to use as the initial displayed
|
1209
|
-
* response. If not provided, no response will be initialy shown. You might
|
1210
|
-
* provide this if illustrating the result of the initial query.
|
1211
|
-
*
|
1212
|
-
* - storage: an instance of [Storage][] GraphiQL will use to persist state.
|
1213
|
-
* Only `getItem` and `setItem` are called. Default: window.localStorage
|
1214
|
-
*
|
1215
|
-
* - defaultQuery: an optional GraphQL string to use when no query is provided
|
1216
|
-
* and no stored query exists from a previous session. If `undefined` is
|
1217
|
-
* provided, GraphiQL will use its own default query.
|
1218
|
-
*
|
1219
|
-
* - onEditQuery: an optional function which will be called when the Query
|
1220
|
-
* editor changes. The argument to the function will be the query string.
|
1221
|
-
*
|
1222
|
-
* - onEditVariables: an optional function which will be called when the Query
|
1223
|
-
* varible editor changes. The argument to the function will be the
|
1224
|
-
* variables string.
|
1225
|
-
*
|
1226
|
-
* - onEditOperationName: an optional function which will be called when the
|
1227
|
-
* operation name to be executed changes.
|
1228
|
-
*
|
1229
|
-
* - onToggleDocs: an optional function which will be called when the
|
1230
|
-
* docs will be toggled. The argument to the function will be a boolean
|
1231
|
-
* whether the docs are now open or closed.
|
1232
|
-
*
|
1233
|
-
* - getDefaultFieldNames: an optional function used to provide default fields
|
1234
|
-
* to non-leaf fields which invalidly lack a selection set.
|
1235
|
-
* Accepts a GraphQLType instance and returns an array of field names.
|
1236
|
-
* If not provided, a default behavior will be used.
|
1237
|
-
*
|
1238
|
-
* Children:
|
1239
|
-
*
|
1240
|
-
* - <GraphiQL.Logo> Replace the GraphiQL logo with your own.
|
1241
|
-
*
|
1242
|
-
* - <GraphiQL.Toolbar> Add a custom toolbar above GraphiQL.
|
1243
|
-
*
|
1244
|
-
* - <GraphiQL.ToolbarButton> Add a button to the toolbar above GraphiQL.
|
1245
|
-
*
|
1246
|
-
* - <GraphiQL.Footer> Add a custom footer below GraphiQL Results.
|
1247
|
-
*
|
1408
|
+
|
1409
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
1410
|
+
|
1411
|
+
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
1412
|
+
|
1413
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /**
|
1414
|
+
* Copyright (c) 2015, Facebook, Inc.
|
1415
|
+
* All rights reserved.
|
1416
|
+
*
|
1417
|
+
* This source code is licensed under the license found in the
|
1418
|
+
* LICENSE-examples file in the root directory of this source tree.
|
1419
|
+
*/
|
1420
|
+
|
1421
|
+
/**
|
1422
|
+
* The top-level React component for GraphiQL, intended to encompass the entire
|
1423
|
+
* browser viewport.
|
1248
1424
|
*
|
1249
|
-
*
|
1425
|
+
* @see https://github.com/graphql/graphiql#usage
|
1250
1426
|
*/
|
1251
1427
|
var GraphiQL = exports.GraphiQL = function (_React$Component) {
|
1252
1428
|
_inherits(GraphiQL, _React$Component);
|
@@ -1402,6 +1578,7 @@ var GraphiQL = exports.GraphiQL = function (_React$Component) {
|
|
1402
1578
|
display: this.state.docExplorerOpen ? 'block' : 'none',
|
1403
1579
|
width: this.state.docExplorerWidth
|
1404
1580
|
};
|
1581
|
+
var docExplorerWrapClasses = 'docExplorerWrap' + (this.state.docExplorerWidth < 200 ? ' doc-explorer-narrow' : '');
|
1405
1582
|
|
1406
1583
|
var variableOpen = this.state.variableEditorOpen;
|
1407
1584
|
var variableStyle = {
|
@@ -1506,7 +1683,7 @@ var GraphiQL = exports.GraphiQL = function (_React$Component) {
|
|
1506
1683
|
),
|
1507
1684
|
_react2.default.createElement(
|
1508
1685
|
'div',
|
1509
|
-
{ className:
|
1686
|
+
{ className: docExplorerWrapClasses, style: docWrapStyle },
|
1510
1687
|
_react2.default.createElement('div', {
|
1511
1688
|
className: 'docExplorerResizer',
|
1512
1689
|
onMouseDown: this.handleDocsResizeStart
|
@@ -2142,7 +2319,7 @@ function isObservable(value) {
|
|
2142
2319
|
return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && typeof value.subscribe === 'function';
|
2143
2320
|
}
|
2144
2321
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
2145
|
-
},{"../utility/CodeMirrorSizer":
|
2322
|
+
},{"../utility/CodeMirrorSizer":16,"../utility/debounce":17,"../utility/elementPosition":18,"../utility/fillLeafs":19,"../utility/find":20,"../utility/getQueryFacts":21,"../utility/getSelectedOperationName":22,"../utility/introspectionQueries":23,"./DocExplorer":1,"./ExecuteButton":9,"./QueryEditor":11,"./ResultViewer":12,"./ToolbarButton":13,"./VariableEditor":14,"graphql":64}],11:[function(require,module,exports){
|
2146
2323
|
(function (global){
|
2147
2324
|
'use strict';
|
2148
2325
|
|
@@ -2157,10 +2334,6 @@ var _react = (typeof window !== "undefined" ? window['React'] : typeof global !=
|
|
2157
2334
|
|
2158
2335
|
var _react2 = _interopRequireDefault(_react);
|
2159
2336
|
|
2160
|
-
var _reactDom = (typeof window !== "undefined" ? window['ReactDOM'] : typeof global !== "undefined" ? global['ReactDOM'] : null);
|
2161
|
-
|
2162
|
-
var _reactDom2 = _interopRequireDefault(_reactDom);
|
2163
|
-
|
2164
2337
|
var _graphql = require('graphql');
|
2165
2338
|
|
2166
2339
|
var _onHasCompletion = require('../utility/onHasCompletion');
|
@@ -2253,7 +2426,7 @@ var QueryEditor = exports.QueryEditor = function (_React$Component) {
|
|
2253
2426
|
require('codemirror-graphql/lint');
|
2254
2427
|
require('codemirror-graphql/mode');
|
2255
2428
|
|
2256
|
-
this.editor = CodeMirror(
|
2429
|
+
this.editor = CodeMirror(this._node, {
|
2257
2430
|
value: this.props.value || '',
|
2258
2431
|
lineNumbers: true,
|
2259
2432
|
tabSize: 2,
|
@@ -2343,7 +2516,14 @@ var QueryEditor = exports.QueryEditor = function (_React$Component) {
|
|
2343
2516
|
}, {
|
2344
2517
|
key: 'render',
|
2345
2518
|
value: function render() {
|
2346
|
-
|
2519
|
+
var _this3 = this;
|
2520
|
+
|
2521
|
+
return _react2.default.createElement('div', {
|
2522
|
+
className: 'query-editor',
|
2523
|
+
ref: function ref(node) {
|
2524
|
+
_this3._node = node;
|
2525
|
+
}
|
2526
|
+
});
|
2347
2527
|
}
|
2348
2528
|
|
2349
2529
|
/**
|
@@ -2357,6 +2537,16 @@ var QueryEditor = exports.QueryEditor = function (_React$Component) {
|
|
2357
2537
|
return this.editor;
|
2358
2538
|
}
|
2359
2539
|
|
2540
|
+
/**
|
2541
|
+
* Public API for retrieving the DOM client height for this component.
|
2542
|
+
*/
|
2543
|
+
|
2544
|
+
}, {
|
2545
|
+
key: 'getClientHeight',
|
2546
|
+
value: function getClientHeight() {
|
2547
|
+
return this._node && this._node.clientHeight;
|
2548
|
+
}
|
2549
|
+
|
2360
2550
|
/**
|
2361
2551
|
* Render a custom UI for CodeMirror's hint which includes additional info
|
2362
2552
|
* about the type and description for the selected context.
|
@@ -2375,7 +2565,7 @@ QueryEditor.propTypes = {
|
|
2375
2565
|
onRunQuery: _react.PropTypes.func
|
2376
2566
|
};
|
2377
2567
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
2378
|
-
},{"../utility/onHasCompletion":
|
2568
|
+
},{"../utility/onHasCompletion":24,"codemirror":54,"codemirror-graphql/hint":25,"codemirror-graphql/lint":26,"codemirror-graphql/mode":27,"codemirror/addon/comment/comment":42,"codemirror/addon/edit/closebrackets":44,"codemirror/addon/edit/matchbrackets":45,"codemirror/addon/fold/brace-fold":46,"codemirror/addon/fold/foldgutter":48,"codemirror/addon/hint/show-hint":49,"codemirror/addon/lint/lint":50,"codemirror/keymap/sublime":53,"graphql":64}],12:[function(require,module,exports){
|
2379
2569
|
(function (global){
|
2380
2570
|
'use strict';
|
2381
2571
|
|
@@ -2390,10 +2580,6 @@ var _react = (typeof window !== "undefined" ? window['React'] : typeof global !=
|
|
2390
2580
|
|
2391
2581
|
var _react2 = _interopRequireDefault(_react);
|
2392
2582
|
|
2393
|
-
var _reactDom = (typeof window !== "undefined" ? window['ReactDOM'] : typeof global !== "undefined" ? global['ReactDOM'] : null);
|
2394
|
-
|
2395
|
-
var _reactDom2 = _interopRequireDefault(_reactDom);
|
2396
|
-
|
2397
2583
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
2398
2584
|
|
2399
2585
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
@@ -2440,7 +2626,7 @@ var ResultViewer = exports.ResultViewer = function (_React$Component) {
|
|
2440
2626
|
require('codemirror/keymap/sublime');
|
2441
2627
|
require('codemirror-graphql/results/mode');
|
2442
2628
|
|
2443
|
-
this.viewer = CodeMirror(
|
2629
|
+
this.viewer = CodeMirror(this._node, {
|
2444
2630
|
lineWrapping: true,
|
2445
2631
|
value: this.props.value || '',
|
2446
2632
|
readOnly: true,
|
@@ -2478,7 +2664,14 @@ var ResultViewer = exports.ResultViewer = function (_React$Component) {
|
|
2478
2664
|
}, {
|
2479
2665
|
key: 'render',
|
2480
2666
|
value: function render() {
|
2481
|
-
|
2667
|
+
var _this2 = this;
|
2668
|
+
|
2669
|
+
return _react2.default.createElement('div', {
|
2670
|
+
className: 'result-window',
|
2671
|
+
ref: function ref(node) {
|
2672
|
+
_this2._node = node;
|
2673
|
+
}
|
2674
|
+
});
|
2482
2675
|
}
|
2483
2676
|
|
2484
2677
|
/**
|
@@ -2491,6 +2684,16 @@ var ResultViewer = exports.ResultViewer = function (_React$Component) {
|
|
2491
2684
|
value: function getCodeMirror() {
|
2492
2685
|
return this.viewer;
|
2493
2686
|
}
|
2687
|
+
|
2688
|
+
/**
|
2689
|
+
* Public API for retrieving the DOM client height for this component.
|
2690
|
+
*/
|
2691
|
+
|
2692
|
+
}, {
|
2693
|
+
key: 'getClientHeight',
|
2694
|
+
value: function getClientHeight() {
|
2695
|
+
return this._node && this._node.clientHeight;
|
2696
|
+
}
|
2494
2697
|
}]);
|
2495
2698
|
|
2496
2699
|
return ResultViewer;
|
@@ -2500,7 +2703,7 @@ ResultViewer.propTypes = {
|
|
2500
2703
|
value: _react.PropTypes.string
|
2501
2704
|
};
|
2502
2705
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
2503
|
-
},{"codemirror":
|
2706
|
+
},{"codemirror":54,"codemirror-graphql/results/mode":28,"codemirror/addon/dialog/dialog":43,"codemirror/addon/fold/brace-fold":46,"codemirror/addon/fold/foldgutter":48,"codemirror/addon/search/search":51,"codemirror/keymap/sublime":53}],13:[function(require,module,exports){
|
2504
2707
|
(function (global){
|
2505
2708
|
'use strict';
|
2506
2709
|
|
@@ -2581,7 +2784,7 @@ ToolbarButton.propTypes = {
|
|
2581
2784
|
label: _react.PropTypes.string
|
2582
2785
|
};
|
2583
2786
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
2584
|
-
},{}],
|
2787
|
+
},{}],14:[function(require,module,exports){
|
2585
2788
|
(function (global){
|
2586
2789
|
'use strict';
|
2587
2790
|
|
@@ -2596,10 +2799,6 @@ var _react = (typeof window !== "undefined" ? window['React'] : typeof global !=
|
|
2596
2799
|
|
2597
2800
|
var _react2 = _interopRequireDefault(_react);
|
2598
2801
|
|
2599
|
-
var _reactDom = (typeof window !== "undefined" ? window['ReactDOM'] : typeof global !== "undefined" ? global['ReactDOM'] : null);
|
2600
|
-
|
2601
|
-
var _reactDom2 = _interopRequireDefault(_reactDom);
|
2602
|
-
|
2603
2802
|
var _onHasCompletion = require('../utility/onHasCompletion');
|
2604
2803
|
|
2605
2804
|
var _onHasCompletion2 = _interopRequireDefault(_onHasCompletion);
|
@@ -2688,7 +2887,7 @@ var VariableEditor = exports.VariableEditor = function (_React$Component) {
|
|
2688
2887
|
require('codemirror-graphql/variables/lint');
|
2689
2888
|
require('codemirror-graphql/variables/mode');
|
2690
2889
|
|
2691
|
-
this.editor = CodeMirror(
|
2890
|
+
this.editor = CodeMirror(this._node, {
|
2692
2891
|
value: this.props.value || '',
|
2693
2892
|
lineNumbers: true,
|
2694
2893
|
tabSize: 2,
|
@@ -2776,7 +2975,14 @@ var VariableEditor = exports.VariableEditor = function (_React$Component) {
|
|
2776
2975
|
}, {
|
2777
2976
|
key: 'render',
|
2778
2977
|
value: function render() {
|
2779
|
-
|
2978
|
+
var _this3 = this;
|
2979
|
+
|
2980
|
+
return _react2.default.createElement('div', {
|
2981
|
+
className: 'codemirrorWrap',
|
2982
|
+
ref: function ref(node) {
|
2983
|
+
_this3._node = node;
|
2984
|
+
}
|
2985
|
+
});
|
2780
2986
|
}
|
2781
2987
|
|
2782
2988
|
/**
|
@@ -2789,6 +2995,16 @@ var VariableEditor = exports.VariableEditor = function (_React$Component) {
|
|
2789
2995
|
value: function getCodeMirror() {
|
2790
2996
|
return this.editor;
|
2791
2997
|
}
|
2998
|
+
|
2999
|
+
/**
|
3000
|
+
* Public API for retrieving the DOM client height for this component.
|
3001
|
+
*/
|
3002
|
+
|
3003
|
+
}, {
|
3004
|
+
key: 'getClientHeight',
|
3005
|
+
value: function getClientHeight() {
|
3006
|
+
return this._node && this._node.clientHeight;
|
3007
|
+
}
|
2792
3008
|
}]);
|
2793
3009
|
|
2794
3010
|
return VariableEditor;
|
@@ -2802,7 +3018,7 @@ VariableEditor.propTypes = {
|
|
2802
3018
|
onRunQuery: _react.PropTypes.func
|
2803
3019
|
};
|
2804
3020
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
2805
|
-
},{"../utility/onHasCompletion":
|
3021
|
+
},{"../utility/onHasCompletion":24,"codemirror":54,"codemirror-graphql/variables/hint":39,"codemirror-graphql/variables/lint":40,"codemirror-graphql/variables/mode":41,"codemirror/addon/edit/closebrackets":44,"codemirror/addon/edit/matchbrackets":45,"codemirror/addon/fold/brace-fold":46,"codemirror/addon/fold/foldgutter":48,"codemirror/addon/hint/show-hint":49,"codemirror/addon/lint/lint":50,"codemirror/keymap/sublime":53}],15:[function(require,module,exports){
|
2806
3022
|
'use strict';
|
2807
3023
|
|
2808
3024
|
/**
|
@@ -2815,30 +3031,25 @@ VariableEditor.propTypes = {
|
|
2815
3031
|
|
2816
3032
|
// The primary React component to use.
|
2817
3033
|
module.exports = require('./components/GraphiQL').GraphiQL;
|
2818
|
-
},{"./components/GraphiQL":
|
2819
|
-
|
2820
|
-
'use strict';
|
3034
|
+
},{"./components/GraphiQL":10}],16:[function(require,module,exports){
|
3035
|
+
"use strict";
|
2821
3036
|
|
2822
3037
|
Object.defineProperty(exports, "__esModule", {
|
2823
3038
|
value: true
|
2824
3039
|
});
|
2825
3040
|
|
2826
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2827
|
-
* Copyright (c) 2015, Facebook, Inc.
|
2828
|
-
* All rights reserved.
|
2829
|
-
*
|
2830
|
-
* This source code is licensed under the license found in the
|
2831
|
-
* LICENSE-examples file in the root directory of this source tree.
|
2832
|
-
*/
|
2833
|
-
|
2834
|
-
var _reactDom = (typeof window !== "undefined" ? window['ReactDOM'] : typeof global !== "undefined" ? global['ReactDOM'] : null);
|
2835
|
-
|
2836
|
-
var _reactDom2 = _interopRequireDefault(_reactDom);
|
2837
|
-
|
2838
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
3041
|
+
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
2839
3042
|
|
2840
3043
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
2841
3044
|
|
3045
|
+
/**
|
3046
|
+
* Copyright (c) 2015, Facebook, Inc.
|
3047
|
+
* All rights reserved.
|
3048
|
+
*
|
3049
|
+
* This source code is licensed under the license found in the
|
3050
|
+
* LICENSE-examples file in the root directory of this source tree.
|
3051
|
+
*/
|
3052
|
+
|
2842
3053
|
/**
|
2843
3054
|
* When a containing DOM node's height has been altered, trigger a resize of
|
2844
3055
|
* the related CodeMirror instance so that it is always correctly sized.
|
@@ -2851,12 +3062,12 @@ var CodeMirrorSizer = function () {
|
|
2851
3062
|
}
|
2852
3063
|
|
2853
3064
|
_createClass(CodeMirrorSizer, [{
|
2854
|
-
key:
|
3065
|
+
key: "updateSizes",
|
2855
3066
|
value: function updateSizes(components) {
|
2856
3067
|
var _this = this;
|
2857
3068
|
|
2858
3069
|
components.forEach(function (component, i) {
|
2859
|
-
var size =
|
3070
|
+
var size = component.getClientHeight();
|
2860
3071
|
if (i <= _this.sizes.length && size !== _this.sizes[i]) {
|
2861
3072
|
component.getCodeMirror().setSize();
|
2862
3073
|
}
|
@@ -2869,8 +3080,7 @@ var CodeMirrorSizer = function () {
|
|
2869
3080
|
}();
|
2870
3081
|
|
2871
3082
|
exports.default = CodeMirrorSizer;
|
2872
|
-
}
|
2873
|
-
},{}],10:[function(require,module,exports){
|
3083
|
+
},{}],17:[function(require,module,exports){
|
2874
3084
|
"use strict";
|
2875
3085
|
|
2876
3086
|
Object.defineProperty(exports, "__esModule", {
|
@@ -2902,7 +3112,7 @@ function debounce(duration, fn) {
|
|
2902
3112
|
}, duration);
|
2903
3113
|
};
|
2904
3114
|
}
|
2905
|
-
},{}],
|
3115
|
+
},{}],18:[function(require,module,exports){
|
2906
3116
|
"use strict";
|
2907
3117
|
|
2908
3118
|
Object.defineProperty(exports, "__esModule", {
|
@@ -2941,7 +3151,7 @@ function getTop(initialElem) {
|
|
2941
3151
|
}
|
2942
3152
|
return pt;
|
2943
3153
|
}
|
2944
|
-
},{}],
|
3154
|
+
},{}],19:[function(require,module,exports){
|
2945
3155
|
'use strict';
|
2946
3156
|
|
2947
3157
|
Object.defineProperty(exports, "__esModule", {
|
@@ -3123,7 +3333,7 @@ function getIndentation(str, index) {
|
|
3123
3333
|
}
|
3124
3334
|
return str.substring(indentStart, indentEnd);
|
3125
3335
|
}
|
3126
|
-
},{"graphql":
|
3336
|
+
},{"graphql":64}],20:[function(require,module,exports){
|
3127
3337
|
"use strict";
|
3128
3338
|
|
3129
3339
|
Object.defineProperty(exports, "__esModule", {
|
@@ -3148,7 +3358,7 @@ function find(list, predicate) {
|
|
3148
3358
|
}
|
3149
3359
|
}
|
3150
3360
|
}
|
3151
|
-
},{}],
|
3361
|
+
},{}],21:[function(require,module,exports){
|
3152
3362
|
'use strict';
|
3153
3363
|
|
3154
3364
|
Object.defineProperty(exports, "__esModule", {
|
@@ -3221,7 +3431,7 @@ function collectVariables(schema, documentAST) {
|
|
3221
3431
|
});
|
3222
3432
|
return variableToType;
|
3223
3433
|
}
|
3224
|
-
},{"graphql":
|
3434
|
+
},{"graphql":64}],22:[function(require,module,exports){
|
3225
3435
|
"use strict";
|
3226
3436
|
|
3227
3437
|
Object.defineProperty(exports, "__esModule", {
|
@@ -3268,7 +3478,7 @@ function getSelectedOperationName(prevOperations, prevSelectedOperationName, ope
|
|
3268
3478
|
// Use the first operation.
|
3269
3479
|
return names[0];
|
3270
3480
|
}
|
3271
|
-
},{}],
|
3481
|
+
},{}],23:[function(require,module,exports){
|
3272
3482
|
'use strict';
|
3273
3483
|
|
3274
3484
|
Object.defineProperty(exports, "__esModule", {
|
@@ -3289,7 +3499,7 @@ Object.defineProperty(exports, 'introspectionQuery', {
|
|
3289
3499
|
// query which includes the `subscriptionType` field as the stock introspection
|
3290
3500
|
// query does. This backup query removes that field.
|
3291
3501
|
var introspectionQuerySansSubscriptions = exports.introspectionQuerySansSubscriptions = '\n query IntrospectionQuery {\n __schema {\n queryType { name }\n mutationType { name }\n types {\n ...FullType\n }\n directives {\n name\n description\n locations\n args {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n description\n fields(includeDeprecated: true) {\n name\n description\n args {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n description\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n description\n type { ...TypeRef }\n defaultValue\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n';
|
3292
|
-
},{"graphql":
|
3502
|
+
},{"graphql":64}],24:[function(require,module,exports){
|
3293
3503
|
'use strict';
|
3294
3504
|
|
3295
3505
|
Object.defineProperty(exports, "__esModule", {
|
@@ -3408,7 +3618,7 @@ function renderType(type) {
|
|
3408
3618
|
}
|
3409
3619
|
return '<a class="typeName">' + type.name + '</a>';
|
3410
3620
|
}
|
3411
|
-
},{"codemirror":
|
3621
|
+
},{"codemirror":54,"graphql":64,"marked":134}],25:[function(require,module,exports){
|
3412
3622
|
'use strict';
|
3413
3623
|
|
3414
3624
|
var _codemirror = require('codemirror');
|
@@ -3464,7 +3674,7 @@ _codemirror2.default.registerHelper('hint', 'graphql', function (editor, options
|
|
3464
3674
|
|
3465
3675
|
return results;
|
3466
3676
|
});
|
3467
|
-
},{"./utils/getHintsAtPosition":
|
3677
|
+
},{"./utils/getHintsAtPosition":33,"codemirror":54}],26:[function(require,module,exports){
|
3468
3678
|
'use strict';
|
3469
3679
|
|
3470
3680
|
var _codemirror = require('codemirror');
|
@@ -3535,7 +3745,7 @@ function errorAnnotations(editor, error) {
|
|
3535
3745
|
function mapCat(array, mapper) {
|
3536
3746
|
return Array.prototype.concat.apply([], array.map(mapper));
|
3537
3747
|
}
|
3538
|
-
},{"codemirror":
|
3748
|
+
},{"codemirror":54,"graphql":64}],27:[function(require,module,exports){
|
3539
3749
|
'use strict';
|
3540
3750
|
|
3541
3751
|
var _codemirror = require('codemirror');
|
@@ -3609,7 +3819,7 @@ function indent(state, textAfter) {
|
|
3609
3819
|
var level = !levels || levels.length === 0 ? state.indentLevel : levels[levels.length - 1] - (this.electricInput.test(textAfter) ? 1 : 0);
|
3610
3820
|
return level * this.config.indentUnit;
|
3611
3821
|
}
|
3612
|
-
},{"./utils/Rules":
|
3822
|
+
},{"./utils/Rules":31,"./utils/onlineParser":37,"codemirror":54}],28:[function(require,module,exports){
|
3613
3823
|
'use strict';
|
3614
3824
|
|
3615
3825
|
var _codemirror = require('codemirror');
|
@@ -3723,7 +3933,7 @@ var ParseRules = {
|
|
3723
3933
|
ObjectValue: [(0, _RuleHelpers.p)('{'), (0, _RuleHelpers.list)('ObjectField', (0, _RuleHelpers.p)(',')), (0, _RuleHelpers.p)('}')],
|
3724
3934
|
ObjectField: [(0, _RuleHelpers.t)('String', 'property'), (0, _RuleHelpers.p)(':'), 'Value']
|
3725
3935
|
};
|
3726
|
-
},{"../utils/RuleHelpers":
|
3936
|
+
},{"../utils/RuleHelpers":30,"../utils/onlineParser":37,"codemirror":54}],29:[function(require,module,exports){
|
3727
3937
|
'use strict';
|
3728
3938
|
|
3729
3939
|
Object.defineProperty(exports, "__esModule", {
|
@@ -3900,7 +4110,7 @@ var CharacterStream = function () {
|
|
3900
4110
|
}();
|
3901
4111
|
|
3902
4112
|
exports.default = CharacterStream;
|
3903
|
-
},{}],
|
4113
|
+
},{}],30:[function(require,module,exports){
|
3904
4114
|
'use strict';
|
3905
4115
|
|
3906
4116
|
Object.defineProperty(exports, "__esModule", {
|
@@ -3958,7 +4168,7 @@ function p(value, style) {
|
|
3958
4168
|
}
|
3959
4169
|
};
|
3960
4170
|
}
|
3961
|
-
},{}],
|
4171
|
+
},{}],31:[function(require,module,exports){
|
3962
4172
|
'use strict';
|
3963
4173
|
|
3964
4174
|
Object.defineProperty(exports, "__esModule", {
|
@@ -4164,7 +4374,7 @@ function type(style) {
|
|
4164
4374
|
}
|
4165
4375
|
};
|
4166
4376
|
}
|
4167
|
-
},{"../utils/RuleHelpers":
|
4377
|
+
},{"../utils/RuleHelpers":30}],32:[function(require,module,exports){
|
4168
4378
|
"use strict";
|
4169
4379
|
|
4170
4380
|
Object.defineProperty(exports, "__esModule", {
|
@@ -4192,7 +4402,7 @@ function forEachState(stack, fn) {
|
|
4192
4402
|
fn(reverseStateStack[i]);
|
4193
4403
|
}
|
4194
4404
|
}
|
4195
|
-
},{}],
|
4405
|
+
},{}],33:[function(require,module,exports){
|
4196
4406
|
'use strict';
|
4197
4407
|
|
4198
4408
|
Object.defineProperty(exports, "__esModule", {
|
@@ -4483,6 +4693,7 @@ function getTypeInfo(schema, tokenState) {
|
|
4483
4693
|
}
|
4484
4694
|
break;
|
4485
4695
|
case 'Field':
|
4696
|
+
case 'AliasedField':
|
4486
4697
|
info.fieldDef = info.type && state.name ? getFieldDef(schema, info.parentType, state.name) : null;
|
4487
4698
|
info.type = info.fieldDef && info.fieldDef.type;
|
4488
4699
|
break;
|
@@ -4591,7 +4802,7 @@ function getFieldDef(schema, type, fieldName) {
|
|
4591
4802
|
return type.getFields()[fieldName];
|
4592
4803
|
}
|
4593
4804
|
}
|
4594
|
-
},{"./Rules":
|
4805
|
+
},{"./Rules":31,"./forEachState":32,"./hintList":34,"./objectValues":36,"./runParser":38,"graphql":64,"graphql/type/introspection":84}],34:[function(require,module,exports){
|
4595
4806
|
'use strict';
|
4596
4807
|
|
4597
4808
|
Object.defineProperty(exports, "__esModule", {
|
@@ -4704,7 +4915,7 @@ function lexicalDistance(a, b) {
|
|
4704
4915
|
|
4705
4916
|
return d[aLength][bLength];
|
4706
4917
|
}
|
4707
|
-
},{}],
|
4918
|
+
},{}],35:[function(require,module,exports){
|
4708
4919
|
'use strict';
|
4709
4920
|
|
4710
4921
|
Object.defineProperty(exports, "__esModule", {
|
@@ -5011,7 +5222,7 @@ function readDigits() {
|
|
5011
5222
|
ch();
|
5012
5223
|
} while (code >= 48 && code <= 57); // 0 - 9
|
5013
5224
|
}
|
5014
|
-
},{}],
|
5225
|
+
},{}],36:[function(require,module,exports){
|
5015
5226
|
"use strict";
|
5016
5227
|
|
5017
5228
|
Object.defineProperty(exports, "__esModule", {
|
@@ -5036,7 +5247,7 @@ function objectValues(object) {
|
|
5036
5247
|
}
|
5037
5248
|
return values;
|
5038
5249
|
}
|
5039
|
-
},{}],
|
5250
|
+
},{}],37:[function(require,module,exports){
|
5040
5251
|
'use strict';
|
5041
5252
|
|
5042
5253
|
Object.defineProperty(exports, "__esModule", {
|
@@ -5305,7 +5516,7 @@ function lex(LexRules, stream) {
|
|
5305
5516
|
}
|
5306
5517
|
}
|
5307
5518
|
}
|
5308
|
-
},{}],
|
5519
|
+
},{}],38:[function(require,module,exports){
|
5309
5520
|
'use strict';
|
5310
5521
|
|
5311
5522
|
Object.defineProperty(exports, "__esModule", {
|
@@ -5345,7 +5556,7 @@ function runParser(sourceText, parserOptions, callbackFn) {
|
|
5345
5556
|
}
|
5346
5557
|
});
|
5347
5558
|
}
|
5348
|
-
},{"./CharacterStream":
|
5559
|
+
},{"./CharacterStream":29,"./onlineParser":37}],39:[function(require,module,exports){
|
5349
5560
|
'use strict';
|
5350
5561
|
|
5351
5562
|
var _codemirror = require('codemirror');
|
@@ -5512,7 +5723,7 @@ function getTypeInfo(variableToType, tokenState) {
|
|
5512
5723
|
|
5513
5724
|
return info;
|
5514
5725
|
}
|
5515
|
-
},{"../utils/forEachState":
|
5726
|
+
},{"../utils/forEachState":32,"../utils/hintList":34,"codemirror":54,"graphql":64}],40:[function(require,module,exports){
|
5516
5727
|
'use strict';
|
5517
5728
|
|
5518
5729
|
var _codemirror = require('codemirror');
|
@@ -5706,7 +5917,7 @@ function isNullish(value) {
|
|
5706
5917
|
function mapCat(array, mapper) {
|
5707
5918
|
return Array.prototype.concat.apply([], array.map(mapper));
|
5708
5919
|
}
|
5709
|
-
},{"../utils/jsonParse":
|
5920
|
+
},{"../utils/jsonParse":35,"codemirror":54,"graphql":64}],41:[function(require,module,exports){
|
5710
5921
|
'use strict';
|
5711
5922
|
|
5712
5923
|
var _codemirror = require('codemirror');
|
@@ -5833,7 +6044,7 @@ function namedKey(style) {
|
|
5833
6044
|
}
|
5834
6045
|
};
|
5835
6046
|
}
|
5836
|
-
},{"../utils/RuleHelpers":
|
6047
|
+
},{"../utils/RuleHelpers":30,"../utils/onlineParser":37,"codemirror":54}],42:[function(require,module,exports){
|
5837
6048
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
5838
6049
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
5839
6050
|
|
@@ -6041,7 +6252,7 @@ function namedKey(style) {
|
|
6041
6252
|
});
|
6042
6253
|
});
|
6043
6254
|
|
6044
|
-
},{"../../lib/codemirror":
|
6255
|
+
},{"../../lib/codemirror":54}],43:[function(require,module,exports){
|
6045
6256
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
6046
6257
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
6047
6258
|
|
@@ -6200,7 +6411,7 @@ function namedKey(style) {
|
|
6200
6411
|
});
|
6201
6412
|
});
|
6202
6413
|
|
6203
|
-
},{"../../lib/codemirror":
|
6414
|
+
},{"../../lib/codemirror":54}],44:[function(require,module,exports){
|
6204
6415
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
6205
6416
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
6206
6417
|
|
@@ -6404,7 +6615,7 @@ function namedKey(style) {
|
|
6404
6615
|
}
|
6405
6616
|
});
|
6406
6617
|
|
6407
|
-
},{"../../lib/codemirror":
|
6618
|
+
},{"../../lib/codemirror":54}],45:[function(require,module,exports){
|
6408
6619
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
6409
6620
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
6410
6621
|
|
@@ -6528,7 +6739,7 @@ function namedKey(style) {
|
|
6528
6739
|
});
|
6529
6740
|
});
|
6530
6741
|
|
6531
|
-
},{"../../lib/codemirror":
|
6742
|
+
},{"../../lib/codemirror":54}],46:[function(require,module,exports){
|
6532
6743
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
6533
6744
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
6534
6745
|
|
@@ -6635,7 +6846,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) {
|
|
6635
6846
|
|
6636
6847
|
});
|
6637
6848
|
|
6638
|
-
},{"../../lib/codemirror":
|
6849
|
+
},{"../../lib/codemirror":54}],47:[function(require,module,exports){
|
6639
6850
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
6640
6851
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
6641
6852
|
|
@@ -6787,7 +6998,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) {
|
|
6787
6998
|
});
|
6788
6999
|
});
|
6789
7000
|
|
6790
|
-
},{"../../lib/codemirror":
|
7001
|
+
},{"../../lib/codemirror":54}],48:[function(require,module,exports){
|
6791
7002
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
6792
7003
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
6793
7004
|
|
@@ -6935,7 +7146,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) {
|
|
6935
7146
|
}
|
6936
7147
|
});
|
6937
7148
|
|
6938
|
-
},{"../../lib/codemirror":
|
7149
|
+
},{"../../lib/codemirror":54,"./foldcode":47}],49:[function(require,module,exports){
|
6939
7150
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
6940
7151
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
6941
7152
|
|
@@ -7375,7 +7586,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) {
|
|
7375
7586
|
CodeMirror.defineOption("hintOptions", null);
|
7376
7587
|
});
|
7377
7588
|
|
7378
|
-
},{"../../lib/codemirror":
|
7589
|
+
},{"../../lib/codemirror":54}],50:[function(require,module,exports){
|
7379
7590
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
7380
7591
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
7381
7592
|
|
@@ -7616,7 +7827,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) {
|
|
7616
7827
|
});
|
7617
7828
|
});
|
7618
7829
|
|
7619
|
-
},{"../../lib/codemirror":
|
7830
|
+
},{"../../lib/codemirror":54}],51:[function(require,module,exports){
|
7620
7831
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
7621
7832
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
7622
7833
|
|
@@ -7870,7 +8081,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) {
|
|
7870
8081
|
CodeMirror.commands.replaceAll = function(cm) {replace(cm, true);};
|
7871
8082
|
});
|
7872
8083
|
|
7873
|
-
},{"../../lib/codemirror":
|
8084
|
+
},{"../../lib/codemirror":54,"../dialog/dialog":43,"./searchcursor":52}],52:[function(require,module,exports){
|
7874
8085
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
7875
8086
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
7876
8087
|
|
@@ -8061,7 +8272,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) {
|
|
8061
8272
|
});
|
8062
8273
|
});
|
8063
8274
|
|
8064
|
-
},{"../../lib/codemirror":
|
8275
|
+
},{"../../lib/codemirror":54}],53:[function(require,module,exports){
|
8065
8276
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
8066
8277
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
8067
8278
|
|
@@ -8645,7 +8856,7 @@ CodeMirror.registerHelper("fold", "include", function(cm, start) {
|
|
8645
8856
|
CodeMirror.normalizeKeyMap(map);
|
8646
8857
|
});
|
8647
8858
|
|
8648
|
-
},{"../addon/edit/matchbrackets":
|
8859
|
+
},{"../addon/edit/matchbrackets":45,"../addon/search/searchcursor":52,"../lib/codemirror":54}],54:[function(require,module,exports){
|
8649
8860
|
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
8650
8861
|
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
8651
8862
|
|
@@ -8751,18 +8962,20 @@ function contains(parent, child) {
|
|
8751
8962
|
} while (child = child.parentNode)
|
8752
8963
|
}
|
8753
8964
|
|
8754
|
-
|
8755
|
-
|
8965
|
+
function activeElt() {
|
8966
|
+
// IE and Edge may throw an "Unspecified Error" when accessing document.activeElement.
|
8967
|
+
// IE < 10 will throw when accessed while the page is loading or in an iframe.
|
8968
|
+
// IE > 9 and Edge will throw when accessed in an iframe if document.body is unavailable.
|
8969
|
+
var activeElement
|
8970
|
+
try {
|
8971
|
+
activeElement = document.activeElement
|
8972
|
+
} catch(e) {
|
8973
|
+
activeElement = document.body || null
|
8974
|
+
}
|
8756
8975
|
while (activeElement && activeElement.root && activeElement.root.activeElement)
|
8757
8976
|
{ activeElement = activeElement.root.activeElement }
|
8758
8977
|
return activeElement
|
8759
8978
|
}
|
8760
|
-
// Older versions of IE throws unspecified error when touching
|
8761
|
-
// document.activeElement in some cases (during loading, in iframe)
|
8762
|
-
if (ie && ie_version < 11) { activeElt = function() {
|
8763
|
-
try { return document.activeElement }
|
8764
|
-
catch(e) { return document.body }
|
8765
|
-
} }
|
8766
8979
|
|
8767
8980
|
function addClass(node, cls) {
|
8768
8981
|
var current = node.className
|
@@ -9344,7 +9557,7 @@ function compareCollapsedMarkers(a, b) {
|
|
9344
9557
|
// so, return the marker for that span.
|
9345
9558
|
function collapsedSpanAtSide(line, start) {
|
9346
9559
|
var sps = sawCollapsedSpans && line.markedSpans, found
|
9347
|
-
if (sps) { for (var sp = void 0, i = 0; i < sps.length; ++i) {
|
9560
|
+
if (sps) { for (var sp = (void 0), i = 0; i < sps.length; ++i) {
|
9348
9561
|
sp = sps[i]
|
9349
9562
|
if (sp.marker.collapsed && (start ? sp.from : sp.to) == null &&
|
9350
9563
|
(!found || compareCollapsedMarkers(found, sp.marker) < 0))
|
@@ -9420,7 +9633,7 @@ function visualLineEndNo(doc, lineN) {
|
|
9420
9633
|
// they are entirely covered by collapsed, non-widget span.
|
9421
9634
|
function lineIsHidden(doc, line) {
|
9422
9635
|
var sps = sawCollapsedSpans && line.markedSpans
|
9423
|
-
if (sps) { for (var sp = void 0, i = 0; i < sps.length; ++i) {
|
9636
|
+
if (sps) { for (var sp = (void 0), i = 0; i < sps.length; ++i) {
|
9424
9637
|
sp = sps[i]
|
9425
9638
|
if (!sp.marker.collapsed) { continue }
|
9426
9639
|
if (sp.from == null) { return true }
|
@@ -9436,7 +9649,7 @@ function lineIsHiddenInner(doc, line, span) {
|
|
9436
9649
|
}
|
9437
9650
|
if (span.marker.inclusiveRight && span.to == line.text.length)
|
9438
9651
|
{ return true }
|
9439
|
-
for (var sp = void 0, i = 0; i < line.markedSpans.length; ++i) {
|
9652
|
+
for (var sp = (void 0), i = 0; i < line.markedSpans.length; ++i) {
|
9440
9653
|
sp = line.markedSpans[i]
|
9441
9654
|
if (sp.marker.collapsed && !sp.marker.widgetNode && sp.from == span.to &&
|
9442
9655
|
(sp.to == null || sp.to != span.from) &&
|
@@ -9690,7 +9903,7 @@ var bidiOrdering = (function() {
|
|
9690
9903
|
var type$3 = types[i$4]
|
9691
9904
|
if (type$3 == ",") { types[i$4] = "N" }
|
9692
9905
|
else if (type$3 == "%") {
|
9693
|
-
var end = void 0
|
9906
|
+
var end = (void 0)
|
9694
9907
|
for (end = i$4 + 1; end < len && types[end] == "%"; ++end) {}
|
9695
9908
|
var replace = (i$4 && types[i$4-1] == "!") || (end < len && types[end] == "1") ? "1" : "N"
|
9696
9909
|
for (var j = i$4; j < end; ++j) { types[j] = replace }
|
@@ -9715,7 +9928,7 @@ var bidiOrdering = (function() {
|
|
9715
9928
|
// N2. Any remaining neutrals take the embedding direction.
|
9716
9929
|
for (var i$6 = 0; i$6 < len; ++i$6) {
|
9717
9930
|
if (isNeutral.test(types[i$6])) {
|
9718
|
-
var end$1 = void 0
|
9931
|
+
var end$1 = (void 0)
|
9719
9932
|
for (end$1 = i$6 + 1; end$1 < len && isNeutral.test(types[end$1]); ++end$1) {}
|
9720
9933
|
var before = (i$6 ? types[i$6-1] : outerType) == "L"
|
9721
9934
|
var after = (end$1 < len ? types[end$1] : outerType) == "L"
|
@@ -9782,39 +9995,40 @@ function getOrder(line) {
|
|
9782
9995
|
// Lightweight event framework. on/off also work on DOM nodes,
|
9783
9996
|
// registering native DOM handlers.
|
9784
9997
|
|
9998
|
+
var noHandlers = []
|
9999
|
+
|
9785
10000
|
var on = function(emitter, type, f) {
|
9786
|
-
if (emitter.addEventListener)
|
9787
|
-
|
9788
|
-
else if (emitter.attachEvent)
|
9789
|
-
|
9790
|
-
else {
|
10001
|
+
if (emitter.addEventListener) {
|
10002
|
+
emitter.addEventListener(type, f, false)
|
10003
|
+
} else if (emitter.attachEvent) {
|
10004
|
+
emitter.attachEvent("on" + type, f)
|
10005
|
+
} else {
|
9791
10006
|
var map = emitter._handlers || (emitter._handlers = {})
|
9792
|
-
|
9793
|
-
arr.push(f)
|
10007
|
+
map[type] = (map[type] || noHandlers).concat(f)
|
9794
10008
|
}
|
9795
10009
|
}
|
9796
10010
|
|
9797
|
-
|
9798
|
-
|
9799
|
-
var arr = emitter._handlers && emitter._handlers[type]
|
9800
|
-
if (copy) { return arr && arr.length > 0 ? arr.slice() : noHandlers }
|
9801
|
-
else { return arr || noHandlers }
|
10011
|
+
function getHandlers(emitter, type) {
|
10012
|
+
return emitter._handlers && emitter._handlers[type] || noHandlers
|
9802
10013
|
}
|
9803
10014
|
|
9804
10015
|
function off(emitter, type, f) {
|
9805
|
-
if (emitter.removeEventListener)
|
9806
|
-
|
9807
|
-
else if (emitter.detachEvent)
|
9808
|
-
|
9809
|
-
else {
|
9810
|
-
var
|
9811
|
-
|
9812
|
-
|
10016
|
+
if (emitter.removeEventListener) {
|
10017
|
+
emitter.removeEventListener(type, f, false)
|
10018
|
+
} else if (emitter.detachEvent) {
|
10019
|
+
emitter.detachEvent("on" + type, f)
|
10020
|
+
} else {
|
10021
|
+
var map = emitter._handlers, arr = map && map[type]
|
10022
|
+
if (arr) {
|
10023
|
+
var index = indexOf(arr, f)
|
10024
|
+
if (index > -1)
|
10025
|
+
{ map[type] = arr.slice(0, index).concat(arr.slice(index + 1)) }
|
10026
|
+
}
|
9813
10027
|
}
|
9814
10028
|
}
|
9815
10029
|
|
9816
10030
|
function signal(emitter, type /*, values...*/) {
|
9817
|
-
var handlers = getHandlers(emitter, type
|
10031
|
+
var handlers = getHandlers(emitter, type)
|
9818
10032
|
if (!handlers.length) { return }
|
9819
10033
|
var args = Array.prototype.slice.call(arguments, 2)
|
9820
10034
|
for (var i = 0; i < handlers.length; ++i) { handlers[i].apply(null, args) }
|
@@ -10394,7 +10608,7 @@ function buildLineContent(cm, lineView) {
|
|
10394
10608
|
|
10395
10609
|
// Iterate over the logical lines that make up this visual line.
|
10396
10610
|
for (var i = 0; i <= (lineView.rest ? lineView.rest.length : 0); i++) {
|
10397
|
-
var line = i ? lineView.rest[i - 1] : lineView.line, order = void 0
|
10611
|
+
var line = i ? lineView.rest[i - 1] : lineView.line, order = (void 0)
|
10398
10612
|
builder.pos = 0
|
10399
10613
|
builder.addToken = buildToken
|
10400
10614
|
// Optionally wire in some hacks into the token-rendering
|
@@ -10476,7 +10690,7 @@ function buildToken(builder, text, style, startStyle, endStyle, title, css) {
|
|
10476
10690
|
}
|
10477
10691
|
if (!m) { break }
|
10478
10692
|
pos += skipped + 1
|
10479
|
-
var txt$1 = void 0
|
10693
|
+
var txt$1 = (void 0)
|
10480
10694
|
if (m[0] == "\t") {
|
10481
10695
|
var tabSize = builder.cm.options.tabSize, tabWidth = tabSize - builder.col % tabSize
|
10482
10696
|
txt$1 = content.appendChild(elt("span", spaceStr(tabWidth), "cm-tab"))
|
@@ -10531,7 +10745,7 @@ function buildTokenBadBidi(inner, order) {
|
|
10531
10745
|
var start = builder.pos, end = start + text.length
|
10532
10746
|
for (;;) {
|
10533
10747
|
// Find the part that overlaps with the start of this text
|
10534
|
-
var part = void 0
|
10748
|
+
var part = (void 0)
|
10535
10749
|
for (var i = 0; i < order.length; i++) {
|
10536
10750
|
part = order[i]
|
10537
10751
|
if (part.to > start && part.from <= start) { break }
|
@@ -10577,7 +10791,7 @@ function insertLineContent(line, builder, styles) {
|
|
10577
10791
|
if (nextChange == pos) { // Update current marker set
|
10578
10792
|
spanStyle = spanEndStyle = spanStartStyle = title = css = ""
|
10579
10793
|
collapsed = null; nextChange = Infinity
|
10580
|
-
var foundBookmarks = [], endStyles = void 0
|
10794
|
+
var foundBookmarks = [], endStyles = (void 0)
|
10581
10795
|
for (var j = 0; j < spans.length; ++j) {
|
10582
10796
|
var sp = spans[j], m = sp.marker
|
10583
10797
|
if (m.type == "bookmark" && sp.from == pos && m.widgetNode) {
|
@@ -10707,7 +10921,7 @@ var orphanDelayedCallbacks = null
|
|
10707
10921
|
// them to be executed when the last operation ends, or, if no
|
10708
10922
|
// operation is active, when a timeout fires.
|
10709
10923
|
function signalLater(emitter, type /*, values...*/) {
|
10710
|
-
var arr = getHandlers(emitter, type
|
10924
|
+
var arr = getHandlers(emitter, type)
|
10711
10925
|
if (!arr.length) { return }
|
10712
10926
|
var args = Array.prototype.slice.call(arguments, 2), list
|
10713
10927
|
if (operationGroup) {
|
@@ -10850,7 +11064,7 @@ function updateLineGutter(cm, lineView, lineN, dims) {
|
|
10850
11064
|
|
10851
11065
|
function updateLineWidgets(cm, lineView, dims) {
|
10852
11066
|
if (lineView.alignable) { lineView.alignable = null }
|
10853
|
-
for (var node = lineView.node.firstChild, next = void 0; node; node = next) {
|
11067
|
+
for (var node = lineView.node.firstChild, next = (void 0); node; node = next) {
|
10854
11068
|
next = node.nextSibling
|
10855
11069
|
if (node.className == "CodeMirror-linewidget")
|
10856
11070
|
{ lineView.node.removeChild(node) }
|
@@ -11212,8 +11426,8 @@ function pageScrollY() { return window.pageYOffset || (document.documentElement
|
|
11212
11426
|
// coordinates into another coordinate system. Context may be one of
|
11213
11427
|
// "line", "div" (display.lineDiv), "local"./null (editor), "window",
|
11214
11428
|
// or "page".
|
11215
|
-
function intoCoordSystem(cm, lineObj, rect, context) {
|
11216
|
-
if (lineObj.widgets) { for (var i = 0; i < lineObj.widgets.length; ++i) { if (lineObj.widgets[i].above) {
|
11429
|
+
function intoCoordSystem(cm, lineObj, rect, context, includeWidgets) {
|
11430
|
+
if (!includeWidgets && lineObj.widgets) { for (var i = 0; i < lineObj.widgets.length; ++i) { if (lineObj.widgets[i].above) {
|
11217
11431
|
var size = widgetHeight(lineObj.widgets[i])
|
11218
11432
|
rect.top += size; rect.bottom += size
|
11219
11433
|
} } }
|
@@ -11727,7 +11941,7 @@ function updateHeightsInViewport(cm) {
|
|
11727
11941
|
var display = cm.display
|
11728
11942
|
var prevBottom = display.lineDiv.offsetTop
|
11729
11943
|
for (var i = 0; i < display.view.length; i++) {
|
11730
|
-
var cur = display.view[i], height = void 0
|
11944
|
+
var cur = display.view[i], height = (void 0)
|
11731
11945
|
if (cur.hidden) { continue }
|
11732
11946
|
if (ie && ie_version < 8) {
|
11733
11947
|
var bot = cur.node.offsetTop + cur.node.offsetHeight
|
@@ -13308,7 +13522,7 @@ function copyHistoryArray(events, newGroup, instantiateSel) {
|
|
13308
13522
|
var changes = event.changes, newChanges = []
|
13309
13523
|
copy.push({changes: newChanges})
|
13310
13524
|
for (var j = 0; j < changes.length; ++j) {
|
13311
|
-
var change = changes[j], m = void 0
|
13525
|
+
var change = changes[j], m = (void 0)
|
13312
13526
|
newChanges.push({from: change.from, to: change.to, text: change.text})
|
13313
13527
|
if (newGroup) { for (var prop in change) { if (m = prop.match(/^spans_(\d+)$/)) {
|
13314
13528
|
if (indexOf(newGroup, Number(m[1])) > -1) {
|
@@ -13474,7 +13688,7 @@ function skipAtomicInner(doc, pos, oldPos, dir, mayClear) {
|
|
13474
13688
|
if (!m.atomic) { continue }
|
13475
13689
|
|
13476
13690
|
if (oldPos) {
|
13477
|
-
var near = m.find(dir < 0 ? 1 : -1), diff = void 0
|
13691
|
+
var near = m.find(dir < 0 ? 1 : -1), diff = (void 0)
|
13478
13692
|
if (dir < 0 ? m.inclusiveRight : m.inclusiveLeft)
|
13479
13693
|
{ near = movePos(doc, near, -dir, near && near.line == pos.line ? line : null) }
|
13480
13694
|
if (near && near.line == pos.line && (diff = cmp(near, oldPos)) && (dir < 0 ? diff < 0 : diff > 0))
|
@@ -14562,6 +14776,47 @@ Doc.prototype = createObj(BranchChunk.prototype, {
|
|
14562
14776
|
hist.undone = copyHistoryArray(histData.undone.slice(0), null, true)
|
14563
14777
|
},
|
14564
14778
|
|
14779
|
+
setGutterMarker: docMethodOp(function(line, gutterID, value) {
|
14780
|
+
return changeLine(this, line, "gutter", function (line) {
|
14781
|
+
var markers = line.gutterMarkers || (line.gutterMarkers = {})
|
14782
|
+
markers[gutterID] = value
|
14783
|
+
if (!value && isEmpty(markers)) { line.gutterMarkers = null }
|
14784
|
+
return true
|
14785
|
+
})
|
14786
|
+
}),
|
14787
|
+
|
14788
|
+
clearGutter: docMethodOp(function(gutterID) {
|
14789
|
+
var this$1 = this;
|
14790
|
+
|
14791
|
+
var i = this.first
|
14792
|
+
this.iter(function (line) {
|
14793
|
+
if (line.gutterMarkers && line.gutterMarkers[gutterID]) {
|
14794
|
+
changeLine(this$1, line, "gutter", function () {
|
14795
|
+
line.gutterMarkers[gutterID] = null
|
14796
|
+
if (isEmpty(line.gutterMarkers)) { line.gutterMarkers = null }
|
14797
|
+
return true
|
14798
|
+
})
|
14799
|
+
}
|
14800
|
+
++i
|
14801
|
+
})
|
14802
|
+
}),
|
14803
|
+
|
14804
|
+
lineInfo: function(line) {
|
14805
|
+
var n
|
14806
|
+
if (typeof line == "number") {
|
14807
|
+
if (!isLine(this, line)) { return null }
|
14808
|
+
n = line
|
14809
|
+
line = getLine(this, line)
|
14810
|
+
if (!line) { return null }
|
14811
|
+
} else {
|
14812
|
+
n = lineNo(line)
|
14813
|
+
if (n == null) { return null }
|
14814
|
+
}
|
14815
|
+
return {line: n, handle: line, text: line.text, gutterMarkers: line.gutterMarkers,
|
14816
|
+
textClass: line.textClass, bgClass: line.bgClass, wrapClass: line.wrapClass,
|
14817
|
+
widgets: line.widgets}
|
14818
|
+
},
|
14819
|
+
|
14565
14820
|
addLineClass: docMethodOp(function(handle, where, cls) {
|
14566
14821
|
return changeLine(this, handle, where == "gutter" ? "gutter" : "class", function (line) {
|
14567
14822
|
var prop = where == "text" ? "textClass"
|
@@ -14971,7 +15226,7 @@ function normalizeKeyMap(keymap) {
|
|
14971
15226
|
|
14972
15227
|
var keys = map(keyname.split(" "), normalizeKeyName)
|
14973
15228
|
for (var i = 0; i < keys.length; i++) {
|
14974
|
-
var val = void 0, name = void 0
|
15229
|
+
var val = (void 0), name = (void 0)
|
14975
15230
|
if (i == keys.length - 1) {
|
14976
15231
|
name = keys.join(" ")
|
14977
15232
|
val = value
|
@@ -15376,6 +15631,7 @@ function onKeyPress(e) {
|
|
15376
15631
|
function onMouseDown(e) {
|
15377
15632
|
var cm = this, display = cm.display
|
15378
15633
|
if (signalDOMEvent(cm, e) || display.activeTouch && display.input.supportsTouch()) { return }
|
15634
|
+
display.input.ensurePolled()
|
15379
15635
|
display.shift = e.shiftKey
|
15380
15636
|
|
15381
15637
|
if (eventInWidget(display, e)) {
|
@@ -15961,6 +16217,7 @@ function registerEventHandlers(cm) {
|
|
15961
16217
|
}
|
15962
16218
|
on(d.scroller, "touchstart", function (e) {
|
15963
16219
|
if (!signalDOMEvent(cm, e) && !isMouseLikeTouchEvent(e)) {
|
16220
|
+
d.input.ensurePolled()
|
15964
16221
|
clearTimeout(touchFinished)
|
15965
16222
|
var now = +new Date
|
15966
16223
|
d.activeTouch = {start: now, moved: false,
|
@@ -16400,7 +16657,7 @@ function addEditorMethods(CodeMirror) {
|
|
16400
16657
|
height = fromCoordSystem(this, {top: height, left: 0}, mode || "page").top
|
16401
16658
|
return lineAtHeight(this.doc, height + this.display.viewOffset)
|
16402
16659
|
},
|
16403
|
-
heightAtLine: function(line, mode) {
|
16660
|
+
heightAtLine: function(line, mode, includeWidgets) {
|
16404
16661
|
var end = false, lineObj
|
16405
16662
|
if (typeof line == "number") {
|
16406
16663
|
var last = this.doc.first + this.doc.size - 1
|
@@ -16410,52 +16667,13 @@ function addEditorMethods(CodeMirror) {
|
|
16410
16667
|
} else {
|
16411
16668
|
lineObj = line
|
16412
16669
|
}
|
16413
|
-
return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || "page").top +
|
16670
|
+
return intoCoordSystem(this, lineObj, {top: 0, left: 0}, mode || "page", includeWidgets).top +
|
16414
16671
|
(end ? this.doc.height - heightAtLine(lineObj) : 0)
|
16415
16672
|
},
|
16416
16673
|
|
16417
16674
|
defaultTextHeight: function() { return textHeight(this.display) },
|
16418
16675
|
defaultCharWidth: function() { return charWidth(this.display) },
|
16419
16676
|
|
16420
|
-
setGutterMarker: methodOp(function(line, gutterID, value) {
|
16421
|
-
return changeLine(this.doc, line, "gutter", function (line) {
|
16422
|
-
var markers = line.gutterMarkers || (line.gutterMarkers = {})
|
16423
|
-
markers[gutterID] = value
|
16424
|
-
if (!value && isEmpty(markers)) { line.gutterMarkers = null }
|
16425
|
-
return true
|
16426
|
-
})
|
16427
|
-
}),
|
16428
|
-
|
16429
|
-
clearGutter: methodOp(function(gutterID) {
|
16430
|
-
var this$1 = this;
|
16431
|
-
|
16432
|
-
var doc = this.doc, i = doc.first
|
16433
|
-
doc.iter(function (line) {
|
16434
|
-
if (line.gutterMarkers && line.gutterMarkers[gutterID]) {
|
16435
|
-
line.gutterMarkers[gutterID] = null
|
16436
|
-
regLineChange(this$1, i, "gutter")
|
16437
|
-
if (isEmpty(line.gutterMarkers)) { line.gutterMarkers = null }
|
16438
|
-
}
|
16439
|
-
++i
|
16440
|
-
})
|
16441
|
-
}),
|
16442
|
-
|
16443
|
-
lineInfo: function(line) {
|
16444
|
-
var n
|
16445
|
-
if (typeof line == "number") {
|
16446
|
-
if (!isLine(this.doc, line)) { return null }
|
16447
|
-
n = line
|
16448
|
-
line = getLine(this.doc, line)
|
16449
|
-
if (!line) { return null }
|
16450
|
-
} else {
|
16451
|
-
n = lineNo(line)
|
16452
|
-
if (n == null) { return null }
|
16453
|
-
}
|
16454
|
-
return {line: n, handle: line, text: line.text, gutterMarkers: line.gutterMarkers,
|
16455
|
-
textClass: line.textClass, bgClass: line.bgClass, wrapClass: line.wrapClass,
|
16456
|
-
widgets: line.widgets}
|
16457
|
-
},
|
16458
|
-
|
16459
16677
|
getViewport: function() { return {from: this.display.viewFrom, to: this.display.viewTo}},
|
16460
16678
|
|
16461
16679
|
addWidget: function(pos, node, scroll, vert, horiz) {
|
@@ -16789,11 +17007,15 @@ function ContentEditableInput(cm) {
|
|
16789
17007
|
this.cm = cm
|
16790
17008
|
this.lastAnchorNode = this.lastAnchorOffset = this.lastFocusNode = this.lastFocusOffset = null
|
16791
17009
|
this.polling = new Delayed()
|
17010
|
+
this.composing = null
|
16792
17011
|
this.gracePeriod = false
|
17012
|
+
this.readDOMTimeout = null
|
16793
17013
|
}
|
16794
17014
|
|
16795
17015
|
ContentEditableInput.prototype = copyObj({
|
16796
17016
|
init: function(display) {
|
17017
|
+
var this$1 = this;
|
17018
|
+
|
16797
17019
|
var input = this, cm = input.cm
|
16798
17020
|
var div = input.div = display.lineDiv
|
16799
17021
|
disableBrowserMagic(div, cm.options.spellcheck)
|
@@ -16807,39 +17029,22 @@ ContentEditableInput.prototype = copyObj({
|
|
16807
17029
|
})
|
16808
17030
|
|
16809
17031
|
on(div, "compositionstart", function (e) {
|
16810
|
-
|
16811
|
-
|
16812
|
-
|
16813
|
-
|
16814
|
-
var line = cm.getLine(prim.head.line)
|
16815
|
-
var found = line.indexOf(data, Math.max(0, prim.head.ch - data.length))
|
16816
|
-
if (found > -1 && found <= prim.head.ch)
|
16817
|
-
{ input.composing.sel = simpleSelection(Pos(prim.head.line, found),
|
16818
|
-
Pos(prim.head.line, found + data.length)) }
|
17032
|
+
this$1.composing = {data: e.data}
|
17033
|
+
})
|
17034
|
+
on(div, "compositionupdate", function (e) {
|
17035
|
+
if (!this$1.composing) { this$1.composing = {data: e.data} }
|
16819
17036
|
})
|
16820
|
-
on(div, "compositionupdate", function (e) { return input.composing.data = e.data; })
|
16821
17037
|
on(div, "compositionend", function (e) {
|
16822
|
-
|
16823
|
-
|
16824
|
-
|
16825
|
-
|
16826
|
-
// Need a small delay to prevent other code (input event,
|
16827
|
-
// selection polling) from doing damage when fired right after
|
16828
|
-
// compositionend.
|
16829
|
-
setTimeout(function () {
|
16830
|
-
if (!ours.handled)
|
16831
|
-
{ input.applyComposition(ours) }
|
16832
|
-
if (input.composing == ours)
|
16833
|
-
{ input.composing = null }
|
16834
|
-
}, 50)
|
17038
|
+
if (this$1.composing) {
|
17039
|
+
if (e.data != this$1.composing.data) { this$1.readFromDOMSoon() }
|
17040
|
+
this$1.composing = null
|
17041
|
+
}
|
16835
17042
|
})
|
16836
17043
|
|
16837
17044
|
on(div, "touchstart", function () { return input.forceCompositionEnd(); })
|
16838
17045
|
|
16839
17046
|
on(div, "input", function () {
|
16840
|
-
if (
|
16841
|
-
if (cm.isReadOnly() || !input.pollContent())
|
16842
|
-
{ runInOp(input.cm, function () { return regChange(cm); }) }
|
17047
|
+
if (!this$1.composing) { this$1.readFromDOMSoon() }
|
16843
17048
|
})
|
16844
17049
|
|
16845
17050
|
function onCopyCut(e) {
|
@@ -16970,7 +17175,11 @@ ContentEditableInput.prototype = copyObj({
|
|
16970
17175
|
},
|
16971
17176
|
|
16972
17177
|
focus: function() {
|
16973
|
-
if (this.cm.options.readOnly != "nocursor") {
|
17178
|
+
if (this.cm.options.readOnly != "nocursor") {
|
17179
|
+
if (!this.selectionInEditor())
|
17180
|
+
{ this.showSelection(this.prepareSelection(), true) }
|
17181
|
+
this.div.focus()
|
17182
|
+
}
|
16974
17183
|
},
|
16975
17184
|
blur: function() { this.div.blur() },
|
16976
17185
|
getField: function() { return this.div },
|
@@ -17000,7 +17209,7 @@ ContentEditableInput.prototype = copyObj({
|
|
17000
17209
|
},
|
17001
17210
|
|
17002
17211
|
pollSelection: function() {
|
17003
|
-
if (!this.composing && !this.gracePeriod && this.selectionChanged()) {
|
17212
|
+
if (!this.composing && this.readDOMTimeout == null && !this.gracePeriod && this.selectionChanged()) {
|
17004
17213
|
var sel = window.getSelection(), cm = this.cm
|
17005
17214
|
this.rememberSelection()
|
17006
17215
|
var anchor = domToPos(cm, sel.anchorNode, sel.anchorOffset)
|
@@ -17013,8 +17222,17 @@ ContentEditableInput.prototype = copyObj({
|
|
17013
17222
|
},
|
17014
17223
|
|
17015
17224
|
pollContent: function() {
|
17225
|
+
if (this.readDOMTimeout != null) {
|
17226
|
+
clearTimeout(this.readDOMTimeout)
|
17227
|
+
this.readDOMTimeout = null
|
17228
|
+
}
|
17229
|
+
|
17016
17230
|
var cm = this.cm, display = cm.display, sel = cm.doc.sel.primary()
|
17017
17231
|
var from = sel.from(), to = sel.to()
|
17232
|
+
if (from.ch == 0 && from.line > cm.firstLine())
|
17233
|
+
{ from = Pos(from.line - 1, getLine(cm.doc, from.line - 1).length) }
|
17234
|
+
if (to.ch == getLine(cm.doc, to.line).text.length && to.line < cm.lastLine())
|
17235
|
+
{ to = Pos(to.line + 1, 0) }
|
17018
17236
|
if (from.line < display.viewFrom || to.line > display.viewTo - 1) { return false }
|
17019
17237
|
|
17020
17238
|
var fromIndex, fromLine, fromNode
|
@@ -17035,6 +17253,7 @@ ContentEditableInput.prototype = copyObj({
|
|
17035
17253
|
toNode = display.view[toIndex + 1].node.previousSibling
|
17036
17254
|
}
|
17037
17255
|
|
17256
|
+
if (!fromNode) { return false }
|
17038
17257
|
var newText = cm.doc.splitLines(domTextBetween(cm, fromNode, toNode, fromLine, toLine))
|
17039
17258
|
var oldText = getBetween(cm.doc, Pos(fromLine, 0), Pos(toLine, getLine(cm.doc, toLine).text.length))
|
17040
17259
|
while (newText.length > 1 && oldText.length > 1) {
|
@@ -17054,8 +17273,8 @@ ContentEditableInput.prototype = copyObj({
|
|
17054
17273
|
newBot.charCodeAt(newBot.length - cutEnd - 1) == oldBot.charCodeAt(oldBot.length - cutEnd - 1))
|
17055
17274
|
{ ++cutEnd }
|
17056
17275
|
|
17057
|
-
newText[newText.length - 1] = newBot.slice(0, newBot.length - cutEnd)
|
17058
|
-
newText[0] = newText[0].slice(cutFront)
|
17276
|
+
newText[newText.length - 1] = newBot.slice(0, newBot.length - cutEnd).replace(/^\u200b+/, "")
|
17277
|
+
newText[0] = newText[0].slice(cutFront).replace(/\u200b+$/, "")
|
17059
17278
|
|
17060
17279
|
var chFrom = Pos(fromLine, cutFront)
|
17061
17280
|
var chTo = Pos(toLine, oldText.length ? lst(oldText).length - cutEnd : 0)
|
@@ -17072,17 +17291,22 @@ ContentEditableInput.prototype = copyObj({
|
|
17072
17291
|
this.forceCompositionEnd()
|
17073
17292
|
},
|
17074
17293
|
forceCompositionEnd: function() {
|
17075
|
-
if (!this.composing
|
17076
|
-
this.
|
17077
|
-
this.
|
17294
|
+
if (!this.composing) { return }
|
17295
|
+
this.composing = null
|
17296
|
+
if (!this.pollContent()) { regChange(this.cm) }
|
17078
17297
|
this.div.blur()
|
17079
17298
|
this.div.focus()
|
17080
17299
|
},
|
17081
|
-
|
17082
|
-
|
17083
|
-
|
17084
|
-
|
17085
|
-
|
17300
|
+
readFromDOMSoon: function() {
|
17301
|
+
var this$1 = this;
|
17302
|
+
|
17303
|
+
if (this.readDOMTimeout != null) { return }
|
17304
|
+
this.readDOMTimeout = setTimeout(function () {
|
17305
|
+
this$1.readDOMTimeout = null
|
17306
|
+
if (this$1.composing) { return }
|
17307
|
+
if (this$1.cm.isReadOnly() || !this$1.pollContent())
|
17308
|
+
{ runInOp(this$1.cm, function () { return regChange(this$1.cm); }) }
|
17309
|
+
}, 80)
|
17086
17310
|
},
|
17087
17311
|
|
17088
17312
|
setUneditable: function(node) {
|
@@ -17130,8 +17354,8 @@ function domTextBetween(cm, from, to, fromLine, toLine) {
|
|
17130
17354
|
if (node.nodeType == 1) {
|
17131
17355
|
var cmText = node.getAttribute("cm-text")
|
17132
17356
|
if (cmText != null) {
|
17133
|
-
if (cmText == "") {
|
17134
|
-
text += cmText
|
17357
|
+
if (cmText == "") { text += node.textContent.replace(/\u200b/g, "") }
|
17358
|
+
else { text += cmText }
|
17135
17359
|
return
|
17136
17360
|
}
|
17137
17361
|
var markerID = node.getAttribute("cm-marker"), range
|
@@ -17736,12 +17960,12 @@ CodeMirror.fromTextArea = fromTextArea
|
|
17736
17960
|
|
17737
17961
|
addLegacyProps(CodeMirror)
|
17738
17962
|
|
17739
|
-
CodeMirror.version = "5.
|
17963
|
+
CodeMirror.version = "5.21.0"
|
17740
17964
|
|
17741
17965
|
return CodeMirror;
|
17742
17966
|
|
17743
17967
|
})));
|
17744
|
-
},{}],
|
17968
|
+
},{}],55:[function(require,module,exports){
|
17745
17969
|
'use strict';
|
17746
17970
|
|
17747
17971
|
Object.defineProperty(exports, "__esModule", {
|
@@ -17857,7 +18081,7 @@ GraphQLError.prototype = Object.create(Error.prototype, {
|
|
17857
18081
|
constructor: { value: GraphQLError },
|
17858
18082
|
name: { value: 'GraphQLError' }
|
17859
18083
|
});
|
17860
|
-
},{"../language":
|
18084
|
+
},{"../language":73}],56:[function(require,module,exports){
|
17861
18085
|
'use strict';
|
17862
18086
|
|
17863
18087
|
Object.defineProperty(exports, "__esModule", {
|
@@ -17891,7 +18115,7 @@ function formatError(error) {
|
|
17891
18115
|
* LICENSE file in the root directory of this source tree. An additional grant
|
17892
18116
|
* of patent rights can be found in the PATENTS file in the same directory.
|
17893
18117
|
*/
|
17894
|
-
},{"../jsutils/invariant":
|
18118
|
+
},{"../jsutils/invariant":66}],57:[function(require,module,exports){
|
17895
18119
|
'use strict';
|
17896
18120
|
|
17897
18121
|
Object.defineProperty(exports, "__esModule", {
|
@@ -17933,7 +18157,7 @@ Object.defineProperty(exports, 'formatError', {
|
|
17933
18157
|
return _formatError.formatError;
|
17934
18158
|
}
|
17935
18159
|
});
|
17936
|
-
},{"./GraphQLError":
|
18160
|
+
},{"./GraphQLError":55,"./formatError":56,"./locatedError":58,"./syntaxError":59}],58:[function(require,module,exports){
|
17937
18161
|
'use strict';
|
17938
18162
|
|
17939
18163
|
Object.defineProperty(exports, "__esModule", {
|
@@ -17966,7 +18190,7 @@ function locatedError(originalError, nodes, path) {
|
|
17966
18190
|
* LICENSE file in the root directory of this source tree. An additional grant
|
17967
18191
|
* of patent rights can be found in the PATENTS file in the same directory.
|
17968
18192
|
*/
|
17969
|
-
},{"./GraphQLError":
|
18193
|
+
},{"./GraphQLError":55}],59:[function(require,module,exports){
|
17970
18194
|
'use strict';
|
17971
18195
|
|
17972
18196
|
Object.defineProperty(exports, "__esModule", {
|
@@ -18015,7 +18239,7 @@ function highlightSourceAtLocation(source, location) {
|
|
18015
18239
|
function lpad(len, str) {
|
18016
18240
|
return Array(len - str.length + 1).join(' ') + str;
|
18017
18241
|
}
|
18018
|
-
},{"../language/location":
|
18242
|
+
},{"../language/location":76,"./GraphQLError":55}],60:[function(require,module,exports){
|
18019
18243
|
'use strict';
|
18020
18244
|
|
18021
18245
|
Object.defineProperty(exports, "__esModule", {
|
@@ -18767,7 +18991,7 @@ function getFieldDef(schema, parentType, fieldName) {
|
|
18767
18991
|
}
|
18768
18992
|
return parentType.getFields()[fieldName];
|
18769
18993
|
}
|
18770
|
-
},{"../error":
|
18994
|
+
},{"../error":57,"../jsutils/find":65,"../jsutils/invariant":66,"../jsutils/isNullish":68,"../language/kinds":74,"../type/definition":81,"../type/directives":82,"../type/introspection":84,"../type/schema":86,"../utilities/typeFromAST":103,"./values":62,"iterall":133}],61:[function(require,module,exports){
|
18771
18995
|
'use strict';
|
18772
18996
|
|
18773
18997
|
Object.defineProperty(exports, "__esModule", {
|
@@ -18794,7 +19018,7 @@ Object.defineProperty(exports, 'responsePathAsArray', {
|
|
18794
19018
|
return _execute.responsePathAsArray;
|
18795
19019
|
}
|
18796
19020
|
});
|
18797
|
-
},{"./execute":
|
19021
|
+
},{"./execute":60}],62:[function(require,module,exports){
|
18798
19022
|
'use strict';
|
18799
19023
|
|
18800
19024
|
Object.defineProperty(exports, "__esModule", {
|
@@ -19031,7 +19255,7 @@ function coerceValue(type, value) {
|
|
19031
19255
|
|
19032
19256
|
return parsed;
|
19033
19257
|
}
|
19034
|
-
},{"../error":
|
19258
|
+
},{"../error":57,"../jsutils/invariant":66,"../jsutils/isInvalid":67,"../jsutils/isNullish":68,"../jsutils/keyMap":69,"../language/kinds":74,"../language/printer":78,"../type/definition":81,"../utilities/isValidJSValue":98,"../utilities/isValidLiteralValue":99,"../utilities/typeFromAST":103,"../utilities/valueFromAST":104,"iterall":133}],63:[function(require,module,exports){
|
19035
19259
|
'use strict';
|
19036
19260
|
|
19037
19261
|
Object.defineProperty(exports, "__esModule", {
|
@@ -19095,7 +19319,7 @@ function graphql(schema, requestString, rootValue, contextValue, variableValues,
|
|
19095
19319
|
return { errors: [error] };
|
19096
19320
|
});
|
19097
19321
|
}
|
19098
|
-
},{"./execution/execute":
|
19322
|
+
},{"./execution/execute":60,"./language/parser":77,"./language/source":79,"./validation/validate":132}],64:[function(require,module,exports){
|
19099
19323
|
'use strict';
|
19100
19324
|
|
19101
19325
|
Object.defineProperty(exports, "__esModule", {
|
@@ -19347,6 +19571,42 @@ Object.defineProperty(exports, 'isAbstractType', {
|
|
19347
19571
|
return _type.isAbstractType;
|
19348
19572
|
}
|
19349
19573
|
});
|
19574
|
+
Object.defineProperty(exports, 'assertType', {
|
19575
|
+
enumerable: true,
|
19576
|
+
get: function get() {
|
19577
|
+
return _type.assertType;
|
19578
|
+
}
|
19579
|
+
});
|
19580
|
+
Object.defineProperty(exports, 'assertInputType', {
|
19581
|
+
enumerable: true,
|
19582
|
+
get: function get() {
|
19583
|
+
return _type.assertInputType;
|
19584
|
+
}
|
19585
|
+
});
|
19586
|
+
Object.defineProperty(exports, 'assertOutputType', {
|
19587
|
+
enumerable: true,
|
19588
|
+
get: function get() {
|
19589
|
+
return _type.assertOutputType;
|
19590
|
+
}
|
19591
|
+
});
|
19592
|
+
Object.defineProperty(exports, 'assertLeafType', {
|
19593
|
+
enumerable: true,
|
19594
|
+
get: function get() {
|
19595
|
+
return _type.assertLeafType;
|
19596
|
+
}
|
19597
|
+
});
|
19598
|
+
Object.defineProperty(exports, 'assertCompositeType', {
|
19599
|
+
enumerable: true,
|
19600
|
+
get: function get() {
|
19601
|
+
return _type.assertCompositeType;
|
19602
|
+
}
|
19603
|
+
});
|
19604
|
+
Object.defineProperty(exports, 'assertAbstractType', {
|
19605
|
+
enumerable: true,
|
19606
|
+
get: function get() {
|
19607
|
+
return _type.assertAbstractType;
|
19608
|
+
}
|
19609
|
+
});
|
19350
19610
|
Object.defineProperty(exports, 'getNullableType', {
|
19351
19611
|
enumerable: true,
|
19352
19612
|
get: function get() {
|
@@ -19464,6 +19724,12 @@ Object.defineProperty(exports, 'validate', {
|
|
19464
19724
|
return _validation.validate;
|
19465
19725
|
}
|
19466
19726
|
});
|
19727
|
+
Object.defineProperty(exports, 'ValidationContext', {
|
19728
|
+
enumerable: true,
|
19729
|
+
get: function get() {
|
19730
|
+
return _validation.ValidationContext;
|
19731
|
+
}
|
19732
|
+
});
|
19467
19733
|
Object.defineProperty(exports, 'specifiedRules', {
|
19468
19734
|
enumerable: true,
|
19469
19735
|
get: function get() {
|
@@ -19614,7 +19880,7 @@ Object.defineProperty(exports, 'findBreakingChanges', {
|
|
19614
19880
|
return _utilities.findBreakingChanges;
|
19615
19881
|
}
|
19616
19882
|
});
|
19617
|
-
},{"./error":
|
19883
|
+
},{"./error":57,"./execution":61,"./graphql":63,"./language":73,"./type":83,"./utilities":96,"./validation":105}],65:[function(require,module,exports){
|
19618
19884
|
"use strict";
|
19619
19885
|
|
19620
19886
|
Object.defineProperty(exports, "__esModule", {
|
@@ -19638,7 +19904,7 @@ function find(list, predicate) {
|
|
19638
19904
|
}
|
19639
19905
|
}
|
19640
19906
|
}
|
19641
|
-
},{}],
|
19907
|
+
},{}],66:[function(require,module,exports){
|
19642
19908
|
"use strict";
|
19643
19909
|
|
19644
19910
|
Object.defineProperty(exports, "__esModule", {
|
@@ -19660,7 +19926,7 @@ function invariant(condition, message) {
|
|
19660
19926
|
throw new Error(message);
|
19661
19927
|
}
|
19662
19928
|
}
|
19663
|
-
},{}],
|
19929
|
+
},{}],67:[function(require,module,exports){
|
19664
19930
|
"use strict";
|
19665
19931
|
|
19666
19932
|
Object.defineProperty(exports, "__esModule", {
|
@@ -19683,7 +19949,7 @@ exports.default = isInvalid;
|
|
19683
19949
|
function isInvalid(value) {
|
19684
19950
|
return value === undefined || value !== value;
|
19685
19951
|
}
|
19686
|
-
},{}],
|
19952
|
+
},{}],68:[function(require,module,exports){
|
19687
19953
|
"use strict";
|
19688
19954
|
|
19689
19955
|
Object.defineProperty(exports, "__esModule", {
|
@@ -19706,7 +19972,7 @@ exports.default = isNullish;
|
|
19706
19972
|
function isNullish(value) {
|
19707
19973
|
return value === null || value === undefined || value !== value;
|
19708
19974
|
}
|
19709
|
-
},{}],
|
19975
|
+
},{}],69:[function(require,module,exports){
|
19710
19976
|
"use strict";
|
19711
19977
|
|
19712
19978
|
Object.defineProperty(exports, "__esModule", {
|
@@ -19751,7 +20017,7 @@ function keyMap(list, keyFn) {
|
|
19751
20017
|
return map[keyFn(item)] = item, map;
|
19752
20018
|
}, {});
|
19753
20019
|
}
|
19754
|
-
},{}],
|
20020
|
+
},{}],70:[function(require,module,exports){
|
19755
20021
|
"use strict";
|
19756
20022
|
|
19757
20023
|
Object.defineProperty(exports, "__esModule", {
|
@@ -19790,7 +20056,7 @@ function keyValMap(list, keyFn, valFn) {
|
|
19790
20056
|
return map[keyFn(item)] = valFn(item), map;
|
19791
20057
|
}, {});
|
19792
20058
|
}
|
19793
|
-
},{}],
|
20059
|
+
},{}],71:[function(require,module,exports){
|
19794
20060
|
'use strict';
|
19795
20061
|
|
19796
20062
|
Object.defineProperty(exports, "__esModule", {
|
@@ -19820,7 +20086,7 @@ function quotedOrList(items) {
|
|
19820
20086
|
return list + (selected.length > 2 ? ', ' : ' ') + (index === selected.length - 1 ? 'or ' : '') + quoted;
|
19821
20087
|
});
|
19822
20088
|
}
|
19823
|
-
},{}],
|
20089
|
+
},{}],72:[function(require,module,exports){
|
19824
20090
|
"use strict";
|
19825
20091
|
|
19826
20092
|
Object.defineProperty(exports, "__esModule", {
|
@@ -19900,7 +20166,7 @@ function lexicalDistance(a, b) {
|
|
19900
20166
|
|
19901
20167
|
return d[aLength][bLength];
|
19902
20168
|
}
|
19903
|
-
},{}],
|
20169
|
+
},{}],73:[function(require,module,exports){
|
19904
20170
|
'use strict';
|
19905
20171
|
|
19906
20172
|
Object.defineProperty(exports, "__esModule", {
|
@@ -20005,7 +20271,7 @@ var Kind = _interopRequireWildcard(_kinds);
|
|
20005
20271
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
20006
20272
|
|
20007
20273
|
exports.Kind = Kind;
|
20008
|
-
},{"./kinds":
|
20274
|
+
},{"./kinds":74,"./lexer":75,"./location":76,"./parser":77,"./printer":78,"./source":79,"./visitor":80}],74:[function(require,module,exports){
|
20009
20275
|
'use strict';
|
20010
20276
|
|
20011
20277
|
Object.defineProperty(exports, "__esModule", {
|
@@ -20087,7 +20353,7 @@ var TYPE_EXTENSION_DEFINITION = exports.TYPE_EXTENSION_DEFINITION = 'TypeExtensi
|
|
20087
20353
|
// Directive Definitions
|
20088
20354
|
|
20089
20355
|
var DIRECTIVE_DEFINITION = exports.DIRECTIVE_DEFINITION = 'DirectiveDefinition';
|
20090
|
-
},{}],
|
20356
|
+
},{}],75:[function(require,module,exports){
|
20091
20357
|
'use strict';
|
20092
20358
|
|
20093
20359
|
Object.defineProperty(exports, "__esModule", {
|
@@ -20590,7 +20856,7 @@ function readName(source, position, line, col, prev) {
|
|
20590
20856
|
}
|
20591
20857
|
return new Tok(NAME, position, end, line, col, prev, slice.call(body, position, end));
|
20592
20858
|
}
|
20593
|
-
},{"../error":
|
20859
|
+
},{"../error":57}],76:[function(require,module,exports){
|
20594
20860
|
'use strict';
|
20595
20861
|
|
20596
20862
|
Object.defineProperty(exports, "__esModule", {
|
@@ -20628,7 +20894,7 @@ function getLocation(source, position) {
|
|
20628
20894
|
/**
|
20629
20895
|
* Represents a location in a Source.
|
20630
20896
|
*/
|
20631
|
-
},{}],
|
20897
|
+
},{}],77:[function(require,module,exports){
|
20632
20898
|
'use strict';
|
20633
20899
|
|
20634
20900
|
Object.defineProperty(exports, "__esModule", {
|
@@ -21649,7 +21915,7 @@ function many(lexer, openKind, parseFn, closeKind) {
|
|
21649
21915
|
}
|
21650
21916
|
return nodes;
|
21651
21917
|
}
|
21652
|
-
},{"../error":
|
21918
|
+
},{"../error":57,"./kinds":74,"./lexer":75,"./source":79}],78:[function(require,module,exports){
|
21653
21919
|
'use strict';
|
21654
21920
|
|
21655
21921
|
Object.defineProperty(exports, "__esModule", {
|
@@ -21932,7 +22198,7 @@ function wrap(start, maybeString, end) {
|
|
21932
22198
|
function indent(maybeString) {
|
21933
22199
|
return maybeString && maybeString.replace(/\n/g, '\n ');
|
21934
22200
|
}
|
21935
|
-
},{"./visitor":
|
22201
|
+
},{"./visitor":80}],79:[function(require,module,exports){
|
21936
22202
|
'use strict';
|
21937
22203
|
|
21938
22204
|
Object.defineProperty(exports, "__esModule", {
|
@@ -21962,7 +22228,7 @@ var Source = exports.Source = function Source(body, name) {
|
|
21962
22228
|
this.body = body;
|
21963
22229
|
this.name = name || 'GraphQL';
|
21964
22230
|
};
|
21965
|
-
},{}],
|
22231
|
+
},{}],80:[function(require,module,exports){
|
21966
22232
|
'use strict';
|
21967
22233
|
|
21968
22234
|
Object.defineProperty(exports, "__esModule", {
|
@@ -22353,7 +22619,7 @@ function getVisitFn(visitor, kind, isLeaving) {
|
|
22353
22619
|
}
|
22354
22620
|
}
|
22355
22621
|
}
|
22356
|
-
},{}],
|
22622
|
+
},{}],81:[function(require,module,exports){
|
22357
22623
|
'use strict';
|
22358
22624
|
|
22359
22625
|
Object.defineProperty(exports, "__esModule", {
|
@@ -22364,11 +22630,17 @@ exports.GraphQLNonNull = exports.GraphQLList = exports.GraphQLInputObjectType =
|
|
22364
22630
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
22365
22631
|
|
22366
22632
|
exports.isType = isType;
|
22633
|
+
exports.assertType = assertType;
|
22367
22634
|
exports.isInputType = isInputType;
|
22635
|
+
exports.assertInputType = assertInputType;
|
22368
22636
|
exports.isOutputType = isOutputType;
|
22637
|
+
exports.assertOutputType = assertOutputType;
|
22369
22638
|
exports.isLeafType = isLeafType;
|
22639
|
+
exports.assertLeafType = assertLeafType;
|
22370
22640
|
exports.isCompositeType = isCompositeType;
|
22641
|
+
exports.assertCompositeType = assertCompositeType;
|
22371
22642
|
exports.isAbstractType = isAbstractType;
|
22643
|
+
exports.assertAbstractType = assertAbstractType;
|
22372
22644
|
exports.getNullableType = getNullableType;
|
22373
22645
|
exports.getNamedType = getNamedType;
|
22374
22646
|
|
@@ -22396,7 +22668,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
22396
22668
|
* of patent rights can be found in the PATENTS file in the same directory.
|
22397
22669
|
*/
|
22398
22670
|
|
22399
|
-
// Predicates
|
22671
|
+
// Predicates & Assertions
|
22400
22672
|
|
22401
22673
|
/**
|
22402
22674
|
* These are all of the possible kinds of types.
|
@@ -22405,6 +22677,11 @@ function isType(type) {
|
|
22405
22677
|
return type instanceof GraphQLScalarType || type instanceof GraphQLObjectType || type instanceof GraphQLInterfaceType || type instanceof GraphQLUnionType || type instanceof GraphQLEnumType || type instanceof GraphQLInputObjectType || type instanceof GraphQLList || type instanceof GraphQLNonNull;
|
22406
22678
|
}
|
22407
22679
|
|
22680
|
+
function assertType(type) {
|
22681
|
+
(0, _invariant2.default)(isType(type), 'Expected ' + String(type) + ' to be a GraphQL type.');
|
22682
|
+
return type;
|
22683
|
+
}
|
22684
|
+
|
22408
22685
|
/**
|
22409
22686
|
* These types may be used as input types for arguments and directives.
|
22410
22687
|
*/
|
@@ -22413,6 +22690,11 @@ function isInputType(type) {
|
|
22413
22690
|
return namedType instanceof GraphQLScalarType || namedType instanceof GraphQLEnumType || namedType instanceof GraphQLInputObjectType;
|
22414
22691
|
}
|
22415
22692
|
|
22693
|
+
function assertInputType(type) {
|
22694
|
+
(0, _invariant2.default)(isInputType(type), 'Expected ' + String(type) + ' to be a GraphQL input type.');
|
22695
|
+
return type;
|
22696
|
+
}
|
22697
|
+
|
22416
22698
|
/**
|
22417
22699
|
* These types may be used as output types as the result of fields.
|
22418
22700
|
*/
|
@@ -22421,6 +22703,11 @@ function isOutputType(type) {
|
|
22421
22703
|
return namedType instanceof GraphQLScalarType || namedType instanceof GraphQLObjectType || namedType instanceof GraphQLInterfaceType || namedType instanceof GraphQLUnionType || namedType instanceof GraphQLEnumType;
|
22422
22704
|
}
|
22423
22705
|
|
22706
|
+
function assertOutputType(type) {
|
22707
|
+
(0, _invariant2.default)(isOutputType(type), 'Expected ' + String(type) + ' to be a GraphQL output type.');
|
22708
|
+
return type;
|
22709
|
+
}
|
22710
|
+
|
22424
22711
|
/**
|
22425
22712
|
* These types may describe types which may be leaf values.
|
22426
22713
|
*/
|
@@ -22429,6 +22716,11 @@ function isLeafType(type) {
|
|
22429
22716
|
return namedType instanceof GraphQLScalarType || namedType instanceof GraphQLEnumType;
|
22430
22717
|
}
|
22431
22718
|
|
22719
|
+
function assertLeafType(type) {
|
22720
|
+
(0, _invariant2.default)(isLeafType(type), 'Expected ' + String(type) + ' to be a GraphQL leaf type.');
|
22721
|
+
return type;
|
22722
|
+
}
|
22723
|
+
|
22432
22724
|
/**
|
22433
22725
|
* These types may describe the parent context of a selection set.
|
22434
22726
|
*/
|
@@ -22436,6 +22728,11 @@ function isCompositeType(type) {
|
|
22436
22728
|
return type instanceof GraphQLObjectType || type instanceof GraphQLInterfaceType || type instanceof GraphQLUnionType;
|
22437
22729
|
}
|
22438
22730
|
|
22731
|
+
function assertCompositeType(type) {
|
22732
|
+
(0, _invariant2.default)(isCompositeType(type), 'Expected ' + String(type) + ' to be a GraphQL composite type.');
|
22733
|
+
return type;
|
22734
|
+
}
|
22735
|
+
|
22439
22736
|
/**
|
22440
22737
|
* These types may describe the parent context of a selection set.
|
22441
22738
|
*/
|
@@ -22443,6 +22740,11 @@ function isAbstractType(type) {
|
|
22443
22740
|
return type instanceof GraphQLInterfaceType || type instanceof GraphQLUnionType;
|
22444
22741
|
}
|
22445
22742
|
|
22743
|
+
function assertAbstractType(type) {
|
22744
|
+
(0, _invariant2.default)(isAbstractType(type), 'Expected ' + String(type) + ' to be a GraphQL abstract type.');
|
22745
|
+
return type;
|
22746
|
+
}
|
22747
|
+
|
22446
22748
|
/**
|
22447
22749
|
* These types can all accept null as a value.
|
22448
22750
|
*/
|
@@ -22535,6 +22837,11 @@ var GraphQLScalarType = exports.GraphQLScalarType = function () {
|
|
22535
22837
|
return GraphQLScalarType;
|
22536
22838
|
}();
|
22537
22839
|
|
22840
|
+
// Also provide toJSON and inspect aliases for toString.
|
22841
|
+
|
22842
|
+
|
22843
|
+
GraphQLScalarType.prototype.toJSON = GraphQLScalarType.prototype.inspect = GraphQLScalarType.prototype.toString;
|
22844
|
+
|
22538
22845
|
/**
|
22539
22846
|
* Object Type Definition
|
22540
22847
|
*
|
@@ -22602,6 +22909,11 @@ var GraphQLObjectType = exports.GraphQLObjectType = function () {
|
|
22602
22909
|
return GraphQLObjectType;
|
22603
22910
|
}();
|
22604
22911
|
|
22912
|
+
// Also provide toJSON and inspect aliases for toString.
|
22913
|
+
|
22914
|
+
|
22915
|
+
GraphQLObjectType.prototype.toJSON = GraphQLObjectType.prototype.inspect = GraphQLObjectType.prototype.toString;
|
22916
|
+
|
22605
22917
|
function defineInterfaces(type, interfacesThunk) {
|
22606
22918
|
var interfaces = resolveThunk(interfacesThunk);
|
22607
22919
|
if (!interfaces) {
|
@@ -22704,6 +23016,11 @@ var GraphQLInterfaceType = exports.GraphQLInterfaceType = function () {
|
|
22704
23016
|
return GraphQLInterfaceType;
|
22705
23017
|
}();
|
22706
23018
|
|
23019
|
+
// Also provide toJSON and inspect aliases for toString.
|
23020
|
+
|
23021
|
+
|
23022
|
+
GraphQLInterfaceType.prototype.toJSON = GraphQLInterfaceType.prototype.inspect = GraphQLInterfaceType.prototype.toString;
|
23023
|
+
|
22707
23024
|
/**
|
22708
23025
|
* Union Type Definition
|
22709
23026
|
*
|
@@ -22753,6 +23070,11 @@ var GraphQLUnionType = exports.GraphQLUnionType = function () {
|
|
22753
23070
|
return GraphQLUnionType;
|
22754
23071
|
}();
|
22755
23072
|
|
23073
|
+
// Also provide toJSON and inspect aliases for toString.
|
23074
|
+
|
23075
|
+
|
23076
|
+
GraphQLUnionType.prototype.toJSON = GraphQLUnionType.prototype.inspect = GraphQLUnionType.prototype.toString;
|
23077
|
+
|
22756
23078
|
function defineTypes(unionType, typesThunk) {
|
22757
23079
|
var types = resolveThunk(typesThunk);
|
22758
23080
|
|
@@ -22863,6 +23185,11 @@ var GraphQLEnumType /* <T> */ = exports.GraphQLEnumType = function () {
|
|
22863
23185
|
return GraphQLEnumType;
|
22864
23186
|
}();
|
22865
23187
|
|
23188
|
+
// Also provide toJSON and inspect aliases for toString.
|
23189
|
+
|
23190
|
+
|
23191
|
+
GraphQLEnumType.prototype.toJSON = GraphQLEnumType.prototype.inspect = GraphQLEnumType.prototype.toString;
|
23192
|
+
|
22866
23193
|
function defineEnumValues(type, valueMap /* <T> */
|
22867
23194
|
) {
|
22868
23195
|
(0, _invariant2.default)(isPlainObj(valueMap), type.name + ' values must be an object with value names as keys.');
|
@@ -22945,6 +23272,11 @@ var GraphQLInputObjectType = exports.GraphQLInputObjectType = function () {
|
|
22945
23272
|
return GraphQLInputObjectType;
|
22946
23273
|
}();
|
22947
23274
|
|
23275
|
+
// Also provide toJSON and inspect aliases for toString.
|
23276
|
+
|
23277
|
+
|
23278
|
+
GraphQLInputObjectType.prototype.toJSON = GraphQLInputObjectType.prototype.inspect = GraphQLInputObjectType.prototype.toString;
|
23279
|
+
|
22948
23280
|
/**
|
22949
23281
|
* List Modifier
|
22950
23282
|
*
|
@@ -22978,6 +23310,11 @@ var GraphQLList = exports.GraphQLList = function () {
|
|
22978
23310
|
return GraphQLList;
|
22979
23311
|
}();
|
22980
23312
|
|
23313
|
+
// Also provide toJSON and inspect aliases for toString.
|
23314
|
+
|
23315
|
+
|
23316
|
+
GraphQLList.prototype.toJSON = GraphQLList.prototype.inspect = GraphQLList.prototype.toString;
|
23317
|
+
|
22981
23318
|
/**
|
22982
23319
|
* Non-Null Modifier
|
22983
23320
|
*
|
@@ -22999,7 +23336,6 @@ var GraphQLList = exports.GraphQLList = function () {
|
|
22999
23336
|
* Note: the enforcement of non-nullability occurs within the executor.
|
23000
23337
|
*/
|
23001
23338
|
|
23002
|
-
|
23003
23339
|
var GraphQLNonNull = exports.GraphQLNonNull = function () {
|
23004
23340
|
function GraphQLNonNull(type) {
|
23005
23341
|
_classCallCheck(this, GraphQLNonNull);
|
@@ -23014,7 +23350,12 @@ var GraphQLNonNull = exports.GraphQLNonNull = function () {
|
|
23014
23350
|
|
23015
23351
|
return GraphQLNonNull;
|
23016
23352
|
}();
|
23017
|
-
|
23353
|
+
|
23354
|
+
// Also provide toJSON and inspect aliases for toString.
|
23355
|
+
|
23356
|
+
|
23357
|
+
GraphQLNonNull.prototype.toJSON = GraphQLNonNull.prototype.inspect = GraphQLNonNull.prototype.toString;
|
23358
|
+
},{"../jsutils/invariant":66,"../jsutils/isNullish":68,"../language/kinds":74,"../utilities/assertValidName":88}],82:[function(require,module,exports){
|
23018
23359
|
'use strict';
|
23019
23360
|
|
23020
23361
|
Object.defineProperty(exports, "__esModule", {
|
@@ -23157,7 +23498,7 @@ var GraphQLDeprecatedDirective = exports.GraphQLDeprecatedDirective = new GraphQ
|
|
23157
23498
|
* The full list of specified directives.
|
23158
23499
|
*/
|
23159
23500
|
var specifiedDirectives = exports.specifiedDirectives = [GraphQLIncludeDirective, GraphQLSkipDirective, GraphQLDeprecatedDirective];
|
23160
|
-
},{"../jsutils/invariant":
|
23501
|
+
},{"../jsutils/invariant":66,"../utilities/assertValidName":88,"./definition":81,"./scalars":85}],83:[function(require,module,exports){
|
23161
23502
|
'use strict';
|
23162
23503
|
|
23163
23504
|
Object.defineProperty(exports, "__esModule", {
|
@@ -23211,6 +23552,42 @@ Object.defineProperty(exports, 'isAbstractType', {
|
|
23211
23552
|
return _definition.isAbstractType;
|
23212
23553
|
}
|
23213
23554
|
});
|
23555
|
+
Object.defineProperty(exports, 'assertType', {
|
23556
|
+
enumerable: true,
|
23557
|
+
get: function get() {
|
23558
|
+
return _definition.assertType;
|
23559
|
+
}
|
23560
|
+
});
|
23561
|
+
Object.defineProperty(exports, 'assertInputType', {
|
23562
|
+
enumerable: true,
|
23563
|
+
get: function get() {
|
23564
|
+
return _definition.assertInputType;
|
23565
|
+
}
|
23566
|
+
});
|
23567
|
+
Object.defineProperty(exports, 'assertOutputType', {
|
23568
|
+
enumerable: true,
|
23569
|
+
get: function get() {
|
23570
|
+
return _definition.assertOutputType;
|
23571
|
+
}
|
23572
|
+
});
|
23573
|
+
Object.defineProperty(exports, 'assertLeafType', {
|
23574
|
+
enumerable: true,
|
23575
|
+
get: function get() {
|
23576
|
+
return _definition.assertLeafType;
|
23577
|
+
}
|
23578
|
+
});
|
23579
|
+
Object.defineProperty(exports, 'assertCompositeType', {
|
23580
|
+
enumerable: true,
|
23581
|
+
get: function get() {
|
23582
|
+
return _definition.assertCompositeType;
|
23583
|
+
}
|
23584
|
+
});
|
23585
|
+
Object.defineProperty(exports, 'assertAbstractType', {
|
23586
|
+
enumerable: true,
|
23587
|
+
get: function get() {
|
23588
|
+
return _definition.assertAbstractType;
|
23589
|
+
}
|
23590
|
+
});
|
23214
23591
|
Object.defineProperty(exports, 'getNullableType', {
|
23215
23592
|
enumerable: true,
|
23216
23593
|
get: function get() {
|
@@ -23424,7 +23801,7 @@ Object.defineProperty(exports, 'TypeNameMetaFieldDef', {
|
|
23424
23801
|
return _introspection.TypeNameMetaFieldDef;
|
23425
23802
|
}
|
23426
23803
|
});
|
23427
|
-
},{"./definition":
|
23804
|
+
},{"./definition":81,"./directives":82,"./introspection":84,"./scalars":85,"./schema":86}],84:[function(require,module,exports){
|
23428
23805
|
'use strict';
|
23429
23806
|
|
23430
23807
|
Object.defineProperty(exports, "__esModule", {
|
@@ -23432,9 +23809,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
23432
23809
|
});
|
23433
23810
|
exports.TypeNameMetaFieldDef = exports.TypeMetaFieldDef = exports.SchemaMetaFieldDef = exports.__TypeKind = exports.TypeKind = exports.__EnumValue = exports.__InputValue = exports.__Field = exports.__Type = exports.__DirectiveLocation = exports.__Directive = exports.__Schema = undefined;
|
23434
23811
|
|
23435
|
-
var
|
23812
|
+
var _isInvalid = require('../jsutils/isInvalid');
|
23436
23813
|
|
23437
|
-
var
|
23814
|
+
var _isInvalid2 = _interopRequireDefault(_isInvalid);
|
23438
23815
|
|
23439
23816
|
var _astFromValue = require('../utilities/astFromValue');
|
23440
23817
|
|
@@ -23778,7 +24155,7 @@ var __InputValue = exports.__InputValue = new _definition.GraphQLObjectType({
|
|
23778
24155
|
type: _scalars.GraphQLString,
|
23779
24156
|
description: 'A GraphQL-formatted string representing the default value for this ' + 'input value.',
|
23780
24157
|
resolve: function resolve(inputVal) {
|
23781
|
-
return (0,
|
24158
|
+
return (0, _isInvalid2.default)(inputVal.defaultValue) ? null : (0, _printer.print)((0, _astFromValue.astFromValue)(inputVal.defaultValue, inputVal.type));
|
23782
24159
|
}
|
23783
24160
|
}
|
23784
24161
|
};
|
@@ -23888,7 +24265,7 @@ var TypeNameMetaFieldDef = exports.TypeNameMetaFieldDef = {
|
|
23888
24265
|
return parentType.name;
|
23889
24266
|
}
|
23890
24267
|
};
|
23891
|
-
},{"../jsutils/
|
24268
|
+
},{"../jsutils/isInvalid":67,"../language/printer":78,"../utilities/astFromValue":89,"./definition":81,"./directives":82,"./scalars":85}],85:[function(require,module,exports){
|
23892
24269
|
'use strict';
|
23893
24270
|
|
23894
24271
|
Object.defineProperty(exports, "__esModule", {
|
@@ -23999,7 +24376,7 @@ var GraphQLID = exports.GraphQLID = new _definition.GraphQLScalarType({
|
|
23999
24376
|
return ast.kind === Kind.STRING || ast.kind === Kind.INT ? ast.value : null;
|
24000
24377
|
}
|
24001
24378
|
});
|
24002
|
-
},{"../language/kinds":
|
24379
|
+
},{"../language/kinds":74,"./definition":81}],86:[function(require,module,exports){
|
24003
24380
|
'use strict';
|
24004
24381
|
|
24005
24382
|
Object.defineProperty(exports, "__esModule", {
|
@@ -24277,7 +24654,7 @@ function assertObjectImplementsInterface(schema, object, iface) {
|
|
24277
24654
|
});
|
24278
24655
|
});
|
24279
24656
|
}
|
24280
|
-
},{"../jsutils/find":
|
24657
|
+
},{"../jsutils/find":65,"../jsutils/invariant":66,"../utilities/typeComparators":102,"./definition":81,"./directives":82,"./introspection":84}],87:[function(require,module,exports){
|
24281
24658
|
'use strict';
|
24282
24659
|
|
24283
24660
|
Object.defineProperty(exports, "__esModule", {
|
@@ -24502,7 +24879,7 @@ function getFieldDef(schema, parentType, fieldNode) {
|
|
24502
24879
|
return parentType.getFields()[name];
|
24503
24880
|
}
|
24504
24881
|
}
|
24505
|
-
},{"../jsutils/find":
|
24882
|
+
},{"../jsutils/find":65,"../language/kinds":74,"../type/definition":81,"../type/introspection":84,"./typeFromAST":103}],88:[function(require,module,exports){
|
24506
24883
|
'use strict';
|
24507
24884
|
|
24508
24885
|
Object.defineProperty(exports, "__esModule", {
|
@@ -24532,7 +24909,7 @@ var NAME_RX = /^[_a-zA-Z][_a-zA-Z0-9]*$/;
|
|
24532
24909
|
function assertValidName(name) {
|
24533
24910
|
(0, _invariant2.default)(NAME_RX.test(name), 'Names must match /^[_a-zA-Z][_a-zA-Z0-9]*$/ but "' + name + '" does not.');
|
24534
24911
|
}
|
24535
|
-
},{"../jsutils/invariant":
|
24912
|
+
},{"../jsutils/invariant":66}],89:[function(require,module,exports){
|
24536
24913
|
'use strict';
|
24537
24914
|
|
24538
24915
|
Object.defineProperty(exports, "__esModule", {
|
@@ -24712,7 +25089,7 @@ function astFromValue(value, type) {
|
|
24712
25089
|
* LICENSE file in the root directory of this source tree. An additional grant
|
24713
25090
|
* of patent rights can be found in the PATENTS file in the same directory.
|
24714
25091
|
*/
|
24715
|
-
},{"../jsutils/invariant":
|
25092
|
+
},{"../jsutils/invariant":66,"../jsutils/isInvalid":67,"../jsutils/isNullish":68,"../language/kinds":74,"../type/definition":81,"../type/scalars":85,"iterall":133}],90:[function(require,module,exports){
|
24716
25093
|
'use strict';
|
24717
25094
|
|
24718
25095
|
Object.defineProperty(exports, "__esModule", {
|
@@ -25190,7 +25567,7 @@ function leadingSpaces(str) {
|
|
25190
25567
|
function cannotExecuteSchema() {
|
25191
25568
|
throw new Error('Generated Schema cannot use Interface or Union types for execution.');
|
25192
25569
|
}
|
25193
|
-
},{"../execution/values":
|
25570
|
+
},{"../execution/values":62,"../jsutils/find":65,"../jsutils/invariant":66,"../jsutils/keyValMap":70,"../language/kinds":74,"../language/lexer":75,"../language/parser":77,"../type/definition":81,"../type/directives":82,"../type/introspection":84,"../type/scalars":85,"../type/schema":86,"./valueFromAST":104}],91:[function(require,module,exports){
|
25194
25571
|
'use strict';
|
25195
25572
|
|
25196
25573
|
Object.defineProperty(exports, "__esModule", {
|
@@ -25441,7 +25818,7 @@ function buildClientSchema(introspection) {
|
|
25441
25818
|
|
25442
25819
|
function buildInputValue(inputValueIntrospection) {
|
25443
25820
|
var type = getInputType(inputValueIntrospection.type);
|
25444
|
-
var defaultValue = inputValueIntrospection.defaultValue ? (0, _valueFromAST.valueFromAST)((0, _parser.parseValue)(inputValueIntrospection.defaultValue), type) :
|
25821
|
+
var defaultValue = inputValueIntrospection.defaultValue ? (0, _valueFromAST.valueFromAST)((0, _parser.parseValue)(inputValueIntrospection.defaultValue), type) : undefined;
|
25445
25822
|
return {
|
25446
25823
|
name: inputValueIntrospection.name,
|
25447
25824
|
description: inputValueIntrospection.description,
|
@@ -25500,7 +25877,7 @@ function buildClientSchema(introspection) {
|
|
25500
25877
|
function cannotExecuteClientSchema() {
|
25501
25878
|
throw new Error('Client Schema cannot use Interface or Union types for execution.');
|
25502
25879
|
}
|
25503
|
-
},{"../jsutils/invariant":
|
25880
|
+
},{"../jsutils/invariant":66,"../jsutils/keyMap":69,"../jsutils/keyValMap":70,"../language/parser":77,"../type/definition":81,"../type/directives":82,"../type/introspection":84,"../type/scalars":85,"../type/schema":86,"./valueFromAST":104}],92:[function(require,module,exports){
|
25504
25881
|
'use strict';
|
25505
25882
|
|
25506
25883
|
Object.defineProperty(exports, "__esModule", {
|
@@ -25535,7 +25912,7 @@ function concatAST(asts) {
|
|
25535
25912
|
* LICENSE file in the root directory of this source tree. An additional grant
|
25536
25913
|
* of patent rights can be found in the PATENTS file in the same directory.
|
25537
25914
|
*/
|
25538
|
-
},{}],
|
25915
|
+
},{}],93:[function(require,module,exports){
|
25539
25916
|
'use strict';
|
25540
25917
|
|
25541
25918
|
Object.defineProperty(exports, "__esModule", {
|
@@ -26065,7 +26442,7 @@ function extendSchema(schema, documentAST) {
|
|
26065
26442
|
function cannotExecuteExtendedSchema() {
|
26066
26443
|
throw new Error('Extended Schema cannot use Interface or Union types for execution.');
|
26067
26444
|
}
|
26068
|
-
},{"../error/GraphQLError":
|
26445
|
+
},{"../error/GraphQLError":55,"../jsutils/invariant":66,"../jsutils/keyMap":69,"../jsutils/keyValMap":70,"../language/kinds":74,"../type/definition":81,"../type/directives":82,"../type/introspection":84,"../type/scalars":85,"../type/schema":86,"./buildASTSchema":90,"./valueFromAST":104}],94:[function(require,module,exports){
|
26069
26446
|
'use strict';
|
26070
26447
|
|
26071
26448
|
Object.defineProperty(exports, "__esModule", {
|
@@ -26279,7 +26656,7 @@ function findValuesRemovedFromEnums(oldSchema, newSchema) {
|
|
26279
26656
|
});
|
26280
26657
|
return valuesRemovedFromEnums;
|
26281
26658
|
}
|
26282
|
-
},{"../type/definition":
|
26659
|
+
},{"../type/definition":81,"../type/schema":86}],95:[function(require,module,exports){
|
26283
26660
|
'use strict';
|
26284
26661
|
|
26285
26662
|
Object.defineProperty(exports, "__esModule", {
|
@@ -26322,7 +26699,7 @@ function getOperationAST(documentAST, operationName) {
|
|
26322
26699
|
* LICENSE file in the root directory of this source tree. An additional grant
|
26323
26700
|
* of patent rights can be found in the PATENTS file in the same directory.
|
26324
26701
|
*/
|
26325
|
-
},{"../language/kinds":
|
26702
|
+
},{"../language/kinds":74}],96:[function(require,module,exports){
|
26326
26703
|
'use strict';
|
26327
26704
|
|
26328
26705
|
Object.defineProperty(exports, "__esModule", {
|
@@ -26511,7 +26888,7 @@ Object.defineProperty(exports, 'findBreakingChanges', {
|
|
26511
26888
|
return _findBreakingChanges.findBreakingChanges;
|
26512
26889
|
}
|
26513
26890
|
});
|
26514
|
-
},{"./TypeInfo":
|
26891
|
+
},{"./TypeInfo":87,"./assertValidName":88,"./astFromValue":89,"./buildASTSchema":90,"./buildClientSchema":91,"./concatAST":92,"./extendSchema":93,"./findBreakingChanges":94,"./getOperationAST":95,"./introspectionQuery":97,"./isValidJSValue":98,"./isValidLiteralValue":99,"./schemaPrinter":100,"./separateOperations":101,"./typeComparators":102,"./typeFromAST":103,"./valueFromAST":104}],97:[function(require,module,exports){
|
26515
26892
|
'use strict';
|
26516
26893
|
|
26517
26894
|
Object.defineProperty(exports, "__esModule", {
|
@@ -26526,7 +26903,7 @@ var introspectionQuery = exports.introspectionQuery = '\n query IntrospectionQu
|
|
26526
26903
|
* LICENSE file in the root directory of this source tree. An additional grant
|
26527
26904
|
* of patent rights can be found in the PATENTS file in the same directory.
|
26528
26905
|
*/
|
26529
|
-
},{}],
|
26906
|
+
},{}],98:[function(require,module,exports){
|
26530
26907
|
'use strict';
|
26531
26908
|
|
26532
26909
|
Object.defineProperty(exports, "__esModule", {
|
@@ -26651,7 +27028,7 @@ function isValidJSValue(value, type) {
|
|
26651
27028
|
|
26652
27029
|
return [];
|
26653
27030
|
}
|
26654
|
-
},{"../jsutils/invariant":
|
27031
|
+
},{"../jsutils/invariant":66,"../jsutils/isNullish":68,"../type/definition":81,"iterall":133}],99:[function(require,module,exports){
|
26655
27032
|
'use strict';
|
26656
27033
|
|
26657
27034
|
Object.defineProperty(exports, "__esModule", {
|
@@ -26787,7 +27164,7 @@ function isValidLiteralValue(type, valueNode) {
|
|
26787
27164
|
|
26788
27165
|
return [];
|
26789
27166
|
}
|
26790
|
-
},{"../jsutils/invariant":
|
27167
|
+
},{"../jsutils/invariant":66,"../jsutils/isNullish":68,"../jsutils/keyMap":69,"../language/kinds":74,"../language/printer":78,"../type/definition":81}],100:[function(require,module,exports){
|
26791
27168
|
'use strict';
|
26792
27169
|
|
26793
27170
|
Object.defineProperty(exports, "__esModule", {
|
@@ -27072,7 +27449,7 @@ function breakLine(line, len) {
|
|
27072
27449
|
}
|
27073
27450
|
return sublines;
|
27074
27451
|
}
|
27075
|
-
},{"../jsutils/invariant":
|
27452
|
+
},{"../jsutils/invariant":66,"../jsutils/isInvalid":67,"../jsutils/isNullish":68,"../language/printer":78,"../type/definition":81,"../type/directives":82,"../type/scalars":85,"../utilities/astFromValue":89}],101:[function(require,module,exports){
|
27076
27453
|
'use strict';
|
27077
27454
|
|
27078
27455
|
Object.defineProperty(exports, "__esModule", {
|
@@ -27154,7 +27531,7 @@ function collectTransitiveDependencies(collected, depGraph, fromName) {
|
|
27154
27531
|
});
|
27155
27532
|
}
|
27156
27533
|
}
|
27157
|
-
},{"../language/visitor":
|
27534
|
+
},{"../language/visitor":80}],102:[function(require,module,exports){
|
27158
27535
|
'use strict';
|
27159
27536
|
|
27160
27537
|
Object.defineProperty(exports, "__esModule", {
|
@@ -27279,7 +27656,7 @@ function doTypesOverlap(schema, typeA, typeB) {
|
|
27279
27656
|
// Otherwise the types do not overlap.
|
27280
27657
|
return false;
|
27281
27658
|
}
|
27282
|
-
},{"../type/definition":
|
27659
|
+
},{"../type/definition":81}],103:[function(require,module,exports){
|
27283
27660
|
'use strict';
|
27284
27661
|
|
27285
27662
|
Object.defineProperty(exports, "__esModule", {
|
@@ -27318,7 +27695,7 @@ function typeFromAST(schema, typeNode) {
|
|
27318
27695
|
* LICENSE file in the root directory of this source tree. An additional grant
|
27319
27696
|
* of patent rights can be found in the PATENTS file in the same directory.
|
27320
27697
|
*/
|
27321
|
-
},{"../jsutils/invariant":
|
27698
|
+
},{"../jsutils/invariant":66,"../language/kinds":74,"../type/definition":81}],104:[function(require,module,exports){
|
27322
27699
|
'use strict';
|
27323
27700
|
|
27324
27701
|
Object.defineProperty(exports, "__esModule", {
|
@@ -27491,7 +27868,7 @@ function valueFromAST(valueNode, type, variables) {
|
|
27491
27868
|
function isMissingVariable(valueNode, variables) {
|
27492
27869
|
return valueNode.kind === Kind.VARIABLE && (!variables || (0, _isInvalid2.default)(variables[valueNode.name.value]));
|
27493
27870
|
}
|
27494
|
-
},{"../jsutils/invariant":
|
27871
|
+
},{"../jsutils/invariant":66,"../jsutils/isInvalid":67,"../jsutils/isNullish":68,"../jsutils/keyMap":69,"../language/kinds":74,"../type/definition":81}],105:[function(require,module,exports){
|
27495
27872
|
'use strict';
|
27496
27873
|
|
27497
27874
|
Object.defineProperty(exports, "__esModule", {
|
@@ -27506,6 +27883,12 @@ Object.defineProperty(exports, 'validate', {
|
|
27506
27883
|
return _validate.validate;
|
27507
27884
|
}
|
27508
27885
|
});
|
27886
|
+
Object.defineProperty(exports, 'ValidationContext', {
|
27887
|
+
enumerable: true,
|
27888
|
+
get: function get() {
|
27889
|
+
return _validate.ValidationContext;
|
27890
|
+
}
|
27891
|
+
});
|
27509
27892
|
|
27510
27893
|
var _specifiedRules = require('./specifiedRules');
|
27511
27894
|
|
@@ -27515,7 +27898,7 @@ Object.defineProperty(exports, 'specifiedRules', {
|
|
27515
27898
|
return _specifiedRules.specifiedRules;
|
27516
27899
|
}
|
27517
27900
|
});
|
27518
|
-
},{"./specifiedRules":
|
27901
|
+
},{"./specifiedRules":131,"./validate":132}],106:[function(require,module,exports){
|
27519
27902
|
'use strict';
|
27520
27903
|
|
27521
27904
|
Object.defineProperty(exports, "__esModule", {
|
@@ -27564,7 +27947,7 @@ function ArgumentsOfCorrectType(context) {
|
|
27564
27947
|
}
|
27565
27948
|
};
|
27566
27949
|
}
|
27567
|
-
},{"../../error":
|
27950
|
+
},{"../../error":57,"../../language/printer":78,"../../utilities/isValidLiteralValue":99}],107:[function(require,module,exports){
|
27568
27951
|
'use strict';
|
27569
27952
|
|
27570
27953
|
Object.defineProperty(exports, "__esModule", {
|
@@ -27631,7 +28014,7 @@ function DefaultValuesOfCorrectType(context) {
|
|
27631
28014
|
}
|
27632
28015
|
};
|
27633
28016
|
}
|
27634
|
-
},{"../../error":
|
28017
|
+
},{"../../error":57,"../../language/printer":78,"../../type/definition":81,"../../utilities/isValidLiteralValue":99}],108:[function(require,module,exports){
|
27635
28018
|
'use strict';
|
27636
28019
|
|
27637
28020
|
Object.defineProperty(exports, "__esModule", {
|
@@ -27760,7 +28143,7 @@ function getSuggestedFieldNames(schema, type, fieldName) {
|
|
27760
28143
|
// Otherwise, must be a Union type, which does not define fields.
|
27761
28144
|
return [];
|
27762
28145
|
}
|
27763
|
-
},{"../../error":
|
28146
|
+
},{"../../error":57,"../../jsutils/quotedOrList":71,"../../jsutils/suggestionList":72,"../../type/definition":81}],109:[function(require,module,exports){
|
27764
28147
|
'use strict';
|
27765
28148
|
|
27766
28149
|
Object.defineProperty(exports, "__esModule", {
|
@@ -27816,7 +28199,7 @@ function FragmentsOnCompositeTypes(context) {
|
|
27816
28199
|
}
|
27817
28200
|
};
|
27818
28201
|
}
|
27819
|
-
},{"../../error":
|
28202
|
+
},{"../../error":57,"../../language/printer":78,"../../type/definition":81}],110:[function(require,module,exports){
|
27820
28203
|
'use strict';
|
27821
28204
|
|
27822
28205
|
Object.defineProperty(exports, "__esModule", {
|
@@ -27912,7 +28295,7 @@ function KnownArgumentNames(context) {
|
|
27912
28295
|
}
|
27913
28296
|
};
|
27914
28297
|
}
|
27915
|
-
},{"../../error":
|
28298
|
+
},{"../../error":57,"../../jsutils/find":65,"../../jsutils/invariant":66,"../../jsutils/quotedOrList":71,"../../jsutils/suggestionList":72,"../../language/kinds":74}],111:[function(require,module,exports){
|
27916
28299
|
'use strict';
|
27917
28300
|
|
27918
28301
|
Object.defineProperty(exports, "__esModule", {
|
@@ -28020,7 +28403,7 @@ function getDirectiveLocationForASTPath(ancestors) {
|
|
28020
28403
|
return parentNode.kind === _kinds.INPUT_OBJECT_TYPE_DEFINITION ? _directives.DirectiveLocation.INPUT_FIELD_DEFINITION : _directives.DirectiveLocation.ARGUMENT_DEFINITION;
|
28021
28404
|
}
|
28022
28405
|
}
|
28023
|
-
},{"../../error":
|
28406
|
+
},{"../../error":57,"../../jsutils/find":65,"../../language/kinds":74,"../../type/directives":82}],112:[function(require,module,exports){
|
28024
28407
|
'use strict';
|
28025
28408
|
|
28026
28409
|
Object.defineProperty(exports, "__esModule", {
|
@@ -28061,7 +28444,7 @@ function KnownFragmentNames(context) {
|
|
28061
28444
|
}
|
28062
28445
|
};
|
28063
28446
|
}
|
28064
|
-
},{"../../error":
|
28447
|
+
},{"../../error":57}],113:[function(require,module,exports){
|
28065
28448
|
'use strict';
|
28066
28449
|
|
28067
28450
|
Object.defineProperty(exports, "__esModule", {
|
@@ -28132,7 +28515,7 @@ function KnownTypeNames(context) {
|
|
28132
28515
|
}
|
28133
28516
|
};
|
28134
28517
|
}
|
28135
|
-
},{"../../error":
|
28518
|
+
},{"../../error":57,"../../jsutils/quotedOrList":71,"../../jsutils/suggestionList":72}],114:[function(require,module,exports){
|
28136
28519
|
'use strict';
|
28137
28520
|
|
28138
28521
|
Object.defineProperty(exports, "__esModule", {
|
@@ -28180,7 +28563,7 @@ function LoneAnonymousOperation(context) {
|
|
28180
28563
|
}
|
28181
28564
|
};
|
28182
28565
|
}
|
28183
|
-
},{"../../error":
|
28566
|
+
},{"../../error":57,"../../language/kinds":74}],115:[function(require,module,exports){
|
28184
28567
|
'use strict';
|
28185
28568
|
|
28186
28569
|
Object.defineProperty(exports, "__esModule", {
|
@@ -28267,7 +28650,7 @@ function NoFragmentCycles(context) {
|
|
28267
28650
|
spreadPathIndexByName[fragmentName] = undefined;
|
28268
28651
|
}
|
28269
28652
|
}
|
28270
|
-
},{"../../error":
|
28653
|
+
},{"../../error":57}],116:[function(require,module,exports){
|
28271
28654
|
'use strict';
|
28272
28655
|
|
28273
28656
|
Object.defineProperty(exports, "__esModule", {
|
@@ -28323,7 +28706,7 @@ function NoUndefinedVariables(context) {
|
|
28323
28706
|
}
|
28324
28707
|
};
|
28325
28708
|
}
|
28326
|
-
},{"../../error":
|
28709
|
+
},{"../../error":57}],117:[function(require,module,exports){
|
28327
28710
|
'use strict';
|
28328
28711
|
|
28329
28712
|
Object.defineProperty(exports, "__esModule", {
|
@@ -28386,7 +28769,7 @@ function NoUnusedFragments(context) {
|
|
28386
28769
|
}
|
28387
28770
|
};
|
28388
28771
|
}
|
28389
|
-
},{"../../error":
|
28772
|
+
},{"../../error":57}],118:[function(require,module,exports){
|
28390
28773
|
'use strict';
|
28391
28774
|
|
28392
28775
|
Object.defineProperty(exports, "__esModule", {
|
@@ -28448,7 +28831,7 @@ function NoUnusedVariables(context) {
|
|
28448
28831
|
}
|
28449
28832
|
};
|
28450
28833
|
}
|
28451
|
-
},{"../../error":
|
28834
|
+
},{"../../error":57}],119:[function(require,module,exports){
|
28452
28835
|
'use strict';
|
28453
28836
|
|
28454
28837
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29002,7 +29385,7 @@ function _pairSetAdd(data, a, b, areMutuallyExclusive) {
|
|
29002
29385
|
}
|
29003
29386
|
map[b] = areMutuallyExclusive;
|
29004
29387
|
}
|
29005
|
-
},{"../../error":
|
29388
|
+
},{"../../error":57,"../../jsutils/find":65,"../../language/kinds":74,"../../language/printer":78,"../../type/definition":81,"../../utilities/typeFromAST":103}],120:[function(require,module,exports){
|
29006
29389
|
'use strict';
|
29007
29390
|
|
29008
29391
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29066,7 +29449,7 @@ function getFragmentType(context, name) {
|
|
29066
29449
|
var frag = context.getFragment(name);
|
29067
29450
|
return frag && (0, _typeFromAST.typeFromAST)(context.getSchema(), frag.typeCondition);
|
29068
29451
|
}
|
29069
|
-
},{"../../error":
|
29452
|
+
},{"../../error":57,"../../utilities/typeComparators":102,"../../utilities/typeFromAST":103}],121:[function(require,module,exports){
|
29070
29453
|
'use strict';
|
29071
29454
|
|
29072
29455
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29154,7 +29537,7 @@ function ProvidedNonNullArguments(context) {
|
|
29154
29537
|
}
|
29155
29538
|
};
|
29156
29539
|
}
|
29157
|
-
},{"../../error":
|
29540
|
+
},{"../../error":57,"../../jsutils/keyMap":69,"../../type/definition":81}],122:[function(require,module,exports){
|
29158
29541
|
'use strict';
|
29159
29542
|
|
29160
29543
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29206,7 +29589,7 @@ function ScalarLeafs(context) {
|
|
29206
29589
|
}
|
29207
29590
|
};
|
29208
29591
|
}
|
29209
|
-
},{"../../error":
|
29592
|
+
},{"../../error":57,"../../type/definition":81}],123:[function(require,module,exports){
|
29210
29593
|
'use strict';
|
29211
29594
|
|
29212
29595
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29256,7 +29639,7 @@ function UniqueArgumentNames(context) {
|
|
29256
29639
|
}
|
29257
29640
|
};
|
29258
29641
|
}
|
29259
|
-
},{"../../error":
|
29642
|
+
},{"../../error":57}],124:[function(require,module,exports){
|
29260
29643
|
'use strict';
|
29261
29644
|
|
29262
29645
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29308,7 +29691,7 @@ function UniqueDirectivesPerLocation(context) {
|
|
29308
29691
|
}
|
29309
29692
|
};
|
29310
29693
|
}
|
29311
|
-
},{"../../error":
|
29694
|
+
},{"../../error":57}],125:[function(require,module,exports){
|
29312
29695
|
'use strict';
|
29313
29696
|
|
29314
29697
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29354,7 +29737,7 @@ function UniqueFragmentNames(context) {
|
|
29354
29737
|
}
|
29355
29738
|
};
|
29356
29739
|
}
|
29357
|
-
},{"../../error":
|
29740
|
+
},{"../../error":57}],126:[function(require,module,exports){
|
29358
29741
|
'use strict';
|
29359
29742
|
|
29360
29743
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29409,7 +29792,7 @@ function UniqueInputFieldNames(context) {
|
|
29409
29792
|
}
|
29410
29793
|
};
|
29411
29794
|
}
|
29412
|
-
},{"../../error":
|
29795
|
+
},{"../../error":57}],127:[function(require,module,exports){
|
29413
29796
|
'use strict';
|
29414
29797
|
|
29415
29798
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29458,7 +29841,7 @@ function UniqueOperationNames(context) {
|
|
29458
29841
|
}
|
29459
29842
|
};
|
29460
29843
|
}
|
29461
|
-
},{"../../error":
|
29844
|
+
},{"../../error":57}],128:[function(require,module,exports){
|
29462
29845
|
'use strict';
|
29463
29846
|
|
29464
29847
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29504,7 +29887,7 @@ function UniqueVariableNames(context) {
|
|
29504
29887
|
}
|
29505
29888
|
};
|
29506
29889
|
}
|
29507
|
-
},{"../../error":
|
29890
|
+
},{"../../error":57}],129:[function(require,module,exports){
|
29508
29891
|
'use strict';
|
29509
29892
|
|
29510
29893
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29554,7 +29937,7 @@ function VariablesAreInputTypes(context) {
|
|
29554
29937
|
}
|
29555
29938
|
};
|
29556
29939
|
}
|
29557
|
-
},{"../../error":
|
29940
|
+
},{"../../error":57,"../../language/printer":78,"../../type/definition":81,"../../utilities/typeFromAST":103}],130:[function(require,module,exports){
|
29558
29941
|
'use strict';
|
29559
29942
|
|
29560
29943
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29630,7 +30013,7 @@ function VariablesInAllowedPosition(context) {
|
|
29630
30013
|
function effectiveType(varType, varDef) {
|
29631
30014
|
return !varDef.defaultValue || varType instanceof _definition.GraphQLNonNull ? varType : new _definition.GraphQLNonNull(varType);
|
29632
30015
|
}
|
29633
|
-
},{"../../error":
|
30016
|
+
},{"../../error":57,"../../type/definition":81,"../../utilities/typeComparators":102,"../../utilities/typeFromAST":103}],131:[function(require,module,exports){
|
29634
30017
|
'use strict';
|
29635
30018
|
|
29636
30019
|
Object.defineProperty(exports, "__esModule", {
|
@@ -29774,7 +30157,7 @@ var specifiedRules = exports.specifiedRules = [_UniqueOperationNames.UniqueOpera
|
|
29774
30157
|
*/
|
29775
30158
|
|
29776
30159
|
// Spec Section: "Operation Name Uniqueness"
|
29777
|
-
},{"./rules/ArgumentsOfCorrectType":
|
30160
|
+
},{"./rules/ArgumentsOfCorrectType":106,"./rules/DefaultValuesOfCorrectType":107,"./rules/FieldsOnCorrectType":108,"./rules/FragmentsOnCompositeTypes":109,"./rules/KnownArgumentNames":110,"./rules/KnownDirectives":111,"./rules/KnownFragmentNames":112,"./rules/KnownTypeNames":113,"./rules/LoneAnonymousOperation":114,"./rules/NoFragmentCycles":115,"./rules/NoUndefinedVariables":116,"./rules/NoUnusedFragments":117,"./rules/NoUnusedVariables":118,"./rules/OverlappingFieldsCanBeMerged":119,"./rules/PossibleFragmentSpreads":120,"./rules/ProvidedNonNullArguments":121,"./rules/ScalarLeafs":122,"./rules/UniqueArgumentNames":123,"./rules/UniqueDirectivesPerLocation":124,"./rules/UniqueFragmentNames":125,"./rules/UniqueInputFieldNames":126,"./rules/UniqueOperationNames":127,"./rules/UniqueVariableNames":128,"./rules/VariablesAreInputTypes":129,"./rules/VariablesInAllowedPosition":130}],132:[function(require,module,exports){
|
29778
30161
|
'use strict';
|
29779
30162
|
|
29780
30163
|
Object.defineProperty(exports, "__esModule", {
|
@@ -30010,7 +30393,7 @@ var ValidationContext = exports.ValidationContext = function () {
|
|
30010
30393
|
|
30011
30394
|
return ValidationContext;
|
30012
30395
|
}();
|
30013
|
-
},{"../error":
|
30396
|
+
},{"../error":57,"../jsutils/invariant":66,"../language/kinds":74,"../language/visitor":80,"../type/schema":86,"../utilities/TypeInfo":87,"./specifiedRules":131}],133:[function(require,module,exports){
|
30014
30397
|
/**
|
30015
30398
|
* Copyright (c) 2016, Lee Byron
|
30016
30399
|
* All rights reserved.
|
@@ -30371,7 +30754,7 @@ ArrayLikeIterator.prototype.next = function () {
|
|
30371
30754
|
return { value: this._o[this._i++], done: false }
|
30372
30755
|
}
|
30373
30756
|
|
30374
|
-
},{}],
|
30757
|
+
},{}],134:[function(require,module,exports){
|
30375
30758
|
(function (global){
|
30376
30759
|
/**
|
30377
30760
|
* marked - a markdown parser
|
@@ -31661,5 +32044,5 @@ if (typeof module !== 'undefined' && typeof exports === 'object') {
|
|
31661
32044
|
}());
|
31662
32045
|
|
31663
32046
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
31664
|
-
},{}]},{},[
|
32047
|
+
},{}]},{},[15])(15)
|
31665
32048
|
});
|