@liveblocks/react-blocknote
Version:
An integration of BlockNote + React to enable collaboration, comments, live cursors, and more with Liveblocks.
1 lines • 1.24 kB
Source Map (JSON)
{"version":3,"file":"HistoryVersionPreview.cjs","sources":["../../src/version-history/HistoryVersionPreview.tsx"],"sourcesContent":["import type {\n BlockNoteEditor,\n BlockSchema,\n DefaultBlockSchema,\n DefaultInlineContentSchema,\n DefaultStyleSchema,\n InlineContentSchema,\n StyleSchema,\n} from \"@blocknote/core\";\nimport { HistoryVersionPreview as TipTapHistoryVersionPreview } from \"@liveblocks/react-tiptap\";\nimport type { Editor } from \"@tiptap/core\";\n\ntype HistoryVersionPreviewProps<\n B extends BlockSchema = DefaultBlockSchema,\n I extends InlineContentSchema = DefaultInlineContentSchema,\n S extends StyleSchema = DefaultStyleSchema,\n> = Omit<Parameters<typeof TipTapHistoryVersionPreview>[0], \"editor\"> & {\n editor: BlockNoteEditor<B, I, S>;\n};\n\nexport function HistoryVersionPreview(props: HistoryVersionPreviewProps) {\n return (\n <TipTapHistoryVersionPreview\n {...props}\n editor={props.editor._tiptapEditor as unknown as Editor}\n />\n );\n}\n"],"names":["jsx","TipTapHistoryVersionPreview"],"mappings":";;;;;AAoBO,SAAS,sBAAsB,KAAmC,EAAA;AACvE,EAAA,uBACGA,cAAA,CAAAC,iCAAA,EAAA;AAAA,IACE,GAAG,KAAA;AAAA,IACJ,MAAA,EAAQ,MAAM,MAAO,CAAA,aAAA;AAAA,GACvB,CAAA,CAAA;AAEJ;;;;"}