superdoc 2.29.0-next.9 → 2.30.0-next.4
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/README.md +127 -25
- package/dist/chunks/{FindReplaceSurface-BKVHzhQ4.es.js → FindReplaceSurface-BEnRLpD9.es.js} +1 -1
- package/dist/chunks/{FindReplaceSurface-BNDrJ6VS.cjs → FindReplaceSurface-DWXgWgg7.cjs} +1 -1
- package/dist/chunks/{PasswordPromptSurface-6mF6Azda.es.js → PasswordPromptSurface-DjV1JgjD.es.js} +1 -1
- package/dist/chunks/{PasswordPromptSurface-BNkaztaP.cjs → PasswordPromptSurface-VFPnQOML.cjs} +1 -1
- package/dist/chunks/{PdfViewer-aOWhUVI7.es.js → PdfViewer-C2r-K8zC.es.js} +4 -10
- package/dist/chunks/{PdfViewer-DmSkZehl.cjs → PdfViewer-DYTbPVUr.cjs} +4 -10
- package/dist/chunks/{_plugin-vue_export-helper-6MBoygIY.cjs → _plugin-vue_export-helper-BzM2_tVU.cjs} +40 -7
- package/dist/chunks/{_plugin-vue_export-helper-CsJQtMvr.es.js → _plugin-vue_export-helper-CmkaJDnr.es.js} +23 -8
- package/dist/chunks/{create-super-doc-ui-DN70aatf.cjs → create-super-doc-ui--kQBNTyt.cjs} +2424 -2302
- package/dist/chunks/{create-super-doc-ui-Bm5kmx0W.es.js → create-super-doc-ui-CbEDXtpm.es.js} +2350 -2228
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/changes/changes.d.ts +26 -0
- package/dist/document-api/src/changes/changes.types.d.ts +156 -0
- package/dist/document-api/src/contract/command-catalog.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +51 -1
- package/dist/document-api/src/create/create.d.ts +0 -4
- package/dist/document-api/src/diff/diff.types.d.ts +6 -6
- package/dist/document-api/src/header-footers/header-footers.d.ts +1 -3
- package/dist/document-api/src/index.d.ts +6 -0
- package/dist/document-api/src/inline-semantics/token-sets.d.ts +0 -2
- package/dist/document-api/src/insert/insert.d.ts +0 -1
- package/dist/layout-engine/contracts/src/index.d.ts +3 -1
- package/dist/layout-engine/dom-contract/src/data-attrs.d.ts +4 -0
- package/dist/layout-engine/layout-bridge/src/coupled-footnote-pagination.d.ts +1 -0
- package/dist/layout-engine/layout-bridge/src/footnote-page-certificate.d.ts +1 -0
- package/dist/layout-engine/layout-bridge/src/footnote-page-planner.d.ts +5 -0
- package/dist/layout-engine/layout-bridge/src/incrementalLayout.d.ts +1 -0
- package/dist/layout-engine/layout-engine/src/footnote-page-flow.d.ts +3 -0
- package/dist/layout-engine/layout-engine/src/index.d.ts +7 -0
- package/dist/layout-engine/layout-engine/src/layout-paragraph.d.ts +5 -0
- package/dist/layout-engine/layout-engine/src/layout-table.d.ts +3 -1
- package/dist/layout-engine/layout-engine/src/layout-utils.d.ts +0 -4
- package/dist/layout-engine/layout-engine/src/paginator.d.ts +4 -0
- package/dist/layout-engine/painters/dom/src/paragraph/list-marker.d.ts +1 -1
- package/dist/layout-engine/painters/dom/src/paragraph/renderParagraphContent.d.ts +1 -1
- package/dist/layout-engine/painters/dom/src/styles.d.ts +0 -10
- package/dist/layout-engine/painters/dom/src/svg-utils.d.ts +1 -13
- 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/shared/common/Telemetry.d.ts +50 -0
- package/dist/shared/common/event-types.d.ts +13 -0
- package/dist/shared/font-system/src/bundled-face-names.d.ts +1 -0
- package/dist/shared/font-system/src/resolver.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/style.layered.css +1 -1
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +17 -33
- package/dist/superdoc/src/components/CommentsLayer/collect-removed-comment-ids.d.ts +11 -1
- package/dist/superdoc/src/components/CommentsLayer/collect-tracked-change-thread.d.ts +25 -6
- package/dist/superdoc/src/components/CommentsLayer/comment-params.d.ts +84 -0
- package/dist/superdoc/src/components/CommentsLayer/comment-urls.d.ts +1 -1
- package/dist/superdoc/src/components/CommentsLayer/commentsList/super-comments-list.d.ts +23 -20
- package/dist/superdoc/src/components/CommentsLayer/helpers.d.ts +1 -4
- package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +16 -1
- package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +15 -95
- package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +4 -5
- package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +3 -4
- package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -9
- package/dist/superdoc/src/components/Whiteboard/whiteboard-types.d.ts +2 -0
- package/dist/superdoc/src/components/surfaces/watermark-surface-runtime.d.ts +7 -7
- package/dist/superdoc/src/composables/use-comment-small-screen.d.ts +11 -7
- package/dist/superdoc/src/composables/use-compact-comment-popover.d.ts +44 -18
- package/dist/superdoc/src/composables/use-document.d.ts +51 -99
- package/dist/superdoc/src/composables/use-find-replace.d.ts +13 -3
- package/dist/superdoc/src/composables/use-password-prompt.d.ts +1 -1
- package/dist/superdoc/src/composables/use-viewport-fit.d.ts +62 -26
- package/dist/superdoc/src/core/SuperDoc.d.ts +15 -6
- package/dist/superdoc/src/core/collaboration/cdn-collaboration-comment-map.d.ts +1 -0
- package/dist/superdoc/src/core/collaboration/collaboration-comment-map.d.ts +2 -0
- package/dist/superdoc/src/core/collaboration/helpers.d.ts +1 -1
- package/dist/superdoc/src/core/document-open-telemetry.d.ts +1 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +1 -0
- package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +6 -2
- package/dist/superdoc/src/core/types/index.d.ts +108 -43
- package/dist/superdoc/src/core/v2-integration/browser-peer-runtime.d.ts +5 -3
- package/dist/superdoc/src/core/v2-integration/cdn-engine-loader.d.ts +3 -13
- package/dist/superdoc/src/core/v2-integration/internal-vue-runtime.d.ts +64 -59
- package/dist/superdoc/src/helpers/deprecation.d.ts +12 -3
- package/dist/superdoc/src/helpers/object-guards.d.ts +2 -0
- package/dist/superdoc/src/helpers/v2-author-required-rejection.d.ts +8 -11
- package/dist/superdoc/src/helpers/v2-bulk-decision-event.d.ts +9 -7
- package/dist/superdoc/src/helpers/v2-keyboard-edit-rejection.d.ts +8 -7
- package/dist/superdoc/src/helpers/v2-mutation-exception.d.ts +12 -8
- package/dist/superdoc/src/helpers/v2-review-geometry-delivery.d.ts +22 -0
- package/dist/superdoc/src/helpers/v2-review-target.d.ts +11 -1
- package/dist/superdoc/src/helpers/v2-selection-sync.d.ts +40 -14
- package/dist/superdoc/src/helpers/v2-typing-mutation-event.d.ts +14 -5
- package/dist/superdoc/src/icons.d.ts +11 -19
- package/dist/superdoc/src/internal/diagnostics/translate-diagnostic.d.ts +6 -4
- package/dist/superdoc/src/internal/toolbar/built-in/PageNumberMenu.vue.d.ts +25 -15
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +1 -0
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +3 -1
- package/dist/superdoc/src/internal/toolbar/built-in/font-options.d.ts +15 -1
- package/dist/superdoc/src/internal/toolbar/built-in/font-typeahead.d.ts +37 -7
- package/dist/superdoc/src/internal/toolbar/built-in/general.d.ts +12 -1
- package/dist/superdoc/src/internal/toolbar/built-in/helpers.d.ts +9 -4
- package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/page-number-feedback.d.ts +4 -5
- package/dist/superdoc/src/internal/toolbar/built-in/scroll-helpers.d.ts +3 -4
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +78 -145
- package/dist/superdoc/src/internal/toolbar/built-in/url-safety.d.ts +11 -3
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +4 -3
- package/dist/superdoc/src/internal/toolbar/image-upload.d.ts +29 -39
- package/dist/superdoc/src/public/content-control-ref.d.ts +12 -0
- package/dist/superdoc/src/public/index.d.cts +16 -0
- package/dist/superdoc/src/public/index.d.ts +3 -0
- package/dist/superdoc/src/public/ui/async-read-cache.d.ts +32 -0
- package/dist/superdoc/src/public/ui/block-commands.d.ts +39 -0
- package/dist/superdoc/src/public/ui/command-results.d.ts +39 -0
- package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -17
- package/dist/superdoc/src/public/ui/document-change-records.d.ts +7 -0
- package/dist/superdoc/src/public/ui/entity-rows.d.ts +14 -0
- package/dist/superdoc/src/public/ui/font-options.d.ts +7 -0
- package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +2 -8
- package/dist/superdoc/src/public/ui/format-painter-state.d.ts +33 -0
- package/dist/superdoc/src/public/ui/heavy-read-policy.d.ts +11 -0
- package/dist/superdoc/src/public/ui/host-events.d.ts +3 -0
- package/dist/superdoc/src/public/ui/inline-values.d.ts +79 -0
- package/dist/superdoc/src/public/ui/loose-record.d.ts +4 -0
- package/dist/superdoc/src/public/ui/selection-targets.d.ts +45 -0
- package/dist/superdoc/src/public/ui/shared-tracked-changes-catalog.d.ts +16 -0
- package/dist/superdoc/src/public/ui/tracked-change-ids.d.ts +51 -0
- package/dist/superdoc/src/public/ui/types.d.ts +12 -2
- package/dist/superdoc/src/public/ui/ui-bench-timing.d.ts +9 -0
- package/dist/superdoc/src/public/ui.d.cts +14 -0
- package/dist/superdoc/src/public/ui.d.ts +1 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +23006 -542
- package/dist/superdoc/src/stores/helpers/comment-document-scope.d.ts +22 -0
- package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +1 -1
- package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +10 -10
- package/dist/superdoc/src/stores/helpers/pending-selection-snapshot.d.ts +17 -0
- package/dist/superdoc/src/stores/helpers/review-presentation.d.ts +90 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-compaction.d.ts +16 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-decision.d.ts +45 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-identity.d.ts +4 -2
- package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +1 -8
- package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +1 -1
- package/dist/superdoc/src/stores/helpers/v2-review-adapters.d.ts +147 -0
- package/dist/superdoc/src/stores/superdoc-store.d.ts +12 -2895
- package/dist/superdoc.cjs +1019 -844
- package/dist/superdoc.es.js +931 -756
- package/dist/word-layout/src/marker-utils.d.ts +0 -5
- package/dist/word-layout/src/unit-conversions.d.ts +0 -1
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +38 -42
- package/package.json +13 -3
- package/dist/document-api/src/diff/index.d.ts +0 -3
- package/dist/document-api/src/write/locator.d.ts +0 -24
- package/dist/layout-engine/painters/dom/src/features/feature-registry.d.ts +0 -41
- package/dist/superdoc/src/internal/toolbar/built-in/format-negation.d.ts +0 -5
- package/dist/superdoc/src/main.d.ts +0 -1
- package/dist/word-layout/src/tab-layout.d.ts +0 -193
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Whiteboard } from '../../core/whiteboard/Whiteboard.js';
|
|
2
|
+
import { WhiteboardPage } from '../../core/whiteboard/WhiteboardPage.js';
|
|
2
3
|
export type WhiteboardPageSize = {
|
|
3
4
|
width: number;
|
|
4
5
|
height: number;
|
|
@@ -9,3 +10,4 @@ export type WhiteboardPageOffset = {
|
|
|
9
10
|
left: number;
|
|
10
11
|
};
|
|
11
12
|
export type WhiteboardDropTarget = Pick<Whiteboard, 'getTool' | 'getType'>;
|
|
13
|
+
export type WhiteboardPageView = Pick<WhiteboardPage, 'pageIndex' | 'size' | 'mount' | 'resize' | 'destroy' | 'addImage' | 'addText'>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
export function createWatermarkSurfaceRuntime(getContainer?: () => HTMLElement | null): {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
/** Keeps Vue rendering and post-dismissal announcements outside the public type graph. */
|
|
2
|
+
export declare function createWatermarkSurfaceRuntime(getContainer?: () => HTMLElement | null): {
|
|
3
|
+
component: unknown;
|
|
4
|
+
captureFocusReturn(): (isCurrent: () => boolean) => Promise<void>;
|
|
5
|
+
mount(): void;
|
|
6
|
+
announce(message: string): void;
|
|
7
|
+
destroy(): void;
|
|
8
8
|
};
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { CommentsConfig } from '../core/types/index.js';
|
|
3
|
+
interface UseCommentSmallScreenOptions {
|
|
4
|
+
commentsModuleConfig: Readonly<Ref<CommentsConfig | null | undefined>>;
|
|
5
|
+
superdocRoot: Readonly<Ref<HTMLElement | null>>;
|
|
6
|
+
layers: Readonly<Ref<HTMLElement | null>>;
|
|
7
|
+
}
|
|
8
|
+
export declare function useCommentSmallScreen({ commentsModuleConfig, superdocRoot, layers }: UseCommentSmallScreenOptions): {
|
|
9
|
+
superdocContainerWidth: Ref<number, number>;
|
|
10
|
+
isCompactCommentsMode: Ref<boolean, boolean>;
|
|
8
11
|
recalculateCompactCommentsMode: () => void;
|
|
9
12
|
ensureCompactMeasurementObserver: () => void;
|
|
10
13
|
};
|
|
14
|
+
export {};
|
|
@@ -1,21 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { RuntimeDocument } from '../core/types/index.js';
|
|
3
|
+
type CompactComment = {
|
|
4
|
+
commentId?: unknown;
|
|
5
|
+
importedId?: unknown;
|
|
6
|
+
selection?: {
|
|
7
|
+
source?: unknown;
|
|
8
|
+
} | null;
|
|
9
|
+
};
|
|
10
|
+
type CompactSelectionPosition = {
|
|
11
|
+
top?: unknown;
|
|
12
|
+
bottom?: unknown;
|
|
13
|
+
source?: unknown;
|
|
14
|
+
};
|
|
15
|
+
type CommentPositionLookup = (commentOrId: unknown) => {
|
|
16
|
+
entry: {
|
|
17
|
+
bounds?: {
|
|
18
|
+
top?: unknown;
|
|
19
|
+
bottom?: unknown;
|
|
20
|
+
} | null;
|
|
21
|
+
} | null;
|
|
22
|
+
};
|
|
23
|
+
type PopoverStyle = {
|
|
24
|
+
top: string;
|
|
25
|
+
left?: string;
|
|
26
|
+
right: string;
|
|
27
|
+
};
|
|
28
|
+
interface UseCompactCommentPopoverOptions {
|
|
29
|
+
activeComment: Readonly<Ref<unknown>>;
|
|
30
|
+
pendingComment: Readonly<Ref<CompactComment | null | undefined>>;
|
|
31
|
+
activeCompactComment: Readonly<Ref<CompactComment | null | undefined>>;
|
|
32
|
+
showCommentsSidebar: Readonly<Ref<unknown>>;
|
|
33
|
+
selectionPosition: Readonly<Ref<CompactSelectionPosition | null | undefined>>;
|
|
34
|
+
activeZoom: Readonly<Ref<number | null | undefined>>;
|
|
35
|
+
superdocRoot: Readonly<Ref<HTMLElement | null>>;
|
|
36
|
+
layers: Readonly<Ref<HTMLElement | null>>;
|
|
37
|
+
documents: Readonly<Ref<readonly Pick<RuntimeDocument, 'type'>[] | null | undefined>>;
|
|
38
|
+
resolveCommentPositionEntry: CommentPositionLookup;
|
|
39
|
+
clearActiveComment: () => void;
|
|
40
|
+
clearPendingComment: () => void;
|
|
41
|
+
}
|
|
42
|
+
export declare function useCompactCommentPopover({ activeComment, pendingComment, activeCompactComment, showCommentsSidebar, selectionPosition, activeZoom, superdocRoot, layers, documents, resolveCommentPositionEntry, clearActiveComment, clearPendingComment, }: UseCompactCommentPopoverOptions): {
|
|
43
|
+
compactCommentPopoverStyle: import('vue').ComputedRef<PopoverStyle>;
|
|
19
44
|
closeCompactCommentPopover: () => void;
|
|
20
45
|
resetClickAnchor: () => void;
|
|
21
46
|
};
|
|
47
|
+
export {};
|
|
@@ -305,7 +305,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
305
305
|
trackedChangeAnchorKey: string | null;
|
|
306
306
|
trackedChangeCanonicalId: string | null;
|
|
307
307
|
trackedChangePositionAliases: string[];
|
|
308
|
-
trackedChangeDecision: (
|
|
308
|
+
trackedChangeDecision: import('../components/CommentsLayer/comment-params.js').TrackedChangeDecision | null;
|
|
309
309
|
trackedChangeLabel: string | null;
|
|
310
310
|
trackedChangeDetailLines: {
|
|
311
311
|
excerpt: string;
|
|
@@ -313,13 +313,11 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
313
313
|
}[] | null;
|
|
314
314
|
trackedChangeImagePreview: {
|
|
315
315
|
src: string;
|
|
316
|
-
contentType
|
|
317
|
-
role
|
|
318
|
-
partUri?: string | undefined;
|
|
319
|
-
relationshipId?: string | undefined;
|
|
316
|
+
contentType?: string | undefined;
|
|
317
|
+
role?: string | undefined;
|
|
320
318
|
width?: number | undefined;
|
|
321
319
|
height?: number | undefined;
|
|
322
|
-
alt
|
|
320
|
+
alt: string;
|
|
323
321
|
} | null;
|
|
324
322
|
customAttributes: readonly {
|
|
325
323
|
name: string;
|
|
@@ -338,7 +336,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
338
336
|
docxCommentJSON: {} | null;
|
|
339
337
|
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
340
338
|
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
341
|
-
threadingStyleOverride: import('
|
|
339
|
+
threadingStyleOverride: import('../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
|
|
342
340
|
threadingParentCommentId: string | null | undefined;
|
|
343
341
|
originalXmlStructure: {
|
|
344
342
|
hasCommentsExtended: boolean;
|
|
@@ -349,7 +347,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
349
347
|
text: string;
|
|
350
348
|
superdoc?: {
|
|
351
349
|
emit: (event: "comments-update", payload: {
|
|
352
|
-
type: import('
|
|
350
|
+
type: import('../../../shared/common/event-types.js').CommentEvent;
|
|
353
351
|
changes?: {
|
|
354
352
|
key: string;
|
|
355
353
|
value: unknown;
|
|
@@ -371,7 +369,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
371
369
|
text: string;
|
|
372
370
|
superdoc: {
|
|
373
371
|
emit: (event: "comments-update", payload: {
|
|
374
|
-
type: import('
|
|
372
|
+
type: import('../../../shared/common/event-types.js').CommentEvent;
|
|
375
373
|
changes?: {
|
|
376
374
|
key: string;
|
|
377
375
|
value: unknown;
|
|
@@ -443,7 +441,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
443
441
|
trackedChangeAnchorKey: string | null;
|
|
444
442
|
trackedChangeCanonicalId: string | null;
|
|
445
443
|
trackedChangePositionAliases: string[];
|
|
446
|
-
trackedChangeDecision: (
|
|
444
|
+
trackedChangeDecision: import('../components/CommentsLayer/comment-params.js').TrackedChangeDecision | null;
|
|
447
445
|
trackedChangeLabel: string | null;
|
|
448
446
|
trackedChangeDetailLines: {
|
|
449
447
|
excerpt: string;
|
|
@@ -451,13 +449,11 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
451
449
|
}[] | null;
|
|
452
450
|
trackedChangeImagePreview: {
|
|
453
451
|
src: string;
|
|
454
|
-
contentType
|
|
455
|
-
role
|
|
456
|
-
partUri?: string | undefined;
|
|
457
|
-
relationshipId?: string | undefined;
|
|
452
|
+
contentType?: string | undefined;
|
|
453
|
+
role?: string | undefined;
|
|
458
454
|
width?: number | undefined;
|
|
459
455
|
height?: number | undefined;
|
|
460
|
-
alt
|
|
456
|
+
alt: string;
|
|
461
457
|
} | null;
|
|
462
458
|
customAttributes: readonly {
|
|
463
459
|
name: string;
|
|
@@ -472,7 +468,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
472
468
|
resolvedByName: string | null | undefined;
|
|
473
469
|
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
474
470
|
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
475
|
-
threadingStyleOverride: import('
|
|
471
|
+
threadingStyleOverride: import('../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
|
|
476
472
|
threadingParentCommentId: string | null | undefined;
|
|
477
473
|
originalXmlStructure: {
|
|
478
474
|
hasCommentsExtended: boolean;
|
|
@@ -486,7 +482,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
486
482
|
name?: string | null;
|
|
487
483
|
superdoc: {
|
|
488
484
|
emit: (event: "comments-update", payload: {
|
|
489
|
-
type: import('
|
|
485
|
+
type: import('../../../shared/common/event-types.js').CommentEvent;
|
|
490
486
|
changes?: {
|
|
491
487
|
key: string;
|
|
492
488
|
value: unknown;
|
|
@@ -503,7 +499,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
503
499
|
modules?: import('../public/index.js').Modules;
|
|
504
500
|
};
|
|
505
501
|
};
|
|
506
|
-
decision?:
|
|
502
|
+
decision?: import('../components/CommentsLayer/comment-params.js').TrackedChangeDecision;
|
|
507
503
|
reconciliationToken?: symbol;
|
|
508
504
|
}) => {
|
|
509
505
|
ok: false;
|
|
@@ -513,7 +509,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
513
509
|
isInternal: boolean;
|
|
514
510
|
superdoc: {
|
|
515
511
|
emit: (event: "comments-update", payload: {
|
|
516
|
-
type: import('
|
|
512
|
+
type: import('../../../shared/common/event-types.js').CommentEvent;
|
|
517
513
|
changes?: {
|
|
518
514
|
key: string;
|
|
519
515
|
value: unknown;
|
|
@@ -534,12 +530,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
534
530
|
ok: false;
|
|
535
531
|
reason: "read-only-document";
|
|
536
532
|
} | undefined;
|
|
537
|
-
updatePosition: (coords:
|
|
538
|
-
top: number;
|
|
539
|
-
left: number;
|
|
540
|
-
right: number;
|
|
541
|
-
bottom: number;
|
|
542
|
-
}, parentElement: Pick<Element, "getBoundingClientRect">) => void;
|
|
533
|
+
updatePosition: (coords: import('../components/CommentsLayer/comment-params.js').SelectionBounds, parentElement: Pick<Element, "getBoundingClientRect">) => void;
|
|
543
534
|
getCommentUser: () => {
|
|
544
535
|
name: string;
|
|
545
536
|
email: string | null | undefined;
|
|
@@ -551,14 +542,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
551
542
|
email: string | null;
|
|
552
543
|
image: string | null;
|
|
553
544
|
};
|
|
554
|
-
updateIdentityValues: (updates?:
|
|
555
|
-
commentId?: string;
|
|
556
|
-
importedId?: string | null;
|
|
557
|
-
parentCommentId?: string | null;
|
|
558
|
-
trackedChangeParentId?: string | null;
|
|
559
|
-
trackedChangeThreadParentId?: string | null;
|
|
560
|
-
threadingParentCommentId?: string | null;
|
|
561
|
-
}) => void;
|
|
545
|
+
updateIdentityValues: (updates?: import('../components/CommentsLayer/comment-params.js').CommentIdentity) => void;
|
|
562
546
|
}[], {
|
|
563
547
|
uid: string | undefined;
|
|
564
548
|
commentId: string;
|
|
@@ -628,7 +612,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
628
612
|
trackedChangeAnchorKey: string | null;
|
|
629
613
|
trackedChangeCanonicalId: string | null;
|
|
630
614
|
trackedChangePositionAliases: string[];
|
|
631
|
-
trackedChangeDecision: (
|
|
615
|
+
trackedChangeDecision: import('../components/CommentsLayer/comment-params.js').TrackedChangeDecision | null;
|
|
632
616
|
trackedChangeLabel: string | null;
|
|
633
617
|
trackedChangeDetailLines: {
|
|
634
618
|
excerpt: string;
|
|
@@ -636,13 +620,11 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
636
620
|
}[] | null;
|
|
637
621
|
trackedChangeImagePreview: {
|
|
638
622
|
src: string;
|
|
639
|
-
contentType
|
|
640
|
-
role
|
|
641
|
-
partUri?: string | undefined;
|
|
642
|
-
relationshipId?: string | undefined;
|
|
623
|
+
contentType?: string | undefined;
|
|
624
|
+
role?: string | undefined;
|
|
643
625
|
width?: number | undefined;
|
|
644
626
|
height?: number | undefined;
|
|
645
|
-
alt
|
|
627
|
+
alt: string;
|
|
646
628
|
} | null;
|
|
647
629
|
customAttributes: readonly {
|
|
648
630
|
name: string;
|
|
@@ -661,7 +643,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
661
643
|
docxCommentJSON: {} | null;
|
|
662
644
|
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
663
645
|
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
664
|
-
threadingStyleOverride: import('
|
|
646
|
+
threadingStyleOverride: import('../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
|
|
665
647
|
threadingParentCommentId: string | null | undefined;
|
|
666
648
|
originalXmlStructure: {
|
|
667
649
|
hasCommentsExtended: boolean;
|
|
@@ -672,7 +654,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
672
654
|
text: string;
|
|
673
655
|
superdoc?: {
|
|
674
656
|
emit: (event: "comments-update", payload: {
|
|
675
|
-
type: import('
|
|
657
|
+
type: import('../../../shared/common/event-types.js').CommentEvent;
|
|
676
658
|
changes?: {
|
|
677
659
|
key: string;
|
|
678
660
|
value: unknown;
|
|
@@ -694,7 +676,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
694
676
|
text: string;
|
|
695
677
|
superdoc: {
|
|
696
678
|
emit: (event: "comments-update", payload: {
|
|
697
|
-
type: import('
|
|
679
|
+
type: import('../../../shared/common/event-types.js').CommentEvent;
|
|
698
680
|
changes?: {
|
|
699
681
|
key: string;
|
|
700
682
|
value: unknown;
|
|
@@ -766,7 +748,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
766
748
|
trackedChangeAnchorKey: string | null;
|
|
767
749
|
trackedChangeCanonicalId: string | null;
|
|
768
750
|
trackedChangePositionAliases: string[];
|
|
769
|
-
trackedChangeDecision: (
|
|
751
|
+
trackedChangeDecision: import('../components/CommentsLayer/comment-params.js').TrackedChangeDecision | null;
|
|
770
752
|
trackedChangeLabel: string | null;
|
|
771
753
|
trackedChangeDetailLines: {
|
|
772
754
|
excerpt: string;
|
|
@@ -774,13 +756,11 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
774
756
|
}[] | null;
|
|
775
757
|
trackedChangeImagePreview: {
|
|
776
758
|
src: string;
|
|
777
|
-
contentType
|
|
778
|
-
role
|
|
779
|
-
partUri?: string | undefined;
|
|
780
|
-
relationshipId?: string | undefined;
|
|
759
|
+
contentType?: string | undefined;
|
|
760
|
+
role?: string | undefined;
|
|
781
761
|
width?: number | undefined;
|
|
782
762
|
height?: number | undefined;
|
|
783
|
-
alt
|
|
763
|
+
alt: string;
|
|
784
764
|
} | null;
|
|
785
765
|
customAttributes: readonly {
|
|
786
766
|
name: string;
|
|
@@ -795,7 +775,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
795
775
|
resolvedByName: string | null | undefined;
|
|
796
776
|
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
797
777
|
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
798
|
-
threadingStyleOverride: import('
|
|
778
|
+
threadingStyleOverride: import('../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
|
|
799
779
|
threadingParentCommentId: string | null | undefined;
|
|
800
780
|
originalXmlStructure: {
|
|
801
781
|
hasCommentsExtended: boolean;
|
|
@@ -809,7 +789,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
809
789
|
name?: string | null;
|
|
810
790
|
superdoc: {
|
|
811
791
|
emit: (event: "comments-update", payload: {
|
|
812
|
-
type: import('
|
|
792
|
+
type: import('../../../shared/common/event-types.js').CommentEvent;
|
|
813
793
|
changes?: {
|
|
814
794
|
key: string;
|
|
815
795
|
value: unknown;
|
|
@@ -826,7 +806,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
826
806
|
modules?: import('../public/index.js').Modules;
|
|
827
807
|
};
|
|
828
808
|
};
|
|
829
|
-
decision?:
|
|
809
|
+
decision?: import('../components/CommentsLayer/comment-params.js').TrackedChangeDecision;
|
|
830
810
|
reconciliationToken?: symbol;
|
|
831
811
|
}) => {
|
|
832
812
|
ok: false;
|
|
@@ -836,7 +816,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
836
816
|
isInternal: boolean;
|
|
837
817
|
superdoc: {
|
|
838
818
|
emit: (event: "comments-update", payload: {
|
|
839
|
-
type: import('
|
|
819
|
+
type: import('../../../shared/common/event-types.js').CommentEvent;
|
|
840
820
|
changes?: {
|
|
841
821
|
key: string;
|
|
842
822
|
value: unknown;
|
|
@@ -857,12 +837,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
857
837
|
ok: false;
|
|
858
838
|
reason: "read-only-document";
|
|
859
839
|
} | undefined;
|
|
860
|
-
updatePosition: (coords:
|
|
861
|
-
top: number;
|
|
862
|
-
left: number;
|
|
863
|
-
right: number;
|
|
864
|
-
bottom: number;
|
|
865
|
-
}, parentElement: Pick<Element, "getBoundingClientRect">) => void;
|
|
840
|
+
updatePosition: (coords: import('../components/CommentsLayer/comment-params.js').SelectionBounds, parentElement: Pick<Element, "getBoundingClientRect">) => void;
|
|
866
841
|
getCommentUser: () => {
|
|
867
842
|
name: string;
|
|
868
843
|
email: string | null | undefined;
|
|
@@ -874,14 +849,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
874
849
|
email: string | null;
|
|
875
850
|
image: string | null;
|
|
876
851
|
};
|
|
877
|
-
updateIdentityValues: (updates?:
|
|
878
|
-
commentId?: string;
|
|
879
|
-
importedId?: string | null;
|
|
880
|
-
parentCommentId?: string | null;
|
|
881
|
-
trackedChangeParentId?: string | null;
|
|
882
|
-
trackedChangeThreadParentId?: string | null;
|
|
883
|
-
threadingParentCommentId?: string | null;
|
|
884
|
-
}) => void;
|
|
852
|
+
updateIdentityValues: (updates?: import('../components/CommentsLayer/comment-params.js').CommentIdentity) => void;
|
|
885
853
|
}[] | {
|
|
886
854
|
uid: string | undefined;
|
|
887
855
|
commentId: string;
|
|
@@ -951,7 +919,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
951
919
|
trackedChangeAnchorKey: string | null;
|
|
952
920
|
trackedChangeCanonicalId: string | null;
|
|
953
921
|
trackedChangePositionAliases: string[];
|
|
954
|
-
trackedChangeDecision: (
|
|
922
|
+
trackedChangeDecision: import('../components/CommentsLayer/comment-params.js').TrackedChangeDecision | null;
|
|
955
923
|
trackedChangeLabel: string | null;
|
|
956
924
|
trackedChangeDetailLines: {
|
|
957
925
|
excerpt: string;
|
|
@@ -959,13 +927,11 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
959
927
|
}[] | null;
|
|
960
928
|
trackedChangeImagePreview: {
|
|
961
929
|
src: string;
|
|
962
|
-
contentType
|
|
963
|
-
role
|
|
964
|
-
partUri?: string | undefined;
|
|
965
|
-
relationshipId?: string | undefined;
|
|
930
|
+
contentType?: string | undefined;
|
|
931
|
+
role?: string | undefined;
|
|
966
932
|
width?: number | undefined;
|
|
967
933
|
height?: number | undefined;
|
|
968
|
-
alt
|
|
934
|
+
alt: string;
|
|
969
935
|
} | null;
|
|
970
936
|
customAttributes: readonly {
|
|
971
937
|
name: string;
|
|
@@ -984,7 +950,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
984
950
|
docxCommentJSON: {} | null;
|
|
985
951
|
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
986
952
|
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
987
|
-
threadingStyleOverride: import('
|
|
953
|
+
threadingStyleOverride: import('../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
|
|
988
954
|
threadingParentCommentId: string | null | undefined;
|
|
989
955
|
originalXmlStructure: {
|
|
990
956
|
hasCommentsExtended: boolean;
|
|
@@ -995,7 +961,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
995
961
|
text: string;
|
|
996
962
|
superdoc?: {
|
|
997
963
|
emit: (event: "comments-update", payload: {
|
|
998
|
-
type: import('
|
|
964
|
+
type: import('../../../shared/common/event-types.js').CommentEvent;
|
|
999
965
|
changes?: {
|
|
1000
966
|
key: string;
|
|
1001
967
|
value: unknown;
|
|
@@ -1017,7 +983,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
1017
983
|
text: string;
|
|
1018
984
|
superdoc: {
|
|
1019
985
|
emit: (event: "comments-update", payload: {
|
|
1020
|
-
type: import('
|
|
986
|
+
type: import('../../../shared/common/event-types.js').CommentEvent;
|
|
1021
987
|
changes?: {
|
|
1022
988
|
key: string;
|
|
1023
989
|
value: unknown;
|
|
@@ -1089,7 +1055,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
1089
1055
|
trackedChangeAnchorKey: string | null;
|
|
1090
1056
|
trackedChangeCanonicalId: string | null;
|
|
1091
1057
|
trackedChangePositionAliases: string[];
|
|
1092
|
-
trackedChangeDecision: (
|
|
1058
|
+
trackedChangeDecision: import('../components/CommentsLayer/comment-params.js').TrackedChangeDecision | null;
|
|
1093
1059
|
trackedChangeLabel: string | null;
|
|
1094
1060
|
trackedChangeDetailLines: {
|
|
1095
1061
|
excerpt: string;
|
|
@@ -1097,13 +1063,11 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
1097
1063
|
}[] | null;
|
|
1098
1064
|
trackedChangeImagePreview: {
|
|
1099
1065
|
src: string;
|
|
1100
|
-
contentType
|
|
1101
|
-
role
|
|
1102
|
-
partUri?: string | undefined;
|
|
1103
|
-
relationshipId?: string | undefined;
|
|
1066
|
+
contentType?: string | undefined;
|
|
1067
|
+
role?: string | undefined;
|
|
1104
1068
|
width?: number | undefined;
|
|
1105
1069
|
height?: number | undefined;
|
|
1106
|
-
alt
|
|
1070
|
+
alt: string;
|
|
1107
1071
|
} | null;
|
|
1108
1072
|
customAttributes: readonly {
|
|
1109
1073
|
name: string;
|
|
@@ -1118,7 +1082,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
1118
1082
|
resolvedByName: string | null | undefined;
|
|
1119
1083
|
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
1120
1084
|
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
1121
|
-
threadingStyleOverride: import('
|
|
1085
|
+
threadingStyleOverride: import('../../../shared/common/comments-types.js').CommentThreadingStyle | undefined;
|
|
1122
1086
|
threadingParentCommentId: string | null | undefined;
|
|
1123
1087
|
originalXmlStructure: {
|
|
1124
1088
|
hasCommentsExtended: boolean;
|
|
@@ -1132,7 +1096,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
1132
1096
|
name?: string | null;
|
|
1133
1097
|
superdoc: {
|
|
1134
1098
|
emit: (event: "comments-update", payload: {
|
|
1135
|
-
type: import('
|
|
1099
|
+
type: import('../../../shared/common/event-types.js').CommentEvent;
|
|
1136
1100
|
changes?: {
|
|
1137
1101
|
key: string;
|
|
1138
1102
|
value: unknown;
|
|
@@ -1149,7 +1113,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
1149
1113
|
modules?: import('../public/index.js').Modules;
|
|
1150
1114
|
};
|
|
1151
1115
|
};
|
|
1152
|
-
decision?:
|
|
1116
|
+
decision?: import('../components/CommentsLayer/comment-params.js').TrackedChangeDecision;
|
|
1153
1117
|
reconciliationToken?: symbol;
|
|
1154
1118
|
}) => {
|
|
1155
1119
|
ok: false;
|
|
@@ -1159,7 +1123,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
1159
1123
|
isInternal: boolean;
|
|
1160
1124
|
superdoc: {
|
|
1161
1125
|
emit: (event: "comments-update", payload: {
|
|
1162
|
-
type: import('
|
|
1126
|
+
type: import('../../../shared/common/event-types.js').CommentEvent;
|
|
1163
1127
|
changes?: {
|
|
1164
1128
|
key: string;
|
|
1165
1129
|
value: unknown;
|
|
@@ -1180,12 +1144,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
1180
1144
|
ok: false;
|
|
1181
1145
|
reason: "read-only-document";
|
|
1182
1146
|
} | undefined;
|
|
1183
|
-
updatePosition: (coords:
|
|
1184
|
-
top: number;
|
|
1185
|
-
left: number;
|
|
1186
|
-
right: number;
|
|
1187
|
-
bottom: number;
|
|
1188
|
-
}, parentElement: Pick<Element, "getBoundingClientRect">) => void;
|
|
1147
|
+
updatePosition: (coords: import('../components/CommentsLayer/comment-params.js').SelectionBounds, parentElement: Pick<Element, "getBoundingClientRect">) => void;
|
|
1189
1148
|
getCommentUser: () => {
|
|
1190
1149
|
name: string;
|
|
1191
1150
|
email: string | null | undefined;
|
|
@@ -1197,14 +1156,7 @@ export default function useDocument(params: UseDocumentParams, superdocConfig: U
|
|
|
1197
1156
|
email: string | null;
|
|
1198
1157
|
image: string | null;
|
|
1199
1158
|
};
|
|
1200
|
-
updateIdentityValues: (updates?:
|
|
1201
|
-
commentId?: string;
|
|
1202
|
-
importedId?: string | null;
|
|
1203
|
-
parentCommentId?: string | null;
|
|
1204
|
-
trackedChangeParentId?: string | null;
|
|
1205
|
-
trackedChangeThreadParentId?: string | null;
|
|
1206
|
-
threadingParentCommentId?: string | null;
|
|
1207
|
-
}) => void;
|
|
1159
|
+
updateIdentityValues: (updates?: import('../components/CommentsLayer/comment-params.js').CommentIdentity) => void;
|
|
1208
1160
|
}[]>;
|
|
1209
1161
|
commentThreadingProfile: import('vue').Ref<{} | null, {} | null>;
|
|
1210
1162
|
setEditor: (ref: Editor | null) => Editor | null;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { SurfaceManager } from '../core/surface-manager.js';
|
|
3
3
|
import { Editor, FindReplaceConfig } from '../core/types/index.js';
|
|
4
|
-
import { SearchController } from '../public/ui/types.js';
|
|
4
|
+
import { SearchController, SearchSnapshot } from '../public/ui/types.js';
|
|
5
|
+
type FindReplaceSearchQuery = (...args: Parameters<SearchController['find']>) => Partial<SearchSnapshot>;
|
|
6
|
+
export type FindReplaceSearch = Pick<SearchController, 'next' | 'previous' | 'clear' | 'replace' | 'replaceAll'> & {
|
|
7
|
+
getSnapshot: () => Partial<SearchSnapshot>;
|
|
8
|
+
} & ({
|
|
9
|
+
find: FindReplaceSearchQuery;
|
|
10
|
+
search?: FindReplaceSearchQuery;
|
|
11
|
+
} | {
|
|
12
|
+
find?: undefined;
|
|
13
|
+
search: FindReplaceSearchQuery;
|
|
14
|
+
});
|
|
5
15
|
type UseFindReplaceOptions = {
|
|
6
|
-
getSurfaceManager: () => SurfaceManager | null;
|
|
16
|
+
getSurfaceManager: () => Pick<SurfaceManager, 'open'> | null;
|
|
7
17
|
getActiveEditor: () => Editor | null;
|
|
8
18
|
activeEditorRef?: Ref<Editor | null | undefined>;
|
|
9
19
|
getFindReplaceConfig?: () => boolean | FindReplaceConfig | undefined;
|
|
@@ -12,7 +22,7 @@ type UseFindReplaceOptions = {
|
|
|
12
22
|
* slice is the single find/replace session authority.
|
|
13
23
|
*/
|
|
14
24
|
getSuperDocUI?: () => {
|
|
15
|
-
search?:
|
|
25
|
+
search?: FindReplaceSearch | null;
|
|
16
26
|
} | null | undefined;
|
|
17
27
|
};
|
|
18
28
|
/**
|
|
@@ -10,7 +10,7 @@ export interface PasswordPromptException {
|
|
|
10
10
|
editor?: Editor | null;
|
|
11
11
|
}
|
|
12
12
|
export interface UsePasswordPromptOptions {
|
|
13
|
-
getSurfaceManager: () => SurfaceManager | null;
|
|
13
|
+
getSurfaceManager: () => Pick<SurfaceManager, 'open'> | null;
|
|
14
14
|
getPasswordPromptConfig: () => boolean | PasswordPromptConfig | undefined;
|
|
15
15
|
/**
|
|
16
16
|
* Called when a queued prompt cannot be shown (resolver returned `none`, config error, or resolver threw).
|