@arcblock/graphql-playground 2.1.63 → 2.1.67

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/graphql-playground",
3
- "version": "2.1.63",
3
+ "version": "2.1.67",
4
4
  "description": "A React Component to interact with GraphQL APIs",
5
5
  "keywords": [
6
6
  "react",
@@ -11,10 +11,6 @@
11
11
  "homepage": "https://github.com/ArcBlock/ux#readme",
12
12
  "license": "Apache-2.0",
13
13
  "main": "lib/index.js",
14
- "files": [
15
- "lib",
16
- "src"
17
- ],
18
14
  "repository": {
19
15
  "type": "git",
20
16
  "url": "git+https://github.com/ArcBlock/ux.git"
@@ -33,7 +29,7 @@
33
29
  "url": "https://github.com/ArcBlock/ux/issues"
34
30
  },
35
31
  "dependencies": {
36
- "@arcblock/ux": "^2.1.63",
32
+ "@arcblock/ux": "^2.1.67",
37
33
  "axios": "^0.21.2",
38
34
  "core-js": "^3.6.4",
39
35
  "graphiql": "^1.9.11",
@@ -59,5 +55,5 @@
59
55
  "eslint-plugin-react-hooks": "^4.2.0",
60
56
  "jest": "^24.1.0"
61
57
  },
62
- "gitHead": "305dbb5e635fc9c43562bc5178bafcf9b558e7de"
58
+ "gitHead": "8ddd255811bd315b42695071763152e0cd489c9a"
63
59
  }
@@ -1,16 +0,0 @@
1
- export { default as Basic } from './demo/basic';
2
- export { default as WithHistory } from './demo/with-history';
3
- export { default as WithQueryComposer } from './demo/with-query-composer';
4
- export { default as WithCodeExporter } from './demo/with-code-exporter';
5
- export { default as KitchenSink } from './demo/kitchen-sink';
6
-
7
- export default {
8
- title: 'UX/GraphQLPlayground',
9
- parameters: {
10
- docs: {
11
- description: {
12
- component: 'A GraphQL Playground component built on top of `graphql/graphiql`',
13
- },
14
- },
15
- },
16
- };
package/src/demo/basic.js DELETED
@@ -1,26 +0,0 @@
1
- import GraphQLPlayground from '..';
2
-
3
- const betaQuery = `{
4
- getChainInfo {
5
- code
6
- info {
7
- network
8
- moniker
9
- }
10
- }
11
- }`;
12
-
13
- export default function Basic() {
14
- return (
15
- <div style={{ minWidth: '1280px', height: '40vh', border: '1px solid #EEE' }}>
16
- <GraphQLPlayground
17
- defaultQuery={betaQuery}
18
- endpoint="https://beta.abtnetwork.io/api/"
19
- title="Beta Chain"
20
- enableQueryComposer={false}
21
- enableCodeExporter={false}
22
- enableHistory={false}
23
- />
24
- </div>
25
- );
26
- }
@@ -1,26 +0,0 @@
1
- import GraphQLPlayground from '..';
2
-
3
- const betaQuery = `{
4
- getChainInfo {
5
- code
6
- info {
7
- network
8
- moniker
9
- }
10
- }
11
- }`;
12
-
13
- export default function KitchenSink() {
14
- return (
15
- <div style={{ minWidth: '1280px', height: '40vh', border: '1px solid #EEE', marginTop: '16px' }}>
16
- <GraphQLPlayground
17
- defaultQuery={betaQuery}
18
- endpoint="https://beta.abtnetwork.io/api/"
19
- title="Beta Chain"
20
- enableHistory
21
- enableQueryComposer
22
- enableCodeExporter
23
- />
24
- </div>
25
- );
26
- }
@@ -1,25 +0,0 @@
1
- import GraphQLPlayground from '..';
2
-
3
- const betaQuery = `{
4
- getChainInfo {
5
- code
6
- info {
7
- network
8
- moniker
9
- }
10
- }
11
- }`;
12
-
13
- export default function WithCodeExporter() {
14
- return (
15
- <div style={{ minWidth: '1280px', height: '40vh', border: '1px solid #EEE', marginTop: '16px' }}>
16
- <GraphQLPlayground
17
- defaultQuery={betaQuery}
18
- endpoint="https://beta.abtnetwork.io/api/"
19
- title="Beta Chain"
20
- enableQueryComposer={false}
21
- enableCodeExporter
22
- />
23
- </div>
24
- );
25
- }
@@ -1,25 +0,0 @@
1
- import GraphQLPlayground from '..';
2
-
3
- const betaQuery = `{
4
- getChainInfo {
5
- code
6
- info {
7
- network
8
- moniker
9
- }
10
- }
11
- }`;
12
-
13
- export default function WithHistory() {
14
- return (
15
- <div style={{ width: '1280px', height: '40vh', border: '1px solid #EEE' }}>
16
- <GraphQLPlayground
17
- defaultQuery={betaQuery}
18
- endpoint="https://beta.abtnetwork.io/api/"
19
- title="Beta Chain"
20
- enableQueryComposer={false}
21
- enableHistory
22
- />
23
- </div>
24
- );
25
- }
@@ -1,24 +0,0 @@
1
- import GraphQLPlayground from '..';
2
-
3
- const betaQuery = `{
4
- getChainInfo {
5
- code
6
- info {
7
- network
8
- moniker
9
- }
10
- }
11
- }`;
12
-
13
- export default function WithQueryComposer() {
14
- return (
15
- <div style={{ minWidth: '1280px', height: '40vh', border: '1px solid #EEE' }}>
16
- <GraphQLPlayground
17
- defaultQuery={betaQuery}
18
- endpoint="https://beta.abtnetwork.io/api/"
19
- title="Beta Chain"
20
- enableQueryComposer
21
- />
22
- </div>
23
- );
24
- }