@fileverse-dev/ddoc 2.1.7-patch-2 → 2.1.7-patch-4
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 +1 -0
- package/dist/index.es.js +23797 -23412
- package/dist/package/common/toolbar-button.d.ts +0 -10
- package/dist/package/context/editor-context.d.ts +12 -0
- package/dist/package/extensions/slash-command/slash-comand.d.ts +0 -5
- package/dist/package/hooks/use-editing-context.d.ts +5 -1
- package/dist/package/zoom-service.d.ts +0 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/package/common/carousel.d.ts +0 -22
- package/dist/package/common/dropdown.d.ts +0 -12
- package/dist/package/common/surface.d.ts +0 -7
- package/dist/package/common/toolbar.d.ts +0 -13
- package/dist/package/common/types.d.ts +0 -19
- package/dist/package/components/color-selector.d.ts +0 -14
- package/dist/package/components/editor-bubble-menu/node-selector.d.ts +0 -3
- package/dist/package/components/editor-bubble-menu/props.d.ts +0 -60
- package/dist/package/components/editor-bubble-menu/types.d.ts +0 -30
- package/dist/package/components/editor-utils.d.ts +0 -119
- package/dist/package/components/inline-comment/comment-card.d.ts +0 -4
- package/dist/package/components/inline-comment/comment-dropdown.d.ts +0 -3
- package/dist/package/components/inline-comment/comment-section.d.ts +0 -3
- package/dist/package/components/inline-comment/comment-username.d.ts +0 -4
- package/dist/package/components/inline-comment/context/types.d.ts +0 -86
- package/dist/package/components/inline-comment/empty-comments.d.ts +0 -2
- package/dist/package/components/inline-comment/types.d.ts +0 -70
- package/dist/package/components/link-preview-card.d.ts +0 -12
- package/dist/package/components/presentation-mode/preview-panel.d.ts +0 -7
- package/dist/package/components/secure-image.d.ts +0 -13
- package/dist/package/components/tag-input.d.ts +0 -12
- package/dist/package/components/toc/toc.d.ts +0 -5
- package/dist/package/components/toc/types.d.ts +0 -30
- package/dist/package/components/utils-modal.d.ts +0 -12
- package/dist/package/extensions/action-button/action-button-node-view.d.ts +0 -3
- package/dist/package/extensions/action-button/action-button.d.ts +0 -16
- package/dist/package/extensions/action-button/modal.d.ts +0 -8
- package/dist/package/extensions/comment/comment.d.ts +0 -64
- package/dist/package/extensions/comment/index.d.ts +0 -2
- package/dist/package/extensions/d-block/dblock-node-view.d.ts +0 -6
- package/dist/package/extensions/d-block/dblock.d.ts +0 -14
- package/dist/package/extensions/doc.d.ts +0 -3
- package/dist/package/extensions/document/document.d.ts +0 -2
- package/dist/package/extensions/iframe/iframe.d.ts +0 -27
- package/dist/package/extensions/multi-column/column-selection.d.ts +0 -17
- package/dist/package/extensions/multi-column/column.d.ts +0 -4
- package/dist/package/extensions/multi-column/columns.d.ts +0 -18
- package/dist/package/extensions/multi-column/menus/columns-menu.d.ts +0 -4
- package/dist/package/extensions/multi-column/utils.d.ts +0 -22
- package/dist/package/extensions/page-break/page-break-node-view.d.ts +0 -4
- package/dist/package/extensions/resizable-media/media-paste-drop-plugin/index.d.ts +0 -1
- package/dist/package/extensions/resizable-media/media-paste-drop-plugin/media-paste-drop-plugin.d.ts +0 -12
- package/dist/package/extensions/resizable-media/resizable-media-menu-util.d.ts +0 -19
- package/dist/package/extensions/resizable-media/resizable-media-node-view.d.ts +0 -3
- package/dist/package/extensions/resizable-media/resizable-media.d.ts +0 -29
- package/dist/package/extensions/slash-command/slash-command-utils.d.ts +0 -15
- package/dist/package/extensions/slash-command/types.d.ts +0 -13
- package/dist/package/extensions/supercharged-table/extension-table/index.d.ts +0 -5
- package/dist/package/extensions/supercharged-table/extension-table/table-view.d.ts +0 -15
- package/dist/package/extensions/supercharged-table/extension-table/table.d.ts +0 -56
- package/dist/package/extensions/supercharged-table/extension-table/utilities/create-cell.d.ts +0 -3
- package/dist/package/extensions/supercharged-table/extension-table/utilities/create-table.d.ts +0 -3
- package/dist/package/extensions/supercharged-table/extension-table/utilities/delete-table-when-all-cells-selected.d.ts +0 -3
- package/dist/package/extensions/supercharged-table/extension-table/utilities/get-table-node-types.d.ts +0 -5
- package/dist/package/extensions/supercharged-table/extension-table/utilities/is-cell-selection.d.ts +0 -3
- package/dist/package/extensions/supercharged-table/extension-table-cell/index.d.ts +0 -4
- package/dist/package/extensions/supercharged-table/extension-table-cell/table-cell-node-view.d.ts +0 -4
- package/dist/package/extensions/supercharged-table/extension-table-cell/table-cell.d.ts +0 -6
- package/dist/package/extensions/supercharged-table/extension-table-header/index.d.ts +0 -4
- package/dist/package/extensions/supercharged-table/extension-table-header/table-header.d.ts +0 -6
- package/dist/package/extensions/supercharged-table/extension-table-row/index.d.ts +0 -4
- package/dist/package/extensions/supercharged-table/extension-table-row/table-row-node-view.d.ts +0 -14
- package/dist/package/extensions/supercharged-table/extension-table-row/table-row.d.ts +0 -7
- package/dist/package/extensions/supercharged-table/supercharged-table-kit.d.ts +0 -3
- package/dist/package/extensions/trailing-node/trailing-node.d.ts +0 -12
- package/dist/package/extensions/twitter-embed/embedded-tweet.d.ts +0 -18
- package/dist/package/extensions/twitter-embed/tweet-component-node-view.d.ts +0 -3
- package/dist/package/hooks/use-content-item-actions.d.ts +0 -10
- package/dist/package/hooks/use-visibility.d.ts +0 -24
- package/dist/package/hooks/useEscapeKey.d.ts +0 -1
- package/dist/package/utils/check-image-type.d.ts +0 -1
- package/dist/package/utils/colors.d.ts +0 -4
- package/dist/package/utils/debounce.d.ts +0 -1
- package/dist/package/utils/get-render-container.d.ts +0 -4
- package/dist/package/utils/getTemplateContent.d.ts +0 -3
- package/dist/package/utils/helpers.d.ts +0 -3
- package/dist/package/utils/md-to-html.d.ts +0 -9
- package/dist/package/utils/md-to-slides.d.ts +0 -14
- package/dist/package/utils/security.d.ts +0 -17
- package/dist/package/utils/template-utils.d.ts +0 -15
- /package/dist/package/{components/inline-comment/use-comment-actions.d.ts → utils/color-utils.d.ts} +0 -0
package/package.json
CHANGED
@@ -1,22 +0,0 @@
|
|
1
|
-
import { default as React } from 'react';
|
2
|
-
import { default as useEmblaCarousel, UseEmblaCarouselType } from 'embla-carousel-react';
|
3
|
-
|
4
|
-
type CarouselApi = UseEmblaCarouselType[1];
|
5
|
-
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
6
|
-
type CarouselOptions = UseCarouselParameters[0];
|
7
|
-
type CarouselPlugin = UseCarouselParameters[1];
|
8
|
-
type CarouselProps = {
|
9
|
-
opts?: CarouselOptions;
|
10
|
-
plugins?: CarouselPlugin;
|
11
|
-
orientation?: 'horizontal' | 'vertical';
|
12
|
-
setApi?: (api: CarouselApi) => void;
|
13
|
-
};
|
14
|
-
declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
15
|
-
declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
16
|
-
declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
17
|
-
declare const CarouselIndicator: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
18
|
-
index: number;
|
19
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
20
|
-
declare const CarouselPrevious: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
21
|
-
declare const CarouselNext: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
22
|
-
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselIndicator, CarouselPrevious, CarouselNext, };
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { default as React } from 'react';
|
2
|
-
|
3
|
-
export declare const DropdownCategoryTitle: ({ children, }: {
|
4
|
-
children: React.ReactNode;
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
6
|
-
export declare const DropdownButton: ({ children, isActive, onClick, disabled, className, }: {
|
7
|
-
children: React.ReactNode;
|
8
|
-
isActive?: boolean;
|
9
|
-
onClick?: () => void;
|
10
|
-
disabled?: boolean;
|
11
|
-
className?: string;
|
12
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import { HTMLProps } from 'react';
|
2
|
-
|
3
|
-
export type SurfaceProps = HTMLProps<HTMLDivElement> & {
|
4
|
-
withShadow?: boolean;
|
5
|
-
withBorder?: boolean;
|
6
|
-
};
|
7
|
-
export declare const Surface: import('react').ForwardRefExoticComponent<Omit<SurfaceProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { HTMLProps } from 'react';
|
2
|
-
|
3
|
-
export type ToolbarWrapperProps = {
|
4
|
-
shouldShowContent?: boolean;
|
5
|
-
isVertical?: boolean;
|
6
|
-
} & HTMLProps<HTMLDivElement>;
|
7
|
-
export type ToolbarDividerProps = {
|
8
|
-
horizontal?: boolean;
|
9
|
-
} & HTMLProps<HTMLDivElement>;
|
10
|
-
export declare const Toolbar: {
|
11
|
-
Wrapper: import('react').ForwardRefExoticComponent<Omit<ToolbarWrapperProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
12
|
-
Divider: import('react').ForwardRefExoticComponent<Omit<ToolbarDividerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
13
|
-
};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { default as React } from 'react';
|
2
|
-
import { Editor as CoreEditor } from '@tiptap/core';
|
3
|
-
import { Editor } from '@tiptap/react';
|
4
|
-
import { EditorState } from '@tiptap/pm/state';
|
5
|
-
import { EditorView } from '@tiptap/pm/view';
|
6
|
-
|
7
|
-
export interface MenuProps {
|
8
|
-
editor: Editor;
|
9
|
-
appendTo?: React.RefObject<any>;
|
10
|
-
shouldHide?: boolean;
|
11
|
-
}
|
12
|
-
export interface ShouldShowProps {
|
13
|
-
editor?: CoreEditor;
|
14
|
-
view: EditorView;
|
15
|
-
state?: EditorState;
|
16
|
-
oldState?: EditorState;
|
17
|
-
from?: number;
|
18
|
-
to?: number;
|
19
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { Editor } from '@tiptap/core';
|
2
|
-
import { Dispatch, FC, SetStateAction } from 'react';
|
3
|
-
|
4
|
-
export interface BubbleColorMenuItem {
|
5
|
-
name: string;
|
6
|
-
color: string;
|
7
|
-
}
|
8
|
-
interface ColorSelectorProps {
|
9
|
-
editor: Editor;
|
10
|
-
isOpen: boolean;
|
11
|
-
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
12
|
-
}
|
13
|
-
export declare const ColorSelector: FC<ColorSelectorProps>;
|
14
|
-
export {};
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import { Editor } from '@tiptap/core';
|
2
|
-
import { EditorBubbleMenuProps } from './types';
|
3
|
-
|
4
|
-
export declare const bubbleMenuProps: (props: EditorBubbleMenuProps) => {
|
5
|
-
tippyOptions: {
|
6
|
-
moveTransition: string;
|
7
|
-
duration: number;
|
8
|
-
animation: string;
|
9
|
-
zIndex: number;
|
10
|
-
appendTo: () => HTMLElement | null;
|
11
|
-
popperOptions: {
|
12
|
-
strategy: string;
|
13
|
-
modifiers: ({
|
14
|
-
name: string;
|
15
|
-
options: {
|
16
|
-
fallbackPlacements: string[];
|
17
|
-
altAxis?: undefined;
|
18
|
-
tether?: undefined;
|
19
|
-
};
|
20
|
-
} | {
|
21
|
-
name: string;
|
22
|
-
options: {
|
23
|
-
altAxis: boolean;
|
24
|
-
tether: boolean;
|
25
|
-
fallbackPlacements?: undefined;
|
26
|
-
};
|
27
|
-
})[];
|
28
|
-
};
|
29
|
-
};
|
30
|
-
className?: string | undefined;
|
31
|
-
editor: import('@tiptap/extension-bubble-menu').BubbleMenuPluginProps["editor"] | null;
|
32
|
-
pluginKey?: string | import('prosemirror-state').PluginKey<any> | undefined;
|
33
|
-
updateDelay?: number | undefined;
|
34
|
-
shouldShow?: ((props: {
|
35
|
-
editor: Editor;
|
36
|
-
element: HTMLElement;
|
37
|
-
view: import('prosemirror-view').EditorView;
|
38
|
-
state: import('prosemirror-state').EditorState;
|
39
|
-
oldState?: import('prosemirror-state').EditorState;
|
40
|
-
from: number;
|
41
|
-
to: number;
|
42
|
-
}) => boolean) | null | undefined;
|
43
|
-
activeCommentId: string | null;
|
44
|
-
isPreviewMode: boolean;
|
45
|
-
disableInlineComment: boolean;
|
46
|
-
onError?: (errorString: string) => void;
|
47
|
-
zoomLevel: string;
|
48
|
-
setIsCommentSectionOpen?: (isOpen: boolean) => void;
|
49
|
-
inlineCommentData?: import('../../types').InlineCommentData;
|
50
|
-
setInlineCommentData?: React.Dispatch<React.SetStateAction<import('../../types').InlineCommentData>>;
|
51
|
-
walletAddress?: string;
|
52
|
-
username?: string;
|
53
|
-
onInlineComment?: () => void;
|
54
|
-
commentDrawerOpen?: boolean;
|
55
|
-
setCommentDrawerOpen?: React.Dispatch<import('react').SetStateAction<boolean>>;
|
56
|
-
isCollabDocumentPublished?: boolean | undefined;
|
57
|
-
};
|
58
|
-
export declare const shouldShow: ({ editor }: {
|
59
|
-
editor: Editor;
|
60
|
-
}) => boolean;
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import { BubbleMenuProps, Editor } from '@tiptap/react';
|
2
|
-
import { SetStateAction } from 'react';
|
3
|
-
import { InlineCommentData } from '../../types';
|
4
|
-
|
5
|
-
export interface BubbleMenuItem {
|
6
|
-
name: string;
|
7
|
-
isActive: () => boolean;
|
8
|
-
command: () => void;
|
9
|
-
icon: any;
|
10
|
-
}
|
11
|
-
export type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
|
12
|
-
activeCommentId: string | null;
|
13
|
-
isPreviewMode: boolean;
|
14
|
-
disableInlineComment: boolean;
|
15
|
-
onError?: (errorString: string) => void;
|
16
|
-
zoomLevel: string;
|
17
|
-
setIsCommentSectionOpen?: (isOpen: boolean) => void;
|
18
|
-
inlineCommentData?: InlineCommentData;
|
19
|
-
setInlineCommentData?: React.Dispatch<React.SetStateAction<InlineCommentData>>;
|
20
|
-
walletAddress?: string;
|
21
|
-
username?: string;
|
22
|
-
onInlineComment?: () => void;
|
23
|
-
commentDrawerOpen?: boolean;
|
24
|
-
setCommentDrawerOpen?: React.Dispatch<SetStateAction<boolean>>;
|
25
|
-
isCollabDocumentPublished?: boolean | undefined;
|
26
|
-
};
|
27
|
-
export interface NodeSelectorProps {
|
28
|
-
editor: Editor;
|
29
|
-
elementRef: React.RefObject<HTMLDivElement>;
|
30
|
-
}
|
@@ -1,119 +0,0 @@
|
|
1
|
-
import { default as React, Dispatch, SetStateAction } from 'react';
|
2
|
-
import { IEditorTool } from '../hooks/use-visibility';
|
3
|
-
import { Editor } from '@tiptap/react';
|
4
|
-
|
5
|
-
interface IEditorToolElement {
|
6
|
-
icon: any;
|
7
|
-
title: string;
|
8
|
-
onClick: () => void;
|
9
|
-
isActive: boolean;
|
10
|
-
group?: string;
|
11
|
-
}
|
12
|
-
export declare const fonts: {
|
13
|
-
title: string;
|
14
|
-
value: string;
|
15
|
-
command: (editor: Editor) => void;
|
16
|
-
}[];
|
17
|
-
export declare const ERR_MSG_MAP: {
|
18
|
-
IMAGE_SIZE: string;
|
19
|
-
};
|
20
|
-
export declare const IMG_UPLOAD_SETTINGS: {
|
21
|
-
Extended: {
|
22
|
-
maxSize: number;
|
23
|
-
errorMsg: string;
|
24
|
-
};
|
25
|
-
Base: {
|
26
|
-
maxSize: number;
|
27
|
-
errorMsg: string;
|
28
|
-
};
|
29
|
-
};
|
30
|
-
export declare const useEditorToolbar: ({ editor, onError, secureImageUploadUrl, onMarkdownExport, onMarkdownImport, onPdfExport, }: {
|
31
|
-
editor: Editor;
|
32
|
-
onError?: (errorString: string) => void;
|
33
|
-
secureImageUploadUrl?: string;
|
34
|
-
onMarkdownExport?: () => void;
|
35
|
-
onMarkdownImport?: () => void;
|
36
|
-
onPdfExport?: () => void;
|
37
|
-
}) => {
|
38
|
-
undoRedoTools: (IEditorToolElement | null)[];
|
39
|
-
toolbar: (IEditorToolElement | null)[];
|
40
|
-
markdownOptions: (IEditorToolElement | null)[];
|
41
|
-
pdfExportOption: (IEditorToolElement | null)[];
|
42
|
-
bottomToolbar: (IEditorToolElement | null)[];
|
43
|
-
toolRef: React.RefObject<HTMLDivElement>;
|
44
|
-
toolVisibility: IEditorTool;
|
45
|
-
setToolVisibility: React.Dispatch<React.SetStateAction<IEditorTool>>;
|
46
|
-
isExportModalOpen: boolean;
|
47
|
-
setIsExportModalOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
48
|
-
fileExportsOpen: boolean;
|
49
|
-
setFileExportsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
50
|
-
};
|
51
|
-
export declare const TextHighlighter: ({ editor, setVisibility, elementRef, }: {
|
52
|
-
editor: Editor;
|
53
|
-
elementRef: React.RefObject<HTMLDivElement>;
|
54
|
-
setVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
55
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
56
|
-
export declare const EditorFontFamily: ({ elementRef, editor, setToolVisibility, }: {
|
57
|
-
elementRef: React.RefObject<HTMLDivElement>;
|
58
|
-
editor: Editor;
|
59
|
-
setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
60
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
61
|
-
export declare const EditorAlignment: ({ elementRef, editor, setToolVisibility, }: {
|
62
|
-
elementRef: React.RefObject<HTMLDivElement>;
|
63
|
-
editor: Editor;
|
64
|
-
setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
65
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
66
|
-
export declare const EditorList: ({ elementRef, editor, setToolVisibility, }: {
|
67
|
-
elementRef: React.RefObject<HTMLDivElement>;
|
68
|
-
editor: Editor;
|
69
|
-
setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
70
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
71
|
-
export declare const LinkPopup: ({ elementRef, editor, setToolVisibility, bubbleMenu, setIsLinkPopupOpen, onError, }: {
|
72
|
-
elementRef: React.RefObject<HTMLDivElement>;
|
73
|
-
editor: Editor;
|
74
|
-
setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
75
|
-
bubbleMenu?: boolean;
|
76
|
-
setIsLinkPopupOpen?: Dispatch<SetStateAction<boolean>>;
|
77
|
-
onError?: (errorString: string) => void;
|
78
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
79
|
-
export declare const InlineCommentPopup: ({ elementRef, editor, setIsCommentSectionOpen, setIsInlineCommentOpen, inlineCommentData, setInlineCommentData, onInlineComment, }: {
|
80
|
-
elementRef: React.RefObject<HTMLDivElement>;
|
81
|
-
editor: Editor;
|
82
|
-
setIsCommentSectionOpen: Dispatch<SetStateAction<boolean>>;
|
83
|
-
setIsInlineCommentOpen: Dispatch<SetStateAction<boolean>>;
|
84
|
-
inlineCommentData: {
|
85
|
-
highlightedTextContent: string;
|
86
|
-
inlineCommentText: string;
|
87
|
-
handleClick: boolean;
|
88
|
-
};
|
89
|
-
setInlineCommentData: (data: {
|
90
|
-
highlightedTextContent?: string;
|
91
|
-
inlineCommentText?: string;
|
92
|
-
handleClick?: boolean;
|
93
|
-
}) => void;
|
94
|
-
onInlineComment?: () => void;
|
95
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
96
|
-
export declare const ScriptsPopup: ({ elementRef, editor, }: {
|
97
|
-
elementRef: React.RefObject<HTMLDivElement>;
|
98
|
-
editor: Editor;
|
99
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
100
|
-
export declare const TextColor: ({ editor, setVisibility, elementRef, }: {
|
101
|
-
editor: Editor;
|
102
|
-
elementRef: React.RefObject<HTMLDivElement>;
|
103
|
-
setVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
104
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
105
|
-
export declare const TextHeading: ({ editor, setVisibility, elementRef, }: {
|
106
|
-
editor: Editor;
|
107
|
-
elementRef: React.RefObject<HTMLDivElement>;
|
108
|
-
setVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
109
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
110
|
-
export declare const TextFormatingPopup: ({ editor, isOpen, setIsOpen, setToolVisibility, }: {
|
111
|
-
editor: Editor;
|
112
|
-
isOpen: boolean;
|
113
|
-
setIsOpen: (open: boolean) => void;
|
114
|
-
setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
|
115
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
116
|
-
export declare const TextColorPicker: ({ editor }: {
|
117
|
-
editor: Editor;
|
118
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
119
|
-
export {};
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { CommentCardProps } from './types';
|
2
|
-
|
3
|
-
export declare const CommentCard: ({ username, selectedContent, comment, createdAt, replies, onResolve, onDelete, onUnresolve, isResolved, isDropdown, activeCommentId, id, isDisabled, isCommentOwner, version, emptyComment, }: CommentCardProps) => import("react/jsx-runtime").JSX.Element;
|
4
|
-
export declare const UserDisplaySkeleton: () => import("react/jsx-runtime").JSX.Element;
|
@@ -1,4 +0,0 @@
|
|
1
|
-
import { CommentUsernameProps } from './context/types';
|
2
|
-
|
3
|
-
declare const CommentUsername: ({ username, setUsername, isNavbarVisible, isConnected, connectViaUsername, connectViaWallet, isLoading, }: CommentUsernameProps) => import("react/jsx-runtime").JSX.Element;
|
4
|
-
export { CommentUsername };
|
@@ -1,86 +0,0 @@
|
|
1
|
-
import { Editor } from '@tiptap/react';
|
2
|
-
import { IComment } from '../../../extensions/comment';
|
3
|
-
import { SetStateAction } from 'react';
|
4
|
-
import { CommentAccountProps } from '../../../types';
|
5
|
-
|
6
|
-
export interface CommentContextType extends CommentAccountProps {
|
7
|
-
comments: IComment[];
|
8
|
-
setComments: React.Dispatch<SetStateAction<IComment[]>>;
|
9
|
-
editor: Editor;
|
10
|
-
username?: string | null;
|
11
|
-
setUsername?: React.Dispatch<SetStateAction<string>>;
|
12
|
-
showResolved: boolean;
|
13
|
-
setShowResolved: (show: boolean) => void;
|
14
|
-
resolveComment: (commentId: string) => void;
|
15
|
-
unresolveComment: (commentId: string) => void;
|
16
|
-
deleteComment: (commentId: string) => void;
|
17
|
-
handleAddReply: (activeCommentId: string, replyContent: string, onCommentReply: (activeCommentId: string, reply: IComment) => void) => void;
|
18
|
-
focusCommentInEditor: (commentId: string) => void;
|
19
|
-
handleReplyChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
20
|
-
handleCommentChange: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
21
|
-
handleCommentKeyDown: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
22
|
-
handleReplySubmit: () => void;
|
23
|
-
toggleResolved: () => void;
|
24
|
-
openReplyId: string | null;
|
25
|
-
setOpenReplyId: (id: string | null) => void;
|
26
|
-
handleReplyKeyDown: (event: React.KeyboardEvent<HTMLTextAreaElement>) => void;
|
27
|
-
commentsSectionRef: React.RefObject<HTMLDivElement>;
|
28
|
-
replySectionRef: React.RefObject<HTMLDivElement>;
|
29
|
-
addComment: (content?: string) => void;
|
30
|
-
handleCommentSubmit: () => void;
|
31
|
-
reply: string;
|
32
|
-
setReply: React.Dispatch<React.SetStateAction<string>>;
|
33
|
-
comment: string;
|
34
|
-
setComment: React.Dispatch<React.SetStateAction<string>>;
|
35
|
-
onPrevComment: () => void;
|
36
|
-
onNextComment: () => void;
|
37
|
-
activeCommentIndex: number;
|
38
|
-
activeComment: IComment | undefined;
|
39
|
-
selectedText: string;
|
40
|
-
isCommentOpen: boolean;
|
41
|
-
handleInlineComment: () => void;
|
42
|
-
portalRef: React.RefObject<HTMLDivElement>;
|
43
|
-
buttonRef: React.RefObject<HTMLDivElement>;
|
44
|
-
dropdownRef: React.RefObject<HTMLDivElement>;
|
45
|
-
activeComments: IComment[];
|
46
|
-
handleInput: (e: React.FormEvent<HTMLTextAreaElement>, content: string) => void;
|
47
|
-
isCommentActive: boolean;
|
48
|
-
isCommentResolved: boolean;
|
49
|
-
ensResolutionUrl: string;
|
50
|
-
onCommentReply?: (activeCommentId: string, reply: IComment) => void;
|
51
|
-
onComment?: () => void;
|
52
|
-
setCommentDrawerOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
53
|
-
inlineCommentData: {
|
54
|
-
inlineCommentText: string;
|
55
|
-
handleClick: boolean;
|
56
|
-
};
|
57
|
-
setInlineCommentData: React.Dispatch<React.SetStateAction<{
|
58
|
-
inlineCommentText: string;
|
59
|
-
handleClick: boolean;
|
60
|
-
}>>;
|
61
|
-
}
|
62
|
-
export interface CommentProviderProps extends CommentAccountProps {
|
63
|
-
children: React.ReactNode;
|
64
|
-
editor: Editor;
|
65
|
-
initialComments?: IComment[];
|
66
|
-
setInitialComments?: React.Dispatch<SetStateAction<IComment[]>>;
|
67
|
-
onCommentReply?: (activeCommentId: string, reply: IComment) => void;
|
68
|
-
onNewComment?: (newComment: IComment) => void;
|
69
|
-
onResolveComment?: (activeCommentId: string) => void;
|
70
|
-
onUnresolveComment?: (activeCommentId: string) => void;
|
71
|
-
onDeleteComment?: (activeCommentId: string) => void;
|
72
|
-
username: string | null;
|
73
|
-
setUsername?: React.Dispatch<SetStateAction<string>>;
|
74
|
-
activeCommentId: string | null;
|
75
|
-
setActiveCommentId: React.Dispatch<React.SetStateAction<string | null>>;
|
76
|
-
focusCommentWithActiveId: (id: string) => void;
|
77
|
-
ensResolutionUrl: string;
|
78
|
-
onInlineComment?: () => void;
|
79
|
-
onComment?: () => void;
|
80
|
-
setCommentDrawerOpen?: React.Dispatch<React.SetStateAction<boolean>>;
|
81
|
-
}
|
82
|
-
export interface CommentUsernameProps extends CommentAccountProps {
|
83
|
-
username?: string | null;
|
84
|
-
setUsername?: React.Dispatch<SetStateAction<string>>;
|
85
|
-
isNavbarVisible?: boolean;
|
86
|
-
}
|
@@ -1,70 +0,0 @@
|
|
1
|
-
import { BubbleMenuProps, Editor } from '@tiptap/react';
|
2
|
-
import { IComment } from '../../extensions/comment';
|
3
|
-
import { SetStateAction } from 'react';
|
4
|
-
|
5
|
-
export interface UseCommentActionsProps {
|
6
|
-
editor: Editor;
|
7
|
-
comments: IComment[];
|
8
|
-
setComments: (comments: IComment[]) => void;
|
9
|
-
}
|
10
|
-
export interface CommentDropdownProps {
|
11
|
-
editor: Editor;
|
12
|
-
onSubmit: (content: string) => string;
|
13
|
-
onClose: () => void;
|
14
|
-
setComments?: (comments: IComment[]) => void;
|
15
|
-
comments?: IComment[];
|
16
|
-
username?: string;
|
17
|
-
walletAddress?: string;
|
18
|
-
activeCommentId?: string;
|
19
|
-
commentDrawerOpen?: boolean;
|
20
|
-
setCommentDrawerOpen?: React.Dispatch<SetStateAction<boolean>>;
|
21
|
-
initialComment?: string;
|
22
|
-
isBubbleMenu?: boolean;
|
23
|
-
selectedContent?: string;
|
24
|
-
isDisabled?: boolean;
|
25
|
-
isCommentOwner?: boolean;
|
26
|
-
}
|
27
|
-
export interface CommentDrawerProps {
|
28
|
-
isOpen: boolean;
|
29
|
-
onClose: () => void;
|
30
|
-
isNavbarVisible: boolean;
|
31
|
-
isPresentationMode: boolean;
|
32
|
-
activeCommentId: string | null;
|
33
|
-
isPreviewMode: boolean;
|
34
|
-
}
|
35
|
-
export interface CommentCardProps extends IComment {
|
36
|
-
comment?: string;
|
37
|
-
onResolve?: (commentId: string) => void;
|
38
|
-
onDelete?: (commentId: string) => void;
|
39
|
-
onUnresolve?: (commentId: string) => void;
|
40
|
-
isResolved?: boolean;
|
41
|
-
isDropdown?: boolean;
|
42
|
-
activeCommentId?: string;
|
43
|
-
isDisabled?: boolean;
|
44
|
-
isCommentOwner?: boolean;
|
45
|
-
version?: string;
|
46
|
-
emptyComment?: boolean;
|
47
|
-
}
|
48
|
-
export type CommentBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
|
49
|
-
zoomLevel: string;
|
50
|
-
};
|
51
|
-
export interface CommentReplyProps {
|
52
|
-
reply: string;
|
53
|
-
username: string;
|
54
|
-
createdAt: Date;
|
55
|
-
isLast: boolean;
|
56
|
-
}
|
57
|
-
export interface EnsStatus {
|
58
|
-
name: string;
|
59
|
-
isEns: boolean;
|
60
|
-
isLoading: boolean;
|
61
|
-
}
|
62
|
-
export interface CommentSectionProps {
|
63
|
-
activeCommentId: string | null;
|
64
|
-
isNavbarVisible?: boolean;
|
65
|
-
isPresentationMode?: boolean;
|
66
|
-
}
|
67
|
-
export interface UserDisplayProps {
|
68
|
-
ensStatus: EnsStatus;
|
69
|
-
createdAt: Date | undefined;
|
70
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
export interface LinkPreviewData {
|
2
|
-
image: string;
|
3
|
-
title: string;
|
4
|
-
description: string;
|
5
|
-
favicon: string;
|
6
|
-
link: string;
|
7
|
-
}
|
8
|
-
export declare const LinkPreviewCard: ({ link, metadataProxyUrl, hoverEvent, }: {
|
9
|
-
link: string;
|
10
|
-
metadataProxyUrl: string;
|
11
|
-
hoverEvent: EventTarget;
|
12
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,7 +0,0 @@
|
|
1
|
-
interface PreviewPanelProps {
|
2
|
-
slides: string[];
|
3
|
-
currentSlide: number;
|
4
|
-
setCurrentSlide: (index: number) => void;
|
5
|
-
}
|
6
|
-
export declare const PreviewPanel: ({ slides, currentSlide, setCurrentSlide, }: PreviewPanelProps) => import("react/jsx-runtime").JSX.Element;
|
7
|
-
export {};
|
@@ -1,13 +0,0 @@
|
|
1
|
-
type Props = {
|
2
|
-
encryptedKey: string;
|
3
|
-
url: string;
|
4
|
-
iv: string;
|
5
|
-
privateKey: string;
|
6
|
-
alt?: string;
|
7
|
-
width?: string;
|
8
|
-
height?: string;
|
9
|
-
className?: string;
|
10
|
-
caption?: string;
|
11
|
-
};
|
12
|
-
export declare const SecureImage: import('react').ForwardRefExoticComponent<Props & import('react').RefAttributes<HTMLImageElement>>;
|
13
|
-
export {};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
export interface TagProps {
|
2
|
-
name: string;
|
3
|
-
color: string;
|
4
|
-
}
|
5
|
-
export interface TagInputProps {
|
6
|
-
tags: TagProps[];
|
7
|
-
selectedTags: TagProps[];
|
8
|
-
onAddTag: (tag: TagProps) => void;
|
9
|
-
isPreviewMode: boolean;
|
10
|
-
}
|
11
|
-
declare const TagInput: ({ tags, selectedTags, onAddTag, isPreviewMode, }: TagInputProps) => import("react/jsx-runtime").JSX.Element | null;
|
12
|
-
export { TagInput };
|
@@ -1,5 +0,0 @@
|
|
1
|
-
import { ToCProps, ToCItemProps } from './types';
|
2
|
-
|
3
|
-
export declare const ToCItem: ({ item, onItemClick, index, }: ToCItemProps) => import("react/jsx-runtime").JSX.Element;
|
4
|
-
export declare const ToCEmptyState: () => import("react/jsx-runtime").JSX.Element;
|
5
|
-
export declare const ToC: ({ items, editor, setItems }: ToCProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,30 +0,0 @@
|
|
1
|
-
import { Editor } from '@tiptap/react';
|
2
|
-
import { SetStateAction } from 'react';
|
3
|
-
|
4
|
-
export interface ToCItemType {
|
5
|
-
id: string;
|
6
|
-
level: number;
|
7
|
-
textContent: string;
|
8
|
-
itemIndex: number;
|
9
|
-
isActive?: boolean;
|
10
|
-
}
|
11
|
-
export type ToCProps = {
|
12
|
-
items: ToCItemType[];
|
13
|
-
setItems: (items: ToCItemType[] | ((prev: ToCItemType[]) => ToCItemType[])) => void;
|
14
|
-
editor: Editor;
|
15
|
-
};
|
16
|
-
export type ToCItemProps = {
|
17
|
-
item: ToCItemType;
|
18
|
-
onItemClick: (e: React.MouseEvent, id: string) => void;
|
19
|
-
onItemRemove: (e: React.MouseEvent, id: string) => void;
|
20
|
-
index: number;
|
21
|
-
};
|
22
|
-
export interface DocumentOutlineProps {
|
23
|
-
editor: Editor;
|
24
|
-
hasToC: boolean;
|
25
|
-
items: ToCItemType[];
|
26
|
-
setItems: (items: ToCItemType[] | ((prev: ToCItemType[]) => ToCItemType[])) => void;
|
27
|
-
showTOC: boolean | undefined;
|
28
|
-
setShowTOC: React.Dispatch<SetStateAction<boolean>> | undefined;
|
29
|
-
isPreviewMode: boolean;
|
30
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { default as React } from 'react';
|
2
|
-
|
3
|
-
interface UtilsModalProps {
|
4
|
-
title: string;
|
5
|
-
content: React.ReactNode;
|
6
|
-
isOpen?: boolean;
|
7
|
-
setIsOpen?: (open: boolean) => void;
|
8
|
-
contentClassName?: string;
|
9
|
-
onCloseAutoFocus?: () => void;
|
10
|
-
}
|
11
|
-
declare const UtilsModal: ({ title, content, isOpen, setIsOpen, contentClassName, onCloseAutoFocus, }: UtilsModalProps) => import("react/jsx-runtime").JSX.Element;
|
12
|
-
export default UtilsModal;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { Node } from '@tiptap/core';
|
2
|
-
|
3
|
-
declare module '@tiptap/core' {
|
4
|
-
interface Commands<ReturnType> {
|
5
|
-
actionButton: {
|
6
|
-
/**
|
7
|
-
* Toggle a actionButton
|
8
|
-
*/
|
9
|
-
setActionButton: (option?: string) => ReturnType;
|
10
|
-
};
|
11
|
-
}
|
12
|
-
}
|
13
|
-
export interface ActionButtonOptions {
|
14
|
-
HTMLAttributes: Record<string, any>;
|
15
|
-
}
|
16
|
-
export declare const actionButton: Node<ActionButtonOptions, any>;
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Editor } from '@tiptap/core';
|
2
|
-
import { Dispatch, SetStateAction } from 'react';
|
3
|
-
|
4
|
-
export declare const Modal: ({ editor, setShowModal, node, }: {
|
5
|
-
editor?: Editor;
|
6
|
-
setShowModal: Dispatch<SetStateAction<boolean>>;
|
7
|
-
node: any;
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|