@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
package/dist/editor.css
CHANGED
|
@@ -3544,6 +3544,13 @@ a.docx-hyperlink:focus-visible {
|
|
|
3544
3544
|
transition: padding-inline-start 0.2s ease;
|
|
3545
3545
|
}
|
|
3546
3546
|
|
|
3547
|
+
/* A deferred open gives the loading overlay one frame before parsing. The parse blocks
|
|
3548
|
+
layout transitions, so snap both ruler reservations before that frame or the right edge
|
|
3549
|
+
moves while the start edge remains frozen, leaving the ruler half a strip off the page. */
|
|
3550
|
+
.docx-ruler-frame--opening {
|
|
3551
|
+
transition: none;
|
|
3552
|
+
}
|
|
3553
|
+
|
|
3547
3554
|
@media (prefers-reduced-motion: reduce) {
|
|
3548
3555
|
.docx-ruler-frame {
|
|
3549
3556
|
transition: none;
|
|
@@ -4241,6 +4248,11 @@ a.docx-hyperlink:focus-visible {
|
|
|
4241
4248
|
background-color: var(--doc-selection);
|
|
4242
4249
|
}
|
|
4243
4250
|
|
|
4251
|
+
/* A native range has no glyph box for a paragraph mark or an empty line. */
|
|
4252
|
+
.docx-paginated-surface .docx-selection-mark-rect {
|
|
4253
|
+
background-color: var(--doc-selection);
|
|
4254
|
+
}
|
|
4255
|
+
|
|
4244
4256
|
/* ========================================================================
|
|
4245
4257
|
* COMPOUND TOOLBAR (`docx-toolbar` family) — the composition API's default
|
|
4246
4258
|
* chrome bar, the chrome spec's visual recipe:
|
|
@@ -4269,6 +4281,9 @@ a.docx-hyperlink:focus-visible {
|
|
|
4269
4281
|
.docx-toolbar {
|
|
4270
4282
|
display: flex;
|
|
4271
4283
|
align-items: center;
|
|
4284
|
+
min-inline-size: 0;
|
|
4285
|
+
margin: 0;
|
|
4286
|
+
border: 0;
|
|
4272
4287
|
/* NOT overflow-scroll like the chrome spec's pill: this toolbar hosts LIVE popups
|
|
4273
4288
|
* (font menu, swatch grids) positioned absolutely inside their parts, and any
|
|
4274
4289
|
* overflow clipping on the bar would cut them off. A bar that does not measure
|
|
@@ -4386,6 +4401,22 @@ a.docx-hyperlink:focus-visible {
|
|
|
4386
4401
|
overflow-y: visible;
|
|
4387
4402
|
}
|
|
4388
4403
|
|
|
4404
|
+
/* Right-edge controls open toward the panel instead of beyond the viewport. */
|
|
4405
|
+
.docx-toolbar__more-panel .docx-toolbar__font-size-menu {
|
|
4406
|
+
right: 0;
|
|
4407
|
+
left: auto;
|
|
4408
|
+
}
|
|
4409
|
+
|
|
4410
|
+
/* The lower controls have no room below them in a small scrollport. Their compact menus
|
|
4411
|
+
* open upward and toward the panel, while the panel keeps its scroll position and bounds. */
|
|
4412
|
+
.docx-toolbar__more-panel .docx-toolbar__alignment-popup,
|
|
4413
|
+
.docx-toolbar__more-panel .docx-toolbar__line-spacing-menu {
|
|
4414
|
+
top: auto;
|
|
4415
|
+
right: 0;
|
|
4416
|
+
bottom: 100%;
|
|
4417
|
+
left: auto;
|
|
4418
|
+
}
|
|
4419
|
+
|
|
4389
4420
|
.docx-toolbar__more-section + .docx-toolbar__more-section {
|
|
4390
4421
|
margin-top: 4px;
|
|
4391
4422
|
padding-top: 4px;
|
|
@@ -4509,8 +4540,10 @@ a.docx-hyperlink:focus-visible {
|
|
|
4509
4540
|
user-select: none;
|
|
4510
4541
|
}
|
|
4511
4542
|
|
|
4512
|
-
.docx-toolbar__picker[aria-disabled='true']
|
|
4543
|
+
.docx-toolbar__picker[aria-disabled='true'],
|
|
4544
|
+
.docx-toolbar__picker:disabled {
|
|
4513
4545
|
opacity: 0.5;
|
|
4546
|
+
cursor: default;
|
|
4514
4547
|
}
|
|
4515
4548
|
|
|
4516
4549
|
.docx-toolbar__picker-caret {
|
|
@@ -5486,17 +5519,15 @@ a.docx-hyperlink:focus-visible {
|
|
|
5486
5519
|
Loading surface (`DocxEditor.Loading`)
|
|
5487
5520
|
--------------------------------------------------------------------------- */
|
|
5488
5521
|
|
|
5489
|
-
/* Fills whatever box the host places it in
|
|
5490
|
-
|
|
5522
|
+
/* Fills whatever box the host places it in. The default child uses the real paginated
|
|
5523
|
+
surface and page classes, so its position and paper styling match a loaded document. */
|
|
5491
5524
|
.docx-editor__loading {
|
|
5492
|
-
display:
|
|
5493
|
-
|
|
5494
|
-
align-items: center;
|
|
5495
|
-
justify-content: center;
|
|
5496
|
-
gap: 16px;
|
|
5525
|
+
display: block;
|
|
5526
|
+
box-sizing: border-box;
|
|
5497
5527
|
width: 100%;
|
|
5498
5528
|
height: 100%;
|
|
5499
5529
|
min-height: 0;
|
|
5530
|
+
overflow: auto;
|
|
5500
5531
|
color: var(--doc-text-muted);
|
|
5501
5532
|
font-size: 14px;
|
|
5502
5533
|
}
|
|
@@ -5530,11 +5561,38 @@ a.docx-hyperlink:focus-visible {
|
|
|
5530
5561
|
}
|
|
5531
5562
|
}
|
|
5532
5563
|
|
|
5533
|
-
/* The
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5564
|
+
/* The loading sheet uses the same surface tree as a painted document:
|
|
5565
|
+
`.docx-paginated-surface > .docx-pages > .docx-page`. React and Vue apply the layout
|
|
5566
|
+
page size and zoom to the surface. The shared surface margin and page rule then control
|
|
5567
|
+
centring, paper colour, and shadow without a second approximation. */
|
|
5568
|
+
.docx-editor__loading-surface > .docx-pages {
|
|
5569
|
+
position: relative;
|
|
5570
|
+
width: 100%;
|
|
5571
|
+
height: 100%;
|
|
5572
|
+
}
|
|
5573
|
+
|
|
5574
|
+
.docx-editor__loading-page {
|
|
5575
|
+
position: absolute;
|
|
5576
|
+
inset: 0;
|
|
5577
|
+
box-sizing: border-box;
|
|
5578
|
+
width: 100%;
|
|
5579
|
+
height: 100%;
|
|
5580
|
+
overflow: hidden;
|
|
5581
|
+
}
|
|
5582
|
+
|
|
5583
|
+
.docx-editor__loading-page-status {
|
|
5584
|
+
position: absolute;
|
|
5585
|
+
top: 50%;
|
|
5586
|
+
right: 0;
|
|
5587
|
+
left: 0;
|
|
5588
|
+
display: flex;
|
|
5589
|
+
align-items: center;
|
|
5590
|
+
justify-content: center;
|
|
5591
|
+
transform: translateY(-50%);
|
|
5592
|
+
}
|
|
5593
|
+
|
|
5594
|
+
/* `display` and `box-sizing` are explicit rather than inherited from Tailwind's
|
|
5595
|
+
preflight. The loading part can sit outside the host's utility scope. */
|
|
5538
5596
|
.docx-editor__loading-spinner {
|
|
5539
5597
|
display: block;
|
|
5540
5598
|
box-sizing: border-box;
|
|
@@ -5555,7 +5613,7 @@ a.docx-hyperlink:focus-visible {
|
|
|
5555
5613
|
}
|
|
5556
5614
|
}
|
|
5557
5615
|
|
|
5558
|
-
/* Respect a reduced-motion preference
|
|
5616
|
+
/* Respect a reduced-motion preference by keeping the indicator still. */
|
|
5559
5617
|
@media (prefers-reduced-motion: reduce) {
|
|
5560
5618
|
.docx-editor__loading-spinner {
|
|
5561
5619
|
animation: none;
|
|
@@ -5709,6 +5767,63 @@ a.docx-hyperlink:focus-visible {
|
|
|
5709
5767
|
line-height: 1.35;
|
|
5710
5768
|
}
|
|
5711
5769
|
|
|
5770
|
+
/* Compact linear-math editor for one selected equation atom. */
|
|
5771
|
+
.docx-equation-popup {
|
|
5772
|
+
position: absolute;
|
|
5773
|
+
z-index: var(--doc-z-overlay);
|
|
5774
|
+
display: flex;
|
|
5775
|
+
flex-direction: column;
|
|
5776
|
+
align-items: stretch;
|
|
5777
|
+
gap: 6px;
|
|
5778
|
+
width: min(340px, calc(100% - 16px));
|
|
5779
|
+
margin-top: 4px;
|
|
5780
|
+
padding: 6px 8px;
|
|
5781
|
+
border: 1px solid var(--doc-border);
|
|
5782
|
+
border-radius: 8px;
|
|
5783
|
+
background: var(--doc-surface);
|
|
5784
|
+
color: var(--doc-text);
|
|
5785
|
+
box-shadow: 0 2px 10px var(--doc-shadow);
|
|
5786
|
+
font-size: 13px;
|
|
5787
|
+
}
|
|
5788
|
+
|
|
5789
|
+
.docx-equation-popup__input {
|
|
5790
|
+
width: 100%;
|
|
5791
|
+
padding: 4px 6px;
|
|
5792
|
+
border: 1px solid var(--doc-border-input);
|
|
5793
|
+
border-radius: 4px;
|
|
5794
|
+
background: var(--doc-bg-input);
|
|
5795
|
+
color: var(--doc-text);
|
|
5796
|
+
font: inherit;
|
|
5797
|
+
}
|
|
5798
|
+
|
|
5799
|
+
.docx-equation-popup__input:focus-visible {
|
|
5800
|
+
outline: 2px solid var(--doc-focus-ring);
|
|
5801
|
+
outline-offset: -1px;
|
|
5802
|
+
}
|
|
5803
|
+
|
|
5804
|
+
.docx-equation-popup__error {
|
|
5805
|
+
color: var(--doc-error);
|
|
5806
|
+
font-size: 12px;
|
|
5807
|
+
line-height: 1.35;
|
|
5808
|
+
}
|
|
5809
|
+
|
|
5810
|
+
.docx-equation-popup__actions {
|
|
5811
|
+
display: flex;
|
|
5812
|
+
justify-content: flex-end;
|
|
5813
|
+
gap: 6px;
|
|
5814
|
+
}
|
|
5815
|
+
|
|
5816
|
+
.docx-equation-popup__apply,
|
|
5817
|
+
.docx-equation-popup__delete {
|
|
5818
|
+
padding: 4px 10px;
|
|
5819
|
+
border: 1px solid var(--doc-border-input);
|
|
5820
|
+
border-radius: 4px;
|
|
5821
|
+
background: var(--doc-bg-input);
|
|
5822
|
+
color: var(--doc-text);
|
|
5823
|
+
font: inherit;
|
|
5824
|
+
cursor: pointer;
|
|
5825
|
+
}
|
|
5826
|
+
|
|
5712
5827
|
/* Room for the review pane. The page centres inside the scroller's padding box, so
|
|
5713
5828
|
* reserving the rail's width here shifts the sheet left by half of it and the document and
|
|
5714
5829
|
* its cards read as one centred pair.
|
package/dist/editor.d.cts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, b as ImageDecodePort, c as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, b as ImageDecodePort, c as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-DQOiwOuE.cjs';
|
|
2
|
+
import { i as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-B0-sCtw-.cjs';
|
|
3
|
+
export { j as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-B0-sCtw-.cjs';
|
|
4
4
|
import { ColorValue } from './contracts/types.cjs';
|
|
5
5
|
export { ParagraphFlags, ParagraphTabStop } from './contracts/types.cjs';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import {
|
|
6
|
+
export { R as ReviewModelInput } from './review-items-DpsqTHio.cjs';
|
|
7
|
+
import { c as TreeDocxSessionView, g as DocumentThemeColorEntry } from './tree-session-D945D43B.cjs';
|
|
8
|
+
export { a as TreeApplyResult } from './tree-session-D945D43B.cjs';
|
|
9
|
+
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-CojjwMmF.cjs';
|
|
10
|
+
export { I as ImageContext, c as ImageCropPercent, d as ImageCropPermille, S as SelectedImageState, e as cropPercentFromCropPermille, f as cropPercentFromPermille, g as cropPercentFromSourceCrop, h as cropPermilleFromCropPercent, i as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-CojjwMmF.cjs';
|
|
11
|
+
import { L as LayoutShapingOptions } from './shaped-measurer-CYSK20E2.cjs';
|
|
12
|
+
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-DGPSeLI0.cjs';
|
|
13
|
+
export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, E as EMU_PER_POINT, r as EquationActivation, s as EquationChromeHandlers, t as EquationOps, F as FinalizedImageOverlayInteraction, u as FontConfigurationBase, v as FontConfigurationFragment, w as FontLoadFailure, x as FontLoadFailureReason, y as FontMeasurementState, z as FontResolutionRequest, B as FontResolver, G as FontUrlSource, H as HyperlinkActivation, I as HyperlinkChromeHandlers, J as HyperlinkOps, K as IMAGE_OVERLAY_NUDGE_PT, L as IMAGE_OVERLAY_NUDGE_SHIFT_PT, M as ImageInteractionSession, N as ImageOverlayScrollPort, Q as ImageResizeHandle, R as ImageResizeResult, S as LoadFontsRequest, U as LoadFontsResult, V as MAX_RESOLVER_FAMILIES, W as OverlayFrameRect, X as PaginatedSurfaceState, Y as ParagraphPropertyEdit, Z as RunTableChromeCommandResult, _ as SectionAnchor, $ as SelectedDrawingOverlayTarget, a0 as SurfaceEquation, a1 as SurfaceFormatting, a2 as SurfaceHyperlink, a3 as SurfaceNavigation, a4 as SurfaceOverlayCoordinates, a5 as SurfaceParagraphFormat, a6 as TABLE_BORDER_STYLE_OPTIONS, a7 as TABLE_BORDER_TARGET_OPTIONS, a8 as TABLE_BORDER_WIDTH_OPTIONS, a9 as TABLE_CHROME_SLOT_IDS, aa as TableBorderStyleOption, ab as TableBorderTargetOption, ac as TableBorderTargetValue, ad as TableBorderWidthOption, ae as TableChromeDraft, af as TableChromePick, ag as TableChromeSlotId, ah as TableInteractionLabelKey, ai as ToolbarCommandState, aj as WORD_DEFAULT_FONT, ak as applyTableChromePick, al as blankDocumentBytes, am as canExecuteImageCommand, an as captureImageMutationPreconditions, ao as chromeControlCount, ap as chromeMenuSlots, aq as chromeProbeForSlot, ar as chromeSlotId, as as commandForSlot, at as commandForSlotValue, au as commandForTableChromeSlotValue, av as composeFontConfiguration, aw as computeImageResizeResult, ax as computeMovedImagePosition, ay as computeResizedImageExtentEmu, az as createDocxEditor, aA as createFontSource, aB as createImageOverlayScrollPort, aC as cssPixelsToLayoutPoints, aD as defaultChromeGroups, aE as defaultTableLabel, aF as emuToOverlayPoints, aG as equationAtPosition, aH as executeImageCommand, aI as finalizeImageOverlayInteraction, aJ as formattingBarChromeGroups, aK as isStaleImageInteractionCommit, aL as isTableChromeSlot, aM as layoutPointsToCssPixels, aN as loadFonts, aO as overlayFrameToSheetCssPixels, aP as pointsToEmu, aQ as probeTableChromeCommand, aR as resizePreservesAspect, aS as runSave, aT as runTableChromeCommand, aU as runTableCommand, aV as runToolbarCommand, aW as selectedDrawingOverlayTargetOf, aX as selectedImageStateOf, aY as surfacePaintScale, aZ as tableChromeIconPaths, a_ as tableChromeLabelKeyForTarget, a$ as tableChromeToolbarState, b0 as tableChromeVisible, b1 as tableCommandToolbarState, b2 as toolbarCommandState, b3 as toolbarCommandStates } from './index-DGPSeLI0.cjs';
|
|
14
|
+
import { O as OoxmlPart } from './ooxml-package-CdEy9ufK.cjs';
|
|
15
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-UuZOcOp7.cjs';
|
|
15
16
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.cjs';
|
|
16
|
-
import { S as SemanticLayout } from './semantic-records-
|
|
17
|
-
export { T as TextMeasurer } from './semantic-records-
|
|
18
|
-
export { S as SectionProperties } from './semantic-cell-selection-
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import './note-nodes-C6DLxlvj.cjs';
|
|
26
|
-
import './tree-store-Dob9Us6Y.cjs';
|
|
17
|
+
import { S as SemanticLayout } from './semantic-records-C3Z76KeN.cjs';
|
|
18
|
+
export { T as TextMeasurer } from './semantic-records-C3Z76KeN.cjs';
|
|
19
|
+
export { S as SectionProperties } from './semantic-cell-selection-DJPjBWzf.cjs';
|
|
20
|
+
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-BjOcDB06.cjs';
|
|
21
|
+
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-Ur7pAINj.cjs';
|
|
22
|
+
import './custom-node-writes-7ERv0f_X.cjs';
|
|
23
|
+
import './hf-references-Dvk6De4Q.cjs';
|
|
24
|
+
import './note-nodes-DL-Au22P.cjs';
|
|
25
|
+
import './tree-store-C6vc8E_2.cjs';
|
|
27
26
|
import 'prosemirror-model';
|
|
28
27
|
import './contracts/document.cjs';
|
|
29
|
-
import './revision-projection-
|
|
30
|
-
import './
|
|
28
|
+
import './revision-projection-Cc4wz30g.cjs';
|
|
29
|
+
import './note-properties-CQlxjic_.cjs';
|
|
30
|
+
import './omml-equation-BD-LsmWE.cjs';
|
|
31
31
|
|
|
32
32
|
interface LayoutShapingInstrumentation {
|
|
33
33
|
readonly onFontByteCopy?: () => void;
|
package/dist/editor.d.ts
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, b as ImageDecodePort, c as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, b as ImageDecodePort, c as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, a as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-eZqD_-vC.js';
|
|
2
|
+
import { i as TreeDocColorValue, d as DrawingPositionInput } from './tree-op-types-XMVsJSpe.js';
|
|
3
|
+
export { j as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-XMVsJSpe.js';
|
|
4
4
|
import { ColorValue } from './contracts/types.js';
|
|
5
5
|
export { ParagraphFlags, ParagraphTabStop } from './contracts/types.js';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import {
|
|
6
|
+
export { R as ReviewModelInput } from './review-items-D5SPFtsO.js';
|
|
7
|
+
import { c as TreeDocxSessionView, g as DocumentThemeColorEntry } from './tree-session-DBJgmdmc.js';
|
|
8
|
+
export { a as TreeApplyResult } from './tree-session-DBJgmdmc.js';
|
|
9
|
+
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-PUlv5Pp7.js';
|
|
10
|
+
export { I as ImageContext, c as ImageCropPercent, d as ImageCropPermille, S as SelectedImageState, e as cropPercentFromCropPermille, f as cropPercentFromPermille, g as cropPercentFromSourceCrop, h as cropPermilleFromCropPercent, i as cropPermilleFromPercent, s as sourceCropFromCropPercent, v as validateImageCropPercent } from './editor-PUlv5Pp7.js';
|
|
11
|
+
import { L as LayoutShapingOptions } from './shaped-measurer-CwlTPDJO.js';
|
|
12
|
+
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-oN-v8DQ5.js';
|
|
13
|
+
export { A as AnchorFrameOrigin, C as CHROME_GROUPS, b as CHROME_MENUS, c as CHROME_UNAVAILABLE_KEY, d as ChromeControl, e as ChromeControlId, f as ChromeControlState, g as ChromeGroup, h as ChromeGroupId, i as ChromeMenu, j as ChromeMenuEntry, k as ChromeMenuId, l as ChromeMenuItemEntry, m as ChromeMenuSeparatorEntry, n as ChromeMenuSubmenuEntry, o as ChromeSlotId, p as DEFAULT_TABLE_CHROME_DRAFT, q as DocxEditorConfig, E as EMU_PER_POINT, r as EquationActivation, s as EquationChromeHandlers, t as EquationOps, F as FinalizedImageOverlayInteraction, u as FontConfigurationBase, v as FontConfigurationFragment, w as FontLoadFailure, x as FontLoadFailureReason, y as FontMeasurementState, z as FontResolutionRequest, B as FontResolver, G as FontUrlSource, H as HyperlinkActivation, I as HyperlinkChromeHandlers, J as HyperlinkOps, K as IMAGE_OVERLAY_NUDGE_PT, L as IMAGE_OVERLAY_NUDGE_SHIFT_PT, M as ImageInteractionSession, N as ImageOverlayScrollPort, Q as ImageResizeHandle, R as ImageResizeResult, S as LoadFontsRequest, U as LoadFontsResult, V as MAX_RESOLVER_FAMILIES, W as OverlayFrameRect, X as PaginatedSurfaceState, Y as ParagraphPropertyEdit, Z as RunTableChromeCommandResult, _ as SectionAnchor, $ as SelectedDrawingOverlayTarget, a0 as SurfaceEquation, a1 as SurfaceFormatting, a2 as SurfaceHyperlink, a3 as SurfaceNavigation, a4 as SurfaceOverlayCoordinates, a5 as SurfaceParagraphFormat, a6 as TABLE_BORDER_STYLE_OPTIONS, a7 as TABLE_BORDER_TARGET_OPTIONS, a8 as TABLE_BORDER_WIDTH_OPTIONS, a9 as TABLE_CHROME_SLOT_IDS, aa as TableBorderStyleOption, ab as TableBorderTargetOption, ac as TableBorderTargetValue, ad as TableBorderWidthOption, ae as TableChromeDraft, af as TableChromePick, ag as TableChromeSlotId, ah as TableInteractionLabelKey, ai as ToolbarCommandState, aj as WORD_DEFAULT_FONT, ak as applyTableChromePick, al as blankDocumentBytes, am as canExecuteImageCommand, an as captureImageMutationPreconditions, ao as chromeControlCount, ap as chromeMenuSlots, aq as chromeProbeForSlot, ar as chromeSlotId, as as commandForSlot, at as commandForSlotValue, au as commandForTableChromeSlotValue, av as composeFontConfiguration, aw as computeImageResizeResult, ax as computeMovedImagePosition, ay as computeResizedImageExtentEmu, az as createDocxEditor, aA as createFontSource, aB as createImageOverlayScrollPort, aC as cssPixelsToLayoutPoints, aD as defaultChromeGroups, aE as defaultTableLabel, aF as emuToOverlayPoints, aG as equationAtPosition, aH as executeImageCommand, aI as finalizeImageOverlayInteraction, aJ as formattingBarChromeGroups, aK as isStaleImageInteractionCommit, aL as isTableChromeSlot, aM as layoutPointsToCssPixels, aN as loadFonts, aO as overlayFrameToSheetCssPixels, aP as pointsToEmu, aQ as probeTableChromeCommand, aR as resizePreservesAspect, aS as runSave, aT as runTableChromeCommand, aU as runTableCommand, aV as runToolbarCommand, aW as selectedDrawingOverlayTargetOf, aX as selectedImageStateOf, aY as surfacePaintScale, aZ as tableChromeIconPaths, a_ as tableChromeLabelKeyForTarget, a$ as tableChromeToolbarState, b0 as tableChromeVisible, b1 as tableCommandToolbarState, b2 as toolbarCommandState, b3 as toolbarCommandStates } from './index-oN-v8DQ5.js';
|
|
14
|
+
import { O as OoxmlPart } from './ooxml-package-CdEy9ufK.js';
|
|
15
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-C7ahrdUx.js';
|
|
15
16
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.js';
|
|
16
|
-
import { S as SemanticLayout } from './semantic-records-
|
|
17
|
-
export { T as TextMeasurer } from './semantic-records-
|
|
18
|
-
export { S as SectionProperties } from './semantic-cell-selection-
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import './note-nodes-BPSTVDMr.js';
|
|
26
|
-
import './tree-store-CKswbQl3.js';
|
|
17
|
+
import { S as SemanticLayout } from './semantic-records-Cc1MJrhM.js';
|
|
18
|
+
export { T as TextMeasurer } from './semantic-records-Cc1MJrhM.js';
|
|
19
|
+
export { S as SectionProperties } from './semantic-cell-selection-BWhVAk5B.js';
|
|
20
|
+
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-Cca1-X_a.js';
|
|
21
|
+
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-CufpIQFw.js';
|
|
22
|
+
import './custom-node-writes-QyVZdTUA.js';
|
|
23
|
+
import './hf-references-z5Y4N1ab.js';
|
|
24
|
+
import './note-nodes-BNCANoGN.js';
|
|
25
|
+
import './tree-store-ClA-qng4.js';
|
|
27
26
|
import 'prosemirror-model';
|
|
28
27
|
import './contracts/document.js';
|
|
29
|
-
import './revision-projection-
|
|
30
|
-
import './
|
|
28
|
+
import './revision-projection-CILpvv4M.js';
|
|
29
|
+
import './note-properties-jvnw_DGG.js';
|
|
30
|
+
import './omml-equation-Dd3mBep-.js';
|
|
31
31
|
|
|
32
32
|
interface LayoutShapingInstrumentation {
|
|
33
33
|
readonly onFontByteCopy?: () => void;
|
package/dist/editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{Ia as AUTO_ZOOM_MODE,Na as BROWSER_AUTOMATION_CAPABILITIES,va as CHROME_GROUPS,za as CHROME_MENUS,Ca as CHROME_UNAVAILABLE_KEY,Y as DEFAULT_TABLE_CHROME_DRAFT,Q as EMU_PER_POINT,Ja as FIT_WIDTH_ZOOM_MODE,O as IMAGE_OVERLAY_NUDGE_PT,P as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as LOADING_SNAPSHOT,e as MAX_RESOLVER_FAMILIES,m as PX_PER_CM,l as PX_PER_INCH,s as SNAP_TWIPS_CM,r as SNAP_TWIPS_INCH,ca as TABLE_BORDER_STYLE_OPTIONS,ba as TABLE_BORDER_TARGET_OPTIONS,da as TABLE_BORDER_WIDTH_OPTIONS,Z as TABLE_CHROME_SLOT_IDS,q as TWIPS_PER_CM,p as TWIPS_PER_INCH,f as WORD_DEFAULT_FONT,Ha as ZOOM_MAX,Ga as ZOOM_MIN,ea as applyTableChromePick,y as applyThemeShade,x as applyThemeTint,h as blankDocumentBytes,M as canExecuteImageCommand,L as captureImageMutationPreconditions,Ba as chromeControlCount,Aa as chromeMenuSlots,ia as chromeProbeForSlot,wa as chromeSlotId,ja as commandForSlot,la as commandForSlotValue,ka as commandForTableChromeSlotValue,g as composeFontConfiguration,Ua as computeImageResizeResult,V as computeMovedImagePosition,U as computeResizedImageExtentEmu,Oa as createBrowserAutomationHost,Ma as createDocxEditor,k as createFontSource,Va as createImageOverlayScrollPort,b as createLayoutShaping,I as cropPercentFromCropPermille,G as cropPercentFromPermille,D as cropPercentFromSourceCrop,H as cropPermilleFromCropPercent,F as cropPermilleFromPercent,Ra as cssPixelsToLayoutPoints,xa as defaultChromeGroups,_ as defaultTableLabel,c as disposeLayoutShaping,v as dragIndent,ua as editorCommandKey,T as emuToOverlayPoints,Ea as equationAtPosition,N as executeImageCommand,Wa as finalizeImageOverlayInteraction,ya as formattingBarChromeGroups,n as generateRulerTicks,t as handlePosition,W as isStaleImageInteractionCommit,$ as isTableChromeSlot,Qa as layoutPointsToCssPixels,j as loadFonts,A as lowerColorValueForBorder,B as lowerColorValueForFill,Fa as mountPaginatedSurface,Sa as overlayFrameToSheetCssPixels,i as partOfNodeId,S as pointsToEmu,fa as probeTableChromeCommand,Ta as resizePreservesAspect,C as resolveColorValueToCss,z as resolveThemeColorHex,Ka as resolveZoomMode,o as rulerPageBox,ra as runSave,pa as runTableChromeCommand,ta as runTableCommand,qa as runToolbarCommand,La as sameZoomMode,R as selectedDrawingOverlayTargetOf,K as selectedImageStateOf,u as snapTwips,E as sourceCropFromCropPercent,Da as surfaceExtent,Pa as surfacePaintScale,ha as tableChromeIconPaths,ga as tableChromeLabelKeyForTarget,ma as tableChromeToolbarState,aa as tableChromeVisible,X as tableCommandState,sa as tableCommandToolbarState,a as toEditorFontError,na as toolbarCommandState,oa as toolbarCommandStates,J as validateImageCropPercent,w as validateThemeModifier}from'./chunk-JTSNJQFO.js';import'./chunk-QDBAXFIK.js';import'./chunk-GZWMLQJO.js';import'./chunk-WU7PUTVA.js';import'./chunk-A2JIBG75.js';import'./chunk-KBCC66CI.js';import'./chunk-5VC5HGJA.js';export{m as DEFAULT_IMAGE_RESOURCE_LIMITS,xf as DRAWING_REL_FROM_H,yf as DRAWING_REL_FROM_V,Na as IMAGE_WRAP_TARGETS,Af as positionInputFromPropertiesCommand,zf as propertiesCommandHasPositionFields,n as resolveImageResourceLimits,eb as resolveSvgIntrinsicSize,ab as sniffImageMime,wf as validateDrawingPositionInput,fb as validateRasterHeader,Bf as validateSetImagePositionCommand}from'./chunk-VUJGPCPU.js';import'./chunk-PSZH2VXP.js';export{a as resolveEditorModules}from'./chunk-GQQOL4PV.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as OoxmlPackage } from './ooxml-package-D_CtywTW.js';
|
|
1
|
+
import { O as OoxmlPart, a as OoxmlNode, b as OoxmlElement, c as OoxmlPackage } from './ooxml-package-CdEy9ufK.cjs';
|
|
3
2
|
|
|
4
3
|
/** `w:headerReference w:type` vocabulary (ECMA-376 §17.10.5): default, first page, even pages. */
|
|
5
4
|
type HeaderFooterVariant = 'default' | 'first' | 'even';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { O as OoxmlPackage } from './ooxml-package-CR5us6ad.cjs';
|
|
1
|
+
import { O as OoxmlPart, a as OoxmlNode, b as OoxmlElement, c as OoxmlPackage } from './ooxml-package-CdEy9ufK.js';
|
|
3
2
|
|
|
4
3
|
/** `w:headerReference w:type` vocabulary (ECMA-376 §17.10.5): default, first page, even pages. */
|
|
5
4
|
type HeaderFooterVariant = 'default' | 'first' | 'even';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DrawingProjection } from './tree-op-types-
|
|
2
|
-
import {
|
|
1
|
+
import { D as DrawingProjection } from './tree-op-types-B0-sCtw-.cjs';
|
|
2
|
+
import { c as OoxmlPackage } from './ooxml-package-CdEy9ufK.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The engine's trust-boundary caps: recursion depth, element counts, and the rest.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DrawingProjection } from './tree-op-types-
|
|
2
|
-
import {
|
|
1
|
+
import { D as DrawingProjection } from './tree-op-types-XMVsJSpe.js';
|
|
2
|
+
import { c as OoxmlPackage } from './ooxml-package-CdEy9ufK.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The engine's trust-boundary caps: recursion depth, element counts, and the rest.
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { T as TreeDocOp, d as DrawingPositionInput,
|
|
2
|
-
import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources-
|
|
3
|
-
import './review-
|
|
1
|
+
import { T as TreeDocOp, d as DrawingPositionInput, l as DrawingTransform, h as DrawingTreeDocOp } from './tree-op-types-B0-sCtw-.cjs';
|
|
2
|
+
import { b as ImageDecodePort, S as SupportedImageMime } from './image-resources-DQOiwOuE.cjs';
|
|
3
|
+
import { g as ReviewRevisionKind } from './review-items-DpsqTHio.cjs';
|
|
4
4
|
import { EditorModule, ReviewModuleContribution } from './contracts/modules.cjs';
|
|
5
|
-
import { j as FontSource, k as FontSourceSubstitution, F as FontConfiguration, D as DocumentSource, Z as ZoomMode, E as EditorFontError, l as Editor, b as EditorCommand, C as CanResult, S as SelectedImageState, V as ViewScope, m as FontFaceRequest, I as ImageContext, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, p as TableContext } from './editor-
|
|
6
|
-
import { R as RevisionDisplayMode } from './revision-projection-
|
|
7
|
-
import {
|
|
8
|
-
import { c as RevisionStyles, R as ReviewAuthorInfo, b as RevisionAuthorStyle, F as FieldShadingMode, d as DrawingPaintStrings } from './semantic-paint-
|
|
9
|
-
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties
|
|
10
|
-
import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-
|
|
11
|
-
import { S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult, c as InsertImageInput, B as BookmarkIndex } from './custom-node-writes-
|
|
12
|
-
import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-
|
|
5
|
+
import { j as FontSource, k as FontSourceSubstitution, F as FontConfiguration, D as DocumentSource, Z as ZoomMode, E as EditorFontError, l as Editor, b as EditorCommand, C as CanResult, S as SelectedImageState, V as ViewScope, m as FontFaceRequest, I as ImageContext, T as TableBorderEdgeTarget, n as TableBorderSpec, o as TableBorderStyle, p as TableContext } from './editor-CojjwMmF.cjs';
|
|
6
|
+
import { R as RevisionDisplayMode } from './revision-projection-Cc4wz30g.cjs';
|
|
7
|
+
import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-BjOcDB06.cjs';
|
|
8
|
+
import { c as RevisionStyles, R as ReviewAuthorInfo, b as RevisionAuthorStyle, F as FieldShadingMode, d as DrawingPaintStrings } from './semantic-paint-Ur7pAINj.cjs';
|
|
9
|
+
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-CQlxjic_.cjs';
|
|
10
|
+
import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-C3Z76KeN.cjs';
|
|
11
|
+
import { S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult, c as InsertImageInput, B as BookmarkIndex } from './custom-node-writes-7ERv0f_X.cjs';
|
|
12
|
+
import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-DJPjBWzf.cjs';
|
|
13
13
|
import { Unsubscribe, ExecResult, ParagraphTabStop, IndentFormatting, ParagraphFlags, ParagraphDisagreements, SelectionPin } from './contracts/types.cjs';
|
|
14
|
-
import { c as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-
|
|
14
|
+
import { c as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-D945D43B.cjs';
|
|
15
15
|
import './contracts/document.cjs';
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -234,6 +234,49 @@ interface SurfaceNavigation {
|
|
|
234
234
|
destroy(): void;
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
+
/** One addressable inline equation and its compact editable projection. */
|
|
238
|
+
interface SurfaceEquation {
|
|
239
|
+
readonly id: string;
|
|
240
|
+
readonly paragraphId: string;
|
|
241
|
+
readonly start: number;
|
|
242
|
+
readonly end: number;
|
|
243
|
+
readonly linear: string;
|
|
244
|
+
readonly fallbackText: string;
|
|
245
|
+
/** True when every source construct belongs to the editable subset. */
|
|
246
|
+
readonly supported: boolean;
|
|
247
|
+
}
|
|
248
|
+
/** A user click on one painted equation. */
|
|
249
|
+
interface EquationActivation {
|
|
250
|
+
readonly equation: SurfaceEquation;
|
|
251
|
+
readonly rect: {
|
|
252
|
+
readonly left: number;
|
|
253
|
+
readonly top: number;
|
|
254
|
+
readonly right: number;
|
|
255
|
+
readonly bottom: number;
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
/** Boundary-inclusive lookup, matching the hyperlink and field atom popovers. */
|
|
259
|
+
declare function equationAtPosition(equations: readonly SurfaceEquation[], position: SemanticPosition): SurfaceEquation | null;
|
|
260
|
+
type EquationAction = 'replace' | 'remove';
|
|
261
|
+
/** Engine-owned capability result for equation editing chrome. */
|
|
262
|
+
type EquationCanResult = {
|
|
263
|
+
readonly ok: true;
|
|
264
|
+
} | {
|
|
265
|
+
readonly ok: false;
|
|
266
|
+
readonly code: 'locked' | 'notFound' | 'unsupported';
|
|
267
|
+
readonly reason: string;
|
|
268
|
+
};
|
|
269
|
+
/** Surface equation reads and atomic replace/remove writes. */
|
|
270
|
+
interface EquationOps {
|
|
271
|
+
equationsInCaretParagraph(): SurfaceEquation[];
|
|
272
|
+
equationAtCaret(): SurfaceEquation | null;
|
|
273
|
+
equationById(equationId: string): SurfaceEquation | null;
|
|
274
|
+
/** Whether equation chrome can run an action, with the engine-owned refusal reason. */
|
|
275
|
+
can(equationId: string, action: EquationAction): EquationCanResult;
|
|
276
|
+
applyEquation(equationId: string, linear: string): boolean;
|
|
277
|
+
removeEquation(equationId: string): boolean;
|
|
278
|
+
}
|
|
279
|
+
|
|
237
280
|
/**
|
|
238
281
|
* Everything {@link createDocxEditor} accepts. Every field is optional.
|
|
239
282
|
*
|
|
@@ -368,6 +411,10 @@ interface HyperlinkChromeHandlers {
|
|
|
368
411
|
/** Ctrl/Cmd+K: open insert-or-edit for the selection. */
|
|
369
412
|
readonly onRequest?: () => void;
|
|
370
413
|
}
|
|
414
|
+
/** Host chrome that edits a clicked Office Math equation. */
|
|
415
|
+
interface EquationChromeHandlers {
|
|
416
|
+
readonly onPopover?: (activation: EquationActivation) => void;
|
|
417
|
+
}
|
|
371
418
|
/**
|
|
372
419
|
* The concrete facade type: the full `Editor` contract plus the instance-only surface.
|
|
373
420
|
*
|
|
@@ -392,6 +439,8 @@ interface DocxEditorInstance extends Editor {
|
|
|
392
439
|
* command needs.
|
|
393
440
|
*/
|
|
394
441
|
setHyperlinkChrome(handlers: HyperlinkChromeHandlers): Unsubscribe;
|
|
442
|
+
/** Wire the host equation popover to painted equation clicks. */
|
|
443
|
+
setEquationChrome(handlers: EquationChromeHandlers): Unsubscribe;
|
|
395
444
|
/**
|
|
396
445
|
* Monotonic version of the observable editor state. Bumps whenever anything
|
|
397
446
|
* `snapshot()` reports could have moved — a committed change, a selection move, zoom,
|
|
@@ -960,6 +1009,7 @@ interface PaginatedSurfaceOptions {
|
|
|
960
1009
|
* activation (see the navigation module's single `window.open` gate).
|
|
961
1010
|
*/
|
|
962
1011
|
readonly onHyperlinkPopover?: (activation: HyperlinkActivation) => void;
|
|
1012
|
+
readonly onEquationPopover?: (activation: EquationActivation) => void;
|
|
963
1013
|
/**
|
|
964
1014
|
* Ctrl/Cmd+K — Word's Insert Hyperlink. The engine reports the request; the host's chrome
|
|
965
1015
|
* decides what a link dialog looks like. A host that passes nothing leaves the key alone
|
|
@@ -1183,6 +1233,8 @@ interface PaginatedSurface {
|
|
|
1183
1233
|
/** One-based page at the caret, or at the centre of the mounted viewport. */
|
|
1184
1234
|
currentPage(mode?: 'viewport' | 'caret'): number;
|
|
1185
1235
|
type(text: string): void;
|
|
1236
|
+
/** Author one explicit tracked text change without changing the editing mode. */
|
|
1237
|
+
proposeTextChange(kind: 'insertion' | 'deletion' | 'replacement', text: string, author?: string): boolean;
|
|
1186
1238
|
/**
|
|
1187
1239
|
* Queue plain typed text for a batched commit at the caret.
|
|
1188
1240
|
*
|
|
@@ -1454,6 +1506,7 @@ interface PaginatedSurface {
|
|
|
1454
1506
|
* projection, so a caller cannot accidentally hand a refused scheme to a sink.
|
|
1455
1507
|
*/
|
|
1456
1508
|
readonly hyperlinks: HyperlinkOps;
|
|
1509
|
+
readonly equations: EquationOps;
|
|
1457
1510
|
/**
|
|
1458
1511
|
* Content-control chrome, form-fill navigation, and value / remove verbs.
|
|
1459
1512
|
*
|
|
@@ -2859,4 +2912,4 @@ declare function runTableCommand(editor: Editor | null, command: EditorCommand):
|
|
|
2859
2912
|
*/
|
|
2860
2913
|
declare function createDocxEditor(config: DocxEditorConfig): DocxEditorInstance;
|
|
2861
2914
|
|
|
2862
|
-
export { type
|
|
2915
|
+
export { type SelectedDrawingOverlayTarget as $, type AnchorFrameOrigin as A, type FontResolver as B, CHROME_GROUPS as C, type DocxEditorInstance as D, EMU_PER_POINT as E, type FinalizedImageOverlayInteraction as F, type FontUrlSource as G, type HyperlinkActivation as H, type HyperlinkChromeHandlers as I, type HyperlinkOps as J, IMAGE_OVERLAY_NUDGE_PT as K, IMAGE_OVERLAY_NUDGE_SHIFT_PT as L, type ImageInteractionSession as M, type ImageOverlayScrollPort as N, type OpenPaginatedResult as O, type PaginatedSurfaceOptions as P, type ImageResizeHandle as Q, type ImageResizeResult as R, type LoadFontsRequest as S, type TableCommandPlan as T, type LoadFontsResult as U, MAX_RESOLVER_FAMILIES as V, type OverlayFrameRect as W, type PaginatedSurfaceState as X, type ParagraphPropertyEdit as Y, type RunTableChromeCommandResult as Z, type SectionAnchor as _, type PaginatedSurface as a, tableChromeToolbarState as a$, type SurfaceEquation as a0, type SurfaceFormatting as a1, type SurfaceHyperlink as a2, type SurfaceNavigation as a3, type SurfaceOverlayCoordinates as a4, type SurfaceParagraphFormat as a5, TABLE_BORDER_STYLE_OPTIONS as a6, TABLE_BORDER_TARGET_OPTIONS as a7, TABLE_BORDER_WIDTH_OPTIONS as a8, TABLE_CHROME_SLOT_IDS as a9, createFontSource as aA, createImageOverlayScrollPort as aB, cssPixelsToLayoutPoints as aC, defaultChromeGroups as aD, defaultTableLabel as aE, emuToOverlayPoints as aF, equationAtPosition as aG, executeImageCommand as aH, finalizeImageOverlayInteraction as aI, formattingBarChromeGroups as aJ, isStaleImageInteractionCommit as aK, isTableChromeSlot as aL, layoutPointsToCssPixels as aM, loadFonts as aN, overlayFrameToSheetCssPixels as aO, pointsToEmu as aP, probeTableChromeCommand as aQ, resizePreservesAspect as aR, runSave as aS, runTableChromeCommand as aT, runTableCommand as aU, runToolbarCommand as aV, selectedDrawingOverlayTargetOf as aW, selectedImageStateOf as aX, surfacePaintScale as aY, tableChromeIconPaths as aZ, tableChromeLabelKeyForTarget as a_, type TableBorderStyleOption as aa, type TableBorderTargetOption as ab, type TableBorderTargetValue as ac, type TableBorderWidthOption as ad, type TableChromeDraft as ae, type TableChromePick as af, type TableChromeSlotId as ag, type TableInteractionLabelKey as ah, type ToolbarCommandState as ai, WORD_DEFAULT_FONT as aj, applyTableChromePick as ak, blankDocumentBytes as al, canExecuteImageCommand as am, captureImageMutationPreconditions as an, chromeControlCount as ao, chromeMenuSlots as ap, chromeProbeForSlot as aq, chromeSlotId as ar, commandForSlot as as, commandForSlotValue as at, commandForTableChromeSlotValue as au, composeFontConfiguration as av, computeImageResizeResult as aw, computeMovedImagePosition as ax, computeResizedImageExtentEmu as ay, createDocxEditor as az, CHROME_MENUS as b, tableChromeVisible as b0, tableCommandToolbarState as b1, toolbarCommandState as b2, toolbarCommandStates as b3, CHROME_UNAVAILABLE_KEY as c, type ChromeControl as d, type ChromeControlId as e, type ChromeControlState as f, type ChromeGroup as g, type ChromeGroupId as h, type ChromeMenu as i, type ChromeMenuEntry as j, type ChromeMenuId as k, type ChromeMenuItemEntry as l, type ChromeMenuSeparatorEntry as m, type ChromeMenuSubmenuEntry as n, type ChromeSlotId as o, DEFAULT_TABLE_CHROME_DRAFT as p, type DocxEditorConfig as q, type EquationActivation as r, type EquationChromeHandlers as s, type EquationOps as t, type FontConfigurationBase as u, type FontConfigurationFragment as v, type FontLoadFailure as w, type FontLoadFailureReason as x, type FontMeasurementState as y, type FontResolutionRequest as z };
|