Skip to content

Commit eab029d

Browse files
committed
feat: add pages playground demo and stabilize pagination flow
1 parent 47355ee commit eab029d

9 files changed

Lines changed: 1348 additions & 131 deletions

File tree

apps/playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@mxm-editor/extension-list-keymap": "workspace:*",
2424
"@mxm-editor/extension-mathematics": "workspace:*",
2525
"@mxm-editor/extension-mention": "workspace:*",
26+
"@mxm-editor/extension-pages": "workspace:*",
2627
"@mxm-editor/extension-placeholder": "workspace:*",
2728
"@mxm-editor/extension-table": "workspace:*",
2829
"@mxm-editor/extension-task-item": "workspace:*",

apps/playground/src/App.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ import {
44
FileText,
55
MessageSquareText,
66
Moon,
7+
ScrollText,
78
Sun,
89
Users,
910
} from "lucide-react";
1011
import { CollaborationSection } from "./playground/components/CollaborationSection";
1112
import { CommentsSection } from "./playground/components/CommentsSection";
1213
import { LocalEditorSection } from "./playground/components/LocalEditorSection";
14+
import { PagesSection } from "./playground/components/PagesSection";
1315
import {
1416
getPlaygroundRouteHref,
1517
usePlaygroundRoute,
@@ -23,6 +25,10 @@ function RouteIcon({ routeId }: { routeId: PlaygroundRouteId }) {
2325
return <MessageSquareText size={16} strokeWidth={2} />;
2426
}
2527

28+
if (routeId === "pages") {
29+
return <ScrollText size={16} strokeWidth={2} />;
30+
}
31+
2632
if (routeId === "collaboration") {
2733
return <Users size={16} strokeWidth={2} />;
2834
}
@@ -39,6 +45,10 @@ export function App() {
3945
return <CommentsSection />;
4046
}
4147

48+
if (route.id === "pages") {
49+
return <PagesSection />;
50+
}
51+
4252
if (route.id === "collaboration") {
4353
return <CollaborationSection />;
4454
}

0 commit comments

Comments
 (0)