@veltdev/sdk 3.0.7 → 3.0.9
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-annotation.data.model.d.ts +1 -0
- package/app/models/data/document-paths.data.model.d.ts +4 -0
- package/app/models/data/reaction-annotation.data.model.d.ts +4 -0
- package/app/models/element/comment-element.model.d.ts +21 -0
- package/app/models/element/notification-element.model.d.ts +1 -1
- package/app/models/element/reaction-element.model.d.ts +14 -0
- package/app/utils/constants.d.ts +3 -0
- package/app/utils/enums.d.ts +2 -1
- package/package.json +1 -1
- package/velt.js +2 -2
|
@@ -166,6 +166,7 @@ export declare class CommentAnnotation {
|
|
|
166
166
|
unsubscribedUsers?: CommentAnnotationUnsubscribedUsers;
|
|
167
167
|
subscribedGroups?: CommentAnnotationSubscribedGroups;
|
|
168
168
|
resolvedByUserId?: string | null;
|
|
169
|
+
multiThreadAnnotationId?: string;
|
|
169
170
|
}
|
|
170
171
|
export declare class GhostComment {
|
|
171
172
|
targetElement?: TargetElement | null;
|
|
@@ -11,6 +11,10 @@ export declare class ReactionAnnotation {
|
|
|
11
11
|
* Auto generated.
|
|
12
12
|
*/
|
|
13
13
|
annotationId: string;
|
|
14
|
+
/**
|
|
15
|
+
* Connected comment annotation id of reaction annotation
|
|
16
|
+
*/
|
|
17
|
+
commentAnnotationId?: string;
|
|
14
18
|
reactions?: Reaction[];
|
|
15
19
|
/**
|
|
16
20
|
* Timestamp when the reaction annotation was last updated.
|
|
@@ -741,6 +741,17 @@ export declare class CommentElement {
|
|
|
741
741
|
* To disable bubble on pin hover
|
|
742
742
|
*/
|
|
743
743
|
public disableBubbleOnPinHover: () => void;
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* To enable multi thread mode
|
|
747
|
+
*/
|
|
748
|
+
public enableMultiThreadMode: () => void;
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* To disable multi thread mode
|
|
752
|
+
*/
|
|
753
|
+
public disableMultiThreadMode: () => void;
|
|
754
|
+
|
|
744
755
|
constructor();
|
|
745
756
|
/**
|
|
746
757
|
* Subscribe to comments on the current document.
|
|
@@ -1470,4 +1481,14 @@ export declare class CommentElement {
|
|
|
1470
1481
|
* To disable bubble on pin hover
|
|
1471
1482
|
*/
|
|
1472
1483
|
private _disableBubbleOnPinHover;
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* To enable multi thread mode
|
|
1487
|
+
*/
|
|
1488
|
+
private _enableMultiThreadMode;
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* To disable multi thread mode
|
|
1492
|
+
*/
|
|
1493
|
+
private _disableMultiThreadMode;
|
|
1473
1494
|
}
|
|
@@ -21,7 +21,7 @@ export declare class NotificationElement {
|
|
|
21
21
|
/**
|
|
22
22
|
* To get notifications data
|
|
23
23
|
*/
|
|
24
|
-
getNotificationsData: () => Observable<Notification[]>;
|
|
24
|
+
getNotificationsData: () => Observable<Notification[] | null>;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* To set max days for notification history
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
+
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
3
|
+
|
|
2
4
|
export declare class ReactionElement {
|
|
3
5
|
/**
|
|
4
6
|
* To enable dark mode
|
|
@@ -9,6 +11,12 @@ export declare class ReactionElement {
|
|
|
9
11
|
* To disable dark mode
|
|
10
12
|
*/
|
|
11
13
|
disableDarkMode: () => void;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* To set custom reactions
|
|
17
|
+
* @param reactions Reactions to be set
|
|
18
|
+
*/
|
|
19
|
+
public setCustomReactions: (reactions: ReactionMap) => void;
|
|
12
20
|
constructor();
|
|
13
21
|
|
|
14
22
|
/**
|
|
@@ -20,4 +28,10 @@ export declare class ReactionElement {
|
|
|
20
28
|
* To disable dark mode
|
|
21
29
|
*/
|
|
22
30
|
private _disableDarkMode;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* To set custom reactions
|
|
34
|
+
* @param reactions Reactions to be set
|
|
35
|
+
*/
|
|
36
|
+
private _setCustomReactions;
|
|
23
37
|
}
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare class Constants {
|
|
|
13
13
|
static FIREBASE_PARTIAL_PATH_ARROW: string;
|
|
14
14
|
static FIREBASE_PARTIAL_PATH_AREA: string;
|
|
15
15
|
static FIREBASE_PARTIAL_PATH_COMMENT: string;
|
|
16
|
+
static FIREBASE_PARTIAL_PATH_MULTI_THREAD: string;
|
|
16
17
|
static FIREBASE_PARTIAL_PATH_TAG: string;
|
|
17
18
|
static FIREBASE_PARTIAL_PATH_SELECTION: string;
|
|
18
19
|
static FIREBASE_PARTIAL_PATH_AUDIO_HUDDLE: string;
|
|
@@ -230,6 +231,7 @@ export declare class Constants {
|
|
|
230
231
|
VELT_COMMENT_TYPE: string;
|
|
231
232
|
TARGET_INLINE_COMMENT_ELEMENT_ID: string;
|
|
232
233
|
TARGET_COMMENT_ELEMENT_ID: string;
|
|
234
|
+
TARGET_ELEMENT_ID: string;
|
|
233
235
|
VELT_ID: string;
|
|
234
236
|
VELT_ELEMENT: string;
|
|
235
237
|
VELT_ANNOTATION_ID: string;
|
|
@@ -281,6 +283,7 @@ export declare class Constants {
|
|
|
281
283
|
VELT_IFRAME_CONTAINER_STATIC: string;
|
|
282
284
|
VELT_IS_FIRST_COMPONENT: string;
|
|
283
285
|
VELT_DOWNLOAD_BUTTON: string;
|
|
286
|
+
VELT_COMMENT_DIALOG_PORTAL_INTERNAL: string;
|
|
284
287
|
};
|
|
285
288
|
static INJECTION_STYLE_PROPS: {
|
|
286
289
|
/**
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export declare enum Features {
|
|
|
56
56
|
ARROW = "arrow",
|
|
57
57
|
AUDIO_HUDDLE = "audioHuddle",
|
|
58
58
|
COMMENT = "comment",
|
|
59
|
+
MULTI_THREAD = "multiThread",
|
|
59
60
|
CURSOR = "cursor",
|
|
60
61
|
HUDDLE = "huddle",
|
|
61
62
|
LIVE_STATE_SYNC = "liveStateSync",
|
|
@@ -67,7 +68,7 @@ export declare enum Features {
|
|
|
67
68
|
NOTIFICATION = "notification",
|
|
68
69
|
REACTION = "reaction"
|
|
69
70
|
}
|
|
70
|
-
export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction';
|
|
71
|
+
export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction' | 'multiThread';
|
|
71
72
|
export declare enum DeviceType {
|
|
72
73
|
DESKTOP = "Desktop",
|
|
73
74
|
MOBILE = "Mobile",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
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": [
|