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,37 +1,1217 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { FieldDefinition } from './use-field.js';
|
|
2
|
+
import { UseCommentParams } from '../components/CommentsLayer/use-comment.js';
|
|
3
|
+
import { DocumentRendererRuntime, Editor, InternalConfig, RuntimeDocument } from '../core/types/index.js';
|
|
4
|
+
type UseDocumentParams = Pick<RuntimeDocument, 'id' | 'data' | 'password' | 'fieldContext' | 'load' | 'loadScope' | 'role' | 'ydoc' | 'provider' | 'isNewFile' | 'v2Collaboration'> & {
|
|
5
|
+
type?: string;
|
|
6
|
+
state?: unknown;
|
|
7
|
+
html?: string;
|
|
8
|
+
markdown?: string;
|
|
9
|
+
socket?: unknown;
|
|
10
|
+
fields?: FieldDefinition[];
|
|
11
|
+
annotations?: unknown[];
|
|
12
|
+
conversations?: UseCommentParams[];
|
|
13
|
+
commentThreadingProfile?: unknown;
|
|
14
|
+
};
|
|
15
|
+
type DocumentPageContainer = {
|
|
16
|
+
page: number;
|
|
17
|
+
containerBounds?: unknown;
|
|
18
|
+
container?: Element | null;
|
|
19
|
+
};
|
|
20
|
+
type UseDocumentConfig = Pick<InternalConfig, 'modules' | 'rulers'>;
|
|
21
|
+
export default function useDocument(params: UseDocumentParams, superdocConfig: UseDocumentConfig | null): {
|
|
22
|
+
id: string | undefined;
|
|
23
|
+
data: File | Blob | null | undefined;
|
|
24
|
+
html: string | undefined;
|
|
25
|
+
markdown: string | undefined;
|
|
26
|
+
password: string | undefined;
|
|
27
|
+
fieldContext: {
|
|
28
|
+
fileName?: string | null;
|
|
29
|
+
fullPath?: string | null;
|
|
30
|
+
currentUser?: {
|
|
31
|
+
name?: string | null;
|
|
32
|
+
initials?: string | null;
|
|
33
|
+
address?: string | null;
|
|
34
|
+
} | null;
|
|
35
|
+
} | undefined;
|
|
36
|
+
load: import('../public/index.js').DocumentLoadOptions | undefined;
|
|
37
|
+
loadScope: {
|
|
38
|
+
signal: AbortSignal;
|
|
39
|
+
wait<T>(task: Promise<T>): Promise<T>;
|
|
40
|
+
assertActive(): void;
|
|
41
|
+
finish(): boolean;
|
|
42
|
+
cancel: () => void;
|
|
43
|
+
onSettled(listener: () => void): void;
|
|
44
|
+
onFailure(listener: (error: import('../public/index.js').DocumentLoadError) => void): () => boolean;
|
|
45
|
+
} | undefined;
|
|
10
46
|
type: string;
|
|
11
|
-
config:
|
|
12
|
-
state:
|
|
13
|
-
role:
|
|
47
|
+
config: UseDocumentConfig;
|
|
48
|
+
state: unknown;
|
|
49
|
+
role: "editor" | "viewer" | "suggester" | undefined;
|
|
14
50
|
core: import('vue').Ref<null, null>;
|
|
15
51
|
editorMountNonce: import('vue').Ref<number, number>;
|
|
16
|
-
ydoc: import('vue').ShallowRef<
|
|
17
|
-
provider: import('vue').ShallowRef<
|
|
18
|
-
socket: import('vue').ShallowRef<
|
|
19
|
-
isNewFile: import('vue').Ref<
|
|
20
|
-
v2Collaboration: import('vue').ShallowRef<
|
|
21
|
-
container: import('vue').Ref<null, null>;
|
|
22
|
-
pageContainers: import('vue').Ref<
|
|
52
|
+
ydoc: import('vue').ShallowRef<import('yjs').Doc | undefined, import('yjs').Doc | undefined>;
|
|
53
|
+
provider: import('vue').ShallowRef<import('../core/types/index.js').CollaborationProvider | undefined, import('../core/types/index.js').CollaborationProvider | undefined>;
|
|
54
|
+
socket: import('vue').ShallowRef<unknown, unknown>;
|
|
55
|
+
isNewFile: import('vue').Ref<boolean | undefined, boolean | undefined>;
|
|
56
|
+
v2Collaboration: import('vue').ShallowRef<import('../public/index.js').DocumentCollaborationConfig | null, import('../public/index.js').DocumentCollaborationConfig | null>;
|
|
57
|
+
container: import('vue').Ref<Element | null, Element | null>;
|
|
58
|
+
pageContainers: import('vue').Ref<{
|
|
59
|
+
page: number;
|
|
60
|
+
containerBounds?: unknown;
|
|
61
|
+
container?: (Element | null) | undefined;
|
|
62
|
+
}[], DocumentPageContainer[] | {
|
|
63
|
+
page: number;
|
|
64
|
+
containerBounds?: unknown;
|
|
65
|
+
container?: (Element | null) | undefined;
|
|
66
|
+
}[]>;
|
|
23
67
|
isReady: import('vue').Ref<boolean, boolean>;
|
|
24
|
-
rulers: import('vue').Ref<
|
|
25
|
-
rawFields: import('vue').Ref<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
68
|
+
rulers: import('vue').Ref<boolean | undefined, boolean | undefined>;
|
|
69
|
+
rawFields: import('vue').Ref<{
|
|
70
|
+
itemid: {
|
|
71
|
+
value?: unknown;
|
|
72
|
+
};
|
|
73
|
+
itemicon?: unknown;
|
|
74
|
+
itemiconpack?: unknown;
|
|
75
|
+
itemdisplaylabel?: unknown;
|
|
76
|
+
itemlinkvalue?: unknown;
|
|
77
|
+
itemplaceholdertext?: unknown;
|
|
78
|
+
itemtype?: string | undefined;
|
|
79
|
+
itemfieldtype?: unknown;
|
|
80
|
+
itemformat?: unknown;
|
|
81
|
+
itemoptions?: {
|
|
82
|
+
itemdisplaylabel?: unknown;
|
|
83
|
+
itemlinkvalue?: unknown;
|
|
84
|
+
ischecked?: unknown;
|
|
85
|
+
itemid?: unknown;
|
|
86
|
+
annotationId?: unknown;
|
|
87
|
+
}[] | null | undefined;
|
|
88
|
+
iteminputtype?: unknown;
|
|
89
|
+
fontfamily?: string | null | undefined;
|
|
90
|
+
font_size?: string | null | undefined;
|
|
91
|
+
original_font_size?: string | null | undefined;
|
|
92
|
+
logicrules?: unknown;
|
|
93
|
+
valueGetter?: ((data: object) => string) | undefined;
|
|
94
|
+
}[], FieldDefinition[] | {
|
|
95
|
+
itemid: {
|
|
96
|
+
value?: unknown;
|
|
97
|
+
};
|
|
98
|
+
itemicon?: unknown;
|
|
99
|
+
itemiconpack?: unknown;
|
|
100
|
+
itemdisplaylabel?: unknown;
|
|
101
|
+
itemlinkvalue?: unknown;
|
|
102
|
+
itemplaceholdertext?: unknown;
|
|
103
|
+
itemtype?: string | undefined;
|
|
104
|
+
itemfieldtype?: unknown;
|
|
105
|
+
itemformat?: unknown;
|
|
106
|
+
itemoptions?: {
|
|
107
|
+
itemdisplaylabel?: unknown;
|
|
108
|
+
itemlinkvalue?: unknown;
|
|
109
|
+
ischecked?: unknown;
|
|
110
|
+
itemid?: unknown;
|
|
111
|
+
annotationId?: unknown;
|
|
112
|
+
}[] | null | undefined;
|
|
113
|
+
iteminputtype?: unknown;
|
|
114
|
+
fontfamily?: string | null | undefined;
|
|
115
|
+
font_size?: string | null | undefined;
|
|
116
|
+
original_font_size?: string | null | undefined;
|
|
117
|
+
logicrules?: unknown;
|
|
118
|
+
valueGetter?: ((data: object) => string) | undefined;
|
|
119
|
+
}[]>;
|
|
120
|
+
fields: import('vue').Ref<{
|
|
121
|
+
id: {
|
|
122
|
+
value?: unknown;
|
|
123
|
+
};
|
|
124
|
+
icon: unknown;
|
|
125
|
+
iconPack: unknown;
|
|
126
|
+
label: unknown;
|
|
127
|
+
placeholder: unknown;
|
|
128
|
+
fieldType: string | undefined;
|
|
129
|
+
fieldSubType: unknown;
|
|
130
|
+
value: {};
|
|
131
|
+
format: unknown;
|
|
132
|
+
logicRules: unknown;
|
|
133
|
+
hidden: boolean;
|
|
134
|
+
originalJSON: {
|
|
135
|
+
itemid: {
|
|
136
|
+
value?: unknown;
|
|
137
|
+
};
|
|
138
|
+
itemicon?: unknown;
|
|
139
|
+
itemiconpack?: unknown;
|
|
140
|
+
itemdisplaylabel?: unknown;
|
|
141
|
+
itemlinkvalue?: unknown;
|
|
142
|
+
itemplaceholdertext?: unknown;
|
|
143
|
+
itemtype?: string | undefined;
|
|
144
|
+
itemfieldtype?: unknown;
|
|
145
|
+
itemformat?: unknown;
|
|
146
|
+
itemoptions?: {
|
|
147
|
+
itemdisplaylabel?: unknown;
|
|
148
|
+
itemlinkvalue?: unknown;
|
|
149
|
+
ischecked?: unknown;
|
|
150
|
+
itemid?: unknown;
|
|
151
|
+
annotationId?: unknown;
|
|
152
|
+
}[] | null | undefined;
|
|
153
|
+
iteminputtype?: unknown;
|
|
154
|
+
fontfamily?: string | null | undefined;
|
|
155
|
+
font_size?: string | null | undefined;
|
|
156
|
+
original_font_size?: string | null | undefined;
|
|
157
|
+
logicrules?: unknown;
|
|
158
|
+
valueGetter?: ((data: object) => string) | undefined;
|
|
159
|
+
};
|
|
160
|
+
fieldStyle: {
|
|
161
|
+
fontFamily: string;
|
|
162
|
+
fontSize: string;
|
|
163
|
+
originalFontSize: string;
|
|
164
|
+
};
|
|
165
|
+
valueGetter: ((data: object) => string) | undefined;
|
|
166
|
+
}[], {
|
|
167
|
+
id: import('vue').Ref<{
|
|
168
|
+
value?: unknown;
|
|
169
|
+
}, {
|
|
170
|
+
value?: unknown;
|
|
171
|
+
} | {
|
|
172
|
+
value?: unknown;
|
|
173
|
+
}>;
|
|
174
|
+
icon: import('vue').Ref<unknown, unknown>;
|
|
175
|
+
iconPack: import('vue').Ref<unknown, unknown>;
|
|
176
|
+
label: import('vue').Ref<unknown, unknown>;
|
|
177
|
+
placeholder: unknown;
|
|
178
|
+
fieldType: import('vue').Ref<string | undefined, string | undefined>;
|
|
179
|
+
fieldSubType: import('vue').Ref<unknown, unknown>;
|
|
180
|
+
value: {};
|
|
181
|
+
format: import('vue').Ref<unknown, unknown>;
|
|
182
|
+
logicRules: import('vue').Ref<unknown, unknown>;
|
|
183
|
+
hidden: import('vue').Ref<boolean, boolean>;
|
|
184
|
+
originalJSON: FieldDefinition;
|
|
185
|
+
fieldStyle: {
|
|
186
|
+
fontFamily: string;
|
|
187
|
+
fontSize: string;
|
|
188
|
+
originalFontSize: string;
|
|
189
|
+
};
|
|
190
|
+
valueGetter: ((data: object) => string) | undefined;
|
|
191
|
+
}[] | {
|
|
192
|
+
id: {
|
|
193
|
+
value?: unknown;
|
|
194
|
+
};
|
|
195
|
+
icon: unknown;
|
|
196
|
+
iconPack: unknown;
|
|
197
|
+
label: unknown;
|
|
198
|
+
placeholder: unknown;
|
|
199
|
+
fieldType: string | undefined;
|
|
200
|
+
fieldSubType: unknown;
|
|
201
|
+
value: {};
|
|
202
|
+
format: unknown;
|
|
203
|
+
logicRules: unknown;
|
|
204
|
+
hidden: boolean;
|
|
205
|
+
originalJSON: {
|
|
206
|
+
itemid: {
|
|
207
|
+
value?: unknown;
|
|
208
|
+
};
|
|
209
|
+
itemicon?: unknown;
|
|
210
|
+
itemiconpack?: unknown;
|
|
211
|
+
itemdisplaylabel?: unknown;
|
|
212
|
+
itemlinkvalue?: unknown;
|
|
213
|
+
itemplaceholdertext?: unknown;
|
|
214
|
+
itemtype?: string | undefined;
|
|
215
|
+
itemfieldtype?: unknown;
|
|
216
|
+
itemformat?: unknown;
|
|
217
|
+
itemoptions?: {
|
|
218
|
+
itemdisplaylabel?: unknown;
|
|
219
|
+
itemlinkvalue?: unknown;
|
|
220
|
+
ischecked?: unknown;
|
|
221
|
+
itemid?: unknown;
|
|
222
|
+
annotationId?: unknown;
|
|
223
|
+
}[] | null | undefined;
|
|
224
|
+
iteminputtype?: unknown;
|
|
225
|
+
fontfamily?: string | null | undefined;
|
|
226
|
+
font_size?: string | null | undefined;
|
|
227
|
+
original_font_size?: string | null | undefined;
|
|
228
|
+
logicrules?: unknown;
|
|
229
|
+
valueGetter?: ((data: object) => string) | undefined;
|
|
230
|
+
};
|
|
231
|
+
fieldStyle: {
|
|
232
|
+
fontFamily: string;
|
|
233
|
+
fontSize: string;
|
|
234
|
+
originalFontSize: string;
|
|
235
|
+
};
|
|
236
|
+
valueGetter: ((data: object) => string) | undefined;
|
|
237
|
+
}[]>;
|
|
238
|
+
annotations: import('vue').Ref<unknown[], unknown[]>;
|
|
239
|
+
conversations: import('vue').Ref<{
|
|
240
|
+
uid: string | undefined;
|
|
241
|
+
commentId: string;
|
|
242
|
+
importedId: string | null | undefined;
|
|
243
|
+
parentCommentId: string | null | undefined;
|
|
244
|
+
trackedChangeParentId: string | null | undefined;
|
|
245
|
+
trackedChangeThreadParentId: string | null | undefined;
|
|
246
|
+
trackedChangeSide: string | null | undefined;
|
|
247
|
+
fileId: string | null | undefined;
|
|
248
|
+
fileType: string | null | undefined;
|
|
249
|
+
mentions: {
|
|
250
|
+
name?: string | null | undefined;
|
|
251
|
+
email?: string | null | undefined;
|
|
252
|
+
}[];
|
|
253
|
+
commentElement: HTMLElement | null;
|
|
254
|
+
isFocused: boolean;
|
|
255
|
+
creatorId: string | null;
|
|
256
|
+
creatorEmail: string | null;
|
|
257
|
+
creatorName: string | null;
|
|
258
|
+
creatorImage: string | null;
|
|
259
|
+
createdTime: number;
|
|
260
|
+
isInternal: boolean;
|
|
261
|
+
commentText: string;
|
|
262
|
+
selection: {
|
|
263
|
+
documentId: unknown;
|
|
264
|
+
page: number | undefined;
|
|
265
|
+
selectionBounds: {
|
|
266
|
+
top?: number | undefined;
|
|
267
|
+
left?: number | undefined;
|
|
268
|
+
right?: number | undefined;
|
|
269
|
+
bottom?: number | undefined;
|
|
270
|
+
};
|
|
271
|
+
getValues: () => {
|
|
272
|
+
documentId: unknown;
|
|
273
|
+
page: number | undefined;
|
|
274
|
+
selectionBounds: {
|
|
275
|
+
top?: number;
|
|
276
|
+
left?: number;
|
|
277
|
+
right?: number;
|
|
278
|
+
bottom?: number;
|
|
279
|
+
};
|
|
280
|
+
source: string | null | undefined;
|
|
281
|
+
};
|
|
282
|
+
getContainerId: () => string;
|
|
283
|
+
getContainerLocation: (parentContainer: Pick<Element, "getBoundingClientRect"> | null | undefined) => {
|
|
284
|
+
top: number;
|
|
285
|
+
left: number;
|
|
286
|
+
};
|
|
287
|
+
source: string | null | undefined;
|
|
288
|
+
};
|
|
289
|
+
floatingPosition: {
|
|
290
|
+
top?: number | undefined;
|
|
291
|
+
left?: number | undefined;
|
|
292
|
+
right?: number | undefined;
|
|
293
|
+
bottom?: number | undefined;
|
|
294
|
+
};
|
|
295
|
+
trackedChange: boolean | undefined;
|
|
296
|
+
deletedText: string | null;
|
|
297
|
+
trackedChangeType: string | null;
|
|
298
|
+
trackedChangeText: string | null;
|
|
299
|
+
trackedChangeDisplayType: string | null;
|
|
300
|
+
semanticColorKey: string | null;
|
|
301
|
+
semanticColor: string | null;
|
|
302
|
+
trackedChangeStory: import('../public/index.js').StoryLocator | null;
|
|
303
|
+
trackedChangeStoryKind: string | null;
|
|
304
|
+
trackedChangeStoryLabel: string;
|
|
305
|
+
trackedChangeAnchorKey: string | null;
|
|
306
|
+
trackedChangeCanonicalId: string | null;
|
|
307
|
+
trackedChangePositionAliases: string[];
|
|
308
|
+
trackedChangeDecision: ("accept" | "reject") | null;
|
|
309
|
+
trackedChangeLabel: string | null;
|
|
310
|
+
trackedChangeDetailLines: {
|
|
311
|
+
excerpt: string;
|
|
312
|
+
label: string;
|
|
313
|
+
}[] | null;
|
|
314
|
+
trackedChangeImagePreview: {
|
|
315
|
+
src: string;
|
|
316
|
+
contentType: string;
|
|
317
|
+
role: "deleted" | "inserted" | "before" | "after";
|
|
318
|
+
partUri?: string | undefined;
|
|
319
|
+
relationshipId?: string | undefined;
|
|
320
|
+
width?: number | undefined;
|
|
321
|
+
height?: number | undefined;
|
|
322
|
+
alt?: string | undefined;
|
|
323
|
+
} | null;
|
|
324
|
+
customAttributes: readonly {
|
|
325
|
+
name: string;
|
|
326
|
+
namespaceUri: string;
|
|
327
|
+
localName: string;
|
|
328
|
+
value: string;
|
|
329
|
+
}[] | null;
|
|
330
|
+
resolvedTime: number | null;
|
|
331
|
+
resolvedById: string | null;
|
|
332
|
+
resolvedByEmail: string | null | undefined;
|
|
333
|
+
resolvedByName: string | null | undefined;
|
|
334
|
+
importedAuthor: {
|
|
335
|
+
name?: string | null | undefined;
|
|
336
|
+
email?: string | null | undefined;
|
|
337
|
+
} | null;
|
|
338
|
+
docxCommentJSON: {} | null;
|
|
339
|
+
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
340
|
+
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
341
|
+
threadingStyleOverride: import('../../../../shared/common').CommentThreadingStyle | undefined;
|
|
342
|
+
threadingParentCommentId: string | null | undefined;
|
|
343
|
+
originalXmlStructure: {
|
|
344
|
+
hasCommentsExtended: boolean;
|
|
345
|
+
hasCommentsExtensible: boolean;
|
|
346
|
+
hasCommentsIds: boolean;
|
|
347
|
+
} | undefined;
|
|
348
|
+
setText: ({ text, superdoc, suppressUpdate }: {
|
|
349
|
+
text: string;
|
|
350
|
+
superdoc?: {
|
|
351
|
+
emit: (event: "comments-update", payload: {
|
|
352
|
+
type: import('../../../../shared/common').CommentEvent;
|
|
353
|
+
changes?: {
|
|
354
|
+
key: string;
|
|
355
|
+
value: unknown;
|
|
356
|
+
previousValue?: unknown;
|
|
357
|
+
}[];
|
|
358
|
+
comment: unknown;
|
|
359
|
+
}) => unknown;
|
|
360
|
+
commentsStore?: {
|
|
361
|
+
getConfig?: {
|
|
362
|
+
readOnly?: boolean;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
config?: {
|
|
366
|
+
modules?: import('../public/index.js').Modules;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
suppressUpdate: true;
|
|
370
|
+
} | {
|
|
371
|
+
text: string;
|
|
372
|
+
superdoc: {
|
|
373
|
+
emit: (event: "comments-update", payload: {
|
|
374
|
+
type: import('../../../../shared/common').CommentEvent;
|
|
375
|
+
changes?: {
|
|
376
|
+
key: string;
|
|
377
|
+
value: unknown;
|
|
378
|
+
previousValue?: unknown;
|
|
379
|
+
}[];
|
|
380
|
+
comment: unknown;
|
|
381
|
+
}) => unknown;
|
|
382
|
+
commentsStore?: {
|
|
383
|
+
getConfig?: {
|
|
384
|
+
readOnly?: boolean;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
config?: {
|
|
388
|
+
modules?: import('../public/index.js').Modules;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
391
|
+
suppressUpdate?: false;
|
|
392
|
+
}) => {
|
|
393
|
+
ok: false;
|
|
394
|
+
reason: "read-only-document";
|
|
395
|
+
} | undefined;
|
|
396
|
+
getValues: () => {
|
|
397
|
+
uid: string | undefined;
|
|
398
|
+
commentId: string | undefined;
|
|
399
|
+
importedId: string | null | undefined;
|
|
400
|
+
parentCommentId: string | null | undefined;
|
|
401
|
+
trackedChangeParentId: string | null | undefined;
|
|
402
|
+
trackedChangeThreadParentId: string | null | undefined;
|
|
403
|
+
trackedChangeSide: string | null | undefined;
|
|
404
|
+
fileId: string | null | undefined;
|
|
405
|
+
fileType: string | null | undefined;
|
|
406
|
+
mentions: {
|
|
407
|
+
name: string | null | undefined;
|
|
408
|
+
email?: string | null | undefined;
|
|
409
|
+
}[];
|
|
410
|
+
createdAtVersionNumber: number | null | undefined;
|
|
411
|
+
creatorId: string | null;
|
|
412
|
+
creatorEmail: string | null;
|
|
413
|
+
creatorName: string | null;
|
|
414
|
+
creatorImage: string | null;
|
|
415
|
+
createdTime: number;
|
|
416
|
+
importedAuthor: {
|
|
417
|
+
name?: string | null | undefined;
|
|
418
|
+
email?: string | null | undefined;
|
|
419
|
+
} | null;
|
|
420
|
+
docxCommentJSON: {} | null;
|
|
421
|
+
isInternal: boolean;
|
|
422
|
+
commentText: string;
|
|
423
|
+
selection: {
|
|
424
|
+
documentId: unknown;
|
|
425
|
+
page: number | undefined;
|
|
426
|
+
selectionBounds: {
|
|
427
|
+
top?: number;
|
|
428
|
+
left?: number;
|
|
429
|
+
right?: number;
|
|
430
|
+
bottom?: number;
|
|
431
|
+
};
|
|
432
|
+
source: string | null | undefined;
|
|
433
|
+
} | null;
|
|
434
|
+
trackedChange: boolean | undefined;
|
|
435
|
+
trackedChangeText: string | null;
|
|
436
|
+
trackedChangeType: string | null;
|
|
437
|
+
trackedChangeDisplayType: string | null;
|
|
438
|
+
semanticColorKey: string | null;
|
|
439
|
+
semanticColor: string | null;
|
|
440
|
+
trackedChangeStory: import('../public/index.js').StoryLocator | null;
|
|
441
|
+
trackedChangeStoryKind: string | null;
|
|
442
|
+
trackedChangeStoryLabel: string;
|
|
443
|
+
trackedChangeAnchorKey: string | null;
|
|
444
|
+
trackedChangeCanonicalId: string | null;
|
|
445
|
+
trackedChangePositionAliases: string[];
|
|
446
|
+
trackedChangeDecision: ("accept" | "reject") | null;
|
|
447
|
+
trackedChangeLabel: string | null;
|
|
448
|
+
trackedChangeDetailLines: {
|
|
449
|
+
excerpt: string;
|
|
450
|
+
label: string;
|
|
451
|
+
}[] | null;
|
|
452
|
+
trackedChangeImagePreview: {
|
|
453
|
+
src: string;
|
|
454
|
+
contentType: string;
|
|
455
|
+
role: "deleted" | "inserted" | "before" | "after";
|
|
456
|
+
partUri?: string | undefined;
|
|
457
|
+
relationshipId?: string | undefined;
|
|
458
|
+
width?: number | undefined;
|
|
459
|
+
height?: number | undefined;
|
|
460
|
+
alt?: string | undefined;
|
|
461
|
+
} | null;
|
|
462
|
+
customAttributes: readonly {
|
|
463
|
+
name: string;
|
|
464
|
+
namespaceUri: string;
|
|
465
|
+
localName: string;
|
|
466
|
+
value: string;
|
|
467
|
+
}[] | null;
|
|
468
|
+
deletedText: string | null;
|
|
469
|
+
resolvedTime: number | null;
|
|
470
|
+
resolvedById: string | null;
|
|
471
|
+
resolvedByEmail: string | null | undefined;
|
|
472
|
+
resolvedByName: string | null | undefined;
|
|
473
|
+
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
474
|
+
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
475
|
+
threadingStyleOverride: import('../../../../shared/common').CommentThreadingStyle | undefined;
|
|
476
|
+
threadingParentCommentId: string | null | undefined;
|
|
477
|
+
originalXmlStructure: {
|
|
478
|
+
hasCommentsExtended: boolean;
|
|
479
|
+
hasCommentsExtensible: boolean;
|
|
480
|
+
hasCommentsIds: boolean;
|
|
481
|
+
} | undefined;
|
|
482
|
+
};
|
|
483
|
+
resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
|
|
484
|
+
id?: string | null;
|
|
485
|
+
email?: string | null;
|
|
486
|
+
name?: string | null;
|
|
487
|
+
superdoc: {
|
|
488
|
+
emit: (event: "comments-update", payload: {
|
|
489
|
+
type: import('../../../../shared/common').CommentEvent;
|
|
490
|
+
changes?: {
|
|
491
|
+
key: string;
|
|
492
|
+
value: unknown;
|
|
493
|
+
previousValue?: unknown;
|
|
494
|
+
}[];
|
|
495
|
+
comment: unknown;
|
|
496
|
+
}) => unknown;
|
|
497
|
+
commentsStore?: {
|
|
498
|
+
getConfig?: {
|
|
499
|
+
readOnly?: boolean;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
config?: {
|
|
503
|
+
modules?: import('../public/index.js').Modules;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
decision?: "accept" | "reject";
|
|
507
|
+
reconciliationToken?: symbol;
|
|
508
|
+
}) => {
|
|
509
|
+
ok: false;
|
|
510
|
+
reason: "read-only-document";
|
|
511
|
+
} | undefined;
|
|
512
|
+
setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
|
|
513
|
+
isInternal: boolean;
|
|
514
|
+
superdoc: {
|
|
515
|
+
emit: (event: "comments-update", payload: {
|
|
516
|
+
type: import('../../../../shared/common').CommentEvent;
|
|
517
|
+
changes?: {
|
|
518
|
+
key: string;
|
|
519
|
+
value: unknown;
|
|
520
|
+
previousValue?: unknown;
|
|
521
|
+
}[];
|
|
522
|
+
comment: unknown;
|
|
523
|
+
}) => unknown;
|
|
524
|
+
commentsStore?: {
|
|
525
|
+
getConfig?: {
|
|
526
|
+
readOnly?: boolean;
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
config?: {
|
|
530
|
+
modules?: import('../public/index.js').Modules;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
}) => {
|
|
534
|
+
ok: false;
|
|
535
|
+
reason: "read-only-document";
|
|
536
|
+
} | undefined;
|
|
537
|
+
updatePosition: (coords: {
|
|
538
|
+
top: number;
|
|
539
|
+
left: number;
|
|
540
|
+
right: number;
|
|
541
|
+
bottom: number;
|
|
542
|
+
}, parentElement: Pick<Element, "getBoundingClientRect">) => void;
|
|
543
|
+
getCommentUser: () => {
|
|
544
|
+
name: string;
|
|
545
|
+
email: string | null | undefined;
|
|
546
|
+
id?: undefined;
|
|
547
|
+
image?: undefined;
|
|
548
|
+
} | {
|
|
549
|
+
id: string | null;
|
|
550
|
+
name: string | null;
|
|
551
|
+
email: string | null;
|
|
552
|
+
image: string | null;
|
|
553
|
+
};
|
|
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;
|
|
562
|
+
}[], {
|
|
563
|
+
uid: string | undefined;
|
|
564
|
+
commentId: string;
|
|
565
|
+
importedId: string | null | undefined;
|
|
566
|
+
parentCommentId: string | null | undefined;
|
|
567
|
+
trackedChangeParentId: string | null | undefined;
|
|
568
|
+
trackedChangeThreadParentId: string | null | undefined;
|
|
569
|
+
trackedChangeSide: string | null | undefined;
|
|
570
|
+
fileId: string | null | undefined;
|
|
571
|
+
fileType: string | null | undefined;
|
|
572
|
+
mentions: {
|
|
573
|
+
name?: string | null | undefined;
|
|
574
|
+
email?: string | null | undefined;
|
|
575
|
+
}[];
|
|
576
|
+
commentElement: HTMLElement | null;
|
|
577
|
+
isFocused: boolean;
|
|
578
|
+
creatorId: string | null;
|
|
579
|
+
creatorEmail: string | null;
|
|
580
|
+
creatorName: string | null;
|
|
581
|
+
creatorImage: string | null;
|
|
582
|
+
createdTime: number;
|
|
583
|
+
isInternal: boolean;
|
|
584
|
+
commentText: string;
|
|
585
|
+
selection: {
|
|
586
|
+
documentId: unknown;
|
|
587
|
+
page: number | undefined;
|
|
588
|
+
selectionBounds: {
|
|
589
|
+
top?: number | undefined;
|
|
590
|
+
left?: number | undefined;
|
|
591
|
+
right?: number | undefined;
|
|
592
|
+
bottom?: number | undefined;
|
|
593
|
+
};
|
|
594
|
+
getValues: () => {
|
|
595
|
+
documentId: unknown;
|
|
596
|
+
page: number | undefined;
|
|
597
|
+
selectionBounds: {
|
|
598
|
+
top?: number;
|
|
599
|
+
left?: number;
|
|
600
|
+
right?: number;
|
|
601
|
+
bottom?: number;
|
|
602
|
+
};
|
|
603
|
+
source: string | null | undefined;
|
|
604
|
+
};
|
|
605
|
+
getContainerId: () => string;
|
|
606
|
+
getContainerLocation: (parentContainer: Pick<Element, "getBoundingClientRect"> | null | undefined) => {
|
|
607
|
+
top: number;
|
|
608
|
+
left: number;
|
|
609
|
+
};
|
|
610
|
+
source: string | null | undefined;
|
|
611
|
+
};
|
|
612
|
+
floatingPosition: {
|
|
613
|
+
top?: number | undefined;
|
|
614
|
+
left?: number | undefined;
|
|
615
|
+
right?: number | undefined;
|
|
616
|
+
bottom?: number | undefined;
|
|
617
|
+
};
|
|
618
|
+
trackedChange: boolean | undefined;
|
|
619
|
+
deletedText: string | null;
|
|
620
|
+
trackedChangeType: string | null;
|
|
621
|
+
trackedChangeText: string | null;
|
|
622
|
+
trackedChangeDisplayType: string | null;
|
|
623
|
+
semanticColorKey: string | null;
|
|
624
|
+
semanticColor: string | null;
|
|
625
|
+
trackedChangeStory: import('../public/index.js').StoryLocator | null;
|
|
626
|
+
trackedChangeStoryKind: string | null;
|
|
627
|
+
trackedChangeStoryLabel: string;
|
|
628
|
+
trackedChangeAnchorKey: string | null;
|
|
629
|
+
trackedChangeCanonicalId: string | null;
|
|
630
|
+
trackedChangePositionAliases: string[];
|
|
631
|
+
trackedChangeDecision: ("accept" | "reject") | null;
|
|
632
|
+
trackedChangeLabel: string | null;
|
|
633
|
+
trackedChangeDetailLines: {
|
|
634
|
+
excerpt: string;
|
|
635
|
+
label: string;
|
|
636
|
+
}[] | null;
|
|
637
|
+
trackedChangeImagePreview: {
|
|
638
|
+
src: string;
|
|
639
|
+
contentType: string;
|
|
640
|
+
role: "deleted" | "inserted" | "before" | "after";
|
|
641
|
+
partUri?: string | undefined;
|
|
642
|
+
relationshipId?: string | undefined;
|
|
643
|
+
width?: number | undefined;
|
|
644
|
+
height?: number | undefined;
|
|
645
|
+
alt?: string | undefined;
|
|
646
|
+
} | null;
|
|
647
|
+
customAttributes: readonly {
|
|
648
|
+
name: string;
|
|
649
|
+
namespaceUri: string;
|
|
650
|
+
localName: string;
|
|
651
|
+
value: string;
|
|
652
|
+
}[] | null;
|
|
653
|
+
resolvedTime: number | null;
|
|
654
|
+
resolvedById: string | null;
|
|
655
|
+
resolvedByEmail: string | null | undefined;
|
|
656
|
+
resolvedByName: string | null | undefined;
|
|
657
|
+
importedAuthor: {
|
|
658
|
+
name?: string | null | undefined;
|
|
659
|
+
email?: string | null | undefined;
|
|
660
|
+
} | null;
|
|
661
|
+
docxCommentJSON: {} | null;
|
|
662
|
+
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
663
|
+
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
664
|
+
threadingStyleOverride: import('../../../../shared/common').CommentThreadingStyle | undefined;
|
|
665
|
+
threadingParentCommentId: string | null | undefined;
|
|
666
|
+
originalXmlStructure: {
|
|
667
|
+
hasCommentsExtended: boolean;
|
|
668
|
+
hasCommentsExtensible: boolean;
|
|
669
|
+
hasCommentsIds: boolean;
|
|
670
|
+
} | undefined;
|
|
671
|
+
setText: ({ text, superdoc, suppressUpdate }: {
|
|
672
|
+
text: string;
|
|
673
|
+
superdoc?: {
|
|
674
|
+
emit: (event: "comments-update", payload: {
|
|
675
|
+
type: import('../../../../shared/common').CommentEvent;
|
|
676
|
+
changes?: {
|
|
677
|
+
key: string;
|
|
678
|
+
value: unknown;
|
|
679
|
+
previousValue?: unknown;
|
|
680
|
+
}[];
|
|
681
|
+
comment: unknown;
|
|
682
|
+
}) => unknown;
|
|
683
|
+
commentsStore?: {
|
|
684
|
+
getConfig?: {
|
|
685
|
+
readOnly?: boolean;
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
config?: {
|
|
689
|
+
modules?: import('../public/index.js').Modules;
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
suppressUpdate: true;
|
|
693
|
+
} | {
|
|
694
|
+
text: string;
|
|
695
|
+
superdoc: {
|
|
696
|
+
emit: (event: "comments-update", payload: {
|
|
697
|
+
type: import('../../../../shared/common').CommentEvent;
|
|
698
|
+
changes?: {
|
|
699
|
+
key: string;
|
|
700
|
+
value: unknown;
|
|
701
|
+
previousValue?: unknown;
|
|
702
|
+
}[];
|
|
703
|
+
comment: unknown;
|
|
704
|
+
}) => unknown;
|
|
705
|
+
commentsStore?: {
|
|
706
|
+
getConfig?: {
|
|
707
|
+
readOnly?: boolean;
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
config?: {
|
|
711
|
+
modules?: import('../public/index.js').Modules;
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
suppressUpdate?: false;
|
|
715
|
+
}) => {
|
|
716
|
+
ok: false;
|
|
717
|
+
reason: "read-only-document";
|
|
718
|
+
} | undefined;
|
|
719
|
+
getValues: () => {
|
|
720
|
+
uid: string | undefined;
|
|
721
|
+
commentId: string | undefined;
|
|
722
|
+
importedId: string | null | undefined;
|
|
723
|
+
parentCommentId: string | null | undefined;
|
|
724
|
+
trackedChangeParentId: string | null | undefined;
|
|
725
|
+
trackedChangeThreadParentId: string | null | undefined;
|
|
726
|
+
trackedChangeSide: string | null | undefined;
|
|
727
|
+
fileId: string | null | undefined;
|
|
728
|
+
fileType: string | null | undefined;
|
|
729
|
+
mentions: {
|
|
730
|
+
name: string | null | undefined;
|
|
731
|
+
email?: string | null | undefined;
|
|
732
|
+
}[];
|
|
733
|
+
createdAtVersionNumber: number | null | undefined;
|
|
734
|
+
creatorId: string | null;
|
|
735
|
+
creatorEmail: string | null;
|
|
736
|
+
creatorName: string | null;
|
|
737
|
+
creatorImage: string | null;
|
|
738
|
+
createdTime: number;
|
|
739
|
+
importedAuthor: {
|
|
740
|
+
name?: string | null | undefined;
|
|
741
|
+
email?: string | null | undefined;
|
|
742
|
+
} | null;
|
|
743
|
+
docxCommentJSON: {} | null;
|
|
744
|
+
isInternal: boolean;
|
|
745
|
+
commentText: string;
|
|
746
|
+
selection: {
|
|
747
|
+
documentId: unknown;
|
|
748
|
+
page: number | undefined;
|
|
749
|
+
selectionBounds: {
|
|
750
|
+
top?: number;
|
|
751
|
+
left?: number;
|
|
752
|
+
right?: number;
|
|
753
|
+
bottom?: number;
|
|
754
|
+
};
|
|
755
|
+
source: string | null | undefined;
|
|
756
|
+
} | null;
|
|
757
|
+
trackedChange: boolean | undefined;
|
|
758
|
+
trackedChangeText: string | null;
|
|
759
|
+
trackedChangeType: string | null;
|
|
760
|
+
trackedChangeDisplayType: string | null;
|
|
761
|
+
semanticColorKey: string | null;
|
|
762
|
+
semanticColor: string | null;
|
|
763
|
+
trackedChangeStory: import('../public/index.js').StoryLocator | null;
|
|
764
|
+
trackedChangeStoryKind: string | null;
|
|
765
|
+
trackedChangeStoryLabel: string;
|
|
766
|
+
trackedChangeAnchorKey: string | null;
|
|
767
|
+
trackedChangeCanonicalId: string | null;
|
|
768
|
+
trackedChangePositionAliases: string[];
|
|
769
|
+
trackedChangeDecision: ("accept" | "reject") | null;
|
|
770
|
+
trackedChangeLabel: string | null;
|
|
771
|
+
trackedChangeDetailLines: {
|
|
772
|
+
excerpt: string;
|
|
773
|
+
label: string;
|
|
774
|
+
}[] | null;
|
|
775
|
+
trackedChangeImagePreview: {
|
|
776
|
+
src: string;
|
|
777
|
+
contentType: string;
|
|
778
|
+
role: "deleted" | "inserted" | "before" | "after";
|
|
779
|
+
partUri?: string | undefined;
|
|
780
|
+
relationshipId?: string | undefined;
|
|
781
|
+
width?: number | undefined;
|
|
782
|
+
height?: number | undefined;
|
|
783
|
+
alt?: string | undefined;
|
|
784
|
+
} | null;
|
|
785
|
+
customAttributes: readonly {
|
|
786
|
+
name: string;
|
|
787
|
+
namespaceUri: string;
|
|
788
|
+
localName: string;
|
|
789
|
+
value: string;
|
|
790
|
+
}[] | null;
|
|
791
|
+
deletedText: string | null;
|
|
792
|
+
resolvedTime: number | null;
|
|
793
|
+
resolvedById: string | null;
|
|
794
|
+
resolvedByEmail: string | null | undefined;
|
|
795
|
+
resolvedByName: string | null | undefined;
|
|
796
|
+
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
797
|
+
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
798
|
+
threadingStyleOverride: import('../../../../shared/common').CommentThreadingStyle | undefined;
|
|
799
|
+
threadingParentCommentId: string | null | undefined;
|
|
800
|
+
originalXmlStructure: {
|
|
801
|
+
hasCommentsExtended: boolean;
|
|
802
|
+
hasCommentsExtensible: boolean;
|
|
803
|
+
hasCommentsIds: boolean;
|
|
804
|
+
} | undefined;
|
|
805
|
+
};
|
|
806
|
+
resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
|
|
807
|
+
id?: string | null;
|
|
808
|
+
email?: string | null;
|
|
809
|
+
name?: string | null;
|
|
810
|
+
superdoc: {
|
|
811
|
+
emit: (event: "comments-update", payload: {
|
|
812
|
+
type: import('../../../../shared/common').CommentEvent;
|
|
813
|
+
changes?: {
|
|
814
|
+
key: string;
|
|
815
|
+
value: unknown;
|
|
816
|
+
previousValue?: unknown;
|
|
817
|
+
}[];
|
|
818
|
+
comment: unknown;
|
|
819
|
+
}) => unknown;
|
|
820
|
+
commentsStore?: {
|
|
821
|
+
getConfig?: {
|
|
822
|
+
readOnly?: boolean;
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
config?: {
|
|
826
|
+
modules?: import('../public/index.js').Modules;
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
decision?: "accept" | "reject";
|
|
830
|
+
reconciliationToken?: symbol;
|
|
831
|
+
}) => {
|
|
832
|
+
ok: false;
|
|
833
|
+
reason: "read-only-document";
|
|
834
|
+
} | undefined;
|
|
835
|
+
setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
|
|
836
|
+
isInternal: boolean;
|
|
837
|
+
superdoc: {
|
|
838
|
+
emit: (event: "comments-update", payload: {
|
|
839
|
+
type: import('../../../../shared/common').CommentEvent;
|
|
840
|
+
changes?: {
|
|
841
|
+
key: string;
|
|
842
|
+
value: unknown;
|
|
843
|
+
previousValue?: unknown;
|
|
844
|
+
}[];
|
|
845
|
+
comment: unknown;
|
|
846
|
+
}) => unknown;
|
|
847
|
+
commentsStore?: {
|
|
848
|
+
getConfig?: {
|
|
849
|
+
readOnly?: boolean;
|
|
850
|
+
};
|
|
851
|
+
};
|
|
852
|
+
config?: {
|
|
853
|
+
modules?: import('../public/index.js').Modules;
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
}) => {
|
|
857
|
+
ok: false;
|
|
858
|
+
reason: "read-only-document";
|
|
859
|
+
} | undefined;
|
|
860
|
+
updatePosition: (coords: {
|
|
861
|
+
top: number;
|
|
862
|
+
left: number;
|
|
863
|
+
right: number;
|
|
864
|
+
bottom: number;
|
|
865
|
+
}, parentElement: Pick<Element, "getBoundingClientRect">) => void;
|
|
866
|
+
getCommentUser: () => {
|
|
867
|
+
name: string;
|
|
868
|
+
email: string | null | undefined;
|
|
869
|
+
id?: undefined;
|
|
870
|
+
image?: undefined;
|
|
871
|
+
} | {
|
|
872
|
+
id: string | null;
|
|
873
|
+
name: string | null;
|
|
874
|
+
email: string | null;
|
|
875
|
+
image: string | null;
|
|
876
|
+
};
|
|
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;
|
|
885
|
+
}[] | {
|
|
886
|
+
uid: string | undefined;
|
|
887
|
+
commentId: string;
|
|
888
|
+
importedId: string | null | undefined;
|
|
889
|
+
parentCommentId: string | null | undefined;
|
|
890
|
+
trackedChangeParentId: string | null | undefined;
|
|
891
|
+
trackedChangeThreadParentId: string | null | undefined;
|
|
892
|
+
trackedChangeSide: string | null | undefined;
|
|
893
|
+
fileId: string | null | undefined;
|
|
894
|
+
fileType: string | null | undefined;
|
|
895
|
+
mentions: {
|
|
896
|
+
name?: string | null | undefined;
|
|
897
|
+
email?: string | null | undefined;
|
|
898
|
+
}[];
|
|
899
|
+
commentElement: HTMLElement | null;
|
|
900
|
+
isFocused: boolean;
|
|
901
|
+
creatorId: string | null;
|
|
902
|
+
creatorEmail: string | null;
|
|
903
|
+
creatorName: string | null;
|
|
904
|
+
creatorImage: string | null;
|
|
905
|
+
createdTime: number;
|
|
906
|
+
isInternal: boolean;
|
|
907
|
+
commentText: string;
|
|
908
|
+
selection: {
|
|
909
|
+
documentId: unknown;
|
|
910
|
+
page: number | undefined;
|
|
911
|
+
selectionBounds: {
|
|
912
|
+
top?: number | undefined;
|
|
913
|
+
left?: number | undefined;
|
|
914
|
+
right?: number | undefined;
|
|
915
|
+
bottom?: number | undefined;
|
|
916
|
+
};
|
|
917
|
+
getValues: () => {
|
|
918
|
+
documentId: unknown;
|
|
919
|
+
page: number | undefined;
|
|
920
|
+
selectionBounds: {
|
|
921
|
+
top?: number;
|
|
922
|
+
left?: number;
|
|
923
|
+
right?: number;
|
|
924
|
+
bottom?: number;
|
|
925
|
+
};
|
|
926
|
+
source: string | null | undefined;
|
|
927
|
+
};
|
|
928
|
+
getContainerId: () => string;
|
|
929
|
+
getContainerLocation: (parentContainer: Pick<Element, "getBoundingClientRect"> | null | undefined) => {
|
|
930
|
+
top: number;
|
|
931
|
+
left: number;
|
|
932
|
+
};
|
|
933
|
+
source: string | null | undefined;
|
|
934
|
+
};
|
|
935
|
+
floatingPosition: {
|
|
936
|
+
top?: number | undefined;
|
|
937
|
+
left?: number | undefined;
|
|
938
|
+
right?: number | undefined;
|
|
939
|
+
bottom?: number | undefined;
|
|
940
|
+
};
|
|
941
|
+
trackedChange: boolean | undefined;
|
|
942
|
+
deletedText: string | null;
|
|
943
|
+
trackedChangeType: string | null;
|
|
944
|
+
trackedChangeText: string | null;
|
|
945
|
+
trackedChangeDisplayType: string | null;
|
|
946
|
+
semanticColorKey: string | null;
|
|
947
|
+
semanticColor: string | null;
|
|
948
|
+
trackedChangeStory: import('../public/index.js').StoryLocator | null;
|
|
949
|
+
trackedChangeStoryKind: string | null;
|
|
950
|
+
trackedChangeStoryLabel: string;
|
|
951
|
+
trackedChangeAnchorKey: string | null;
|
|
952
|
+
trackedChangeCanonicalId: string | null;
|
|
953
|
+
trackedChangePositionAliases: string[];
|
|
954
|
+
trackedChangeDecision: ("accept" | "reject") | null;
|
|
955
|
+
trackedChangeLabel: string | null;
|
|
956
|
+
trackedChangeDetailLines: {
|
|
957
|
+
excerpt: string;
|
|
958
|
+
label: string;
|
|
959
|
+
}[] | null;
|
|
960
|
+
trackedChangeImagePreview: {
|
|
961
|
+
src: string;
|
|
962
|
+
contentType: string;
|
|
963
|
+
role: "deleted" | "inserted" | "before" | "after";
|
|
964
|
+
partUri?: string | undefined;
|
|
965
|
+
relationshipId?: string | undefined;
|
|
966
|
+
width?: number | undefined;
|
|
967
|
+
height?: number | undefined;
|
|
968
|
+
alt?: string | undefined;
|
|
969
|
+
} | null;
|
|
970
|
+
customAttributes: readonly {
|
|
971
|
+
name: string;
|
|
972
|
+
namespaceUri: string;
|
|
973
|
+
localName: string;
|
|
974
|
+
value: string;
|
|
975
|
+
}[] | null;
|
|
976
|
+
resolvedTime: number | null;
|
|
977
|
+
resolvedById: string | null;
|
|
978
|
+
resolvedByEmail: string | null | undefined;
|
|
979
|
+
resolvedByName: string | null | undefined;
|
|
980
|
+
importedAuthor: {
|
|
981
|
+
name?: string | null | undefined;
|
|
982
|
+
email?: string | null | undefined;
|
|
983
|
+
} | null;
|
|
984
|
+
docxCommentJSON: {} | null;
|
|
985
|
+
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
986
|
+
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
987
|
+
threadingStyleOverride: import('../../../../shared/common').CommentThreadingStyle | undefined;
|
|
988
|
+
threadingParentCommentId: string | null | undefined;
|
|
989
|
+
originalXmlStructure: {
|
|
990
|
+
hasCommentsExtended: boolean;
|
|
991
|
+
hasCommentsExtensible: boolean;
|
|
992
|
+
hasCommentsIds: boolean;
|
|
993
|
+
} | undefined;
|
|
994
|
+
setText: ({ text, superdoc, suppressUpdate }: {
|
|
995
|
+
text: string;
|
|
996
|
+
superdoc?: {
|
|
997
|
+
emit: (event: "comments-update", payload: {
|
|
998
|
+
type: import('../../../../shared/common').CommentEvent;
|
|
999
|
+
changes?: {
|
|
1000
|
+
key: string;
|
|
1001
|
+
value: unknown;
|
|
1002
|
+
previousValue?: unknown;
|
|
1003
|
+
}[];
|
|
1004
|
+
comment: unknown;
|
|
1005
|
+
}) => unknown;
|
|
1006
|
+
commentsStore?: {
|
|
1007
|
+
getConfig?: {
|
|
1008
|
+
readOnly?: boolean;
|
|
1009
|
+
};
|
|
1010
|
+
};
|
|
1011
|
+
config?: {
|
|
1012
|
+
modules?: import('../public/index.js').Modules;
|
|
1013
|
+
};
|
|
1014
|
+
};
|
|
1015
|
+
suppressUpdate: true;
|
|
1016
|
+
} | {
|
|
1017
|
+
text: string;
|
|
1018
|
+
superdoc: {
|
|
1019
|
+
emit: (event: "comments-update", payload: {
|
|
1020
|
+
type: import('../../../../shared/common').CommentEvent;
|
|
1021
|
+
changes?: {
|
|
1022
|
+
key: string;
|
|
1023
|
+
value: unknown;
|
|
1024
|
+
previousValue?: unknown;
|
|
1025
|
+
}[];
|
|
1026
|
+
comment: unknown;
|
|
1027
|
+
}) => unknown;
|
|
1028
|
+
commentsStore?: {
|
|
1029
|
+
getConfig?: {
|
|
1030
|
+
readOnly?: boolean;
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
config?: {
|
|
1034
|
+
modules?: import('../public/index.js').Modules;
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
1037
|
+
suppressUpdate?: false;
|
|
1038
|
+
}) => {
|
|
1039
|
+
ok: false;
|
|
1040
|
+
reason: "read-only-document";
|
|
1041
|
+
} | undefined;
|
|
1042
|
+
getValues: () => {
|
|
1043
|
+
uid: string | undefined;
|
|
1044
|
+
commentId: string | undefined;
|
|
1045
|
+
importedId: string | null | undefined;
|
|
1046
|
+
parentCommentId: string | null | undefined;
|
|
1047
|
+
trackedChangeParentId: string | null | undefined;
|
|
1048
|
+
trackedChangeThreadParentId: string | null | undefined;
|
|
1049
|
+
trackedChangeSide: string | null | undefined;
|
|
1050
|
+
fileId: string | null | undefined;
|
|
1051
|
+
fileType: string | null | undefined;
|
|
1052
|
+
mentions: {
|
|
1053
|
+
name: string | null | undefined;
|
|
1054
|
+
email?: string | null | undefined;
|
|
1055
|
+
}[];
|
|
1056
|
+
createdAtVersionNumber: number | null | undefined;
|
|
1057
|
+
creatorId: string | null;
|
|
1058
|
+
creatorEmail: string | null;
|
|
1059
|
+
creatorName: string | null;
|
|
1060
|
+
creatorImage: string | null;
|
|
1061
|
+
createdTime: number;
|
|
1062
|
+
importedAuthor: {
|
|
1063
|
+
name?: string | null | undefined;
|
|
1064
|
+
email?: string | null | undefined;
|
|
1065
|
+
} | null;
|
|
1066
|
+
docxCommentJSON: {} | null;
|
|
1067
|
+
isInternal: boolean;
|
|
1068
|
+
commentText: string;
|
|
1069
|
+
selection: {
|
|
1070
|
+
documentId: unknown;
|
|
1071
|
+
page: number | undefined;
|
|
1072
|
+
selectionBounds: {
|
|
1073
|
+
top?: number;
|
|
1074
|
+
left?: number;
|
|
1075
|
+
right?: number;
|
|
1076
|
+
bottom?: number;
|
|
1077
|
+
};
|
|
1078
|
+
source: string | null | undefined;
|
|
1079
|
+
} | null;
|
|
1080
|
+
trackedChange: boolean | undefined;
|
|
1081
|
+
trackedChangeText: string | null;
|
|
1082
|
+
trackedChangeType: string | null;
|
|
1083
|
+
trackedChangeDisplayType: string | null;
|
|
1084
|
+
semanticColorKey: string | null;
|
|
1085
|
+
semanticColor: string | null;
|
|
1086
|
+
trackedChangeStory: import('../public/index.js').StoryLocator | null;
|
|
1087
|
+
trackedChangeStoryKind: string | null;
|
|
1088
|
+
trackedChangeStoryLabel: string;
|
|
1089
|
+
trackedChangeAnchorKey: string | null;
|
|
1090
|
+
trackedChangeCanonicalId: string | null;
|
|
1091
|
+
trackedChangePositionAliases: string[];
|
|
1092
|
+
trackedChangeDecision: ("accept" | "reject") | null;
|
|
1093
|
+
trackedChangeLabel: string | null;
|
|
1094
|
+
trackedChangeDetailLines: {
|
|
1095
|
+
excerpt: string;
|
|
1096
|
+
label: string;
|
|
1097
|
+
}[] | null;
|
|
1098
|
+
trackedChangeImagePreview: {
|
|
1099
|
+
src: string;
|
|
1100
|
+
contentType: string;
|
|
1101
|
+
role: "deleted" | "inserted" | "before" | "after";
|
|
1102
|
+
partUri?: string | undefined;
|
|
1103
|
+
relationshipId?: string | undefined;
|
|
1104
|
+
width?: number | undefined;
|
|
1105
|
+
height?: number | undefined;
|
|
1106
|
+
alt?: string | undefined;
|
|
1107
|
+
} | null;
|
|
1108
|
+
customAttributes: readonly {
|
|
1109
|
+
name: string;
|
|
1110
|
+
namespaceUri: string;
|
|
1111
|
+
localName: string;
|
|
1112
|
+
value: string;
|
|
1113
|
+
}[] | null;
|
|
1114
|
+
deletedText: string | null;
|
|
1115
|
+
resolvedTime: number | null;
|
|
1116
|
+
resolvedById: string | null;
|
|
1117
|
+
resolvedByEmail: string | null | undefined;
|
|
1118
|
+
resolvedByName: string | null | undefined;
|
|
1119
|
+
origin: "word" | "google-docs" | "unknown" | undefined;
|
|
1120
|
+
threadingMethod: "commentsExtended" | "range-based" | "mixed" | undefined;
|
|
1121
|
+
threadingStyleOverride: import('../../../../shared/common').CommentThreadingStyle | undefined;
|
|
1122
|
+
threadingParentCommentId: string | null | undefined;
|
|
1123
|
+
originalXmlStructure: {
|
|
1124
|
+
hasCommentsExtended: boolean;
|
|
1125
|
+
hasCommentsExtensible: boolean;
|
|
1126
|
+
hasCommentsIds: boolean;
|
|
1127
|
+
} | undefined;
|
|
1128
|
+
};
|
|
1129
|
+
resolveComment: ({ id, email, name, superdoc, decision, reconciliationToken, }: {
|
|
1130
|
+
id?: string | null;
|
|
1131
|
+
email?: string | null;
|
|
1132
|
+
name?: string | null;
|
|
1133
|
+
superdoc: {
|
|
1134
|
+
emit: (event: "comments-update", payload: {
|
|
1135
|
+
type: import('../../../../shared/common').CommentEvent;
|
|
1136
|
+
changes?: {
|
|
1137
|
+
key: string;
|
|
1138
|
+
value: unknown;
|
|
1139
|
+
previousValue?: unknown;
|
|
1140
|
+
}[];
|
|
1141
|
+
comment: unknown;
|
|
1142
|
+
}) => unknown;
|
|
1143
|
+
commentsStore?: {
|
|
1144
|
+
getConfig?: {
|
|
1145
|
+
readOnly?: boolean;
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
config?: {
|
|
1149
|
+
modules?: import('../public/index.js').Modules;
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
decision?: "accept" | "reject";
|
|
1153
|
+
reconciliationToken?: symbol;
|
|
1154
|
+
}) => {
|
|
1155
|
+
ok: false;
|
|
1156
|
+
reason: "read-only-document";
|
|
1157
|
+
} | undefined;
|
|
1158
|
+
setIsInternal: ({ isInternal: newIsInternal, superdoc, }: {
|
|
1159
|
+
isInternal: boolean;
|
|
1160
|
+
superdoc: {
|
|
1161
|
+
emit: (event: "comments-update", payload: {
|
|
1162
|
+
type: import('../../../../shared/common').CommentEvent;
|
|
1163
|
+
changes?: {
|
|
1164
|
+
key: string;
|
|
1165
|
+
value: unknown;
|
|
1166
|
+
previousValue?: unknown;
|
|
1167
|
+
}[];
|
|
1168
|
+
comment: unknown;
|
|
1169
|
+
}) => unknown;
|
|
1170
|
+
commentsStore?: {
|
|
1171
|
+
getConfig?: {
|
|
1172
|
+
readOnly?: boolean;
|
|
1173
|
+
};
|
|
1174
|
+
};
|
|
1175
|
+
config?: {
|
|
1176
|
+
modules?: import('../public/index.js').Modules;
|
|
1177
|
+
};
|
|
1178
|
+
};
|
|
1179
|
+
}) => {
|
|
1180
|
+
ok: false;
|
|
1181
|
+
reason: "read-only-document";
|
|
1182
|
+
} | undefined;
|
|
1183
|
+
updatePosition: (coords: {
|
|
1184
|
+
top: number;
|
|
1185
|
+
left: number;
|
|
1186
|
+
right: number;
|
|
1187
|
+
bottom: number;
|
|
1188
|
+
}, parentElement: Pick<Element, "getBoundingClientRect">) => void;
|
|
1189
|
+
getCommentUser: () => {
|
|
1190
|
+
name: string;
|
|
1191
|
+
email: string | null | undefined;
|
|
1192
|
+
id?: undefined;
|
|
1193
|
+
image?: undefined;
|
|
1194
|
+
} | {
|
|
1195
|
+
id: string | null;
|
|
1196
|
+
name: string | null;
|
|
1197
|
+
email: string | null;
|
|
1198
|
+
image: string | null;
|
|
1199
|
+
};
|
|
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;
|
|
1208
|
+
}[]>;
|
|
1209
|
+
commentThreadingProfile: import('vue').Ref<{} | null, {} | null>;
|
|
1210
|
+
setEditor: (ref: Editor | null) => Editor | null;
|
|
1211
|
+
getEditor: () => Editor | null;
|
|
1212
|
+
setDocumentRuntime: (ref: DocumentRendererRuntime | null) => DocumentRendererRuntime | null;
|
|
1213
|
+
getDocumentRuntime: () => DocumentRendererRuntime | null;
|
|
34
1214
|
removeComments: () => void;
|
|
35
1215
|
restoreComments: () => void;
|
|
36
|
-
removeConversation: (conversationId: any) => void;
|
|
37
1216
|
};
|
|
1217
|
+
export {};
|