documint 0.0.18 → 0.0.19

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
@@ -96,7 +96,7 @@ export type RawBlock = BlockNode<"raw", {
96
96
  originalType: string;
97
97
  source: string;
98
98
  }>;
99
- export type Mark = "bold" | "italic" | "strikethrough" | "underline";
99
+ export type Mark = "bold" | "italic" | "strikethrough" | "underline" | "superscript";
100
100
  type Text$1 = DocumentNode<"text", {
101
101
  marks: Mark[];
102
102
  text: string;
@@ -129,7 +129,7 @@ export type DocumintStorage = {
129
129
  writeFile(file: File): Promise<string>;
130
130
  openFile?(path: string): void;
131
131
  };
132
- type EditorCommand = "dedent" | "deleteBackward" | "indent" | "insertLineBreak" | "insertSoftLineBreak" | "moveListItemDown" | "moveListItemUp" | "moveToDocumentEnd" | "moveToDocumentStart" | "moveToLineEnd" | "moveToLineStart" | "redo" | "selectAll" | "toggleBold" | "toggleCode" | "toggleItalic" | "toggleStrikethrough" | "toggleUnderline" | "undo";
132
+ export type EditorInputCommand = "dedent" | "deleteBackward" | "indent" | "insertLineBreak" | "insertSoftLineBreak" | "moveListItemDown" | "moveListItemUp" | "moveToDocumentEnd" | "moveToDocumentStart" | "moveToLineEnd" | "moveToLineStart" | "redo" | "selectAll" | "toggleBold" | "toggleCode" | "toggleItalic" | "toggleStrikethrough" | "toggleSuperscript" | "toggleUnderline" | "undo";
133
133
  export type EditorTheme = {
134
134
  activeBlockBackground: string;
135
135
  activeBlockFlash: string;
@@ -208,14 +208,14 @@ export type DocumentPresence = {
208
208
  cursor?: Anchor;
209
209
  color?: string;
210
210
  };
211
- export type EditorKeybinding = {
211
+ export type EditorInputKeybinding = {
212
212
  altKey?: boolean;
213
- command: EditorCommand;
213
+ command: EditorInputCommand;
214
214
  key: string;
215
215
  modKey?: boolean;
216
216
  shiftKey?: boolean | "any";
217
217
  };
218
- export declare const defaultKeybindings: EditorKeybinding[];
218
+ export declare const defaultKeybindings: EditorInputKeybinding[];
219
219
  export type DocumintDecoration = {
220
220
  backgroundColor?: string;
221
221
  pulse?: boolean;
@@ -227,7 +227,7 @@ export type DocumintProps = {
227
227
  className?: string;
228
228
  actions?: DocumintActions;
229
229
  theme?: DocumintTheme;
230
- keybindings?: EditorKeybinding[];
230
+ keybindings?: EditorInputKeybinding[];
231
231
  decorations?: readonly DocumintDecoration[];
232
232
  presence?: DocumentPresence[];
233
233
  storage?: DocumintStorage;