@beyondwork/docx-react-component 1.0.110 → 1.0.111
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/package.json +1 -1
- package/src/api/public-types.ts +3 -0
- package/src/model/layout/page-graph-types.ts +33 -0
- package/src/runtime/geometry/adjacent-geometry-intake.ts +373 -5
- package/src/runtime/geometry/caret-geometry.ts +219 -7
- package/src/runtime/geometry/geometry-index.ts +35 -10
- package/src/runtime/geometry/object-handles.ts +42 -1
- package/src/runtime/layout/index.ts +3 -0
- package/src/runtime/layout/inert-layout-facet.ts +13 -0
- package/src/runtime/layout/layout-engine-instance.ts +2 -0
- package/src/runtime/layout/layout-engine-version.ts +32 -2
- package/src/runtime/layout/layout-facet-types.ts +3 -0
- package/src/runtime/layout/page-graph.ts +81 -7
- package/src/runtime/layout/project-block-fragments.ts +144 -1
- package/src/runtime/layout/public-facet.ts +160 -0
- package/src/runtime/scopes/adjacent-geometry-evidence.ts +456 -0
- package/src/runtime/scopes/compile-scope-bundle.ts +8 -0
- package/src/runtime/scopes/evidence.ts +16 -0
- package/src/runtime/scopes/index.ts +13 -0
- package/src/runtime/scopes/semantic-scope-types.ts +67 -0
- package/src/ui-tailwind/debug/layer11-consumer-readiness.ts +104 -0
- package/src/ui-tailwind/editor-surface/pm-page-break-decorations.ts +50 -5
- package/src/ui-tailwind/editor-surface/tw-prosemirror-surface.tsx +26 -0
- package/src/README.md +0 -85
- package/src/api/README.md +0 -26
- package/src/api/v3/README.md +0 -91
- package/src/component-inventory.md +0 -99
- package/src/core/README.md +0 -10
- package/src/core/commands/README.md +0 -3
- package/src/core/schema/README.md +0 -3
- package/src/core/selection/README.md +0 -3
- package/src/core/state/README.md +0 -3
- package/src/io/README.md +0 -10
- package/src/io/export/README.md +0 -3
- package/src/io/normalize/README.md +0 -3
- package/src/io/ooxml/README.md +0 -3
- package/src/io/opc/README.md +0 -3
- package/src/model/README.md +0 -3
- package/src/preservation/README.md +0 -3
- package/src/review/README.md +0 -16
- package/src/review/store/README.md +0 -3
- package/src/runtime/README.md +0 -3
- package/src/ui/README.md +0 -30
- package/src/ui/comments/README.md +0 -3
- package/src/ui/compatibility/README.md +0 -3
- package/src/ui/editor-surface/README.md +0 -3
- package/src/ui/review/README.md +0 -3
- package/src/ui/status/README.md +0 -3
- package/src/ui/theme/README.md +0 -3
- package/src/ui/toolbar/README.md +0 -3
- package/src/ui-tailwind/debug/README.md +0 -22
- package/src/validation/README.md +0 -3
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beyondwork/docx-react-component",
|
|
3
3
|
"publisher": "beyondwork",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.111",
|
|
5
5
|
"description": "Embeddable React Word (docx) editor with review, comments, tracked changes, and round-trip OOXML fidelity.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
package/src/api/public-types.ts
CHANGED
|
@@ -177,6 +177,7 @@ export type {
|
|
|
177
177
|
PublicBlockMeasurement,
|
|
178
178
|
PublicFieldDirtinessReport,
|
|
179
179
|
PublicLineBox,
|
|
180
|
+
PublicLineRunAnchor,
|
|
180
181
|
PublicLayoutDivergence,
|
|
181
182
|
PublicMeasurementFidelity,
|
|
182
183
|
PublicNoteAllocation,
|
|
@@ -184,9 +185,11 @@ export type {
|
|
|
184
185
|
PublicPageFrame,
|
|
185
186
|
PublicPageLocalStoryInstance,
|
|
186
187
|
PublicPageNode,
|
|
188
|
+
PublicPagePaginationTelemetry,
|
|
187
189
|
PublicPageRegion,
|
|
188
190
|
PublicPageRegions,
|
|
189
191
|
PublicPageSpan,
|
|
192
|
+
PublicPaginationTelemetry,
|
|
190
193
|
PublicRegionBlock,
|
|
191
194
|
PublicRegionKind,
|
|
192
195
|
PublicResolvedPageStories,
|
|
@@ -189,6 +189,12 @@ export interface RuntimeStoryAnchoredObject {
|
|
|
189
189
|
widthTwips: number;
|
|
190
190
|
heightTwips: number;
|
|
191
191
|
};
|
|
192
|
+
/**
|
|
193
|
+
* Page/frame-local object bbox in twips when L04 can place the object from
|
|
194
|
+
* canonical anchor metadata. This is semantic layout placement, not a
|
|
195
|
+
* rendered pixel bbox; L05 owns projection to px/object handles.
|
|
196
|
+
*/
|
|
197
|
+
anchorRectTwips?: RuntimeTwipsRect;
|
|
192
198
|
relationshipIds?: readonly string[];
|
|
193
199
|
mediaIds?: readonly string[];
|
|
194
200
|
preserveOnly: boolean;
|
|
@@ -444,10 +450,37 @@ export interface RuntimeLineBox {
|
|
|
444
450
|
lineIndex: number;
|
|
445
451
|
/** Baseline twips from the region's origin. */
|
|
446
452
|
baselineTwips: number;
|
|
453
|
+
/** Page-local baseline twips from the physical page top. */
|
|
454
|
+
baselinePageYTwips?: number;
|
|
447
455
|
/** Line height twips. */
|
|
448
456
|
heightTwips: number;
|
|
449
457
|
/** Approximate inline width consumed on this line. */
|
|
450
458
|
widthTwips: number;
|
|
459
|
+
/** Page-local twips rect for the line box. */
|
|
460
|
+
rectTwips?: RuntimeTwipsRect;
|
|
461
|
+
/** Dominant paragraph direction for this line. */
|
|
462
|
+
direction?: "ltr" | "rtl";
|
|
463
|
+
/**
|
|
464
|
+
* Per-run/page-local anchor estimates for caret/selection projection. These
|
|
465
|
+
* are produced from L04 line breaking + run ids, not Word/UIA rectangles.
|
|
466
|
+
*/
|
|
467
|
+
runAnchors?: readonly RuntimeLineRunAnchor[];
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
export interface RuntimeLineRunAnchor {
|
|
471
|
+
anchorId: string;
|
|
472
|
+
runId: string;
|
|
473
|
+
segmentId: string;
|
|
474
|
+
blockId: string;
|
|
475
|
+
fragmentId: string;
|
|
476
|
+
lineIndex: number;
|
|
477
|
+
direction: "ltr" | "rtl";
|
|
478
|
+
baselinePageYTwips: number;
|
|
479
|
+
lineRectTwips: RuntimeTwipsRect;
|
|
480
|
+
firstGlyphRectTwips: RuntimeTwipsRect;
|
|
481
|
+
lastGlyphRectTwips: RuntimeTwipsRect;
|
|
482
|
+
runRectTwips: RuntimeTwipsRect;
|
|
483
|
+
precision: "layout-estimate";
|
|
451
484
|
}
|
|
452
485
|
|
|
453
486
|
export interface RuntimeNoteAllocation {
|