@fileverse-dev/ddoc 2.5.1 → 3.0.0
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/{ccip-EalcS3eB.mjs → ccip-C_JsjeFX.mjs} +1 -1
- package/dist/{index-Bq57qeQw.mjs → index-CYcya-QF.mjs} +50331 -47746
- package/dist/index.es.js +1 -1
- package/dist/package/common/toolbar-button.d.ts +3 -2
- package/dist/package/components/editor-bubble-menu/editor-bubble-menu.d.ts +1 -1
- package/dist/package/components/editor-bubble-menu/props.d.ts +0 -65
- package/dist/package/components/editor-bubble-menu/types.d.ts +2 -1
- package/dist/package/components/inline-comment/types.d.ts +2 -1
- package/dist/package/extensions/ai-writer/ai-writer-node-view.d.ts +1 -1
- package/dist/package/extensions/default-extension.d.ts +1 -1
- package/dist/package/extensions/font-size/font-size.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +31 -32
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
declare const ToolbarButton: import('react').ForwardRefExoticComponent<{
|
|
2
2
|
icon: string;
|
|
3
|
-
isActive
|
|
4
|
-
onClick
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
onClick?: () => void;
|
|
5
5
|
tooltip?: string;
|
|
6
6
|
classNames?: string;
|
|
7
7
|
disabled?: boolean;
|
|
8
|
+
variant?: "default" | "danger" | "secondary" | "ghost" | null | undefined;
|
|
8
9
|
size?: "sm" | "md" | "lg";
|
|
9
10
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
10
11
|
export default ToolbarButton;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { EditorBubbleMenuProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const EditorBubbleMenu: (props: EditorBubbleMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const EditorBubbleMenu: (props: EditorBubbleMenuProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,70 +1,5 @@
|
|
|
1
1
|
import { Editor } from '@tiptap/core';
|
|
2
|
-
import { EditorBubbleMenuProps } from './types';
|
|
3
2
|
|
|
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
|
-
ipfsImageUploadFn?: (file: File) => Promise<import('../../types').IpfsImageUploadResponse>;
|
|
58
|
-
ipfsImageFetchFn?: (_data: import('../../types').IpfsImageFetchPayload) => Promise<{
|
|
59
|
-
url: string;
|
|
60
|
-
file: File;
|
|
61
|
-
}>;
|
|
62
|
-
fetchV1ImageFn?: (url: string) => Promise<ArrayBuffer | undefined>;
|
|
63
|
-
onReminderCreate?: (reminder: import('../../..').Reminder, type: string) => void;
|
|
64
|
-
isConnected?: boolean;
|
|
65
|
-
isCollabDocOwner?: boolean;
|
|
66
|
-
enableCollaboration?: boolean;
|
|
67
|
-
};
|
|
68
3
|
export declare const shouldShow: ({ editor }: {
|
|
69
4
|
editor: Editor;
|
|
70
5
|
}) => boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
import { BubbleMenuProps } from '@tiptap/react/menus';
|
|
2
3
|
import { SetStateAction } from 'react';
|
|
3
4
|
import { InlineCommentData, IpfsImageFetchPayload, IpfsImageUploadResponse } from '../../types';
|
|
4
5
|
import { Reminder } from '../../extensions/reminder-block/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { NodeViewProps } from '@tiptap/react';
|
|
3
3
|
|
|
4
|
-
export declare const AIWriterNodeView: React.MemoExoticComponent<({ node, editor: parentEditor, getPos, updateAttributes }: NodeViewProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
4
|
+
export declare const AIWriterNodeView: React.MemoExoticComponent<({ node, editor: parentEditor, getPos, updateAttributes, deleteNode, }: NodeViewProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -14,5 +14,5 @@ export declare const defaultExtensions: ({ ipfsImageFetchFn, onError, metadataPr
|
|
|
14
14
|
onCopyHeadingLink?: (link: string) => void;
|
|
15
15
|
fetchV1ImageFn?: (url: string) => Promise<ArrayBuffer | undefined>;
|
|
16
16
|
onTocUpdate?: (data: ToCItemType[], isCreate?: boolean) => void;
|
|
17
|
-
}) => (import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Mark<any, any>)[];
|
|
17
|
+
}) => (import('@tiptap/core').AnyExtension | import('@tiptap/core').Node<import('@tiptap/extension-horizontal-rule').HorizontalRuleOptions, any> | import('@tiptap/core').Extension<import('./multi-column').ColumnExtensionOptions, any> | import('@tiptap/core').Node<import('./iframe').IframeOptions, any> | import('@tiptap/core').Node<import('./twitter-embed').EmbeddedTweetOptions, any> | import('@tiptap/core').Node<import('./d-block').DBlockOptions, any> | import('@tiptap/core').Extension<import('./trailing-node').TrailingNodeOptions, any> | import('@tiptap/core').Node<import('./resizable-media').MediaOptions, any> | import('@tiptap/core').Extension<import('./link-preview/link-preview').LinkPreviewOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-code-block-lowlight').CodeBlockLowlightOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extension-text-style').FontFamilyOptions, any> | import('@tiptap/core').Extension<import('@tiptap/starter-kit').StarterKitOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extension-table-of-contents').TableOfContentsOptions, import('@tiptap/extension-table-of-contents').TableOfContentsStorage> | import('@tiptap/core').Extension<import('@tiptap/extension-typography').TypographyOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extension-text-align').TextAlignOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extensions').PlaceholderOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-highlight').HighlightOptions, any> | import('@tiptap/core').Mark<import('@tiptap/extension-text-style').TextStyleOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-list').TaskListOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-list').TaskItemOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-list').BulletListOptions, any> | import('@tiptap/core').Node<import('@tiptap/extension-list').ListItemOptions, any> | import('@tiptap/core').Extension<import('@tiptap/extensions').DropcursorOptions, any> | import('@tiptap/core').Extension<import('tiptap-markdown').MarkdownOptions, import('tiptap-markdown').MarkdownStorage> | import('@tiptap/core').Extension<import('@tiptap/extensions').CharacterCountOptions, import('@tiptap/extensions').CharacterCountStorage> | import('@tiptap/core').Extension<import('@aarkue/tiptap-math-extension').MathExtensionOption, any> | import('@tiptap/core').Mark<import('@tiptap/extension-superscript').SuperscriptExtensionOptions, any>)[];
|
|
18
18
|
export declare const createInputRule: (pattern: RegExp, data: string, type: NodeType) => InputRule;
|