Skip to content

Commit 447d9af

Browse files
feat: Trailing block extension rewrite (#2733)
* Made trailing block extension create trailing block as decoration instead of actual node, udpated tests & examples * Updated snapshots * Updated e2e test snapshots * Removed `pause` statements * Updated e2e test snapshots * Fixed lint * Updated e2e snapshots * Revert Playwright config * Updated e2e screenshots * Updated static renderig e2e snapshots with masked captions * Replaced ProseMirror API with BlockNote API in decoration * Reverted mask, made trailing block hidden when taking screenshot of live editor * Made trailing block decoration not show when editor is not editable * Updated editor option description
1 parent 41b9151 commit 447d9af

276 files changed

Lines changed: 407 additions & 4030 deletions

File tree

Some content is hidden

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

examples/01-basic/02-block-objects/src/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ export default function App() {
2626
type: "paragraph",
2727
content: "This is a paragraph block",
2828
},
29-
{
30-
type: "paragraph",
31-
},
3229
],
3330
});
3431

examples/01-basic/03-multi-column/src/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ export default function App() {
9090
},
9191
],
9292
},
93-
{
94-
type: "paragraph",
95-
},
9693
],
9794
});
9895

examples/01-basic/04-default-blocks/src/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ export default function App() {
145145
},
146146
],
147147
},
148-
{
149-
type: "paragraph",
150-
},
151148
],
152149
});
153150

examples/01-basic/07-selection-blocks/src/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ export default function App() {
2121
type: "paragraph",
2222
content: "Select different blocks to see the JSON change below",
2323
},
24-
{
25-
type: "paragraph",
26-
},
2724
],
2825
});
2926

examples/01-basic/12-multi-editor/src/App.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ export default function App() {
3535
type: "paragraph",
3636
content: "This is a block in the first editor",
3737
},
38-
{
39-
type: "paragraph",
40-
},
4138
]}
4239
/>
4340
<Editor
@@ -51,9 +48,6 @@ export default function App() {
5148
type: "paragraph",
5249
content: "Try dragging blocks from one editor to the other",
5350
},
54-
{
55-
type: "paragraph",
56-
},
5751
]}
5852
/>
5953
</div>

examples/01-basic/16-read-only-editor/src/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,6 @@ export default function App() {
145145
},
146146
],
147147
},
148-
{
149-
type: "paragraph",
150-
},
151148
],
152149
});
153150

examples/02-backend/01-file-uploading/src/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ export default function App() {
3333
{
3434
type: "image",
3535
},
36-
{
37-
type: "paragraph",
38-
},
3936
],
4037
uploadFile,
4138
});

examples/02-backend/03-s3/src/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ export default function App() {
8181
{
8282
type: "image",
8383
},
84-
{
85-
type: "paragraph",
86-
},
8784
],
8885
uploadFile: async (file) => {
8986
/**

examples/03-ui-components/01-ui-elements-remove/src/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ export default function App() {
2121
content:
2222
"Try making text bold with Ctrl+B/Cmd+B or undo with Ctrl+Z/Cmd+Z.",
2323
},
24-
{
25-
type: "paragraph",
26-
},
2724
],
2825
});
2926

examples/03-ui-components/02-formatting-toolbar-buttons/src/App.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ export default function App() {
104104
content:
105105
"Notice that the buttons don't appear when the image block above is selected, as it has no inline content.",
106106
},
107-
{
108-
type: "paragraph",
109-
},
110107
],
111108
});
112109

0 commit comments

Comments
 (0)