@docx-editor.dev/core 2.32.0 → 2.33.0
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/README.md +1 -1
- package/THIRD_PARTY_NOTICES.md +1 -0
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +13 -51
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +14 -14
- package/dist/binding.js +1 -1
- package/dist/{chrome-print-CznJ0ucN.d.ts → chrome-print-CrPI9ZQc.d.ts} +85 -30
- package/dist/chunk-23MKR33J.js +4 -0
- package/dist/chunk-2DEY5NUC.cjs +32 -0
- package/dist/chunk-2DR4TH6B.js +1 -0
- package/dist/{chunk-ETDZFNMI.js → chunk-2F2UEAE2.js} +1 -1
- package/dist/chunk-2GPGAFOJ.cjs +5 -0
- package/dist/chunk-ALD626VU.cjs +2 -0
- package/dist/chunk-AU33YWEJ.js +236 -0
- package/dist/chunk-AXU63LYW.cjs +1 -0
- package/dist/chunk-CM5VZRBV.js +32 -0
- package/dist/chunk-D7FAFFTN.js +1 -0
- package/dist/{chunk-TJHE5EET.cjs → chunk-DYUVJNDD.cjs} +1 -1
- package/dist/chunk-ESYUKD5D.js +2 -0
- package/dist/chunk-F7TGQMVR.js +5 -0
- package/dist/chunk-FLW7KIQX.js +30 -0
- package/dist/chunk-JG4A6W6I.js +7 -0
- package/dist/chunk-JNGLSBPH.js +2 -0
- package/dist/chunk-KE6ZWRIY.cjs +236 -0
- package/dist/{chunk-L5TYBFDB.js → chunk-L3YXJDPX.js} +1 -1
- package/dist/chunk-LI42N7OW.cjs +4 -0
- package/dist/{chunk-ACLR4DMK.js → chunk-PLKDS4JT.js} +1 -1
- package/dist/{chunk-6UDJUI3W.cjs → chunk-PXMTQ73F.cjs} +1 -1
- package/dist/chunk-R4R3AAE4.js +1 -0
- package/dist/{chunk-OKMEMSKB.cjs → chunk-RFUNFTGV.cjs} +1 -1
- package/dist/chunk-SVM6PGMS.js +3 -0
- package/dist/chunk-SZURLHR3.cjs +3 -0
- package/dist/chunk-UYCGCVZ2.cjs +1 -0
- package/dist/chunk-X34QRAUU.cjs +1 -0
- package/dist/chunk-XNBYG4XJ.cjs +30 -0
- package/dist/chunk-ZDFJW5XS.cjs +2 -0
- package/dist/chunk-ZWO4JHNN.cjs +7 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +13 -4
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +3 -3
- package/dist/contracts/document.d.ts +3 -3
- package/dist/contracts/editor.d.ts +10 -10
- package/dist/contracts/interaction.d.ts +2 -2
- package/dist/contracts/modules.d.ts +12 -12
- package/dist/contracts/types.d.ts +4 -4
- package/dist/{custom-node-writes-CLJKGD9t.d.ts → custom-node-writes-AqY5KpVx.d.ts} +2 -2
- package/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
- package/dist/{diagnostic-hints-DK8-V0fk.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +2 -2
- package/dist/{document-protection-NaniLHWF.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
- package/dist/{headless-document-view-Bcz9_Qva.d.ts → drawing-graphic-kind-CXYGYbB3.d.ts} +74 -4
- package/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
- package/dist/{editor-DZwOTmlR.d.ts → editor-B7OOAAie.d.ts} +85 -13
- package/dist/{editor-scope-B3L-1ALc.d.ts → editor-scope-CA6egMaK.d.ts} +5 -1
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +4 -4
- package/dist/editor.d.ts +215 -31
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +47 -12
- package/dist/export.js +2 -2
- package/dist/{font-resolver-BlQNGdvR.d.ts → font-resolver-Bm9XqTNO.d.ts} +14 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +38 -23
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-E5J4Z1Gf.d.ts → layout-shaping-Ci_BTnSU.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +174 -99
- package/dist/layout.js +1 -1
- package/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
- package/dist/{note-properties-Ds5R2_3F.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +11 -11
- package/dist/output.js +1 -1
- package/dist/{protocol-DKa4qt7F.d.ts → protocol-Cp_QzVxS.d.ts} +2 -2
- package/dist/{review-paragraph-order-Dc17w_6v.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
- package/dist/{revision-projection-Cn6rZJ7H.d.ts → revision-projection-OVusTS77.d.ts} +1 -1
- package/dist/{semantic-cell-selection-BaUR0iJ4.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
- package/dist/{semantic-interaction-CJoHLoOl.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
- package/dist/{semantic-paint-BPw_n0li.d.ts → semantic-paint-B5JcIv9c.d.ts} +16 -9
- package/dist/{semantic-record-queries-C0rJ3sB4.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
- package/dist/{semantic-records-BvN-WWst.d.ts → semantic-records-DoK0lNjS.d.ts} +254 -43
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +510 -18
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-C_S2niXW.d.ts → tree-op-types-Df4oY2u4.d.ts} +718 -252
- package/dist/{tree-package-store-CRHvMyNj.d.ts → tree-package-store-DXhX1PE-.d.ts} +8 -3
- package/dist/{tree-session-contract-D1awo_dA.d.ts → tree-session-contract-CF2625mv.d.ts} +5 -5
- package/dist/{unsupported-elements-CVos5cqe.d.ts → unsupported-elements-CUojsaCr.d.ts} +1 -1
- package/licenses/ECMA-376.md +29 -0
- package/package.json +2 -2
- package/dist/bookmark-names-DDuAra_V.d.ts +0 -37
- package/dist/chunk-25EXMBV2.cjs +0 -5
- package/dist/chunk-3IEXDEFH.cjs +0 -7
- package/dist/chunk-65XBN67F.cjs +0 -2
- package/dist/chunk-6NVZNB7O.cjs +0 -3
- package/dist/chunk-B2BEELUE.js +0 -1
- package/dist/chunk-DDFHKQFU.js +0 -30
- package/dist/chunk-E4IAO4CY.cjs +0 -2
- package/dist/chunk-FDSL5OJU.cjs +0 -30
- package/dist/chunk-FS7CMYLT.js +0 -4
- package/dist/chunk-GDS24SZN.js +0 -30
- package/dist/chunk-GIY6NT2X.js +0 -5
- package/dist/chunk-GWM3AKUD.js +0 -18
- package/dist/chunk-HDOXACHP.js +0 -2
- package/dist/chunk-IILEENID.js +0 -1
- package/dist/chunk-MNF2K7NN.cjs +0 -30
- package/dist/chunk-O324RB6R.cjs +0 -1
- package/dist/chunk-QXJKYNYZ.js +0 -1
- package/dist/chunk-RALTVLB6.js +0 -2
- package/dist/chunk-SRVKFUFI.js +0 -3
- package/dist/chunk-TELQ52LG.cjs +0 -1
- package/dist/chunk-UMMRURPE.js +0 -7
- package/dist/chunk-XJYZVGQR.cjs +0 -1
- package/dist/chunk-ZGTIE3QJ.cjs +0 -4
- package/dist/chunk-ZOZI27AW.cjs +0 -18
- package/dist/diagnostic-context-BtDUY3v2.d.ts +0 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkX34QRAUU_cjs=require('../chunk-X34QRAUU.cjs'),chunkKE6ZWRIY_cjs=require('../chunk-KE6ZWRIY.cjs');Object.defineProperty(exports,"createCollaborationDocumentPort",{enumerable:true,get:function(){return chunkX34QRAUU_cjs.b}});Object.defineProperty(exports,"mapOffsetAcrossText",{enumerable:true,get:function(){return chunkX34QRAUU_cjs.c}});Object.defineProperty(exports,"historyGroupOfJournal",{enumerable:true,get:function(){return chunkKE6ZWRIY_cjs.Qa}});Object.defineProperty(exports,"registerUndoHistoryPosition",{enumerable:true,get:function(){return chunkKE6ZWRIY_cjs.on}});Object.defineProperty(exports,"reportHistoryGroup",{enumerable:true,get:function(){return chunkKE6ZWRIY_cjs.nn}});
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* @packageDocumentation
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
18
|
-
export { r as reportHistoryGroup } from '../tree-package-store-
|
|
19
|
-
import { av as OoxmlElement, a5 as OoxmlPackage } from '../tree-op-types-
|
|
20
|
-
import '../editor-scope-
|
|
17
|
+
import { b as HistoryGroup, T as TreePackageStore, c as TreeModelChange } from '../tree-package-store-DXhX1PE-.js';
|
|
18
|
+
export { r as reportHistoryGroup } from '../tree-package-store-DXhX1PE-.js';
|
|
19
|
+
import { av as OoxmlElement, a5 as OoxmlPackage } from '../tree-op-types-Df4oY2u4.js';
|
|
20
|
+
import '../editor-scope-CA6egMaK.js';
|
|
21
21
|
|
|
22
22
|
/** Attribute name as the journal addresses it. Prefix is authored fidelity, not identity. @public */
|
|
23
23
|
interface CanonicalAttributeName {
|
|
@@ -230,6 +230,13 @@ interface CollaborationDocumentPort {
|
|
|
230
230
|
*/
|
|
231
231
|
readonly interactive?: boolean;
|
|
232
232
|
paragraphs(): readonly CollaborationParagraph[];
|
|
233
|
+
/**
|
|
234
|
+
* The body paragraph with this canonical node id, exactly as `paragraphs()` lists it (the
|
|
235
|
+
* same stable id, minted when the paragraph's own is missing, invalid, or claimed by an
|
|
236
|
+
* earlier paragraph), or null for a node that is not a listed body paragraph. O(1) on an
|
|
237
|
+
* unchanged document, so presence can ask it on every caret move; the first call after an
|
|
238
|
+
* edit walks the body once.
|
|
239
|
+
*/
|
|
233
240
|
paragraphByNodeId(nodeId: string): CollaborationParagraph | null;
|
|
234
241
|
/**
|
|
235
242
|
* The model text of the paragraph with this node id in any story, or null when the editor
|
|
@@ -243,6 +250,8 @@ interface CollaborationDocumentPort {
|
|
|
243
250
|
* store. Presence may name a header, a footer, a note, or a cell, so this lookup covers
|
|
244
251
|
* those parts too. It resolves through an index, not a scan, because a remote caret
|
|
245
252
|
* resolves two addresses per selection on every caret move.
|
|
253
|
+
* A paraId two paragraphs share resolves to the first in document order, body first, as
|
|
254
|
+
* `paragraphs()` and `paragraphByNodeId` list it.
|
|
246
255
|
*/
|
|
247
256
|
paragraphByStableId(paragraphId: string): CollaborationParagraph | null;
|
|
248
257
|
applyParagraphText(paragraphId: string, text: string, mutation: CollaborationMutation): CollaborationApplyResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as createCollaborationDocumentPort,c as mapOffsetAcrossText}from'../chunk-
|
|
1
|
+
export{b as createCollaborationDocumentPort,c as mapOffsetAcrossText}from'../chunk-2DR4TH6B.js';export{Qa as historyGroupOfJournal,on as registerUndoHistoryPosition,nn as reportHistoryGroup}from'../chunk-AU33YWEJ.js';
|
package/dist/collaboration.d.ts
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
|
-
import { S as StoryScope } from './tree-package-store-
|
|
11
|
-
import { au as TreeDocOp } from './tree-op-types-
|
|
10
|
+
import { S as StoryScope } from './tree-package-store-DXhX1PE-.js';
|
|
11
|
+
import { au as TreeDocOp } from './tree-op-types-Df4oY2u4.js';
|
|
12
12
|
import { CollaborationDocumentPort } from './collaboration/replication.js';
|
|
13
13
|
import { a as CollaborationStatus, b as CollaborationStatusSnapshot, C as CollaborationFailureCode } from './failure-6KGFrDO9.js';
|
|
14
14
|
export { c as CollaborationFailure, d as createCollaborationStatusTracker, i as isCollaborationFailureCode } from './failure-6KGFrDO9.js';
|
|
15
|
-
import './editor-scope-
|
|
15
|
+
import './editor-scope-CA6egMaK.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A peer's presence color is attacker-controlled: it arrives over awareness from whoever is in
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
* @packageDocumentation
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
16
|
-
import { D as DocxDocument, E as ExecResult, i as ContentControlType, j as DocTarget, k as RunFormatting, l as Extent, I as InsertableContentControlType, m as ContainerRef, n as ContentControlFilter, o as DocRange, p as Revision, q as DocComment, S as StyleDefinitions } from '../tree-op-types-
|
|
17
|
-
export { B as Block, r as ColorValue, s as ContentControl, t as DocAnchor, u as DocAnchorRange, v as DocLocation, w as DocumentBody, x as ExecErrorCode, H as HeaderFooterSet, y as IndentFormatting, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, G as ParagraphTabStop, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, Y as Section, Z as SectionProperties, _ as StyleDefinition, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme } from '../tree-op-types-
|
|
18
|
-
export { H as HistoryGroupOutcome } from '../editor-scope-
|
|
16
|
+
import { D as DocxDocument, E as ExecResult, i as ContentControlType, j as DocTarget, k as RunFormatting, l as Extent, I as InsertableContentControlType, m as ContainerRef, n as ContentControlFilter, o as DocRange, p as Revision, q as DocComment, S as StyleDefinitions } from '../tree-op-types-Df4oY2u4.js';
|
|
17
|
+
export { B as Block, r as ColorValue, s as ContentControl, t as DocAnchor, u as DocAnchorRange, v as DocLocation, w as DocumentBody, x as ExecErrorCode, H as HeaderFooterSet, y as IndentFormatting, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, G as ParagraphTabStop, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, Y as Section, Z as SectionProperties, _ as StyleDefinition, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme } from '../tree-op-types-Df4oY2u4.js';
|
|
18
|
+
export { H as HistoryGroupOutcome } from '../editor-scope-CA6egMaK.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* `@docx-editor.dev/core/contracts/document` — the document-level edit and query vocabulary.
|
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
|
-
export { D as DEFAULT_REVISION_MARKUP, c as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, a as ReviewDisplayMode, e as RevisionChangedLinesMark, f as RevisionDeletionMark, b as RevisionDisplayMode, g as RevisionMarkupChromeHandlers, h as RevisionMarkupColor, R as RevisionMarkupDialogSession, i as RevisionMarkupMark, j as RevisionMarkupNamedColor, k as RevisionMarkupOptions, l as RevisionMarkupStyle, m as RevisionMarkupTextStyle, r as resolveRevisionMarkup, n as revisionMarkupColor, o as revisionMarkupStyle } from '../revision-projection-
|
|
10
|
+
export { D as DEFAULT_REVISION_MARKUP, c as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, a as ReviewDisplayMode, e as RevisionChangedLinesMark, f as RevisionDeletionMark, b as RevisionDisplayMode, g as RevisionMarkupChromeHandlers, h as RevisionMarkupColor, R as RevisionMarkupDialogSession, i as RevisionMarkupMark, j as RevisionMarkupNamedColor, k as RevisionMarkupOptions, l as RevisionMarkupStyle, m as RevisionMarkupTextStyle, r as resolveRevisionMarkup, n as revisionMarkupColor, o as revisionMarkupStyle } from '../revision-projection-OVusTS77.js';
|
|
11
11
|
export { CommentMarkerStyle, DEFAULT_REVIEW_PANE, ResolvedReviewPane, ReviewPaneItemFields, ReviewPaneOpening, ReviewPaneOptions, ReviewPaneOverflow, RevisionDisplay, resolveReviewPane, reviewPaneListsItem } from './types.js';
|
|
12
|
-
export { A as AnchorHighlightAnimation, c as AnchorHighlightOptions, d as AuthoredNoteNumbering, B as BookmarkPlace, e as BookmarkStory, f as BookmarkSummary, C as CanResult, g as ClearAnchorHighlightOptions, h as CollaborationParticipantsDiagnostic, i as CollaborationStatusDiagnostic, j as CustomNodeDiagnosticEvent, D as DIAGNOSTIC_SCHEMA_VERSION, k as DiagnosticBase, l as DiagnosticFailureDetail, m as DocumentChange, n as DocumentEditingMode, o as DocumentHandle, p as DocumentOpenDiagnostic, q as DocumentOpenFailure, r as DocumentOpenFailureReason, s as DocumentSaveDiagnostic, t as DocumentShape, u as DocumentSource, v as EditRejectedDiagnostic, w as EditRejectionOrigin, x as Editor, y as EditorAnchorNavigation, z as EditorBookmarkCommands, b as EditorCommand, F as EditorCommandShape, G as EditorCommands, E as EditorDiagnostic, a as EditorDiagnosticKind, H as EditorError, I as EditorEvents, J as EditorFontError, K as EditorFormatPainterCommands, L as EditorHeaderFooterCommands, M as EditorHighlights, N as EditorHostChange, O as EditorHostDocument, P as EditorNoteCommands, Q as EditorPosition, R as EditorQueries, S as EditorQuery, T as EditorQueryResults, U as EditorReviewHits, V as EditorSelection, W as EditorSnapshot, X as FontFailedDiagnostic, Y as FormatPainterLevel, Z as FormatPainterMode, _ as FormatPainterSurfaceState, $ as FurnitureVariant, a0 as HeaderFooterSlotArgs, a1 as HeaderFooterState, a2 as HighlightHit, a3 as HighlightOptions, a4 as HighlightRange, a5 as HighlightRect, a6 as HighlightResult, a7 as HistoryDiagnosticEvent, a8 as HyperlinkInfo, a9 as ImageContext, aa as ImageCropPercent, ab as NoteKind, ac as NotePropertiesSide, ad as NotePropertiesState, ae as PageSetup, af as PerformanceDiagnostic, ag as ResolveReviewChangesOptions, ah as ResolvedNoteNumbering, ai as ReviewActivationOptions, aj as ReviewChangesAttribution, ak as
|
|
12
|
+
export { A as AnchorHighlightAnimation, c as AnchorHighlightOptions, d as AuthoredNoteNumbering, B as BookmarkPlace, e as BookmarkStory, f as BookmarkSummary, C as CanResult, g as ClearAnchorHighlightOptions, h as CollaborationParticipantsDiagnostic, i as CollaborationStatusDiagnostic, j as CustomNodeDiagnosticEvent, D as DIAGNOSTIC_SCHEMA_VERSION, k as DiagnosticBase, l as DiagnosticFailureDetail, m as DocumentChange, n as DocumentEditingMode, o as DocumentHandle, p as DocumentOpenDiagnostic, q as DocumentOpenFailure, r as DocumentOpenFailureReason, s as DocumentSaveDiagnostic, t as DocumentShape, u as DocumentSource, v as EditRejectedDiagnostic, w as EditRejectionOrigin, x as Editor, y as EditorAnchorNavigation, z as EditorBookmarkCommands, b as EditorCommand, F as EditorCommandShape, G as EditorCommands, E as EditorDiagnostic, a as EditorDiagnosticKind, H as EditorError, I as EditorEvents, J as EditorFontError, K as EditorFormatPainterCommands, L as EditorHeaderFooterCommands, M as EditorHighlights, N as EditorHostChange, O as EditorHostDocument, P as EditorNoteCommands, Q as EditorPosition, R as EditorQueries, S as EditorQuery, T as EditorQueryResults, U as EditorReviewHits, V as EditorSelection, W as EditorSnapshot, X as FontFailedDiagnostic, Y as FormatPainterLevel, Z as FormatPainterMode, _ as FormatPainterSurfaceState, $ as FurnitureVariant, a0 as HeaderFooterSlotArgs, a1 as HeaderFooterState, a2 as HighlightHit, a3 as HighlightOptions, a4 as HighlightRange, a5 as HighlightRect, a6 as HighlightResult, a7 as HistoryDiagnosticEvent, a8 as HyperlinkInfo, a9 as ImageContext, aa as ImageCropPercent, ab as NoteKind, ac as NotePropertiesSide, ad as NotePropertiesState, ae as PageSetup, af as PerformanceDiagnostic, ag as ResolveReviewChangesOptions, ah as ResolvedNoteNumbering, ai as ReviewActivationOptions, aj as ReviewChangesAttribution, ak as ReviewChangesResolvedEvent, al as ReviewCommentPlacement, am as ReviewCustomPlacement, an as ReviewItemHit, ao as ReviewItemPlacement, ap as ReviewItemPlacementBase, aq as ReviewItemQuery, ar as ReviewItemRevealEvent, as as ReviewItemRevealSource, at as ReviewRevisionPlacement, au as ReviewSkippedDiagnostic, av as ScrollPlacement, aw as ScrollToAnchorOptions, ax as SelectedImageState, ay as SessionActivity, az as SessionDiagnostic, aA as SetReviewChangesAuthorOptions, aB as TableBorderEdgeTarget, aC as TableBorderSpec, aD as TableBorderStyle, aE as TableBorderTarget, aF as TableCellVerticalAlignment, aG as TableColumnDividerResizeTarget, aH as TableColumnOccurrenceTarget, aI as TableContext, aJ as TableRightEdgeResizeTarget, aK as TableRowOccurrenceTarget, aL as TextMatch, aM as TimingSummary, aN as TrackedChangeFilterMode, aO as TrackedChangePredicate, aP as ZoomFitTarget, aQ as ZoomMode } from '../editor-B7OOAAie.js';
|
|
13
13
|
export { E as EditorFontErrorCode, F as FontConfiguration, a as FontFaceRequest, b as FontSource, c as FontSourceSubstitution } from '../editor-fonts-D_-vjuJi.js';
|
|
14
|
-
export { B as Block, r as ColorValue, C as CommentRecord, m as ContainerRef, s as ContentControl, n as ContentControlFilter, i as ContentControlType, t as DocAnchor, u as DocAnchorRange, q as DocComment, v as DocLocation, o as DocRange, j as DocTarget, w as DocumentBody, D as DocxDocument, a6 as DocxDocumentJSON, a7 as DrawingHorizontalReferenceFrame, a8 as DrawingKind, a9 as DrawingLocks, aa as DrawingPositionInput, ab as DrawingVerticalReferenceFrame, x as ExecErrorCode, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, af as ImageResourceState, ag as ImageWrapTarget, y as IndentFormatting, I as InsertableContentControlType, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, ah as ParagraphFormatCommand, G as ParagraphTabStop, ai as Point, aj as PreservedImageMime, ak as Rect, al as RenderableImageMime, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, p as Revision, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, k as RunFormatting, Y as Section, Z as SectionProperties, am as SelectionPin, _ as StyleDefinition, S as StyleDefinitions, an as SupportedImageMime, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme, ao as Unsubscribe, ap as ValidatedImageBytesHandle, aq as VectorImageMime, ar as Watermark, as as WatermarkLayout, at as WatermarkState } from '../tree-op-types-
|
|
14
|
+
export { B as Block, r as ColorValue, C as CommentRecord, m as ContainerRef, s as ContentControl, n as ContentControlFilter, i as ContentControlType, t as DocAnchor, u as DocAnchorRange, q as DocComment, v as DocLocation, o as DocRange, j as DocTarget, w as DocumentBody, D as DocxDocument, a6 as DocxDocumentJSON, a7 as DrawingHorizontalReferenceFrame, a8 as DrawingKind, a9 as DrawingLocks, aa as DrawingPositionInput, ab as DrawingVerticalReferenceFrame, x as ExecErrorCode, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, af as ImageResourceState, ag as ImageWrapTarget, y as IndentFormatting, I as InsertableContentControlType, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, ah as ParagraphFormatCommand, G as ParagraphTabStop, ai as Point, aj as PreservedImageMime, ak as Rect, al as RenderableImageMime, c as ReviewCommentItem, d as ReviewCustomItem, a as ReviewItem, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, p as Revision, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, k as RunFormatting, Y as Section, Z as SectionProperties, am as SelectionPin, _ as StyleDefinition, S as StyleDefinitions, an as SupportedImageMime, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme, ao as Unsubscribe, ap as ValidatedImageBytesHandle, aq as VectorImageMime, ar as Watermark, as as WatermarkLayout, at as WatermarkState } from '../tree-op-types-Df4oY2u4.js';
|
|
15
15
|
export { ContentControlSummary, DocEdits, DocQueries, DocQueryResults, ParagraphSummary } from './document.js';
|
|
16
|
-
export { a as EditorExecOptions, E as EditorScope, b as HistoryDiagnostic, c as HistoryGroup, d as HistoryGroupOptions, H as HistoryGroupOutcome, V as ViewScope } from '../editor-scope-
|
|
16
|
+
export { a as EditorExecOptions, E as EditorScope, b as HistoryDiagnostic, c as HistoryGroup, d as HistoryGroupOptions, H as HistoryGroupOutcome, V as ViewScope } from '../editor-scope-CA6egMaK.js';
|
|
17
17
|
export { InteractionAffinity, InteractionOutcome, InteractionOutcomeCode, SemanticIdentity, SemanticTarget } from './interaction.js';
|
|
18
|
-
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-
|
|
19
|
-
export { D as DocumentProtectionEdit, a as DocumentProtectionState } from '../document-protection-
|
|
18
|
+
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-BbA4dgEo.js';
|
|
19
|
+
export { D as DocumentProtectionEdit, a as DocumentProtectionState } from '../document-protection-BvbpSXbQ.js';
|
|
20
20
|
export { C as CollaborationFailureCode, a as CollaborationStatus } from '../failure-6KGFrDO9.js';
|
|
21
|
-
export { B as ByteSizeBucket, C as CollaborationDiagnosticCode,
|
|
22
|
-
import '../semantic-records-
|
|
23
|
-
import '../
|
|
24
|
-
import '../tree-package-store-
|
|
21
|
+
export { B as ByteSizeBucket, C as CollaborationDiagnosticCode, a as CountBucket, b as CustomNodeDiagnosticCode, D as DiagnosticCode, c as DiagnosticErrorName, d as DiagnosticExplanation, e as DocumentOpenDiagnosticCode, f as DocumentPartKind, g as DocumentSaveDiagnosticCode, E as EditDiagnosticCode, F as FailureStage, h as FontDiagnosticCode, i as FormattingChangeKind, H as HistoryDiagnosticCode, P as PerformanceDiagnosticCode, j as ReviewChangeKind, R as ReviewDiagnosticCode, k as ReviewOperation } from '../diagnostic-hints-BtCaCqQC.js';
|
|
22
|
+
import '../semantic-records-DoK0lNjS.js';
|
|
23
|
+
import '../drawing-graphic-kind-CXYGYbB3.js';
|
|
24
|
+
import '../tree-package-store-DXhX1PE-.js';
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
* @packageDocumentation
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
|
-
import { V as ViewScope } from '../editor-scope-
|
|
31
|
-
export { E as EditorScope } from '../editor-scope-
|
|
30
|
+
import { V as ViewScope } from '../editor-scope-CA6egMaK.js';
|
|
31
|
+
export { E as EditorScope } from '../editor-scope-CA6egMaK.js';
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* `@docx-editor.dev/core/contracts/interaction` — semantic addressing and interaction outcomes.
|
|
@@ -17,24 +17,24 @@
|
|
|
17
17
|
* @packageDocumentation
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
|
-
import { R as RevisionMarkupDialogSession, a as ReviewDisplayMode } from '../revision-projection-
|
|
21
|
-
export { b as RevisionDisplayMode } from '../revision-projection-
|
|
20
|
+
import { R as RevisionMarkupDialogSession, a as ReviewDisplayMode } from '../revision-projection-OVusTS77.js';
|
|
21
|
+
export { b as RevisionDisplayMode } from '../revision-projection-OVusTS77.js';
|
|
22
22
|
import { ReviewPaneOptions } from './types.js';
|
|
23
|
-
import { E as EditorDiagnostic, a as EditorDiagnosticKind } from '../editor-
|
|
24
|
-
import { R as ReviewModelInput, a as ReviewItem, O as OoxmlPart, b as ReviewRevisionItem } from '../tree-op-types-
|
|
25
|
-
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind, h as RevisionAddress } from '../tree-op-types-
|
|
23
|
+
import { E as EditorDiagnostic, a as EditorDiagnosticKind } from '../editor-B7OOAAie.js';
|
|
24
|
+
import { R as ReviewModelInput, a as ReviewItem, O as OoxmlPart, b as ReviewRevisionItem } from '../tree-op-types-Df4oY2u4.js';
|
|
25
|
+
export { C as CommentRecord, c as ReviewCommentItem, d as ReviewCustomItem, e as ReviewPosition, f as ReviewRange, g as ReviewRevisionKind, h as RevisionAddress } from '../tree-op-types-Df4oY2u4.js';
|
|
26
26
|
import { CollaborationModuleContribution } from '../collaboration.js';
|
|
27
27
|
import '../failure-6KGFrDO9.js';
|
|
28
|
-
import '../document-protection-
|
|
29
|
-
import '../editor-scope-
|
|
28
|
+
import '../document-protection-BvbpSXbQ.js';
|
|
29
|
+
import '../editor-scope-CA6egMaK.js';
|
|
30
30
|
import '../editor-fonts-D_-vjuJi.js';
|
|
31
|
-
import '../diagnostic-hints-
|
|
31
|
+
import '../diagnostic-hints-BtCaCqQC.js';
|
|
32
32
|
import './document.js';
|
|
33
33
|
import './interaction.js';
|
|
34
|
-
import '../semantic-interaction-
|
|
35
|
-
import '../semantic-records-
|
|
36
|
-
import '../
|
|
37
|
-
import '../tree-package-store-
|
|
34
|
+
import '../semantic-interaction-BbA4dgEo.js';
|
|
35
|
+
import '../semantic-records-DoK0lNjS.js';
|
|
36
|
+
import '../drawing-graphic-kind-CXYGYbB3.js';
|
|
37
|
+
import '../tree-package-store-DXhX1PE-.js';
|
|
38
38
|
import '../collaboration/replication.js';
|
|
39
39
|
|
|
40
40
|
/**
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
|
-
export { B as Block, r as ColorValue, m as ContainerRef, s as ContentControl, n as ContentControlFilter, i as ContentControlType, t as DocAnchor, u as DocAnchorRange, q as DocComment, v as DocLocation, o as DocRange, j as DocTarget, w as DocumentBody, D as DocxDocument, a6 as DocxDocumentJSON, x as ExecErrorCode, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, y as IndentFormatting, I as InsertableContentControlType, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, ah as ParagraphFormatCommand, G as ParagraphTabStop, ai as Point, ak as Rect, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, p as Revision, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, k as RunFormatting, Y as Section, Z as SectionProperties, am as SelectionPin, _ as StyleDefinition, S as StyleDefinitions, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme, ao as Unsubscribe, ar as Watermark, as as WatermarkLayout, at as WatermarkState } from '../tree-op-types-
|
|
10
|
+
export { B as Block, r as ColorValue, m as ContainerRef, s as ContentControl, n as ContentControlFilter, i as ContentControlType, t as DocAnchor, u as DocAnchorRange, q as DocComment, v as DocLocation, o as DocRange, j as DocTarget, w as DocumentBody, D as DocxDocument, a6 as DocxDocumentJSON, x as ExecErrorCode, E as ExecResult, l as Extent, ac as FontDefinition, H as HeaderFooterSet, y as IndentFormatting, I as InsertableContentControlType, N as NumberingRef, P as PageMargins, z as Paragraph, A as ParagraphDisagreements, F as ParagraphFlags, ah as ParagraphFormatCommand, G as ParagraphTabStop, ai as Point, ak as Rect, e as ReviewPosition, f as ReviewRange, b as ReviewRevisionItem, g as ReviewRevisionKind, p as Revision, h as RevisionAddress, J as RevisionAuthorEntry, K as RevisionAuthorResult, L as RevisionAuthorSkipReason, M as RevisionBatchEntry, Q as RevisionBatchResult, T as RevisionBatchSkipDetail, U as RevisionBatchSkipReason, V as RevisionSiteRefusal, W as RevisionType, X as Run, k as RunFormatting, Y as Section, Z as SectionProperties, am as SelectionPin, _ as StyleDefinition, S as StyleDefinitions, $ as Table, a0 as TableCell, a1 as TableRow, a2 as Theme, a3 as ThemeColorScheme, ao as Unsubscribe, ar as Watermark, as as WatermarkLayout, at as WatermarkState } from '../tree-op-types-Df4oY2u4.js';
|
|
11
11
|
export { C as CollaborationFailureCode, a as CollaborationStatus } from '../failure-6KGFrDO9.js';
|
|
12
|
-
export { D as DEFAULT_REVISION_MARKUP, c as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, e as RevisionChangedLinesMark, f as RevisionDeletionMark, b as RevisionDisplayMode, g as RevisionMarkupChromeHandlers, h as RevisionMarkupColor, R as RevisionMarkupDialogSession, i as RevisionMarkupMark, j as RevisionMarkupNamedColor, k as RevisionMarkupOptions, l as RevisionMarkupStyle, m as RevisionMarkupTextStyle, r as resolveRevisionMarkup, n as revisionMarkupColor, o as revisionMarkupStyle } from '../revision-projection-
|
|
13
|
-
export { D as DocumentProtectionEdit, a as DocumentProtectionState } from '../document-protection-
|
|
14
|
-
export { H as HistoryGroupOutcome } from '../editor-scope-
|
|
12
|
+
export { D as DEFAULT_REVISION_MARKUP, c as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, e as RevisionChangedLinesMark, f as RevisionDeletionMark, b as RevisionDisplayMode, g as RevisionMarkupChromeHandlers, h as RevisionMarkupColor, R as RevisionMarkupDialogSession, i as RevisionMarkupMark, j as RevisionMarkupNamedColor, k as RevisionMarkupOptions, l as RevisionMarkupStyle, m as RevisionMarkupTextStyle, r as resolveRevisionMarkup, n as revisionMarkupColor, o as revisionMarkupStyle } from '../revision-projection-OVusTS77.js';
|
|
13
|
+
export { D as DocumentProtectionEdit, a as DocumentProtectionState } from '../document-protection-BvbpSXbQ.js';
|
|
14
|
+
export { H as HistoryGroupOutcome } from '../editor-scope-CA6egMaK.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* When the review pane opens by itself.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a5 as OoxmlPackage, O as OoxmlPart, a4 as OoxmlNode,
|
|
2
|
-
import {
|
|
1
|
+
import { a5 as OoxmlPackage, O as OoxmlPart, a4 as OoxmlNode, aE as RevisionAttributionInput, aF as TreeOpRejection } from './tree-op-types-Df4oY2u4.js';
|
|
2
|
+
import { c as TreeModelChange, d as TreeDocumentStore } from './tree-package-store-DXhX1PE-.js';
|
|
3
3
|
|
|
4
4
|
/** Which of a family's four faces an embedded font relationship supplies. */
|
|
5
5
|
type FontStyleKey = 'regular' | 'bold' | 'italic' | 'boldItalic';
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { R as ReviewDiagnosticCode, B as ByteSizeBucket, a as CountBucket, e as DocumentOpenDiagnosticCode, E as EditDiagnosticCode, c as DiagnosticErrorName, f as DocumentPartKind } from './diagnostic-hints-BtCaCqQC.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The public code for a refused open. `too-large` is the one reason two layers share: the
|
|
5
|
+
* archive reports it WITH the limit it crossed, a single XML part reports it without one.
|
|
6
|
+
*
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
declare function openDiagnosticCode(reason: string, limit?: string): DocumentOpenDiagnosticCode;
|
|
10
|
+
/**
|
|
11
|
+
* The public code for a store or host refusal reason, or `null` for a reason this table does
|
|
12
|
+
* not know (a sentence, a binding reason). `unsupported-revision:<kind>` counts as
|
|
13
|
+
* `unsupported-revision`, except `unsupported-revision:foreign-insertion`, which has its own
|
|
14
|
+
* code.
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
declare function storeEditDiagnosticCode(reason: string): EditDiagnosticCode | null;
|
|
19
|
+
/**
|
|
20
|
+
* The public code for a skipped tracked change, such as an entry of `reviewChangesResolved`'s
|
|
21
|
+
* `skipped` list: the detail's own code when it has one (`review.locked-content`,
|
|
22
|
+
* `review.bound-content`), else the reason's.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* editor.on('reviewChangesResolved', ({ skipped }) => {
|
|
27
|
+
* for (const skip of skipped) console.warn(reviewCodeOfSkip(skip));
|
|
28
|
+
* });
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
declare function reviewCodeOfSkip(skip: {
|
|
34
|
+
readonly reason: string;
|
|
35
|
+
readonly detail?: string;
|
|
36
|
+
}): ReviewDiagnosticCode | null;
|
|
37
|
+
/** The public code for a skipped tracked change, or null for a reason with no public code. */
|
|
38
|
+
declare function reviewDiagnosticCode(reason: string): ReviewDiagnosticCode | null;
|
|
39
|
+
/** The power-of-two bucket of a byte size. */
|
|
40
|
+
declare function byteSizeBucket(bytes: number): ByteSizeBucket;
|
|
41
|
+
/** The order-of-magnitude bucket of a count. */
|
|
42
|
+
declare function countBucket(count: number): CountBucket;
|
|
43
|
+
/** A diagnostic without the fields the emitter adds. Distributes over the union. */
|
|
44
|
+
type DiagnosticPayload<T> = T extends unknown ? Omit<T, 'schemaVersion' | 'editorSessionId' | 'time'> : never;
|
|
45
|
+
/** One delivery path for one editor or runtime instance. */
|
|
46
|
+
interface DiagnosticEmitter<E> {
|
|
47
|
+
/** Random for this instance and never stored. */
|
|
48
|
+
readonly editorSessionId: string;
|
|
49
|
+
/** Stamp the payload and hand it to every listener. A listener that throws is ignored. */
|
|
50
|
+
deliver(payload: DiagnosticPayload<E>): void;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* A delivery path over `listeners`, read at each delivery so a later listener is heard. Generic
|
|
54
|
+
* over the event union, which the editor contracts own: this lane never names them.
|
|
55
|
+
*/
|
|
56
|
+
declare function createDiagnosticEmitter<E>(listeners: () => Iterable<(event: E) => unknown>, now?: () => number): DiagnosticEmitter<E>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Every engine reason a diagnostic can carry as its `cause`. Causes are the engine's own
|
|
60
|
+
* reasons and can change between engine versions; match on the public `code`, and read the
|
|
61
|
+
* `cause` when you report or fix a failure.
|
|
62
|
+
*
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
declare function diagnosticCauses(): readonly string[];
|
|
66
|
+
/**
|
|
67
|
+
* The engine reason token in a refusal reason, or undefined when the reason is not one the
|
|
68
|
+
* engine knows, such as a sentence. Only the token before a colon counts; the detail after it
|
|
69
|
+
* can name parts of the file and is never returned. A full reason such as
|
|
70
|
+
* `unsupported-revision:foreign-insertion` reports its token; its public code names the rule.
|
|
71
|
+
*/
|
|
72
|
+
declare function diagnosticCause(reason: string | undefined): string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* The review code and structure in a refused decision's reason, such as
|
|
75
|
+
* `incomplete-group:paired-change`, or null when the reason names no review skip. The
|
|
76
|
+
* structure is reported only when it is one of the engine's own skip details.
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
declare function reviewSkipOfReason(reason: string | undefined): {
|
|
81
|
+
readonly code: ReviewDiagnosticCode;
|
|
82
|
+
readonly cause?: string;
|
|
83
|
+
} | null;
|
|
84
|
+
/** The cause of a failure the engine did not name: an exception. */
|
|
85
|
+
declare function exceptionCause(): string;
|
|
86
|
+
/**
|
|
87
|
+
* The class of an exception, never its message. A subclass with its own name, which a host or a
|
|
88
|
+
* file could shape, reports `'other'`.
|
|
89
|
+
*/
|
|
90
|
+
declare function diagnosticErrorName(error: unknown): DiagnosticErrorName;
|
|
91
|
+
/**
|
|
92
|
+
* The role of the part a failure names, from the part name at the start of a refusal detail.
|
|
93
|
+
* The name itself never leaves this function. Undefined when there is no detail.
|
|
94
|
+
*/
|
|
95
|
+
declare function documentPartKind(detail: string | undefined): DocumentPartKind | undefined;
|
|
96
|
+
|
|
97
|
+
export { byteSizeBucket as b, countBucket as c, diagnosticCauses as d, createDiagnosticEmitter as e, diagnosticCause as f, diagnosticErrorName as g, documentPartKind as h, exceptionCause as i, reviewDiagnosticCode as j, reviewSkipOfReason as k, openDiagnosticCode as o, reviewCodeOfSkip as r, storeEditDiagnosticCode as s };
|
|
98
|
+
export type { DiagnosticEmitter as D, DiagnosticPayload as a };
|
|
@@ -18,7 +18,7 @@ type DocumentSaveDiagnosticCode = 'save.no-document' | 'save.document-changed' |
|
|
|
18
18
|
/** Why an edit, a command or a tracked change was refused. @public */
|
|
19
19
|
type EditDiagnosticCode = 'edit.read-only' | 'edit.protected-content' | 'edit.suggesting-needs-author' | 'edit.review-module-required' | 'edit.tracked-drawing-delete-unsupported' | 'edit.tracked-structure-unsupported' | 'edit.tracked-operation-unsupported' | 'edit.tracking-mode-unsupported' | 'edit.tracking-author-required' | 'edit.comment-author-required' | 'edit.tracking-unsupported-host' | 'edit.revision-unsupported' | 'edit.tracking-required' | 'edit.tracked-image-replace-unsupported' | 'edit.tracked-deleted-text-only' | 'edit.tracked-foreign-revision-unsupported' | 'edit.tracked-own-pending-change' | 'edit.picture-selected' | 'edit.cross-structure-join' | 'edit.indivisible-content' | 'edit.field-structure' | 'edit.field-unsupported' | 'edit.field-result-unsupported' | 'edit.ooxml-unsupported' | 'edit.section-mark' | 'edit.table-structure-unsupported' | 'edit.table-merge-not-rectangle' | 'edit.table-split-unsupported' | 'edit.table-insert-refused' | 'edit.table-of-contents-refused' | 'edit.unsupported-content' | 'edit.operation-unsupported' | 'edit.unsupported-story' | 'edit.unmapped-change' | 'edit.stale-target' | 'edit.invalid-argument' | 'edit.resource-limit' | 'edit.refresh-in-progress' | 'edit.preview-active' | 'edit.preview-unsupported' | 'edit.preview-composing' | 'edit.preview-diverged' | 'edit.collaboration-not-ready' | 'edit.collaboration-text-limit' | 'edit.internal-invariant' | 'edit.refused';
|
|
20
20
|
/** Why accepting, rejecting or re-authoring a tracked change skipped an item. @public */
|
|
21
|
-
type ReviewDiagnosticCode = 'review.revision-unsupported' | 'review.incomplete-group' | 'review.retained-structure' | 'review.stale-revision';
|
|
21
|
+
type ReviewDiagnosticCode = 'review.revision-unsupported' | 'review.incomplete-group' | 'review.retained-structure' | 'review.locked-content' | 'review.bound-content' | 'review.stale-revision';
|
|
22
22
|
/** Why a font did not load. The family name is never reported. @public */
|
|
23
23
|
type FontDiagnosticCode = 'font.shaper-unavailable' | 'font.load-failed' | 'font.missing' | 'font.integrity-mismatch' | 'font.malformed' | 'font.size-limit' | 'font.unsupported-face';
|
|
24
24
|
/**
|
|
@@ -117,4 +117,4 @@ declare function explainDiagnostic(code: DiagnosticCode): DiagnosticExplanation;
|
|
|
117
117
|
declare function diagnosticCodes(): readonly DiagnosticCode[];
|
|
118
118
|
|
|
119
119
|
export { diagnosticCodes as l, explainDiagnostic as m };
|
|
120
|
-
export type { ByteSizeBucket as B, CollaborationDiagnosticCode as C,
|
|
120
|
+
export type { ByteSizeBucket as B, CollaborationDiagnosticCode as C, DiagnosticCode as D, EditDiagnosticCode as E, FailureStage as F, HistoryDiagnosticCode as H, PerformanceDiagnosticCode as P, ReviewDiagnosticCode as R, CountBucket as a, CustomNodeDiagnosticCode as b, DiagnosticErrorName as c, DiagnosticExplanation as d, DocumentOpenDiagnosticCode as e, DocumentPartKind as f, DocumentSaveDiagnosticCode as g, FontDiagnosticCode as h, FormattingChangeKind as i, ReviewChangeKind as j, ReviewOperation as k };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a4 as OoxmlNode } from './tree-op-types-
|
|
1
|
+
import { a4 as OoxmlNode } from './tree-op-types-Df4oY2u4.js';
|
|
2
2
|
|
|
3
3
|
/** `ST_DocProtect`: the restriction a document asks for. `none` also stands for "no element". */
|
|
4
4
|
type DocumentProtectionEdit = 'none' | 'readOnly' | 'comments' | 'trackedChanges' | 'forms';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { aG as OoxmlNodeId, ax as OoxmlGenericElementNode, a4 as OoxmlNode, a5 as OoxmlPackage, O as OoxmlPart, av as OoxmlElement, aA as OoxmlPackageRejection } from './tree-op-types-Df4oY2u4.js';
|
|
2
|
+
import { e as HeaderFooterParts, f as HeaderFooterSectionResolution, T as TreePackageStore } from './tree-package-store-DXhX1PE-.js';
|
|
3
3
|
|
|
4
4
|
/** Office Math Markup Language namespace. */
|
|
5
5
|
declare const OFFICE_MATH_NAMESPACE_URI = "http://schemas.openxmlformats.org/officeDocument/2006/math";
|
|
@@ -250,5 +250,75 @@ declare function openHeadlessDocument(bytes: Uint8Array): OpenHeadlessDocumentRe
|
|
|
250
250
|
/** Internal live read view over the canonical store, preserving node identities for field pagination. */
|
|
251
251
|
declare function headlessViewOfStore(store: TreePackageStore): HeadlessDocumentView;
|
|
252
252
|
|
|
253
|
-
|
|
254
|
-
|
|
253
|
+
/**
|
|
254
|
+
* A drawing feature that the editor does not show as authored. Each code means:
|
|
255
|
+
*
|
|
256
|
+
* - `unsupported-effect`: the editor ignores an explicit effect, such as `a:blur`, `a:duotone`,
|
|
257
|
+
* or `a14:imgProps`. The drawing renders without it.
|
|
258
|
+
* - `renderer-required`: an optional effect, such as `a:glow`, needs the drawing module:
|
|
259
|
+
* `drawingModule()` or `installDrawing()` from `@docx-editor.dev/pro/drawing`. It appears
|
|
260
|
+
* only while that module is not installed in the current process, for occurrences and
|
|
261
|
+
* reports alike.
|
|
262
|
+
* - `unverified-3d`: the drawing has 3-D properties (`a:scene3d`, `a:sp3d`), which render flat.
|
|
263
|
+
* - `saved-fallback`: the editor shows the saved `mc:Fallback` content, not the main content.
|
|
264
|
+
* - `unplaced-drawing`: the drawing has no layout position, so the editor does not show it.
|
|
265
|
+
* - `inspection-limit`: a scan budget stopped the check, so the result is incomplete.
|
|
266
|
+
* - `projection-diagnostic`: the source is malformed or partly unusable. `detail` holds the
|
|
267
|
+
* diagnostic code, such as `invalid-geometry` or `resource-refused`.
|
|
268
|
+
*
|
|
269
|
+
* The check reads the drawing's own XML. It does not read chart or diagram parts, inherited
|
|
270
|
+
* theme effects, or image bytes, so an empty list does not prove full fidelity.
|
|
271
|
+
*
|
|
272
|
+
* @public
|
|
273
|
+
*/
|
|
274
|
+
interface DrawingSupportIssue {
|
|
275
|
+
/** The kind of limitation. The list in this type's description explains each code. */
|
|
276
|
+
readonly code: 'unsupported-effect' | 'renderer-required' | 'unverified-3d' | 'saved-fallback' | 'unplaced-drawing' | 'inspection-limit' | 'projection-diagnostic';
|
|
277
|
+
/**
|
|
278
|
+
* The source node with the feature: in the inspected package for a report, or in the
|
|
279
|
+
* editor's current document for an occurrence's `drawingIssues`.
|
|
280
|
+
*/
|
|
281
|
+
readonly nodeId: string;
|
|
282
|
+
/** The namespace of the node with the feature. */
|
|
283
|
+
readonly namespaceUri: string;
|
|
284
|
+
/** The local name of the node with the feature, such as `blur`. */
|
|
285
|
+
readonly localName: string;
|
|
286
|
+
/** The feature, such as `a:blur` or `mc:Fallback`, or the projection diagnostic code. */
|
|
287
|
+
readonly detail: string;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* How completely the editor shows a drawing:
|
|
291
|
+
*
|
|
292
|
+
* - `native`: the editor renders the drawing and found no unsupported feature in its source.
|
|
293
|
+
* - `partial`: the editor renders the drawing, but without some features, or it shows a saved
|
|
294
|
+
* fallback. The issue list names the features.
|
|
295
|
+
* - `unrendered`: the editor shows a placeholder, or the drawing has no layout position.
|
|
296
|
+
*
|
|
297
|
+
* A drawing that the document itself hides is `native` or `partial`: the editor shows it as
|
|
298
|
+
* authored, which is not at all.
|
|
299
|
+
*
|
|
300
|
+
* Charts and SmartArt diagrams that the editor draws report `native`, because the check does
|
|
301
|
+
* not read their chart or diagram parts. Inherited theme effects and image bytes are not
|
|
302
|
+
* checked either.
|
|
303
|
+
*
|
|
304
|
+
* @public
|
|
305
|
+
*/
|
|
306
|
+
type DrawingSupport = 'native' | 'partial' | 'unrendered';
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* The kind of graphic a drawing holds. Note: `textbox` names every DrawingML shape, with or
|
|
310
|
+
* without text, and `shape` names only legacy VML drawings.
|
|
311
|
+
*
|
|
312
|
+
* Read from its source: `picture`, `chart` (a chart),
|
|
313
|
+
* `diagram` (SmartArt), `textbox` (a DrawingML shape, with or without text), `group` (a shape
|
|
314
|
+
* group), `canvas` (a drawing canvas), `shape` (a legacy VML drawing, such as WordArt), or
|
|
315
|
+
* `graphic` (any other graphic). It does not say whether the engine renders the graphic.
|
|
316
|
+
* The names match `placeholderGraphicKind`, which adds no `picture` and is set only for
|
|
317
|
+
* placeholders.
|
|
318
|
+
*
|
|
319
|
+
* @public
|
|
320
|
+
*/
|
|
321
|
+
type DrawingGraphicKind = 'picture' | 'chart' | 'diagram' | 'shape' | 'group' | 'textbox' | 'canvas' | 'graphic';
|
|
322
|
+
|
|
323
|
+
export { DEFAULT_OMML_LIMITS as e, OFFICE_MATH_NAMESPACE_URI as k, authorableHyperlinkTarget as n, ensureHyperlinkRelationship as o, equationExpressionToLinearMath as p, headlessViewOfStore as q, linearMathToOmml as r, openHeadlessDocument as s, parseLinearMath as t, projectOmmlEquation as u, relationshipTargetIn as v };
|
|
324
|
+
export type { DrawingGraphicKind as D, EnsuredHyperlinkRelationship as E, HeadlessDocumentView as H, LinearMathOmmlResult as L, OmmlEquationProjection as O, DrawingSupport as a, DrawingSupportIssue as b, DocumentProperties as c, HeadlessDocumentRejection as d, EquationControlSource as f, EquationExpression as g, HeadlessThemeFonts as h, LinearMathParseResult as i, LinearMathRejection as j, OmmlLimits as l, OpenHeadlessDocumentResult as m };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { a5 as OoxmlPackage } from './tree-op-types-Df4oY2u4.js';
|
|
2
|
+
|
|
3
|
+
/** The longest name a bookmark is written with. */
|
|
4
|
+
declare const MAX_AUTHORED_BOOKMARK_NAME_LENGTH = 40;
|
|
5
|
+
/**
|
|
6
|
+
* Why a name cannot be written, or null when it can.
|
|
7
|
+
*
|
|
8
|
+
* - `empty`: no characters.
|
|
9
|
+
* - `tooLong`: more than {@link MAX_AUTHORED_BOOKMARK_NAME_LENGTH} characters.
|
|
10
|
+
* - `invalidStart`: the first character is not a letter or an underscore.
|
|
11
|
+
* - `invalidCharacter`: a later character is not a letter, a digit or an underscore.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
type BookmarkNameProblem = 'empty' | 'tooLong' | 'invalidStart' | 'invalidCharacter';
|
|
16
|
+
/**
|
|
17
|
+
* Check a name before it is written. Measured in code points, so a letter outside the Basic
|
|
18
|
+
* Multilingual Plane counts once.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
declare function bookmarkNameProblem(name: string): BookmarkNameProblem | null;
|
|
23
|
+
/**
|
|
24
|
+
* Whether a bookmark is hidden: its name starts with an underscore. Hidden bookmarks are the
|
|
25
|
+
* ones applications write for themselves, such as the targets of a table of contents.
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
declare function isHiddenBookmarkName(name: string): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* The key two names are compared by. Names are case-insensitive, so `Intro` and `intro`
|
|
32
|
+
* share a key.
|
|
33
|
+
*
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
declare function bookmarkNameKey(name: string): string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Where a drawing is. Pass an `inspectDrawingSupport` entry or an editor occurrence as is.
|
|
40
|
+
*
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
interface DrawingPreviewTarget {
|
|
44
|
+
/** The part that holds the drawing, such as `/word/document.xml`. */
|
|
45
|
+
readonly ownerPartName: string;
|
|
46
|
+
/**
|
|
47
|
+
* The drawing, its compatibility wrapper, or any node inside them, in the package you pass.
|
|
48
|
+
* Every node of one drawing gives the same package.
|
|
49
|
+
*/
|
|
50
|
+
readonly nodeId: string;
|
|
51
|
+
}
|
|
52
|
+
/** Caps for {@link createDrawingPreviewPackage}. @public */
|
|
53
|
+
interface DrawingPreviewPackageLimits {
|
|
54
|
+
/** Maximum number of copied parts. Defaults to 64. */
|
|
55
|
+
readonly maxParts?: number;
|
|
56
|
+
/** Maximum number of copied bytes. Defaults to 64 MiB. */
|
|
57
|
+
readonly maxBytes?: number;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A preview package, or why it could not be built.
|
|
61
|
+
*
|
|
62
|
+
* - `drawing-not-found`: the target is not a drawing in the package.
|
|
63
|
+
* - `too-many-parts` or `too-large`: the drawing needs more than the limits allow.
|
|
64
|
+
*
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
type DrawingPreviewPackageResult = {
|
|
68
|
+
readonly ok: true;
|
|
69
|
+
/**
|
|
70
|
+
* DOCX bytes with one paragraph that holds the drawing. The same drawing and document
|
|
71
|
+
* parts always give the same bytes, so a hash of them works as a cache key.
|
|
72
|
+
*/
|
|
73
|
+
readonly docx: Uint8Array;
|
|
74
|
+
/**
|
|
75
|
+
* True when the page has the drawing's size, so the first page is the preview image.
|
|
76
|
+
* False when the size is unknown, such as a legacy VML drawing without a width and height
|
|
77
|
+
* in its style. Then the page has the document's page size and no margins, and the
|
|
78
|
+
* drawing starts at its top left corner. With the occurrence's `element.bounds`, crop
|
|
79
|
+
* from (0, 0) to `bounds.width * dpi / 72` by `bounds.height * dpi / 72` pixels;
|
|
80
|
+
* `bounds.x` and `bounds.y` are page positions, not crop offsets. Send this flag and the
|
|
81
|
+
* `bounds` size to your renderer with the bytes.
|
|
82
|
+
* Without `bounds`, such as for a report entry, trim the white space instead.
|
|
83
|
+
*/
|
|
84
|
+
readonly pageFitsDrawing: boolean;
|
|
85
|
+
/** The package parts copied from the source document, for logging and caching. */
|
|
86
|
+
readonly copiedParts: readonly string[];
|
|
87
|
+
} | {
|
|
88
|
+
readonly ok: false;
|
|
89
|
+
readonly reason: 'drawing-not-found' | 'too-many-parts' | 'too-large';
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Build a small DOCX that holds one drawing for an external renderer.
|
|
93
|
+
*
|
|
94
|
+
* Contents: one paragraph with the drawing, plus the chart and diagram parts, images, styles,
|
|
95
|
+
* theme, settings, and fonts it needs. Relationships to external targets, embedded objects,
|
|
96
|
+
* macros, and templates are dropped, so the package never points outside itself.
|
|
97
|
+
*
|
|
98
|
+
* Page: the first page is the preview. It has the drawing's size, including its effect
|
|
99
|
+
* extent, so it matches the occurrence's `bounds`, and it has no margins. A floating drawing
|
|
100
|
+
* is placed on the line, and a legacy VML drawing takes its size from its style. When the
|
|
101
|
+
* size is unknown, `pageFitsDrawing` is false; see that field for how to crop.
|
|
102
|
+
*
|
|
103
|
+
* Renderer: use one other than this library, whose own exporters show the same placeholder.
|
|
104
|
+
* The bytes come from the document, so run the renderer in a sandbox without network access,
|
|
105
|
+
* with time and memory limits.
|
|
106
|
+
*
|
|
107
|
+
* Pass the package that the target comes from: an `inspectDrawingSupport` entry with the
|
|
108
|
+
* parsed package it inspected, or an editor occurrence with the editor's current package.
|
|
109
|
+
*
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
declare function createDrawingPreviewPackage(pkg: OoxmlPackage, target: DrawingPreviewTarget, limits?: DrawingPreviewPackageLimits): DrawingPreviewPackageResult;
|
|
113
|
+
|
|
114
|
+
export { MAX_AUTHORED_BOOKMARK_NAME_LENGTH as M, bookmarkNameKey as c, bookmarkNameProblem as d, createDrawingPreviewPackage as e, isHiddenBookmarkName as i };
|
|
115
|
+
export type { BookmarkNameProblem as B, DrawingPreviewPackageLimits as D, DrawingPreviewPackageResult as a, DrawingPreviewTarget as b };
|