@yoopta/editor 1.9.12-rc → 1.9.14-rc
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/dist/components/Editor/Editor.d.ts +2 -2
- package/dist/components/Editor/plugins/deleteFragment.d.ts +2 -2
- package/dist/components/Editor/plugins/nonEmptyEditor.d.ts +2 -2
- package/dist/components/Editor/plugins/pasteHtml.d.ts +2 -2
- package/dist/components/Editor/plugins/shortcuts.d.ts +2 -2
- package/dist/components/Editor/plugins/voids.d.ts +2 -2
- package/dist/hooks/useDragDrop.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -5698
- package/dist/types.d.ts +1 -1
- package/dist/utils/nodes.d.ts +4 -4
- package/dist/utils/plugins.d.ts +7 -7
- package/package.json +1 -1
- package/dist/components/Editor/constants.d.ts +0 -16
- package/dist/components/LinkInput/index.d.ts +0 -8
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ParentYooptaPlugin, YooptaPluginType } from '../../utils/plugins';
|
|
3
3
|
import { YooptaMark } from '../../utils/marks';
|
|
4
|
-
import {
|
|
4
|
+
import { YooEditor, YooptaBaseElement } from '../../types';
|
|
5
5
|
import { YooptaTools } from '../YooptaEditor/YooptaEditor';
|
|
6
6
|
type YooptaProps = {
|
|
7
|
-
editor:
|
|
7
|
+
editor: YooEditor;
|
|
8
8
|
placeholder?: string;
|
|
9
9
|
readOnly?: boolean;
|
|
10
10
|
plugins: ParentYooptaPlugin[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const withDeleteFragment: (editor:
|
|
1
|
+
import { YooEditor } from '../../../types';
|
|
2
|
+
export declare const withDeleteFragment: (editor: YooEditor) => YooEditor;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const withNonEmptyEditor: (editor:
|
|
1
|
+
import { YooEditor } from '../../../types';
|
|
2
|
+
export declare const withNonEmptyEditor: (editor: YooEditor) => YooEditor;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const withHtml: (editor:
|
|
1
|
+
import { YooEditor } from '../../../types';
|
|
2
|
+
declare const withHtml: (editor: YooEditor) => YooEditor;
|
|
3
3
|
export { withHtml };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const withShortcuts: (editor:
|
|
1
|
+
import { YooEditor } from '../../../types';
|
|
2
|
+
export declare const withShortcuts: (editor: YooEditor) => YooEditor;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const withVoidNodes: (editor:
|
|
1
|
+
import { YooEditor } from '../../../types';
|
|
2
|
+
export declare const withVoidNodes: (editor: YooEditor) => YooEditor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DragEvent } from 'react';
|
|
2
2
|
import { Node, NodeEntry } from 'slate';
|
|
3
|
-
import {
|
|
3
|
+
import { YooEditor, YooptaBaseElement } from '../types';
|
|
4
4
|
export type DraggedNode = {
|
|
5
5
|
path: number[] | null;
|
|
6
6
|
element: Pick<YooptaBaseElement<string>, 'id' | 'type'> | null;
|
|
@@ -22,4 +22,4 @@ export type DragDropHandlers = {
|
|
|
22
22
|
onDragStart: (_e: any, from: DraggedNode) => void;
|
|
23
23
|
};
|
|
24
24
|
export declare const DEFAULT_DRAG_STATE: DndState;
|
|
25
|
-
export declare const useDragDrop: (editor:
|
|
25
|
+
export declare const useDragDrop: (editor: YooEditor) => [DragDropValues, DragDropHandlers];
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export { isElementActive, getElementByPath } from './utils/nodes';
|
|
|
17
17
|
export { getElementClassname } from './utils/getElementClassname';
|
|
18
18
|
export type { YooptaPluginType, YooptaPluginEventHandlers, HandlersOptions, YooptaPluginBaseOptions, YooptaRenderHTMLAttributes, } from './utils/plugins';
|
|
19
19
|
export type { YooptaMarksConfig, YooptaMark } from './utils/marks';
|
|
20
|
-
export type {
|
|
20
|
+
export type { YooEditor, RenderYooptaElementProps, YooptaBaseElement, Modify } from './types';
|
|
21
21
|
declare const UI_HELPERS: {
|
|
22
22
|
ElementOptions: ({ onClose, style, element, render, ...props }: {
|
|
23
23
|
style: import("react").CSSProperties | undefined;
|