@veltdev/sdk 1.0.145 → 1.0.147
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.
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { CursorPosition } from "./cursor-position.data.model";
|
|
2
|
+
import { Location } from "./location.model";
|
|
3
|
+
import { PageInfo } from "./page-info.model";
|
|
4
|
+
import { Reaction } from "./reaction.data.model";
|
|
5
|
+
import { TargetElement } from "./target-element.data.model";
|
|
6
|
+
import { User } from "./user.data.model";
|
|
7
|
+
export declare class ReactionAnnotation {
|
|
8
|
+
/**
|
|
9
|
+
* Unique identifier for the reaction pin annotation.
|
|
10
|
+
*
|
|
11
|
+
* Auto generated.
|
|
12
|
+
*/
|
|
13
|
+
annotationId: string;
|
|
14
|
+
reactions?: Reaction[];
|
|
15
|
+
/**
|
|
16
|
+
* Timestamp when the reaction annotation was last updated.
|
|
17
|
+
*
|
|
18
|
+
* Auto generated.
|
|
19
|
+
*/
|
|
20
|
+
lastUpdated?: any;
|
|
21
|
+
/**
|
|
22
|
+
* Target element of reaction annotation
|
|
23
|
+
*/
|
|
24
|
+
targetElement?: TargetElement | null;
|
|
25
|
+
/**
|
|
26
|
+
* Target element id provided by user
|
|
27
|
+
*/
|
|
28
|
+
targetElementId?: string | null;
|
|
29
|
+
position?: CursorPosition | null;
|
|
30
|
+
/**
|
|
31
|
+
* Unique location id generated from provided location
|
|
32
|
+
*/
|
|
33
|
+
locationId?: number | null;
|
|
34
|
+
/**
|
|
35
|
+
* Set location to identify user on sub document
|
|
36
|
+
*/
|
|
37
|
+
location?: Location | null;
|
|
38
|
+
type?: string;
|
|
39
|
+
/**
|
|
40
|
+
* To maintain index of current annotation in available list of annotations
|
|
41
|
+
* It will start from 1, so no need to add 1 in that.
|
|
42
|
+
*/
|
|
43
|
+
annotationIndex?: number;
|
|
44
|
+
pageInfo?: PageInfo;
|
|
45
|
+
from?: User;
|
|
46
|
+
icon?: string;
|
|
47
|
+
iconUrl?: string;
|
|
48
|
+
iconEmoji?: string;
|
|
49
|
+
}
|
|
50
|
+
export declare class ReactionMap {
|
|
51
|
+
[reactionId: string]: {
|
|
52
|
+
url?: string;
|
|
53
|
+
svg?: string;
|
|
54
|
+
emoji?: string;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { User } from "./user.data.model";
|
|
2
|
+
export declare class Reaction {
|
|
3
|
+
/**
|
|
4
|
+
* Emoji variant.
|
|
5
|
+
*/
|
|
6
|
+
variant?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The user who added reaction.
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
from: User;
|
|
12
|
+
/**
|
|
13
|
+
* Timestamp when this reaction was added.
|
|
14
|
+
*
|
|
15
|
+
* Auto generated.
|
|
16
|
+
*/
|
|
17
|
+
lastUpdated?: Date;
|
|
18
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { CommentAnnotation, CommentOnElementConfig } from "../data/comment-annotation.data.model";
|
|
4
4
|
import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
|
|
5
|
+
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
5
6
|
export declare class CommentElement {
|
|
6
7
|
/**
|
|
7
8
|
* Subscribe to comments on the current document.
|
|
@@ -623,6 +624,12 @@ export declare class CommentElement {
|
|
|
623
624
|
* To hide resolved comments on DOM
|
|
624
625
|
*/
|
|
625
626
|
public hideResolvedCommentsOnDom: () => void;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* To set custom reactions
|
|
630
|
+
* @param reactions Reactions to be set
|
|
631
|
+
*/
|
|
632
|
+
public setCustomReactions: (reactions: ReactionMap) => void;
|
|
626
633
|
constructor();
|
|
627
634
|
/**
|
|
628
635
|
* Subscribe to comments on the current document.
|
|
@@ -1239,4 +1246,10 @@ export declare class CommentElement {
|
|
|
1239
1246
|
* To hide resolved comments on DOM
|
|
1240
1247
|
*/
|
|
1241
1248
|
private _hideResolvedCommentsOnDom;
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* To set custom reactions
|
|
1252
|
+
* @param reactions Reactions to be set
|
|
1253
|
+
*/
|
|
1254
|
+
private _setCustomReactions;
|
|
1242
1255
|
}
|
package/models.d.ts
CHANGED
|
@@ -48,3 +48,5 @@ export * from './app/models/data/customer-metadata.data.model';
|
|
|
48
48
|
export * from './app/models/data/comment-sidebar-config.model';
|
|
49
49
|
export * from './app/models/data/views.data.model';
|
|
50
50
|
export * from './app/models/data/autocomplete.data.model';
|
|
51
|
+
export * from './app/models/data/reaction-annotation.data.model';
|
|
52
|
+
export * from './app/models/data/reaction.data.model';
|