@contentful/field-editor-rich-text 2.0.0-next.17 → 2.0.0-next.18

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/README.md CHANGED
@@ -12,3 +12,7 @@ This editor app is built on top of [Slate](https://github.com/ianstormtaylor/sla
12
12
  import 'codemirror/lib/codemirror.css';
13
13
  import { RichTextEditor } from '@contentful/field-editor-rich-text';
14
14
  ```
15
+
16
+ ## Credits
17
+
18
+ This package is based on [Slate](https://www.slatejs.org/) & [Plate](https://plate.udecode.io/) and also borrows some of their code. Without them this project would not have been possible.
@@ -4,6 +4,6 @@ import { RichTextEditor } from './types';
4
4
  export declare function getContentfulEditorId(sdk: FieldExtensionSDK): string;
5
5
  export declare const editorContext: import("react").Context<string>;
6
6
  export declare const ContentfulEditorIdProvider: import("react").Provider<string>;
7
- export declare function useContentfulEditorId(): string;
8
- export declare function useContentfulEditor(): import("@udecode/plate-core").PlateEditor<RichTextEditor>;
9
- export declare function useContentfulEditorRef(): import("@udecode/plate-core").PlateEditor<RichTextEditor>;
7
+ export declare function useContentfulEditorId(id?: string): string;
8
+ export declare function useContentfulEditor(id?: string): import("@udecode/plate-core").PlateEditor<RichTextEditor>;
9
+ export declare function useContentfulEditorRef(id?: string): import("@udecode/plate-core").PlateEditor<RichTextEditor>;