@fileverse-dev/ddoc 1.3.5 → 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +14 -15
- package/dist/index.es.js +3413 -3449
- package/dist/index.umd.js +33 -33
- package/dist/packages/ddoc/ddoc-editor.d.ts +1 -1
- package/dist/packages/ddoc/extensions/d-block/dblock.d.ts +0 -6
- package/dist/packages/ddoc/types.d.ts +0 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
1
|
import { DdocProps } from './types';
|
2
2
|
|
3
|
-
declare const DdocEditor: (
|
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;
|