@fileverse-dev/ddoc 1.1.7 → 1.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  import { DdocProps } from './types';
2
2
 
3
- declare const DdocEditor: ({ isPreviewMode, onPublish, data, togglePreviewMode, enableCollaboration, collaborationId, }: DdocProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const DdocEditor: ({ isPreviewMode, onPublish, data, togglePreviewMode, enableCollaboration, collaborationId, onAutoSave, }: DdocProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default DdocEditor;
@@ -10,6 +10,7 @@ export interface DdocProps {
10
10
  toggleCollaboration?: (flag: boolean) => void;
11
11
  onPublish: (data: Data) => void;
12
12
  data?: Data;
13
+ onAutoSave?: (data: Data) => void;
13
14
  }
14
15
  export interface Data {
15
16
  metaData: PluginMetaData;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "1.1.7",
5
+ "version": "1.1.9",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {