@liveblocks/react-blocknote 2.22.4-emails2 → 2.23.0

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/index.d.cts CHANGED
@@ -26,7 +26,7 @@ type FloatingThreadsProps<B extends BlockSchema = DefaultBlockSchema, I extends
26
26
  declare function FloatingThreads(props: FloatingThreadsProps): react_jsx_runtime.JSX.Element;
27
27
 
28
28
  /**
29
- * Helper funcction to add Liveblocks support to BlockNoteEditorOptions
29
+ * Helper function to add Liveblocks support to BlockNoteEditorOptions
30
30
  */
31
31
  declare const withLiveblocksEditorOptions: <B extends BlockSchema = _blocknote_core.BlockSchemaFromSpecs<{
32
32
  paragraph: {
package/dist/index.d.ts CHANGED
@@ -26,7 +26,7 @@ type FloatingThreadsProps<B extends BlockSchema = DefaultBlockSchema, I extends
26
26
  declare function FloatingThreads(props: FloatingThreadsProps): react_jsx_runtime.JSX.Element;
27
27
 
28
28
  /**
29
- * Helper funcction to add Liveblocks support to BlockNoteEditorOptions
29
+ * Helper function to add Liveblocks support to BlockNoteEditorOptions
30
30
  */
31
31
  declare const withLiveblocksEditorOptions: <B extends BlockSchema = _blocknote_core.BlockSchemaFromSpecs<{
32
32
  paragraph: {
@@ -2,11 +2,20 @@
2
2
 
3
3
  var schema = require('./schema.cjs');
4
4
 
5
- const withLiveblocksEditorOptions = (liveblocksExtension, blocknoteOptions = {}, liveblocksOptions = {}) => ({
6
- schema: schema.withLiveblocksSchema(blocknoteOptions.schema, liveblocksOptions),
7
- _extensions: { liveblocksExtension, ...blocknoteOptions._extensions },
8
- disableExtensions: ["history", ...blocknoteOptions.disableExtensions || []]
9
- });
5
+ const withLiveblocksEditorOptions = (liveblocksExtension, blocknoteOptions = {}, liveblocksOptions = {}) => {
6
+ const {
7
+ schema: blocknoteSchema,
8
+ _extensions: blocknoteExtensions,
9
+ disableExtensions: blocknoteDisableExtensions,
10
+ ...extraBlocknoteOptions
11
+ } = blocknoteOptions;
12
+ return {
13
+ schema: schema.withLiveblocksSchema(blocknoteSchema, liveblocksOptions),
14
+ _extensions: { liveblocksExtension, ...blocknoteExtensions },
15
+ disableExtensions: ["history", ...blocknoteDisableExtensions || []],
16
+ ...extraBlocknoteOptions
17
+ };
18
+ };
10
19
 
11
20
  exports.withLiveblocksEditorOptions = withLiveblocksEditorOptions;
12
21
  //# sourceMappingURL=liveblocksEditorOptions.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"liveblocksEditorOptions.cjs","sources":["../../src/initialization/liveblocksEditorOptions.ts"],"sourcesContent":["import type {\n BlockNoteEditorOptions,\n BlockSchema,\n DefaultBlockSchema,\n DefaultInlineContentSchema,\n DefaultStyleSchema,\n InlineContentSchema,\n StyleSchema,\n} from \"@blocknote/core\";\nimport type { Extension } from \"@tiptap/core\";\n\nimport { withLiveblocksSchema } from \"./schema\";\n/**\n * Helper funcction 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,\n blocknoteOptions: Partial<BlockNoteEditorOptions<B, I, S>> = {},\n liveblocksOptions: Partial<{ mentions: boolean }> = {}\n): Partial<BlockNoteEditorOptions<B, I, S>> => ({\n // add the liveblocks schema (i.e.: add the mention node to the schema)\n schema: withLiveblocksSchema(blocknoteOptions.schema, liveblocksOptions),\n\n // add the liveblocks extension\n _extensions: { liveblocksExtension, ...blocknoteOptions._extensions },\n\n // disable the history extension\n disableExtensions: [\"history\", ...(blocknoteOptions.disableExtensions || [])],\n});\n"],"names":["withLiveblocksSchema"],"mappings":";;;;AAea,MAAA,2BAAA,GAA8B,CAKzC,mBACA,EAAA,gBAAA,GAA6D,EAC7D,EAAA,iBAAA,GAAoD,EACN,MAAA;AAAA,EAE9C,MAAQ,EAAAA,2BAAA,CAAqB,gBAAiB,CAAA,MAAA,EAAQ,iBAAiB,CAAA;AAAA,EAGvE,WAAa,EAAA,EAAE,mBAAqB,EAAA,GAAG,iBAAiB,WAAY,EAAA;AAAA,EAGpE,mBAAmB,CAAC,SAAA,EAAW,GAAI,gBAAiB,CAAA,iBAAA,IAAqB,EAAG,CAAA;AAC9E,CAAA;;;;"}
1
+ {"version":3,"file":"liveblocksEditorOptions.cjs","sources":["../../src/initialization/liveblocksEditorOptions.ts"],"sourcesContent":["import type {\n BlockNoteEditorOptions,\n BlockSchema,\n DefaultBlockSchema,\n DefaultInlineContentSchema,\n DefaultStyleSchema,\n InlineContentSchema,\n 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,\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 mention node to the schema)\n schema: withLiveblocksSchema(blocknoteSchema, liveblocksOptions),\n\n // add the liveblocks extension\n _extensions: { liveblocksExtension, ...blocknoteExtensions },\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"],"mappings":";;;;AAea,MAAA,2BAAA,GAA8B,CAKzC,mBACA,EAAA,gBAAA,GAA6D,EAC7D,EAAA,iBAAA,GAAoD,EACP,KAAA;AAC7C,EAAM,MAAA;AAAA,IACJ,MAAQ,EAAA,eAAA;AAAA,IACR,WAAa,EAAA,mBAAA;AAAA,IACb,iBAAmB,EAAA,0BAAA;AAAA,IAChB,GAAA,qBAAA;AAAA,GACD,GAAA,gBAAA,CAAA;AAEJ,EAAO,OAAA;AAAA,IAEL,MAAA,EAAQA,2BAAqB,CAAA,eAAA,EAAiB,iBAAiB,CAAA;AAAA,IAG/D,WAAa,EAAA,EAAE,mBAAqB,EAAA,GAAG,mBAAoB,EAAA;AAAA,IAG3D,mBAAmB,CAAC,SAAA,EAAW,GAAI,0BAAA,IAA8B,EAAG,CAAA;AAAA,IAGpE,GAAG,qBAAA;AAAA,GACL,CAAA;AACF;;;;"}
@@ -1,10 +1,19 @@
1
1
  import { withLiveblocksSchema } from './schema.js';
2
2
 
3
- const withLiveblocksEditorOptions = (liveblocksExtension, blocknoteOptions = {}, liveblocksOptions = {}) => ({
4
- schema: withLiveblocksSchema(blocknoteOptions.schema, liveblocksOptions),
5
- _extensions: { liveblocksExtension, ...blocknoteOptions._extensions },
6
- disableExtensions: ["history", ...blocknoteOptions.disableExtensions || []]
7
- });
3
+ const withLiveblocksEditorOptions = (liveblocksExtension, blocknoteOptions = {}, liveblocksOptions = {}) => {
4
+ const {
5
+ schema: blocknoteSchema,
6
+ _extensions: blocknoteExtensions,
7
+ disableExtensions: blocknoteDisableExtensions,
8
+ ...extraBlocknoteOptions
9
+ } = blocknoteOptions;
10
+ return {
11
+ schema: withLiveblocksSchema(blocknoteSchema, liveblocksOptions),
12
+ _extensions: { liveblocksExtension, ...blocknoteExtensions },
13
+ disableExtensions: ["history", ...blocknoteDisableExtensions || []],
14
+ ...extraBlocknoteOptions
15
+ };
16
+ };
8
17
 
9
18
  export { withLiveblocksEditorOptions };
10
19
  //# sourceMappingURL=liveblocksEditorOptions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"liveblocksEditorOptions.js","sources":["../../src/initialization/liveblocksEditorOptions.ts"],"sourcesContent":["import type {\n BlockNoteEditorOptions,\n BlockSchema,\n DefaultBlockSchema,\n DefaultInlineContentSchema,\n DefaultStyleSchema,\n InlineContentSchema,\n StyleSchema,\n} from \"@blocknote/core\";\nimport type { Extension } from \"@tiptap/core\";\n\nimport { withLiveblocksSchema } from \"./schema\";\n/**\n * Helper funcction 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,\n blocknoteOptions: Partial<BlockNoteEditorOptions<B, I, S>> = {},\n liveblocksOptions: Partial<{ mentions: boolean }> = {}\n): Partial<BlockNoteEditorOptions<B, I, S>> => ({\n // add the liveblocks schema (i.e.: add the mention node to the schema)\n schema: withLiveblocksSchema(blocknoteOptions.schema, liveblocksOptions),\n\n // add the liveblocks extension\n _extensions: { liveblocksExtension, ...blocknoteOptions._extensions },\n\n // disable the history extension\n disableExtensions: [\"history\", ...(blocknoteOptions.disableExtensions || [])],\n});\n"],"names":[],"mappings":";;AAea,MAAA,2BAAA,GAA8B,CAKzC,mBACA,EAAA,gBAAA,GAA6D,EAC7D,EAAA,iBAAA,GAAoD,EACN,MAAA;AAAA,EAE9C,MAAQ,EAAA,oBAAA,CAAqB,gBAAiB,CAAA,MAAA,EAAQ,iBAAiB,CAAA;AAAA,EAGvE,WAAa,EAAA,EAAE,mBAAqB,EAAA,GAAG,iBAAiB,WAAY,EAAA;AAAA,EAGpE,mBAAmB,CAAC,SAAA,EAAW,GAAI,gBAAiB,CAAA,iBAAA,IAAqB,EAAG,CAAA;AAC9E,CAAA;;;;"}
1
+ {"version":3,"file":"liveblocksEditorOptions.js","sources":["../../src/initialization/liveblocksEditorOptions.ts"],"sourcesContent":["import type {\n BlockNoteEditorOptions,\n BlockSchema,\n DefaultBlockSchema,\n DefaultInlineContentSchema,\n DefaultStyleSchema,\n InlineContentSchema,\n 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,\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 mention node to the schema)\n schema: withLiveblocksSchema(blocknoteSchema, liveblocksOptions),\n\n // add the liveblocks extension\n _extensions: { liveblocksExtension, ...blocknoteExtensions },\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":";;AAea,MAAA,2BAAA,GAA8B,CAKzC,mBACA,EAAA,gBAAA,GAA6D,EAC7D,EAAA,iBAAA,GAAoD,EACP,KAAA;AAC7C,EAAM,MAAA;AAAA,IACJ,MAAQ,EAAA,eAAA;AAAA,IACR,WAAa,EAAA,mBAAA;AAAA,IACb,iBAAmB,EAAA,0BAAA;AAAA,IAChB,GAAA,qBAAA;AAAA,GACD,GAAA,gBAAA,CAAA;AAEJ,EAAO,OAAA;AAAA,IAEL,MAAA,EAAQ,oBAAqB,CAAA,eAAA,EAAiB,iBAAiB,CAAA;AAAA,IAG/D,WAAa,EAAA,EAAE,mBAAqB,EAAA,GAAG,mBAAoB,EAAA;AAAA,IAG3D,mBAAmB,CAAC,SAAA,EAAW,GAAI,0BAAA,IAA8B,EAAG,CAAA;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 "2.22.4-emails2" === "string" && "2.22.4-emails2";
4
+ const PKG_VERSION = typeof "2.23.0" === "string" && "2.23.0";
5
5
  const PKG_FORMAT = typeof "cjs" === "string" && "cjs";
6
6
 
7
7
  exports.PKG_FORMAT = PKG_FORMAT;
@@ -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,gBAAA,KAAgB,QAAY,IAAA,iBAAA;AACjD,MAAA,UAAA,GAAa,OAAO,KAAA,KAAkB,QAAY,IAAA;;;;;;"}
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,QAAA,KAAgB,QAAY,IAAA,SAAA;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 "2.22.4-emails2" === "string" && "2.22.4-emails2";
2
+ const PKG_VERSION = typeof "2.23.0" === "string" && "2.23.0";
3
3
  const PKG_FORMAT = typeof "esm" === "string" && "esm";
4
4
 
5
5
  export { PKG_FORMAT, PKG_NAME, PKG_VERSION };
@@ -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,gBAAA,KAAgB,QAAY,IAAA,iBAAA;AACjD,MAAA,UAAA,GAAa,OAAO,KAAA,KAAkB,QAAY,IAAA;;;;"}
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,QAAA,KAAgB,QAAY,IAAA,SAAA;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": "2.22.4-emails2",
3
+ "version": "2.23.0",
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
  "type": "module",
@@ -42,12 +42,12 @@
42
42
  "test:watch": "vitest"
43
43
  },
44
44
  "dependencies": {
45
- "@liveblocks/client": "2.22.4-emails2",
46
- "@liveblocks/core": "2.22.4-emails2",
47
- "@liveblocks/react": "2.22.4-emails2",
48
- "@liveblocks/react-tiptap": "2.22.4-emails2",
49
- "@liveblocks/react-ui": "2.22.4-emails2",
50
- "@liveblocks/yjs": "2.22.4-emails2",
45
+ "@liveblocks/client": "2.23.0",
46
+ "@liveblocks/core": "2.23.0",
47
+ "@liveblocks/react": "2.23.0",
48
+ "@liveblocks/react-tiptap": "2.23.0",
49
+ "@liveblocks/react-ui": "2.23.0",
50
+ "@liveblocks/yjs": "2.23.0",
51
51
  "@tiptap/core": "^2.7.2",
52
52
  "vitest-tsconfig-paths": "^3.4.1"
53
53
  },