superdoc 2.28.0-next.17 → 2.28.0-next.18

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.
@@ -6717,9 +6717,19 @@ function createSuperDocUI(options) {
6717
6717
  if (seeded > 0) dirtyHosts.add(host);
6718
6718
  else if (revision === 0) dirtyHosts.delete(host);
6719
6719
  };
6720
- const hasLocalDocumentMutation = () => {
6720
+ const savedPoint = () => {
6721
6721
  const host = getHost();
6722
+ return {
6723
+ host,
6724
+ isDirty: hostMethod(host, "isDirty"),
6725
+ getDocumentVersion: hostMethod(host, "getDocumentVersion"),
6726
+ markSaved: hostMethod(host, "markSaved")
6727
+ };
6728
+ };
6729
+ const hasLocalDocumentMutation = () => {
6730
+ const { host, isDirty } = savedPoint();
6722
6731
  if (!host) return false;
6732
+ if (isDirty) return Boolean(safeCall(() => isDirty(), false));
6723
6733
  seedLocalDocumentMutation(host);
6724
6734
  return dirtyHosts.has(host);
6725
6735
  };
@@ -10290,10 +10300,13 @@ function createSuperDocUI(options) {
10290
10300
  for (const [commandId, optimistic] of optimisticInlineToggles) if (optimistic.settled || type === "collaboration:document-replaced") optimisticInlineToggles.delete(commandId);
10291
10301
  }
10292
10302
  if (isStandaloneDocumentMutation || type === "mutation:committed" && mutationCommittedEventChangedVisibleContent(event) || type === "collaboration:remote-changed" && Array.isArray(event.changedStoryIds) && event.changedStoryIds.length > 0) scheduleActiveSearchRefresh();
10293
- if ((type === "document:mutated" || type === "mutation:committed" && mutationCommittedEventChangedDocument(event)) && host && !dirtyHosts.has(host)) {
10303
+ const documentEdited = type === "document:mutated" || type === "mutation:committed" && mutationCommittedEventChangedDocument(event);
10304
+ if (documentEdited && host && hostMethod(host, "isDirty")) recompute("document-dirty");
10305
+ else if (documentEdited && host && !dirtyHosts.has(host)) {
10294
10306
  dirtyHosts.add(host);
10295
10307
  recompute("document-dirty");
10296
10308
  }
10309
+ if (type === "document:saved-point-changed") recompute("document-dirty");
10297
10310
  if (type === "collaboration:document-replaced" && host) {
10298
10311
  dirtyHosts.delete(host);
10299
10312
  hostSeededMutationRevision.delete(host);
@@ -13845,6 +13858,23 @@ function createSuperDocUI(options) {
13845
13858
  if (disposed) return () => {};
13846
13859
  documentChangeListeners.add(listener);
13847
13860
  return () => documentChangeListeners.delete(listener);
13861
+ },
13862
+ getVersion: () => {
13863
+ const { getDocumentVersion } = savedPoint();
13864
+ const version = getDocumentVersion ? safeCall(() => getDocumentVersion(), null) : null;
13865
+ return typeof version === "string" ? version : null;
13866
+ },
13867
+ markClean: (version) => {
13868
+ const { markSaved } = savedPoint();
13869
+ if (!markSaved) return {
13870
+ ok: false,
13871
+ reason: "unavailable"
13872
+ };
13873
+ const result = safeCall(() => markSaved(version), null);
13874
+ return isPlainObject(result) && result.ok === true ? { ok: true } : {
13875
+ ok: false,
13876
+ reason: isPlainObject(result) && result.reason === "document-changed" ? "document-changed" : "unavailable"
13877
+ };
13848
13878
  }
13849
13879
  };
13850
13880
  const resolveVisibleHost = () => {
@@ -6716,9 +6716,19 @@ function createSuperDocUI(options) {
6716
6716
  if (seeded > 0) dirtyHosts.add(host);
6717
6717
  else if (revision === 0) dirtyHosts.delete(host);
6718
6718
  };
6719
- const hasLocalDocumentMutation = () => {
6719
+ const savedPoint = () => {
6720
6720
  const host = getHost();
6721
+ return {
6722
+ host,
6723
+ isDirty: hostMethod(host, "isDirty"),
6724
+ getDocumentVersion: hostMethod(host, "getDocumentVersion"),
6725
+ markSaved: hostMethod(host, "markSaved")
6726
+ };
6727
+ };
6728
+ const hasLocalDocumentMutation = () => {
6729
+ const { host, isDirty } = savedPoint();
6721
6730
  if (!host) return false;
6731
+ if (isDirty) return Boolean(safeCall(() => isDirty(), false));
6722
6732
  seedLocalDocumentMutation(host);
6723
6733
  return dirtyHosts.has(host);
6724
6734
  };
@@ -10289,10 +10299,13 @@ function createSuperDocUI(options) {
10289
10299
  for (const [commandId, optimistic] of optimisticInlineToggles) if (optimistic.settled || type === "collaboration:document-replaced") optimisticInlineToggles.delete(commandId);
10290
10300
  }
10291
10301
  if (isStandaloneDocumentMutation || type === "mutation:committed" && mutationCommittedEventChangedVisibleContent(event) || type === "collaboration:remote-changed" && Array.isArray(event.changedStoryIds) && event.changedStoryIds.length > 0) scheduleActiveSearchRefresh();
10292
- if ((type === "document:mutated" || type === "mutation:committed" && mutationCommittedEventChangedDocument(event)) && host && !dirtyHosts.has(host)) {
10302
+ const documentEdited = type === "document:mutated" || type === "mutation:committed" && mutationCommittedEventChangedDocument(event);
10303
+ if (documentEdited && host && hostMethod(host, "isDirty")) recompute("document-dirty");
10304
+ else if (documentEdited && host && !dirtyHosts.has(host)) {
10293
10305
  dirtyHosts.add(host);
10294
10306
  recompute("document-dirty");
10295
10307
  }
10308
+ if (type === "document:saved-point-changed") recompute("document-dirty");
10296
10309
  if (type === "collaboration:document-replaced" && host) {
10297
10310
  dirtyHosts.delete(host);
10298
10311
  hostSeededMutationRevision.delete(host);
@@ -13844,6 +13857,23 @@ function createSuperDocUI(options) {
13844
13857
  if (disposed) return () => {};
13845
13858
  documentChangeListeners.add(listener);
13846
13859
  return () => documentChangeListeners.delete(listener);
13860
+ },
13861
+ getVersion: () => {
13862
+ const { getDocumentVersion } = savedPoint();
13863
+ const version = getDocumentVersion ? safeCall(() => getDocumentVersion(), null) : null;
13864
+ return typeof version === "string" ? version : null;
13865
+ },
13866
+ markClean: (version) => {
13867
+ const { markSaved } = savedPoint();
13868
+ if (!markSaved) return {
13869
+ ok: false,
13870
+ reason: "unavailable"
13871
+ };
13872
+ const result = safeCall(() => markSaved(version), null);
13873
+ return isPlainObject(result) && result.ok === true ? { ok: true } : {
13874
+ ok: false,
13875
+ reason: isPlainObject(result) && result.reason === "document-changed" ? "document-changed" : "unavailable"
13876
+ };
13847
13877
  }
13848
13878
  };
13849
13879
  const resolveVisibleHost = () => {
@@ -19,7 +19,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
19
19
  var PRIVATE_ENGINE_INFO = (0, _superdoc_docx_engine_collaboration_upgrade_engine.getCollaborationUpgradeEngineInfo)();
20
20
  var ENGINE_INFO = Object.freeze({
21
21
  ...PRIVATE_ENGINE_INFO,
22
- superdocVersion: "2.28.0-next.17",
22
+ superdocVersion: "2.28.0-next.18",
23
23
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
24
24
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
25
25
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
@@ -18,7 +18,7 @@ var COLLABORATION_UPGRADE_ENGINE_MINIMUM_NODE_MAJOR = 20;
18
18
  var PRIVATE_ENGINE_INFO = getCollaborationUpgradeEngineInfo$1();
19
19
  var ENGINE_INFO = Object.freeze({
20
20
  ...PRIVATE_ENGINE_INFO,
21
- superdocVersion: "2.28.0-next.17",
21
+ superdocVersion: "2.28.0-next.18",
22
22
  roomSchemaVersion: Object.freeze({ ...PRIVATE_ENGINE_INFO.roomSchemaVersion }),
23
23
  supportedBundleVersions: SUPPORTED_COLLABORATION_UPGRADE_BUNDLE_VERSIONS,
24
24
  supportedV1ReaderContractVersions: SUPPORTED_V1_READER_CONTRACT_VERSIONS
@@ -2829,7 +2829,7 @@ export declare const OPERATION_DEFINITIONS: {
2829
2829
  readonly 'footnotes.insert': {
2830
2830
  readonly memberPath: "footnotes.insert";
2831
2831
  readonly description: "Insert a new footnote or endnote at a target location or the current selection.";
2832
- readonly expectedResult: "Returns a FootnoteMutationResult indicating success with the footnote address or a failure.";
2832
+ readonly expectedResult: string;
2833
2833
  readonly requiresDocumentContext: true;
2834
2834
  readonly metadata: CommandStaticMetadata;
2835
2835
  readonly referenceDocPath: "footnotes/insert.mdx";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-CXdsObDZ.cjs");
2
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-DOnTWcx7.cjs");
3
3
  const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
4
4
  let react = require("react");
5
5
  let use_sync_external_store_shim = require("use-sync-external-store/shim");
@@ -1,4 +1,4 @@
1
- import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-CAfcpwSS.es.js";
1
+ import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-gI3fiM_P.es.js";
2
2
  import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
3
3
  import { createContext, createElement, useCallback, useContext, useEffect, useRef, useState } from "react";
4
4
  import { useSyncExternalStore } from "use-sync-external-store/shim";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-CXdsObDZ.cjs");
2
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-DOnTWcx7.cjs");
3
3
  const require_slice_source = require("../chunks/slice-source-CFaqq0Vo.cjs");
4
4
  let superdoc_entry_vue = require("vue");
5
5
  //#region src/public/ui/vue.ts
@@ -1,4 +1,4 @@
1
- import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-CAfcpwSS.es.js";
1
+ import { t as createSuperDocUI } from "../chunks/create-super-doc-ui-gI3fiM_P.es.js";
2
2
  import { t as toSliceSource } from "../chunks/slice-source-gfOhG2MW.es.js";
3
3
  import { computed, inject, onScopeDispose, provide, shallowRef, toRaw, toValue, watch } from "vue";
4
4
  //#region src/public/ui/vue.ts
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-CXdsObDZ.cjs");
2
+ const require_create_super_doc_ui = require("../chunks/create-super-doc-ui-DOnTWcx7.cjs");
3
3
  //#region ../document-api/src/types/receipt.ts
4
4
  /** Read a known failure.details.reason without assuming every failure has one. */
5
5
  function getDocumentApiRejectionReason(details) {
@@ -1,4 +1,4 @@
1
- import { m as shallowEqual, s as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-CAfcpwSS.es.js";
1
+ import { m as shallowEqual, s as BUILT_IN_COMMAND_IDS, t as createSuperDocUI } from "../chunks/create-super-doc-ui-gI3fiM_P.es.js";
2
2
  //#region ../document-api/src/types/receipt.ts
3
3
  /** Read a known failure.details.reason without assuming every failure has one. */
4
4
  function getDocumentApiRejectionReason(details) {
@@ -1252,7 +1252,18 @@ export interface DocumentHandle extends SnapshotSubscribable<DocumentSlice> {
1252
1252
  /** Replace mounted content. Operational errors reject; an unavailable host returns `ok: false`. */
1253
1253
  replaceDocument(file: File | Blob | ArrayBuffer | Uint8Array): Promise<DocumentReplacementResult>;
1254
1254
  onChange(listener: (change: SuperDocDocumentChange) => void): () => void;
1255
+ getVersion(): DocumentVersion | null;
1256
+ markClean(version?: DocumentVersion): DocumentMarkCleanResult;
1255
1257
  }
1258
+ export type DocumentVersion = string & {
1259
+ readonly __documentVersion: unique symbol;
1260
+ };
1261
+ export type DocumentMarkCleanResult = {
1262
+ ok: true;
1263
+ } | {
1264
+ ok: false;
1265
+ reason: 'document-changed' | 'unavailable';
1266
+ };
1256
1267
  export interface ScopedDocumentHandle {
1257
1268
  onChange(listener: (change: SuperDocDocumentChange) => void): () => void;
1258
1269
  }
@@ -39,9 +39,11 @@ import type { DocumentApi as __Cjs_DocumentApi } from './ui.js' with { "resoluti
39
39
  import type { DocumentApiRejectionDetails as __Cjs_DocumentApiRejectionDetails } from './ui.js' with { "resolution-mode": "import" };
40
40
  import type { DocumentApiRejectionReason as __Cjs_DocumentApiRejectionReason } from './ui.js' with { "resolution-mode": "import" };
41
41
  import type { DocumentHandle as __Cjs_DocumentHandle } from './ui.js' with { "resolution-mode": "import" };
42
+ import type { DocumentMarkCleanResult as __Cjs_DocumentMarkCleanResult } from './ui.js' with { "resolution-mode": "import" };
42
43
  import type { DocumentReplacementResult as __Cjs_DocumentReplacementResult } from './ui.js' with { "resolution-mode": "import" };
43
44
  import type { DocumentSlice as __Cjs_DocumentSlice } from './ui.js' with { "resolution-mode": "import" };
44
45
  import type { DocumentStoryLocator as __Cjs_DocumentStoryLocator } from './ui.js' with { "resolution-mode": "import" };
46
+ import type { DocumentVersion as __Cjs_DocumentVersion } from './ui.js' with { "resolution-mode": "import" };
45
47
  import type { EntityAddress as __Cjs_EntityAddress } from './ui.js' with { "resolution-mode": "import" };
46
48
  import type { EqualityFn as __Cjs_EqualityFn } from './ui.js' with { "resolution-mode": "import" };
47
49
  import type { FontFamilyOption as __Cjs_FontFamilyOption } from './ui.js' with { "resolution-mode": "import" };
@@ -194,9 +196,11 @@ export type { __Cjs_DocumentApi as DocumentApi };
194
196
  export type { __Cjs_DocumentApiRejectionDetails as DocumentApiRejectionDetails };
195
197
  export type { __Cjs_DocumentApiRejectionReason as DocumentApiRejectionReason };
196
198
  export type { __Cjs_DocumentHandle as DocumentHandle };
199
+ export type { __Cjs_DocumentMarkCleanResult as DocumentMarkCleanResult };
197
200
  export type { __Cjs_DocumentReplacementResult as DocumentReplacementResult };
198
201
  export type { __Cjs_DocumentSlice as DocumentSlice };
199
202
  export type { __Cjs_DocumentStoryLocator as DocumentStoryLocator };
203
+ export type { __Cjs_DocumentVersion as DocumentVersion };
200
204
  export type { __Cjs_EntityAddress as EntityAddress };
201
205
  export type { __Cjs_EqualityFn as EqualityFn };
202
206
  export type { __Cjs_FontFamilyOption as FontFamilyOption };
@@ -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, SuperDocDocumentChange, ScopedDocumentHandle, 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';
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, SuperDocDocumentChange, DocumentVersion, DocumentMarkCleanResult, ScopedDocumentHandle, 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';
@@ -78,17 +78,6 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
78
78
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
79
79
  getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
80
80
  getCommentPosition: (commentOrId: Object | string) => Object | null;
81
- getCommentAnchoredText: (commentOrId: Object | string, options?: {
82
- separator?: string | undefined;
83
- trim?: boolean | undefined;
84
- }) => string | null;
85
- getCommentAnchorData: (commentOrId: Object | string, options?: {
86
- separator?: string | undefined;
87
- trim?: boolean | undefined;
88
- }) => {
89
- position: Object;
90
- anchoredText: string | null;
91
- } | null;
92
81
  resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
93
82
  key: string | null;
94
83
  entry: any;
@@ -158,7 +147,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
158
147
  superdoc: Object;
159
148
  params: Object;
160
149
  }) => void;
161
- syncResolvedCommentsWithDocument: ({ editor }?: {}) => number;
150
+ syncResolvedCommentsWithDocument: () => number;
162
151
  setActiveFloatingCommentInstance: (instanceId?: null) => void;
163
152
  requestInstantSidebarAlignment: (targetY?: null, threadId?: null, instanceId?: null) => void;
164
153
  peekInstantSidebarAlignment: () => null;
@@ -327,17 +316,6 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
327
316
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
328
317
  getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
329
318
  getCommentPosition: (commentOrId: Object | string) => Object | null;
330
- getCommentAnchoredText: (commentOrId: Object | string, options?: {
331
- separator?: string | undefined;
332
- trim?: boolean | undefined;
333
- }) => string | null;
334
- getCommentAnchorData: (commentOrId: Object | string, options?: {
335
- separator?: string | undefined;
336
- trim?: boolean | undefined;
337
- }) => {
338
- position: Object;
339
- anchoredText: string | null;
340
- } | null;
341
319
  resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
342
320
  key: string | null;
343
321
  entry: any;
@@ -407,7 +385,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
407
385
  superdoc: Object;
408
386
  params: Object;
409
387
  }) => void;
410
- syncResolvedCommentsWithDocument: ({ editor }?: {}) => number;
388
+ syncResolvedCommentsWithDocument: () => number;
411
389
  setActiveFloatingCommentInstance: (instanceId?: null) => void;
412
390
  requestInstantSidebarAlignment: (targetY?: null, threadId?: null, instanceId?: null) => void;
413
391
  peekInstantSidebarAlignment: () => null;
@@ -576,17 +554,6 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
576
554
  getTrackedChangeThread: (parentComment: any) => any[] | readonly never[];
577
555
  getCommentPositionKey: (commentOrId: Object | string | null | undefined) => string | null;
578
556
  getCommentPosition: (commentOrId: Object | string) => Object | null;
579
- getCommentAnchoredText: (commentOrId: Object | string, options?: {
580
- separator?: string | undefined;
581
- trim?: boolean | undefined;
582
- }) => string | null;
583
- getCommentAnchorData: (commentOrId: Object | string, options?: {
584
- separator?: string | undefined;
585
- trim?: boolean | undefined;
586
- }) => {
587
- position: Object;
588
- anchoredText: string | null;
589
- } | null;
590
557
  resolveCommentPositionEntry: (commentOrId: any, preferredId: any) => {
591
558
  key: string | null;
592
559
  entry: any;
@@ -656,7 +623,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
656
623
  superdoc: Object;
657
624
  params: Object;
658
625
  }) => void;
659
- syncResolvedCommentsWithDocument: ({ editor }?: {}) => number;
626
+ syncResolvedCommentsWithDocument: () => number;
660
627
  setActiveFloatingCommentInstance: (instanceId?: null) => void;
661
628
  requestInstantSidebarAlignment: (targetY?: null, threadId?: null, instanceId?: null) => void;
662
629
  peekInstantSidebarAlignment: () => null;
@@ -745,4 +712,4 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
745
712
  liveAnchorKeys?: null | undefined;
746
713
  }) => any;
747
714
  remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
748
- }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "getCommentAnchoredText" | "getCommentAnchorData" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "syncResolvedCommentsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "dropCommentsFromMutationImpact" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;
715
+ }, "getCommentAliasIds" | "getTrackedChangeThread" | "getCommentPositionKey" | "getCommentPosition" | "resolveCommentPositionEntry" | "getCommentDocumentId" | "belongsToDocument" | "init" | "setViewingVisibility" | "getComment" | "setActiveComment" | "getCommentLocation" | "hasOverlapId" | "getPendingComment" | "showAddComment" | "addComment" | "addHydratedComment" | "cancelComment" | "deleteComment" | "removePendingComment" | "removeCommentsForDocument" | "setReviewDirectoryFromV2" | "clearReviewDirectory" | "handleEditorLocationsUpdate" | "clearEditorCommentPositions" | "handleTrackedChangeUpdate" | "syncResolvedCommentsWithDocument" | "setActiveFloatingCommentInstance" | "requestInstantSidebarAlignment" | "peekInstantSidebarAlignment" | "clearInstantSidebarAlignment" | "decideTrackedChangeFromSidebar" | "setV2CommentsAdapter" | "getV2CommentsAdapter" | "applyReviewWindowFromV2" | "reconcileCommentsFromV2" | "announceV2CommentCreated" | "dropCommentsFromMutationImpact" | "isV2EditorActive" | "replyCommentV2" | "editCommentV2" | "resolveCommentV2" | "reopenCommentV2" | "setV2TrackedChangesAdapter" | "getV2TrackedChangesAdapter" | "getV2TrackedChangeRowCount" | "reconcileTrackedChangeMutationFromV2" | "reconcileTrackedChangesFromV2" | "remapTrackedChangeIdentities">>;