@docx-editor.dev/core 2.31.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 +25 -1
- package/THIRD_PARTY_NOTICES.md +1 -0
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +16 -54
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +17 -15
- package/dist/binding.js +1 -1
- package/dist/{chrome-print-BWvaVEhD.d.ts → chrome-print-CrPI9ZQc.d.ts} +128 -38
- package/dist/chunk-23MKR33J.js +4 -0
- package/dist/chunk-2CWQY27B.cjs +1 -0
- package/dist/chunk-2DEY5NUC.cjs +32 -0
- package/dist/chunk-2DR4TH6B.js +1 -0
- package/dist/chunk-2F2UEAE2.js +2 -0
- 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-DYUVJNDD.cjs +1 -0
- 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-L3YXJDPX.js +1 -0
- package/dist/chunk-LI42N7OW.cjs +4 -0
- package/dist/chunk-PLKDS4JT.js +1 -0
- package/dist/chunk-PXMTQ73F.cjs +2 -0
- package/dist/chunk-R4R3AAE4.js +1 -0
- package/dist/chunk-RFUNFTGV.cjs +1 -0
- package/dist/chunk-SVM6PGMS.js +3 -0
- package/dist/chunk-SZURLHR3.cjs +3 -0
- package/dist/chunk-UYCGCVZ2.cjs +1 -0
- package/dist/chunk-WN7ICTA5.js +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 +29 -4
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.cjs +1 -1
- package/dist/collaboration.d.ts +5 -5
- package/dist/collaboration.js +1 -1
- package/dist/contracts/document.d.ts +3 -3
- package/dist/contracts/editor.d.ts +13 -9
- package/dist/contracts/interaction.d.ts +2 -2
- package/dist/contracts/modules.d.ts +15 -12
- package/dist/contracts/types.d.ts +135 -2
- package/dist/{custom-node-writes-TeUvMP13.d.ts → custom-node-writes-AqY5KpVx.d.ts} +7 -2
- package/dist/diagnostic-context-CuzhOX0g.d.ts +98 -0
- package/dist/{diagnostic-hints-C9JlLz1L.d.ts → diagnostic-hints-BtCaCqQC.d.ts} +4 -4
- package/dist/{document-protection-C8x3P2J6.d.ts → document-protection-BvbpSXbQ.d.ts} +1 -1
- package/dist/drawing-graphic-kind-CXYGYbB3.d.ts +324 -0
- package/dist/drawing-preview-package-B9lSLRg4.d.ts +115 -0
- package/dist/{editor-B2ShlO23.d.ts → editor-B7OOAAie.d.ts} +181 -244
- package/dist/editor-fonts-D_-vjuJi.d.ts +53 -0
- package/dist/{editor-scope-C7ke1KJG.d.ts → editor-scope-CA6egMaK.d.ts} +6 -2
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +4 -4
- package/dist/editor.d.ts +259 -31
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +48 -19
- package/dist/export.js +2 -2
- package/dist/{failure-NS2lsya4.d.ts → failure-6KGFrDO9.d.ts} +1 -1
- package/dist/{font-resolver-CWh40DYp.d.ts → font-resolver-Bm9XqTNO.d.ts} +15 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +43 -26
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-CWS3j0Xr.d.ts → layout-shaping-Ci_BTnSU.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +181 -99
- package/dist/layout.js +1 -1
- package/dist/metafile-drawing-DtMFyMKq.d.ts +107 -0
- package/dist/{note-properties-QsKh24sM.d.ts → note-properties-DCIJUKIy.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +11 -7
- package/dist/output.js +1 -1
- package/dist/{protocol-COZJUKUY.d.ts → protocol-Cp_QzVxS.d.ts} +75 -5
- package/dist/{review-paragraph-order-C_QbCKcH.d.ts → review-paragraph-order-BJQ43_r0.d.ts} +1 -1
- package/dist/revision-projection-OVusTS77.d.ts +258 -0
- package/dist/{semantic-cell-selection-Cub9FDa8.d.ts → semantic-cell-selection-CoI5hHBm.d.ts} +2 -2
- package/dist/{semantic-interaction-dApRIYpt.d.ts → semantic-interaction-BbA4dgEo.d.ts} +1 -1
- package/dist/{semantic-paint-DLzA8sjP.d.ts → semantic-paint-B5JcIv9c.d.ts} +19 -9
- package/dist/{semantic-record-queries-3yp9o11g.d.ts → semantic-record-queries-DnO8J5_j.d.ts} +1 -1
- package/dist/{semantic-records-B-akgRch.d.ts → semantic-records-DoK0lNjS.d.ts} +439 -418
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +511 -20
- package/dist/store.js +1 -1
- package/dist/{types-barrel-CkF2JbU4.d.ts → tree-op-types-Df4oY2u4.d.ts} +1081 -524
- package/dist/{tree-package-store-B8l8DX3Z.d.ts → tree-package-store-DXhX1PE-.d.ts} +8 -3
- package/dist/{tree-session-contract-DeLRqohz.d.ts → tree-session-contract-CF2625mv.d.ts} +5 -5
- package/dist/unsupported-elements-CUojsaCr.d.ts +23 -0
- package/docs/accept-reject-without-scrolling.md +95 -0
- package/docs/comment-on-found-text.md +72 -0
- package/docs/custom-review-cards.md +178 -0
- package/docs/highlight-ranges.md +48 -0
- package/docs/index.md +36 -0
- package/docs/propose-rewrite.md +247 -0
- package/docs/tracked-replacement.md +68 -0
- package/licenses/ECMA-376.md +29 -0
- package/package.json +3 -2
- package/dist/bookmark-names-DDuAra_V.d.ts +0 -37
- package/dist/chunk-243W4WW2.cjs +0 -2
- package/dist/chunk-2E2RPEKX.js +0 -1
- package/dist/chunk-4S24UOPG.js +0 -30
- package/dist/chunk-5JPIEN54.cjs +0 -3
- package/dist/chunk-5SO5QDMV.cjs +0 -2
- package/dist/chunk-6IDOVU6L.cjs +0 -1
- package/dist/chunk-6JIJOZDW.js +0 -1
- package/dist/chunk-BTQKU64Q.cjs +0 -1
- package/dist/chunk-DBOOTED4.cjs +0 -30
- package/dist/chunk-EOTAXOJY.cjs +0 -5
- package/dist/chunk-FDAKJ2SJ.cjs +0 -30
- package/dist/chunk-FNNOJNGY.js +0 -3
- package/dist/chunk-FT33HRZP.js +0 -5
- package/dist/chunk-HC6YNKUI.cjs +0 -1
- package/dist/chunk-HZ66UCIS.js +0 -2
- package/dist/chunk-IBRBNT37.cjs +0 -1
- package/dist/chunk-IVIN7X43.js +0 -30
- package/dist/chunk-LZY6B6IV.js +0 -4
- package/dist/chunk-MOYYRVFV.cjs +0 -2
- package/dist/chunk-N6B3BXCL.js +0 -1
- package/dist/chunk-Q5K2GGNG.js +0 -2
- package/dist/chunk-R2XINWVE.js +0 -7
- package/dist/chunk-SUEXVBPR.js +0 -1
- package/dist/chunk-T2QQHG5C.js +0 -18
- package/dist/chunk-VWIJKH4A.js +0 -1
- package/dist/chunk-WO4V6PNS.cjs +0 -18
- package/dist/chunk-XMJKFURD.cjs +0 -4
- package/dist/chunk-XSTGE3NI.cjs +0 -1
- package/dist/chunk-YQWMI6J5.cjs +0 -7
- package/dist/chunk-ZCJS7D7S.js +0 -2
- package/dist/diagnostic-context-DJ0P1uZE.d.ts +0 -31
- package/dist/headless-document-view-qOpaCF82.d.ts +0 -143
- package/dist/omml-equation-BsLAa2lX.d.ts +0 -115
|
@@ -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 {
|
|
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 {
|
|
@@ -130,6 +130,13 @@ declare function historyGroupOfJournal(journal: CanonicalPrimitiveJournal): Hist
|
|
|
130
130
|
/** Options for a canonical collaboration document port. @public */
|
|
131
131
|
interface CreateCollaborationDocumentPortOptions {
|
|
132
132
|
readonly documentId: string;
|
|
133
|
+
/**
|
|
134
|
+
* The port belongs to an editor that people edit through, so it shows undo state to them.
|
|
135
|
+
* Set it for such a host: a full-document session then refuses `beginUndoGroup()` with
|
|
136
|
+
* `editor-attached`, and attaching the port closes an open undo group. See
|
|
137
|
+
* {@link CollaborationDocumentPort.interactive}. Default false.
|
|
138
|
+
*/
|
|
139
|
+
readonly interactive?: boolean;
|
|
133
140
|
}
|
|
134
141
|
/** Create the narrow collaboration view over one canonical package store. @public */
|
|
135
142
|
declare function createCollaborationDocumentPort(store: TreePackageStore, options: CreateCollaborationDocumentPortOptions): CollaborationDocumentPort;
|
|
@@ -213,7 +220,23 @@ type CollaborationApplyResult = {
|
|
|
213
220
|
*/
|
|
214
221
|
interface CollaborationDocumentPort {
|
|
215
222
|
readonly documentId: string;
|
|
223
|
+
/**
|
|
224
|
+
* True for the port of an editor that people edit through, which shows undo state to
|
|
225
|
+
* them. False or absent for a headless or server replica. Optional.
|
|
226
|
+
*
|
|
227
|
+
* While a port with `true` is attached, a full-document session refuses
|
|
228
|
+
* `beginUndoGroup()` with `editor-attached`, and attaching it closes an open undo group, so
|
|
229
|
+
* the undo state a person sees stays true.
|
|
230
|
+
*/
|
|
231
|
+
readonly interactive?: boolean;
|
|
216
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
|
+
*/
|
|
217
240
|
paragraphByNodeId(nodeId: string): CollaborationParagraph | null;
|
|
218
241
|
/**
|
|
219
242
|
* The model text of the paragraph with this node id in any story, or null when the editor
|
|
@@ -227,6 +250,8 @@ interface CollaborationDocumentPort {
|
|
|
227
250
|
* store. Presence may name a header, a footer, a note, or a cell, so this lookup covers
|
|
228
251
|
* those parts too. It resolves through an index, not a scan, because a remote caret
|
|
229
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.
|
|
230
255
|
*/
|
|
231
256
|
paragraphByStableId(paragraphId: string): CollaborationParagraph | null;
|
|
232
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.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk2CWQY27B_cjs=require('./chunk-2CWQY27B.cjs');Object.defineProperty(exports,"createCollaborationStatusTracker",{enumerable:true,get:function(){return chunk2CWQY27B_cjs.c}});Object.defineProperty(exports,"isCollaborationFailureCode",{enumerable:true,get:function(){return chunk2CWQY27B_cjs.b}});Object.defineProperty(exports,"safeParticipantColor",{enumerable:true,get:function(){return chunk2CWQY27B_cjs.a}});
|
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 {
|
|
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
|
-
import {
|
|
14
|
-
export { c as CollaborationFailure, d as createCollaborationStatusTracker, i as isCollaborationFailureCode } from './failure-
|
|
15
|
-
import './editor-scope-
|
|
13
|
+
import { a as CollaborationStatus, b as CollaborationStatusSnapshot, C as CollaborationFailureCode } from './failure-6KGFrDO9.js';
|
|
14
|
+
export { c as CollaborationFailure, d as createCollaborationStatusTracker, i as isCollaborationFailureCode } from './failure-6KGFrDO9.js';
|
|
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
|
package/dist/collaboration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as safeParticipantColor}from'./chunk-
|
|
1
|
+
export{c as createCollaborationStatusTracker,b as isCollaborationFailureCode,a as safeParticipantColor}from'./chunk-WN7ICTA5.js';
|
|
@@ -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 '../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, P as
|
|
18
|
-
|
|
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,14 +7,18 @@
|
|
|
7
7
|
* @packageDocumentation
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
|
-
export { a as ReviewDisplayMode } from '../
|
|
11
|
-
export {
|
|
12
|
-
export { B as
|
|
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
|
+
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 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
|
+
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-Df4oY2u4.js';
|
|
13
15
|
export { ContentControlSummary, DocEdits, DocQueries, DocQueryResults, ParagraphSummary } from './document.js';
|
|
14
|
-
export { a as EditorExecOptions, E as EditorScope,
|
|
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';
|
|
15
17
|
export { InteractionAffinity, InteractionOutcome, InteractionOutcomeCode, SemanticIdentity, SemanticTarget } from './interaction.js';
|
|
16
|
-
export { S as SemanticPosition, a as SemanticSelection } from '../semantic-interaction-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export { B as ByteSizeBucket, C as CollaborationDiagnosticCode,
|
|
20
|
-
import '../
|
|
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
|
+
export { C as CollaborationFailureCode, a as CollaborationStatus } from '../failure-6KGFrDO9.js';
|
|
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,21 +17,24 @@
|
|
|
17
17
|
* @packageDocumentation
|
|
18
18
|
* @public
|
|
19
19
|
*/
|
|
20
|
-
import { R as RevisionMarkupDialogSession, a as ReviewDisplayMode } from '../
|
|
21
|
-
export { b as RevisionDisplayMode } from '../
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
|
|
20
|
+
import { R as RevisionMarkupDialogSession, a as ReviewDisplayMode } from '../revision-projection-OVusTS77.js';
|
|
21
|
+
export { b as RevisionDisplayMode } from '../revision-projection-OVusTS77.js';
|
|
22
|
+
import { ReviewPaneOptions } from './types.js';
|
|
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';
|
|
25
26
|
import { CollaborationModuleContribution } from '../collaboration.js';
|
|
26
|
-
import '../
|
|
27
|
-
import '../
|
|
28
|
-
import '../
|
|
29
|
-
import '../
|
|
27
|
+
import '../failure-6KGFrDO9.js';
|
|
28
|
+
import '../document-protection-BvbpSXbQ.js';
|
|
29
|
+
import '../editor-scope-CA6egMaK.js';
|
|
30
|
+
import '../editor-fonts-D_-vjuJi.js';
|
|
31
|
+
import '../diagnostic-hints-BtCaCqQC.js';
|
|
30
32
|
import './document.js';
|
|
31
33
|
import './interaction.js';
|
|
32
|
-
import '../semantic-interaction-
|
|
33
|
-
import '../
|
|
34
|
-
import '../
|
|
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';
|
|
35
38
|
import '../collaboration/replication.js';
|
|
36
39
|
|
|
37
40
|
/**
|
|
@@ -7,5 +7,138 @@
|
|
|
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,
|
|
11
|
-
|
|
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
|
+
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-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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* When the review pane opens by itself.
|
|
18
|
+
*
|
|
19
|
+
* - `'auto'`: the pane opens when a document with review items loads, and when a tracked
|
|
20
|
+
* change is made while it is closed, in both cases when the pane has items to list. With
|
|
21
|
+
* `revisionsIn: 'balloons'` the pane lists no tracked change and no reply to one, so
|
|
22
|
+
* tracked changes and their replies alone do not open it.
|
|
23
|
+
* - `'manual'`: the pane stays closed until the host or the user opens it. Use it when the
|
|
24
|
+
* host shows review items its own way, such as in balloons or margin markers.
|
|
25
|
+
*
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
type ReviewPaneOpening = 'auto' | 'manual';
|
|
29
|
+
/**
|
|
30
|
+
* What the open review pane does when its full card column does not fit beside the page at
|
|
31
|
+
* the page's zoom.
|
|
32
|
+
*
|
|
33
|
+
* - `'float'`: the pane shrinks to a strip of markers, and the open card floats over the
|
|
34
|
+
* page.
|
|
35
|
+
* - `'shrinkPage'`: under a fit zoom mode, the page may shrink down to the mode's
|
|
36
|
+
* `minZoom` (or 10%) so that the full column fits. The pane changes to the marker strip
|
|
37
|
+
* only when the column does not fit at that floor either. A fixed zoom behaves as
|
|
38
|
+
* `'float'`.
|
|
39
|
+
* - `'scroll'`: the page keeps the size it has beside the closed pane's marker strip, and
|
|
40
|
+
* the full column stands beside it. The document and the column scroll together: the
|
|
41
|
+
* viewport scrolls sideways to reach the cards.
|
|
42
|
+
*
|
|
43
|
+
* The setting applies to the review pane only. The navigation pane stays docked at its side
|
|
44
|
+
* in every mode: it never scrolls with the document, and it takes its room beside the page
|
|
45
|
+
* exactly as it does with no review pane.
|
|
46
|
+
*
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
49
|
+
type ReviewPaneOverflow = 'float' | 'shrinkPage' | 'scroll';
|
|
50
|
+
/**
|
|
51
|
+
* Where tracked changes open.
|
|
52
|
+
*
|
|
53
|
+
* - `'pane'`: the review pane lists tracked changes as cards beside the comments.
|
|
54
|
+
* - `'balloons'`: the pane lists comments only, except comments that reply to a tracked
|
|
55
|
+
* change: the change's balloon shows those. A tracked change opens in a balloon at its
|
|
56
|
+
* text when the reader clicks it, or when Next Change, Previous Change, or
|
|
57
|
+
* `setActiveReviewItem(key, { announce: true })` reaches it. A replacement is one balloon.
|
|
58
|
+
* In both settings, Next Change and Previous Change stop on a replacement once.
|
|
59
|
+
*
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
type RevisionDisplay = 'pane' | 'balloons';
|
|
63
|
+
/**
|
|
64
|
+
* How a collapsed comment marker looks.
|
|
65
|
+
*
|
|
66
|
+
* - `'initials'`: a badge with the thread author's initials in the author's color, a reply
|
|
67
|
+
* count, and a check mark when the thread is resolved.
|
|
68
|
+
* - `'icon'`: the comment icon.
|
|
69
|
+
*
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
type CommentMarkerStyle = 'initials' | 'icon';
|
|
73
|
+
/**
|
|
74
|
+
* Review pane settings to change. Every field is optional, and an omitted field keeps its
|
|
75
|
+
* current value.
|
|
76
|
+
*
|
|
77
|
+
* @public
|
|
78
|
+
*/
|
|
79
|
+
interface ReviewPaneOptions {
|
|
80
|
+
/** Default `'auto'`. */
|
|
81
|
+
readonly opening?: ReviewPaneOpening;
|
|
82
|
+
/** Default `'float'`. */
|
|
83
|
+
readonly overflow?: ReviewPaneOverflow;
|
|
84
|
+
/** Default `'pane'`. */
|
|
85
|
+
readonly revisionsIn?: RevisionDisplay;
|
|
86
|
+
/** Default `'icon'`. */
|
|
87
|
+
readonly commentMarkers?: CommentMarkerStyle;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* The review pane settings in force, with every field resolved.
|
|
91
|
+
*
|
|
92
|
+
* @public
|
|
93
|
+
*/
|
|
94
|
+
interface ResolvedReviewPane {
|
|
95
|
+
/** When the pane opens by itself. */
|
|
96
|
+
readonly opening: ReviewPaneOpening;
|
|
97
|
+
/** What the open pane does when its card column does not fit beside the page. */
|
|
98
|
+
readonly overflow: ReviewPaneOverflow;
|
|
99
|
+
/** Where tracked changes open. */
|
|
100
|
+
readonly revisionsIn: RevisionDisplay;
|
|
101
|
+
/** How a collapsed comment marker looks. */
|
|
102
|
+
readonly commentMarkers: CommentMarkerStyle;
|
|
103
|
+
}
|
|
104
|
+
/** The settings an editor starts with when nothing sets them. @public */
|
|
105
|
+
declare const DEFAULT_REVIEW_PANE: ResolvedReviewPane;
|
|
106
|
+
/**
|
|
107
|
+
* Merge `options` over `base`. Throws a `TypeError` for an unknown field or value, so a
|
|
108
|
+
* misspelled setting fails loudly instead of being ignored. Returns `base` itself when
|
|
109
|
+
* nothing changes, so the snapshot keeps its reference.
|
|
110
|
+
*
|
|
111
|
+
* @public
|
|
112
|
+
*/
|
|
113
|
+
declare function resolveReviewPane(options: ReviewPaneOptions | undefined, base?: ResolvedReviewPane): ResolvedReviewPane;
|
|
114
|
+
/**
|
|
115
|
+
* The fields of a review item that decide whether the review pane lists it. A
|
|
116
|
+
* `ReviewItem` and a review item placement both have them.
|
|
117
|
+
*
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
interface ReviewPaneItemFields {
|
|
121
|
+
/** The item kind, as `ReviewItem.kind` gives it. */
|
|
122
|
+
readonly kind: 'revision' | 'comment' | 'custom';
|
|
123
|
+
/** For a comment, the tracked change it replies to. */
|
|
124
|
+
readonly parentRevisionId?: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Whether the review pane lists a card for `item` under `revisionsIn`.
|
|
128
|
+
*
|
|
129
|
+
* With `'balloons'`, a balloon at the text shows every tracked change and every comment
|
|
130
|
+
* that replies to a tracked change, so the pane lists neither. Give the item as an
|
|
131
|
+
* unfiltered `getReviewItems()` read returns it: a query that excludes revision kinds
|
|
132
|
+
* removes `parentRevisionId` from replies to the changes it drops.
|
|
133
|
+
*
|
|
134
|
+
* The engine applies this rule to every review item when it decides whether the pane opens
|
|
135
|
+
* by itself or closes after a settings change. A review pane must apply the same rule before
|
|
136
|
+
* its own filters, such as a hidden kind or a host filter. Those filters can hide every card,
|
|
137
|
+
* and then the pane that the engine opens is empty.
|
|
138
|
+
*
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
declare function reviewPaneListsItem(revisionsIn: RevisionDisplay, item: ReviewPaneItemFields): boolean;
|
|
142
|
+
|
|
143
|
+
export { DEFAULT_REVIEW_PANE, resolveReviewPane, reviewPaneListsItem };
|
|
144
|
+
export type { CommentMarkerStyle, ResolvedReviewPane, ReviewPaneItemFields, ReviewPaneOpening, ReviewPaneOptions, ReviewPaneOverflow, RevisionDisplay };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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';
|
|
@@ -177,6 +177,11 @@ interface InsertCustomNodeWrite {
|
|
|
177
177
|
readonly lock?: 'sdtLocked' | 'sdtContentLocked' | 'contentLocked';
|
|
178
178
|
/** Omitted authors an ordinary tagged control with no store — the pre-payload behaviour. */
|
|
179
179
|
readonly payload?: CustomNodePayloadWrite;
|
|
180
|
+
/**
|
|
181
|
+
* Propose the node as a tracked insertion. A wrap (`replaceUntil`) or a rewrite
|
|
182
|
+
* (`replaceControlId`) has no tracked form yet, and refuses with a revision.
|
|
183
|
+
*/
|
|
184
|
+
readonly revision?: RevisionAttributionInput;
|
|
180
185
|
}
|
|
181
186
|
/**
|
|
182
187
|
* Why a payload write was refused.
|
|
@@ -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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as CollaborationFailureCode } from './failure-6KGFrDO9.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* The public diagnostic vocabulary: stable codes and the buckets sizes and counts are reported
|
|
@@ -16,9 +16,9 @@ type DocumentOpenDiagnosticCode = 'open.unsupported-source' | 'open.zip-corrupt'
|
|
|
16
16
|
*/
|
|
17
17
|
type DocumentSaveDiagnosticCode = 'save.no-document' | 'save.document-changed' | 'save.failed';
|
|
18
18
|
/** Why an edit, a command or a tracked change was refused. @public */
|
|
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.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.section-mark' | 'edit.table-structure-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';
|
|
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 {
|
|
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';
|