@fileverse-dev/ddoc 2.0.9-patch-2.3 → 2.0.9-patch-9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +7563 -7480
- package/dist/package/components/editor-bubble-menu.d.ts +1 -0
- package/dist/package/components/editor-toolbar.d.ts +3 -1
- package/dist/package/components/tag-input.d.ts +1 -1
- package/dist/package/types.d.ts +4 -0
- package/dist/package/utils/template-utils.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +18 -3
@@ -10,6 +10,7 @@ export interface BubbleMenuItem {
|
|
10
10
|
type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'> & {
|
11
11
|
isPreviewMode: boolean;
|
12
12
|
onError?: (errorString: string) => void;
|
13
|
+
zoomLevel: string;
|
13
14
|
setIsCommentSectionOpen?: (isOpen: boolean) => void;
|
14
15
|
inlineCommentData?: InlineCommentData;
|
15
16
|
setInlineCommentData?: React.Dispatch<React.SetStateAction<InlineCommentData>>;
|
@@ -1,9 +1,11 @@
|
|
1
1
|
import { default as React } from 'react';
|
2
2
|
import { Editor } from '@tiptap/react';
|
3
3
|
|
4
|
-
declare const TiptapToolBar: ({ editor, onError, isNavbarVisible, setIsNavbarVisible, secureImageUploadUrl, }: {
|
4
|
+
declare const TiptapToolBar: ({ editor, onError, zoomLevel, setZoomLevel, isNavbarVisible, setIsNavbarVisible, secureImageUploadUrl, }: {
|
5
5
|
editor: Editor;
|
6
6
|
onError?: (errorString: string) => void;
|
7
|
+
zoomLevel: string;
|
8
|
+
setZoomLevel: (zoom: string) => void;
|
7
9
|
isNavbarVisible: boolean;
|
8
10
|
setIsNavbarVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
9
11
|
secureImageUploadUrl?: string;
|
@@ -8,5 +8,5 @@ export interface TagInputProps {
|
|
8
8
|
onAddTag: (tag: TagProps) => void;
|
9
9
|
isPreviewMode: boolean;
|
10
10
|
}
|
11
|
-
declare const TagInput: ({ tags, selectedTags, onAddTag, isPreviewMode }: TagInputProps) => import("react/jsx-runtime").JSX.Element | null;
|
11
|
+
declare const TagInput: ({ tags, selectedTags, onAddTag, isPreviewMode, }: TagInputProps) => import("react/jsx-runtime").JSX.Element | null;
|
12
12
|
export { TagInput };
|
package/dist/package/types.d.ts
CHANGED
@@ -22,6 +22,10 @@ export interface DdocProps {
|
|
22
22
|
setIsCommentSectionOpen?: React.Dispatch<SetStateAction<boolean>>;
|
23
23
|
inlineCommentData?: InlineCommentData;
|
24
24
|
setInlineCommentData?: React.Dispatch<React.SetStateAction<InlineCommentData>>;
|
25
|
+
zoomLevel: string;
|
26
|
+
setZoomLevel: React.Dispatch<SetStateAction<string>>;
|
27
|
+
isNavbarVisible: boolean;
|
28
|
+
setIsNavbarVisible: React.Dispatch<SetStateAction<boolean>>;
|
25
29
|
isCommentSectionOpen?: boolean;
|
26
30
|
collaborationId?: string;
|
27
31
|
isPreviewMode: boolean;
|
@@ -12,4 +12,4 @@ declare const renderIcon: (icon: IconType, className?: string) => import("react/
|
|
12
12
|
declare const createTemplateButtons: (addTemplate: (template: JSONContent) => void) => TemplateButtonProps;
|
13
13
|
declare const createMoreTemplates: (addTemplate: (template: JSONContent) => void) => TemplateButtonProps;
|
14
14
|
declare const renderTemplateButtons: (templateButtons: TemplateButtonProps, moreTemplates: TemplateButtonProps, visibleTemplateCount: number, toggleAllTemplates: () => void, isExpanded: boolean) => import("react/jsx-runtime").JSX.Element;
|
15
|
-
export { renderIcon, createTemplateButtons, createMoreTemplates, renderTemplateButtons };
|
15
|
+
export { renderIcon, createTemplateButtons, createMoreTemplates, renderTemplateButtons, };
|