@liveblocks/react-blocknote 3.15.0-feeds2 → 3.15.0-rc1
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/initialization/liveblocksEditorOptions.cjs +2 -1
- package/dist/initialization/liveblocksEditorOptions.cjs.map +1 -1
- package/dist/initialization/liveblocksEditorOptions.js +3 -2
- package/dist/initialization/liveblocksEditorOptions.js.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +9 -9
|
@@ -15,7 +15,8 @@ const withLiveblocksEditorOptions = (liveblocksExtension, blocknoteOptions = {},
|
|
|
15
15
|
schema: schema.withLiveblocksSchema(blocknoteSchema, liveblocksOptions),
|
|
16
16
|
// add the liveblocks extension
|
|
17
17
|
extensions: [
|
|
18
|
-
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
19
|
+
core.createExtension({
|
|
19
20
|
key: "liveblocksExtension",
|
|
20
21
|
tiptapExtensions: [liveblocksExtension]
|
|
21
22
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveblocksEditorOptions.cjs","sources":["../../src/initialization/liveblocksEditorOptions.ts"],"sourcesContent":["import {\n type BlockNoteEditorOptions,\n type BlockSchema,\n
|
|
1
|
+
{"version":3,"file":"liveblocksEditorOptions.cjs","sources":["../../src/initialization/liveblocksEditorOptions.ts"],"sourcesContent":["import {\n type BlockNoteEditorOptions,\n type BlockSchema,\n createExtension,\n type DefaultBlockSchema,\n type DefaultInlineContentSchema,\n type DefaultStyleSchema,\n type InlineContentSchema,\n type StyleSchema,\n} from \"@blocknote/core\";\nimport type { Extension } from \"@tiptap/core\";\n\nimport { withLiveblocksSchema } from \"./schema\";\n/**\n * Helper function to add Liveblocks support to BlockNoteEditorOptions\n */\nexport const withLiveblocksEditorOptions = <\n B extends BlockSchema = DefaultBlockSchema,\n I extends InlineContentSchema = DefaultInlineContentSchema,\n S extends StyleSchema = DefaultStyleSchema,\n>(\n liveblocksExtension: Extension<any, any>,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n blocknoteOptions: Partial<BlockNoteEditorOptions<B, I, S>> = {},\n liveblocksOptions: Partial<{ mentions: boolean }> = {}\n): Partial<BlockNoteEditorOptions<B, I, S>> => {\n const {\n schema: blocknoteSchema,\n extensions: blocknoteExtensions,\n disableExtensions: blocknoteDisableExtensions,\n ...extraBlocknoteOptions\n } = blocknoteOptions;\n\n return {\n // add the liveblocks schema (i.e.: add the mentions nodes to the schema)\n schema: withLiveblocksSchema(blocknoteSchema, liveblocksOptions),\n\n // add the liveblocks extension\n extensions: [\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n createExtension({\n key: \"liveblocksExtension\",\n tiptapExtensions: [liveblocksExtension],\n }),\n ...(blocknoteExtensions ?? []),\n ],\n\n // disable the history extension\n disableExtensions: [\"history\", ...(blocknoteDisableExtensions || [])],\n\n // pass the rest of the options through\n ...extraBlocknoteOptions,\n };\n};\n"],"names":["withLiveblocksSchema","createExtension"],"mappings":";;;;;AAgBa,MAAA,2BAAA,GAA8B,CAKzC,mBAEA,EAAA,gBAAA,GAA6D,EAC7D,EAAA,iBAAA,GAAoD,EACP,KAAA;AAC7C,EAAM,MAAA;AAAA,IACJ,MAAQ,EAAA,eAAA;AAAA,IACR,UAAY,EAAA,mBAAA;AAAA,IACZ,iBAAmB,EAAA,0BAAA;AAAA,IACnB,GAAG,qBAAA;AAAA,GACD,GAAA,gBAAA,CAAA;AAEJ,EAAO,OAAA;AAAA;AAAA,IAEL,MAAA,EAAQA,2BAAqB,CAAA,eAAA,EAAiB,iBAAiB,CAAA;AAAA;AAAA,IAG/D,UAAY,EAAA;AAAA;AAAA,MAEVC,oBAAgB,CAAA;AAAA,QACd,GAAK,EAAA,qBAAA;AAAA,QACL,gBAAA,EAAkB,CAAC,mBAAmB,CAAA;AAAA,OACvC,CAAA;AAAA,MACD,GAAI,uBAAuB,EAAC;AAAA,KAC9B;AAAA;AAAA,IAGA,mBAAmB,CAAC,SAAA,EAAW,GAAI,0BAAA,IAA8B,EAAG,CAAA;AAAA;AAAA,IAGpE,GAAG,qBAAA;AAAA,GACL,CAAA;AACF;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createExtension } from '@blocknote/core';
|
|
2
2
|
import { withLiveblocksSchema } from './schema.js';
|
|
3
3
|
|
|
4
4
|
const withLiveblocksEditorOptions = (liveblocksExtension, blocknoteOptions = {}, liveblocksOptions = {}) => {
|
|
@@ -13,7 +13,8 @@ const withLiveblocksEditorOptions = (liveblocksExtension, blocknoteOptions = {},
|
|
|
13
13
|
schema: withLiveblocksSchema(blocknoteSchema, liveblocksOptions),
|
|
14
14
|
// add the liveblocks extension
|
|
15
15
|
extensions: [
|
|
16
|
-
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
17
|
+
createExtension({
|
|
17
18
|
key: "liveblocksExtension",
|
|
18
19
|
tiptapExtensions: [liveblocksExtension]
|
|
19
20
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveblocksEditorOptions.js","sources":["../../src/initialization/liveblocksEditorOptions.ts"],"sourcesContent":["import {\n type BlockNoteEditorOptions,\n type BlockSchema,\n
|
|
1
|
+
{"version":3,"file":"liveblocksEditorOptions.js","sources":["../../src/initialization/liveblocksEditorOptions.ts"],"sourcesContent":["import {\n type BlockNoteEditorOptions,\n type BlockSchema,\n createExtension,\n type DefaultBlockSchema,\n type DefaultInlineContentSchema,\n type DefaultStyleSchema,\n type InlineContentSchema,\n type StyleSchema,\n} from \"@blocknote/core\";\nimport type { Extension } from \"@tiptap/core\";\n\nimport { withLiveblocksSchema } from \"./schema\";\n/**\n * Helper function to add Liveblocks support to BlockNoteEditorOptions\n */\nexport const withLiveblocksEditorOptions = <\n B extends BlockSchema = DefaultBlockSchema,\n I extends InlineContentSchema = DefaultInlineContentSchema,\n S extends StyleSchema = DefaultStyleSchema,\n>(\n liveblocksExtension: Extension<any, any>,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n blocknoteOptions: Partial<BlockNoteEditorOptions<B, I, S>> = {},\n liveblocksOptions: Partial<{ mentions: boolean }> = {}\n): Partial<BlockNoteEditorOptions<B, I, S>> => {\n const {\n schema: blocknoteSchema,\n extensions: blocknoteExtensions,\n disableExtensions: blocknoteDisableExtensions,\n ...extraBlocknoteOptions\n } = blocknoteOptions;\n\n return {\n // add the liveblocks schema (i.e.: add the mentions nodes to the schema)\n schema: withLiveblocksSchema(blocknoteSchema, liveblocksOptions),\n\n // add the liveblocks extension\n extensions: [\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n createExtension({\n key: \"liveblocksExtension\",\n tiptapExtensions: [liveblocksExtension],\n }),\n ...(blocknoteExtensions ?? []),\n ],\n\n // disable the history extension\n disableExtensions: [\"history\", ...(blocknoteDisableExtensions || [])],\n\n // pass the rest of the options through\n ...extraBlocknoteOptions,\n };\n};\n"],"names":[],"mappings":";;;AAgBa,MAAA,2BAAA,GAA8B,CAKzC,mBAEA,EAAA,gBAAA,GAA6D,EAC7D,EAAA,iBAAA,GAAoD,EACP,KAAA;AAC7C,EAAM,MAAA;AAAA,IACJ,MAAQ,EAAA,eAAA;AAAA,IACR,UAAY,EAAA,mBAAA;AAAA,IACZ,iBAAmB,EAAA,0BAAA;AAAA,IACnB,GAAG,qBAAA;AAAA,GACD,GAAA,gBAAA,CAAA;AAEJ,EAAO,OAAA;AAAA;AAAA,IAEL,MAAA,EAAQ,oBAAqB,CAAA,eAAA,EAAiB,iBAAiB,CAAA;AAAA;AAAA,IAG/D,UAAY,EAAA;AAAA;AAAA,MAEV,eAAgB,CAAA;AAAA,QACd,GAAK,EAAA,qBAAA;AAAA,QACL,gBAAA,EAAkB,CAAC,mBAAmB,CAAA;AAAA,OACvC,CAAA;AAAA,MACD,GAAI,uBAAuB,EAAC;AAAA,KAC9B;AAAA;AAAA,IAGA,mBAAmB,CAAC,SAAA,EAAW,GAAI,0BAAA,IAA8B,EAAG,CAAA;AAAA;AAAA,IAGpE,GAAG,qBAAA;AAAA,GACL,CAAA;AACF;;;;"}
|
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.15.0-
|
|
4
|
+
const PKG_VERSION = typeof "3.15.0-rc1" === "string" && "3.15.0-rc1";
|
|
5
5
|
const PKG_FORMAT = typeof "cjs" === "string" && "cjs";
|
|
6
6
|
|
|
7
7
|
exports.PKG_FORMAT = PKG_FORMAT;
|
package/dist/version.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.cjs","sources":["../src/version.ts"],"sourcesContent":["declare const __VERSION__: string;\ndeclare const ROLLUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react-blocknote\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof ROLLUP_FORMAT === \"string\" && ROLLUP_FORMAT;\n"],"names":[],"mappings":";;AAGO,MAAM,QAAW,GAAA,8BAAA;AACX,MAAA,WAAA,GAAc,OAAO,
|
|
1
|
+
{"version":3,"file":"version.cjs","sources":["../src/version.ts"],"sourcesContent":["declare const __VERSION__: string;\ndeclare const ROLLUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react-blocknote\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof ROLLUP_FORMAT === \"string\" && ROLLUP_FORMAT;\n"],"names":[],"mappings":";;AAGO,MAAM,QAAW,GAAA,8BAAA;AACX,MAAA,WAAA,GAAc,OAAO,YAAA,KAAgB,QAAY,IAAA,aAAA;AACjD,MAAA,UAAA,GAAa,OAAO,KAAA,KAAkB,QAAY,IAAA;;;;;;"}
|
package/dist/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const PKG_NAME = "@liveblocks/react-blocknote";
|
|
2
|
-
const PKG_VERSION = typeof "3.15.0-
|
|
2
|
+
const PKG_VERSION = typeof "3.15.0-rc1" === "string" && "3.15.0-rc1";
|
|
3
3
|
const PKG_FORMAT = typeof "esm" === "string" && "esm";
|
|
4
4
|
|
|
5
5
|
export { PKG_FORMAT, PKG_NAME, PKG_VERSION };
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../src/version.ts"],"sourcesContent":["declare const __VERSION__: string;\ndeclare const ROLLUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react-blocknote\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof ROLLUP_FORMAT === \"string\" && ROLLUP_FORMAT;\n"],"names":[],"mappings":"AAGO,MAAM,QAAW,GAAA,8BAAA;AACX,MAAA,WAAA,GAAc,OAAO,
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../src/version.ts"],"sourcesContent":["declare const __VERSION__: string;\ndeclare const ROLLUP_FORMAT: string;\n\nexport const PKG_NAME = \"@liveblocks/react-blocknote\";\nexport const PKG_VERSION = typeof __VERSION__ === \"string\" && __VERSION__;\nexport const PKG_FORMAT = typeof ROLLUP_FORMAT === \"string\" && ROLLUP_FORMAT;\n"],"names":[],"mappings":"AAGO,MAAM,QAAW,GAAA,8BAAA;AACX,MAAA,WAAA,GAAc,OAAO,YAAA,KAAgB,QAAY,IAAA,aAAA;AACjD,MAAA,UAAA,GAAa,OAAO,KAAA,KAAkB,QAAY,IAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liveblocks/react-blocknote",
|
|
3
|
-
"version": "3.15.0-
|
|
3
|
+
"version": "3.15.0-rc1",
|
|
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.",
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
"test:watch": "NODE_OPTIONS=\"--no-deprecation\" vitest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@liveblocks/client": "3.15.0-
|
|
48
|
-
"@liveblocks/core": "3.15.0-
|
|
49
|
-
"@liveblocks/react": "3.15.0-
|
|
50
|
-
"@liveblocks/react-tiptap": "3.15.0-
|
|
51
|
-
"@liveblocks/react-ui": "3.15.0-
|
|
52
|
-
"@liveblocks/yjs": "3.15.0-
|
|
47
|
+
"@liveblocks/client": "3.15.0-rc1",
|
|
48
|
+
"@liveblocks/core": "3.15.0-rc1",
|
|
49
|
+
"@liveblocks/react": "3.15.0-rc1",
|
|
50
|
+
"@liveblocks/react-tiptap": "3.15.0-rc1",
|
|
51
|
+
"@liveblocks/react-ui": "3.15.0-rc1",
|
|
52
|
+
"@liveblocks/yjs": "3.15.0-rc1",
|
|
53
53
|
"@tiptap/core": "^3.19.0",
|
|
54
54
|
"vitest-tsconfig-paths": "^3.4.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@blocknote/core": "0.
|
|
58
|
-
"@blocknote/react": "0.
|
|
57
|
+
"@blocknote/core": "0.43.0 - 1.0.0",
|
|
58
|
+
"@blocknote/react": "0.43.0 - 1.0.0",
|
|
59
59
|
"@tiptap/core": "^3.19.0",
|
|
60
60
|
"@types/react": "*",
|
|
61
61
|
"@types/react-dom": "*",
|