Skip to content

Commit 1904290

Browse files
committed
➕(y-provider) add BlockNote server utils and yjs
Needed dependencies to mimic frontend code when generating a document from a markdown string. Will be used in the upcoming commits.
1 parent 5cdd06d commit 1904290

File tree

2 files changed

+101
-8
lines changed

2 files changed

+101
-8
lines changed

src/frontend/servers/y-provider/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
"node": ">=18"
1717
},
1818
"dependencies": {
19+
"@blocknote/server-util": "0.20.0",
1920
"@hocuspocus/server": "2.14.0",
2021
"@sentry/node": "8.41.0",
2122
"@sentry/profiling-node": "8.41.0",
2223
"express": "4.21.1",
2324
"express-ws": "5.0.2",
24-
"y-protocols": "1.0.6"
25+
"y-protocols": "1.0.6",
26+
"yjs": "13.6.20"
2527
},
2628
"devDependencies": {
2729
"@hocuspocus/provider": "2.14.0",

src/frontend/yarn.lock

Lines changed: 98 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@
10061006
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
10071007
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
10081008

1009-
"@blocknote/core@*", "@blocknote/[email protected]", "@blocknote/core@^0.20.0":
1009+
"@blocknote/core@*", "@blocknote/[email protected]", "@blocknote/core@^0.17.1", "@blocknote/core@^0.20.0":
10101010
version "0.20.0"
10111011
resolved "https://registry.yarnpkg.com/@blocknote/core/-/core-0.20.0.tgz#5ff4a2f95109b67db5b2cc5c2f069fb17ef79a9d"
10121012
integrity sha512-tjmAWFCIJQKpVtuAFcPQ60z5YOE33uvU0mAqxb7GnNBfDv8v1W1kG9no2DMwhD42FuDCpSaFDEsu6W3P3YZRiA==
@@ -1067,7 +1067,7 @@
10671067
"@mantine/utils" "^6.0.21"
10681068
react-icons "^5.2.1"
10691069

1070-
"@blocknote/react@*", "@blocknote/[email protected]", "@blocknote/react@^0.20.0":
1070+
"@blocknote/react@*", "@blocknote/[email protected]", "@blocknote/react@^0.17.1", "@blocknote/react@^0.20.0":
10711071
version "0.20.0"
10721072
resolved "https://registry.yarnpkg.com/@blocknote/react/-/react-0.20.0.tgz#fb42c239ebda4575c052e54587df92cc764b7ce0"
10731073
integrity sha512-NotpzlBx3CFBSAgLOVf2YPvxmWFQyt35rWCL/oleoB+jc3OtmGtH2xQVslfgFYbs2vnX/9pGBiSPWhxF1YmKAQ==
@@ -1079,6 +1079,22 @@
10791079
lodash.merge "^4.6.2"
10801080
react-icons "^5.2.1"
10811081

1082+
"@blocknote/[email protected]":
1083+
version "0.17.1"
1084+
resolved "https://registry.yarnpkg.com/@blocknote/server-util/-/server-util-0.17.1.tgz#6059fb3e67c22a89469552183f9d781d6d7368a3"
1085+
integrity sha512-MHC+wV7zkbOpCTV9ZWoHT0tH8DyRdDGtM9rcu6u/PKUR4YOPXKdkKkzyU94AO0HOb59nW+2epAscla6Iay3s2A==
1086+
dependencies:
1087+
"@blocknote/core" "^0.17.1"
1088+
"@blocknote/react" "^0.17.1"
1089+
"@tiptap/core" "^2.7.1"
1090+
"@tiptap/pm" "^2.7.1"
1091+
jsdom "^21.1.0"
1092+
react "^18"
1093+
react-dom "^18"
1094+
y-prosemirror "1.2.12"
1095+
y-protocols "^1.0.6"
1096+
yjs "^13.6.15"
1097+
10821098
"@cspotcode/source-map-support@^0.8.0":
10831099
version "0.8.1"
10841100
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1"
@@ -6299,6 +6315,13 @@ cssstyle@^2.3.0:
62996315
dependencies:
63006316
cssom "~0.3.6"
63016317

6318+
cssstyle@^3.0.0:
6319+
version "3.0.0"
6320+
resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-3.0.0.tgz#17ca9c87d26eac764bb8cfd00583cff21ce0277a"
6321+
integrity sha512-N4u2ABATi3Qplzf0hWbVCdjenim8F3ojEXpBDF5hBpjzW182MjNGLqfmQ0SkSPeQ+V86ZXgeH8aXj6kayd4jgg==
6322+
dependencies:
6323+
rrweb-cssom "^0.6.0"
6324+
63026325
cssstyle@^4.1.0:
63036326
version "4.1.0"
63046327
resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-4.1.0.tgz#161faee382af1bafadb6d3867a92a19bcb4aea70"
@@ -6325,6 +6348,15 @@ data-urls@^3.0.2:
63256348
whatwg-mimetype "^3.0.0"
63266349
whatwg-url "^11.0.0"
63276350

6351+
data-urls@^4.0.0:
6352+
version "4.0.0"
6353+
resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-4.0.0.tgz#333a454eca6f9a5b7b0f1013ff89074c3f522dd4"
6354+
integrity sha512-/mMTei/JXPqvFqQtfyTowxmJVwr2PVAeCcDxyFf6LhoOu/09TX2OX3kb2wzi4DMXcfj4OItwDOnhl5oziPnT6g==
6355+
dependencies:
6356+
abab "^2.0.6"
6357+
whatwg-mimetype "^3.0.0"
6358+
whatwg-url "^12.0.0"
6359+
63286360
data-urls@^5.0.0:
63296361
version "5.0.0"
63306362
resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-5.0.0.tgz#2f76906bce1824429ffecb6920f45a0b30f00dde"
@@ -9179,6 +9211,38 @@ jsdom@^20.0.0:
91799211
ws "^8.11.0"
91809212
xml-name-validator "^4.0.0"
91819213

9214+
jsdom@^21.1.0:
9215+
version "21.1.2"
9216+
resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-21.1.2.tgz#6433f751b8718248d646af1cdf6662dc8a1ca7f9"
9217+
integrity sha512-sCpFmK2jv+1sjff4u7fzft+pUh2KSUbUrEHYHyfSIbGTIcmnjyp83qg6qLwdJ/I3LpTXx33ACxeRL7Lsyc6lGQ==
9218+
dependencies:
9219+
abab "^2.0.6"
9220+
acorn "^8.8.2"
9221+
acorn-globals "^7.0.0"
9222+
cssstyle "^3.0.0"
9223+
data-urls "^4.0.0"
9224+
decimal.js "^10.4.3"
9225+
domexception "^4.0.0"
9226+
escodegen "^2.0.0"
9227+
form-data "^4.0.0"
9228+
html-encoding-sniffer "^3.0.0"
9229+
http-proxy-agent "^5.0.0"
9230+
https-proxy-agent "^5.0.1"
9231+
is-potential-custom-element-name "^1.0.1"
9232+
nwsapi "^2.2.4"
9233+
parse5 "^7.1.2"
9234+
rrweb-cssom "^0.6.0"
9235+
saxes "^6.0.0"
9236+
symbol-tree "^3.2.4"
9237+
tough-cookie "^4.1.2"
9238+
w3c-xmlserializer "^4.0.0"
9239+
webidl-conversions "^7.0.0"
9240+
whatwg-encoding "^2.0.0"
9241+
whatwg-mimetype "^3.0.0"
9242+
whatwg-url "^12.0.1"
9243+
ws "^8.13.0"
9244+
xml-name-validator "^4.0.0"
9245+
91829246
jsesc@^3.0.2, jsesc@~3.0.2:
91839247
version "3.0.2"
91849248
resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.0.2.tgz#bb8b09a6597ba426425f2e4a07245c3d00b9343e"
@@ -10256,7 +10320,7 @@ nth-check@^2.0.1:
1025610320
dependencies:
1025710321
boolbase "^1.0.0"
1025810322

10259-
nwsapi@^2.2.12, nwsapi@^2.2.2:
10323+
nwsapi@^2.2.12, nwsapi@^2.2.2, nwsapi@^2.2.4:
1026010324
version "2.2.16"
1026110325
resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.16.tgz#177760bba02c351df1d2644e220c31dfec8cdb43"
1026210326
integrity sha512-F1I/bimDpj3ncaNDhfyMWuFqmQDBwDB0Fogc2qpL3BWvkQteFD/8BzWuIRl83rq0DXfm8SGt/HFhLXZyljTXcQ==
@@ -10970,7 +11034,7 @@ punycode.js@^2.3.1:
1097011034
resolved "https://registry.yarnpkg.com/punycode.js/-/punycode.js-2.3.1.tgz#6b53e56ad75588234e79f4affa90972c7dd8cdb7"
1097111035
integrity sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==
1097211036

10973-
punycode@^2.1.0, punycode@^2.1.1, punycode@^2.3.1:
11037+
punycode@^2.1.0, punycode@^2.1.1, punycode@^2.3.0, punycode@^2.3.1:
1097411038
version "2.3.1"
1097511039
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"
1097611040
integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==
@@ -11210,7 +11274,7 @@ react-aria@^3.34.2, react-aria@^3.36.0:
1121011274
"@react-aria/visually-hidden" "^3.8.18"
1121111275
"@react-types/shared" "^3.26.0"
1121211276

11213-
react-dom@*, [email protected]:
11277+
react-dom@*, [email protected], react-dom@^18:
1121411278
version "18.3.1"
1121511279
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.3.1.tgz#c2265d79511b57d479b3dd3fdfa51536494c5cb4"
1121611280
integrity sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==
@@ -11393,7 +11457,7 @@ react-transition-group@^4.3.0:
1139311457
loose-envify "^1.4.0"
1139411458
prop-types "^15.6.2"
1139511459

11396-
11460+
react@*, [email protected], react@^18:
1139711461
version "18.3.1"
1139811462
resolved "https://registry.yarnpkg.com/react/-/react-18.3.1.tgz#49ab892009c53933625bd16b2533fc754cab2891"
1139911463
integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==
@@ -11738,6 +11802,11 @@ rope-sequence@^1.3.0:
1173811802
resolved "https://registry.yarnpkg.com/rope-sequence/-/rope-sequence-1.3.4.tgz#df85711aaecd32f1e756f76e43a415171235d425"
1173911803
integrity sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==
1174011804

11805+
rrweb-cssom@^0.6.0:
11806+
version "0.6.0"
11807+
resolved "https://registry.yarnpkg.com/rrweb-cssom/-/rrweb-cssom-0.6.0.tgz#ed298055b97cbddcdeb278f904857629dec5e0e1"
11808+
integrity sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==
11809+
1174111810
rrweb-cssom@^0.7.1:
1174211811
version "0.7.1"
1174311812
resolved "https://registry.yarnpkg.com/rrweb-cssom/-/rrweb-cssom-0.7.1.tgz#c73451a484b86dd7cfb1e0b2898df4b703183e4b"
@@ -12656,6 +12725,13 @@ tr46@^3.0.0:
1265612725
dependencies:
1265712726
punycode "^2.1.1"
1265812727

12728+
tr46@^4.1.1:
12729+
version "4.1.1"
12730+
resolved "https://registry.yarnpkg.com/tr46/-/tr46-4.1.1.tgz#281a758dcc82aeb4fe38c7dfe4d11a395aac8469"
12731+
integrity sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==
12732+
dependencies:
12733+
punycode "^2.3.0"
12734+
1265912735
tr46@^5.0.0:
1266012736
version "5.0.0"
1266112737
resolved "https://registry.yarnpkg.com/tr46/-/tr46-5.0.0.tgz#3b46d583613ec7283020d79019f1335723801cec"
@@ -13421,6 +13497,14 @@ whatwg-url@^11.0.0:
1342113497
tr46 "^3.0.0"
1342213498
webidl-conversions "^7.0.0"
1342313499

13500+
whatwg-url@^12.0.0, whatwg-url@^12.0.1:
13501+
version "12.0.1"
13502+
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-12.0.1.tgz#fd7bcc71192e7c3a2a97b9a8d6b094853ed8773c"
13503+
integrity sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==
13504+
dependencies:
13505+
tr46 "^4.1.1"
13506+
webidl-conversions "^7.0.0"
13507+
1342413508
whatwg-url@^14.0.0:
1342513509
version "14.1.0"
1342613510
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-14.1.0.tgz#fffebec86cc8e6c2a657e50dc606207b870f0ab3"
@@ -13724,7 +13808,7 @@ write-file-atomic@^5.0.1:
1372413808
imurmurhash "^0.1.4"
1372513809
signal-exit "^4.0.1"
1372613810

13727-
[email protected], ws@^8.11.0, ws@^8.17.1, ws@^8.18.0, ws@^8.5.0:
13811+
[email protected], ws@^8.11.0, ws@^8.13.0, ws@^8.17.1, ws@^8.18.0, ws@^8.5.0:
1372813812
version "8.18.0"
1372913813
resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc"
1373013814
integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==
@@ -13754,6 +13838,13 @@ xtend@^4.0.0, xtend@~4.0.1:
1375413838
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"
1375513839
integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==
1375613840

13841+
13842+
version "1.2.12"
13843+
resolved "https://registry.yarnpkg.com/y-prosemirror/-/y-prosemirror-1.2.12.tgz#3bb3bd9def611a90e8b7ac6a7e46a6230f238746"
13844+
integrity sha512-UMnUIR5ppVn30n2kzeeBQEaesWGe4fsbnlch1HnNa3/snJMoOn7M7dieuS+o1OQwKs1dqx2eT3gFfGF2aOaQdw==
13845+
dependencies:
13846+
lib0 "^0.2.42"
13847+
1375713848
1375813849
version "1.2.13"
1375913850
resolved "https://registry.yarnpkg.com/y-prosemirror/-/y-prosemirror-1.2.13.tgz#1355c82474e66e4fb9644ed0104cf0af5a9766b1"

0 commit comments

Comments
 (0)