Skip to content

fix nextjs bug #158

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 2 commits into from
Mar 31, 2023
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
6 changes: 3 additions & 3 deletions examples/editor/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "@blocknote/example-editor",
"private": true,
"version": "0.5.0",
"version": "0.5.1",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"lint": "eslint src --max-warnings 0"
},
"dependencies": {
"@blocknote/core": "^0.5.0",
"@blocknote/react": "^0.5.0",
"@blocknote/core": "^0.5.1",
"@blocknote/react": "^0.5.1",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
4 changes: 2 additions & 2 deletions examples/vanilla/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "@blocknote/example-vanilla",
"private": true,
"version": "0.5.0",
"version": "0.5.1",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"lint": "eslint src --max-warnings 0"
},
"dependencies": {
"@blocknote/core": "^0.5.0"
"@blocknote/core": "^0.5.1"
},
"devDependencies": {
"eslint": "^8.10.0",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": false,
"useWorkspaces": true,
"version": "0.5.0"
"version": "0.5.1"
}
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"homepage": "https://github.com/TypeCellOS/BlockNote",
"private": false,
"license": "MPL-2.0",
"version": "0.5.0",
"version": "0.5.1",
"files": [
"dist",
"types",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/editor.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Tippy popups that are appended to document.body directly
.defaultStyles h2,
.defaultStyles h3,
.defaultStyles li {
all: unset;
all: unset !important;
margin: 0;
padding: 0;
font-size: inherit;
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"homepage": "https://github.com/TypeCellOS/BlockNote",
"private": false,
"license": "MPL-2.0",
"version": "0.5.0",
"version": "0.5.1",
"files": [
"dist",
"types",
Expand Down Expand Up @@ -46,7 +46,7 @@
"lint": "eslint src --max-warnings 0"
},
"dependencies": {
"@blocknote/core": "^0.5.0",
"@blocknote/core": "^0.5.1",
"@emotion/react": "^11.10.5",
"@mantine/core": "^5.6.1",
"@mantine/hooks": "^5.6.1",
Expand Down
7 changes: 4 additions & 3 deletions packages/react/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export const isAppleOS = () =>
/Mac/.test(navigator.platform) ||
(/AppleWebKit/.test(navigator.userAgent) &&
/Mobile\/\w+/.test(navigator.userAgent));
typeof navigator !== "undefined" &&
(/Mac/.test(navigator.platform) ||
(/AppleWebKit/.test(navigator.userAgent) &&
/Mobile\/\w+/.test(navigator.userAgent)));

export function formatKeyboardShortcut(shortcut: string) {
if (isAppleOS()) {
Expand Down
4 changes: 2 additions & 2 deletions packages/website/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "blocknote-website",
"private": true,
"version": "0.5.0",
"version": "0.5.1",
"description": "Website for BlockNote",
"main": "index.js",
"scripts": {
Expand All @@ -12,7 +12,7 @@
"author": "",
"license": "MPL-2.0",
"dependencies": {
"@blocknote/react": "^0.5.0",
"@blocknote/react": "^0.5.1",
"veaury": "^2.3.12",
"vue-github-button": "^3.1.0"
},
Expand Down