chore(npm): update dependencies

This commit is contained in:
Paul Chavard 2023-09-01 11:04:34 +02:00 committed by simon lehericey
parent ed814a7ef7
commit 65de28a97c
4 changed files with 1015 additions and 440 deletions

View file

@ -20,7 +20,8 @@ module.exports = {
'prettier/prettier': 'error', 'prettier/prettier': 'error',
'react-hooks/rules-of-hooks': 'error', 'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error', 'react-hooks/exhaustive-deps': 'error',
'react/prop-types': 'off' 'react/prop-types': 'off',
'react/no-deprecated': 'off'
}, },
settings: { settings: {
react: { version: 'detect' } react: { version: 'detect' }

View file

@ -1,5 +1,5 @@
import { createGraphiQLFetcher } from '@graphiql/toolkit'; import { createGraphiQLFetcher } from '@graphiql/toolkit';
import { useExplorerPlugin } from '@graphiql/plugin-explorer'; import { explorerPlugin } from '@graphiql/plugin-explorer';
import { GraphiQL } from 'graphiql'; import { GraphiQL } from 'graphiql';
import { createElement, useState } from 'react'; import { createElement, useState } from 'react';
import { createRoot } from 'react-dom/client'; import { createRoot } from 'react-dom/client';
@ -17,15 +17,11 @@ const fetcher = createGraphiQLFetcher({
function GraphiQLWithExplorer() { function GraphiQLWithExplorer() {
const [query, setQuery] = useState(defaultQuery); const [query, setQuery] = useState(defaultQuery);
const explorerPlugin = useExplorerPlugin({ const explorer = explorerPlugin({ showAttribution: false });
query: query ?? '',
onEdit: setQuery,
showAttribution: false
});
return createElement(GraphiQL, { return createElement(GraphiQL, {
fetcher: fetcher, fetcher: fetcher,
defaultEditorToolsVisibility: true, defaultEditorToolsVisibility: true,
plugins: [explorerPlugin], plugins: [explorer],
query: query, query: query,
variables: defaultVariables, variables: defaultVariables,
onEditQuery: setQuery, onEditQuery: setQuery,

View file

@ -4,20 +4,20 @@
"@coldwired/turbo-stream": "^0.11.1", "@coldwired/turbo-stream": "^0.11.1",
"@coldwired/utils": "^0.11.1", "@coldwired/utils": "^0.11.1",
"@gouvfr/dsfr": "^1.10.1", "@gouvfr/dsfr": "^1.10.1",
"@graphiql/plugin-explorer": "^0.2.0", "@graphiql/plugin-explorer": "^0.3.4",
"@graphiql/toolkit": "^0.8.4", "@graphiql/toolkit": "^0.9.1",
"@headlessui/react": "^1.6.6", "@headlessui/react": "^1.6.6",
"@heroicons/react": "^1.0.6", "@heroicons/react": "^1.0.6",
"@hotwired/stimulus": "^3.2.1", "@hotwired/stimulus": "^3.2.2",
"@hotwired/turbo": "^7.3.0", "@hotwired/turbo": "^7.3.0",
"@mapbox/mapbox-gl-draw": "^1.3.0", "@mapbox/mapbox-gl-draw": "^1.3.0",
"@popperjs/core": "^2.11.7", "@popperjs/core": "^2.11.8",
"@rails/actiontext": "^7.0.6", "@rails/actiontext": "^7.0.7-2",
"@rails/activestorage": "^7.0.6", "@rails/activestorage": "^7.0.7-2",
"@rails/ujs": "^7.0.6", "@rails/ujs": "^7.0.7-2",
"@reach/combobox": "^0.17.0", "@reach/combobox": "^0.17.0",
"@reach/slider": "^0.17.0", "@reach/slider": "^0.17.0",
"@sentry/browser": "7.57.0", "@sentry/browser": "7.66.0",
"@stimulus/polyfills": "^2.0.0", "@stimulus/polyfills": "^2.0.0",
"@tmcw/togeojson": "^5.6.0", "@tmcw/togeojson": "^5.6.0",
"chartkick": "^5.0.1", "chartkick": "^5.0.1",
@ -27,8 +27,8 @@
"dom4": "^2.1.6", "dom4": "^2.1.6",
"email-butler": "^1.0.13", "email-butler": "^1.0.13",
"geojson": "^0.5.0", "geojson": "^0.5.0",
"graphiql": "^3.0.0", "graphiql": "^3.0.5",
"graphql": "^16.7.1", "graphql": "^16.8.0",
"highcharts": "^10.3.3", "highcharts": "^10.3.3",
"intersection-observer": "^0.12.2", "intersection-observer": "^0.12.2",
"is-hotkey": "^0.2.0", "is-hotkey": "^0.2.0",
@ -47,7 +47,7 @@
"trix": "^1.2.3", "trix": "^1.2.3",
"turbo-polyfills": "^0.5.0", "turbo-polyfills": "^0.5.0",
"use-debounce": "^9.0.4", "use-debounce": "^9.0.4",
"whatwg-fetch": "^3.0.0", "whatwg-fetch": "^3.6.18",
"yet-another-abortcontroller-polyfill": "^0.0.4", "yet-another-abortcontroller-polyfill": "^0.0.4",
"zod": "^3.20.2" "zod": "^3.20.2"
}, },
@ -61,27 +61,27 @@
"@types/rails__ujs": "^6.0.1", "@types/rails__ujs": "^6.0.1",
"@types/react": "^17.0.43", "@types/react": "^17.0.43",
"@types/react-dom": "^17.0.14", "@types/react-dom": "^17.0.14",
"@types/sortablejs": "^1.15.1", "@types/sortablejs": "^1.15.2",
"@typescript-eslint/eslint-plugin": "^5.61.0", "@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^5.61.0", "@typescript-eslint/parser": "^6.5.0",
"@vitejs/plugin-legacy": "^4.0.3", "@vitejs/plugin-legacy": "^4.0.3",
"@vitejs/plugin-react": "^4.0.0", "@vitejs/plugin-react": "^4.0.0",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.15",
"axe-core": "^4.7.2", "axe-core": "^4.7.2",
"del-cli": "^5.0.0", "del-cli": "^5.1.0",
"eslint": "^8.44.0", "eslint": "^8.48.0",
"eslint-config-prettier": "^8.8.0", "eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.32.2", "eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-hooks": "^4.6.0",
"jsdom": "^22.0.0", "jsdom": "^22.1.0",
"postcss": "^8.4.23", "postcss": "^8.4.29",
"prettier": "^2.8.8", "prettier": "^3.0.3",
"typescript": "^5.0.4", "typescript": "^5.2.2",
"vite": "^4.3.9", "vite": "^4.3.9",
"vite-plugin-full-reload": "^1.0.5", "vite-plugin-full-reload": "^1.0.5",
"vite-plugin-ruby": "^3.2.2", "vite-plugin-ruby": "^3.2.2",
"vitest": "^0.31.0" "vitest": "^0.34.3"
}, },
"scripts": { "scripts": {
"clean": "del tmp public/graphql && bin/vite clobber", "clean": "del tmp public/graphql && bin/vite clobber",

1392
yarn.lock

File diff suppressed because it is too large Load diff