mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-06-01 07:26:48 +00:00
feat: update deps
This commit is contained in:
@@ -9,7 +9,7 @@ import BodyClassName from 'react-body-classname'
|
||||
import useDarkMode from 'use-dark-mode'
|
||||
import { PageBlock } from 'notion-types'
|
||||
|
||||
import { Tweet, Twitter } from 'react-static-tweets'
|
||||
import { Tweet, TwitterContextProvider } from 'react-static-tweets'
|
||||
|
||||
// core notion renderer
|
||||
import { NotionRenderer, Code, Collection, CollectionRow } from 'react-notion-x'
|
||||
@@ -161,7 +161,7 @@ export const NotionPage: React.FC<types.PageProps> = ({
|
||||
}
|
||||
|
||||
return (
|
||||
<Twitter.Provider
|
||||
<TwitterContextProvider
|
||||
value={{
|
||||
tweetAstMap: (recordMap as any).tweetAstMap || {},
|
||||
swrOptions: {
|
||||
@@ -281,6 +281,6 @@ export const NotionPage: React.FC<types.PageProps> = ({
|
||||
<GitHubShareButton />
|
||||
|
||||
<CustomHtml site={site} />
|
||||
</Twitter.Provider>
|
||||
</TwitterContextProvider>
|
||||
)
|
||||
}
|
||||
|
||||
34
package.json
34
package.json
@@ -34,42 +34,42 @@
|
||||
"got": "^11.8.1",
|
||||
"isomorphic-unfetch": "^3.1.0",
|
||||
"lqip-modern": "^1.1.3",
|
||||
"next": "^10.0.6",
|
||||
"notion-client": "^4.3.2",
|
||||
"next": "^10.1.3",
|
||||
"notion-client": "^4.4.0",
|
||||
"notion-types": "^4.3.0",
|
||||
"notion-utils": "^4.3.0",
|
||||
"notion-utils": "^4.4.0",
|
||||
"p-map": "^4.0.0",
|
||||
"p-memoize": "^4.0.0",
|
||||
"puppeteer-core": "^5.5.0",
|
||||
"puppeteer-social-image-transitive-bs": "^0.8.2",
|
||||
"react": "17.0.1",
|
||||
"react": "^17.0.2",
|
||||
"react-body-classname": "^1.3.1",
|
||||
"react-dom": "17.0.1",
|
||||
"react-dom": "^17.0.2",
|
||||
"react-icons": "^4.1.0",
|
||||
"react-notion-x": "^4.3.3",
|
||||
"react-static-tweets": "^0.2.6",
|
||||
"react-notion-x": "^4.4.0",
|
||||
"react-static-tweets": "^0.5.1",
|
||||
"react-use": "^15.3.3",
|
||||
"static-tweets": "^0.2.7",
|
||||
"static-tweets": "^0.5.1",
|
||||
"use-dark-mode": "^2.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next/bundle-analyzer": "^10.0.5",
|
||||
"@next/bundle-analyzer": "^10.1.3",
|
||||
"@types/classnames": "^2.2.10",
|
||||
"@types/node": "^14.14.22",
|
||||
"@types/react": "^17.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^4.14.1",
|
||||
"@typescript-eslint/parser": "^4.14.1",
|
||||
"@types/node": "^14.14.37",
|
||||
"@types/react": "^17.0.3",
|
||||
"@typescript-eslint/eslint-plugin": "^4.21.0",
|
||||
"@typescript-eslint/parser": "^4.21.0",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"cross-env": "^7.0.2",
|
||||
"eslint": "^7.18.0",
|
||||
"eslint-config-prettier": "^7.2.0",
|
||||
"eslint": "^7.23.0",
|
||||
"eslint-config-prettier": "^8.1.0",
|
||||
"eslint-config-standard": "^16.0.2",
|
||||
"eslint-config-standard-react": "^11.0.1",
|
||||
"eslint-plugin-import": "^2.21.2",
|
||||
"eslint-plugin-node": "^11.0.0",
|
||||
"eslint-plugin-prettier": "^3.1.1",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-react": "^7.18.0",
|
||||
"eslint-plugin-promise": "^4.3.1",
|
||||
"eslint-plugin-react": "^7.23.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^2.0.5",
|
||||
"puppeteer": "^5.5.0",
|
||||
|
||||
Reference in New Issue
Block a user