/** * Drafting-note comment parts: word/comments.xml plus the Word-extension * ancillary parts word/commentsExtended.xml and word/people.xml. * * All three are always emitted together when notes are enabled. The * ancillary pair is deliberately on by default: plain comments.xml loads in * every reader we test, but Word 2013+ writes the trio and its own comment * UI degrades (no resolve state, no people presence) without them. Content * and relationship types match what Word itself writes — verified against * the Open XML SDK's WordprocessingCommentsExPart/WordprocessingPeoplePart * constants (the `application/vnd.ms-word.commentsExtended+xml` variant * found in some third-party packages is NOT what Word emits). They also * match the editing path in primitives/comments.ts, so a generated document * is indistinguishable from an edited one to the comment APIs. * * Determinism: comment ids are allocated in document order by the * DraftingNoteCollector; w14:paraId values derive from those ids; dates come * only from DraftingNoteSpec.dateIso (falling back to meta.createdIso); * authors fall back note.author → meta.author → 'safe-docx'. No clock, no * randomness — identical specs produce byte-identical comment parts. * * @conformance ECMA-376 edition 5, Part 1 § 17.13.4.6 * @conformance ECMA-376 edition 5, Part 1 § 17.13.4.2 */ import type { CompileContext } from '../context.js'; import type { DocumentSpec } from '../types.js'; import type { DraftingNoteCollector } from './emit-context.js'; export declare const COMMENTS_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml"; export declare const COMMENTS_REL_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments"; export declare const COMMENTS_EXTENDED_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml"; export declare const COMMENTS_EXTENDED_REL_TYPE = "http://schemas.microsoft.com/office/2011/relationships/commentsExtended"; export declare const PEOPLE_CONTENT_TYPE = "application/vnd.openxmlformats-officedocument.wordprocessingml.people+xml"; export declare const PEOPLE_REL_TYPE = "http://schemas.microsoft.com/office/2011/relationships/people"; /** Emit the comment trio from the notes collected during body emission. */ export declare function emitCommentsPartsIfNeeded(spec: DocumentSpec, ctx: CompileContext, collector: DraftingNoteCollector): void; //# sourceMappingURL=comments-part.d.ts.map