@contentful/field-editor-rich-text 2.0.0-next.2 → 2.0.0-next.3

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.
Files changed (39) hide show
  1. package/dist/field-editor-rich-text.cjs.development.js +133 -116
  2. package/dist/field-editor-rich-text.cjs.development.js.map +1 -1
  3. package/dist/field-editor-rich-text.cjs.production.min.js +1 -1
  4. package/dist/field-editor-rich-text.cjs.production.min.js.map +1 -1
  5. package/dist/field-editor-rich-text.esm.js +23 -6
  6. package/dist/field-editor-rich-text.esm.js.map +1 -1
  7. package/dist/helpers/deserializer.d.ts +1 -1
  8. package/dist/helpers/editor.d.ts +1 -1
  9. package/dist/plugins/Bold/index.d.ts +1 -1
  10. package/dist/plugins/Code/index.d.ts +1 -1
  11. package/dist/plugins/DragAndDrop/index.d.ts +1 -1
  12. package/dist/plugins/EmbeddedEntityBlock/index.d.ts +1 -1
  13. package/dist/plugins/EmbeddedEntityInline/index.d.ts +1 -1
  14. package/dist/plugins/Heading/index.d.ts +1 -1
  15. package/dist/plugins/Hr/index.d.ts +1 -1
  16. package/dist/plugins/Hyperlink/HyperlinkModal.d.ts +1 -1
  17. package/dist/plugins/Hyperlink/index.d.ts +1 -1
  18. package/dist/plugins/InsertBeforeFirstVoidBlock/index.d.ts +1 -1
  19. package/dist/plugins/Italic/index.d.ts +1 -1
  20. package/dist/plugins/List/getListInsertFragment.d.ts +1 -1
  21. package/dist/plugins/List/index.d.ts +1 -1
  22. package/dist/plugins/NewLine/index.d.ts +1 -1
  23. package/dist/plugins/Paragraph/index.d.ts +1 -1
  24. package/dist/plugins/Paste/index.d.ts +1 -1
  25. package/dist/plugins/Paste/sanitizers/helpers.d.ts +1 -1
  26. package/dist/plugins/Quote/index.d.ts +1 -1
  27. package/dist/plugins/Table/actions/addColumn.d.ts +2 -1
  28. package/dist/plugins/Table/actions/addRow.d.ts +1 -1
  29. package/dist/plugins/Table/actions/setHeader.d.ts +1 -1
  30. package/dist/plugins/Table/helpers.d.ts +1 -1
  31. package/dist/plugins/Table/index.d.ts +168 -168
  32. package/dist/plugins/Table/normalizers.d.ts +1 -1
  33. package/dist/plugins/Text/index.d.ts +1 -1
  34. package/dist/plugins/TrailingParagraph/index.d.ts +1 -1
  35. package/dist/plugins/Underline/index.d.ts +1 -1
  36. package/dist/plugins/index.d.ts +171 -171
  37. package/dist/test-utils/createEditor.d.ts +1 -1
  38. package/dist/types.d.ts +1 -1
  39. package/package.json +14 -5
@@ -1,3 +1,3 @@
1
- import { Deserialize, GetNodeDeserializerRule } from '@udecode/plate';
1
+ import { Deserialize, GetNodeDeserializerRule } from '@udecode/plate-core';
2
2
  export declare function deserializeLeaf(type: string, rules: GetNodeDeserializerRule[]): Deserialize;
3
3
  export declare function deserializeElement(type: string, rules: GetNodeDeserializerRule[]): Deserialize;
@@ -1,4 +1,4 @@
1
- import { PlateEditor } from '@udecode/plate';
1
+ import { PlateEditor } from '@udecode/plate-core';
2
2
  import { Link } from '@contentful/field-editor-reference/dist/types';
3
3
  import { Editor, Path, Node, Location } from 'slate';
4
4
  import { BLOCKS, INLINES } from '@contentful/rich-text-types';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as Slate from 'slate-react';
3
- import { PlatePlugin } from '@udecode/plate';
3
+ import { PlatePlugin } from '@udecode/plate-core';
4
4
  import { CustomSlatePluginOptions } from 'types';
5
5
  interface ToolbarBoldButtonProps {
6
6
  isDisabled?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as Slate from 'slate-react';
3
- import { PlatePlugin } from '@udecode/plate';
3
+ import { PlatePlugin } from '@udecode/plate-core';
4
4
  import { CustomSlatePluginOptions } from 'types';
5
5
  interface ToolbarCodeButtonProps {
6
6
  isDisabled?: boolean;
@@ -1,2 +1,2 @@
1
- import { PlatePlugin } from '@udecode/plate';
1
+ import { PlatePlugin } from '@udecode/plate-core';
2
2
  export declare function createDragAndDropPlugin(): PlatePlugin;
@@ -1,6 +1,6 @@
1
1
  import { KeyboardEvent } from 'react';
2
2
  import { BLOCKS } from '@contentful/rich-text-types';
3
- import { PlatePlugin, PlateEditor } from '@udecode/plate';
3
+ import { PlatePlugin, PlateEditor } from '@udecode/plate-core';
4
4
  import { CustomSlatePluginOptions } from 'types';
5
5
  import { FieldExtensionSDK } from '@contentful/app-sdk';
6
6
  export { EmbeddedEntityBlockToolbarIcon as ToolbarIcon } from './ToolbarIcon';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { PlatePlugin } from '@udecode/plate';
2
+ import { PlatePlugin } from '@udecode/plate-core';
3
3
  import { CustomSlatePluginOptions } from '../../types';
4
4
  interface ToolbarEmbeddedEntityInlineButtonProps {
5
5
  onClose: () => void;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import * as Slate from 'slate-react';
3
3
  import { BLOCKS } from '@contentful/rich-text-types';
4
- import { PlatePlugin, PlateEditor } from '@udecode/plate';
4
+ import { PlatePlugin, PlateEditor } from '@udecode/plate-core';
5
5
  import { CustomSlatePluginOptions } from '../../types';
6
6
  export declare function withHeadingEvents(editor: PlateEditor): (event: React.KeyboardEvent) => void;
7
7
  interface ToolbarHeadingButtonProps {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as Slate from 'slate-react';
3
- import { PlatePlugin, PlateEditor } from '@udecode/plate';
3
+ import { PlatePlugin, PlateEditor } from '@udecode/plate-core';
4
4
  import { CustomSlatePluginOptions } from '../../types';
5
5
  interface ToolbarHrButtonProps {
6
6
  isDisabled?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { FieldExtensionSDK } from '@contentful/field-editor-shared';
3
- import { PlateEditor } from '@udecode/plate';
3
+ import { PlateEditor } from '@udecode/plate-core';
4
4
  import { ReactEditor } from 'slate-react';
5
5
  import { HistoryEditor } from 'slate-history';
6
6
  import { Link } from '@contentful/field-editor-reference/dist/types';
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { PlatePlugin } from '@udecode/plate';
2
+ import { PlatePlugin } from '@udecode/plate-core';
3
3
  import { FieldExtensionSDK } from '@contentful/app-sdk';
4
4
  import { CustomSlatePluginOptions } from '../../types';
5
5
  export declare function createHyperlinkPlugin(sdk: FieldExtensionSDK): PlatePlugin;
@@ -1,2 +1,2 @@
1
- import { PlatePlugin } from '@udecode/plate';
1
+ import { PlatePlugin } from '@udecode/plate-core';
2
2
  export declare function createInsertBeforeFirstVoidBlockPlugin(): PlatePlugin;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import * as Slate from 'slate-react';
3
- import { PlatePlugin } from '@udecode/plate';
3
+ import { PlatePlugin } from '@udecode/plate-core';
4
4
  import { CustomSlatePluginOptions } from '../../types';
5
5
  interface ToolbarItalicButtonProps {
6
6
  isDisabled?: boolean;
@@ -2,5 +2,5 @@
2
2
  * A copy of Plate's list plugin with a few adjustments
3
3
  * to fix pasting text inside lists.
4
4
  */
5
- import { PlateEditor, TDescendant } from '@udecode/plate';
5
+ import { PlateEditor, TDescendant } from '@udecode/plate-core';
6
6
  export declare const getListInsertFragment: (editor: PlateEditor) => (fragment: TDescendant[]) => void;
@@ -11,5 +11,5 @@ export declare const UL: (props: Slate.RenderElementProps) => JSX.Element;
11
11
  export declare const OL: (props: Slate.RenderElementProps) => JSX.Element;
12
12
  export declare const LI: (props: Slate.RenderElementProps) => JSX.Element;
13
13
  export declare const withListOptions: CustomSlatePluginOptions;
14
- export declare const createListPlugin: () => import("@udecode/plate").PlatePlugin<{}>;
14
+ export declare const createListPlugin: () => import("@udecode/plate-core").PlatePlugin<{}>;
15
15
  export {};
@@ -1,2 +1,2 @@
1
- import { PlatePlugin } from '@udecode/plate';
1
+ import { PlatePlugin } from '@udecode/plate-core';
2
2
  export declare function createNewLinePlugin(): PlatePlugin;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { PlatePlugin } from '@udecode/plate';
2
+ import { PlatePlugin } from '@udecode/plate-core';
3
3
  import { RenderElementProps } from 'slate-react';
4
4
  import { CustomSlatePluginOptions } from '../../types';
5
5
  export declare function Paragraph(props: RenderElementProps): JSX.Element;
@@ -1,2 +1,2 @@
1
- import { PlatePlugin } from '@udecode/plate';
1
+ import { PlatePlugin } from '@udecode/plate-core';
2
2
  export declare const createPastePlugin: () => PlatePlugin;
@@ -1,4 +1,4 @@
1
- import { PlateEditor } from '@udecode/plate';
1
+ import { PlateEditor } from '@udecode/plate-core';
2
2
  export declare type SanitizerTuple = [Document, PlateEditor];
3
3
  declare type Predicate = (node: ChildNode) => boolean;
4
4
  export declare const isHTMLElement: (node: ChildNode) => node is HTMLElement;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import * as Slate from 'slate-react';
3
- import { PlatePlugin, PlateEditor } from '@udecode/plate';
3
+ import { PlatePlugin, PlateEditor } from '@udecode/plate-core';
4
4
  import { CustomSlatePluginOptions } from 'types';
5
5
  interface ToolbarQuoteButtonProps {
6
6
  isDisabled?: boolean;
@@ -1,3 +1,4 @@
1
- import { PlateEditor, TablePluginOptions } from '@udecode/plate';
1
+ import { PlateEditor } from '@udecode/plate-core';
2
+ import { TablePluginOptions } from '@udecode/plate-table';
2
3
  export declare const addColumnRight: (editor: PlateEditor, options: TablePluginOptions) => void;
3
4
  export declare const addColumnLeft: (editor: PlateEditor, options: TablePluginOptions) => void;
@@ -1,3 +1,3 @@
1
- import { PlateEditor } from '@udecode/plate';
1
+ import { PlateEditor } from '@udecode/plate-core';
2
2
  export declare const addRowBelow: (editor: PlateEditor) => void;
3
3
  export declare const addRowAbove: (editor: PlateEditor) => void;
@@ -1,2 +1,2 @@
1
- import { PlateEditor } from '@udecode/plate';
1
+ import { PlateEditor } from '@udecode/plate-core';
2
2
  export declare const setHeader: (editor: PlateEditor, enable?: boolean | undefined) => void;
@@ -1,4 +1,4 @@
1
- import { PlateEditor } from '@udecode/plate';
1
+ import { PlateEditor } from '@udecode/plate-core';
2
2
  export declare function insertTableAndFocusFirstCell(editor: PlateEditor): void;
3
3
  export declare function isTableActive(editor: PlateEditor): boolean;
4
4
  export declare function isTableHeaderEnabled(editor: PlateEditor): boolean;