@prosekit/core 0.0.0-next-20240715055445 → 0.0.0-next-20240715062625
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/prosekit-core.js +2 -0
- package/package.json +2 -2
package/dist/prosekit-core.js
CHANGED
@@ -1196,8 +1196,10 @@ function defineNodeViewComponent(options) {
|
|
1196
1196
|
const input = [null, options];
|
1197
1197
|
return defineFacetPayload(nodeViewFactoryFacet, [input]);
|
1198
1198
|
}
|
1199
|
+
var isServer = typeof window === "undefined";
|
1199
1200
|
var nodeViewFactoryFacet = defineFacet({
|
1200
1201
|
reducer: (inputs) => {
|
1202
|
+
if (isServer) return [];
|
1201
1203
|
const nodeViews = {};
|
1202
1204
|
const factories = inputs.map((x) => x[0]).filter(isNotNull);
|
1203
1205
|
const options = inputs.map((x) => x[1]).filter(isNotNull);
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/core",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.0-next-
|
4
|
+
"version": "0.0.0-next-20240715062625",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"orderedmap": "^2.1.1",
|
45
45
|
"prosemirror-splittable": "^0.1.1",
|
46
46
|
"type-fest": "^4.21.0",
|
47
|
-
"@prosekit/pm": "^0.0.0-next-
|
47
|
+
"@prosekit/pm": "^0.0.0-next-20240715062625"
|
48
48
|
},
|
49
49
|
"devDependencies": {
|
50
50
|
"tsup": "^8.1.0",
|