@fileverse-dev/ddoc 3.0.87-page-count-2 → 3.0.88

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.
@@ -30,7 +30,6 @@ interface UseTabEditorArgs {
30
30
  isAIAgentEnabled?: boolean;
31
31
  setCharacterCount?: DdocProps['setCharacterCount'];
32
32
  setWordCount?: DdocProps['setWordCount'];
33
- setPageCount?: DdocProps['setPageCount'];
34
33
  setIsContentLoading: Dispatch<SetStateAction<boolean>>;
35
34
  setIsCollabContentLoading: Dispatch<SetStateAction<boolean>>;
36
35
  unFocused?: boolean;
@@ -48,7 +47,7 @@ interface UseTabEditorArgs {
48
47
  theme?: 'dark' | 'light';
49
48
  editorRef?: MutableRefObject<Editor | null>;
50
49
  }
51
- export declare const useTabEditor: ({ ydoc, isVersionMode, hasTabState, versionId, isPreviewMode, initialContent, collaboration, isReady, isSyncing, awareness, disableInlineComment, onCommentInteraction, onError, ipfsImageUploadFn, metadataProxyUrl, onCopyHeadingLink, ipfsImageFetchFn, fetchV1ImageFn, isConnected, activeModel, maxTokens, isAIAgentEnabled, setCharacterCount, setWordCount, setPageCount, setIsContentLoading, setIsCollabContentLoading, unFocused, zoomLevel, isPresentationMode, onInvalidContentError, ignoreCorruptedData, onCollaboratorChange, onConnect, initialiseYjsIndexedDbProvider, externalExtensions, isContentLoading, activeTabId, theme, editorRef, }: UseTabEditorArgs) => {
50
+ export declare const useTabEditor: ({ ydoc, isVersionMode, hasTabState, versionId, isPreviewMode, initialContent, collaboration, isReady, isSyncing, awareness, disableInlineComment, onCommentInteraction, onError, ipfsImageUploadFn, metadataProxyUrl, onCopyHeadingLink, ipfsImageFetchFn, fetchV1ImageFn, isConnected, activeModel, maxTokens, isAIAgentEnabled, setCharacterCount, setWordCount, setIsContentLoading, setIsCollabContentLoading, unFocused, zoomLevel, isPresentationMode, onInvalidContentError, ignoreCorruptedData, onCollaboratorChange, onConnect, initialiseYjsIndexedDbProvider, externalExtensions, isContentLoading, activeTabId, theme, editorRef, }: UseTabEditorArgs) => {
52
51
  editor: Editor | null;
53
52
  ref: import('react').RefObject<HTMLDivElement>;
54
53
  slides: string[];
@@ -148,7 +148,6 @@ export interface DdocProps extends CommentAccountProps {
148
148
  onError?: (error: string) => void;
149
149
  setCharacterCount?: React.Dispatch<SetStateAction<number>>;
150
150
  setWordCount?: React.Dispatch<SetStateAction<number>>;
151
- setPageCount?: React.Dispatch<SetStateAction<number>>;
152
151
  tags?: Array<{
153
152
  name: string;
154
153
  color: string;
@@ -1,7 +1,7 @@
1
1
  import { DdocProps } from './types';
2
2
  import { Editor } from '@tiptap/react';
3
3
 
4
- export declare const useDdocEditor: ({ isPreviewMode, initialContent, versionHistoryState, collaboration, onChange, onCollaboratorChange, onCommentInteraction, onError, setCharacterCount, setWordCount, setPageCount, ipfsImageUploadFn, ddocId, enableIndexeddbSync, unFocused, theme, zoomLevel, onInvalidContentError, ignoreCorruptedData, isPresentationMode, metadataProxyUrl, extensions: externalExtensions, onCopyHeadingLink, ipfsImageFetchFn, fetchV1ImageFn, isConnected, activeModel, maxTokens, isAIAgentEnabled, onIndexedDbError, disableInlineComment, ...rest }: Partial<DdocProps>) => {
4
+ export declare const useDdocEditor: ({ isPreviewMode, initialContent, versionHistoryState, collaboration, 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, onIndexedDbError, disableInlineComment, ...rest }: Partial<DdocProps>) => {
5
5
  ydoc: import('yjs').Doc;
6
6
  awareness: import('y-protocols/awareness.js').Awareness | null;
7
7
  refreshYjsIndexedDbProvider: () => Promise<void>;
@@ -1,4 +1,2 @@
1
- export declare const splitContentIntoPrintSections: (content: string) => string[];
2
- export declare const estimateContentPrintPageCount: (content: string) => Promise<number>;
3
1
  export declare const handlePrint: (slides: string[]) => void;
4
2
  export declare const handleContentPrint: (content: string) => void;
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.87-page-count-2",
5
+ "version": "3.0.88",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {