@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
@@ -1,64 +0,0 @@
|
|
1
|
-
import { Mark, Range } from '@tiptap/core';
|
2
|
-
import { Mark as PMMark } from '@tiptap/pm/model';
|
3
|
-
|
4
|
-
declare module '@tiptap/core' {
|
5
|
-
interface Commands<ReturnType> {
|
6
|
-
comment: {
|
7
|
-
/**
|
8
|
-
* Set a comment (add)
|
9
|
-
*/
|
10
|
-
setComment: (commentId: string) => ReturnType;
|
11
|
-
/**
|
12
|
-
* Unset a comment (remove completely)
|
13
|
-
*/
|
14
|
-
unsetComment: (commentId: string) => ReturnType;
|
15
|
-
/**
|
16
|
-
* Resolve a comment (keep ID but update styling)
|
17
|
-
*/
|
18
|
-
resolveComment: (commentId: string) => ReturnType;
|
19
|
-
/**
|
20
|
-
* Unresolve a comment (switch back to unresolved state)
|
21
|
-
*/
|
22
|
-
unresolveComment: (commentId: string) => ReturnType;
|
23
|
-
/**
|
24
|
-
* Set a comment active
|
25
|
-
*/
|
26
|
-
setCommentActive: (commentId: string) => ReturnType;
|
27
|
-
/**
|
28
|
-
* Unset comment active
|
29
|
-
*/
|
30
|
-
unsetCommentActive: () => ReturnType;
|
31
|
-
};
|
32
|
-
}
|
33
|
-
}
|
34
|
-
export interface MarkWithRange {
|
35
|
-
mark: PMMark;
|
36
|
-
range: Range;
|
37
|
-
}
|
38
|
-
export interface CommentOptions {
|
39
|
-
HTMLAttributes: Record<string, any>;
|
40
|
-
onCommentActivated: (commentId: string) => void;
|
41
|
-
onCommentResolved?: (commentId: string) => void;
|
42
|
-
onCommentUnresolved?: (commentId: string) => void;
|
43
|
-
onCommentDeleted?: (commentId: string) => void;
|
44
|
-
}
|
45
|
-
export interface CommentStorage {
|
46
|
-
activeCommentId: string | null;
|
47
|
-
}
|
48
|
-
export interface IComment {
|
49
|
-
id?: string;
|
50
|
-
username?: string;
|
51
|
-
reactions?: {
|
52
|
-
count: number;
|
53
|
-
type: string;
|
54
|
-
}[];
|
55
|
-
selectedContent?: string;
|
56
|
-
content?: string;
|
57
|
-
replies?: IComment[];
|
58
|
-
createdAt?: Date;
|
59
|
-
resolved?: boolean;
|
60
|
-
deleted?: boolean;
|
61
|
-
commentIndex?: number;
|
62
|
-
version?: string;
|
63
|
-
}
|
64
|
-
export declare const CommentExtension: Mark<CommentOptions, CommentStorage>;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { Node } from '@tiptap/core';
|
2
|
-
|
3
|
-
export interface DBlockOptions {
|
4
|
-
HTMLAttributes: Record<string, any>;
|
5
|
-
secureImageUploadUrl?: string;
|
6
|
-
}
|
7
|
-
declare module '@tiptap/core' {
|
8
|
-
interface Commands<ReturnType> {
|
9
|
-
dBlock: {
|
10
|
-
setDBlock: (position?: number) => ReturnType;
|
11
|
-
};
|
12
|
-
}
|
13
|
-
}
|
14
|
-
export declare const DBlock: Node<DBlockOptions, any>;
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { Node } from '@tiptap/core';
|
2
|
-
|
3
|
-
export interface IframeOptions {
|
4
|
-
allowFullscreen: boolean;
|
5
|
-
HTMLAttributes: {
|
6
|
-
[key: string]: any;
|
7
|
-
};
|
8
|
-
width?: number;
|
9
|
-
height?: number;
|
10
|
-
}
|
11
|
-
declare module '@tiptap/core' {
|
12
|
-
interface Commands<ReturnType> {
|
13
|
-
iframe: {
|
14
|
-
/**
|
15
|
-
* Add an iframe
|
16
|
-
*/
|
17
|
-
setIframe: (options: {
|
18
|
-
src: string;
|
19
|
-
alt?: string;
|
20
|
-
title?: string;
|
21
|
-
width?: number;
|
22
|
-
height?: number;
|
23
|
-
}) => ReturnType;
|
24
|
-
};
|
25
|
-
}
|
26
|
-
}
|
27
|
-
export declare const Iframe: Node<IframeOptions, any>;
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { ResolvedPos, Node } from 'prosemirror-model';
|
2
|
-
import { Selection } from 'prosemirror-state';
|
3
|
-
|
4
|
-
export declare class ColumnSelection extends Selection {
|
5
|
-
constructor(selection: Selection);
|
6
|
-
_$from: ResolvedPos;
|
7
|
-
_$to: ResolvedPos;
|
8
|
-
get $from(): ResolvedPos;
|
9
|
-
get $to(): ResolvedPos;
|
10
|
-
map(): this;
|
11
|
-
content(): import('prosemirror-model').Slice;
|
12
|
-
eq(other: Selection): boolean;
|
13
|
-
toJSON(): any;
|
14
|
-
expandSelection(doc: Node): void;
|
15
|
-
static create(doc: Node, from: number, to: number): ColumnSelection;
|
16
|
-
getFirstNode(): Node | null;
|
17
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Node } from '@tiptap/core';
|
2
|
-
|
3
|
-
export declare enum ColumnLayout {
|
4
|
-
AlignLeft = "align-left",
|
5
|
-
AlignRight = "align-right",
|
6
|
-
AlignCenter = "align-center"
|
7
|
-
}
|
8
|
-
declare module '@tiptap/core' {
|
9
|
-
interface Commands<ReturnType> {
|
10
|
-
columns: {
|
11
|
-
unsetColumns: () => ReturnType;
|
12
|
-
setColumns: (columns: number) => ReturnType;
|
13
|
-
setLayout: (layout: ColumnLayout) => ReturnType;
|
14
|
-
};
|
15
|
-
}
|
16
|
-
}
|
17
|
-
export declare const Columns: Node<any, any>;
|
18
|
-
export default Columns;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { JSONContent } from '@tiptap/core';
|
2
|
-
import { Node, ResolvedPos } from 'prosemirror-model';
|
3
|
-
|
4
|
-
export declare const buildNode: ({ type, content }: JSONContent) => JSONContent;
|
5
|
-
export declare const buildParagraph: ({ content }: Partial<JSONContent>) => JSONContent;
|
6
|
-
export declare const buildDBlock: ({ content }: Partial<JSONContent>) => JSONContent;
|
7
|
-
export declare const buildColumn: ({ content }: Partial<JSONContent>) => JSONContent;
|
8
|
-
export declare const buildColumnBlock: ({ content }: Partial<JSONContent>) => JSONContent;
|
9
|
-
export declare const buildNColumns: (n: number) => JSONContent[];
|
10
|
-
interface PredicateProps {
|
11
|
-
node: Node;
|
12
|
-
pos: number;
|
13
|
-
start: number;
|
14
|
-
}
|
15
|
-
export type Predicate = (props: PredicateProps) => boolean;
|
16
|
-
export declare const findParentNodeClosestToPos: ($pos: ResolvedPos, predicate: Predicate) => {
|
17
|
-
start: number;
|
18
|
-
depth: number;
|
19
|
-
node: Node;
|
20
|
-
pos: number;
|
21
|
-
};
|
22
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
export * from './media-paste-drop-plugin';
|
package/dist/package/extensions/resizable-media/media-paste-drop-plugin/media-paste-drop-plugin.d.ts
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
import { Plugin } from 'prosemirror-state';
|
2
|
-
|
3
|
-
export type UploadFnType = (image: File) => Promise<string>;
|
4
|
-
/**
|
5
|
-
* This function creates a Prosemirror plugin that handles pasting and dropping of media files.
|
6
|
-
* It accepts an upload function as a parameter which is used to upload the media files.
|
7
|
-
* The plugin prevents the default paste and drop event, uploads the media file (if an upload function is provided),
|
8
|
-
* creates a new node with the uploaded media file and replaces the current selection with the new node.
|
9
|
-
* If no upload function is provided, it reads the media file as DataURL and uses this in the new node.
|
10
|
-
* The function returns a new instance of the Plugin.
|
11
|
-
*/
|
12
|
-
export declare const getMediaPasteDropPlugin: (upload: UploadFnType, onError: (error: string) => void, secureImageUploadUrl?: string) => Plugin<any>;
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { Attrs } from '@tiptap/pm/model';
|
2
|
-
|
3
|
-
interface ResizableMediaAttributes {
|
4
|
-
dataAlign: string;
|
5
|
-
dataFloat: null | string;
|
6
|
-
showCaptionInput?: boolean;
|
7
|
-
caption?: string;
|
8
|
-
}
|
9
|
-
type UpdateAttributes = (attrs: Partial<ResizableMediaAttributes>) => void;
|
10
|
-
type Action = (updateAttributes: UpdateAttributes) => void;
|
11
|
-
interface ResizableMediaAction {
|
12
|
-
tooltip: string;
|
13
|
-
icon?: string;
|
14
|
-
action?: Action;
|
15
|
-
isActive?: (attrs: Attrs) => boolean;
|
16
|
-
delete?: (d: () => void) => void;
|
17
|
-
}
|
18
|
-
export declare const resizableMediaActions: ResizableMediaAction[];
|
19
|
-
export {};
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { Node } from '@tiptap/core';
|
2
|
-
import { UploadFnType } from './media-paste-drop-plugin';
|
3
|
-
|
4
|
-
declare module '@tiptap/core' {
|
5
|
-
interface Commands<ReturnType> {
|
6
|
-
resizableMedia: {
|
7
|
-
/**
|
8
|
-
* Set media
|
9
|
-
*/
|
10
|
-
setMedia: (options: {
|
11
|
-
'media-type': 'img' | 'video';
|
12
|
-
src: string;
|
13
|
-
alt?: string;
|
14
|
-
title?: string;
|
15
|
-
width?: string;
|
16
|
-
height?: string;
|
17
|
-
}) => ReturnType;
|
18
|
-
};
|
19
|
-
}
|
20
|
-
}
|
21
|
-
export interface MediaOptions {
|
22
|
-
HTMLAttributes: Record<string, any>;
|
23
|
-
uploadFn: UploadFnType;
|
24
|
-
onError: (error: string) => void;
|
25
|
-
secureImageUploadUrl?: string;
|
26
|
-
}
|
27
|
-
export declare const IMAGE_INPUT_REGEX: RegExp;
|
28
|
-
export declare const VIDEO_INPUT_REGEX: RegExp;
|
29
|
-
export declare const ResizableMedia: Node<MediaOptions, any>;
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { CommandProps } from './types';
|
2
|
-
|
3
|
-
export declare const getSuggestionItems: ({ query, onError, secureImageUploadUrl, }: {
|
4
|
-
query: string;
|
5
|
-
onError?: (errorString: string) => void;
|
6
|
-
secureImageUploadUrl?: string;
|
7
|
-
}) => {
|
8
|
-
title: string;
|
9
|
-
description: string;
|
10
|
-
searchTerms: string[];
|
11
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
12
|
-
image: string;
|
13
|
-
command: ({ editor, range }: CommandProps) => void;
|
14
|
-
}[];
|
15
|
-
export declare const updateScrollView: (container: HTMLElement, item: HTMLElement) => void;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { ReactNode } from 'react';
|
2
|
-
import { Editor, Range } from '@tiptap/core';
|
3
|
-
|
4
|
-
export interface CommandItemProps {
|
5
|
-
title: string;
|
6
|
-
description: string;
|
7
|
-
icon: ReactNode;
|
8
|
-
image?: string;
|
9
|
-
}
|
10
|
-
export interface CommandProps {
|
11
|
-
editor: Editor;
|
12
|
-
range: Range;
|
13
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
import { Node as ProseMirrorNode } from 'prosemirror-model';
|
2
|
-
import { NodeView, ViewMutationRecord } from 'prosemirror-view';
|
3
|
-
|
4
|
-
export declare function updateColumns(node: ProseMirrorNode, colgroup: Element, table: HTMLTableElement, cellMinWidth: number, overrideCol?: number, overrideValue?: string): void;
|
5
|
-
export declare class TableView implements NodeView {
|
6
|
-
node: ProseMirrorNode;
|
7
|
-
cellMinWidth: number;
|
8
|
-
dom: Element;
|
9
|
-
table: HTMLTableElement;
|
10
|
-
colgroup: Element;
|
11
|
-
contentDOM: HTMLElement;
|
12
|
-
constructor(node: ProseMirrorNode, cellMinWidth: number);
|
13
|
-
update(node: ProseMirrorNode): boolean;
|
14
|
-
ignoreMutation(mutation: ViewMutationRecord): boolean;
|
15
|
-
}
|
@@ -1,56 +0,0 @@
|
|
1
|
-
import { Node, ParentConfig } from '@tiptap/core';
|
2
|
-
import { NodeView } from 'prosemirror-view';
|
3
|
-
|
4
|
-
export interface TableOptions {
|
5
|
-
HTMLAttributes: Record<string, never>;
|
6
|
-
resizable: boolean;
|
7
|
-
handleWidth: number;
|
8
|
-
cellMinWidth: number;
|
9
|
-
View: NodeView;
|
10
|
-
lastColumnResizable: boolean;
|
11
|
-
allowTableNodeSelection: boolean;
|
12
|
-
}
|
13
|
-
declare module '@tiptap/core' {
|
14
|
-
interface Commands<ReturnType> {
|
15
|
-
table: {
|
16
|
-
insertTable: (options?: {
|
17
|
-
rows?: number;
|
18
|
-
cols?: number;
|
19
|
-
withHeaderRow?: boolean;
|
20
|
-
}) => ReturnType;
|
21
|
-
addColumnBefore: () => ReturnType;
|
22
|
-
addColumnAfter: () => ReturnType;
|
23
|
-
deleteColumn: () => ReturnType;
|
24
|
-
addRowBefore: () => ReturnType;
|
25
|
-
addRowAfter: () => ReturnType;
|
26
|
-
deleteRow: () => ReturnType;
|
27
|
-
deleteTable: () => ReturnType;
|
28
|
-
mergeCells: () => ReturnType;
|
29
|
-
splitCell: () => ReturnType;
|
30
|
-
toggleHeaderColumn: () => ReturnType;
|
31
|
-
toggleHeaderRow: () => ReturnType;
|
32
|
-
toggleHeaderCell: () => ReturnType;
|
33
|
-
mergeOrSplit: () => ReturnType;
|
34
|
-
setCellAttribute: (name: string, value: never) => ReturnType;
|
35
|
-
goToNextCell: () => ReturnType;
|
36
|
-
goToPreviousCell: () => ReturnType;
|
37
|
-
fixTables: () => ReturnType;
|
38
|
-
setCellSelection: (position: {
|
39
|
-
anchorCell: number;
|
40
|
-
headCell?: number;
|
41
|
-
}) => ReturnType;
|
42
|
-
};
|
43
|
-
}
|
44
|
-
interface NodeConfig<Options, Storage> {
|
45
|
-
/**
|
46
|
-
* Table Role
|
47
|
-
*/
|
48
|
-
tableRole?: string | ((this: {
|
49
|
-
name: string;
|
50
|
-
options: Options;
|
51
|
-
storage: Storage;
|
52
|
-
parent: ParentConfig<NodeConfig<Options>>['tableRole'];
|
53
|
-
}) => string);
|
54
|
-
}
|
55
|
-
}
|
56
|
-
export declare const Table: Node<TableOptions, any>;
|
package/dist/package/extensions/supercharged-table/extension-table/utilities/create-table.d.ts
DELETED
@@ -1,3 +0,0 @@
|
|
1
|
-
import { Fragment, Node as ProsemirrorNode, Schema } from 'prosemirror-model';
|
2
|
-
|
3
|
-
export declare function createTable(schema: Schema, rowsCount: number, colsCount: number, withHeaderRow: boolean, cellContent?: Fragment | ProsemirrorNode | Array<ProsemirrorNode>): ProsemirrorNode;
|
package/dist/package/extensions/supercharged-table/extension-table-row/table-row-node-view.d.ts
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
import { Node as ProseMirrorNode } from 'prosemirror-model';
|
2
|
-
import { NodeView, ViewMutationRecord } from 'prosemirror-view';
|
3
|
-
|
4
|
-
export declare class TableRowNodeView implements NodeView {
|
5
|
-
node: ProseMirrorNode;
|
6
|
-
cellMinWidth: number;
|
7
|
-
dom: Element;
|
8
|
-
table: HTMLTableElement;
|
9
|
-
colgroup: Element;
|
10
|
-
contentDOM: HTMLElement;
|
11
|
-
constructor(node: ProseMirrorNode, cellMinWidth: number);
|
12
|
-
update(node: ProseMirrorNode): boolean;
|
13
|
-
ignoreMutation(mutation: ViewMutationRecord): boolean;
|
14
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Extension based on:
|
5
|
-
* - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
|
6
|
-
* - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts
|
7
|
-
*/
|
8
|
-
export interface TrailingNodeOptions {
|
9
|
-
node: string;
|
10
|
-
notAfter: string[];
|
11
|
-
}
|
12
|
-
export declare const TrailingNode: Extension<TrailingNodeOptions, any>;
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Node } from '@tiptap/react';
|
2
|
-
|
3
|
-
export interface EmbeddedTweetOptions {
|
4
|
-
HTMLAttributes: Record<string, any>;
|
5
|
-
}
|
6
|
-
declare module '@tiptap/core' {
|
7
|
-
interface Commands<ReturnType> {
|
8
|
-
embeddedTweet: {
|
9
|
-
/**
|
10
|
-
* Add an tweet embed
|
11
|
-
*/
|
12
|
-
setTweetEmbed: (options: {
|
13
|
-
tweetId: string;
|
14
|
-
}) => ReturnType;
|
15
|
-
};
|
16
|
-
}
|
17
|
-
}
|
18
|
-
export declare const EmbeddedTweet: Node<EmbeddedTweetOptions, any>;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { Node } from '@tiptap/pm/model';
|
2
|
-
import { Editor } from '@tiptap/react';
|
3
|
-
|
4
|
-
declare const useContentItemActions: (editor: Editor, currentNode: Node | null, currentNodePos: number) => {
|
5
|
-
resetTextFormatting: () => void;
|
6
|
-
duplicateNode: () => void;
|
7
|
-
copyNodeToClipboard: () => void;
|
8
|
-
deleteNode: () => void;
|
9
|
-
};
|
10
|
-
export default useContentItemActions;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
export declare enum IEditorTool {
|
2
|
-
NONE = 0,
|
3
|
-
HEADING = 1,
|
4
|
-
TEXT_COLOR = 2,
|
5
|
-
HIGHLIGHT = 3,
|
6
|
-
LINK = 4,
|
7
|
-
FONT_FAMILY = 5,
|
8
|
-
ALIGNMENT = 6,
|
9
|
-
LIST = 7,
|
10
|
-
TEXT_FORMATING = 8,
|
11
|
-
TEXT_COLOR_PICKER = 9,
|
12
|
-
LINK_POPUP = 10,
|
13
|
-
SCRIPTS = 11
|
14
|
-
}
|
15
|
-
export default function useComponentVisibility(initialIsVisible: boolean): {
|
16
|
-
ref: import('react').RefObject<HTMLDivElement>;
|
17
|
-
isComponentVisible: boolean;
|
18
|
-
setIsComponentVisible: import('react').Dispatch<import('react').SetStateAction<boolean>>;
|
19
|
-
};
|
20
|
-
export declare function useEditorToolVisiibility(initialIsVisible: IEditorTool): {
|
21
|
-
ref: import('react').RefObject<HTMLDivElement>;
|
22
|
-
toolVisibility: IEditorTool;
|
23
|
-
setToolVisibility: import('react').Dispatch<import('react').SetStateAction<IEditorTool>>;
|
24
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const useEscapeKey: (callback: () => void) => void;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare const validateImageExtension: (file: File, onError?: (message: string) => void) => boolean;
|
@@ -1 +0,0 @@
|
|
1
|
-
export declare function debounce<T extends (...args: any) => any>(func: T, wait: number): T;
|
@@ -1,3 +0,0 @@
|
|
1
|
-
export declare const nameFormatter: (username: string) => string;
|
2
|
-
export declare const dateFormatter: (date: Date) => string | import("react/jsx-runtime").JSX.Element;
|
3
|
-
export declare const renderTextWithLinks: (text: string) => (string | import("react/jsx-runtime").JSX.Element)[];
|
@@ -1,9 +0,0 @@
|
|
1
|
-
interface ConversionOptions {
|
2
|
-
preserveNewlines?: boolean;
|
3
|
-
sanitize?: boolean;
|
4
|
-
maxCharsPerSlide?: number;
|
5
|
-
maxWordsPerSlide?: number;
|
6
|
-
maxLinesPerSlide?: number;
|
7
|
-
}
|
8
|
-
export declare function convertMarkdownToHTML(markdown: string, options?: ConversionOptions): string;
|
9
|
-
export {};
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { default as MarkdownIt } from 'markdown-it';
|
2
|
-
import { Editor } from '@tiptap/react';
|
3
|
-
|
4
|
-
interface SlideContent {
|
5
|
-
type: 'h1' | 'h2' | 'content' | 'image' | 'table';
|
6
|
-
content: string;
|
7
|
-
}
|
8
|
-
export interface Slides {
|
9
|
-
[key: number]: SlideContent[];
|
10
|
-
}
|
11
|
-
export declare const md: MarkdownIt;
|
12
|
-
export declare const convertToMarkdown: (editor: Editor) => string;
|
13
|
-
export declare const processMarkdownContent: (markdown: string) => Slides;
|
14
|
-
export {};
|
@@ -1,17 +0,0 @@
|
|
1
|
-
export declare const base64ToArrayBuffer: (base64String: string) => ArrayBufferLike;
|
2
|
-
export declare const arrayBufferToBase64: (buffer: ArrayBuffer) => string;
|
3
|
-
export declare const generateRSAKeyPair: () => Promise<{
|
4
|
-
publicKey: ArrayBuffer;
|
5
|
-
privateKey: Uint8Array<ArrayBuffer>;
|
6
|
-
}>;
|
7
|
-
export declare const decryptAESKey: (encryptedKeyBase64: string, privateKeyPem: BufferSource) => Promise<ArrayBuffer>;
|
8
|
-
export declare const decryptImageData: (encryptedImageData: ArrayBuffer, aesKeyBuffer: ArrayBuffer, iv: string) => Promise<ArrayBuffer>;
|
9
|
-
export declare const fetchImage: (url: string) => Promise<ArrayBuffer | undefined>;
|
10
|
-
type DecryptImage = {
|
11
|
-
encryptedKey: string;
|
12
|
-
privateKey: BufferSource;
|
13
|
-
iv: string;
|
14
|
-
imageBuffer: ArrayBuffer;
|
15
|
-
};
|
16
|
-
export declare const decryptImage: ({ encryptedKey, privateKey, iv, imageBuffer, }: DecryptImage) => Promise<ArrayBuffer | undefined>;
|
17
|
-
export {};
|