@docx-editor.dev/core 2.5.0 → 2.6.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/THIRD_PARTY_NOTICES.md +39 -1
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.cts +6 -6
- package/dist/automation.d.ts +6 -6
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +12 -12
- package/dist/binding.d.ts +12 -12
- package/dist/binding.js +1 -1
- package/dist/chunk-4GQXAXTZ.js +5 -0
- package/dist/chunk-DGUHCJPF.cjs +18 -0
- package/dist/{chunk-2GSRLGUI.cjs → chunk-DY3QVCWC.cjs} +6 -6
- package/dist/{chunk-45FL7KH4.js → chunk-E7BXJ4BF.js} +1 -1
- package/dist/chunk-F7Z6PWAZ.cjs +2 -0
- package/dist/chunk-JEMP5YI5.cjs +15 -0
- package/dist/{chunk-3FRSOOND.cjs → chunk-JZXK4DKV.cjs} +1 -1
- package/dist/chunk-NIGGABAA.js +15 -0
- package/dist/chunk-OPKOTVQQ.js +18 -0
- package/dist/{chunk-GOEBQ26R.js → chunk-PSZH2VXP.js} +1 -1
- package/dist/{chunk-LJIX4ZDF.js → chunk-R75OLPL6.js} +6 -6
- package/dist/{chunk-JDHTCMFA.cjs → chunk-SFMAIFEN.cjs} +1 -1
- package/dist/chunk-SKWYEZCO.cjs +5 -0
- package/dist/{chunk-YTZIGUXT.js → chunk-SMRD66T5.js} +1 -1
- package/dist/chunk-WAVN7MAT.js +2 -0
- package/dist/chunk-WU7PUTVA.js +2 -0
- package/dist/{chunk-OHJQ7GPZ.cjs → chunk-YMYCPY5Y.cjs} +1 -1
- package/dist/{content-control-walk-BeAFh6Xi.d.cts → content-control-walk-CbTqHq6O.d.cts} +1 -1
- package/dist/{content-control-walk-CQp8l6eS.d.ts → content-control-walk-D06GijR0.d.ts} +1 -1
- package/dist/contracts/editor.cjs +1 -1
- package/dist/contracts/editor.d.cts +10 -10
- package/dist/contracts/editor.d.ts +10 -10
- package/dist/contracts/editor.js +1 -1
- package/dist/contracts/interaction.d.cts +9 -9
- package/dist/contracts/interaction.d.ts +9 -9
- package/dist/contracts/modules.d.cts +5 -5
- package/dist/contracts/modules.d.ts +5 -5
- package/dist/contracts/types.d.cts +3 -1
- package/dist/contracts/types.d.ts +3 -1
- package/dist/{custom-node-writes-CIC_-wad.d.cts → custom-node-writes-D9G3GKQ7.d.cts} +7 -7
- package/dist/{custom-node-writes-2clI36T9.d.ts → custom-node-writes-tJw8U9MO.d.ts} +7 -7
- package/dist/dist-YFULGVS3.js +2 -0
- package/dist/{editor-CUul9IuY.d.cts → editor-BZEJL3vv.d.cts} +33 -19
- package/dist/{editor-DIwctMcU.d.ts → editor-D2zOJztO.d.ts} +33 -19
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +375 -38
- package/dist/editor.d.cts +42 -26
- package/dist/editor.d.ts +42 -26
- package/dist/editor.js +1 -1
- package/dist/harfbuzz.wasm +0 -0
- package/dist/{hf-references-CAp1xTv6.d.ts → hf-references-BdjsQNE_.d.ts} +2 -2
- package/dist/{hf-references-BPET4tlK.d.cts → hf-references-CgEOSw3i.d.cts} +2 -2
- package/dist/{image-resources-CSlQmPIm.d.cts → image-resources-BaHz4QAd.d.cts} +10 -10
- package/dist/{image-resources-e13t-pgy.d.ts → image-resources-Cl5_cNi9.d.ts} +10 -10
- package/dist/{index-BUsYjxF5.d.ts → index-D8L8WrNF.d.ts} +111 -21
- package/dist/{index-8t44iXTY.d.cts → index-_xF7n_z0.d.cts} +111 -21
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +71 -23
- package/dist/layout.d.ts +71 -23
- package/dist/layout.js +1 -1
- package/dist/node-module-shim-TTKTT66I.js +1 -0
- package/dist/{note-nodes-CZQXU6Fg.d.ts → note-nodes-BPSTVDMr.d.ts} +1 -1
- package/dist/{note-nodes-B2wWES2L.d.cts → note-nodes-C6DLxlvj.d.cts} +1 -1
- package/dist/{ooxml-package-Cmbe_M04.d.cts → ooxml-package-CR5us6ad.d.cts} +115 -115
- package/dist/{ooxml-package-BrxTmTsZ.d.ts → ooxml-package-D_CtywTW.d.ts} +115 -115
- package/dist/{ooxml-tree-CG0odFyi.d.cts → ooxml-tree-BU0e3DVi.d.cts} +1 -1
- package/dist/{ooxml-tree-CG0odFyi.d.ts → ooxml-tree-BU0e3DVi.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +22 -8
- package/dist/output.d.ts +22 -8
- package/dist/output.js +1 -1
- package/dist/{protocol-B5oSt08P.d.cts → protocol-CD7slqvl.d.cts} +2 -2
- package/dist/{protocol-ooK7PAXz.d.ts → protocol-DsbfgBwA.d.ts} +2 -2
- package/dist/{note-properties-Dhqkro--.d.cts → review-reads-Dr0CpW6u.d.cts} +67 -67
- package/dist/{note-properties-BS66XmcC.d.ts → review-reads-HDvoQXK2.d.ts} +67 -67
- package/dist/{review-support-Bl9sN8cv.d.ts → review-support-D4ZBdUXa.d.ts} +2 -2
- package/dist/{review-support-CHuJxHmz.d.cts → review-support-T-riLz4Y.d.cts} +2 -2
- package/dist/{revision-projection-u4nT52xT.d.ts → revision-projection-UKqvPa4-.d.ts} +1 -1
- package/dist/{revision-projection-DRZMzoLD.d.cts → revision-projection-WzlQGBJx.d.cts} +1 -1
- package/dist/{semantic-cell-selection-Dc-_enhm.d.ts → semantic-cell-selection-B5vfPz4Q.d.ts} +4 -4
- package/dist/{semantic-cell-selection-CdNQ-a9-.d.cts → semantic-cell-selection-BTQFpN0S.d.cts} +4 -4
- package/dist/{semantic-interaction-DgaWs-5w.d.cts → semantic-interaction-CDNEU_Tx.d.cts} +1 -1
- package/dist/{semantic-interaction-CCVwyw2A.d.ts → semantic-interaction-lvpzZRpA.d.ts} +1 -1
- package/dist/{semantic-paint-6iIB4fhx.d.cts → semantic-paint-BBPL3u5w.d.ts} +111 -3
- package/dist/{semantic-paint-CKIbFkQ7.d.ts → semantic-paint-IjbL-4CT.d.cts} +111 -3
- package/dist/{semantic-records-B-qbrnp2.d.ts → semantic-records-CdQvpUj1.d.ts} +4 -4
- package/dist/{semantic-records-Dq8SlCY8.d.cts → semantic-records-DEOs3_tE.d.cts} +4 -4
- package/dist/{shaped-measurer-Dx4llNhK.d.cts → shaped-measurer-C2SJAjV0.d.cts} +1 -1
- package/dist/{shaped-measurer-BT4FqYe9.d.ts → shaped-measurer-l4o5ITJ0.d.ts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +238 -238
- package/dist/store.d.ts +238 -238
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-DOYNkKqD.d.cts → tree-op-types-CUCwPWjT.d.cts} +219 -219
- package/dist/{tree-op-types-CZw9QhWX.d.ts → tree-op-types-D0fTNBVW.d.ts} +219 -219
- package/dist/{tree-session-CF_EOhTW.d.ts → tree-session-CH1oA75f.d.ts} +61 -45
- package/dist/{tree-session-CtK3KgFU.d.cts → tree-session-b7bggR-S.d.cts} +61 -45
- package/dist/{tree-store-Jg-q7fyf.d.cts → tree-store-BqgeCa1Q.d.cts} +3 -3
- package/dist/{tree-store-9TaX-L0V.d.ts → tree-store-CIKASRHk.d.ts} +3 -3
- package/licenses/HarfBuzz-COPYING.txt +42 -0
- package/package.json +5 -3
- package/dist/chunk-2QIA75K3.js +0 -2
- package/dist/chunk-32NXPFYL.js +0 -5
- package/dist/chunk-3C533HSQ.cjs +0 -18
- package/dist/chunk-7GYF33B5.cjs +0 -2
- package/dist/chunk-H3DZP4LE.cjs +0 -5
- package/dist/chunk-L2GMLEHX.cjs +0 -14
- package/dist/chunk-QUZM6LWQ.js +0 -14
- package/dist/chunk-T252F4US.js +0 -18
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HeaderFooterVariant } from './hf-references-
|
|
2
|
-
import { N as NoteKind } from './note-nodes-
|
|
1
|
+
import { H as HeaderFooterVariant } from './hf-references-CgEOSw3i.cjs';
|
|
2
|
+
import { N as NoteKind } from './note-nodes-C6DLxlvj.cjs';
|
|
3
3
|
|
|
4
4
|
/** Alignment as this protocol publishes it. `Mixed`/`Unknown` are read-only answers. */
|
|
5
5
|
type AutomationAlignment = 'Mixed' | 'Unknown' | 'Left' | 'Centered' | 'Right' | 'Justified';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HeaderFooterVariant } from './hf-references-
|
|
2
|
-
import { N as NoteKind } from './note-nodes-
|
|
1
|
+
import { H as HeaderFooterVariant } from './hf-references-BdjsQNE_.js';
|
|
2
|
+
import { N as NoteKind } from './note-nodes-BPSTVDMr.js';
|
|
3
3
|
|
|
4
4
|
/** Alignment as this protocol publishes it. `Mixed`/`Unknown` are read-only answers. */
|
|
5
5
|
type AutomationAlignment = 'Mixed' | 'Unknown' | 'Left' | 'Centered' | 'Right' | 'Justified';
|
|
@@ -1,6 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { e as OoxmlPart, O as OoxmlNode, a as OoxmlElement } from './ooxml-tree-BU0e3DVi.cjs';
|
|
2
|
+
import { O as OoxmlPackage } from './ooxml-package-CR5us6ad.cjs';
|
|
3
|
+
import { R as RevisionAddress } from './tree-op-types-CUCwPWjT.cjs';
|
|
4
|
+
|
|
5
|
+
/** `w:pos` — where a section's footnotes are laid out. */
|
|
6
|
+
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|
|
7
|
+
/** `w:pos` for endnotes — only the two document-level placements are legal. */
|
|
8
|
+
type EndnotePosition = 'sectEnd' | 'docEnd';
|
|
9
|
+
/** `w:numRestart` — when note numbering starts over. `eachPage` needs the reference's page. */
|
|
10
|
+
type NoteNumRestart = 'continuous' | 'eachSect' | 'eachPage';
|
|
11
|
+
/** Authored subset — only keys present in the file appear. */
|
|
12
|
+
interface AuthoredNoteProperties {
|
|
13
|
+
readonly pos?: string;
|
|
14
|
+
readonly numFmt?: string;
|
|
15
|
+
readonly numStart?: number;
|
|
16
|
+
readonly numRestart?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Fully resolved footnote properties (defaults filled). */
|
|
19
|
+
interface ResolvedFootnoteProperties {
|
|
20
|
+
readonly pos: FootnotePosition;
|
|
21
|
+
readonly numFmt: string;
|
|
22
|
+
readonly numStart: number;
|
|
23
|
+
readonly numRestart: NoteNumRestart;
|
|
24
|
+
}
|
|
25
|
+
/** Fully resolved endnote properties (defaults filled). */
|
|
26
|
+
interface ResolvedEndnoteProperties {
|
|
27
|
+
readonly pos: EndnotePosition;
|
|
28
|
+
readonly numFmt: string;
|
|
29
|
+
readonly numStart: number;
|
|
30
|
+
readonly numRestart: NoteNumRestart;
|
|
31
|
+
}
|
|
32
|
+
/** Word's own footnote defaults, applied where a section declares no `w:footnotePr`. */
|
|
33
|
+
declare const DEFAULT_FOOTNOTE_PROPERTIES: ResolvedFootnoteProperties;
|
|
34
|
+
/**
|
|
35
|
+
* Word-compatible defaults. ECMA-376 says omitted endnote `numFmt` is decimal;
|
|
36
|
+
* MS-OE376 / MS-OI29500 document that Word’s default is `lowerRoman` instead.
|
|
37
|
+
* Resolved (not authored) — unedited packages still invent nothing on save.
|
|
38
|
+
*/
|
|
39
|
+
declare const DEFAULT_ENDNOTE_PROPERTIES: ResolvedEndnoteProperties;
|
|
40
|
+
/** Parse authored CT_FtnProps / CT_EdnProps without inventing defaults. */
|
|
41
|
+
declare function parseAuthoredNoteProperties(propsNode: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
42
|
+
/** Authored footnotePr on a sectPr node. */
|
|
43
|
+
declare function authoredFootnotePropertiesFromSectPr(sectPr: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
44
|
+
/** Authored endnotePr on a sectPr node. */
|
|
45
|
+
declare function authoredEndnotePropertiesFromSectPr(sectPr: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
46
|
+
/** Locate settings.xml via the main document relationship when present. */
|
|
47
|
+
declare function settingsPartOf(pkg: OoxmlPackage): OoxmlPart | null;
|
|
48
|
+
/** Authored document-level footnotePr from settings. */
|
|
49
|
+
declare function authoredDocumentFootnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
50
|
+
/** Authored document-level endnotePr from settings. */
|
|
51
|
+
declare function authoredDocumentEndnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Resolve footnote properties: section → document → defaults.
|
|
54
|
+
* Illegal position strings fall through to the next layer / default.
|
|
55
|
+
*/
|
|
56
|
+
declare function resolveFootnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedFootnoteProperties;
|
|
57
|
+
/**
|
|
58
|
+
* Resolve endnote properties: section → document → defaults.
|
|
59
|
+
* `pageBottom` is never a legal endnote position — falls back.
|
|
60
|
+
*/
|
|
61
|
+
declare function resolveEndnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedEndnoteProperties;
|
|
62
|
+
/** Validate an authored endnote position write — refuse `pageBottom`. */
|
|
63
|
+
declare function isLegalEndnotePosition(pos: string): pos is EndnotePosition;
|
|
64
|
+
/** Validate an authored footnote position write. */
|
|
65
|
+
declare function isLegalFootnotePosition(pos: string): pos is FootnotePosition;
|
|
66
|
+
/** Whether a file-supplied string is a legal `w:numRestart` value. Narrows the type. */
|
|
67
|
+
declare function isLegalNumRestart(value: string): value is NoteNumRestart;
|
|
4
68
|
|
|
5
69
|
/** The `w15` namespace: `commentsExtended.xml` — thread parent and resolved state. */
|
|
6
70
|
declare const W15_NAMESPACE_URI = "http://schemas.microsoft.com/office/word/2012/wordml";
|
|
@@ -365,68 +429,4 @@ declare function reviewItemRanges(item: ReviewItem): readonly ReviewRange[];
|
|
|
365
429
|
/** The range an item is anchored at — where its card belongs and how it sorts. */
|
|
366
430
|
declare function firstReviewRange(item: ReviewItem): ReviewRange | null;
|
|
367
431
|
|
|
368
|
-
/** `w:pos` — where a section's footnotes are laid out. */
|
|
369
|
-
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|
|
370
|
-
/** `w:pos` for endnotes — only the two document-level placements are legal. */
|
|
371
|
-
type EndnotePosition = 'sectEnd' | 'docEnd';
|
|
372
|
-
/** `w:numRestart` — when note numbering starts over. `eachPage` needs the reference's page. */
|
|
373
|
-
type NoteNumRestart = 'continuous' | 'eachSect' | 'eachPage';
|
|
374
|
-
/** Authored subset — only keys present in the file appear. */
|
|
375
|
-
interface AuthoredNoteProperties {
|
|
376
|
-
readonly pos?: string;
|
|
377
|
-
readonly numFmt?: string;
|
|
378
|
-
readonly numStart?: number;
|
|
379
|
-
readonly numRestart?: string;
|
|
380
|
-
}
|
|
381
|
-
/** Fully resolved footnote properties (defaults filled). */
|
|
382
|
-
interface ResolvedFootnoteProperties {
|
|
383
|
-
readonly pos: FootnotePosition;
|
|
384
|
-
readonly numFmt: string;
|
|
385
|
-
readonly numStart: number;
|
|
386
|
-
readonly numRestart: NoteNumRestart;
|
|
387
|
-
}
|
|
388
|
-
/** Fully resolved endnote properties (defaults filled). */
|
|
389
|
-
interface ResolvedEndnoteProperties {
|
|
390
|
-
readonly pos: EndnotePosition;
|
|
391
|
-
readonly numFmt: string;
|
|
392
|
-
readonly numStart: number;
|
|
393
|
-
readonly numRestart: NoteNumRestart;
|
|
394
|
-
}
|
|
395
|
-
/** Word's own footnote defaults, applied where a section declares no `w:footnotePr`. */
|
|
396
|
-
declare const DEFAULT_FOOTNOTE_PROPERTIES: ResolvedFootnoteProperties;
|
|
397
|
-
/**
|
|
398
|
-
* Word-compatible defaults. ECMA-376 says omitted endnote `numFmt` is decimal;
|
|
399
|
-
* MS-OE376 / MS-OI29500 document that Word’s default is `lowerRoman` instead.
|
|
400
|
-
* Resolved (not authored) — unedited packages still invent nothing on save.
|
|
401
|
-
*/
|
|
402
|
-
declare const DEFAULT_ENDNOTE_PROPERTIES: ResolvedEndnoteProperties;
|
|
403
|
-
/** Parse authored CT_FtnProps / CT_EdnProps without inventing defaults. */
|
|
404
|
-
declare function parseAuthoredNoteProperties(propsNode: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
405
|
-
/** Authored footnotePr on a sectPr node. */
|
|
406
|
-
declare function authoredFootnotePropertiesFromSectPr(sectPr: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
407
|
-
/** Authored endnotePr on a sectPr node. */
|
|
408
|
-
declare function authoredEndnotePropertiesFromSectPr(sectPr: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
409
|
-
/** Locate settings.xml via the main document relationship when present. */
|
|
410
|
-
declare function settingsPartOf(pkg: OoxmlPackage): OoxmlPart | null;
|
|
411
|
-
/** Authored document-level footnotePr from settings. */
|
|
412
|
-
declare function authoredDocumentFootnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
413
|
-
/** Authored document-level endnotePr from settings. */
|
|
414
|
-
declare function authoredDocumentEndnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
415
|
-
/**
|
|
416
|
-
* Resolve footnote properties: section → document → defaults.
|
|
417
|
-
* Illegal position strings fall through to the next layer / default.
|
|
418
|
-
*/
|
|
419
|
-
declare function resolveFootnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedFootnoteProperties;
|
|
420
|
-
/**
|
|
421
|
-
* Resolve endnote properties: section → document → defaults.
|
|
422
|
-
* `pageBottom` is never a legal endnote position — falls back.
|
|
423
|
-
*/
|
|
424
|
-
declare function resolveEndnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedEndnoteProperties;
|
|
425
|
-
/** Validate an authored endnote position write — refuse `pageBottom`. */
|
|
426
|
-
declare function isLegalEndnotePosition(pos: string): pos is EndnotePosition;
|
|
427
|
-
/** Validate an authored footnote position write. */
|
|
428
|
-
declare function isLegalFootnotePosition(pos: string): pos is FootnotePosition;
|
|
429
|
-
/** Whether a file-supplied string is a legal `w:numRestart` value. Narrows the type. */
|
|
430
|
-
declare function isLegalNumRestart(value: string): value is NoteNumRestart;
|
|
431
|
-
|
|
432
432
|
export { type AuthoredNoteProperties as A, isLegalEndnotePosition as B, type CommentAnchor as C, DEFAULT_ENDNOTE_PROPERTIES as D, type EndnotePosition as E, type FootnotePosition as F, isLegalFootnotePosition as G, isLegalNumRestart as H, linkRevisionReplies as I, parseAuthoredNoteProperties as J, resolveEndnoteProperties as K, type LinkableReviewItem as L, resolveFootnoteProperties as M, type NoteNumRestart as N, reviewItemKey as O, reviewItemRanges as P, revisionItemsOf as Q, type ResolvedFootnoteProperties as R, settingsPartOf as S, threadStateOfPart as T, W15_NAMESPACE_URI as W, type ResolvedEndnoteProperties as a, type CommentPosition as b, type CommentRecord as c, type CommentThreadState as d, DEFAULT_FOOTNOTE_PROPERTIES as e, type ReviewCommentItem as f, type ReviewItem as g, type ReviewModelInput as h, type ReviewPosition as i, type ReviewRange as j, type ReviewRevisionItem as k, type ReviewRevisionKind as l, authoredDocumentEndnoteProperties as m, authoredDocumentFootnoteProperties as n, authoredEndnotePropertiesFromSectPr as o, paragraphOrderOfPart as p, authoredFootnotePropertiesFromSectPr as q, collectReviewItems as r, commentAnchorsOfStory as s, commentBodyText as t, commentInitials as u, commentItemsOf as v, commentsOfPart as w, deepParagraphOrderOfPart as x, firstReviewRange as y, hasAnyComment as z };
|
|
@@ -1,6 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { e as OoxmlPart, O as OoxmlNode, a as OoxmlElement } from './ooxml-tree-BU0e3DVi.js';
|
|
2
|
+
import { O as OoxmlPackage } from './ooxml-package-D_CtywTW.js';
|
|
3
|
+
import { R as RevisionAddress } from './tree-op-types-D0fTNBVW.js';
|
|
4
|
+
|
|
5
|
+
/** `w:pos` — where a section's footnotes are laid out. */
|
|
6
|
+
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|
|
7
|
+
/** `w:pos` for endnotes — only the two document-level placements are legal. */
|
|
8
|
+
type EndnotePosition = 'sectEnd' | 'docEnd';
|
|
9
|
+
/** `w:numRestart` — when note numbering starts over. `eachPage` needs the reference's page. */
|
|
10
|
+
type NoteNumRestart = 'continuous' | 'eachSect' | 'eachPage';
|
|
11
|
+
/** Authored subset — only keys present in the file appear. */
|
|
12
|
+
interface AuthoredNoteProperties {
|
|
13
|
+
readonly pos?: string;
|
|
14
|
+
readonly numFmt?: string;
|
|
15
|
+
readonly numStart?: number;
|
|
16
|
+
readonly numRestart?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Fully resolved footnote properties (defaults filled). */
|
|
19
|
+
interface ResolvedFootnoteProperties {
|
|
20
|
+
readonly pos: FootnotePosition;
|
|
21
|
+
readonly numFmt: string;
|
|
22
|
+
readonly numStart: number;
|
|
23
|
+
readonly numRestart: NoteNumRestart;
|
|
24
|
+
}
|
|
25
|
+
/** Fully resolved endnote properties (defaults filled). */
|
|
26
|
+
interface ResolvedEndnoteProperties {
|
|
27
|
+
readonly pos: EndnotePosition;
|
|
28
|
+
readonly numFmt: string;
|
|
29
|
+
readonly numStart: number;
|
|
30
|
+
readonly numRestart: NoteNumRestart;
|
|
31
|
+
}
|
|
32
|
+
/** Word's own footnote defaults, applied where a section declares no `w:footnotePr`. */
|
|
33
|
+
declare const DEFAULT_FOOTNOTE_PROPERTIES: ResolvedFootnoteProperties;
|
|
34
|
+
/**
|
|
35
|
+
* Word-compatible defaults. ECMA-376 says omitted endnote `numFmt` is decimal;
|
|
36
|
+
* MS-OE376 / MS-OI29500 document that Word’s default is `lowerRoman` instead.
|
|
37
|
+
* Resolved (not authored) — unedited packages still invent nothing on save.
|
|
38
|
+
*/
|
|
39
|
+
declare const DEFAULT_ENDNOTE_PROPERTIES: ResolvedEndnoteProperties;
|
|
40
|
+
/** Parse authored CT_FtnProps / CT_EdnProps without inventing defaults. */
|
|
41
|
+
declare function parseAuthoredNoteProperties(propsNode: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
42
|
+
/** Authored footnotePr on a sectPr node. */
|
|
43
|
+
declare function authoredFootnotePropertiesFromSectPr(sectPr: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
44
|
+
/** Authored endnotePr on a sectPr node. */
|
|
45
|
+
declare function authoredEndnotePropertiesFromSectPr(sectPr: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
46
|
+
/** Locate settings.xml via the main document relationship when present. */
|
|
47
|
+
declare function settingsPartOf(pkg: OoxmlPackage): OoxmlPart | null;
|
|
48
|
+
/** Authored document-level footnotePr from settings. */
|
|
49
|
+
declare function authoredDocumentFootnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
50
|
+
/** Authored document-level endnotePr from settings. */
|
|
51
|
+
declare function authoredDocumentEndnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Resolve footnote properties: section → document → defaults.
|
|
54
|
+
* Illegal position strings fall through to the next layer / default.
|
|
55
|
+
*/
|
|
56
|
+
declare function resolveFootnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedFootnoteProperties;
|
|
57
|
+
/**
|
|
58
|
+
* Resolve endnote properties: section → document → defaults.
|
|
59
|
+
* `pageBottom` is never a legal endnote position — falls back.
|
|
60
|
+
*/
|
|
61
|
+
declare function resolveEndnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedEndnoteProperties;
|
|
62
|
+
/** Validate an authored endnote position write — refuse `pageBottom`. */
|
|
63
|
+
declare function isLegalEndnotePosition(pos: string): pos is EndnotePosition;
|
|
64
|
+
/** Validate an authored footnote position write. */
|
|
65
|
+
declare function isLegalFootnotePosition(pos: string): pos is FootnotePosition;
|
|
66
|
+
/** Whether a file-supplied string is a legal `w:numRestart` value. Narrows the type. */
|
|
67
|
+
declare function isLegalNumRestart(value: string): value is NoteNumRestart;
|
|
4
68
|
|
|
5
69
|
/** The `w15` namespace: `commentsExtended.xml` — thread parent and resolved state. */
|
|
6
70
|
declare const W15_NAMESPACE_URI = "http://schemas.microsoft.com/office/word/2012/wordml";
|
|
@@ -365,68 +429,4 @@ declare function reviewItemRanges(item: ReviewItem): readonly ReviewRange[];
|
|
|
365
429
|
/** The range an item is anchored at — where its card belongs and how it sorts. */
|
|
366
430
|
declare function firstReviewRange(item: ReviewItem): ReviewRange | null;
|
|
367
431
|
|
|
368
|
-
/** `w:pos` — where a section's footnotes are laid out. */
|
|
369
|
-
type FootnotePosition = 'pageBottom' | 'beneathText' | 'sectEnd' | 'docEnd';
|
|
370
|
-
/** `w:pos` for endnotes — only the two document-level placements are legal. */
|
|
371
|
-
type EndnotePosition = 'sectEnd' | 'docEnd';
|
|
372
|
-
/** `w:numRestart` — when note numbering starts over. `eachPage` needs the reference's page. */
|
|
373
|
-
type NoteNumRestart = 'continuous' | 'eachSect' | 'eachPage';
|
|
374
|
-
/** Authored subset — only keys present in the file appear. */
|
|
375
|
-
interface AuthoredNoteProperties {
|
|
376
|
-
readonly pos?: string;
|
|
377
|
-
readonly numFmt?: string;
|
|
378
|
-
readonly numStart?: number;
|
|
379
|
-
readonly numRestart?: string;
|
|
380
|
-
}
|
|
381
|
-
/** Fully resolved footnote properties (defaults filled). */
|
|
382
|
-
interface ResolvedFootnoteProperties {
|
|
383
|
-
readonly pos: FootnotePosition;
|
|
384
|
-
readonly numFmt: string;
|
|
385
|
-
readonly numStart: number;
|
|
386
|
-
readonly numRestart: NoteNumRestart;
|
|
387
|
-
}
|
|
388
|
-
/** Fully resolved endnote properties (defaults filled). */
|
|
389
|
-
interface ResolvedEndnoteProperties {
|
|
390
|
-
readonly pos: EndnotePosition;
|
|
391
|
-
readonly numFmt: string;
|
|
392
|
-
readonly numStart: number;
|
|
393
|
-
readonly numRestart: NoteNumRestart;
|
|
394
|
-
}
|
|
395
|
-
/** Word's own footnote defaults, applied where a section declares no `w:footnotePr`. */
|
|
396
|
-
declare const DEFAULT_FOOTNOTE_PROPERTIES: ResolvedFootnoteProperties;
|
|
397
|
-
/**
|
|
398
|
-
* Word-compatible defaults. ECMA-376 says omitted endnote `numFmt` is decimal;
|
|
399
|
-
* MS-OE376 / MS-OI29500 document that Word’s default is `lowerRoman` instead.
|
|
400
|
-
* Resolved (not authored) — unedited packages still invent nothing on save.
|
|
401
|
-
*/
|
|
402
|
-
declare const DEFAULT_ENDNOTE_PROPERTIES: ResolvedEndnoteProperties;
|
|
403
|
-
/** Parse authored CT_FtnProps / CT_EdnProps without inventing defaults. */
|
|
404
|
-
declare function parseAuthoredNoteProperties(propsNode: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
405
|
-
/** Authored footnotePr on a sectPr node. */
|
|
406
|
-
declare function authoredFootnotePropertiesFromSectPr(sectPr: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
407
|
-
/** Authored endnotePr on a sectPr node. */
|
|
408
|
-
declare function authoredEndnotePropertiesFromSectPr(sectPr: OoxmlNode | null | undefined): AuthoredNoteProperties | undefined;
|
|
409
|
-
/** Locate settings.xml via the main document relationship when present. */
|
|
410
|
-
declare function settingsPartOf(pkg: OoxmlPackage): OoxmlPart | null;
|
|
411
|
-
/** Authored document-level footnotePr from settings. */
|
|
412
|
-
declare function authoredDocumentFootnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
413
|
-
/** Authored document-level endnotePr from settings. */
|
|
414
|
-
declare function authoredDocumentEndnoteProperties(settings: OoxmlPart | null | undefined): AuthoredNoteProperties | undefined;
|
|
415
|
-
/**
|
|
416
|
-
* Resolve footnote properties: section → document → defaults.
|
|
417
|
-
* Illegal position strings fall through to the next layer / default.
|
|
418
|
-
*/
|
|
419
|
-
declare function resolveFootnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedFootnoteProperties;
|
|
420
|
-
/**
|
|
421
|
-
* Resolve endnote properties: section → document → defaults.
|
|
422
|
-
* `pageBottom` is never a legal endnote position — falls back.
|
|
423
|
-
*/
|
|
424
|
-
declare function resolveEndnoteProperties(section?: AuthoredNoteProperties, document?: AuthoredNoteProperties): ResolvedEndnoteProperties;
|
|
425
|
-
/** Validate an authored endnote position write — refuse `pageBottom`. */
|
|
426
|
-
declare function isLegalEndnotePosition(pos: string): pos is EndnotePosition;
|
|
427
|
-
/** Validate an authored footnote position write. */
|
|
428
|
-
declare function isLegalFootnotePosition(pos: string): pos is FootnotePosition;
|
|
429
|
-
/** Whether a file-supplied string is a legal `w:numRestart` value. Narrows the type. */
|
|
430
|
-
declare function isLegalNumRestart(value: string): value is NoteNumRestart;
|
|
431
|
-
|
|
432
432
|
export { type AuthoredNoteProperties as A, isLegalEndnotePosition as B, type CommentAnchor as C, DEFAULT_ENDNOTE_PROPERTIES as D, type EndnotePosition as E, type FootnotePosition as F, isLegalFootnotePosition as G, isLegalNumRestart as H, linkRevisionReplies as I, parseAuthoredNoteProperties as J, resolveEndnoteProperties as K, type LinkableReviewItem as L, resolveFootnoteProperties as M, type NoteNumRestart as N, reviewItemKey as O, reviewItemRanges as P, revisionItemsOf as Q, type ResolvedFootnoteProperties as R, settingsPartOf as S, threadStateOfPart as T, W15_NAMESPACE_URI as W, type ResolvedEndnoteProperties as a, type CommentPosition as b, type CommentRecord as c, type CommentThreadState as d, DEFAULT_FOOTNOTE_PROPERTIES as e, type ReviewCommentItem as f, type ReviewItem as g, type ReviewModelInput as h, type ReviewPosition as i, type ReviewRange as j, type ReviewRevisionItem as k, type ReviewRevisionKind as l, authoredDocumentEndnoteProperties as m, authoredDocumentFootnoteProperties as n, authoredEndnotePropertiesFromSectPr as o, paragraphOrderOfPart as p, authoredFootnotePropertiesFromSectPr as q, collectReviewItems as r, commentAnchorsOfStory as s, commentBodyText as t, commentInitials as u, commentItemsOf as v, commentsOfPart as w, deepParagraphOrderOfPart as x, firstReviewRange as y, hasAnyComment as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as OoxmlPart, a as OoxmlElement } from './ooxml-tree-
|
|
2
|
-
import { R as RevisionAddress } from './tree-op-types-
|
|
1
|
+
import { e as OoxmlPart, a as OoxmlElement } from './ooxml-tree-BU0e3DVi.js';
|
|
2
|
+
import { R as RevisionAddress } from './tree-op-types-D0fTNBVW.js';
|
|
3
3
|
|
|
4
4
|
/** The `w15` namespace: `commentsExtended.xml` — thread parent and resolved state. */
|
|
5
5
|
declare const W15_NAMESPACE_URI = "http://schemas.microsoft.com/office/word/2012/wordml";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as OoxmlPart, a as OoxmlElement } from './ooxml-tree-
|
|
2
|
-
import { R as RevisionAddress } from './tree-op-types-
|
|
1
|
+
import { e as OoxmlPart, a as OoxmlElement } from './ooxml-tree-BU0e3DVi.cjs';
|
|
2
|
+
import { R as RevisionAddress } from './tree-op-types-CUCwPWjT.cjs';
|
|
3
3
|
|
|
4
4
|
/** The `w15` namespace: `commentsExtended.xml` — thread parent and resolved state. */
|
|
5
5
|
declare const W15_NAMESPACE_URI = "http://schemas.microsoft.com/office/word/2012/wordml";
|
package/dist/{semantic-cell-selection-Dc-_enhm.d.ts → semantic-cell-selection-B5vfPz4Q.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as OoxmlPart, a as OoxmlElement, O as OoxmlNode } from './ooxml-tree-
|
|
2
|
-
import { P as PageGeometry, I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, a as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, b as TableRowFragmentRecord, c as TableCellFragmentRecord } from './semantic-records-
|
|
3
|
-
import { R as RevisionDisplayMode } from './revision-projection-
|
|
4
|
-
import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-
|
|
1
|
+
import { e as OoxmlPart, a as OoxmlElement, O as OoxmlNode } from './ooxml-tree-BU0e3DVi.js';
|
|
2
|
+
import { P as PageGeometry, I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, a as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, b as TableRowFragmentRecord, c as TableCellFragmentRecord } from './semantic-records-CdQvpUj1.js';
|
|
3
|
+
import { R as RevisionDisplayMode } from './revision-projection-UKqvPa4-.js';
|
|
4
|
+
import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-lvpzZRpA.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Hard ceiling on sections enumerated from a document (matches write-path
|
package/dist/{semantic-cell-selection-CdNQ-a9-.d.cts → semantic-cell-selection-BTQFpN0S.d.cts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { e as OoxmlPart, a as OoxmlElement, O as OoxmlNode } from './ooxml-tree-
|
|
2
|
-
import { P as PageGeometry, I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, a as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, b as TableRowFragmentRecord, c as TableCellFragmentRecord } from './semantic-records-
|
|
3
|
-
import { R as RevisionDisplayMode } from './revision-projection-
|
|
4
|
-
import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-
|
|
1
|
+
import { e as OoxmlPart, a as OoxmlElement, O as OoxmlNode } from './ooxml-tree-BU0e3DVi.cjs';
|
|
2
|
+
import { P as PageGeometry, I as InlineDrawingRecord, A as AnchoredDrawingRecord, T as TextMeasurer, L as LineRecord, a as StyleSpanRecord, S as SemanticLayout, C as ContentControlBoundaryRecord, b as TableRowFragmentRecord, c as TableCellFragmentRecord } from './semantic-records-DEOs3_tE.cjs';
|
|
3
|
+
import { R as RevisionDisplayMode } from './revision-projection-WzlQGBJx.cjs';
|
|
4
|
+
import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-CDNEU_Tx.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Hard ceiling on sections enumerated from a document (matches write-path
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, a as StyleSpanRecord } from './semantic-records-
|
|
1
|
+
import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, a as StyleSpanRecord } from './semantic-records-DEOs3_tE.cjs';
|
|
2
2
|
|
|
3
3
|
/** A caret position in the model. */
|
|
4
4
|
interface SemanticPosition {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, a as StyleSpanRecord } from './semantic-records-
|
|
1
|
+
import { T as TextMeasurer, S as SemanticLayout, B as BlockFragmentRecord, C as ContentControlBoundaryRecord, a as StyleSpanRecord } from './semantic-records-CdQvpUj1.js';
|
|
2
2
|
|
|
3
3
|
/** A caret position in the model. */
|
|
4
4
|
interface SemanticPosition {
|
|
@@ -1,5 +1,98 @@
|
|
|
1
|
-
import { C as ContentControlBoundaryRecord, S as SemanticLayout } from './semantic-records-
|
|
2
|
-
import { V as ValidatedImageBytesHandle, R as RenderableImageMime } from './image-resources-
|
|
1
|
+
import { C as ContentControlBoundaryRecord, S as SemanticLayout } from './semantic-records-CdQvpUj1.js';
|
|
2
|
+
import { V as ValidatedImageBytesHandle, R as RenderableImageMime } from './image-resources-Cl5_cNi9.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Everything a host can say about ONE author's presentation. Every field is optional and
|
|
6
|
+
* every field is presentation-only — nothing here is ever serialised into the document.
|
|
7
|
+
*
|
|
8
|
+
* Deliberately about the PAINTED DOCUMENT (which only the painter can style) plus the
|
|
9
|
+
* author's identity data. Review-card DESIGN is not configured here: the review chrome
|
|
10
|
+
* follows `color` as its accent automatically, and everything further is composition —
|
|
11
|
+
* a custom card reading this style through the review surface's `useReviewAuthor`, or
|
|
12
|
+
* CSS on the cards' `data-review-author`/`data-review-author-slot` hooks.
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
interface RevisionAuthorStyle {
|
|
17
|
+
/**
|
|
18
|
+
* Ink and decoration colour of this author's changes in the document — and the accent
|
|
19
|
+
* the review chrome keys on (avatar disc, card variable, marker).
|
|
20
|
+
*/
|
|
21
|
+
color?: string;
|
|
22
|
+
/** Background wash behind this author's changes in the document. */
|
|
23
|
+
background?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Class names added to every painted span of this author's changes, for styling the
|
|
26
|
+
* typed fields do not cover. Keep the rules metric-safe (outlines, shadows, accents):
|
|
27
|
+
* the engine measures the text it paints, and a class that resizes glyphs drifts the
|
|
28
|
+
* page from its layout.
|
|
29
|
+
*/
|
|
30
|
+
spanClassName?: string;
|
|
31
|
+
/** Avatar image for this author; the packaged card renders it in place of initials. */
|
|
32
|
+
avatarUrl?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Per-author style assignments.
|
|
36
|
+
*
|
|
37
|
+
* Keys match `w:author` exactly; a value is a CSS colour or a full
|
|
38
|
+
* {@link RevisionAuthorStyle}. `others` says what authors WITHOUT an entry take: the
|
|
39
|
+
* `--doc-review-author-N` ramp by default, or `'kind'` to leave them on the kind colours —
|
|
40
|
+
* which is how "highlight these reviewers, leave everyone else green and red" is said.
|
|
41
|
+
*
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
interface RevisionAuthorAssignments {
|
|
45
|
+
/** Authors without an entry: the ramp (default), or the `'kind'` colours. */
|
|
46
|
+
readonly others?: 'kind' | 'author';
|
|
47
|
+
readonly authors: Readonly<Record<string, string | RevisionAuthorStyle>>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* How painted tracked changes are coloured.
|
|
51
|
+
*
|
|
52
|
+
* - `'author'` (the DEFAULT) — every change takes its author's colour from the
|
|
53
|
+
* `--doc-review-author-N` ramp, assigned by order of first appearance in the document.
|
|
54
|
+
* Word's own default, and the reason it is this engine's: a paragraph three people
|
|
55
|
+
* edited has to read as three people. Restyle a slot under `.docx-editor` to change the
|
|
56
|
+
* ramp.
|
|
57
|
+
* - `'kind'` — insertions and deletions take the two kind colours
|
|
58
|
+
* (`--doc-revision-insertion` / `--doc-revision-deletion`), so "added" and "removed" are
|
|
59
|
+
* what a reader tells apart at a glance, whoever proposed them.
|
|
60
|
+
* - {@link RevisionAuthorAssignments} — style the named authors; `others` decides whether
|
|
61
|
+
* the rest take the ramp (the default) or the kind colours.
|
|
62
|
+
*
|
|
63
|
+
* Presentation only: nothing here is ever serialised into the document.
|
|
64
|
+
*
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
type RevisionStyles = 'kind' | 'author' | RevisionAuthorAssignments;
|
|
68
|
+
/**
|
|
69
|
+
* One document author, resolved: who, which ramp slot, and what they draw in.
|
|
70
|
+
*
|
|
71
|
+
* @public
|
|
72
|
+
*/
|
|
73
|
+
interface ReviewAuthorInfo {
|
|
74
|
+
/** The `w:author` string, exactly as the file carries it. */
|
|
75
|
+
readonly author: string;
|
|
76
|
+
/**
|
|
77
|
+
* Rank by order of first appearance — an UNBOUNDED index, not a ramp slot.
|
|
78
|
+
*
|
|
79
|
+
* The ramp defines {@link REVIEW_AUTHOR_SLOTS} colours and every DOM hook wraps into it,
|
|
80
|
+
* so the ninth author ranks 8 here and carries `data-review-author-slot="0"`. Building a
|
|
81
|
+
* selector from this value needs the same wrap: `slot % 8`.
|
|
82
|
+
*/
|
|
83
|
+
readonly slot: number;
|
|
84
|
+
/**
|
|
85
|
+
* The colour this author is DRAWN IN by the review chrome — their declared colour, or
|
|
86
|
+
* their ramp slot's token.
|
|
87
|
+
*
|
|
88
|
+
* Not necessarily what the document paints. `'kind'`, and `others: 'kind'` for an author
|
|
89
|
+
* with no declaration, colour the painted text by insertion/deletion instead, while the
|
|
90
|
+
* cards keep the per-author accent this reports.
|
|
91
|
+
*/
|
|
92
|
+
readonly color: string;
|
|
93
|
+
/** The host-supplied style, normalised; absent when the author rides the ramp. */
|
|
94
|
+
readonly style?: RevisionAuthorStyle;
|
|
95
|
+
}
|
|
3
96
|
|
|
4
97
|
/** Host port for safe blob URLs — only called for {@link ImageResourceState.kind} `ready`. */
|
|
5
98
|
interface PaintImageUrlPort {
|
|
@@ -67,6 +160,12 @@ interface PaintOptions {
|
|
|
67
160
|
readonly fieldShading?: FieldShadingMode;
|
|
68
161
|
/** See {@link PaintContext.shadeFormFields}. */
|
|
69
162
|
readonly shadeFormFields?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* How tracked changes are coloured: by AUTHOR through the `--doc-review-author-N`
|
|
165
|
+
* ramp (the default, as in Word), by kind, or by author with host-pinned colours.
|
|
166
|
+
* See {@link RevisionStyles}.
|
|
167
|
+
*/
|
|
168
|
+
readonly revisionStyles?: RevisionStyles;
|
|
70
169
|
/**
|
|
71
170
|
* Relationship id of the header/footer story currently open for editing.
|
|
72
171
|
*
|
|
@@ -116,6 +215,15 @@ interface PaintOptions {
|
|
|
116
215
|
readonly additionalBoundaries?: readonly ContentControlBoundaryRecord[];
|
|
117
216
|
/** Control ids that represent TOC regions (hover-only chrome; never caret-sticky). */
|
|
118
217
|
readonly tocControlIds?: ReadonlySet<string>;
|
|
218
|
+
/**
|
|
219
|
+
* No control may be written right now — viewing mode, or a protected document.
|
|
220
|
+
*
|
|
221
|
+
* The widget is a `<button>` the ENGINE paints, and a click on it commits a tree op, so
|
|
222
|
+
* an enabled-looking checkbox on a read-only document is not a cosmetic lie: it is the
|
|
223
|
+
* write itself. Disabling it here also stops the pointer lane, which already skips a
|
|
224
|
+
* widget carrying `data-disabled-reason`.
|
|
225
|
+
*/
|
|
226
|
+
readonly readOnly?: boolean;
|
|
119
227
|
};
|
|
120
228
|
readonly drawingStrings?: DrawingPaintStrings;
|
|
121
229
|
readonly imageUrlPort?: PaintImageUrlPort;
|
|
@@ -130,4 +238,4 @@ interface PaintOptions {
|
|
|
130
238
|
*/
|
|
131
239
|
declare function paintSemanticLayout(container: HTMLElement, layout: SemanticLayout, options?: PaintOptions): void;
|
|
132
240
|
|
|
133
|
-
export { DEFAULT_FIELD_SHADING as D, type FieldShadingMode as F, type PaintOptions as P, type
|
|
241
|
+
export { DEFAULT_FIELD_SHADING as D, type FieldShadingMode as F, type PaintOptions as P, type ReviewAuthorInfo as R, type RevisionAuthorAssignments as a, type RevisionAuthorStyle as b, type RevisionStyles as c, type DrawingPaintStrings as d, paintSemanticLayout as p };
|