@fileverse-dev/ddoc 2.1.0-yjs-patch-3 → 2.1.0-yjs-patch-4

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,7 @@ interface PresentationModeProps {
9
9
  setIsCommentSectionOpen: React.Dispatch<React.SetStateAction<boolean>> | undefined;
10
10
  sharedSlidesLink?: string;
11
11
  isPreviewMode: boolean;
12
+ documentName: string;
12
13
  }
13
- export declare const PresentationMode: ({ editor, onClose, isFullscreen, setIsFullscreen, onError, setIsCommentSectionOpen, sharedSlidesLink, isPreviewMode, }: PresentationModeProps) => import("react/jsx-runtime").JSX.Element | null;
14
+ export declare const PresentationMode: ({ editor, onClose, isFullscreen, setIsFullscreen, onError, setIsCommentSectionOpen, sharedSlidesLink, isPreviewMode, documentName, }: PresentationModeProps) => import("react/jsx-runtime").JSX.Element | null;
14
15
  export {};
@@ -2,6 +2,5 @@ import { default as React } from 'react';
2
2
  import { NodeViewProps } from '@tiptap/react';
3
3
 
4
4
  export declare const DBlockNodeView: React.FC<NodeViewProps & {
5
- zoomLevel: string;
6
5
  secureImageUploadUrl?: string;
7
6
  }>;
@@ -1,7 +1,6 @@
1
1
  import { Node } from '@tiptap/core';
2
2
 
3
3
  export interface DBlockOptions {
4
- zoomLevel: string;
5
4
  HTMLAttributes: Record<string, any>;
6
5
  secureImageUploadUrl?: string;
7
6
  }
@@ -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: (zoomLevel: string, onError: (error: string) => void, secureImageUploadUrl?: string) => (import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Mark<any, any>)[];
4
+ export declare const defaultExtensions: (onError: (error: string) => void, secureImageUploadUrl?: string) => (import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Mark<any, any>)[];
5
5
  export declare const createInputRule: (pattern: RegExp, data: string, type: NodeType) => InputRule;
@@ -63,6 +63,7 @@ export interface DdocProps {
63
63
  onMarkdownExport?: () => void;
64
64
  onMarkdownImport?: () => void;
65
65
  sharedSlidesLink?: string;
66
+ documentName?: string;
66
67
  }
67
68
  export interface IEditorSelectionData {
68
69
  from: number;
@@ -11,5 +11,5 @@ type TemplateButtonProps = {
11
11
  declare const renderIcon: (icon: IconType, className?: string) => import("react/jsx-runtime").JSX.Element | null;
12
12
  declare const createTemplateButtons: (addTemplate: (template: JSONContent) => void) => TemplateButtonProps;
13
13
  declare const createMoreTemplates: (addTemplate: (template: JSONContent) => void) => TemplateButtonProps;
14
- declare const renderTemplateButtons: (templateButtons: TemplateButtonProps, moreTemplates: TemplateButtonProps, visibleTemplateCount: number, toggleAllTemplates: () => void, isExpanded: boolean, zoomLevel: string) => import("react/jsx-runtime").JSX.Element;
14
+ declare const renderTemplateButtons: (templateButtons: TemplateButtonProps, moreTemplates: TemplateButtonProps, visibleTemplateCount: number, toggleAllTemplates: () => void, isExpanded: boolean) => import("react/jsx-runtime").JSX.Element;
15
15
  export { renderIcon, createTemplateButtons, createMoreTemplates, renderTemplateButtons, };
@@ -0,0 +1,10 @@
1
+ declare class ZoomService {
2
+ private static instance;
3
+ private _currentZoom;
4
+ static getInstance(): ZoomService;
5
+ get currentZoom(): string;
6
+ setZoom(zoom: string): void;
7
+ private updateElementPosition;
8
+ }
9
+ export declare const zoomService: ZoomService;
10
+ export {};