@docx-editor.dev/core 2.27.0 → 2.28.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/dist/automation.cjs +1 -1
- package/dist/automation.d.ts +26 -13
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.ts +20 -9
- package/dist/binding.js +1 -1
- package/dist/chunk-2GO5T2JU.cjs +1 -0
- package/dist/chunk-2RC2EPND.js +3 -0
- package/dist/chunk-4GBTELJV.cjs +28 -0
- package/dist/chunk-4R3TEXMN.js +18 -0
- package/dist/chunk-5CSUYANV.js +1 -0
- package/dist/chunk-6APGXLBB.cjs +3 -0
- package/dist/chunk-6AWEKBLB.cjs +1 -0
- package/dist/chunk-6EYYL7FL.js +1 -0
- package/dist/chunk-E7BQA6UP.js +2 -0
- package/dist/chunk-EO4C5QJW.cjs +2 -0
- package/dist/chunk-ETTO6GK3.js +1 -0
- package/dist/chunk-FIJZIQXA.cjs +18 -0
- package/dist/chunk-FRXAOVTB.js +28 -0
- package/dist/chunk-J6BVWIDB.js +2 -0
- package/dist/chunk-JGNVNT2A.cjs +2 -0
- package/dist/chunk-K5U2PLDP.cjs +2 -0
- package/dist/chunk-KKIJG3C6.js +2 -0
- package/dist/chunk-LWDSDCMO.js +27 -0
- package/dist/chunk-O2AL2HSJ.cjs +1 -0
- package/dist/chunk-QMLCVPCD.cjs +1 -0
- package/dist/chunk-RCHS4ZEH.cjs +27 -0
- package/dist/chunk-SRPILEWV.cjs +5 -0
- package/dist/chunk-TSLBZ26X.js +1 -0
- package/dist/chunk-VDNNLG6X.js +2 -0
- package/dist/chunk-VHAVHCQY.js +7 -0
- package/dist/chunk-VX43VBAX.cjs +7 -0
- package/dist/chunk-Z6WBFXJU.js +5 -0
- package/dist/{chunk-2GK7YQB2.cjs → chunk-ZUHOMK52.cjs} +1 -1
- package/dist/collaboration/replication.cjs +1 -1
- package/dist/collaboration/replication.d.ts +41 -5
- package/dist/collaboration/replication.js +1 -1
- package/dist/collaboration.cjs +1 -1
- package/dist/collaboration.d.ts +98 -6
- package/dist/collaboration.js +1 -1
- package/dist/contracts/document.d.ts +17 -2
- package/dist/contracts/editor.d.ts +19 -9
- package/dist/contracts/interaction.d.ts +29 -0
- package/dist/contracts/modules.d.ts +31 -7
- package/dist/contracts/types.d.ts +10 -1
- package/dist/{custom-node-writes-Vzpq9I8_.d.ts → custom-node-writes-cvL5rhcD.d.ts} +2 -2
- package/dist/{document-protection-9zpIHWTE.d.ts → document-protection-BAGVGqaP.d.ts} +1 -1
- package/dist/{editor-B3OBYNrF.d.ts → editor-Ci7IZGmG.d.ts} +392 -140
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +5 -5
- package/dist/editor.d.ts +415 -30
- package/dist/editor.js +1 -1
- package/dist/export.cjs +2 -2
- package/dist/export.d.ts +23 -13
- package/dist/export.js +2 -2
- package/dist/failure-NS2lsya4.d.ts +115 -0
- package/dist/{font-resolver-DN0xNOf_.d.ts → font-resolver-BVQB14qT.d.ts} +1 -1
- package/dist/{headless-document-view-ICYqNkQ1.d.ts → headless-document-view-qH331moE.d.ts} +2 -2
- package/dist/{image-resources-BDFxcu7W.d.ts → image-resources-BN-hUgCn.d.ts} +9 -9
- package/dist/{index-CkQVRJtJ.d.ts → index-Bsg7oIKP.d.ts} +234 -111
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +46 -19
- package/dist/index.js +1 -1
- package/dist/{layout-shaping-BvZD_VKP.d.ts → layout-shaping-BEyuiQOk.d.ts} +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.ts +170 -78
- package/dist/layout.js +1 -1
- package/dist/{note-properties-CkAk7g-n.d.ts → note-properties-4Y9o6Gyk.d.ts} +1 -1
- package/dist/{omml-equation-DuczgG5o.d.ts → omml-equation-CuzBL5DD.d.ts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.ts +18 -8
- package/dist/output.js +1 -1
- package/dist/{protocol-aKYr8r3u.d.ts → protocol-Bqk4Izjc.d.ts} +44 -4
- package/dist/review-pane-D9jm8DcY.d.ts +128 -0
- package/dist/{review-paragraph-order-Ddj5d6rp.d.ts → review-paragraph-order-DT-n6ouC.d.ts} +5 -2
- package/dist/{revision-projection-CSNFudZY.d.ts → revision-projection-DZ4kKVev.d.ts} +1 -1
- package/dist/{semantic-cell-selection-DoqYCz_F.d.ts → semantic-cell-selection-D9D1KSXq.d.ts} +8 -6
- package/dist/{semantic-interaction-G0bjmmmk.d.ts → semantic-interaction-CIC-PooQ.d.ts} +25 -34
- package/dist/{semantic-paint-CsMzF8-O.d.ts → semantic-paint-BME37OMv.d.ts} +4 -4
- package/dist/{semantic-record-queries-1du6lQqS.d.ts → semantic-record-queries-CBlZqZNa.d.ts} +1 -1
- package/dist/{semantic-records-B9OolWGN.d.ts → semantic-records-4B3WwFAi.d.ts} +74 -42
- package/dist/store.cjs +1 -1
- package/dist/store.d.ts +157 -134
- package/dist/store.js +1 -1
- package/dist/{tree-package-fragment-DYZIk1rY.d.ts → tree-package-fragment-BeeKxDw8.d.ts} +77 -57
- package/dist/{tree-session-contract-DQVJOOkv.d.ts → tree-session-contract-CVbmlMlq.d.ts} +7 -5
- package/dist/{types-barrel-BFKR8Pzp.d.ts → types-barrel-D3xCgQX6.d.ts} +462 -362
- package/package.json +2 -2
- package/dist/chunk-4KZ6L5YF.cjs +0 -15
- package/dist/chunk-55AT3MOU.cjs +0 -25
- package/dist/chunk-6ZQMII6V.js +0 -1
- package/dist/chunk-7IGCWG4H.js +0 -2
- package/dist/chunk-7MYITTAH.js +0 -5
- package/dist/chunk-AVKVRU7Z.cjs +0 -5
- package/dist/chunk-CWRBFNK5.cjs +0 -5
- package/dist/chunk-DGPA3TST.cjs +0 -27
- package/dist/chunk-DNXVNQEO.js +0 -1
- package/dist/chunk-FQN4KSFL.cjs +0 -7
- package/dist/chunk-GVUOWHTO.cjs +0 -1
- package/dist/chunk-GWQJ5774.js +0 -5
- package/dist/chunk-HAQ72KD7.js +0 -1
- package/dist/chunk-HO5XFO32.cjs +0 -3
- package/dist/chunk-IGR23DV2.js +0 -1
- package/dist/chunk-JSIX2EOH.js +0 -3
- package/dist/chunk-K246T47S.cjs +0 -1
- package/dist/chunk-KAXOGCGA.js +0 -1
- package/dist/chunk-LZLTN5A3.cjs +0 -1
- package/dist/chunk-OHAXVTWG.cjs +0 -1
- package/dist/chunk-S74GRBNE.js +0 -7
- package/dist/chunk-UBLUVNZR.js +0 -27
- package/dist/chunk-UMRSBLO7.js +0 -15
- package/dist/chunk-VIPMGGUT.js +0 -25
- package/dist/chunk-WG4KMSX2.cjs +0 -2
- package/dist/chunk-WRLKVNNR.cjs +0 -1
- package/dist/chunk-ZU7IVN6G.js +0 -2
- package/dist/failure-BIPVQbRm.d.ts +0 -65
package/dist/editor.d.ts
CHANGED
|
@@ -1,37 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* `@docx-editor.dev/core/editor` — the editor facade and its chrome vocabulary.
|
|
3
|
+
*
|
|
4
|
+
* `createDocxEditor` implements the full `Editor` contract over a paginated surface, and the
|
|
5
|
+
* chrome registry (`CHROME_GROUPS`, `ChromeSlotId`) is the toolbar taxonomy both adapters derive
|
|
6
|
+
* their default arrangement from. Enabled state has exactly one source — `toolbarCommandState`,
|
|
7
|
+
* which asks the engine — so a control and the engine can never disagree.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export { k as FieldResultsMode } from './tree-package-fragment-BeeKxDw8.js';
|
|
13
|
+
import { O as OoxmlPart, aG as TreeDocColorValue, r as ColorValue, ao as DrawingPositionInput, A as ParagraphTabStop } from './types-barrel-D3xCgQX6.js';
|
|
14
|
+
export { aH as IMAGE_WRAP_TARGETS, an as ImageWrapTarget, z as ParagraphFlags, R as ReviewModelInput, aI as TEXT_FORM_FORMATS } from './types-barrel-D3xCgQX6.js';
|
|
15
|
+
export { D as DEFAULT_IMAGE_RESOURCE_LIMITS, a as ImageDecodePort, I as ImageResourceLimits, R as RenderableImageMime, S as SupportedImageMime, c as VectorImageMime, r as resolveImageResourceLimits, d as resolveSvgIntrinsicSize, s as sniffImageMime, v as validateRasterHeader } from './image-resources-BN-hUgCn.js';
|
|
4
16
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, RevisionMarkupDialog, RevisionMarkupDialogHost, resolveEditorModules } from './contracts/modules.js';
|
|
5
|
-
import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-
|
|
6
|
-
export { a as TreeApplyResult } from './tree-session-contract-
|
|
7
|
-
import { a as FontConfiguration, E as EditorFontError, d as EditorSnapshot, e as EditorCommand, C as CanResult, Z as ZoomMode, f as ClearAnchorHighlightOptions, A as AnchorHighlightOptions, S as ScrollToAnchorOptions, g as AnchorHighlightAnimation, H as HighlightRange,
|
|
8
|
-
export {
|
|
9
|
-
import { L as LayoutShapingInstrumentation, a as LayoutShapingOptions } from './layout-shaping-
|
|
10
|
-
export { d as disposeLayoutShaping } from './layout-shaping-
|
|
11
|
-
export { C as ComposeFontOriginsOptions, D as DEFAULT_FONT, b as FONT_RESOLVER_BRAND, c as FONT_RESOLVER_MARK_KEY, d as FontConfigurationBase, e as FontConfigurationFragment, a as FontOrigin, F as FontOriginFailure, f as FontResolutionRequest, g as FontResolver, h as FontResolverMark, M as MAX_RESOLVER_FAMILIES, i as MarkedFontResolver, W as WORD_DEFAULT_FONT, j as composeFontConfiguration, k as composeFontOrigins, l as defineFontResolver, m as isFontResolver } from './font-resolver-
|
|
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 ChromeExportError, h as ChromeExportFormat, i as ChromeExportHandlers, j as ChromeExportResult, k as ChromeExportView, l as ChromeGroup, m as ChromeGroupId, n as ChromeMenu, o as ChromeMenuEntry, p as ChromeMenuId, q as ChromeMenuItemEntry, r as ChromeMenuSeparatorEntry, s as ChromeMenuSubmenuEntry, t as ChromePrintError, u as ChromePrintErrorCode, v as ChromePrintJob, w as ChromePrintOptions, x as ChromeSlotId, y as ContentControlWidgetChromeHandlers, z as ContentControlWidgetSession, B as CustomFontsOptions, E as CustomFontsResolver, F as DEFAULT_TABLE_CHROME_DRAFT, G as DocxEditorConfig, H as DrawingSelectionIntent, I as EMU_PER_POINT, J as EditorCommandExecute, K as EquationActivation, L as EquationChromeHandlers, M as EquationOps, N as FinalizedImageOverlayInteraction, Q as FontLoadFailure, R as FontLoadFailureReason, S as FontMeasurementState, U as FontUrlSource, V as HistoryGroupBinding, W as HistoryGroupBindingOptions, X as HyperlinkActivation, Y as HyperlinkChromeHandlers, Z as HyperlinkOps, _ as IMAGE_OVERLAY_NUDGE_PT, $ as IMAGE_OVERLAY_NUDGE_SHIFT_PT, a0 as ImageInteractionSession, a1 as ImageOverlayScrollPort, a2 as ImageResizeHandle, a3 as ImageResizeResult, a4 as InvalidTextFormFieldChromeHandlers, a5 as InvalidTextFormFieldSession, a6 as LoadFontsRequest, a7 as LoadFontsResult, a8 as
|
|
14
|
-
import { a as AutomationCapabilities, b as AutomationHost } from './protocol-
|
|
15
|
-
import { S as SemanticLayout } from './semantic-records-
|
|
16
|
-
export { T as TextMeasurer } from './semantic-records-
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
17
|
+
import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-CVbmlMlq.js';
|
|
18
|
+
export { a as TreeApplyResult } from './tree-session-contract-CVbmlMlq.js';
|
|
19
|
+
import { a as FontConfiguration, E as EditorFontError, d as EditorSnapshot, e as EditorCommand, C as CanResult, Z as ZoomMode, f as ClearAnchorHighlightOptions, A as AnchorHighlightOptions, S as ScrollToAnchorOptions, g as ScrollPlacement, h as AnchorHighlightAnimation, H as HighlightRange, i as Editor, j as HighlightResult, k as HighlightOptions, T as TextMatch } from './editor-Ci7IZGmG.js';
|
|
20
|
+
export { l as HighlightHit, m as HighlightRect, I as ImageContext, n as ImageCropPercent, o as ImageCropPermille, R as ReviewItemHit, p as SelectedImageState, q as TrackedChangeFilterMode, r as TrackedChangePredicate, s as cropPercentFromCropPermille, t as cropPercentFromPermille, u as cropPercentFromSourceCrop, v as cropPermilleFromCropPercent, w as cropPermilleFromPercent, x as sourceCropFromCropPercent, y as validateImageCropPercent } from './editor-Ci7IZGmG.js';
|
|
21
|
+
import { L as LayoutShapingInstrumentation, a as LayoutShapingOptions } from './layout-shaping-BEyuiQOk.js';
|
|
22
|
+
export { d as disposeLayoutShaping } from './layout-shaping-BEyuiQOk.js';
|
|
23
|
+
export { C as ComposeFontOriginsOptions, D as DEFAULT_FONT, b as FONT_RESOLVER_BRAND, c as FONT_RESOLVER_MARK_KEY, d as FontConfigurationBase, e as FontConfigurationFragment, a as FontOrigin, F as FontOriginFailure, f as FontResolutionRequest, g as FontResolver, h as FontResolverMark, M as MAX_RESOLVER_FAMILIES, i as MarkedFontResolver, W as WORD_DEFAULT_FONT, j as composeFontConfiguration, k as composeFontOrigins, l as defineFontResolver, m as isFontResolver } from './font-resolver-BVQB14qT.js';
|
|
24
|
+
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-Bsg7oIKP.js';
|
|
25
|
+
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 ChromeExportError, h as ChromeExportFormat, i as ChromeExportHandlers, j as ChromeExportResult, k as ChromeExportView, l as ChromeGroup, m as ChromeGroupId, n as ChromeMenu, o as ChromeMenuEntry, p as ChromeMenuId, q as ChromeMenuItemEntry, r as ChromeMenuSeparatorEntry, s as ChromeMenuSubmenuEntry, t as ChromePrintError, u as ChromePrintErrorCode, v as ChromePrintJob, w as ChromePrintOptions, x as ChromeSlotId, y as ContentControlWidgetChromeHandlers, z as ContentControlWidgetSession, B as CustomFontsOptions, E as CustomFontsResolver, F as DEFAULT_TABLE_CHROME_DRAFT, G as DocxEditorConfig, H as DrawingSelectionIntent, I as EMU_PER_POINT, J as EditorCommandExecute, K as EquationActivation, L as EquationChromeHandlers, M as EquationOps, N as FinalizedImageOverlayInteraction, Q as FontLoadFailure, R as FontLoadFailureReason, S as FontMeasurementState, U as FontUrlSource, V as HistoryGroupBinding, W as HistoryGroupBindingOptions, X as HyperlinkActivation, Y as HyperlinkChromeHandlers, Z as HyperlinkOps, _ as IMAGE_OVERLAY_NUDGE_PT, $ as IMAGE_OVERLAY_NUDGE_SHIFT_PT, a0 as ImageInteractionSession, a1 as ImageOverlayScrollPort, a2 as ImageResizeHandle, a3 as ImageResizeResult, a4 as InvalidTextFormFieldChromeHandlers, a5 as InvalidTextFormFieldSession, a6 as LoadFontsRequest, a7 as LoadFontsResult, a8 as OpeningIndicatorHost, a9 as OverlayFrameRect, aa as PaginatedSurfaceState, ab as ParagraphPropertyEdit, ac as PopupChromeRegistrationOptions, ad as RemoteCaretLabelAnchor, ae as RemoteCaretLabelHost, af as ReviewWriteIntent, ag as RunTableChromeCommandResult, ah as SectionAnchor, ai as SectionBreakInsertType, aj as SelectedDrawingOverlayTarget, ak as SurfaceEquation, al as SurfaceFormatting, am as SurfaceHyperlink, an as SurfaceInsertImageInput, ao as SurfaceNavigation, ap as SurfaceOverlayCoordinates, aq as SurfaceParagraphFormat, ar as TABLE_BORDER_STYLE_OPTIONS, as as TABLE_BORDER_TARGET_OPTIONS, at as TABLE_BORDER_WIDTH_OPTIONS, au as TABLE_CHROME_SLOT_IDS, av as TableBorderStyleOption, aw as TableBorderTargetOption, ax as TableBorderTargetValue, ay as TableBorderWidthOption, az as TableChromeDraft, aA as TableChromePick, aB as TableChromeSlotId, aC as TableInteractionLabelKey, aD as TextFormFieldChromeHandlers, aE as TextFormFieldDialogSession, aF as ToolbarCommandState, aG as ToolbarSlotValue, aH as ToolbarValueMap, aI as ToolbarValueSlot, aJ as applyTableChromePick, aK as bindHistoryGroup, aL as blankDocumentBytes, aM as canExecuteImageCommand, aN as captureImageMutationPreconditions, aO as chromeControlCount, aP as chromeMenuSlots, aQ as chromeProbeForSlot, aR as chromeSlotId, aS as chromeSlotIsToggle, aT as commandExecOptions, aU as commandForSlot, aV as commandForSlotValue, aW as commandForTableChromeSlotValue, aX as computeImageResizeResult, aY as computeMovedImagePosition, aZ as computeResizedImageExtentEmu, a_ as createDocxEditor, a$ as createFontSource, b0 as createImageOverlayScrollPort, b1 as cssPixelsToLayoutPoints, b2 as customFonts, b3 as defaultChromeGroups, b4 as defaultTableLabel, b5 as emuToOverlayPoints, b6 as equationAtPosition, b7 as executeImageCommand, b8 as finalizeImageOverlayInteraction, b9 as formattingBarChromeGroups, ba as isChromePrintShortcut, bb as isStaleImageInteractionCommit, bc as isTableChromeSlot, bd as layoutPointsToCssPixels, be as loadFonts, bf as overlayFrameToSheetCssPixels, bg as overlayHostOrigin, bh as pointsToEmu, bi as probeTableChromeCommand, bj as resizePreservesAspect, bk as runChromeExport, bl as runChromePrint, bm as runSave, bn as runTableChromeCommand, bo as runTableCommand, bp as runToolbarCommand, bq as selectedDrawingOverlayTargetOf, br as selectedImageStateOf, bs as surfacePaintScale, bt as tableChromeIconPaths, bu as tableChromeLabelKeyForTarget, bv as tableChromeToolbarState, bw as tableChromeVisible, bx as tableCommandToolbarState, by as toolbarCommandState, bz as toolbarCommandStates } from './index-Bsg7oIKP.js';
|
|
26
|
+
import { a as AutomationCapabilities, b as AutomationHost } from './protocol-Bqk4Izjc.js';
|
|
27
|
+
import { S as SemanticLayout } from './semantic-records-4B3WwFAi.js';
|
|
28
|
+
export { T as TextMeasurer } from './semantic-records-4B3WwFAi.js';
|
|
29
|
+
import { b as ReviewPaneOverflow } from './review-pane-D9jm8DcY.js';
|
|
30
|
+
export { C as CommentMarkerStyle, D as DEFAULT_REVIEW_PANE, a as ResolvedReviewPane, c as ReviewPaneItemFields, d as ReviewPaneOpening, R as ReviewPaneOptions, e as RevisionDisplay, r as resolveReviewPane, f as reviewPaneListsItem } from './review-pane-D9jm8DcY.js';
|
|
31
|
+
export { D as DEFAULT_REVISION_MARKUP, f as REVISION_MARKUP_COLORS, d as ResolvedRevisionMarkup, a as ReviewDisplayMode, g as RevisionChangedLinesMark, h as RevisionDeletionMark, i as RevisionMarkupChromeHandlers, j as RevisionMarkupColor, R as RevisionMarkupDialogSession, k as RevisionMarkupMark, l as RevisionMarkupNamedColor, e as RevisionMarkupOptions, m as RevisionMarkupStyle, n as RevisionMarkupTextStyle, r as resolveRevisionMarkup } from './revision-projection-DZ4kKVev.js';
|
|
32
|
+
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-CIC-PooQ.js';
|
|
33
|
+
export { S as SectionProperties } from './semantic-cell-selection-D9D1KSXq.js';
|
|
34
|
+
export { F as FieldShadingMode, R as ReviewAuthorInfo, b as RevisionAuthorAssignments, c as RevisionAuthorStyle, d as RevisionStyles } from './semantic-paint-BME37OMv.js';
|
|
21
35
|
export { CollaborationModuleContribution } from './collaboration.js';
|
|
22
36
|
import './editor-scope-OHPwVQ5l.js';
|
|
23
|
-
import './tree-package-fragment-DYZIk1rY.js';
|
|
24
37
|
import './collaboration/replication.js';
|
|
25
|
-
import './failure-
|
|
26
|
-
import './custom-node-writes-
|
|
27
|
-
import './headless-document-view-
|
|
38
|
+
import './failure-NS2lsya4.js';
|
|
39
|
+
import './custom-node-writes-cvL5rhcD.js';
|
|
40
|
+
import './headless-document-view-qH331moE.js';
|
|
28
41
|
import 'prosemirror-model';
|
|
29
42
|
import './contracts/document.js';
|
|
30
43
|
import './contracts/interaction.js';
|
|
31
|
-
import './document-protection-
|
|
32
|
-
import './note-properties-
|
|
33
|
-
import './omml-equation-
|
|
34
|
-
import './semantic-record-queries-
|
|
44
|
+
import './document-protection-BAGVGqaP.js';
|
|
45
|
+
import './note-properties-4Y9o6Gyk.js';
|
|
46
|
+
import './omml-equation-CuzBL5DD.js';
|
|
47
|
+
import './semantic-record-queries-CBlZqZNa.js';
|
|
35
48
|
|
|
36
49
|
declare function toEditorFontError(error: unknown): EditorFontError;
|
|
37
50
|
declare function createLayoutShaping(configuration: FontConfiguration, instrumentation?: LayoutShapingInstrumentation): Promise<LayoutShapingOptions>;
|
|
@@ -223,6 +236,284 @@ declare function dragIndent(handle: RulerIndentHandle, positionTwips: number, in
|
|
|
223
236
|
*/
|
|
224
237
|
declare function editorCommandKey(command: EditorCommand): string;
|
|
225
238
|
|
|
239
|
+
/**
|
|
240
|
+
* Collapse order: the first id here is the first group to leave the bar.
|
|
241
|
+
*
|
|
242
|
+
* Zoom goes first (a document you cannot format is worse than one you cannot scale), then
|
|
243
|
+
* the small standalone groups, then the paragraph controls, and text formatting and history
|
|
244
|
+
* last. A group the registry has but this list does not is collapsed before all of these,
|
|
245
|
+
* in reverse bar order — a host-added group has no declared standing, and the alternative
|
|
246
|
+
* is a new group that silently never collapses.
|
|
247
|
+
*
|
|
248
|
+
* @internal
|
|
249
|
+
*/
|
|
250
|
+
declare const TOOLBAR_COLLAPSE_ORDER: readonly string[];
|
|
251
|
+
/**
|
|
252
|
+
* Groups that never move into the overflow menu.
|
|
253
|
+
*
|
|
254
|
+
* `review` holds the comments toggle and the editing-mode pill. The comments rail is
|
|
255
|
+
* reached through that toggle and nothing else, and a narrow window is exactly where a
|
|
256
|
+
* reader needs it, so burying it one menu deep is the wrong trade.
|
|
257
|
+
*
|
|
258
|
+
* @internal
|
|
259
|
+
*/
|
|
260
|
+
declare const TOOLBAR_PINNED_GROUPS: ReadonlySet<string>;
|
|
261
|
+
/**
|
|
262
|
+
* Px of surplus a group must find before it comes back OUT of the overflow menu.
|
|
263
|
+
*
|
|
264
|
+
* Without it a value control that widens with its own value (font family going from
|
|
265
|
+
* "Arial" to "Times New Roman") pushes itself out, which frees the width that pulled it
|
|
266
|
+
* back in, forever. One-directional slack breaks the loop.
|
|
267
|
+
*
|
|
268
|
+
* @internal
|
|
269
|
+
*/
|
|
270
|
+
declare const TOOLBAR_OVERFLOW_HYSTERESIS = 24;
|
|
271
|
+
/**
|
|
272
|
+
* What {@link toolbarOverflowGroups} measures against.
|
|
273
|
+
*
|
|
274
|
+
* @internal
|
|
275
|
+
*/
|
|
276
|
+
interface ToolbarFitInput {
|
|
277
|
+
/** Content width of the bar, in px. `0` or less means "not measured yet". */
|
|
278
|
+
readonly available: number;
|
|
279
|
+
/** Group id -> measured width, separator and gaps included. */
|
|
280
|
+
readonly widths: ReadonlyMap<string, number>;
|
|
281
|
+
/** Collapsible groups, in bar order. */
|
|
282
|
+
readonly groups: readonly string[];
|
|
283
|
+
/** Collapse order; ids missing from it collapse first, in reverse bar order. */
|
|
284
|
+
readonly order: readonly string[];
|
|
285
|
+
/** Width of everything that never collapses: pinned groups, appended children, padding. */
|
|
286
|
+
readonly fixed: number;
|
|
287
|
+
/** Width the "⋯" trigger takes once it is shown. */
|
|
288
|
+
readonly more: number;
|
|
289
|
+
/** The previous answer, for the one-directional slack. */
|
|
290
|
+
readonly previous?: ReadonlySet<string> | undefined;
|
|
291
|
+
readonly hysteresis?: number;
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* The priority of a declared group: its place in {@link TOOLBAR_COLLAPSE_ORDER}, in steps of
|
|
295
|
+
* 10, so zoom is 10 and history is 90. A host group with a `priority` sorts among these, and
|
|
296
|
+
* a LOWER number leaves the bar first. The steps leave room between two built-in groups.
|
|
297
|
+
*
|
|
298
|
+
* @internal
|
|
299
|
+
*/
|
|
300
|
+
declare function toolbarGroupPriority(id: string, order?: readonly string[]): number | undefined;
|
|
301
|
+
/**
|
|
302
|
+
* The collapse order actually used: the declared one, with undeclared groups first.
|
|
303
|
+
*
|
|
304
|
+
* `priorities` gives a group an explicit place among the declared ones (see
|
|
305
|
+
* {@link toolbarGroupPriority}), and overrides a declared group's own priority. Groups with
|
|
306
|
+
* neither collapse first, in reverse bar order. Two groups with the same priority collapse
|
|
307
|
+
* in reverse bar order too: the one further along the bar leaves first.
|
|
308
|
+
*
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
declare function collapseOrder(groups: readonly string[], order?: readonly string[], priorities?: ReadonlyMap<string, number>): readonly string[];
|
|
312
|
+
/**
|
|
313
|
+
* One host group's placement request.
|
|
314
|
+
*
|
|
315
|
+
* @internal
|
|
316
|
+
*/
|
|
317
|
+
interface ToolbarHostGroupPlacement {
|
|
318
|
+
readonly id: string;
|
|
319
|
+
/** The group this one follows. Absent, or unknown, places it after every group. */
|
|
320
|
+
readonly after?: string | undefined;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Bar order with the host's groups placed.
|
|
324
|
+
*
|
|
325
|
+
* A host group without `after` follows every built-in group, in order of appearance. A group
|
|
326
|
+
* with `after` follows the group it names, after any host groups already placed there, so
|
|
327
|
+
* several groups anchored to one place keep their order of appearance. An anchor may be
|
|
328
|
+
* another host group. An anchor that never resolves (an unknown id, or a cycle) places the
|
|
329
|
+
* group at the end.
|
|
330
|
+
*
|
|
331
|
+
* @internal
|
|
332
|
+
*/
|
|
333
|
+
declare function arrangeToolbarGroups(builtIn: readonly string[], hosts: readonly ToolbarHostGroupPlacement[]): readonly string[];
|
|
334
|
+
/**
|
|
335
|
+
* The margin the "⋯" panel keeps from each viewport edge, in px.
|
|
336
|
+
*
|
|
337
|
+
* @internal
|
|
338
|
+
*/
|
|
339
|
+
declare const TOOLBAR_PANEL_EDGE_MARGIN = 8;
|
|
340
|
+
/**
|
|
341
|
+
* Where the "⋯" panel opens, in viewport px.
|
|
342
|
+
*
|
|
343
|
+
* @internal
|
|
344
|
+
*/
|
|
345
|
+
interface ToolbarPanelPlacement {
|
|
346
|
+
/** The panel's left edge. */
|
|
347
|
+
readonly left: number;
|
|
348
|
+
/** The widest the panel may be: the viewport less both margins. */
|
|
349
|
+
readonly maxWidth: number;
|
|
350
|
+
/** Which trigger edge the panel lines up with, or `clamped` when neither fits. */
|
|
351
|
+
readonly anchor: 'start' | 'end' | 'clamped';
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Keep the "⋯" panel inside the viewport.
|
|
355
|
+
*
|
|
356
|
+
* The panel lines up with the trigger's end edge first, which suits a trigger at the end of
|
|
357
|
+
* the bar. When that runs past the left edge (a centered or narrow bar), it lines up with
|
|
358
|
+
* the trigger's start edge instead. When neither fits, it is clamped to the margins.
|
|
359
|
+
*
|
|
360
|
+
* @internal
|
|
361
|
+
*/
|
|
362
|
+
declare function toolbarPanelPlacement(input: {
|
|
363
|
+
readonly triggerLeft: number;
|
|
364
|
+
readonly triggerRight: number;
|
|
365
|
+
readonly panelWidth: number;
|
|
366
|
+
readonly viewportWidth: number;
|
|
367
|
+
readonly margin?: number;
|
|
368
|
+
}): ToolbarPanelPlacement;
|
|
369
|
+
declare function sameIds(a: ReadonlySet<string>, b: ReadonlySet<string>): boolean;
|
|
370
|
+
/**
|
|
371
|
+
* True when two answers describe the same bar, so a re-render can be skipped.
|
|
372
|
+
*
|
|
373
|
+
* @internal
|
|
374
|
+
*/
|
|
375
|
+
declare const sameOverflow: typeof sameIds;
|
|
376
|
+
/**
|
|
377
|
+
* The groups that must leave the bar for the rest of it to fit in one row.
|
|
378
|
+
*
|
|
379
|
+
* An unmeasured bar (`available <= 0`, which is every server render and every jsdom test)
|
|
380
|
+
* overflows nothing: the full toolbar is the honest answer when nothing is known about the
|
|
381
|
+
* space, and it is also what a host that opted out of overflow renders.
|
|
382
|
+
*
|
|
383
|
+
* @internal
|
|
384
|
+
*/
|
|
385
|
+
declare function toolbarOverflowGroups(input: ToolbarFitInput): ReadonlySet<string>;
|
|
386
|
+
/**
|
|
387
|
+
* The left edge, in viewport px, of a popup that opens under a bar control.
|
|
388
|
+
*
|
|
389
|
+
* The popup lines up with the control's start edge, and moves left or right only as far as
|
|
390
|
+
* it must to keep {@link TOOLBAR_PANEL_EDGE_MARGIN} from each viewport edge. A popup wider
|
|
391
|
+
* than the viewport keeps its left margin.
|
|
392
|
+
*
|
|
393
|
+
* @internal
|
|
394
|
+
*/
|
|
395
|
+
declare function toolbarPopupLeft(input: {
|
|
396
|
+
readonly anchorLeft: number;
|
|
397
|
+
readonly popupWidth: number;
|
|
398
|
+
readonly viewportWidth: number;
|
|
399
|
+
readonly margin?: number;
|
|
400
|
+
}): number;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* Leading separator slot cost for one collapsible group (px).
|
|
404
|
+
*
|
|
405
|
+
* @internal
|
|
406
|
+
*/
|
|
407
|
+
declare function separatorLeadingCost(separatorWidth: number, marginInlineStart: number, marginInlineEnd: number, gap: number): number;
|
|
408
|
+
/**
|
|
409
|
+
* Total width charged for one collapsible group on the bar.
|
|
410
|
+
*
|
|
411
|
+
* @internal
|
|
412
|
+
*/
|
|
413
|
+
declare function collapsibleGroupCost(groupWidth: number, separatorLeading: number): number;
|
|
414
|
+
/**
|
|
415
|
+
* Flex gap charged after a fixed group or the More trigger.
|
|
416
|
+
*
|
|
417
|
+
* @internal
|
|
418
|
+
*/
|
|
419
|
+
declare function trailingGapCost(width: number, gap: number): number;
|
|
420
|
+
/**
|
|
421
|
+
* Read inline margins from computed style (px).
|
|
422
|
+
*
|
|
423
|
+
* @internal
|
|
424
|
+
*/
|
|
425
|
+
declare function readInlineMargins(style: CSSStyleDeclaration): {
|
|
426
|
+
readonly start: number;
|
|
427
|
+
readonly end: number;
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* Parse column gap from toolbar computed style.
|
|
431
|
+
*
|
|
432
|
+
* @internal
|
|
433
|
+
*/
|
|
434
|
+
declare function readColumnGap(style: CSSStyleDeclaration): number;
|
|
435
|
+
/**
|
|
436
|
+
* What {@link barRoomWidth} measures against, all in px.
|
|
437
|
+
*
|
|
438
|
+
* @internal
|
|
439
|
+
*/
|
|
440
|
+
interface BarRoomInput {
|
|
441
|
+
/** The bar's current content width: its client width less its inline padding. */
|
|
442
|
+
readonly own: number;
|
|
443
|
+
/** The parent's content-box width. `0` or less means it is unknown. */
|
|
444
|
+
readonly parentContent: number;
|
|
445
|
+
/** Width the bar's siblings take on the same line, gaps included. */
|
|
446
|
+
readonly siblings: number;
|
|
447
|
+
/** The bar's inline margins, auto margins excluded. */
|
|
448
|
+
readonly margins: number;
|
|
449
|
+
/** The bar's inline padding, border, and scrollbar. */
|
|
450
|
+
readonly chrome: number;
|
|
451
|
+
/** The bar's resolved `max-width` as a border-box width, or null for none. */
|
|
452
|
+
readonly maxWidth: number | null;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* The content width the bar CAN take, which is what decides what fits.
|
|
456
|
+
*
|
|
457
|
+
* A bar that fills its container can take exactly the box it has. A bar as wide as its
|
|
458
|
+
* content (`width: max-content`, a floating pill) shrinks when a group leaves, so its own box
|
|
459
|
+
* never shows the room outside it, and a collapsed group would never come back. The room is
|
|
460
|
+
* the parent's content width, less the siblings on the same line and the bar's margins,
|
|
461
|
+
* capped by the bar's `max-width`. It is never less than the box the bar already has.
|
|
462
|
+
*
|
|
463
|
+
* @internal
|
|
464
|
+
*/
|
|
465
|
+
declare function barRoomWidth(input: BarRoomInput): number;
|
|
466
|
+
/**
|
|
467
|
+
* True when one of the bar's controls runs past its content box, false when they all fit,
|
|
468
|
+
* and null when the bar has no layout to read (a zero-width box, as in a DOM without
|
|
469
|
+
* layout). Measured from the controls, not `scrollWidth`, so an open popup (the More panel,
|
|
470
|
+
* the table grid) that reaches past the bar's edge is not mistaken for an overflow.
|
|
471
|
+
*
|
|
472
|
+
* @internal
|
|
473
|
+
*/
|
|
474
|
+
declare function controlsOverflow(bar: HTMLElement, style: CSSStyleDeclaration): boolean | null;
|
|
475
|
+
/**
|
|
476
|
+
* The bar's available content width.
|
|
477
|
+
*
|
|
478
|
+
* The bar's own box, except for a CONTENT-SIZED bar (specified width `auto`, `max-content`,
|
|
479
|
+
* `fit-content`, or `min-content`, and not growing as a flex item) in a layout this file
|
|
480
|
+
* understands: a block-level bar in a `block` or `flow-root` parent, or an item of a
|
|
481
|
+
* single-line flex row. That bar gets the room it can take, see {@link barRoomWidth}. A grid
|
|
482
|
+
* cell, a table cell, an inline bar, a floated bar, an explicit width, an out-of-flow bar, a
|
|
483
|
+
* `max-width` that does not resolve, a growing sibling with content, loose text in the row,
|
|
484
|
+
* and a browser without Typed OM all keep the bar's own box: the safe side, which collapses
|
|
485
|
+
* early rather than overflowing the next column.
|
|
486
|
+
*
|
|
487
|
+
* The parent-based room only ever brings groups BACK. A bar whose controls overflow its box
|
|
488
|
+
* measures its own box, so the fit collapses groups until they fit. When that overflow
|
|
489
|
+
* follows groups that came back from the room, the room was wrong: the bar's width becomes
|
|
490
|
+
* a cap until the parent's width changes, so the bar does not flicker.
|
|
491
|
+
*
|
|
492
|
+
* @internal
|
|
493
|
+
*/
|
|
494
|
+
declare function readAvailableWidth(bar: HTMLElement, style: CSSStyleDeclaration): number;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Which LETTER a chord names, for the accelerators held with Alt.
|
|
498
|
+
*
|
|
499
|
+
* The CHARACTER first. A user reaching for Ctrl+Alt+F presses the key that types `f`,
|
|
500
|
+
* wherever their layout puts it, and Windows resolves accelerators the same way — so reading
|
|
501
|
+
* the physical position first sent Dvorak's footnote chord to the key that types `u`.
|
|
502
|
+
*
|
|
503
|
+
* `event.code` is the fallback, for the case that makes `key` unreadable: a modifier that
|
|
504
|
+
* COMPOSES. macOS turns Option+F into `ƒ`, Option+C into `ç` and Option+D into `∂`, none of
|
|
505
|
+
* them a letter — so falling through to the keycap is the only way those chords work there,
|
|
506
|
+
* and it costs nothing, because a `key` that IS a letter has already answered.
|
|
507
|
+
*
|
|
508
|
+
* Never both for one event: consulting `code` as well would claim a second chord wherever
|
|
509
|
+
* the two disagree, which is every remapped layout.
|
|
510
|
+
*
|
|
511
|
+
* Shared with the adapters, whose Find shortcut reads letters the same way.
|
|
512
|
+
*
|
|
513
|
+
* @internal
|
|
514
|
+
*/
|
|
515
|
+
declare function chordLetter(event: KeyboardEvent): string;
|
|
516
|
+
|
|
226
517
|
/** Planner-backed can/plan pair — production gate for table commands. Task 9 maps chrome slots. */
|
|
227
518
|
declare function tableCommandState(command: EditorCommand, surface: PaginatedSurface): {
|
|
228
519
|
readonly can: CanResult;
|
|
@@ -302,6 +593,15 @@ interface SurfaceExtent {
|
|
|
302
593
|
}
|
|
303
594
|
declare function surfaceExtent(layout: SemanticLayout, materialize: ReadonlySet<number> | undefined): SurfaceExtent;
|
|
304
595
|
|
|
596
|
+
/**
|
|
597
|
+
* The review pane's marker strip on one page edge, in CSS px: the markers and the
|
|
598
|
+
* add-comment button. The adapters' review gutters and the zoom fit share this value.
|
|
599
|
+
*
|
|
600
|
+
* Shared adapter glue, not for hosts.
|
|
601
|
+
*
|
|
602
|
+
* @internal
|
|
603
|
+
*/
|
|
604
|
+
declare const REVIEW_MARKERS_GUTTER_PX = 44;
|
|
305
605
|
/** The narrowest scale the editor contract accepts. One definition, every user. */
|
|
306
606
|
declare const ZOOM_MIN = 0.1;
|
|
307
607
|
/** The widest scale the editor contract accepts. */
|
|
@@ -341,6 +641,91 @@ declare function resolveZoomMode(mode: ZoomMode | 'auto'): ZoomMode | null;
|
|
|
341
641
|
* memoization exists to keep asleep. The lane holds its object and compares by value here.
|
|
342
642
|
*/
|
|
343
643
|
declare function sameZoomMode(a: ZoomMode, b: ZoomMode): boolean;
|
|
644
|
+
/**
|
|
645
|
+
* The scale the page is ENTITLED to when the review rail decides whether its full card
|
|
646
|
+
* column fits beside the page, or `null` when the page has no entitlement to measure.
|
|
647
|
+
*
|
|
648
|
+
* The rail must never measure the LIVE zoom under a fit: that zoom already includes the
|
|
649
|
+
* room the rail reserved last frame, so a threshold computed from it chases itself. The
|
|
650
|
+
* entitlement depends only on the mode (and on the held scale for a fixed mode), so the
|
|
651
|
+
* rail settles in one pass.
|
|
652
|
+
*
|
|
653
|
+
* - A fixed mode is entitled to the scale in force.
|
|
654
|
+
* - A fit with the review pane's `overflow: 'shrinkPage'` is entitled to its lower bound: the column stands
|
|
655
|
+
* whenever ANY scale the fit may take leaves room for it, and the fit then paints at
|
|
656
|
+
* the largest of those inside the padded box.
|
|
657
|
+
* - A capped fit is entitled to its cap.
|
|
658
|
+
* - An uncapped fit returns `null`: it fills whatever box it is given, so the full column
|
|
659
|
+
* always stands.
|
|
660
|
+
*
|
|
661
|
+
* Shared adapter glue for the review gutter, not for hosts.
|
|
662
|
+
*
|
|
663
|
+
* @internal
|
|
664
|
+
*/
|
|
665
|
+
declare function reviewPaneEntitledZoom(mode: ZoomMode | undefined, zoom: number, overflow?: ReviewPaneOverflow): number | null;
|
|
666
|
+
|
|
667
|
+
/** How {@link listenForPopupEscape} decides and acts. @internal */
|
|
668
|
+
interface PopupEscapeOptions {
|
|
669
|
+
/** The popup's root. Its `ownerDocument` receives the listener. */
|
|
670
|
+
readonly popup: HTMLElement;
|
|
671
|
+
/** Whether a node belongs to the popup (its trigger, list, or a separate panel). */
|
|
672
|
+
readonly contains: (node: Node) => boolean;
|
|
673
|
+
/** Elements of this editor beyond its `.docx-editor` container, such as the viewport. */
|
|
674
|
+
readonly editorElements?: () => readonly (Element | null | undefined)[];
|
|
675
|
+
/**
|
|
676
|
+
* The chrome root that holds the popup, such as the toolbar or the menu bar. It scopes
|
|
677
|
+
* itself with its own `.docx-editor` class, and a key from it counts as this editor's.
|
|
678
|
+
*/
|
|
679
|
+
readonly chromeRoot?: () => Element | null | undefined;
|
|
680
|
+
/** Return true to leave this Escape to someone else (an input that owns the key). */
|
|
681
|
+
readonly skip?: (event: KeyboardEvent) => boolean;
|
|
682
|
+
/** Close the popup. `fromInside` is true when the key came from inside the popup. */
|
|
683
|
+
readonly close: (fromInside: boolean) => void;
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* The nearest `.docx-editor` around `from` that holds the painted pages, or null.
|
|
687
|
+
*
|
|
688
|
+
* Chrome parts carry their own styling-only `docx-editor` class, so the first match from
|
|
689
|
+
* a toolbar is the toolbar. The instance container is the first one with pages inside.
|
|
690
|
+
*
|
|
691
|
+
* @internal
|
|
692
|
+
*/
|
|
693
|
+
declare function editorInstanceScope(from: Element | null): Element | null;
|
|
694
|
+
/**
|
|
695
|
+
* Close an open toolbar popup on Escape, ahead of the surface. Returns the disposer.
|
|
696
|
+
*
|
|
697
|
+
* Shared adapter glue, not for hosts.
|
|
698
|
+
*
|
|
699
|
+
* @internal
|
|
700
|
+
*/
|
|
701
|
+
declare function listenForPopupEscape(options: PopupEscapeOptions): () => void;
|
|
702
|
+
/**
|
|
703
|
+
* Whether a nested popup inside `panel` is open. Its own Escape listener closes it, and
|
|
704
|
+
* the panel stays open for the next Escape.
|
|
705
|
+
*
|
|
706
|
+
* @internal
|
|
707
|
+
*/
|
|
708
|
+
declare function hasOpenNestedPopup(panel: Element | null): boolean;
|
|
709
|
+
/** How {@link listenForPopupFocusLeave} decides. @internal */
|
|
710
|
+
interface PopupFocusLeaveOptions {
|
|
711
|
+
/** The popup's root. Its `ownerDocument` receives the listener. */
|
|
712
|
+
readonly popup: HTMLElement;
|
|
713
|
+
/** Whether a node belongs to the popup (its trigger, list, or a separate panel). */
|
|
714
|
+
readonly contains: (node: Node) => boolean;
|
|
715
|
+
/** Close the popup. */
|
|
716
|
+
readonly close: () => void;
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* Close an open popup when focus moves outside it, for example to the find field after
|
|
720
|
+
* Ctrl+F or to a host input. Two moves keep the popup open: focus that lands in the painted
|
|
721
|
+
* pages, because a toolbar click leaves the caret there while the popup is open, and focus
|
|
722
|
+
* that enters one of this editor's modal dialogs, because the popup may have opened it and
|
|
723
|
+
* the dialog returns focus to its opener when it closes. A host's own modal dialog closes
|
|
724
|
+
* the popup like any other control. Returns the disposer.
|
|
725
|
+
*
|
|
726
|
+
* @internal
|
|
727
|
+
*/
|
|
728
|
+
declare function listenForPopupFocusLeave(options: PopupFocusLeaveOptions): () => void;
|
|
344
729
|
|
|
345
730
|
/** Validate a position input, refusing offsets or bases outside what OOXML allows. */
|
|
346
731
|
declare function validateDrawingPositionInput(position: DrawingPositionInput): boolean;
|
|
@@ -826,7 +1211,7 @@ interface NavigateToChangeOptions extends ScrollToAnchorOptions {
|
|
|
826
1211
|
/** Move the caret and focus to the changed range start. Default: false. */
|
|
827
1212
|
readonly focus?: boolean;
|
|
828
1213
|
/** Target alignment. Default: center. centerIfNeeded preserves scroll for an already visible target. */
|
|
829
|
-
readonly block?:
|
|
1214
|
+
readonly block?: ScrollPlacement;
|
|
830
1215
|
}
|
|
831
1216
|
/** External file transport stays in your application. Reload resets selection and undo history. @public */
|
|
832
1217
|
interface DocumentRefresh {
|
|
@@ -1005,5 +1390,5 @@ interface DocumentSearch {
|
|
|
1005
1390
|
*/
|
|
1006
1391
|
declare function createDocumentSearch(editor: Editor): DocumentSearch;
|
|
1007
1392
|
|
|
1008
|
-
export { AUTO_ZOOM_MODE, AnchorHighlightAnimation, AnchorHighlightOptions, BROWSER_AUTOMATION_CAPABILITIES, CONTENT_CONTROL_PICTURE_ACCEPT, ClearAnchorHighlightOptions, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocumentRefreshError, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, HIGHLIGHT_REFRESH_MS, HighlightOptions, HighlightRange, HighlightResult, LOADING_SNAPSHOT, NO_MIXED_FIELDS, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, ParagraphTabStop, SEARCH_DEBOUNCE_MS, SEARCH_HIGHLIGHT_PRIORITY, SEARCH_HIGHLIGHT_SET, SEARCH_MATCH_LIMIT, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, ScrollToAnchorOptions, TAB_ALIGNMENT_LABELS, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, alignmentAfterDirectionChange, applyThemeShade, applyThemeTint, calendarDateForKey, calendarDateFromText, calendarDateText, calendarMonth, calendarMonthNames, calendarMonthTitle, calendarWeekdays, changedFields, clipboardDropLandsText, clipboardPasteLandsContent, contentControlPopupKeyDown, contentControlPopupOpener, createBrowserAutomationHost, createContentControlListNavigation, createDocumentRefresh, createDocumentSearch, createLayoutShaping, dragIndent, editorCommandKey, firstDayOfWeek, formatInches, generateRulerTicks, handlePosition, inchesToTwips, isoDateOf, lowerColorValueForBorder, lowerColorValueForFill, mixedFieldsOf, mountPaginatedSurface, observeContentControlPopup, parseIsoDate, partOfNodeId, positionContentControlPopup, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, rulerPageBox, sameTabStops, sameZoomMode, seedFields, shiftMonth, signedFirstLineOf, snapTwips, specialOf, surfaceExtent, tableCommandState, toEditorFontError, trapTabWithin, twipsToInches, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier, watchHighlights, withTabStop };
|
|
1009
|
-
export type { CalendarDay, CalendarMonth, CalendarMonthOptions, ClearRefreshHighlightsOptions, ColorLowerResult, ContentControlListNavigation, DocumentRefresh, DocumentRefreshState, DocumentSearch, DocumentSearchFindOptions, DocumentSearchHighlight, DocumentSearchNavigateOptions, DocumentSearchOptions, DocumentSearchState, HighlightSource, HighlightWatch, NavigateToChangeOptions, ParagraphDialogFields, ParagraphDialogMixed, ParagraphFlagKey, ParagraphFlagState, ParagraphFormatRead, ParagraphFormatUpdate, RefreshChange, RefreshChangeInput, RefreshFailureCode, RefreshHighlightAnimation, RefreshHighlightOptions, RefreshLocation, RefreshResult, RefreshSubmission, RefreshUpdate, RulerDragOptions, RulerIndent, RulerIndentHandle, RulerPageMetrics, RulerTick, RulerUnit, SpecialIndent, SurfaceExtent, TabAlignment, TabLeaderName, WatchHighlightsOptions };
|
|
1393
|
+
export { AUTO_ZOOM_MODE, AnchorHighlightAnimation, AnchorHighlightOptions, BROWSER_AUTOMATION_CAPABILITIES, CONTENT_CONTROL_PICTURE_ACCEPT, ClearAnchorHighlightOptions, DRAWING_REL_FROM_H, DRAWING_REL_FROM_V, DocumentRefreshError, DocxEditorInstance, DrawingPositionInput, FIT_WIDTH_ZOOM_MODE, HIGHLIGHT_REFRESH_MS, HighlightOptions, HighlightRange, HighlightResult, LOADING_SNAPSHOT, NO_MIXED_FIELDS, OpenPaginatedResult, PX_PER_CM, PX_PER_INCH, PaginatedSurface, PaginatedSurfaceOptions, ParagraphTabStop, REVIEW_MARKERS_GUTTER_PX, ReviewPaneOverflow, SEARCH_DEBOUNCE_MS, SEARCH_HIGHLIGHT_PRIORITY, SEARCH_HIGHLIGHT_SET, SEARCH_MATCH_LIMIT, SNAP_TWIPS_CM, SNAP_TWIPS_INCH, ScrollPlacement, ScrollToAnchorOptions, TAB_ALIGNMENT_LABELS, TOOLBAR_COLLAPSE_ORDER, TOOLBAR_OVERFLOW_HYSTERESIS, TOOLBAR_PANEL_EDGE_MARGIN, TOOLBAR_PINNED_GROUPS, TWIPS_PER_CM, TWIPS_PER_INCH, TreeDocxSessionView, ZOOM_MAX, ZOOM_MIN, alignmentAfterDirectionChange, applyThemeShade, applyThemeTint, arrangeToolbarGroups, barRoomWidth, calendarDateForKey, calendarDateFromText, calendarDateText, calendarMonth, calendarMonthNames, calendarMonthTitle, calendarWeekdays, changedFields, chordLetter, clipboardDropLandsText, clipboardPasteLandsContent, collapseOrder, collapsibleGroupCost, contentControlPopupKeyDown, contentControlPopupOpener, controlsOverflow, createBrowserAutomationHost, createContentControlListNavigation, createDocumentRefresh, createDocumentSearch, createLayoutShaping, dragIndent, editorCommandKey, editorInstanceScope, firstDayOfWeek, formatInches, generateRulerTicks, handlePosition, hasOpenNestedPopup, inchesToTwips, isoDateOf, listenForPopupEscape, listenForPopupFocusLeave, lowerColorValueForBorder, lowerColorValueForFill, mixedFieldsOf, mountPaginatedSurface, observeContentControlPopup, parseIsoDate, partOfNodeId, positionContentControlPopup, positionInputFromPropertiesCommand, propertiesCommandHasPositionFields, readAvailableWidth, readColumnGap, readInlineMargins, resolveColorValueToCss, resolveThemeColorHex, resolveZoomMode, reviewPaneEntitledZoom, rulerPageBox, sameOverflow, sameTabStops, sameZoomMode, seedFields, separatorLeadingCost, shiftMonth, signedFirstLineOf, snapTwips, specialOf, surfaceExtent, tableCommandState, toEditorFontError, toolbarGroupPriority, toolbarOverflowGroups, toolbarPanelPlacement, toolbarPopupLeft, trailingGapCost, trapTabWithin, twipsToInches, validateDrawingPositionInput, validateSetImagePositionCommand, validateThemeModifier, watchHighlights, withTabStop };
|
|
1394
|
+
export type { BarRoomInput, CalendarDay, CalendarMonth, CalendarMonthOptions, ClearRefreshHighlightsOptions, ColorLowerResult, ContentControlListNavigation, DocumentRefresh, DocumentRefreshState, DocumentSearch, DocumentSearchFindOptions, DocumentSearchHighlight, DocumentSearchNavigateOptions, DocumentSearchOptions, DocumentSearchState, HighlightSource, HighlightWatch, NavigateToChangeOptions, ParagraphDialogFields, ParagraphDialogMixed, ParagraphFlagKey, ParagraphFlagState, ParagraphFormatRead, ParagraphFormatUpdate, PopupEscapeOptions, PopupFocusLeaveOptions, RefreshChange, RefreshChangeInput, RefreshFailureCode, RefreshHighlightAnimation, RefreshHighlightOptions, RefreshLocation, RefreshResult, RefreshSubmission, RefreshUpdate, RulerDragOptions, RulerIndent, RulerIndentHandle, RulerPageMetrics, RulerTick, RulerUnit, SpecialIndent, SurfaceExtent, TabAlignment, TabLeaderName, ToolbarFitInput, ToolbarHostGroupPlacement, ToolbarPanelPlacement, WatchHighlightsOptions };
|
package/dist/editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{wb as AUTO_ZOOM_MODE,Cb as BROWSER_AUTOMATION_CAPABILITIES,Ta as CHROME_GROUPS,Xa as CHROME_MENUS,_a as CHROME_UNAVAILABLE_KEY,db as CONTENT_CONTROL_PICTURE_ACCEPT,nc as ChromeExportError,pc as ChromePrintError,c as DEFAULT_REVIEW_PANE,$ as DEFAULT_TABLE_CHROME_DRAFT,ec as DocumentRefreshError,N as EMU_PER_POINT,xb as FIT_WIDTH_ZOOM_MODE,gc as HIGHLIGHT_REFRESH_MS,W as IMAGE_OVERLAY_NUDGE_PT,X as IMAGE_OVERLAY_NUDGE_SHIFT_PT,f as LOADING_SNAPSHOT,Yb as NO_MIXED_FIELDS,o as PX_PER_CM,n as PX_PER_INCH,tb as REVIEW_MARKERS_GUTTER_PX,ic as SEARCH_DEBOUNCE_MS,lc as SEARCH_HIGHLIGHT_PRIORITY,kc as SEARCH_HIGHLIGHT_SET,jc as SEARCH_MATCH_LIMIT,u as SNAP_TWIPS_CM,t as SNAP_TWIPS_INCH,fa as TABLE_BORDER_STYLE_OPTIONS,ea as TABLE_BORDER_TARGET_OPTIONS,ga as TABLE_BORDER_WIDTH_OPTIONS,aa as TABLE_CHROME_SLOT_IDS,Ub as TAB_ALIGNMENT_LABELS,za as TOOLBAR_COLLAPSE_ORDER,Ba as TOOLBAR_OVERFLOW_HYSTERESIS,Fa as TOOLBAR_PANEL_EDGE_MARGIN,Aa as TOOLBAR_PINNED_GROUPS,s as TWIPS_PER_CM,r as TWIPS_PER_INCH,vb as ZOOM_MAX,ub as ZOOM_MIN,ac as alignmentAfterDirectionChange,ha as applyTableChromePick,B as applyThemeShade,A as applyThemeTint,Ea as arrangeToolbarGroups,Pa as barRoomWidth,dc as bindHistoryGroup,g as blankDocumentBytes,lb as calendarDateForKey,nb as calendarDateFromText,mb as calendarDateText,jb as calendarMonth,ob as calendarMonthNames,hb as calendarMonthTitle,ib as calendarWeekdays,U as canExecuteImageCommand,T as captureImageMutationPreconditions,$b as changedFields,Sa as chordLetter,Za as chromeControlCount,Ya as chromeMenuSlots,la as chromeProbeForSlot,Ua as chromeSlotId,ra as chromeSlotIsToggle,i as clipboardDropLandsText,h as clipboardPasteLandsContent,Da as collapseOrder,La as collapsibleGroupCost,y as commandExecOptions,ma as commandForSlot,oa as commandForSlotValue,na as commandForTableChromeSlotValue,Ob as computeImageResizeResult,R as computeMovedImagePosition,Q as computeResizedImageExtentEmu,bb as contentControlPopupKeyDown,cb as contentControlPopupOpener,Qa as controlsOverflow,Db as createBrowserAutomationHost,pb as createContentControlListNavigation,fc as createDocumentRefresh,mc as createDocumentSearch,Bb as createDocxEditor,l as createFontSource,Pb as createImageOverlayScrollPort,b as createLayoutShaping,L as cropPercentFromCropPermille,J as cropPercentFromPermille,G as cropPercentFromSourceCrop,K as cropPermilleFromCropPercent,I as cropPermilleFromPercent,Kb as cssPixelsToLayoutPoints,m as customFonts,Va as defaultChromeGroups,ba as defaultTableLabel,x as dragIndent,ya as editorCommandKey,Eb as editorInstanceScope,P as emuToOverlayPoints,qb as equationAtPosition,V as executeImageCommand,Qb as finalizeImageOverlayInteraction,gb as firstDayOfWeek,Sb as formatInches,Wa as formattingBarChromeGroups,p as generateRulerTicks,v as handlePosition,Gb as hasOpenNestedPopup,Tb as inchesToTwips,qc as isChromePrintShortcut,Z as isStaleImageInteractionCommit,ca as isTableChromeSlot,eb as isoDateOf,Jb as layoutPointsToCssPixels,Fb as listenForPopupEscape,Hb as listenForPopupFocusLeave,k as loadFonts,D as lowerColorValueForBorder,E as lowerColorValueForFill,Zb as mixedFieldsOf,sb as mountPaginatedSurface,ab as observeContentControlPopup,Lb as overlayFrameToSheetCssPixels,Mb as overlayHostOrigin,fb as parseIsoDate,j as partOfNodeId,O as pointsToEmu,$a as positionContentControlPopup,ia as probeTableChromeCommand,Ra as readAvailableWidth,Oa as readColumnGap,Na as readInlineMargins,Nb as resizePreservesAspect,F as resolveColorValueToCss,d as resolveReviewPane,C as resolveThemeColorHex,yb as resolveZoomMode,Ab as reviewPaneEntitledZoom,e as reviewPaneListsItem,q as rulerPageBox,oc as runChromeExport,rc as runChromePrint,va as runSave,ta as runTableChromeCommand,xa as runTableCommand,ua as runToolbarCommand,Ha as sameOverflow,_b as sameTabStops,zb as sameZoomMode,Xb as seedFields,Y as selectedDrawingOverlayTargetOf,S as selectedImageStateOf,Ka as separatorLeadingCost,kb as shiftMonth,Wb as signedFirstLineOf,w as snapTwips,H as sourceCropFromCropPercent,Vb as specialOf,rb as surfaceExtent,Ib as surfacePaintScale,ka as tableChromeIconPaths,ja as tableChromeLabelKeyForTarget,pa as tableChromeToolbarState,da as tableChromeVisible,_ as tableCommandState,wa as tableCommandToolbarState,a as toEditorFontError,qa as toolbarCommandState,sa as toolbarCommandStates,Ca as toolbarGroupPriority,Ia as toolbarOverflowGroups,Ga as toolbarPanelPlacement,Ja as toolbarPopupLeft,Ma as trailingGapCost,cc as trapTabWithin,Rb as twipsToInches,M as validateImageCropPercent,z as validateThemeModifier,hc as watchHighlights,bc as withTabStop}from'./chunk-LWDSDCMO.js';export{a as resolveEditorModules}from'./chunk-O5INAWZQ.js';import'./chunk-KKIJG3C6.js';export{d as DEFAULT_FONT,i as FONT_RESOLVER_BRAND,h as FONT_RESOLVER_MARK_KEY,c as MAX_RESOLVER_FAMILIES,e as WORD_DEFAULT_FONT,f as composeFontConfiguration,n as composeFontOrigins,j as defineFontResolver,k as isFontResolver}from'./chunk-VDNNLG6X.js';export{r as disposeLayoutShaping}from'./chunk-2RC2EPND.js';import'./chunk-RIYSCEFQ.js';import'./chunk-VHAVHCQY.js';import'./chunk-6EYYL7FL.js';export{Ua as DEFAULT_REVISION_MARKUP,Ta as REVISION_MARKUP_COLORS,Va as resolveRevisionMarkup}from'./chunk-FRXAOVTB.js';import'./chunk-Z6WBFXJU.js';import'./chunk-5CSUYANV.js';import'./chunk-E7BQA6UP.js';import'./chunk-TSLBZ26X.js';import'./chunk-J6BVWIDB.js';import'./chunk-6JIJOZDW.js';import'./chunk-ETTO6GK3.js';export{r as DEFAULT_IMAGE_RESOURCE_LIMITS,Lk as DRAWING_REL_FROM_H,Mk as DRAWING_REL_FROM_V,Ed as IMAGE_WRAP_TARGETS,Qi as TEXT_FORM_FORMATS,Ok as positionInputFromPropertiesCommand,Nk as propertiesCommandHasPositionFields,s as resolveImageResourceLimits,he as resolveSvgIntrinsicSize,de as sniffImageMime,Kk as validateDrawingPositionInput,ie as validateRasterHeader,Pk as validateSetImagePositionCommand}from'./chunk-4R3TEXMN.js';import'./chunk-S6J4O5XP.js';
|