@fileverse-dev/ddoc 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { DdocProps } from './props';
|
2
2
|
|
3
|
-
declare const DdocEditor: ({ isPreviewMode, onPublish, data, togglePreviewMode, }:
|
3
|
+
declare const DdocEditor: ({ isPreviewMode, onPublish, data, togglePreviewMode, }: DdocProps) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default DdocEditor;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { PluginMetaData } from '../props';
|
2
2
|
|
3
|
-
export declare const PluginNavbarLeftSection: ({ metaData, setMetaData, }: {
|
3
|
+
export declare const PluginNavbarLeftSection: ({ metaData, setMetaData, isPreviewMode, }: {
|
4
4
|
metaData: PluginMetaData;
|
5
5
|
setMetaData: React.Dispatch<React.SetStateAction<PluginMetaData>>;
|
6
|
+
isPreviewMode: boolean;
|
6
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { JSONContent } from '@tiptap/core';
|
2
2
|
import { EditorProps } from '@tiptap/pm/view';
|
3
3
|
|
4
|
-
export declare const
|
5
|
-
export interface
|
4
|
+
export declare const DdocEditorProps: EditorProps;
|
5
|
+
export interface DdocProps {
|
6
6
|
isPreviewMode: boolean;
|
7
7
|
togglePreviewMode: (flag: boolean) => void;
|
8
8
|
onPublish: (data: Data) => void;
|