diff --git a/.circleci/config.yml b/.circleci/config.yml
index fa1ce80a4..780fb98b8 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,10 +1,11 @@
version: 2
jobs:
-
playground-build:
docker:
- - image: circleci/node:8
+ # - image: circleci/node:8
+ - image: circleci/node:10
+
steps:
- checkout
- run: yarn show-versions
@@ -13,7 +14,7 @@ jobs:
electron-build:
macos:
- xcode: "9.0"
+ xcode: '9.4.1'
steps:
- checkout
- run: |
diff --git a/.travis.yml b/.travis.yml
index 6d7dc084e..ba8ece7e9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,7 +2,9 @@ os: osx
osx_image: xcode9.2
language: node_js
-node_js: "8"
+node_js:
+ - "8"
+ - "10"
cache:
directories:
diff --git a/README.md b/README.md
index e7d880b37..5cb110ff4 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@

-[](https://badge.fury.io/js/graphql-playground-react) [](https://travis-ci.org/prismagraphql/graphql-playground) [](https://circleci.com/gh/prismagraphql/graphql-playground)
+[](https://badge.fury.io/js/graphql-playground-react) [](https://circleci.com/gh/prisma/graphql-playground)
GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).
-**You can download the [desktop app](https://github.com/graphcool/graphql-playground/releases) or use the web version at graphqlbin.com: [Demo](https://www.graphqlbin.com/RVIn)**
+**You can download the [desktop app](https://github.com/prisma/graphql-playground/releases) or use the web version at graphqlbin.com: [Demo](https://www.graphqlbin.com/RVIn)**
[](https://www.graphqlbin.com/RVIn)
@@ -103,6 +103,7 @@ interface ISettings {
interface Tab {
endpoint: string
query: string
+ name?: string
variables?: string
responses?: string[]
headers?: { [key: string]: string }
diff --git a/packages/graphql-playground-electron/package.json b/packages/graphql-playground-electron/package.json
index 49d287a6d..b0b1c7f40 100644
--- a/packages/graphql-playground-electron/package.json
+++ b/packages/graphql-playground-electron/package.json
@@ -4,7 +4,7 @@
"homepage": "https://github.com/graphcool/graphql-playground",
"repository": "graphcool/graphql-playground",
"description": "GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration)",
- "version": "1.6.1",
+ "version": "1.8.0",
"author": {
"name": "Graphcool",
"email": "hello@graph.cool",
@@ -94,11 +94,11 @@
"graphcool-styles": "0.2.7",
"graphcool-ui": "^0.0.14",
"graphql": "^0.13.2",
- "graphql-config": "^2.0.1",
+ "graphql-config": "^2.1.0",
"graphql-config-extension-graphcool": "1.0.8",
- "graphql-config-extension-prisma": "^0.0.12",
- "graphql-playground-html": "^1.5.6",
- "graphql-playground-react": "1.7.0",
+ "graphql-config-extension-prisma": "^0.2.2",
+ "graphql-playground-html": "^1.6.0",
+ "graphql-playground-react": "1.7.8",
"immutable": "4.0.0-rc.9",
"js-yaml": "^3.11.0",
"lodash.merge": "^4.6.1",
@@ -137,7 +137,7 @@
"babili-webpack-plugin": "0.1.2",
"concurrently": "3.5.1",
"css-loader": "0.28.11",
- "electron": "2.0.2",
+ "electron": "2.0.11",
"electron-builder": "20.15.1",
"electron-devtools-installer": "2.2.4",
"extract-text-webpack-plugin": "3.0.2",
@@ -165,7 +165,7 @@
"tslint": "5.10.0",
"tslint-graphcool-frontend": "0.0.3",
"tslint-loader": "3.6.0",
- "typescript": "2.8.3",
+ "typescript": "3.0.1",
"url-loader": "0.6.2",
"wait-on": "2.1.0",
"webpack": "3.10.0",
diff --git a/packages/graphql-playground-electron/src/renderer/components/App.tsx b/packages/graphql-playground-electron/src/renderer/components/App.tsx
index 3813a81c4..d85e3eb3f 100644
--- a/packages/graphql-playground-electron/src/renderer/components/App.tsx
+++ b/packages/graphql-playground-electron/src/renderer/components/App.tsx
@@ -128,7 +128,8 @@ class App extends React.Component {
return {
endpoint: args.endpoint,
subscriptionsEndpoint: args['subscriptions-endpoint'],
- platformToken: args['platform-token'] || localStorage.platformToken,
+ platformToken:
+ args['platform-token'] || localStorage.getItem('platformToken'),
env: args.env,
}
}
@@ -648,14 +649,17 @@ const mapStateToProps = createStructuredSelector({
endpoint: getEndpoint,
})
-export default connect(mapStateToProps, {
- openSettingsTab,
- selectNextTab,
- selectPrevTab,
- closeSelectedTab,
- refetchSchema,
- newSession,
- saveFile,
- newFileTab,
- selectAppHistoryItem,
-})(App)
+export default connect(
+ mapStateToProps,
+ {
+ openSettingsTab,
+ selectNextTab,
+ selectPrevTab,
+ closeSelectedTab,
+ refetchSchema,
+ newSession,
+ saveFile,
+ newFileTab,
+ selectAppHistoryItem,
+ },
+)(App)
diff --git a/packages/graphql-playground-electron/yarn.lock b/packages/graphql-playground-electron/yarn.lock
index 9798071e7..1fdf1966d 100644
--- a/packages/graphql-playground-electron/yarn.lock
+++ b/packages/graphql-playground-electron/yarn.lock
@@ -16,6 +16,12 @@
dependencies:
"@babel/highlight" "7.0.0-beta.49"
+"@babel/helper-annotate-as-pure@^7.0.0":
+ version "7.0.0"
+ resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.0.0.tgz#323d39dd0b50e10c7c06ca7d7638e6864d8c5c32"
+ dependencies:
+ "@babel/types" "^7.0.0"
+
"@babel/highlight@7.0.0-beta.49":
version "7.0.0-beta.49"
resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.0.0-beta.49.tgz#96bdc6b43e13482012ba6691b1018492d39622cc"
@@ -24,6 +30,24 @@
esutils "^2.0.2"
js-tokens "^3.0.0"
+"@babel/types@^7.0.0":
+ version "7.1.3"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.1.3.tgz#3a767004567060c2f40fca49a304712c525ee37d"
+ dependencies:
+ esutils "^2.0.2"
+ lodash "^4.17.10"
+ to-fast-properties "^2.0.0"
+
+"@emotion/is-prop-valid@^0.6.8":
+ version "0.6.8"
+ resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.6.8.tgz#68ad02831da41213a2089d2cab4e8ac8b30cbd85"
+ dependencies:
+ "@emotion/memoize" "^0.6.6"
+
+"@emotion/memoize@^0.6.6":
+ version "0.6.6"
+ resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.6.6.tgz#004b98298d04c7ca3b4f50ca2035d4f60d2eed1b"
+
"@samverschueren/stream-to-observable@^0.3.0":
version "0.3.0"
resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f"
@@ -765,6 +789,13 @@ babel-plugin-react-transform@^2.0.2:
dependencies:
lodash "^4.6.1"
+"babel-plugin-styled-components@>= 1":
+ version "1.8.0"
+ resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.8.0.tgz#9dd054c8e86825203449a852a5746f29f2dab857"
+ dependencies:
+ "@babel/helper-annotate-as-pure" "^7.0.0"
+ lodash "^4.17.10"
+
babel-plugin-syntax-async-functions@^6.8.0:
version "6.13.0"
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
@@ -1193,7 +1224,7 @@ babel-register@^6.11.6, babel-register@^6.26.0:
mkdirp "^0.5.1"
source-map-support "^0.4.15"
-babel-runtime@6.26.0, babel-runtime@^6.18.0, babel-runtime@^6.20.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0:
+babel-runtime@6.26.0, babel-runtime@^6.11.6, babel-runtime@^6.18.0, babel-runtime@^6.20.0, babel-runtime@^6.22.0, babel-runtime@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe"
dependencies:
@@ -1369,6 +1400,12 @@ boolbase@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e"
+boom@7.x.x:
+ version "7.2.0"
+ resolved "https://registry.yarnpkg.com/boom/-/boom-7.2.0.tgz#2bff24a55565767fde869ec808317eb10c48e966"
+ dependencies:
+ hoek "5.x.x"
+
boxen@^1.2.1:
version "1.3.0"
resolved "https://registry.yarnpkg.com/boxen/-/boxen-1.3.0.tgz#55c6c39a8ba58d9c61ad22cd877532deb665a20b"
@@ -1512,13 +1549,6 @@ buffer@^4.3.0:
ieee754 "^1.1.4"
isarray "^1.0.0"
-buffer@^5.0.3:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.1.0.tgz#c913e43678c7cb7c8bd16afbcddb6c5505e8f9fe"
- dependencies:
- base64-js "^1.0.2"
- ieee754 "^1.1.4"
-
builder-util-runtime@4.2.1, builder-util-runtime@^4.2.1, builder-util-runtime@~4.2.1:
version "4.2.1"
resolved "https://registry.yarnpkg.com/builder-util-runtime/-/builder-util-runtime-4.2.1.tgz#0caa358f1331d70680010141ca591952b69b35bc"
@@ -1853,7 +1883,7 @@ code-point-at@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
-codemirror-graphql@^0.6.11, "codemirror-graphql@github:timsuchanek/codemirror-graphql#details-fix":
+codemirror-graphql@^0.6.11, codemirror-graphql@timsuchanek/codemirror-graphql#details-fix:
version "0.6.12"
resolved "https://codeload.github.com/timsuchanek/codemirror-graphql/tar.gz/801ec32683c38d6dc0f8f7bc19014a111edc9ebd"
dependencies:
@@ -2141,6 +2171,12 @@ crypt@~0.0.1:
version "0.0.2"
resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b"
+cryptiles@4.1.2:
+ version "4.1.2"
+ resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-4.1.2.tgz#363c9ab5c859da9d2d6fb901b64d980966181184"
+ dependencies:
+ boom "7.x.x"
+
crypto-browserify@^3.11.0:
version "3.12.0"
resolved "https://registry.yarnpkg.com/crypto-browserify/-/crypto-browserify-3.12.0.tgz#396cf9f3137f03e4b8e532c58f698254e00f80ec"
@@ -2188,17 +2224,6 @@ css-loader@0.28.11:
postcss-value-parser "^3.3.0"
source-list-map "^2.0.0"
-css-modules-loader-core@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/css-modules-loader-core/-/css-modules-loader-core-1.1.0.tgz#5908668294a1becd261ae0a4ce21b0b551f21d16"
- dependencies:
- icss-replace-symbols "1.1.0"
- postcss "6.0.1"
- postcss-modules-extract-imports "1.1.0"
- postcss-modules-local-by-default "1.2.0"
- postcss-modules-scope "1.1.0"
- postcss-modules-values "1.3.0"
-
css-select@^1.1.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/css-select/-/css-select-1.2.0.tgz#2b3a110539c5355f1cd8d314623e870b121ec858"
@@ -2216,9 +2241,9 @@ css-selector-tokenizer@^0.7.0:
fastparse "^1.1.1"
regexpu-core "^1.0.0"
-css-to-react-native@^2.0.3:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.2.0.tgz#d524ef7f39a2747a8914e86563669ba35b7cf2e7"
+css-to-react-native@^2.2.2:
+ version "2.2.2"
+ resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.2.2.tgz#c077d0f7bf3e6c915a539e7325821c9dd01f9965"
dependencies:
css-color-keywords "^1.0.0"
fbjs "^0.8.5"
@@ -2806,9 +2831,9 @@ electron-updater@2.21.10:
semver "^5.5.0"
source-map-support "^0.5.5"
-electron@2.0.2:
- version "2.0.2"
- resolved "https://registry.yarnpkg.com/electron/-/electron-2.0.2.tgz#b77e05f83419cc5ec921a2d21f35b55e4bfc3d68"
+electron@2.0.11:
+ version "2.0.11"
+ resolved "https://registry.yarnpkg.com/electron/-/electron-2.0.11.tgz#8e352a83ec607471e82d323a2adc7e7b53698e79"
dependencies:
"@types/node" "^8.0.24"
electron-download "^3.0.1"
@@ -3507,12 +3532,6 @@ gauge@~2.7.3:
strip-ansi "^3.0.1"
wide-align "^1.1.0"
-generic-names@^1.0.2:
- version "1.0.3"
- resolved "https://registry.yarnpkg.com/generic-names/-/generic-names-1.0.3.tgz#2d786a121aee508876796939e8e3bff836c20917"
- dependencies:
- loader-utils "^0.2.16"
-
get-caller-file@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5"
@@ -3631,25 +3650,7 @@ graphcool-styles@0.2.7:
object-assign "^4.1.0"
webpack-dev-server "^1.16.2"
-graphcool-styles@^0.1.31:
- version "0.1.43"
- resolved "https://registry.yarnpkg.com/graphcool-styles/-/graphcool-styles-0.1.43.tgz#da6b72118c890923ef5c4a964405aa3e4541dc82"
- dependencies:
- html-webpack-plugin "^2.24.1"
- interactive "^0.1.9"
- object-assign "^4.1.0"
- react-dom "^15.3.2"
- webpack-dev-server "^1.16.2"
-
-graphcool-tmp-ui@^0.0.11:
- version "0.0.11"
- resolved "https://registry.yarnpkg.com/graphcool-tmp-ui/-/graphcool-tmp-ui-0.0.11.tgz#86cfaf0754394419642cc2542a2b5f8a48245659"
- dependencies:
- classnames "^2.2.5"
- graphcool-styles "^0.1.31"
- react-modal "^1.6.5"
-
-graphcool-ui@0.0.14, graphcool-ui@^0.0.14:
+graphcool-ui@^0.0.14:
version "0.0.14"
resolved "https://registry.yarnpkg.com/graphcool-ui/-/graphcool-ui-0.0.14.tgz#f3c83f4fef2c862ee899618cb6654af2c8f638b6"
dependencies:
@@ -3690,12 +3691,12 @@ graphql-config-extension-graphcool@1.0.8:
graphcool-yml "0.4.15"
graphql-config "^2.0.1"
-graphql-config-extension-prisma@^0.0.12:
- version "0.0.12"
- resolved "https://registry.yarnpkg.com/graphql-config-extension-prisma/-/graphql-config-extension-prisma-0.0.12.tgz#c591a2dd3d45eb4b039a39b5d4a6ea7ca7d8e05a"
+graphql-config-extension-prisma@^0.2.2:
+ version "0.2.2"
+ resolved "https://registry.yarnpkg.com/graphql-config-extension-prisma/-/graphql-config-extension-prisma-0.2.2.tgz#88d6b741279ceb4330be465e5272c0dc4736a3e5"
dependencies:
graphql-config "^2.0.1"
- prisma-yml "1.0.50"
+ prisma-yml "1.0.95"
graphql-config@1.1.4:
version "1.1.4"
@@ -3728,6 +3729,16 @@ graphql-config@^2.0.1:
lodash "^4.17.4"
minimatch "^3.0.4"
+graphql-config@^2.1.0:
+ version "2.1.0"
+ resolved "https://registry.yarnpkg.com/graphql-config/-/graphql-config-2.1.0.tgz#f07107ac44b661282d2002497de588f01aa92c9d"
+ dependencies:
+ graphql-import "^0.4.4"
+ graphql-request "^1.5.0"
+ js-yaml "^3.10.0"
+ lodash "^4.17.4"
+ minimatch "^3.0.4"
+
graphql-import@^0.1.7:
version "0.1.9"
resolved "https://registry.yarnpkg.com/graphql-import/-/graphql-import-0.1.9.tgz#9161f4f7ea92337b60fd40e22e64d3a68c212729"
@@ -3772,41 +3783,36 @@ graphql-language-service-utils@^1.1.0:
graphql-config "1.1.4"
graphql-language-service-types "^1.1.0"
-graphql-playground-html@^1.5.6:
- version "1.5.6"
- resolved "https://registry.yarnpkg.com/graphql-playground-html/-/graphql-playground-html-1.5.6.tgz#b5185a3b6e744e40dd8c5263bb5b5f6a2cff40b0"
+graphql-playground-html@^1.6.0:
+ version "1.6.0"
+ resolved "https://registry.yarnpkg.com/graphql-playground-html/-/graphql-playground-html-1.6.0.tgz#6ec4d54325ab2e5352506fdb89eb37c3fc718bf8"
dependencies:
graphql-config "2.0.0"
-graphql-playground-react@1.7.0:
- version "1.7.0"
- resolved "https://registry.yarnpkg.com/graphql-playground-react/-/graphql-playground-react-1.7.0.tgz#397d57cb232819747f3d56ed48103a87a92b1edf"
+graphql-playground-react@1.7.8:
+ version "1.7.8"
+ resolved "https://registry.yarnpkg.com/graphql-playground-react/-/graphql-playground-react-1.7.8.tgz#0165001cf157d5b848aa6f038a314ea11d259231"
dependencies:
apollo-link "^1.0.7"
apollo-link-http "^1.3.2"
apollo-link-ws "1.0.8"
calculate-size "^1.1.1"
- classnames "^2.2.5"
codemirror "^5.38.0"
codemirror-graphql timsuchanek/codemirror-graphql#details-fix
copy-to-clipboard "^3.0.8"
+ cryptiles "4.1.2"
cuid "^1.3.8"
- graphcool-styles "0.2.7"
- graphcool-tmp-ui "^0.0.11"
- graphcool-ui "0.0.14"
graphiql "^0.11.2"
graphql "^0.11.7"
- immutable "4.0.0-rc.9"
+ immutable "^4.0.0-rc.9"
isomorphic-fetch "^2.2.1"
js-yaml "^3.10.0"
json-stable-stringify "^1.0.1"
keycode "^2.1.9"
- lodash "^4.17.4"
+ lodash "^4.17.11"
lodash.debounce "^4.0.8"
markdown-it "^8.4.1"
marked "^0.3.19"
- polished "^1.9.0"
- postcss-modules "^1.1.0"
prettier "^1.13.0"
prop-types "^15.6.0"
query-string "5"
@@ -3821,6 +3827,7 @@ graphql-playground-react@1.7.0:
react-modal "^3.1.11"
react-redux "^5.0.6"
react-router-dom "^4.2.2"
+ react-sortable-hoc "^0.8.3"
react-transition-group "^2.2.1"
react-virtualized "^9.12.0"
redux "^3.7.2"
@@ -3832,10 +3839,7 @@ graphql-playground-react@1.7.0:
redux-saga "^0.16.0"
reselect "^3.0.1"
seamless-immutable "^7.0.1"
- styled-components "^3.1.6"
- styled-jsx "^2.2.1"
- styled-jsx-postcss timsuchanek/styled-jsx-postcss#build3
- styled-theming "^2.2.0"
+ styled-components "^4.0.0"
subscriptions-transport-ws "^0.9.5"
utility-types "^1.0.0"
webpack-bundle-analyzer "^2.9.2"
@@ -3995,6 +3999,10 @@ hoek@4.x.x:
version "4.2.1"
resolved "https://registry.yarnpkg.com/hoek/-/hoek-4.2.1.tgz#9634502aa12c445dd5a7c5734b572bb8738aacbb"
+hoek@5.x.x:
+ version "5.0.4"
+ resolved "https://registry.yarnpkg.com/hoek/-/hoek-5.0.4.tgz#0f7fa270a1cafeb364a4b2ddfaa33f864e4157da"
+
hoist-non-react-statics@^2.3.0, hoist-non-react-statics@^2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.0.tgz#d2ca2dfc19c5a91c5a6615ce8e564ef0347e2a40"
@@ -4160,7 +4168,7 @@ iconv-lite@^0.4.23, iconv-lite@^0.4.4, iconv-lite@~0.4.13:
dependencies:
safer-buffer ">= 2.1.2 < 3"
-icss-replace-symbols@1.1.0, icss-replace-symbols@^1.1.0:
+icss-replace-symbols@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz#06ea6f83679a7749e386cfe1fe812ae5db223ded"
@@ -4190,6 +4198,10 @@ immutable@4.0.0-rc.9:
version "4.0.0-rc.9"
resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.0.0-rc.9.tgz#1e6e0094e649013ec3742d2b5aeeca5eeda4f0bf"
+immutable@^4.0.0-rc.9:
+ version "4.0.0-rc.10"
+ resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.0.0-rc.10.tgz#0c97cd272bbae51861cb2311edbbe548b2fc4ef7"
+
import-lazy@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43"
@@ -5215,6 +5227,10 @@ lodash@^4.13.1, lodash@^4.17.10, lodash@^4.17.2, lodash@^4.17.3, lodash@^4.17.4,
version "4.17.10"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.10.tgz#1b7793cf7259ea38fb3661d4d38b3260af8ae4e7"
+lodash@^4.17.11:
+ version "4.17.11"
+ resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
+
log-symbols@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
@@ -5341,6 +5357,10 @@ mem@^1.1.0:
dependencies:
mimic-fn "^1.0.0"
+memoize-one@^4.0.0:
+ version "4.0.2"
+ resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-4.0.2.tgz#3fb8db695aa14ab9c0f1644e1585a8806adc1aee"
+
memory-fs@^0.4.0, memory-fs@~0.4.1:
version "0.4.1"
resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552"
@@ -6143,7 +6163,7 @@ pn@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb"
-polished@1.9.2, polished@^1.9.0:
+polished@1.9.2:
version "1.9.2"
resolved "https://registry.yarnpkg.com/polished/-/polished-1.9.2.tgz#d705cac66f3a3ed1bd38aad863e2c1e269baf6b6"
@@ -6316,48 +6336,33 @@ postcss-minify-selectors@^2.0.4:
postcss "^5.0.14"
postcss-selector-parser "^2.0.0"
-postcss-modules-extract-imports@1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.1.0.tgz#b614c9720be6816eaee35fb3a5faa1dba6a05ddb"
- dependencies:
- postcss "^6.0.1"
-
postcss-modules-extract-imports@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.2.0.tgz#66140ecece38ef06bf0d3e355d69bf59d141ea85"
dependencies:
postcss "^6.0.1"
-postcss-modules-local-by-default@1.2.0, postcss-modules-local-by-default@^1.2.0:
+postcss-modules-local-by-default@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-1.2.0.tgz#f7d80c398c5a393fa7964466bd19500a7d61c069"
dependencies:
css-selector-tokenizer "^0.7.0"
postcss "^6.0.1"
-postcss-modules-scope@1.1.0, postcss-modules-scope@^1.1.0:
+postcss-modules-scope@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-1.1.0.tgz#d6ea64994c79f97b62a72b426fbe6056a194bb90"
dependencies:
css-selector-tokenizer "^0.7.0"
postcss "^6.0.1"
-postcss-modules-values@1.3.0, postcss-modules-values@^1.3.0:
+postcss-modules-values@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-1.3.0.tgz#ecffa9d7e192518389f42ad0e83f72aec456ea20"
dependencies:
icss-replace-symbols "^1.1.0"
postcss "^6.0.1"
-postcss-modules@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/postcss-modules/-/postcss-modules-1.1.0.tgz#c9f94f76ff6addf7c35b842e69ed442118156bb0"
- dependencies:
- css-modules-loader-core "^1.1.0"
- generic-names "^1.0.2"
- postcss "^6.0.1"
- string-hash "^1.1.1"
-
postcss-normalize-charset@^1.1.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/postcss-normalize-charset/-/postcss-normalize-charset-1.1.1.tgz#ef9ee71212d7fe759c78ed162f61ed62b5cb93f1"
@@ -6444,14 +6449,6 @@ postcss-zindex@^2.0.1:
postcss "^5.0.4"
uniqs "^2.0.0"
-postcss@6.0.1:
- version "6.0.1"
- resolved "https://registry.yarnpkg.com/postcss/-/postcss-6.0.1.tgz#000dbd1f8eef217aa368b9a212c5fc40b2a8f3f2"
- dependencies:
- chalk "^1.1.3"
- source-map "^0.5.6"
- supports-color "^3.2.3"
-
postcss@^5.0.10, postcss@^5.0.11, postcss@^5.0.12, postcss@^5.0.13, postcss@^5.0.14, postcss@^5.0.16, postcss@^5.0.19, postcss@^5.0.2, postcss@^5.0.4, postcss@^5.0.5, postcss@^5.0.6, postcss@^5.0.8, postcss@^5.2.16, postcss@^5.2.8:
version "5.2.18"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-5.2.18.tgz#badfa1497d46244f6390f58b319830d9107853c5"
@@ -6506,13 +6503,13 @@ pretty-format@^22.4.0, pretty-format@^22.4.3:
ansi-regex "^3.0.0"
ansi-styles "^3.2.0"
-prisma-json-schema@0.0.4:
- version "0.0.4"
- resolved "https://registry.yarnpkg.com/prisma-json-schema/-/prisma-json-schema-0.0.4.tgz#4ecee29c351e382fb833dad83a38c62961380458"
+prisma-json-schema@0.1.2:
+ version "0.1.2"
+ resolved "https://registry.yarnpkg.com/prisma-json-schema/-/prisma-json-schema-0.1.2.tgz#2ad1cad7858d42bb8b32d3a31e9d3d9a7318d2e0"
-prisma-yml@1.0.50:
- version "1.0.50"
- resolved "https://registry.yarnpkg.com/prisma-yml/-/prisma-yml-1.0.50.tgz#c85de8fa55efc6cac59083496bc038278be04076"
+prisma-yml@1.0.95:
+ version "1.0.95"
+ resolved "https://registry.yarnpkg.com/prisma-yml/-/prisma-yml-1.0.95.tgz#0b025336b068eb029d25fc1357a39994fe26b89f"
dependencies:
ajv "5"
bluebird "^3.5.1"
@@ -6528,7 +6525,7 @@ prisma-yml@1.0.50:
json-stable-stringify "^1.0.1"
jsonwebtoken "^8.1.0"
lodash "^4.17.4"
- prisma-json-schema "0.0.4"
+ prisma-json-schema "0.1.2"
replaceall "^0.1.6"
scuid "^1.0.2"
yaml-ast-parser "^0.0.40"
@@ -6744,15 +6741,6 @@ react-dom-factories@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/react-dom-factories/-/react-dom-factories-1.0.2.tgz#eb7705c4db36fb501b3aa38ff759616aa0ff96e0"
-react-dom@^15.3.2:
- version "15.6.2"
- resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.6.2.tgz#41cfadf693b757faf2708443a1d1fd5a02bef730"
- dependencies:
- fbjs "^0.8.9"
- loose-envify "^1.1.0"
- object-assign "^4.1.0"
- prop-types "^15.5.10"
-
react-dom@^16.3.1, react-dom@^16.4.0:
version "16.4.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.4.0.tgz#099f067dd5827ce36a29eaf9a6cdc7cbf6216b1e"
@@ -6853,6 +6841,14 @@ react-side-effect@^1.1.0:
exenv "^1.2.1"
shallowequal "^1.0.1"
+react-sortable-hoc@^0.8.3:
+ version "0.8.3"
+ resolved "https://registry.yarnpkg.com/react-sortable-hoc/-/react-sortable-hoc-0.8.3.tgz#8537e8ab8d6bad6829885755a0f847817ed78648"
+ dependencies:
+ babel-runtime "^6.11.6"
+ invariant "^2.2.1"
+ prop-types "^15.5.7"
+
react-test-renderer@16.4.0:
version "16.4.0"
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.4.0.tgz#0dbe0e24263e94e1830c7afb1f403707fad313a3"
@@ -7777,7 +7773,7 @@ string-hash@1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/string-hash/-/string-hash-1.1.1.tgz#8e85bed291e0763b8f6809d9c3368fea048db3dc"
-string-hash@1.1.3, string-hash@^1.1.1:
+string-hash@1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/string-hash/-/string-hash-1.1.3.tgz#e8aafc0ac1855b4666929ed7dd1275df5d6c811b"
@@ -7863,20 +7859,18 @@ style-loader@0.20.1:
loader-utils "^1.1.0"
schema-utils "^0.4.3"
-styled-components@^3.1.6:
- version "3.3.0"
- resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-3.3.0.tgz#335b1b2b673b416cd5ec012010e237ed1f877fe9"
+styled-components@^4.0.0:
+ version "4.0.0"
+ resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-4.0.0.tgz#bd37d79408246302051cd63f52a3539f70aa3197"
dependencies:
- buffer "^5.0.3"
- css-to-react-native "^2.0.3"
- fbjs "^0.8.16"
- hoist-non-react-statics "^2.5.0"
- is-plain-object "^2.0.1"
+ "@emotion/is-prop-valid" "^0.6.8"
+ babel-plugin-styled-components ">= 1"
+ css-to-react-native "^2.2.2"
+ memoize-one "^4.0.0"
prop-types "^15.5.4"
react-is "^16.3.1"
stylis "^3.5.0"
stylis-rule-sheet "^0.0.10"
- supports-color "^3.2.3"
"styled-jsx-postcss@git+https://github.com/timsuchanek/styled-jsx-postcss#build3":
version "0.2.0"
@@ -7889,19 +7883,7 @@ styled-components@^3.1.6:
postcss-load-plugins "^2.2.0"
styled-jsx "^0.5.7"
-"styled-jsx-postcss@github:timsuchanek/styled-jsx-postcss#build3":
- version "0.2.0"
- uid "677ee0fb7f9138047a00e03c8c3e44adbb33cf2a"
- resolved "https://codeload.github.com/timsuchanek/styled-jsx-postcss/tar.gz/677ee0fb7f9138047a00e03c8c3e44adbb33cf2a"
- dependencies:
- babel-traverse "^6.21.0"
- babylon "^6.14.1"
- deasync "^0.1.9"
- postcss "^5.2.8"
- postcss-load-plugins "^2.2.0"
- styled-jsx "^0.5.7"
-
-styled-jsx@2.2.6, styled-jsx@^2.2.1:
+styled-jsx@2.2.6:
version "2.2.6"
resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-2.2.6.tgz#7e826279e1ef718213ef9cc42ac7370b5008449d"
dependencies:
@@ -7926,10 +7908,6 @@ styled-jsx@^0.5.7:
source-map "0.5.6"
string-hash "1.1.1"
-styled-theming@^2.2.0:
- version "2.2.0"
- resolved "https://registry.yarnpkg.com/styled-theming/-/styled-theming-2.2.0.tgz#3084e43d40eaab4bc11ebafd3de04e3622fee37e"
-
stylis-rule-sheet@0.0.8:
version "0.0.8"
resolved "https://registry.yarnpkg.com/stylis-rule-sheet/-/stylis-rule-sheet-0.0.8.tgz#b0d0a126c945b1f3047447a3aae0647013e8d166"
@@ -8110,6 +8088,10 @@ to-fast-properties@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47"
+to-fast-properties@^2.0.0:
+ version "2.0.0"
+ resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
+
to-object-path@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af"
@@ -8288,9 +8270,9 @@ typedarray@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
-typescript@2.8.3:
- version "2.8.3"
- resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.8.3.tgz#5d817f9b6f31bb871835f4edf0089f21abe6c170"
+typescript@3.0.1:
+ version "3.0.1"
+ resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.0.1.tgz#43738f29585d3a87575520a4b93ab6026ef11fdb"
ua-parser-js@^0.7.9:
version "0.7.18"
diff --git a/packages/graphql-playground-html/package.json b/packages/graphql-playground-html/package.json
index eb517de7a..16b2765b3 100644
--- a/packages/graphql-playground-html/package.json
+++ b/packages/graphql-playground-html/package.json
@@ -1,6 +1,6 @@
{
"name": "graphql-playground-html",
- "version": "1.6.0",
+ "version": "1.6.4",
"homepage": "https://github.com/graphcool/graphql-playground/tree/master/packages/graphql-playground-html",
"description": "GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).",
"contributors": [
@@ -26,7 +26,6 @@
],
"devDependencies": {
"@types/node": "9.4.6",
- "graphql-config": "1.1.7",
"rimraf": "2.6.2",
"typescript": "2.6.2"
},
@@ -35,6 +34,6 @@
"definition": "dist/index.d.ts"
},
"dependencies": {
- "graphql-config": "2.0.0"
+ "graphql-config": "2.2.1"
}
}
diff --git a/packages/graphql-playground-html/src/render-playground-page.ts b/packages/graphql-playground-html/src/render-playground-page.ts
index 9437a17dd..553ddfa36 100644
--- a/packages/graphql-playground-html/src/render-playground-page.ts
+++ b/packages/graphql-playground-html/src/render-playground-page.ts
@@ -54,6 +54,7 @@ export interface IntrospectionResult {
export interface RenderPageOptions extends MiddlewareOptions {
version: string
+ cdnUrl?: string
env?: any
}
@@ -67,15 +68,15 @@ export interface Tab {
const loading = getLoadingMarkup()
-const getCdnMarkup = options => `
-
-
-
`
diff --git a/packages/graphql-playground-html/withAnimation.html b/packages/graphql-playground-html/withAnimation.html
index 6a2194b0c..cb9bdd798 100644
--- a/packages/graphql-playground-html/withAnimation.html
+++ b/packages/graphql-playground-html/withAnimation.html
@@ -536,5 +536,5 @@
})
})
-
-