@docx-editor.dev/core 2.8.0 → 2.9.1
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/dist/automation.cjs +1 -1
- package/dist/automation.d.cts +5 -6
- package/dist/automation.d.ts +5 -6
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +11 -12
- package/dist/binding.d.ts +11 -12
- package/dist/binding.js +1 -1
- package/dist/chunk-5VC5HGJA.js +2 -0
- package/dist/chunk-A2JIBG75.js +1 -0
- package/dist/chunk-DKMKH77K.cjs +5 -0
- package/dist/chunk-FWUI7EXG.cjs +15 -0
- package/dist/chunk-GZWMLQJO.js +18 -0
- package/dist/chunk-IEXDXWTA.cjs +1 -0
- package/dist/chunk-IMMAG4QP.cjs +10 -0
- package/dist/chunk-JTSNJQFO.js +15 -0
- package/dist/chunk-KBCC66CI.js +5 -0
- package/dist/chunk-LJ6BY6IU.cjs +18 -0
- package/dist/chunk-QDBAXFIK.js +2 -0
- package/dist/chunk-RD266XSK.cjs +2 -0
- package/dist/chunk-VUJGPCPU.js +10 -0
- package/dist/chunk-XMHWBL3K.cjs +2 -0
- package/dist/contracts/editor.d.cts +9 -9
- package/dist/contracts/editor.d.ts +9 -9
- 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/{custom-node-writes-BdVl-LAC.d.ts → custom-node-writes-7ERv0f_X.d.cts} +9 -10
- package/dist/{custom-node-writes-Bu8JIqfA.d.cts → custom-node-writes-QyVZdTUA.d.ts} +9 -10
- package/dist/{editor-CWlj33GH.d.cts → editor-CojjwMmF.d.cts} +4 -4
- package/dist/{editor-D52SD4jG.d.ts → editor-PUlv5Pp7.d.ts} +4 -4
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +129 -14
- package/dist/editor.d.cts +25 -25
- package/dist/editor.d.ts +25 -25
- package/dist/editor.js +1 -1
- package/dist/{hf-references-BdjsQNE_.d.ts → hf-references-Dvk6De4Q.d.cts} +1 -2
- package/dist/{hf-references-CgEOSw3i.d.cts → hf-references-z5Y4N1ab.d.ts} +1 -2
- package/dist/{image-resources-BveffuKp.d.cts → image-resources-DQOiwOuE.d.cts} +2 -2
- package/dist/{image-resources-D63k8w5f.d.ts → image-resources-eZqD_-vC.d.ts} +2 -2
- package/dist/{index-39yzaZO_.d.cts → index-DGPSeLI0.d.cts} +66 -13
- package/dist/{index-ZuqIj0b9.d.ts → index-oN-v8DQ5.d.ts} +66 -13
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +18 -18
- package/dist/index.d.ts +18 -18
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +353 -272
- package/dist/layout.d.ts +353 -272
- package/dist/layout.js +1 -1
- package/dist/{note-nodes-BPSTVDMr.d.ts → note-nodes-BNCANoGN.d.ts} +1 -1
- package/dist/{note-nodes-C6DLxlvj.d.cts → note-nodes-DL-Au22P.d.cts} +1 -1
- package/dist/note-properties-CQlxjic_.d.cts +67 -0
- package/dist/note-properties-jvnw_DGG.d.ts +67 -0
- package/dist/omml-equation-BD-LsmWE.d.cts +84 -0
- package/dist/omml-equation-Dd3mBep-.d.ts +84 -0
- package/dist/{ooxml-tree-BU0e3DVi.d.cts → ooxml-package-CdEy9ufK.d.cts} +352 -1
- package/dist/{ooxml-tree-BU0e3DVi.d.ts → ooxml-package-CdEy9ufK.d.ts} +352 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +8 -8
- package/dist/output.d.ts +8 -8
- package/dist/output.js +1 -1
- package/dist/{protocol-CD7slqvl.d.cts → protocol-C7ahrdUx.d.ts} +28 -4
- package/dist/{protocol-DsbfgBwA.d.ts → protocol-UuZOcOp7.d.cts} +28 -4
- package/dist/{review-support--I4ChuzF.d.ts → review-items-D5SPFtsO.d.ts} +49 -102
- package/dist/{review-support-CG7aVSPh.d.cts → review-items-DpsqTHio.d.cts} +49 -102
- package/dist/review-reads-B2Ji3fVU.d.ts +176 -0
- package/dist/review-reads-CP106AHp.d.cts +176 -0
- package/dist/{revision-projection-UKqvPa4-.d.ts → revision-projection-CILpvv4M.d.ts} +1 -1
- package/dist/{revision-projection-WzlQGBJx.d.cts → revision-projection-Cc4wz30g.d.cts} +1 -1
- package/dist/{semantic-cell-selection-I-uAmi0q.d.ts → semantic-cell-selection-BWhVAk5B.d.ts} +4 -4
- package/dist/{semantic-cell-selection-C45Gn4K-.d.cts → semantic-cell-selection-DJPjBWzf.d.cts} +4 -4
- package/dist/{semantic-interaction-DVUqu_47.d.cts → semantic-interaction-BjOcDB06.d.cts} +1 -1
- package/dist/{semantic-interaction-Bu_3IPaV.d.ts → semantic-interaction-Cca1-X_a.d.ts} +1 -1
- package/dist/{semantic-paint-BKiiDJol.d.ts → semantic-paint-CufpIQFw.d.ts} +7 -7
- package/dist/{semantic-paint-COQY0Lnq.d.cts → semantic-paint-Ur7pAINj.d.cts} +7 -7
- package/dist/{semantic-records-rAKWaD-1.d.cts → semantic-records-C3Z76KeN.d.cts} +59 -5
- package/dist/{semantic-records-DHcMZM2-.d.ts → semantic-records-Cc1MJrhM.d.ts} +59 -5
- package/dist/{shaped-measurer-Cw45Nu5R.d.ts → shaped-measurer-CYSK20E2.d.cts} +2 -4
- package/dist/{shaped-measurer-BRL__nm2.d.cts → shaped-measurer-CwlTPDJO.d.ts} +2 -4
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +78 -18
- package/dist/store.d.ts +78 -18
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-A-SLSKzK.d.cts → tree-op-types-B0-sCtw-.d.cts} +27 -3
- package/dist/{tree-op-types-BbzrA-kg.d.ts → tree-op-types-XMVsJSpe.d.ts} +27 -3
- package/dist/{tree-session-C2NsEgfW.d.cts → tree-session-D945D43B.d.cts} +9 -18
- package/dist/{tree-session-DeNJa86l.d.ts → tree-session-DBJgmdmc.d.ts} +9 -18
- package/dist/{tree-store-CKswbQl3.d.ts → tree-store-C6vc8E_2.d.cts} +2 -3
- package/dist/{tree-store-Dob9Us6Y.d.cts → tree-store-ClA-qng4.d.ts} +2 -3
- package/package.json +2 -2
- package/dist/chunk-2WIXJ7CW.js +0 -10
- package/dist/chunk-42PRWWVE.js +0 -2
- package/dist/chunk-5XKD3VFP.js +0 -18
- package/dist/chunk-HCSWWXS2.cjs +0 -2
- package/dist/chunk-HTJLSGBH.cjs +0 -18
- package/dist/chunk-JEHWQPXS.cjs +0 -1
- package/dist/chunk-KCJLRAKT.js +0 -5
- package/dist/chunk-KTL3UMPK.js +0 -2
- package/dist/chunk-M6ZIVJUA.cjs +0 -2
- package/dist/chunk-NU57YOQE.js +0 -15
- package/dist/chunk-RUS2YBWU.cjs +0 -10
- package/dist/chunk-TJEWP7MX.cjs +0 -15
- package/dist/chunk-UGUPVZDY.cjs +0 -5
- package/dist/chunk-XJRMFS6O.js +0 -1
- package/dist/chunk-XN634HAC.js +0 -2
- package/dist/chunk-XRDTD4X3.cjs +0 -2
- package/dist/content-control-walk-CbTqHq6O.d.cts +0 -56
- package/dist/content-control-walk-D06GijR0.d.ts +0 -56
- package/dist/ooxml-package-CR5us6ad.d.cts +0 -354
- package/dist/ooxml-package-D_CtywTW.d.ts +0 -354
- package/dist/review-reads-B_pXe43J.d.ts +0 -432
- package/dist/review-reads-Bn7aZU4u.d.cts +0 -432
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { a as OoxmlNode, b as OoxmlElement, p as OoxmlContentControlNode, m as OoxmlGenericElementNode, q as OoxmlContentControlContentNode, O as OoxmlPart } from './ooxml-package-CdEy9ufK.cjs';
|
|
2
|
+
import { C as CommentRecord, f as ReviewRange, R as ReviewModelInput, a as ReviewItem, e as ReviewPosition, h as CommentThreadState, c as ReviewCommentItem, b as ReviewRevisionItem } from './review-items-DpsqTHio.cjs';
|
|
3
|
+
|
|
4
|
+
/** Nested content-control wrappers deeper than this stop flattening; content stays preserved. */
|
|
5
|
+
declare const MAX_CONTENT_CONTROL_NESTING = 32;
|
|
6
|
+
type ContentControlLike = OoxmlContentControlNode | OoxmlGenericElementNode;
|
|
7
|
+
type ContentControlContentLike = OoxmlContentControlContentNode | OoxmlGenericElementNode;
|
|
8
|
+
/**
|
|
9
|
+
* Block or inline structured-document-tag wrapper — typed or generic during migration.
|
|
10
|
+
*
|
|
11
|
+
* Generic fallback requires the WordprocessingML namespace so foreign-namespace
|
|
12
|
+
* `<x:sdt>` elements stay opaque wrappers and are never treated as Word controls.
|
|
13
|
+
*/
|
|
14
|
+
declare function isContentControl(node: OoxmlNode): node is ContentControlLike;
|
|
15
|
+
/**
|
|
16
|
+
* True when `node` is the control's content container (`w:sdtContent`).
|
|
17
|
+
*
|
|
18
|
+
* Generic `sdtContent` requires the WML namespace — same foreign-namespace rule as
|
|
19
|
+
* {@link isContentControl}.
|
|
20
|
+
*/
|
|
21
|
+
declare function isContentControlContent(node: OoxmlNode): node is ContentControlContentLike;
|
|
22
|
+
/** Children of the first `w:sdtContent` under a control, or null when absent or not a control. */
|
|
23
|
+
declare function contentControlContentOf(node: OoxmlNode): readonly OoxmlNode[] | null;
|
|
24
|
+
/**
|
|
25
|
+
* Children of every `w:sdtContent` under a control, in document order.
|
|
26
|
+
*
|
|
27
|
+
* Does not recurse into nested controls — callers that flatten blocks or inline runs do that
|
|
28
|
+
* with their own depth counter against {@link MAX_CONTENT_CONTROL_NESTING}.
|
|
29
|
+
*/
|
|
30
|
+
declare function contentControlContentChildren(control: OoxmlNode): readonly OoxmlNode[];
|
|
31
|
+
/**
|
|
32
|
+
* Collect paragraph and table blocks from a sibling list, flattening through content-control
|
|
33
|
+
* wrappers up to {@link MAX_CONTENT_CONTROL_NESTING}.
|
|
34
|
+
*
|
|
35
|
+
* `accept` filters which typed blocks are kept (e.g. skip revision-removed paragraphs). When
|
|
36
|
+
* nesting exceeds the bound the wrapper is skipped entirely — same fail-closed rule as the
|
|
37
|
+
* historical `storyBlocks` walk.
|
|
38
|
+
*/
|
|
39
|
+
declare function collectFlowBlocks(children: readonly OoxmlNode[], depth?: number, accept?: (block: OoxmlElement) => boolean): OoxmlElement[];
|
|
40
|
+
/**
|
|
41
|
+
* Story blocks in document order, flattening block-level content controls — same shape as
|
|
42
|
+
* layout's `storyBlocks` and store `bodyBlocks`.
|
|
43
|
+
*/
|
|
44
|
+
declare function walkStoryBlocks(children: readonly OoxmlNode[], depth: number, visit: (block: OoxmlElement) => void): void;
|
|
45
|
+
/**
|
|
46
|
+
* Every story paragraph in reading order — body, table cells, and flattened block controls.
|
|
47
|
+
*/
|
|
48
|
+
declare function walkAllStoryParagraphs(children: readonly OoxmlNode[], sdtDepth: number, visit: (paragraph: OoxmlElement) => void): void;
|
|
49
|
+
/**
|
|
50
|
+
* Paragraph-level inline sequence — runs, hyperlinks, and inline content controls in order.
|
|
51
|
+
*
|
|
52
|
+
* `visit` receives each direct `w:r` and any other inline node the caller treats as opaque
|
|
53
|
+
* (bookmarks, drawings, …). Hyperlinks and content controls are descended transparently.
|
|
54
|
+
*/
|
|
55
|
+
declare function walkParagraphInline(children: readonly OoxmlNode[], depth: number, visit: (child: OoxmlNode) => void): void;
|
|
56
|
+
|
|
57
|
+
/** Plain text of a comment's body, so a card never re-implements the run walk. */
|
|
58
|
+
declare function commentBodyText(comment: CommentRecord): string;
|
|
59
|
+
/** Author initials for an avatar, from `@w:initials` or the name. */
|
|
60
|
+
declare function commentInitials(comment: CommentRecord): string;
|
|
61
|
+
/**
|
|
62
|
+
* Every revision in one story, one card per DECISION.
|
|
63
|
+
*
|
|
64
|
+
* Sites sharing an `(id, author, date)` triple are ONE revision — a tracked row insertion is
|
|
65
|
+
* `w:trPr/w:ins` plus `w:cellIns` on every cell — so they coalesce into one card listing every
|
|
66
|
+
* range it touches. Keying per site would show the reviewer four decisions where there is one,
|
|
67
|
+
* and accepting any of them would make the other three vanish.
|
|
68
|
+
*
|
|
69
|
+
* Memoized per part root like the indexes it reads, and for the same reason: a heavily
|
|
70
|
+
* tracked document produces tens of thousands of cards, and rebuilding them per read cost
|
|
71
|
+
* more than everything the memos above saved. The paragraph-scoped view the local review
|
|
72
|
+
* patch derives (`revisionItemsOfParagraph`'s synthetic paragraph-root part) is NOT cached:
|
|
73
|
+
* each keystroke would insert a fresh root and churn the bounded ring. The instance is
|
|
74
|
+
* SHARED, so the return type is readonly.
|
|
75
|
+
*/
|
|
76
|
+
declare function revisionItemsOf(part: OoxmlPart): readonly ReviewRevisionItem[];
|
|
77
|
+
/**
|
|
78
|
+
* Comment cards, threaded however the file says so and flat when nothing says so.
|
|
79
|
+
*
|
|
80
|
+
* ECMA-376 §17.13.4.2 gives `CT_Comment` no parent pointer, so threading is never something
|
|
81
|
+
* the standard states outright. Three sources, strongest first: `@w15:paraIdParent`, then
|
|
82
|
+
* `@w16cid:parentId` — both in namespaces outside Part 1 — and finally a COINCIDENT anchor, a
|
|
83
|
+
* comment whose `w:commentRangeStart`/`End` cover exactly the characters an earlier comment's
|
|
84
|
+
* cover. The ranges are Part 1's own vocabulary and the only part of a thread that survives a
|
|
85
|
+
* producer dropping the extension parts. Coincidence is the last resort and never overrides a
|
|
86
|
+
* stated link.
|
|
87
|
+
*
|
|
88
|
+
* Deliberately not containment. A remark on one word inside another remark's sentence nests
|
|
89
|
+
* without being a reply, and reading that as a thread would bury an independent comment inside
|
|
90
|
+
* someone else's.
|
|
91
|
+
*/
|
|
92
|
+
declare function commentItemsOf(comments: readonly CommentRecord[], anchors: readonly {
|
|
93
|
+
commentId: string;
|
|
94
|
+
partName: string;
|
|
95
|
+
start: ReviewPosition;
|
|
96
|
+
end: ReviewPosition;
|
|
97
|
+
orphaned: boolean;
|
|
98
|
+
}[], threadState: ReadonlyMap<string, CommentThreadState>): ReviewCommentItem[];
|
|
99
|
+
/**
|
|
100
|
+
* Everything the review surface lists, in document order.
|
|
101
|
+
*
|
|
102
|
+
* Order is by paragraph position within the story, then by offset. A comment and the revision
|
|
103
|
+
* it covers therefore arrive together, which is what lets a surface group them. Furniture
|
|
104
|
+
* stories rank after the body in one merged order — their geometry (the page they first paint
|
|
105
|
+
* on) is a layout question the queue deliberately does not answer.
|
|
106
|
+
*/
|
|
107
|
+
declare function collectReviewItems(input: ReviewModelInput): ReviewItem[];
|
|
108
|
+
/**
|
|
109
|
+
* The shape {@link linkRevisionReplies} needs, stated STRUCTURALLY.
|
|
110
|
+
*
|
|
111
|
+
* The store's queue is revisions and comments; the layout lane's adds a third kind for custom
|
|
112
|
+
* nodes, and neither union is assignable to the other. Both lanes have to run this pass — the
|
|
113
|
+
* store on the full derivation, the session on the locally patched list — so the pass is
|
|
114
|
+
* written against the fields it actually reads rather than against either union, and hands
|
|
115
|
+
* back the caller's own item type.
|
|
116
|
+
*/
|
|
117
|
+
interface LinkableReviewItem {
|
|
118
|
+
readonly kind: string;
|
|
119
|
+
readonly id: string;
|
|
120
|
+
readonly ranges?: readonly ReviewRange[];
|
|
121
|
+
readonly range?: ReviewRange | null;
|
|
122
|
+
readonly parentId?: string;
|
|
123
|
+
readonly parentRevisionId?: string;
|
|
124
|
+
readonly replyIds?: readonly string[];
|
|
125
|
+
readonly orphaned?: boolean;
|
|
126
|
+
/** How deeply a revision is nested; absent on the kinds that cannot nest. */
|
|
127
|
+
readonly nesting?: number;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Attach each comment that answers a tracked change to the change it answers.
|
|
131
|
+
*
|
|
132
|
+
* The evidence is the RANGE, exactly as it is for a coincident comment thread: replying to a
|
|
133
|
+
* revision writes a comment over that revision's own characters, because OOXML gives `w:ins`
|
|
134
|
+
* and `w:del` nowhere else to put the text. Without this the reply came back as an independent
|
|
135
|
+
* card in the rail, sitting beside the change rather than inside it, and the reader had no way
|
|
136
|
+
* to see which change their answer belonged to.
|
|
137
|
+
*
|
|
138
|
+
* Three things keep it from over-claiming. A ZERO-WIDTH range is evidence of nothing — the same
|
|
139
|
+
* rule the comment threading uses, and a format or paragraph-mark revision decorates no
|
|
140
|
+
* characters at all. A comment already stated to be a REPLY to another comment is not claimed
|
|
141
|
+
* directly, because a stated link always beats an inferred one. And the FIRST revision on a span
|
|
142
|
+
* wins, so a card cannot claim a reply another card already holds.
|
|
143
|
+
*
|
|
144
|
+
* The WHOLE conversation moves, not its head. A change's card renders `replyIds` as a flat list,
|
|
145
|
+
* so linking only the top comment of a thread left every answer to that answer rendered by
|
|
146
|
+
* nobody: reply twice to one change and the second reply existed in `comments.xml` and appeared
|
|
147
|
+
* nowhere on screen. Descendants ride along, in the order they were authored.
|
|
148
|
+
*
|
|
149
|
+
* IDEMPOTENT, and that is load-bearing. The session re-runs this over a list whose comments are
|
|
150
|
+
* ALREADY linked, so a pass that only ever added links left a stale `parentRevisionId` behind
|
|
151
|
+
* when a keystroke shifted the revision's offsets out from under it — the rail filters such a
|
|
152
|
+
* comment out of its roots, and with no revision claiming it any more the card vanished until
|
|
153
|
+
* the next full re-derivation. Every link is rebuilt from the ranges on every pass.
|
|
154
|
+
*/
|
|
155
|
+
declare function linkRevisionReplies<T extends LinkableReviewItem>(items: readonly T[]): T[];
|
|
156
|
+
/**
|
|
157
|
+
* Paragraph node id → document position, from the TREE rather than from a layout.
|
|
158
|
+
*
|
|
159
|
+
* Memoized on the immutable root: one full derivation pass asks this question three times
|
|
160
|
+
* (replacement pairing, the queue's merged order, the session's cached order), and each
|
|
161
|
+
* answer was a fresh full-tree walk. The instance is SHARED, so the return type is
|
|
162
|
+
* ReadonlyMap: a caller mutating it would poison every later reader of this root.
|
|
163
|
+
*/
|
|
164
|
+
declare function paragraphOrderOfPart(part: OoxmlPart): ReadonlyMap<string, number>;
|
|
165
|
+
/**
|
|
166
|
+
* Like {@link paragraphOrderOfPart}, but descends INTO paragraphs, so paragraphs nested
|
|
167
|
+
* in a run's content — a textbox's `w:txbxContent` — rank right after their host.
|
|
168
|
+
*
|
|
169
|
+
* A separate function on purpose: the shallow order feeds the review queue's card
|
|
170
|
+
* ordering, and re-ranking nested paragraphs there would move cards. This one exists for
|
|
171
|
+
* position containment tests ("is the caret inside this range"), where a paragraph the
|
|
172
|
+
* shallow order cannot see is a position that can never match.
|
|
173
|
+
*/
|
|
174
|
+
declare function deepParagraphOrderOfPart(part: OoxmlPart): ReadonlyMap<string, number>;
|
|
175
|
+
|
|
176
|
+
export { type LinkableReviewItem as L, MAX_CONTENT_CONTROL_NESTING as M, commentBodyText as a, commentInitials as b, collectFlowBlocks as c, contentControlContentChildren as d, isContentControlContent as e, collectReviewItems as f, commentItemsOf as g, contentControlContentOf as h, isContentControl as i, deepParagraphOrderOfPart as j, walkParagraphInline as k, linkRevisionReplies as l, walkStoryBlocks as m, paragraphOrderOfPart as p, revisionItemsOf as r, walkAllStoryParagraphs as w };
|
package/dist/{semantic-cell-selection-I-uAmi0q.d.ts → semantic-cell-selection-BWhVAk5B.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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 { O as OoxmlPart, b as OoxmlElement, a as OoxmlNode } from './ooxml-package-CdEy9ufK.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-Cc1MJrhM.js';
|
|
3
|
+
import { R as RevisionDisplayMode } from './revision-projection-CILpvv4M.js';
|
|
4
|
+
import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-Cca1-X_a.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Hard ceiling on sections enumerated from a document (matches write-path
|
package/dist/{semantic-cell-selection-C45Gn4K-.d.cts → semantic-cell-selection-DJPjBWzf.d.cts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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 { O as OoxmlPart, b as OoxmlElement, a as OoxmlNode } from './ooxml-package-CdEy9ufK.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-C3Z76KeN.cjs';
|
|
3
|
+
import { R as RevisionDisplayMode } from './revision-projection-Cc4wz30g.cjs';
|
|
4
|
+
import { S as SemanticPosition, C as CaretGeometry, a as SemanticSelection } from './semantic-interaction-BjOcDB06.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-C3Z76KeN.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-Cc1MJrhM.js';
|
|
2
2
|
|
|
3
3
|
/** A caret position in the model. */
|
|
4
4
|
interface SemanticPosition {
|
|
@@ -1,5 +1,5 @@
|
|
|
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-Cc1MJrhM.js';
|
|
2
|
+
import { V as ValidatedImageBytesHandle, R as RenderableImageMime } from './image-resources-eZqD_-vC.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Everything a host can say about ONE author's presentation. Every field is optional and
|
|
@@ -50,10 +50,10 @@ interface RevisionAuthorAssignments {
|
|
|
50
50
|
* How painted tracked changes are coloured.
|
|
51
51
|
*
|
|
52
52
|
* - `'author'` (the DEFAULT) — every change takes its author's colour from the
|
|
53
|
-
* `--doc-review-author-N` ramp
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* ramp.
|
|
53
|
+
* `--doc-review-author-N` ramp. An attached document seeds slots by order of first
|
|
54
|
+
* appearance, then keeps those assignments stable for that session. Word's own default,
|
|
55
|
+
* and the reason it is this engine's: a paragraph three people edited has to read as three
|
|
56
|
+
* people. Restyle a slot under `.docx-editor` to change the ramp.
|
|
57
57
|
* - `'kind'` — insertions and deletions take the two kind colours
|
|
58
58
|
* (`--doc-revision-insertion` / `--doc-revision-deletion`), so "added" and "removed" are
|
|
59
59
|
* what a reader tells apart at a glance, whoever proposed them.
|
|
@@ -74,7 +74,7 @@ interface ReviewAuthorInfo {
|
|
|
74
74
|
/** The `w:author` string, exactly as the file carries it. */
|
|
75
75
|
readonly author: string;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Stable session rank, seeded by order of first appearance — an UNBOUNDED index.
|
|
78
78
|
*
|
|
79
79
|
* The ramp defines {@link REVIEW_AUTHOR_SLOTS} colours and every DOM hook wraps into it,
|
|
80
80
|
* so the ninth author ranks 8 here and carries `data-review-author-slot="0"`. Building a
|
|
@@ -1,5 +1,5 @@
|
|
|
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-C3Z76KeN.cjs';
|
|
2
|
+
import { V as ValidatedImageBytesHandle, R as RenderableImageMime } from './image-resources-DQOiwOuE.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Everything a host can say about ONE author's presentation. Every field is optional and
|
|
@@ -50,10 +50,10 @@ interface RevisionAuthorAssignments {
|
|
|
50
50
|
* How painted tracked changes are coloured.
|
|
51
51
|
*
|
|
52
52
|
* - `'author'` (the DEFAULT) — every change takes its author's colour from the
|
|
53
|
-
* `--doc-review-author-N` ramp
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* ramp.
|
|
53
|
+
* `--doc-review-author-N` ramp. An attached document seeds slots by order of first
|
|
54
|
+
* appearance, then keeps those assignments stable for that session. Word's own default,
|
|
55
|
+
* and the reason it is this engine's: a paragraph three people edited has to read as three
|
|
56
|
+
* people. Restyle a slot under `.docx-editor` to change the ramp.
|
|
57
57
|
* - `'kind'` — insertions and deletions take the two kind colours
|
|
58
58
|
* (`--doc-revision-insertion` / `--doc-revision-deletion`), so "added" and "removed" are
|
|
59
59
|
* what a reader tells apart at a glance, whoever proposed them.
|
|
@@ -74,7 +74,7 @@ interface ReviewAuthorInfo {
|
|
|
74
74
|
/** The `w:author` string, exactly as the file carries it. */
|
|
75
75
|
readonly author: string;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Stable session rank, seeded by order of first appearance — an UNBOUNDED index.
|
|
78
78
|
*
|
|
79
79
|
* The ramp defines {@link REVIEW_AUTHOR_SLOTS} colours and every DOM hook wraps into it,
|
|
80
80
|
* so the ninth author ranks 8 here and carries `data-review-author-slot="0"`. Building a
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as OoxmlProperty,
|
|
3
|
-
import { I as ImageResourceState } from './image-resources-
|
|
4
|
-
import { a as RevisionAttribution } from './revision-projection-
|
|
1
|
+
import { a as OoxmlNode, r as OoxmlDrawingNode, b as OoxmlElement, O as OoxmlPart } from './ooxml-package-CdEy9ufK.cjs';
|
|
2
|
+
import { O as OoxmlProperty, k as DrawingAccessibility, S as SourceCrop, l as DrawingTransform, V as VectorShapeProjection, f as DrawingHorizontalReferenceFrame, g as DrawingVerticalReferenceFrame, b as ImageWrapTarget, D as DrawingProjection, m as TableBorderStyle } from './tree-op-types-B0-sCtw-.cjs';
|
|
3
|
+
import { I as ImageResourceState } from './image-resources-DQOiwOuE.cjs';
|
|
4
|
+
import { a as RevisionAttribution } from './revision-projection-Cc4wz30g.cjs';
|
|
5
|
+
import { O as OmmlEquationProjection } from './omml-equation-BD-LsmWE.cjs';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Whether a paragraph must start a new page (`w:pageBreakBefore`).
|
|
@@ -830,6 +831,57 @@ declare function resolveTableCellBorderGrid(rows: readonly (readonly BorderGridC
|
|
|
830
831
|
/** Width contribution of a resolved edge for content inset / row sizing. */
|
|
831
832
|
declare function borderExtentPt(edge: ResolvedTableBorderEdge | TableBorderSide | undefined): number;
|
|
832
833
|
|
|
834
|
+
interface EquationGeometryBase {
|
|
835
|
+
readonly box: LayoutBox;
|
|
836
|
+
/** Baseline measured from this node's top edge. */
|
|
837
|
+
readonly baseline: number;
|
|
838
|
+
}
|
|
839
|
+
interface EquationTextGeometry extends EquationGeometryBase {
|
|
840
|
+
readonly kind: 'text' | 'fallback';
|
|
841
|
+
readonly text: string;
|
|
842
|
+
readonly fontSizePt: number;
|
|
843
|
+
}
|
|
844
|
+
interface EquationRowGeometry extends EquationGeometryBase {
|
|
845
|
+
readonly kind: 'row';
|
|
846
|
+
readonly items: readonly EquationGeometry[];
|
|
847
|
+
}
|
|
848
|
+
interface EquationFractionGeometry extends EquationGeometryBase {
|
|
849
|
+
readonly kind: 'fraction';
|
|
850
|
+
readonly numerator: EquationGeometry;
|
|
851
|
+
readonly denominator: EquationGeometry;
|
|
852
|
+
readonly bar: LayoutBox;
|
|
853
|
+
}
|
|
854
|
+
interface EquationRadicalGeometry extends EquationGeometryBase {
|
|
855
|
+
readonly kind: 'radical';
|
|
856
|
+
readonly sign: EquationTextGeometry;
|
|
857
|
+
readonly radicand: EquationGeometry;
|
|
858
|
+
readonly degree?: EquationGeometry;
|
|
859
|
+
readonly bar: LayoutBox;
|
|
860
|
+
}
|
|
861
|
+
interface EquationScriptGeometry extends EquationGeometryBase {
|
|
862
|
+
readonly kind: 'script';
|
|
863
|
+
readonly base: EquationGeometry;
|
|
864
|
+
readonly subscript?: EquationGeometry;
|
|
865
|
+
readonly superscript?: EquationGeometry;
|
|
866
|
+
}
|
|
867
|
+
interface EquationNaryGeometry extends EquationGeometryBase {
|
|
868
|
+
readonly kind: 'nary';
|
|
869
|
+
readonly operator: EquationTextGeometry;
|
|
870
|
+
readonly body: EquationGeometry;
|
|
871
|
+
readonly lowerLimit?: EquationGeometry;
|
|
872
|
+
readonly upperLimit?: EquationGeometry;
|
|
873
|
+
}
|
|
874
|
+
type EquationGeometry = EquationTextGeometry | EquationRowGeometry | EquationFractionGeometry | EquationRadicalGeometry | EquationScriptGeometry | EquationNaryGeometry;
|
|
875
|
+
/** Equation metadata carried by one atomic semantic span. */
|
|
876
|
+
interface EquationSpanRecord {
|
|
877
|
+
readonly sourceNodeId: string;
|
|
878
|
+
readonly geometry: EquationGeometry;
|
|
879
|
+
readonly fallbackText: string;
|
|
880
|
+
readonly truncated: boolean;
|
|
881
|
+
}
|
|
882
|
+
/** Compose one bounded OMML projection into paint-ready point geometry. */
|
|
883
|
+
declare function layoutEquation(projection: OmmlEquationProjection, measurer: TextMeasurer, style: ResolvedRunStyle): EquationSpanRecord;
|
|
884
|
+
|
|
833
885
|
/** A half-open UTF-16 range inside one paragraph, addressed by its canonical node id. */
|
|
834
886
|
interface SourceRange {
|
|
835
887
|
readonly paragraphId: string;
|
|
@@ -980,6 +1032,8 @@ interface StyleSpanRecord {
|
|
|
980
1032
|
* and selection mapping refuses them the way it refuses markers.
|
|
981
1033
|
*/
|
|
982
1034
|
readonly projected?: boolean;
|
|
1035
|
+
/** Paint-ready geometry for one atomic Office Math equation. */
|
|
1036
|
+
readonly equation?: EquationSpanRecord;
|
|
983
1037
|
/**
|
|
984
1038
|
* Footnote/endnote navigation metadata for projected note atoms.
|
|
985
1039
|
*
|
|
@@ -1595,4 +1649,4 @@ interface TextMeasurer {
|
|
|
1595
1649
|
};
|
|
1596
1650
|
}
|
|
1597
1651
|
|
|
1598
|
-
export {
|
|
1652
|
+
export { type LineSpacingRule as $, type AnchoredDrawingRecord as A, type BlockFragmentRecord as B, type ContentControlBoundaryRecord as C, type DrawingPoint as D, DEFAULT_TAB_INTERVAL_PT as E, type FieldLinkProjector as F, DEFAULT_TAB_INTERVAL_TWIPS as G, type HyperlinkProjector as H, type InlineDrawingRecord as I, EMPTY_TAB_STOPS as J, type EquationFractionGeometry as K, type LineRecord as L, type ModelRange as M, type EquationGeometry as N, type EquationNaryGeometry as O, type PageGeometry as P, type EquationRadicalGeometry as Q, type ResolvedRunStyle as R, type SemanticLayout as S, type TextMeasurer as T, type EquationRowGeometry as U, type EquationScriptGeometry as V, type EquationSpanRecord as W, type EquationTextGeometry as X, type FieldAtomMarker as Y, type HeaderFooterStoryRecord as Z, type HyperlinkFieldSpec as _, type StyleSpanRecord as a, type ListMarkerRecord as a0, MAX_BORDER_SPACE_PT as a1, MAX_BORDER_WIDTH_PT as a2, MAX_PARAGRAPH_SPACING_PT as a3, MAX_TABLE_BORDER_STROKES as a4, MAX_TAB_POSITION_TWIPS as a5, MAX_TAB_STOPS as a6, PARAGRAPH_BORDER_SIDES as a7, type ParagraphAutoSpacingContext as a8, type ParagraphBorderSide as a9, cascadedTabStops as aA, collapsedSpaceBefore as aB, defaultTabIntervalFromSettings as aC, displayText as aD, layoutEquation as aE, measureDisplayText as aF, nextTabDestination as aG, paragraphBorderExtentPt as aH, paragraphBorderStrokeWidthPt as aI, paragraphBorders as aJ, paragraphBordersFingerprint as aK, paragraphBreaksBefore as aL, paragraphContextualSpacing as aM, paragraphLineSpacing as aN, paragraphSpacing as aO, paragraphTabStops as aP, readBorderSide as aQ, readCellBorders as aR, readTableBorders as aS, resolveBorderConflict as aT, resolveRunStyle as aU, resolveTableCellBorderGrid as aV, runStylesEqual as aW, tabAdvanceWidth as aX, tabStopsFingerprint as aY, withDefaultTabInterval as aZ, type ParagraphBorderStrokeRecord as aa, type ParagraphBottomBorderRecord as ab, type ParagraphIndent as ac, type ResolvedCellBorders as ad, type ResolvedTableBorderEdge as ae, type ResolvedTableBorderEdgeSegment as af, type ResolvedUnderline as ag, SINGLE_LINE_SPACING as ah, type SourceRange as ai, type SpanLinkRecord as aj, TAB_LEADER_GLYPH as ak, type TabAlignment as al, type TabDestination as am, type TabLeader as an, type TabStop as ao, type TableBorderSideName as ap, type TableBorderStrokeRecord as aq, type TableFragmentRecord as ar, type VerticalAlign as as, appliedSpaceBefore as at, applyLineSpacing as au, baselineShiftPtOf as av, borderExtentPt as aw, borderWeight as ax, bottomBorderExtentPt as ay, cascadedParagraphBorders as az, type TableRowFragmentRecord as b, type TableCellFragmentRecord as c, type LayoutBox as d, type DrawingInsets as e, type PageRecord as f, type ThemeFonts as g, type ParagraphSpacing as h, type ParagraphLineSpacing as i, type ParagraphBorderEdge as j, type ParagraphBorders as k, type ResolvedTabStops as l, type TableBorderSide as m, type ContentControlLock as n, type ParagraphFragmentRecord as o, type InlineDrawingLayoutContext as p, type StoryPageFieldNeeds as q, type CellBorderBox as r, type TableBorderBox as s, AUTO_PARAGRAPH_SPACING_PT as t, type BorderGridGeometry as u, type ContentControlGeometryFragment as v, type ContentControlLevel as w, type ContentControlMappedType as x, DEFAULT_PAGE_GEOMETRY as y, DEFAULT_RUN_STYLE as z };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as OoxmlProperty,
|
|
3
|
-
import { I as ImageResourceState } from './image-resources-
|
|
4
|
-
import { a as RevisionAttribution } from './revision-projection-
|
|
1
|
+
import { a as OoxmlNode, r as OoxmlDrawingNode, b as OoxmlElement, O as OoxmlPart } from './ooxml-package-CdEy9ufK.js';
|
|
2
|
+
import { O as OoxmlProperty, k as DrawingAccessibility, S as SourceCrop, l as DrawingTransform, V as VectorShapeProjection, f as DrawingHorizontalReferenceFrame, g as DrawingVerticalReferenceFrame, b as ImageWrapTarget, D as DrawingProjection, m as TableBorderStyle } from './tree-op-types-XMVsJSpe.js';
|
|
3
|
+
import { I as ImageResourceState } from './image-resources-eZqD_-vC.js';
|
|
4
|
+
import { a as RevisionAttribution } from './revision-projection-CILpvv4M.js';
|
|
5
|
+
import { O as OmmlEquationProjection } from './omml-equation-Dd3mBep-.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Whether a paragraph must start a new page (`w:pageBreakBefore`).
|
|
@@ -830,6 +831,57 @@ declare function resolveTableCellBorderGrid(rows: readonly (readonly BorderGridC
|
|
|
830
831
|
/** Width contribution of a resolved edge for content inset / row sizing. */
|
|
831
832
|
declare function borderExtentPt(edge: ResolvedTableBorderEdge | TableBorderSide | undefined): number;
|
|
832
833
|
|
|
834
|
+
interface EquationGeometryBase {
|
|
835
|
+
readonly box: LayoutBox;
|
|
836
|
+
/** Baseline measured from this node's top edge. */
|
|
837
|
+
readonly baseline: number;
|
|
838
|
+
}
|
|
839
|
+
interface EquationTextGeometry extends EquationGeometryBase {
|
|
840
|
+
readonly kind: 'text' | 'fallback';
|
|
841
|
+
readonly text: string;
|
|
842
|
+
readonly fontSizePt: number;
|
|
843
|
+
}
|
|
844
|
+
interface EquationRowGeometry extends EquationGeometryBase {
|
|
845
|
+
readonly kind: 'row';
|
|
846
|
+
readonly items: readonly EquationGeometry[];
|
|
847
|
+
}
|
|
848
|
+
interface EquationFractionGeometry extends EquationGeometryBase {
|
|
849
|
+
readonly kind: 'fraction';
|
|
850
|
+
readonly numerator: EquationGeometry;
|
|
851
|
+
readonly denominator: EquationGeometry;
|
|
852
|
+
readonly bar: LayoutBox;
|
|
853
|
+
}
|
|
854
|
+
interface EquationRadicalGeometry extends EquationGeometryBase {
|
|
855
|
+
readonly kind: 'radical';
|
|
856
|
+
readonly sign: EquationTextGeometry;
|
|
857
|
+
readonly radicand: EquationGeometry;
|
|
858
|
+
readonly degree?: EquationGeometry;
|
|
859
|
+
readonly bar: LayoutBox;
|
|
860
|
+
}
|
|
861
|
+
interface EquationScriptGeometry extends EquationGeometryBase {
|
|
862
|
+
readonly kind: 'script';
|
|
863
|
+
readonly base: EquationGeometry;
|
|
864
|
+
readonly subscript?: EquationGeometry;
|
|
865
|
+
readonly superscript?: EquationGeometry;
|
|
866
|
+
}
|
|
867
|
+
interface EquationNaryGeometry extends EquationGeometryBase {
|
|
868
|
+
readonly kind: 'nary';
|
|
869
|
+
readonly operator: EquationTextGeometry;
|
|
870
|
+
readonly body: EquationGeometry;
|
|
871
|
+
readonly lowerLimit?: EquationGeometry;
|
|
872
|
+
readonly upperLimit?: EquationGeometry;
|
|
873
|
+
}
|
|
874
|
+
type EquationGeometry = EquationTextGeometry | EquationRowGeometry | EquationFractionGeometry | EquationRadicalGeometry | EquationScriptGeometry | EquationNaryGeometry;
|
|
875
|
+
/** Equation metadata carried by one atomic semantic span. */
|
|
876
|
+
interface EquationSpanRecord {
|
|
877
|
+
readonly sourceNodeId: string;
|
|
878
|
+
readonly geometry: EquationGeometry;
|
|
879
|
+
readonly fallbackText: string;
|
|
880
|
+
readonly truncated: boolean;
|
|
881
|
+
}
|
|
882
|
+
/** Compose one bounded OMML projection into paint-ready point geometry. */
|
|
883
|
+
declare function layoutEquation(projection: OmmlEquationProjection, measurer: TextMeasurer, style: ResolvedRunStyle): EquationSpanRecord;
|
|
884
|
+
|
|
833
885
|
/** A half-open UTF-16 range inside one paragraph, addressed by its canonical node id. */
|
|
834
886
|
interface SourceRange {
|
|
835
887
|
readonly paragraphId: string;
|
|
@@ -980,6 +1032,8 @@ interface StyleSpanRecord {
|
|
|
980
1032
|
* and selection mapping refuses them the way it refuses markers.
|
|
981
1033
|
*/
|
|
982
1034
|
readonly projected?: boolean;
|
|
1035
|
+
/** Paint-ready geometry for one atomic Office Math equation. */
|
|
1036
|
+
readonly equation?: EquationSpanRecord;
|
|
983
1037
|
/**
|
|
984
1038
|
* Footnote/endnote navigation metadata for projected note atoms.
|
|
985
1039
|
*
|
|
@@ -1595,4 +1649,4 @@ interface TextMeasurer {
|
|
|
1595
1649
|
};
|
|
1596
1650
|
}
|
|
1597
1651
|
|
|
1598
|
-
export {
|
|
1652
|
+
export { type LineSpacingRule as $, type AnchoredDrawingRecord as A, type BlockFragmentRecord as B, type ContentControlBoundaryRecord as C, type DrawingPoint as D, DEFAULT_TAB_INTERVAL_PT as E, type FieldLinkProjector as F, DEFAULT_TAB_INTERVAL_TWIPS as G, type HyperlinkProjector as H, type InlineDrawingRecord as I, EMPTY_TAB_STOPS as J, type EquationFractionGeometry as K, type LineRecord as L, type ModelRange as M, type EquationGeometry as N, type EquationNaryGeometry as O, type PageGeometry as P, type EquationRadicalGeometry as Q, type ResolvedRunStyle as R, type SemanticLayout as S, type TextMeasurer as T, type EquationRowGeometry as U, type EquationScriptGeometry as V, type EquationSpanRecord as W, type EquationTextGeometry as X, type FieldAtomMarker as Y, type HeaderFooterStoryRecord as Z, type HyperlinkFieldSpec as _, type StyleSpanRecord as a, type ListMarkerRecord as a0, MAX_BORDER_SPACE_PT as a1, MAX_BORDER_WIDTH_PT as a2, MAX_PARAGRAPH_SPACING_PT as a3, MAX_TABLE_BORDER_STROKES as a4, MAX_TAB_POSITION_TWIPS as a5, MAX_TAB_STOPS as a6, PARAGRAPH_BORDER_SIDES as a7, type ParagraphAutoSpacingContext as a8, type ParagraphBorderSide as a9, cascadedTabStops as aA, collapsedSpaceBefore as aB, defaultTabIntervalFromSettings as aC, displayText as aD, layoutEquation as aE, measureDisplayText as aF, nextTabDestination as aG, paragraphBorderExtentPt as aH, paragraphBorderStrokeWidthPt as aI, paragraphBorders as aJ, paragraphBordersFingerprint as aK, paragraphBreaksBefore as aL, paragraphContextualSpacing as aM, paragraphLineSpacing as aN, paragraphSpacing as aO, paragraphTabStops as aP, readBorderSide as aQ, readCellBorders as aR, readTableBorders as aS, resolveBorderConflict as aT, resolveRunStyle as aU, resolveTableCellBorderGrid as aV, runStylesEqual as aW, tabAdvanceWidth as aX, tabStopsFingerprint as aY, withDefaultTabInterval as aZ, type ParagraphBorderStrokeRecord as aa, type ParagraphBottomBorderRecord as ab, type ParagraphIndent as ac, type ResolvedCellBorders as ad, type ResolvedTableBorderEdge as ae, type ResolvedTableBorderEdgeSegment as af, type ResolvedUnderline as ag, SINGLE_LINE_SPACING as ah, type SourceRange as ai, type SpanLinkRecord as aj, TAB_LEADER_GLYPH as ak, type TabAlignment as al, type TabDestination as am, type TabLeader as an, type TabStop as ao, type TableBorderSideName as ap, type TableBorderStrokeRecord as aq, type TableFragmentRecord as ar, type VerticalAlign as as, appliedSpaceBefore as at, applyLineSpacing as au, baselineShiftPtOf as av, borderExtentPt as aw, borderWeight as ax, bottomBorderExtentPt as ay, cascadedParagraphBorders as az, type TableRowFragmentRecord as b, type TableCellFragmentRecord as c, type LayoutBox as d, type DrawingInsets as e, type PageRecord as f, type ThemeFonts as g, type ParagraphSpacing as h, type ParagraphLineSpacing as i, type ParagraphBorderEdge as j, type ParagraphBorders as k, type ResolvedTabStops as l, type TableBorderSide as m, type ContentControlLock as n, type ParagraphFragmentRecord as o, type InlineDrawingLayoutContext as p, type StoryPageFieldNeeds as q, type CellBorderBox as r, type TableBorderBox as s, AUTO_PARAGRAPH_SPACING_PT as t, type BorderGridGeometry as u, type ContentControlGeometryFragment as v, type ContentControlLevel as w, type ContentControlMappedType as x, DEFAULT_PAGE_GEOMETRY as y, DEFAULT_RUN_STYLE as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ResolvedRunStyle, T as TextMeasurer } from './semantic-records-
|
|
1
|
+
import { R as ResolvedRunStyle, T as TextMeasurer } from './semantic-records-C3Z76KeN.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A face, as something asks for it: family plus the two axes this engine admits.
|
|
@@ -172,8 +172,6 @@ interface FontResourceInstrumentation {
|
|
|
172
172
|
* a document may name a family either way and both must reach the same face.
|
|
173
173
|
*/
|
|
174
174
|
declare const fontRequestKey: (request: FontRequest) => string;
|
|
175
|
-
/** Synchronous platform-neutral SHA-256 used before font bytes cross into a shaping implementation. */
|
|
176
|
-
declare const sha256FontBytes: (bytes: Uint8Array) => string;
|
|
177
175
|
/** Bounded minimum sfnt/TTC check; Task 4 supplies full parser-backed validation. */
|
|
178
176
|
declare const boundedStructuralFontValidator: FontByteValidator;
|
|
179
177
|
/**
|
|
@@ -610,4 +608,4 @@ interface ShapedMeasurerOptions {
|
|
|
610
608
|
*/
|
|
611
609
|
declare function createShapedMeasurer(options: ShapedMeasurerOptions): TextMeasurer;
|
|
612
610
|
|
|
613
|
-
export {
|
|
611
|
+
export { shapingEnvironmentFingerprint as $, type ShapedRunComparatorInputs as A, type ShapedVerticalMetrics as B, type CacheLookup as C, type DeclaredFontSubstitution as D, type ShapingEnvironment as E, type FontByteValidator as F, type GlyphOutline as G, HARD_MAX_AGGREGATE_FONT_BYTES as H, type ShapingEnvironmentFingerprintInputs as I, type ShapingEnvironmentInput as J, boundedStructuralFontValidator as K, type LayoutShapingOptions as L, captureOperationSnapshot as M, type NormalizationPolicy as N, type OperationSnapshot as O, createFontResourceSnapshot as P, createShapedMeasurer as Q, ResolvedCache as R, type ShapedRun as S, type TextShaper as T, createShapedRun as U, type VersionedShapingLibrary as V, createShapingEnvironment as W, fixedPoint as X, fontRequestKey as Y, guardOperationSnapshot as Z, shapedRunComparatorInputs as _, type FixedPointRoundingMode as a, shapingEnvironmentFingerprintInputs as a0, type FixedPoint as b, type TextDirection as c, type CacheMiss as d, type CacheProvenance as e, type FontFingerprintInputs as f, type FontRequest as g, FontResolutionError as h, type FontResolutionErrorCode as i, type FontResourceDefinition as j, type FontResourceInstrumentation as k, type FontResourceSnapshot as l, type FontResourceSnapshotOptions as m, type FontSubstitution as n, type FontValidationResult as o, HARD_MAX_FONT_BYTES as p, HARD_MAX_FONT_SOURCES as q, type OperationSnapshotField as r, type OperationSnapshotGuard as s, type ResolvedFont as t, type ResourceDependencyProvenance as u, type ShapeInput as v, type ShapedCluster as w, type ShapedFontSpan as x, type ShapedGlyph as y, type ShapedMeasurerOptions as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as ResolvedRunStyle, T as TextMeasurer } from './semantic-records-
|
|
1
|
+
import { R as ResolvedRunStyle, T as TextMeasurer } from './semantic-records-Cc1MJrhM.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A face, as something asks for it: family plus the two axes this engine admits.
|
|
@@ -172,8 +172,6 @@ interface FontResourceInstrumentation {
|
|
|
172
172
|
* a document may name a family either way and both must reach the same face.
|
|
173
173
|
*/
|
|
174
174
|
declare const fontRequestKey: (request: FontRequest) => string;
|
|
175
|
-
/** Synchronous platform-neutral SHA-256 used before font bytes cross into a shaping implementation. */
|
|
176
|
-
declare const sha256FontBytes: (bytes: Uint8Array) => string;
|
|
177
175
|
/** Bounded minimum sfnt/TTC check; Task 4 supplies full parser-backed validation. */
|
|
178
176
|
declare const boundedStructuralFontValidator: FontByteValidator;
|
|
179
177
|
/**
|
|
@@ -610,4 +608,4 @@ interface ShapedMeasurerOptions {
|
|
|
610
608
|
*/
|
|
611
609
|
declare function createShapedMeasurer(options: ShapedMeasurerOptions): TextMeasurer;
|
|
612
610
|
|
|
613
|
-
export {
|
|
611
|
+
export { shapingEnvironmentFingerprint as $, type ShapedRunComparatorInputs as A, type ShapedVerticalMetrics as B, type CacheLookup as C, type DeclaredFontSubstitution as D, type ShapingEnvironment as E, type FontByteValidator as F, type GlyphOutline as G, HARD_MAX_AGGREGATE_FONT_BYTES as H, type ShapingEnvironmentFingerprintInputs as I, type ShapingEnvironmentInput as J, boundedStructuralFontValidator as K, type LayoutShapingOptions as L, captureOperationSnapshot as M, type NormalizationPolicy as N, type OperationSnapshot as O, createFontResourceSnapshot as P, createShapedMeasurer as Q, ResolvedCache as R, type ShapedRun as S, type TextShaper as T, createShapedRun as U, type VersionedShapingLibrary as V, createShapingEnvironment as W, fixedPoint as X, fontRequestKey as Y, guardOperationSnapshot as Z, shapedRunComparatorInputs as _, type FixedPointRoundingMode as a, shapingEnvironmentFingerprintInputs as a0, type FixedPoint as b, type TextDirection as c, type CacheMiss as d, type CacheProvenance as e, type FontFingerprintInputs as f, type FontRequest as g, FontResolutionError as h, type FontResolutionErrorCode as i, type FontResourceDefinition as j, type FontResourceInstrumentation as k, type FontResourceSnapshot as l, type FontResourceSnapshotOptions as m, type FontSubstitution as n, type FontValidationResult as o, HARD_MAX_FONT_BYTES as p, HARD_MAX_FONT_SOURCES as q, type OperationSnapshotField as r, type OperationSnapshotGuard as s, type ResolvedFont as t, type ResourceDependencyProvenance as u, type ShapeInput as v, type ShapedCluster as w, type ShapedFontSpan as x, type ShapedGlyph as y, type ShapedMeasurerOptions as z };
|