@veltdev/sdk-staging 4.0.0-beta.101 → 4.0.0-beta.103

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.
@@ -38,7 +38,7 @@ export declare class Snippyly {
38
38
  * Tell us who the currently logged in user is.
39
39
  *
40
40
  * Call whenever the user is updated: signs in, signs out, signs up etc.
41
- * @deprecated This method is deprecated and will be removed in next release.
41
+ * @deprecated This method is deprecated.
42
42
  */
43
43
  updateUser: (user: User) => void;
44
44
  /**
@@ -50,7 +50,7 @@ export declare class Snippyly {
50
50
  /**
51
51
  * Tell us the unique ID of the current document/resource on which you want to enable collaboration.
52
52
  * @param id unique document ID
53
- * @deprecated This method is deprecated and will be removed in next release. Use `setDocuments` method instead.
53
+ * @deprecated This method is deprecated. Use `setDocuments` method instead.
54
54
  */
55
55
  setDocumentId: (id: string) => void;
56
56
  /**
@@ -59,7 +59,7 @@ export declare class Snippyly {
59
59
  setDocuments: (documents: Document[], options?: SetDocumentsRequestOptions) => void;
60
60
  /**
61
61
  * To unset the document id
62
- * @deprecated This method is deprecated and will be removed in next release. Use `unsetDocuments` method instead.
62
+ * @deprecated This method is deprecated. Use `unsetDocuments` method instead.
63
63
  */
64
64
  unsetDocumentId: () => void;
65
65
  /**
@@ -204,6 +204,11 @@ export declare class Snippyly {
204
204
  */
205
205
  isUserAllowed$: () => Observable<boolean>;
206
206
 
207
+ /**
208
+ * To get user.
209
+ */
210
+ getUser: () => Promise<User | null>;
211
+
207
212
  /**
208
213
  * To get user role in provided document.
209
214
  */
@@ -260,7 +265,7 @@ export declare class Snippyly {
260
265
 
261
266
  /**
262
267
  * To get document metadata.
263
- * @deprecated This method is deprecated and will be removed in next release.
268
+ * @deprecated This method is deprecated. Use `fetchDocuments` method instead.
264
269
  */
265
270
  getDocumentMetadata: () => Observable<DocumentMetadata | null>;
266
271
 
@@ -77,6 +77,7 @@ export type CommentEventTypesMap = {
77
77
  [CommentEventTypes.TOGGLE_REACTION]: ToggleReactionEvent;
78
78
  [CommentEventTypes.COMMENT_SIDEBAR_DATA_INIT]: CommentSidebarDataInitEvent;
79
79
  [CommentEventTypes.COMMENT_SIDEBAR_DATA_UPDATE]: CommentSidebarDataUpdateEvent;
80
+ [CommentEventTypes.AUTOCOMPLETE_SEARCH]: AutocompleteSearchEvent;
80
81
  };
81
82
  export interface AddAttachmentEvent {
82
83
  annotationId: string;
@@ -238,3 +239,9 @@ export interface CommentSidebarDataInitEvent extends VeltButtonClickEvent {
238
239
  }
239
240
  export interface CommentSidebarDataUpdateEvent extends VeltButtonClickEvent {
240
241
  }
242
+ export interface AutocompleteSearchEvent {
243
+ event: KeyboardEvent | InputEvent | Event;
244
+ searchText: string;
245
+ type?: 'contact' | 'custom' | 'group';
246
+ metadata?: VeltEventMetadata;
247
+ }
@@ -1073,6 +1073,16 @@ export declare class CommentElement {
1073
1073
  */
1074
1074
  public disableReadOnly: () => void;
1075
1075
 
1076
+ /**
1077
+ * To enable custom autocomplete search
1078
+ */
1079
+ public enableCustomAutocompleteSearch: () => void;
1080
+
1081
+ /**
1082
+ * To disable custom autocomplete search
1083
+ */
1084
+ public disableCustomAutocompleteSearch: () => void;
1085
+
1076
1086
  constructor();
1077
1087
  /**
1078
1088
  * Subscribe to comments on the current document.
@@ -2127,4 +2137,14 @@ export declare class CommentElement {
2127
2137
  * To disable read only
2128
2138
  */
2129
2139
  private _disableReadOnly;
2140
+
2141
+ /**
2142
+ * To enable custom autocomplete search
2143
+ */
2144
+ private _enableCustomAutocompleteSearch;
2145
+
2146
+ /**
2147
+ * To disable custom autocomplete search
2148
+ */
2149
+ private _disableCustomAutocompleteSearch;
2130
2150
  }
@@ -41,6 +41,7 @@ export declare const CommentEventTypes: {
41
41
  readonly TOGGLE_REACTION: "toggleReaction";
42
42
  readonly COMMENT_SIDEBAR_DATA_INIT: "commentSidebarDataInit";
43
43
  readonly COMMENT_SIDEBAR_DATA_UPDATE: "commentSidebarDataUpdate";
44
+ readonly AUTOCOMPLETE_SEARCH: "autocompleteSearch";
44
45
  };
45
46
  export declare const RecorderEventTypes: {
46
47
  readonly TRANSCRIPTION_DONE: "transcriptionDone";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk-staging",
3
- "version": "4.0.0-beta.101",
3
+ "version": "4.0.0-beta.103",
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": [