@fileverse-dev/ddoc 2.2.0 → 2.2.1-alpha-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.
- package/dist/{ccip-Zzrh6cX3.mjs → ccip-2JxYJgst.mjs} +1 -1
- package/dist/{index-C46fjVjD.mjs → index-DKj98q4b.mjs} +59992 -58899
- package/dist/index.es.js +1 -1
- package/dist/package/components/motion-div.d.ts +12 -0
- package/dist/package/extensions/default-extension.d.ts +1 -1
- package/dist/package/hooks/use-headless-editor.d.ts +1 -1
- package/dist/package/types.d.ts +0 -1
- package/dist/package/use-ddoc-editor.d.ts +1 -1
- package/package.json +27 -27
package/dist/index.es.js
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare const fadeVariants: {
|
2
|
+
initial: {
|
3
|
+
opacity: number;
|
4
|
+
};
|
5
|
+
animate: {
|
6
|
+
opacity: number;
|
7
|
+
};
|
8
|
+
exit: {
|
9
|
+
opacity: number;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
export declare const fadeInTransition: (element: JSX.Element, key: string) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { NodeType } from '@tiptap/pm/model';
|
2
2
|
import { InputRule } from '@tiptap/core';
|
3
3
|
|
4
|
-
export declare const defaultExtensions: (onError: (error: string) => void, secureImageUploadUrl?: string, metadataProxyUrl?: string, onCopyHeadingLink?: (link: string) => void) => (import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Mark<any, any>)[];
|
4
|
+
export declare const defaultExtensions: (onError: (error: string) => void, secureImageUploadUrl?: string, metadataProxyUrl?: string, onCopyHeadingLink?: (link: string) => void) => (import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Mark<any, any> | import('@tiptap/core').Extension<import('@tiptap/starter-kit').StarterKitOptions, any>)[];
|
5
5
|
export declare const createInputRule: (pattern: RegExp, data: string, type: NodeType) => InputRule;
|
@@ -11,6 +11,6 @@ export declare const useHeadlessEditor: () => {
|
|
11
11
|
convertJSONContentToYjsEncodedString: (content: JSONContent) => string;
|
12
12
|
cleanup: () => void;
|
13
13
|
};
|
14
|
-
downloadContentAsMd: (content: string | string[] | JSONContent, title: string) => void
|
14
|
+
downloadContentAsMd: (content: string | string[] | JSONContent, title: string) => Promise<void>;
|
15
15
|
mergeYjsUpdates: (contents: string[]) => string;
|
16
16
|
};
|
package/dist/package/types.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { DdocProps } from './types';
|
2
2
|
|
3
3
|
import * as Y from 'yjs';
|
4
|
-
export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, ensResolutionUrl, onError, setCharacterCount, setWordCount, secureImageUploadUrl,
|
4
|
+
export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, ensResolutionUrl, onError, setCharacterCount, setWordCount, secureImageUploadUrl, ddocId, enableIndexeddbSync, unFocused, zoomLevel, onInvalidContentError, ignoreCorruptedData, isPresentationMode, proExtensions, metadataProxyUrl, onCopyHeadingLink, }: Partial<DdocProps>) => {
|
5
5
|
editor: import('@tiptap/core').Editor | null;
|
6
6
|
isContentLoading: boolean;
|
7
7
|
ref: import('react').RefObject<HTMLDivElement>;
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@fileverse-dev/ddoc",
|
3
3
|
"private": false,
|
4
4
|
"description": "DDoc",
|
5
|
-
"version": "2.2.
|
5
|
+
"version": "2.2.1-alpha-2",
|
6
6
|
"main": "dist/index.es.js",
|
7
7
|
"module": "dist/index.es.js",
|
8
8
|
"exports": {
|
@@ -43,32 +43,32 @@
|
|
43
43
|
"@radix-ui/react-focus-scope": "^1.1.0",
|
44
44
|
"@radix-ui/react-popover": "^1.0.7",
|
45
45
|
"@tippyjs/react": "^4.2.6",
|
46
|
-
"@tiptap/core": "
|
47
|
-
"@tiptap/extension-bullet-list": "
|
48
|
-
"@tiptap/extension-character-count": "
|
49
|
-
"@tiptap/extension-collaboration": "
|
50
|
-
"@tiptap/extension-collaboration-cursor": "
|
51
|
-
"@tiptap/extension-color": "
|
52
|
-
"@tiptap/extension-document": "
|
53
|
-
"@tiptap/extension-dropcursor": "
|
54
|
-
"@tiptap/extension-font-family": "
|
55
|
-
"@tiptap/extension-gapcursor": "
|
56
|
-
"@tiptap/extension-highlight": "
|
57
|
-
"@tiptap/extension-link": "
|
58
|
-
"@tiptap/extension-list-item": "
|
59
|
-
"@tiptap/extension-placeholder": "
|
60
|
-
"@tiptap/extension-subscript": "
|
61
|
-
"@tiptap/extension-superscript": "
|
62
|
-
"@tiptap/extension-task-item": "
|
63
|
-
"@tiptap/extension-task-list": "
|
64
|
-
"@tiptap/extension-text-align": "
|
65
|
-
"@tiptap/extension-text-style": "
|
66
|
-
"@tiptap/extension-typography": "
|
67
|
-
"@tiptap/extension-underline": "
|
68
|
-
"@tiptap/pm": "
|
69
|
-
"@tiptap/react": "
|
70
|
-
"@tiptap/starter-kit": "
|
71
|
-
"@tiptap/suggestion": "
|
46
|
+
"@tiptap/core": "2.9",
|
47
|
+
"@tiptap/extension-bullet-list": "2.9",
|
48
|
+
"@tiptap/extension-character-count": "2.9",
|
49
|
+
"@tiptap/extension-collaboration": "2.9",
|
50
|
+
"@tiptap/extension-collaboration-cursor": "2.9",
|
51
|
+
"@tiptap/extension-color": "2.9",
|
52
|
+
"@tiptap/extension-document": "2.9",
|
53
|
+
"@tiptap/extension-dropcursor": "2.9",
|
54
|
+
"@tiptap/extension-font-family": "2.9",
|
55
|
+
"@tiptap/extension-gapcursor": "2.9",
|
56
|
+
"@tiptap/extension-highlight": "2.9",
|
57
|
+
"@tiptap/extension-link": "2.9",
|
58
|
+
"@tiptap/extension-list-item": "2.9",
|
59
|
+
"@tiptap/extension-placeholder": "2.9",
|
60
|
+
"@tiptap/extension-subscript": "2.9",
|
61
|
+
"@tiptap/extension-superscript": "2.9",
|
62
|
+
"@tiptap/extension-task-item": "2.9",
|
63
|
+
"@tiptap/extension-task-list": "2.9",
|
64
|
+
"@tiptap/extension-text-align": "2.9",
|
65
|
+
"@tiptap/extension-text-style": "2.9",
|
66
|
+
"@tiptap/extension-typography": "2.9",
|
67
|
+
"@tiptap/extension-underline": "2.9",
|
68
|
+
"@tiptap/pm": "2.9",
|
69
|
+
"@tiptap/react": "2.9",
|
70
|
+
"@tiptap/starter-kit": "2.9",
|
71
|
+
"@tiptap/suggestion": "2.9",
|
72
72
|
"base64-js": "^1.5.1",
|
73
73
|
"classnames": "^2.5.1",
|
74
74
|
"copy-to-clipboard": "^3.3.3",
|