@fileverse-dev/ddoc 3.0.53 → 3.0.55

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.
@@ -96,6 +96,7 @@ export interface DdocProps extends CommentAccountProps {
96
96
  setIsCommentSectionOpen?: React.Dispatch<SetStateAction<boolean>>;
97
97
  inlineCommentData?: InlineCommentData;
98
98
  setInlineCommentData?: React.Dispatch<React.SetStateAction<InlineCommentData>>;
99
+ theme?: 'dark' | 'light';
99
100
  zoomLevel: string;
100
101
  setZoomLevel: React.Dispatch<SetStateAction<string>>;
101
102
  isNavbarVisible: boolean;
@@ -2,7 +2,7 @@ import { DdocProps } from './types';
2
2
  import { ToCItemType } from './components/toc/types';
3
3
 
4
4
  import * as Y from 'yjs';
5
- export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, onChange, onCollaboratorChange, onCommentInteraction, onError, setCharacterCount, setWordCount, ipfsImageUploadFn, ddocId, enableIndexeddbSync, unFocused, zoomLevel, onInvalidContentError, ignoreCorruptedData, isPresentationMode, metadataProxyUrl, extensions: externalExtensions, onCopyHeadingLink, ipfsImageFetchFn, fetchV1ImageFn, isConnected, activeModel, maxTokens, isAIAgentEnabled, collabConfig, onIndexedDbError, disableInlineComment, ...rest }: Partial<DdocProps>) => {
5
+ export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, onChange, onCollaboratorChange, onCommentInteraction, onError, setCharacterCount, setWordCount, ipfsImageUploadFn, ddocId, enableIndexeddbSync, unFocused, theme, zoomLevel, onInvalidContentError, ignoreCorruptedData, isPresentationMode, metadataProxyUrl, extensions: externalExtensions, onCopyHeadingLink, ipfsImageFetchFn, fetchV1ImageFn, isConnected, activeModel, maxTokens, isAIAgentEnabled, collabConfig, onIndexedDbError, disableInlineComment, ...rest }: Partial<DdocProps>) => {
6
6
  editor: import('@tiptap/core').Editor | null;
7
7
  isContentLoading: boolean;
8
8
  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": "3.0.53",
5
+ "version": "3.0.55",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -152,4 +152,4 @@
152
152
  "typescript": "^5.2.2",
153
153
  "vite": "^5.0.0"
154
154
  }
155
- }
155
+ }