@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/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { D as d, P as r, h as s, u as t } from "./index-C46fjVjD.mjs";
1
+ import { D as d, P as r, h as s, u as t } from "./index-DKj98q4b.mjs";
2
2
  export {
3
3
  d as DdocEditor,
4
4
  r as PreviewDdocEditor,
@@ -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
  };
@@ -78,7 +78,6 @@ export interface DdocProps extends CommentAccountProps {
78
78
  color: string;
79
79
  }>;
80
80
  className?: string;
81
- scrollPosition?: number;
82
81
  unFocused?: boolean;
83
82
  isPresentationMode?: boolean;
84
83
  setIsPresentationMode?: React.Dispatch<SetStateAction<boolean>>;
@@ -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, scrollPosition, ddocId, enableIndexeddbSync, unFocused, zoomLevel, onInvalidContentError, ignoreCorruptedData, isPresentationMode, proExtensions, metadataProxyUrl, onCopyHeadingLink, }: Partial<DdocProps>) => {
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.0",
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": "^2.5.4",
47
- "@tiptap/extension-bullet-list": "^2.5.4",
48
- "@tiptap/extension-character-count": "^2.5.6",
49
- "@tiptap/extension-collaboration": "^2.5.4",
50
- "@tiptap/extension-collaboration-cursor": "^2.5.4",
51
- "@tiptap/extension-color": "^2.5.4",
52
- "@tiptap/extension-document": "^2.5.4",
53
- "@tiptap/extension-dropcursor": "^2.5.4",
54
- "@tiptap/extension-font-family": "^2.5.4",
55
- "@tiptap/extension-gapcursor": "^2.5.4",
56
- "@tiptap/extension-highlight": "^2.5.4",
57
- "@tiptap/extension-link": "^2.5.4",
58
- "@tiptap/extension-list-item": "^2.5.4",
59
- "@tiptap/extension-placeholder": "^2.5.4",
60
- "@tiptap/extension-subscript": "^2.5.4",
61
- "@tiptap/extension-superscript": "^2.5.4",
62
- "@tiptap/extension-task-item": "^2.5.4",
63
- "@tiptap/extension-task-list": "^2.5.4",
64
- "@tiptap/extension-text-align": "^2.5.4",
65
- "@tiptap/extension-text-style": "^2.5.4",
66
- "@tiptap/extension-typography": "^2.5.5",
67
- "@tiptap/extension-underline": "^2.5.4",
68
- "@tiptap/pm": "^2.5.4",
69
- "@tiptap/react": "^2.5.4",
70
- "@tiptap/starter-kit": "^2.5.4",
71
- "@tiptap/suggestion": "^2.5.4",
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",