Skip to content

Commit

Permalink
[deploy_website] Fix Live Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and ardatan committed Jun 3, 2021
1 parent 5de96cb commit 6349934
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -44,7 +44,7 @@
"@babel/preset-typescript": "7.13.0",
"@changesets/cli": "2.16.0",
"@graphql-typed-document-node/core": "3.1.0",
"@urql/exchange-graphcache": "4.1.2",
"@urql/exchange-graphcache": "4.1.3",
"@types/common-tags": "1.8.0",
"@types/jest": "26.0.23",
"@types/mkdirp": "1.0.1",
Expand Down
Expand Up @@ -43,4 +43,4 @@ index f74b673..283655b 100644
};
var _default = transformer;
-exports.default = _default;
+module.exports = _default;
+module.exports = _default;
2 changes: 1 addition & 1 deletion website/src/components/live-demo/LiveDemo.js
Expand Up @@ -9,6 +9,7 @@ import Select from 'react-select';
import useThemeContext from '@theme/hooks/useThemeContext';
import BrowserOnly from '@docusaurus/BrowserOnly';
import ReactMarkdown from 'react-markdown';
import LiveDemoEditors from './LiveDemoEditors';

const groupedExamples = Object.keys(EXAMPLES).map(catName => {
return {
Expand Down Expand Up @@ -88,7 +89,6 @@ export const LiveDemo = () => {
setConfig(EXAMPLES[catName][index].config);
setTemplate(value);
};
const LiveDemoEditors = React.lazy(() => import('./LiveDemoEditors'));

let mode = null;

Expand Down
6 changes: 5 additions & 1 deletion website/static/config.schema.json
Expand Up @@ -540,6 +540,10 @@
"description": "This plugin generates TypeScript types based on your GraphQLSchema *and* your GraphQL operations and fragments.\nIt generates types for your GraphQL documents: Query, Mutation, Subscription and Fragment.\n\nNote: In most configurations, this plugin requires you to use `typescript as well, because it depends on its base types.",
"type": "object",
"properties": {
"arrayInputCoercion": {
"description": "The [GraphQL spec]{@link https://spec.graphql.org/draft/#sel-FAHjBJFCAACE_Gh7d}\nallows arrays and a single primitive value for list input. This allows to\ndeactivate that behavior to only accept arrays instead of single values. If\nset to `false`, the definition: `query foo(bar: [Int!]!): Foo` will output\n`bar: Array<Int>` instead of `bar: Array<Int> | Int` for the variable part.\nDefault value: \"true\"",
"type": "boolean"
},
"avoidOptionals": {
"description": "This will cause the generator to avoid using TypeScript optionals (`?`) on types,\nso the following definition: `type A { myField: String }` will output `myField: Maybe<string>`\ninstead of `myField?: Maybe<string>`.\nDefault value: \"false\"",
"anyOf": [
Expand All @@ -560,7 +564,7 @@
"type": "boolean"
},
"noExport": {
"description": "Set the to `true` in order to generate output without `export` modifier.\nThis is useful if you are generating `.d.ts` file and want it to be globally available.\nDefault value: \"false\"",
"description": "Set to `true` in order to generate output without `export` modifier.\nThis is useful if you are generating `.d.ts` file and want it to be globally available.\nDefault value: \"false\"",
"type": "boolean"
},
"globalNamespace": {
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Expand Up @@ -5840,10 +5840,10 @@
"@typescript-eslint/types" "4.26.0"
eslint-visitor-keys "^2.0.0"

"@urql/core@>=2.1.0":
version "2.1.2"
resolved "https://registry.yarnpkg.com/@urql/core/-/core-2.1.2.tgz#aa27ff52bac0c0c263345f17d0df0f54480716d3"
integrity sha512-gZ+FBGe63P/dC10XRKAV7dlwRNbcfD8U622uvk54VXNrbY8tBkK9LHdWrjw1oByoQNON9t4NXikQlLOyp4HEBw==
"@urql/core@>=2.1.3":
version "2.1.3"
resolved "https://registry.yarnpkg.com/@urql/core/-/core-2.1.3.tgz#fd8514ce28c1f8cf8e99a03b86a3df217c132290"
integrity sha512-CzrTMhO5SG7qdAaS3B5/g1TPH5k7326GHIyta1owT2vzxX9ev8YytxOE5m73EuacxIfF7qVZFhCzY+rubOlI0w==
dependencies:
"@graphql-typed-document-node/core" "^3.1.0"
wonka "^4.0.14"
Expand All @@ -5856,12 +5856,12 @@
"@graphql-typed-document-node/core" "^3.1.0"
wonka "^4.0.14"

"@urql/exchange-graphcache@4.1.2":
version "4.1.2"
resolved "https://registry.yarnpkg.com/@urql/exchange-graphcache/-/exchange-graphcache-4.1.2.tgz#8d2af33f4346164a86b5a6f6e233202d3d0c3233"
integrity sha512-WnCLL88c7XMQLRAqY/Nnrbl9vtMEpQDfJLG890CtJTfvXn5qQQ8x/cCfkC5r/ijl93tnB/opN/uCDX2vrjOHug==
"@urql/exchange-graphcache@4.1.3":
version "4.1.3"
resolved "https://registry.yarnpkg.com/@urql/exchange-graphcache/-/exchange-graphcache-4.1.3.tgz#75c3b608f91d453397345ba32aff910da56e3572"
integrity sha512-J3Fmf2eni9NW39/7f5rFm2ZbaTPdPG9I01n+t4zfPuwCSE38XiGjxf7bcN+0haDpr77qZvMfDgAZ5zmXmr/V1g==
dependencies:
"@urql/core" ">=2.1.0"
"@urql/core" ">=2.1.3"
wonka "^4.0.14"

"@urql/introspection@0.3.0":
Expand Down

0 comments on commit 6349934

Please sign in to comment.