@docx-editor.dev/core 2.14.1 → 2.15.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.
Files changed (133) hide show
  1. package/README.md +42 -0
  2. package/dist/automation.cjs +1 -1
  3. package/dist/automation.d.ts +6 -5
  4. package/dist/automation.js +1 -1
  5. package/dist/binding.cjs +1 -1
  6. package/dist/binding.d.ts +16 -10
  7. package/dist/binding.js +1 -1
  8. package/dist/chunk-24APKZAN.cjs +11 -0
  9. package/dist/chunk-2YH4MSHX.cjs +2 -0
  10. package/dist/chunk-5Y7AADI6.js +1 -0
  11. package/dist/chunk-AREFLNUP.js +11 -0
  12. package/dist/chunk-AS7YZNQE.cjs +2 -0
  13. package/dist/chunk-AVGCKH6A.cjs +20 -0
  14. package/dist/chunk-CDYVDQRI.cjs +5 -0
  15. package/dist/chunk-FGBADUSK.cjs +1 -0
  16. package/dist/chunk-HOEWFH5U.cjs +1 -0
  17. package/dist/chunk-KFELX7CN.js +2 -0
  18. package/dist/{chunk-OKEDGR65.js → chunk-KXPVOPR5.js} +1 -1
  19. package/dist/chunk-LGFKIF4M.cjs +1 -0
  20. package/dist/chunk-M52QXFKI.js +1 -0
  21. package/dist/chunk-MNUKSXRO.js +1 -0
  22. package/dist/chunk-PBOIGBDO.js +2 -0
  23. package/dist/chunk-PMHGONET.cjs +1 -0
  24. package/dist/chunk-PXKZUTHX.cjs +2 -0
  25. package/dist/chunk-Q4AB7E4O.cjs +1 -0
  26. package/dist/chunk-QJYH6AYD.js +1 -0
  27. package/dist/chunk-QRC37MWG.cjs +20 -0
  28. package/dist/chunk-RJSB6RJ7.js +20 -0
  29. package/dist/chunk-SB54HLFJ.js +20 -0
  30. package/dist/chunk-VP7SDFCM.js +1 -0
  31. package/dist/chunk-XCESLTJL.js +2 -0
  32. package/dist/{chunk-KIAP7PFQ.cjs → chunk-YL4Q5LZP.cjs} +1 -1
  33. package/dist/chunk-Z4527AXR.js +5 -0
  34. package/dist/collaboration/replication.cjs +1 -1
  35. package/dist/collaboration/replication.d.ts +4 -3
  36. package/dist/collaboration/replication.js +1 -1
  37. package/dist/collaboration.d.ts +4 -3
  38. package/dist/contracts/editor.d.ts +7 -7
  39. package/dist/contracts/interaction.d.ts +7 -7
  40. package/dist/contracts/modules.d.ts +8 -7
  41. package/dist/{custom-node-writes-DntmaAVW.d.ts → custom-node-writes-C9ArIlJh.d.ts} +2 -2
  42. package/dist/{editor-a6VvsfYU.d.ts → editor-sRxrFJd8.d.ts} +29 -21
  43. package/dist/editor.cjs +1 -1
  44. package/dist/editor.d.ts +27 -58
  45. package/dist/editor.js +1 -1
  46. package/dist/export.cjs +2 -0
  47. package/dist/export.d.ts +337 -0
  48. package/dist/export.js +2 -0
  49. package/dist/font-resolver-BYEHQGTw.d.ts +251 -0
  50. package/dist/headless-document-view-DELC4E5v.d.ts +134 -0
  51. package/dist/hf-references-DTrHkktY.d.ts +70 -0
  52. package/dist/{index-C5ZnSRkF.d.ts → index-C3Gvq4jN.d.ts} +55 -246
  53. package/dist/index.cjs +1 -1
  54. package/dist/index.d.ts +18 -16
  55. package/dist/index.js +1 -1
  56. package/dist/{shaped-measurer-CFPnXFs9.d.cts → layout-shaping-DoGR5cf8.d.ts} +86 -12
  57. package/dist/layout.cjs +1 -1
  58. package/dist/layout.d.ts +1106 -729
  59. package/dist/layout.js +1 -1
  60. package/dist/{note-properties-CDFiNXcD.d.ts → note-properties-DSe8igrz.d.ts} +2 -2
  61. package/dist/{omml-equation-BY49UOIF.d.ts → omml-equation-BpRmfDAf.d.ts} +1 -1
  62. package/dist/output.cjs +1 -1
  63. package/dist/output.d.ts +6 -6
  64. package/dist/output.js +1 -1
  65. package/dist/{protocol-gOY5GA8K.d.cts → protocol-DZzKxH5r.d.ts} +18 -12
  66. package/dist/{review-items-CCS1h93f.d.ts → review-items-DYRx187i.d.ts} +2 -2
  67. package/dist/{review-reads-BjZYeMd4.d.ts → review-reads-LbGUdNzn.d.ts} +22 -25
  68. package/dist/{revision-projection-BeXVrSSV.d.ts → revision-projection-DHRJH48u.d.ts} +1 -1
  69. package/dist/{semantic-cell-selection-BK91NCCG.d.ts → semantic-cell-selection-BXVWCBYm.d.ts} +4 -4
  70. package/dist/{semantic-interaction-BmQ7h2cq.d.ts → semantic-interaction-DZsDmPg5.d.ts} +1 -1
  71. package/dist/{semantic-paint-WJD2KeG1.d.ts → semantic-paint-f7SqN4oW.d.ts} +2 -2
  72. package/dist/{semantic-records-BpozY7-j.d.cts → semantic-records-EIdwId-a.d.ts} +301 -205
  73. package/dist/store.cjs +1 -1
  74. package/dist/store.d.ts +15 -65
  75. package/dist/store.js +1 -1
  76. package/dist/{tree-op-types-D6HzlPR4.d.ts → tree-op-types-egdarvH_.d.ts} +7 -3
  77. package/dist/{tree-package-fragment-CWFjgH6a.d.ts → tree-package-fragment-DjkH4ESI.d.ts} +4 -70
  78. package/dist/{tree-session-contract-B2HfGt79.d.ts → tree-session-contract-CGOOgPjW.d.ts} +29 -23
  79. package/dist/{tree-store-APgWx6qn.d.ts → tree-store-DKJB0IcA.d.ts} +2 -2
  80. package/package.json +7 -2
  81. package/dist/automation.d.cts +0 -82
  82. package/dist/binding.d.cts +0 -153
  83. package/dist/chunk-2PIHW2QM.cjs +0 -1
  84. package/dist/chunk-2QTY5S6T.js +0 -1
  85. package/dist/chunk-4Z5MODAE.cjs +0 -2
  86. package/dist/chunk-5TKAPFZT.cjs +0 -2
  87. package/dist/chunk-DRQHIQ4R.cjs +0 -1
  88. package/dist/chunk-F2K6SDHA.cjs +0 -20
  89. package/dist/chunk-FBA57EUJ.js +0 -2
  90. package/dist/chunk-KTAQ7BRQ.js +0 -20
  91. package/dist/chunk-LBAHXZCU.cjs +0 -5
  92. package/dist/chunk-MCDUQYWP.js +0 -5
  93. package/dist/chunk-MQP26KCF.js +0 -1
  94. package/dist/chunk-NDJGSR6M.cjs +0 -19
  95. package/dist/chunk-NJNFJPGB.cjs +0 -11
  96. package/dist/chunk-O5M4CR4P.cjs +0 -2
  97. package/dist/chunk-UKUOZXUD.js +0 -19
  98. package/dist/chunk-VQ4R5LTU.js +0 -2
  99. package/dist/chunk-ZBEJHJN2.js +0 -11
  100. package/dist/chunk-ZVTW7RGD.js +0 -2
  101. package/dist/collaboration/replication.d.cts +0 -216
  102. package/dist/collaboration.d.cts +0 -176
  103. package/dist/contracts/document.d.cts +0 -273
  104. package/dist/contracts/editor.d.cts +0 -10
  105. package/dist/contracts/interaction.d.cts +0 -10
  106. package/dist/contracts/modules.d.cts +0 -130
  107. package/dist/contracts/types.d.cts +0 -562
  108. package/dist/custom-node-writes-C46r3_5O.d.cts +0 -310
  109. package/dist/document-properties-D6Ahr8D6.d.cts +0 -28
  110. package/dist/document-properties-D6Ahr8D6.d.ts +0 -28
  111. package/dist/editor-AJ06hyyg.d.cts +0 -1994
  112. package/dist/editor.d.cts +0 -393
  113. package/dist/failure-BnGjoXf0.d.cts +0 -64
  114. package/dist/index-Cbw4lkOt.d.cts +0 -3391
  115. package/dist/index.d.cts +0 -23
  116. package/dist/layout.d.cts +0 -2486
  117. package/dist/note-properties-Y6qYh2Hv.d.cts +0 -67
  118. package/dist/omml-equation-DB8d-jCq.d.cts +0 -84
  119. package/dist/output.d.cts +0 -74
  120. package/dist/protocol-BsmQgblT.d.ts +0 -1358
  121. package/dist/review-items-CaAkgi5s.d.cts +0 -360
  122. package/dist/review-reads-DEsV0OOW.d.cts +0 -163
  123. package/dist/revision-projection-DXbrfNGD.d.cts +0 -156
  124. package/dist/semantic-cell-selection-BMhku3B1.d.cts +0 -451
  125. package/dist/semantic-interaction-DUAnxbgf.d.cts +0 -160
  126. package/dist/semantic-paint-DufNL1Zr.d.cts +0 -247
  127. package/dist/semantic-records-92UnKeU_.d.ts +0 -2821
  128. package/dist/shaped-measurer-BWbindlI.d.ts +0 -168
  129. package/dist/store.d.cts +0 -2500
  130. package/dist/tree-op-types-BUulYD5y.d.cts +0 -3099
  131. package/dist/tree-package-fragment-Dhyw7oPm.d.cts +0 -732
  132. package/dist/tree-session-contract-BY9xd7s_.d.cts +0 -613
  133. package/dist/tree-store-DEEQ9wz_.d.cts +0 -416
@@ -1,310 +0,0 @@
1
- import { b as OoxmlPackage, O as OoxmlPart, a as OoxmlNode, r as TreeOpRejection } from './tree-op-types-BUulYD5y.cjs';
2
- import { T as TreeModelChange, a as TreeDocumentStore } from './tree-store-DEEQ9wz_.cjs';
3
-
4
- /** Which of a family's four faces an embedded font relationship supplies. */
5
- type FontStyleKey = 'regular' | 'bold' | 'italic' | 'boldItalic';
6
- /**
7
- * One font whose bytes travel inside the package.
8
- *
9
- * The family name is the DOCUMENT's and is not validated — it is attacker-controlled, so it is
10
- * escaped into CSS and never registered globally on `document.fonts`, where it would shadow the
11
- * host application's own fonts.
12
- */
13
- interface EmbeddedFont {
14
- /** The family as the document names it. Not validated against anything. */
15
- readonly family: string;
16
- readonly style: FontStyleKey;
17
- /** Deobfuscated bytes, ready to be offered to a font validator. */
18
- readonly bytes: Uint8Array;
19
- /** The part they came from, for diagnostics. */
20
- readonly partName: string;
21
- }
22
- /**
23
- * Undo Word's embedded-font obfuscation (ECMA-376 Part 4 §2.8.1).
24
- *
25
- * The key is the `w:fontKey` GUID's 16 bytes in REVERSED order — not the per-group
26
- * little-endian reading a GUID usually gets. It is XORed over the first 32 bytes of the
27
- * part, applied twice. Getting the order wrong produces a font that looks corrupt rather
28
- * than obfuscated, which is indistinguishable from a damaged file at the point it fails.
29
- *
30
- * Pure XOR, so the same operation obfuscates and deobfuscates.
31
- */
32
- declare function deobfuscateFont(bytes: Uint8Array, fontKey: string): Uint8Array | null;
33
- /** Limits and instrumentation for reading embedded fonts out of a package. */
34
- interface ReadEmbeddedFontsOptions {
35
- /** Refuse a font part larger than this. Defaults to 16 MB. */
36
- readonly maxFontBytes?: number;
37
- /** Refuse more than this many fonts. Defaults to 64. */
38
- readonly maxFonts?: number;
39
- }
40
- /**
41
- * Every font the package embeds, deobfuscated.
42
- *
43
- * Silently skips anything malformed rather than rejecting the document: a broken font table
44
- * is a reason to fall back to substitution, never a reason to refuse to open the file.
45
- */
46
- declare function readEmbeddedFonts(pkg: OoxmlPackage, fontTable: OoxmlPart | undefined, options?: ReadEmbeddedFontsOptions): EmbeddedFont[];
47
-
48
- /** The two list kinds a toolbar offers. */
49
- type ListKind = 'bullet' | 'ordered';
50
- interface EnsuredListDefinition {
51
- readonly pkg: OoxmlPackage;
52
- /** The `w:numId` a paragraph's `w:numPr` should name. */
53
- readonly numId: string;
54
- }
55
- /**
56
- * Find or create a list definition of `kind`, returning the package that holds it.
57
- *
58
- * An existing abstract definition of the same kind is reused, but every disconnected list
59
- * gets a fresh `w:num` instance. Counters belong to `w:num`, so reusing that instance would
60
- * continue an earlier list. Returns null only when the part cannot be built at all.
61
- */
62
- declare function ensureListDefinition(pkg: OoxmlPackage, kind: ListKind): EnsuredListDefinition | null;
63
- /**
64
- * Declare `level` in the definition `numId` names, with Word's default format for that
65
- * level, or refuse.
66
- *
67
- * Word never greys Increase Indent out on a list item: demoting past the deepest level a
68
- * `w:abstractNum` declares makes Word DEFINE the level, cycling its stock bullets
69
- * (Symbol •, Courier `o`, Wingdings ▪) or number formats (decimal, lowerLetter,
70
- * lowerRoman) by depth. This is that write. An already-declared level returns the package
71
- * unchanged, so callers may ask first and act second without a second lookup.
72
- *
73
- * A delegating definition (`w:numStyleLink`, 17.9.21) is refused: its levels live on the
74
- * linked style's definition, and a `w:lvl` grafted here would be shadowed the moment the
75
- * link resolves.
76
- */
77
- declare function ensureNumberingLevel(pkg: OoxmlPackage, numId: string, level: number, kind: ListKind): OoxmlPackage | null;
78
-
79
- /** One bookmark's name and the range its marker pair currently encloses. */
80
- interface BookmarkAnchor {
81
- readonly name: string;
82
- /** Canonical node id of the paragraph the marker sits in. */
83
- readonly paragraphId: string;
84
- /** UTF-16 offset within that paragraph, in `paragraphTextOf`'s vocabulary. */
85
- readonly offset: number;
86
- }
87
- /** Bookmarks by name. A name the document declares twice resolves to the first in order. */
88
- type BookmarkIndex = ReadonlyMap<string, BookmarkAnchor>;
89
- /**
90
- * Build `name -> position` for every bookmark start in a part, in document order.
91
- *
92
- * FIRST IN DOCUMENT ORDER WINS on a duplicate name. Word treats a repeated bookmark name as
93
- * the same bookmark and jumps to the first, and the alternative — last-wins — makes a jump
94
- * target move when an edit far away happens to duplicate a name.
95
- *
96
- * The offset is measured the way the ops measure: text of the runs before the marker inside
97
- * its own paragraph, hyperlink runs included, so the position a jump places the caret at is a
98
- * position `setSelection` accepts.
99
- */
100
- declare function buildBookmarkIndex(part: OoxmlPart): BookmarkIndex;
101
-
102
- /** What the document asks for. Every field defaults to "the document said nothing". */
103
- interface DocumentTrackingSettings {
104
- /** `w:trackRevisions` — the document asks for edits to be tracked. */
105
- readonly trackRevisions: boolean;
106
- /**
107
- * `w:documentProtection/@w:edit="trackedChanges"` — tracking may not be turned OFF.
108
- *
109
- * Advisory. Presenting it as enforcement would be a lie about a file anyone can edit.
110
- */
111
- readonly restrictedToTrackedChanges: boolean;
112
- /** `w:doNotTrackMoves` — write a move as a delete and an insert. */
113
- readonly doNotTrackMoves: boolean;
114
- /** `w:doNotTrackFormatting` — apply formatting without recording a `w:rPrChange`. */
115
- readonly doNotTrackFormatting: boolean;
116
- }
117
- /** The frozen "nothing is tracked" settings — what a document with no `w:trackChanges` gets. */
118
- declare const NO_TRACKING_SETTINGS: DocumentTrackingSettings;
119
- /** Read the tracking settings from a `settings.xml` root, or the defaults when it has none. */
120
- declare function readTrackingSettings(settingsRoot: OoxmlNode | null | undefined): DocumentTrackingSettings;
121
-
122
- /**
123
- * The payload half of an insert: which store, which node, and what it holds.
124
- *
125
- * `data` is opaque here. The lane that owns a schema is the one that declared it, and a store
126
- * that parsed payloads would be a second opinion about what a host's node means.
127
- */
128
- interface CustomNodePayloadWrite {
129
- /** Namespace of the store's root element — what identifies one store among several. */
130
- readonly namespaceUri: string;
131
- /** Local name of that root. An NCName; anything else refuses. */
132
- readonly rootLocalName: string;
133
- /** The node's own id, which the binding's xpath quotes. */
134
- readonly nodeId: string;
135
- /** The text the control shows. Word paints this from the store, so an empty one is an empty chip. */
136
- readonly label: string;
137
- /** The payload, serialized. JSON by convention; never parsed here. */
138
- readonly data: string;
139
- }
140
- /** Where the control goes, what it says, and the payload it carries. */
141
- interface InsertCustomNodeWrite {
142
- readonly paragraphId: string;
143
- readonly offset: number;
144
- /**
145
- * Wrap rather than insert: the text from `offset` to here is removed first.
146
- *
147
- * The node's label REPLACES the words it covered, because that is what turning a stretch of a
148
- * sentence into a citation means. Removed inside the same transaction, so a refused insert
149
- * leaves the text where it was.
150
- */
151
- readonly replaceUntil?: number;
152
- /**
153
- * Rewrite an existing control: it and the payload it bound go first, in this transaction.
154
- *
155
- * An UPDATE is remove-and-reinsert, because the tag codec has no in-place rewrite and
156
- * pretending it did would put a second write path beside this one. Doing both halves here is
157
- * what keeps it one undo step, and what stops an update from leaving a label and a payload
158
- * that disagree.
159
- */
160
- readonly replaceControlId?: string;
161
- readonly tag: string;
162
- readonly text: string;
163
- readonly alias?: string;
164
- /** Defaults to none. Callers that want Word's own "cannot type into it" pass `contentLocked`. */
165
- readonly lock?: 'sdtLocked' | 'sdtContentLocked' | 'contentLocked';
166
- /** Omitted authors an ordinary tagged control with no store — the pre-payload behaviour. */
167
- readonly payload?: CustomNodePayloadWrite;
168
- }
169
- /**
170
- * Why a payload write was refused.
171
- *
172
- * The tree rejections pass through unchanged, so a locked paragraph refuses a bound insert for
173
- * the same named reason it refuses a plain one. The three added here are the payload's own.
174
- */
175
- type CustomNodeWriteRejection = TreeOpRejection
176
- /** The id, root name or namespace cannot be spelled in an XPath, so no binding could name it. */
177
- | 'unaddressable-payload'
178
- /** The store could not be authored — see `withCustomXmlDataPart` for every way that happens. */
179
- | 'store-not-authored'
180
- /** The payload or the label is past the cap. */
181
- | 'payload-too-large';
182
- type CustomNodeWriteResult = {
183
- readonly ok: true;
184
- readonly change: TreeModelChange | null;
185
- /**
186
- * The control this write authored, when it authored one. A rewrite replaces the control
187
- * rather than editing it, so the id the caller passed in names nothing afterwards.
188
- */
189
- readonly nodeId?: string;
190
- } | {
191
- readonly ok: false;
192
- readonly reason: CustomNodeWriteRejection;
193
- readonly detail?: string;
194
- };
195
- /**
196
- * The largest payload one node may carry, in UTF-16 code units.
197
- *
198
- * Same figure as the read side's (`parseCustomNodeData`) and for the same reason: far past any
199
- * legitimate chip, far short of anything that hurts. Checked on the WRITE too, so a document
200
- * cannot be authored here holding a payload the reader will later refuse to parse.
201
- */
202
- declare const MAX_CUSTOM_NODE_PAYLOAD_LENGTH: number;
203
- /** The longest label a binding may paint. Word renders it as the control's whole content. */
204
- declare const MAX_CUSTOM_NODE_LABEL_LENGTH = 4096;
205
- /**
206
- * Insert one custom node, with its payload, as a single transaction.
207
- *
208
- * Answers the store transaction's own change so the caller can publish it — a payload write is a
209
- * package write reaching through a story store, exactly as a comment is, and the coordinator
210
- * needs the change to know which paragraphs went dirty.
211
- */
212
- declare function insertCustomNodeWrite(store: TreeDocumentStore, write: InsertCustomNodeWrite,
213
- /**
214
- * The part the customXml store hangs off, defaulting to the story being written.
215
- *
216
- * A chip in a header is written against the HEADER store, but Word enumerates the data
217
- * store from the main document part — a store authored off a header is one Word never
218
- * sees. So the caller passes the main part while the control itself lands in the story.
219
- */
220
- dataOwnerPartName?: string): CustomNodeWriteResult;
221
- /**
222
- * Remove a control and, in the same transaction, the payload it bound.
223
- *
224
- * The sweep would collect the node eventually — that is what makes deletion in Word survivable —
225
- * but "eventually" is the next open, and a document saved in between carries a payload for a
226
- * chip that is gone. Doing it here means the ordinary case is exact and the sweep is a backstop.
227
- */
228
- declare function removeCustomNodeWrite(store: TreeDocumentStore, controlNodeId: string): CustomNodeWriteResult;
229
- /**
230
- * What one sweep collected, or why it collected nothing.
231
- *
232
- * `ok: false` is NOT "the document was already tidy" — that is `ok: true` with an empty
233
- * `removed`. It means a store this sweep was asked to tidy refused the rewrite, which a caller
234
- * that keeps saving into the same document should know about rather than silently retry forever.
235
- */
236
- type CustomNodeSweepResult = {
237
- readonly ok: true;
238
- readonly pkg: OoxmlPackage;
239
- /** Node ids removed, across every store swept. Empty means there were no orphans. */
240
- readonly removed: readonly string[];
241
- } | {
242
- readonly ok: false;
243
- readonly reason: string;
244
- };
245
- /**
246
- * Drop every payload no control binds, in the stores whose namespaces a host claims.
247
- *
248
- * ON OPEN, NOT ON SAVE. A chip cut to the clipboard is unbound for as long as it sits there, so a
249
- * save mid-cut would destroy the payload the user is about to paste. On open the only unbound
250
- * nodes are ones a control genuinely lost — deleted here, or deleted in Word, which is the case
251
- * nothing else can collect.
252
- *
253
- * `namespaces` is the claim, and it is what keeps this off other people's stores: Word's own Cover
254
- * Page Properties store rides in most templates, and a sweep that walked every customXml part
255
- * would be deleting from it on the strength of a name collision.
256
- */
257
- declare function sweepCustomNodePayloads(pkg: OoxmlPackage, storyPartName: string, namespaces: readonly string[]): CustomNodeSweepResult;
258
- /** One control's payload, as the store holds it. Both strings are untrusted file input. */
259
- interface CustomNodePayloadRead {
260
- /** The store node's own id. */
261
- readonly nodeId: string;
262
- /** The text Word paints the control from. */
263
- readonly label: string;
264
- /** The payload as authored. JSON by convention, unparsed here. */
265
- readonly data: string;
266
- }
267
- /**
268
- * The payload every control in a story binds to, keyed by the CONTROL's canonical node id.
269
- *
270
- * Keyed by the control rather than by the store node because that is the question a reader
271
- * actually has — "what does this chip carry" — and because two stores may each hold a `cx1`.
272
- * Resolved here rather than by a capability package: the stores are package parts, and a
273
- * derivation that only gets story parts has no way to reach them.
274
- *
275
- * Every store the story relates to, so a document carrying two definitions' payloads answers
276
- * for both without anyone naming a namespace.
277
- */
278
- declare function customNodePayloadsByControl(pkg: OoxmlPackage, storyPartName: string,
279
- /**
280
- * The part that RELATES the customXml store, when it is not the story's own.
281
- *
282
- * Two different questions wear one name here: which part holds the CONTROLS, and which part
283
- * relates the STORE they bind into. Word only reads a store hung off the main document part,
284
- * so {@link writeCustomNode} already takes them separately — this read did not, and answered
285
- * with the body's controls whatever story it was asked about. A chip in a header therefore
286
- * read as having no payload at all, and an update that meant to keep the existing data
287
- * dropped it.
288
- */
289
- dataOwnerPartName?: string): ReadonlyMap<string, CustomNodePayloadRead>;
290
- /** Every payload one store holds, for a caller resolving a control's `data`. */
291
- declare function customNodePayloadsOf(pkg: OoxmlPackage, storyPartName: string, namespaceUri: string): ReadonlyMap<string, {
292
- readonly label: string;
293
- readonly data: string;
294
- }>;
295
- /**
296
- * What the session answers for a sweep: the ids collected, or the reason none were.
297
- *
298
- * Narrower than {@link CustomNodeSweepResult}, which also carries the rewritten package — the
299
- * session has already installed that, and handing it back would invite a caller to install it
300
- * twice.
301
- */
302
- type CustomNodeSweepOutcome = {
303
- readonly ok: true;
304
- readonly removed: readonly string[];
305
- } | {
306
- readonly ok: false;
307
- readonly reason: string;
308
- };
309
-
310
- export { type BookmarkIndex as B, type CustomNodeWriteResult as C, type DocumentTrackingSettings as D, type EmbeddedFont as E, type FontStyleKey as F, type InsertCustomNodeWrite as I, type ListKind as L, MAX_CUSTOM_NODE_LABEL_LENGTH as M, NO_TRACKING_SETTINGS as N, type ReadEmbeddedFontsOptions as R, type CustomNodeSweepOutcome as a, type BookmarkAnchor as b, type CustomNodePayloadRead as c, type CustomNodePayloadWrite as d, type CustomNodeSweepResult as e, type CustomNodeWriteRejection as f, MAX_CUSTOM_NODE_PAYLOAD_LENGTH as g, buildBookmarkIndex as h, customNodePayloadsByControl as i, customNodePayloadsOf as j, deobfuscateFont as k, ensureListDefinition as l, ensureNumberingLevel as m, insertCustomNodeWrite as n, readTrackingSettings as o, removeCustomNodeWrite as p, readEmbeddedFonts as r, sweepCustomNodePayloads as s };
@@ -1,28 +0,0 @@
1
- /**
2
- * The document metadata Word's document-property fields render.
3
- *
4
- * Every member is optional: an absent part, an absent element, or an empty value all read as
5
- * `undefined`, and a field over a missing property paints nothing. Keys are engine-internal
6
- * names; the field → property mapping (`TITLE` → `title`, `AUTHOR` → `creator`, …) lives in
7
- * `layout/field-doc-property.ts`.
8
- */
9
- interface DocumentProperties {
10
- /** `dc:title` — TITLE. */
11
- readonly title?: string;
12
- /** `dc:creator` — AUTHOR. */
13
- readonly creator?: string;
14
- /** `dc:subject` — SUBJECT. */
15
- readonly subject?: string;
16
- /** `cp:keywords` — KEYWORDS. */
17
- readonly keywords?: string;
18
- /** `cp:lastModifiedBy` — LASTSAVEDBY. */
19
- readonly lastModifiedBy?: string;
20
- /** `dc:description` — COMMENTS. */
21
- readonly description?: string;
22
- /** `Company` from `docProps/app.xml`. No field maps to it yet; carried for completeness. */
23
- readonly company?: string;
24
- /** `Manager` from `docProps/app.xml`. No field maps to it yet; carried for completeness. */
25
- readonly manager?: string;
26
- }
27
-
28
- export type { DocumentProperties as D };
@@ -1,28 +0,0 @@
1
- /**
2
- * The document metadata Word's document-property fields render.
3
- *
4
- * Every member is optional: an absent part, an absent element, or an empty value all read as
5
- * `undefined`, and a field over a missing property paints nothing. Keys are engine-internal
6
- * names; the field → property mapping (`TITLE` → `title`, `AUTHOR` → `creator`, …) lives in
7
- * `layout/field-doc-property.ts`.
8
- */
9
- interface DocumentProperties {
10
- /** `dc:title` — TITLE. */
11
- readonly title?: string;
12
- /** `dc:creator` — AUTHOR. */
13
- readonly creator?: string;
14
- /** `dc:subject` — SUBJECT. */
15
- readonly subject?: string;
16
- /** `cp:keywords` — KEYWORDS. */
17
- readonly keywords?: string;
18
- /** `cp:lastModifiedBy` — LASTSAVEDBY. */
19
- readonly lastModifiedBy?: string;
20
- /** `dc:description` — COMMENTS. */
21
- readonly description?: string;
22
- /** `Company` from `docProps/app.xml`. No field maps to it yet; carried for completeness. */
23
- readonly company?: string;
24
- /** `Manager` from `docProps/app.xml`. No field maps to it yet; carried for completeness. */
25
- readonly manager?: string;
26
- }
27
-
28
- export type { DocumentProperties as D };