@docx-editor.dev/core 2.25.0 → 2.27.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 +9 -3
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +31 -16
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +8 -8
- package/dist/binding.js +1 -1
- package/dist/chunk-2GK7YQB2.cjs +2 -0
- package/dist/chunk-4KZ6L5YF.cjs +15 -0
- package/dist/chunk-55AT3MOU.cjs +25 -0
- package/dist/chunk-6ZQMII6V.js +1 -0
- package/dist/chunk-7IGCWG4H.js +2 -0
- package/dist/chunk-7MYITTAH.js +5 -0
- package/dist/chunk-AVKVRU7Z.cjs +5 -0
- package/dist/chunk-CWRBFNK5.cjs +5 -0
- package/dist/chunk-DGPA3TST.cjs +27 -0
- package/dist/{chunk-WVJRO4WY.js → chunk-DNXVNQEO.js} +1 -1
- package/dist/chunk-FQN4KSFL.cjs +7 -0
- package/dist/{chunk-MEF2AK5L.cjs → chunk-GVUOWHTO.cjs} +1 -1
- package/dist/chunk-GWQJ5774.js +5 -0
- package/dist/chunk-HAQ72KD7.js +1 -0
- package/dist/chunk-HO5XFO32.cjs +3 -0
- package/dist/chunk-IGR23DV2.js +1 -0
- package/dist/chunk-JSIX2EOH.js +3 -0
- package/dist/chunk-K246T47S.cjs +1 -0
- package/dist/chunk-KAXOGCGA.js +1 -0
- package/dist/chunk-LZLTN5A3.cjs +1 -0
- package/dist/chunk-NBCVVZOM.cjs +1 -0
- package/dist/{chunk-AJCCS53D.js → chunk-O5INAWZQ.js} +1 -1
- package/dist/chunk-OHAXVTWG.cjs +1 -0
- package/dist/chunk-S74GRBNE.js +7 -0
- package/dist/chunk-UBLUVNZR.js +27 -0
- package/dist/chunk-UMRSBLO7.js +15 -0
- package/dist/chunk-VIPMGGUT.js +25 -0
- package/dist/chunk-WG4KMSX2.cjs +2 -0
- package/dist/chunk-WRLKVNNR.cjs +1 -0
- package/dist/chunk-ZU7IVN6G.js +2 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +14 -5
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.ts +3 -3
- package/dist/contracts/document.d.ts +2 -2
- package/dist/contracts/editor.d.ts +8 -8
- package/dist/contracts/modules.cjs +1 -1
- package/dist/contracts/modules.d.ts +20 -31
- package/dist/contracts/modules.js +1 -1
- package/dist/contracts/types.d.ts +1 -1
- package/dist/{custom-node-writes-Cy9imOjA.d.ts → custom-node-writes-Vzpq9I8_.d.ts} +2 -2
- package/dist/{document-protection-Bp19Ad4I.d.ts → document-protection-9zpIHWTE.d.ts} +1 -1
- package/dist/{editor-DkfCCTxA.d.ts → editor-B3OBYNrF.d.ts} +29 -34
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +14 -2
- package/dist/editor.d.ts +28 -27
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +26 -14
- package/dist/export.js +2 -2
- package/dist/{font-resolver-C295obND.d.ts → font-resolver-DN0xNOf_.d.ts} +5 -3
- package/dist/{headless-document-view-R9bzzepb.d.ts → headless-document-view-ICYqNkQ1.d.ts} +2 -2
- package/dist/{image-resources-DfagDguq.d.ts → image-resources-BDFxcu7W.d.ts} +1 -1
- package/dist/{index-3KAxeSic.d.ts → index-CkQVRJtJ.d.ts} +53 -21
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +18 -17
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-C889tgmj.d.ts → layout-shaping-BvZD_VKP.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +104 -202
- package/dist/layout.js +1 -1
- package/dist/{note-properties-CmfvOJsi.d.ts → note-properties-CkAk7g-n.d.ts} +1 -1
- package/dist/{omml-equation-CZ6IG2ja.d.ts → omml-equation-DuczgG5o.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +8 -7
- package/dist/output.js +1 -1
- package/dist/{protocol-BhmenALD.d.ts → protocol-aKYr8r3u.d.ts} +34 -6
- package/dist/{review-paragraph-order-BwhRT264.d.ts → review-paragraph-order-Ddj5d6rp.d.ts} +6 -2
- package/dist/{revision-projection-DfWxdBqA.d.ts → revision-projection-CSNFudZY.d.ts} +74 -3
- package/dist/{semantic-cell-selection-CC3NwCtx.d.ts → semantic-cell-selection-DoqYCz_F.d.ts} +25 -7
- package/dist/{semantic-interaction-BHlV61hK.d.ts → semantic-interaction-G0bjmmmk.d.ts} +1 -1
- package/dist/{semantic-paint-DfWIWUs6.d.ts → semantic-paint-CsMzF8-O.d.ts} +57 -5
- package/dist/semantic-record-queries-1du6lQqS.d.ts +177 -0
- package/dist/{semantic-records-DrExlBy-.d.ts → semantic-records-B9OolWGN.d.ts} +91 -74
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +74 -17
- package/dist/store.js +1 -1
- package/dist/{tree-package-fragment-YPyYC1aD.d.ts → tree-package-fragment-DYZIk1rY.d.ts} +3 -3
- package/dist/{tree-session-contract-AeY2v0x9.d.ts → tree-session-contract-DQVJOOkv.d.ts} +5 -5
- package/dist/{types-barrel-BO73JqHG.d.ts → types-barrel-BFKR8Pzp.d.ts} +134 -110
- package/package.json +4 -4
- package/dist/chunk-3RMHRNDA.cjs +0 -1
- package/dist/chunk-42N7OV3G.cjs +0 -1
- package/dist/chunk-47ZJEEBT.js +0 -2
- package/dist/chunk-4B3SXBV6.js +0 -4
- package/dist/chunk-5MWFZ7F4.cjs +0 -11
- package/dist/chunk-AS2OC6J4.cjs +0 -26
- package/dist/chunk-B7SYEMZ7.cjs +0 -1
- package/dist/chunk-BME2KUNL.cjs +0 -1
- package/dist/chunk-CDGVVEUK.js +0 -26
- package/dist/chunk-E4RAPI5J.cjs +0 -2
- package/dist/chunk-FZJTQPH4.js +0 -2
- package/dist/chunk-H7XMRUAO.cjs +0 -5
- package/dist/chunk-ILUE2SI5.js +0 -1
- package/dist/chunk-IZT3C23R.js +0 -1
- package/dist/chunk-KJLPVGSX.cjs +0 -4
- package/dist/chunk-LF5LPZOP.cjs +0 -18
- package/dist/chunk-N5WE5O5Q.js +0 -1
- package/dist/chunk-OVDW4XQD.cjs +0 -2
- package/dist/chunk-SNN53UPD.js +0 -1
- package/dist/chunk-TKQH7BNE.cjs +0 -1
- package/dist/chunk-V7LBEUVW.js +0 -5
- package/dist/chunk-VE7YBFQD.js +0 -5
- package/dist/chunk-VOVDX7GW.js +0 -18
- package/dist/chunk-VQ33XGNP.cjs +0 -5
- package/dist/chunk-XUJINXW6.js +0 -1
- package/dist/chunk-Y3TPAITU.cjs +0 -1
- package/dist/chunk-Z65JJLLF.js +0 -11
package/dist/store.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { e as ResourceLimits } from './image-resources-
|
|
2
|
-
export { C as CreateImageResourceCacheOptions, D as DEFAULT_IMAGE_RESOURCE_LIMITS, f as DEFAULT_LIMITS, H as HARD_CEILINGS, g as IMAGE_RESOURCE_HARD_CEILINGS, a as ImageDecodePort, I as ImageResourceLimits, h as ImageResourceLookup, b as ImageResourceState, M as MAX_SVG_SNIFF_BYTES, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, i as ValidatedRasterHeader, j as createImageResourceCache, k as hasBoundedSvgRoot, l as imageResourceLookupFor, m as liveDrawingReferenceCount, r as resolveImageResourceLimits, n as resolveLimits, s as sniffImageMime, o as validateGifHeader, p as validateJpegHeader, q as validatePngHeader, v as validateRasterHeader } from './image-resources-
|
|
3
|
-
import { O as OoxmlPart, N as OoxmlNode, aM as OoxmlInvariantResult, at as OoxmlParagraphNode, aN as OoxmlFldCharNode, aO as OoxmlFldSimpleNode, aP as OoxmlInstrTextNode, aQ as OoxmlInvariantIssue, Z as OoxmlElement, W as TreeDocOp, a5 as TreeOpRejection, aR as TreeOpResult, Q as OoxmlPackage, aS as RelationshipRecord, aT as OoxmlHardBreakNode, aU as OoxmlAttribute, X as OoxmlProperty, f as ReviewRange, R as ReviewModelInput, a as ReviewItem, C as CommentRecord, e as ReviewPosition, aV as CommentThreadState, c as ReviewCommentItem, b as ReviewRevisionItem, aB as DrawingTreeDocOp, aC as ImpactClass, aa as ImageWrapTarget } from './types-barrel-
|
|
4
|
-
export { aW as ACCEPTED_PARAGRAPH_PROPERTIES, aX as ACCEPTED_RUN_PROPERTIES, aY as CONTENT_CONTROL_ID_MAX, aZ as CONTENT_CONTROL_PROPERTY_ORDER, a_ as CommentAnchor, a$ as CommentPosition, b0 as CommitTextFormFieldOp, b1 as ContentControlCheckbox, b2 as ContentControlCheckboxState, b3 as ContentControlDataBinding, b4 as ContentControlDateFormat, b5 as ContentControlEntry, b6 as ContentControlKind, b7 as ContentControlLevel, b8 as ContentControlListItem, b9 as ContentControlLock, ba as ContentControlProperties, bb as ContentTypeError, bc as ContentTypeIndex, bd as ContentTypeRecords, be as DEFAULT_OOXML_PACKAGE_LIMITS, bf as DEFAULT_ZIP_LIMITS, bg as DefaultRecord, bh as DeleteTextOp, aI as DrawingImageEffects, a9 as DrawingKind, ac as DrawingLocks, ab as DrawingPositionInput, bi as HYPERLINK_RELATIONSHIP_TYPE, bj as HyperlinkKind, bk as HyperlinkTarget, bl as IMAGE_RELATIONSHIP_TYPE, aE as IMAGE_WRAP_TARGETS, bm as ImageRelationshipResolution, bn as IndexResult, bo as InsertBuildingBlockOp, bp as InsertTextOp, bq as LegacyCheckboxFieldRange, br as MAX_CONTENT_CONTROLS_PER_PART, bs as MAX_CONTENT_CONTROL_NESTING, bt as NameRejection, bu as NameResult, bv as OFFICE_RELATIONSHIP_NAMESPACE_URI, bw as OOXML_NODE_IDENTITY_RULES, bx as OoxmlBodyNode, by as OoxmlBookmarkEndNode, bz as OoxmlBookmarkStartNode, bA as OoxmlContentControlCalendarNode, bB as OoxmlContentControlCheckboxNode, bC as OoxmlContentControlCheckedNode, bD as OoxmlContentControlCheckedStateNode, bE as OoxmlContentControlComboBoxNode, $ as OoxmlContentControlContentNode, bF as OoxmlContentControlDataBindingNode, bG as OoxmlContentControlDateFormatNode, bH as OoxmlContentControlDateNode, bI as OoxmlContentControlDropDownListNode, bJ as OoxmlContentControlEndPropertiesNode, bK as OoxmlContentControlLidNode, bL as OoxmlContentControlListItemNode, _ as OoxmlContentControlNode, bM as OoxmlContentControlPropertiesNode, bN as OoxmlContentControlStoreMappedDataAsNode, bO as OoxmlContentControlTextNode, bP as OoxmlContentControlUncheckedStateNode, av as OoxmlContinuationSeparatorNode, bQ as OoxmlDocumentNode, aw as OoxmlEndnotesNode, bR as OoxmlExternalTarget, ax as OoxmlFootnotesNode,
|
|
5
|
-
import {
|
|
6
|
-
export { k as AtomicNoteSpan, C as CascadeDeletedNoteReferencesOptions, D as DEFAULT_MAX_EDITABLE_STORY_PARTS, l as DrawingPropertyIdResult, F as FragmentPasteInput, j as FragmentPasteResult, m as HeaderFooterKind, n as HeaderFooterLifecycleImpact, o as HeaderFooterLifecycleOp, p as HeaderFooterLifecycleRejection, q as HeaderFooterLifecycleResult,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
1
|
+
import { e as ResourceLimits } from './image-resources-BDFxcu7W.js';
|
|
2
|
+
export { C as CreateImageResourceCacheOptions, D as DEFAULT_IMAGE_RESOURCE_LIMITS, f as DEFAULT_LIMITS, H as HARD_CEILINGS, g as IMAGE_RESOURCE_HARD_CEILINGS, a as ImageDecodePort, I as ImageResourceLimits, h as ImageResourceLookup, b as ImageResourceState, M as MAX_SVG_SNIFF_BYTES, P as PreservedImageMime, R as RenderableImageMime, S as SupportedImageMime, V as ValidatedImageBytesHandle, i as ValidatedRasterHeader, j as createImageResourceCache, k as hasBoundedSvgRoot, l as imageResourceLookupFor, m as liveDrawingReferenceCount, r as resolveImageResourceLimits, n as resolveLimits, s as sniffImageMime, o as validateGifHeader, p as validateJpegHeader, q as validatePngHeader, v as validateRasterHeader } from './image-resources-BDFxcu7W.js';
|
|
3
|
+
import { O as OoxmlPart, N as OoxmlNode, aM as OoxmlInvariantResult, at as OoxmlParagraphNode, aN as OoxmlFldCharNode, aO as OoxmlFldSimpleNode, aP as OoxmlInstrTextNode, aQ as OoxmlInvariantIssue, Z as OoxmlElement, W as TreeDocOp, a5 as TreeOpRejection, aR as TreeOpResult, Q as OoxmlPackage, aS as RelationshipRecord, V as OoxmlGenericElementNode, aT as OoxmlHardBreakNode, aU as OoxmlAttribute, X as OoxmlProperty, f as ReviewRange, R as ReviewModelInput, a as ReviewItem, C as CommentRecord, e as ReviewPosition, aV as CommentThreadState, c as ReviewCommentItem, b as ReviewRevisionItem, aB as DrawingTreeDocOp, aC as ImpactClass, aa as ImageWrapTarget } from './types-barrel-BFKR8Pzp.js';
|
|
4
|
+
export { aW as ACCEPTED_PARAGRAPH_PROPERTIES, aX as ACCEPTED_RUN_PROPERTIES, aY as CONTENT_CONTROL_ID_MAX, aZ as CONTENT_CONTROL_PROPERTY_ORDER, a_ as CommentAnchor, a$ as CommentPosition, b0 as CommitTextFormFieldOp, b1 as ContentControlCheckbox, b2 as ContentControlCheckboxState, b3 as ContentControlDataBinding, b4 as ContentControlDateFormat, b5 as ContentControlEntry, b6 as ContentControlKind, b7 as ContentControlLevel, b8 as ContentControlListItem, b9 as ContentControlLock, ba as ContentControlProperties, bb as ContentTypeError, bc as ContentTypeIndex, bd as ContentTypeRecords, be as DEFAULT_OOXML_PACKAGE_LIMITS, bf as DEFAULT_ZIP_LIMITS, bg as DefaultRecord, bh as DeleteTextOp, aI as DrawingImageEffects, a9 as DrawingKind, ac as DrawingLocks, ab as DrawingPositionInput, bi as HYPERLINK_RELATIONSHIP_TYPE, bj as HyperlinkKind, bk as HyperlinkTarget, bl as IMAGE_RELATIONSHIP_TYPE, aE as IMAGE_WRAP_TARGETS, bm as ImageRelationshipResolution, bn as IndexResult, bo as InsertBuildingBlockOp, bp as InsertTextOp, bq as LegacyCheckboxFieldRange, br as MAX_CONTENT_CONTROLS_PER_PART, bs as MAX_CONTENT_CONTROL_NESTING, bt as NameRejection, bu as NameResult, bv as OFFICE_RELATIONSHIP_NAMESPACE_URI, bw as OOXML_NODE_IDENTITY_RULES, bx as OoxmlBodyNode, by as OoxmlBookmarkEndNode, bz as OoxmlBookmarkStartNode, bA as OoxmlContentControlCalendarNode, bB as OoxmlContentControlCheckboxNode, bC as OoxmlContentControlCheckedNode, bD as OoxmlContentControlCheckedStateNode, bE as OoxmlContentControlComboBoxNode, $ as OoxmlContentControlContentNode, bF as OoxmlContentControlDataBindingNode, bG as OoxmlContentControlDateFormatNode, bH as OoxmlContentControlDateNode, bI as OoxmlContentControlDropDownListNode, bJ as OoxmlContentControlEndPropertiesNode, bK as OoxmlContentControlLidNode, bL as OoxmlContentControlListItemNode, _ as OoxmlContentControlNode, bM as OoxmlContentControlPropertiesNode, bN as OoxmlContentControlStoreMappedDataAsNode, bO as OoxmlContentControlTextNode, bP as OoxmlContentControlUncheckedStateNode, av as OoxmlContinuationSeparatorNode, bQ as OoxmlDocumentNode, aw as OoxmlEndnotesNode, bR as OoxmlExternalTarget, ax as OoxmlFootnotesNode, bS as OoxmlGenericExtensionAttribute, bT as OoxmlHyperlinkNode, bU as OoxmlInvariantIssueCode, bV as OoxmlKnownNodeAttribute, bW as OoxmlNamespaceBinding, U as OoxmlNodeId, bX as OoxmlNodeIdentityRules, au as OoxmlNoteNode, ay as OoxmlNoteRefNode, az as OoxmlNoteReferenceNode, a1 as OoxmlPackageLimits, Y as OoxmlPackageRejection, bY as OoxmlPackageResult, bZ as OoxmlParagraphPropertiesNode, b_ as OoxmlPartMetadata, b$ as OoxmlReadRejection, c0 as OoxmlReadResult, c1 as OoxmlRunNode, c2 as OoxmlRunPropertiesNode, aA as OoxmlSeparatorNode, c3 as OoxmlTabNode, c4 as OoxmlTextElementNode, c5 as OoxmlTextNode, c6 as OoxmlWmlValAttribute, c7 as OoxmlXmlSpaceAttribute, c8 as OverrideRecord, c9 as RelationshipError, ca as RelationshipSetResult, cb as RelationshipTargetResolver, cc as ResolveResult, cd as ResolvedRelationship, d as ReviewCustomItem, g as ReviewRevisionKind, h as RevisionAddress, a2 as RevisionBatchEntry, a3 as RevisionBatchResult, a4 as RevisionBatchSkipReason, ce as SetLegacyCheckboxOp, cf as SetLegacyDropdownOp, cg as SetTextFormFieldDefaultOp, a8 as SourceCrop, ch as TABLE_BORDER_STYLES, ci as TabStopWrite, aG as TableBorderStyle, cj as TargetMode, ck as TextFormFieldOptions, cl as TextFormFieldRange, cm as TextFormFieldType, cn as TreeDocOpKind, co as TreeOpEffect, cp as W15_NAMESPACE_URI, cq as WML_NAMESPACE_URI, cr as XMLNS_NAMESPACE_URI, cs as XML_NAMESPACE_URI, ct as XmlLimits, cu as XmlNode, cv as XmlRejection, cw as XmlResult, cx as ZipLimits, cy as ZipReadResult, cz as ZipRejection, cA as allocateContentControlId, cB as asciiFold, cC as buildContentTypeIndex, cD as buildRelationshipSet, cE as childElements, cF as commentAnchorsOfStory, cG as commentsOfPart, cH as contentControlContentChildren, cI as contentControlContentNodeOf, cJ as contentControlEndPropertiesNodeOf, cK as contentControlLevelOf, cL as contentControlPropertiesNodeOf, cM as contentControlPropertiesOf, cN as contentControlTextOf, cO as contentControlsIn, cP as detectDuplicateNames, cQ as extensionKey, cR as findContentControl, cS as findElement, cT as firstReviewRange, cU as flattenContentControls, cV as hasAnyComment, cW as hyperlinkAnchorOf, cX as hyperlinkRelationshipIdOf, cY as hyperlinkTargetOf, cZ as isContentControlContentNode, c_ as isContentControlNode, c$ as isContentControlWrapper, d0 as isContentRevisionKind, d1 as isHyperlinkNode, d2 as isRangeMarkerKind, d3 as isValidMime, d4 as legacyCheckboxFieldsOf, d5 as lockForbidsEdit, d6 as lockForbidsRemoval, d7 as normalizePartName, d8 as orderedContentControlProperties, d9 as parseContentControlId, da as partNameKey, db as planRevisionBatch, dc as projectDrawing, dd as readOnOffChild, de as readOoxmlPackage, df as readOoxmlPart, dg as readXml, dh as readZip, di as resolveContentControlLock, dj as resolveContentType, dk as resolveImageRelationship, dl as resolveInternalTarget, dm as resolveRelationship, dn as reviewItemKey, dp as reviewItemRanges, dq as textContent, dr as textFormFieldsOf, ds as threadStateOfPart, dt as validateExternalTarget, du as withPart, dv as writeOoxmlPackage, dw as writeZip } from './types-barrel-BFKR8Pzp.js';
|
|
5
|
+
import { e as TreeModelChange, f as TreeDocumentStore, T as TreePackageStore, S as StoryScope } from './tree-package-fragment-DYZIk1rY.js';
|
|
6
|
+
export { k as AtomicNoteSpan, C as CascadeDeletedNoteReferencesOptions, D as DEFAULT_MAX_EDITABLE_STORY_PARTS, l as DrawingPropertyIdResult, F as FragmentPasteInput, j as FragmentPasteResult, m as HeaderFooterKind, n as HeaderFooterLifecycleImpact, o as HeaderFooterLifecycleOp, p as HeaderFooterLifecycleRejection, q as HeaderFooterLifecycleResult, H as HeaderFooterParts, b as HeaderFooterSectionResolution, s as HeaderFooterSlotMeta, c as HeaderFooterVariant, t as HistoryCaptureKind, d as HistoryGroup, M as MAX_FRAGMENT_DECODED_BYTES, u as MAX_NOTES_PER_PART, v as MAX_NOTE_REFERENCE_PARTS, w as MAX_NOTE_REFERENCE_SCAN, x as NOTE_ATOM_CHAR, y as NOTE_CONTINUATION_SEPARATOR_ID, z as NOTE_ID_MAX, B as NOTE_ID_MIN, E as NOTE_SEPARATOR_ID, G as NoteDiagnostic, J as NoteDiagnosticCode, N as NoteKind, K as NoteLifecycleImpact, L as NoteLifecycleOp, O as NoteLifecycleOptions, P as NoteLifecycleRejection, Q as NoteLifecycleResult, U as NoteReferenceHit, V as NoteReferenceScanBudget, W as NoteType, X as PackageTransactResult, Y as RemotePackageAttribution, g as SelectionMark, Z as StoryResolveResult, a as StoryTargetRejection, _ as TreeDocumentStoreOptions, $ as TreePackageStoreOptions, a0 as TreeStoryRef, h as TreeTransactOptions, a1 as TreeTransactResult, a2 as TreeTransactionContext, a3 as allocateDrawingPropertyId, a4 as allocateNoteId, a5 as applyFragmentPaste, a6 as applyHeaderFooterLifecycleOp, a7 as applyNoteLifecycleOp, a8 as atomicNoteSpansOf, a9 as cascadeDeletedNoteReferences, aa as collectNoteReferences, ab as collectPackageNoteReferences, ac as collectSectionPropertyNodes, ad as createNoteReferenceScanBudget, ae as customMarkFollows, af as diagnoseNoteReferences, ag as findNoteById, ah as formatNoteScopeId, ai as isContinuationSeparatorNode, aj as isEndnotesNode, ak as isFootnotesNode, al as isHeaderFooterLifecycleOp, am as isNormalNote, an as isNoteAtomNode, ao as isNoteLifecycleOp, ap as isNoteNode, aq as isNoteRefNode, ar as isNoteReferenceNode, as as isSeparatorNode, at as normalNoteIds, au as noteAtomText, av as noteIdOf, aw as noteKindOf, ax as noteRefKindOf, ay as noteReferenceKindOf, az as noteTypeOf, aA as notesOf, aB as notesPartHasId, aC as observeHistoryGroup, aD as parseNoteId, aE as parseNoteScopeId, r as reportHistoryGroup, aF as resolveHeaderFooterParts, aG as resolveHeaderFooterPartsBySection, aH as resolveHeaderFooterResolutionBySection, aI as resolveNotesPart, aJ as withBinaryPart, aK as withEmbeddedImage, aL as withoutUnreferencedImagePart } from './tree-package-fragment-DYZIk1rY.js';
|
|
7
|
+
import { O as OmmlEquationProjection } from './omml-equation-DuczgG5o.js';
|
|
8
|
+
export { D as DEFAULT_OMML_LIMITS, E as EquationExpression, L as LinearMathOmmlResult, a as LinearMathParseResult, b as LinearMathRejection, c as OFFICE_MATH_NAMESPACE_URI, d as OmmlLimits, e as equationExpressionToLinearMath, l as linearMathToOmml, p as parseLinearMath, f as projectOmmlEquation } from './omml-equation-DuczgG5o.js';
|
|
9
|
+
import { I as InsertCustomNodeWrite, C as CustomNodeWriteResult } from './custom-node-writes-Vzpq9I8_.js';
|
|
10
|
+
export { b as BookmarkAnchor, B as BookmarkIndex, c as CustomNodePayloadRead, d as CustomNodePayloadWrite, a as CustomNodeSweepOutcome, e as CustomNodeSweepResult, f as CustomNodeWriteRejection, D as DocumentTrackingSettings, E as EmbeddedFont, F as FontStyleKey, L as ListKind, M as MAX_CUSTOM_NODE_LABEL_LENGTH, g as MAX_CUSTOM_NODE_PAYLOAD_LENGTH, N as NO_TRACKING_SETTINGS, R as ReadEmbeddedFontsOptions, h as buildBookmarkIndex, i as customNodePayloadsByControl, j as customNodePayloadsOf, k as deobfuscateFont, l as ensureListDefinition, m as ensureNumberingLevel, n as insertCustomNodeWrite, r as readEmbeddedFonts, o as readTrackingSettings, p as removeCustomNodeWrite, s as sweepCustomNodePayloads } from './custom-node-writes-Vzpq9I8_.js';
|
|
11
|
+
export { c as collectFlowBlocks, a as commentBodyText, b as commentInitials, d as contentControlContentOf, e as deepParagraphOrderOfPart, i as isContentControl, f as isContentControlContent, p as paragraphOrderOfPart, w as walkAllStoryParagraphs, g as walkParagraphInline, h as walkStoryBlocks } from './review-paragraph-order-Ddj5d6rp.js';
|
|
12
|
+
export { D as DocumentProperties, E as EnsuredHyperlinkRelationship, a as HeadlessDocumentRejection, H as HeadlessDocumentView, b as HeadlessThemeFonts, O as OpenHeadlessDocumentResult, c as authorableHyperlinkTarget, e as ensureHyperlinkRelationship, h as headlessViewOfStore, o as openHeadlessDocument, r as relationshipTargetIn } from './headless-document-view-ICYqNkQ1.js';
|
|
13
|
+
export { A as AuthoredNoteProperties, D as DEFAULT_ENDNOTE_PROPERTIES, a as DEFAULT_FOOTNOTE_PROPERTIES, E as EndnotePosition, F as FootnotePosition, N as NoteNumRestart, R as ResolvedEndnoteProperties, b as ResolvedFootnoteProperties, c as authoredDocumentEndnoteProperties, d as authoredDocumentFootnoteProperties, e as authoredEndnotePropertiesFromSectPr, f as authoredFootnotePropertiesFromSectPr, i as isLegalEndnotePosition, g as isLegalFootnotePosition, h as isLegalNumRestart, p as parseAuthoredNoteProperties, r as resolveEndnoteProperties, j as resolveFootnoteProperties, s as settingsPartOf } from './note-properties-CkAk7g-n.js';
|
|
14
|
+
export { a as DocumentProtectionEdit, D as DocumentProtectionState, N as NO_DOCUMENT_PROTECTION, r as readDocumentProtection } from './document-protection-9zpIHWTE.js';
|
|
14
15
|
import './editor-scope-OHPwVQ5l.js';
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -1198,7 +1199,12 @@ declare function withNewPart(pkg: OoxmlPackage, partName: string, root: OoxmlEle
|
|
|
1198
1199
|
*/
|
|
1199
1200
|
declare function validatePackageInvariants(pkg: OoxmlPackage): PackageInvariantResult;
|
|
1200
1201
|
|
|
1201
|
-
/**
|
|
1202
|
+
/**
|
|
1203
|
+
* Whether a string is a valid XML NCName in the strict ASCII profile — a name with no colon.
|
|
1204
|
+
*
|
|
1205
|
+
* This is the rule for names the engine itself writes or accepts from a caller. Names read
|
|
1206
|
+
* from a document use {@link isXmlNCName}, which admits every XML 1.0 name.
|
|
1207
|
+
*/
|
|
1202
1208
|
declare function isValidNCName(name: string): boolean;
|
|
1203
1209
|
/** A QName is an optional `prefix:` (both NCNames) — never attacker-derived. */
|
|
1204
1210
|
declare function isValidQName(name: string): boolean;
|
|
@@ -1292,6 +1298,29 @@ interface ScrubResult {
|
|
|
1292
1298
|
/** Explicit scrub export: remove inert executable classes, report removals. */
|
|
1293
1299
|
declare function scrubExport(items: readonly ContentItem[]): ScrubResult;
|
|
1294
1300
|
|
|
1301
|
+
/** True for an `m:oMathPara` display equation. */
|
|
1302
|
+
declare function isOmmlDisplay(node: OoxmlNode): node is OoxmlGenericElementNode;
|
|
1303
|
+
/** True for a paragraph-level equation atom: `m:oMath` or `m:oMathPara`. */
|
|
1304
|
+
declare function isOmmlEquationAtom(node: OoxmlNode): node is OoxmlGenericElementNode;
|
|
1305
|
+
/** The `m:oMath` equations of a display, or the equation itself for an inline `m:oMath`. */
|
|
1306
|
+
declare function equationsOfAtom(node: OoxmlNode): readonly OoxmlGenericElementNode[];
|
|
1307
|
+
/**
|
|
1308
|
+
* Project a display equation as one layout atom. A display with one equation keeps that
|
|
1309
|
+
* equation's projection, so the painted atom names the editable `m:oMath`. Several equations
|
|
1310
|
+
* share one row, separated by an em space.
|
|
1311
|
+
*/
|
|
1312
|
+
declare function projectOmmlDisplay(node: OoxmlNode): OmmlEquationProjection | null;
|
|
1313
|
+
/**
|
|
1314
|
+
* The physical justification of a paragraph whose only visible content is display math.
|
|
1315
|
+
* `m:oMathParaPr/m:jc` sets it; the default `centerGroup` centers the display. Returns null
|
|
1316
|
+
* when the paragraph also holds text or other content, which keeps the paragraph `w:jc`.
|
|
1317
|
+
*/
|
|
1318
|
+
declare function displayMathAlignment(paragraph: {
|
|
1319
|
+
readonly children: readonly OoxmlNode[];
|
|
1320
|
+
}): 'left' | 'center' | 'right' | null;
|
|
1321
|
+
/** Project a paragraph-level equation atom: inline `m:oMath` or display `m:oMathPara`. */
|
|
1322
|
+
declare function projectOmmlAtom(node: OoxmlNode): OmmlEquationProjection | null;
|
|
1323
|
+
|
|
1295
1324
|
/** UTF-16 placeholder for a page break in paragraph text projections. */
|
|
1296
1325
|
declare const PAGE_BREAK_CHAR = "\f";
|
|
1297
1326
|
/** What a `w:br` breaks. `other` covers values this engine does not model, kept losslessly. */
|
|
@@ -1358,6 +1387,12 @@ declare function detectBodyTocs(part: OoxmlPart): readonly DetectedToc[];
|
|
|
1358
1387
|
/** Locate the table of contents containing a position, or null. */
|
|
1359
1388
|
declare function findDetectedToc(tocs: readonly DetectedToc[], tocId: string): DetectedToc | null;
|
|
1360
1389
|
|
|
1390
|
+
/** One heading symbol: its `w:font` and `w:char`, as the file wrote them. */
|
|
1391
|
+
interface TocSymbol {
|
|
1392
|
+
readonly font: string | null;
|
|
1393
|
+
readonly char: string;
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1361
1396
|
declare const TWIPS: unique symbol;
|
|
1362
1397
|
declare const POINTS: unique symbol;
|
|
1363
1398
|
/**
|
|
@@ -1417,6 +1452,26 @@ declare const twipsToPoints: (value: Twips) => Points;
|
|
|
1417
1452
|
* @public
|
|
1418
1453
|
*/
|
|
1419
1454
|
declare const pointsToTwips: (value: Points) => Twips;
|
|
1455
|
+
/**
|
|
1456
|
+
* Read a twips attribute (`ST_TwipsMeasure`, `ST_SignedTwipsMeasure`, or a `dxa` table width)
|
|
1457
|
+
* as a whole, signed number of twips, or `null` when the value is not a measurement.
|
|
1458
|
+
*
|
|
1459
|
+
* The schema allows an integer or a universal measure, but files also carry decimal twips
|
|
1460
|
+
* (`4743.74`, `708.0`, `707.9999999999998`). The accepted forms read as follows:
|
|
1461
|
+
*
|
|
1462
|
+
* - A decimal truncates toward zero: `1443.74` is 1443 and `-720.6` is -720. A leading `+`,
|
|
1463
|
+
* leading zeros, a bare fraction (`.5`) and a trailing point (`1440.`) are accepted.
|
|
1464
|
+
* - A universal measure (`mm`, `cm`, `in`, `pt`, `pc`, `pi`) converts exactly and then
|
|
1465
|
+
* truncates: `1.27cm` is 720 and `0.333in` is 479. Its sign is ignored, so `-0.5in` is 720.
|
|
1466
|
+
* - Whitespace, exponents, hexadecimal, uppercase units, and an integer part longer than nine
|
|
1467
|
+
* digits are not measurements.
|
|
1468
|
+
*
|
|
1469
|
+
* The result is NOT bounded. Callers apply their own sign rule and range clamp, because each
|
|
1470
|
+
* attribute has a different valid range and a different fallback.
|
|
1471
|
+
*
|
|
1472
|
+
* @internal
|
|
1473
|
+
*/
|
|
1474
|
+
declare function readTwipsMeasure(raw: string | undefined): number | null;
|
|
1420
1475
|
|
|
1421
1476
|
/** Outline heading shape consumed by TOC planning (mirrors DocumentOutlineEntry). */
|
|
1422
1477
|
interface TocOutlineHeading {
|
|
@@ -1436,6 +1491,8 @@ interface TocEntryPlan {
|
|
|
1436
1491
|
readonly headingParagraphId: string;
|
|
1437
1492
|
readonly bookmarkName: string;
|
|
1438
1493
|
readonly pageNumberText: string;
|
|
1494
|
+
/** The heading's symbols, one per {@link TOC_SYMBOL_MARK} in `text`, in order. */
|
|
1495
|
+
readonly symbols?: readonly TocSymbol[];
|
|
1439
1496
|
}
|
|
1440
1497
|
/** Build one TOC entry paragraph node. */
|
|
1441
1498
|
declare function buildTocEntryParagraph(mint: () => string, entry: TocEntryPlan, instruction: TocInstruction, paragraphPropertiesTemplate?: OoxmlNode): OoxmlNode;
|
|
@@ -2448,8 +2505,8 @@ declare function locateSites(part: OoxmlPart): ReadonlyMap<string, SiteLocation>
|
|
|
2448
2505
|
/**
|
|
2449
2506
|
* Every revision in one story, one card per DECISION.
|
|
2450
2507
|
*
|
|
2451
|
-
* Sites sharing an `(id, author, date)` and revision kind
|
|
2452
|
-
*
|
|
2508
|
+
* Sites sharing an `(id, author, date)` and revision kind retain their source sites.
|
|
2509
|
+
* Unchanged text separates inline decisions even when their source attributes match.
|
|
2453
2510
|
*
|
|
2454
2511
|
* Cached by part root except for paragraph-scoped synthetic roots. Results are shared
|
|
2455
2512
|
* and readonly; part names are checked because ranges embed them.
|
|
@@ -2622,5 +2679,5 @@ declare function sectionProtectsForms(part: OoxmlPart, nodeId: string): boolean;
|
|
|
2622
2679
|
/** Every {@link TreeDocOpKind}, for validation and exhaustiveness checks. */
|
|
2623
2680
|
declare const TREE_DOC_OP_KINDS: readonly ["replaceStoryBlocks", "insertText", "deleteText", "setParagraphMarkRevision", "proposeParagraphMerge", "insertCommentMarker", "acceptRevision", "rejectRevision", "acceptAllRevisions", "rejectAllRevisions", "insertTab", "insertHardBreak", "insertPageBreak", "insertPageField", "setFieldCode", "setListLevel", "setListNumbering", "setParagraphTabStops", "setParagraphMarkProperties", "splitParagraph", "splitParagraphMany", "joinParagraphs", "setRunProperties", "setParagraphProperties", "setSectionProperties", "setSectionMark", "insertHyperlink", "setHyperlinkTarget", "removeHyperlink", "setMathEquation", "removeMathEquation", "setContentControlValue", "removeContentControl", "insertInlineContentControl", "addRepeatingSectionItem", "removeRepeatingSectionItem", "deleteBlock", "insertTable", "insertTableRow", "deleteTableRow", "insertTableColumn", "deleteTableColumn", "setTableColumnWidths", "setTableRightEdgeWidth", "setTableRowHeight", "setTableProperties", "authorTable", "setTableCellBorders", "setTableCellFill", "setTableCellVerticalAlignment", "createHeaderFooter", "deleteHeaderFooter", "linkToPrevious", "unlinkFromPrevious", "setSectionFurnitureOptions", "setDocumentProtection", "insertNote", "deleteNote", "convertNote", "convertAllNotes", "setNoteProperties", "setContentControlProperties", "insertContentControl", "insertFragment", "insertDrawing", "replaceDrawingResource", "deleteDrawing", "resizeDrawing", "cropDrawing", "positionDrawing", "setDrawingWrap", "setDrawingMetadata", "setDrawingLocks", "transformDrawing", "insertToc", "replaceTocResult", "rewriteTocPageNumbers", "refreshFieldResults", "setTextFormFieldDefault", "commitTextFormField", "setLegacyCheckbox", "setLegacyDropdown", "insertBuildingBlock"];
|
|
2624
2681
|
|
|
2625
|
-
export { ALL_FROZEN_IDS, AUTHORABLE_PARAGRAPH_PROPERTIES, AUTHORABLE_RUN_PROPERTIES, BoundedCounter, Budget, BudgetError, CANONICAL_MUTATION_ORIGINS, COMPARATORS, CUSTOM_NODE_XPATH_PREFIX, CUSTOM_XML_PROPS_REL, CUSTOM_XML_PROPS_TYPE, CUSTOM_XML_REL, CancellationController, CancellationError, CommentRecord, CommentThreadState, CustomNodeWriteResult, DANGEROUS_KEYS, DATASTORE_NAMESPACE_URI, DEFAULT_FORMATTING_DISPLAY_MODE, DEFAULT_VIEW_SETTINGS, DEPENDENCY_KEY_IDS, DangerousKeyError, DeterministicClock, DeterministicMemoryMeter, DrawingTreeDocOp, FIELD_ATOM_CHAR, ID_KINDS, INERT_EXECUTABLE_KINDS, ImageWrapTarget, ImpactClass, InsertCustomNodeWrite, LIMIT_KEYS, LIMIT_SPECS, LimitExceededError, MAX_STORY_SDT_NESTING, NON_CANONICAL_ORIGINS, ORIGIN_IDS, OoxmlAttribute, OoxmlElement, OoxmlFldCharNode, OoxmlFldSimpleNode, OoxmlHardBreakNode, OoxmlInstrTextNode, OoxmlInvariantIssue, OoxmlInvariantResult, OoxmlNode, OoxmlPackage, OoxmlParagraphNode, OoxmlPart, OoxmlProperty, PAGE_BREAK_CHAR, PortRegistry, PortResolutionError, PrefixAllocator, RESULT_IDS, RUNTIME_PORT_IDS, RegistryError, RelationshipRecord, ResourceLimits, ReviewCommentItem, ReviewItem, ReviewModelInput, ReviewPosition, ReviewRange, ReviewRevisionItem, SEARCH_MATCH_LIMIT, SEARCH_QUERY_MAX, SequentialIdentity, StoryScope, TOC_LEVEL_INDENT_TWIPS, TOC_MAX_BOOKMARKS_PER_REFRESH, TOC_MAX_ENTRIES, TOC_MAX_FIELD_NESTING, TOC_MAX_INSTRUCTION_CHARS, TOC_MAX_PAGE_PASSES, TREE_DOC_OP_KINDS, TWIPS_PER_POINT, TreeDocOp, TreeDocumentStore, TreeModelChange, TreeOpRejection, TreeOpResult, TreePackageStore, addComment, addPackageComment, applyEdits, applyTreeOp, assertLimitInvariants, assertValidId, assertValidQName, atomicFieldSpansOf, authoredProperties, beginOperation, bodyStoryRoot, bookmarkPairNodes, boundCustomXmlNodeIdOf, boundCustomXmlNodeIds, boundCustomXmlNodeIdsInPackage, buildTocContentControl, buildTocEntryParagraph, buildingBlockGalleryOf, buildingBlocksForControl, buildingBlocksOf, canonicalOoxmlFingerprint, canonicalize, cascadeEmptiedComments, collectNodeIds, collectReviewItems, collectRevisionSites, collectStoryParagraphs, commentItemsOf, commentPartNameOf, commentsExtendedPartNameOf, compareArtifacts, compareSemVer, containsCssFetch, contentTypesPartBytes, createNodeIdAllocator, customNodeBinding, customXmlDataParts, customXmlLabelXPath, customXmlNodes, customXmlPrefixMappings, datastoreItemIdFor, deleteCommentThread, deletePackageComments, deriveOoxmlIndexes, detectBodyTocs, diffSemanticDigests, digestPart, directParagraphMarkProperties, directParagraphProperties, drawingOpImpact, endOperation, escapeCssString, escapeXml, extractFragmentPackage, fieldAtomText, fieldOnOffAttribute, findCustomXmlDataPart, findDetectedToc, findNode, findOccurrences, fingerprint, fldCharType, fldSimpleInstr, fnv1a32, foldCase, formatOwnedRunIds, formattableRanges, formsProtectionEnabled, glossaryPartOf, hardBreakAttributes, hardBreakKind, hardBreakText, hasCommentPart, hasLegacyFormFieldData, hasNode, hashAuthored, indexStyles, inlineControlEndingAt, inlineControlStartingAt, insertChildren, insertPackageCustomNode, instrTextValue, isAuthorableRunProperty, isDangerousKey, isDrawingTreeDocOp, isEvaluableField, isFieldChrome, isFldChar, isFldCharNode, isFldSimple, isFldSimpleNode, isInertExecutable, isInstrText, isInstrTextNode, isLegalFldCharType, isPageBreakNode, isSearchableQuery, isStoryPart, isValidId, isValidNCName, isValidParaId, isValidQName, isWholeWord, linkRevisionReplies, locateSites, makeLimitCounter, materializeGlossaryPlaceholders, mergeFragmentIntoPackage, mergedFontProperty, mergedMultiSettingProperty, mergedParagraphMarkProperties, mergedProperties, mintParaId, mintedParagraphIdentityAttributes, nextCommentId, normalizeParagraphIdentity, nullRecord, ooxmlTreesEqual, paraIdOf, paragraphOffsetIndex, paragraphTextOf, parentNodeOf, parseSemVer, parseTocInstruction, planTocEntries, points, pointsToTwips, propertyContainer, readCustomXmlNode, readViewSettings, relationshipsOf, relsPartNameFor, removeNode, removePackageCustomNode, replaceChildren, replaceNode, replayFixture, resolve, resolveContentTypeOf, resolveTocRowHeadings, revisionItemsOf, runAddressRanges, runPropertyEdits, runsCovering, sanitizeHref, satisfies, scrubExport, sectionProtectsForms, segmentsOf, semanticDigest, serializeOoxmlPart, setCommentResolved, setPackageCommentResolved, stableHash, storyParagraphs, storyRootsOf, stylesPartOf, textboxStoriesInPart, toSafeRecord, tocEntryText, tocLeftIndentTwips, twips, twipsToPoints, usedParaIds, validateDrawingOp, validateFixture, validateOoxmlPart, validatePackageInvariants, validateTreeOp, w14RootPrefix, withContentTypeOverride, withCustomXmlDataPart, withCustomXmlNode, withExportedCustomNodes, withNewPart, withRelationship, withoutCustomXmlDataPart, withoutCustomXmlNode, withoutOrphanCustomXmlNodes, wrapTargetToAnchorSpec };
|
|
2682
|
+
export { ALL_FROZEN_IDS, AUTHORABLE_PARAGRAPH_PROPERTIES, AUTHORABLE_RUN_PROPERTIES, BoundedCounter, Budget, BudgetError, CANONICAL_MUTATION_ORIGINS, COMPARATORS, CUSTOM_NODE_XPATH_PREFIX, CUSTOM_XML_PROPS_REL, CUSTOM_XML_PROPS_TYPE, CUSTOM_XML_REL, CancellationController, CancellationError, CommentRecord, CommentThreadState, CustomNodeWriteResult, DANGEROUS_KEYS, DATASTORE_NAMESPACE_URI, DEFAULT_FORMATTING_DISPLAY_MODE, DEFAULT_VIEW_SETTINGS, DEPENDENCY_KEY_IDS, DangerousKeyError, DeterministicClock, DeterministicMemoryMeter, DrawingTreeDocOp, FIELD_ATOM_CHAR, ID_KINDS, INERT_EXECUTABLE_KINDS, ImageWrapTarget, ImpactClass, InsertCustomNodeWrite, LIMIT_KEYS, LIMIT_SPECS, LimitExceededError, MAX_STORY_SDT_NESTING, NON_CANONICAL_ORIGINS, ORIGIN_IDS, OmmlEquationProjection, OoxmlAttribute, OoxmlElement, OoxmlFldCharNode, OoxmlFldSimpleNode, OoxmlGenericElementNode, OoxmlHardBreakNode, OoxmlInstrTextNode, OoxmlInvariantIssue, OoxmlInvariantResult, OoxmlNode, OoxmlPackage, OoxmlParagraphNode, OoxmlPart, OoxmlProperty, PAGE_BREAK_CHAR, PortRegistry, PortResolutionError, PrefixAllocator, RESULT_IDS, RUNTIME_PORT_IDS, RegistryError, RelationshipRecord, ResourceLimits, ReviewCommentItem, ReviewItem, ReviewModelInput, ReviewPosition, ReviewRange, ReviewRevisionItem, SEARCH_MATCH_LIMIT, SEARCH_QUERY_MAX, SequentialIdentity, StoryScope, TOC_LEVEL_INDENT_TWIPS, TOC_MAX_BOOKMARKS_PER_REFRESH, TOC_MAX_ENTRIES, TOC_MAX_FIELD_NESTING, TOC_MAX_INSTRUCTION_CHARS, TOC_MAX_PAGE_PASSES, TREE_DOC_OP_KINDS, TWIPS_PER_POINT, TreeDocOp, TreeDocumentStore, TreeModelChange, TreeOpRejection, TreeOpResult, TreePackageStore, addComment, addPackageComment, applyEdits, applyTreeOp, assertLimitInvariants, assertValidId, assertValidQName, atomicFieldSpansOf, authoredProperties, beginOperation, bodyStoryRoot, bookmarkPairNodes, boundCustomXmlNodeIdOf, boundCustomXmlNodeIds, boundCustomXmlNodeIdsInPackage, buildTocContentControl, buildTocEntryParagraph, buildingBlockGalleryOf, buildingBlocksForControl, buildingBlocksOf, canonicalOoxmlFingerprint, canonicalize, cascadeEmptiedComments, collectNodeIds, collectReviewItems, collectRevisionSites, collectStoryParagraphs, commentItemsOf, commentPartNameOf, commentsExtendedPartNameOf, compareArtifacts, compareSemVer, containsCssFetch, contentTypesPartBytes, createNodeIdAllocator, customNodeBinding, customXmlDataParts, customXmlLabelXPath, customXmlNodes, customXmlPrefixMappings, datastoreItemIdFor, deleteCommentThread, deletePackageComments, deriveOoxmlIndexes, detectBodyTocs, diffSemanticDigests, digestPart, directParagraphMarkProperties, directParagraphProperties, displayMathAlignment, drawingOpImpact, endOperation, equationsOfAtom, escapeCssString, escapeXml, extractFragmentPackage, fieldAtomText, fieldOnOffAttribute, findCustomXmlDataPart, findDetectedToc, findNode, findOccurrences, fingerprint, fldCharType, fldSimpleInstr, fnv1a32, foldCase, formatOwnedRunIds, formattableRanges, formsProtectionEnabled, glossaryPartOf, hardBreakAttributes, hardBreakKind, hardBreakText, hasCommentPart, hasLegacyFormFieldData, hasNode, hashAuthored, indexStyles, inlineControlEndingAt, inlineControlStartingAt, insertChildren, insertPackageCustomNode, instrTextValue, isAuthorableRunProperty, isDangerousKey, isDrawingTreeDocOp, isEvaluableField, isFieldChrome, isFldChar, isFldCharNode, isFldSimple, isFldSimpleNode, isInertExecutable, isInstrText, isInstrTextNode, isLegalFldCharType, isOmmlDisplay, isOmmlEquationAtom, isPageBreakNode, isSearchableQuery, isStoryPart, isValidId, isValidNCName, isValidParaId, isValidQName, isWholeWord, linkRevisionReplies, locateSites, makeLimitCounter, materializeGlossaryPlaceholders, mergeFragmentIntoPackage, mergedFontProperty, mergedMultiSettingProperty, mergedParagraphMarkProperties, mergedProperties, mintParaId, mintedParagraphIdentityAttributes, nextCommentId, normalizeParagraphIdentity, nullRecord, ooxmlTreesEqual, paraIdOf, paragraphOffsetIndex, paragraphTextOf, parentNodeOf, parseSemVer, parseTocInstruction, planTocEntries, points, pointsToTwips, projectOmmlAtom, projectOmmlDisplay, propertyContainer, readCustomXmlNode, readTwipsMeasure, readViewSettings, relationshipsOf, relsPartNameFor, removeNode, removePackageCustomNode, replaceChildren, replaceNode, replayFixture, resolve, resolveContentTypeOf, resolveTocRowHeadings, revisionItemsOf, runAddressRanges, runPropertyEdits, runsCovering, sanitizeHref, satisfies, scrubExport, sectionProtectsForms, segmentsOf, semanticDigest, serializeOoxmlPart, setCommentResolved, setPackageCommentResolved, stableHash, storyParagraphs, storyRootsOf, stylesPartOf, textboxStoriesInPart, toSafeRecord, tocEntryText, tocLeftIndentTwips, twips, twipsToPoints, usedParaIds, validateDrawingOp, validateFixture, validateOoxmlPart, validatePackageInvariants, validateTreeOp, w14RootPrefix, withContentTypeOverride, withCustomXmlDataPart, withCustomXmlNode, withExportedCustomNodes, withNewPart, withRelationship, withoutCustomXmlDataPart, withoutCustomXmlNode, withoutOrphanCustomXmlNodes, wrapTargetToAnchorSpec };
|
|
2626
2683
|
export type { AddCommentRequest, AddCommentResult, AnchorSnapshot, AtomicFieldSpan, AuditPort, AuthorizationPort, BuildingBlock, BuildingBlockGalleryFilter, CancellationPhase, CancellationPort, CancellationToken, CapabilityId, ClockPort, CommentAnchorRequest, CommentDeletionOwner, ComparatorDescriptor, ComparatorMode, ComparatorName, ComparisonResult, ConformanceFixture, ContentItem, Contribution, CustomNodeBinding, CustomNodeExportPolicy, CustomNodeExportRequest, CustomNodeExportResult, CustomXmlDataPart, CustomXmlDataPartResult, CustomXmlNode, DetectedToc, DigestDifference, DocumentViewSettings, EditOptions, EncodedEnvelope, EnforcementPhase, ExternalResourceConsentPort, FeatureBundle, FixtureExpectation, FixtureOutcome, FixtureSource, FixtureStep, FldCharType, FontPort, FormattingDisplayMode, FormattingRevisionAuthorFilter, FragmentCoverage, FragmentExtractRejection, FragmentExtractResult, FragmentMergeRejection, FragmentMergeResult, HardBreakKind, HrefProjection, IdKind, IdentityPort, ImagePort, InertExecutableKind, InlineControlSpan, Json, LimitSpec, LimitUnit, LinkableReviewItem, ModelChangeSummary, OffsetSpan, OoxmlEditResult, OoxmlIndexes, OoxmlStoryKind, OoxmlStoryRoot, OperationContext, OperationInit, PackageCommentDelete, PackageInvariantCode, PackageInvariantIssue, PackageInvariantResult, ParagraphDigest, ParagraphIndexEntry, ParagraphOffsetIndex, PersistencePort, Points, RegistryErrorCode, ReplacementPolicy, ReplayOutcome, ReplayReport, ReplayStore, Reservation, ResolveOptions, ResolvedRegistry, ResourceAccountingPort, RunPropertyEdit, SchedulingPort, ScrubResult, Segment, SemVer, SemanticDigest, SetCommentResolvedResult, ShapingPort, StoryDigest, StoryIndexEntry, StyleIndexEntry, TextMatchOptions, TextOccurrence, TextOccurrences, TextboxStoryRoot, TocEntryPlan, TocInstruction, TocOutlineHeading, TransactionRevisionIds, TransportPort, Twips, ValidationResult };
|
package/dist/store.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{m as Budget,l as BudgetError,D as COMPARATORS,o as CancellationController,n as CancellationError,P as DEFAULT_MAX_EDITABLE_STORY_PARTS,r as DeterministicClock,y as DeterministicMemoryMeter,d as ID_KINDS,w as LIMIT_KEYS,v as LIMIT_SPECS,da as MAX_CUSTOM_NODE_LABEL_LENGTH,ca as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,M as MAX_FRAGMENT_DECODED_BYTES,q as PortRegistry,p as PortResolutionError,j as RegistryError,Da as SEARCH_MATCH_LIMIT,Ca as SEARCH_QUERY_MAX,s as SequentialIdentity,O as TreeDocumentStore,Q as TreePackageStore,W as addComment,$ as addPackageComment,N as applyFragmentPaste,z as assertLimitInvariants,f as assertValidId,t as beginOperation,A as canonicalize,za as collectReviewItems,ta as commentBodyText,ua as commentInitials,ya as commentItemsOf,Z as commentPartNameOf,_ as commentsExtendedPartNameOf,E as compareArtifacts,h as compareSemVer,ha as customNodePayloadsByControl,ia as customNodePayloadsOf,ba as deletePackageComments,u as endOperation,K as extractFragmentPackage,Ha as findOccurrences,F as fingerprint,oa as firstReviewRange,Ea as foldCase,Y as hasCommentPart,I as hashAuthored,La as headlessViewOfStore,ea as insertCustomNodeWrite,ja as insertPackageCustomNode,Ga as isSearchableQuery,e as isValidId,Fa as isWholeWord,Ba as linkRevisionReplies,va as locateSites,x as makeLimitCounter,Ia as materializeGlossaryPlaceholders,L as mergeFragmentIntoPackage,V as nextCommentId,Ka as openHeadlessDocument,g as parseSemVer,Ja as planRevisionBatch,fa as removeCustomNodeWrite,ka as removePackageCustomNode,H as replayFixture,k as resolve,ma as reviewItemKey,na as reviewItemRanges,xa as revisionItemsOf,i as satisfies,X as setCommentResolved,aa as setPackageCommentResolved,B as stableHash,ga as sweepCustomNodePayloads,G as validateFixture}from'./chunk-VE7YBFQD.js';export{Hg as ACCEPTED_PARAGRAPH_PROPERTIES,Gg as ACCEPTED_RUN_PROPERTIES,h as ALL_FROZEN_IDS,Ig as AUTHORABLE_PARAGRAPH_PROPERTIES,Jg as AUTHORABLE_RUN_PROPERTIES,p as BoundedCounter,c as CANONICAL_MUTATION_ORIGINS,Eb as CONTENT_CONTROL_ID_MAX,Wb as CONTENT_CONTROL_PROPERTY_ORDER,Ph as CUSTOM_NODE_XPATH_PREFIX,zh as CUSTOM_XML_PROPS_REL,Ah as CUSTOM_XML_PROPS_TYPE,yh as CUSTOM_XML_REL,G as DANGEROUS_KEYS,Bh as DATASTORE_NAMESPACE_URI,ag as DEFAULT_ENDNOTE_PROPERTIES,$f as DEFAULT_FOOTNOTE_PROPERTIES,Dg as DEFAULT_FORMATTING_DISPLAY_MODE,m as DEFAULT_IMAGE_RESOURCE_LIMITS,j as DEFAULT_LIMITS,ie as DEFAULT_OMML_LIMITS,Ud as DEFAULT_OOXML_PACKAGE_LIMITS,th as DEFAULT_VIEW_SETTINGS,Ra as DEFAULT_ZIP_LIMITS,g as DEPENDENCY_KEY_IDS,H as DangerousKeyError,ve as FIELD_ATOM_CHAR,i as HARD_CEILINGS,_c as HYPERLINK_RELATIONSHIP_TYPE,C as IMAGE_RELATIONSHIP_TYPE,l as IMAGE_RESOURCE_HARD_CEILINGS,fd as IMAGE_WRAP_TARGETS,S as INERT_EXECUTABLE_KINDS,o as LimitExceededError,Db as MAX_CONTENT_CONTROLS_PER_PART,Cb as MAX_CONTENT_CONTROL_NESTING,wc as MAX_NOTES_PER_PART,ng as MAX_NOTE_REFERENCE_PARTS,mg as MAX_NOTE_REFERENCE_SCAN,Bc as MAX_STORY_SDT_NESTING,ud as MAX_SVG_SNIFF_BYTES,d as NON_CANONICAL_ORIGINS,Zb as NOTE_ATOM_CHAR,bc as NOTE_CONTINUATION_SEPARATOR_ID,$b as NOTE_ID_MAX,_b as NOTE_ID_MIN,ac as NOTE_SEPARATOR_ID,Xf as NO_DOCUMENT_PROTECTION,rh as NO_TRACKING_SETTINGS,he as OFFICE_MATH_NAMESPACE_URI,Zc as OFFICE_RELATIONSHIP_NAMESPACE_URI,ya as OOXML_NODE_IDENTITY_RULES,b as ORIGIN_IDS,qb as PAGE_BREAK_CHAR,ca as PrefixAllocator,e as RESULT_IDS,f as RUNTIME_PORT_IDS,ij as TABLE_BORDER_STYLES,Cf as TOC_LEVEL_INDENT_TWIPS,Ue as TOC_MAX_BOOKMARKS_PER_REFRESH,Te as TOC_MAX_ENTRIES,Ve as TOC_MAX_FIELD_NESTING,Se as TOC_MAX_INSTRUCTION_CHARS,We as TOC_MAX_PAGE_PASSES,Fg as TREE_DOC_OP_KINDS,xf as TWIPS_PER_POINT,hh as W15_NAMESPACE_URI,fa as WML_NAMESPACE_URI,ha as XMLNS_NAMESPACE_URI,ga as XML_NAMESPACE_URI,Yb as allocateContentControlId,Id as allocateDrawingPropertyId,xc as allocateNoteId,Qa as applyEdits,_f as applyHeaderFooterLifecycleOp,ch as applyNoteLifecycleOp,Bj as applyTreeOp,t as asciiFold,ba as assertValidQName,Qe as atomicFieldSpansOf,vc as atomicNoteSpansOf,Tf as authorableHyperlinkTarget,gg as authoredDocumentEndnoteProperties,fg as authoredDocumentFootnoteProperties,dg as authoredEndnotePropertiesFromSectPr,cg as authoredFootnotePropertiesFromSectPr,Mg as authoredProperties,Fc as bodyStoryRoot,If as bookmarkPairNodes,Th as boundCustomXmlNodeIdOf,Rh as boundCustomXmlNodeIds,Sh as boundCustomXmlNodeIdsInPackage,wf as buildBookmarkIndex,A as buildContentTypeIndex,D as buildRelationshipSet,Ff as buildTocContentControl,Ef as buildTocEntryParagraph,Rf as buildingBlockGalleryOf,Sf as buildingBlocksForControl,Qf as buildingBlocksOf,ta as canonicalOoxmlFingerprint,dh as cascadeDeletedNoteReferences,qh as cascadeEmptiedComments,Z as childElements,Nc as collectFlowBlocks,Ga as collectNodeIds,qg as collectNoteReferences,sg as collectPackageNoteReferences,Fi as collectRevisionSites,oe as collectSectionPropertyNodes,Hc as collectStoryParagraphs,ih as commentAnchorsOfStory,kh as commentsOfPart,R as containsCssFetch,Ib as contentControlContentChildren,Mb as contentControlContentNodeOf,Lc as contentControlContentOf,Lb as contentControlEndPropertiesNodeOf,Pb as contentControlLevelOf,Kb as contentControlPropertiesNodeOf,Ob as contentControlPropertiesOf,Sb as contentControlTextOf,Qb as contentControlsIn,Yd as contentTypesPartBytes,Fd as createImageResourceCache,Ha as createNodeIdAllocator,og as createNoteReferenceScanBudget,sc as customMarkFollows,Qh as customNodeBinding,Eh as customXmlDataParts,Nh as customXmlLabelXPath,Ih as customXmlNodes,Oh as customXmlPrefixMappings,Ch as datastoreItemIdFor,Ti as deepParagraphOrderOfPart,nh as deleteCommentThread,te as deobfuscateFont,Tc as deriveOoxmlIndexes,Ze as detectBodyTocs,v as detectDuplicateNames,tg as diagnoseNoteReferences,Mf as diffSemanticDigests,Kf as digestPart,Og as directParagraphMarkProperties,Ng as directParagraphProperties,qj as drawingOpImpact,Uf as ensureHyperlinkRelationship,Nf as ensureListDefinition,Of as ensureNumberingLevel,le as equationExpressionToLinearMath,Q as escapeCssString,M as escapeXml,z as extensionKey,He as fieldAtomText,Ge as fieldOnOffAttribute,Rb as findContentControl,Fh as findCustomXmlDataPart,_e as findDetectedToc,Y as findElement,Ja as findNode,Ac as findNoteById,Jb as flattenContentControls,we as fldCharType,Fe as fldSimpleInstr,Za as fnv1a32,dc as formatNoteScopeId,Sg as formatOwnedRunIds,$g as formattableRanges,Xi as formsProtectionEnabled,Pf as glossaryPartOf,ub as hardBreakAttributes,rb as hardBreakKind,tb as hardBreakText,mh as hasAnyComment,vd as hasBoundedSvgRoot,Je as hasLegacyFormFieldData,Ia as hasNode,ad as hyperlinkAnchorOf,bd as hyperlinkRelationshipIdOf,cd as hyperlinkTargetOf,Dd as imageResourceLookupFor,Rc as indexStyles,uf as inlineControlEndingAt,vf as inlineControlStartingAt,Na as insertChildren,Ee as instrTextValue,Kg as isAuthorableRunProperty,Jc as isContentControl,Kc as isContentControlContent,Gb as isContentControlContentNode,Fb as isContentControlNode,Hb as isContentControlWrapper,ma as isContentRevisionKind,lc as isContinuationSeparatorNode,I as isDangerousKey,vj as isDrawingTreeDocOp,gc as isEndnotesNode,U as isEvaluableField,Ie as isFieldChrome,Ae as isFldChar,xe as isFldCharNode,De as isFldSimple,ze as isFldSimpleNode,fc as isFootnotesNode,Zf as isHeaderFooterLifecycleOp,$c as isHyperlinkNode,T as isInertExecutable,Be as isInstrText,ye as isInstrTextNode,jg as isLegalEndnotePosition,Re as isLegalFldCharType,kg as isLegalFootnotePosition,lg as isLegalNumRestart,pc as isNormalNote,uc as isNoteAtomNode,bh as isNoteLifecycleOp,hc as isNoteNode,jc as isNoteRefNode,ic as isNoteReferenceNode,sb as isPageBreakNode,qa as isRangeMarkerKind,kc as isSeparatorNode,Ec as isStoryPart,y as isValidMime,$ as isValidNCName,Xa as isValidParaId,aa as isValidQName,ci as legacyCheckboxFieldsOf,me as linearMathToOmml,Cd as liveDrawingReferenceCount,Ub as lockForbidsEdit,Vb as lockForbidsRemoval,Qg as mergedFontProperty,Tg as mergedMultiSettingProperty,Ug as mergedParagraphMarkProperties,Pg as mergedProperties,_a as mintParaId,cb as mintedParagraphIdentityAttributes,vg as normalNoteIds,eb as normalizeParagraphIdentity,r as normalizePartName,tc as noteAtomText,nc as noteIdOf,mc as noteKindOf,rc as noteRefKindOf,qc as noteReferenceKindOf,oc as noteTypeOf,yc as notesOf,ug as notesPartHasId,J as nullRecord,Kj as observeHistoryGroup,ua as ooxmlTreesEqual,Xb as orderedContentControlProperties,Ya as paraIdOf,qf as paragraphOffsetIndex,Si as paragraphOrderOfPart,Cj as paragraphTextOf,Ka as parentNodeOf,bg as parseAuthoredNoteProperties,Nb as parseContentControlId,ke as parseLinearMath,cc as parseNoteId,ec as parseNoteScopeId,Xe as parseTocInstruction,u as partNameKey,Hf as planTocEntries,zf as points,Bf as pointsToTwips,od as projectDrawing,je as projectOmmlEquation,Lg as propertyContainer,Jh as readCustomXmlNode,Yf as readDocumentProtection,ue as readEmbeddedFonts,ra as readOnOffChild,Vd as readOoxmlPackage,za as readOoxmlPart,sh as readTrackingSettings,uh as readViewSettings,X as readXml,Sa as readZip,Vf as relationshipTargetIn,Zd as relationshipsOf,$d as relsPartNameFor,Pa as removeNode,Ma as replaceChildren,Oa as replaceNode,Lj as reportHistoryGroup,Tb as resolveContentControlLock,B as resolveContentType,_d as resolveContentTypeOf,ig as resolveEndnoteProperties,hg as resolveFootnoteProperties,se as resolveHeaderFooterParts,re as resolveHeaderFooterPartsBySection,qe as resolveHeaderFooterResolutionBySection,F as resolveImageRelationship,n as resolveImageResourceLimits,w as resolveInternalTarget,k as resolveLimits,pg as resolveNotesPart,E as resolveRelationship,Jf as resolveTocRowHeadings,Rg as runAddressRanges,Zg as runPropertyEdits,ah as runsCovering,L as sanitizeHref,V as scrubExport,Yi as sectionProtectsForms,of as segmentsOf,Lf as semanticDigest,sa as serializeOoxmlPart,eg as settingsPartOf,wd as sniffImageMime,Gc as storyParagraphs,Dc as storyRootsOf,Sc as stylesPartOf,_ as textContent,ai as textFormFieldsOf,xh as textboxStoriesInPart,lh as threadStateOfPart,K as toSafeRecord,Gf as tocEntryText,Df as tocLeftIndentTwips,yf as twips,Af as twipsToPoints,$a as usedParaIds,rj as validateDrawingOp,x as validateExternalTarget,yd as validateGifHeader,zd as validateJpegHeader,wa as validateOoxmlPart,ge as validatePackageInvariants,xd as validatePngHeader,Bd as validateRasterHeader,Ij as validateTreeOp,ab as w14RootPrefix,Pc as walkAllStoryParagraphs,Qc as walkParagraphInline,Oc as walkStoryBlocks,Ld as withBinaryPart,ae as withContentTypeOverride,Gh as withCustomXmlDataPart,Kh as withCustomXmlNode,Md as withEmbeddedImage,Uh as withExportedCustomNodes,fe as withNewPart,Xd as withPart,ee as withRelationship,Hh as withoutCustomXmlDataPart,Lh as withoutCustomXmlNode,Mh as withoutOrphanCustomXmlNodes,Rd as withoutUnreferencedImagePart,uj as wrapTargetToAnchorSpec,Wd as writeOoxmlPackage,Ta as writeZip}from'./chunk-Z65JJLLF.js';
|
|
1
|
+
export{o as Budget,n as BudgetError,F as COMPARATORS,q as CancellationController,p as CancellationError,W as DEFAULT_MAX_EDITABLE_STORY_PARTS,t as DeterministicClock,A as DeterministicMemoryMeter,f as ID_KINDS,y as LIMIT_KEYS,x as LIMIT_SPECS,ka as MAX_CUSTOM_NODE_LABEL_LENGTH,ja as MAX_CUSTOM_NODE_PAYLOAD_LENGTH,T as MAX_FRAGMENT_DECODED_BYTES,s as PortRegistry,r as PortResolutionError,l as RegistryError,Sa as SEARCH_MATCH_LIMIT,Ra as SEARCH_QUERY_MAX,u as SequentialIdentity,V as TreeDocumentStore,X as TreePackageStore,ba as addComment,ga as addPackageComment,U as applyFragmentPaste,B as assertLimitInvariants,h as assertValidId,v as beginOperation,C as canonicalize,Oa as collectReviewItems,Ha as commentBodyText,Ja as commentInitials,Na as commentItemsOf,ea as commentPartNameOf,fa as commentsExtendedPartNameOf,G as compareArtifacts,j as compareSemVer,oa as customNodePayloadsByControl,pa as customNodePayloadsOf,ia as deletePackageComments,w as endOperation,R as extractFragmentPackage,Wa as findOccurrences,H as fingerprint,va as firstReviewRange,Ta as foldCase,da as hasCommentPart,K as hashAuthored,bb as headlessViewOfStore,la as insertCustomNodeWrite,qa as insertPackageCustomNode,Va as isSearchableQuery,g as isValidId,Ua as isWholeWord,Qa as linkRevisionReplies,Ka as locateSites,z as makeLimitCounter,Xa as materializeGlossaryPlaceholders,S as mergeFragmentIntoPackage,aa as nextCommentId,ab as openHeadlessDocument,i as parseSemVer,Ya as planRevisionBatch,ma as removeCustomNodeWrite,ra as removePackageCustomNode,J as replayFixture,m as resolve,ta as reviewItemKey,ua as reviewItemRanges,Ma as revisionItemsOf,k as satisfies,ca as setCommentResolved,ha as setPackageCommentResolved,D as stableHash,na as sweepCustomNodePayloads,I as validateFixture}from'./chunk-GWQJ5774.js';export{fh as ACCEPTED_PARAGRAPH_PROPERTIES,eh as ACCEPTED_RUN_PROPERTIES,h as ALL_FROZEN_IDS,gh as AUTHORABLE_PARAGRAPH_PROPERTIES,hh as AUTHORABLE_RUN_PROPERTIES,p as BoundedCounter,c as CANONICAL_MUTATION_ORIGINS,Ab as CONTENT_CONTROL_ID_MAX,Sb as CONTENT_CONTROL_PROPERTY_ORDER,ni as CUSTOM_NODE_XPATH_PREFIX,Zh as CUSTOM_XML_PROPS_REL,_h as CUSTOM_XML_PROPS_TYPE,Yh as CUSTOM_XML_REL,G as DANGEROUS_KEYS,$h as DATASTORE_NAMESPACE_URI,wg as DEFAULT_ENDNOTE_PROPERTIES,vg as DEFAULT_FOOTNOTE_PROPERTIES,bh as DEFAULT_FORMATTING_DISPLAY_MODE,m as DEFAULT_IMAGE_RESOURCE_LIMITS,j as DEFAULT_LIMITS,Ce as DEFAULT_OMML_LIMITS,me as DEFAULT_OOXML_PACKAGE_LIMITS,Th as DEFAULT_VIEW_SETTINGS,Bd as DEFAULT_ZIP_LIMITS,g as DEPENDENCY_KEY_IDS,H as DangerousKeyError,Ve as FIELD_ATOM_CHAR,i as HARD_CEILINGS,id as HYPERLINK_RELATIONSHIP_TYPE,C as IMAGE_RELATIONSHIP_TYPE,l as IMAGE_RESOURCE_HARD_CEILINGS,pd as IMAGE_WRAP_TARGETS,S as INERT_EXECUTABLE_KINDS,o as LimitExceededError,zb as MAX_CONTENT_CONTROLS_PER_PART,yb as MAX_CONTENT_CONTROL_NESTING,sc as MAX_NOTES_PER_PART,Jg as MAX_NOTE_REFERENCE_PARTS,Ig as MAX_NOTE_REFERENCE_SCAN,xc as MAX_STORY_SDT_NESTING,Od as MAX_SVG_SNIFF_BYTES,d as NON_CANONICAL_ORIGINS,Vb as NOTE_ATOM_CHAR,Zb as NOTE_CONTINUATION_SEPARATOR_ID,Xb as NOTE_ID_MAX,Wb as NOTE_ID_MIN,Yb as NOTE_SEPARATOR_ID,rg as NO_DOCUMENT_PROTECTION,Rh as NO_TRACKING_SETTINGS,Be as OFFICE_MATH_NAMESPACE_URI,hd as OFFICE_RELATIONSHIP_NAMESPACE_URI,za as OOXML_NODE_IDENTITY_RULES,b as ORIGIN_IDS,cb as PAGE_BREAK_CHAR,ca as PrefixAllocator,e as RESULT_IDS,f as RUNTIME_PORT_IDS,Lj as TABLE_BORDER_STYLES,Yf as TOC_LEVEL_INDENT_TWIPS,sf as TOC_MAX_BOOKMARKS_PER_REFRESH,rf as TOC_MAX_ENTRIES,tf as TOC_MAX_FIELD_NESTING,qf as TOC_MAX_INSTRUCTION_CHARS,uf as TOC_MAX_PAGE_PASSES,dh as TREE_DOC_OP_KINDS,Vc as TWIPS_PER_POINT,Hh as W15_NAMESPACE_URI,fa as WML_NAMESPACE_URI,ha as XMLNS_NAMESPACE_URI,ga as XML_NAMESPACE_URI,Ub as allocateContentControlId,ae as allocateDrawingPropertyId,tc as allocateNoteId,Ra as applyEdits,ug as applyHeaderFooterLifecycleOp,Ch as applyNoteLifecycleOp,dk as applyTreeOp,t as asciiFold,ba as assertValidQName,of as atomicFieldSpansOf,rc as atomicNoteSpansOf,ng as authorableHyperlinkTarget,Cg as authoredDocumentEndnoteProperties,Bg as authoredDocumentFootnoteProperties,zg as authoredEndnotePropertiesFromSectPr,yg as authoredFootnotePropertiesFromSectPr,kh as authoredProperties,Bc as bodyStoryRoot,cg as bookmarkPairNodes,ri as boundCustomXmlNodeIdOf,pi as boundCustomXmlNodeIds,qi as boundCustomXmlNodeIdsInPackage,Xf as buildBookmarkIndex,A as buildContentTypeIndex,D as buildRelationshipSet,$f as buildTocContentControl,_f as buildTocEntryParagraph,lg as buildingBlockGalleryOf,mg as buildingBlocksForControl,kg as buildingBlocksOf,ua as canonicalOoxmlFingerprint,Dh as cascadeDeletedNoteReferences,Qh as cascadeEmptiedComments,Z as childElements,Jc as collectFlowBlocks,Ha as collectNodeIds,Mg as collectNoteReferences,Og as collectPackageNoteReferences,ej as collectRevisionSites,Oe as collectSectionPropertyNodes,Dc as collectStoryParagraphs,Ih as commentAnchorsOfStory,Kh as commentsOfPart,R as containsCssFetch,Eb as contentControlContentChildren,Ib as contentControlContentNodeOf,Hc as contentControlContentOf,Hb as contentControlEndPropertiesNodeOf,Lb as contentControlLevelOf,Gb as contentControlPropertiesNodeOf,Kb as contentControlPropertiesOf,Ob as contentControlTextOf,Mb as contentControlsIn,qe as contentTypesPartBytes,Zd as createImageResourceCache,Ia as createNodeIdAllocator,Kg as createNoteReferenceScanBudget,oc as customMarkFollows,oi as customNodeBinding,ci as customXmlDataParts,li as customXmlLabelXPath,gi as customXmlNodes,mi as customXmlPrefixMappings,ai as datastoreItemIdFor,uj as deepParagraphOrderOfPart,Nh as deleteCommentThread,Te as deobfuscateFont,Pc as deriveOoxmlIndexes,xf as detectBodyTocs,v as detectDuplicateNames,Pg as diagnoseNoteReferences,gg as diffSemanticDigests,eg as digestPart,mh as directParagraphMarkProperties,lh as directParagraphProperties,Le as displayMathAlignment,Tj as drawingOpImpact,og as ensureHyperlinkRelationship,hg as ensureListDefinition,ig as ensureNumberingLevel,Fe as equationExpressionToLinearMath,Je as equationsOfAtom,Q as escapeCssString,M as escapeXml,z as extensionKey,ff as fieldAtomText,ef as fieldOnOffAttribute,Nb as findContentControl,di as findCustomXmlDataPart,yf as findDetectedToc,Y as findElement,Ka as findNode,wc as findNoteById,Fb as flattenContentControls,We as fldCharType,df as fldSimpleInstr,jb as fnv1a32,$b as formatNoteScopeId,qh as formatOwnedRunIds,zh as formattableRanges,yj as formsProtectionEnabled,jg as glossaryPartOf,gb as hardBreakAttributes,db as hardBreakKind,fb as hardBreakText,Mh as hasAnyComment,Pd as hasBoundedSvgRoot,hf as hasLegacyFormFieldData,Ja as hasNode,kd as hyperlinkAnchorOf,ld as hyperlinkRelationshipIdOf,md as hyperlinkTargetOf,Xd as imageResourceLookupFor,Nc as indexStyles,Vf as inlineControlEndingAt,Wf as inlineControlStartingAt,Oa as insertChildren,cf as instrTextValue,ih as isAuthorableRunProperty,Fc as isContentControl,Gc as isContentControlContent,Cb as isContentControlContentNode,Bb as isContentControlNode,Db as isContentControlWrapper,na as isContentRevisionKind,hc as isContinuationSeparatorNode,I as isDangerousKey,Yj as isDrawingTreeDocOp,cc as isEndnotesNode,U as isEvaluableField,gf as isFieldChrome,_e as isFldChar,Xe as isFldCharNode,bf as isFldSimple,Ze as isFldSimpleNode,bc as isFootnotesNode,tg as isHeaderFooterLifecycleOp,jd as isHyperlinkNode,T as isInertExecutable,$e as isInstrText,Ye as isInstrTextNode,Fg as isLegalEndnotePosition,pf as isLegalFldCharType,Gg as isLegalFootnotePosition,Hg as isLegalNumRestart,lc as isNormalNote,qc as isNoteAtomNode,Bh as isNoteLifecycleOp,dc as isNoteNode,fc as isNoteRefNode,ec as isNoteReferenceNode,He as isOmmlDisplay,Ie as isOmmlEquationAtom,eb as isPageBreakNode,ra as isRangeMarkerKind,gc as isSeparatorNode,Ac as isStoryPart,y as isValidMime,$ as isValidNCName,hb as isValidParaId,aa as isValidQName,Ci as legacyCheckboxFieldsOf,Ge as linearMathToOmml,Wd as liveDrawingReferenceCount,Qb as lockForbidsEdit,Rb as lockForbidsRemoval,oh as mergedFontProperty,rh as mergedMultiSettingProperty,sh as mergedParagraphMarkProperties,nh as mergedProperties,kb as mintParaId,ob as mintedParagraphIdentityAttributes,Rg as normalNoteIds,qb as normalizeParagraphIdentity,r as normalizePartName,pc as noteAtomText,jc as noteIdOf,ic as noteKindOf,nc as noteRefKindOf,mc as noteReferenceKindOf,kc as noteTypeOf,uc as notesOf,Qg as notesPartHasId,J as nullRecord,mk as observeHistoryGroup,va as ooxmlTreesEqual,Tb as orderedContentControlProperties,ib as paraIdOf,Rf as paragraphOffsetIndex,tj as paragraphOrderOfPart,ek as paragraphTextOf,La as parentNodeOf,xg as parseAuthoredNoteProperties,Jb as parseContentControlId,Ee as parseLinearMath,_b as parseNoteId,ac as parseNoteScopeId,vf as parseTocInstruction,u as partNameKey,bg as planTocEntries,Xc as points,Zc as pointsToTwips,yd as projectDrawing,Me as projectOmmlAtom,Ke as projectOmmlDisplay,De as projectOmmlEquation,jh as propertyContainer,hi as readCustomXmlNode,sg as readDocumentProtection,Ue as readEmbeddedFonts,sa as readOnOffChild,ne as readOoxmlPackage,Aa as readOoxmlPart,Sh as readTrackingSettings,_c as readTwipsMeasure,Uh as readViewSettings,X as readXml,Cd as readZip,pg as relationshipTargetIn,re as relationshipsOf,te as relsPartNameFor,Qa as removeNode,Na as replaceChildren,Pa as replaceNode,nk as reportHistoryGroup,Pb as resolveContentControlLock,B as resolveContentType,se as resolveContentTypeOf,Eg as resolveEndnoteProperties,Dg as resolveFootnoteProperties,Se as resolveHeaderFooterParts,Re as resolveHeaderFooterPartsBySection,Qe as resolveHeaderFooterResolutionBySection,F as resolveImageRelationship,n as resolveImageResourceLimits,w as resolveInternalTarget,k as resolveLimits,Lg as resolveNotesPart,E as resolveRelationship,dg as resolveTocRowHeadings,ph as runAddressRanges,xh as runPropertyEdits,Ah as runsCovering,L as sanitizeHref,V as scrubExport,zj as sectionProtectsForms,Pf as segmentsOf,fg as semanticDigest,ta as serializeOoxmlPart,Ag as settingsPartOf,Qd as sniffImageMime,Cc as storyParagraphs,zc as storyRootsOf,Oc as stylesPartOf,_ as textContent,Ai as textFormFieldsOf,Xh as textboxStoriesInPart,Lh as threadStateOfPart,K as toSafeRecord,ag as tocEntryText,Zf as tocLeftIndentTwips,Wc as twips,Yc as twipsToPoints,lb as usedParaIds,Uj as validateDrawingOp,x as validateExternalTarget,Sd as validateGifHeader,Td as validateJpegHeader,xa as validateOoxmlPart,Ae as validatePackageInvariants,Rd as validatePngHeader,Vd as validateRasterHeader,kk as validateTreeOp,mb as w14RootPrefix,Lc as walkAllStoryParagraphs,Mc as walkParagraphInline,Kc as walkStoryBlocks,de as withBinaryPart,ue as withContentTypeOverride,ei as withCustomXmlDataPart,ii as withCustomXmlNode,ee as withEmbeddedImage,si as withExportedCustomNodes,ze as withNewPart,pe as withPart,ye as withRelationship,fi as withoutCustomXmlDataPart,ji as withoutCustomXmlNode,ki as withoutOrphanCustomXmlNodes,je as withoutUnreferencedImagePart,Xj as wrapTargetToAnchorSpec,oe as writeOoxmlPackage,Dd as writeZip}from'./chunk-UMRSBLO7.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SupportedImageMime, a as ImageDecodePort } from './image-resources-
|
|
2
|
-
import { Q as OoxmlPackage, O as OoxmlPart, N as OoxmlNode, Z as OoxmlElement, at as OoxmlParagraphNode, au as OoxmlNoteNode, av as OoxmlContinuationSeparatorNode, aw as OoxmlEndnotesNode, ax as OoxmlFootnotesNode, ay as OoxmlNoteRefNode, az as OoxmlNoteReferenceNode, aA as OoxmlSeparatorNode, a7 as RevisionAttributionInput, aB as DrawingTreeDocOp, aC as ImpactClass, W as TreeDocOp, a5 as TreeOpRejection } from './types-barrel-
|
|
1
|
+
import { S as SupportedImageMime, a as ImageDecodePort } from './image-resources-BDFxcu7W.js';
|
|
2
|
+
import { Q as OoxmlPackage, O as OoxmlPart, N as OoxmlNode, Z as OoxmlElement, at as OoxmlParagraphNode, au as OoxmlNoteNode, av as OoxmlContinuationSeparatorNode, aw as OoxmlEndnotesNode, ax as OoxmlFootnotesNode, ay as OoxmlNoteRefNode, az as OoxmlNoteReferenceNode, aA as OoxmlSeparatorNode, a7 as RevisionAttributionInput, aB as DrawingTreeDocOp, aC as ImpactClass, W as TreeDocOp, a5 as TreeOpRejection } from './types-barrel-BFKR8Pzp.js';
|
|
3
3
|
|
|
4
4
|
/** A freshly allocated drawing property id, or the reason one could not be minted. */
|
|
5
5
|
type DrawingPropertyIdResult = {
|
|
@@ -1178,4 +1178,4 @@ type FragmentPasteResult = (Extract<PackageTransactResult, {
|
|
|
1178
1178
|
declare function applyFragmentPaste(store: TreePackageStore, scope: StoryScope, input: FragmentPasteInput): FragmentPasteResult;
|
|
1179
1179
|
|
|
1180
1180
|
export { NOTE_ID_MIN as B, DEFAULT_MAX_EDITABLE_STORY_PARTS as D, NOTE_SEPARATOR_ID as E, MAX_FRAGMENT_DECODED_BYTES as M, TreePackageStore as T, allocateDrawingPropertyId as a3, allocateNoteId as a4, applyFragmentPaste as a5, applyHeaderFooterLifecycleOp as a6, applyNoteLifecycleOp as a7, atomicNoteSpansOf as a8, cascadeDeletedNoteReferences as a9, notesOf as aA, notesPartHasId as aB, observeHistoryGroup as aC, parseNoteId as aD, parseNoteScopeId as aE, resolveHeaderFooterParts as aF, resolveHeaderFooterPartsBySection as aG, resolveHeaderFooterResolutionBySection as aH, resolveNotesPart as aI, withBinaryPart as aJ, withEmbeddedImage as aK, withoutUnreferencedImagePart as aL, collectNoteReferences as aa, collectPackageNoteReferences as ab, collectSectionPropertyNodes as ac, createNoteReferenceScanBudget as ad, customMarkFollows as ae, diagnoseNoteReferences as af, findNoteById as ag, formatNoteScopeId as ah, isContinuationSeparatorNode as ai, isEndnotesNode as aj, isFootnotesNode as ak, isHeaderFooterLifecycleOp as al, isNormalNote as am, isNoteAtomNode as an, isNoteLifecycleOp as ao, isNoteNode as ap, isNoteRefNode as aq, isNoteReferenceNode as ar, isSeparatorNode as as, normalNoteIds as at, noteAtomText as au, noteIdOf as av, noteKindOf as aw, noteRefKindOf as ax, noteReferenceKindOf as ay, noteTypeOf as az, TreeDocumentStore as f, reportHistoryGroup as r, MAX_NOTES_PER_PART as u, MAX_NOTE_REFERENCE_PARTS as v, MAX_NOTE_REFERENCE_SCAN as w, NOTE_ATOM_CHAR as x, NOTE_CONTINUATION_SEPARATOR_ID as y, NOTE_ID_MAX as z };
|
|
1181
|
-
export type { TreePackageStoreOptions as $, ApplyImagePropertiesInput as A, CascadeDeletedNoteReferencesOptions as C, FragmentPasteInput as F, NoteDiagnostic as G,
|
|
1181
|
+
export type { TreePackageStoreOptions as $, ApplyImagePropertiesInput as A, CascadeDeletedNoteReferencesOptions as C, FragmentPasteInput as F, NoteDiagnostic as G, HeaderFooterParts as H, InsertImageInput as I, NoteDiagnosticCode as J, NoteLifecycleImpact as K, NoteLifecycleOp as L, NoteKind as N, NoteLifecycleOptions as O, NoteLifecycleRejection as P, NoteLifecycleResult as Q, ReplaceImageOptions as R, StoryScope as S, NoteReferenceHit as U, NoteReferenceScanBudget as V, NoteType as W, PackageTransactResult as X, RemotePackageAttribution as Y, StoryResolveResult as Z, TreeDocumentStoreOptions as _, StoryTargetRejection as a, TreeStoryRef as a0, TransactResult as a1, TransactionContext as a2, HeaderFooterSectionResolution as b, HeaderFooterVariant as c, HistoryGroup as d, TreeModelChange as e, SelectionMark as g, TransactOptions as h, ImageIntentResult as i, FragmentPasteResult as j, AtomicNoteSpan as k, DrawingPropertyIdResult as l, HeaderFooterKind as m, HeaderFooterLifecycleImpact as n, HeaderFooterLifecycleOp as o, HeaderFooterLifecycleRejection as p, HeaderFooterLifecycleResult as q, HeaderFooterSlotMeta as s, HistoryCaptureKind as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as StoryScope, g as SelectionMark, h as TransactOptions, a as StoryTargetRejection,
|
|
2
|
-
import { W as TreeDocOp, O as OoxmlPart, N as OoxmlNode, Q as OoxmlPackage, Z as OoxmlElement, a as ReviewItem, a7 as RevisionAttributionInput } from './types-barrel-
|
|
3
|
-
import { S as SupportedImageMime, a as ImageDecodePort } from './image-resources-
|
|
4
|
-
import { D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, a as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind } from './custom-node-writes-
|
|
5
|
-
import { H as HeadlessDocumentView, D as DocumentProperties } from './headless-document-view-
|
|
1
|
+
import { S as StoryScope, g as SelectionMark, h as TransactOptions, a as StoryTargetRejection, e as TreeModelChange, H as HeaderFooterParts, b as HeaderFooterSectionResolution, I as InsertImageInput, i as ImageIntentResult, R as ReplaceImageOptions, A as ApplyImagePropertiesInput, F as FragmentPasteInput, j as FragmentPasteResult } from './tree-package-fragment-DYZIk1rY.js';
|
|
2
|
+
import { W as TreeDocOp, O as OoxmlPart, N as OoxmlNode, Q as OoxmlPackage, Z as OoxmlElement, a as ReviewItem, a7 as RevisionAttributionInput } from './types-barrel-BFKR8Pzp.js';
|
|
3
|
+
import { S as SupportedImageMime, a as ImageDecodePort } from './image-resources-BDFxcu7W.js';
|
|
4
|
+
import { D as DocumentTrackingSettings, I as InsertCustomNodeWrite, C as CustomNodeWriteResult, a as CustomNodeSweepOutcome, E as EmbeddedFont, B as BookmarkIndex, L as ListKind } from './custom-node-writes-Vzpq9I8_.js';
|
|
5
|
+
import { H as HeadlessDocumentView, D as DocumentProperties } from './headless-document-view-ICYqNkQ1.js';
|
|
6
6
|
import { Node } from 'prosemirror-model';
|
|
7
7
|
import { CollaborationDocumentPort } from './collaboration/replication.js';
|
|
8
8
|
import { V as ViewScope } from './editor-scope-OHPwVQ5l.js';
|
|
@@ -1307,7 +1307,11 @@ interface ZipLimits {
|
|
|
1307
1307
|
readonly maxEntries: number;
|
|
1308
1308
|
/** Max total UNCOMPRESSED bytes across the archive. */
|
|
1309
1309
|
readonly maxTotalBytes: number;
|
|
1310
|
-
/**
|
|
1310
|
+
/**
|
|
1311
|
+
* Max ratio of the archive's total declared uncompressed bytes to the archive's own byte
|
|
1312
|
+
* length (zip-bomb guard). Applies once that total exceeds 8 MiB, so a small archive is
|
|
1313
|
+
* never refused for compressing well.
|
|
1314
|
+
*/
|
|
1311
1315
|
readonly maxRatio?: number;
|
|
1312
1316
|
}
|
|
1313
1317
|
/** The archive caps in force when a host configures none. Conservative and finite. */
|
|
@@ -1323,11 +1327,16 @@ type ZipReadResult = {
|
|
|
1323
1327
|
readonly limit?: 'zip.maxTotalBytes' | 'zip.maxRatio';
|
|
1324
1328
|
};
|
|
1325
1329
|
/**
|
|
1326
|
-
* Inflate a ZIP archive with bounds + OPC name normalization. Entry name, count,
|
|
1327
|
-
*
|
|
1328
|
-
*
|
|
1329
|
-
*
|
|
1330
|
-
*
|
|
1330
|
+
* Inflate a ZIP archive with bounds + OPC name normalization. Entry name, count, archive
|
|
1331
|
+
* ratio, and total-uncompressed-size limits are enforced BEFORE each entry is decompressed
|
|
1332
|
+
* (via fflate's pre-inflation filter), so a zip bomb or a traversal name is rejected without
|
|
1333
|
+
* ever being inflated. Keys are canonical part names.
|
|
1334
|
+
*
|
|
1335
|
+
* The budgets count each entry's DECLARED sizes, and the declared size is also a hard cap on
|
|
1336
|
+
* what the entry may produce: fflate inflates into a buffer of exactly `originalSize` bytes
|
|
1337
|
+
* and never grows it, so an entry whose stream holds more than it declares is truncated (or
|
|
1338
|
+
* refused as `inflate-error`), never expanded past its budget. A stored entry is copied at
|
|
1339
|
+
* its compressed size, so the larger of its two declared sizes is what counts.
|
|
1331
1340
|
*/
|
|
1332
1341
|
declare function readZip(bytes: Uint8Array, limits?: ZipLimits): ZipReadResult;
|
|
1333
1342
|
/** Deflate a set of canonical-part-name -> bytes into a ZIP archive. Every part name
|
|
@@ -1336,6 +1345,101 @@ declare function readZip(bytes: Uint8Array, limits?: ZipLimits): ZipReadResult;
|
|
|
1336
1345
|
* never be smuggled into a ZIP entry (write-side path-traversal guard). */
|
|
1337
1346
|
declare function writeZip(entries: ReadonlyMap<string, Uint8Array>): Uint8Array;
|
|
1338
1347
|
|
|
1348
|
+
type ShapeSchemeColorResolver = (scheme: string) => string | null;
|
|
1349
|
+
type ShapeStyleMatrixResolver = (kind: 'fill' | 'line', index: number) => OoxmlElement | null;
|
|
1350
|
+
/**
|
|
1351
|
+
* The renderable subset of a `wps:wsp` non-picture graphic, or of one bounded `wpg:wgp`
|
|
1352
|
+
* group of them: closed polygon subpaths (`a:custGeom` with move/line/close/cubicBezTo
|
|
1353
|
+
* verbs, or a supported `a:prstGeom`) with a solid fill and/or stroke. The colour may come
|
|
1354
|
+
* from `a:srgbClr` or from the theme, through `a:schemeClr` or a `wps:style` matrix
|
|
1355
|
+
* reference. Anything richer (gradient and picture fills, text bodies, rotation, a nested
|
|
1356
|
+
* group) projects as `null` and paints the labelled placeholder instead.
|
|
1357
|
+
*/
|
|
1358
|
+
interface VectorShapeProjection {
|
|
1359
|
+
/** The drawing extent that frames the subpath coordinate space. */
|
|
1360
|
+
readonly extentEmu: Readonly<{
|
|
1361
|
+
cx: number;
|
|
1362
|
+
cy: number;
|
|
1363
|
+
}>;
|
|
1364
|
+
/**
|
|
1365
|
+
* Every component's subpath polygons, flattened, in extent-EMU space; fill rule is
|
|
1366
|
+
* even-odd. Painting reads `components`, which keeps each polygon with its own colours;
|
|
1367
|
+
* this stays the geometry summary (bounds, hit tests, wrap holes).
|
|
1368
|
+
*/
|
|
1369
|
+
readonly subpathsEmu: readonly (readonly Readonly<{
|
|
1370
|
+
x: number;
|
|
1371
|
+
y: number;
|
|
1372
|
+
}>[])[];
|
|
1373
|
+
/**
|
|
1374
|
+
* Validated 6-digit sRGB hex (no `#`) of the one component, or null. A group of two or
|
|
1375
|
+
* more components has no single fill, so this is null there as well: null means "no one
|
|
1376
|
+
* fill to name", not "nothing is filled". Read `components` to paint.
|
|
1377
|
+
*/
|
|
1378
|
+
readonly fillHex: string | null;
|
|
1379
|
+
readonly fillAlpha?: number;
|
|
1380
|
+
/** As `fillHex`, for the stroke: the one component's stroke, else null. */
|
|
1381
|
+
readonly strokeHex: string | null;
|
|
1382
|
+
readonly strokeAlpha?: number;
|
|
1383
|
+
/** The one component's stroke width in EMU; 0 when absent or when grouped. */
|
|
1384
|
+
readonly strokeWidthEmu: number;
|
|
1385
|
+
/** Independently styled paths, always non-empty. A direct shape has one component. */
|
|
1386
|
+
readonly components: readonly VectorShapeComponent[];
|
|
1387
|
+
}
|
|
1388
|
+
interface VectorShapeComponent {
|
|
1389
|
+
readonly subpathsEmu: readonly (readonly Readonly<{
|
|
1390
|
+
x: number;
|
|
1391
|
+
y: number;
|
|
1392
|
+
}>[])[];
|
|
1393
|
+
/** Authored close commands; omitted by older consumers means closed polygons. */
|
|
1394
|
+
readonly subpathsClosed?: readonly boolean[];
|
|
1395
|
+
/** Filled line-end polygons in the same projected coordinate space. */
|
|
1396
|
+
readonly arrowheadsEmu?: readonly (readonly Readonly<{
|
|
1397
|
+
x: number;
|
|
1398
|
+
y: number;
|
|
1399
|
+
}>[])[];
|
|
1400
|
+
readonly fillHex: string | null;
|
|
1401
|
+
readonly fillAlpha: number;
|
|
1402
|
+
readonly strokeHex: string | null;
|
|
1403
|
+
readonly strokeAlpha: number;
|
|
1404
|
+
readonly strokeWidthEmu: number;
|
|
1405
|
+
/**
|
|
1406
|
+
* The outline sits inside the closed geometry (`a:ln algn="in"`): painters draw it at twice
|
|
1407
|
+
* its width clipped to the path, so the authored width stays inside the shape and adds no
|
|
1408
|
+
* reach past the extent. Set only for a closed outline with area.
|
|
1409
|
+
*/
|
|
1410
|
+
readonly strokeInset?: boolean;
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
* The story carried by a `wps:wsp` text box (`wps:txbx` → `w:txbxContent`).
|
|
1414
|
+
*
|
|
1415
|
+
* The projection captures only the story root and the shape chrome reads; it never walks the
|
|
1416
|
+
* story content, so the per-drawing element budget is not spent on paragraphs. Layout collects
|
|
1417
|
+
* blocks from `content` under its own caps.
|
|
1418
|
+
*/
|
|
1419
|
+
interface TextboxStoryProjection {
|
|
1420
|
+
/** Canonical node id of the `w:txbxContent` element. */
|
|
1421
|
+
readonly contentNodeId: string;
|
|
1422
|
+
/** The `w:txbxContent` element itself; treated as an opaque story root here. */
|
|
1423
|
+
readonly content: OoxmlElement;
|
|
1424
|
+
/** `wps:bodyPr` insets with the OOXML defaults (91440 EMU l/r, 45720 EMU t/b) when absent. */
|
|
1425
|
+
readonly insetsEmu: Readonly<{
|
|
1426
|
+
top: number;
|
|
1427
|
+
right: number;
|
|
1428
|
+
bottom: number;
|
|
1429
|
+
left: number;
|
|
1430
|
+
}>;
|
|
1431
|
+
/** `wps:bodyPr/@anchor` collapsed to the three renderable positions; default top. */
|
|
1432
|
+
readonly verticalAnchor: 'top' | 'center' | 'bottom';
|
|
1433
|
+
/** Autofit child of `wps:bodyPr`; extent stays authoritative either way (diagnostic only). */
|
|
1434
|
+
readonly autofit: 'none' | 'shape' | 'normal';
|
|
1435
|
+
/** Solid fill of the hosting shape, painted behind the story; null for no fill. */
|
|
1436
|
+
readonly fillHex: string | null;
|
|
1437
|
+
/** Solid outline of the hosting shape; null for no outline. */
|
|
1438
|
+
readonly strokeHex: string | null;
|
|
1439
|
+
/** Outline width in EMU; 0 when absent. */
|
|
1440
|
+
readonly strokeWidthEmu: number;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1339
1443
|
/** Only generated, escaped SVG and relationship slots; never authored markup. */
|
|
1340
1444
|
type LegacyGraphicFragment = string | Readonly<{
|
|
1341
1445
|
relationshipId: string;
|
|
@@ -1455,101 +1559,6 @@ interface DrawingDiagnostic {
|
|
|
1455
1559
|
readonly detail: string | null;
|
|
1456
1560
|
}
|
|
1457
1561
|
|
|
1458
|
-
type ShapeSchemeColorResolver = (scheme: string) => string | null;
|
|
1459
|
-
type ShapeStyleMatrixResolver = (kind: 'fill' | 'line', index: number) => OoxmlElement | null;
|
|
1460
|
-
/**
|
|
1461
|
-
* The renderable subset of a `wps:wsp` non-picture graphic, or of one bounded `wpg:wgp`
|
|
1462
|
-
* group of them: closed polygon subpaths (`a:custGeom` with move/line/close/cubicBezTo
|
|
1463
|
-
* verbs, or a supported `a:prstGeom`) with a solid fill and/or stroke. The colour may come
|
|
1464
|
-
* from `a:srgbClr` or from the theme, through `a:schemeClr` or a `wps:style` matrix
|
|
1465
|
-
* reference. Anything richer (gradient and picture fills, text bodies, rotation, a nested
|
|
1466
|
-
* group) projects as `null` and paints the labelled placeholder instead.
|
|
1467
|
-
*/
|
|
1468
|
-
interface VectorShapeProjection {
|
|
1469
|
-
/** The drawing extent that frames the subpath coordinate space. */
|
|
1470
|
-
readonly extentEmu: Readonly<{
|
|
1471
|
-
cx: number;
|
|
1472
|
-
cy: number;
|
|
1473
|
-
}>;
|
|
1474
|
-
/**
|
|
1475
|
-
* Every component's subpath polygons, flattened, in extent-EMU space; fill rule is
|
|
1476
|
-
* even-odd. Painting reads `components`, which keeps each polygon with its own colours;
|
|
1477
|
-
* this stays the geometry summary (bounds, hit tests, wrap holes).
|
|
1478
|
-
*/
|
|
1479
|
-
readonly subpathsEmu: readonly (readonly Readonly<{
|
|
1480
|
-
x: number;
|
|
1481
|
-
y: number;
|
|
1482
|
-
}>[])[];
|
|
1483
|
-
/**
|
|
1484
|
-
* Validated 6-digit sRGB hex (no `#`) of the one component, or null. A group of two or
|
|
1485
|
-
* more components has no single fill, so this is null there as well: null means "no one
|
|
1486
|
-
* fill to name", not "nothing is filled". Read `components` to paint.
|
|
1487
|
-
*/
|
|
1488
|
-
readonly fillHex: string | null;
|
|
1489
|
-
readonly fillAlpha?: number;
|
|
1490
|
-
/** As `fillHex`, for the stroke: the one component's stroke, else null. */
|
|
1491
|
-
readonly strokeHex: string | null;
|
|
1492
|
-
readonly strokeAlpha?: number;
|
|
1493
|
-
/** The one component's stroke width in EMU; 0 when absent or when grouped. */
|
|
1494
|
-
readonly strokeWidthEmu: number;
|
|
1495
|
-
/** Independently styled paths, always non-empty. A direct shape has one component. */
|
|
1496
|
-
readonly components: readonly VectorShapeComponent[];
|
|
1497
|
-
}
|
|
1498
|
-
interface VectorShapeComponent {
|
|
1499
|
-
readonly subpathsEmu: readonly (readonly Readonly<{
|
|
1500
|
-
x: number;
|
|
1501
|
-
y: number;
|
|
1502
|
-
}>[])[];
|
|
1503
|
-
/** Authored close commands; omitted by older consumers means closed polygons. */
|
|
1504
|
-
readonly subpathsClosed?: readonly boolean[];
|
|
1505
|
-
/** Filled line-end polygons in the same projected coordinate space. */
|
|
1506
|
-
readonly arrowheadsEmu?: readonly (readonly Readonly<{
|
|
1507
|
-
x: number;
|
|
1508
|
-
y: number;
|
|
1509
|
-
}>[])[];
|
|
1510
|
-
readonly fillHex: string | null;
|
|
1511
|
-
readonly fillAlpha: number;
|
|
1512
|
-
readonly strokeHex: string | null;
|
|
1513
|
-
readonly strokeAlpha: number;
|
|
1514
|
-
readonly strokeWidthEmu: number;
|
|
1515
|
-
/**
|
|
1516
|
-
* The outline sits inside the closed geometry (`a:ln algn="in"`): painters draw it at twice
|
|
1517
|
-
* its width clipped to the path, so the authored width stays inside the shape and adds no
|
|
1518
|
-
* reach past the extent. Set only for a closed outline with area.
|
|
1519
|
-
*/
|
|
1520
|
-
readonly strokeInset?: boolean;
|
|
1521
|
-
}
|
|
1522
|
-
/**
|
|
1523
|
-
* The story carried by a `wps:wsp` text box (`wps:txbx` → `w:txbxContent`).
|
|
1524
|
-
*
|
|
1525
|
-
* The projection captures only the story root and the shape chrome reads; it never walks the
|
|
1526
|
-
* story content, so the per-drawing element budget is not spent on paragraphs. Layout collects
|
|
1527
|
-
* blocks from `content` under its own caps.
|
|
1528
|
-
*/
|
|
1529
|
-
interface TextboxStoryProjection {
|
|
1530
|
-
/** Canonical node id of the `w:txbxContent` element. */
|
|
1531
|
-
readonly contentNodeId: string;
|
|
1532
|
-
/** The `w:txbxContent` element itself; treated as an opaque story root here. */
|
|
1533
|
-
readonly content: OoxmlElement;
|
|
1534
|
-
/** `wps:bodyPr` insets with the OOXML defaults (91440 EMU l/r, 45720 EMU t/b) when absent. */
|
|
1535
|
-
readonly insetsEmu: Readonly<{
|
|
1536
|
-
top: number;
|
|
1537
|
-
right: number;
|
|
1538
|
-
bottom: number;
|
|
1539
|
-
left: number;
|
|
1540
|
-
}>;
|
|
1541
|
-
/** `wps:bodyPr/@anchor` collapsed to the three renderable positions; default top. */
|
|
1542
|
-
readonly verticalAnchor: 'top' | 'center' | 'bottom';
|
|
1543
|
-
/** Autofit child of `wps:bodyPr`; extent stays authoritative either way (diagnostic only). */
|
|
1544
|
-
readonly autofit: 'none' | 'shape' | 'normal';
|
|
1545
|
-
/** Solid fill of the hosting shape, painted behind the story; null for no fill. */
|
|
1546
|
-
readonly fillHex: string | null;
|
|
1547
|
-
/** Solid outline of the hosting shape; null for no outline. */
|
|
1548
|
-
readonly strokeHex: string | null;
|
|
1549
|
-
/** Outline width in EMU; 0 when absent. */
|
|
1550
|
-
readonly strokeWidthEmu: number;
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
1562
|
/** One picture painted as a member of a drawing group. */
|
|
1554
1563
|
interface GroupPictureProjection {
|
|
1555
1564
|
readonly embeddedRelationshipId: string | null;
|
|
@@ -1816,6 +1825,20 @@ type OoxmlPackageResult = {
|
|
|
1816
1825
|
readonly detail?: string;
|
|
1817
1826
|
readonly limit?: 'zip.maxTotalBytes' | 'zip.maxRatio';
|
|
1818
1827
|
};
|
|
1828
|
+
/**
|
|
1829
|
+
* Load DOCX bytes into canonical typed/generic OOXML trees, bounded at every step.
|
|
1830
|
+
*
|
|
1831
|
+
* THE trust boundary for a document. Composes the hardened primitives — zip limits and OPC name
|
|
1832
|
+
* normalization, content-type indexing, relationship validation, entity-free XML — into one
|
|
1833
|
+
* loader, and returns a typed rejection rather than throwing from inside a decoder.
|
|
1834
|
+
*
|
|
1835
|
+
* Fails closed on every limit, malformed name, unresolvable internal target, duplicate
|
|
1836
|
+
* relationship id, and XML rejection. An external relationship never causes a failure and
|
|
1837
|
+
* never causes a fetch: it is recorded with its sink-safety verdict for a later, explicitly
|
|
1838
|
+
* user-gated lane. A content-type record with an invalid MIME type is treated as absent,
|
|
1839
|
+
* unless it decides the type of the main document part, a relationships part, or a
|
|
1840
|
+
* non-payload part that the package root or the main document relates to.
|
|
1841
|
+
*/
|
|
1819
1842
|
declare function readOoxmlPackage(bytes: Uint8Array, limits?: OoxmlPackageLimits): OoxmlPackageResult;
|
|
1820
1843
|
/**
|
|
1821
1844
|
* Serialize a canonical package back to DOCX bytes.
|
|
@@ -2088,8 +2111,11 @@ declare function findContentControl(root: OoxmlNode, nodeId: string): ContentCon
|
|
|
2088
2111
|
*
|
|
2089
2112
|
* `w:delText` is excluded: struck text is not the control's value, and a dropdown whose
|
|
2090
2113
|
* old item is still present as a tracked deletion would otherwise report both.
|
|
2114
|
+
*
|
|
2115
|
+
* A manual line break is left out unless `lineBreak` names the text to report it as.
|
|
2116
|
+
* With that option, column breaks report U+000E so callers cannot silently discard them.
|
|
2091
2117
|
*/
|
|
2092
|
-
declare function contentControlTextOf(control: OoxmlNode): string;
|
|
2118
|
+
declare function contentControlTextOf(control: OoxmlNode, lineBreak?: string): string;
|
|
2093
2119
|
/**
|
|
2094
2120
|
* Resolve the lock a position inherits from the controls enclosing it.
|
|
2095
2121
|
*
|
|
@@ -2160,11 +2186,8 @@ interface ReviewRange {
|
|
|
2160
2186
|
*/
|
|
2161
2187
|
type ReviewRevisionKind = 'insert' | 'delete'
|
|
2162
2188
|
/**
|
|
2163
|
-
* A
|
|
2164
|
-
*
|
|
2165
|
-
* Word shows these as a single `Replaced "x" with "y"` card, and resolving one half
|
|
2166
|
-
* without the other is never what the reviewer meant — accepting the deletion alone
|
|
2167
|
-
* leaves the replacement text unproposed, rejecting it alone leaves both.
|
|
2189
|
+
* A combined decision supplied by a custom review provider.
|
|
2190
|
+
* The built-in reader exposes text replacements as separate deletion and insertion decisions.
|
|
2168
2191
|
*/
|
|
2169
2192
|
| 'replace' | 'moveFrom' | 'moveTo'
|
|
2170
2193
|
/** `w:rPrChange` / `w:pPrChange` — the words are unchanged, their formatting is not. */
|
|
@@ -2181,14 +2204,14 @@ type ReviewRevisionKind = 'insert' | 'delete'
|
|
|
2181
2204
|
*/
|
|
2182
2205
|
interface ReviewRevisionItem {
|
|
2183
2206
|
readonly kind: 'revision';
|
|
2184
|
-
/** Stable across renders and unique per
|
|
2207
|
+
/** Stable across renders and unique per decision within this editor instance. */
|
|
2185
2208
|
readonly id: string;
|
|
2186
2209
|
/** The payload `acceptRevision` / `rejectRevision` take. */
|
|
2187
2210
|
readonly address: RevisionAddress;
|
|
2188
2211
|
/**
|
|
2189
2212
|
* EVERY address this decision covers, `address` first.
|
|
2190
2213
|
*
|
|
2191
|
-
*
|
|
2214
|
+
* Adjacent text fragments, table fragments, and formatting changes can combine multiple
|
|
2192
2215
|
* original revisions into one decision. Review commands resolve the complete decision
|
|
2193
2216
|
* in one transaction while preserving independent changes outside the group.
|
|
2194
2217
|
*/
|
|
@@ -2310,7 +2333,8 @@ interface ReviewCustomItem {
|
|
|
2310
2333
|
*
|
|
2311
2334
|
* False for a definition with no `reviewCard`: the item exists so the chip's own surfaces can
|
|
2312
2335
|
* read `attrs`, `text` and `data` off it, and the rail leaves it out. A surface listing cards
|
|
2313
|
-
* filters on this rather than on an empty `title`.
|
|
2336
|
+
* filters on this rather than on an empty `title`. An uncarded node never becomes the active
|
|
2337
|
+
* review item, so it never shows the active highlight.
|
|
2314
2338
|
*/
|
|
2315
2339
|
readonly carded: boolean;
|
|
2316
2340
|
/** Card title, from the definition's `reviewCard` hook. Empty when `carded` is false. */
|