@arcblock/graphql-playground 3.0.11 → 3.0.12
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 +10 -9
- package/package.json +2 -2
- package/src/index.jsx +2 -1
package/lib/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import { createGraphiQLFetcher as m } from "@graphiql/toolkit";
|
|
|
7
7
|
import "graphiql/style.css";
|
|
8
8
|
import "@graphiql/plugin-explorer/style.css";
|
|
9
9
|
import { mergeProps as b } from "@arcblock/ux/lib/Util";
|
|
10
|
+
import { Box as c } from "@mui/material";
|
|
10
11
|
function p({ ...e }) {
|
|
11
12
|
const a = Object.assign(
|
|
12
13
|
{
|
|
@@ -30,17 +31,17 @@ function p({ ...e }) {
|
|
|
30
31
|
url: o.endpoint,
|
|
31
32
|
headers: i
|
|
32
33
|
}), l = [g()], {
|
|
33
|
-
endpoint:
|
|
34
|
-
title:
|
|
35
|
-
enableCodeExporter:
|
|
36
|
-
enableQueryComposer:
|
|
37
|
-
enableHistory:
|
|
38
|
-
extraCodeSnippets:
|
|
34
|
+
endpoint: f,
|
|
35
|
+
title: C,
|
|
36
|
+
enableCodeExporter: w,
|
|
37
|
+
enableQueryComposer: $,
|
|
38
|
+
enableHistory: k,
|
|
39
|
+
extraCodeSnippets: Q,
|
|
39
40
|
defaultQuery: d,
|
|
40
|
-
persistentQuery:
|
|
41
|
+
persistentQuery: H,
|
|
41
42
|
...s
|
|
42
43
|
} = o;
|
|
43
|
-
return /* @__PURE__ */ t(
|
|
44
|
+
return /* @__PURE__ */ t(u, { ...s, children: /* @__PURE__ */ t(h, { fetcher: n, plugins: l, defaultQuery: d }) });
|
|
44
45
|
}
|
|
45
46
|
p.propTypes = {
|
|
46
47
|
endpoint: r.string.isRequired,
|
|
@@ -53,7 +54,7 @@ p.propTypes = {
|
|
|
53
54
|
extraCodeSnippets: r.array,
|
|
54
55
|
extraHeaders: r.any
|
|
55
56
|
};
|
|
56
|
-
const
|
|
57
|
+
const u = x(c)`
|
|
57
58
|
display: flex;
|
|
58
59
|
flex-direction: row;
|
|
59
60
|
flex: 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/graphql-playground",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"description": "A React Component to interact with GraphQL APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
51
51
|
"jest": "^29.7.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "ebe824e4b0ddfc1cbdd9ffecc22283e57a58c042"
|
|
54
54
|
}
|
package/src/index.jsx
CHANGED
|
@@ -11,6 +11,7 @@ import 'graphiql/style.css';
|
|
|
11
11
|
import '@graphiql/plugin-explorer/style.css';
|
|
12
12
|
|
|
13
13
|
import { mergeProps } from '@arcblock/ux/lib/Util';
|
|
14
|
+
import { Box } from '@mui/material';
|
|
14
15
|
|
|
15
16
|
export default function GraphQLPlayground({ ...rawProps }) {
|
|
16
17
|
const props = Object.assign(
|
|
@@ -76,7 +77,7 @@ GraphQLPlayground.propTypes = {
|
|
|
76
77
|
extraHeaders: PropTypes.any,
|
|
77
78
|
};
|
|
78
79
|
|
|
79
|
-
const Container = styled(
|
|
80
|
+
const Container = styled(Box)`
|
|
80
81
|
display: flex;
|
|
81
82
|
flex-direction: row;
|
|
82
83
|
flex: 1;
|