@contentful/field-editor-rich-text 0.26.3-next → 0.26.4-next

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.
@@ -1,5 +1,7 @@
1
1
  import { SPEditor } from '@udecode/plate-core';
2
2
  export declare type SanitizerTuple = [Document, SPEditor];
3
3
  declare type Predicate = (node: ChildNode) => boolean;
4
+ export declare const isHTMLElement: (node: ChildNode) => node is HTMLElement;
5
+ export declare const removeChildNodes: (node: ChildNode, predicate?: Predicate) => void;
4
6
  export declare const removeChildNodesUsingPredicate: (predicate: Predicate) => (nodeList: NodeList) => Node[];
5
7
  export {};
@@ -1,2 +1,3 @@
1
1
  export { removeComments } from './removeComments';
2
2
  export { sanitizeTables } from './sanitizeTables';
3
+ export { sanitizeEntityBlocks } from './sanitizeEntityBlocks';
@@ -0,0 +1,6 @@
1
+ import { SanitizerTuple } from './helpers';
2
+ /**
3
+ * Ensures the text selection from entity block elements is
4
+ * not included in the paste buffer.
5
+ */
6
+ export declare const sanitizeEntityBlocks: ([doc, editor]: SanitizerTuple) => SanitizerTuple;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-rich-text",
3
- "version": "0.26.3-next",
3
+ "version": "0.26.4-next",
4
4
  "publishConfig": {
5
5
  "tag": "next"
6
6
  },
@@ -42,10 +42,10 @@
42
42
  "@udecode/plate-trailing-block": "^4.4.0",
43
43
  "fast-deep-equal": "^3.1.3",
44
44
  "react": ">=16.14.0",
45
- "slate": "^0.66.1",
45
+ "slate": "^0.66.5",
46
46
  "slate-history": "^0.66.0",
47
- "slate-hyperscript": "^0.66.0",
48
- "slate-react": "^0.65.3"
47
+ "slate-hyperscript": "^0.67.0",
48
+ "slate-react": "^0.69.0"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "react": ">=16.14.0",