@veltdev/sdk-staging 5.0.0-beta.23 → 5.0.0-beta.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/app/models/data/comment-actions.data.model.d.ts +0 -70
- package/app/models/data/comment-annotation.data.model.d.ts +0 -1
- package/app/models/data/comment-events.data.model.d.ts +1 -34
- package/app/models/data/comment-utils.data.model.d.ts +0 -26
- package/app/models/data/config.data.model.d.ts +0 -11
- package/app/models/element/comment-element.model.d.ts +9 -160
- package/app/models/element/notification-element.model.d.ts +0 -20
- package/app/utils/constants.d.ts +0 -1
- package/app/utils/enums.d.ts +2 -7
- package/package.json +1 -1
- package/velt.js +112 -118
|
@@ -41,31 +41,9 @@ export interface CopyLinkRequest {
|
|
|
41
41
|
annotationId: string;
|
|
42
42
|
options?: RequestOptions;
|
|
43
43
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Visibility type for comment annotations.
|
|
46
|
-
* - 'public': Visible to everyone (default:velt)
|
|
47
|
-
* - 'organization': Visible only to users in the specified organization
|
|
48
|
-
* - 'self': Visible only to specified users (private comments)
|
|
49
|
-
*/
|
|
50
|
-
export type CommentVisibilityType = 'public' | 'organization' | 'self';
|
|
51
|
-
/**
|
|
52
|
-
* Configuration for comment visibility/access control.
|
|
53
|
-
*/
|
|
54
|
-
export interface CommentVisibilityConfig {
|
|
55
|
-
/** The type of visibility for the comment */
|
|
56
|
-
type: CommentVisibilityType;
|
|
57
|
-
/** Annotation ID for the comment to update visibility */
|
|
58
|
-
annotationId?: string;
|
|
59
|
-
/** Organization ID for 'organization' type visibility */
|
|
60
|
-
organizationId?: string;
|
|
61
|
-
/** User IDs for 'self' type visibility - array of user IDs who can see the comment */
|
|
62
|
-
userIds?: string[];
|
|
63
|
-
}
|
|
64
44
|
export interface AddCommentAnnotationRequest {
|
|
65
45
|
annotation: CommentAnnotation;
|
|
66
46
|
options?: RequestOptions;
|
|
67
|
-
/** Optional visibility configuration for the comment */
|
|
68
|
-
visibility?: CommentVisibilityConfig;
|
|
69
47
|
}
|
|
70
48
|
export interface ApproveCommentAnnotationRequest {
|
|
71
49
|
annotationId: string;
|
|
@@ -83,24 +61,6 @@ export interface DeleteCommentAnnotationRequest {
|
|
|
83
61
|
annotationId: string;
|
|
84
62
|
options?: RequestOptions;
|
|
85
63
|
}
|
|
86
|
-
/**
|
|
87
|
-
* Query parameters for fetching comment annotation counts.
|
|
88
|
-
*
|
|
89
|
-
* @property organizationId - Filter by organization (enables org-wide aggregation when used alone)
|
|
90
|
-
* @property documentIds - Filter by specific document IDs
|
|
91
|
-
* @property locationIds - Filter by location IDs within documents
|
|
92
|
-
* @property statusIds - Filter by comment status IDs (e.g., "open", "resolved")
|
|
93
|
-
* @property folderId - Filter by folder ID (use with allDocuments for folder-wide counts)
|
|
94
|
-
* @property allDocuments - When true with folderId, aggregates all documents in folder
|
|
95
|
-
* @property locationId - Single location filter (deprecated, use locationIds)
|
|
96
|
-
* @property aggregateDocuments - When true, combines all documentIds into single count
|
|
97
|
-
* @property filterGhostComments - When true, excludes orphaned/deleted comments from counts
|
|
98
|
-
* @property batchedPerDocument - When true, uses efficient batched listeners (4 instead of 100)
|
|
99
|
-
* but still returns per-document counts. Best for large document lists (50+).
|
|
100
|
-
* Trade-off: slight delay on updates due to debouncing.
|
|
101
|
-
* @property debounceMs - Debounce time in milliseconds for batchedPerDocument mode (default: 5000ms).
|
|
102
|
-
* Prevents rapid re-fetches when multiple documents update in quick succession.
|
|
103
|
-
*/
|
|
104
64
|
export interface CommentRequestQuery {
|
|
105
65
|
organizationId?: string;
|
|
106
66
|
documentIds?: string[];
|
|
@@ -111,10 +71,6 @@ export interface CommentRequestQuery {
|
|
|
111
71
|
locationId?: string;
|
|
112
72
|
aggregateDocuments?: boolean;
|
|
113
73
|
filterGhostComments?: boolean;
|
|
114
|
-
/** Enable batched listeners with per-document counts. Uses 4 listeners instead of N listeners. */
|
|
115
|
-
batchedPerDocument?: boolean;
|
|
116
|
-
/** Debounce time in ms for batchedPerDocument mode (default: 5000). */
|
|
117
|
-
debounceMs?: number;
|
|
118
74
|
}
|
|
119
75
|
export interface SubscribeCommentAnnotationRequest {
|
|
120
76
|
annotationId: string;
|
|
@@ -214,32 +170,6 @@ export interface ToggleReactionRequest {
|
|
|
214
170
|
};
|
|
215
171
|
options?: RequestOptions;
|
|
216
172
|
}
|
|
217
|
-
export interface SubmitCommentRequest {
|
|
218
|
-
targetComposerElementId: string;
|
|
219
|
-
}
|
|
220
|
-
export interface ClearComposerRequest {
|
|
221
|
-
targetComposerElementId: string;
|
|
222
|
-
}
|
|
223
|
-
export interface GetComposerDataRequest {
|
|
224
|
-
targetComposerElementId: string;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* FormatConfig - Configuration for format options
|
|
228
|
-
*/
|
|
229
|
-
export interface FormatConfig {
|
|
230
|
-
bold?: {
|
|
231
|
-
enable: boolean;
|
|
232
|
-
};
|
|
233
|
-
italic?: {
|
|
234
|
-
enable: boolean;
|
|
235
|
-
};
|
|
236
|
-
underline?: {
|
|
237
|
-
enable: boolean;
|
|
238
|
-
};
|
|
239
|
-
strikethrough?: {
|
|
240
|
-
enable: boolean;
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
173
|
export interface FetchCommentAnnotationsRequest {
|
|
244
174
|
createdAfter?: number;
|
|
245
175
|
createdBefore?: number;
|
|
@@ -184,7 +184,6 @@ export declare class CommentAnnotation {
|
|
|
184
184
|
unsubscribedUsers?: CommentAnnotationUnsubscribedUsers;
|
|
185
185
|
subscribedGroups?: CommentAnnotationSubscribedGroups;
|
|
186
186
|
resolvedByUserId?: string | null;
|
|
187
|
-
resolvedByUser?: User | null;
|
|
188
187
|
multiThreadAnnotationId?: string;
|
|
189
188
|
isDraft?: boolean;
|
|
190
189
|
sourceId?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CommentAccessMode, CommentEventTypes, CommentStatus } from "../../utils/enums";
|
|
2
2
|
import { Attachment } from "./attachment.model";
|
|
3
3
|
import { VeltButtonClickEvent } from "./button.data.model";
|
|
4
4
|
import { AddAttachmentResponse } from "./comment-actions.data.model";
|
|
@@ -54,7 +54,6 @@ export interface CommentSuggestionEventData {
|
|
|
54
54
|
}
|
|
55
55
|
export type CommentEventTypesMap = {
|
|
56
56
|
[CommentEventTypes.ADD_COMMENT_ANNOTATION]: AddCommentAnnotationEvent;
|
|
57
|
-
[CommentEventTypes.ADD_COMMENT_ANNOTATION_DRAFT]: AddCommentAnnotationDraftEvent;
|
|
58
57
|
[CommentEventTypes.APPROVE_COMMENT_ANNOTATION]: ApproveCommentAnnotationEvent;
|
|
59
58
|
[CommentEventTypes.ACCEPT_COMMENT_ANNOTATION]: AcceptCommentAnnotationEvent;
|
|
60
59
|
[CommentEventTypes.REJECT_COMMENT_ANNOTATION]: RejectCommentAnnotationEvent;
|
|
@@ -80,12 +79,9 @@ export type CommentEventTypesMap = {
|
|
|
80
79
|
[CommentEventTypes.COMMENT_SIDEBAR_DATA_UPDATE]: CommentSidebarDataUpdateEvent;
|
|
81
80
|
[CommentEventTypes.AUTOCOMPLETE_SEARCH]: AutocompleteSearchEvent;
|
|
82
81
|
[CommentEventTypes.COMPOSER_CLICKED]: ComposerClickedEvent;
|
|
83
|
-
[CommentEventTypes.COMPOSER_TEXT_CHANGE]: ComposerTextChangeEvent;
|
|
84
82
|
[CommentEventTypes.LINK_CLICKED]: LinkClickedEvent;
|
|
85
83
|
[CommentEventTypes.COMMENT_PIN_CLICKED]: CommentPinClickedEvent;
|
|
86
84
|
[CommentEventTypes.COMMENT_BUBBLE_CLICKED]: CommentBubbleClickedEvent;
|
|
87
|
-
[CommentEventTypes.COMMENT_TOOL_CLICK]: CommentToolClickEvent;
|
|
88
|
-
[CommentEventTypes.SIDEBAR_BUTTON_CLICK]: SidebarButtonClickEvent;
|
|
89
85
|
};
|
|
90
86
|
export interface AddAttachmentEvent {
|
|
91
87
|
annotationId: string;
|
|
@@ -100,10 +96,6 @@ export interface DeleteAttachmentEvent {
|
|
|
100
96
|
attachment: Attachment;
|
|
101
97
|
metadata: VeltEventMetadata;
|
|
102
98
|
}
|
|
103
|
-
export interface AddCommentAnnotationDraftEvent {
|
|
104
|
-
metadata: VeltEventMetadata;
|
|
105
|
-
addContext: (context: Record<string, unknown>) => void;
|
|
106
|
-
}
|
|
107
99
|
export interface AddCommentAnnotationEvent {
|
|
108
100
|
annotationId: string;
|
|
109
101
|
commentAnnotation: CommentAnnotation;
|
|
@@ -278,28 +270,3 @@ export interface CommentBubbleClickedEvent {
|
|
|
278
270
|
commentAnnotation: CommentAnnotation;
|
|
279
271
|
metadata?: VeltEventMetadata;
|
|
280
272
|
}
|
|
281
|
-
export interface ComposerTextChangeEvent {
|
|
282
|
-
text: string;
|
|
283
|
-
annotation: CommentAnnotation;
|
|
284
|
-
targetComposerElementId: string;
|
|
285
|
-
metadata?: VeltEventMetadata;
|
|
286
|
-
}
|
|
287
|
-
export interface AssignToConfig {
|
|
288
|
-
type: AssignToType;
|
|
289
|
-
}
|
|
290
|
-
export interface PageModeComposerConfig {
|
|
291
|
-
context?: {
|
|
292
|
-
[key: string]: any;
|
|
293
|
-
} | null;
|
|
294
|
-
targetElementId?: string | null;
|
|
295
|
-
}
|
|
296
|
-
export interface CommentToolClickEvent {
|
|
297
|
-
context: {
|
|
298
|
-
[key: string]: any;
|
|
299
|
-
} | null;
|
|
300
|
-
targetElementId?: string | null;
|
|
301
|
-
metadata?: VeltEventMetadata;
|
|
302
|
-
}
|
|
303
|
-
export interface SidebarButtonClickEvent {
|
|
304
|
-
metadata?: VeltEventMetadata;
|
|
305
|
-
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Location } from './location.model';
|
|
2
1
|
export interface IUnreadCommentsMap {
|
|
3
2
|
[annotationId: string]: number;
|
|
4
3
|
}
|
|
@@ -15,28 +14,3 @@ export interface TransformContext {
|
|
|
15
14
|
inverseScale?: number;
|
|
16
15
|
};
|
|
17
16
|
}
|
|
18
|
-
/**
|
|
19
|
-
* Context data returned by the comment context provider.
|
|
20
|
-
* This is a flexible object that can contain custom properties.
|
|
21
|
-
*/
|
|
22
|
-
export interface CommentContext {
|
|
23
|
-
/**
|
|
24
|
-
* Optional comment type. When set to 'manual', the comment will be treated as a manual comment
|
|
25
|
-
* and the target element will be removed.
|
|
26
|
-
*/
|
|
27
|
-
commentType?: 'manual' | string;
|
|
28
|
-
/**
|
|
29
|
-
* Allow additional custom properties
|
|
30
|
-
*/
|
|
31
|
-
[key: string]: unknown;
|
|
32
|
-
}
|
|
33
|
-
export type CommentContextProviderResponse = CommentContext | null | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* A function that provides custom context for comments.
|
|
36
|
-
* Can return the context synchronously or asynchronously via a Promise.
|
|
37
|
-
*
|
|
38
|
-
* @param documentId - The ID of the document
|
|
39
|
-
* @param location - Optional location information
|
|
40
|
-
* @returns The comment context object or a Promise that resolves to it
|
|
41
|
-
*/
|
|
42
|
-
export type CommentContextProvider = (documentId: string, location?: Location) => CommentContextProviderResponse | Promise<CommentContextProviderResponse>;
|
|
@@ -53,14 +53,6 @@ export declare class Config {
|
|
|
53
53
|
* The domain of the API proxy.
|
|
54
54
|
*/
|
|
55
55
|
apiProxyDomain?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Controls whether global Velt styles are loaded.
|
|
58
|
-
* When true (default), global styles are applied.
|
|
59
|
-
* When false, global styles are not loaded - useful for custom styling.
|
|
60
|
-
*
|
|
61
|
-
* Default: true
|
|
62
|
-
*/
|
|
63
|
-
globalStyles?: boolean;
|
|
64
56
|
}
|
|
65
57
|
export interface ExtendedFirebaseOptions extends FirebaseOptions {
|
|
66
58
|
storeDbId: string;
|
|
@@ -74,6 +66,3 @@ export interface DisableLogsConfig {
|
|
|
74
66
|
warnings?: boolean;
|
|
75
67
|
suppressAll?: boolean;
|
|
76
68
|
}
|
|
77
|
-
export interface GetProjectConfigResponse {
|
|
78
|
-
isPrivateCommentsEnabled: boolean;
|
|
79
|
-
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
|
-
import { AssignToType, CommentSidebarSystemFiltersOperator, SidebarButtonCountType } from "../../utils/enums";
|
|
4
|
-
import { UploadFileData } from "../data/attachment.model";
|
|
5
|
-
import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
6
|
-
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserEvent, AssignUserRequest, CommentRequestQuery, CommentVisibilityConfig, ClearComposerRequest, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, FetchCommentAnnotationsRequest, GetAttachmentRequest, GetCommentRequest, GetComposerDataRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubmitCommentRequest, SubscribeCommentAnnotationRequest, ToggleReactionRequest, UnsubscribeCommentAnnotationRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
|
|
7
3
|
import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig, UpdateContextConfig } from "../data/comment-annotation.data.model";
|
|
8
|
-
import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent,
|
|
9
|
-
import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
|
|
10
|
-
import { CommentContextProvider, FormatConfig, TransformContext, UnreadCommentsCount } from "../data/comment-utils.data.model";
|
|
11
|
-
import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
|
|
4
|
+
import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, GetLinkEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, FetchCommentAnnotationsResponse } from "../data/comment-events.data.model";
|
|
12
5
|
import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
|
|
6
|
+
import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
|
|
7
|
+
import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
8
|
+
import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
|
|
13
9
|
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
10
|
+
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, CommentRequestQuery, CommentRequestQuery, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest, FetchCommentAnnotationsRequest } from "../data/comment-actions.data.model";
|
|
11
|
+
import { UnreadCommentsCount, TransformContext } from "../data/comment-utils.data.model";
|
|
12
|
+
import { CommentSidebarSystemFiltersOperator, SidebarButtonCountType } from "../../utils/enums";
|
|
13
|
+
import { UploadFileData } from "../data/attachment.model";
|
|
14
14
|
|
|
15
15
|
export declare class CommentElement {
|
|
16
16
|
/**
|
|
@@ -85,39 +85,6 @@ export declare class CommentElement {
|
|
|
85
85
|
*/
|
|
86
86
|
toggleCommentSidebar: () => any;
|
|
87
87
|
|
|
88
|
-
/**
|
|
89
|
-
* To enable context in page mode composer feature
|
|
90
|
-
* When enabled, clicking comment tool will open sidebar with page mode composer and pass context
|
|
91
|
-
*/
|
|
92
|
-
enableContextInPageModeComposer: () => void;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* To disable context in page mode composer feature
|
|
96
|
-
*/
|
|
97
|
-
disableContextInPageModeComposer: () => void;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* To clear page mode composer context
|
|
101
|
-
*/
|
|
102
|
-
clearPageModeComposerContext: () => void;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* To set context in page mode composer
|
|
106
|
-
* @param config The page mode composer config containing context and targetElementId
|
|
107
|
-
*/
|
|
108
|
-
setContextInPageModeComposer: (config: PageModeComposerConfig | null) => void;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* To focus the page mode composer input
|
|
112
|
-
*/
|
|
113
|
-
focusPageModeComposer: () => void;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* To set assign to type for comment dialog
|
|
117
|
-
* @param config The assign to config containing type
|
|
118
|
-
*/
|
|
119
|
-
setAssignToType: (config: AssignToConfig) => void;
|
|
120
|
-
|
|
121
88
|
/**
|
|
122
89
|
* To enable moderator mode
|
|
123
90
|
*/
|
|
@@ -362,7 +329,7 @@ export declare class CommentElement {
|
|
|
362
329
|
* @description Sets the comment context provider
|
|
363
330
|
* @param provider
|
|
364
331
|
*/
|
|
365
|
-
public setContextProvider: (provider:
|
|
332
|
+
public setContextProvider: (provider: (documentId: string, location?: any) => any) => void;
|
|
366
333
|
|
|
367
334
|
/**
|
|
368
335
|
* To enable suggestion mode
|
|
@@ -498,13 +465,11 @@ export declare class CommentElement {
|
|
|
498
465
|
/**
|
|
499
466
|
* To enable private comment mode to add private comments.
|
|
500
467
|
* This mode can be enabled for admin users only.
|
|
501
|
-
* @deprecated
|
|
502
468
|
*/
|
|
503
469
|
public enablePrivateCommentMode: () => void;
|
|
504
470
|
|
|
505
471
|
/**
|
|
506
472
|
* To disable private comment mode.
|
|
507
|
-
* @deprecated
|
|
508
473
|
*/
|
|
509
474
|
public disablePrivateCommentMode: () => void;
|
|
510
475
|
|
|
@@ -858,13 +823,6 @@ export declare class CommentElement {
|
|
|
858
823
|
*/
|
|
859
824
|
public updateContext: (annotationId: string, context: any, config?: UpdateContextConfig) => Promise<any>;
|
|
860
825
|
|
|
861
|
-
/**
|
|
862
|
-
* Updates the visibility of a comment annotation.
|
|
863
|
-
* @param visibility Visibility configuration (public, organization, or self) including annotationId
|
|
864
|
-
* @returns Promise<any>
|
|
865
|
-
*/
|
|
866
|
-
public updateVisibility: (visibility: CommentVisibilityConfig) => Promise<any>;
|
|
867
|
-
|
|
868
826
|
/**
|
|
869
827
|
* Subscribe to selected comments
|
|
870
828
|
* @returns list of selected comments
|
|
@@ -1053,7 +1011,6 @@ export declare class CommentElement {
|
|
|
1053
1011
|
|
|
1054
1012
|
/**
|
|
1055
1013
|
* To update access
|
|
1056
|
-
* @deprecated
|
|
1057
1014
|
*/
|
|
1058
1015
|
public updateAccess: (request: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
|
|
1059
1016
|
|
|
@@ -1317,42 +1274,6 @@ export declare class CommentElement {
|
|
|
1317
1274
|
*/
|
|
1318
1275
|
public disablePaginatedContactList: () => void;
|
|
1319
1276
|
|
|
1320
|
-
/**
|
|
1321
|
-
* To enable format options (bold, italic, underline, strikethrough)
|
|
1322
|
-
*/
|
|
1323
|
-
public enableFormatOptions: () => void;
|
|
1324
|
-
|
|
1325
|
-
/**
|
|
1326
|
-
* To disable format options
|
|
1327
|
-
*/
|
|
1328
|
-
public disableFormatOptions: () => void;
|
|
1329
|
-
|
|
1330
|
-
/**
|
|
1331
|
-
* Set format config to control which format options are enabled
|
|
1332
|
-
* @param config FormatConfig with enable flags for each format type
|
|
1333
|
-
*/
|
|
1334
|
-
public setFormatConfig: (config: FormatConfig) => void;
|
|
1335
|
-
|
|
1336
|
-
/**
|
|
1337
|
-
* Programmatically trigger comment submission for a composer with the given targetComposerElementId
|
|
1338
|
-
* @param request SubmitCommentRequest containing targetComposerElementId
|
|
1339
|
-
*/
|
|
1340
|
-
public submitComment: (request: SubmitCommentRequest) => void;
|
|
1341
|
-
|
|
1342
|
-
/**
|
|
1343
|
-
* Programmatically clear the composer state for the given targetComposerElementId
|
|
1344
|
-
* @param request ClearComposerRequest containing targetComposerElementId
|
|
1345
|
-
*/
|
|
1346
|
-
public clearComposer: (request: ClearComposerRequest) => void;
|
|
1347
|
-
|
|
1348
|
-
/**
|
|
1349
|
-
* Get the current composer data for a given targetComposerElementId
|
|
1350
|
-
* Returns the same data as COMPOSER_TEXT_CHANGE event but as a one-time fetch
|
|
1351
|
-
* @param request GetComposerDataRequest containing targetComposerElementId
|
|
1352
|
-
* @returns The composer data or null if not found
|
|
1353
|
-
*/
|
|
1354
|
-
public getComposerData: (request: GetComposerDataRequest) => ComposerTextChangeEvent | null;
|
|
1355
|
-
|
|
1356
1277
|
constructor();
|
|
1357
1278
|
/**
|
|
1358
1279
|
* Subscribe to comments on the current document.
|
|
@@ -2154,14 +2075,6 @@ export declare class CommentElement {
|
|
|
2154
2075
|
*/
|
|
2155
2076
|
private _updateContext;
|
|
2156
2077
|
|
|
2157
|
-
/**
|
|
2158
|
-
* Updates the visibility of a comment annotation.
|
|
2159
|
-
* @param annotationId Annotation Id
|
|
2160
|
-
* @param visibility Visibility configuration (public, organization, or self)
|
|
2161
|
-
* @returns Promise<any>
|
|
2162
|
-
*/
|
|
2163
|
-
private _updateVisibility;
|
|
2164
|
-
|
|
2165
2078
|
/**
|
|
2166
2079
|
* Subscribe to selected comments
|
|
2167
2080
|
* @returns list of selected comments
|
|
@@ -2613,68 +2526,4 @@ export declare class CommentElement {
|
|
|
2613
2526
|
* To disable paginated contact list
|
|
2614
2527
|
*/
|
|
2615
2528
|
private _disablePaginatedContactList;
|
|
2616
|
-
/**
|
|
2617
|
-
* To enable format options (bold, italic, underline, strikethrough)
|
|
2618
|
-
*/
|
|
2619
|
-
private _enableFormatOptions;
|
|
2620
|
-
/**
|
|
2621
|
-
* To disable format options
|
|
2622
|
-
*/
|
|
2623
|
-
private _disableFormatOptions;
|
|
2624
|
-
/**
|
|
2625
|
-
* To set format config to control which format options are enabled
|
|
2626
|
-
* @param config FormatConfig with enable flags for each format type
|
|
2627
|
-
*/
|
|
2628
|
-
private _setFormatConfig;
|
|
2629
|
-
|
|
2630
|
-
/**
|
|
2631
|
-
* Programmatically trigger comment submission for a composer with the given targetComposerElementId
|
|
2632
|
-
* @param request SubmitCommentRequest containing targetComposerElementId
|
|
2633
|
-
*/
|
|
2634
|
-
private _submitComment;
|
|
2635
|
-
|
|
2636
|
-
/**
|
|
2637
|
-
* Programmatically clear the composer state for the given targetComposerElementId
|
|
2638
|
-
* @param request ClearComposerRequest containing targetComposerElementId
|
|
2639
|
-
*/
|
|
2640
|
-
private _clearComposer;
|
|
2641
|
-
|
|
2642
|
-
/**
|
|
2643
|
-
* Get the current composer data for a given targetComposerElementId
|
|
2644
|
-
* Returns the same data as COMPOSER_TEXT_CHANGE event but as a one-time fetch
|
|
2645
|
-
* @param request GetComposerDataRequest containing targetComposerElementId
|
|
2646
|
-
* @returns The composer data or null if not found
|
|
2647
|
-
*/
|
|
2648
|
-
private _getComposerData;
|
|
2649
|
-
|
|
2650
|
-
/**
|
|
2651
|
-
* To enable context in page mode composer feature
|
|
2652
|
-
*/
|
|
2653
|
-
private _enableContextInPageModeComposer;
|
|
2654
|
-
|
|
2655
|
-
/**
|
|
2656
|
-
* To disable context in page mode composer feature
|
|
2657
|
-
*/
|
|
2658
|
-
private _disableContextInPageModeComposer;
|
|
2659
|
-
|
|
2660
|
-
/**
|
|
2661
|
-
* To clear page mode composer context
|
|
2662
|
-
*/
|
|
2663
|
-
private _clearPageModeComposerContext;
|
|
2664
|
-
|
|
2665
|
-
/**
|
|
2666
|
-
* To set context in page mode composer
|
|
2667
|
-
*/
|
|
2668
|
-
private _setContextInPageModeComposer;
|
|
2669
|
-
|
|
2670
|
-
/**
|
|
2671
|
-
* To focus the page mode composer input
|
|
2672
|
-
*/
|
|
2673
|
-
private _focusPageModeComposer;
|
|
2674
|
-
|
|
2675
|
-
/**
|
|
2676
|
-
* To set assign to type for comment dialog
|
|
2677
|
-
* @param type 'dropdown' | 'checkbox'
|
|
2678
|
-
*/
|
|
2679
|
-
private _setAssignToType;
|
|
2680
2529
|
}
|
|
@@ -68,16 +68,6 @@ export declare class NotificationElement {
|
|
|
68
68
|
*/
|
|
69
69
|
getSettings: () => Observable<NotificationSettingsConfig | null>;
|
|
70
70
|
|
|
71
|
-
/**
|
|
72
|
-
* To enable settings config by organization
|
|
73
|
-
*/
|
|
74
|
-
enableSettingsAtOrganizationLevel: () => void;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* To disable settings config by organization
|
|
78
|
-
*/
|
|
79
|
-
disableSettingsAtOrganizationLevel: () => void;
|
|
80
|
-
|
|
81
71
|
/**
|
|
82
72
|
* To mute all notifications
|
|
83
73
|
*/
|
|
@@ -210,16 +200,6 @@ export declare class NotificationElement {
|
|
|
210
200
|
*/
|
|
211
201
|
private _disableSettings;
|
|
212
202
|
|
|
213
|
-
/**
|
|
214
|
-
* To enable settings config by organization
|
|
215
|
-
*/
|
|
216
|
-
private _enableSettingsAtOrganizationLevel;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* To disable settings config by organization
|
|
220
|
-
*/
|
|
221
|
-
private _disableSettingsAtOrganizationLevel;
|
|
222
|
-
|
|
223
203
|
/**
|
|
224
204
|
* To enable self notifications
|
|
225
205
|
*/
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export declare class Constants {
|
|
|
11
11
|
static LISTENER_BATCH_SIZE: number;
|
|
12
12
|
static LISTENER_CONTEXT_BATCH_SIZE: number;
|
|
13
13
|
static DEFAULT_VELT_CONTEXT: string;
|
|
14
|
-
static VISIBILITY_SELF_PREFIX: string;
|
|
15
14
|
static FIREBASE_PARTIAL_PATH_ORGANIZATIONS: string;
|
|
16
15
|
static FIREBASE_PARTIAL_PATH_FOLDERS: string;
|
|
17
16
|
static FIREBASE_PARTIAL_PATH_DOCS: string;
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export declare enum ResolverActions {
|
|
|
29
29
|
}
|
|
30
30
|
export declare const CommentEventTypes: {
|
|
31
31
|
readonly ADD_COMMENT_ANNOTATION: "addCommentAnnotation";
|
|
32
|
-
readonly ADD_COMMENT_ANNOTATION_DRAFT: "addCommentAnnotationDraft";
|
|
33
32
|
readonly DELETE_COMMENT_ANNOTATION: "deleteCommentAnnotation";
|
|
34
33
|
readonly APPROVE_COMMENT_ANNOTATION: "approveCommentAnnotation";
|
|
35
34
|
readonly ACCEPT_COMMENT_ANNOTATION: "acceptCommentAnnotation";
|
|
@@ -55,12 +54,9 @@ export declare const CommentEventTypes: {
|
|
|
55
54
|
readonly COMMENT_SIDEBAR_DATA_UPDATE: "commentSidebarDataUpdate";
|
|
56
55
|
readonly AUTOCOMPLETE_SEARCH: "autocompleteSearch";
|
|
57
56
|
readonly COMPOSER_CLICKED: "composerClicked";
|
|
58
|
-
readonly COMPOSER_TEXT_CHANGE: "composerTextChange";
|
|
59
57
|
readonly LINK_CLICKED: "linkClicked";
|
|
60
58
|
readonly COMMENT_PIN_CLICKED: "commentPinClicked";
|
|
61
59
|
readonly COMMENT_BUBBLE_CLICKED: "commentBubbleClicked";
|
|
62
|
-
readonly COMMENT_TOOL_CLICK: "commentToolClick";
|
|
63
|
-
readonly SIDEBAR_BUTTON_CLICK: "sidebarButtonClick";
|
|
64
60
|
};
|
|
65
61
|
export declare const RecorderEventTypes: {
|
|
66
62
|
readonly TRANSCRIPTION_DONE: "transcriptionDone";
|
|
@@ -189,7 +185,6 @@ export declare enum AnalyticsFeatures {
|
|
|
189
185
|
COMMENT_SIDEBAR = "commentSidebar"
|
|
190
186
|
}
|
|
191
187
|
export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction' | 'multiThread';
|
|
192
|
-
export type AssignToType = 'dropdown' | 'checkbox';
|
|
193
188
|
export declare enum DeviceType {
|
|
194
189
|
DESKTOP = "Desktop",
|
|
195
190
|
MOBILE = "Mobile",
|
|
@@ -282,10 +277,10 @@ export type OverlayOriginY = 'top' | 'center' | 'bottom';
|
|
|
282
277
|
export type OverlayOriginX = 'start' | 'center' | 'end';
|
|
283
278
|
export type SubtitlesMode = 'floating' | 'embed';
|
|
284
279
|
export type RecorderVariant = 'default' | 'embed';
|
|
285
|
-
export type ReactionPinType = 'timeline' | 'comment'
|
|
280
|
+
export type ReactionPinType = 'timeline' | 'comment';
|
|
286
281
|
export type SidebarPosition = 'left' | 'right';
|
|
287
282
|
export type SidebarSortingCriteria = 'date' | 'unread' | null;
|
|
288
|
-
export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved' | 'open' | '
|
|
283
|
+
export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved' | 'open' | 'reset' | null;
|
|
289
284
|
export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'involved' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions' | string;
|
|
290
285
|
export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
|
|
291
286
|
export type NotificationPanelMode = 'popover' | 'sidebar';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-staging",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.3",
|
|
4
4
|
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
|
|
5
5
|
"homepage": "https://velt.dev",
|
|
6
6
|
"keywords": [
|