tiptop-editor 2.3.5 → 2.4.1
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/App.d.ts +1 -1
- package/dist/components/comment/CommentButton.d.ts +1 -1
- package/dist/components/comment/CommentSelectionMenu.d.ts +1 -1
- package/dist/components/comment/CommentsContext.d.ts +1 -1
- package/dist/components/editor/DragHandleColorList.d.ts +2 -1
- package/dist/components/editor/TableSelectionMenu.d.ts +1 -1
- package/dist/components/editor/TiptopDragHandle.d.ts +1 -1
- package/dist/components/editor/TransformIntoIcon.d.ts +1 -1
- package/dist/components/menus/ColorButton.d.ts +1 -1
- package/dist/components/menus/ColorButtonMenu.d.ts +1 -1
- package/dist/components/menus/LinkButtonMenu.d.ts +1 -1
- package/dist/components/menus/LinkPreviewMenu.d.ts +1 -1
- package/dist/components/menus/MoreOptionsButtonMenu.d.ts +1 -1
- package/dist/components/menus/TableButtonMenu.d.ts +1 -1
- package/dist/components/menus/TextSelectionMenu.d.ts +1 -1
- package/dist/components/menus/TransformIntoButtonMenu.d.ts +1 -1
- package/dist/components/ui/CloseIcon.d.ts +1 -1
- package/dist/components/ui/ColorIcon.d.ts +1 -1
- package/dist/components/ui/EditorButton.d.ts +1 -1
- package/dist/components/ui/Icon.d.ts +1 -1
- package/dist/extensions/image/ImageUploaderView.d.ts +2 -1
- package/dist/tiptop-editor.css +1 -1
- package/dist/tiptop-editor.es.js +379 -238
- package/dist/tiptop-editor.umd.js +12 -10
- package/dist/webview/bundle.css +1 -0
- package/dist/webview/bundle.js +166 -0
- package/dist/webview/editor.d.ts +1 -0
- package/dist/webview/editor.js +3 -0
- package/dist/webview/index.html +13 -0
- package/package.json +9 -3
package/dist/App.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function App(): import("react
|
|
1
|
+
declare function App(): import("react").JSX.Element;
|
|
2
2
|
export default App;
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* When pressed it snapshots the current text selection and opens
|
|
4
4
|
* the comment sidebar so the user can type a new inline comment.
|
|
5
5
|
*/
|
|
6
|
-
declare const CommentButton: () => import("react
|
|
6
|
+
declare const CommentButton: () => import("react").JSX.Element | null;
|
|
7
7
|
export default CommentButton;
|
|
@@ -7,5 +7,5 @@ import { Editor } from '@tiptap/react';
|
|
|
7
7
|
declare const CommentSelectionMenu: ({ editor, label }: {
|
|
8
8
|
editor: Editor;
|
|
9
9
|
label?: string;
|
|
10
|
-
}) => import("react
|
|
10
|
+
}) => import("react").JSX.Element | null;
|
|
11
11
|
export default CommentSelectionMenu;
|
|
@@ -7,5 +7,5 @@ interface CommentsProviderProps {
|
|
|
7
7
|
/** Called whenever the comments array changes. Use this to persist or sync externally. */
|
|
8
8
|
onCommentsChange?: (comments: TiptopComment[]) => void;
|
|
9
9
|
}
|
|
10
|
-
export declare const CommentsProvider: ({ children, initialComments, onCommentsChange }: CommentsProviderProps) => import("react
|
|
10
|
+
export declare const CommentsProvider: ({ children, initialComments, onCommentsChange }: CommentsProviderProps) => import("react").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { Editor } from '@tiptap/react';
|
|
2
3
|
declare const DragHandleColorList: ({ editor, onCloseMenu }: {
|
|
3
4
|
editor: Editor;
|
|
4
5
|
onCloseMenu: () => void;
|
|
5
|
-
}) =>
|
|
6
|
+
}) => React.JSX.Element;
|
|
6
7
|
export default DragHandleColorList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TextSelectionMenuProps } from '../../types';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ editor, prepend, append }: TextSelectionMenuProps) =>
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ editor, prepend, append }: TextSelectionMenuProps) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -2,5 +2,5 @@ import { Editor } from '@tiptap/react';
|
|
|
2
2
|
declare const TiptopDragHandle: ({ editor, dragHandleSlot }: {
|
|
3
3
|
editor: Editor;
|
|
4
4
|
dragHandleSlot?: React.ReactNode;
|
|
5
|
-
}) => import("react
|
|
5
|
+
}) => import("react").JSX.Element;
|
|
6
6
|
export default TiptopDragHandle;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const TransformIntoIcon: () => import("react
|
|
1
|
+
declare const TransformIntoIcon: () => import("react").JSX.Element;
|
|
2
2
|
export default TransformIntoIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ColorButtonProps } from '../../types';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ editor, buttonType, hsl, color, bgColor, tooltipText, tooltipDisabled, }: ColorButtonProps) =>
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ editor, buttonType, hsl, color, bgColor, tooltipText, tooltipDisabled, }: ColorButtonProps) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -3,5 +3,5 @@ import { Editor } from '@tiptap/react';
|
|
|
3
3
|
interface ColorButtonMenuProps {
|
|
4
4
|
editor: Editor;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: React.MemoExoticComponent<({ editor }: ColorButtonMenuProps) =>
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ editor }: ColorButtonMenuProps) => React.JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -3,5 +3,5 @@ import { Editor } from '@tiptap/react';
|
|
|
3
3
|
interface LinkButtonMenuProps {
|
|
4
4
|
editor: Editor;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: React.MemoExoticComponent<({ editor }: LinkButtonMenuProps) =>
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ editor }: LinkButtonMenuProps) => React.JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -3,5 +3,5 @@ import { Editor } from '@tiptap/react';
|
|
|
3
3
|
interface MoreOptionsButtonMenuProps {
|
|
4
4
|
editor: Editor;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: React.MemoExoticComponent<({ editor }: MoreOptionsButtonMenuProps) =>
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ editor }: MoreOptionsButtonMenuProps) => React.JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -3,5 +3,5 @@ import { Editor } from '@tiptap/react';
|
|
|
3
3
|
interface TableButtonMenuProps {
|
|
4
4
|
editor: Editor;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: React.MemoExoticComponent<({ editor }: TableButtonMenuProps) =>
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ editor }: TableButtonMenuProps) => React.JSX.Element | null>;
|
|
7
7
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TextSelectionMenuProps } from '../../types';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ editor, prepend, append }: TextSelectionMenuProps) =>
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ editor, prepend, append }: TextSelectionMenuProps) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -3,5 +3,5 @@ import { Editor } from '@tiptap/react';
|
|
|
3
3
|
interface TransformIntoButtonMenuProps {
|
|
4
4
|
editor: Editor;
|
|
5
5
|
}
|
|
6
|
-
declare const _default: React.MemoExoticComponent<({ editor }: TransformIntoButtonMenuProps) =>
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ editor }: TransformIntoButtonMenuProps) => React.JSX.Element>;
|
|
7
7
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const CloseIcon: () => import("react
|
|
1
|
+
declare const CloseIcon: () => import("react").JSX.Element;
|
|
2
2
|
export default CloseIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { EditorButtonProps } from '../../types';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
declare const _default: React.MemoExoticComponent<({ editor, buttonKey, tooltipText, isIconOnly, variant, isDisabled, icon, iconClass, text, withActive, onPressed, }: EditorButtonProps) =>
|
|
3
|
+
declare const _default: React.MemoExoticComponent<({ editor, buttonKey, tooltipText, isIconOnly, variant, isDisabled, icon, iconClass, text, withActive, onPressed, }: EditorButtonProps) => React.JSX.Element>;
|
|
4
4
|
export default _default;
|
|
@@ -4,5 +4,5 @@ export type IconProps = {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
strokeWidth?: number;
|
|
6
6
|
};
|
|
7
|
-
export declare const Icon: import('react').MemoExoticComponent<({ name, className, strokeWidth }: IconProps) => import("react
|
|
7
|
+
export declare const Icon: import('react').MemoExoticComponent<({ name, className, strokeWidth }: IconProps) => import("react").JSX.Element | null>;
|
|
8
8
|
export default Icon;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { NodeViewProps } from '@tiptap/core';
|
|
2
|
-
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
declare const ImageUploaderView: (props: NodeViewProps) => React.JSX.Element;
|
|
3
4
|
export default ImageUploaderView;
|