Skip to content

Commit 554712b

Browse files
committed
chore: react 16 rewrite, 18n, context rfc for 2.0
1 parent 328c455 commit 554712b

File tree

153 files changed

+14321
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+14321
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('./babel.config');
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
dist/
2+
esm/
3+
cdn/
4+
webpack/
5+
monaco/
6+
cdn.html
7+
analyzer.html
8+
/graphiql.*js
9+
/graphiql.*js.map
10+
/graphiql.*css
11+
/graphiql.*css.map
12+
example/yarn.lock
13+
example/graphiql.js
14+
example/graphiql.css
15+
test/pid
16+
renderGraphiql.js
17+
cypress/screenshots
18+
.awcache
19+
typedoc
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Copyright (c) 2020 GraphQL Contributors.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
*/
8+
9+
import { configure, addDecorator } from '@storybook/react';
10+
import React from 'react';
11+
import requireContext from 'require-context.macro';
12+
import ThemeProvider from '../src/components/common/themes/provider';
13+
14+
addDecorator(story => <ThemeProvider>{story()}</ThemeProvider>);
15+
16+
configure(
17+
requireContext('../src/components/common', true, /\.stories\.tsx$/),
18+
module,
19+
);
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* Copyright (c) 2020 GraphQL Contributors.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
*/
8+
9+
module.exports = {
10+
webpackFinal: async config => {
11+
config.module.rules.push({
12+
test: /\.(ts|tsx)$/,
13+
use: [
14+
{
15+
loader: require.resolve('ts-loader'),
16+
},
17+
],
18+
});
19+
config.resolve.extensions.push('.ts', '.tsx');
20+
return config;
21+
},
22+
};
Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
4+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5+
6+
# [2.0.0-alpha.5](https://github.com/graphql/graphiql/compare/[email protected]@2.0.0-alpha.5) (2020-08-26)
7+
8+
### Bug Fixes
9+
10+
- **docs:** webpack example links ([#1649](https://github.com/graphql/graphiql/issues/1649)) ([f779aa3](https://github.com/graphql/graphiql/commit/f779aa31794752901547828dad1f8fd572140f00))
11+
12+
# [2.0.0-alpha.4](https://github.com/graphql/graphiql/compare/[email protected]@2.0.0-alpha.4) (2020-08-22)
13+
14+
**Note:** Version bump only for package graphiql
15+
16+
# [2.0.0-alpha.3](https://github.com/graphql/graphiql/compare/[email protected]@2.0.0-alpha.3) (2020-08-12)
17+
18+
**Note:** Version bump only for package graphiql
19+
20+
# [2.0.0-alpha.2](https://github.com/graphql/graphiql/compare/[email protected]@2.0.0-alpha.2) (2020-08-10)
21+
22+
**Note:** Version bump only for package graphiql
23+
24+
# [2.0.0-alpha.1](https://github.com/graphql/graphiql/compare/[email protected]@2.0.0-alpha.1) (2020-08-06)
25+
26+
### Features
27+
28+
- **merge:** make fragment merging type-aware ([#1542](https://github.com/graphql/graphiql/issues/1542)) ([a62a4ec](https://github.com/graphql/graphiql/commit/a62a4ecb56fd1eccfa43b3a7f88aaabe46d043fb))
29+
- [RFC] GraphiQL rewrite for monaco editor, react context and redesign, i18n ([#1523](https://github.com/graphql/graphiql/issues/1523)) ([ad730cd](https://github.com/graphql/graphiql/commit/ad730cdc2e3cb7216d821a01725c60475989ee20))
30+
31+
# [1.0.0](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0) (2020-06-11)
32+
33+
### Bug Fixes
34+
35+
- call debounce statements as they are functions ([#1571](https://github.com/graphql/graphiql/issues/1571)) ([8541250](https://github.com/graphql/graphiql/commit/85412501307ccfffe258b7fbca74bb9309726a73))
36+
- fix server side rendering by using type only codemirror import ([#1573](https://github.com/graphql/graphiql/issues/1573)) ([1ee60a6](https://github.com/graphql/graphiql/commit/1ee60a6db87d54c7a1e8f1089e52a65f335351b6)), closes [#118](https://github.com/graphql/graphiql/issues/118)
37+
- Move all componentWillUnMount functionality to respective events ([#1544](https://github.com/graphql/graphiql/issues/1544)) ([046b09f](https://github.com/graphql/graphiql/commit/046b09f541e6a9f2ce4b46de590d49c04c916716))
38+
39+
# [1.0.0-alpha.13](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.13) (2020-06-04)
40+
41+
**Note:** Version bump only for package graphiql
42+
43+
# [1.0.0-alpha.12](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.12) (2020-06-04)
44+
45+
### Bug Fixes
46+
47+
- cleanup cache entry from lerna publish ([4a26218](https://github.com/graphql/graphiql/commit/4a2621808a1aea8b30d5d27b8d86a60bf2b44b01))
48+
- display variable editor when headers are not enabled ([ce7b2e2](https://github.com/graphql/graphiql/commit/ce7b2e2b45d530b61e916112e864074cf3a6ddc7))
49+
50+
# [1.0.0-alpha.11](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.11) (2020-05-28)
51+
52+
### Bug Fixes
53+
54+
- Safe setState ([#1547](https://github.com/graphql/graphiql/issues/1547)) ([f85969c](https://github.com/graphql/graphiql/commit/f85969c7e77e8fd269e026be36cc5065d6d33237))
55+
- trigger edit variables on first render ([#1545](https://github.com/graphql/graphiql/issues/1545)) ([e54e1a8](https://github.com/graphql/graphiql/commit/e54e1a8691483f1d336231314130d9822481b3be))
56+
57+
### Features
58+
59+
- Add Headers Editor to GraphiQL ([#1543](https://github.com/graphql/graphiql/issues/1543)) ([3faa1ac](https://github.com/graphql/graphiql/commit/3faa1ac46514252e90abf2b2bda0841edf6115ea))
60+
61+
# [1.0.0-alpha.10](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.10) (2020-05-19)
62+
63+
### Bug Fixes
64+
65+
- graphiql non-relative import issues ([#1534](https://github.com/graphql/graphiql/issues/1534)) fixes [#1530](https://github.com/graphql/graphiql/issues/1530) ([0ac9fa0](https://github.com/graphql/graphiql/commit/0ac9fa0a8dcdf8464c8ce31c487ebcfd6b9536a8))
66+
67+
# [1.0.0-alpha.9](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.9) (2020-05-17)
68+
69+
### Bug Fixes
70+
71+
- remove problematic file resolution module from webpack sco… ([#1489](https://github.com/graphql/graphiql/issues/1489)) ([8dab038](https://github.com/graphql/graphiql/commit/8dab0385772f443f73b559e2c668080733168236))
72+
73+
### Features
74+
75+
- introduce proper vscode completion kinds ([#1488](https://github.com/graphql/graphiql/issues/1488)) ([f19aa0d](https://github.com/graphql/graphiql/commit/f19aa0ddde6109526c101c8a487f43bbb8238394))
76+
- Monaco Mode - Phase 2 - Mode & Worker ([#1459](https://github.com/graphql/graphiql/issues/1459)) ([bc95fb4](https://github.com/graphql/graphiql/commit/bc95fb46459a4437ff9471ff43c98e1c5c50f51e))
77+
78+
# [1.0.0-alpha.8](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.8) (2020-04-10)
79+
80+
**Note:** Version bump only for package graphiql
81+
82+
# [1.0.0-alpha.7](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.7) (2020-04-10)
83+
84+
**Note:** Version bump only for package graphiql
85+
86+
# [1.0.0-alpha.6](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.6) (2020-04-10)
87+
88+
**Note:** Version bump only for package graphiql
89+
90+
# [1.0.0-alpha.5](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.5) (2020-04-06)
91+
92+
### Features
93+
94+
- upgrade to [email protected] for [#1191](https://github.com/graphql/graphiql/issues/1191) ([#1204](https://github.com/graphql/graphiql/issues/1204)) ([f13c8e9](https://github.com/graphql/graphiql/commit/f13c8e9d0e66df4b051b332c7d02f4bb83e07ffd))
95+
96+
# [1.0.0-alpha.4](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.4) (2020-04-03)
97+
98+
### Bug Fixes
99+
100+
- fix query argument missing from onEditQuery call ([#1440](https://github.com/graphql/graphiql/issues/1440)) ([6c335a8](https://github.com/graphql/graphiql/commit/6c335a813f6101afded00c0e869c337a7ca44020))
101+
102+
# [1.0.0-alpha.3](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.3) (2020-03-20)
103+
104+
**Note:** Version bump only for package graphiql
105+
106+
# [1.0.0-alpha.2](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.2) (2020-03-20)
107+
108+
### Bug Fixes
109+
110+
- Fix typo in documentation (comments) ([#1431](https://github.com/graphql/graphiql/issues/1431)) ([fdda8f0](https://github.com/graphql/graphiql/commit/fdda8f04479412d22e9a3e9215c7caa5369e7d83))
111+
- initial request cache set, import tsc bugs ([#1266](https://github.com/graphql/graphiql/issues/1266)) ([6b98f8a](https://github.com/graphql/graphiql/commit/6b98f8a442d4a8ea160fb90a29acf33f5382db2e))
112+
113+
# [1.0.0-alpha.1](https://github.com/graphql/graphiql/compare/[email protected]@1.0.0-alpha.1) (2020-01-18)
114+
115+
### Bug Fixes
116+
117+
- hmr, file resolution warnings ([69bf701](https://github.com/graphql/graphiql/commit/69bf701))
118+
- prefer displayName over type equality for children overrides ([e4cec0a](https://github.com/graphql/graphiql/commit/e4cec0a))
119+
- remove use of `findDOMNode` ([0b12323](https://github.com/graphql/graphiql/commit/0b12323)) by [@ryan-m-walker](https://github.com/ryan-m-walker)
120+
121+
### Features
122+
123+
- deprecate support for 15, support react 16 features ([#1107](https://github.com/graphql/graphiql/issues/1107)) ([bc4b6fc](https://github.com/graphql/graphiql/commit/bc4b6fc))
124+
- **graphiql-theming:** Toolbar component ([#1203](https://github.com/graphql/graphiql/issues/1203)) by [@walaura](https://github.com/walaura) ([adb73f5](https://github.com/graphql/graphiql/commit/adb73f5))
125+
- [new-ui] Tabs & Tabbars ([#1198](https://github.com/graphql/graphiql/issues/1198)) ([033f971](https://github.com/graphql/graphiql/commit/033f971)) by [@walaura](https://github.com/walaura)
126+
- replace use of enzyme with react-testing-library ([#1144](https://github.com/graphql/graphiql/issues/1144)) by [@ryan-m-walker](https://github.com/ryan-m-walker) ([de73d6c](https://github.com/graphql/graphiql/commit/de73d6c))
127+
- storybook+theme-ui for the new design ([#1145](https://github.com/graphql/graphiql/issues/1145)) ([7f97c0c](https://github.com/graphql/graphiql/commit/7f97c0c)) by [@walaura](https://github.com/walaura)
128+
129+
### BREAKING CHANGES
130+
131+
- Deprecate support for React 15. Please use React 16.8 or greater for hooks support.
132+
Co-authored-by: @ryan-m-walker, @acao
133+
Reviewed-by: @benjie
134+
135+
## [0.17.5](https://github.com/graphql/graphiql/compare/[email protected]@0.17.5) (2019-12-09)
136+
137+
**Note:** Version bump only for package graphiql
138+
139+
## [0.17.4](https://github.com/graphql/graphiql/compare/[email protected]@0.17.4) (2019-12-09)
140+
141+
### Bug Fixes
142+
143+
- graphiql babel test ignore paths ([e1588d9](https://github.com/graphql/graphiql/commit/e1588d9))
144+
145+
## [0.17.3](https://github.com/graphql/graphiql/compare/[email protected]@0.17.3) (2019-12-09)
146+
147+
### Bug Fixes
148+
149+
- express-graphql version ([e9848b0](https://github.com/graphql/graphiql/commit/e9848b0))
150+
- test output, webpack resolution, clean build ([3b1c2c1](https://github.com/graphql/graphiql/commit/3b1c2c1))
151+
152+
## [0.17.2](https://github.com/graphql/graphiql/compare/[email protected]@0.17.2) (2019-12-03)
153+
154+
### Bug Fixes
155+
156+
- ensure css files move with babel dist ([ca95547](https://github.com/graphql/graphiql/commit/ca95547))
157+
- remove css from downstream components. soon to be replaced w styled ([e765543](https://github.com/graphql/graphiql/commit/e765543))
158+
159+
## [0.17.1](https://github.com/graphql/graphiql/compare/[email protected]@0.17.1) (2019-12-03)
160+
161+
### Bug Fixes
162+
163+
- **graphiql:** duplicate query history key issue, fixes [#988](https://github.com/graphql/graphiql/issues/988) ([#1035](https://github.com/graphql/graphiql/issues/1035)) ([69c6826](https://github.com/graphql/graphiql/commit/69c6826))
164+
- convert browserify build to webpack, fixes [#976](https://github.com/graphql/graphiql/issues/976) ([#1001](https://github.com/graphql/graphiql/issues/1001)) ([3caf041](https://github.com/graphql/graphiql/commit/3caf041))
165+
- hints vertical scroll ([216eaeb](https://github.com/graphql/graphiql/commit/216eaeb))
166+
167+
# [0.17.0](https://github.com/graphql/graphiql/compare/[email protected]@0.17.0) (2019-11-26)
168+
169+
### Bug Fixes
170+
171+
- security bump, resolves [#1004](https://github.com/graphql/graphiql/issues/1004), SNYK-JS-MARKDOWNIT-459438 ([89c83db](https://github.com/graphql/graphiql/commit/89c83db))
172+
- webpack resolutions for [#882](https://github.com/graphql/graphiql/issues/882), add webpack example ([ea9df3e](https://github.com/graphql/graphiql/commit/ea9df3e))
173+
174+
### Features
175+
176+
- **graphiql:** Prettify also formats query variables ([b7d0bfd](https://github.com/graphql/graphiql/commit/b7d0bfd))
177+
178+
# [0.16.0](https://github.com/graphql/graphiql/compare/[email protected]@0.16.0) (2019-10-19)
179+
180+
### Bug Fixes
181+
182+
- **accessibility:** improve accessibility of all components ([#967](https://github.com/graphql/graphiql/issues/967)) ([73a3f90](https://github.com/graphql/graphiql/commit/73a3f90))
183+
- **css:** added minimum width for result panel in GraphiQL ([#980](https://github.com/graphql/graphiql/issues/980)) ([0c8b7ad](https://github.com/graphql/graphiql/commit/0c8b7ad))
184+
- **graphiql:** better quota management ([#764](https://github.com/graphql/graphiql/issues/764)) ([7efed6c](https://github.com/graphql/graphiql/commit/7efed6c))
185+
186+
### Features
187+
188+
- **css:** beautify code tag in doc explorer ([#959](https://github.com/graphql/graphiql/issues/959)) resolves [#949](https://github.com/graphql/graphiql/issues/949) ([30810a2](https://github.com/graphql/graphiql/commit/30810a2))
189+
190+
## [0.15.1](https://github.com/graphql/graphiql/compare/[email protected]@0.15.1) (2019-10-04)
191+
192+
### Bug Fixes
193+
194+
- build tweaks ([0bc6a7c](https://github.com/graphql/graphiql/commit/0bc6a7c))
195+
196+
# 0.15.0 (2019-10-04)
197+
198+
### Bug Fixes
199+
200+
- check `window` is defined before using it ([#962](https://github.com/graphql/graphiql/issues/962)) ([e4866ad](https://github.com/graphql/graphiql/commit/e4866ad))
201+
- **graphiql:** prettify keybinding bug for Firefox. Fixes [#905](https://github.com/graphql/graphiql/issues/905) ([fdf98ba](https://github.com/graphql/graphiql/commit/fdf98ba))
202+
- check `this.editor` exist before `this.editor.off` in QueryEditor ([#669](https://github.com/graphql/graphiql/issues/669)) ([ca226ee](https://github.com/graphql/graphiql/commit/ca226ee)), closes [#665](https://github.com/graphql/graphiql/issues/665)
203+
- extraKeys bugfix window regression ([f3d0427](https://github.com/graphql/graphiql/commit/f3d0427))
204+
- preserve ctrl-f key for macOS ([7c381f9](https://github.com/graphql/graphiql/commit/7c381f9))
205+
206+
### Features
207+
208+
- convert LSP from flow to typescript ([#957](https://github.com/graphql/graphiql/issues/957)) [@acao](https://github.com/acao) @Neitch [@benjie](https://github.com/benjie) ([36ed669](https://github.com/graphql/graphiql/commit/36ed669))
209+
210+
## 0.13.2 (2019-06-21)
211+
212+
## 0.14.3 (2019-09-01)
213+
214+
### Bug Fixes
215+
216+
- check `this.editor` exist before `this.editor.off` in QueryEditor ([#669](https://github.com/graphql/graphiql/issues/669)) ([ca226ee](https://github.com/graphql/graphiql/commit/ca226ee)), closes [#665](https://github.com/graphql/graphiql/issues/665)
217+
- extraKeys bugfix window regression ([f3d0427](https://github.com/graphql/graphiql/commit/f3d0427))
218+
- preserve ctrl-f key for macOS ([7c381f9](https://github.com/graphql/graphiql/commit/7c381f9))
219+
- remove newline ([19f5d1d](https://github.com/graphql/graphiql/commit/19f5d1d))
220+
221+
## 0.13.2 (2019-06-21)
222+
223+
## 0.13.2 (2019-06-21)
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 GraphQL Contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)