@veltdev/sdk 4.4.0-beta.8 → 4.4.0-patch.1

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.
@@ -86,6 +86,7 @@ export interface AddCommentRequest {
86
86
  annotationId: string;
87
87
  comment: Comment;
88
88
  assignedTo?: User;
89
+ assigned?: boolean;
89
90
  options?: RequestOptions;
90
91
  }
91
92
  export interface UpdateCommentRequest {
@@ -30,6 +30,16 @@ export declare class CommentSidebarFilters {
30
30
  email?: string;
31
31
  name?: string;
32
32
  }[];
33
+ assigned?: {
34
+ userId?: string;
35
+ email?: string;
36
+ name?: string;
37
+ }[];
38
+ tagged?: {
39
+ userId?: string;
40
+ email?: string;
41
+ name?: string;
42
+ }[];
33
43
  priority?: string[];
34
44
  status?: string[];
35
45
  category?: string[];
@@ -9,6 +9,8 @@ import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebar
9
9
  export { ReactionMap } from '../data/reaction-annotation.data.model';
10
10
  import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, CommentRequestQuery, CommentRequestQuery, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest, FetchCommentAnnotationsRequest } from "../data/comment-actions.data.model";
11
11
  import { UnreadCommentsCount, TransformContext } from "../data/comment-utils.data.model";
12
+ import { CommentSidebarSystemFiltersOperator } from "../../utils/enums";
13
+
12
14
  export declare class CommentElement {
13
15
  /**
14
16
  * Subscribe to comments on the current document.
@@ -496,6 +498,12 @@ export declare class CommentElement {
496
498
  */
497
499
  public setCommentSidebarFilters: (filters: any) => void;
498
500
 
501
+ /**
502
+ * To set system filters operator on comment sidebar.
503
+ * @param operator System filters operator
504
+ */
505
+ public setSystemFiltersOperator: (operator: CommentSidebarSystemFiltersOperator) => void;
506
+
499
507
  /**
500
508
  * To enable comment pin highlighter.
501
509
  */
@@ -1112,6 +1120,26 @@ export declare class CommentElement {
1112
1120
  * To disable full expanded
1113
1121
  */
1114
1122
  public disableFullExpanded: () => void;
1123
+
1124
+ /**
1125
+ * To enable comment to nearest allowed element
1126
+ */
1127
+ public enableCommentToNearestAllowedElement: () => void;
1128
+
1129
+ /**
1130
+ * To disable comment to nearest allowed element
1131
+ */
1132
+ public disableCommentToNearestAllowedElement: () => void;
1133
+
1134
+ /**
1135
+ * To enable draft mode
1136
+ */
1137
+ public enableDraftMode: () => void;
1138
+
1139
+ /**
1140
+ * To disable draft mode
1141
+ */
1142
+ public disableDraftMode: () => void;
1115
1143
  constructor();
1116
1144
  /**
1117
1145
  * Subscribe to comments on the current document.
@@ -1590,6 +1618,12 @@ export declare class CommentElement {
1590
1618
  */
1591
1619
  private _setCommentSidebarFilters;
1592
1620
 
1621
+ /**
1622
+ * To set system filters operator on comment sidebar.
1623
+ * @param operator System filters operator
1624
+ */
1625
+ private _setSystemFiltersOperator;
1626
+
1593
1627
  /**
1594
1628
  * To enable comment pin highlighter.
1595
1629
  */
@@ -2206,4 +2240,24 @@ export declare class CommentElement {
2206
2240
  * To disable full expanded
2207
2241
  */
2208
2242
  private _disableFullExpanded;
2243
+
2244
+ /**
2245
+ * To enable comment to nearest allowed element
2246
+ */
2247
+ private _enableCommentToNearestAllowedElement;
2248
+
2249
+ /**
2250
+ * To disable comment to nearest allowed element
2251
+ */
2252
+ private _disableCommentToNearestAllowedElement;
2253
+
2254
+ /**
2255
+ * To enable draft mode
2256
+ */
2257
+ private _enableDraftMode;
2258
+
2259
+ /**
2260
+ * To disable draft mode
2261
+ */
2262
+ private _disableDraftMode;
2209
2263
  }
@@ -11,18 +11,18 @@ export declare class LiveStateSyncElement {
11
11
  /**
12
12
  * Gets live state data based on the provided ID.
13
13
  */
14
- getLiveStateData: (liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<any>;
14
+ getLiveStateData: <T = unknown>(liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<T>;
15
15
 
16
16
  /**
17
17
  * Gets live state data as an observable based on the provided ID.
18
18
  * @deprecated Use `getLiveStateData` instead
19
19
  */
20
- getLiveStateData$: (liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<any>;
20
+ getLiveStateData$: <T = unknown>(liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<T>;
21
21
 
22
22
  /**
23
23
  * Sets live state data for the provided ID and data.
24
24
  */
25
- setLiveStateData: (liveStateDataId: string, liveStateData: any, config?: SetLiveStateDataConfig) => any;
25
+ setLiveStateData: <T = unknown>(liveStateDataId: string, liveStateData: T, config?: SetLiveStateDataConfig) => Promise<void>;
26
26
 
27
27
  /**
28
28
  * Enables the single editor mode.
@@ -242,3 +242,7 @@ export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages'
242
242
  export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
243
243
  export type NotificationPanelMode = 'popover' | 'sidebar';
244
244
  export type SidebarActionButtonType = 'default' | 'toggle';
245
+ export declare enum CommentSidebarSystemFiltersOperator {
246
+ AND = "and",
247
+ OR = "or"
248
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.4.0-beta.8",
3
+ "version": "4.4.0-patch.1",
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"
39
+ "publish:sdk": "npm publish --access public --tag v4-4-0-patch-1"
40
40
  },
41
41
  "author": "",
42
42
  "license": "ISC",