@fileverse-dev/ddoc 2.3.2 → 2.3.3
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-OTZyMJ99.mjs → ccip-ClrYBYKE.mjs} +1 -1
- package/dist/{index-DK7CAo5N.mjs → index-CrwBerhR.mjs} +5337 -5320
- package/dist/index.es.js +1 -1
- package/dist/package/extensions/mardown-paste-handler/index.d.ts +1 -0
- package/dist/package/hooks/use-headless-editor.d.ts +4 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -18,6 +18,7 @@ declare const MarkdownPasteHandler: (ipfsImageUploadFn?: (file: File) => Promise
|
|
18
18
|
url: string;
|
19
19
|
file: File;
|
20
20
|
}>) => Extension<any, any>;
|
21
|
+
export declare function handleMarkdownContent(view: any, content: string, ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>): Promise<void>;
|
21
22
|
export default MarkdownPasteHandler;
|
22
23
|
export declare function searchForSecureImageNodeAndEmbedImageContent(originalDoc: PMNode, ipfsImageFetchFn?: (_data: IpfsImageFetchPayload) => Promise<{
|
23
24
|
url: string;
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { Editor, JSONContent } from '@tiptap/react';
|
2
|
+
import { handleMarkdownContent } from '../extensions/mardown-paste-handler';
|
3
|
+
import { IpfsImageUploadResponse } from '../types';
|
2
4
|
|
3
5
|
import * as Y from 'yjs';
|
4
6
|
export declare const useHeadlessEditor: () => {
|
@@ -13,4 +15,6 @@ export declare const useHeadlessEditor: () => {
|
|
13
15
|
};
|
14
16
|
downloadContentAsMd: (content: string | string[] | JSONContent, title: string) => Promise<void>;
|
15
17
|
mergeYjsUpdates: (contents: string[]) => string;
|
18
|
+
handleMarkdownContent: typeof handleMarkdownContent;
|
19
|
+
getYjsContentFromMarkdown: (file: File, ipfsImageUploadFn: (file: File) => Promise<IpfsImageUploadResponse>) => Promise<string | null>;
|
16
20
|
};
|