superdoc 2.28.0 → 2.29.0-next.2
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/{PdfViewer-JHXZQZ9x.es.js → PdfViewer-D4lVeOJu.es.js} +3 -2
- package/dist/chunks/{PdfViewer-Cg072l5d.cjs → PdfViewer-boENOZdF.cjs} +3 -2
- package/dist/chunks/{create-super-doc-ui-BfgYblyI.cjs → create-super-doc-ui-BAGOnYGM.cjs} +201 -23
- package/dist/chunks/{create-super-doc-ui-BbjHD1ul.es.js → create-super-doc-ui-BFt8agAI.es.js} +180 -20
- package/dist/chunks/is-finite-number-BEXgTRgc.cjs +11 -0
- package/dist/chunks/is-finite-number-BpL4F38c.es.js +6 -0
- 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 +3 -3
- package/dist/document-api/src/contract/metadata-types.d.ts +1 -1
- package/dist/document-api/src/contract/operation-definitions.d.ts +1 -1
- package/dist/document-api/src/index.d.ts +1 -1
- package/dist/document-api/src/lists/lists.d.ts +79 -79
- package/dist/document-api/src/tables/tables.d.ts +2 -1
- package/dist/document-api/src/types/table-operations.types.d.ts +1 -0
- package/dist/document-api/src/write/write.d.ts +10 -9
- 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/layout-engine/painters/dom/src/page-content.d.ts +1 -1
- package/dist/layout-engine/painters/dom/src/persistent-page-surface.d.ts +2 -0
- 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 +5 -3
- package/dist/superdoc/src/components/CommentsLayer/CommentDialog.vue.d.ts +2365 -48
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +108 -23
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +689 -14
- package/dist/superdoc/src/components/CommentsLayer/CommentsDropdown.vue.d.ts +55 -20
- package/dist/superdoc/src/components/CommentsLayer/FloatingComments.vue.d.ts +21 -8
- 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/use-comment.d.ts +1 -0
- package/dist/superdoc/src/components/general/Avatar.vue.d.ts +14 -0
- package/dist/superdoc/src/components/surfaces/SurfaceDialog.vue.d.ts +27 -9
- package/dist/superdoc/src/components/surfaces/SurfaceExternalMount.vue.d.ts +53 -16
- package/dist/superdoc/src/composables/use-link-popover.d.ts +3 -3
- package/dist/superdoc/src/composables/use-superdoc-instance.d.ts +4 -1
- package/dist/superdoc/src/core/SuperDoc.d.ts +1 -1
- package/dist/superdoc/src/core/collaboration/permissions.d.ts +2 -1
- package/dist/superdoc/src/core/types/index.d.ts +9 -4
- package/dist/superdoc/src/helpers/is-finite-number.d.ts +1 -0
- package/dist/superdoc/src/internal/diagnostics/diagnostic-dedupe.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/LinkInput.vue.d.ts +181 -36
- package/dist/superdoc/src/internal/toolbar/built-in/LinkedStyle.vue.d.ts +39 -10
- package/dist/superdoc/src/internal/toolbar/built-in/PageNumberMenu.vue.d.ts +133 -22
- package/dist/superdoc/src/internal/toolbar/built-in/SdTooltip.vue.d.ts +62 -23
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButton.vue.d.ts +101 -16
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarButtonIcon.vue.d.ts +31 -10
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarComboBox.vue.d.ts +82 -11
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +122 -33
- package/dist/superdoc/src/internal/toolbar/built-in/use-toolbar-item.d.ts +0 -1
- package/dist/superdoc/src/stores/comments-store.d.ts +151 -28
- package/dist/superdoc/src/stores/superdoc-store.d.ts +454 -85
- package/dist/superdoc.cjs +396 -443
- package/dist/superdoc.es.js +329 -378
- 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/built-in/OverflowMenu.vue.d.ts +0 -104
|
@@ -1,11 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
name: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: PropType<string | null>;
|
|
9
|
+
default: null;
|
|
10
|
+
};
|
|
11
|
+
icon: {
|
|
12
|
+
type: PropType<string | null>;
|
|
13
|
+
default: null;
|
|
14
|
+
};
|
|
15
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
name: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: PropType<string | null>;
|
|
22
|
+
default: null;
|
|
23
|
+
};
|
|
24
|
+
icon: {
|
|
25
|
+
type: PropType<string | null>;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
}>> & Readonly<{}>, {
|
|
29
|
+
color: string | null;
|
|
30
|
+
icon: string | null;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
11
32
|
export default _default;
|
|
@@ -1,16 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { CSSProperties, PropType, Ref, StyleValue } from 'vue';
|
|
2
|
+
interface ComboBoxOption {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
value?: string;
|
|
6
|
+
props?: {
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
interface ComboBoxItem {
|
|
12
|
+
id?: Ref<string>;
|
|
13
|
+
name?: Ref<string>;
|
|
14
|
+
label?: Ref<string | number | null | undefined>;
|
|
15
|
+
disabled?: Ref<boolean | undefined>;
|
|
16
|
+
attributes?: Ref<{
|
|
17
|
+
ariaLabel?: string;
|
|
18
|
+
} | undefined>;
|
|
19
|
+
nestedOptions?: Ref<ComboBoxOption[]>;
|
|
20
|
+
selectedValue: Ref<string | undefined>;
|
|
21
|
+
expand?: Ref<boolean>;
|
|
22
|
+
style?: Ref<StyleValue | undefined>;
|
|
23
|
+
}
|
|
24
|
+
interface TabOutTarget {
|
|
25
|
+
shiftKey: boolean;
|
|
26
|
+
target: HTMLInputElement | null;
|
|
27
|
+
}
|
|
28
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
29
|
+
item: {
|
|
30
|
+
type: PropType<ComboBoxItem>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
uiFontFamily: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
showPreview: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
normalizeValue: {
|
|
42
|
+
type: PropType<(value: string) => string>;
|
|
43
|
+
default: (value: string) => string;
|
|
44
|
+
};
|
|
45
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
|
+
command: (payload: {
|
|
47
|
+
item: ComboBoxItem;
|
|
48
|
+
argument: string;
|
|
49
|
+
option: ComboBoxOption | null;
|
|
50
|
+
}) => any;
|
|
51
|
+
"item-clicked": () => any;
|
|
52
|
+
"tab-out": (event: KeyboardEvent | TabOutTarget) => any;
|
|
53
|
+
"editor-handoff": () => any;
|
|
54
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
55
|
+
item: {
|
|
56
|
+
type: PropType<ComboBoxItem>;
|
|
57
|
+
required: true;
|
|
58
|
+
};
|
|
59
|
+
uiFontFamily: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
showPreview: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
normalizeValue: {
|
|
68
|
+
type: PropType<(value: string) => string>;
|
|
69
|
+
default: (value: string) => string;
|
|
70
|
+
};
|
|
71
|
+
}>> & Readonly<{
|
|
72
|
+
onCommand?: ((payload: {
|
|
73
|
+
item: ComboBoxItem;
|
|
74
|
+
argument: string;
|
|
75
|
+
option: ComboBoxOption | null;
|
|
76
|
+
}) => any) | undefined;
|
|
77
|
+
"onItem-clicked"?: (() => any) | undefined;
|
|
78
|
+
"onTab-out"?: ((event: KeyboardEvent | TabOutTarget) => any) | undefined;
|
|
79
|
+
"onEditor-handoff"?: (() => any) | undefined;
|
|
80
|
+
}>, {
|
|
4
81
|
uiFontFamily: string;
|
|
5
82
|
showPreview: boolean;
|
|
6
|
-
normalizeValue:
|
|
7
|
-
|
|
8
|
-
readonly item?: Record<string, any> | undefined;
|
|
9
|
-
readonly uiFontFamily?: string | undefined;
|
|
10
|
-
readonly showPreview?: boolean | undefined;
|
|
11
|
-
readonly normalizeValue?: Function | undefined;
|
|
12
|
-
};
|
|
13
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
83
|
+
normalizeValue: (value: string) => string;
|
|
84
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
14
85
|
rootRef: HTMLDivElement;
|
|
15
86
|
inputRef: HTMLInputElement;
|
|
16
87
|
popupRef: HTMLDivElement;
|
|
@@ -1,36 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
readonly options?: unknown[] | undefined;
|
|
21
|
-
readonly disabled?: boolean | undefined;
|
|
22
|
-
readonly contentStyle?: Record<string, any> | undefined;
|
|
23
|
-
readonly show?: boolean | undefined;
|
|
24
|
-
readonly menuProps?: Function | undefined;
|
|
25
|
-
readonly nodeProps?: Function | undefined;
|
|
26
|
-
readonly closeOnEscape?: boolean | undefined;
|
|
27
|
-
readonly hasOpenChild?: boolean | undefined;
|
|
28
|
-
};
|
|
29
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
30
|
-
triggerRef: HTMLDivElement;
|
|
31
|
-
menuRef: HTMLDivElement;
|
|
32
|
-
}, HTMLDivElement>;
|
|
33
|
-
type __VLS_TemplateResult = {
|
|
1
|
+
import { CSSProperties, PropType } from 'vue';
|
|
2
|
+
interface DropdownOption {
|
|
3
|
+
key?: string | number;
|
|
4
|
+
label?: string;
|
|
5
|
+
type?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
class?: unknown;
|
|
8
|
+
props?: Record<string, unknown>;
|
|
9
|
+
icon?: string | object | ((option: DropdownOption) => unknown);
|
|
10
|
+
render?: () => unknown;
|
|
11
|
+
}
|
|
12
|
+
interface DropdownMenuProps {
|
|
13
|
+
class?: unknown;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
[attribute: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
type MenuPropsFactory = () => DropdownMenuProps | null | undefined;
|
|
18
|
+
type NodePropsFactory = (option: DropdownOption) => Record<string, unknown> | null | undefined;
|
|
19
|
+
declare function __VLS_template(): {
|
|
34
20
|
attrs: Partial<{}>;
|
|
35
21
|
slots: {
|
|
36
22
|
trigger?(_: {}): any;
|
|
@@ -42,3 +28,106 @@ type __VLS_TemplateResult = {
|
|
|
42
28
|
};
|
|
43
29
|
rootEl: HTMLDivElement;
|
|
44
30
|
};
|
|
31
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
32
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
33
|
+
options: {
|
|
34
|
+
type: PropType<DropdownOption[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
show: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
placement: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
disabled: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
contentStyle: {
|
|
50
|
+
type: PropType<CSSProperties>;
|
|
51
|
+
default: () => {};
|
|
52
|
+
};
|
|
53
|
+
menuProps: {
|
|
54
|
+
type: PropType<MenuPropsFactory>;
|
|
55
|
+
default: null;
|
|
56
|
+
};
|
|
57
|
+
nodeProps: {
|
|
58
|
+
type: PropType<NodePropsFactory>;
|
|
59
|
+
default: null;
|
|
60
|
+
};
|
|
61
|
+
closeOnEscape: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
hasOpenChild: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
}>, {
|
|
70
|
+
focusTrigger: () => void;
|
|
71
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
72
|
+
select: (key: string | number | undefined, option: DropdownOption) => any;
|
|
73
|
+
"update:show": (value: boolean) => any;
|
|
74
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
75
|
+
options: {
|
|
76
|
+
type: PropType<DropdownOption[]>;
|
|
77
|
+
default: () => never[];
|
|
78
|
+
};
|
|
79
|
+
show: {
|
|
80
|
+
type: BooleanConstructor;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
placement: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
disabled: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
contentStyle: {
|
|
92
|
+
type: PropType<CSSProperties>;
|
|
93
|
+
default: () => {};
|
|
94
|
+
};
|
|
95
|
+
menuProps: {
|
|
96
|
+
type: PropType<MenuPropsFactory>;
|
|
97
|
+
default: null;
|
|
98
|
+
};
|
|
99
|
+
nodeProps: {
|
|
100
|
+
type: PropType<NodePropsFactory>;
|
|
101
|
+
default: null;
|
|
102
|
+
};
|
|
103
|
+
closeOnEscape: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
hasOpenChild: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
}>> & Readonly<{
|
|
112
|
+
onSelect?: ((key: string | number | undefined, option: DropdownOption) => any) | undefined;
|
|
113
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
114
|
+
}>, {
|
|
115
|
+
placement: string;
|
|
116
|
+
options: DropdownOption[];
|
|
117
|
+
disabled: boolean;
|
|
118
|
+
contentStyle: CSSProperties;
|
|
119
|
+
menuProps: MenuPropsFactory;
|
|
120
|
+
nodeProps: NodePropsFactory;
|
|
121
|
+
closeOnEscape: boolean;
|
|
122
|
+
hasOpenChild: boolean;
|
|
123
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
124
|
+
triggerRef: HTMLDivElement;
|
|
125
|
+
menuRef: HTMLDivElement;
|
|
126
|
+
}, HTMLDivElement>;
|
|
127
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
128
|
+
export default _default;
|
|
129
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
130
|
+
new (): {
|
|
131
|
+
$slots: S;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
@@ -23,7 +23,6 @@ export function useToolbarItem(options: any): {
|
|
|
23
23
|
style: import('vue').Ref<any, any>;
|
|
24
24
|
isNarrow: import('vue').Ref<any, any>;
|
|
25
25
|
isWide: import('vue').Ref<any, any>;
|
|
26
|
-
minWidth: import('vue').Ref<any, any>;
|
|
27
26
|
layoutWidth: import('vue').Ref<any, any>;
|
|
28
27
|
argument: import('vue').Ref<any, any>;
|
|
29
28
|
parentItem: import('vue').Ref<null, null>;
|
|
@@ -101,23 +101,43 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
101
101
|
};
|
|
102
102
|
hasOverlapId: (id: any) => any;
|
|
103
103
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
104
|
-
selection
|
|
105
|
-
documentId
|
|
106
|
-
parentCommentId
|
|
107
|
-
}) =>
|
|
104
|
+
selection?: Object | undefined;
|
|
105
|
+
documentId?: string | null | undefined;
|
|
106
|
+
parentCommentId?: string | null | undefined;
|
|
107
|
+
}) => ReturnType<typeof useComment>;
|
|
108
108
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
109
109
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
110
110
|
superdoc: any;
|
|
111
111
|
comment: any;
|
|
112
112
|
skipEditorUpdate?: boolean | undefined;
|
|
113
113
|
broadcastChanges?: boolean | undefined;
|
|
114
|
-
}) =>
|
|
114
|
+
}) => {
|
|
115
|
+
ok: boolean;
|
|
116
|
+
reason?: string;
|
|
117
|
+
detail?: string;
|
|
118
|
+
code?: string;
|
|
119
|
+
} | Promise<{
|
|
120
|
+
ok: boolean;
|
|
121
|
+
reason?: string;
|
|
122
|
+
detail?: string;
|
|
123
|
+
code?: string;
|
|
124
|
+
}>;
|
|
115
125
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
116
126
|
superdoc: any;
|
|
117
127
|
comment: any;
|
|
118
128
|
skipEditorUpdate?: boolean | undefined;
|
|
119
129
|
broadcastChanges?: boolean | undefined;
|
|
120
|
-
}) =>
|
|
130
|
+
}) => {
|
|
131
|
+
ok: boolean;
|
|
132
|
+
reason?: string;
|
|
133
|
+
detail?: string;
|
|
134
|
+
code?: string;
|
|
135
|
+
} | Promise<{
|
|
136
|
+
ok: boolean;
|
|
137
|
+
reason?: string;
|
|
138
|
+
detail?: string;
|
|
139
|
+
code?: string;
|
|
140
|
+
}>;
|
|
121
141
|
cancelComment: (superdoc: any) => void;
|
|
122
142
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
123
143
|
commentId: any;
|
|
@@ -154,8 +174,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
154
174
|
clearInstantSidebarAlignment: () => void;
|
|
155
175
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
156
176
|
superdoc: Object;
|
|
157
|
-
|
|
158
|
-
|
|
177
|
+
comment: Object;
|
|
178
|
+
decision: string;
|
|
179
|
+
}) => {
|
|
180
|
+
ok: boolean;
|
|
181
|
+
success?: boolean;
|
|
182
|
+
reason?: string;
|
|
183
|
+
} | Promise<{
|
|
184
|
+
ok: boolean;
|
|
185
|
+
success?: boolean;
|
|
186
|
+
reason?: string;
|
|
187
|
+
}>;
|
|
159
188
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
160
189
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
161
190
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
@@ -186,7 +215,19 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
186
215
|
};
|
|
187
216
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
188
217
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
189
|
-
|
|
218
|
+
superdoc?: Object | undefined;
|
|
219
|
+
parentCommentId?: string | null | undefined;
|
|
220
|
+
text?: string | undefined;
|
|
221
|
+
mentions?: {
|
|
222
|
+
name?: string | null;
|
|
223
|
+
email?: string | null;
|
|
224
|
+
}[] | undefined;
|
|
225
|
+
trackedChangeTarget?: {
|
|
226
|
+
kind: "trackedChange";
|
|
227
|
+
trackedChangeId: string;
|
|
228
|
+
story?: unknown;
|
|
229
|
+
side?: "source" | "destination";
|
|
230
|
+
} | undefined;
|
|
190
231
|
}) => Promise<any>;
|
|
191
232
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
192
233
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -236,7 +277,7 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
236
277
|
liveAnchorKeys?: null | undefined;
|
|
237
278
|
}) => any;
|
|
238
279
|
remapTrackedChangeIdentities: (pairs?: any[], { documentId }?: {}) => void;
|
|
239
|
-
}, "
|
|
280
|
+
}, "COMMENT_EVENTS" | "isDebugging" | "hasInitializedComments" | "hasSyncedCollaborationComments" | "editingCommentId" | "activeComment" | "activeFloatingCommentInstanceId" | "commentDialogs" | "overlappingComments" | "overlappedIds" | "suppressInternalExternal" | "pendingComment" | "currentCommentText" | "currentCommentMentions" | "commentsList" | "reviewDirectoryList" | "isCommentsListVisible" | "isReviewDirectoryActive" | "isReviewDirectoryLoading" | "generalCommentIds" | "editorCommentIds" | "commentsParentElement" | "editorCommentPositions" | "hasInitializedLocations" | "isCommentHighlighted" | "floatingCommentsOffset" | "committedReviewPresentations" | "sortedConversations" | "visibleConversations" | "skipSelectionUpdate" | "isFloatingCommentsReady" | "instantSidebarAlignmentTargetY" | "instantSidebarAlignmentThreadId" | "instantSidebarAlignmentInstanceId" | "viewingVisibility" | "v2CommentsAdapter" | "v2TrackedChangesAdapter">, Pick<{
|
|
240
281
|
COMMENT_EVENTS: {
|
|
241
282
|
readonly RESOLVED: "resolved";
|
|
242
283
|
readonly NEW: "new";
|
|
@@ -339,23 +380,43 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
339
380
|
};
|
|
340
381
|
hasOverlapId: (id: any) => any;
|
|
341
382
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
342
|
-
selection
|
|
343
|
-
documentId
|
|
344
|
-
parentCommentId
|
|
345
|
-
}) =>
|
|
383
|
+
selection?: Object | undefined;
|
|
384
|
+
documentId?: string | null | undefined;
|
|
385
|
+
parentCommentId?: string | null | undefined;
|
|
386
|
+
}) => ReturnType<typeof useComment>;
|
|
346
387
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
347
388
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
348
389
|
superdoc: any;
|
|
349
390
|
comment: any;
|
|
350
391
|
skipEditorUpdate?: boolean | undefined;
|
|
351
392
|
broadcastChanges?: boolean | undefined;
|
|
352
|
-
}) =>
|
|
393
|
+
}) => {
|
|
394
|
+
ok: boolean;
|
|
395
|
+
reason?: string;
|
|
396
|
+
detail?: string;
|
|
397
|
+
code?: string;
|
|
398
|
+
} | Promise<{
|
|
399
|
+
ok: boolean;
|
|
400
|
+
reason?: string;
|
|
401
|
+
detail?: string;
|
|
402
|
+
code?: string;
|
|
403
|
+
}>;
|
|
353
404
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
354
405
|
superdoc: any;
|
|
355
406
|
comment: any;
|
|
356
407
|
skipEditorUpdate?: boolean | undefined;
|
|
357
408
|
broadcastChanges?: boolean | undefined;
|
|
358
|
-
}) =>
|
|
409
|
+
}) => {
|
|
410
|
+
ok: boolean;
|
|
411
|
+
reason?: string;
|
|
412
|
+
detail?: string;
|
|
413
|
+
code?: string;
|
|
414
|
+
} | Promise<{
|
|
415
|
+
ok: boolean;
|
|
416
|
+
reason?: string;
|
|
417
|
+
detail?: string;
|
|
418
|
+
code?: string;
|
|
419
|
+
}>;
|
|
359
420
|
cancelComment: (superdoc: any) => void;
|
|
360
421
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
361
422
|
commentId: any;
|
|
@@ -392,8 +453,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
392
453
|
clearInstantSidebarAlignment: () => void;
|
|
393
454
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
394
455
|
superdoc: Object;
|
|
395
|
-
|
|
396
|
-
|
|
456
|
+
comment: Object;
|
|
457
|
+
decision: string;
|
|
458
|
+
}) => {
|
|
459
|
+
ok: boolean;
|
|
460
|
+
success?: boolean;
|
|
461
|
+
reason?: string;
|
|
462
|
+
} | Promise<{
|
|
463
|
+
ok: boolean;
|
|
464
|
+
success?: boolean;
|
|
465
|
+
reason?: string;
|
|
466
|
+
}>;
|
|
397
467
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
398
468
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
399
469
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
@@ -424,7 +494,19 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
424
494
|
};
|
|
425
495
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
426
496
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
427
|
-
|
|
497
|
+
superdoc?: Object | undefined;
|
|
498
|
+
parentCommentId?: string | null | undefined;
|
|
499
|
+
text?: string | undefined;
|
|
500
|
+
mentions?: {
|
|
501
|
+
name?: string | null;
|
|
502
|
+
email?: string | null;
|
|
503
|
+
}[] | undefined;
|
|
504
|
+
trackedChangeTarget?: {
|
|
505
|
+
kind: "trackedChange";
|
|
506
|
+
trackedChangeId: string;
|
|
507
|
+
story?: unknown;
|
|
508
|
+
side?: "source" | "destination";
|
|
509
|
+
} | undefined;
|
|
428
510
|
}) => Promise<any>;
|
|
429
511
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
430
512
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|
|
@@ -577,23 +659,43 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
577
659
|
};
|
|
578
660
|
hasOverlapId: (id: any) => any;
|
|
579
661
|
getPendingComment: ({ selection, documentId, parentCommentId, ...options }: {
|
|
580
|
-
selection
|
|
581
|
-
documentId
|
|
582
|
-
parentCommentId
|
|
583
|
-
}) =>
|
|
662
|
+
selection?: Object | undefined;
|
|
663
|
+
documentId?: string | null | undefined;
|
|
664
|
+
parentCommentId?: string | null | undefined;
|
|
665
|
+
}) => ReturnType<typeof useComment>;
|
|
584
666
|
showAddComment: (superdoc: any, targetClientY?: null) => any;
|
|
585
667
|
addComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
586
668
|
superdoc: any;
|
|
587
669
|
comment: any;
|
|
588
670
|
skipEditorUpdate?: boolean | undefined;
|
|
589
671
|
broadcastChanges?: boolean | undefined;
|
|
590
|
-
}) =>
|
|
672
|
+
}) => {
|
|
673
|
+
ok: boolean;
|
|
674
|
+
reason?: string;
|
|
675
|
+
detail?: string;
|
|
676
|
+
code?: string;
|
|
677
|
+
} | Promise<{
|
|
678
|
+
ok: boolean;
|
|
679
|
+
reason?: string;
|
|
680
|
+
detail?: string;
|
|
681
|
+
code?: string;
|
|
682
|
+
}>;
|
|
591
683
|
addHydratedComment: ({ superdoc, comment, skipEditorUpdate, broadcastChanges }: {
|
|
592
684
|
superdoc: any;
|
|
593
685
|
comment: any;
|
|
594
686
|
skipEditorUpdate?: boolean | undefined;
|
|
595
687
|
broadcastChanges?: boolean | undefined;
|
|
596
|
-
}) =>
|
|
688
|
+
}) => {
|
|
689
|
+
ok: boolean;
|
|
690
|
+
reason?: string;
|
|
691
|
+
detail?: string;
|
|
692
|
+
code?: string;
|
|
693
|
+
} | Promise<{
|
|
694
|
+
ok: boolean;
|
|
695
|
+
reason?: string;
|
|
696
|
+
detail?: string;
|
|
697
|
+
code?: string;
|
|
698
|
+
}>;
|
|
597
699
|
cancelComment: (superdoc: any) => void;
|
|
598
700
|
deleteComment: ({ commentId: commentIdToDelete, superdoc }: {
|
|
599
701
|
commentId: any;
|
|
@@ -630,8 +732,17 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
630
732
|
clearInstantSidebarAlignment: () => void;
|
|
631
733
|
decideTrackedChangeFromSidebar: ({ superdoc, comment, decision }: {
|
|
632
734
|
superdoc: Object;
|
|
633
|
-
|
|
634
|
-
|
|
735
|
+
comment: Object;
|
|
736
|
+
decision: string;
|
|
737
|
+
}) => {
|
|
738
|
+
ok: boolean;
|
|
739
|
+
success?: boolean;
|
|
740
|
+
reason?: string;
|
|
741
|
+
} | Promise<{
|
|
742
|
+
ok: boolean;
|
|
743
|
+
success?: boolean;
|
|
744
|
+
reason?: string;
|
|
745
|
+
}>;
|
|
635
746
|
v2CommentsAdapter: import('vue').ShallowRef<null, null>;
|
|
636
747
|
setV2CommentsAdapter: (adapter: any) => void;
|
|
637
748
|
getV2CommentsAdapter: (superdoc: any) => any;
|
|
@@ -662,7 +773,19 @@ export const useCommentsStore: import('pinia').StoreDefinition<"comments", Pick<
|
|
|
662
773
|
};
|
|
663
774
|
isV2EditorActive: (superdoc: any) => boolean;
|
|
664
775
|
replyCommentV2: ({ superdoc, parentCommentId, text, mentions, trackedChangeTarget }?: {
|
|
665
|
-
|
|
776
|
+
superdoc?: Object | undefined;
|
|
777
|
+
parentCommentId?: string | null | undefined;
|
|
778
|
+
text?: string | undefined;
|
|
779
|
+
mentions?: {
|
|
780
|
+
name?: string | null;
|
|
781
|
+
email?: string | null;
|
|
782
|
+
}[] | undefined;
|
|
783
|
+
trackedChangeTarget?: {
|
|
784
|
+
kind: "trackedChange";
|
|
785
|
+
trackedChangeId: string;
|
|
786
|
+
story?: unknown;
|
|
787
|
+
side?: "source" | "destination";
|
|
788
|
+
} | undefined;
|
|
666
789
|
}) => Promise<any>;
|
|
667
790
|
editCommentV2: ({ superdoc, commentId, text }?: {}) => Promise<any>;
|
|
668
791
|
resolveCommentV2: ({ superdoc, commentId }?: {}) => Promise<any>;
|