@docx-editor.dev/core 2.9.2 → 2.11.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 +78 -13
- package/dist/binding.d.ts +78 -13
- package/dist/binding.js +1 -1
- package/dist/chunk-34BNQUD4.js +10 -0
- package/dist/chunk-5AVHO75P.cjs +19 -0
- package/dist/chunk-6HMSC7UV.js +2 -0
- package/dist/chunk-6JIJOZDW.js +1 -0
- package/dist/chunk-76Y3Y45J.cjs +2 -0
- package/dist/chunk-BP7ANXGA.js +1 -0
- package/dist/chunk-BTQKU64Q.cjs +1 -0
- package/dist/chunk-CRZR6K5Z.js +19 -0
- package/dist/chunk-D5EHDHYV.js +1 -0
- package/dist/chunk-EJATEGJZ.cjs +1 -0
- package/dist/{chunk-PSZH2VXP.js → chunk-GOEBQ26R.js} +1 -1
- package/dist/chunk-GRDFEH5Q.cjs +2 -0
- package/dist/chunk-GWV65NQW.cjs +10 -0
- package/dist/chunk-GXLZCXEH.js +2 -0
- package/dist/chunk-JUQOPVSK.cjs +2 -0
- package/dist/chunk-LAETEBHD.js +1 -0
- package/dist/chunk-M6Z3KFXM.cjs +5 -0
- package/dist/{chunk-YMYCPY5Y.cjs → chunk-OHJQ7GPZ.cjs} +1 -1
- package/dist/chunk-UQFOYZJO.cjs +18 -0
- package/dist/chunk-WPQMPHNR.cjs +1 -0
- package/dist/chunk-WXQ245MQ.js +18 -0
- package/dist/chunk-WZHIFNSU.js +5 -0
- package/dist/chunk-X7A5XART.js +2 -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/document.d.cts +6 -1
- package/dist/contracts/document.d.ts +6 -1
- 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 +20 -8
- package/dist/contracts/modules.d.ts +20 -8
- package/dist/contracts/modules.js +1 -1
- package/dist/custom-node-writes-CwkYRw3V.d.cts +310 -0
- package/dist/custom-node-writes-JfTn-Sy6.d.ts +310 -0
- package/dist/document-properties-D6Ahr8D6.d.cts +28 -0
- package/dist/document-properties-D6Ahr8D6.d.ts +28 -0
- package/dist/{editor-Cvd7Geoc.d.ts → editor-BogcVHXk.d.ts} +176 -59
- package/dist/{editor-cAEf1uXW.d.cts → editor-C8edZgy5.d.cts} +176 -59
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +1 -7698
- package/dist/editor.d.cts +26 -25
- package/dist/editor.d.ts +26 -25
- 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-DRqY5JVF.d.ts → index-BNv-ZLQP.d.ts} +327 -86
- package/dist/{index-wb-iOxfh.d.cts → index-Dn0lOp9Z.d.cts} +327 -86
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +20 -19
- package/dist/index.d.ts +20 -19
- package/dist/index.js +1 -1
- package/dist/layout.cjs +1 -1
- package/dist/layout.d.cts +92 -55
- package/dist/layout.d.ts +92 -55
- package/dist/layout.js +1 -1
- package/dist/{note-properties-jvnw_DGG.d.ts → note-properties-BmoSdyKS.d.ts} +1 -1
- package/dist/{note-properties-CQlxjic_.d.cts → note-properties-BvGfHk5e.d.cts} +1 -1
- package/dist/{omml-equation-Dd3mBep-.d.ts → omml-equation-Ciq5rgb7.d.ts} +1 -1
- package/dist/{omml-equation-BD-LsmWE.d.cts → omml-equation-CqQOt_dD.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-UuZOcOp7.d.cts → protocol-BB-WP3zk.d.cts} +2 -2
- package/dist/{protocol-C7ahrdUx.d.ts → protocol-Ckl7hWsv.d.ts} +2 -2
- package/dist/{review-items-bdGxFWNA.d.ts → review-items-BdeLNRi2.d.cts} +1 -2
- package/dist/{review-items-B8tffIXj.d.cts → review-items-CkYyXhXM.d.ts} +1 -2
- package/dist/{review-reads-Bxz03tHG.d.cts → review-reads-BOLSBm5w.d.cts} +2 -2
- package/dist/{review-reads-CHODU0LI.d.ts → review-reads-Crf0Xn42.d.ts} +2 -2
- package/dist/{revision-projection-CILpvv4M.d.ts → revision-projection-Ae2CWa8E.d.ts} +1 -1
- package/dist/{revision-projection-Cc4wz30g.d.cts → revision-projection-C2S8PSQm.d.cts} +1 -1
- package/dist/{semantic-cell-selection-BPzx6DdT.d.cts → semantic-cell-selection-C0OFD4D9.d.cts} +4 -4
- package/dist/{semantic-cell-selection-CsHcr-yk.d.ts → semantic-cell-selection-DdmoxC-y.d.ts} +4 -4
- package/dist/{semantic-interaction-D-RZ9Ust.d.ts → semantic-interaction-COyhZ9WH.d.ts} +21 -2
- package/dist/{semantic-interaction-BfWDD_0V.d.cts → semantic-interaction-Cs2jErnt.d.cts} +21 -2
- package/dist/{semantic-paint-WhVtSDJK.d.ts → semantic-paint-UHaj3sBY.d.cts} +2 -2
- package/dist/{semantic-paint-Bd7EqzXV.d.cts → semantic-paint-vA-oLSdV.d.ts} +2 -2
- package/dist/{semantic-records-DadVT_E1.d.cts → semantic-records-5AOQJmLX.d.cts} +20 -5
- package/dist/{semantic-records-DCt-ZwKU.d.ts → semantic-records-9xhwbJ23.d.ts} +20 -5
- package/dist/{shaped-measurer-CninrHr_.d.cts → shaped-measurer-NeF2mPSu.d.cts} +1 -1
- package/dist/{shaped-measurer-B9f4A7QA.d.ts → shaped-measurer-vzsY88oK.d.ts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +193 -19
- package/dist/store.d.ts +193 -19
- package/dist/store.js +1 -1
- package/dist/tree-op-types-BPyXNxyL.d.cts +3053 -0
- package/dist/tree-op-types-DnzAOnc9.d.ts +3053 -0
- package/dist/{custom-node-writes-D6SGwebL.d.ts → tree-package-fragment-BjZ3RWAS.d.cts} +128 -312
- package/dist/{custom-node-writes-Dy3b20PS.d.cts → tree-package-fragment-CDER0G3B.d.ts} +128 -312
- package/dist/{tree-session-ZuBFOhIh.d.ts → tree-session-contract-BF2FVBOM.d.cts} +52 -106
- package/dist/{tree-session-Df02ajqc.d.cts → tree-session-contract-DhdsFT_z.d.ts} +52 -106
- package/dist/{tree-store-B_sJBMIS.d.cts → tree-store-CNZ3O83s.d.ts} +130 -25
- package/dist/{tree-store-DgETo6Mf.d.ts → tree-store-DfZi7FqY.d.cts} +130 -25
- package/package.json +14 -3
- package/dist/chunk-6JWP2H7K.js +0 -2
- package/dist/chunk-6KNLLEUW.cjs +0 -18
- package/dist/chunk-7ADTI533.cjs +0 -10
- package/dist/chunk-7ETDCPF6.cjs +0 -2
- package/dist/chunk-7I3BSGGS.js +0 -1
- package/dist/chunk-7UU5YFCD.cjs +0 -2
- package/dist/chunk-7VQ7YLW3.cjs +0 -1
- package/dist/chunk-CKDAK3MV.js +0 -10
- package/dist/chunk-DIMEYVNS.js +0 -2
- package/dist/chunk-GQQOL4PV.js +0 -1
- package/dist/chunk-H2656QDI.cjs +0 -1
- package/dist/chunk-KQGENNL5.cjs +0 -15
- package/dist/chunk-LIXPSV4T.js +0 -18
- package/dist/chunk-O4UULRAQ.cjs +0 -5
- package/dist/chunk-SIIFNE6U.js +0 -15
- package/dist/chunk-VXYECPKA.js +0 -5
- package/dist/hf-references-Dvk6De4Q.d.cts +0 -70
- package/dist/hf-references-z5Y4N1ab.d.ts +0 -70
- package/dist/image-resources-BgA9EQxY.d.ts +0 -203
- package/dist/image-resources-BiA-IXgo.d.cts +0 -203
- 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-types-CnRb7AYo.d.ts +0 -1589
- package/dist/tree-op-types-D1vNJ7XC.d.cts +0 -1589
package/dist/editor.d.cts
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { k as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-D1vNJ7XC.cjs';
|
|
1
|
+
import { O as OoxmlPart, G as TreeDocColorValue, v as DrawingPositionInput } from './tree-op-types-BPyXNxyL.cjs';
|
|
2
|
+
export { H as DEFAULT_IMAGE_RESOURCE_LIMITS, J as IMAGE_WRAP_TARGETS, C as ImageDecodePort, K as ImageResourceLimits, u as ImageWrapTarget, t as RenderableImageMime, y as SupportedImageMime, B as VectorImageMime, L as resolveImageResourceLimits, M as resolveSvgIntrinsicSize, N as sniffImageMime, Q as validateRasterHeader } from './tree-op-types-BPyXNxyL.cjs';
|
|
4
3
|
import { ColorValue } from './contracts/types.cjs';
|
|
5
4
|
export { ParagraphFlags, ParagraphTabStop } from './contracts/types.cjs';
|
|
6
|
-
export { R as ReviewModelInput } from './review-items-
|
|
7
|
-
import { c as TreeDocxSessionView, g as DocumentThemeColorEntry } from './tree-session-Df02ajqc.cjs';
|
|
8
|
-
export { a as TreeApplyResult } from './tree-session-Df02ajqc.cjs';
|
|
9
|
-
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-cAEf1uXW.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-cAEf1uXW.cjs';
|
|
11
|
-
import { L as LayoutShapingOptions } from './shaped-measurer-CninrHr_.cjs';
|
|
12
|
-
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-wb-iOxfh.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 RunTableChromeCommandResult, $ as SectionAnchor, a0 as SelectedDrawingOverlayTarget, a1 as SurfaceEquation, a2 as SurfaceFormatting, a3 as SurfaceHyperlink, a4 as SurfaceNavigation, a5 as SurfaceOverlayCoordinates, a6 as SurfaceParagraphFormat, a7 as TABLE_BORDER_STYLE_OPTIONS, a8 as TABLE_BORDER_TARGET_OPTIONS, a9 as TABLE_BORDER_WIDTH_OPTIONS, aa as TABLE_CHROME_SLOT_IDS, ab as TableBorderStyleOption, ac as TableBorderTargetOption, ad as TableBorderTargetValue, ae as TableBorderWidthOption, af as TableChromeDraft, ag as TableChromePick, ah as TableChromeSlotId, ai as TableInteractionLabelKey, aj as ToolbarCommandState, ak as WORD_DEFAULT_FONT, al as applyTableChromePick, am as blankDocumentBytes, an as canExecuteImageCommand, ao as captureImageMutationPreconditions, ap as chromeControlCount, aq as chromeMenuSlots, ar as chromeProbeForSlot, as as chromeSlotId, at as commandForSlot, au as commandForSlotValue, av as commandForTableChromeSlotValue, aw as composeFontConfiguration, ax as computeImageResizeResult, ay as computeMovedImagePosition, az as computeResizedImageExtentEmu, aA as createDocxEditor, aB as createFontSource, aC as createImageOverlayScrollPort, aD as cssPixelsToLayoutPoints, aE as defaultChromeGroups, aF as defaultTableLabel, aG as emuToOverlayPoints, aH as equationAtPosition, aI as executeImageCommand, aJ as finalizeImageOverlayInteraction, aK as formattingBarChromeGroups, aL as isStaleImageInteractionCommit, aM as isTableChromeSlot, aN as layoutPointsToCssPixels, aO as loadFonts, aP as overlayFrameToSheetCssPixels, aQ as overlayHostOrigin, aR as pointsToEmu, aS as probeTableChromeCommand, aT as resizePreservesAspect, aU as runSave, aV as runTableChromeCommand, aW as runTableCommand, aX as runToolbarCommand, aY as selectedDrawingOverlayTargetOf, aZ as selectedImageStateOf, a_ as surfacePaintScale, a$ as tableChromeIconPaths, b0 as tableChromeLabelKeyForTarget, b1 as tableChromeToolbarState, b2 as tableChromeVisible, b3 as tableCommandToolbarState, b4 as toolbarCommandState, b5 as toolbarCommandStates } from './index-wb-iOxfh.cjs';
|
|
14
|
-
import { O as OoxmlPart } from './ooxml-package-CdEy9ufK.cjs';
|
|
15
|
-
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-UuZOcOp7.cjs';
|
|
5
|
+
export { R as ReviewModelInput } from './review-items-BdeLNRi2.cjs';
|
|
16
6
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.cjs';
|
|
17
|
-
import {
|
|
18
|
-
export {
|
|
19
|
-
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
import './
|
|
23
|
-
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
7
|
+
import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-BF2FVBOM.cjs';
|
|
8
|
+
export { a as TreeApplyResult } from './tree-session-contract-BF2FVBOM.cjs';
|
|
9
|
+
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-C8edZgy5.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-C8edZgy5.cjs';
|
|
11
|
+
import { L as LayoutShapingOptions } from './shaped-measurer-NeF2mPSu.cjs';
|
|
12
|
+
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-Dn0lOp9Z.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-Dn0lOp9Z.cjs';
|
|
14
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-BB-WP3zk.cjs';
|
|
15
|
+
import { S as SemanticLayout } from './semantic-records-5AOQJmLX.cjs';
|
|
16
|
+
export { T as TextMeasurer } from './semantic-records-5AOQJmLX.cjs';
|
|
17
|
+
export { S as SectionProperties } from './semantic-cell-selection-C0OFD4D9.cjs';
|
|
18
|
+
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-Cs2jErnt.cjs';
|
|
19
|
+
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-UHaj3sBY.cjs';
|
|
20
|
+
export { CollaborationModuleContribution } from './collaboration.cjs';
|
|
21
|
+
import './revision-projection-C2S8PSQm.cjs';
|
|
22
|
+
import './tree-package-fragment-BjZ3RWAS.cjs';
|
|
23
|
+
import './tree-store-DfZi7FqY.cjs';
|
|
24
|
+
import './collaboration/replication.cjs';
|
|
25
|
+
import './failure-BnGjoXf0.cjs';
|
|
26
|
+
import './custom-node-writes-CwkYRw3V.cjs';
|
|
27
|
+
import './document-properties-D6Ahr8D6.cjs';
|
|
26
28
|
import 'prosemirror-model';
|
|
27
29
|
import './contracts/document.cjs';
|
|
28
|
-
import './
|
|
29
|
-
import './
|
|
30
|
-
import './omml-equation-BD-LsmWE.cjs';
|
|
30
|
+
import './note-properties-BvGfHk5e.cjs';
|
|
31
|
+
import './omml-equation-CqQOt_dD.cjs';
|
|
31
32
|
|
|
32
33
|
interface LayoutShapingInstrumentation {
|
|
33
34
|
readonly onFontByteCopy?: () => void;
|
package/dist/editor.d.ts
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export { k as IMAGE_WRAP_TARGETS, b as ImageWrapTarget } from './tree-op-types-CnRb7AYo.js';
|
|
1
|
+
import { O as OoxmlPart, G as TreeDocColorValue, v as DrawingPositionInput } from './tree-op-types-DnzAOnc9.js';
|
|
2
|
+
export { H as DEFAULT_IMAGE_RESOURCE_LIMITS, J as IMAGE_WRAP_TARGETS, C as ImageDecodePort, K as ImageResourceLimits, u as ImageWrapTarget, t as RenderableImageMime, y as SupportedImageMime, B as VectorImageMime, L as resolveImageResourceLimits, M as resolveSvgIntrinsicSize, N as sniffImageMime, Q as validateRasterHeader } from './tree-op-types-DnzAOnc9.js';
|
|
4
3
|
import { ColorValue } from './contracts/types.js';
|
|
5
4
|
export { ParagraphFlags, ParagraphTabStop } from './contracts/types.js';
|
|
6
|
-
export { R as ReviewModelInput } from './review-items-
|
|
7
|
-
import { c as TreeDocxSessionView, g as DocumentThemeColorEntry } from './tree-session-ZuBFOhIh.js';
|
|
8
|
-
export { a as TreeApplyResult } from './tree-session-ZuBFOhIh.js';
|
|
9
|
-
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-Cvd7Geoc.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-Cvd7Geoc.js';
|
|
11
|
-
import { L as LayoutShapingOptions } from './shaped-measurer-B9f4A7QA.js';
|
|
12
|
-
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-DRqY5JVF.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 RunTableChromeCommandResult, $ as SectionAnchor, a0 as SelectedDrawingOverlayTarget, a1 as SurfaceEquation, a2 as SurfaceFormatting, a3 as SurfaceHyperlink, a4 as SurfaceNavigation, a5 as SurfaceOverlayCoordinates, a6 as SurfaceParagraphFormat, a7 as TABLE_BORDER_STYLE_OPTIONS, a8 as TABLE_BORDER_TARGET_OPTIONS, a9 as TABLE_BORDER_WIDTH_OPTIONS, aa as TABLE_CHROME_SLOT_IDS, ab as TableBorderStyleOption, ac as TableBorderTargetOption, ad as TableBorderTargetValue, ae as TableBorderWidthOption, af as TableChromeDraft, ag as TableChromePick, ah as TableChromeSlotId, ai as TableInteractionLabelKey, aj as ToolbarCommandState, ak as WORD_DEFAULT_FONT, al as applyTableChromePick, am as blankDocumentBytes, an as canExecuteImageCommand, ao as captureImageMutationPreconditions, ap as chromeControlCount, aq as chromeMenuSlots, ar as chromeProbeForSlot, as as chromeSlotId, at as commandForSlot, au as commandForSlotValue, av as commandForTableChromeSlotValue, aw as composeFontConfiguration, ax as computeImageResizeResult, ay as computeMovedImagePosition, az as computeResizedImageExtentEmu, aA as createDocxEditor, aB as createFontSource, aC as createImageOverlayScrollPort, aD as cssPixelsToLayoutPoints, aE as defaultChromeGroups, aF as defaultTableLabel, aG as emuToOverlayPoints, aH as equationAtPosition, aI as executeImageCommand, aJ as finalizeImageOverlayInteraction, aK as formattingBarChromeGroups, aL as isStaleImageInteractionCommit, aM as isTableChromeSlot, aN as layoutPointsToCssPixels, aO as loadFonts, aP as overlayFrameToSheetCssPixels, aQ as overlayHostOrigin, aR as pointsToEmu, aS as probeTableChromeCommand, aT as resizePreservesAspect, aU as runSave, aV as runTableChromeCommand, aW as runTableCommand, aX as runToolbarCommand, aY as selectedDrawingOverlayTargetOf, aZ as selectedImageStateOf, a_ as surfacePaintScale, a$ as tableChromeIconPaths, b0 as tableChromeLabelKeyForTarget, b1 as tableChromeToolbarState, b2 as tableChromeVisible, b3 as tableCommandToolbarState, b4 as toolbarCommandState, b5 as toolbarCommandStates } from './index-DRqY5JVF.js';
|
|
14
|
-
import { O as OoxmlPart } from './ooxml-package-CdEy9ufK.js';
|
|
15
|
-
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-C7ahrdUx.js';
|
|
5
|
+
export { R as ReviewModelInput } from './review-items-CkYyXhXM.js';
|
|
16
6
|
export { CollectReviewItems, EditorModule, EditorModuleRegistry, ReviewModuleContribution, resolveEditorModules } from './contracts/modules.js';
|
|
17
|
-
import {
|
|
18
|
-
export {
|
|
19
|
-
|
|
20
|
-
export {
|
|
21
|
-
|
|
22
|
-
import './
|
|
23
|
-
|
|
24
|
-
import './
|
|
25
|
-
import './
|
|
7
|
+
import { T as TreeDocxSessionView, f as DocumentThemeColorEntry } from './tree-session-contract-DhdsFT_z.js';
|
|
8
|
+
export { a as TreeApplyResult } from './tree-session-contract-DhdsFT_z.js';
|
|
9
|
+
import { F as FontConfiguration, E as EditorFontError, a as EditorSnapshot, b as EditorCommand, C as CanResult, Z as ZoomMode } from './editor-BogcVHXk.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-BogcVHXk.js';
|
|
11
|
+
import { L as LayoutShapingOptions } from './shaped-measurer-vzsY88oK.js';
|
|
12
|
+
import { P as PaginatedSurfaceOptions, O as OpenPaginatedResult, a as PaginatedSurface, T as TableCommandPlan, D as DocxEditorInstance } from './index-BNv-ZLQP.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-BNv-ZLQP.js';
|
|
14
|
+
import { A as AutomationCapabilities, a as AutomationHost } from './protocol-Ckl7hWsv.js';
|
|
15
|
+
import { S as SemanticLayout } from './semantic-records-9xhwbJ23.js';
|
|
16
|
+
export { T as TextMeasurer } from './semantic-records-9xhwbJ23.js';
|
|
17
|
+
export { S as SectionProperties } from './semantic-cell-selection-DdmoxC-y.js';
|
|
18
|
+
export { N as NavigationCommand, S as SemanticPosition, a as SemanticSelection } from './semantic-interaction-COyhZ9WH.js';
|
|
19
|
+
export { F as FieldShadingMode, R as ReviewAuthorInfo, a as RevisionAuthorAssignments, b as RevisionAuthorStyle, c as RevisionStyles } from './semantic-paint-vA-oLSdV.js';
|
|
20
|
+
export { CollaborationModuleContribution } from './collaboration.js';
|
|
21
|
+
import './revision-projection-Ae2CWa8E.js';
|
|
22
|
+
import './tree-package-fragment-CDER0G3B.js';
|
|
23
|
+
import './tree-store-CNZ3O83s.js';
|
|
24
|
+
import './collaboration/replication.js';
|
|
25
|
+
import './failure-BnGjoXf0.js';
|
|
26
|
+
import './custom-node-writes-JfTn-Sy6.js';
|
|
27
|
+
import './document-properties-D6Ahr8D6.js';
|
|
26
28
|
import 'prosemirror-model';
|
|
27
29
|
import './contracts/document.js';
|
|
28
|
-
import './
|
|
29
|
-
import './
|
|
30
|
-
import './omml-equation-Dd3mBep-.js';
|
|
30
|
+
import './note-properties-BmoSdyKS.js';
|
|
31
|
+
import './omml-equation-Ciq5rgb7.js';
|
|
31
32
|
|
|
32
33
|
interface LayoutShapingInstrumentation {
|
|
33
34
|
readonly onFontByteCopy?: () => void;
|
package/dist/editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{Ja as AUTO_ZOOM_MODE,Oa as BROWSER_AUTOMATION_CAPABILITIES,wa as CHROME_GROUPS,Aa as CHROME_MENUS,Da as CHROME_UNAVAILABLE_KEY,Y as DEFAULT_TABLE_CHROME_DRAFT,Q as EMU_PER_POINT,Ka as FIT_WIDTH_ZOOM_MODE,O as IMAGE_OVERLAY_NUDGE_PT,P as IMAGE_OVERLAY_NUDGE_SHIFT_PT,d as LOADING_SNAPSHOT,e as MAX_RESOLVER_FAMILIES,m as PX_PER_CM,l as PX_PER_INCH,s as SNAP_TWIPS_CM,r as SNAP_TWIPS_INCH,ca as TABLE_BORDER_STYLE_OPTIONS,ba as TABLE_BORDER_TARGET_OPTIONS,da as TABLE_BORDER_WIDTH_OPTIONS,Z as TABLE_CHROME_SLOT_IDS,q as TWIPS_PER_CM,p as TWIPS_PER_INCH,f as WORD_DEFAULT_FONT,Ia as ZOOM_MAX,Ha as ZOOM_MIN,ea as applyTableChromePick,y as applyThemeShade,x as applyThemeTint,h as blankDocumentBytes,M as canExecuteImageCommand,L as captureImageMutationPreconditions,Ca as chromeControlCount,Ba as chromeMenuSlots,ia as chromeProbeForSlot,xa as chromeSlotId,oa as chromeSlotIsToggle,ja as commandForSlot,la as commandForSlotValue,ka as commandForTableChromeSlotValue,g as composeFontConfiguration,Wa as computeImageResizeResult,V as computeMovedImagePosition,U as computeResizedImageExtentEmu,Pa as createBrowserAutomationHost,Na as createDocxEditor,k as createFontSource,Xa as createImageOverlayScrollPort,b as createLayoutShaping,I as cropPercentFromCropPermille,G as cropPercentFromPermille,D as cropPercentFromSourceCrop,H as cropPermilleFromCropPercent,F as cropPermilleFromPercent,Sa as cssPixelsToLayoutPoints,ya as defaultChromeGroups,_ as defaultTableLabel,c as disposeLayoutShaping,v as dragIndent,va as editorCommandKey,T as emuToOverlayPoints,Fa as equationAtPosition,N as executeImageCommand,Ya as finalizeImageOverlayInteraction,za as formattingBarChromeGroups,n as generateRulerTicks,t as handlePosition,W as isStaleImageInteractionCommit,$ as isTableChromeSlot,Ra as layoutPointsToCssPixels,j as loadFonts,A as lowerColorValueForBorder,B as lowerColorValueForFill,Ga as mountPaginatedSurface,Ta as overlayFrameToSheetCssPixels,Ua as overlayHostOrigin,i as partOfNodeId,S as pointsToEmu,fa as probeTableChromeCommand,Va as resizePreservesAspect,C as resolveColorValueToCss,z as resolveThemeColorHex,La as resolveZoomMode,o as rulerPageBox,sa as runSave,qa as runTableChromeCommand,ua as runTableCommand,ra as runToolbarCommand,Ma as sameZoomMode,R as selectedDrawingOverlayTargetOf,K as selectedImageStateOf,u as snapTwips,E as sourceCropFromCropPercent,Ea as surfaceExtent,Qa as surfacePaintScale,ha as tableChromeIconPaths,ga as tableChromeLabelKeyForTarget,ma as tableChromeToolbarState,aa as tableChromeVisible,X as tableCommandState,ta as tableCommandToolbarState,a as toEditorFontError,na as toolbarCommandState,pa as toolbarCommandStates,J as validateImageCropPercent,w as validateThemeModifier}from'./chunk-CRZR6K5Z.js';export{a as resolveEditorModules}from'./chunk-D5EHDHYV.js';import'./chunk-GXLZCXEH.js';import'./chunk-WXQ245MQ.js';import'./chunk-WU7PUTVA.js';import'./chunk-LAETEBHD.js';import'./chunk-WZHIFNSU.js';import'./chunk-6HMSC7UV.js';import'./chunk-X7A5XART.js';import'./chunk-6JIJOZDW.js';import'./chunk-BP7ANXGA.js';export{m as DEFAULT_IMAGE_RESOURCE_LIMITS,Kg as DRAWING_REL_FROM_H,Lg as DRAWING_REL_FROM_V,Va as IMAGE_WRAP_TARGETS,Ng as positionInputFromPropertiesCommand,Mg as propertiesCommandHasPositionFields,n as resolveImageResourceLimits,mb as resolveSvgIntrinsicSize,ib as sniffImageMime,Jg as validateDrawingPositionInput,nb as validateRasterHeader,Og as validateSetImagePositionCommand}from'./chunk-34BNQUD4.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 };
|