superdoc 2.28.0-next.6 → 2.28.0-next.8

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.
Files changed (53) hide show
  1. package/dist/chunks/{create-super-doc-ui-D1eOhAjv.cjs → create-super-doc-ui-B4c55pFy.cjs} +420 -84
  2. package/dist/chunks/{create-super-doc-ui-B29zw5qD.es.js → create-super-doc-ui-C4Ka5Ph3.es.js} +415 -85
  3. package/dist/collaboration-upgrade-engine.cjs +1 -1
  4. package/dist/collaboration-upgrade-engine.es.js +1 -1
  5. package/dist/document-api/src/content-controls/content-controls.types.d.ts +11 -0
  6. package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
  7. package/dist/document-api/src/contract/operation-definitions.d.ts +33 -33
  8. package/dist/document-api/src/contract/operation-registry.d.ts +4 -0
  9. package/dist/document-api/src/export/export.d.ts +3 -1
  10. package/dist/document-api/src/export/export.types.d.ts +8 -0
  11. package/dist/document-api/src/get-node/get-node.d.ts +10 -4
  12. package/dist/document-api/src/hyperlinks/hyperlinks.types.d.ts +2 -0
  13. package/dist/document-api/src/index.d.ts +1 -0
  14. package/dist/document-api/src/types/track-changes.types.d.ts +10 -2
  15. package/dist/layout-engine/contracts/src/index.d.ts +2 -0
  16. package/dist/layout-engine/contracts/src/resolved-layout.d.ts +1 -0
  17. package/dist/public/ui-react.cjs +1 -1
  18. package/dist/public/ui-react.es.js +1 -1
  19. package/dist/public/ui-vue.cjs +1 -1
  20. package/dist/public/ui-vue.es.js +1 -1
  21. package/dist/public/ui.cjs +1 -1
  22. package/dist/public/ui.es.js +1 -1
  23. package/dist/shared/common/list-marker-utils.d.ts +3 -0
  24. package/dist/style.css +1 -1
  25. package/dist/style.layered.css +1 -1
  26. package/dist/superdoc/src/core/SuperDoc.d.ts +2 -6
  27. package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +1 -0
  28. package/dist/superdoc/src/core/editor-runtime/types.d.ts +1 -0
  29. package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +2 -2
  30. package/dist/superdoc/src/core/extensions/types.d.ts +14 -3
  31. package/dist/superdoc/src/core/helpers/resolve-docx-export.d.ts +6 -0
  32. package/dist/superdoc/src/core/types/index.d.ts +12 -1
  33. package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +0 -8
  34. package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +0 -1
  35. package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +0 -2
  36. package/dist/superdoc/src/public/export-types.d.ts +3 -0
  37. package/dist/superdoc/src/public/ui/entity-at.d.ts +1 -0
  38. package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +0 -13
  39. package/dist/superdoc/src/public/ui/types.d.ts +16 -2
  40. package/dist/superdoc/src/public/ui.d.cts +14 -0
  41. package/dist/superdoc/src/public/ui.d.ts +1 -1
  42. package/dist/superdoc/src/stores/comments-store.d.ts +3 -57
  43. package/dist/superdoc/src/stores/superdoc-store.d.ts +9 -171
  44. package/dist/superdoc.cjs +224 -59
  45. package/dist/superdoc.es.js +224 -59
  46. package/dist/word-layout/src/types.d.ts +1 -0
  47. package/dist-cdn/style.layered.css +1 -1
  48. package/dist-cdn/superdoc.min.css +1 -1
  49. package/dist-cdn/superdoc.min.js +42 -42
  50. package/package.json +2 -2
  51. package/dist/superdoc/src/helpers/floor.d.ts +0 -1
  52. package/dist/superdoc/src/index.d.cts +0 -18
  53. package/dist/superdoc/src/index.d.ts +0 -14
@@ -1311,8 +1311,19 @@ export interface CommentsResponsiveConfig {
1311
1311
  */
1312
1312
  breakpoint?: number;
1313
1313
  }
1314
- /** Startup options for the built-in comments UI rendered by `ui.comments`. */
1314
+ /**
1315
+ * Startup options for the built-in comments UI rendered by `ui.comments`.
1316
+ *
1317
+ * `panel` (default `true`) is SuperDoc's comments panel: thread cards, the
1318
+ * add-comment bubble and the comment dialog. `ui.comments: false` is the same
1319
+ * as `{ panel: false }`. `highlights` (default `true`) is the highlight SuperDoc
1320
+ * paints on commented text. Set it to `false` to paint your own with
1321
+ * `superdoc.ui.decorations`. Comments, `ui.comments`, the Document API and
1322
+ * `ui.viewport.entityAt` comment hits keep working either way.
1323
+ */
1315
1324
  export interface CommentsConfig {
1325
+ panel?: boolean;
1326
+ highlights?: boolean;
1316
1327
  /**
1317
1328
  * Where comment threads render (default: `'sidebar'`). `auto` uses the
1318
1329
  * available width to choose between sidebar and inline.
@@ -31,14 +31,6 @@ export function createStubV2Integration(): SuperDocV2Integration;
31
31
  * @returns {SuperDocV2Integration}
32
32
  */
33
33
  export function createDefaultV2Integration(): SuperDocV2Integration;
34
- /**
35
- * Backwards-compatible alias. The v2 branch no longer reads any customer
36
- * config; the parameter is ignored and retained only so existing call sites do
37
- * not need to change in lockstep with this internalization.
38
- *
39
- * @returns {SuperDocV2Integration}
40
- */
41
- export function resolveV2Integration(): SuperDocV2Integration;
42
34
  /**
43
35
  * @param {SuperDocV2Integration | null | undefined} integration
44
36
  * @returns {boolean}
@@ -21,4 +21,3 @@ export const icons: {
21
21
  borderRadius: string;
22
22
  };
23
23
  }[][];
24
- export function getAvailableColorOptions(): any[];
@@ -97,5 +97,3 @@ export namespace TABLE_ACTION_COMMAND_MAP {
97
97
  let fixTables: string;
98
98
  }
99
99
  export const TABLE_ACTION_COMMAND_IDS: string[];
100
- export const HEADLESS_TOOLBAR_COMMANDS: string[];
101
- export const HEADLESS_EXECUTE_ITEMS: Set<string>;
@@ -1,9 +1,12 @@
1
+ import { DocxExportPolicies } from '../../../document-api/src/index.js';
2
+ export type { DocxExportPolicies } from '../../../document-api/src/index.js';
1
3
  /** Browser export format. DOCX is the only supported output. */
2
4
  export type ExportType = 'docx';
3
5
  /** Comment output: `external` includes external comments; `clean` removes comments. */
4
6
  export type CommentsType = 'external' | 'clean';
5
7
  /** Options accepted by `SuperDoc.export()` and `ui.document.export()`. */
6
8
  export interface ExportParams {
9
+ policies?: DocxExportPolicies;
7
10
  /** Browser export format. DOCX is the only supported output. */
8
11
  exportType?: readonly [ExportType];
9
12
  /** How to handle comments. */
@@ -11,6 +11,7 @@ import { ViewportEntityHit } from './types.js';
11
11
  export interface CollectedEntityHit extends ViewportEntityHit {
12
12
  storyKey?: string;
13
13
  }
14
+ export declare function collectDecorationProvidersFromChain(start: Element | null, stopAt: Element): string[];
14
15
  /**
15
16
  * Read painted entities off `el` and every ancestor up to the document root, or
16
17
  * up to and INCLUDING `stopAt` when given. Innermost-first ordering: a tracked
@@ -7,19 +7,6 @@
7
7
  * @returns {Record<string, unknown>} InlineRunPatch ready for doc.format.apply
8
8
  */
9
9
  export function sdRunPropsToInlineRunPatch(props: Record<string, unknown>): Record<string, unknown>;
10
- /**
11
- * Returns true when a selection segment spans the full visible text of its block.
12
- * A collapsed caret is NOT a full paragraph.
13
- *
14
- * @param {{ range: { start: number; end: number } }} segment
15
- * @param {number | null | undefined} blockVisibleLength
16
- */
17
- export function isFullParagraph(segment: {
18
- range: {
19
- start: number;
20
- end: number;
21
- };
22
- }, blockVisibleLength: number | null | undefined): boolean;
23
10
  /**
24
11
  * Serializes a selection to a stable string key used to detect whether
25
12
  * the target selection is the same as the source (skip apply in that case).
@@ -1,6 +1,7 @@
1
1
  import { CommentsListQuery as DocumentApiCommentsListQuery, CommentsListResult, TrackChangesListResult, EntityAddress, TextAddress, BookmarkAddress, TextTarget, ScrollIntoViewInput, ScrollIntoViewOutput, SelectionInfo, SelectionTarget, Receipt, ReceiptFailureCode, ContentControlInfo, ContentControlTarget, StyleCatalogItem, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult } from '../../../../document-api/src/index.js';
2
2
  import { BrowserDocumentApi, PartialBrowserDocumentApi } from '../browser-document-api.js';
3
3
  import { ExportParams } from '../export-types.js';
4
+ import { SuperDocVisualHandle, SuperDocVisualOptions } from '../../core/extensions/types.js';
4
5
  import { DocumentReplacementResult } from '../document-replacement.js';
5
6
  import { SuperDocUIReason } from './reasons.js';
6
7
  import { BuiltInCommandId } from './commands.js';
@@ -30,7 +31,7 @@ import { BuiltInCommandId } from './commands.js';
30
31
  * (`scripts/ensure-types.cjs` `rewriteDocApiPaths`), so no bare private
31
32
  * specifier leaks into the emitted `.d.ts`.
32
33
  */
33
- export type { Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, BookmarkAddress, ScrollIntoViewInput, ScrollIntoViewOutput, DocumentApi, EntityAddress, CommentsListQuery as DocumentApiCommentsListQuery, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, TemporaryMutationOperation, TemporaryOperationResultTarget, TemporaryOperationEffects, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, StoryLocator as DocumentStoryLocator, } from '../../../../document-api/src/index.js';
34
+ export type { Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, BookmarkAddress, ScrollIntoViewInput, ScrollIntoViewOutput, DocumentApi, EntityAddress, CommentsListQuery as DocumentApiCommentsListQuery, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, TemporaryMutationOperation, TemporaryOperationResultTarget, TemporaryOperationEffects, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, StoryLocator as DocumentStoryLocator, OperationId, OperationCall, OperationInput, OperationOptions, OperationOutput, } from '../../../../document-api/src/index.js';
34
35
  export type { StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, } from '../../../../document-api/src/index.js';
35
36
  export type { ListPresetId } from '../../../../document-api/src/index.js';
36
37
  export type { BrowserDocumentApi, PartialBrowserDocumentApi } from '../browser-document-api.js';
@@ -368,7 +369,7 @@ export interface ContextMenuItem {
368
369
  invoke(): CommandExecutionResult;
369
370
  }
370
371
  export interface ViewportEntityHit {
371
- type: 'trackedChange' | 'comment' | 'contentControl' | 'citation' | (string & {});
372
+ type: 'trackedChange' | 'comment' | 'contentControl' | 'citation' | 'decoration' | (string & {});
372
373
  id: string;
373
374
  tag?: string;
374
375
  scope?: 'block' | 'inline';
@@ -1602,9 +1603,21 @@ export interface SuperDocUIOptions {
1602
1603
  * A disposable subscription scope. Subscriptions created inside the scope are
1603
1604
  * released together when the scope is disposed.
1604
1605
  */
1606
+ export interface DecorationPointerEvent {
1607
+ type: 'click' | 'hover-enter' | 'hover-leave';
1608
+ id: string;
1609
+ data?: SuperDocVisualOptions['data'];
1610
+ clientX: number;
1611
+ clientY: number;
1612
+ }
1613
+ export interface DecorationsHandle {
1614
+ highlight(id: string, options?: SuperDocVisualOptions): SuperDocVisualHandle;
1615
+ subscribe(listener: (event: DecorationPointerEvent) => void): () => void;
1616
+ }
1605
1617
  export interface SuperDocUIScope {
1606
1618
  /** Subscribe within the scope. */
1607
1619
  select<TSlice>(selector: SelectorFn<SuperDocUIState, TSlice>, equality?: EqualityFn<TSlice>): Subscribable<TSlice>;
1620
+ readonly decorations: DecorationsHandle;
1608
1621
  /** Dispose every subscription created within the scope. */
1609
1622
  dispose(): void;
1610
1623
  }
@@ -1641,6 +1654,7 @@ export interface SuperDocUI {
1641
1654
  readonly document: DocumentHandle;
1642
1655
  /** Viewport / geometry surface. */
1643
1656
  readonly viewport: ViewportHandle;
1657
+ readonly decorations: DecorationsHandle;
1644
1658
  /** Metadata geometry/navigation convenience surface. */
1645
1659
  readonly metadata: MetadataHandle;
1646
1660
  /** Table-context surface (shared `table-*` routing truth). */
@@ -33,6 +33,8 @@ import type { CustomCommandHandle as __Cjs_CustomCommandHandle } from './ui.js'
33
33
  import type { CustomCommandHandleState as __Cjs_CustomCommandHandleState } from './ui.js' with { "resolution-mode": "import" };
34
34
  import type { CustomCommandRegistration as __Cjs_CustomCommandRegistration } from './ui.js' with { "resolution-mode": "import" };
35
35
  import type { CustomCommandRegistrationResult as __Cjs_CustomCommandRegistrationResult } from './ui.js' with { "resolution-mode": "import" };
36
+ import type { DecorationPointerEvent as __Cjs_DecorationPointerEvent } from './ui.js' with { "resolution-mode": "import" };
37
+ import type { DecorationsHandle as __Cjs_DecorationsHandle } from './ui.js' with { "resolution-mode": "import" };
36
38
  import type { DocumentApi as __Cjs_DocumentApi } from './ui.js' with { "resolution-mode": "import" };
37
39
  import type { DocumentApiRejectionDetails as __Cjs_DocumentApiRejectionDetails } from './ui.js' with { "resolution-mode": "import" };
38
40
  import type { DocumentApiRejectionReason as __Cjs_DocumentApiRejectionReason } from './ui.js' with { "resolution-mode": "import" };
@@ -47,7 +49,12 @@ import type { FontsHandle as __Cjs_FontsHandle } from './ui.js' with { "resoluti
47
49
  import type { FontSizeOption as __Cjs_FontSizeOption } from './ui.js' with { "resolution-mode": "import" };
48
50
  import type { FontsSlice as __Cjs_FontsSlice } from './ui.js' with { "resolution-mode": "import" };
49
51
  import type { MetadataHandle as __Cjs_MetadataHandle } from './ui.js' with { "resolution-mode": "import" };
52
+ import type { OperationCall as __Cjs_OperationCall } from './ui.js' with { "resolution-mode": "import" };
50
53
  import type { OperationCapabilityResolveResult as __Cjs_OperationCapabilityResolveResult } from './ui.js' with { "resolution-mode": "import" };
54
+ import type { OperationId as __Cjs_OperationId } from './ui.js' with { "resolution-mode": "import" };
55
+ import type { OperationInput as __Cjs_OperationInput } from './ui.js' with { "resolution-mode": "import" };
56
+ import type { OperationOptions as __Cjs_OperationOptions } from './ui.js' with { "resolution-mode": "import" };
57
+ import type { OperationOutput as __Cjs_OperationOutput } from './ui.js' with { "resolution-mode": "import" };
51
58
  import type { PageBodyTarget as __Cjs_PageBodyTarget } from './ui.js' with { "resolution-mode": "import" };
52
59
  import type { PageMetricsHandle as __Cjs_PageMetricsHandle } from './ui.js' with { "resolution-mode": "import" };
53
60
  import type { PageMetricsPage as __Cjs_PageMetricsPage } from './ui.js' with { "resolution-mode": "import" };
@@ -179,6 +186,8 @@ export type { __Cjs_CustomCommandHandle as CustomCommandHandle };
179
186
  export type { __Cjs_CustomCommandHandleState as CustomCommandHandleState };
180
187
  export type { __Cjs_CustomCommandRegistration as CustomCommandRegistration };
181
188
  export type { __Cjs_CustomCommandRegistrationResult as CustomCommandRegistrationResult };
189
+ export type { __Cjs_DecorationPointerEvent as DecorationPointerEvent };
190
+ export type { __Cjs_DecorationsHandle as DecorationsHandle };
182
191
  export type { __Cjs_DocumentApi as DocumentApi };
183
192
  export type { __Cjs_DocumentApiRejectionDetails as DocumentApiRejectionDetails };
184
193
  export type { __Cjs_DocumentApiRejectionReason as DocumentApiRejectionReason };
@@ -194,7 +203,12 @@ export type { __Cjs_FontSizeOption as FontSizeOption };
194
203
  export type { __Cjs_FontsSlice as FontsSlice };
195
204
  export declare const getDocumentApiRejectionReason: typeof import('./ui.js', { with: { "resolution-mode": "import" } }).getDocumentApiRejectionReason;
196
205
  export type { __Cjs_MetadataHandle as MetadataHandle };
206
+ export type { __Cjs_OperationCall as OperationCall };
197
207
  export type { __Cjs_OperationCapabilityResolveResult as OperationCapabilityResolveResult };
208
+ export type { __Cjs_OperationId as OperationId };
209
+ export type { __Cjs_OperationInput as OperationInput };
210
+ export type { __Cjs_OperationOptions as OperationOptions };
211
+ export type { __Cjs_OperationOutput as OperationOutput };
198
212
  export type { __Cjs_PageBodyTarget as PageBodyTarget };
199
213
  export type { __Cjs_PageMetricsHandle as PageMetricsHandle };
200
214
  export type { __Cjs_PageMetricsPage as PageMetricsPage };
@@ -18,5 +18,5 @@ export { createSuperDocUI } from './ui/create-super-doc-ui.js';
18
18
  export { getDocumentApiRejectionReason } from './ui/rejection-reasons.js';
19
19
  export { shallowEqual } from './ui/equality.js';
20
20
  export { BUILT_IN_COMMAND_IDS } from './ui/commands.js';
21
- export type { EqualityFn, SelectorFn, Subscribable, SuperDocUI, BorrowedSuperDocUI, SuperDocUIOptions, SuperDocUIState, SuperDocUIScope, SuperDocLike, SuperDocEditorLike, CommandHandle, CommandState, CommandExecutionResult, WorkflowReceipt, WorkflowActionResult, WorkflowScrollResult, SelectionRestoreResult, SuperDocUIReason, CommandId, CommandsHandle, ContextMenuItem, ContextMenuHandle, WatermarkHandle, SearchController, SearchHandle, SearchQueryOptions, CustomCommandContext, CustomCommandHandle, CustomCommandHandleState, CustomCommandRegistration, CustomCommandRegistrationResult, MetadataHandle, SelectionHandle, TablesHandle, TableContextInfo, ToolbarHandle, BuiltInCommandId, ToolbarCommandId, CommentsHandle, TrackChangesHandle, ContentControlsHandle, BookmarksHandle, BookmarkAddress, ContentControlFocusResult, ContentControlHighlightResult, FontsHandle, ZoomHandle, DocumentHandle, DocumentReplacementResult, ViewportHandle, StylesHandle, StylesUpdateToMatchSelectionInput, ActiveParagraphStyle, SliceStatus, SelectionSlice, SelectionCapture, CommentAnchorCapture, ToolbarSnapshotSlice, CommentsSlice, TrackChangesSlice, ContentControlsSlice, FontsSlice, ZoomSlice, DocumentSlice, StylesSlice, SearchSnapshot, SearchSlice, StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, CommentInfo, CommentsListQuery, TrackChangeInfo, TrackChangePointHit, TrackChangesItem, FontFamilyOption, FontSizeOption, CommentAddress, TrackedChangeAddress, ContentControlViewportAddress, ViewportEntityAddress, ViewportEntityHit, ViewportContext, ViewportRect, ViewportGetRectInput, ViewportGetRectTarget, ViewportGetRectsInput, ViewportGetRectsResult, ViewportRectResult, BrowserDocumentApi, PartialBrowserDocumentApi, DocumentApi, Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, TemporaryMutationOperation, TemporaryOperationResultTarget, TemporaryOperationEffects, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, DocumentStoryLocator, } from './ui/types.js';
21
+ export type { EqualityFn, SelectorFn, Subscribable, SuperDocUI, BorrowedSuperDocUI, SuperDocUIOptions, SuperDocUIState, SuperDocUIScope, SuperDocLike, SuperDocEditorLike, CommandHandle, CommandState, CommandExecutionResult, WorkflowReceipt, WorkflowActionResult, WorkflowScrollResult, SelectionRestoreResult, SuperDocUIReason, CommandId, CommandsHandle, ContextMenuItem, ContextMenuHandle, WatermarkHandle, SearchController, SearchHandle, SearchQueryOptions, CustomCommandContext, CustomCommandHandle, CustomCommandHandleState, CustomCommandRegistration, CustomCommandRegistrationResult, MetadataHandle, SelectionHandle, TablesHandle, TableContextInfo, ToolbarHandle, BuiltInCommandId, ToolbarCommandId, CommentsHandle, TrackChangesHandle, ContentControlsHandle, BookmarksHandle, BookmarkAddress, ContentControlFocusResult, ContentControlHighlightResult, FontsHandle, ZoomHandle, DocumentHandle, DocumentReplacementResult, ViewportHandle, DecorationsHandle, DecorationPointerEvent, StylesHandle, StylesUpdateToMatchSelectionInput, ActiveParagraphStyle, SliceStatus, SelectionSlice, SelectionCapture, CommentAnchorCapture, ToolbarSnapshotSlice, CommentsSlice, TrackChangesSlice, ContentControlsSlice, FontsSlice, ZoomSlice, DocumentSlice, StylesSlice, SearchSnapshot, SearchSlice, StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, CommentInfo, CommentsListQuery, TrackChangeInfo, TrackChangePointHit, TrackChangesItem, FontFamilyOption, FontSizeOption, CommentAddress, TrackedChangeAddress, ContentControlViewportAddress, ViewportEntityAddress, ViewportEntityHit, ViewportContext, ViewportRect, ViewportGetRectInput, ViewportGetRectTarget, ViewportGetRectsInput, ViewportGetRectsResult, ViewportRectResult, BrowserDocumentApi, PartialBrowserDocumentApi, DocumentApi, Receipt, DocumentApiRejectionReason, DocumentApiRejectionDetails, TextRangeRejectionReason, ContentControlCreationRejectionReason, SelectionInfo, SelectionTarget, SelectionPoint, TextTarget, TextAddress, ScrollIntoViewInput, ScrollIntoViewOutput, EntityAddress, CommentsListResult, TrackChangesListResult, ContentControlsListResult, ContentControlInfo, ContentControlTarget, RichContentInsertInput, OperationCapabilityResolveResult, SDHtmlMarkdownSupportCheckResult, PictureWatermarkInput, RetainedPictureWatermarkInput, TextWatermark, WatermarkInfo, WatermarkTarget, WatermarksApplyInput, WatermarksApplyResult, WatermarksApplySuccess, WatermarksApplyTarget, TemporaryMutationOperation, TemporaryOperationResultTarget, TemporaryOperationEffects, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, DocumentStoryLocator, OperationId, OperationCall, OperationInput, OperationOptions, OperationOutput, } from './ui/types.js';
22
22
  export type { PageMetricsHandle, PageMetricsSnapshot, PageMetricsPage, PageBodyTarget } from './ui/page-metrics.js';
@@ -116,25 +116,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
116
116
  documentId: string;
117
117
  parentCommentId: string;
118
118
  }) => Object;
119
- showAddComment: (superdoc: any, targetClientY?: null) => Promise<{
120
- ok: boolean;
121
- reason: any;
122
- detail: any;
123
- } | {
124
- ok: boolean;
125
- reason?: undefined;
126
- detail?: undefined;
127
- } | {
128
- ok: boolean;
129
- reason: string;
130
- detail: any;
131
- }> | {
132
- ok: boolean;
133
- reason: any;
134
- } | {
135
- ok: boolean;
136
- reason?: undefined;
137
- };
119
+ showAddComment: (superdoc: any, targetClientY?: null) => any;
138
120
  addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
139
121
  superdoc: any;
140
122
  comment: any;
@@ -402,25 +384,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
402
384
  documentId: string;
403
385
  parentCommentId: string;
404
386
  }) => Object;
405
- showAddComment: (superdoc: any, targetClientY?: null) => Promise<{
406
- ok: boolean;
407
- reason: any;
408
- detail: any;
409
- } | {
410
- ok: boolean;
411
- reason?: undefined;
412
- detail?: undefined;
413
- } | {
414
- ok: boolean;
415
- reason: string;
416
- detail: any;
417
- }> | {
418
- ok: boolean;
419
- reason: any;
420
- } | {
421
- ok: boolean;
422
- reason?: undefined;
423
- };
387
+ showAddComment: (superdoc: any, targetClientY?: null) => any;
424
388
  addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
425
389
  superdoc: any;
426
390
  comment: any;
@@ -688,25 +652,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
688
652
  documentId: string;
689
653
  parentCommentId: string;
690
654
  }) => Object;
691
- showAddComment: (superdoc: any, targetClientY?: null) => Promise<{
692
- ok: boolean;
693
- reason: any;
694
- detail: any;
695
- } | {
696
- ok: boolean;
697
- reason?: undefined;
698
- detail?: undefined;
699
- } | {
700
- ok: boolean;
701
- reason: string;
702
- detail: any;
703
- }> | {
704
- ok: boolean;
705
- reason: any;
706
- } | {
707
- ok: boolean;
708
- reason?: undefined;
709
- };
655
+ showAddComment: (superdoc: any, targetClientY?: null) => any;
710
656
  addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
711
657
  superdoc: any;
712
658
  comment: any;
@@ -145,25 +145,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
145
145
  documentId: string;
146
146
  parentCommentId: string;
147
147
  }) => Object;
148
- showAddComment: (superdoc: any, targetClientY?: null) => Promise<{
149
- ok: boolean;
150
- reason: any;
151
- detail: any;
152
- } | {
153
- ok: boolean;
154
- reason?: undefined;
155
- detail?: undefined;
156
- } | {
157
- ok: boolean;
158
- reason: string;
159
- detail: any;
160
- }> | {
161
- ok: boolean;
162
- reason: any;
163
- } | {
164
- ok: boolean;
165
- reason?: undefined;
166
- };
148
+ showAddComment: (superdoc: any, targetClientY?: null) => any;
167
149
  addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
168
150
  superdoc: any;
169
151
  comment: any;
@@ -431,25 +413,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
431
413
  documentId: string;
432
414
  parentCommentId: string;
433
415
  }) => Object;
434
- showAddComment: (superdoc: any, targetClientY?: null) => Promise<{
435
- ok: boolean;
436
- reason: any;
437
- detail: any;
438
- } | {
439
- ok: boolean;
440
- reason?: undefined;
441
- detail?: undefined;
442
- } | {
443
- ok: boolean;
444
- reason: string;
445
- detail: any;
446
- }> | {
447
- ok: boolean;
448
- reason: any;
449
- } | {
450
- ok: boolean;
451
- reason?: undefined;
452
- };
416
+ showAddComment: (superdoc: any, targetClientY?: null) => any;
453
417
  addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
454
418
  superdoc: any;
455
419
  comment: any;
@@ -717,25 +681,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
717
681
  documentId: string;
718
682
  parentCommentId: string;
719
683
  }) => Object;
720
- showAddComment: (superdoc: any, targetClientY?: null) => Promise<{
721
- ok: boolean;
722
- reason: any;
723
- detail: any;
724
- } | {
725
- ok: boolean;
726
- reason?: undefined;
727
- detail?: undefined;
728
- } | {
729
- ok: boolean;
730
- reason: string;
731
- detail: any;
732
- }> | {
733
- ok: boolean;
734
- reason: any;
735
- } | {
736
- ok: boolean;
737
- reason?: undefined;
738
- };
684
+ showAddComment: (superdoc: any, targetClientY?: null) => any;
739
685
  addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
740
686
  superdoc: any;
741
687
  comment: any;
@@ -1034,25 +980,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1034
980
  documentId: string;
1035
981
  parentCommentId: string;
1036
982
  }) => Object;
1037
- showAddComment: (superdoc: any, targetClientY?: null) => Promise<{
1038
- ok: boolean;
1039
- reason: any;
1040
- detail: any;
1041
- } | {
1042
- ok: boolean;
1043
- reason?: undefined;
1044
- detail?: undefined;
1045
- } | {
1046
- ok: boolean;
1047
- reason: string;
1048
- detail: any;
1049
- }> | {
1050
- ok: boolean;
1051
- reason: any;
1052
- } | {
1053
- ok: boolean;
1054
- reason?: undefined;
1055
- };
983
+ showAddComment: (superdoc: any, targetClientY?: null) => any;
1056
984
  addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
1057
985
  superdoc: any;
1058
986
  comment: any;
@@ -1320,25 +1248,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1320
1248
  documentId: string;
1321
1249
  parentCommentId: string;
1322
1250
  }) => Object;
1323
- showAddComment: (superdoc: any, targetClientY?: null) => Promise<{
1324
- ok: boolean;
1325
- reason: any;
1326
- detail: any;
1327
- } | {
1328
- ok: boolean;
1329
- reason?: undefined;
1330
- detail?: undefined;
1331
- } | {
1332
- ok: boolean;
1333
- reason: string;
1334
- detail: any;
1335
- }> | {
1336
- ok: boolean;
1337
- reason: any;
1338
- } | {
1339
- ok: boolean;
1340
- reason?: undefined;
1341
- };
1251
+ showAddComment: (superdoc: any, targetClientY?: null) => any;
1342
1252
  addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
1343
1253
  superdoc: any;
1344
1254
  comment: any;
@@ -1606,25 +1516,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1606
1516
  documentId: string;
1607
1517
  parentCommentId: string;
1608
1518
  }) => Object;
1609
- showAddComment: (superdoc: any, targetClientY?: null) => Promise<{
1610
- ok: boolean;
1611
- reason: any;
1612
- detail: any;
1613
- } | {
1614
- ok: boolean;
1615
- reason?: undefined;
1616
- detail?: undefined;
1617
- } | {
1618
- ok: boolean;
1619
- reason: string;
1620
- detail: any;
1621
- }> | {
1622
- ok: boolean;
1623
- reason: any;
1624
- } | {
1625
- ok: boolean;
1626
- reason?: undefined;
1627
- };
1519
+ showAddComment: (superdoc: any, targetClientY?: null) => any;
1628
1520
  addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
1629
1521
  superdoc: any;
1630
1522
  comment: any;
@@ -1923,25 +1815,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
1923
1815
  documentId: string;
1924
1816
  parentCommentId: string;
1925
1817
  }) => Object;
1926
- showAddComment: (superdoc: any, targetClientY?: null) => Promise<{
1927
- ok: boolean;
1928
- reason: any;
1929
- detail: any;
1930
- } | {
1931
- ok: boolean;
1932
- reason?: undefined;
1933
- detail?: undefined;
1934
- } | {
1935
- ok: boolean;
1936
- reason: string;
1937
- detail: any;
1938
- }> | {
1939
- ok: boolean;
1940
- reason: any;
1941
- } | {
1942
- ok: boolean;
1943
- reason?: undefined;
1944
- };
1818
+ showAddComment: (superdoc: any, targetClientY?: null) => any;
1945
1819
  addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
1946
1820
  superdoc: any;
1947
1821
  comment: any;
@@ -2209,25 +2083,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2209
2083
  documentId: string;
2210
2084
  parentCommentId: string;
2211
2085
  }) => Object;
2212
- showAddComment: (superdoc: any, targetClientY?: null) => Promise<{
2213
- ok: boolean;
2214
- reason: any;
2215
- detail: any;
2216
- } | {
2217
- ok: boolean;
2218
- reason?: undefined;
2219
- detail?: undefined;
2220
- } | {
2221
- ok: boolean;
2222
- reason: string;
2223
- detail: any;
2224
- }> | {
2225
- ok: boolean;
2226
- reason: any;
2227
- } | {
2228
- ok: boolean;
2229
- reason?: undefined;
2230
- };
2086
+ showAddComment: (superdoc: any, targetClientY?: null) => any;
2231
2087
  addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
2232
2088
  superdoc: any;
2233
2089
  comment: any;
@@ -2495,25 +2351,7 @@ export declare const useSuperdocStore: import('pinia').StoreDefinition<"superdoc
2495
2351
  documentId: string;
2496
2352
  parentCommentId: string;
2497
2353
  }) => Object;
2498
- showAddComment: (superdoc: any, targetClientY?: null) => Promise<{
2499
- ok: boolean;
2500
- reason: any;
2501
- detail: any;
2502
- } | {
2503
- ok: boolean;
2504
- reason?: undefined;
2505
- detail?: undefined;
2506
- } | {
2507
- ok: boolean;
2508
- reason: string;
2509
- detail: any;
2510
- }> | {
2511
- ok: boolean;
2512
- reason: any;
2513
- } | {
2514
- ok: boolean;
2515
- reason?: undefined;
2516
- };
2354
+ showAddComment: (superdoc: any, targetClientY?: null) => any;
2517
2355
  addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
2518
2356
  superdoc: any;
2519
2357
  comment: any;