oasis-editor 0.0.11 → 0.0.13
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/{OasisEditorApp-BgOoWqpC.js → OasisEditorApp-DYcAe_1n.js} +568 -41
- package/dist/app/controllers/EditorCommandsController.d.ts +4 -0
- package/dist/app/controllers/useEditorLayout.d.ts +2 -1
- package/dist/assets/{importDocxWorker-DbiKelzX.js → importDocxWorker-cjz15bhS.js} +1 -1
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/image.d.ts +2 -0
- package/dist/core/commands/publicCommandTypes.d.ts +1 -0
- package/dist/core/document/imageCaptions.d.ts +13 -0
- package/dist/core/editorState.d.ts +1 -0
- package/dist/core/model/index.d.ts +1 -0
- package/dist/core/model/types/document.d.ts +7 -0
- package/dist/core/model/types/documentComments.d.ts +50 -0
- package/dist/export/docx/commentsXml.d.ts +34 -0
- package/dist/export/docx/docxTypes.d.ts +7 -0
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/pt-BR.d.ts +4 -0
- package/dist/import/docx/comments.d.ts +12 -0
- package/dist/import/docx/commentsXml.d.ts +14 -0
- package/dist/import/docx/runs/types.d.ts +10 -0
- package/dist/import/docx/runs.d.ts +5 -1
- package/dist/{index-L71R0x7D.js → index-CWev1Jg0.js} +723 -304
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +54 -54
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/plugins/internal/createEssentialsPlugin.d.ts +1 -0
- package/dist/ui/OasisEditorEditor.d.ts +2 -1
- package/dist/ui/app/EditorDialogsLayer.d.ts +1 -0
- package/dist/ui/app/buildEditorViewProps.d.ts +2 -1
- package/dist/ui/app/useEditorDialogs.d.ts +8 -0
- package/dist/ui/canvas/CanvasCommentGeometry.d.ts +13 -0
- package/dist/ui/components/CommentHighlightOverlay.d.ts +16 -0
- package/dist/ui/components/Dialogs/ImageCaptionDialog.d.ts +8 -0
- package/dist/ui/components/Menubar/builtinMenuIds.d.ts +1 -0
- package/dist/ui/components/Toolbar/presets/builtinToolbarIds.d.ts +1 -0
- package/dist/ui/editorUiTypes.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "insertFootnote", "pastePlainText", "bold", "italic", "underline", "strike", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "toggleTrackChanges", "acceptRevisions", "rejectRevisions", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "splitBlock", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setUnderlineStyle", "documentStyles", "print", "copy", "exportDocx", "exportPdf", "importDocument", "insertImage", "editImageAlt", "outdent", "indent", "togglePageBreakBefore", "toggleKeepWithNext", "setSpacingAfter", "setSpacingBefore", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setParagraphShading", "applyParagraphBorders", "setLineHeight", "setListFormat", "setListStartAt", "toggleOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "setPageMargins", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellWidth", "insertTable"];
|
|
1
|
+
export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "insertFootnote", "pastePlainText", "bold", "italic", "underline", "strike", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "toggleTrackChanges", "acceptRevisions", "rejectRevisions", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "splitBlock", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setUnderlineStyle", "documentStyles", "print", "copy", "exportDocx", "exportPdf", "importDocument", "insertImage", "editImageAlt", "insertImageCaption", "outdent", "indent", "togglePageBreakBefore", "toggleKeepWithNext", "setSpacingAfter", "setSpacingBefore", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setParagraphShading", "applyParagraphBorders", "setLineHeight", "setListFormat", "setListStartAt", "toggleOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "setPageMargins", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellWidth", "insertTable"];
|
|
2
2
|
export type OasisBuiltinCommand = (typeof OASIS_BUILTIN_COMMANDS)[number];
|
|
@@ -20,4 +20,6 @@ export declare function setSelectedImageFixedPosition(state: EditorState, fixed:
|
|
|
20
20
|
export declare function setImageWrapPolygon(state: EditorState, runId: string, polygon: EditorImageRunData["wrapPolygon"]): EditorState;
|
|
21
21
|
export declare function getSelectedImageAlt(state: EditorState): string | null;
|
|
22
22
|
export declare function setSelectedImageAlt(state: EditorState, alt: string | null): EditorState;
|
|
23
|
+
export declare function getSelectedImageCaption(state: EditorState): string | null;
|
|
24
|
+
export declare function setSelectedImageCaption(state: EditorState, captionText: string, label: string): EditorState;
|
|
23
25
|
export declare function moveSelectedImageToPosition(state: EditorState, targetPosition: EditorPosition): EditorState;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EditorDocument, EditorParagraphNode } from '../../../model.js';
|
|
2
|
+
|
|
3
|
+
export declare const IMAGE_CAPTION_STYLE_ID = "Caption";
|
|
4
|
+
export declare const IMAGE_CAPTION_FIELD_IDENTIFIER = "Figure";
|
|
5
|
+
export declare const IMAGE_CAPTION_FIELD_INSTRUCTION = " SEQ Figure \\* ARABIC ";
|
|
6
|
+
export declare function createImageCaptionParagraph(captionText: string, label: string, sequenceNumber: number): EditorParagraphNode;
|
|
7
|
+
export declare function isImageCaptionParagraph(paragraph: EditorParagraphNode | undefined): paragraph is EditorParagraphNode;
|
|
8
|
+
export declare function getImageCaptionText(paragraph: EditorParagraphNode | undefined): string;
|
|
9
|
+
export declare function updateImageCaptionParagraph(paragraph: EditorParagraphNode, captionText: string, label: string): EditorParagraphNode;
|
|
10
|
+
export declare function renumberImageCaptionParagraphs(paragraphs: EditorParagraphNode[]): EditorParagraphNode[];
|
|
11
|
+
export declare function renumberImageCaptionsInDocument(document: EditorDocument): EditorDocument;
|
|
12
|
+
export declare function getCaptionSelectionOffset(paragraph: EditorParagraphNode): number;
|
|
13
|
+
export declare function cloneParagraphsWithRenumberedCaptions(paragraphs: EditorParagraphNode[]): EditorParagraphNode[];
|
|
@@ -2,6 +2,7 @@ import { EditorAsset, EditorBlockNode, EditorDocument, EditorFootnote, EditorPag
|
|
|
2
2
|
|
|
3
3
|
export declare function resetEditorIds(): void;
|
|
4
4
|
export declare function createEditorBookmarkId(): string;
|
|
5
|
+
export declare function createEditorCommentId(): string;
|
|
5
6
|
export declare function createEditorRun(text?: string): EditorTextRun;
|
|
6
7
|
export declare function createEditorStyledRun(text?: string, styles?: EditorTextStyle, image?: EditorImageRunData, textBox?: EditorTextBoxData): EditorTextRun;
|
|
7
8
|
export declare function createEditorParagraph(text?: string): EditorParagraphNode;
|
|
@@ -12,6 +12,7 @@ export type { EditorTextRun, EditorTextBoxShape, EditorTextBoxBody, EditorTextBo
|
|
|
12
12
|
export type { EditorFootnote } from '../../types/documentFootnotes.js';
|
|
13
13
|
export type { EditorEndnote } from '../../types/documentEndnotes.js';
|
|
14
14
|
export type { EditorBookmark, EditorBookmarkAnchor, EditorBookmarks, } from '../../types/documentBookmarks.js';
|
|
15
|
+
export type { EditorComment, EditorCommentAnchor, EditorComments, } from '../../types/documentComments.js';
|
|
15
16
|
export type { EditorPageMargins, EditorPageSettings, EditorSection, EditorFootnoteSettings, EditorFootnotes, EditorEndnoteSettings, EditorEndnotes, EditorDocument, } from '../../types/document.js';
|
|
16
17
|
export type { EditorPosition, EditorSelection, EditorEditingZone, } from '../../types/selection.js';
|
|
17
18
|
export type { EditorCaretSlot, EditorLayoutFragmentChar, EditorLayoutFragment, EditorLayoutLine, EditorLayoutParagraph, EditorLayoutBlock, TableCellBlockPosition, EditorLayoutPage, EditorLayoutDocument, } from '../../types/layout.js';
|
|
@@ -3,6 +3,7 @@ import { EditorBlockNode } from '../../../nodes.js';
|
|
|
3
3
|
import { EditorFootnote } from '../../../documentFootnotes.js';
|
|
4
4
|
import { EditorEndnote } from '../../../documentEndnotes.js';
|
|
5
5
|
import { EditorBookmarks } from '../../../documentBookmarks.js';
|
|
6
|
+
import { EditorComments } from '../../../documentComments.js';
|
|
6
7
|
import { EditorNamedStyle } from '../../../styles.js';
|
|
7
8
|
|
|
8
9
|
export interface EditorPageMargins {
|
|
@@ -79,6 +80,12 @@ export interface EditorDocument {
|
|
|
79
80
|
* hyperlinks (`#name`) and cross-references.
|
|
80
81
|
*/
|
|
81
82
|
bookmarks?: EditorBookmarks;
|
|
83
|
+
/**
|
|
84
|
+
* Comment registry (`w:commentRangeStart`/`w:commentRangeEnd` +
|
|
85
|
+
* `word/comments.xml` bodies). Each comment owns a highlighted range and a
|
|
86
|
+
* body shown in a hover/click popup.
|
|
87
|
+
*/
|
|
88
|
+
comments?: EditorComments;
|
|
82
89
|
metadata?: {
|
|
83
90
|
title?: string;
|
|
84
91
|
[key: string]: unknown;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment registry (Word's `w:commentRangeStart` / `w:commentRangeEnd` /
|
|
3
|
+
* `w:commentReference` + the `word/comments.xml` bodies).
|
|
4
|
+
*
|
|
5
|
+
* A comment is two independent things glued by a shared id:
|
|
6
|
+
* - a *range* over the document text (start/end anchors), independent of the
|
|
7
|
+
* run/paragraph tree — modeled exactly like {@link EditorBookmark}; and
|
|
8
|
+
* - a *body* (author, date, text, resolved state) that lives out-of-band in
|
|
9
|
+
* `word/comments.xml` — modeled like footnotes/endnotes.
|
|
10
|
+
*
|
|
11
|
+
* This is the import/display/export representation: faithful round-trip plus a
|
|
12
|
+
* highlighted range and a hover/click popup. Authoring (create/reply/resolve)
|
|
13
|
+
* and live-edit anchor transforms are intentionally out of scope here.
|
|
14
|
+
*/
|
|
15
|
+
export interface EditorCommentAnchor {
|
|
16
|
+
/** Id of the paragraph this anchor lives in (`EditorParagraphNode.id`). */
|
|
17
|
+
paragraphId: string;
|
|
18
|
+
/** Character offset into the paragraph's flattened text stream. */
|
|
19
|
+
offset: number;
|
|
20
|
+
/**
|
|
21
|
+
* Document order in which the original marker appeared. Keeps a deterministic
|
|
22
|
+
* emit order when several boundaries share one offset.
|
|
23
|
+
*/
|
|
24
|
+
seq?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface EditorComment {
|
|
27
|
+
/** Stable editor-local id (not the DOCX `w:id`). */
|
|
28
|
+
id: string;
|
|
29
|
+
/** Original DOCX `w:id`, used only as a hint for export id stability. */
|
|
30
|
+
docxIdHint?: number;
|
|
31
|
+
/** `w:comment/@w:author`. */
|
|
32
|
+
author: string;
|
|
33
|
+
/** `w:comment/@w:initials`. */
|
|
34
|
+
initials?: string;
|
|
35
|
+
/** `w:comment/@w:date` as an epoch millisecond timestamp. */
|
|
36
|
+
date?: number;
|
|
37
|
+
/** Resolved/"done" state (`w15:commentEx/@w15:done`). */
|
|
38
|
+
resolved?: boolean;
|
|
39
|
+
/** Flattened comment body text (bodies in scope are single paragraphs). */
|
|
40
|
+
text: string;
|
|
41
|
+
/** Start anchor. May be absent for a malformed import (orphan end). */
|
|
42
|
+
start?: EditorCommentAnchor;
|
|
43
|
+
/** End anchor. May be absent for a malformed import (orphan start). */
|
|
44
|
+
end?: EditorCommentAnchor;
|
|
45
|
+
}
|
|
46
|
+
export interface EditorComments {
|
|
47
|
+
items: Record<string, EditorComment>;
|
|
48
|
+
/** Stable creation/import order for deterministic export. */
|
|
49
|
+
order: string[];
|
|
50
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EditorComment, EditorDocument } from '../../../../core/model.js';
|
|
2
|
+
|
|
3
|
+
export interface CommentBoundaryEvent {
|
|
4
|
+
kind: "start" | "end" | "reference";
|
|
5
|
+
/** Character offset into the paragraph's flattened text. */
|
|
6
|
+
offset: number;
|
|
7
|
+
/** Stable emit order for boundaries that share an offset. */
|
|
8
|
+
seq: number;
|
|
9
|
+
/** Allocated DOCX `w:id`. */
|
|
10
|
+
wId: number;
|
|
11
|
+
}
|
|
12
|
+
export type CommentEventsByParagraph = Map<string, CommentBoundaryEvent[]>;
|
|
13
|
+
interface AssignedComment {
|
|
14
|
+
comment: EditorComment;
|
|
15
|
+
wId: number;
|
|
16
|
+
/** Allocated `w14:paraId` for the comment body paragraph. */
|
|
17
|
+
paraId: string;
|
|
18
|
+
}
|
|
19
|
+
export interface CommentExportPlan {
|
|
20
|
+
eventsByParagraph: CommentEventsByParagraph;
|
|
21
|
+
comments: AssignedComment[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Allocate unique numeric `w:id`s (preferring each comment's imported hint),
|
|
25
|
+
* a `w14:paraId` per comment, and group start/end/reference boundary events by
|
|
26
|
+
* paragraph id. Returns `undefined` when the document has no comments.
|
|
27
|
+
*/
|
|
28
|
+
export declare function buildCommentExportPlan(document: EditorDocument): CommentExportPlan | undefined;
|
|
29
|
+
export declare function serializeCommentRangeEvent(event: CommentBoundaryEvent): string;
|
|
30
|
+
/** Build `word/comments.xml` from the assigned comments. */
|
|
31
|
+
export declare function buildCommentsPartXml(plan: CommentExportPlan): string;
|
|
32
|
+
/** Build `word/commentsExtended.xml` carrying the resolved/"done" state. */
|
|
33
|
+
export declare function buildCommentsExtendedPartXml(plan: CommentExportPlan): string;
|
|
34
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EditorBlockNode, EditorImageCrop, EditorImageFillMode, EditorImageFloatingLayout, EditorParagraphListStyle, EditorWrapPolygonPoint } from '../../../../core/model.js';
|
|
2
2
|
import { BookmarkEventsByParagraph } from '../../bookmarksXml.js';
|
|
3
|
+
import { CommentEventsByParagraph } from '../../commentsXml.js';
|
|
3
4
|
|
|
4
5
|
export interface NumberingDefinition {
|
|
5
6
|
kind: EditorParagraphListStyle["kind"];
|
|
@@ -64,6 +65,12 @@ export interface DocContext {
|
|
|
64
65
|
* paragraph ids are globally unique.
|
|
65
66
|
*/
|
|
66
67
|
bookmarkEventsByParagraph?: BookmarkEventsByParagraph;
|
|
68
|
+
/**
|
|
69
|
+
* Per-paragraph comment boundary events (`w:commentRangeStart`/`End` +
|
|
70
|
+
* `w:commentReference`), keyed by `EditorParagraphNode.id`. Shared across all
|
|
71
|
+
* part contexts since paragraph ids are globally unique.
|
|
72
|
+
*/
|
|
73
|
+
commentEventsByParagraph?: CommentEventsByParagraph;
|
|
67
74
|
}
|
|
68
75
|
export interface NumberingContext {
|
|
69
76
|
numberingInfo: Map<string, {
|
|
@@ -6,6 +6,7 @@ export declare const en: {
|
|
|
6
6
|
"toolbar.redo": string;
|
|
7
7
|
"toolbar.insert": string;
|
|
8
8
|
"toolbar.image": string;
|
|
9
|
+
"toolbar.imageCaption": string;
|
|
9
10
|
"toolbar.shapes": string;
|
|
10
11
|
"toolbar.shape.rect": string;
|
|
11
12
|
"toolbar.shape.roundRect": string;
|
|
@@ -229,6 +230,9 @@ export declare const en: {
|
|
|
229
230
|
"dialog.imageAlt.title": string;
|
|
230
231
|
"dialog.imageAlt.label": string;
|
|
231
232
|
"dialog.imageAlt.placeholder": string;
|
|
233
|
+
"dialog.imageCaption.title": string;
|
|
234
|
+
"dialog.imageCaption.label": string;
|
|
235
|
+
"dialog.imageCaption.placeholder": string;
|
|
232
236
|
"dialog.link.title": string;
|
|
233
237
|
"dialog.link.label": string;
|
|
234
238
|
"dialog.link.placeholder": string;
|
|
@@ -6,6 +6,7 @@ export declare const ptBR: {
|
|
|
6
6
|
"toolbar.redo": string;
|
|
7
7
|
"toolbar.insert": string;
|
|
8
8
|
"toolbar.image": string;
|
|
9
|
+
"toolbar.imageCaption": string;
|
|
9
10
|
"toolbar.shapes": string;
|
|
10
11
|
"toolbar.shape.rect": string;
|
|
11
12
|
"toolbar.shape.roundRect": string;
|
|
@@ -229,6 +230,9 @@ export declare const ptBR: {
|
|
|
229
230
|
"dialog.imageAlt.title": string;
|
|
230
231
|
"dialog.imageAlt.label": string;
|
|
231
232
|
"dialog.imageAlt.placeholder": string;
|
|
233
|
+
"dialog.imageCaption.title": string;
|
|
234
|
+
"dialog.imageCaption.label": string;
|
|
235
|
+
"dialog.imageCaption.placeholder": string;
|
|
232
236
|
"dialog.link.title": string;
|
|
233
237
|
"dialog.link.label": string;
|
|
234
238
|
"dialog.link.placeholder": string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EditorCommentAnchor, EditorSection } from '../../../../core/model.js';
|
|
2
|
+
|
|
3
|
+
export interface CommentRange {
|
|
4
|
+
start?: EditorCommentAnchor;
|
|
5
|
+
end?: EditorCommentAnchor;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Walk all stories in the imported sections, collect comment range boundaries,
|
|
9
|
+
* pair them by DOCX id and return a `docxId -> { start, end }` map. Mutates the
|
|
10
|
+
* paragraphs in place to remove the transient marker runs.
|
|
11
|
+
*/
|
|
12
|
+
export declare function extractCommentRangesFromSections(sections: EditorSection[]): Map<string, CommentRange>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ParsedCommentBody {
|
|
2
|
+
author: string;
|
|
3
|
+
initials?: string;
|
|
4
|
+
date?: number;
|
|
5
|
+
text: string;
|
|
6
|
+
resolved?: boolean;
|
|
7
|
+
/** `w14:paraId` of the comment's (first) paragraph — links to commentsEx. */
|
|
8
|
+
paraId?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Parse `word/comments.xml` (+ optional `word/commentsExtended.xml`) into a map
|
|
12
|
+
* keyed by the DOCX `w:id` (string) of each comment.
|
|
13
|
+
*/
|
|
14
|
+
export declare function parseCommentsXml(commentsXml: string | null, commentsExtendedXml: string | null): Map<string, ParsedCommentBody>;
|
|
@@ -14,6 +14,15 @@ export interface ImportedBookmarkMarker {
|
|
|
14
14
|
colFirst?: number;
|
|
15
15
|
colLast?: number;
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* A `w:commentRangeStart` / `w:commentRangeEnd` marker carried through the run
|
|
19
|
+
* stream as a zero-length transient run. The import driver extracts these into
|
|
20
|
+
* the document-level comment registry once paragraph ids and offsets are known.
|
|
21
|
+
*/
|
|
22
|
+
export interface ImportedCommentMarker {
|
|
23
|
+
kind: "start" | "end";
|
|
24
|
+
docxId: string;
|
|
25
|
+
}
|
|
17
26
|
export interface ImportedRun {
|
|
18
27
|
text: string;
|
|
19
28
|
image?: EditorImageRunData;
|
|
@@ -39,6 +48,7 @@ export interface ImportedRun {
|
|
|
39
48
|
customMark?: string;
|
|
40
49
|
};
|
|
41
50
|
bookmark?: ImportedBookmarkMarker;
|
|
51
|
+
comment?: ImportedCommentMarker;
|
|
42
52
|
sym?: {
|
|
43
53
|
font: string;
|
|
44
54
|
char: string;
|
|
@@ -4,7 +4,7 @@ import { EditorImageRunData, EditorTextBoxData } from '../../../../core/model.js
|
|
|
4
4
|
import { AssetRegistry } from '../../assetRegistry.js';
|
|
5
5
|
import { DocxImportTheme } from '../../theme.js';
|
|
6
6
|
import { NumberingMaps } from '../../numbering.js';
|
|
7
|
-
import { ImportedBookmarkMarker, ImportedRun, ParseNestedBlocks } from '../../runs/types.js';
|
|
7
|
+
import { ImportedBookmarkMarker, ImportedCommentMarker, ImportedRun, ParseNestedBlocks } from '../../runs/types.js';
|
|
8
8
|
|
|
9
9
|
export type { ImportedRun } from '../../runs/types.js';
|
|
10
10
|
export type { ParseNestedBlocks } from '../../runs/types.js';
|
|
@@ -17,6 +17,10 @@ export declare function parseRunElement(runElement: XmlElement, zip: JSZip, rels
|
|
|
17
17
|
offset: number;
|
|
18
18
|
marker: ImportedBookmarkMarker;
|
|
19
19
|
}>;
|
|
20
|
+
innerComments?: Array<{
|
|
21
|
+
offset: number;
|
|
22
|
+
marker: ImportedCommentMarker;
|
|
23
|
+
}>;
|
|
20
24
|
sym?: {
|
|
21
25
|
font: string;
|
|
22
26
|
char: string;
|