@veltdev/sdk-staging 2.0.51 → 2.0.53
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/autocomplete.data.model.d.ts +1 -1
- package/app/models/data/comment-annotation.data.model.d.ts +2 -0
- package/app/models/data/custom-chip-dropdown.data.model.d.ts +9 -0
- package/app/models/data/notification.model.d.ts +26 -0
- package/app/models/element/comment-element.model.d.ts +27 -0
- package/app/utils/enums.d.ts +1 -0
- package/models.d.ts +1 -0
- package/package.json +1 -1
- package/velt.js +2 -2
|
@@ -7,6 +7,7 @@ import { PageInfo } from "./page-info.model";
|
|
|
7
7
|
import { TargetElement } from "./target-element.data.model";
|
|
8
8
|
import { TargetTextRange } from "./target-text-range.data.model";
|
|
9
9
|
import { User } from "./user.data.model";
|
|
10
|
+
import { CustomAnnotationDropdownItem } from "./custom-chip-dropdown.data.model";
|
|
10
11
|
export declare class CommentAnnotation {
|
|
11
12
|
/**
|
|
12
13
|
* Unique identifier for the comment pin annotation.
|
|
@@ -160,6 +161,7 @@ export declare class CommentAnnotation {
|
|
|
160
161
|
isPageAnnotation?: boolean;
|
|
161
162
|
targetInlineCommentElementId?: string;
|
|
162
163
|
inlineCommentSectionConfig?: InlineCommentSectionConfig;
|
|
164
|
+
customList?: CustomAnnotationDropdownItem[];
|
|
163
165
|
}
|
|
164
166
|
export declare class GhostComment {
|
|
165
167
|
targetElement?: TargetElement | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type CustomAnnotationDropdownType = 'multi' | 'single';
|
|
2
|
+
export declare class CustomAnnotationDropdownItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class CustomAnnotationDropdownData {
|
|
7
|
+
type: CustomAnnotationDropdownType;
|
|
8
|
+
data: CustomAnnotationDropdownItem[];
|
|
9
|
+
}
|
|
@@ -127,6 +127,20 @@ export declare class Notification {
|
|
|
127
127
|
* Notification body message
|
|
128
128
|
*/
|
|
129
129
|
displayBodyMessage?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Display message template
|
|
132
|
+
*/
|
|
133
|
+
displayHeadlineMessageTemplate?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Display message template data
|
|
136
|
+
*/
|
|
137
|
+
displayHeadlineMessageTemplateData?: {
|
|
138
|
+
actionUser: User;
|
|
139
|
+
recipientUser: User;
|
|
140
|
+
actionMessage: string;
|
|
141
|
+
project: string;
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
};
|
|
130
144
|
/**
|
|
131
145
|
* Is notification for you
|
|
132
146
|
*/
|
|
@@ -143,6 +157,18 @@ export declare class Notification {
|
|
|
143
157
|
* Notification metadata
|
|
144
158
|
*/
|
|
145
159
|
metadata?: NotificationMetadata;
|
|
160
|
+
/**
|
|
161
|
+
* Notification notify users map by email hash
|
|
162
|
+
*/
|
|
163
|
+
notifyUsers?: {
|
|
164
|
+
[email: string]: boolean;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Notification notify users map by user id hash
|
|
168
|
+
*/
|
|
169
|
+
notifyUsersByUserId?: {
|
|
170
|
+
[userId: string]: boolean;
|
|
171
|
+
};
|
|
146
172
|
}
|
|
147
173
|
export declare class NotificationMetadata {
|
|
148
174
|
/**
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig } from "../data/comment-annotation.data.model";
|
|
4
4
|
import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
|
|
5
|
+
import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
|
|
6
|
+
import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
7
|
+
|
|
5
8
|
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
6
9
|
export declare class CommentElement {
|
|
7
10
|
/**
|
|
@@ -700,6 +703,18 @@ export declare class CommentElement {
|
|
|
700
703
|
* @param config manual comment annotation config
|
|
701
704
|
*/
|
|
702
705
|
public addManualComment: (config: ManualCommentAnnotationConfig) => void;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* To add custom list dropdown on comment annotation.
|
|
709
|
+
* @param data custom list data
|
|
710
|
+
*/
|
|
711
|
+
public createCustomListDataOnAnnotation: (data: CustomAnnotationDropdownData) => void;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* To add custom list dropdown on comment.
|
|
715
|
+
* @param data custom list data
|
|
716
|
+
*/
|
|
717
|
+
public createCustomListDataOnComment: (data: AutocompleteData) => void;
|
|
703
718
|
constructor();
|
|
704
719
|
/**
|
|
705
720
|
* Subscribe to comments on the current document.
|
|
@@ -1391,4 +1406,16 @@ export declare class CommentElement {
|
|
|
1391
1406
|
* @param config manual comment annotation config
|
|
1392
1407
|
*/
|
|
1393
1408
|
private _addManualComment;
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* To add custom list dropdown on comment annotation.
|
|
1412
|
+
* @param data custom list data
|
|
1413
|
+
*/
|
|
1414
|
+
private _createCustomListDataOnAnnotation;
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* To add custom list dropdown on comment.
|
|
1418
|
+
* @param data custom list data
|
|
1419
|
+
*/
|
|
1420
|
+
private _createCustomListDataOnComment;
|
|
1394
1421
|
}
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare enum CommentStatus {
|
|
|
8
8
|
STATUS_CHANGED = "statusChanged",
|
|
9
9
|
PRIORITY_CHANGED = "priorityChanged",
|
|
10
10
|
ACCESS_MODE_CHANGED = "accessModeChanged",
|
|
11
|
+
CUSTOM_LIST_CHANGED = "customListChanged",
|
|
11
12
|
ACCEPTED = "accepted",
|
|
12
13
|
REJECTED = "rejected",
|
|
13
14
|
REACTION_ADDED = "reactionAdded",
|
package/models.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './app/models/data/config.data.model';
|
|
|
8
8
|
export * from './app/models/data/cursor-position.data.model';
|
|
9
9
|
export * from './app/models/data/cursor-user.data.model';
|
|
10
10
|
export * from './app/models/data/custom-css.data.model';
|
|
11
|
+
export * from './app/models/data/custom-chip-dropdown.data.model';
|
|
11
12
|
export * from './app/models/data/device-info.model';
|
|
12
13
|
export * from './app/models/data/document-iam.data.model';
|
|
13
14
|
export * from './app/models/data/document-metadata.model';
|