Skip to content

Commit 0a939d4

Browse files
committed
Merge branch 'main' into switch-ydocs
2 parents 752d215 + 0ad2da6 commit 0a939d4

File tree

590 files changed

+4511
-3695
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

590 files changed

+4511
-3695
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
4+
title: ""
55
labels: bug
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

109
**Describe the bug**
@@ -14,7 +13,8 @@ assignees: ''
1413
<clear steps to reproduce are super helpful! Best is to provide an online sandbox, [click to create one](https://stackblitz.com/github/TypeCellOS/BlockNote/tree/main/examples/01-basic/01-minimal?file=App.tsx)>
1514

1615
**Misc**
16+
1717
- Node version:
1818
- Package manager:
19-
- Browser:
19+
- Browser:
2020
- [ ] I'm a [sponsor](https://github.com/sponsors/YousefED) and would appreciate if you could look into this sooner than later 💖

.github/ISSUE_TEMPLATE/feature_request.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
4+
title: ""
55
labels: enhancement
6-
assignees: ''
7-
6+
assignees: ""
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.prettierrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "http://json.schemastore.org/prettierrc",
3+
"semi": true,
4+
"singleQuote": false,
5+
"tabWidth": 2,
6+
"printWidth": 80,
7+
"trailingComma": "all",
8+
"bracketSpacing": true,
9+
"arrowParens": "always",
10+
"endOfLine": "lf",
11+
"plugins": ["prettier-plugin-tailwindcss"]
12+
}

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,4 @@
118118

119119
## Previous Versions
120120

121-
See [Github Releases](https://github.com/TypeCellOS/BlockNote/releases) for previous versions.
121+
See [Github Releases](https://github.com/TypeCellOS/BlockNote/releases) for previous versions.

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pnpm start
3939
## Packages
4040

4141
| Package | Size | Version |
42-
|--------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|
42+
| ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
4343
| [@blocknote/core](https://github.com/TypeCellOS/BlockNote/tree/main/packages/core) | <a href="https://bundlephobia.com/result?p=@blocknote/core@latest"><img src="https://img.shields.io/bundlephobia/minzip/@blocknote/core?color=%238ab4f8&label=gzip%20size"></a> | <a href="https://www.npmjs.com/package/@blocknote/core"><img src="https://img.shields.io/npm/v/@blocknote/core.svg?color=%23c1a8e2"></a> |
4444
| [@blocknote/react](https://github.com/TypeCellOS/BlockNote/tree/main/packages/react) | <a href="https://bundlephobia.com/result?p=@blocknote/react@latest"><img src="https://img.shields.io/bundlephobia/minzip/@blocknote/react?color=%238ab4f8&label=gzip%20size"></a> | <a href="https://www.npmjs.com/package/@blocknote/react"><img src="https://img.shields.io/npm/v/@blocknote/react?color=%23c1a8e2"></a> |
4545
| [@blocknote/ariakit](https://github.com/TypeCellOS/BlockNote/tree/main/packages/ariakit) | <a href="https://bundlephobia.com/result?p=@blocknote/ariakit@latest"><img src="https://img.shields.io/bundlephobia/minzip/@blocknote/ariakit?color=%238ab4f8&label=gzip%20size"></a> | <a href="https://www.npmjs.com/package/@blocknote/ariakit"><img src="https://img.shields.io/npm/v/@blocknote/ariakit?color=%23c1a8e2"></a> |

docs/.eslintrc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "next/core-web-vitals",
33
"parser": "@typescript-eslint/parser",
4-
"plugins": [ "@typescript-eslint"],
4+
"plugins": ["@typescript-eslint"],
55
"rules": {
66
"import/extensions": 0,
77
"@next/next/no-img-element": "off"

docs/app/api/auth/[...all]/route.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { auth } from "../../../../auth";
22
import { toNextJsHandler } from "better-auth/next-js";
3-
4-
export const { POST, GET } = toNextJsHandler(auth);
3+
4+
export const { POST, GET } = toNextJsHandler(auth);

docs/app/api/og/route.tsx

+10-5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export async function GET(request: Request) {
2020
height="172"
2121
viewBox="0 0 469 88"
2222
fill="none"
23-
xmlns="http://www.w3.org/2000/svg">
23+
xmlns="http://www.w3.org/2000/svg"
24+
>
2425
<path
2526
d="M118.411 67.2259V21.9073H140.552C146.249 21.9073 150.522 22.9863 153.371 25.1443C156.262 27.3023 157.708 30.1509 157.708 33.6901C157.708 36.0639 157.126 38.1357 155.96 39.9052C154.795 41.6317 153.198 42.9696 151.169 43.9192C149.141 44.8687 146.81 45.3435 144.177 45.3435L145.408 42.6891C148.256 42.6891 150.781 43.1639 152.982 44.1134C155.183 45.0198 156.888 46.3793 158.097 48.1921C159.348 50.0048 159.974 52.2276 159.974 54.8604C159.974 58.7448 158.442 61.7877 155.378 63.9888C152.313 66.1469 147.803 67.2259 141.847 67.2259H118.411ZM128.834 59.3275H141.07C143.789 59.3275 145.839 58.8959 147.22 58.0327C148.645 57.1263 149.357 55.702 149.357 53.7598C149.357 51.8607 148.645 50.458 147.22 49.5516C145.839 48.6021 143.789 48.1273 141.07 48.1273H128.057V40.4879H139.257C141.804 40.4879 143.746 40.0563 145.084 39.1931C146.465 38.2867 147.156 36.9272 147.156 35.1144C147.156 33.3448 146.465 32.0284 145.084 31.1652C143.746 30.2588 141.804 29.8057 139.257 29.8057H128.834V59.3275ZM167.202 67.2259V19.1882H177.302V67.2259H167.202ZM203.249 67.7438C199.537 67.7438 196.235 66.9669 193.344 65.4131C190.495 63.8594 188.229 61.7445 186.546 59.0685C184.906 56.3494 184.086 53.2634 184.086 49.8106C184.086 46.3146 184.906 43.2286 186.546 40.5526C188.229 37.8335 190.495 35.7187 193.344 34.208C196.235 32.6543 199.537 31.8774 203.249 31.8774C206.918 31.8774 210.198 32.6543 213.09 34.208C215.981 35.7187 218.247 37.8119 219.887 40.4879C221.527 43.1639 222.348 46.2714 222.348 49.8106C222.348 53.2634 221.527 56.3494 219.887 59.0685C218.247 61.7445 215.981 63.8594 213.09 65.4131C210.198 66.9669 206.918 67.7438 203.249 67.7438ZM203.249 59.457C204.932 59.457 206.443 59.0685 207.781 58.2916C209.119 57.5148 210.176 56.4142 210.953 54.9899C211.73 53.5224 212.118 51.796 212.118 49.8106C212.118 47.782 211.73 46.0556 210.953 44.6313C210.176 43.207 209.119 42.1064 207.781 41.3295C206.443 40.5526 204.932 40.1642 203.249 40.1642C201.566 40.1642 200.055 40.5526 198.717 41.3295C197.379 42.1064 196.3 43.207 195.48 44.6313C194.703 46.0556 194.315 47.782 194.315 49.8106C194.315 51.796 194.703 53.5224 195.48 54.9899C196.3 56.4142 197.379 57.5148 198.717 58.2916C200.055 59.0685 201.566 59.457 203.249 59.457ZM245.931 67.7438C242.176 67.7438 238.831 66.9885 235.896 65.4779C232.961 63.9241 230.652 61.7877 228.969 59.0685C227.329 56.3494 226.509 53.2634 226.509 49.8106C226.509 46.3146 227.329 43.2286 228.969 40.5526C230.652 37.8335 232.961 35.7187 235.896 34.208C238.831 32.6543 242.176 31.8774 245.931 31.8774C249.6 31.8774 252.793 32.6543 255.513 34.208C258.232 35.7187 260.239 37.8983 261.533 40.7469L253.7 44.955C252.793 43.3149 251.65 42.1064 250.269 41.3295C248.931 40.5526 247.463 40.1642 245.866 40.1642C244.14 40.1642 242.586 40.5526 241.205 41.3295C239.824 42.1064 238.723 43.207 237.903 44.6313C237.126 46.0556 236.738 47.782 236.738 49.8106C236.738 51.8391 237.126 53.5656 237.903 54.9899C238.723 56.4142 239.824 57.5148 241.205 58.2916C242.586 59.0685 244.14 59.457 245.866 59.457C247.463 59.457 248.931 59.0901 250.269 58.3564C251.65 57.5795 252.793 56.3494 253.7 54.6662L261.533 58.9391C260.239 61.7445 258.232 63.9241 255.513 65.4779C252.793 66.9885 249.6 67.7438 245.931 67.7438ZM275.51 60.1044L275.769 47.8036L292.019 32.3953H304.061L288.459 48.2568L283.215 52.5297L275.51 60.1044ZM267.159 67.2259V19.1882H277.258V67.2259H267.159ZM293.12 67.2259L281.337 52.5945L287.682 44.7608L305.356 67.2259H293.12ZM310.61 67.2259V21.9073H319.285L346.023 54.5367H341.815V21.9073H352.174V67.2259H343.563L316.76 34.5965H320.969V67.2259H310.61ZM378.757 67.7438C375.046 67.7438 371.744 66.9669 368.852 65.4131C366.004 63.8594 363.738 61.7445 362.054 59.0685C360.414 56.3494 359.594 53.2634 359.594 49.8106C359.594 46.3146 360.414 43.2286 362.054 40.5526C363.738 37.8335 366.004 35.7187 368.852 34.208C371.744 32.6543 375.046 31.8774 378.757 31.8774C382.426 31.8774 385.706 32.6543 388.598 34.208C391.49 35.7187 393.756 37.8119 395.396 40.4879C397.036 43.1639 397.856 46.2714 397.856 49.8106C397.856 53.2634 397.036 56.3494 395.396 59.0685C393.756 61.7445 391.49 63.8594 388.598 65.4131C385.706 66.9669 382.426 67.7438 378.757 67.7438ZM378.757 59.457C380.441 59.457 381.951 59.0685 383.289 58.2916C384.627 57.5148 385.685 56.4142 386.462 54.9899C387.239 53.5224 387.627 51.796 387.627 49.8106C387.627 47.782 387.239 46.0556 386.462 44.6313C385.685 43.207 384.627 42.1064 383.289 41.3295C381.951 40.5526 380.441 40.1642 378.757 40.1642C377.074 40.1642 375.564 40.5526 374.226 41.3295C372.888 42.1064 371.809 43.207 370.989 44.6313C370.212 46.0556 369.823 47.782 369.823 49.8106C369.823 51.796 370.212 53.5224 370.989 54.9899C371.809 56.4142 372.888 57.5148 374.226 58.2916C375.564 59.0685 377.074 59.457 378.757 59.457ZM418.85 67.7438C414.75 67.7438 411.556 66.708 409.268 64.6363C406.981 62.5214 405.837 59.3922 405.837 55.2488V24.6911H415.936V55.1193C415.936 56.5868 416.325 57.7306 417.102 58.5506C417.879 59.3275 418.936 59.7159 420.274 59.7159C421.871 59.7159 423.231 59.2843 424.353 58.4211L427.072 65.5426C426.036 66.2764 424.784 66.8374 423.317 67.2259C421.893 67.5712 420.404 67.7438 418.85 67.7438ZM400.463 40.9411V33.1722H424.612V40.9411H400.463ZM448.952 67.7438C444.981 67.7438 441.485 66.9669 438.464 65.4131C435.486 63.8594 433.177 61.7445 431.537 59.0685C429.897 56.3494 429.077 53.2634 429.077 49.8106C429.077 46.3146 429.875 43.2286 431.472 40.5526C433.112 37.8335 435.335 35.7187 438.141 34.208C440.946 32.6543 444.118 31.8774 447.657 31.8774C451.067 31.8774 454.132 32.6111 456.851 34.0786C459.613 35.5029 461.793 37.5746 463.389 40.2937C464.986 42.9696 465.785 46.1851 465.785 49.9401C465.785 50.3285 465.763 50.7817 465.72 51.2996C465.677 51.7744 465.634 52.2276 465.591 52.6592H437.299V46.7678H460.282L456.397 48.5158C456.397 46.703 456.031 45.1277 455.297 43.7897C454.563 42.4517 453.549 41.4159 452.254 40.6821C450.959 39.9052 449.449 39.5168 447.722 39.5168C445.996 39.5168 444.464 39.9052 443.126 40.6821C441.831 41.4159 440.816 42.4733 440.083 43.8544C439.349 45.1924 438.982 46.7894 438.982 48.6453V50.199C438.982 52.0981 439.392 53.7814 440.212 55.2488C441.075 56.6731 442.262 57.7737 443.773 58.5506C445.327 59.2843 447.14 59.6512 449.211 59.6512C451.067 59.6512 452.686 59.3707 454.067 58.8096C455.491 58.2485 456.786 57.4069 457.951 56.2847L463.325 62.1114C461.728 63.9241 459.721 65.3268 457.304 66.3195C454.887 67.2691 452.103 67.7438 448.952 67.7438Z"
2627
fill="#2B3D69"
@@ -36,7 +37,8 @@ export async function GET(request: Request) {
3637
y1="11.1618"
3738
x2="28.624"
3839
y2="93.632"
39-
gradientUnits="userSpaceOnUse">
40+
gradientUnits="userSpaceOnUse"
41+
>
4042
<stop stop-color="#00EBE7" />
4143
<stop offset="1" stop-color="#6923BA" />
4244
</linearGradient>
@@ -54,7 +56,8 @@ export async function GET(request: Request) {
5456
height: "100%",
5557
justifyContent: "center",
5658
alignItems: "center",
57-
}}>
59+
}}
60+
>
5861
{bannerSVG}
5962
<div
6063
style={{
@@ -66,7 +69,8 @@ export async function GET(request: Request) {
6669
padding: "0 120px",
6770
lineHeight: 1.4,
6871
whiteSpace: "pre-wrap",
69-
}}>
72+
}}
73+
>
7074
{title}
7175
</div>
7276
</div>
@@ -81,7 +85,8 @@ export async function GET(request: Request) {
8185
height: "100%",
8286
justifyContent: "center",
8387
alignItems: "center",
84-
}}>
88+
}}
89+
>
8590
{bannerSVG}
8691
</div>
8792
);

docs/app/portal/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ export default function Me() {
1616
<pre>{JSON.stringify(session, null, 2)}</pre>
1717
</div>
1818
);
19-
};
19+
}

docs/components/AuthNavButton.tsx

+12-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export function AuthNavButton(props: any) {
1717
className={clsx(
1818
"nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 dark:nx-text-gray-400 md:nx-inline-block",
1919
"nx-py-1.5 nx-px-3 font-bold",
20-
)}>
20+
)}
21+
>
2122
💖 Thanks for subscribing! 💖
2223
</div>
2324
</Menu.Item>
@@ -30,7 +31,8 @@ export function AuthNavButton(props: any) {
3031
className={clsx(
3132
"nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block",
3233
"nx-py-1.5 nx-px-3 nx-transition-colors text-center",
33-
)}>
34+
)}
35+
>
3436
{session.data.planType === "free"
3537
? "Get BlockNote Pro"
3638
: "Manage my subscription"}
@@ -44,11 +46,13 @@ export function AuthNavButton(props: any) {
4446
className={clsx(
4547
"nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block",
4648
"nx-py-1.5 nx-px-3 nx-transition-colors",
47-
)}>
49+
)}
50+
>
4851
Sign out
4952
</button>
5053
</Menu.Item>,
51-
]}>
54+
]}
55+
>
5256
<UserImage user={session.data.user} />
5357
</NavbarMenu>
5458
) : (
@@ -79,13 +83,15 @@ function NavbarMenu({
7983
<Menu.Button
8084
className={
8185
"-nx-ml-2 nx-hidden nx-items-center nx-whitespace-nowrap nx-rounded nx-p-2 md:nx-inline-flex"
82-
}>
86+
}
87+
>
8388
{children}
8489
</Menu.Button>
8590
<Transition
8691
leave="nx-transition-opacity"
8792
leaveFrom="nx-opacity-100"
88-
leaveTo="nx-opacity-0">
93+
leaveTo="nx-opacity-0"
94+
>
8995
<Menu.Items className="nx-absolute nx-right-0 nx-z-20 nx-mt-1 nx-max-h-64 nx-min-w-full nx-overflow-auto nx-rounded-md nx-ring-1 nx-ring-black/5 nx-bg-white nx-py-1 nx-text-sm nx-shadow-lg dark:nx-ring-white/20 dark:nx-bg-neutral-800">
9096
{menuItems}
9197
</Menu.Items>

0 commit comments

Comments
 (0)