@veltdev/sdk 4.7.7 → 4.7.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.
@@ -184,6 +184,7 @@ export declare class CommentAnnotation {
184
184
  unsubscribedUsers?: CommentAnnotationUnsubscribedUsers;
185
185
  subscribedGroups?: CommentAnnotationSubscribedGroups;
186
186
  resolvedByUserId?: string | null;
187
+ resolvedByUser?: User | null;
187
188
  multiThreadAnnotationId?: string;
188
189
  isDraft?: boolean;
189
190
  sourceId?: string;
@@ -1,4 +1,4 @@
1
- import { CommentAccessMode, CommentEventTypes, CommentStatus } from "../../utils/enums";
1
+ import { AssignToType, CommentAccessMode, CommentEventTypes, CommentStatus } 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";
@@ -283,8 +283,18 @@ export interface CommentToolClickEvent {
283
283
  context: {
284
284
  [key: string]: any;
285
285
  } | null;
286
+ targetElementId?: string | null;
286
287
  metadata?: VeltEventMetadata;
287
288
  }
288
289
  export interface SidebarButtonClickEvent {
289
290
  metadata?: VeltEventMetadata;
290
291
  }
292
+ export interface PageModeComposerConfig {
293
+ context?: {
294
+ [key: string]: any;
295
+ } | null;
296
+ targetElementId?: string | null;
297
+ }
298
+ export interface AssignToConfig {
299
+ type: AssignToType;
300
+ }
@@ -1,7 +1,7 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
3
  import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig, UpdateContextConfig } from "../data/comment-annotation.data.model";
4
- import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, ComposerTextChangeEvent, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, FetchCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetLinkEvent, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent } from "../data/comment-events.data.model";
4
+ import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, AssignToConfig, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, ComposerTextChangeEvent, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, FetchCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetLinkEvent, PageModeComposerConfig, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent } from "../data/comment-events.data.model";
5
5
  import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
6
6
  import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
7
7
  import { AutocompleteData } from "../data/autocomplete.data.model";
@@ -103,9 +103,9 @@ export declare class CommentElement {
103
103
 
104
104
  /**
105
105
  * To set context in page mode composer
106
- * @param context The context to set
106
+ * @param config The page mode composer config containing context and targetElementId
107
107
  */
108
- setContextInPageModeComposer: (context: { [key: string]: any } | null) => void;
108
+ setContextInPageModeComposer: (config: PageModeComposerConfig | null) => void;
109
109
 
110
110
  /**
111
111
  * To focus the page mode composer input
@@ -114,9 +114,9 @@ export declare class CommentElement {
114
114
 
115
115
  /**
116
116
  * To set assign to type for comment dialog
117
- * @param type 'dropdown' | 'checkbox'
117
+ * @param config The assign to config containing type
118
118
  */
119
- setAssignToType: (type: AssignToType) => void;
119
+ setAssignToType: (config: AssignToConfig) => void;
120
120
 
121
121
  /**
122
122
  * To enable moderator mode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.7.7",
3
+ "version": "4.7.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": [
@@ -36,7 +36,7 @@
36
36
  "scripts": {
37
37
  "test": "echo \"Error: no test specified\" && exit 1",
38
38
  "version:update": "node ../update-npm-package.mjs",
39
- "publish:sdk": "npm publish --access public --tag v4-7-7"
39
+ "publish:sdk": "npm publish --access public --tag v4-7-9"
40
40
  },
41
41
  "author": "",
42
42
  "license": "ISC",