@contentful/field-editor-rich-text 2.0.0-next.11 → 2.0.0-next.12

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,2 +1,2 @@
1
- import { WithOverride } from '@udecode/plate-core';
2
- export declare const withNormalizer: WithOverride;
1
+ import { PlateEditor } from '@udecode/plate-core';
2
+ export declare const withNormalizer: (editor: PlateEditor) => PlateEditor<{}>;
@@ -0,0 +1,7 @@
1
+ import { RichTextPlugin } from './types';
2
+ export declare type NormalizedSlateValueProps = {
3
+ id: string;
4
+ incomingDoc: any;
5
+ plugins: RichTextPlugin[];
6
+ };
7
+ export declare const useNormalizedSlateValue: ({ id, incomingDoc, plugins, }: NormalizedSlateValueProps) => import("slate").Descendant[] & any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-rich-text",
3
- "version": "2.0.0-next.11",
3
+ "version": "2.0.0-next.12",
4
4
  "publishConfig": {
5
5
  "tag": "next"
6
6
  },
@@ -1,5 +0,0 @@
1
- import { TextOrCustomElement } from '../types';
2
- /**
3
- * Ensures incoming void nodes have a child leaf text element.
4
- */
5
- export declare function sanitizeIncomingSlateDoc(nodes?: TextOrCustomElement[]): TextOrCustomElement[];