superdoc 2.29.0-next.1 → 2.29.0-next.13
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/{FindReplaceSurface-Dm043CZP.es.js → FindReplaceSurface-BKVHzhQ4.es.js} +34 -26
- package/dist/chunks/{FindReplaceSurface-BRs3JrCq.cjs → FindReplaceSurface-BNDrJ6VS.cjs} +34 -26
- package/dist/chunks/{PasswordPromptSurface-DGjmN7A-.es.js → PasswordPromptSurface-6mF6Azda.es.js} +6 -4
- package/dist/chunks/{PasswordPromptSurface-BpqP4pUa.cjs → PasswordPromptSurface-BNkaztaP.cjs} +6 -4
- package/dist/chunks/{PdfViewer-boENOZdF.cjs → PdfViewer-DmSkZehl.cjs} +70 -99
- package/dist/chunks/{PdfViewer-D4lVeOJu.es.js → PdfViewer-aOWhUVI7.es.js} +67 -96
- package/dist/chunks/{constants-DpXuDx_g.cjs → constants-BeeNZoQp.cjs} +1 -1
- package/dist/chunks/{constants-B6VBlmKp.es.js → constants-BvNs_ybI.es.js} +1 -1
- package/dist/chunks/{create-super-doc-ui-Duf65d0b.es.js → create-super-doc-ui-DdT4b29f.es.js} +41 -66
- package/dist/chunks/{create-super-doc-ui-0OA8hCNb.cjs → create-super-doc-ui-_SbygYQ4.cjs} +46 -65
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- package/dist/document-api/src/capabilities/html-markdown-support.d.ts +4 -6
- package/dist/document-api/src/comments/comments.d.ts +2 -0
- package/dist/document-api/src/contract/metadata-types.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +3 -3
- package/dist/document-api/src/contract/operation-registry.d.ts +10 -9
- package/dist/document-api/src/index.d.ts +8 -7
- package/dist/document-api/src/insert/insert.d.ts +2 -2
- package/dist/document-api/src/replace/replace.d.ts +3 -2
- package/dist/document-api/src/tables/tables.d.ts +2 -1
- package/dist/document-api/src/types/address.d.ts +3 -0
- package/dist/document-api/src/types/table-operations.types.d.ts +1 -0
- package/dist/document-api/src/types/temporary-mutation.d.ts +5 -1
- package/dist/document-api/src/write/write.d.ts +12 -6
- package/dist/layout-engine/contracts/src/index.d.ts +1 -1
- package/dist/layout-engine/contracts/src/paragraph-visible-text.d.ts +3 -1
- 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/SuperDoc.vue.d.ts +132 -58
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +116 -1277
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +106 -22
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +74 -14
- package/dist/superdoc/src/components/CommentsLayer/CommentsDropdown.vue.d.ts +55 -20
- package/dist/superdoc/src/components/CommentsLayer/InternalDropdown.vue.d.ts +24 -8
- package/dist/superdoc/src/components/CommentsLayer/PdfCommentsLayer.vue.d.ts +5 -3
- package/dist/superdoc/src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue.d.ts +60 -12
- package/dist/superdoc/src/components/CommentsLayer/commentsList/commentsList.vue.d.ts +20 -6
- package/dist/superdoc/src/components/CommentsLayer/floating-comment-positioning.d.ts +24 -23
- package/dist/superdoc/src/components/CommentsLayer/tracked-change-threading.d.ts +0 -1
- package/dist/superdoc/src/components/CommentsLayer/use-comment.d.ts +29 -13
- package/dist/superdoc/src/components/PdfViewer/PdfViewer.vue.d.ts +132 -45
- package/dist/superdoc/src/components/PdfViewer/PdfViewerDocument.vue.d.ts +62 -16
- package/dist/superdoc/src/components/PdfViewer/PdfViewerPage.vue.d.ts +77 -17
- package/dist/superdoc/src/components/PdfViewer/pdf-viewer-types.d.ts +45 -0
- package/dist/superdoc/src/components/Whiteboard/WhiteboardLayer.vue.d.ts +81 -16
- package/dist/superdoc/src/components/Whiteboard/WhiteboardPage.vue.d.ts +49 -13
- package/dist/superdoc/src/components/Whiteboard/use-whiteboard.d.ts +30 -15
- package/dist/superdoc/src/components/Whiteboard/whiteboard-types.d.ts +11 -0
- package/dist/superdoc/src/components/general/Avatar.vue.d.ts +12 -5
- package/dist/superdoc/src/components/surfaces/FindReplaceSurface.vue.d.ts +58 -15
- package/dist/superdoc/src/components/surfaces/PasswordPromptSurface.vue.d.ts +58 -15
- package/dist/superdoc/src/components/surfaces/SurfaceFloating.vue.d.ts +14 -6
- package/dist/superdoc/src/components/surfaces/SurfaceHost.vue.d.ts +25 -15
- package/dist/superdoc/src/components/surfaces/focusable-selector.d.ts +1 -5
- package/dist/superdoc/src/components/surfaces/watermark-surface-runtime.d.ts +7 -7
- package/dist/superdoc/src/composables/find-shortcut-owner.d.ts +16 -9
- package/dist/superdoc/src/composables/replace-continuation.d.ts +11 -15
- 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 +1210 -30
- package/dist/superdoc/src/composables/use-field.d.ts +88 -25
- package/dist/superdoc/src/composables/use-password-prompt.d.ts +23 -24
- package/dist/superdoc/src/composables/use-viewport-fit.d.ts +40 -26
- package/dist/superdoc/src/composables/useUiFontFamily.d.ts +3 -11
- package/dist/superdoc/src/core/SuperDoc.d.ts +2 -7
- package/dist/superdoc/src/core/collaboration/collaboration-comments.d.ts +9 -4
- package/dist/superdoc/src/core/collaboration/helpers.d.ts +20 -3
- package/dist/superdoc/src/core/collaboration/permissions.d.ts +15 -10
- package/dist/superdoc/src/core/collaboration/resolve-v2-collaboration-target.d.ts +4 -3
- package/dist/superdoc/src/core/collaboration/v2-awareness-bridge.d.ts +2 -1
- package/dist/superdoc/src/core/config/merge-comments-config.d.ts +1 -5
- package/dist/superdoc/src/core/config/merge-defined.d.ts +3 -8
- package/dist/superdoc/src/core/config/normalize-hyperlinks-config.d.ts +7 -12
- package/dist/superdoc/src/core/config/normalize-surfaces-config.d.ts +9 -12
- package/dist/superdoc/src/core/config/normalize-ui-config.d.ts +1 -12
- package/dist/superdoc/src/core/create-app.d.ts +13 -24
- package/dist/superdoc/src/core/editor-runtime/conformance/fake-v2-runtime.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/editor-runtime-registry.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/index.d.ts +1 -1
- package/dist/superdoc/src/core/editor-runtime/types.d.ts +9 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +2 -1
- package/dist/superdoc/src/core/editor-runtime/v2/v2-session-shortcut-routes.d.ts +1 -1
- package/dist/superdoc/src/core/helpers/export.d.ts +3 -2
- package/dist/superdoc/src/core/helpers/file.d.ts +8 -45
- package/dist/superdoc/src/core/helpers/normalize-track-changes-config.d.ts +6 -60
- package/dist/superdoc/src/core/pdf/helpers/constants.d.ts +2 -2
- package/dist/superdoc/src/core/pdf/helpers/floor.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/helpers/range.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/helpers/read-file.d.ts +1 -1
- package/dist/superdoc/src/core/pdf/pdf-adapter.d.ts +24 -61
- package/dist/superdoc/src/core/superdoc-ui-owner.d.ts +1 -1
- package/dist/superdoc/src/core/surface-manager.d.ts +21 -83
- package/dist/superdoc/src/core/types/index.d.ts +5 -19
- package/dist/superdoc/src/core/v2-integration/v2-integration.d.ts +10 -10
- package/dist/superdoc/src/core/whiteboard/Whiteboard.d.ts +22 -208
- package/dist/superdoc/src/core/whiteboard/WhiteboardPage.d.ts +163 -189
- package/dist/superdoc/src/core/whiteboard/helpers/createTextarea.d.ts +14 -1
- package/dist/superdoc/src/core/whiteboard/helpers/flattenPoints.d.ts +1 -1
- package/dist/superdoc/src/core/whiteboard/helpers/getRandomId.d.ts +1 -1
- package/dist/superdoc/src/helpers/comment-focus.d.ts +21 -4
- package/dist/superdoc/src/helpers/deprecation.d.ts +5 -11
- package/dist/superdoc/src/helpers/interaction-trace.d.ts +7 -24
- package/dist/superdoc/src/helpers/mark-raw-component.d.ts +1 -0
- package/dist/superdoc/src/helpers/object-guards.d.ts +1 -5
- package/dist/superdoc/src/helpers/selection-source.d.ts +1 -1
- package/dist/superdoc/src/helpers/use-selection.d.ts +35 -15
- 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-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 -11
- package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +6 -15
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +77 -16
- package/dist/superdoc/src/internal/toolbar/built-in/AlignmentButtons.vue.d.ts +5 -3
- package/dist/superdoc/src/internal/toolbar/built-in/ButtonGroup.vue.d.ts +85 -5
- package/dist/superdoc/src/internal/toolbar/built-in/DocumentMode.vue.d.ts +20 -6
- package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +32 -8
- package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +32 -8
- package/dist/superdoc/src/internal/toolbar/built-in/IconGrid.vue.d.ts +44 -12
- package/dist/superdoc/src/internal/toolbar/built-in/IconGridRow.vue.d.ts +32 -9
- package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +1 -1
- package/dist/superdoc/src/internal/toolbar/built-in/StyleButtonsList.vue.d.ts +39 -10
- package/dist/superdoc/src/internal/toolbar/built-in/TableActions.vue.d.ts +24 -6
- package/dist/superdoc/src/internal/toolbar/built-in/TableGrid.vue.d.ts +7 -3
- package/dist/superdoc/src/internal/toolbar/built-in/Toolbar.vue.d.ts +9 -3
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +13 -15
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +1 -10
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarSeparator.vue.d.ts +16 -6
- package/dist/superdoc/src/internal/toolbar/built-in/color-dropdown-helpers.d.ts +10 -20
- package/dist/superdoc/src/internal/toolbar/built-in/constants.d.ts +12 -45
- package/dist/superdoc/src/internal/toolbar/built-in/default-items.d.ts +34 -17
- package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/toolbar-focus-helpers.d.ts +10 -2
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +67 -0
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarTexts.d.ts +61 -61
- package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +110 -48
- package/dist/superdoc/src/internal/toolbar/built-in-toolbar.d.ts +7 -27
- package/dist/superdoc/src/internal/toolbar/compatibility-catalog.d.ts +4 -3
- package/dist/superdoc/src/internal/toolbar/toolbar-item-aliases.d.ts +1 -1
- package/dist/superdoc/src/public/browser-document-api.d.ts +5 -4
- package/dist/superdoc/src/public/index.d.cts +26 -0
- package/dist/superdoc/src/public/index.d.ts +13 -0
- package/dist/superdoc/src/public/ui/commands.d.ts +14 -13
- package/dist/superdoc/src/public/ui/create-super-doc-ui.d.ts +1 -1
- package/dist/superdoc/src/public/ui/entity-at.d.ts +2 -1
- package/dist/superdoc/src/public/ui/format-painter-helpers.d.ts +2 -8
- package/dist/superdoc/src/public/ui/style-match-patch.d.ts +2 -2
- package/dist/superdoc/src/public/ui/types.d.ts +1 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +225 -99
- package/dist/superdoc/src/stores/helpers/comment-draft-text.d.ts +1 -0
- package/dist/superdoc/src/stores/helpers/comment-grouping.d.ts +30 -0
- package/dist/superdoc/src/stores/helpers/comment-identity.d.ts +40 -0
- package/dist/superdoc/src/stores/helpers/floating-comment-instances.d.ts +48 -13
- package/dist/superdoc/src/stores/helpers/tracked-change-identity.d.ts +19 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +21 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-thread-index.d.ts +21 -24
- package/dist/superdoc/src/stores/superdoc-store.d.ts +676 -298
- package/dist/superdoc.cjs +1682 -2515
- package/dist/superdoc.es.js +1716 -2553
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +42 -42
- package/package.json +2 -2
- package/dist/superdoc/src/internal/toolbar/index.d.ts +0 -10
- package/dist/superdoc/src/main.d.ts +0 -1
|
@@ -1,19 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FindReplaceHandle, SurfaceComponentProps, SurfaceMode, SurfaceRequest } from '../../core/types/index.js';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
surfaceId: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
mode: {
|
|
9
|
+
type: PropType<SurfaceMode>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
request: {
|
|
13
|
+
type: PropType<SurfaceRequest>;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
resolve: {
|
|
17
|
+
type: PropType<SurfaceComponentProps["resolve"]>;
|
|
18
|
+
default: () => void;
|
|
19
|
+
};
|
|
20
|
+
close: {
|
|
21
|
+
type: PropType<SurfaceComponentProps["close"]>;
|
|
22
|
+
default: () => void;
|
|
23
|
+
};
|
|
24
|
+
findReplace: {
|
|
25
|
+
type: PropType<FindReplaceHandle>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
+
surfaceId: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
mode: {
|
|
34
|
+
type: PropType<SurfaceMode>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
request: {
|
|
38
|
+
type: PropType<SurfaceRequest>;
|
|
39
|
+
default: () => {};
|
|
40
|
+
};
|
|
41
|
+
resolve: {
|
|
42
|
+
type: PropType<SurfaceComponentProps["resolve"]>;
|
|
43
|
+
default: () => void;
|
|
44
|
+
};
|
|
45
|
+
close: {
|
|
46
|
+
type: PropType<SurfaceComponentProps["close"]>;
|
|
47
|
+
default: () => void;
|
|
48
|
+
};
|
|
49
|
+
findReplace: {
|
|
50
|
+
type: PropType<FindReplaceHandle>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{}>, {
|
|
54
|
+
close: (reason?: unknown) => void;
|
|
55
|
+
mode: SurfaceMode;
|
|
56
|
+
resolve: (data?: unknown) => void;
|
|
57
|
+
request: SurfaceRequest;
|
|
6
58
|
surfaceId: string;
|
|
7
|
-
|
|
8
|
-
$props: {
|
|
9
|
-
readonly close?: Function | undefined;
|
|
10
|
-
readonly mode?: string | undefined;
|
|
11
|
-
readonly resolve?: Function | undefined;
|
|
12
|
-
readonly request?: Record<string, any> | undefined;
|
|
13
|
-
readonly surfaceId?: string | undefined;
|
|
14
|
-
readonly findReplace?: Record<string, any> | undefined;
|
|
15
|
-
};
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
59
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
17
60
|
findInputRef: HTMLInputElement;
|
|
18
61
|
}, HTMLDivElement>;
|
|
19
62
|
export default _default;
|
|
@@ -1,17 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { PasswordPromptHandle, SurfaceComponentProps, SurfaceMode, SurfaceRequest } from '../../core/types/index.js';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
surfaceId: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
mode: {
|
|
9
|
+
type: PropType<SurfaceMode>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
request: {
|
|
13
|
+
type: PropType<SurfaceRequest>;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
resolve: {
|
|
17
|
+
type: PropType<SurfaceComponentProps["resolve"]>;
|
|
18
|
+
default: () => void;
|
|
19
|
+
};
|
|
20
|
+
close: {
|
|
21
|
+
type: PropType<SurfaceComponentProps["close"]>;
|
|
22
|
+
default: () => void;
|
|
23
|
+
};
|
|
24
|
+
passwordPrompt: {
|
|
25
|
+
type: PropType<PasswordPromptHandle>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
+
surfaceId: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
mode: {
|
|
34
|
+
type: PropType<SurfaceMode>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
request: {
|
|
38
|
+
type: PropType<SurfaceRequest>;
|
|
39
|
+
default: () => {};
|
|
40
|
+
};
|
|
41
|
+
resolve: {
|
|
42
|
+
type: PropType<SurfaceComponentProps["resolve"]>;
|
|
43
|
+
default: () => void;
|
|
44
|
+
};
|
|
45
|
+
close: {
|
|
46
|
+
type: PropType<SurfaceComponentProps["close"]>;
|
|
47
|
+
default: () => void;
|
|
48
|
+
};
|
|
49
|
+
passwordPrompt: {
|
|
50
|
+
type: PropType<PasswordPromptHandle>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{}>, {
|
|
54
|
+
close: (reason?: unknown) => void;
|
|
55
|
+
mode: SurfaceMode;
|
|
56
|
+
resolve: (data?: unknown) => void;
|
|
57
|
+
request: SurfaceRequest;
|
|
6
58
|
surfaceId: string;
|
|
7
|
-
|
|
8
|
-
$props: {
|
|
9
|
-
readonly close?: Function | undefined;
|
|
10
|
-
readonly mode?: string | undefined;
|
|
11
|
-
readonly resolve?: Function | undefined;
|
|
12
|
-
readonly request?: Record<string, any> | undefined;
|
|
13
|
-
readonly surfaceId?: string | undefined;
|
|
14
|
-
readonly passwordPrompt?: Record<string, any> | undefined;
|
|
15
|
-
};
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
59
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
17
60
|
export default _default;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ActiveSurface } from '../../core/surface-manager.js';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
surface: {
|
|
5
|
+
type: PropType<ActiveSurface>;
|
|
6
|
+
required: true;
|
|
6
7
|
};
|
|
7
|
-
}
|
|
8
|
+
}>, {
|
|
9
|
+
rootEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
surface: {
|
|
12
|
+
type: PropType<ActiveSurface>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
8
16
|
floatingRef: HTMLDivElement;
|
|
9
17
|
}, HTMLDivElement>;
|
|
10
18
|
export default _default;
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
geometryTarget: {
|
|
4
|
+
type: PropType<HTMLElement | null>;
|
|
5
|
+
default: null;
|
|
5
6
|
};
|
|
6
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
geometryTarget: {
|
|
9
|
+
type: PropType<HTMLElement | null>;
|
|
10
|
+
default: null;
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{}>, {
|
|
13
|
+
geometryTarget: HTMLElement | null;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
7
15
|
hostRef: HTMLDivElement;
|
|
8
|
-
floatingRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
readonly surface?: Record<string, any> | undefined;
|
|
16
|
+
floatingRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
surface: {
|
|
18
|
+
type: PropType<import('../../core/surface-manager.js').ActiveSurface>;
|
|
19
|
+
required: true;
|
|
13
20
|
};
|
|
21
|
+
}>> & Readonly<{}>, {
|
|
22
|
+
rootEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
14
23
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
15
24
|
floatingRef: HTMLDivElement;
|
|
16
25
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -20,12 +29,13 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
20
29
|
C: {};
|
|
21
30
|
M: {};
|
|
22
31
|
Defaults: {};
|
|
23
|
-
}, Readonly<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
readonly surface?: Record<string, any> | undefined;
|
|
32
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
33
|
+
surface: {
|
|
34
|
+
type: PropType<import('../../core/surface-manager.js').ActiveSurface>;
|
|
35
|
+
required: true;
|
|
28
36
|
};
|
|
37
|
+
}>> & Readonly<{}>, {
|
|
38
|
+
rootEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
29
39
|
}, {}, {}, {}, {}> | null;
|
|
30
40
|
}, any>;
|
|
31
41
|
export default _default;
|
|
@@ -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,32 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared ownership registry for the ambient (no-focus) Cmd/Ctrl+F shortcut.
|
|
3
|
+
*
|
|
4
|
+
* Several SuperDoc instances can be mounted on one page, and each registers a
|
|
5
|
+
* document-level capture listener for the find shortcut. When focus is inside
|
|
6
|
+
* an instance that instance handles the shortcut, but when focus is on <body>
|
|
7
|
+
* (fresh page load, clicks on page chrome) every instance would otherwise
|
|
8
|
+
* consider itself eligible — and `stopPropagation()` cannot suppress sibling
|
|
9
|
+
* listeners already registered on the same node, so multiple find bars would
|
|
10
|
+
* open. This registry elects a single ambient owner: the most recently mounted
|
|
11
|
+
* or interacted-with instance.
|
|
12
|
+
*/
|
|
1
13
|
/**
|
|
2
14
|
* Make `owner` the ambient find-shortcut owner. Call on mount and on user
|
|
3
15
|
* interaction (pointerdown / focusin inside the instance) so "the SuperDoc the
|
|
4
16
|
* user last touched" wins the ambient shortcut.
|
|
5
|
-
* @param {unknown} owner
|
|
6
17
|
*/
|
|
7
|
-
export function claimFindShortcut(owner: unknown): void;
|
|
18
|
+
export declare function claimFindShortcut(owner: unknown): void;
|
|
8
19
|
/**
|
|
9
20
|
* Clear ownership if `owner` currently holds it. Call on unmount.
|
|
10
|
-
* @param {unknown} owner
|
|
11
21
|
*/
|
|
12
|
-
export function releaseFindShortcut(owner: unknown): void;
|
|
22
|
+
export declare function releaseFindShortcut(owner: unknown): void;
|
|
13
23
|
/**
|
|
14
24
|
* Whether `owner` may handle the ambient (no-focus) find shortcut. With no
|
|
15
25
|
* claimed owner any instance may handle it (single-instance pages), relying on
|
|
16
26
|
* the `defaultPrevented` check in {@link shouldHandleFindShortcut} to keep the
|
|
17
27
|
* shortcut single-fire.
|
|
18
|
-
* @param {unknown} owner
|
|
19
28
|
*/
|
|
20
|
-
export function ownsAmbientFindShortcut(owner: unknown): boolean;
|
|
29
|
+
export declare function ownsAmbientFindShortcut(owner: unknown): boolean;
|
|
21
30
|
/**
|
|
22
31
|
* Decide whether one SuperDoc instance's capture listener should handle a
|
|
23
32
|
* find-shortcut keydown. `defaultPrevented` covers the cross-instance race
|
|
24
33
|
* directly: the first instance to act marks the event, and sibling capture
|
|
25
34
|
* listeners on the same node skip it.
|
|
26
|
-
* @param {KeyboardEvent} event
|
|
27
|
-
* @param {{ focusInside: boolean, owner: unknown }} context
|
|
28
35
|
*/
|
|
29
|
-
export function shouldHandleFindShortcut(event: KeyboardEvent, { focusInside, owner }: {
|
|
36
|
+
export declare function shouldHandleFindShortcut(event: KeyboardEvent, { focusInside, owner }: {
|
|
30
37
|
focusInside: boolean;
|
|
31
38
|
owner: unknown;
|
|
32
39
|
}): boolean;
|
|
@@ -8,30 +8,26 @@
|
|
|
8
8
|
* longer looking at.
|
|
9
9
|
*
|
|
10
10
|
* A leaf module rather than a closure inside `useFindReplace`, following
|
|
11
|
-
* `find-shortcut-owner.
|
|
11
|
+
* `find-shortcut-owner.ts`. The guard previously lived in two byte-identical
|
|
12
12
|
* inline closures, each of which needed a full composable driving a
|
|
13
13
|
* worker-backed host caught mid-swap to reach one branch. Nothing could, so it
|
|
14
14
|
* shipped with a comment admitting it was verified by inspection only. The
|
|
15
15
|
* duplication was the tell: logic worth stating twice is worth naming once.
|
|
16
16
|
*/
|
|
17
|
+
type ReplaceSession = {
|
|
18
|
+
getSnapshot: () => unknown;
|
|
19
|
+
};
|
|
20
|
+
type ReplaceContinuationDeps<S extends ReplaceSession> = {
|
|
21
|
+
getCurrentSession: () => S | null;
|
|
22
|
+
applySlice: (snapshot: unknown) => void;
|
|
23
|
+
onSettled: () => void;
|
|
24
|
+
};
|
|
17
25
|
/**
|
|
18
26
|
* Build the continuation that publishes a settled replace back into the panel.
|
|
19
27
|
*
|
|
20
28
|
* The session handle itself is the identity. `onSettled` always runs, including
|
|
21
29
|
* when the write is skipped: it clears the pending flag that gates the replace
|
|
22
30
|
* controls, and leaving it set would disable them with nothing left to settle.
|
|
23
|
-
*
|
|
24
|
-
* @param {{ getSnapshot: () => unknown }} session The handle captured when the replace was issued.
|
|
25
|
-
* @param {object} deps
|
|
26
|
-
* @param {() => unknown} deps.getCurrentSession Reads the live session identity.
|
|
27
|
-
* @param {(snapshot: unknown) => void} deps.applySlice Publishes a snapshot into the panel.
|
|
28
|
-
* @param {() => void} deps.onSettled Runs whether or not the write was skipped.
|
|
29
|
-
* @returns {() => void}
|
|
30
31
|
*/
|
|
31
|
-
export function createReplaceContinuation(session: {
|
|
32
|
-
|
|
33
|
-
}, { getCurrentSession, applySlice, onSettled }: {
|
|
34
|
-
getCurrentSession: () => unknown;
|
|
35
|
-
applySlice: (snapshot: unknown) => void;
|
|
36
|
-
onSettled: () => void;
|
|
37
|
-
}): () => void;
|
|
32
|
+
export declare function createReplaceContinuation<S extends ReplaceSession>(session: S, { getCurrentSession, applySlice, onSettled }: ReplaceContinuationDeps<S>): () => void;
|
|
33
|
+
export {};
|
|
@@ -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 {};
|