@veltdev/sdk 5.0.2-beta.3 → 5.0.2-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/models/data/comment-actions.data.model.d.ts +2 -0
- package/app/models/data/comment-annotation.data.model.d.ts +3 -2
- package/app/models/data/comment-events.data.model.d.ts +4 -2
- package/app/models/element/comment-element.model.d.ts +8 -8
- package/app/utils/enums.d.ts +4 -0
- package/package.json +1 -1
- package/velt.js +113 -113
|
@@ -141,6 +141,8 @@ export interface AddCommentRequest {
|
|
|
141
141
|
assignedTo?: User;
|
|
142
142
|
assigned?: boolean;
|
|
143
143
|
options?: RequestOptions;
|
|
144
|
+
/** Optional visibility configuration for the comment */
|
|
145
|
+
visibility?: CommentVisibilityConfig;
|
|
144
146
|
}
|
|
145
147
|
export interface UpdateCommentRequest {
|
|
146
148
|
annotationId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommentAccessMode } from "../../utils/enums";
|
|
1
|
+
import { CommentAccessMode, CommentVisibilityOptionType } from "../../utils/enums";
|
|
2
2
|
import { BaseMetadata } from "./base-metadata.data.model";
|
|
3
3
|
import { CommentVisibilityType } from "./comment-actions.data.model";
|
|
4
4
|
import { Comment } from "./comment.data.model";
|
|
@@ -241,7 +241,8 @@ export declare class CommentSelectionChangeData {
|
|
|
241
241
|
}
|
|
242
242
|
export declare class VisibilityOptionClickedData {
|
|
243
243
|
annotationId: string;
|
|
244
|
-
visibility:
|
|
244
|
+
visibility: CommentVisibilityOptionType;
|
|
245
|
+
users?: any[];
|
|
245
246
|
}
|
|
246
247
|
export declare class InlineCommentSectionConfig {
|
|
247
248
|
id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AssignToType, CommentAccessMode, CommentEventTypes, CommentStatus } from "../../utils/enums";
|
|
1
|
+
import { AssignToType, CommentAccessMode, CommentEventTypes, CommentStatus, CommentVisibilityOptionType } 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";
|
|
@@ -188,6 +188,7 @@ export interface CommentSavedEvent {
|
|
|
188
188
|
}
|
|
189
189
|
export interface CommentSaveTriggeredEvent {
|
|
190
190
|
annotationId: string;
|
|
191
|
+
commentAnnotation: CommentAnnotation;
|
|
191
192
|
metadata: VeltEventMetadata;
|
|
192
193
|
}
|
|
193
194
|
export interface UpdateCommentEvent {
|
|
@@ -332,6 +333,7 @@ export interface AttachmentDownloadClickedEvent {
|
|
|
332
333
|
export interface VisibilityOptionClickedEvent {
|
|
333
334
|
annotationId: string;
|
|
334
335
|
commentAnnotation: CommentAnnotation;
|
|
335
|
-
visibility:
|
|
336
|
+
visibility: CommentVisibilityOptionType;
|
|
337
|
+
users?: any[];
|
|
336
338
|
metadata?: VeltEventMetadata;
|
|
337
339
|
}
|
|
@@ -291,14 +291,14 @@ export declare class CommentElement {
|
|
|
291
291
|
public disableStatus: () => any;
|
|
292
292
|
|
|
293
293
|
/**
|
|
294
|
-
* To enable visibility
|
|
294
|
+
* To enable visibility options on comments
|
|
295
295
|
*/
|
|
296
|
-
public
|
|
296
|
+
public enableVisibilityOptions: () => any;
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
|
-
* To disable visibility
|
|
299
|
+
* To disable visibility options on comments
|
|
300
300
|
*/
|
|
301
|
-
public
|
|
301
|
+
public disableVisibilityOptions: () => any;
|
|
302
302
|
|
|
303
303
|
/**
|
|
304
304
|
* To enable feature to show resolve button
|
|
@@ -1626,14 +1626,14 @@ export declare class CommentElement {
|
|
|
1626
1626
|
private _disableStatus;
|
|
1627
1627
|
|
|
1628
1628
|
/**
|
|
1629
|
-
* To enable visibility
|
|
1629
|
+
* To enable visibility options on comments
|
|
1630
1630
|
*/
|
|
1631
|
-
private
|
|
1631
|
+
private _enableVisibilityOptions;
|
|
1632
1632
|
|
|
1633
1633
|
/**
|
|
1634
|
-
* To disable visibility
|
|
1634
|
+
* To disable visibility options on comments
|
|
1635
1635
|
*/
|
|
1636
|
-
private
|
|
1636
|
+
private _disableVisibilityOptions;
|
|
1637
1637
|
|
|
1638
1638
|
/**
|
|
1639
1639
|
* To enable feature to show resolve button
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -313,3 +313,7 @@ export type NotificationSettingsItemType = 'ALL' | 'MINE' | 'NONE' | string;
|
|
|
313
313
|
* Type for notification settings layout
|
|
314
314
|
*/
|
|
315
315
|
export type NotificationSettingsLayout = 'accordion' | 'dropdown';
|
|
316
|
+
/**
|
|
317
|
+
* Type for comment visibility options in the visibility banner dropdown
|
|
318
|
+
*/
|
|
319
|
+
export type CommentVisibilityOptionType = 'personal' | 'selected-people' | 'org-users' | 'public';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "5.0.2-beta.
|
|
3
|
+
"version": "5.0.2-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": [
|