@fileverse-dev/ddoc 1.3.5 → 1.3.6

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.
@@ -1,4 +1,4 @@
1
1
  import { DdocProps } from './types';
2
2
 
3
- declare const DdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, username, onAutoSave, renderToolRightSection, renderToolLeftSection, ensProviderUrl, onChange }: DdocProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const DdocEditor: import('react').ForwardRefExoticComponent<DdocProps & import('react').RefAttributes<unknown>>;
4
4
  export default DdocEditor;
@@ -3,16 +3,10 @@ import { Node } from '@tiptap/core';
3
3
  export interface DBlockOptions {
4
4
  HTMLAttributes: Record<string, any>;
5
5
  }
6
- export type ListTypes = 'bulletList' | 'orderedList' | 'taskList';
7
6
  declare module '@tiptap/core' {
8
7
  interface Commands<ReturnType> {
9
8
  dBlock: {
10
- /**
11
- * Toggle a dBlock
12
- */
13
9
  setDBlock: (position?: number) => ReturnType;
14
- mergeDBlocksIntoList: (listType: ListTypes) => ReturnType;
15
- splitListToDBlocks: (listType: ListTypes) => ReturnType;
16
10
  };
17
11
  }
18
12
  }
@@ -6,7 +6,6 @@ export interface DdocProps {
6
6
  enableCollaboration?: boolean;
7
7
  collaborationId?: string;
8
8
  isPreviewMode: boolean;
9
- toggleCollaboration?: (flag: boolean) => void;
10
9
  initialContent?: JSONContent | null;
11
10
  onAutoSave?: (data: Data) => void;
12
11
  ensProviderUrl?: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "1.3.5",
5
+ "version": "1.3.6",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {