@veltdev/sdk 1.0.20 → 1.0.22

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,10 +1,20 @@
1
1
  import { DocumentAccessType } from "../../utils/enums";
2
2
  import { UserIAM } from "./user-iam.data.model";
3
+ export declare type DocumentIAMFeatures = {
4
+ all?: {
5
+ disabled?: boolean;
6
+ restricted?: boolean;
7
+ };
8
+ };
3
9
  export declare class DocumentIAM {
4
10
  /**
5
11
  * The document access type
6
12
  */
7
13
  documentAccessType: DocumentAccessType;
14
+ /**
15
+ * Features
16
+ */
17
+ features: DocumentIAMFeatures | undefined;
8
18
  /**
9
19
  * Users with access to the document
10
20
  */
@@ -91,4 +91,5 @@ export declare class DocumentPaths {
91
91
  * User follow along path.
92
92
  */
93
93
  flock?: string;
94
+ syncVideoPlayer?: string;
94
95
  }
@@ -0,0 +1,47 @@
1
+ import { User } from "./user.data.model";
2
+ export declare class SyncVideoPlayer {
3
+ /**
4
+ * The id of the player
5
+ */
6
+ playerId?: string;
7
+ src?: string;
8
+ sources?: string[];
9
+ /**
10
+ * Last updated timestamp
11
+ */
12
+ lastUpdated?: number;
13
+ /**
14
+ * Last updated by user
15
+ */
16
+ lastUpdatedBy?: User;
17
+ /**
18
+ * Last updated event
19
+ */
20
+ lastUpdatedEvent?: string;
21
+ /**
22
+ * The state of the player
23
+ */
24
+ playerState: SyncVideoPlayerState;
25
+ }
26
+ export declare class SyncVideoPlayerState {
27
+ /**
28
+ * True if the video is playing
29
+ */
30
+ playing?: boolean;
31
+ /**
32
+ * Current time of the video
33
+ */
34
+ currentTime?: number;
35
+ /**
36
+ * True if the video is muted
37
+ */
38
+ muted?: boolean;
39
+ /**
40
+ * Volume of the video
41
+ */
42
+ volume?: number;
43
+ /**
44
+ * Playback rate of the video
45
+ */
46
+ speed?: number;
47
+ }
@@ -446,6 +446,16 @@ export declare class CommentElement {
446
446
  * To disable mobile mode
447
447
  */
448
448
  public disableMobileMode: () => any;
449
+
450
+ /**
451
+ * To enable inline comment mode
452
+ */
453
+ public enableInlineCommentMode: () => any;
454
+
455
+ /**
456
+ * To disable inline comment mode
457
+ */
458
+ public disableInlineCommentMode: () => any;
449
459
  constructor();
450
460
  /**
451
461
  * Subscribe to comments on the current document.
@@ -885,4 +895,14 @@ export declare class CommentElement {
885
895
  * To disable mobile mode
886
896
  */
887
897
  private _disableMobileMode;
898
+
899
+ /**
900
+ * To enable inline comment mode
901
+ */
902
+ private _enableInlineCommentMode;
903
+
904
+ /**
905
+ * To disable inline comment mode
906
+ */
907
+ private _disableInlineCommentMode;
888
908
  }
@@ -24,6 +24,7 @@ export declare class Constants {
24
24
  static FIREBASE_PARTIAL_PATH_LOCATIONS: string;
25
25
  static FIREBASE_PARTIAL_PATH_RECORDER: string;
26
26
  static FIREBASE_PARTIAL_PATH_FOLLOW_ALONG: string;
27
+ static FIREBASE_PARTIAL_PATH_SYNC_VIDEO_PLAYER: string;
27
28
  static FIREBASE_PARTIAL_PATH_IAM: string;
28
29
  static FIREBASE_PARTIAL_PATH_USERS: string;
29
30
  static FIREBASE_PARTIAL_PATH_USER_REQUESTS: string;
@@ -102,6 +103,7 @@ export declare class Constants {
102
103
  SNIPPYLY_RECORDER_PLAYER: string;
103
104
  SNIPPYLY_TEXT_HIGHLIGHT: string;
104
105
  SNIPPYLY_COMMENT_TEXT_PORTAL: string;
106
+ SNIPPYLY_COMMENT_TEXT: string;
105
107
  /**
106
108
  * @deprecated Use VELT_COMMENTS_SIDEBAR instead
107
109
  */
@@ -193,6 +195,7 @@ export declare class Constants {
193
195
  VELT_ARROWS: string;
194
196
  VELT_AREA_TOOL: string;
195
197
  VELT_AREAS: string;
198
+ VELT_INLINE_COMMENT: string;
196
199
  };
197
200
  static ATTRIBUTES: {
198
201
  VELT_ID: string;
@@ -226,6 +229,10 @@ export declare class Constants {
226
229
  VELT_AREA_DISABLED: string;
227
230
  VELT_ONGOING_RECORDING: string;
228
231
  VELT_COMMENT_RECORDING: string;
232
+ SYNC_VIDEO_PLAYER_ID: string;
233
+ SYNC_VIDEO_PLAYER: string;
234
+ VELT_INLINE_COMMENT_ID: string;
235
+ VELT_PDF_VIEWER: string;
229
236
  };
230
237
  static INJECTION_STYLE_PROPS: {
231
238
  /**
package/models.d.ts CHANGED
@@ -28,6 +28,7 @@ export * from './app/models/data/recorder-annotation.data.model';
28
28
  export * from './app/models/data/rewriter-annotation.data.model';
29
29
  export * from './app/models/data/screen-size.data.model';
30
30
  export * from './app/models/data/selection.model';
31
+ export * from './app/models/data/sync-video-player.data.model';
31
32
  export * from './app/models/data/tag-annotation.data.model';
32
33
  export * from './app/models/data/target-element.data.model';
33
34
  export * from './app/models/data/target-text-range.data.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {