Skip to content

Commit 017a49d

Browse files
committed
chore: graphiql 2 context rfc as seperate package
1 parent 46ca248 commit 017a49d

29 files changed

+43
-4057
lines changed

packages/graphiql/.storybook/config.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/graphiql/.storybook/main.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/graphiql/package.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,11 @@
4242
"storybook": "start-storybook"
4343
},
4444
"dependencies": {
45-
"@emotion/core": "^10.0.28",
46-
"@mdx-js/react": "^1.5.2",
47-
"codemirror": "^5.52.2",
45+
"codemirror": "^5.54.0",
4846
"codemirror-graphql": "^0.12.0",
4947
"copy-to-clipboard": "^3.2.0",
5048
"entities": "^2.0.0",
51-
"markdown-it": "^10.0.0",
52-
"monaco-graphql": "^0.2.0",
53-
"regenerator-runtime": "^0.13.5",
54-
"theme-ui": "^0.3.1"
49+
"markdown-it": "^10.0.0"
5550
},
5651
"peerDependencies": {
5752
"graphql": "^14.0.0 || ^15.0.0",
@@ -60,8 +55,6 @@
6055
"react-dom": "^16.8.0"
6156
},
6257
"devDependencies": {
63-
"@storybook/addon-storyshots": "^5.2.8",
64-
"@storybook/react": "^5.2.8",
6558
"@testing-library/jest-dom": "5.1.1",
6659
"@testing-library/react": "9.4.1",
6760
"@types/codemirror": "0.0.82",

packages/graphiql/src/components/HeaderEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ declare module CodeMirror {
1414
export interface Editor extends CM.Editor {}
1515
export interface ShowHintOptions {
1616
completeSingle: boolean;
17-
hint: CM.HintFunction | CM.AsyncHintFunction;
17+
hint: any;
1818
container: HTMLElement | null;
1919
}
2020
}
@@ -45,7 +45,7 @@ type HeaderEditorProps = {
4545
*/
4646
export class HeaderEditor extends React.Component<HeaderEditorProps> {
4747
CodeMirror: any;
48-
editor: (CM.Editor & { options: any }) | null = null;
48+
editor: (CM.Editor & { options: any; showHint: any }) | null = null;
4949
cachedValue: string;
5050
private _node: HTMLElement | null = null;
5151
ignoreChangeEvent: boolean = false;

packages/graphiql/src/components/QueryEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ type QueryEditorProps = {
4747
export class QueryEditor extends React.Component<QueryEditorProps, {}>
4848
implements SizerComponent {
4949
cachedValue: string | undefined;
50-
editor: (CM.Editor & { options: any }) | null = null;
50+
editor: (CM.Editor & { options: any; showHint: any }) | null = null;
5151
ignoreChangeEvent: boolean = false;
5252

5353
_node: HTMLElement | null = null;

packages/graphiql/src/components/VariableEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ declare module CodeMirror {
1717
export interface Editor extends CM.Editor {}
1818
export interface ShowHintOptions {
1919
completeSingle: boolean;
20-
hint: CM.HintFunction | CM.AsyncHintFunction;
20+
hint: any;
2121
container: HTMLElement | null;
2222
}
2323
}
@@ -50,7 +50,7 @@ type VariableEditorProps = {
5050
*/
5151
export class VariableEditor extends React.Component<VariableEditorProps> {
5252
CodeMirror: any;
53-
editor: (CM.Editor & { options: any }) | null = null;
53+
editor: (CM.Editor & { options: any; showHint: any }) | null = null;
5454
cachedValue: string;
5555
private _node: HTMLElement | null = null;
5656
ignoreChangeEvent: boolean = false;

packages/graphiql/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
7-
import 'regenerator-runtime/runtime';
8-
97
import { GraphiQL } from './components/GraphiQL';
108

119
export { GraphiQL };

packages/graphiql/src/new-components/Layout.stories.tsx

Lines changed: 0 additions & 112 deletions
This file was deleted.

packages/graphiql/src/new-components/List/List.stories.tsx

Lines changed: 0 additions & 46 deletions
This file was deleted.

packages/graphiql/src/new-components/List/index.tsx

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)