superdoc 2.29.0-next.1 → 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/{create-super-doc-ui-0OA8hCNb.cjs → create-super-doc-ui-BAGOnYGM.cjs} +2 -2
- package/dist/chunks/{create-super-doc-ui-Duf65d0b.es.js → create-super-doc-ui-BFt8agAI.es.js} +2 -2
- package/dist/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.es.js +1 -1
- 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/tables/tables.d.ts +2 -1
- package/dist/document-api/src/types/table-operations.types.d.ts +1 -0
- 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/components/CommentsLayer/CommentDialog.vue.d.ts +699 -28
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +107 -22
- 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/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 +12 -5
- package/dist/superdoc/src/core/collaboration/permissions.d.ts +1 -1
- package/dist/superdoc.cjs +94 -59
- package/dist/superdoc.es.js +86 -52
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +23 -23
- package/package.json +2 -2
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
contentStyle: Record<string, any>;
|
|
11
|
-
$props: {
|
|
12
|
-
readonly options?: unknown[] | undefined;
|
|
13
|
-
readonly disabled?: boolean | undefined;
|
|
14
|
-
readonly contentStyle?: Record<string, any> | undefined;
|
|
15
|
-
};
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
17
|
-
triggerRef: HTMLDivElement;
|
|
18
|
-
menuRef: HTMLDivElement;
|
|
19
|
-
}, HTMLDivElement>;
|
|
20
|
-
type __VLS_TemplateResult = {
|
|
1
|
+
import { CSSProperties, PropType, VNodeChild } from 'vue';
|
|
2
|
+
type CommentsDropdownOption = {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
iconString?: string;
|
|
7
|
+
icon?: VNodeChild | ((option: CommentsDropdownOption) => VNodeChild);
|
|
8
|
+
};
|
|
9
|
+
declare function __VLS_template(): {
|
|
21
10
|
attrs: Partial<{}>;
|
|
22
11
|
slots: {
|
|
23
12
|
default?(_: {}): any;
|
|
@@ -28,3 +17,49 @@ type __VLS_TemplateResult = {
|
|
|
28
17
|
};
|
|
29
18
|
rootEl: HTMLDivElement;
|
|
30
19
|
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
22
|
+
options: {
|
|
23
|
+
type: PropType<readonly CommentsDropdownOption[]>;
|
|
24
|
+
default: () => never[];
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
contentStyle: {
|
|
31
|
+
type: PropType<CSSProperties>;
|
|
32
|
+
default: () => {};
|
|
33
|
+
};
|
|
34
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
|
+
select: (...args: any[]) => void;
|
|
36
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
options: {
|
|
38
|
+
type: PropType<readonly CommentsDropdownOption[]>;
|
|
39
|
+
default: () => never[];
|
|
40
|
+
};
|
|
41
|
+
disabled: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
contentStyle: {
|
|
46
|
+
type: PropType<CSSProperties>;
|
|
47
|
+
default: () => {};
|
|
48
|
+
};
|
|
49
|
+
}>> & Readonly<{
|
|
50
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
options: readonly CommentsDropdownOption[];
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
contentStyle: CSSProperties;
|
|
55
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
56
|
+
triggerRef: HTMLDivElement;
|
|
57
|
+
menuRef: HTMLDivElement;
|
|
58
|
+
}, HTMLDivElement>;
|
|
59
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
60
|
+
export default _default;
|
|
61
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
state: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
};
|
|
6
|
+
isDisabled: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
select: (...args: any[]) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
+
state: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: false;
|
|
8
16
|
};
|
|
9
|
-
|
|
17
|
+
isDisabled: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{
|
|
22
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
isDisabled: boolean;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
10
26
|
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
|
|
3
|
-
},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
"anchor-activate": (...args: any[]) => void;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
"onAnchor-activate"?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
4
6
|
export default _default;
|
package/dist/superdoc/src/components/CommentsLayer/commentsList/ReviewDirectoryListItem.vue.d.ts
CHANGED
|
@@ -1,16 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CommentModel } from '../use-comment.js';
|
|
3
|
+
export type PositionEntry = {
|
|
4
|
+
pageIndex?: number | null;
|
|
5
|
+
bounds?: {
|
|
6
|
+
top?: number;
|
|
7
|
+
bottom?: number;
|
|
8
|
+
} | null;
|
|
9
|
+
};
|
|
10
|
+
export type ReviewDirectoryItem = {
|
|
11
|
+
id: string | undefined;
|
|
12
|
+
comment: CommentModel;
|
|
13
|
+
floatingInstanceId: string | null;
|
|
14
|
+
floatingPageIndex: number | null | undefined;
|
|
15
|
+
floatingPositionEntry: PositionEntry | null;
|
|
16
|
+
isFloatingInstanceActive: boolean | undefined;
|
|
17
|
+
threadComments: CommentModel[];
|
|
18
|
+
};
|
|
19
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
20
|
+
item: {
|
|
21
|
+
type: PropType<ReviewDirectoryItem>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
index: {
|
|
25
|
+
type: NumberConstructor;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
total: {
|
|
29
|
+
type: NumberConstructor;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
tabIndex: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
37
|
+
navigate: (...args: any[]) => void;
|
|
38
|
+
"focus-item": (...args: any[]) => void;
|
|
39
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
40
|
+
item: {
|
|
41
|
+
type: PropType<ReviewDirectoryItem>;
|
|
42
|
+
required: true;
|
|
12
43
|
};
|
|
13
|
-
|
|
44
|
+
index: {
|
|
45
|
+
type: NumberConstructor;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
total: {
|
|
49
|
+
type: NumberConstructor;
|
|
50
|
+
required: true;
|
|
51
|
+
};
|
|
52
|
+
tabIndex: {
|
|
53
|
+
type: NumberConstructor;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
}>> & Readonly<{
|
|
57
|
+
onNavigate?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
"onFocus-item"?: ((...args: any[]) => any) | undefined;
|
|
59
|
+
}>, {
|
|
60
|
+
tabIndex: number;
|
|
61
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
14
62
|
shell: HTMLDivElement;
|
|
15
63
|
}, HTMLDivElement>;
|
|
16
64
|
export default _default;
|
|
@@ -1,11 +1,25 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
showMainComments: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
showResolvedComments: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
showMainComments: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
showResolvedComments: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
2
20
|
showMainComments: boolean;
|
|
3
21
|
showResolvedComments: boolean;
|
|
4
|
-
|
|
5
|
-
readonly showMainComments?: boolean | undefined;
|
|
6
|
-
readonly showResolvedComments?: boolean | undefined;
|
|
7
|
-
};
|
|
8
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
9
23
|
listRoot: HTMLDivElement;
|
|
10
24
|
}, HTMLDivElement>;
|
|
11
25
|
export default _default;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { User } from '../../core/types/index.js';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
user: {
|
|
5
|
+
type: PropType<User>;
|
|
6
|
+
required: true;
|
|
5
7
|
};
|
|
6
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
user: {
|
|
10
|
+
type: PropType<User>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
7
14
|
export default _default;
|
|
@@ -12,7 +12,7 @@ export const PERMISSIONS: Readonly<{
|
|
|
12
12
|
}>;
|
|
13
13
|
export function createTrackedChangePermissionResolver(superdoc: any): (payload?: {}) => any;
|
|
14
14
|
export function readBuiltInTrackedChangePermissionDecision(superdoc: any, canPerform: any, permission: any, trackedChange: any): any;
|
|
15
|
-
export function isAllowed(permission: string, role: string, isInternal: boolean, context?: {
|
|
15
|
+
export function isAllowed(permission: string, role: string | undefined, isInternal: boolean | undefined, context?: {
|
|
16
16
|
comment?: object | null | undefined;
|
|
17
17
|
superdoc?: object | null | undefined;
|
|
18
18
|
currentUser?: object | null | undefined;
|