slate 0.72.3 → 0.72.4-20220605145

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # slate
2
2
 
3
+ ## 0.72.4-20220605145
4
+
5
+ ### Patch Changes
6
+
7
+ - [#4769](https://github.com/ianstormtaylor/slate/pull/4769) [`0ca31e74`](https://github.com/ianstormtaylor/slate/commit/0ca31e74985cc15e81f941a34c00c10b88f2ca76) Thanks [@jameshfisher](https://github.com/jameshfisher)! - Warn when normalization removes node
8
+
3
9
  ## 0.72.3
4
10
 
5
11
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"create-editor.d.ts","sourceRoot":"","sources":["packages/slate/src/create-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAYP,MAAM,IAAI,CAAA;AAGX;;GAEG;AAEH,eAAO,MAAM,YAAY,QAAO,MAmR/B,CAAA"}
1
+ {"version":3,"file":"create-editor.d.ts","sourceRoot":"","sources":["packages/slate/src/create-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAYP,MAAM,IAAI,CAAA;AAGX;;GAEG;AAEH,eAAO,MAAM,YAAY,QAAO,MA2R/B,CAAA"}
package/dist/index.es.js CHANGED
@@ -246,6 +246,8 @@ var createEditor = () => {
246
246
  // text.
247
247
 
248
248
  if (isInlineOrText !== shouldHaveInlines) {
249
+ // eslint-disable-next-line no-console
250
+ console.warn("Removing ".concat(isInlineOrText ? 'inline' : 'block', " node at path ").concat(path.concat(n), " because parent expects ").concat(shouldHaveInlines ? 'inline' : 'block', " children"));
249
251
  Transforms.removeNodes(editor, {
250
252
  at: path.concat(n),
251
253
  voids: true