documint 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -109,6 +109,7 @@ export type Anchor = {
109
109
  export type DocumintStorage = {
110
110
  readFile(path: string): Promise<Blob | null>;
111
111
  writeFile(file: File): Promise<string>;
112
+ openFile?(path: string): void;
112
113
  };
113
114
  type EditorCommand = "dedent" | "deleteBackward" | "indent" | "insertLineBreak" | "insertSoftLineBreak" | "moveListItemDown" | "moveListItemUp" | "moveToDocumentEnd" | "moveToDocumentStart" | "moveToLineEnd" | "moveToLineStart" | "redo" | "selectAll" | "toggleBold" | "toggleCode" | "toggleItalic" | "toggleStrikethrough" | "toggleUnderline" | "undo";
114
115
  export type EditorTheme = {
@@ -207,7 +208,6 @@ export type DocumintProps = {
207
208
  storage?: DocumintStorage;
208
209
  users?: DocumentUser[];
209
210
  onContentChanged?: (content: string, document: Document$1) => void;
210
- onStateChanged?: (state: DocumintState) => void;
211
211
  onCommentChanged?: (change: CommentChange) => void;
212
212
  };
213
213
  export type CommentChange = {
@@ -233,19 +233,7 @@ export type DocumintTheme = EditorTheme | {
233
233
  dark: EditorTheme;
234
234
  light: EditorTheme;
235
235
  };
236
- export type DocumintState = {
237
- activeBlockType: string | null;
238
- activeCommentThreadIndex: number | null;
239
- activeSpanKind: string | null;
240
- canonicalContent: string;
241
- characterCount: number;
242
- commentThreadCount: number;
243
- layoutWidth: number;
244
- resolvedCommentCount: number;
245
- selectionFrom: number;
246
- selectionTo: number;
247
- };
248
- export declare function Documint({ className, content, keybindings, onCommentChanged, onContentChanged, onStateChanged, presence, storage, theme, users, }: DocumintProps): import("react/jsx-runtime").JSX.Element;
236
+ export declare function Documint({ className, content, keybindings, onCommentChanged, onContentChanged, presence, storage, theme, users, }: DocumintProps): import("react/jsx-runtime").JSX.Element;
249
237
  export declare const lightTheme: EditorTheme;
250
238
  export declare const darkTheme: EditorTheme;
251
239
  export declare const mintTheme: EditorTheme;