@fileverse-dev/ddoc 2.1.0-patch-6 → 2.1.0-patch-6.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +12770 -12717
- package/dist/package/extensions/d-block/dblock-node-view.d.ts +1 -0
- package/dist/package/extensions/d-block/dblock.d.ts +1 -0
- package/dist/package/extensions/default-extension.d.ts +1 -1
- package/dist/package/use-ddoc-editor.d.ts +1 -1
- package/dist/package/useZoomLevelListener.d.ts +12 -0
- package/dist/package/utils/template-utils.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -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) => (import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Mark<any, any>)[];
|
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>)[];
|
5
5
|
export declare const createInputRule: (pattern: RegExp, data: string, type: NodeType) => InputRule;
|
@@ -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, unFocused, }: Partial<DdocProps>) => {
|
4
|
+
export declare const useDdocEditor: ({ isPreviewMode, initialContent, enableCollaboration, collaborationId, walletAddress, username, onChange, onCollaboratorChange, onCommentInteraction, ensResolutionUrl, onError, setCharacterCount, setWordCount, secureImageUploadUrl, scrollPosition, unFocused, zoomLevel, }: Partial<DdocProps>) => {
|
5
5
|
editor: import('@tiptap/core').Editor | null;
|
6
6
|
isContentLoading: boolean;
|
7
7
|
ref: import('react').RefObject<HTMLDivElement>;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { AnyExtension } from '@tiptap/react';
|
2
|
+
|
3
|
+
export declare function useZoomLevelListener({ zoomLevel, setExtensions, defaultExtensions, onError, secureImageUploadUrl, customTextInputRules, SlashCommand, PageBreak, }: {
|
4
|
+
zoomLevel: string | undefined;
|
5
|
+
setExtensions: React.Dispatch<React.SetStateAction<AnyExtension[]>>;
|
6
|
+
defaultExtensions: (zoomLevel: string, errorHandler: (error: string) => void, secureImageUploadUrl?: string) => AnyExtension[];
|
7
|
+
onError?: (error: string) => void;
|
8
|
+
secureImageUploadUrl?: string;
|
9
|
+
customTextInputRules: AnyExtension;
|
10
|
+
SlashCommand: (errorHandler: (error: string) => void, secureImageUploadUrl: string) => AnyExtension;
|
11
|
+
PageBreak: AnyExtension;
|
12
|
+
}): void;
|
@@ -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) => import("react/jsx-runtime").JSX.Element;
|
14
|
+
declare const renderTemplateButtons: (templateButtons: TemplateButtonProps, moreTemplates: TemplateButtonProps, visibleTemplateCount: number, toggleAllTemplates: () => void, isExpanded: boolean, zoomLevel: string) => import("react/jsx-runtime").JSX.Element;
|
15
15
|
export { renderIcon, createTemplateButtons, createMoreTemplates, renderTemplateButtons, };
|