@arcblock/graphql-playground 3.0.6 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -8,7 +8,7 @@ import t from "lodash/isUndefined";
8
8
  import "graphiql/style.css";
9
9
  import "@graphiql/plugin-explorer/style.css";
10
10
  import { mergeProps as b } from "@arcblock/ux/lib/Util";
11
- function a(e) {
11
+ function a({ ...e }) {
12
12
  const r = Object.assign({}, e);
13
13
  t(r.title) && (r.title = "Query"), t(r.defaultQuery) && (r.defaultQuery = "{}"), t(r.persistentQuery) && (r.persistentQuery = !1), t(r.enableQueryComposer) && (r.enableQueryComposer = !0), t(r.enableCodeExporter) && (r.enableCodeExporter = !1), t(r.enableHistory) && (r.enableHistory = !1), t(r.extraCodeSnippets) && (r.extraCodeSnippets = []), t(r.extraHeaders) && (r.extraHeaders = {});
14
14
  const p = b(r, a, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/graphql-playground",
3
- "version": "3.0.6",
3
+ "version": "3.0.7",
4
4
  "description": "A React Component to interact with GraphQL APIs",
5
5
  "keywords": [
6
6
  "react",
@@ -49,5 +49,5 @@
49
49
  "eslint-plugin-react-hooks": "^4.6.2",
50
50
  "jest": "^29.7.0"
51
51
  },
52
- "gitHead": "b985886f6650c3df0f48665c71d7a8ce0d9bdb93"
52
+ "gitHead": "05185ed22660a8fea176616b19b6703456f2348c"
53
53
  }
package/src/index.jsx CHANGED
@@ -13,7 +13,7 @@ import '@graphiql/plugin-explorer/style.css';
13
13
 
14
14
  import { mergeProps } from '@arcblock/ux/lib/Util';
15
15
 
16
- export default function GraphQLPlayground(rawProps) {
16
+ export default function GraphQLPlayground({ ...rawProps }) {
17
17
  const props = Object.assign({}, rawProps);
18
18
  if (isUndefined(props.title)) {
19
19
  props.title = 'Query';