@docx-editor.dev/core 2.10.0 → 2.12.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.cts +14 -5
- package/dist/automation.d.ts +14 -5
- package/dist/automation.js +1 -1
- package/dist/binding.cjs +1 -1
- package/dist/binding.d.cts +12 -11
- package/dist/binding.d.ts +12 -11
- package/dist/binding.js +1 -1
- package/dist/chunk-3JON7JMD.cjs +1 -0
- package/dist/chunk-5V6FNKBE.cjs +2 -0
- package/dist/chunk-6JIJOZDW.js +1 -0
- package/dist/chunk-BTQKU64Q.cjs +1 -0
- package/dist/chunk-BXRVGHTY.cjs +18 -0
- package/dist/chunk-BXTTPJSH.js +5 -0
- package/dist/chunk-D5EHDHYV.js +1 -0
- package/dist/{chunk-PSZH2VXP.js → chunk-GOEBQ26R.js} +1 -1
- package/dist/chunk-ILTZTY3K.cjs +10 -0
- package/dist/chunk-IUM7FZPA.js +2 -0
- package/dist/chunk-JWZG4QJ5.cjs +2 -0
- package/dist/chunk-JXZYDBKU.cjs +19 -0
- package/dist/chunk-KBOOIC2Q.js +19 -0
- package/dist/chunk-L6XZTLPS.js +10 -0
- package/dist/chunk-L7OR5TJK.cjs +5 -0
- package/dist/chunk-MHQNR2OU.js +2 -0
- package/dist/chunk-MLGPISGH.js +1 -0
- package/dist/chunk-NJXQABQU.js +18 -0
- package/dist/{chunk-YMYCPY5Y.cjs → chunk-OHJQ7GPZ.cjs} +1 -1
- package/dist/chunk-TKEGK4GQ.cjs +2 -0
- package/dist/chunk-VGFMPWND.js +2 -0
- package/dist/chunk-W77HJGYX.js +1 -0
- package/dist/chunk-XCFM3G5L.cjs +1 -0
- package/dist/chunk-ZKWRCLT2.cjs +1 -0
- package/dist/collaboration/replication.cjs +1 -0
- package/dist/collaboration/replication.d.cts +216 -0
- package/dist/collaboration/replication.d.ts +216 -0
- package/dist/collaboration/replication.js +1 -0
- package/dist/collaboration.cjs +1 -0
- package/dist/collaboration.d.cts +176 -0
- package/dist/collaboration.d.ts +176 -0
- package/dist/collaboration.js +1 -0
- package/dist/contracts/editor.cjs +1 -1
- package/dist/contracts/editor.d.cts +8 -9
- package/dist/contracts/editor.d.ts +8 -9
- package/dist/contracts/editor.js +1 -1
- package/dist/contracts/interaction.d.cts +8 -9
- package/dist/contracts/interaction.d.ts +8 -9
- package/dist/contracts/modules.cjs +1 -1
- package/dist/contracts/modules.d.cts +21 -8
- package/dist/contracts/modules.d.ts +21 -8
- package/dist/contracts/modules.js +1 -1
- package/dist/custom-node-writes-CcNeHH5C.d.ts +310 -0
- package/dist/custom-node-writes-D4rMJIES.d.cts +310 -0
- package/dist/document-properties-D6Ahr8D6.d.cts +28 -0
- package/dist/document-properties-D6Ahr8D6.d.ts +28 -0
- package/dist/{editor-CwzY2Hcg.d.cts → editor-B76SEMZw.d.cts} +145 -49
- package/dist/{editor-C0my6Uta.d.ts → editor-BcdsPdbY.d.ts} +145 -49
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +1 -7299
- package/dist/editor.d.cts +60 -26
- package/dist/editor.d.ts +60 -26
- package/dist/editor.js +1 -1
- package/dist/failure-BnGjoXf0.d.cts +64 -0
- package/dist/failure-BnGjoXf0.d.ts +64 -0
- package/dist/{index-kID8Ymkp.d.ts → index-BYTvklN5.d.ts} +262 -81
- package/dist/{index-nLFwo_17.d.cts → index-CDGhPib1.d.cts} +262 -81
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +19 -18
- package/dist/index.d.ts +19 -18
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +82 -53
- package/dist/layout.d.ts +82 -53
- package/dist/layout.js +1 -1
- package/dist/{note-properties-jvnw_DGG.d.ts → note-properties-Bx7rXruA.d.ts} +1 -1
- package/dist/{note-properties-CQlxjic_.d.cts → note-properties-zQ8w04en.d.cts} +1 -1
- package/dist/{omml-equation-Dd3mBep-.d.ts → omml-equation-69O1Pd8G.d.ts} +1 -1
- package/dist/{omml-equation-BD-LsmWE.d.cts → omml-equation-BmV51rim.d.cts} +1 -1
- package/dist/output.cjs +1 -1
- package/dist/output.d.cts +6 -8
- package/dist/output.d.ts +6 -8
- package/dist/output.js +1 -1
- package/dist/{protocol-C7ahrdUx.d.ts → protocol-DC7ueVuo.d.ts} +2 -2
- package/dist/{protocol-UuZOcOp7.d.cts → protocol-FTXtrAIT.d.cts} +2 -2
- package/dist/{review-items-Dw-8a6Ie.d.ts → review-items-B78OsJU2.d.ts} +1 -2
- package/dist/{review-items-CwixiHNe.d.cts → review-items-C-2WQdEb.d.cts} +1 -2
- package/dist/{review-reads-BqkiJTeR.d.cts → review-reads-CbBQlb-n.d.cts} +2 -2
- package/dist/{review-reads-C0u-IKEA.d.ts → review-reads-UexYBp-m.d.ts} +2 -2
- package/dist/{revision-projection-Cc4wz30g.d.cts → revision-projection-6u8lae9J.d.cts} +1 -1
- package/dist/{revision-projection-CILpvv4M.d.ts → revision-projection-B2v9U3qx.d.ts} +1 -1
- package/dist/{semantic-cell-selection-Utrf0lz7.d.ts → semantic-cell-selection-DsYz2Vg3.d.ts} +4 -4
- package/dist/{semantic-cell-selection-DT9x9WLf.d.cts → semantic-cell-selection-nEE7E3Z8.d.cts} +4 -4
- package/dist/{semantic-interaction-B6hFRQLy.d.ts → semantic-interaction-C00BpIyC.d.ts} +1 -1
- package/dist/{semantic-interaction-Z0xKQcB4.d.cts → semantic-interaction-DiOX0FIH.d.cts} +1 -1
- package/dist/{semantic-paint-CQEOC0Od.d.cts → semantic-paint-Cc11nrDL.d.cts} +2 -2
- package/dist/{semantic-paint-quke354p.d.ts → semantic-paint-ofuoBsYo.d.ts} +2 -2
- package/dist/{semantic-records-Do3-i5oB.d.ts → semantic-records-CRG1r6-a.d.cts} +5 -4
- package/dist/{semantic-records-CMakzQ1X.d.cts → semantic-records-CzI0ZEuR.d.ts} +5 -4
- package/dist/{shaped-measurer-BxwTUluj.d.ts → shaped-measurer-CkOGZQn9.d.ts} +1 -1
- package/dist/{shaped-measurer-DzRwWrL5.d.cts → shaped-measurer-CneACGcP.d.cts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +81 -17
- package/dist/store.d.ts +81 -17
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-DSJYmf5b.d.cts → tree-op-types-CA7qgAUF.d.cts} +1288 -18
- package/dist/{tree-op-types-BuOfCrkp.d.ts → tree-op-types-HKfUzt_-.d.ts} +1288 -18
- package/dist/{custom-node-writes-BvpWCnW8.d.ts → tree-package-fragment-Cz-v-0B3.d.cts} +107 -322
- package/dist/{custom-node-writes-Db8H6Z3n.d.cts → tree-package-fragment-oJZX_5iN.d.ts} +107 -322
- package/dist/{tree-session-contract-ByWx8eew.d.cts → tree-session-contract-BPDLrEPX.d.ts} +16 -10
- package/dist/{tree-session-contract-C1dfE9hy.d.ts → tree-session-contract-Cbl87xa8.d.cts} +16 -10
- package/dist/{tree-store-ASBtz7UB.d.ts → tree-store-B7hd6cEa.d.ts} +130 -25
- package/dist/{tree-store-CWOUMGN8.d.cts → tree-store-BenW0Mg_.d.cts} +130 -25
- package/package.json +14 -3
- package/dist/chunk-27APDXY2.js +0 -2
- package/dist/chunk-35MI6K7M.cjs +0 -10
- package/dist/chunk-4XL7SOWQ.cjs +0 -2
- package/dist/chunk-6K6QQVAZ.cjs +0 -18
- package/dist/chunk-7VQ7YLW3.cjs +0 -1
- package/dist/chunk-7ZJL5AEY.cjs +0 -1
- package/dist/chunk-C6LK2BYA.cjs +0 -2
- package/dist/chunk-GQQOL4PV.js +0 -1
- package/dist/chunk-HBEBUCRM.cjs +0 -5
- package/dist/chunk-LG5K46OM.js +0 -2
- package/dist/chunk-LWADHMVV.js +0 -5
- package/dist/chunk-N725IUO7.js +0 -18
- package/dist/chunk-N7DBENH4.js +0 -10
- package/dist/chunk-NVGFWMCO.js +0 -1
- package/dist/chunk-SYTWKJPJ.cjs +0 -18
- package/dist/chunk-YI6JXF7U.js +0 -18
- package/dist/hf-references-Dvk6De4Q.d.cts +0 -70
- package/dist/hf-references-z5Y4N1ab.d.ts +0 -70
- package/dist/note-nodes-BNCANoGN.d.ts +0 -108
- package/dist/note-nodes-DL-Au22P.d.cts +0 -108
- package/dist/ooxml-package-CdEy9ufK.d.cts +0 -1222
- package/dist/ooxml-package-CdEy9ufK.d.ts +0 -1222
- package/dist/tree-op-revision-attribution-CN06Xshv.d.cts +0 -24
- package/dist/tree-op-revision-attribution-CN06Xshv.d.ts +0 -24
package/dist/editor.d.cts
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { O as OoxmlPart, N as TreeDocColorValue, v as DrawingPositionInput } from './tree-op-types-CA7qgAUF.cjs';
|
|
2
|
+
export { Q as DEFAULT_IMAGE_RESOURCE_LIMITS, U as IMAGE_WRAP_TARGETS, C as ImageDecodePort, W as ImageResourceLimits, u as ImageWrapTarget, t as RenderableImageMime, y as SupportedImageMime, B as VectorImageMime, X as resolveImageResourceLimits, Y as resolveSvgIntrinsicSize, Z as sniffImageMime, _ as validateRasterHeader } from './tree-op-types-CA7qgAUF.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-C-2WQdEb.cjs';
|
|
6
6
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.cjs';
|
|
7
|
-
import { T as TreeDocxSessionView,
|
|
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 FinalizedImageOverlayInteraction, v as FontConfigurationBase, w as FontConfigurationFragment, x as FontLoadFailure, y as FontLoadFailureReason, z as FontMeasurementState, B as FontResolutionRequest, G as FontResolver, H as FontUrlSource, I as HyperlinkActivation, J as HyperlinkChromeHandlers, K as HyperlinkOps, L as IMAGE_OVERLAY_NUDGE_PT, M as IMAGE_OVERLAY_NUDGE_SHIFT_PT, N as ImageInteractionSession, Q as ImageOverlayScrollPort, R as ImageResizeHandle, S as ImageResizeResult, U as LoadFontsRequest, V as LoadFontsResult, W as MAX_RESOLVER_FAMILIES, X as OverlayFrameRect, Y as PaginatedSurfaceState, Z as ParagraphPropertyEdit, _ as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
export { S as
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
import './
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
7
|
+
import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-Cbl87xa8.cjs';
|
|
8
|
+
export { a as TreeApplyResult } from './tree-session-contract-Cbl87xa8.cjs';
|
|
9
|
+
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-B76SEMZw.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-B76SEMZw.cjs';
|
|
11
|
+
import { L as LayoutShapingOptions } from './shaped-measurer-CneACGcP.cjs';
|
|
12
|
+
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-CDGhPib1.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 FinalizedImageOverlayInteraction, v as FontConfigurationBase, w as FontConfigurationFragment, x as FontLoadFailure, y as FontLoadFailureReason, z as FontMeasurementState, B as FontResolutionRequest, G as FontResolver, H as FontUrlSource, I as HyperlinkActivation, J as HyperlinkChromeHandlers, K as HyperlinkOps, L as IMAGE_OVERLAY_NUDGE_PT, M as IMAGE_OVERLAY_NUDGE_SHIFT_PT, N as ImageInteractionSession, Q as ImageOverlayScrollPort, R as ImageResizeHandle, S as ImageResizeResult, U as LoadFontsRequest, V as LoadFontsResult, W as MAX_RESOLVER_FAMILIES, X as OverlayFrameRect, Y as PaginatedSurfaceState, Z as ParagraphPropertyEdit, _ as RemoteCaretLabelAnchor, $ as RemoteCaretLabelHost, a0 as ReviewWriteIntent, a1 as RunTableChromeCommandResult, a2 as SectionAnchor, a3 as SectionBreakInsertType, a4 as SelectedDrawingOverlayTarget, a5 as SurfaceEquation, a6 as SurfaceFormatting, a7 as SurfaceHyperlink, a8 as SurfaceInsertImageInput, a9 as SurfaceNavigation, aa as SurfaceOverlayCoordinates, ab as SurfaceParagraphFormat, ac as TABLE_BORDER_STYLE_OPTIONS, ad as TABLE_BORDER_TARGET_OPTIONS, ae as TABLE_BORDER_WIDTH_OPTIONS, af as TABLE_CHROME_SLOT_IDS, ag as TableBorderStyleOption, ah as TableBorderTargetOption, ai as TableBorderTargetValue, aj as TableBorderWidthOption, ak as TableChromeDraft, al as TableChromePick, am as TableChromeSlotId, an as TableInteractionLabelKey, ao as ToolbarCommandState, ap as WORD_DEFAULT_FONT, aq as applyTableChromePick, ar as blankDocumentBytes, as as canExecuteImageCommand, at as captureImageMutationPreconditions, au as chromeControlCount, av as chromeMenuSlots, aw as chromeProbeForSlot, ax as chromeSlotId, ay as chromeSlotIsToggle, az as commandForSlot, aA as commandForSlotValue, aB as commandForTableChromeSlotValue, aC as composeFontConfiguration, aD as computeImageResizeResult, aE as computeMovedImagePosition, aF as computeResizedImageExtentEmu, aG as createDocxEditor, aH as createFontSource, aI as createImageOverlayScrollPort, aJ as cssPixelsToLayoutPoints, aK as defaultChromeGroups, aL as defaultTableLabel, aM as emuToOverlayPoints, aN as equationAtPosition, aO as executeImageCommand, aP as finalizeImageOverlayInteraction, aQ as formattingBarChromeGroups, aR as isStaleImageInteractionCommit, aS as isTableChromeSlot, aT as layoutPointsToCssPixels, aU as loadFonts, aV as overlayFrameToSheetCssPixels, aW as overlayHostOrigin, aX as pointsToEmu, aY as probeTableChromeCommand, aZ as resizePreservesAspect, a_ as runSave, a$ as runTableChromeCommand, b0 as runTableCommand, b1 as runToolbarCommand, b2 as selectedDrawingOverlayTargetOf, b3 as selectedImageStateOf, b4 as surfacePaintScale, b5 as tableChromeIconPaths, b6 as tableChromeLabelKeyForTarget, b7 as tableChromeToolbarState, b8 as tableChromeVisible, b9 as tableCommandToolbarState, ba as toolbarCommandState, bb as toolbarCommandStates } from './index-CDGhPib1.cjs';
|
|
14
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-FTXtrAIT.cjs';
|
|
15
|
+
import { S as SemanticLayout } from './semantic-records-CRG1r6-a.cjs';
|
|
16
|
+
export { T as TextMeasurer } from './semantic-records-CRG1r6-a.cjs';
|
|
17
|
+
export { S as SectionProperties } from './semantic-cell-selection-nEE7E3Z8.cjs';
|
|
18
|
+
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-DiOX0FIH.cjs';
|
|
19
|
+
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-Cc11nrDL.cjs';
|
|
20
|
+
export { CollaborationModuleContribution } from './collaboration.cjs';
|
|
21
|
+
import './revision-projection-6u8lae9J.cjs';
|
|
22
|
+
import './tree-package-fragment-Cz-v-0B3.cjs';
|
|
23
|
+
import './tree-store-BenW0Mg_.cjs';
|
|
24
|
+
import './collaboration/replication.cjs';
|
|
25
|
+
import './failure-BnGjoXf0.cjs';
|
|
26
|
+
import './custom-node-writes-D4rMJIES.cjs';
|
|
27
|
+
import './document-properties-D6Ahr8D6.cjs';
|
|
27
28
|
import 'prosemirror-model';
|
|
28
29
|
import './contracts/document.cjs';
|
|
29
|
-
import './note-properties-
|
|
30
|
-
import './omml-equation-
|
|
30
|
+
import './note-properties-zQ8w04en.cjs';
|
|
31
|
+
import './omml-equation-BmV51rim.cjs';
|
|
31
32
|
|
|
32
33
|
interface LayoutShapingInstrumentation {
|
|
33
34
|
readonly onFontByteCopy?: () => void;
|
|
@@ -60,6 +61,39 @@ declare function disposeLayoutShaping(shaping: LayoutShapingOptions): void;
|
|
|
60
61
|
*/
|
|
61
62
|
declare const LOADING_SNAPSHOT: EditorSnapshot;
|
|
62
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
|
+
|
|
63
97
|
/**
|
|
64
98
|
* Mount a paginated surface over DOCX bytes.
|
|
65
99
|
*
|
|
@@ -356,4 +390,4 @@ declare function validateSetImagePositionCommand(command: {
|
|
|
356
390
|
readonly relativeToV?: string;
|
|
357
391
|
}, mode: 'frame' | 'simple'): boolean;
|
|
358
392
|
|
|
359
|
-
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,33 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { O as OoxmlPart, N as TreeDocColorValue, v as DrawingPositionInput } from './tree-op-types-HKfUzt_-.js';
|
|
2
|
+
export { Q as DEFAULT_IMAGE_RESOURCE_LIMITS, U as IMAGE_WRAP_TARGETS, C as ImageDecodePort, W as ImageResourceLimits, u as ImageWrapTarget, t as RenderableImageMime, y as SupportedImageMime, B as VectorImageMime, X as resolveImageResourceLimits, Y as resolveSvgIntrinsicSize, Z as sniffImageMime, _ as validateRasterHeader } from './tree-op-types-HKfUzt_-.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-B78OsJU2.js';
|
|
6
6
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.js';
|
|
7
|
-
import { T as TreeDocxSessionView,
|
|
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 FinalizedImageOverlayInteraction, v as FontConfigurationBase, w as FontConfigurationFragment, x as FontLoadFailure, y as FontLoadFailureReason, z as FontMeasurementState, B as FontResolutionRequest, G as FontResolver, H as FontUrlSource, I as HyperlinkActivation, J as HyperlinkChromeHandlers, K as HyperlinkOps, L as IMAGE_OVERLAY_NUDGE_PT, M as IMAGE_OVERLAY_NUDGE_SHIFT_PT, N as ImageInteractionSession, Q as ImageOverlayScrollPort, R as ImageResizeHandle, S as ImageResizeResult, U as LoadFontsRequest, V as LoadFontsResult, W as MAX_RESOLVER_FAMILIES, X as OverlayFrameRect, Y as PaginatedSurfaceState, Z as ParagraphPropertyEdit, _ as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
export { S as
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
import './
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
26
|
-
import './
|
|
7
|
+
import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-BPDLrEPX.js';
|
|
8
|
+
export { a as TreeApplyResult } from './tree-session-contract-BPDLrEPX.js';
|
|
9
|
+
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-BcdsPdbY.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-BcdsPdbY.js';
|
|
11
|
+
import { L as LayoutShapingOptions } from './shaped-measurer-CkOGZQn9.js';
|
|
12
|
+
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-BYTvklN5.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 FinalizedImageOverlayInteraction, v as FontConfigurationBase, w as FontConfigurationFragment, x as FontLoadFailure, y as FontLoadFailureReason, z as FontMeasurementState, B as FontResolutionRequest, G as FontResolver, H as FontUrlSource, I as HyperlinkActivation, J as HyperlinkChromeHandlers, K as HyperlinkOps, L as IMAGE_OVERLAY_NUDGE_PT, M as IMAGE_OVERLAY_NUDGE_SHIFT_PT, N as ImageInteractionSession, Q as ImageOverlayScrollPort, R as ImageResizeHandle, S as ImageResizeResult, U as LoadFontsRequest, V as LoadFontsResult, W as MAX_RESOLVER_FAMILIES, X as OverlayFrameRect, Y as PaginatedSurfaceState, Z as ParagraphPropertyEdit, _ as RemoteCaretLabelAnchor, $ as RemoteCaretLabelHost, a0 as ReviewWriteIntent, a1 as RunTableChromeCommandResult, a2 as SectionAnchor, a3 as SectionBreakInsertType, a4 as SelectedDrawingOverlayTarget, a5 as SurfaceEquation, a6 as SurfaceFormatting, a7 as SurfaceHyperlink, a8 as SurfaceInsertImageInput, a9 as SurfaceNavigation, aa as SurfaceOverlayCoordinates, ab as SurfaceParagraphFormat, ac as TABLE_BORDER_STYLE_OPTIONS, ad as TABLE_BORDER_TARGET_OPTIONS, ae as TABLE_BORDER_WIDTH_OPTIONS, af as TABLE_CHROME_SLOT_IDS, ag as TableBorderStyleOption, ah as TableBorderTargetOption, ai as TableBorderTargetValue, aj as TableBorderWidthOption, ak as TableChromeDraft, al as TableChromePick, am as TableChromeSlotId, an as TableInteractionLabelKey, ao as ToolbarCommandState, ap as WORD_DEFAULT_FONT, aq as applyTableChromePick, ar as blankDocumentBytes, as as canExecuteImageCommand, at as captureImageMutationPreconditions, au as chromeControlCount, av as chromeMenuSlots, aw as chromeProbeForSlot, ax as chromeSlotId, ay as chromeSlotIsToggle, az as commandForSlot, aA as commandForSlotValue, aB as commandForTableChromeSlotValue, aC as composeFontConfiguration, aD as computeImageResizeResult, aE as computeMovedImagePosition, aF as computeResizedImageExtentEmu, aG as createDocxEditor, aH as createFontSource, aI as createImageOverlayScrollPort, aJ as cssPixelsToLayoutPoints, aK as defaultChromeGroups, aL as defaultTableLabel, aM as emuToOverlayPoints, aN as equationAtPosition, aO as executeImageCommand, aP as finalizeImageOverlayInteraction, aQ as formattingBarChromeGroups, aR as isStaleImageInteractionCommit, aS as isTableChromeSlot, aT as layoutPointsToCssPixels, aU as loadFonts, aV as overlayFrameToSheetCssPixels, aW as overlayHostOrigin, aX as pointsToEmu, aY as probeTableChromeCommand, aZ as resizePreservesAspect, a_ as runSave, a$ as runTableChromeCommand, b0 as runTableCommand, b1 as runToolbarCommand, b2 as selectedDrawingOverlayTargetOf, b3 as selectedImageStateOf, b4 as surfacePaintScale, b5 as tableChromeIconPaths, b6 as tableChromeLabelKeyForTarget, b7 as tableChromeToolbarState, b8 as tableChromeVisible, b9 as tableCommandToolbarState, ba as toolbarCommandState, bb as toolbarCommandStates } from './index-BYTvklN5.js';
|
|
14
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-DC7ueVuo.js';
|
|
15
|
+
import { S as SemanticLayout } from './semantic-records-CzI0ZEuR.js';
|
|
16
|
+
export { T as TextMeasurer } from './semantic-records-CzI0ZEuR.js';
|
|
17
|
+
export { S as SectionProperties } from './semantic-cell-selection-DsYz2Vg3.js';
|
|
18
|
+
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-C00BpIyC.js';
|
|
19
|
+
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-ofuoBsYo.js';
|
|
20
|
+
export { CollaborationModuleContribution } from './collaboration.js';
|
|
21
|
+
import './revision-projection-B2v9U3qx.js';
|
|
22
|
+
import './tree-package-fragment-oJZX_5iN.js';
|
|
23
|
+
import './tree-store-B7hd6cEa.js';
|
|
24
|
+
import './collaboration/replication.js';
|
|
25
|
+
import './failure-BnGjoXf0.js';
|
|
26
|
+
import './custom-node-writes-CcNeHH5C.js';
|
|
27
|
+
import './document-properties-D6Ahr8D6.js';
|
|
27
28
|
import 'prosemirror-model';
|
|
28
29
|
import './contracts/document.js';
|
|
29
|
-
import './note-properties-
|
|
30
|
-
import './omml-equation-
|
|
30
|
+
import './note-properties-Bx7rXruA.js';
|
|
31
|
+
import './omml-equation-69O1Pd8G.js';
|
|
31
32
|
|
|
32
33
|
interface LayoutShapingInstrumentation {
|
|
33
34
|
readonly onFontByteCopy?: () => void;
|
|
@@ -60,6 +61,39 @@ declare function disposeLayoutShaping(shaping: LayoutShapingOptions): void;
|
|
|
60
61
|
*/
|
|
61
62
|
declare const LOADING_SNAPSHOT: EditorSnapshot;
|
|
62
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
|
+
|
|
63
97
|
/**
|
|
64
98
|
* Mount a paginated surface over DOCX bytes.
|
|
65
99
|
*
|
|
@@ -356,4 +390,4 @@ declare function validateSetImagePositionCommand(command: {
|
|
|
356
390
|
readonly relativeToV?: string;
|
|
357
391
|
}, mode: 'frame' | 'simple'): boolean;
|
|
358
392
|
|
|
359
|
-
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{La as AUTO_ZOOM_MODE,Qa as BROWSER_AUTOMATION_CAPABILITIES,ya as CHROME_GROUPS,Ca as CHROME_MENUS,Fa as CHROME_UNAVAILABLE_KEY,_ as DEFAULT_TABLE_CHROME_DRAFT,S as EMU_PER_POINT,Ma as FIT_WIDTH_ZOOM_MODE,Q as IMAGE_OVERLAY_NUDGE_PT,R as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as LOADING_SNAPSHOT,e as MAX_RESOLVER_FAMILIES,o as PX_PER_CM,n as PX_PER_INCH,u as SNAP_TWIPS_CM,t as SNAP_TWIPS_INCH,ea as TABLE_BORDER_STYLE_OPTIONS,da as TABLE_BORDER_TARGET_OPTIONS,fa as TABLE_BORDER_WIDTH_OPTIONS,$ as TABLE_CHROME_SLOT_IDS,s as TWIPS_PER_CM,r as TWIPS_PER_INCH,f as WORD_DEFAULT_FONT,Ka as ZOOM_MAX,Ja as ZOOM_MIN,ga as applyTableChromePick,A as applyThemeShade,z as applyThemeTint,h as blankDocumentBytes,O as canExecuteImageCommand,N as captureImageMutationPreconditions,Ea as chromeControlCount,Da as chromeMenuSlots,ka as chromeProbeForSlot,za as chromeSlotId,qa as chromeSlotIsToggle,j as clipboardDropLandsText,i as clipboardPasteLandsContent,la as commandForSlot,na as commandForSlotValue,ma as commandForTableChromeSlotValue,g as composeFontConfiguration,Ya as computeImageResizeResult,X as computeMovedImagePosition,W as computeResizedImageExtentEmu,Ra as createBrowserAutomationHost,Pa as createDocxEditor,m as createFontSource,Za as createImageOverlayScrollPort,b as createLayoutShaping,K as cropPercentFromCropPermille,I as cropPercentFromPermille,F as cropPercentFromSourceCrop,J as cropPermilleFromCropPercent,H as cropPermilleFromPercent,Ua as cssPixelsToLayoutPoints,Aa as defaultChromeGroups,aa as defaultTableLabel,c as disposeLayoutShaping,x as dragIndent,xa as editorCommandKey,V as emuToOverlayPoints,Ha as equationAtPosition,P as executeImageCommand,_a as finalizeImageOverlayInteraction,Ba as formattingBarChromeGroups,p as generateRulerTicks,v as handlePosition,Y as isStaleImageInteractionCommit,ba as isTableChromeSlot,Ta as layoutPointsToCssPixels,l as loadFonts,C as lowerColorValueForBorder,D as lowerColorValueForFill,Ia as mountPaginatedSurface,Va as overlayFrameToSheetCssPixels,Wa as overlayHostOrigin,k as partOfNodeId,U as pointsToEmu,ha as probeTableChromeCommand,Xa as resizePreservesAspect,E as resolveColorValueToCss,B as resolveThemeColorHex,Na as resolveZoomMode,q as rulerPageBox,ua as runSave,sa as runTableChromeCommand,wa as runTableCommand,ta as runToolbarCommand,Oa as sameZoomMode,T as selectedDrawingOverlayTargetOf,M as selectedImageStateOf,w as snapTwips,G as sourceCropFromCropPercent,Ga as surfaceExtent,Sa as surfacePaintScale,ja as tableChromeIconPaths,ia as tableChromeLabelKeyForTarget,oa as tableChromeToolbarState,ca as tableChromeVisible,Z as tableCommandState,va as tableCommandToolbarState,a as toEditorFontError,pa as toolbarCommandState,ra as toolbarCommandStates,L as validateImageCropPercent,y as validateThemeModifier}from'./chunk-KBOOIC2Q.js';export{a as resolveEditorModules}from'./chunk-D5EHDHYV.js';import'./chunk-MHQNR2OU.js';import'./chunk-NJXQABQU.js';import'./chunk-WU7PUTVA.js';import'./chunk-MLGPISGH.js';import'./chunk-BXTTPJSH.js';import'./chunk-VGFMPWND.js';import'./chunk-IUM7FZPA.js';import'./chunk-6JIJOZDW.js';import'./chunk-W77HJGYX.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-L6XZTLPS.js';import'./chunk-GOEBQ26R.js';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lifecycle state of one collaboration replica.
|
|
3
|
+
*
|
|
4
|
+
* One axis, because the only question a host has to answer is whether to tell the reader to
|
|
5
|
+
* wait or to reload:
|
|
6
|
+
*
|
|
7
|
+
* - `initializing` — joining. Edits are refused. Recovers on its own.
|
|
8
|
+
* - `ready` — replicating. The only state that accepts edits.
|
|
9
|
+
* - `disconnected` — the transport dropped. The replica is intact and recovers on its own,
|
|
10
|
+
* so wait rather than reload. Edits are refused until reconnect by default; a session
|
|
11
|
+
* created with offline editing enabled keeps accepting them, and the buffered updates
|
|
12
|
+
* merge on reconnect.
|
|
13
|
+
* - `error` — this replica no longer agrees with the room. It does not recover: only a
|
|
14
|
+
* reload rejoins. {@link CollaborationStatusSnapshot.reason} says why.
|
|
15
|
+
* - `destroyed` — torn down. Terminal.
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
type CollaborationStatus = 'initializing' | 'ready' | 'disconnected' | 'error' | 'destroyed';
|
|
20
|
+
/**
|
|
21
|
+
* Why a replica refused work, left `ready`, or failed a schema check.
|
|
22
|
+
*
|
|
23
|
+
* Free-form extras (a transport phrase, a blob key, a store refusal) travel in
|
|
24
|
+
* {@link CollaborationFailure.detail}, not here. `invalid-shared-metadata` follows that rule:
|
|
25
|
+
* it names one malformed field of the room's shared metadata, and which field is the detail.
|
|
26
|
+
* Distinct from `invalid-document-id`, which rejects a document id this host passed in.
|
|
27
|
+
* `concurrent-seed` reports two merged seed transactions in one room; the room cannot be
|
|
28
|
+
* repaired client-side — create a new room from saved bytes.
|
|
29
|
+
*
|
|
30
|
+
* Two of these name a transport condition a host has to tell apart, because the answers are
|
|
31
|
+
* opposite. `transport-disconnected` recovers on its own, so wait. `authentication-failed`
|
|
32
|
+
* never does: the credential the provider re-sent was rejected, so refresh it and rejoin.
|
|
33
|
+
* `transport` remains the catch-all for a provider that reported neither.
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
type CollaborationFailureCode = 'already-initialized' | 'authentication-failed' | 'baseline-digest-mismatch' | 'baseline-too-large' | 'blob-digest-mismatch' | 'blob-read' | 'blob-store-full' | 'blob-too-large' | 'collaboration-session-destroyed' | 'collaboration-session-not-attached' | 'collaboration-session-not-ready' | 'collaboration-text-limit' | 'concurrent-seed' | 'document-id-mismatch' | 'duplicate-paragraph-id' | 'experimental-collaboration-body-text-only' | 'experimental-collaboration-existing-paragraphs-only' | 'experimental-collaboration-text-only' | 'experimental-collaboration-untracked-text-only' | 'immutable-baseline-changed' | 'immutable-metadata-changed' | 'initialization-aborted' | 'initialization-timeout' | 'invalid-baseline' | 'invalid-blob-descriptor' | 'invalid-bound' | 'invalid-document-id' | 'invalid-identity' | 'invalid-identity-color' | 'invalid-logical-id' | 'invalid-relationships' | 'invalid-session-id' | 'invalid-shared-metadata' | 'invalid-string' | 'local-mirror-failed' | 'materialize-dropped-content' | 'missing-blob' | 'missing-local-blob' | 'missing-root' | 'no-main-document-part' | 'not-initialized' | 'paragraph-set-mismatch' | 'port-already-attached' | 'protocol-version-mismatch' | 'prototype-key' | 'remote-apply-failed' | 'schema-version-mismatch' | 'shared-schema-invalid' | 'text-too-long' | 'too-many-attributes' | 'too-many-children' | 'too-many-nodes' | 'too-many-parts' | 'too-many-relationships' | 'transport' | 'transport-disconnected' | 'tree-too-deep' | 'unknown-logical-id' | 'unknown-paragraph-id' | 'unsafe-part-name' | 'unsupported-root-key';
|
|
38
|
+
/** True when `value` is a {@link CollaborationFailureCode} member. @public */
|
|
39
|
+
declare function isCollaborationFailureCode(value: string): value is CollaborationFailureCode;
|
|
40
|
+
/** One collaboration failure: a typed code plus optional free-form detail. @public */
|
|
41
|
+
interface CollaborationFailure {
|
|
42
|
+
readonly code: CollaborationFailureCode;
|
|
43
|
+
readonly detail?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Cached status read. Same reference until status, reason, or last failure change.
|
|
47
|
+
*
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
interface CollaborationStatusSnapshot {
|
|
51
|
+
readonly status: CollaborationStatus;
|
|
52
|
+
readonly reason: CollaborationFailure | undefined;
|
|
53
|
+
readonly lastFailure: CollaborationFailure | undefined;
|
|
54
|
+
}
|
|
55
|
+
/** @internal */
|
|
56
|
+
interface CollaborationStatusTracker {
|
|
57
|
+
status(): CollaborationStatus;
|
|
58
|
+
snapshot(): CollaborationStatusSnapshot;
|
|
59
|
+
set(status: CollaborationStatus, code?: CollaborationFailureCode, detail?: string): boolean;
|
|
60
|
+
}
|
|
61
|
+
/** @internal */
|
|
62
|
+
declare function createCollaborationStatusTracker(initial?: CollaborationStatus): CollaborationStatusTracker;
|
|
63
|
+
|
|
64
|
+
export { type CollaborationStatus as C, type CollaborationStatusSnapshot as a, type CollaborationFailureCode as b, type CollaborationFailure as c, createCollaborationStatusTracker as d, isCollaborationFailureCode as i };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lifecycle state of one collaboration replica.
|
|
3
|
+
*
|
|
4
|
+
* One axis, because the only question a host has to answer is whether to tell the reader to
|
|
5
|
+
* wait or to reload:
|
|
6
|
+
*
|
|
7
|
+
* - `initializing` — joining. Edits are refused. Recovers on its own.
|
|
8
|
+
* - `ready` — replicating. The only state that accepts edits.
|
|
9
|
+
* - `disconnected` — the transport dropped. The replica is intact and recovers on its own,
|
|
10
|
+
* so wait rather than reload. Edits are refused until reconnect by default; a session
|
|
11
|
+
* created with offline editing enabled keeps accepting them, and the buffered updates
|
|
12
|
+
* merge on reconnect.
|
|
13
|
+
* - `error` — this replica no longer agrees with the room. It does not recover: only a
|
|
14
|
+
* reload rejoins. {@link CollaborationStatusSnapshot.reason} says why.
|
|
15
|
+
* - `destroyed` — torn down. Terminal.
|
|
16
|
+
*
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
19
|
+
type CollaborationStatus = 'initializing' | 'ready' | 'disconnected' | 'error' | 'destroyed';
|
|
20
|
+
/**
|
|
21
|
+
* Why a replica refused work, left `ready`, or failed a schema check.
|
|
22
|
+
*
|
|
23
|
+
* Free-form extras (a transport phrase, a blob key, a store refusal) travel in
|
|
24
|
+
* {@link CollaborationFailure.detail}, not here. `invalid-shared-metadata` follows that rule:
|
|
25
|
+
* it names one malformed field of the room's shared metadata, and which field is the detail.
|
|
26
|
+
* Distinct from `invalid-document-id`, which rejects a document id this host passed in.
|
|
27
|
+
* `concurrent-seed` reports two merged seed transactions in one room; the room cannot be
|
|
28
|
+
* repaired client-side — create a new room from saved bytes.
|
|
29
|
+
*
|
|
30
|
+
* Two of these name a transport condition a host has to tell apart, because the answers are
|
|
31
|
+
* opposite. `transport-disconnected` recovers on its own, so wait. `authentication-failed`
|
|
32
|
+
* never does: the credential the provider re-sent was rejected, so refresh it and rejoin.
|
|
33
|
+
* `transport` remains the catch-all for a provider that reported neither.
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
type CollaborationFailureCode = 'already-initialized' | 'authentication-failed' | 'baseline-digest-mismatch' | 'baseline-too-large' | 'blob-digest-mismatch' | 'blob-read' | 'blob-store-full' | 'blob-too-large' | 'collaboration-session-destroyed' | 'collaboration-session-not-attached' | 'collaboration-session-not-ready' | 'collaboration-text-limit' | 'concurrent-seed' | 'document-id-mismatch' | 'duplicate-paragraph-id' | 'experimental-collaboration-body-text-only' | 'experimental-collaboration-existing-paragraphs-only' | 'experimental-collaboration-text-only' | 'experimental-collaboration-untracked-text-only' | 'immutable-baseline-changed' | 'immutable-metadata-changed' | 'initialization-aborted' | 'initialization-timeout' | 'invalid-baseline' | 'invalid-blob-descriptor' | 'invalid-bound' | 'invalid-document-id' | 'invalid-identity' | 'invalid-identity-color' | 'invalid-logical-id' | 'invalid-relationships' | 'invalid-session-id' | 'invalid-shared-metadata' | 'invalid-string' | 'local-mirror-failed' | 'materialize-dropped-content' | 'missing-blob' | 'missing-local-blob' | 'missing-root' | 'no-main-document-part' | 'not-initialized' | 'paragraph-set-mismatch' | 'port-already-attached' | 'protocol-version-mismatch' | 'prototype-key' | 'remote-apply-failed' | 'schema-version-mismatch' | 'shared-schema-invalid' | 'text-too-long' | 'too-many-attributes' | 'too-many-children' | 'too-many-nodes' | 'too-many-parts' | 'too-many-relationships' | 'transport' | 'transport-disconnected' | 'tree-too-deep' | 'unknown-logical-id' | 'unknown-paragraph-id' | 'unsafe-part-name' | 'unsupported-root-key';
|
|
38
|
+
/** True when `value` is a {@link CollaborationFailureCode} member. @public */
|
|
39
|
+
declare function isCollaborationFailureCode(value: string): value is CollaborationFailureCode;
|
|
40
|
+
/** One collaboration failure: a typed code plus optional free-form detail. @public */
|
|
41
|
+
interface CollaborationFailure {
|
|
42
|
+
readonly code: CollaborationFailureCode;
|
|
43
|
+
readonly detail?: string;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Cached status read. Same reference until status, reason, or last failure change.
|
|
47
|
+
*
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
interface CollaborationStatusSnapshot {
|
|
51
|
+
readonly status: CollaborationStatus;
|
|
52
|
+
readonly reason: CollaborationFailure | undefined;
|
|
53
|
+
readonly lastFailure: CollaborationFailure | undefined;
|
|
54
|
+
}
|
|
55
|
+
/** @internal */
|
|
56
|
+
interface CollaborationStatusTracker {
|
|
57
|
+
status(): CollaborationStatus;
|
|
58
|
+
snapshot(): CollaborationStatusSnapshot;
|
|
59
|
+
set(status: CollaborationStatus, code?: CollaborationFailureCode, detail?: string): boolean;
|
|
60
|
+
}
|
|
61
|
+
/** @internal */
|
|
62
|
+
declare function createCollaborationStatusTracker(initial?: CollaborationStatus): CollaborationStatusTracker;
|
|
63
|
+
|
|
64
|
+
export { type CollaborationStatus as C, type CollaborationStatusSnapshot as a, type CollaborationFailureCode as b, type CollaborationFailure as c, createCollaborationStatusTracker as d, isCollaborationFailureCode as i };
|