@fileverse-dev/ddoc 3.0.52 → 3.0.53-patch-2

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.
@@ -0,0 +1,3 @@
1
+ import { default as MarkdownIt } from 'markdown-it';
2
+
3
+ export declare function markdownHtmlGuardPlugin(md: MarkdownIt): void;
@@ -2,5 +2,12 @@ import { Extension } from '@tiptap/core';
2
2
  import { IpfsImageUploadResponse } from '../../types';
3
3
 
4
4
  export declare const Command: Extension<any, any>;
5
- declare const SlashCommand: (onError?: (errorString: string) => void, ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>, isConnected?: boolean, enableCollaboration?: boolean, disableInlineComment?: boolean) => Extension<any, any>;
5
+ export interface SlashCommandDynamicConfig {
6
+ isConnected?: boolean;
7
+ enableCollaboration?: boolean;
8
+ disableInlineComment?: boolean;
9
+ }
10
+ declare const SlashCommand: (onError?: (errorString: string) => void, ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>, configRef?: {
11
+ current: SlashCommandDynamicConfig;
12
+ }) => Extension<any, any>;
6
13
  export default SlashCommand;
@@ -16,4 +16,5 @@ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableColl
16
16
  tocItems: ToCItemType[];
17
17
  setTocItems: import('react').Dispatch<import('react').SetStateAction<ToCItemType[]>>;
18
18
  terminateSession: () => void;
19
+ awareness: any;
19
20
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.0.52",
5
+ "version": "3.0.53-patch-2",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -52,7 +52,6 @@
52
52
  "@tiptap/extension-code-block": "^3.11.0",
53
53
  "@tiptap/extension-code-block-lowlight": "^3.11.0",
54
54
  "@tiptap/extension-collaboration": "^3.11.0",
55
- "@tiptap/extension-collaboration-caret": "^3.11.0",
56
55
  "@tiptap/extension-color": "^3.11.0",
57
56
  "@tiptap/extension-document": "^3.11.0",
58
57
  "@tiptap/extension-font-family": "^3.11.0",
@@ -153,4 +152,4 @@
153
152
  "typescript": "^5.2.2",
154
153
  "vite": "^5.0.0"
155
154
  }
156
- }
155
+ }