@liveblocks/react-blocknote 3.21.0-exp10 → 3.21.0-exp11

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.
@@ -12,7 +12,7 @@ const useCreateBlockNoteWithLiveblocks = (blocknoteOptions = {}, liveblocksOptio
12
12
  blocknoteOptions,
13
13
  liveblocksOptions
14
14
  ),
15
- deps
15
+ [liveblocksExtension, ...deps]
16
16
  );
17
17
  };
18
18
 
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateBlockNoteWithLiveblocks.cjs","sources":["../../src/initialization/useCreateBlockNoteWithLiveblocks.ts"],"sourcesContent":["import type {\n BlockNoteEditorOptions,\n BlockSchema,\n DefaultBlockSchema,\n DefaultInlineContentSchema,\n DefaultStyleSchema,\n InlineContentSchema,\n StyleSchema,\n} from \"@blocknote/core\";\nimport { useCreateBlockNote } from \"@blocknote/react\";\nimport type { DependencyList } from \"react\";\n\nimport type { LiveblocksExtensionOptions } from \"../BlockNoteLiveblocksExtension\";\nimport { useLiveblocksExtension } from \"../BlockNoteLiveblocksExtension\";\nimport { withLiveblocksEditorOptions } from \"./liveblocksEditorOptions\";\n\n/**\n * Function that can be used instead of standard useCreateBlockNote to add Liveblocks support\n */\nexport const useCreateBlockNoteWithLiveblocks = <\n B extends BlockSchema = DefaultBlockSchema,\n I extends InlineContentSchema = DefaultInlineContentSchema,\n S extends StyleSchema = DefaultStyleSchema,\n>(\n blocknoteOptions: Partial<BlockNoteEditorOptions<B, I, S>> = {},\n liveblocksOptions?: LiveblocksExtensionOptions,\n deps: DependencyList = []\n) => {\n const liveblocksExtension = useLiveblocksExtension(liveblocksOptions);\n return useCreateBlockNote(\n withLiveblocksEditorOptions(\n liveblocksExtension,\n blocknoteOptions,\n liveblocksOptions\n ),\n deps\n );\n};\n"],"names":["useLiveblocksExtension","useCreateBlockNote","withLiveblocksEditorOptions"],"mappings":";;;;;;AAmBa,MAAA,gCAAA,GAAmC,CAK9C,gBAA6D,GAAA,IAC7D,iBACA,EAAA,IAAA,GAAuB,EACpB,KAAA;AACH,EAAM,MAAA,mBAAA,GAAsBA,oDAAuB,iBAAiB,CAAA,CAAA;AACpE,EAAO,OAAAC,wBAAA;AAAA,IACLC,mDAAA;AAAA,MACE,mBAAA;AAAA,MACA,gBAAA;AAAA,MACA,iBAAA;AAAA,KACF;AAAA,IACA,IAAA;AAAA,GACF,CAAA;AACF;;;;"}
1
+ {"version":3,"file":"useCreateBlockNoteWithLiveblocks.cjs","sources":["../../src/initialization/useCreateBlockNoteWithLiveblocks.ts"],"sourcesContent":["import type {\n BlockNoteEditorOptions,\n BlockSchema,\n DefaultBlockSchema,\n DefaultInlineContentSchema,\n DefaultStyleSchema,\n InlineContentSchema,\n StyleSchema,\n} from \"@blocknote/core\";\nimport { useCreateBlockNote } from \"@blocknote/react\";\nimport type { DependencyList } from \"react\";\n\nimport type { LiveblocksExtensionOptions } from \"../BlockNoteLiveblocksExtension\";\nimport { useLiveblocksExtension } from \"../BlockNoteLiveblocksExtension\";\nimport { withLiveblocksEditorOptions } from \"./liveblocksEditorOptions\";\n\n/**\n * Function that can be used instead of standard useCreateBlockNote to add Liveblocks support\n */\nexport const useCreateBlockNoteWithLiveblocks = <\n B extends BlockSchema = DefaultBlockSchema,\n I extends InlineContentSchema = DefaultInlineContentSchema,\n S extends StyleSchema = DefaultStyleSchema,\n>(\n blocknoteOptions: Partial<BlockNoteEditorOptions<B, I, S>> = {},\n liveblocksOptions?: LiveblocksExtensionOptions,\n deps: DependencyList = []\n) => {\n const liveblocksExtension = useLiveblocksExtension(liveblocksOptions);\n return useCreateBlockNote(\n withLiveblocksEditorOptions(\n liveblocksExtension,\n blocknoteOptions,\n liveblocksOptions\n ),\n [liveblocksExtension, ...deps]\n );\n};\n"],"names":["useLiveblocksExtension","useCreateBlockNote","withLiveblocksEditorOptions"],"mappings":";;;;;;AAmBa,MAAA,gCAAA,GAAmC,CAK9C,gBAA6D,GAAA,IAC7D,iBACA,EAAA,IAAA,GAAuB,EACpB,KAAA;AACH,EAAM,MAAA,mBAAA,GAAsBA,oDAAuB,iBAAiB,CAAA,CAAA;AACpE,EAAO,OAAAC,wBAAA;AAAA,IACLC,mDAAA;AAAA,MACE,mBAAA;AAAA,MACA,gBAAA;AAAA,MACA,iBAAA;AAAA,KACF;AAAA,IACA,CAAC,mBAAqB,EAAA,GAAG,IAAI,CAAA;AAAA,GAC/B,CAAA;AACF;;;;"}
@@ -10,7 +10,7 @@ const useCreateBlockNoteWithLiveblocks = (blocknoteOptions = {}, liveblocksOptio
10
10
  blocknoteOptions,
11
11
  liveblocksOptions
12
12
  ),
13
- deps
13
+ [liveblocksExtension, ...deps]
14
14
  );
15
15
  };
16
16
 
@@ -1 +1 @@
1
- {"version":3,"file":"useCreateBlockNoteWithLiveblocks.js","sources":["../../src/initialization/useCreateBlockNoteWithLiveblocks.ts"],"sourcesContent":["import type {\n BlockNoteEditorOptions,\n BlockSchema,\n DefaultBlockSchema,\n DefaultInlineContentSchema,\n DefaultStyleSchema,\n InlineContentSchema,\n StyleSchema,\n} from \"@blocknote/core\";\nimport { useCreateBlockNote } from \"@blocknote/react\";\nimport type { DependencyList } from \"react\";\n\nimport type { LiveblocksExtensionOptions } from \"../BlockNoteLiveblocksExtension\";\nimport { useLiveblocksExtension } from \"../BlockNoteLiveblocksExtension\";\nimport { withLiveblocksEditorOptions } from \"./liveblocksEditorOptions\";\n\n/**\n * Function that can be used instead of standard useCreateBlockNote to add Liveblocks support\n */\nexport const useCreateBlockNoteWithLiveblocks = <\n B extends BlockSchema = DefaultBlockSchema,\n I extends InlineContentSchema = DefaultInlineContentSchema,\n S extends StyleSchema = DefaultStyleSchema,\n>(\n blocknoteOptions: Partial<BlockNoteEditorOptions<B, I, S>> = {},\n liveblocksOptions?: LiveblocksExtensionOptions,\n deps: DependencyList = []\n) => {\n const liveblocksExtension = useLiveblocksExtension(liveblocksOptions);\n return useCreateBlockNote(\n withLiveblocksEditorOptions(\n liveblocksExtension,\n blocknoteOptions,\n liveblocksOptions\n ),\n deps\n );\n};\n"],"names":[],"mappings":";;;;AAmBa,MAAA,gCAAA,GAAmC,CAK9C,gBAA6D,GAAA,IAC7D,iBACA,EAAA,IAAA,GAAuB,EACpB,KAAA;AACH,EAAM,MAAA,mBAAA,GAAsB,uBAAuB,iBAAiB,CAAA,CAAA;AACpE,EAAO,OAAA,kBAAA;AAAA,IACL,2BAAA;AAAA,MACE,mBAAA;AAAA,MACA,gBAAA;AAAA,MACA,iBAAA;AAAA,KACF;AAAA,IACA,IAAA;AAAA,GACF,CAAA;AACF;;;;"}
1
+ {"version":3,"file":"useCreateBlockNoteWithLiveblocks.js","sources":["../../src/initialization/useCreateBlockNoteWithLiveblocks.ts"],"sourcesContent":["import type {\n BlockNoteEditorOptions,\n BlockSchema,\n DefaultBlockSchema,\n DefaultInlineContentSchema,\n DefaultStyleSchema,\n InlineContentSchema,\n StyleSchema,\n} from \"@blocknote/core\";\nimport { useCreateBlockNote } from \"@blocknote/react\";\nimport type { DependencyList } from \"react\";\n\nimport type { LiveblocksExtensionOptions } from \"../BlockNoteLiveblocksExtension\";\nimport { useLiveblocksExtension } from \"../BlockNoteLiveblocksExtension\";\nimport { withLiveblocksEditorOptions } from \"./liveblocksEditorOptions\";\n\n/**\n * Function that can be used instead of standard useCreateBlockNote to add Liveblocks support\n */\nexport const useCreateBlockNoteWithLiveblocks = <\n B extends BlockSchema = DefaultBlockSchema,\n I extends InlineContentSchema = DefaultInlineContentSchema,\n S extends StyleSchema = DefaultStyleSchema,\n>(\n blocknoteOptions: Partial<BlockNoteEditorOptions<B, I, S>> = {},\n liveblocksOptions?: LiveblocksExtensionOptions,\n deps: DependencyList = []\n) => {\n const liveblocksExtension = useLiveblocksExtension(liveblocksOptions);\n return useCreateBlockNote(\n withLiveblocksEditorOptions(\n liveblocksExtension,\n blocknoteOptions,\n liveblocksOptions\n ),\n [liveblocksExtension, ...deps]\n );\n};\n"],"names":[],"mappings":";;;;AAmBa,MAAA,gCAAA,GAAmC,CAK9C,gBAA6D,GAAA,IAC7D,iBACA,EAAA,IAAA,GAAuB,EACpB,KAAA;AACH,EAAM,MAAA,mBAAA,GAAsB,uBAAuB,iBAAiB,CAAA,CAAA;AACpE,EAAO,OAAA,kBAAA;AAAA,IACL,2BAAA;AAAA,MACE,mBAAA;AAAA,MACA,gBAAA;AAAA,MACA,iBAAA;AAAA,KACF;AAAA,IACA,CAAC,mBAAqB,EAAA,GAAG,IAAI,CAAA;AAAA,GAC/B,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.21.0-exp10" === "string" && "3.21.0-exp10";
4
+ const PKG_VERSION = typeof "3.21.0-exp11" === "string" && "3.21.0-exp11";
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-exp10" === "string" && "3.21.0-exp10";
2
+ const PKG_VERSION = typeof "3.21.0-exp11" === "string" && "3.21.0-exp11";
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-exp10",
3
+ "version": "3.21.0-exp11",
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-exp10",
37
- "@liveblocks/react": "3.21.0-exp10",
38
- "@liveblocks/core": "3.21.0-exp10",
39
- "@liveblocks/react-tiptap": "3.21.0-exp10",
40
- "@liveblocks/react-ui": "3.21.0-exp10",
41
- "@liveblocks/yjs": "3.21.0-exp10"
36
+ "@liveblocks/core": "3.21.0-exp11",
37
+ "@liveblocks/react": "3.21.0-exp11",
38
+ "@liveblocks/client": "3.21.0-exp11",
39
+ "@liveblocks/react-ui": "3.21.0-exp11",
40
+ "@liveblocks/react-tiptap": "3.21.0-exp11",
41
+ "@liveblocks/yjs": "3.21.0-exp11"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@blocknote/core": ">=0.43",