-
Notifications
You must be signed in to change notification settings - Fork 1.8k
extract history plugin from @graphiql/react
and publish as @graphiql/plugin-history
package
#3911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
66c1886
initial commit
dimaMachina 23a87dc
initial commit
dimaMachina b1ea147
update react vite example
dimaMachina 2f5fd21
vite and vitest
dimaMachina 4338ebe
tsconfig pkg
dimaMachina 88a519e
rm history from react
dimaMachina 993b949
upd graphiql
dimaMachina a550166
upd graphiql
dimaMachina f1be5cb
upd graphiql react
dimaMachina c246098
upd graphiql react
dimaMachina 762801f
upd history
dimaMachina e75a7e7
upd history
dimaMachina fc2a3c6
upd history
dimaMachina d18a55b
upd
dimaMachina f3ed928
upd
dimaMachina a5a207f
upd
dimaMachina bdfaf2b
upd
dimaMachina aaf6e9f
upd
dimaMachina 32f228e
upd
dimaMachina 3472fe1
upd
dimaMachina e1e5336
upd
dimaMachina fd58572
upd
dimaMachina 9a07418
fix unit tests
dimaMachina 724affa
upd
dimaMachina ff7471e
fix e2e
dimaMachina 448d5be
upd
dimaMachina c5b02ca
prettier
dimaMachina d9c50d1
fix react-compiler error
dimaMachina 9890080
polish
dimaMachina 74bce69
Apply suggestions from code review
dimaMachina 9b323af
Update .changeset/grumpy-knives-smile.md
dimaMachina 5358f3c
upd
dimaMachina 6ce4639
fix unit
dimaMachina fd085af
ok e2e tests were fixed
dimaMachina 17a2f37
initial tab values should have the same behavior as new tab
dimaMachina File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
'@graphiql/plugin-history': patch | ||
'@graphiql/react': minor | ||
'graphiql': patch | ||
--- | ||
|
||
- export `cn` from `@graphiql/react` | ||
|
||
- remove following exports from `@graphiql/react` and move them in `@graphiql/plugin-history` package: | ||
- `History` | ||
- `HistoryContext` | ||
- `HistoryContextType` | ||
- `HistoryContextProvider` | ||
- `useHistoryContext` | ||
- `HISTORY_PLUGIN` | ||
|
||
- remove types from `@graphiql/react` (use `ComponentProps<typeof MyContextProviderProps>` instead): | ||
- `HistoryContextProviderProps` | ||
- `ExecutionContextProviderProps` | ||
- `EditorContextProviderProps` | ||
- `ExplorerContextProviderProps` | ||
- `PluginContextProviderProps` | ||
- `SchemaContextProviderProps` | ||
- `StorageContextProviderProps` | ||
- `GraphiQLProviderProps` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,13 @@ | |
"description": "GraphQL mode and helpers for CodeMirror.", | ||
"contributors": [ | ||
"Hyohyeon Jeong <[email protected]>", | ||
"Lee Byron <[email protected]> (http://leebyron.com/)", | ||
"Lee Byron <[email protected]> (https://leebyron.com)", | ||
"Angel Gomez Salazar <[email protected]>" | ||
], | ||
"homepage": "https://github.com/graphql/graphiql/tree/main/packages/codemirror-graphql#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "http://github.com/graphql/graphiql", | ||
"url": "https://github.com/graphql/graphiql", | ||
"directory": "packages/codemirror-graphql" | ||
}, | ||
"bugs": { | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# `@graphiql/plugin-history` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"name": "@graphiql/plugin-history", | ||
"version": "0.0.0", | ||
"sideEffects": false, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/graphql/graphiql", | ||
"directory": "packages/graphiql-plugin-history" | ||
}, | ||
"homepage": "https://github.com/graphql/graphiql/tree/master/packages/graphiql-plugin-history#readme", | ||
"bugs": { | ||
"url": "https://github.com/graphql/graphiql/issues?q=issue+label:@graphiql/plugin-history" | ||
}, | ||
"license": "MIT", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
"./style.css": "./dist/style.css", | ||
".": "./dist/index.js" | ||
}, | ||
"types": "dist/index.d.ts", | ||
"keywords": [ | ||
"react", | ||
"graphql", | ||
"graphiql", | ||
"plugin", | ||
"history" | ||
], | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"dev": "vite build --watch", | ||
"build": "vite build", | ||
"test": "vitest", | ||
"types:check": "tsc --noEmit" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18 || ^19", | ||
"react-dom": "^18 || ^19" | ||
}, | ||
"dependencies": { | ||
"react-compiler-runtime": "19.1.0-rc.1", | ||
"@graphiql/toolkit": "^0.11.2", | ||
"@graphiql/react": "^0.30.0" | ||
}, | ||
"devDependencies": { | ||
"@testing-library/react": "^16.1.0", | ||
"@vitejs/plugin-react": "^4.4.1", | ||
"vite-plugin-dts": "^4.5.3", | ||
"babel-plugin-react-compiler": "19.1.0-rc.1", | ||
"react": "^19.1.0", | ||
"react-dom": "^19.1.0", | ||
"vite": "^6.3.4" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { GraphiQLPlugin, HistoryIcon } from '@graphiql/react'; | ||
import './style.css'; | ||
|
||
import { History } from './components'; | ||
|
||
export const HISTORY_PLUGIN: GraphiQLPlugin = { | ||
title: 'History', | ||
icon: HistoryIcon, | ||
content: History, | ||
}; | ||
|
||
export { History }; | ||
|
||
export { | ||
HistoryContext, | ||
HistoryContextProvider, | ||
useHistoryContext, | ||
type HistoryContextType, | ||
} from './context'; |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "../graphiql-react/tsconfig.json" | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.