Updated deps
This commit is contained in:
parent
8c98f0796b
commit
fe52ded606
File diff suppressed because it is too large
Load Diff
50
package.json
50
package.json
|
@ -22,41 +22,41 @@
|
|||
"@fontsource/share-tech-mono": "^4.5.9",
|
||||
"@fontsource/vollkorn": "^4.5.14",
|
||||
"@fontsource/zen-maru-gothic": "^4.5.16",
|
||||
"@formatjs/icu-messageformat-parser": "^2.1.14",
|
||||
"@formatjs/icu-messageformat-parser": "^2.2.0",
|
||||
"@tippyjs/react": "^4.2.6",
|
||||
"autoprefixer": "^10.4.13",
|
||||
"cuid": "^2.1.8",
|
||||
"intl-messageformat": "^10.2.5",
|
||||
"intl-messageformat": "^10.3.0",
|
||||
"isomorphic-dompurify": "^0.26.0",
|
||||
"jotai": "^1.13.1",
|
||||
"markdown-to-jsx": "^7.1.8",
|
||||
"jotai": "^2.0.0",
|
||||
"markdown-to-jsx": "^7.1.9",
|
||||
"marked": "^4.2.12",
|
||||
"material-symbols": "^0.4.2",
|
||||
"meilisearch": "^0.30.0",
|
||||
"next": "^13.1.5",
|
||||
"nodemailer": "^6.9.0",
|
||||
"rc-slider": "^10.1.0",
|
||||
"material-symbols": "^0.4.4",
|
||||
"meilisearch": "^0.31.1",
|
||||
"next": "^13.1.6",
|
||||
"nodemailer": "^6.9.1",
|
||||
"rc-slider": "^10.1.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"react-hotkeys-hook": "^3.4.7",
|
||||
"react-swipeable": "^7.0.0",
|
||||
"react-zoom-pan-pinch": "^2.2.1",
|
||||
"react-zoom-pan-pinch": "^2.5.0",
|
||||
"string-natural-compare": "^3.0.1",
|
||||
"throttle-debounce": "^5.0.0",
|
||||
"tippy.js": "^6.3.7",
|
||||
"turndown": "^7.1.1",
|
||||
"ua-parser-js": "^1.0.33",
|
||||
"usehooks-ts": "^2.9.1",
|
||||
"zod": "^3.20.2"
|
||||
"zod": "^3.20.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@digitak/esrun": "^3.2.18",
|
||||
"@graphql-codegen/cli": "^2.16.4",
|
||||
"@graphql-codegen/typescript": "2.8.7",
|
||||
"@digitak/esrun": "^3.2.19",
|
||||
"@graphql-codegen/cli": "^3.0.0",
|
||||
"@graphql-codegen/typescript": "3.0.0",
|
||||
"@graphql-codegen/typescript-graphql-request": "^4.5.8",
|
||||
"@graphql-codegen/typescript-operations": "^2.5.12",
|
||||
"@graphql-codegen/typescript-operations": "^3.0.0",
|
||||
"@types/marked": "^4.0.8",
|
||||
"@types/node": "18.11.18",
|
||||
"@types/node": "18.13.0",
|
||||
"@types/nodemailer": "^6.4.7",
|
||||
"@types/react": "^18.0.27",
|
||||
"@types/react-dom": "^18.0.10",
|
||||
|
@ -64,20 +64,20 @@
|
|||
"@types/throttle-debounce": "^5.0.0",
|
||||
"@types/turndown": "^5.0.1",
|
||||
"@types/ua-parser-js": "^0.7.36",
|
||||
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
||||
"@typescript-eslint/parser": "^5.49.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.51.0",
|
||||
"@typescript-eslint/parser": "^5.51.0",
|
||||
"dotenv": "^16.0.3",
|
||||
"eslint": "^8.32.0",
|
||||
"eslint-config-next": "13.1.5",
|
||||
"eslint": "^8.33.0",
|
||||
"eslint-config-next": "13.1.6",
|
||||
"eslint-plugin-import": "^2.27.5",
|
||||
"graphql": "^16.6.0",
|
||||
"graphql-request": "^5.1.0",
|
||||
"next-sitemap": "^3.1.47",
|
||||
"prettier": "^2.8.3",
|
||||
"next-sitemap": "^3.1.50",
|
||||
"prettier": "^2.8.4",
|
||||
"prettier-plugin-tailwindcss": "^0.2.2",
|
||||
"tailwindcss": "^3.2.4",
|
||||
"ts-unused-exports": "^9.0.2",
|
||||
"typescript": "^4.9.4"
|
||||
"tailwindcss": "^3.2.6",
|
||||
"ts-unused-exports": "^9.0.3",
|
||||
"typescript": "^4.9.5"
|
||||
},
|
||||
"overrides": {
|
||||
"react-zoom-pan-pinch": {
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import { atom, PrimitiveAtom, Atom, WritableAtom, useAtom } from "jotai";
|
||||
import { Dispatch, SetStateAction } from "react";
|
||||
|
||||
type AtomPair<T> = [Atom<T>, WritableAtom<null, T>];
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-arguments
|
||||
type AtomPair<T> = [Atom<T>, WritableAtom<null, [newText: T], void>];
|
||||
|
||||
export const atomPairing = <T>(anAtom: PrimitiveAtom<T>): AtomPair<T> => {
|
||||
const getter = atom((get) => get(anAtom));
|
||||
|
|
Loading…
Reference in New Issue