@veltdev/sdk-staging 4.4.0-beta.31 → 4.4.0-beta.4
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/client/snippyly.model.d.ts +0 -6
- package/app/models/data/attachment.model.d.ts +0 -10
- package/app/models/data/button.data.model.d.ts +2 -6
- package/app/models/data/comment-actions.data.model.d.ts +0 -1
- package/app/models/data/comment-resolver.data.model.d.ts +0 -5
- package/app/models/data/comment-sidebar-config.model.d.ts +0 -10
- package/app/models/data/provider.data.model.d.ts +0 -2
- package/app/models/data/reaction-resolver.data.model.d.ts +0 -1
- package/app/models/data/resolver.data.model.d.ts +0 -1
- package/app/models/element/comment-element.model.d.ts +0 -54
- package/app/models/element/live-state-sync-element.model.d.ts +5 -5
- package/app/utils/constants.d.ts +1 -1
- package/app/utils/enums.d.ts +1 -27
- package/models.d.ts +0 -1
- package/package.json +1 -1
- package/velt.js +4 -438
- package/app/models/data/attachment-resolver.data.model.d.ts +0 -52
|
@@ -30,7 +30,6 @@ import { Document, SetDocumentsRequestOptions, FetchDocumentsRequest, FetchFolde
|
|
|
30
30
|
import { FetchDocumentsResponse, FetchFoldersResponse } from "../models/data/document-events.data.model";
|
|
31
31
|
import { UserDataProvider } from "../models/data/user-resolver.data.model";
|
|
32
32
|
import { VeltDataProvider } from "../models/data/provider.data.model";
|
|
33
|
-
import { VeltResetButtonStateConfig } from "../models/data/button.data.model";
|
|
34
33
|
|
|
35
34
|
export declare class Snippyly {
|
|
36
35
|
constructor();
|
|
@@ -311,9 +310,4 @@ export declare class Snippyly {
|
|
|
311
310
|
* To disable logs.
|
|
312
311
|
*/
|
|
313
312
|
disableLogs: (config?: DisableLogsConfig) => void;
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* To reset the button toggle map.
|
|
317
|
-
*/
|
|
318
|
-
resetVeltButtonState: (config?: VeltResetButtonStateConfig) => void;
|
|
319
313
|
}
|
|
@@ -6,10 +6,6 @@ export declare class Attachment {
|
|
|
6
6
|
* Auto generated.
|
|
7
7
|
*/
|
|
8
8
|
attachmentId: number;
|
|
9
|
-
/**
|
|
10
|
-
* To check if attachment resolver is used
|
|
11
|
-
*/
|
|
12
|
-
isAttachmentResolverUsed?: boolean;
|
|
13
9
|
/**
|
|
14
10
|
* File name
|
|
15
11
|
*/
|
|
@@ -44,9 +40,3 @@ export declare class Attachment {
|
|
|
44
40
|
*/
|
|
45
41
|
mimeType?: any;
|
|
46
42
|
}
|
|
47
|
-
export interface UploadFileOptions {
|
|
48
|
-
path: string;
|
|
49
|
-
file: File;
|
|
50
|
-
useAttachmentResolver?: boolean;
|
|
51
|
-
metadata?: any;
|
|
52
|
-
}
|
|
@@ -4,8 +4,8 @@ import { Comment } from "./comment.data.model";
|
|
|
4
4
|
import { VeltEventMetadata } from "./event-metadata.data.model";
|
|
5
5
|
import { Notification } from "./notification.model";
|
|
6
6
|
export interface VeltButtonClickEvent extends VeltButtonData {
|
|
7
|
-
buttonContext
|
|
8
|
-
metadata
|
|
7
|
+
buttonContext: VeltButtonContext;
|
|
8
|
+
metadata: VeltEventMetadata;
|
|
9
9
|
}
|
|
10
10
|
export interface VeltButtonContext {
|
|
11
11
|
type?: string;
|
|
@@ -28,7 +28,3 @@ export interface VeltButtonSelectionMap {
|
|
|
28
28
|
[buttonId: string]: boolean;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
export interface VeltResetButtonStateConfig {
|
|
32
|
-
id?: string;
|
|
33
|
-
group?: string;
|
|
34
|
-
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ResolverActions } from "../../utils/enums";
|
|
2
|
-
import { PartialAttachment } from "./attachment-resolver.data.model";
|
|
3
2
|
import { BaseMetadata } from "./base-metadata.data.model";
|
|
4
3
|
import { CommentAnnotation } from "./comment-annotation.data.model";
|
|
5
4
|
import { ResolverConfig, ResolverResponse } from "./resolver.data.model";
|
|
@@ -26,16 +25,12 @@ export interface SaveCommentResolverRequest {
|
|
|
26
25
|
[key: string]: PartialCommentAnnotation;
|
|
27
26
|
};
|
|
28
27
|
event?: ResolverActions;
|
|
29
|
-
metadata?: BaseMetadata;
|
|
30
28
|
commentId?: string;
|
|
31
29
|
}
|
|
32
30
|
export interface PartialComment {
|
|
33
31
|
commentId: string | number;
|
|
34
32
|
commentHtml?: string;
|
|
35
33
|
commentText?: string;
|
|
36
|
-
attachments?: {
|
|
37
|
-
[attachmentId: number]: PartialAttachment;
|
|
38
|
-
};
|
|
39
34
|
}
|
|
40
35
|
export interface PartialCommentAnnotationResult {
|
|
41
36
|
strippedData: {
|
|
@@ -30,16 +30,6 @@ export declare class CommentSidebarFilters {
|
|
|
30
30
|
email?: string;
|
|
31
31
|
name?: string;
|
|
32
32
|
}[];
|
|
33
|
-
assigned?: {
|
|
34
|
-
userId?: string;
|
|
35
|
-
email?: string;
|
|
36
|
-
name?: string;
|
|
37
|
-
}[];
|
|
38
|
-
tagged?: {
|
|
39
|
-
userId?: string;
|
|
40
|
-
email?: string;
|
|
41
|
-
name?: string;
|
|
42
|
-
}[];
|
|
43
33
|
priority?: string[];
|
|
44
34
|
status?: string[];
|
|
45
35
|
category?: string[];
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { CommentAnnotationDataProvider } from "./comment-resolver.data.model";
|
|
2
|
-
import { AttachmentDataProvider } from "./attachment-resolver.data.model";
|
|
3
2
|
import { ReactionAnnotationDataProvider } from "./reaction-resolver.data.model";
|
|
4
3
|
import { UserDataProvider } from "./user-resolver.data.model";
|
|
5
4
|
export interface VeltDataProvider {
|
|
6
5
|
comment?: CommentAnnotationDataProvider;
|
|
7
6
|
user?: UserDataProvider;
|
|
8
7
|
reaction?: ReactionAnnotationDataProvider;
|
|
9
|
-
attachment?: AttachmentDataProvider;
|
|
10
8
|
}
|
|
@@ -9,8 +9,6 @@ import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebar
|
|
|
9
9
|
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
10
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
11
|
import { UnreadCommentsCount, TransformContext } from "../data/comment-utils.data.model";
|
|
12
|
-
import { CommentSidebarSystemFiltersOperator } from "../../utils/enums";
|
|
13
|
-
|
|
14
12
|
export declare class CommentElement {
|
|
15
13
|
/**
|
|
16
14
|
* Subscribe to comments on the current document.
|
|
@@ -498,12 +496,6 @@ export declare class CommentElement {
|
|
|
498
496
|
*/
|
|
499
497
|
public setCommentSidebarFilters: (filters: any) => void;
|
|
500
498
|
|
|
501
|
-
/**
|
|
502
|
-
* To set system filters operator on comment sidebar.
|
|
503
|
-
* @param operator System filters operator
|
|
504
|
-
*/
|
|
505
|
-
public setSystemFiltersOperator: (operator: CommentSidebarSystemFiltersOperator) => void;
|
|
506
|
-
|
|
507
499
|
/**
|
|
508
500
|
* To enable comment pin highlighter.
|
|
509
501
|
*/
|
|
@@ -1120,26 +1112,6 @@ export declare class CommentElement {
|
|
|
1120
1112
|
* To disable full expanded
|
|
1121
1113
|
*/
|
|
1122
1114
|
public disableFullExpanded: () => void;
|
|
1123
|
-
|
|
1124
|
-
/**
|
|
1125
|
-
* To enable comment to nearest allowed element
|
|
1126
|
-
*/
|
|
1127
|
-
public enableCommentToNearestAllowedElement: () => void;
|
|
1128
|
-
|
|
1129
|
-
/**
|
|
1130
|
-
* To disable comment to nearest allowed element
|
|
1131
|
-
*/
|
|
1132
|
-
public disableCommentToNearestAllowedElement: () => void;
|
|
1133
|
-
|
|
1134
|
-
/**
|
|
1135
|
-
* To enable draft mode
|
|
1136
|
-
*/
|
|
1137
|
-
public enableDraftMode: () => void;
|
|
1138
|
-
|
|
1139
|
-
/**
|
|
1140
|
-
* To disable draft mode
|
|
1141
|
-
*/
|
|
1142
|
-
public disableDraftMode: () => void;
|
|
1143
1115
|
constructor();
|
|
1144
1116
|
/**
|
|
1145
1117
|
* Subscribe to comments on the current document.
|
|
@@ -1618,12 +1590,6 @@ export declare class CommentElement {
|
|
|
1618
1590
|
*/
|
|
1619
1591
|
private _setCommentSidebarFilters;
|
|
1620
1592
|
|
|
1621
|
-
/**
|
|
1622
|
-
* To set system filters operator on comment sidebar.
|
|
1623
|
-
* @param operator System filters operator
|
|
1624
|
-
*/
|
|
1625
|
-
private _setSystemFiltersOperator;
|
|
1626
|
-
|
|
1627
1593
|
/**
|
|
1628
1594
|
* To enable comment pin highlighter.
|
|
1629
1595
|
*/
|
|
@@ -2240,24 +2206,4 @@ export declare class CommentElement {
|
|
|
2240
2206
|
* To disable full expanded
|
|
2241
2207
|
*/
|
|
2242
2208
|
private _disableFullExpanded;
|
|
2243
|
-
|
|
2244
|
-
/**
|
|
2245
|
-
* To enable comment to nearest allowed element
|
|
2246
|
-
*/
|
|
2247
|
-
private _enableCommentToNearestAllowedElement;
|
|
2248
|
-
|
|
2249
|
-
/**
|
|
2250
|
-
* To disable comment to nearest allowed element
|
|
2251
|
-
*/
|
|
2252
|
-
private _disableCommentToNearestAllowedElement;
|
|
2253
|
-
|
|
2254
|
-
/**
|
|
2255
|
-
* To enable draft mode
|
|
2256
|
-
*/
|
|
2257
|
-
private _enableDraftMode;
|
|
2258
|
-
|
|
2259
|
-
/**
|
|
2260
|
-
* To disable draft mode
|
|
2261
|
-
*/
|
|
2262
|
-
private _disableDraftMode;
|
|
2263
2209
|
}
|
|
@@ -11,18 +11,18 @@ export declare class LiveStateSyncElement {
|
|
|
11
11
|
/**
|
|
12
12
|
* Gets live state data based on the provided ID.
|
|
13
13
|
*/
|
|
14
|
-
getLiveStateData:
|
|
14
|
+
getLiveStateData: (liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<any>;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Gets live state data as an observable based on the provided ID.
|
|
18
18
|
* @deprecated Use `getLiveStateData` instead
|
|
19
19
|
*/
|
|
20
|
-
getLiveStateData$:
|
|
20
|
+
getLiveStateData$: (liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<any>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Sets live state data for the provided ID and data.
|
|
24
24
|
*/
|
|
25
|
-
setLiveStateData:
|
|
25
|
+
setLiveStateData: (liveStateDataId: string, liveStateData: any, config?: SetLiveStateDataConfig) => any;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Enables the single editor mode.
|
|
@@ -38,12 +38,12 @@ export declare class LiveStateSyncElement {
|
|
|
38
38
|
* Checks if the current user is an editor. Returns an observable.
|
|
39
39
|
* @deprecated Use `isUserEditor` instead
|
|
40
40
|
*/
|
|
41
|
-
isUserEditor$: () => Observable<UserEditorAccess | null
|
|
41
|
+
isUserEditor$: () => Observable<UserEditorAccess | null>;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* Checks if the current user is an editor. Returns an observable.
|
|
45
45
|
*/
|
|
46
|
-
isUserEditor: () => Observable<UserEditorAccess | null
|
|
46
|
+
isUserEditor: () => Observable<UserEditorAccess | null>;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* To get editor
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -248,7 +248,7 @@ export declare class Constants {
|
|
|
248
248
|
VELT_COMMENT_COMPOSER: string;
|
|
249
249
|
VELT_SKELETON_LOADER: string;
|
|
250
250
|
VELT_SHADOW_DOM_INTERNAL: string;
|
|
251
|
-
|
|
251
|
+
VELT_LIVE_STATE_SYNC_PANEL: string;
|
|
252
252
|
};
|
|
253
253
|
static ATTRIBUTES: {
|
|
254
254
|
VELT_COMMENT_CONTAINER: string;
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -23,9 +23,7 @@ export declare enum ResolverActions {
|
|
|
23
23
|
COMMENT_DELETE = "comment.delete",
|
|
24
24
|
COMMENT_UPDATE = "comment.update",
|
|
25
25
|
REACTION_ADD = "reaction.add",
|
|
26
|
-
REACTION_DELETE = "reaction.delete"
|
|
27
|
-
ATTACHMENT_ADD = "attachment.add",
|
|
28
|
-
ATTACHMENT_DELETE = "attachment.delete"
|
|
26
|
+
REACTION_DELETE = "reaction.delete"
|
|
29
27
|
}
|
|
30
28
|
export declare const CommentEventTypes: {
|
|
31
29
|
readonly ADD_COMMENT_ANNOTATION: "addCommentAnnotation";
|
|
@@ -121,26 +119,6 @@ export declare enum Features {
|
|
|
121
119
|
NOTIFICATION = "notification",
|
|
122
120
|
REACTION = "reaction"
|
|
123
121
|
}
|
|
124
|
-
export declare enum AnalyticsFeatures {
|
|
125
|
-
AREA = "area",
|
|
126
|
-
ARROW = "arrow",
|
|
127
|
-
AUDIO_HUDDLE = "audioHuddle",
|
|
128
|
-
COMMENT = "comment",
|
|
129
|
-
MULTI_THREAD = "multiThread",
|
|
130
|
-
CURSOR = "cursor",
|
|
131
|
-
HUDDLE = "huddle",
|
|
132
|
-
LIVE_STATE_SYNC = "liveStateSync",
|
|
133
|
-
PRESENCE = "presence",
|
|
134
|
-
TAG = "tag",
|
|
135
|
-
RECORDER = "recorder",
|
|
136
|
-
REWRITER = "rewriter",
|
|
137
|
-
LIVE_SELECTION = "liveSelection",
|
|
138
|
-
NOTIFICATION = "notification",
|
|
139
|
-
REACTION = "reaction",
|
|
140
|
-
AREA_COMMENT = "areaComment",
|
|
141
|
-
INLINE_COMMENT = "inlineComment",
|
|
142
|
-
COMMENT_SIDEBAR = "commentSidebar"
|
|
143
|
-
}
|
|
144
122
|
export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction' | 'multiThread';
|
|
145
123
|
export declare enum DeviceType {
|
|
146
124
|
DESKTOP = "Desktop",
|
|
@@ -242,7 +220,3 @@ export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages'
|
|
|
242
220
|
export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
|
|
243
221
|
export type NotificationPanelMode = 'popover' | 'sidebar';
|
|
244
222
|
export type SidebarActionButtonType = 'default' | 'toggle';
|
|
245
|
-
export declare enum CommentSidebarSystemFiltersOperator {
|
|
246
|
-
AND = "and",
|
|
247
|
-
OR = "or"
|
|
248
|
-
}
|
package/models.d.ts
CHANGED
|
@@ -64,7 +64,6 @@ export * from './app/models/data/views.data.model';
|
|
|
64
64
|
export * from './app/models/data/autocomplete.data.model';
|
|
65
65
|
export * from './app/models/data/reaction-annotation.data.model';
|
|
66
66
|
export * from './app/models/data/reaction-resolver.data.model';
|
|
67
|
-
export * from './app/models/data/attachment-resolver.data.model';
|
|
68
67
|
export * from './app/models/data/reaction.data.model';
|
|
69
68
|
export * from './app/models/data/organization-groups.data.model';
|
|
70
69
|
export * from './app/models/data/organization-metadata.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-staging",
|
|
3
|
-
"version": "4.4.0-beta.
|
|
3
|
+
"version": "4.4.0-beta.4",
|
|
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": [
|