Skip to content

Commit 21e082b

Browse files
authored
fix: externalize unified plugins by adding them to package.json (#128)
* fix: externalize unified plugins by adding them correctly to package json * v0.4.6-alpha.0 * fix defaults / rollup interop * v0.4.6-alpha.1
1 parent 2f34276 commit 21e082b

File tree

9 files changed

+46
-88
lines changed

9 files changed

+46
-88
lines changed

examples/editor/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"name": "@blocknote/example-editor",
33
"private": true,
4-
"version": "0.4.5",
4+
"version": "0.4.6-alpha.1",
55
"scripts": {
66
"dev": "vite",
77
"build": "tsc && vite build",
88
"preview": "vite preview",
99
"lint": "eslint src --max-warnings 0"
1010
},
1111
"dependencies": {
12-
"@blocknote/core": "^0.4.5",
13-
"@blocknote/react": "^0.4.5",
12+
"@blocknote/core": "^0.4.6-alpha.1",
13+
"@blocknote/react": "^0.4.6-alpha.1",
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0"
1616
},

examples/vanilla/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "@blocknote/example-vanilla",
33
"private": true,
4-
"version": "0.4.5",
4+
"version": "0.4.6-alpha.1",
55
"scripts": {
66
"dev": "vite",
77
"build": "tsc && vite build",
88
"preview": "vite preview",
99
"lint": "eslint src --max-warnings 0"
1010
},
1111
"dependencies": {
12-
"@blocknote/core": "^0.4.5"
12+
"@blocknote/core": "^0.4.6-alpha.1"
1313
},
1414
"devDependencies": {
1515
"eslint": "^8.10.0",

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
33
"useNx": false,
44
"useWorkspaces": true,
5-
"version": "0.4.5"
5+
"version": "0.4.6-alpha.1"
66
}

package-lock.json

Lines changed: 25 additions & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"homepage": "https://github.com/yousefed/blocknote",
44
"private": false,
55
"license": "MPL-2.0",
6-
"version": "0.4.5",
6+
"version": "0.4.6-alpha.1",
77
"files": [
88
"dist",
99
"types",
@@ -70,11 +70,14 @@
7070
"@tiptap/pm": "2.0.0-beta.217",
7171
"hast-util-from-dom": "^4.2.0",
7272
"lodash": "^4.17.21",
73-
"rehype": "^12.0.1",
73+
"rehype-parse": "^8.0.4",
7474
"rehype-remark": "^9.1.2",
75-
"remark": "^14.0.2",
75+
"rehype-stringify": "^9.0.3",
7676
"remark-gfm": "^3.0.1",
77+
"remark-parse": "^10.0.1",
7778
"remark-rehype": "^10.1.0",
79+
"remark-stringify": "^10.0.2",
80+
"unified": "^10.1.2",
7881
"uuid": "^8.3.2",
7982
"y-prosemirror": "1.0.20",
8083
"y-protocols": "1.0.5",

packages/core/src/api/formatConversions/formatConversions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import { DOMParser, DOMSerializer, Schema } from "prosemirror-model";
2-
import { unified } from "unified";
32
import rehypeParse from "rehype-parse";
4-
import rehypeStringify from "rehype-stringify";
53
import rehypeRemark from "rehype-remark";
4+
import rehypeStringify from "rehype-stringify";
65
import remarkGfm from "remark-gfm";
7-
import remarkStringify from "remark-stringify";
86
import remarkParse from "remark-parse";
97
import remarkRehype from "remark-rehype";
8+
import remarkStringify from "remark-stringify";
9+
import { unified } from "unified";
1010
import { Block } from "../../extensions/Blocks/api/blockTypes";
1111
import { blockToNode, nodeToBlock } from "../nodeConversions/nodeConversions";
12-
import { simplifyBlocks } from "./simplifyBlocksRehypePlugin";
1312
import { removeUnderlines } from "./removeUnderlinesRehypePlugin";
13+
import { simplifyBlocks } from "./simplifyBlocksRehypePlugin";
1414

1515
export async function blocksToHTML(
1616
blocks: Block[],

packages/core/vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default defineConfig({
3131
// Provide global variables to use in the UMD build
3232
// for externalized deps
3333
globals: {},
34+
interop: "compat", // https://rollupjs.org/migration/#changed-defaults
3435
},
3536
},
3637
},

packages/react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"homepage": "https://github.com/yousefed/blocknote",
44
"private": false,
55
"license": "MPL-2.0",
6-
"version": "0.4.5",
6+
"version": "0.4.6-alpha.1",
77
"files": [
88
"dist",
99
"types",
@@ -46,7 +46,7 @@
4646
"lint": "eslint src --max-warnings 0"
4747
},
4848
"dependencies": {
49-
"@blocknote/core": "^0.4.5",
49+
"@blocknote/core": "^0.4.6-alpha.1",
5050
"@emotion/react": "^11.10.5",
5151
"@mantine/core": "^5.6.1",
5252
"@mantine/hooks": "^5.6.1",

packages/website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "blocknote-website",
33
"private": true,
4-
"version": "0.4.5",
4+
"version": "0.4.6-alpha.1",
55
"description": "Website for BlockNote",
66
"main": "index.js",
77
"scripts": {
@@ -12,7 +12,7 @@
1212
"author": "",
1313
"license": "MPL-2.0",
1414
"dependencies": {
15-
"@blocknote/react": "^0.4.5",
15+
"@blocknote/react": "^0.4.6-alpha.1",
1616
"veaury": "^2.3.12",
1717
"vue-github-button": "^3.1.0"
1818
},

0 commit comments

Comments
 (0)