@docx-editor.dev/core 2.11.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -14
- package/dist/automation.cjs +1 -1
- package/dist/automation.d.cts +5 -5
- package/dist/automation.d.ts +5 -5
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +8 -8
- package/dist/binding.d.ts +8 -8
- package/dist/binding.js +1 -1
- package/dist/chunk-3AT4RUQ3.cjs +19 -0
- package/dist/chunk-4NAQLFXA.cjs +2 -0
- package/dist/{chunk-WPQMPHNR.cjs → chunk-67S7OHE6.cjs} +1 -1
- package/dist/chunk-BHAUFJO6.js +20 -0
- package/dist/chunk-F7U4OLMS.cjs +2 -0
- package/dist/chunk-FNMXRLGW.cjs +5 -0
- package/dist/{chunk-BP7ANXGA.js → chunk-HWWHGREA.js} +1 -1
- package/dist/chunk-I36WS6XX.cjs +20 -0
- package/dist/chunk-IOTL2GGW.js +1 -0
- package/dist/chunk-OF2QZCTN.js +19 -0
- package/dist/chunk-PFSJVAWJ.cjs +1 -0
- package/dist/chunk-PRIBU3UH.js +2 -0
- package/dist/{chunk-WU7PUTVA.js → chunk-RIYSCEFQ.js} +1 -1
- package/dist/chunk-RO3HFCML.js +5 -0
- package/dist/chunk-SFOUCTKA.js +2 -0
- package/dist/chunk-VBEKERLJ.js +2 -0
- package/dist/chunk-WANKXD34.cjs +2 -0
- package/dist/chunk-XETEMUIP.cjs +11 -0
- package/dist/chunk-YMW34EBA.js +11 -0
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.cts +3 -3
- package/dist/collaboration/replication.d.ts +3 -3
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.d.cts +3 -3
- package/dist/collaboration.d.ts +3 -3
- package/dist/contracts/editor.d.cts +7 -7
- package/dist/contracts/editor.d.ts +7 -7
- package/dist/contracts/interaction.d.cts +7 -7
- package/dist/contracts/interaction.d.ts +7 -7
- package/dist/contracts/modules.d.cts +7 -7
- package/dist/contracts/modules.d.ts +7 -7
- package/dist/{custom-node-writes-CwkYRw3V.d.cts → custom-node-writes-C46r3_5O.d.cts} +2 -2
- package/dist/{custom-node-writes-JfTn-Sy6.d.ts → custom-node-writes-DntmaAVW.d.ts} +2 -2
- package/dist/{dist-YFULGVS3.js → dist-OSUJGKTK.js} +1 -1
- package/dist/{editor-C8edZgy5.d.cts → editor-DLrTueVe.d.cts} +21 -9
- package/dist/{editor-BogcVHXk.d.ts → editor-KiB6JNvk.d.ts} +21 -9
- package/dist/editor.cjs +1 -1
- package/dist/editor.d.cts +56 -23
- package/dist/editor.d.ts +56 -23
- package/dist/editor.js +1 -1
- package/dist/{index-BNv-ZLQP.d.ts → index-D4Pxdo_p.d.ts} +168 -13
- package/dist/{index-Dn0lOp9Z.d.cts → index-D_PA2Xv6.d.cts} +168 -13
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +179 -508
- package/dist/layout.d.ts +179 -508
- package/dist/layout.js +1 -1
- package/dist/{note-properties-BmoSdyKS.d.ts → note-properties-CDFiNXcD.d.ts} +1 -1
- package/dist/{note-properties-BvGfHk5e.d.cts → note-properties-Y6qYh2Hv.d.cts} +1 -1
- package/dist/{omml-equation-Ciq5rgb7.d.ts → omml-equation-BY49UOIF.d.ts} +1 -1
- package/dist/{omml-equation-CqQOt_dD.d.cts → omml-equation-DB8d-jCq.d.cts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +6 -6
- package/dist/output.d.ts +6 -6
- package/dist/output.js +1 -1
- package/dist/{protocol-BB-WP3zk.d.cts → protocol-C8L58j66.d.cts} +2 -2
- package/dist/{protocol-Ckl7hWsv.d.ts → protocol-DjgYKCAy.d.ts} +2 -2
- package/dist/{review-items-CkYyXhXM.d.ts → review-items-CCS1h93f.d.ts} +1 -1
- package/dist/{review-items-BdeLNRi2.d.cts → review-items-CaAkgi5s.d.cts} +1 -1
- package/dist/{review-reads-BOLSBm5w.d.cts → review-reads-BrTDmoYH.d.cts} +2 -2
- package/dist/{review-reads-Crf0Xn42.d.ts → review-reads-DcGYCH0w.d.ts} +2 -2
- package/dist/{revision-projection-Ae2CWa8E.d.ts → revision-projection-BmLtLPxH.d.ts} +1 -1
- package/dist/{revision-projection-C2S8PSQm.d.cts → revision-projection-Dknlar93.d.cts} +1 -1
- package/dist/{semantic-cell-selection-DdmoxC-y.d.ts → semantic-cell-selection-BZ50i-Fu.d.ts} +4 -4
- package/dist/{semantic-cell-selection-C0OFD4D9.d.cts → semantic-cell-selection-COnfaOZO.d.cts} +4 -4
- package/dist/{semantic-interaction-COyhZ9WH.d.ts → semantic-interaction-BDJ4TBjm.d.ts} +4 -2
- package/dist/{semantic-interaction-Cs2jErnt.d.cts → semantic-interaction-Bq3ixB0I.d.cts} +4 -2
- package/dist/{semantic-paint-UHaj3sBY.d.cts → semantic-paint-C5SMTO8Y.d.cts} +2 -2
- package/dist/{semantic-paint-vA-oLSdV.d.ts → semantic-paint-DuhhY5-R.d.ts} +2 -2
- package/dist/{semantic-records-5AOQJmLX.d.cts → semantic-records-BI1jpft7.d.ts} +603 -8
- package/dist/{semantic-records-9xhwbJ23.d.ts → semantic-records-Btw3Ao4v.d.cts} +603 -8
- package/dist/{shaped-measurer-vzsY88oK.d.ts → shaped-measurer-CqdYa0fa.d.cts} +9 -1
- package/dist/{shaped-measurer-NeF2mPSu.d.cts → shaped-measurer-qnBJziPx.d.ts} +9 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +22 -13
- package/dist/store.d.ts +22 -13
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-BPyXNxyL.d.cts → tree-op-types-BUulYD5y.d.cts} +55 -9
- package/dist/{tree-op-types-DnzAOnc9.d.ts → tree-op-types-D6HzlPR4.d.ts} +55 -9
- package/dist/{tree-package-fragment-CDER0G3B.d.ts → tree-package-fragment-B1supBtE.d.ts} +2 -2
- package/dist/{tree-package-fragment-BjZ3RWAS.d.cts → tree-package-fragment-ByN5yzll.d.cts} +2 -2
- package/dist/{tree-session-contract-DhdsFT_z.d.ts → tree-session-contract-BasiwZgZ.d.ts} +28 -5
- package/dist/{tree-session-contract-BF2FVBOM.d.cts → tree-session-contract-DbeBenMR.d.cts} +28 -5
- package/dist/{tree-store-CNZ3O83s.d.ts → tree-store-APgWx6qn.d.ts} +1 -1
- package/dist/{tree-store-DfZi7FqY.d.cts → tree-store-DEEQ9wz_.d.cts} +1 -1
- package/package.json +5 -2
- package/dist/chunk-34BNQUD4.js +0 -10
- package/dist/chunk-5AVHO75P.cjs +0 -19
- package/dist/chunk-6HMSC7UV.js +0 -2
- package/dist/chunk-76Y3Y45J.cjs +0 -2
- package/dist/chunk-CRZR6K5Z.js +0 -19
- package/dist/chunk-EJATEGJZ.cjs +0 -1
- package/dist/chunk-GRDFEH5Q.cjs +0 -2
- package/dist/chunk-GWV65NQW.cjs +0 -10
- package/dist/chunk-GXLZCXEH.js +0 -2
- package/dist/chunk-JUQOPVSK.cjs +0 -2
- package/dist/chunk-LAETEBHD.js +0 -1
- package/dist/chunk-M6Z3KFXM.cjs +0 -5
- package/dist/chunk-UQFOYZJO.cjs +0 -18
- package/dist/chunk-WXQ245MQ.js +0 -18
- package/dist/chunk-WZHIFNSU.js +0 -5
- package/dist/chunk-X7A5XART.js +0 -2
package/dist/editor.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var chunk5AVHO75P_cjs=require('./chunk-5AVHO75P.cjs'),chunkZKWRCLT2_cjs=require('./chunk-ZKWRCLT2.cjs');require('./chunk-JUQOPVSK.cjs'),require('./chunk-UQFOYZJO.cjs'),require('./chunk-EJATEGJZ.cjs'),require('./chunk-M6Z3KFXM.cjs'),require('./chunk-GRDFEH5Q.cjs'),require('./chunk-76Y3Y45J.cjs'),require('./chunk-BTQKU64Q.cjs'),require('./chunk-WPQMPHNR.cjs');var chunkGWV65NQW_cjs=require('./chunk-GWV65NQW.cjs');require('./chunk-OHJQ7GPZ.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ja}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Oa}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.wa}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Aa}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Da}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Y}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Q}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ka}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.O}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.P}});Object.defineProperty(exports,"LOADING_SNAPSHOT",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.d}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.e}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.m}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.l}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.s}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.r}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ca}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ba}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.da}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Z}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.q}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.p}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.f}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ia}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ha}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ea}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.y}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.x}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.h}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.M}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.L}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ca}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ba}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ia}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.xa}});Object.defineProperty(exports,"chromeSlotIsToggle",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.oa}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ja}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.la}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ka}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.g}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Wa}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.V}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.U}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Pa}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Na}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.k}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Xa}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.I}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.G}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.D}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.H}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.F}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Sa}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ya}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunk5AVHO75P_cjs._}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.c}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.v}});Object.defineProperty(exports,"editorCommandKey",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.va}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.T}});Object.defineProperty(exports,"equationAtPosition",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Fa}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.N}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ya}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.za}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.n}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.t}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.W}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.$}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ra}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.j}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.A}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.B}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ga}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ta}});Object.defineProperty(exports,"overlayHostOrigin",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ua}});Object.defineProperty(exports,"partOfNodeId",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.i}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.S}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.fa}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Va}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.C}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.z}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.La}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.o}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.sa}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.qa}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ua}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ra}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ma}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.R}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.K}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.u}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.E}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Ea}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.Qa}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ha}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ga}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ma}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.aa}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.X}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.ta}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.na}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.pa}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.J}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunk5AVHO75P_cjs.w}});Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunkZKWRCLT2_cjs.a}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkGWV65NQW_cjs.m}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkGWV65NQW_cjs.Kg}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkGWV65NQW_cjs.Lg}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkGWV65NQW_cjs.Va}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkGWV65NQW_cjs.Ng}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkGWV65NQW_cjs.Mg}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkGWV65NQW_cjs.n}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkGWV65NQW_cjs.mb}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkGWV65NQW_cjs.ib}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkGWV65NQW_cjs.Jg}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkGWV65NQW_cjs.nb}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkGWV65NQW_cjs.Og}});
|
|
1
|
+
'use strict';var chunkI36WS6XX_cjs=require('./chunk-I36WS6XX.cjs'),chunkZKWRCLT2_cjs=require('./chunk-ZKWRCLT2.cjs');require('./chunk-F7U4OLMS.cjs'),require('./chunk-3AT4RUQ3.cjs'),require('./chunk-PFSJVAWJ.cjs'),require('./chunk-FNMXRLGW.cjs'),require('./chunk-WANKXD34.cjs'),require('./chunk-4NAQLFXA.cjs'),require('./chunk-BTQKU64Q.cjs'),require('./chunk-67S7OHE6.cjs');var chunkXETEMUIP_cjs=require('./chunk-XETEMUIP.cjs');require('./chunk-OHJQ7GPZ.cjs');Object.defineProperty(exports,"AUTO_ZOOM_MODE",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Qa}});Object.defineProperty(exports,"BROWSER_AUTOMATION_CAPABILITIES",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Va}});Object.defineProperty(exports,"CHROME_GROUPS",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Da}});Object.defineProperty(exports,"CHROME_MENUS",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ha}});Object.defineProperty(exports,"CHROME_UNAVAILABLE_KEY",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ka}});Object.defineProperty(exports,"DEFAULT_TABLE_CHROME_DRAFT",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.da}});Object.defineProperty(exports,"EMU_PER_POINT",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.X}});Object.defineProperty(exports,"FIT_WIDTH_ZOOM_MODE",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ra}});Object.defineProperty(exports,"FONT_RESOLVER_BRAND",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.i}});Object.defineProperty(exports,"FONT_RESOLVER_MARK_KEY",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.h}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_PT",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.V}});Object.defineProperty(exports,"IMAGE_OVERLAY_NUDGE_SHIFT_PT",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.W}});Object.defineProperty(exports,"LOADING_SNAPSHOT",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.d}});Object.defineProperty(exports,"MAX_RESOLVER_FAMILIES",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.e}});Object.defineProperty(exports,"PX_PER_CM",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.t}});Object.defineProperty(exports,"PX_PER_INCH",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.s}});Object.defineProperty(exports,"SNAP_TWIPS_CM",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.z}});Object.defineProperty(exports,"SNAP_TWIPS_INCH",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.y}});Object.defineProperty(exports,"TABLE_BORDER_STYLE_OPTIONS",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ja}});Object.defineProperty(exports,"TABLE_BORDER_TARGET_OPTIONS",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ia}});Object.defineProperty(exports,"TABLE_BORDER_WIDTH_OPTIONS",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ka}});Object.defineProperty(exports,"TABLE_CHROME_SLOT_IDS",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ea}});Object.defineProperty(exports,"TWIPS_PER_CM",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.x}});Object.defineProperty(exports,"TWIPS_PER_INCH",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.w}});Object.defineProperty(exports,"WORD_DEFAULT_FONT",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.f}});Object.defineProperty(exports,"ZOOM_MAX",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Pa}});Object.defineProperty(exports,"ZOOM_MIN",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Oa}});Object.defineProperty(exports,"applyTableChromePick",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.la}});Object.defineProperty(exports,"applyThemeShade",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.F}});Object.defineProperty(exports,"applyThemeTint",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.E}});Object.defineProperty(exports,"blankDocumentBytes",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.m}});Object.defineProperty(exports,"canExecuteImageCommand",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.T}});Object.defineProperty(exports,"captureImageMutationPreconditions",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.S}});Object.defineProperty(exports,"chromeControlCount",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ja}});Object.defineProperty(exports,"chromeMenuSlots",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ia}});Object.defineProperty(exports,"chromeProbeForSlot",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.pa}});Object.defineProperty(exports,"chromeSlotId",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ea}});Object.defineProperty(exports,"chromeSlotIsToggle",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.va}});Object.defineProperty(exports,"clipboardDropLandsText",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.o}});Object.defineProperty(exports,"clipboardPasteLandsContent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.n}});Object.defineProperty(exports,"commandForSlot",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.qa}});Object.defineProperty(exports,"commandForSlotValue",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.sa}});Object.defineProperty(exports,"commandForTableChromeSlotValue",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ra}});Object.defineProperty(exports,"composeFontConfiguration",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.g}});Object.defineProperty(exports,"composeFontOrigins",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.l}});Object.defineProperty(exports,"computeImageResizeResult",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.bb}});Object.defineProperty(exports,"computeMovedImagePosition",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.aa}});Object.defineProperty(exports,"computeResizedImageExtentEmu",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.$}});Object.defineProperty(exports,"createBrowserAutomationHost",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Wa}});Object.defineProperty(exports,"createDocxEditor",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ua}});Object.defineProperty(exports,"createFontSource",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.r}});Object.defineProperty(exports,"createImageOverlayScrollPort",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.cb}});Object.defineProperty(exports,"createLayoutShaping",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.b}});Object.defineProperty(exports,"cropPercentFromCropPermille",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.P}});Object.defineProperty(exports,"cropPercentFromPermille",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.N}});Object.defineProperty(exports,"cropPercentFromSourceCrop",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.K}});Object.defineProperty(exports,"cropPermilleFromCropPercent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.O}});Object.defineProperty(exports,"cropPermilleFromPercent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.M}});Object.defineProperty(exports,"cssPixelsToLayoutPoints",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Za}});Object.defineProperty(exports,"defaultChromeGroups",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Fa}});Object.defineProperty(exports,"defaultTableLabel",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.fa}});Object.defineProperty(exports,"defineFontResolver",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.j}});Object.defineProperty(exports,"disposeLayoutShaping",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.c}});Object.defineProperty(exports,"dragIndent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.C}});Object.defineProperty(exports,"editorCommandKey",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ca}});Object.defineProperty(exports,"emuToOverlayPoints",{enumerable:true,get:function(){return chunkI36WS6XX_cjs._}});Object.defineProperty(exports,"equationAtPosition",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ma}});Object.defineProperty(exports,"executeImageCommand",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.U}});Object.defineProperty(exports,"finalizeImageOverlayInteraction",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.db}});Object.defineProperty(exports,"formattingBarChromeGroups",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ga}});Object.defineProperty(exports,"generateRulerTicks",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.u}});Object.defineProperty(exports,"handlePosition",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.A}});Object.defineProperty(exports,"isFontResolver",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.k}});Object.defineProperty(exports,"isStaleImageInteractionCommit",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ba}});Object.defineProperty(exports,"isTableChromeSlot",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ga}});Object.defineProperty(exports,"layoutPointsToCssPixels",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ya}});Object.defineProperty(exports,"loadFonts",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.q}});Object.defineProperty(exports,"lowerColorValueForBorder",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.H}});Object.defineProperty(exports,"lowerColorValueForFill",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.I}});Object.defineProperty(exports,"mountPaginatedSurface",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Na}});Object.defineProperty(exports,"overlayFrameToSheetCssPixels",{enumerable:true,get:function(){return chunkI36WS6XX_cjs._a}});Object.defineProperty(exports,"overlayHostOrigin",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.$a}});Object.defineProperty(exports,"partOfNodeId",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.p}});Object.defineProperty(exports,"pointsToEmu",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Z}});Object.defineProperty(exports,"probeTableChromeCommand",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ma}});Object.defineProperty(exports,"resizePreservesAspect",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ab}});Object.defineProperty(exports,"resolveColorValueToCss",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.J}});Object.defineProperty(exports,"resolveThemeColorHex",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.G}});Object.defineProperty(exports,"resolveZoomMode",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Sa}});Object.defineProperty(exports,"rulerPageBox",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.v}});Object.defineProperty(exports,"runSave",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.za}});Object.defineProperty(exports,"runTableChromeCommand",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.xa}});Object.defineProperty(exports,"runTableCommand",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ba}});Object.defineProperty(exports,"runToolbarCommand",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ya}});Object.defineProperty(exports,"sameZoomMode",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Ta}});Object.defineProperty(exports,"selectedDrawingOverlayTargetOf",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Y}});Object.defineProperty(exports,"selectedImageStateOf",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.R}});Object.defineProperty(exports,"snapTwips",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.B}});Object.defineProperty(exports,"sourceCropFromCropPercent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.L}});Object.defineProperty(exports,"surfaceExtent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.La}});Object.defineProperty(exports,"surfacePaintScale",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Xa}});Object.defineProperty(exports,"tableChromeIconPaths",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.oa}});Object.defineProperty(exports,"tableChromeLabelKeyForTarget",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.na}});Object.defineProperty(exports,"tableChromeToolbarState",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ta}});Object.defineProperty(exports,"tableChromeVisible",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ha}});Object.defineProperty(exports,"tableCommandState",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ca}});Object.defineProperty(exports,"tableCommandToolbarState",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Aa}});Object.defineProperty(exports,"toEditorFontError",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.a}});Object.defineProperty(exports,"toolbarCommandState",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.ua}});Object.defineProperty(exports,"toolbarCommandStates",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.wa}});Object.defineProperty(exports,"validateImageCropPercent",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.Q}});Object.defineProperty(exports,"validateThemeModifier",{enumerable:true,get:function(){return chunkI36WS6XX_cjs.D}});Object.defineProperty(exports,"resolveEditorModules",{enumerable:true,get:function(){return chunkZKWRCLT2_cjs.a}});Object.defineProperty(exports,"DEFAULT_IMAGE_RESOURCE_LIMITS",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.m}});Object.defineProperty(exports,"DRAWING_REL_FROM_H",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Ng}});Object.defineProperty(exports,"DRAWING_REL_FROM_V",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Og}});Object.defineProperty(exports,"IMAGE_WRAP_TARGETS",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Ya}});Object.defineProperty(exports,"positionInputFromPropertiesCommand",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Qg}});Object.defineProperty(exports,"propertiesCommandHasPositionFields",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Pg}});Object.defineProperty(exports,"resolveImageResourceLimits",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.n}});Object.defineProperty(exports,"resolveSvgIntrinsicSize",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.pb}});Object.defineProperty(exports,"sniffImageMime",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.lb}});Object.defineProperty(exports,"validateDrawingPositionInput",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Mg}});Object.defineProperty(exports,"validateRasterHeader",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.qb}});Object.defineProperty(exports,"validateSetImagePositionCommand",{enumerable:true,get:function(){return chunkXETEMUIP_cjs.Rg}});
|
package/dist/editor.d.cts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { O as OoxmlPart, G as TreeDocColorValue, v as DrawingPositionInput } from './tree-op-types-
|
|
2
|
-
export { H as DEFAULT_IMAGE_RESOURCE_LIMITS, J as IMAGE_WRAP_TARGETS, C as ImageDecodePort, K as ImageResourceLimits, u as ImageWrapTarget, t as RenderableImageMime, y as SupportedImageMime, B as VectorImageMime, L as resolveImageResourceLimits, M as resolveSvgIntrinsicSize, N as sniffImageMime, Q as validateRasterHeader } from './tree-op-types-
|
|
1
|
+
import { O as OoxmlPart, G as TreeDocColorValue, v as DrawingPositionInput } from './tree-op-types-BUulYD5y.cjs';
|
|
2
|
+
export { H as DEFAULT_IMAGE_RESOURCE_LIMITS, J as IMAGE_WRAP_TARGETS, C as ImageDecodePort, K as ImageResourceLimits, u as ImageWrapTarget, t as RenderableImageMime, y as SupportedImageMime, B as VectorImageMime, L as resolveImageResourceLimits, M as resolveSvgIntrinsicSize, N as sniffImageMime, Q as validateRasterHeader } from './tree-op-types-BUulYD5y.cjs';
|
|
3
3
|
import { ColorValue } from './contracts/types.cjs';
|
|
4
4
|
export { ParagraphFlags, ParagraphTabStop } from './contracts/types.cjs';
|
|
5
|
-
export { R as ReviewModelInput } from './review-items-
|
|
5
|
+
export { R as ReviewModelInput } from './review-items-CaAkgi5s.cjs';
|
|
6
6
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.cjs';
|
|
7
|
-
import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-
|
|
8
|
-
export { a as TreeApplyResult } from './tree-session-contract-
|
|
9
|
-
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-
|
|
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-
|
|
11
|
-
import { L as LayoutShapingOptions } from './shaped-measurer-
|
|
12
|
-
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-
|
|
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, r as DrawingSelectionIntent, E as EMU_PER_POINT, s as EquationActivation, t as EquationChromeHandlers, u as EquationOps, F as
|
|
14
|
-
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-
|
|
15
|
-
import { S as SemanticLayout } from './semantic-records-
|
|
16
|
-
export { T as TextMeasurer } from './semantic-records-
|
|
17
|
-
export { S as SectionProperties } from './semantic-cell-selection-
|
|
18
|
-
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-
|
|
19
|
-
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-
|
|
7
|
+
import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-DbeBenMR.cjs';
|
|
8
|
+
export { a as TreeApplyResult } from './tree-session-contract-DbeBenMR.cjs';
|
|
9
|
+
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-DLrTueVe.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-DLrTueVe.cjs';
|
|
11
|
+
import { L as LayoutShapingOptions } from './shaped-measurer-CqdYa0fa.cjs';
|
|
12
|
+
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-D_PA2Xv6.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, r as DrawingSelectionIntent, E as EMU_PER_POINT, s as EquationActivation, t as EquationChromeHandlers, u as EquationOps, F as FONT_RESOLVER_BRAND, v as FONT_RESOLVER_MARK_KEY, w as FinalizedImageOverlayInteraction, x as FontConfigurationBase, y as FontConfigurationFragment, z as FontLoadFailure, B as FontLoadFailureReason, G as FontMeasurementState, H as FontOrigin, I as FontResolutionRequest, J as FontResolver, K as FontResolverMark, L as FontUrlSource, M as HyperlinkActivation, N as HyperlinkChromeHandlers, Q as HyperlinkOps, R as IMAGE_OVERLAY_NUDGE_PT, S as IMAGE_OVERLAY_NUDGE_SHIFT_PT, U as ImageInteractionSession, V as ImageOverlayScrollPort, W as ImageResizeHandle, X as ImageResizeResult, Y as LoadFontsRequest, Z as LoadFontsResult, _ as MAX_RESOLVER_FAMILIES, $ as MarkedFontResolver, a0 as OverlayFrameRect, a1 as PaginatedSurfaceState, a2 as ParagraphPropertyEdit, a3 as RemoteCaretLabelAnchor, a4 as RemoteCaretLabelHost, a5 as ReviewWriteIntent, a6 as RunTableChromeCommandResult, a7 as SectionAnchor, a8 as SectionBreakInsertType, a9 as SelectedDrawingOverlayTarget, aa as SurfaceEquation, ab as SurfaceFormatting, ac as SurfaceHyperlink, ad as SurfaceInsertImageInput, ae as SurfaceNavigation, af as SurfaceOverlayCoordinates, ag as SurfaceParagraphFormat, ah as TABLE_BORDER_STYLE_OPTIONS, ai as TABLE_BORDER_TARGET_OPTIONS, aj as TABLE_BORDER_WIDTH_OPTIONS, ak as TABLE_CHROME_SLOT_IDS, al as TableBorderStyleOption, am as TableBorderTargetOption, an as TableBorderTargetValue, ao as TableBorderWidthOption, ap as TableChromeDraft, aq as TableChromePick, ar as TableChromeSlotId, as as TableInteractionLabelKey, at as ToolbarCommandState, au as WORD_DEFAULT_FONT, av as applyTableChromePick, aw as blankDocumentBytes, ax as canExecuteImageCommand, ay as captureImageMutationPreconditions, az as chromeControlCount, aA as chromeMenuSlots, aB as chromeProbeForSlot, aC as chromeSlotId, aD as chromeSlotIsToggle, aE as commandForSlot, aF as commandForSlotValue, aG as commandForTableChromeSlotValue, aH as composeFontConfiguration, aI as composeFontOrigins, aJ as computeImageResizeResult, aK as computeMovedImagePosition, aL as computeResizedImageExtentEmu, aM as createDocxEditor, aN as createFontSource, aO as createImageOverlayScrollPort, aP as cssPixelsToLayoutPoints, aQ as defaultChromeGroups, aR as defaultTableLabel, aS as defineFontResolver, aT as emuToOverlayPoints, aU as equationAtPosition, aV as executeImageCommand, aW as finalizeImageOverlayInteraction, aX as formattingBarChromeGroups, aY as isFontResolver, aZ as isStaleImageInteractionCommit, a_ as isTableChromeSlot, a$ as layoutPointsToCssPixels, b0 as loadFonts, b1 as overlayFrameToSheetCssPixels, b2 as overlayHostOrigin, b3 as pointsToEmu, b4 as probeTableChromeCommand, b5 as resizePreservesAspect, b6 as runSave, b7 as runTableChromeCommand, b8 as runTableCommand, b9 as runToolbarCommand, ba as selectedDrawingOverlayTargetOf, bb as selectedImageStateOf, bc as surfacePaintScale, bd as tableChromeIconPaths, be as tableChromeLabelKeyForTarget, bf as tableChromeToolbarState, bg as tableChromeVisible, bh as tableCommandToolbarState, bi as toolbarCommandState, bj as toolbarCommandStates } from './index-D_PA2Xv6.cjs';
|
|
14
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-C8L58j66.cjs';
|
|
15
|
+
import { S as SemanticLayout } from './semantic-records-Btw3Ao4v.cjs';
|
|
16
|
+
export { T as TextMeasurer } from './semantic-records-Btw3Ao4v.cjs';
|
|
17
|
+
export { S as SectionProperties } from './semantic-cell-selection-COnfaOZO.cjs';
|
|
18
|
+
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-Bq3ixB0I.cjs';
|
|
19
|
+
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-C5SMTO8Y.cjs';
|
|
20
20
|
export { CollaborationModuleContribution } from './collaboration.cjs';
|
|
21
|
-
import './revision-projection-
|
|
22
|
-
import './tree-package-fragment-
|
|
23
|
-
import './tree-store-
|
|
21
|
+
import './revision-projection-Dknlar93.cjs';
|
|
22
|
+
import './tree-package-fragment-ByN5yzll.cjs';
|
|
23
|
+
import './tree-store-DEEQ9wz_.cjs';
|
|
24
24
|
import './collaboration/replication.cjs';
|
|
25
25
|
import './failure-BnGjoXf0.cjs';
|
|
26
|
-
import './custom-node-writes-
|
|
26
|
+
import './custom-node-writes-C46r3_5O.cjs';
|
|
27
27
|
import './document-properties-D6Ahr8D6.cjs';
|
|
28
28
|
import 'prosemirror-model';
|
|
29
29
|
import './contracts/document.cjs';
|
|
30
|
-
import './note-properties-
|
|
31
|
-
import './omml-equation-
|
|
30
|
+
import './note-properties-Y6qYh2Hv.cjs';
|
|
31
|
+
import './omml-equation-DB8d-jCq.cjs';
|
|
32
32
|
|
|
33
33
|
interface LayoutShapingInstrumentation {
|
|
34
34
|
readonly onFontByteCopy?: () => void;
|
|
@@ -61,6 +61,39 @@ declare function disposeLayoutShaping(shaping: LayoutShapingOptions): void;
|
|
|
61
61
|
*/
|
|
62
62
|
declare const LOADING_SNAPSHOT: EditorSnapshot;
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* True when the engine's PASTE lanes will land user-visible content from this payload, so
|
|
66
|
+
* a host's image-FILE lane must stand down or insert a duplicate.
|
|
67
|
+
*
|
|
68
|
+
* In order of cost: visible `text/plain` (the plain lane's unconditional fallback), visible
|
|
69
|
+
* HTML text (the projection and the plain lane's HTML fallback both land it), a
|
|
70
|
+
* zip-shaped embedded fragment, and finally the projection probe for text-free HTML.
|
|
71
|
+
*
|
|
72
|
+
* Deliberate asymmetries against the router's letter: text made only of invisible
|
|
73
|
+
* characters (zero-width wrappers, bidi marks, a bare newline) does not count — the router
|
|
74
|
+
* technically lands it, but standing down for it would drop a real image for characters
|
|
75
|
+
* nobody can see. And engine-state gates the adapter cannot observe (suggesting mode, cell
|
|
76
|
+
* selections, the force-plain window) are ignored; in those states the engine may land
|
|
77
|
+
* nothing where this predicate said it would.
|
|
78
|
+
*
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
declare function clipboardPasteLandsContent(transfer: DataTransfer | null | undefined): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* True when the engine's DROP lane will land text from this payload, so a host's
|
|
84
|
+
* image-FILE drop lane must stand down — by NOT preventing the default, which is what
|
|
85
|
+
* lets the browser fire `insertFromDrop`, the engine's only drop path.
|
|
86
|
+
*
|
|
87
|
+
* Only visible HTML text counts. The drop lane is plain text end to end, so fragments and
|
|
88
|
+
* `data:` images never land from a drop — and `text/plain` says nothing about intent here,
|
|
89
|
+
* because image-file drags routinely mirror the file's path or URL into it. A text drag
|
|
90
|
+
* that carries an image file beside it (Word's rendering PNG again) always carries the
|
|
91
|
+
* text in HTML too.
|
|
92
|
+
*
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
declare function clipboardDropLandsText(transfer: DataTransfer | null | undefined): boolean;
|
|
96
|
+
|
|
64
97
|
/**
|
|
65
98
|
* Mount a paginated surface over DOCX bytes.
|
|
66
99
|
*
|
|
@@ -357,4 +390,4 @@ declare function validateSetImagePositionCommand(command: {
|
|
|
357
390
|
readonly relativeToV?: string;
|
|
358
391
|
}, mode: 'frame' | 'simple'): boolean;
|
|
359
392
|
|
|
360
|
-
export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, LOADING_SNAPSHOT, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, editorCommandKey, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, partOfNodeId, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
|
|
393
|
+
export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, LOADING_SNAPSHOT, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, clipboardDropLandsText, clipboardPasteLandsContent, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, editorCommandKey, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, partOfNodeId, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
|
package/dist/editor.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { O as OoxmlPart, G as TreeDocColorValue, v as DrawingPositionInput } from './tree-op-types-
|
|
2
|
-
export { H as DEFAULT_IMAGE_RESOURCE_LIMITS, J as IMAGE_WRAP_TARGETS, C as ImageDecodePort, K as ImageResourceLimits, u as ImageWrapTarget, t as RenderableImageMime, y as SupportedImageMime, B as VectorImageMime, L as resolveImageResourceLimits, M as resolveSvgIntrinsicSize, N as sniffImageMime, Q as validateRasterHeader } from './tree-op-types-
|
|
1
|
+
import { O as OoxmlPart, G as TreeDocColorValue, v as DrawingPositionInput } from './tree-op-types-D6HzlPR4.js';
|
|
2
|
+
export { H as DEFAULT_IMAGE_RESOURCE_LIMITS, J as IMAGE_WRAP_TARGETS, C as ImageDecodePort, K as ImageResourceLimits, u as ImageWrapTarget, t as RenderableImageMime, y as SupportedImageMime, B as VectorImageMime, L as resolveImageResourceLimits, M as resolveSvgIntrinsicSize, N as sniffImageMime, Q as validateRasterHeader } from './tree-op-types-D6HzlPR4.js';
|
|
3
3
|
import { ColorValue } from './contracts/types.js';
|
|
4
4
|
export { ParagraphFlags, ParagraphTabStop } from './contracts/types.js';
|
|
5
|
-
export { R as ReviewModelInput } from './review-items-
|
|
5
|
+
export { R as ReviewModelInput } from './review-items-CCS1h93f.js';
|
|
6
6
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.js';
|
|
7
|
-
import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-
|
|
8
|
-
export { a as TreeApplyResult } from './tree-session-contract-
|
|
9
|
-
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-
|
|
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-
|
|
11
|
-
import { L as LayoutShapingOptions } from './shaped-measurer-
|
|
12
|
-
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-
|
|
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, r as DrawingSelectionIntent, E as EMU_PER_POINT, s as EquationActivation, t as EquationChromeHandlers, u as EquationOps, F as
|
|
14
|
-
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-
|
|
15
|
-
import { S as SemanticLayout } from './semantic-records-
|
|
16
|
-
export { T as TextMeasurer } from './semantic-records-
|
|
17
|
-
export { S as SectionProperties } from './semantic-cell-selection-
|
|
18
|
-
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-
|
|
19
|
-
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-
|
|
7
|
+
import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-BasiwZgZ.js';
|
|
8
|
+
export { a as TreeApplyResult } from './tree-session-contract-BasiwZgZ.js';
|
|
9
|
+
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-KiB6JNvk.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-KiB6JNvk.js';
|
|
11
|
+
import { L as LayoutShapingOptions } from './shaped-measurer-qnBJziPx.js';
|
|
12
|
+
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-D4Pxdo_p.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, r as DrawingSelectionIntent, E as EMU_PER_POINT, s as EquationActivation, t as EquationChromeHandlers, u as EquationOps, F as FONT_RESOLVER_BRAND, v as FONT_RESOLVER_MARK_KEY, w as FinalizedImageOverlayInteraction, x as FontConfigurationBase, y as FontConfigurationFragment, z as FontLoadFailure, B as FontLoadFailureReason, G as FontMeasurementState, H as FontOrigin, I as FontResolutionRequest, J as FontResolver, K as FontResolverMark, L as FontUrlSource, M as HyperlinkActivation, N as HyperlinkChromeHandlers, Q as HyperlinkOps, R as IMAGE_OVERLAY_NUDGE_PT, S as IMAGE_OVERLAY_NUDGE_SHIFT_PT, U as ImageInteractionSession, V as ImageOverlayScrollPort, W as ImageResizeHandle, X as ImageResizeResult, Y as LoadFontsRequest, Z as LoadFontsResult, _ as MAX_RESOLVER_FAMILIES, $ as MarkedFontResolver, a0 as OverlayFrameRect, a1 as PaginatedSurfaceState, a2 as ParagraphPropertyEdit, a3 as RemoteCaretLabelAnchor, a4 as RemoteCaretLabelHost, a5 as ReviewWriteIntent, a6 as RunTableChromeCommandResult, a7 as SectionAnchor, a8 as SectionBreakInsertType, a9 as SelectedDrawingOverlayTarget, aa as SurfaceEquation, ab as SurfaceFormatting, ac as SurfaceHyperlink, ad as SurfaceInsertImageInput, ae as SurfaceNavigation, af as SurfaceOverlayCoordinates, ag as SurfaceParagraphFormat, ah as TABLE_BORDER_STYLE_OPTIONS, ai as TABLE_BORDER_TARGET_OPTIONS, aj as TABLE_BORDER_WIDTH_OPTIONS, ak as TABLE_CHROME_SLOT_IDS, al as TableBorderStyleOption, am as TableBorderTargetOption, an as TableBorderTargetValue, ao as TableBorderWidthOption, ap as TableChromeDraft, aq as TableChromePick, ar as TableChromeSlotId, as as TableInteractionLabelKey, at as ToolbarCommandState, au as WORD_DEFAULT_FONT, av as applyTableChromePick, aw as blankDocumentBytes, ax as canExecuteImageCommand, ay as captureImageMutationPreconditions, az as chromeControlCount, aA as chromeMenuSlots, aB as chromeProbeForSlot, aC as chromeSlotId, aD as chromeSlotIsToggle, aE as commandForSlot, aF as commandForSlotValue, aG as commandForTableChromeSlotValue, aH as composeFontConfiguration, aI as composeFontOrigins, aJ as computeImageResizeResult, aK as computeMovedImagePosition, aL as computeResizedImageExtentEmu, aM as createDocxEditor, aN as createFontSource, aO as createImageOverlayScrollPort, aP as cssPixelsToLayoutPoints, aQ as defaultChromeGroups, aR as defaultTableLabel, aS as defineFontResolver, aT as emuToOverlayPoints, aU as equationAtPosition, aV as executeImageCommand, aW as finalizeImageOverlayInteraction, aX as formattingBarChromeGroups, aY as isFontResolver, aZ as isStaleImageInteractionCommit, a_ as isTableChromeSlot, a$ as layoutPointsToCssPixels, b0 as loadFonts, b1 as overlayFrameToSheetCssPixels, b2 as overlayHostOrigin, b3 as pointsToEmu, b4 as probeTableChromeCommand, b5 as resizePreservesAspect, b6 as runSave, b7 as runTableChromeCommand, b8 as runTableCommand, b9 as runToolbarCommand, ba as selectedDrawingOverlayTargetOf, bb as selectedImageStateOf, bc as surfacePaintScale, bd as tableChromeIconPaths, be as tableChromeLabelKeyForTarget, bf as tableChromeToolbarState, bg as tableChromeVisible, bh as tableCommandToolbarState, bi as toolbarCommandState, bj as toolbarCommandStates } from './index-D4Pxdo_p.js';
|
|
14
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-DjgYKCAy.js';
|
|
15
|
+
import { S as SemanticLayout } from './semantic-records-BI1jpft7.js';
|
|
16
|
+
export { T as TextMeasurer } from './semantic-records-BI1jpft7.js';
|
|
17
|
+
export { S as SectionProperties } from './semantic-cell-selection-BZ50i-Fu.js';
|
|
18
|
+
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-BDJ4TBjm.js';
|
|
19
|
+
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-DuhhY5-R.js';
|
|
20
20
|
export { CollaborationModuleContribution } from './collaboration.js';
|
|
21
|
-
import './revision-projection-
|
|
22
|
-
import './tree-package-fragment-
|
|
23
|
-
import './tree-store-
|
|
21
|
+
import './revision-projection-BmLtLPxH.js';
|
|
22
|
+
import './tree-package-fragment-B1supBtE.js';
|
|
23
|
+
import './tree-store-APgWx6qn.js';
|
|
24
24
|
import './collaboration/replication.js';
|
|
25
25
|
import './failure-BnGjoXf0.js';
|
|
26
|
-
import './custom-node-writes-
|
|
26
|
+
import './custom-node-writes-DntmaAVW.js';
|
|
27
27
|
import './document-properties-D6Ahr8D6.js';
|
|
28
28
|
import 'prosemirror-model';
|
|
29
29
|
import './contracts/document.js';
|
|
30
|
-
import './note-properties-
|
|
31
|
-
import './omml-equation-
|
|
30
|
+
import './note-properties-CDFiNXcD.js';
|
|
31
|
+
import './omml-equation-BY49UOIF.js';
|
|
32
32
|
|
|
33
33
|
interface LayoutShapingInstrumentation {
|
|
34
34
|
readonly onFontByteCopy?: () => void;
|
|
@@ -61,6 +61,39 @@ declare function disposeLayoutShaping(shaping: LayoutShapingOptions): void;
|
|
|
61
61
|
*/
|
|
62
62
|
declare const LOADING_SNAPSHOT: EditorSnapshot;
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* True when the engine's PASTE lanes will land user-visible content from this payload, so
|
|
66
|
+
* a host's image-FILE lane must stand down or insert a duplicate.
|
|
67
|
+
*
|
|
68
|
+
* In order of cost: visible `text/plain` (the plain lane's unconditional fallback), visible
|
|
69
|
+
* HTML text (the projection and the plain lane's HTML fallback both land it), a
|
|
70
|
+
* zip-shaped embedded fragment, and finally the projection probe for text-free HTML.
|
|
71
|
+
*
|
|
72
|
+
* Deliberate asymmetries against the router's letter: text made only of invisible
|
|
73
|
+
* characters (zero-width wrappers, bidi marks, a bare newline) does not count — the router
|
|
74
|
+
* technically lands it, but standing down for it would drop a real image for characters
|
|
75
|
+
* nobody can see. And engine-state gates the adapter cannot observe (suggesting mode, cell
|
|
76
|
+
* selections, the force-plain window) are ignored; in those states the engine may land
|
|
77
|
+
* nothing where this predicate said it would.
|
|
78
|
+
*
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
declare function clipboardPasteLandsContent(transfer: DataTransfer | null | undefined): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* True when the engine's DROP lane will land text from this payload, so a host's
|
|
84
|
+
* image-FILE drop lane must stand down — by NOT preventing the default, which is what
|
|
85
|
+
* lets the browser fire `insertFromDrop`, the engine's only drop path.
|
|
86
|
+
*
|
|
87
|
+
* Only visible HTML text counts. The drop lane is plain text end to end, so fragments and
|
|
88
|
+
* `data:` images never land from a drop — and `text/plain` says nothing about intent here,
|
|
89
|
+
* because image-file drags routinely mirror the file's path or URL into it. A text drag
|
|
90
|
+
* that carries an image file beside it (Word's rendering PNG again) always carries the
|
|
91
|
+
* text in HTML too.
|
|
92
|
+
*
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
declare function clipboardDropLandsText(transfer: DataTransfer | null | undefined): boolean;
|
|
96
|
+
|
|
64
97
|
/**
|
|
65
98
|
* Mount a paginated surface over DOCX bytes.
|
|
66
99
|
*
|
|
@@ -357,4 +390,4 @@ declare function validateSetImagePositionCommand(command: {
|
|
|
357
390
|
readonly relativeToV?: string;
|
|
358
391
|
}, mode: 'frame' | 'simple'): boolean;
|
|
359
392
|
|
|
360
|
-
export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, LOADING_SNAPSHOT, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, editorCommandKey, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, partOfNodeId, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
|
|
393
|
+
export { AUTO_ZOOM_MODE, BROWSER_AUTOMATION_CAPABILITIES, type ColorLowerResult, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, LOADING_SNAPSHOT, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, type RulerDragOptions, type RulerIndent, type RulerIndentHandle, type RulerPageMetrics, type RulerTick, type RulerUnit, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, type SurfaceExtent, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, applyThemeShade, applyThemeTint, clipboardDropLandsText, clipboardPasteLandsContent, createBrowserAutomationHost, createLayoutShaping, disposeLayoutShaping, dragIndent, editorCommandKey, generateRulerTicks, handlePosition, lowerColorValueForBorder, lowerColorValueForFill, mountPaginatedSurface, partOfNodeId, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameZoomMode, snapTwips, surfaceExtent, tableCommandState, toEditorFontError, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier };
|
package/dist/editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{Qa as AUTO_ZOOM_MODE,Va as BROWSER_AUTOMATION_CAPABILITIES,Da as CHROME_GROUPS,Ha as CHROME_MENUS,Ka as CHROME_UNAVAILABLE_KEY,da as DEFAULT_TABLE_CHROME_DRAFT,X as EMU_PER_POINT,Ra as FIT_WIDTH_ZOOM_MODE,i as FONT_RESOLVER_BRAND,h as FONT_RESOLVER_MARK_KEY,V as IMAGE_OVERLAY_NUDGE_PT,W as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as LOADING_SNAPSHOT,e as MAX_RESOLVER_FAMILIES,t as PX_PER_CM,s as PX_PER_INCH,z as SNAP_TWIPS_CM,y as SNAP_TWIPS_INCH,ja as TABLE_BORDER_STYLE_OPTIONS,ia as TABLE_BORDER_TARGET_OPTIONS,ka as TABLE_BORDER_WIDTH_OPTIONS,ea as TABLE_CHROME_SLOT_IDS,x as TWIPS_PER_CM,w as TWIPS_PER_INCH,f as WORD_DEFAULT_FONT,Pa as ZOOM_MAX,Oa as ZOOM_MIN,la as applyTableChromePick,F as applyThemeShade,E as applyThemeTint,m as blankDocumentBytes,T as canExecuteImageCommand,S as captureImageMutationPreconditions,Ja as chromeControlCount,Ia as chromeMenuSlots,pa as chromeProbeForSlot,Ea as chromeSlotId,va as chromeSlotIsToggle,o as clipboardDropLandsText,n as clipboardPasteLandsContent,qa as commandForSlot,sa as commandForSlotValue,ra as commandForTableChromeSlotValue,g as composeFontConfiguration,l as composeFontOrigins,bb as computeImageResizeResult,aa as computeMovedImagePosition,$ as computeResizedImageExtentEmu,Wa as createBrowserAutomationHost,Ua as createDocxEditor,r as createFontSource,cb as createImageOverlayScrollPort,b as createLayoutShaping,P as cropPercentFromCropPermille,N as cropPercentFromPermille,K as cropPercentFromSourceCrop,O as cropPermilleFromCropPercent,M as cropPermilleFromPercent,Za as cssPixelsToLayoutPoints,Fa as defaultChromeGroups,fa as defaultTableLabel,j as defineFontResolver,c as disposeLayoutShaping,C as dragIndent,Ca as editorCommandKey,_ as emuToOverlayPoints,Ma as equationAtPosition,U as executeImageCommand,db as finalizeImageOverlayInteraction,Ga as formattingBarChromeGroups,u as generateRulerTicks,A as handlePosition,k as isFontResolver,ba as isStaleImageInteractionCommit,ga as isTableChromeSlot,Ya as layoutPointsToCssPixels,q as loadFonts,H as lowerColorValueForBorder,I as lowerColorValueForFill,Na as mountPaginatedSurface,_a as overlayFrameToSheetCssPixels,$a as overlayHostOrigin,p as partOfNodeId,Z as pointsToEmu,ma as probeTableChromeCommand,ab as resizePreservesAspect,J as resolveColorValueToCss,G as resolveThemeColorHex,Sa as resolveZoomMode,v as rulerPageBox,za as runSave,xa as runTableChromeCommand,Ba as runTableCommand,ya as runToolbarCommand,Ta as sameZoomMode,Y as selectedDrawingOverlayTargetOf,R as selectedImageStateOf,B as snapTwips,L as sourceCropFromCropPercent,La as surfaceExtent,Xa as surfacePaintScale,oa as tableChromeIconPaths,na as tableChromeLabelKeyForTarget,ta as tableChromeToolbarState,ha as tableChromeVisible,ca as tableCommandState,Aa as tableCommandToolbarState,a as toEditorFontError,ua as toolbarCommandState,wa as toolbarCommandStates,Q as validateImageCropPercent,D as validateThemeModifier}from'./chunk-BHAUFJO6.js';export{a as resolveEditorModules}from'./chunk-D5EHDHYV.js';import'./chunk-VBEKERLJ.js';import'./chunk-OF2QZCTN.js';import'./chunk-RIYSCEFQ.js';import'./chunk-IOTL2GGW.js';import'./chunk-RO3HFCML.js';import'./chunk-PRIBU3UH.js';import'./chunk-SFOUCTKA.js';import'./chunk-6JIJOZDW.js';import'./chunk-HWWHGREA.js';export{m as DEFAULT_IMAGE_RESOURCE_LIMITS,Ng as DRAWING_REL_FROM_H,Og as DRAWING_REL_FROM_V,Ya as IMAGE_WRAP_TARGETS,Qg as positionInputFromPropertiesCommand,Pg as propertiesCommandHasPositionFields,n as resolveImageResourceLimits,pb as resolveSvgIntrinsicSize,lb as sniffImageMime,Mg as validateDrawingPositionInput,qb as validateRasterHeader,Rg as validateSetImagePositionCommand}from'./chunk-YMW34EBA.js';import'./chunk-GOEBQ26R.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { T as TreeDocOp, C as ImageDecodePort, v as DrawingPositionInput, W as DrawingTransform, F as DrawingTreeDocOp, y as SupportedImageMime } from './tree-op-types-
|
|
1
|
+
import { T as TreeDocOp, C as ImageDecodePort, v as DrawingPositionInput, W as DrawingTransform, F as DrawingTreeDocOp, y as SupportedImageMime } from './tree-op-types-D6HzlPR4.js';
|
|
2
2
|
import { Unsubscribe, ExecResult, ParagraphTabStop, IndentFormatting, ParagraphFlags, ParagraphDisagreements, SelectionPin } from './contracts/types.js';
|
|
3
|
-
import { g as ReviewRevisionKind } from './review-items-
|
|
3
|
+
import { g as ReviewRevisionKind } from './review-items-CCS1h93f.js';
|
|
4
4
|
import { EditorModule, ReviewModuleContribution } from './contracts/modules.js';
|
|
5
|
-
import { j as FontSource, k as FontSourceSubstitution, F as FontConfiguration, D as DocumentSource, Z as ZoomMode, E as EditorFontError,
|
|
6
|
-
import { R as RevisionDisplayMode } from './revision-projection-
|
|
7
|
-
import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-
|
|
5
|
+
import { j as FontSource, k as FontSourceSubstitution, l as FontFaceRequest, F as FontConfiguration, D as DocumentSource, Z as ZoomMode, E as EditorFontError, m as Editor, b as EditorCommand, C as CanResult, S as SelectedImageState, n as FormatPainterSurfaceState, V as ViewScope, I as ImageContext, T as TableBorderEdgeTarget, o as TableBorderSpec, p as TableBorderStyle, q as TableContext } from './editor-KiB6JNvk.js';
|
|
6
|
+
import { R as RevisionDisplayMode } from './revision-projection-BmLtLPxH.js';
|
|
7
|
+
import { S as SemanticPosition, a as SemanticSelection, N as NavigationCommand } from './semantic-interaction-BDJ4TBjm.js';
|
|
8
8
|
import { EditorCollaborationSession, CollaborationRemoteSelection, CollaborationModuleContribution } from './collaboration.js';
|
|
9
|
-
import { c as RevisionStyles, R as ReviewAuthorInfo, b as RevisionAuthorStyle, F as FieldShadingMode, d as DrawingPaintStrings } from './semantic-paint-
|
|
10
|
-
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-
|
|
11
|
-
import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-
|
|
12
|
-
import { B as BookmarkIndex } from './custom-node-writes-
|
|
13
|
-
import { I as InsertImageInput, S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult } from './tree-package-fragment-
|
|
14
|
-
import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-
|
|
15
|
-
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-
|
|
9
|
+
import { c as RevisionStyles, R as ReviewAuthorInfo, b as RevisionAuthorStyle, F as FieldShadingMode, d as DrawingPaintStrings } from './semantic-paint-DuhhY5-R.js';
|
|
10
|
+
import { R as ResolvedFootnoteProperties, a as ResolvedEndnoteProperties, A as AuthoredNoteProperties } from './note-properties-CDFiNXcD.js';
|
|
11
|
+
import { S as SemanticLayout, C as ContentControlBoundaryRecord, T as TextMeasurer } from './semantic-records-BI1jpft7.js';
|
|
12
|
+
import { B as BookmarkIndex } from './custom-node-writes-DntmaAVW.js';
|
|
13
|
+
import { I as InsertImageInput, S as StoryScope, A as ApplyImagePropertiesInput, d as ImageIntentResult } from './tree-package-fragment-B1supBtE.js';
|
|
14
|
+
import { C as CellSelection, S as SectionProperties } from './semantic-cell-selection-BZ50i-Fu.js';
|
|
15
|
+
import { T as TreeDocxSessionView, a as TreeApplyResult } from './tree-session-contract-BasiwZgZ.js';
|
|
16
16
|
import { C as CollaborationStatus } from './failure-BnGjoXf0.js';
|
|
17
17
|
import './contracts/document.js';
|
|
18
18
|
|
|
@@ -58,6 +58,26 @@ interface FontResolutionRequest {
|
|
|
58
58
|
readonly families: readonly string[];
|
|
59
59
|
/** The face a run naming no font resolves to, so a resolver can cover it too. */
|
|
60
60
|
readonly defaultFamily: string;
|
|
61
|
+
/**
|
|
62
|
+
* Faces an EARLIER origin in the same composition can already PAINT — either because it
|
|
63
|
+
* supplied the bytes, or because it mapped that face onto one it did supply.
|
|
64
|
+
*
|
|
65
|
+
* Absent, not empty, when there is nothing to report: the engine calling a resolver
|
|
66
|
+
* directly, and the first origin of a composition.
|
|
67
|
+
*
|
|
68
|
+
* FACES, not families, and only faces backed by bytes. Both narrowings are load-bearing.
|
|
69
|
+
* A family-grained list would let an origin holding only regular Arial suppress the bold
|
|
70
|
+
* and italic a later origin would have supplied, and a list built from substitutions
|
|
71
|
+
* alone would let an origin whose fetches all failed suppress the failover behind it,
|
|
72
|
+
* because both shipped resolvers emit their substitution map before fetching. Together
|
|
73
|
+
* they are what makes honouring this an OPTIMIZATION rather than a correctness
|
|
74
|
+
* requirement: skipping a reported face cannot lose one, so a resolver that ignores this
|
|
75
|
+
* list only spends bytes on a face first-wins composition would drop anyway.
|
|
76
|
+
*
|
|
77
|
+
* Match it case-insensitively. Word matches font names that way and both shipped
|
|
78
|
+
* resolvers do.
|
|
79
|
+
*/
|
|
80
|
+
readonly resolvedFaces?: readonly FontFaceRequest[];
|
|
61
81
|
}
|
|
62
82
|
/**
|
|
63
83
|
* Resolve fonts once the document's needs are known, instead of ahead of them.
|
|
@@ -103,6 +123,132 @@ declare const WORD_DEFAULT_FONT: FontConfiguration['defaultFont'];
|
|
|
103
123
|
*/
|
|
104
124
|
declare function composeFontConfiguration(base: FontConfigurationBase, ...fragments: readonly FontConfigurationFragment[]): FontConfiguration;
|
|
105
125
|
|
|
126
|
+
/**
|
|
127
|
+
* The namespaced key carrying the type-level half of the mark, and the runtime property
|
|
128
|
+
* name that backs it.
|
|
129
|
+
*
|
|
130
|
+
* A plain string rather than a symbol on purpose: `@docx-editor.dev/fonts` has no runtime
|
|
131
|
+
* or type dependency on the engine, so it declares the same mark itself, and two
|
|
132
|
+
* `unique symbol`s in two packages would not unify. Two identical string keys do.
|
|
133
|
+
*
|
|
134
|
+
* @public
|
|
135
|
+
*/
|
|
136
|
+
declare const FONT_RESOLVER_MARK_KEY = "docx-editor.dev/font-resolver";
|
|
137
|
+
/**
|
|
138
|
+
* The runtime marker `defineFontResolver` sets and {@link isFontResolver} reads.
|
|
139
|
+
*
|
|
140
|
+
* Exported because a package mirroring the font contract structurally still has to mark
|
|
141
|
+
* the resolvers it builds. A package in that position sets
|
|
142
|
+
* `Symbol.for('docx-editor.dev/font-resolver')` itself; this constant is the same symbol,
|
|
143
|
+
* named, for everyone who can import it.
|
|
144
|
+
*
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
declare const FONT_RESOLVER_BRAND: unique symbol;
|
|
148
|
+
/**
|
|
149
|
+
* The type-level half of the mark: what {@link defineFontResolver} adds to a function's
|
|
150
|
+
* type so a `FontOrigin` list can REQUIRE it.
|
|
151
|
+
*
|
|
152
|
+
* Declared with a string key so `@docx-editor.dev/fonts` can declare an identical
|
|
153
|
+
* interface and have the two unify without importing anything from the engine. Set at
|
|
154
|
+
* runtime as well as in the type — non-enumerable, so it stays out of `Object.keys` and
|
|
155
|
+
* out of a host's own spread.
|
|
156
|
+
*
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
159
|
+
interface FontResolverMark {
|
|
160
|
+
/** Always `true`. Set non-enumerably by {@link defineFontResolver}. */
|
|
161
|
+
readonly 'docx-editor.dev/font-resolver': true;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* A {@link FontResolver} that has been through {@link defineFontResolver}.
|
|
165
|
+
*
|
|
166
|
+
* This, not bare `FontResolver`, is what a `FontOrigin` list accepts. The mark is the only
|
|
167
|
+
* thing separating a resolver from a zero-argument loader, and getting that wrong loses
|
|
168
|
+
* every font silently, so the type asks for it up front.
|
|
169
|
+
*
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
type MarkedFontResolver<T extends FontResolver = FontResolver> = T & FontResolverMark;
|
|
173
|
+
/**
|
|
174
|
+
* Mark a function as an on-demand {@link FontResolver}.
|
|
175
|
+
*
|
|
176
|
+
* Wrap every resolver you put in a `fonts` list — `useFonts(...)`, `useDocxSource`'s
|
|
177
|
+
* `fonts` option, `composeFontOrigins`. The `fonts` PROP needs no marking, because a
|
|
178
|
+
* function there is always a resolver; a list also accepts the older zero-argument loader
|
|
179
|
+
* form (`{ fonts: defaultFonts }`), and this is what keeps the two apart.
|
|
180
|
+
*
|
|
181
|
+
* Returns the same function object, mutated, so the mark survives being passed around and
|
|
182
|
+
* a marked resolver stays `===` to itself. It does NOT survive `.bind()` or being wrapped:
|
|
183
|
+
* both make a new function object. Re-mark the result.
|
|
184
|
+
*
|
|
185
|
+
* ```ts
|
|
186
|
+
* const brandFonts = defineFontResolver(async ({ families }) => ({
|
|
187
|
+
* sources: await loadMine(families),
|
|
188
|
+
* }));
|
|
189
|
+
* ```
|
|
190
|
+
*
|
|
191
|
+
* Throws a `TypeError` on a frozen or sealed function, which cannot take the mark. That is
|
|
192
|
+
* deliberate: returning it unmarked would compile — the return TYPE says marked — and then
|
|
193
|
+
* lose every font at runtime.
|
|
194
|
+
*
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
197
|
+
declare function defineFontResolver<T extends FontResolver>(resolve: T): MarkedFontResolver<T>;
|
|
198
|
+
/**
|
|
199
|
+
* Whether a value is a function marked by {@link defineFontResolver}.
|
|
200
|
+
*
|
|
201
|
+
* False for an unmarked function, which callers read as a zero-argument loader. Calling a
|
|
202
|
+
* resolver that way reads `request.defaultFamily` off `undefined` and throws, so the
|
|
203
|
+
* callers that make this choice say so rather than swallowing it — and the type-level mark
|
|
204
|
+
* on {@link MarkedFontResolver} is there to stop it reaching runtime at all.
|
|
205
|
+
*
|
|
206
|
+
* @public
|
|
207
|
+
*/
|
|
208
|
+
declare function isFontResolver(value: unknown): value is MarkedFontResolver;
|
|
209
|
+
/**
|
|
210
|
+
* ONE font origin, in the one shape every origin takes: a finished configuration, a
|
|
211
|
+
* fragment, a promise for either, or a marked resolver that answers per document.
|
|
212
|
+
*
|
|
213
|
+
* The point of the union is that `packagedFonts()`, `googleFonts()`, `await defaultFonts()`
|
|
214
|
+
* and a hand-built `{ sources }` are all the same kind of thing, so a list of them needs no
|
|
215
|
+
* ordering rule beyond "first wins".
|
|
216
|
+
*
|
|
217
|
+
* The resolver arm is {@link MarkedFontResolver}, not bare `FontResolver`: a list may also
|
|
218
|
+
* hold a zero-argument loader, and only the mark separates the two.
|
|
219
|
+
*
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
type FontOrigin = FontConfiguration | FontConfigurationFragment | MarkedFontResolver | Promise<FontConfiguration | FontConfigurationFragment | undefined> | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* Resolve a list of {@link FontOrigin}s against one document's needs and merge them,
|
|
225
|
+
* first-wins in list order.
|
|
226
|
+
*
|
|
227
|
+
* Origins resolve IN ORDER, one after another, and each is told which faces the ones
|
|
228
|
+
* before it can already paint ({@link FontResolutionRequest.resolvedFaces}). Sequential
|
|
229
|
+
* rather than a `Promise.all`, and that is a real cost — one extra origin's latency on the
|
|
230
|
+
* critical path — bought deliberately: composition is first-wins, so a later origin's copy
|
|
231
|
+
* of a face an earlier one supplied can never be used, and fetching it anyway spends the
|
|
232
|
+
* bytes twice and tells a font host which families the document uses for a result that
|
|
233
|
+
* gets thrown away. Order origins cheapest-first.
|
|
234
|
+
*
|
|
235
|
+
* A resolver that ignores `resolvedFaces` still composes correctly; it just spends more.
|
|
236
|
+
*
|
|
237
|
+
* ONE ORIGIN CANNOT SINK THE REST. An origin that throws, answers `null`, or answers
|
|
238
|
+
* something malformed is reported and skipped whole, and the origins around it still
|
|
239
|
+
* compose — an app that listed a flaky network origin behind a bundled one keeps the
|
|
240
|
+
* bundled faces. Skipped WHOLE: an answer is read completely before any of it is
|
|
241
|
+
* committed, so a half-ingested origin can never reach composition.
|
|
242
|
+
*
|
|
243
|
+
* The result carries NO `epoch`: it is a fragment for the engine to stamp with the load
|
|
244
|
+
* sequence. A fixed epoch from here would label every document's byte set as the same one.
|
|
245
|
+
* `undefined` means no origin contributed anything, which is a normal answer — the document
|
|
246
|
+
* stays on the fixed measurer.
|
|
247
|
+
*
|
|
248
|
+
* @public
|
|
249
|
+
*/
|
|
250
|
+
declare function composeFontOrigins(origins: readonly FontOrigin[], request: FontResolutionRequest): Promise<FontConfigurationFragment | undefined>;
|
|
251
|
+
|
|
106
252
|
/**
|
|
107
253
|
* A Word-faithful blank document, freshly zipped per call (the caller may hand the
|
|
108
254
|
* bytes to a loader that takes ownership). Calibri 11pt and Word's Normal paragraph
|
|
@@ -1741,6 +1887,15 @@ interface PaginatedSurface {
|
|
|
1741
1887
|
insertToc(): boolean;
|
|
1742
1888
|
/** Refresh cached TOC entries and/or page numbers through the two-pass layout pipeline. */
|
|
1743
1889
|
refreshToc(tocId?: string, mode?: 'entire' | 'pageNumbers'): boolean;
|
|
1890
|
+
/**
|
|
1891
|
+
* Rewrite stale REF field results in the body, footnote and endnote stories so a save
|
|
1892
|
+
* exports what the pages paint. Fresh results commit nothing (no transaction, no revision
|
|
1893
|
+
* bump, no undo entry); a rewrite is ONE transaction and ONE undo unit across every stale
|
|
1894
|
+
* part. Viewing, a non-editable session, and a collaborative session write nothing — the
|
|
1895
|
+
* collaboration gate cannot journal the rewrite, so those saves export cached results and
|
|
1896
|
+
* the call returns false.
|
|
1897
|
+
*/
|
|
1898
|
+
refreshRefFieldResults(): boolean;
|
|
1744
1899
|
/** Whether a body paragraph belongs to a detected TOC boundary or cached result. */
|
|
1745
1900
|
isInsideToc(paragraphId: string): boolean;
|
|
1746
1901
|
/**
|
|
@@ -3199,4 +3354,4 @@ declare function runTableCommand(editor: Editor | null, command: EditorCommand):
|
|
|
3199
3354
|
*/
|
|
3200
3355
|
declare function createDocxEditor(config: DocxEditorConfig): DocxEditorInstance;
|
|
3201
3356
|
|
|
3202
|
-
export { type
|
|
3357
|
+
export { type MarkedFontResolver as $, type AnchorFrameOrigin as A, type FontLoadFailureReason as B, CHROME_GROUPS as C, type DocxEditorInstance as D, EMU_PER_POINT as E, FONT_RESOLVER_BRAND as F, type FontMeasurementState as G, type FontOrigin as H, type FontResolutionRequest as I, type FontResolver as J, type FontResolverMark as K, type FontUrlSource as L, type HyperlinkActivation as M, type HyperlinkChromeHandlers as N, type OpenPaginatedResult as O, type PaginatedSurfaceOptions as P, type HyperlinkOps as Q, IMAGE_OVERLAY_NUDGE_PT as R, IMAGE_OVERLAY_NUDGE_SHIFT_PT as S, type TableCommandPlan as T, type ImageInteractionSession as U, type ImageOverlayScrollPort as V, type ImageResizeHandle as W, type ImageResizeResult as X, type LoadFontsRequest as Y, type LoadFontsResult as Z, MAX_RESOLVER_FAMILIES as _, type PaginatedSurface as a, layoutPointsToCssPixels as a$, type OverlayFrameRect as a0, type PaginatedSurfaceState as a1, type ParagraphPropertyEdit as a2, type RemoteCaretLabelAnchor as a3, type RemoteCaretLabelHost as a4, type ReviewWriteIntent as a5, type RunTableChromeCommandResult as a6, type SectionAnchor as a7, type SectionBreakInsertType as a8, type SelectedDrawingOverlayTarget as a9, chromeMenuSlots as aA, chromeProbeForSlot as aB, chromeSlotId as aC, chromeSlotIsToggle as aD, commandForSlot as aE, commandForSlotValue as aF, commandForTableChromeSlotValue as aG, composeFontConfiguration as aH, composeFontOrigins as aI, computeImageResizeResult as aJ, computeMovedImagePosition as aK, computeResizedImageExtentEmu as aL, createDocxEditor as aM, createFontSource as aN, createImageOverlayScrollPort as aO, cssPixelsToLayoutPoints as aP, defaultChromeGroups as aQ, defaultTableLabel as aR, defineFontResolver as aS, emuToOverlayPoints as aT, equationAtPosition as aU, executeImageCommand as aV, finalizeImageOverlayInteraction as aW, formattingBarChromeGroups as aX, isFontResolver as aY, isStaleImageInteractionCommit as aZ, isTableChromeSlot as a_, type SurfaceEquation as aa, type SurfaceFormatting as ab, type SurfaceHyperlink as ac, type SurfaceInsertImageInput as ad, type SurfaceNavigation as ae, type SurfaceOverlayCoordinates as af, type SurfaceParagraphFormat as ag, TABLE_BORDER_STYLE_OPTIONS as ah, TABLE_BORDER_TARGET_OPTIONS as ai, TABLE_BORDER_WIDTH_OPTIONS as aj, TABLE_CHROME_SLOT_IDS as ak, type TableBorderStyleOption as al, type TableBorderTargetOption as am, type TableBorderTargetValue as an, type TableBorderWidthOption as ao, type TableChromeDraft as ap, type TableChromePick as aq, type TableChromeSlotId as ar, type TableInteractionLabelKey as as, type ToolbarCommandState as at, WORD_DEFAULT_FONT as au, applyTableChromePick as av, blankDocumentBytes as aw, canExecuteImageCommand as ax, captureImageMutationPreconditions as ay, chromeControlCount as az, CHROME_MENUS as b, loadFonts as b0, overlayFrameToSheetCssPixels as b1, overlayHostOrigin as b2, pointsToEmu as b3, probeTableChromeCommand as b4, resizePreservesAspect as b5, runSave as b6, runTableChromeCommand as b7, runTableCommand as b8, runToolbarCommand as b9, selectedDrawingOverlayTargetOf as ba, selectedImageStateOf as bb, surfacePaintScale as bc, tableChromeIconPaths as bd, tableChromeLabelKeyForTarget as be, tableChromeToolbarState as bf, tableChromeVisible as bg, tableCommandToolbarState as bh, toolbarCommandState as bi, toolbarCommandStates as bj, 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 DrawingSelectionIntent as r, type EquationActivation as s, type EquationChromeHandlers as t, type EquationOps as u, FONT_RESOLVER_MARK_KEY as v, type FinalizedImageOverlayInteraction as w, type FontConfigurationBase as x, type FontConfigurationFragment as y, type FontLoadFailure as z };
|