@veltdev/types-dev 2.0.98 → 2.0.100

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.
@@ -22,6 +22,7 @@ import { AutocompleteElement } from "../models/element/autocomplete-element.mode
22
22
  import { TagElement } from "../models/element/tag-element.model";
23
23
  import { FeatureType } from "../utils/enums";
24
24
  import { UserContact } from "../models/data/user-contact.data.model";
25
+ import { DocumentMetadata } from "../models/data/document-metadata.model";
25
26
 
26
27
  export declare class Snippyly {
27
28
  constructor();
@@ -34,6 +35,12 @@ export declare class Snippyly {
34
35
  * @deprecated This method is deprecated and will be removed in next release.
35
36
  */
36
37
  updateUser: (user: User) => void;
38
+ /**
39
+ * Tell us the unique ID of the current document/resource on which you want to enable collaboration.
40
+ * @param id unique document ID
41
+ * @param documentMetadata Document Metadata
42
+ */
43
+ setDocument: (id: string, documentMetadata?: DocumentMetadata) => void;
37
44
  /**
38
45
  * Tell us the unique ID of the current document/resource on which you want to enable collaboration.
39
46
  * @param id unique document ID
@@ -10,6 +10,10 @@ export declare class DocumentMetadata {
10
10
  * Document id provided by client
11
11
  */
12
12
  clientDocumentId?: string | number;
13
+ /**
14
+ * Document name
15
+ */
16
+ documentName?: string;
13
17
  /**
14
18
  * Page metadata
15
19
  */
@@ -24,4 +28,5 @@ export declare class DocumentMetadata {
24
28
  * Document creator
25
29
  */
26
30
  creator?: User;
31
+ [key: string]: any;
27
32
  }
@@ -715,6 +715,16 @@ export declare class CommentElement {
715
715
  * @param data custom list data
716
716
  */
717
717
  public createCustomListDataOnComment: (data: AutocompleteData) => void;
718
+
719
+ /**
720
+ * To enable showing bubble on hover
721
+ */
722
+ public showBubbleOnHover: () => void;
723
+
724
+ /**
725
+ * To disable showing bubble on hover
726
+ */
727
+ public hideBubbleOnHover: () => void;
718
728
  constructor();
719
729
  /**
720
730
  * Subscribe to comments on the current document.
@@ -1418,4 +1428,14 @@ export declare class CommentElement {
1418
1428
  * @param data custom list data
1419
1429
  */
1420
1430
  private _createCustomListDataOnComment;
1431
+
1432
+ /**
1433
+ * To enable showing bubble on hover
1434
+ */
1435
+ private _showBubbleOnHover;
1436
+
1437
+ /**
1438
+ * To disable showing bubble on hover
1439
+ */
1440
+ private _hideBubbleOnHover;
1421
1441
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "2.0.98",
3
+ "version": "2.0.100",
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": [