superdoc 2.29.0-next.2 → 2.29.0-next.3
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/collaboration-upgrade-engine.cjs +1 -1
- package/dist/collaboration-upgrade-engine.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 +7 -1854
- package/dist/superdoc/src/components/CommentsLayer/CommentHeader.vue.d.ts +3 -4
- package/dist/superdoc/src/components/CommentsLayer/CommentInput.vue.d.ts +3 -618
- 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/core/SuperDoc.d.ts +1 -6
- package/dist/superdoc/src/core/editor-runtime/index.d.ts +1 -1
- package/dist/superdoc/src/core/editor-runtime/types.d.ts +7 -0
- package/dist/superdoc/src/core/editor-runtime/v2/v2-editor-runtime-adapter.d.ts +2 -1
- package/dist/superdoc/src/icons.d.ts +8 -0
- package/dist/superdoc/src/internal/toolbar/built-in/AIWriter.vue.d.ts +76 -15
- 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 +105 -5
- package/dist/superdoc/src/internal/toolbar/built-in/DocumentMode.vue.d.ts +20 -6
- 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/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/ToolbarComboBox.vue.d.ts +1 -1
- package/dist/superdoc/src/internal/toolbar/built-in/ToolbarDropdown.vue.d.ts +1 -0
- 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 +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/list-style-buttons.d.ts +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/toolbarIcons.d.ts +67 -0
- package/dist/superdoc/src/stores/helpers/comment-draft-text.d.ts +1 -0
- package/dist/superdoc/src/stores/helpers/tracked-change-row-values.d.ts +25 -0
- package/dist/superdoc.cjs +259 -176
- package/dist/superdoc.es.js +240 -159
- package/dist-cdn/style.layered.css +1 -1
- package/dist-cdn/superdoc.min.css +1 -1
- package/dist-cdn/superdoc.min.js +41 -41
- package/package.json +2 -2
- package/dist/superdoc/src/internal/toolbar/built-in/FontFamilyCombobox.vue.d.ts +0 -10
- package/dist/superdoc/src/internal/toolbar/built-in/FontSizeCombobox.vue.d.ts +0 -10
|
@@ -1,19 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FindReplaceHandle, SurfaceComponentProps, SurfaceMode, SurfaceRequest } from '../../core/types/index.js';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
surfaceId: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
mode: {
|
|
9
|
+
type: PropType<SurfaceMode>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
request: {
|
|
13
|
+
type: PropType<SurfaceRequest>;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
resolve: {
|
|
17
|
+
type: PropType<SurfaceComponentProps["resolve"]>;
|
|
18
|
+
default: () => void;
|
|
19
|
+
};
|
|
20
|
+
close: {
|
|
21
|
+
type: PropType<SurfaceComponentProps["close"]>;
|
|
22
|
+
default: () => void;
|
|
23
|
+
};
|
|
24
|
+
findReplace: {
|
|
25
|
+
type: PropType<FindReplaceHandle>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
+
surfaceId: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
mode: {
|
|
34
|
+
type: PropType<SurfaceMode>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
request: {
|
|
38
|
+
type: PropType<SurfaceRequest>;
|
|
39
|
+
default: () => {};
|
|
40
|
+
};
|
|
41
|
+
resolve: {
|
|
42
|
+
type: PropType<SurfaceComponentProps["resolve"]>;
|
|
43
|
+
default: () => void;
|
|
44
|
+
};
|
|
45
|
+
close: {
|
|
46
|
+
type: PropType<SurfaceComponentProps["close"]>;
|
|
47
|
+
default: () => void;
|
|
48
|
+
};
|
|
49
|
+
findReplace: {
|
|
50
|
+
type: PropType<FindReplaceHandle>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{}>, {
|
|
54
|
+
close: (reason?: unknown) => void;
|
|
55
|
+
mode: SurfaceMode;
|
|
56
|
+
resolve: (data?: unknown) => void;
|
|
57
|
+
request: SurfaceRequest;
|
|
6
58
|
surfaceId: string;
|
|
7
|
-
|
|
8
|
-
$props: {
|
|
9
|
-
readonly close?: Function | undefined;
|
|
10
|
-
readonly mode?: string | undefined;
|
|
11
|
-
readonly resolve?: Function | undefined;
|
|
12
|
-
readonly request?: Record<string, any> | undefined;
|
|
13
|
-
readonly surfaceId?: string | undefined;
|
|
14
|
-
readonly findReplace?: Record<string, any> | undefined;
|
|
15
|
-
};
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
59
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
17
60
|
findInputRef: HTMLInputElement;
|
|
18
61
|
}, HTMLDivElement>;
|
|
19
62
|
export default _default;
|
|
@@ -1,17 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { PasswordPromptHandle, SurfaceComponentProps, SurfaceMode, SurfaceRequest } from '../../core/types/index.js';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
surfaceId: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
mode: {
|
|
9
|
+
type: PropType<SurfaceMode>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
request: {
|
|
13
|
+
type: PropType<SurfaceRequest>;
|
|
14
|
+
default: () => {};
|
|
15
|
+
};
|
|
16
|
+
resolve: {
|
|
17
|
+
type: PropType<SurfaceComponentProps["resolve"]>;
|
|
18
|
+
default: () => void;
|
|
19
|
+
};
|
|
20
|
+
close: {
|
|
21
|
+
type: PropType<SurfaceComponentProps["close"]>;
|
|
22
|
+
default: () => void;
|
|
23
|
+
};
|
|
24
|
+
passwordPrompt: {
|
|
25
|
+
type: PropType<PasswordPromptHandle>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
+
surfaceId: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
mode: {
|
|
34
|
+
type: PropType<SurfaceMode>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
request: {
|
|
38
|
+
type: PropType<SurfaceRequest>;
|
|
39
|
+
default: () => {};
|
|
40
|
+
};
|
|
41
|
+
resolve: {
|
|
42
|
+
type: PropType<SurfaceComponentProps["resolve"]>;
|
|
43
|
+
default: () => void;
|
|
44
|
+
};
|
|
45
|
+
close: {
|
|
46
|
+
type: PropType<SurfaceComponentProps["close"]>;
|
|
47
|
+
default: () => void;
|
|
48
|
+
};
|
|
49
|
+
passwordPrompt: {
|
|
50
|
+
type: PropType<PasswordPromptHandle>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{}>, {
|
|
54
|
+
close: (reason?: unknown) => void;
|
|
55
|
+
mode: SurfaceMode;
|
|
56
|
+
resolve: (data?: unknown) => void;
|
|
57
|
+
request: SurfaceRequest;
|
|
6
58
|
surfaceId: string;
|
|
7
|
-
|
|
8
|
-
$props: {
|
|
9
|
-
readonly close?: Function | undefined;
|
|
10
|
-
readonly mode?: string | undefined;
|
|
11
|
-
readonly resolve?: Function | undefined;
|
|
12
|
-
readonly request?: Record<string, any> | undefined;
|
|
13
|
-
readonly surfaceId?: string | undefined;
|
|
14
|
-
readonly passwordPrompt?: Record<string, any> | undefined;
|
|
15
|
-
};
|
|
16
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
59
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
17
60
|
export default _default;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ActiveSurface } from '../../core/surface-manager.js';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
surface: {
|
|
5
|
+
type: PropType<ActiveSurface>;
|
|
6
|
+
required: true;
|
|
6
7
|
};
|
|
7
|
-
}
|
|
8
|
+
}>, {
|
|
9
|
+
rootEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
10
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
surface: {
|
|
12
|
+
type: PropType<ActiveSurface>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
8
16
|
floatingRef: HTMLDivElement;
|
|
9
17
|
}, HTMLDivElement>;
|
|
10
18
|
export default _default;
|
|
@@ -1,16 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
geometryTarget: {
|
|
4
|
+
type: PropType<HTMLElement | null>;
|
|
5
|
+
default: null;
|
|
5
6
|
};
|
|
6
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
geometryTarget: {
|
|
9
|
+
type: PropType<HTMLElement | null>;
|
|
10
|
+
default: null;
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{}>, {
|
|
13
|
+
geometryTarget: HTMLElement | null;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
7
15
|
hostRef: HTMLDivElement;
|
|
8
|
-
floatingRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
readonly surface?: Record<string, any> | undefined;
|
|
16
|
+
floatingRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
surface: {
|
|
18
|
+
type: PropType<import('../../core/surface-manager.js').ActiveSurface>;
|
|
19
|
+
required: true;
|
|
13
20
|
};
|
|
21
|
+
}>> & Readonly<{}>, {
|
|
22
|
+
rootEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
14
23
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
15
24
|
floatingRef: HTMLDivElement;
|
|
16
25
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -20,12 +29,13 @@ declare const _default: import('vue').DefineComponent<{}, {
|
|
|
20
29
|
C: {};
|
|
21
30
|
M: {};
|
|
22
31
|
Defaults: {};
|
|
23
|
-
}, Readonly<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
readonly surface?: Record<string, any> | undefined;
|
|
32
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
33
|
+
surface: {
|
|
34
|
+
type: PropType<import('../../core/surface-manager.js').ActiveSurface>;
|
|
35
|
+
required: true;
|
|
28
36
|
};
|
|
37
|
+
}>> & Readonly<{}>, {
|
|
38
|
+
rootEl: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
29
39
|
}, {}, {}, {}, {}> | null;
|
|
30
40
|
}, any>;
|
|
31
41
|
export default _default;
|
|
@@ -103,12 +103,6 @@ interface SuperDocEventMap {
|
|
|
103
103
|
'source:complete': [];
|
|
104
104
|
'source:signals-complete': [];
|
|
105
105
|
}
|
|
106
|
-
/**
|
|
107
|
-
* SuperDoc class
|
|
108
|
-
* Expects a config object
|
|
109
|
-
*
|
|
110
|
-
* @class
|
|
111
|
-
*/
|
|
112
106
|
export declare class SuperDoc extends EventEmitter<SuperDocEventMap> {
|
|
113
107
|
#private;
|
|
114
108
|
static allowedTypes: ("application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/pdf")[];
|
|
@@ -372,6 +366,7 @@ export declare class SuperDoc extends EventEmitter<SuperDocEventMap> {
|
|
|
372
366
|
* @returns The attached room and document once the collaborative runtime is ready
|
|
373
367
|
*/
|
|
374
368
|
upgradeToCollaboration(options: UpgradeToCollaborationOptions): Promise<UpgradeToCollaborationResult>;
|
|
369
|
+
setUser(user: User): Promise<void>;
|
|
375
370
|
/**
|
|
376
371
|
* Add a user to the shared users list. Requires the instance to be
|
|
377
372
|
* ready; pre-ready mutations would be silently overwritten by the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { EditorRuntimeKind, EditorRuntimeId, EditorRuntimeDocumentMode, EditorRuntimeState, EditorRuntime, EditorRuntimeSnapshot, EditorRuntimeCapabilities, RuntimeLifecycleCapabilities, RuntimeSelectionCapabilities, RuntimeCommandCapabilities, RuntimeFindReplaceCapabilities, RuntimeAiCapabilities, RuntimeCommentCapabilities, RuntimeTrackedChangeCapabilities, RuntimeToolbarCapabilities, RuntimeLayoutCapabilities, RuntimeZoomCapabilities, RuntimeNavigationCapabilities, RuntimePersistenceCapabilities, EditorRuntimeCommand, EditorRuntimeCommandKind, EditorRuntimeCommandResult, EditorRuntimeRejectionCode, EditorRuntimeNoopReason, EditorRuntimeSelectionSnapshot, EditorRuntimeFindSessionSnapshot, EditorRuntimeToolbarState, EditorRuntimeLayoutSnapshot, EditorRuntimePositionToken, EditorRuntimeFocusOptions, EditorRuntimeSaveOptions, EditorRuntimeExportOptions, EditorRuntimeNavigationTarget, EditorRuntimeEvent, EditorRuntimeListener, EditorRuntimeUnsubscribe, RuntimeJsonPrimitive, RuntimeJsonValue, RuntimeJsonObject, } from './types.js';
|
|
1
|
+
export type { EditorRuntimeKind, EditorRuntimeId, EditorRuntimeDocumentMode, EditorRuntimeUser, EditorRuntimeState, EditorRuntime, EditorRuntimeSnapshot, EditorRuntimeCapabilities, RuntimeLifecycleCapabilities, RuntimeSelectionCapabilities, RuntimeCommandCapabilities, RuntimeFindReplaceCapabilities, RuntimeAiCapabilities, RuntimeCommentCapabilities, RuntimeTrackedChangeCapabilities, RuntimeToolbarCapabilities, RuntimeLayoutCapabilities, RuntimeZoomCapabilities, RuntimeNavigationCapabilities, RuntimePersistenceCapabilities, EditorRuntimeCommand, EditorRuntimeCommandKind, EditorRuntimeCommandResult, EditorRuntimeRejectionCode, EditorRuntimeNoopReason, EditorRuntimeSelectionSnapshot, EditorRuntimeFindSessionSnapshot, EditorRuntimeToolbarState, EditorRuntimeLayoutSnapshot, EditorRuntimePositionToken, EditorRuntimeFocusOptions, EditorRuntimeSaveOptions, EditorRuntimeExportOptions, EditorRuntimeNavigationTarget, EditorRuntimeEvent, EditorRuntimeListener, EditorRuntimeUnsubscribe, RuntimeJsonPrimitive, RuntimeJsonValue, RuntimeJsonObject, } from './types.js';
|
|
@@ -376,6 +376,12 @@ export type EditorRuntimeUnsubscribe = () => void;
|
|
|
376
376
|
* synchronous so they can back existing synchronous shell APIs and Vue
|
|
377
377
|
* computeds without forcing them async in current implementation.
|
|
378
378
|
*/
|
|
379
|
+
export interface EditorRuntimeUser {
|
|
380
|
+
name: string;
|
|
381
|
+
id?: string;
|
|
382
|
+
email?: string;
|
|
383
|
+
initials?: string;
|
|
384
|
+
}
|
|
379
385
|
export interface EditorRuntime {
|
|
380
386
|
readonly id: EditorRuntimeId;
|
|
381
387
|
readonly kind: EditorRuntimeKind;
|
|
@@ -386,6 +392,7 @@ export interface EditorRuntime {
|
|
|
386
392
|
getSnapshot(): EditorRuntimeSnapshot;
|
|
387
393
|
setDocumentMode(mode: EditorRuntimeDocumentMode): void;
|
|
388
394
|
getDocumentMode(): EditorRuntimeDocumentMode;
|
|
395
|
+
setUser?(user: EditorRuntimeUser): Promise<void>;
|
|
389
396
|
setTrackedChangesRenderOptions(options?: {
|
|
390
397
|
mode?: 'review' | 'original' | 'final' | 'off';
|
|
391
398
|
enabled?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EditorRuntime, EditorRuntimeDocumentMode, EditorRuntimeId, EditorRuntimeState } from '../index.js';
|
|
1
|
+
import { EditorRuntime, EditorRuntimeDocumentMode, EditorRuntimeUser, EditorRuntimeId, EditorRuntimeState } from '../index.js';
|
|
2
2
|
import { resolveV2DocxExportOptions } from '../../helpers/resolve-docx-export.js';
|
|
3
3
|
type HostLifecycleState = EditorRuntimeState | 'ready';
|
|
4
4
|
type HostCommandKind = 'text.insert' | 'text.replace' | 'text.deleteBackward' | 'text.deleteForward' | 'text.pastePlain' | 'history.undo' | 'history.redo' | 'structural.enter' | 'structural.listIndent' | 'structural.listOutdent' | string;
|
|
@@ -161,6 +161,7 @@ interface ModeAwareHostLike {
|
|
|
161
161
|
subscribe(listener: (snapshot: HostSnapshotLike) => void): () => void;
|
|
162
162
|
getDocumentMode(): EditorRuntimeDocumentMode;
|
|
163
163
|
setDocumentMode(mode: EditorRuntimeDocumentMode): void;
|
|
164
|
+
setUser?(user: EditorRuntimeUser): Promise<void>;
|
|
164
165
|
setTrackedChangesRenderOptions(options?: {
|
|
165
166
|
mode?: 'review' | 'original' | 'final' | 'off';
|
|
166
167
|
enabled?: boolean;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
import { default as commentIconSvg } from '../../../shared/common/icons/comment-solid.svg?raw';
|
|
2
|
+
import { default as caretDownIconSvg } from '../../../shared/common/icons/caret-down-solid.svg?raw';
|
|
3
|
+
import { default as userCheckIconSvg } from '../../../shared/common/icons/user-check-solid.svg?raw';
|
|
4
|
+
import { default as usersIconSvg } from '../../../shared/common/icons/users-solid.svg?raw';
|
|
5
|
+
import { default as checkIconSvg } from '../../../shared/common/icons/check-solid.svg?raw';
|
|
6
|
+
import { default as xmarkIconSvg } from '../../../shared/common/icons/xmark-solid.svg?raw';
|
|
7
|
+
import { default as ellipsisVerticalSvg } from '../../../shared/common/icons/ellipsis-vertical-solid.svg?raw';
|
|
8
|
+
import { default as rotateLeftSvg } from '../../../shared/common/icons/rotate-left-solid.svg?raw';
|
|
1
9
|
export namespace superdocIcons {
|
|
2
10
|
export { commentIconSvg as comment };
|
|
3
11
|
export { caretDownIconSvg as caretDown };
|
|
@@ -1,21 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { SelectionTarget } from '../../../../../document-api/src/index.js';
|
|
3
|
+
interface AiWriterDocument {
|
|
4
|
+
replace?: (input: {
|
|
5
|
+
target: SelectionTarget;
|
|
6
|
+
text: string;
|
|
7
|
+
}) => unknown;
|
|
8
|
+
insert?: (input: {
|
|
9
|
+
target?: SelectionTarget;
|
|
10
|
+
value: string;
|
|
11
|
+
type: 'text';
|
|
12
|
+
}) => unknown;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
15
|
+
selectedText: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
target: {
|
|
20
|
+
type: PropType<SelectionTarget | null>;
|
|
21
|
+
default: null;
|
|
22
|
+
};
|
|
23
|
+
doc: {
|
|
24
|
+
type: PropType<AiWriterDocument | null>;
|
|
25
|
+
default: null;
|
|
26
|
+
};
|
|
27
|
+
apiKey: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
endpoint: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
restoreSelection: {
|
|
36
|
+
type: PropType<() => void>;
|
|
37
|
+
default: null;
|
|
38
|
+
};
|
|
39
|
+
handleClose: {
|
|
40
|
+
type: PropType<() => void>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
44
|
+
selectedText: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
target: {
|
|
49
|
+
type: PropType<SelectionTarget | null>;
|
|
50
|
+
default: null;
|
|
51
|
+
};
|
|
52
|
+
doc: {
|
|
53
|
+
type: PropType<AiWriterDocument | null>;
|
|
54
|
+
default: null;
|
|
55
|
+
};
|
|
56
|
+
apiKey: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
endpoint: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
restoreSelection: {
|
|
65
|
+
type: PropType<() => void>;
|
|
66
|
+
default: null;
|
|
67
|
+
};
|
|
68
|
+
handleClose: {
|
|
69
|
+
type: PropType<() => void>;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
}>> & Readonly<{}>, {
|
|
73
|
+
target: SelectionTarget | null;
|
|
74
|
+
doc: AiWriterDocument | null;
|
|
75
|
+
restoreSelection: () => void;
|
|
5
76
|
selectedText: string;
|
|
6
77
|
endpoint: string;
|
|
7
78
|
apiKey: string;
|
|
8
|
-
|
|
9
|
-
$props: {
|
|
10
|
-
readonly target?: Record<string, any> | undefined;
|
|
11
|
-
readonly doc?: Record<string, any> | undefined;
|
|
12
|
-
readonly restoreSelection?: Function | undefined;
|
|
13
|
-
readonly selectedText?: string | undefined;
|
|
14
|
-
readonly endpoint?: string | undefined;
|
|
15
|
-
readonly apiKey?: string | undefined;
|
|
16
|
-
readonly handleClose?: Function | undefined;
|
|
17
|
-
};
|
|
18
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
79
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
19
80
|
textareaRef: HTMLTextAreaElement;
|
|
20
81
|
}, HTMLFormElement>;
|
|
21
82
|
export default _default;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
|
|
3
|
-
},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
select: (...args: any[]) => void;
|
|
3
|
+
}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
4
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
5
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
4
6
|
alignmentButtonsRefs: HTMLDivElement[];
|
|
5
7
|
}, HTMLDivElement>;
|
|
6
8
|
export default _default;
|
|
@@ -1,9 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { PropType, Ref, StyleValue } from 'vue';
|
|
2
|
+
import { default as ToolbarButton } from './ToolbarButton.vue.js';
|
|
3
|
+
import { default as ToolbarDropdown } from './ToolbarDropdown.vue.js';
|
|
4
|
+
import { default as FontFamilyCombobox } from './FontFamilyCombobox.vue';
|
|
5
|
+
type ButtonItem = InstanceType<typeof ToolbarButton>['$props']['toolbarItem'];
|
|
6
|
+
type ComboBoxProps = InstanceType<typeof FontFamilyCombobox>['$props'];
|
|
7
|
+
type ComboBoxItem = ComboBoxProps['item'];
|
|
8
|
+
type ComboBoxCommand = Parameters<NonNullable<ComboBoxProps['onCommand']>>[0];
|
|
9
|
+
type DropdownOption = NonNullable<InstanceType<typeof ToolbarDropdown>['$props']['options']>[number];
|
|
10
|
+
export interface ToolbarGroupItem extends ButtonItem {
|
|
11
|
+
type: string;
|
|
12
|
+
id: Ref<string>;
|
|
13
|
+
isNarrow: Ref<boolean | undefined>;
|
|
14
|
+
isWide: Ref<boolean | undefined>;
|
|
15
|
+
tooltip: Ref<string | undefined>;
|
|
16
|
+
argument: Ref<unknown>;
|
|
17
|
+
command?: unknown;
|
|
18
|
+
splitButtonCommand?: unknown;
|
|
19
|
+
restoreEditorFocus: boolean;
|
|
20
|
+
dropdownStyles: Ref<StyleValue | undefined>;
|
|
21
|
+
dropdownValueKey: Ref<string | undefined>;
|
|
22
|
+
selectedValue: Ref<string | number | null | undefined>;
|
|
23
|
+
nestedOptions: Ref<DropdownOption[]>;
|
|
24
|
+
}
|
|
25
|
+
export interface ToolbarGroupCommand {
|
|
26
|
+
item: ToolbarGroupItem | ComboBoxItem;
|
|
27
|
+
argument?: unknown;
|
|
28
|
+
option?: DropdownOption | ComboBoxCommand['option'];
|
|
29
|
+
}
|
|
30
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
31
|
+
toolbarItems: {
|
|
32
|
+
type: PropType<ToolbarGroupItem[]>;
|
|
33
|
+
required: true;
|
|
5
34
|
};
|
|
6
|
-
|
|
35
|
+
overflowItems: {
|
|
36
|
+
type: PropType<ToolbarGroupItem[]>;
|
|
37
|
+
default: () => never[];
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* The font-family to use for UI elements like dropdowns and tooltips.
|
|
41
|
+
* This ensures consistent typography across toolbar UI components.
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @default 'Arial, Helvetica, sans-serif'
|
|
44
|
+
*/
|
|
45
|
+
uiFontFamily: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
position: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
fromOverflow: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
compactSideGroups: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
62
|
+
command: (payload: ToolbarGroupCommand) => any;
|
|
63
|
+
"item-clicked": () => any;
|
|
64
|
+
"dropdown-update-show": (open: boolean) => any;
|
|
65
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
66
|
+
toolbarItems: {
|
|
67
|
+
type: PropType<ToolbarGroupItem[]>;
|
|
68
|
+
required: true;
|
|
69
|
+
};
|
|
70
|
+
overflowItems: {
|
|
71
|
+
type: PropType<ToolbarGroupItem[]>;
|
|
72
|
+
default: () => never[];
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* The font-family to use for UI elements like dropdowns and tooltips.
|
|
76
|
+
* This ensures consistent typography across toolbar UI components.
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @default 'Arial, Helvetica, sans-serif'
|
|
79
|
+
*/
|
|
80
|
+
uiFontFamily: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
position: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
fromOverflow: {
|
|
89
|
+
type: BooleanConstructor;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
compactSideGroups: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
}>> & Readonly<{
|
|
97
|
+
onCommand?: ((payload: ToolbarGroupCommand) => any) | undefined;
|
|
98
|
+
"onItem-clicked"?: (() => any) | undefined;
|
|
99
|
+
"onDropdown-update-show"?: ((open: boolean) => any) | undefined;
|
|
100
|
+
}>, {
|
|
101
|
+
position: string;
|
|
102
|
+
uiFontFamily: string;
|
|
103
|
+
overflowItems: ToolbarGroupItem[];
|
|
104
|
+
fromOverflow: boolean;
|
|
105
|
+
compactSideGroups: boolean;
|
|
106
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
7
107
|
buttonGroupRef: HTMLDivElement;
|
|
8
108
|
toolbarItemRefs: HTMLDivElement[];
|
|
9
109
|
}, HTMLDivElement>;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
interface DocumentModeOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
description: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
10
|
+
options: {
|
|
11
|
+
type: PropType<DocumentModeOption[]>;
|
|
6
12
|
};
|
|
7
|
-
}
|
|
13
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
select: (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
options: {
|
|
17
|
+
type: PropType<DocumentModeOption[]>;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{
|
|
20
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
8
22
|
documentModeRefs: HTMLDivElement[];
|
|
9
23
|
}, HTMLDivElement>;
|
|
10
24
|
export default _default;
|
|
@@ -1,14 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { PropType, Ref } from 'vue';
|
|
2
|
+
import { ColorOption } from './IconGridRow.vue.js';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
icons: {
|
|
5
|
+
type: PropType<ColorOption[][]>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
customIcons: {
|
|
9
|
+
type: PropType<ColorOption[][]>;
|
|
10
|
+
required: false;
|
|
11
|
+
};
|
|
12
|
+
activeColor: {
|
|
13
|
+
type: PropType<Ref<string | null | undefined>>;
|
|
14
|
+
required: false;
|
|
15
|
+
};
|
|
16
|
+
hasNoneIcon: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
};
|
|
20
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
select: (...args: any[]) => void;
|
|
22
|
+
clickoutside: (...args: any[]) => void;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
icons: {
|
|
25
|
+
type: PropType<ColorOption[][]>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
customIcons: {
|
|
29
|
+
type: PropType<ColorOption[][]>;
|
|
30
|
+
required: false;
|
|
31
|
+
};
|
|
32
|
+
activeColor: {
|
|
33
|
+
type: PropType<Ref<string | null | undefined>>;
|
|
34
|
+
required: false;
|
|
35
|
+
};
|
|
36
|
+
hasNoneIcon: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
required: false;
|
|
39
|
+
};
|
|
40
|
+
}>> & Readonly<{
|
|
41
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
onClickoutside?: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}>, {
|
|
4
44
|
hasNoneIcon: boolean;
|
|
5
|
-
|
|
6
|
-
customIcons?: unknown[] | undefined;
|
|
7
|
-
$props: {
|
|
8
|
-
readonly icons?: unknown[] | undefined;
|
|
9
|
-
readonly hasNoneIcon?: boolean | undefined;
|
|
10
|
-
readonly activeColor?: Record<string, any> | undefined;
|
|
11
|
-
readonly customIcons?: unknown[] | undefined;
|
|
12
|
-
};
|
|
13
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
45
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
46
|
export default _default;
|