@veltdev/types-dev 4.4.1-beta.12 → 4.4.1-beta.3

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.
@@ -81,6 +81,4 @@ export declare class PresenceUser {
81
81
  isAnonymous?: boolean;
82
82
  pageInfo: PageInfo;
83
83
  initial?: string;
84
- isTabAway?: boolean;
85
- isUserIdle?: boolean;
86
84
  }
@@ -2,7 +2,6 @@
2
2
  import { SingleEditorConfig, UserEditorAccess, EditorAccessTimer, LiveStateDataConfig, SetLiveStateDataConfig } from '../data/live-state-data.data.model';
3
3
  import { User } from '../data/user.data.model';
4
4
  import { ServerConnectionState } from '../../utils/enums';
5
- import { LiveStateEventTypesMap } from '../data/live-state-events.data.model';
6
5
 
7
6
  /**
8
7
  * Represents the synchronization element for live state.
@@ -142,11 +141,6 @@ export declare class LiveStateSyncElement {
142
141
  */
143
142
  onServerConnectionStateChange: () => Observable<ServerConnectionState>;
144
143
 
145
- /**
146
- * Subscribe to live state events
147
- */
148
- on: <T extends keyof LiveStateEventTypesMap>(action: T) => Observable<LiveStateEventTypesMap[T]>;
149
-
150
144
  /**
151
145
  * Constructor for LiveStateSyncElement.
152
146
  */
@@ -284,9 +278,4 @@ export declare class LiveStateSyncElement {
284
278
  * To get server connection state
285
279
  */
286
280
  private _onServerConnectionStateChange;
287
-
288
- /**
289
- * Subscribe to live state events
290
- */
291
- private _on;
292
281
  }
@@ -1,7 +1,6 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
3
  import { PresenceUser } from "../data/presence-user.data.model";
4
- import { PresenceEventTypesMap } from "../data/presence-events.data.model";
5
4
  export declare class PresenceElement {
6
5
 
7
6
  /**
@@ -37,11 +36,6 @@ export declare class PresenceElement {
37
36
  * To disable adding self to the presence list
38
37
  */
39
38
  disableSelf: () => void;
40
-
41
- /**
42
- * Subscribe to presence events
43
- */
44
- on: <T extends keyof PresenceEventTypesMap>(action: T) => Observable<PresenceEventTypesMap[T]>;
45
39
  constructor();
46
40
  /**
47
41
  * Subscribe to a list of all online users who are either active or inactive on the current document.
@@ -76,9 +70,4 @@ export declare class PresenceElement {
76
70
  * To disable adding self to the presence list
77
71
  */
78
72
  private _disableSelf;
79
-
80
- /**
81
- * Subscribe to presence events
82
- */
83
- private _on;
84
73
  }
@@ -67,23 +67,9 @@ export declare const CoreEventTypes: {
67
67
  readonly DOCUMENT_INIT: "documentInit";
68
68
  readonly ERROR: "error";
69
69
  };
70
- export declare const LiveStateSyncEventTypes: {
71
- readonly ACCESS_REQUESTED: "accessRequested";
72
- readonly ACCESS_REQUEST_CANCELED: "accessRequestCanceled";
73
- readonly ACCESS_ACCEPTED: "accessAccepted";
74
- readonly ACCESS_REJECTED: "accessRejected";
75
- readonly EDITOR_ASSIGNED: "editorAssigned";
76
- readonly VIEWER_ASSIGNED: "viewerAssigned";
77
- readonly EDITOR_ON_DIFFERENT_TAB_DETECTED: "editorOnDifferentTabDetected";
78
- };
79
- export declare const PresenceEventTypes: {
80
- readonly MULTIPLE_USERS_ONLINE: "multipleUsersOnline";
81
- };
82
70
  export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
83
71
  export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
84
72
  export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
85
- export type LiveStateSyncEventType = typeof LiveStateSyncEventTypes[keyof typeof LiveStateSyncEventTypes];
86
- export type PresenceEventType = typeof PresenceEventTypes[keyof typeof PresenceEventTypes];
87
73
  export declare enum TagStatus {
88
74
  ADDED = "added",
89
75
  UPDATED = "updated",
package/models.d.ts CHANGED
@@ -28,7 +28,6 @@ export * from './app/models/data/document-user.data.model';
28
28
  export * from './app/models/data/huddle.model';
29
29
  export * from './app/models/data/live-state-data-map.data.model';
30
30
  export * from './app/models/data/live-state-data.data.model';
31
- export * from './app/models/data/live-state-events.data.model';
32
31
  export * from './app/models/data/localstorage.data.model';
33
32
  export * from './app/models/data/location-metadata.model';
34
33
  export * from './app/models/data/location.model';
@@ -38,7 +37,6 @@ export * from './app/models/data/notification.model';
38
37
  export * from './app/models/data/page-info.model';
39
38
  export * from './app/models/data/permission.data.model';
40
39
  export * from './app/models/data/presence-user.data.model';
41
- export * from './app/models/data/presence-events.data.model';
42
40
  export * from './app/models/data/recorder.model';
43
41
  export * from './app/models/data/recorder-annotation.data.model';
44
42
  export * from './app/models/data/recorder-events.data.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "4.4.1-beta.12",
3
+ "version": "4.4.1-beta.3",
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": [
@@ -1,23 +0,0 @@
1
- import { LiveStateSyncEventTypes } from "../../utils/enums";
2
- import { User } from "./user.data.model";
3
- export interface AccessRequestEvent {
4
- viewer?: User;
5
- editor?: User;
6
- timestamp?: number;
7
- status?: string;
8
- }
9
- export interface SEMEvent {
10
- viewer?: User;
11
- editor?: User;
12
- timestamp?: number;
13
- role?: string;
14
- }
15
- export type LiveStateEventTypesMap = {
16
- [LiveStateSyncEventTypes.ACCESS_REQUESTED]: AccessRequestEvent;
17
- [LiveStateSyncEventTypes.ACCESS_REQUEST_CANCELED]: AccessRequestEvent;
18
- [LiveStateSyncEventTypes.ACCESS_ACCEPTED]: AccessRequestEvent;
19
- [LiveStateSyncEventTypes.ACCESS_REJECTED]: AccessRequestEvent;
20
- [LiveStateSyncEventTypes.EDITOR_ASSIGNED]: SEMEvent;
21
- [LiveStateSyncEventTypes.VIEWER_ASSIGNED]: SEMEvent;
22
- [LiveStateSyncEventTypes.EDITOR_ON_DIFFERENT_TAB_DETECTED]: SEMEvent;
23
- };
@@ -1,6 +0,0 @@
1
- import { PresenceEventTypes } from "../../utils/enums";
2
- export interface PresenceMultipleUsersOnlineEvent {
3
- }
4
- export type PresenceEventTypesMap = {
5
- [PresenceEventTypes.MULTIPLE_USERS_ONLINE]: PresenceMultipleUsersOnlineEvent;
6
- };