superdoc 2.27.0-next.3 → 2.27.0-next.5
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/chunks/{create-super-doc-ui-DK14sCrT.cjs → create-super-doc-ui-CqpZP17K.cjs} +34 -8
- package/dist/chunks/{create-super-doc-ui-BCQ5RHxy.es.js → create-super-doc-ui-mIZuVMA6.es.js} +29 -9
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/history/history.types.d.ts +0 -6
- package/dist/document-api/src/index.d.ts +1 -1
- package/dist/document-api/src/types/receipt.d.ts +2 -1
- package/dist/document-api/src/types/temporary-mutation.d.ts +16 -2
- package/dist/public/ui-react.cjs +1 -1
- package/dist/public/ui-react.es.js +1 -1
- package/dist/public/ui-vue.cjs +1 -1
- package/dist/public/ui-vue.es.js +1 -1
- package/dist/public/ui.cjs +1 -1
- package/dist/public/ui.es.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/core/types/index.d.ts +3 -60
- package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +2 -5
- package/dist/superdoc/src/helpers/tracked-change-comment-lane.d.ts +1 -0
- package/dist/superdoc/src/helpers/v2-review-mutation-impact.d.ts +0 -6
- package/dist/superdoc/src/public/ui/types.d.ts +1 -1
- package/dist/superdoc/src/public/ui-react.d.ts +0 -5
- package/dist/superdoc/src/public/ui-vue.d.ts +0 -5
- package/dist/superdoc/src/public/ui.d.cts +2 -0
- package/dist/superdoc/src/public/ui.d.ts +1 -10
- package/dist/superdoc.cjs +10 -28
- package/dist/superdoc.es.js +6 -24
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +38 -38
- package/package.json +2 -5
- package/dist/superdoc/src/components/CommentsLayer/comment-schemas.d.ts +0 -18
- package/dist/superdoc/src/components/CommentsLayer/types.d.ts +0 -3
- package/dist/superdoc/src/components/CommentsLayer/use-conversation.d.ts +0 -22
- package/dist/superdoc/src/components/CommentsLayer/use-floating-comment.d.ts +0 -11
- package/dist/superdoc/src/core/collaboration/room-overwrite.d.ts +0 -22
- package/dist/superdoc/src/core/index.d.ts +0 -1
- package/dist/superdoc/src/stores/hrbr-fields-store.d.ts +0 -43
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isSyntheticTrackedChangeCommentLaneItem } from '../../helpers/tracked-change-comment-lane.js';
|
|
1
2
|
/**
|
|
2
3
|
* Replace the package loader before engine loading starts. The CDN entry uses
|
|
3
4
|
* this seam to fetch the exact engine version from its public package URL.
|
|
@@ -9,11 +10,6 @@ export function configureDefaultV2IntegrationLoader(loader: () => Promise<unknow
|
|
|
9
10
|
export function loadDefaultV2Integration(): Promise<void>;
|
|
10
11
|
/** Load the engine for editor startup, preserving the fail-closed stub on failure. */
|
|
11
12
|
export function loadDefaultV2IntegrationOrFallback(): Promise<void>;
|
|
12
|
-
/**
|
|
13
|
-
* @param {unknown} item
|
|
14
|
-
* @returns {boolean}
|
|
15
|
-
*/
|
|
16
|
-
export function isSyntheticTrackedChangeCommentLaneItem(item: unknown): boolean;
|
|
17
13
|
/**
|
|
18
14
|
* @param {{ trackedChange?: unknown, trackedChangeAnchorKey?: unknown } | null | undefined} row
|
|
19
15
|
* @returns {boolean}
|
|
@@ -61,6 +57,7 @@ export function hasRealV2Integration(integration: SuperDocV2Integration | null |
|
|
|
61
57
|
*/
|
|
62
58
|
/** Default version for the local stub integration (V1-compatible). */
|
|
63
59
|
export const SUPERDOC_V2_INTEGRATION_VERSION: 1;
|
|
60
|
+
export { isSyntheticTrackedChangeCommentLaneItem };
|
|
64
61
|
export type SuperDocV2Integration = {
|
|
65
62
|
/**
|
|
66
63
|
* Integration contract version.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isSyntheticTrackedChangeCommentLaneItem(item: unknown): boolean;
|
|
@@ -36,12 +36,6 @@ type CommentInvalidationInput = {
|
|
|
36
36
|
export declare function getV2TrackedChangeMutationImpact(event: unknown): V2TrackedChangeMutationImpact | null;
|
|
37
37
|
/**
|
|
38
38
|
* Comment ids retired by a committed v2 mutation.
|
|
39
|
-
*
|
|
40
|
-
* AIDEV-NOTE: History commits put invalidated comment ids on `result`; cut and
|
|
41
|
-
* other command receipts use `receipt`. Same origin split as
|
|
42
|
-
* getV2TrackedChangeMutationImpact. Reading the wrong field, or treating a
|
|
43
|
-
* tracked-change entity as a comment, leaves a sidebar card after cut or
|
|
44
|
-
* undo/redo.
|
|
45
39
|
*/
|
|
46
40
|
export declare function collectV2InvalidatedCommentIds(event: unknown): Set<string>;
|
|
47
41
|
export declare function applyV2CommentInvalidationFromMutation({ event, commentsStore, superdoc, documentId, }?: CommentInvalidationInput): CommentInvalidationResult;
|
|
@@ -30,7 +30,7 @@ import { BuiltInCommandId } from './commands.js';
|
|
|
30
30
|
* (`scripts/ensure-types.cjs` `rewriteDocApiPaths`), so no bare private
|
|
31
31
|
* specifier leaks into the emitted `.d.ts`.
|
|
32
32
|
*/
|
|
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, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, StoryLocator as DocumentStoryLocator, } from '../../../../document-api/src/index.js';
|
|
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, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, StoryLocator as DocumentStoryLocator, } from '../../../../document-api/src/index.js';
|
|
34
34
|
export type { StyleCatalogView, StyleCatalogItemType, StyleCatalogFilterType, StyleProvenance, StyleCatalogItemVisibility, StyleCatalogItemUsage, StyleCatalogItemPreview, StyleCatalogItem, StyleCatalogDefaults, StyleCatalogDiagnostic, StyleCatalogSourceStatus, StylesGetCatalogInput, StylesGetCatalogResult, } from '../../../../document-api/src/index.js';
|
|
35
35
|
export type { ListPresetId } from '../../../../document-api/src/index.js';
|
|
36
36
|
export type { BrowserDocumentApi, PartialBrowserDocumentApi } from '../browser-document-api.js';
|
|
@@ -10,11 +10,6 @@
|
|
|
10
10
|
* self-contained v2 React layer under `./ui/react.ts`, which is built on the
|
|
11
11
|
* v2-native controller. No v1 React bindings and no private v2 runtime
|
|
12
12
|
* imports.
|
|
13
|
-
*
|
|
14
|
-
* Rules for this file:
|
|
15
|
-
* - AIDEV-NOTE: Named exports only. No `export *`.
|
|
16
|
-
* - AIDEV-NOTE: `verify-public-facade-emit.cjs` parses this file and verifies
|
|
17
|
-
* the emitted declarations expose exactly these named exports.
|
|
18
13
|
*/
|
|
19
14
|
export { SuperDocUIProvider, useSuperDocUI, useSuperDocHost, useSetSuperDoc, useSuperDocSlice, useSuperDocSelection, useSuperDocSearch, useSuperDocComments, useSuperDocContentControls, useSuperDocTrackChanges, useSuperDocToolbar, useSuperDocCommand, useSuperDocDocument, useSuperDocDocumentApi, useSuperDocFontOptions, useSuperDocFontSizeOptions, useSuperDocZoom, } from './ui/react.js';
|
|
20
15
|
export type { SuperDocHost, SuperDocUIProviderProps, UseSuperDocCommandResult } from './ui/react.js';
|
|
@@ -10,11 +10,6 @@
|
|
|
10
10
|
* subpath. It routes through the local, self-contained v2 Vue layer under
|
|
11
11
|
* `./ui/vue.ts`, which is built on the v2-native controller. No v1 Vue
|
|
12
12
|
* bindings and no private v2 runtime imports.
|
|
13
|
-
*
|
|
14
|
-
* Rules for this file:
|
|
15
|
-
* - AIDEV-NOTE: Named exports only. No `export *`.
|
|
16
|
-
* - AIDEV-NOTE: `verify-public-facade-emit.cjs` parses this file and verifies
|
|
17
|
-
* the emitted declarations expose exactly these named exports.
|
|
18
13
|
*/
|
|
19
14
|
export { provideSuperDocUI, useSuperDocUI, useSuperDocHost, useSetSuperDoc, useClearSuperDoc, useSuperDocSlice, useSuperDocSelection, useSuperDocSearch, useSuperDocComments, useSuperDocContentControls, useSuperDocTrackChanges, useSuperDocToolbar, useSuperDocCommand, useSuperDocDocument, useSuperDocFontOptions, useSuperDocFontSizeOptions, useSuperDocZoom, } from './ui/vue.js';
|
|
20
15
|
export type { SuperDocHost, SuperDocUIBinding, UseSuperDocCommandResult } from './ui/vue.js';
|
|
@@ -104,6 +104,7 @@ import type { TemporaryMutationInput as __Cjs_TemporaryMutationInput } from './u
|
|
|
104
104
|
import type { TemporaryMutationOperation as __Cjs_TemporaryMutationOperation } from './ui.js' with { "resolution-mode": "import" };
|
|
105
105
|
import type { TemporaryMutationReceipt as __Cjs_TemporaryMutationReceipt } from './ui.js' with { "resolution-mode": "import" };
|
|
106
106
|
import type { TemporaryMutationReplaceInput as __Cjs_TemporaryMutationReplaceInput } from './ui.js' with { "resolution-mode": "import" };
|
|
107
|
+
import type { TemporaryOperationResultTarget as __Cjs_TemporaryOperationResultTarget } from './ui.js' with { "resolution-mode": "import" };
|
|
107
108
|
import type { TextAddress as __Cjs_TextAddress } from './ui.js' with { "resolution-mode": "import" };
|
|
108
109
|
import type { TextRangeRejectionReason as __Cjs_TextRangeRejectionReason } from './ui.js' with { "resolution-mode": "import" };
|
|
109
110
|
import type { TextTarget as __Cjs_TextTarget } from './ui.js' with { "resolution-mode": "import" };
|
|
@@ -249,6 +250,7 @@ export type { __Cjs_TemporaryMutationInput as TemporaryMutationInput };
|
|
|
249
250
|
export type { __Cjs_TemporaryMutationOperation as TemporaryMutationOperation };
|
|
250
251
|
export type { __Cjs_TemporaryMutationReceipt as TemporaryMutationReceipt };
|
|
251
252
|
export type { __Cjs_TemporaryMutationReplaceInput as TemporaryMutationReplaceInput };
|
|
253
|
+
export type { __Cjs_TemporaryOperationResultTarget as TemporaryOperationResultTarget };
|
|
252
254
|
export type { __Cjs_TextAddress as TextAddress };
|
|
253
255
|
export type { __Cjs_TextRangeRejectionReason as TextRangeRejectionReason };
|
|
254
256
|
export type { __Cjs_TextTarget as TextTarget };
|
|
@@ -13,19 +13,10 @@
|
|
|
13
13
|
* SuperDoc events — no v1 editor command/state/view/chain surface and no
|
|
14
14
|
* private v2 runtime packages are imported. SDK/headless document automation
|
|
15
15
|
* remains synchronous on its own surface.
|
|
16
|
-
*
|
|
17
|
-
* Rules for this file:
|
|
18
|
-
* - AIDEV-NOTE: Named exports only. No `export *`.
|
|
19
|
-
* - AIDEV-NOTE: Re-export source MUST stay the local `./ui/**` v2-native
|
|
20
|
-
* controller. Do NOT re-introduce the v1 editor UI subpath — that surface
|
|
21
|
-
* was removed in `superdoc@2` and `check-private-core.cjs` forbids any v1
|
|
22
|
-
* editor artifact in the emitted package.
|
|
23
|
-
* - AIDEV-NOTE: `verify-public-facade-emit.cjs` parses this file and verifies
|
|
24
|
-
* the emitted declarations expose exactly these named exports.
|
|
25
16
|
*/
|
|
26
17
|
export { createSuperDocUI } from './ui/create-super-doc-ui.js';
|
|
27
18
|
export { getDocumentApiRejectionReason } from './ui/rejection-reasons.js';
|
|
28
19
|
export { shallowEqual } from './ui/equality.js';
|
|
29
20
|
export { BUILT_IN_COMMAND_IDS } from './ui/commands.js';
|
|
30
|
-
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, 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, 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, StylesHandle, 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, TemporaryMutationInput, TemporaryMutationReplaceInput, TemporaryMutationHandleInput, TemporaryMutationReceipt, DocumentStoryLocator, } from './ui/types.js';
|
|
31
22
|
export type { PageMetricsHandle, PageMetricsSnapshot, PageMetricsPage, PageBodyTarget } from './ui/page-metrics.js';
|
package/dist/superdoc.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_rolldown_runtime = require("./chunks/rolldown-runtime-74VwNCz7.cjs");
|
|
3
3
|
const require_blank_docx = require("./chunks/blank-docx-BuFAbRjs.cjs");
|
|
4
|
-
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-
|
|
4
|
+
const require_create_super_doc_ui = require("./chunks/create-super-doc-ui-CqpZP17K.cjs");
|
|
5
5
|
const require_eventemitter3 = require("./chunks/eventemitter3-C_TAnXOl.cjs");
|
|
6
6
|
const require_uuid = require("./chunks/uuid-BhG0ngwk.cjs");
|
|
7
7
|
const require__plugin_vue_export_helper = require("./chunks/_plugin-vue_export-helper-BUdjGKyl.cjs");
|
|
@@ -260,7 +260,7 @@ var v_click_outside_default = {
|
|
|
260
260
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
261
261
|
function getSuperdocVersion() {
|
|
262
262
|
try {
|
|
263
|
-
return "2.27.0-next.
|
|
263
|
+
return "2.27.0-next.5";
|
|
264
264
|
} catch {
|
|
265
265
|
return "unknown";
|
|
266
266
|
}
|
|
@@ -7087,19 +7087,8 @@ async function loadDefaultV2IntegrationOrFallback() {
|
|
|
7087
7087
|
console.error("[SuperDoc] DOCX Engine failed to load; using the stub.", error);
|
|
7088
7088
|
}
|
|
7089
7089
|
}
|
|
7090
|
-
var V2_SYNTHETIC_TRACKED_CHANGE_COMMENT_ID_PREFIX = "tc-comment:";
|
|
7091
7090
|
var V2_BODY_TRACKED_CHANGE_ANCHOR_PREFIX = "tc::body::";
|
|
7092
7091
|
/**
|
|
7093
|
-
* @param {unknown} item
|
|
7094
|
-
* @returns {boolean}
|
|
7095
|
-
*/
|
|
7096
|
-
function isSyntheticTrackedChangeCommentLaneItem(item) {
|
|
7097
|
-
if (!item || typeof item !== "object") return false;
|
|
7098
|
-
const id = item.id ?? item.commentId;
|
|
7099
|
-
if (typeof id !== "string") return false;
|
|
7100
|
-
return id.startsWith(V2_SYNTHETIC_TRACKED_CHANGE_COMMENT_ID_PREFIX);
|
|
7101
|
-
}
|
|
7102
|
-
/**
|
|
7103
7092
|
* @param {{ trackedChange?: unknown, trackedChangeAnchorKey?: unknown } | null | undefined} row
|
|
7104
7093
|
* @returns {boolean}
|
|
7105
7094
|
*/
|
|
@@ -7165,7 +7154,7 @@ function createStubV2Integration() {
|
|
|
7165
7154
|
RulerComponent: null,
|
|
7166
7155
|
createGeometryPublisher: createStubGeometryPublisher,
|
|
7167
7156
|
createReviewWindowController: createStubReviewWindowController,
|
|
7168
|
-
isSyntheticTrackedChangeCommentLaneItem,
|
|
7157
|
+
isSyntheticTrackedChangeCommentLaneItem: require_create_super_doc_ui.isSyntheticTrackedChangeCommentLaneItem,
|
|
7169
7158
|
isV2SyntheticTrackedChangeRow
|
|
7170
7159
|
};
|
|
7171
7160
|
}
|
|
@@ -9352,7 +9341,7 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
9352
9341
|
}
|
|
9353
9342
|
const documentId = superdoc?.activeEditor?.documentId ?? superdoc?.activeEditor?.options?.documentId ?? commentsAdapter.documentId ?? trackedChangesAdapter.documentId ?? null;
|
|
9354
9343
|
const document = documentId != null ? superdocStore.getDocument(String(documentId)) : null;
|
|
9355
|
-
const mappedCommentInputs = commentItems.filter((item) => !isSyntheticTrackedChangeCommentLaneItem(item)).map((item) => commentsAdapter.mapV2CommentToUseCommentInput(item, {
|
|
9344
|
+
const mappedCommentInputs = commentItems.filter((item) => !require_create_super_doc_ui.isSyntheticTrackedChangeCommentLaneItem(item)).map((item) => commentsAdapter.mapV2CommentToUseCommentInput(item, {
|
|
9356
9345
|
fileId: documentId,
|
|
9357
9346
|
fileType: document?.type ?? null
|
|
9358
9347
|
})).filter(Boolean);
|
|
@@ -9885,7 +9874,7 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
9885
9874
|
...input.selection,
|
|
9886
9875
|
documentId: normalizedDocumentId
|
|
9887
9876
|
}
|
|
9888
|
-
})) : effectiveCommentItems.filter((item) => !isSyntheticTrackedChangeCommentLaneItem(item)).map((item) => commentsAdapter.mapV2CommentToUseCommentInput(item, {
|
|
9877
|
+
})) : effectiveCommentItems.filter((item) => !require_create_super_doc_ui.isSyntheticTrackedChangeCommentLaneItem(item)).map((item) => commentsAdapter.mapV2CommentToUseCommentInput(item, {
|
|
9889
9878
|
fileId: normalizedDocumentId,
|
|
9890
9879
|
fileType
|
|
9891
9880
|
})).filter(Boolean);
|
|
@@ -9990,7 +9979,7 @@ var useCommentsStore = defineStore("comments", () => {
|
|
|
9990
9979
|
const incomingByCommentId = /* @__PURE__ */ new Map();
|
|
9991
9980
|
const trackedChangeSidecarParentByCommentId = /* @__PURE__ */ new Map();
|
|
9992
9981
|
const mappedInputs = [];
|
|
9993
|
-
const candidateInputs = Array.isArray(preparedInputs) ? preparedInputs : items.filter((item) => !isSyntheticTrackedChangeCommentLaneItem(item)).map((item) => adapter.mapV2CommentToUseCommentInput(item, {
|
|
9982
|
+
const candidateInputs = Array.isArray(preparedInputs) ? preparedInputs : items.filter((item) => !require_create_super_doc_ui.isSyntheticTrackedChangeCommentLaneItem(item)).map((item) => adapter.mapV2CommentToUseCommentInput(item, {
|
|
9994
9983
|
fileId: effectiveDocumentId,
|
|
9995
9984
|
fileType
|
|
9996
9985
|
})).filter(Boolean);
|
|
@@ -13005,7 +12994,7 @@ var _sfc_main$35 = {
|
|
|
13005
12994
|
};
|
|
13006
12995
|
}
|
|
13007
12996
|
};
|
|
13008
|
-
var CommentHeader_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main$35, [["__scopeId", "data-v-
|
|
12997
|
+
var CommentHeader_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main$35, [["__scopeId", "data-v-b2a33943"]]);
|
|
13009
12998
|
//#endregion
|
|
13010
12999
|
//#region src/components/CommentsLayer/CommentInput.vue
|
|
13011
13000
|
var _hoisted_1$27 = { class: "input-section" };
|
|
@@ -14617,7 +14606,7 @@ var _sfc_main$33 = {
|
|
|
14617
14606
|
};
|
|
14618
14607
|
}
|
|
14619
14608
|
};
|
|
14620
|
-
var CommentDialog_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main$33, [["__scopeId", "data-v-
|
|
14609
|
+
var CommentDialog_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main$33, [["__scopeId", "data-v-f5016db4"]]);
|
|
14621
14610
|
//#endregion
|
|
14622
14611
|
//#region src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue
|
|
14623
14612
|
var _hoisted_1$25 = [
|
|
@@ -37951,13 +37940,6 @@ var TOOLBAR_ITEM_ALIASES = Object.freeze({
|
|
|
37951
37940
|
* `superdoc.ui`.
|
|
37952
37941
|
* - `ui: { ... }` opts in per surface. An omitted key keeps that surface's
|
|
37953
37942
|
* historical default rather than inheriting from its siblings.
|
|
37954
|
-
*
|
|
37955
|
-
* AIDEV-NOTE: legacy-public - the `modules.*` built-in UI spellings shipped in
|
|
37956
|
-
* stable 2.3.0 and stay supported for all of v2, so these branches are load
|
|
37957
|
-
* bearing rather than scaffolding. Every built-in surface now has a canonical
|
|
37958
|
-
* path: use `ui.*`, `interaction.*`, `surfaces.*`, or `hyperlinks.*`, with
|
|
37959
|
-
* comment policy on `interaction.comments` and hyperlink activation on
|
|
37960
|
-
* `hyperlinks.onActivate`. Earliest removal: v3.0.
|
|
37961
37943
|
*/
|
|
37962
37944
|
var isUnknownArray = (value) => Array.isArray(value);
|
|
37963
37945
|
var isOptionsBag = (value) => require_create_super_doc_ui.isPlainObject(value);
|
|
@@ -41330,7 +41312,7 @@ var _sfc_main$11 = {
|
|
|
41330
41312
|
};
|
|
41331
41313
|
}
|
|
41332
41314
|
};
|
|
41333
|
-
var ButtonGroup_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main$11, [["__scopeId", "data-v-
|
|
41315
|
+
var ButtonGroup_default = /*#__PURE__*/ require__plugin_vue_export_helper._plugin_vue_export_helper_default(_sfc_main$11, [["__scopeId", "data-v-fb216897"]]);
|
|
41334
41316
|
var TOOLBAR_FONTS = [
|
|
41335
41317
|
["Arial", "sans-serif"],
|
|
41336
41318
|
["Arial Black", "sans-serif"],
|
|
@@ -46242,7 +46224,7 @@ var SuperDoc = class extends require_eventemitter3.import_eventemitter3.default
|
|
|
46242
46224
|
}
|
|
46243
46225
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46244
46226
|
this.colorIndex = 0;
|
|
46245
|
-
this.version = "2.27.0-next.
|
|
46227
|
+
this.version = "2.27.0-next.5";
|
|
46246
46228
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46247
46229
|
this.superdocId = config.superdocId || require_uuid.v4();
|
|
46248
46230
|
this.colors = this.config.colors ?? [];
|
package/dist/superdoc.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __toESM$2 } from "./chunks/rolldown-runtime-0pSA04fp.es.js";
|
|
2
2
|
import { t as blank_default } from "./chunks/blank-docx-DzQccOlW.es.js";
|
|
3
|
-
import { _ as
|
|
3
|
+
import { _ as getWorkflowRecording, a as registerFirstPartyCommandMutation, c as getV2TrackedChangeMutationImpact, d as resolveImageSrc, g as createInteractionHistory, h as closeInteractionHistory, i as readFirstPartyPageNumbers, l as isPlainObject$1, m as DOM_CLASS_NAMES, n as executeFirstPartyCommandAsync, p as isSyntheticTrackedChangeCommentLaneItem, r as executeFirstPartyShortcutAsync, s as applyV2CommentInvalidationFromMutation, t as createSuperDocUI, u as createImageFilePicker, v as isWorkflowRecordingEnabled, y as recordInteraction } from "./chunks/create-super-doc-ui-mIZuVMA6.es.js";
|
|
4
4
|
import { t as import_eventemitter3 } from "./chunks/eventemitter3-DEIiXiH2.es.js";
|
|
5
5
|
import { t as v4 } from "./chunks/uuid-H0Xcmmhy.es.js";
|
|
6
6
|
import { $ as vModelText, A as onActivated, B as renderSlot, C as isRef$1, D as normalizeClass, E as nextTick, F as openBlock, G as toRaw$2, H as resolveDynamicComponent, I as provide$1, J as unref, K as toRef, L as reactive, M as onDeactivated, N as onMounted, O as normalizeProps, P as onScopeDispose$1, Q as vModelSelect, R as ref, S as isReactive$1, T as mergeProps, U as shallowRef$1, V as resolveDirective, W as toDisplayString, X as useSlots, Y as useAttrs, Z as vModelCheckbox, _ as getCurrentInstance, a as computed$1, b as hasInjectionContext, c as createCommentVNode, d as createStaticVNode, et as watch$1, f as createTextVNode, g as effectScope, h as defineComponent, i as Transition, it as withModifiers, j as onBeforeUnmount, k as normalizeStyle, l as createElementBlock, m as defineAsyncComponent, n as Fragment, nt as withDirectives, o as createApp, p as createVNode, q as toRefs, r as Teleport, rt as withKeys, s as createBlock, t as _plugin_vue_export_helper_default, tt as withCtx, u as createElementVNode, v as getCurrentScope, w as markRaw, x as inject$1, y as h, z as renderList } from "./chunks/_plugin-vue_export-helper-7ZiLY07t.es.js";
|
|
@@ -258,7 +258,7 @@ var v_click_outside_default = {
|
|
|
258
258
|
var DEFAULT_ENDPOINT = "https://ingest.superdoc.dev/v1/collect";
|
|
259
259
|
function getSuperdocVersion() {
|
|
260
260
|
try {
|
|
261
|
-
return "2.27.0-next.
|
|
261
|
+
return "2.27.0-next.5";
|
|
262
262
|
} catch {
|
|
263
263
|
return "unknown";
|
|
264
264
|
}
|
|
@@ -7085,19 +7085,8 @@ async function loadDefaultV2IntegrationOrFallback() {
|
|
|
7085
7085
|
console.error("[SuperDoc] DOCX Engine failed to load; using the stub.", error);
|
|
7086
7086
|
}
|
|
7087
7087
|
}
|
|
7088
|
-
var V2_SYNTHETIC_TRACKED_CHANGE_COMMENT_ID_PREFIX = "tc-comment:";
|
|
7089
7088
|
var V2_BODY_TRACKED_CHANGE_ANCHOR_PREFIX = "tc::body::";
|
|
7090
7089
|
/**
|
|
7091
|
-
* @param {unknown} item
|
|
7092
|
-
* @returns {boolean}
|
|
7093
|
-
*/
|
|
7094
|
-
function isSyntheticTrackedChangeCommentLaneItem(item) {
|
|
7095
|
-
if (!item || typeof item !== "object") return false;
|
|
7096
|
-
const id = item.id ?? item.commentId;
|
|
7097
|
-
if (typeof id !== "string") return false;
|
|
7098
|
-
return id.startsWith(V2_SYNTHETIC_TRACKED_CHANGE_COMMENT_ID_PREFIX);
|
|
7099
|
-
}
|
|
7100
|
-
/**
|
|
7101
7090
|
* @param {{ trackedChange?: unknown, trackedChangeAnchorKey?: unknown } | null | undefined} row
|
|
7102
7091
|
* @returns {boolean}
|
|
7103
7092
|
*/
|
|
@@ -12999,7 +12988,7 @@ var CommentHeader_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
12999
12988
|
], 2)]);
|
|
13000
12989
|
};
|
|
13001
12990
|
}
|
|
13002
|
-
}, [["__scopeId", "data-v-
|
|
12991
|
+
}, [["__scopeId", "data-v-b2a33943"]]);
|
|
13003
12992
|
//#endregion
|
|
13004
12993
|
//#region src/components/CommentsLayer/CommentInput.vue
|
|
13005
12994
|
var _hoisted_1$27 = { class: "input-section" };
|
|
@@ -14609,7 +14598,7 @@ var CommentDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
14609
14598
|
], 64))], 14, _hoisted_1$26)), [[_directive_click_outside, handleClickOutside]]);
|
|
14610
14599
|
};
|
|
14611
14600
|
}
|
|
14612
|
-
}, [["__scopeId", "data-v-
|
|
14601
|
+
}, [["__scopeId", "data-v-f5016db4"]]);
|
|
14613
14602
|
//#endregion
|
|
14614
14603
|
//#region src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue
|
|
14615
14604
|
var _hoisted_1$25 = [
|
|
@@ -37911,13 +37900,6 @@ var TOOLBAR_ITEM_ALIASES = Object.freeze({
|
|
|
37911
37900
|
* `superdoc.ui`.
|
|
37912
37901
|
* - `ui: { ... }` opts in per surface. An omitted key keeps that surface's
|
|
37913
37902
|
* historical default rather than inheriting from its siblings.
|
|
37914
|
-
*
|
|
37915
|
-
* AIDEV-NOTE: legacy-public - the `modules.*` built-in UI spellings shipped in
|
|
37916
|
-
* stable 2.3.0 and stay supported for all of v2, so these branches are load
|
|
37917
|
-
* bearing rather than scaffolding. Every built-in surface now has a canonical
|
|
37918
|
-
* path: use `ui.*`, `interaction.*`, `surfaces.*`, or `hyperlinks.*`, with
|
|
37919
|
-
* comment policy on `interaction.comments` and hyperlink activation on
|
|
37920
|
-
* `hyperlinks.onActivate`. Earliest removal: v3.0.
|
|
37921
37903
|
*/
|
|
37922
37904
|
var isUnknownArray = (value) => Array.isArray(value);
|
|
37923
37905
|
var isOptionsBag = (value) => isPlainObject$1(value);
|
|
@@ -41280,7 +41262,7 @@ var ButtonGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default({
|
|
|
41280
41262
|
}), 128))], 36);
|
|
41281
41263
|
};
|
|
41282
41264
|
}
|
|
41283
|
-
}, [["__scopeId", "data-v-
|
|
41265
|
+
}, [["__scopeId", "data-v-fb216897"]]);
|
|
41284
41266
|
var TOOLBAR_FONTS = [
|
|
41285
41267
|
["Arial", "sans-serif"],
|
|
41286
41268
|
["Arial Black", "sans-serif"],
|
|
@@ -46172,7 +46154,7 @@ var SuperDoc = class extends import_eventemitter3.default {
|
|
|
46172
46154
|
}
|
|
46173
46155
|
this.userColorMap = /* @__PURE__ */ new Map();
|
|
46174
46156
|
this.colorIndex = 0;
|
|
46175
|
-
this.version = "2.27.0-next.
|
|
46157
|
+
this.version = "2.27.0-next.5";
|
|
46176
46158
|
this.#log("🦋 [superdoc] Using SuperDoc version:", this.version);
|
|
46177
46159
|
this.superdocId = config.superdocId || v4();
|
|
46178
46160
|
this.colors = this.config.colors ?? [];
|