@vonaffenfels/slate-editor 1.1.66 → 1.1.69

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonaffenfels/slate-editor",
3
- "version": "1.1.66",
3
+ "version": "1.1.69",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -72,7 +72,7 @@
72
72
  "cssnano": "^5.0.1",
73
73
  "escape-html": "^1.0.3"
74
74
  },
75
- "gitHead": "5941c51cc7d9f86dda5c8e76e3608098294a8740",
75
+ "gitHead": "d16994da870bb2bc4798e09f17f938726136683b",
76
76
  "publishConfig": {
77
77
  "access": "public"
78
78
  }
@@ -137,10 +137,13 @@ export default function BlockEditor({
137
137
  },
138
138
  };
139
139
  }
140
+ } else if (node?.type === "layout-slot") {
141
+ // Don't allow layout slot outside of layout. Don't know how it happens, maybe when copied and pasted?
142
+ return;
140
143
  }
141
144
 
142
145
  return node;
143
- });
146
+ }).filter(Boolean);
144
147
  };
145
148
 
146
149
  const onSlateChange = (newValue) => {