@liveblocks/react-blocknote 3.21.0-exp4 → 3.21.0-exp5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BlockNoteLiveblocksExtension.cjs +4 -3
- package/dist/BlockNoteLiveblocksExtension.cjs.map +1 -1
- package/dist/BlockNoteLiveblocksExtension.js +4 -3
- package/dist/BlockNoteLiveblocksExtension.js.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/package.json +7 -7
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
var reactTiptap = require('@liveblocks/react-tiptap');
|
|
4
4
|
|
|
5
5
|
const useLiveblocksExtension = (options = {}) => {
|
|
6
|
-
const
|
|
6
|
+
const tiptapOptions = {
|
|
7
7
|
...options,
|
|
8
|
-
|
|
8
|
+
mentionNodes: false,
|
|
9
9
|
textEditorType: "blocknote"
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
|
+
const extension = reactTiptap.useLiveblocksExtension(tiptapOptions);
|
|
11
12
|
extension.config.extendMarkSchema = (mark) => {
|
|
12
13
|
if (mark.name === "liveblocksCommentMark") {
|
|
13
14
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockNoteLiveblocksExtension.cjs","sources":["../src/BlockNoteLiveblocksExtension.ts"],"sourcesContent":["import { useLiveblocksExtension as useTipTapLiveblocksExtension } from \"@liveblocks/react-tiptap\";\nimport type { Mark } from \"@tiptap/core\";\n\nexport type LiveblocksExtensionOptions = NonNullable<\n Parameters<typeof useTipTapLiveblocksExtension>[0]\n>;\n\nexport const useLiveblocksExtension = (\n options: LiveblocksExtensionOptions = {}\n) => {\n const
|
|
1
|
+
{"version":3,"file":"BlockNoteLiveblocksExtension.cjs","sources":["../src/BlockNoteLiveblocksExtension.ts"],"sourcesContent":["import { useLiveblocksExtension as useTipTapLiveblocksExtension } from \"@liveblocks/react-tiptap\";\nimport type { Mark } from \"@tiptap/core\";\n\nexport type LiveblocksExtensionOptions = NonNullable<\n Parameters<typeof useTipTapLiveblocksExtension>[0]\n>;\n\ntype InternalLiveblocksExtensionOptions = LiveblocksExtensionOptions & {\n mentionNodes: boolean;\n textEditorType: \"blocknote\";\n};\n\nexport const useLiveblocksExtension = (\n options: LiveblocksExtensionOptions = {}\n) => {\n const tiptapOptions: InternalLiveblocksExtensionOptions = {\n ...options,\n mentionNodes: false,\n textEditorType: \"blocknote\",\n };\n const extension = useTipTapLiveblocksExtension(tiptapOptions);\n\n extension.config.extendMarkSchema = (mark: Mark) => {\n if (mark.name === \"liveblocksCommentMark\") {\n return {\n blocknoteIgnore: true,\n };\n }\n return {};\n };\n\n return extension;\n};\n"],"names":["useTipTapLiveblocksExtension"],"mappings":";;;;AAYO,MAAM,sBAAyB,GAAA,CACpC,OAAsC,GAAA,EACnC,KAAA;AACH,EAAA,MAAM,aAAoD,GAAA;AAAA,IACxD,GAAG,OAAA;AAAA,IACH,YAAc,EAAA,KAAA;AAAA,IACd,cAAgB,EAAA,WAAA;AAAA,GAClB,CAAA;AACA,EAAM,MAAA,SAAA,GAAYA,mCAA6B,aAAa,CAAA,CAAA;AAE5D,EAAU,SAAA,CAAA,MAAA,CAAO,gBAAmB,GAAA,CAAC,IAAe,KAAA;AAClD,IAAI,IAAA,IAAA,CAAK,SAAS,uBAAyB,EAAA;AACzC,MAAO,OAAA;AAAA,QACL,eAAiB,EAAA,IAAA;AAAA,OACnB,CAAA;AAAA,KACF;AACA,IAAA,OAAO,EAAC,CAAA;AAAA,GACV,CAAA;AAEA,EAAO,OAAA,SAAA,CAAA;AACT;;;;"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { useLiveblocksExtension as useLiveblocksExtension$1 } from '@liveblocks/react-tiptap';
|
|
2
2
|
|
|
3
3
|
const useLiveblocksExtension = (options = {}) => {
|
|
4
|
-
const
|
|
4
|
+
const tiptapOptions = {
|
|
5
5
|
...options,
|
|
6
|
-
|
|
6
|
+
mentionNodes: false,
|
|
7
7
|
textEditorType: "blocknote"
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
|
+
const extension = useLiveblocksExtension$1(tiptapOptions);
|
|
9
10
|
extension.config.extendMarkSchema = (mark) => {
|
|
10
11
|
if (mark.name === "liveblocksCommentMark") {
|
|
11
12
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockNoteLiveblocksExtension.js","sources":["../src/BlockNoteLiveblocksExtension.ts"],"sourcesContent":["import { useLiveblocksExtension as useTipTapLiveblocksExtension } from \"@liveblocks/react-tiptap\";\nimport type { Mark } from \"@tiptap/core\";\n\nexport type LiveblocksExtensionOptions = NonNullable<\n Parameters<typeof useTipTapLiveblocksExtension>[0]\n>;\n\nexport const useLiveblocksExtension = (\n options: LiveblocksExtensionOptions = {}\n) => {\n const
|
|
1
|
+
{"version":3,"file":"BlockNoteLiveblocksExtension.js","sources":["../src/BlockNoteLiveblocksExtension.ts"],"sourcesContent":["import { useLiveblocksExtension as useTipTapLiveblocksExtension } from \"@liveblocks/react-tiptap\";\nimport type { Mark } from \"@tiptap/core\";\n\nexport type LiveblocksExtensionOptions = NonNullable<\n Parameters<typeof useTipTapLiveblocksExtension>[0]\n>;\n\ntype InternalLiveblocksExtensionOptions = LiveblocksExtensionOptions & {\n mentionNodes: boolean;\n textEditorType: \"blocknote\";\n};\n\nexport const useLiveblocksExtension = (\n options: LiveblocksExtensionOptions = {}\n) => {\n const tiptapOptions: InternalLiveblocksExtensionOptions = {\n ...options,\n mentionNodes: false,\n textEditorType: \"blocknote\",\n };\n const extension = useTipTapLiveblocksExtension(tiptapOptions);\n\n extension.config.extendMarkSchema = (mark: Mark) => {\n if (mark.name === \"liveblocksCommentMark\") {\n return {\n blocknoteIgnore: true,\n };\n }\n return {};\n };\n\n return extension;\n};\n"],"names":["useTipTapLiveblocksExtension"],"mappings":";;AAYO,MAAM,sBAAyB,GAAA,CACpC,OAAsC,GAAA,EACnC,KAAA;AACH,EAAA,MAAM,aAAoD,GAAA;AAAA,IACxD,GAAG,OAAA;AAAA,IACH,YAAc,EAAA,KAAA;AAAA,IACd,cAAgB,EAAA,WAAA;AAAA,GAClB,CAAA;AACA,EAAM,MAAA,SAAA,GAAYA,yBAA6B,aAAa,CAAA,CAAA;AAE5D,EAAU,SAAA,CAAA,MAAA,CAAO,gBAAmB,GAAA,CAAC,IAAe,KAAA;AAClD,IAAI,IAAA,IAAA,CAAK,SAAS,uBAAyB,EAAA;AACzC,MAAO,OAAA;AAAA,QACL,eAAiB,EAAA,IAAA;AAAA,OACnB,CAAA;AAAA,KACF;AACA,IAAA,OAAO,EAAC,CAAA;AAAA,GACV,CAAA;AAEA,EAAO,OAAA,SAAA,CAAA;AACT;;;;"}
|
package/dist/version.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const PKG_NAME = "@liveblocks/react-blocknote";
|
|
4
|
-
const PKG_VERSION = typeof "3.21.0-
|
|
4
|
+
const PKG_VERSION = typeof "3.21.0-exp5" === "string" && "3.21.0-exp5";
|
|
5
5
|
const PKG_FORMAT = typeof "cjs" === "string" && "cjs";
|
|
6
6
|
|
|
7
7
|
exports.PKG_FORMAT = PKG_FORMAT;
|
package/dist/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const PKG_NAME = "@liveblocks/react-blocknote";
|
|
2
|
-
const PKG_VERSION = typeof "3.21.0-
|
|
2
|
+
const PKG_VERSION = typeof "3.21.0-exp5" === "string" && "3.21.0-exp5";
|
|
3
3
|
const PKG_FORMAT = typeof "esm" === "string" && "esm";
|
|
4
4
|
|
|
5
5
|
export { PKG_FORMAT, PKG_NAME, PKG_VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react-blocknote",
|
|
3
|
-
"version": "3.21.0-
|
|
3
|
+
"version": "3.21.0-exp5",
|
|
4
4
|
"description": "An integration of BlockNote + React to enable collaboration, comments, live cursors, and more with Liveblocks.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Liveblocks Inc.",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"README.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@liveblocks/client": "3.21.0-
|
|
37
|
-
"@liveblocks/react
|
|
38
|
-
"@liveblocks/
|
|
39
|
-
"@liveblocks/
|
|
40
|
-
"@liveblocks/react-ui": "3.21.0-
|
|
41
|
-
"@liveblocks/yjs": "3.21.0-
|
|
36
|
+
"@liveblocks/client": "3.21.0-exp5",
|
|
37
|
+
"@liveblocks/react": "3.21.0-exp5",
|
|
38
|
+
"@liveblocks/react-tiptap": "3.21.0-exp5",
|
|
39
|
+
"@liveblocks/core": "3.21.0-exp5",
|
|
40
|
+
"@liveblocks/react-ui": "3.21.0-exp5",
|
|
41
|
+
"@liveblocks/yjs": "3.21.0-exp5"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@blocknote/core": ">=0.43",
|