Skip to content

Commit c5b6638

Browse files
build(deps): bump the blocknote group across 3 directories with 4 updates (#2744)
Updates `@blocknote/core` from 0.37.0 to 0.39.1 Updates `@blocknote/server-util` from 0.37.0 to 0.39.1 Updates `@blocknote/mantine` from 0.37.0 to 0.39.1 Updates `@blocknote/react` from 0.37.0 to 0.39.1 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ascariandrea <[email protected]>
1 parent 73a51b4 commit c5b6638

File tree

7 files changed

+233
-223
lines changed

7 files changed

+233
-223
lines changed

packages/@liexp/shared/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
"src/**/*.(ts|tsx|js|jsx)": "eslint --fix"
2828
},
2929
"dependencies": {
30-
"@blocknote/core": "^0.37.0",
31-
"@blocknote/server-util": "^0.37.0",
30+
"@blocknote/core": "^0.39.1",
31+
"@blocknote/server-util": "^0.39.1",
3232
"@liexp/core": "workspace:*",
3333
"@ts-endpoint/core": "file:patches/ts-endpoint-core-0.1.0.tgz",
3434
"@ts-endpoint/react-admin": "file:patches/ts-endpoint-react-admin-0.1.0.tgz",

packages/@liexp/shared/src/providers/blocknote/EventBlock.specs.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@ import { EventType } from "../../io/http/Events/index.js";
44
const DEFAULT_ID = "missing-id";
55
const DEFAULT_TYPE = "missing-type";
66

7+
const propSchema = {
8+
id: {
9+
default: DEFAULT_ID,
10+
},
11+
type: {
12+
default: DEFAULT_TYPE as EventType | typeof DEFAULT_TYPE,
13+
values: [...EventType.members.map((v) => v.literals[0]), DEFAULT_TYPE],
14+
},
15+
};
16+
717
export const eventBlockSpecs = {
818
type: "event",
9-
propSchema: {
10-
id: {
11-
default: DEFAULT_ID,
12-
},
13-
type: {
14-
default: DEFAULT_TYPE as EventType | typeof DEFAULT_TYPE,
15-
values: [...EventType.members.map((v) => v.literals[0]), DEFAULT_TYPE],
16-
},
17-
},
19+
propSchema,
1820
content: "inline",
19-
} satisfies CustomBlockConfig;
21+
} satisfies CustomBlockConfig<string, typeof propSchema, "inline">;
2022

2123
export type EventBlockSpecs = typeof eventBlockSpecs;

packages/@liexp/shared/src/providers/blocknote/type.ts

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
import {
2-
type defaultStyleSpecs,
32
type BlockNoteSchema,
4-
type BlockSchema,
53
type BlockSchemaFromSpecs,
64
type BlockSpec,
7-
type InlineContentSchema,
5+
type defaultBlockSpecs,
6+
type defaultInlineContentSpecs,
7+
type defaultStyleSpecs,
88
type InlineContentSchemaFromSpecs,
99
type InlineContentSpec,
10-
type StyleSchema,
1110
type StyleSchemaFromSpecs,
12-
type defaultBlockSpecs,
13-
type defaultInlineContentSpecs,
1411
} from "@blocknote/core";
1512
import { type EventBlockSpecs } from "./EventBlock.specs";
1613
import { type MediaBlockSpecs } from "./MediaBlock.specs";
@@ -23,18 +20,8 @@ import { type RelationInlineSpec } from "./relationInline.specs";
2320
export type RealBlockNoteSchema = BlockNoteSchema<
2421
BlockSchemaFromSpecs<
2522
Omit<typeof defaultBlockSpecs, "image"> & {
26-
media: BlockSpec<
27-
MediaBlockSpecs,
28-
BlockSchema,
29-
InlineContentSchema,
30-
StyleSchema
31-
>;
32-
event: BlockSpec<
33-
EventBlockSpecs,
34-
BlockSchema,
35-
InlineContentSchema,
36-
StyleSchema
37-
>;
23+
media: BlockSpec<string, MediaBlockSpecs["propSchema"], "inline">;
24+
event: BlockSpec<string, EventBlockSpecs["propSchema"], "inline">;
3825
}
3926
>,
4027
InlineContentSchemaFromSpecs<

packages/@liexp/ui/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"src/**/*.(ts|tsx|js|jsx)": "eslint --fix"
2929
},
3030
"dependencies": {
31-
"@blocknote/core": "^0.37.0",
32-
"@blocknote/mantine": "^0.37.0",
33-
"@blocknote/react": "^0.37.0",
31+
"@blocknote/core": "^0.39.1",
32+
"@blocknote/mantine": "^0.39.1",
33+
"@blocknote/react": "^0.39.1",
3434
"@emotion/cache": "^11.14.0",
3535
"@emotion/css": "^11.13.5",
3636
"@emotion/react": "^11.14.0",

packages/@liexp/ui/src/components/Common/BlockNote/EditorSchema.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export const schema = BlockNoteSchema.create({
3131
},
3232
blockSpecs: {
3333
...otherBlockSpecs,
34-
media: mediaBlock,
35-
event: eventBlock,
36-
[LINK_BLOCK_PLUGIN_TYPE]: linkBlock,
34+
media: mediaBlock(),
35+
event: eventBlock(),
36+
[LINK_BLOCK_PLUGIN_TYPE]: linkBlock(),
3737
},
3838
});

packages/@liexp/ui/src/components/Common/BlockNote/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const toBNDocument = async (
2626
const editor = BlockNoteEditor.create({ schema });
2727

2828
if (typeof v === "string") {
29-
const result = await editor.tryParseHTMLToBlocks(v);
29+
const result = editor.tryParseHTMLToBlocks(v);
3030
return result as unknown as BlockNoteDocument;
3131
} else {
3232
const initialValue = toInitialValue(v);

0 commit comments

Comments
 (0)