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