@veltdev/types-dev 6.0.0-beta.12 → 6.0.0-beta.14

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.
@@ -1,7 +1,7 @@
1
1
  import { ReactionMap } from "../data/reaction-annotation.data.model";
2
2
  import { RecordedData } from "../data/recorder.model";
3
3
  import { Observable } from "rxjs";
4
- import { AssignToType, CommentSidebarSystemFiltersOperator, SidebarButtonCountType } from "../../utils/enums";
4
+ import { AssignToType, CommentSidebarSystemFiltersOperator, DetectionStrategy, SidebarButtonCountType } from "../../utils/enums";
5
5
  import { UploadFileData, Attachment } from "../data/attachment.model";
6
6
  import { AutocompleteData } from "../data/autocomplete.data.model";
7
7
  import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, CommentRequestQuery, CommentVisibilityConfig, ClearComposerRequest, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, FetchCommentAnnotationsRequest, FormatConfig, GetAttachmentRequest, GetCommentRequest, GetComposerDataRequest, GetLinkRequest, GetRecordingRequest, PrivateModeConfig, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubmitCommentRequest, SubscribeCommentAnnotationRequest, ToggleReactionRequest, UnsubscribeCommentAnnotationRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
@@ -479,6 +479,11 @@ export declare class CommentElement {
479
479
  */
480
480
  public disableSidebarUrlNavigation: () => void;
481
481
 
482
+ /**
483
+ * To set the comment detection strategy.
484
+ */
485
+ public setDStrategy: (strategy: DetectionStrategy) => void;
486
+
482
487
  /**
483
488
  * To enable sidebar button on comment dialog.
484
489
  */
@@ -894,6 +899,16 @@ export declare class CommentElement {
894
899
  */
895
900
  public disableGroupMatchedComments: () => void;
896
901
 
902
+ /**
903
+ * To enable restricting text search to anchor.
904
+ */
905
+ public enableRestrictTextSearchToAnchor: () => void;
906
+
907
+ /**
908
+ * To disable restricting text search to anchor.
909
+ */
910
+ public disableRestrictTextSearchToAnchor: () => void;
911
+
897
912
  /**
898
913
  * To update context of comment annotation
899
914
  * @param annotationId Comment annotation id
@@ -950,6 +965,16 @@ export declare class CommentElement {
950
965
  */
951
966
  public disableCollapsedComments: () => void;
952
967
 
968
+ /**
969
+ * To enable collapsed replies preview.
970
+ */
971
+ public enableCollapsedRepliesPreview: () => void;
972
+
973
+ /**
974
+ * To disable collapsed replies preview.
975
+ */
976
+ public disableCollapsedRepliesPreview: () => void;
977
+
953
978
  /**
954
979
  * To enable query params comments
955
980
  */
@@ -1,6 +1,7 @@
1
1
  import { Observable } from "rxjs";
2
2
 
3
- import { GetNotificationsDataQuery, Notification, NotificationInitialSettingsConfig, NotificationSettingsConfig, NotificationTabConfig } from "../data/notification.model";
3
+ import { CrossOrganizationConfig, GetNotificationsDataQuery, Notification, NotificationInitialSettingsConfig, NotificationSettingsConfig, NotificationTabConfig } from "../data/notification.model";
4
+ import { NotificationEventTypesMap } from "../data/notifications-events.data.model";
4
5
 
5
6
  export declare class NotificationElement {
6
7
  /**
@@ -128,6 +129,21 @@ export declare class NotificationElement {
128
129
  */
129
130
  disableCurrentDocumentOnly: () => void;
130
131
 
132
+ /**
133
+ * To enable cross organization notifications
134
+ */
135
+ enableCrossOrganization: (config?: CrossOrganizationConfig | null) => void;
136
+
137
+ /**
138
+ * To disable cross organization notifications
139
+ */
140
+ disableCrossOrganization: () => void;
141
+
142
+ /**
143
+ * Subscribe to notification events
144
+ */
145
+ on: <T extends keyof NotificationEventTypesMap>(action: T) => Observable<NotificationEventTypesMap[T]>;
146
+
131
147
  constructor();
132
148
 
133
149
  /**
@@ -254,4 +270,19 @@ export declare class NotificationElement {
254
270
  * To disable current document only
255
271
  */
256
272
  private _disableCurrentDocumentOnly;
273
+
274
+ /**
275
+ * To enable cross organization notifications
276
+ */
277
+ private _enableCrossOrganization;
278
+
279
+ /**
280
+ * To disable cross organization notifications
281
+ */
282
+ private _disableCrossOrganization;
283
+
284
+ /**
285
+ * Subscribe to notification events
286
+ */
287
+ private _on;
257
288
  }
@@ -2,6 +2,7 @@ import { Observable } from "rxjs";
2
2
  import { PresenceUser } from "../data/presence-user.data.model";
3
3
  import { GetPresenceDataResponse, PresenceEventTypesMap } from "../data/presence-events.data.model";
4
4
  import { PresenceRequestQuery } from "../data/presence-actions.data.model";
5
+ import { FlockOptions } from "../data/flock-options.model";
5
6
 
6
7
  export declare class PresenceElement {
7
8
 
@@ -20,15 +21,27 @@ export declare class PresenceElement {
20
21
  setInactivityTime: (time: number) => void;
21
22
 
22
23
  /**
23
- * Enables follow along mode globally
24
- * @param options {FollowOptions: {useHistoryAPI: boolean, onNavigate: (url: PageInfo) => void}}}
24
+ * Enable flock mode globally
25
+ * @param options FlockOptions
25
26
  */
26
- enableFollowAlongMode: (useHistoryAPI: boolean) => void;
27
+ enableFlockMode: (options?: FlockOptions) => void;
27
28
 
28
29
  /**
29
- * To disable follow along mode
30
+ * Disable flock mode globally
30
31
  */
31
- disableFollowAlongMode: () => void;
32
+ disableFlockMode: () => void;
33
+
34
+ /**
35
+ * Start/join a flock session by following the given user
36
+ * @param userId The leader user ID
37
+ * @param name The leader user name
38
+ */
39
+ startFollowingUser: (userId: string, name: string) => void;
40
+
41
+ /**
42
+ * Exit the flock session / stop following
43
+ */
44
+ stopFollowingUser: () => void;
32
45
 
33
46
  /**
34
47
  * To enable adding self to the presence list
@@ -80,15 +93,24 @@ export declare class PresenceElement {
80
93
  private _setInactivityTime;
81
94
 
82
95
  /**
83
- * Enables follow along mode globally
84
- * @param options {FollowOptions: {useHistoryAPI: boolean, onNavigate: (url: PageInfo) => void}}}
96
+ * Enable flock mode globally
97
+ */
98
+ private _enableFlockMode;
99
+
100
+ /**
101
+ * Disable flock mode globally
102
+ */
103
+ private _disableFlockMode;
104
+
105
+ /**
106
+ * Start/join a flock session by following the given user
85
107
  */
86
- private _enableFollowAlongMode;
108
+ private _startFollowingUser;
87
109
 
88
110
  /**
89
- * To disable follow along mode
111
+ * Exit the flock session / stop following
90
112
  */
91
- private _disableFollowAlongMode;
113
+ private _stopFollowingUser;
92
114
 
93
115
  /**
94
116
  * To enable adding self to the presence list
@@ -12,6 +12,16 @@ export declare class RecorderElement {
12
12
  */
13
13
  onRecordedData: () => Observable<RecordedData | null>;
14
14
 
15
+ /**
16
+ * To enable dark mode in recording
17
+ */
18
+ enableDarkMode: () => void;
19
+
20
+ /**
21
+ * To disable dark mode in recording
22
+ */
23
+ disableDarkMode: () => void;
24
+
15
25
  /**
16
26
  * To enable recording countdown
17
27
  */
@@ -172,6 +182,16 @@ export declare class RecorderElement {
172
182
  */
173
183
  private _onRecordedData;
174
184
 
185
+ /**
186
+ * To enable dark mode in recording
187
+ */
188
+ private _enableDarkMode;
189
+
190
+ /**
191
+ * To disable dark mode in recording
192
+ */
193
+ private _disableDarkMode;
194
+
175
195
  /**
176
196
  * To enable dark mode in comments
177
197
  */
@@ -1,3 +1,6 @@
1
+ import { Observable } from "rxjs";
2
+ import { RewriterAskAiRequest, RewriterAskAiResponse, RewriterReplaceTextRequest, RewriterReplaceTextResponse, RewriterAddCommentRequest, RewriterAddCommentResponse, RewriterEventTypesMap } from "../data/rewriter-events.data.model";
3
+
1
4
  export declare class RewriterElement {
2
5
  /**
3
6
  * To enable rewriter feature
@@ -18,6 +21,26 @@ export declare class RewriterElement {
18
21
  * To disable the default rewriter UI on text selection
19
22
  */
20
23
  disableDefaultUI: () => void;
24
+
25
+ /**
26
+ * Subscribe to rewriter events
27
+ */
28
+ on: <T extends keyof RewriterEventTypesMap>(action: T) => Observable<RewriterEventTypesMap[T]>;
29
+
30
+ /**
31
+ * Call AI with the currently selected text
32
+ */
33
+ askAi: (request: RewriterAskAiRequest) => Promise<RewriterAskAiResponse>;
34
+
35
+ /**
36
+ * Replace the selected text in the DOM with the given text
37
+ */
38
+ replaceText: (request: RewriterReplaceTextRequest) => Promise<RewriterReplaceTextResponse>;
39
+
40
+ /**
41
+ * Add a comment annotation on the selected text with the given text as comment body
42
+ */
43
+ addComment: (request: RewriterAddCommentRequest) => Promise<RewriterAddCommentResponse>;
21
44
  constructor();
22
45
 
23
46
  /**
@@ -39,4 +62,24 @@ export declare class RewriterElement {
39
62
  * To disable the default rewriter UI on text selection
40
63
  */
41
64
  private _disableDefaultUI;
65
+
66
+ /**
67
+ * Subscribe to rewriter events
68
+ */
69
+ private _on;
70
+
71
+ /**
72
+ * Call AI with the currently selected text
73
+ */
74
+ private _askAi;
75
+
76
+ /**
77
+ * Replace the selected text in the DOM with the given text
78
+ */
79
+ private _replaceText;
80
+
81
+ /**
82
+ * Add a comment annotation on the selected text with the given text as comment body
83
+ */
84
+ private _addComment;
42
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "6.0.0-beta.12",
3
+ "version": "6.0.0-beta.14",
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": [