Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@
"lint": "next lint"
},
"dependencies": {
"@notionhq/client": "^3.1.3",
"@notionhq/client": "^4.0.1",
"@xennis/react-notion-cms-fetch": "workspace:*",
"@xennis/react-notion-cms-render": "workspace:*",
"highlight.js": "^11.11.1",
"next": "15.3.3",
"next": "15.3.5",
"prismjs": "^1.30.0",
"react": "19.1.0",
"react-dom": "19.1.0"
},
"devDependencies": {
"@tailwindcss/postcss": "^4.1.8",
"@types/node": "^22.15.29",
"@tailwindcss/postcss": "^4.1.11",
"@types/node": "^24.0.13",
"@types/prismjs": "^1.26.5",
"@types/react": "19.1.6",
"@types/react": "19.1.8",
"@types/react-dom": "19.1.6",
"postcss": "^8.5.4",
"tailwindcss": "^4.1.8",
"postcss": "^8.5.6",
"tailwindcss": "^4.1.11",
"typescript": "^5.8.3"
},
"pnpm": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"format": "prettier --write --ignore-path .prettierignore ."
},
"devDependencies": {
"prettier": "^3.5.3",
"prettier-plugin-tailwindcss": "^0.6.12",
"prettier": "^3.6.2",
"prettier-plugin-tailwindcss": "^0.6.14",
"typescript": "^5.8.3"
}
}
4 changes: 2 additions & 2 deletions packages/fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
],
"scripts": {
"build": "tsc --build",
"clean": "tcs --clean"
"clean": "tsc --clean"
},
"dependencies": {
"@notionhq/client": "^3.1.3"
"@notionhq/client": "^4.0.1"
}
}
4 changes: 2 additions & 2 deletions packages/render/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"watch": "tsc --watch"
},
"dependencies": {
"@notionhq/client": "^3.1.3"
"@notionhq/client": "^4.0.1"
},
"devDependencies": {
"@types/react": "^19.1.6"
"@types/react": "^19.1.8"
}
}
6 changes: 3 additions & 3 deletions packages/render/src/components/text.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type {
import {
MentionRichTextItemResponse,
RichTextItemResponse,
RichTextItemResponseCommon,
TextRichTextItemResponse,
} from "@notionhq/client/build/src/api-endpoints"

Expand Down Expand Up @@ -79,7 +80,7 @@ const FormattedText = ({
annotations,
children,
}: {
annotations: TextRichTextItemResponse["annotations"]
annotations: RichTextItemResponseCommon["annotations"]
children: React.ReactNode
}) => {
// ref: .notion-inline-underscore (+ b, i & s)
Expand Down Expand Up @@ -128,7 +129,6 @@ const mentionText = (value: MentionRichTextItemResponse, formatDateFn: (dateStri
case "link_preview":
return null
case "page":
return value.plain_text
case "template_mention":
case "user":
return null
Expand Down
Loading