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 fb8ef64
Show file tree
Hide file tree
Showing 6 changed files with 309 additions and 3,658 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;
1 change: 1 addition & 0 deletions renovate.json
@@ -1,5 +1,6 @@
{
"extends": ["config:base"],
"postUpdateOptions": ["yarnDedupeFewer"],
"automerge": true,
"major": {
"automerge": false
Expand Down
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

0 comments on commit fb8ef64

Please sign in to comment.