@veltdev/sdk 1.0.88 → 1.0.90

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.
@@ -5,6 +5,7 @@ import { DocumentUser } from "../models/data/document-user.data.model";
5
5
  import { Location } from "../models/data/location.model";
6
6
  import { User, UserOptions } from "../models/data/user.data.model";
7
7
  import { CustomCss } from "../models/data/custom-css.data.model";
8
+ import { ArrowElement } from "../models/element/arrow-element.model";
8
9
  import { CommentElement } from "../models/element/comment-element.model";
9
10
  import { ContactElement } from "../models/element/contact-element.model";
10
11
  import { CursorElement } from "../models/element/cursor-element.model";
@@ -105,6 +106,10 @@ export declare class Snippyly {
105
106
  * Get the LiveStateSync Object.
106
107
  */
107
108
  getLiveStateSyncElement: () => LiveStateSyncElement;
109
+ /**
110
+ * Get the Arrow Object.
111
+ */
112
+ getArrowElement: () => ArrowElement;
108
113
  /**
109
114
  * To signout a user
110
115
  */
@@ -0,0 +1,16 @@
1
+ // @ts-nocheck
2
+ export declare class ArrowElement {
3
+ /**
4
+ * To allow arrow in specific elements only
5
+ * @param elementIds Element ids to be allowed for arrow
6
+ */
7
+ public allowedElementIds: (elementIds: string[]) => any;
8
+
9
+ constructor();
10
+
11
+ /**
12
+ * To allow arrow in specific elements only
13
+ * @param elementIds Element ids to be allowed for arrow
14
+ */
15
+ private _allowedElementIds;
16
+ }
@@ -448,14 +448,14 @@ export declare class CommentElement {
448
448
  public disablePrivateCommentMode: () => void;
449
449
 
450
450
  /**
451
- * To enable scroll to comment component.
451
+ * To enable scroll to comment.
452
452
  */
453
- public enableScrollToComponent: () => void;
453
+ public enableScrollToComment: () => void;
454
454
 
455
455
  /**
456
- * To disable scroll to comment component.
456
+ * To disable scroll to comment.
457
457
  */
458
- public disableScrollToComponent: () => void;
458
+ public disableScrollToComment: () => void;
459
459
 
460
460
  /**
461
461
  * To enable user mentions in comments
@@ -492,6 +492,16 @@ export declare class CommentElement {
492
492
  * To disable deleting comment on backspace.
493
493
  */
494
494
  public disableDeleteOnBackspace: () => void;
495
+
496
+ /**
497
+ * To enable hotkey.
498
+ */
499
+ public enableHotkey: () => void;
500
+
501
+ /**
502
+ * To disable hotkey.
503
+ */
504
+ public disableHotkey: () => void;
495
505
  constructor();
496
506
  /**
497
507
  * Subscribe to comments on the current document.
@@ -933,14 +943,14 @@ export declare class CommentElement {
933
943
  private _disablePrivateCommentMode;
934
944
 
935
945
  /**
936
- * To enable scroll to comment component.
946
+ * To enable scroll to comment.
937
947
  */
938
- private _enableScrollToComponent;
948
+ private _enableScrollToComment;
939
949
 
940
950
  /**
941
- * To disable scroll to comment component.
951
+ * To disable scroll to comment.
942
952
  */
943
- private _disableScrollToComponent;
953
+ private _disableScrollToComment;
944
954
 
945
955
  /**
946
956
  * To enable user mentions in comments
@@ -977,4 +987,14 @@ export declare class CommentElement {
977
987
  * To disable deleting comment on backspace.
978
988
  */
979
989
  private _disableDeleteOnBackspace;
990
+
991
+ /**
992
+ * To enable hotkey.
993
+ */
994
+ private _enableHotkey;
995
+
996
+ /**
997
+ * To disable hotkey.
998
+ */
999
+ private _disableHotkey;
980
1000
  }
@@ -14,6 +14,7 @@ export declare enum CommentStatus {
14
14
  REJECTED = "rejected"
15
15
  }
16
16
  export declare enum CommentAction {
17
+ NEW = "new",
17
18
  ADD = "add",
18
19
  UPDATE = "update",
19
20
  DELETE = "delete",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "1.0.88",
3
+ "version": "1.0.90",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {
package/types.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './app/client/snippyly.model';
2
2
  export * from './app/client/velt.model';
3
3
  export * from './app/models/element/area-element.model';
4
+ export * from './app/models/element/arrow-element.model';
4
5
  export * from './app/models/element/comment-element.model';
5
6
  export * from './app/models/element/contact-element.model';
6
7
  export * from './app/models/element/cursor-element.model';