tiptop-editor 1.0.12 → 1.0.13
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/ColorButton.d.ts +4 -11
- package/dist/components/ColorButtonMenu.d.ts +5 -3
- package/dist/components/EditorButton.d.ts +3 -2
- package/dist/components/LinkButtonMenu.d.ts +5 -3
- package/dist/components/MoreOptionsButtonMenu.d.ts +5 -3
- package/dist/components/TextSelectionMenu.d.ts +4 -7
- package/dist/components/TransformIntoButtonMenu.d.ts +5 -3
- package/dist/helpers.d.ts +2 -0
- package/dist/tiptop-editor.css +1 -1
- package/dist/tiptop-editor.es.js +4089 -4015
- package/dist/tiptop-editor.umd.js +11 -12
- package/dist/types.d.ts +20 -6
- package/package.json +1 -1
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
hsl: string;
|
|
6
|
-
color: string;
|
|
7
|
-
bgColor: string;
|
|
8
|
-
tooltipText?: string;
|
|
9
|
-
tooltipDisabled?: boolean;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default ColorButton;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ColorButtonProps } from '../types';
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ editor, buttonType, hsl, color, bgColor, tooltipText, tooltipDisabled, }: ColorButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
+
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Editor } from '@tiptap/react';
|
|
2
|
-
|
|
3
|
+
interface ColorButtonMenuProps {
|
|
3
4
|
editor: Editor;
|
|
4
|
-
}
|
|
5
|
-
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ editor }: ColorButtonMenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { EditorButtonProps } from '../types';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ editor, buttonKey, tooltipText, isIconOnly, color, variant, isDisabled, icon, iconClass, text, withActive, onPressed, }: EditorButtonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
+
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Editor } from '@tiptap/react';
|
|
2
|
-
|
|
3
|
+
interface LinkButtonMenuProps {
|
|
3
4
|
editor: Editor;
|
|
4
|
-
}
|
|
5
|
-
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ editor }: LinkButtonMenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Editor } from '@tiptap/react';
|
|
2
|
-
|
|
3
|
+
interface MoreOptionsButtonMenuProps {
|
|
3
4
|
editor: Editor;
|
|
4
|
-
}
|
|
5
|
-
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ editor }: MoreOptionsButtonMenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
append?: React.ReactNode;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
-
export default TextSelectionMenu;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TextSelectionMenuProps } from '../types';
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ editor, prepend, append }: TextSelectionMenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
|
+
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Editor } from '@tiptap/react';
|
|
2
|
-
|
|
3
|
+
interface TransformIntoButtonMenuProps {
|
|
3
4
|
editor: Editor;
|
|
4
|
-
}
|
|
5
|
-
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ editor }: TransformIntoButtonMenuProps) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
package/dist/helpers.d.ts
CHANGED
|
@@ -12,3 +12,5 @@ export declare const copyNodeTextContent: (editor: Editor) => void;
|
|
|
12
12
|
export declare const deleteNode: (editor: Editor) => void;
|
|
13
13
|
export declare const removeAllFormatting: (editor: Editor) => void;
|
|
14
14
|
export declare const transformNodeToAlternative: (editor: Editor, targetOption: SlashCommandGroupCommandsProps) => void;
|
|
15
|
+
export declare const addOrUpdateLink: (editor: Editor, url: string) => void;
|
|
16
|
+
export declare const unsetLink: (editor: Editor) => void;
|