@fileverse-dev/ddoc 3.2.3 → 3.2.5-patch-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/index.es.js +11995 -11810
- package/dist/package/components/inline-comment/floating-comment/floating-auth-prompt.d.ts +3 -1
- package/dist/package/components/toc/document-outline-toc-panel.d.ts +1 -1
- package/dist/package/extensions/resizable-media/media-caption.d.ts +3 -0
- package/dist/package/extensions/resizable-media/resizable-media-menu-util.d.ts +4 -5
- package/dist/package/extensions/resizable-media/resizable-media-node-view.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentOutlineProps } from './types';
|
|
2
2
|
|
|
3
3
|
type DocumentOutlineTOCPanelProps = Pick<DocumentOutlineProps, 'editor' | 'hasToC' | 'items' | 'setItems' | 'showTOC' | 'setShowTOC' | 'isPreviewMode' | 'orientation'>;
|
|
4
|
-
export declare const DocumentOutlineTOCPanel: ({ editor, hasToC, items, setItems, showTOC, setShowTOC,
|
|
4
|
+
export declare const DocumentOutlineTOCPanel: ({ editor, hasToC, items, setItems, showTOC, setShowTOC, orientation, }: DocumentOutlineTOCPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { Attrs } from '@tiptap/pm/model';
|
|
1
|
+
import { Attrs, Node as ProseMirrorNode } from '@tiptap/pm/model';
|
|
2
|
+
import { Editor } from '@tiptap/core';
|
|
2
3
|
|
|
3
4
|
interface ResizableMediaAttributes {
|
|
4
5
|
dataAlign: string;
|
|
5
6
|
dataFloat: null | string;
|
|
6
|
-
showCaptionInput?: boolean;
|
|
7
|
-
caption?: string;
|
|
8
7
|
}
|
|
9
8
|
type UpdateAttributes = (attrs: Partial<ResizableMediaAttributes>) => void;
|
|
10
|
-
type Action = (updateAttributes: UpdateAttributes) => void;
|
|
9
|
+
type Action = (updateAttributes: UpdateAttributes, editor?: Editor, getPos?: (() => number | undefined) | boolean) => void;
|
|
11
10
|
interface ResizableMediaAction {
|
|
12
11
|
tooltip: string;
|
|
13
12
|
icon?: string;
|
|
14
13
|
action?: Action;
|
|
15
|
-
isActive?: (attrs: Attrs) => boolean;
|
|
14
|
+
isActive?: (attrs: Attrs, node?: ProseMirrorNode) => boolean;
|
|
16
15
|
delete?: (d: () => void) => void;
|
|
17
16
|
}
|
|
18
17
|
export declare const resizableMediaActions: ResizableMediaAction[];
|
|
@@ -4,4 +4,4 @@ import { IpfsImageFetchPayload } from '../../types.ts';
|
|
|
4
4
|
export declare const getResizableMediaNodeView: (ipfsImageFetchFn: (_data: IpfsImageFetchPayload) => Promise<{
|
|
5
5
|
url: string;
|
|
6
6
|
file: File;
|
|
7
|
-
}>, fetchV1ImageFn: (url: string) => Promise<ArrayBuffer | undefined>) => ({ node, updateAttributes, deleteNode, selected }: NodeViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
}>, fetchV1ImageFn: (url: string) => Promise<ArrayBuffer | undefined>) => ({ node, updateAttributes, deleteNode, selected, editor, getPos, }: NodeViewProps) => import("react/jsx-runtime").JSX.Element;
|