documint 0.0.7 → 0.0.8
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 +7 -6
- package/dist/index.js +38 -35
- package/package.json +2 -3
package/dist/index.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ type TableCell = {
|
|
|
56
56
|
id: string;
|
|
57
57
|
plainText: string;
|
|
58
58
|
};
|
|
59
|
-
type DividerBlock = BlockNode<"
|
|
59
|
+
type DividerBlock = BlockNode<"divider">;
|
|
60
60
|
type CodeBlock = BlockNode<"code", {
|
|
61
61
|
language: string | null;
|
|
62
62
|
meta: string | null;
|
|
@@ -67,7 +67,7 @@ export type DirectiveBlock = BlockNode<"directive", {
|
|
|
67
67
|
body: string;
|
|
68
68
|
name: string;
|
|
69
69
|
}>;
|
|
70
|
-
export type RawBlock = BlockNode<"
|
|
70
|
+
export type RawBlock = BlockNode<"raw", {
|
|
71
71
|
originalType: string;
|
|
72
72
|
source: string;
|
|
73
73
|
}>;
|
|
@@ -87,11 +87,11 @@ type Image$1 = DocumentNode<"image", {
|
|
|
87
87
|
url: string;
|
|
88
88
|
width: number | null;
|
|
89
89
|
}>;
|
|
90
|
-
type LineBreak = DocumentNode<"
|
|
91
|
-
type Code = DocumentNode<"
|
|
90
|
+
type LineBreak = DocumentNode<"lineBreak">;
|
|
91
|
+
type Code = DocumentNode<"code", {
|
|
92
92
|
code: string;
|
|
93
93
|
}>;
|
|
94
|
-
export type Raw = DocumentNode<"
|
|
94
|
+
export type Raw = DocumentNode<"raw", {
|
|
95
95
|
originalType: string;
|
|
96
96
|
source: string;
|
|
97
97
|
}>;
|
|
@@ -110,7 +110,7 @@ export type DocumintStorage = {
|
|
|
110
110
|
readFile(path: string): Promise<Blob | null>;
|
|
111
111
|
writeFile(file: File): Promise<string>;
|
|
112
112
|
};
|
|
113
|
-
type EditorCommand = "dedent" | "deleteBackward" | "indent" | "insertLineBreak" | "moveListItemDown" | "moveListItemUp" | "moveToDocumentEnd" | "moveToDocumentStart" | "moveToLineEnd" | "moveToLineStart" | "redo" | "selectAll" | "toggleBold" | "toggleCode" | "toggleItalic" | "toggleStrikethrough" | "toggleUnderline" | "undo";
|
|
113
|
+
type EditorCommand = "dedent" | "deleteBackward" | "indent" | "insertLineBreak" | "insertSoftLineBreak" | "moveListItemDown" | "moveListItemUp" | "moveToDocumentEnd" | "moveToDocumentStart" | "moveToLineEnd" | "moveToLineStart" | "redo" | "selectAll" | "toggleBold" | "toggleCode" | "toggleItalic" | "toggleStrikethrough" | "toggleUnderline" | "undo";
|
|
114
114
|
export type EditorTheme = {
|
|
115
115
|
activeBlockBackground: string;
|
|
116
116
|
activeBlockFlash: string;
|
|
@@ -130,6 +130,7 @@ export type EditorTheme = {
|
|
|
130
130
|
commentHighlightActive: string;
|
|
131
131
|
commentHighlightResolved: string;
|
|
132
132
|
commentHighlightResolvedActive: string;
|
|
133
|
+
dividerRule?: string;
|
|
133
134
|
headingRule: string;
|
|
134
135
|
headingText: string;
|
|
135
136
|
imageLoadingOverlay: string;
|