@docx-editor.dev/core 2.10.0 → 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 +12 -11
- package/dist/binding.d.ts +12 -11
- 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/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-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-C0my6Uta.d.ts → editor-BogcVHXk.d.ts} +145 -49
- package/dist/{editor-CwzY2Hcg.d.cts → editor-C8edZgy5.d.cts} +145 -49
- package/dist/editor.cjs +1 -1
- package/dist/editor.css +1 -7299
- 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-kID8Ymkp.d.ts → index-BNv-ZLQP.d.ts} +262 -81
- package/dist/{index-nLFwo_17.d.cts → index-Dn0lOp9Z.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 +71 -53
- package/dist/layout.d.ts +71 -53
- 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-Dw-8a6Ie.d.ts → review-items-BdeLNRi2.d.cts} +1 -2
- package/dist/{review-items-CwixiHNe.d.cts → review-items-CkYyXhXM.d.ts} +1 -2
- package/dist/{review-reads-BqkiJTeR.d.cts → review-reads-BOLSBm5w.d.cts} +2 -2
- package/dist/{review-reads-C0u-IKEA.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-DT9x9WLf.d.cts → semantic-cell-selection-C0OFD4D9.d.cts} +4 -4
- package/dist/{semantic-cell-selection-Utrf0lz7.d.ts → semantic-cell-selection-DdmoxC-y.d.ts} +4 -4
- package/dist/{semantic-interaction-B6hFRQLy.d.ts → semantic-interaction-COyhZ9WH.d.ts} +1 -1
- package/dist/{semantic-interaction-Z0xKQcB4.d.cts → semantic-interaction-Cs2jErnt.d.cts} +1 -1
- package/dist/{semantic-paint-CQEOC0Od.d.cts → semantic-paint-UHaj3sBY.d.cts} +2 -2
- package/dist/{semantic-paint-quke354p.d.ts → semantic-paint-vA-oLSdV.d.ts} +2 -2
- package/dist/{semantic-records-Do3-i5oB.d.ts → semantic-records-5AOQJmLX.d.cts} +5 -4
- package/dist/{semantic-records-CMakzQ1X.d.cts → semantic-records-9xhwbJ23.d.ts} +5 -4
- package/dist/{shaped-measurer-DzRwWrL5.d.cts → shaped-measurer-NeF2mPSu.d.cts} +1 -1
- package/dist/{shaped-measurer-BxwTUluj.d.ts → shaped-measurer-vzsY88oK.d.ts} +1 -1
- package/dist/store.cjs +1 -1
- package/dist/store.d.cts +74 -16
- package/dist/store.d.ts +74 -16
- package/dist/store.js +1 -1
- package/dist/{tree-op-types-DSJYmf5b.d.cts → tree-op-types-BPyXNxyL.d.cts} +1247 -10
- package/dist/{tree-op-types-BuOfCrkp.d.ts → tree-op-types-DnzAOnc9.d.ts} +1247 -10
- package/dist/{custom-node-writes-BvpWCnW8.d.ts → tree-package-fragment-BjZ3RWAS.d.cts} +107 -322
- package/dist/{custom-node-writes-Db8H6Z3n.d.cts → tree-package-fragment-CDER0G3B.d.ts} +107 -322
- package/dist/{tree-session-contract-C1dfE9hy.d.ts → tree-session-contract-BF2FVBOM.d.cts} +16 -10
- package/dist/{tree-session-contract-ByWx8eew.d.cts → tree-session-contract-DhdsFT_z.d.ts} +16 -10
- package/dist/{tree-store-ASBtz7UB.d.ts → tree-store-CNZ3O83s.d.ts} +130 -25
- package/dist/{tree-store-CWOUMGN8.d.cts → tree-store-DfZi7FqY.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, 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';
|
|
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-BdeLNRi2.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-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';
|
|
27
28
|
import 'prosemirror-model';
|
|
28
29
|
import './contracts/document.cjs';
|
|
29
|
-
import './note-properties-
|
|
30
|
-
import './omml-equation-
|
|
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
|
-
import {
|
|
2
|
-
export {
|
|
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';
|
|
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-CkYyXhXM.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-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';
|
|
27
28
|
import 'prosemirror-model';
|
|
28
29
|
import './contracts/document.js';
|
|
29
|
-
import './note-properties-
|
|
30
|
-
import './omml-equation-
|
|
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 };
|