@fileverse-dev/ddoc 2.1.1-patch-6 → 2.1.1-patch-8

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.
@@ -7,6 +7,7 @@ interface IEditorToolElement {
7
7
  title: string;
8
8
  onClick: () => void;
9
9
  isActive: boolean;
10
+ group?: string;
10
11
  }
11
12
  export declare const fonts: {
12
13
  title: string;
@@ -11,6 +11,8 @@ interface PresentationModeProps {
11
11
  isPreviewMode: boolean;
12
12
  documentName: string;
13
13
  onSlidesShare?: () => void;
14
+ slides: string[];
15
+ setSlides: React.Dispatch<React.SetStateAction<string[]>>;
14
16
  }
15
- export declare const PresentationMode: ({ editor, onClose, isFullscreen, setIsFullscreen, onError, setIsCommentSectionOpen, sharedSlidesLink, isPreviewMode, documentName, onSlidesShare, }: PresentationModeProps) => import("react/jsx-runtime").JSX.Element | null;
17
+ export declare const PresentationMode: ({ editor, onClose, isFullscreen, setIsFullscreen, onError, setIsCommentSectionOpen, sharedSlidesLink, isPreviewMode, documentName, onSlidesShare, slides, setSlides, }: PresentationModeProps) => import("react/jsx-runtime").JSX.Element | null;
16
18
  export {};
@@ -1,5 +1,5 @@
1
1
  import { Extension } from '@tiptap/core';
2
2
 
3
- export declare const updateScrollView: (container: HTMLElement, item: HTMLElement) => void;
3
+ export declare const Command: Extension<any, any>;
4
4
  declare const SlashCommand: (onError?: (errorString: string) => void, secureImageUploadUrl?: string) => Extension<any, any>;
5
5
  export default SlashCommand;
@@ -0,0 +1,15 @@
1
+ import { CommandProps } from './types';
2
+
3
+ export declare const getSuggestionItems: ({ query, onError, secureImageUploadUrl, }: {
4
+ query: string;
5
+ onError?: (errorString: string) => void;
6
+ secureImageUploadUrl?: string;
7
+ }) => {
8
+ title: string;
9
+ description: string;
10
+ searchTerms: string[];
11
+ icon: import("react/jsx-runtime").JSX.Element;
12
+ image: string;
13
+ command: ({ editor, range }: CommandProps) => void;
14
+ }[];
15
+ export declare const updateScrollView: (container: HTMLElement, item: HTMLElement) => void;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { Editor, Range } from '@tiptap/core';
3
+
4
+ export interface CommandItemProps {
5
+ title: string;
6
+ description: string;
7
+ icon: ReactNode;
8
+ image?: string;
9
+ }
10
+ export interface CommandProps {
11
+ editor: Editor;
12
+ range: Range;
13
+ }
@@ -1,11 +1,13 @@
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, }: Partial<DdocProps>) => {
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, }: Partial<DdocProps>) => {
5
5
  editor: import('@tiptap/core').Editor | null;
6
6
  isContentLoading: boolean;
7
7
  ref: import('react').RefObject<HTMLDivElement>;
8
8
  connect: (username: string | null | undefined, isEns?: boolean) => () => void;
9
9
  ydoc: Y.Doc;
10
10
  refreshYjsIndexedDbProvider: () => Promise<void>;
11
+ slides: string[];
12
+ setSlides: import('react').Dispatch<import('react').SetStateAction<string[]>>;
11
13
  };