Skip to content

Commit 6262696

Browse files
committed
fix(docs): demo page still imported the react-pdf exporter from the package root
The /demo page (outside the generated example trees) kept the old root import; local builds masked it by resolving a stale workspace dist. Point it at the deprecated /react-pdf subpath - migrating the demo's PDF action to the Typst-based PDFExporter rides the examples/docs follow-up pass.
1 parent 90e1426 commit 6262696

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎docs/app/demo/_components/DemoEditor.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ import {
4444
ODTExporter,
4545
odtDefaultSchemaMappings,
4646
} from "@blocknote/xl-odt-exporter";
47+
// The deprecated react-pdf exporter; the demo's PDF action migrates to the
48+
// Typst-based PDFExporter with the examples/docs pass for the new API.
4749
import {
4850
PDFExporter,
4951
pdfDefaultSchemaMappings,
50-
} from "@blocknote/xl-pdf-exporter";
52+
} from "@blocknote/xl-pdf-exporter/react-pdf";
5153
import { pdf } from "@react-pdf/renderer";
5254
import { DefaultChatTransport } from "ai";
5355
import { useTheme } from "next-themes";

0 commit comments

Comments
 (0)