@veltdev/types 6.0.0-beta.1 → 6.0.0-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.
Files changed (29) hide show
  1. package/app/client/snippyly.model.d.ts +2 -3
  2. package/app/models/data/comment-events.data.model.d.ts +29 -0
  3. package/app/models/data/reaction-resolver.data.model.d.ts +1 -0
  4. package/app/models/data/selection.model.d.ts +10 -8
  5. package/app/models/data/user-resolver.data.model.d.ts +11 -9
  6. package/app/models/data/user.data.model.d.ts +21 -18
  7. package/app/models/element/activity-element.model.d.ts +0 -1
  8. package/app/models/element/area-element.model.d.ts +0 -1
  9. package/app/models/element/arrow-element.model.d.ts +1 -2
  10. package/app/models/element/autocomplete-element.model.d.ts +0 -1
  11. package/app/models/element/comment-element.model.d.ts +103 -77
  12. package/app/models/element/contact-element.model.d.ts +1 -2
  13. package/app/models/element/crdt-element.model.d.ts +1 -1
  14. package/app/models/element/cursor-element.model.d.ts +1 -2
  15. package/app/models/element/huddle-element.model.d.ts +1 -2
  16. package/app/models/element/live-state-sync-element.model.d.ts +1 -1
  17. package/app/models/element/notification-element.model.d.ts +33 -2
  18. package/app/models/element/presence-element.model.d.ts +32 -11
  19. package/app/models/element/reaction-element.model.d.ts +1 -1
  20. package/app/models/element/recorder-element.model.d.ts +21 -2
  21. package/app/models/element/rewriter-element.model.d.ts +43 -1
  22. package/app/models/element/selection-element.model.d.ts +1 -1
  23. package/app/models/element/suggestion-element.model.d.ts +0 -1
  24. package/app/models/element/tag-element.model.d.ts +7 -8
  25. package/app/models/element/views-element.model.d.ts +1 -1
  26. package/app/utils/enums.d.ts +95 -82
  27. package/package.json +8 -2
  28. package/types.d.ts +22 -22
  29. package/velt.d.ts +1 -2
@@ -1,8 +1,8 @@
1
- // @ts-nocheck
2
1
  import { Observable } from "rxjs";
3
2
  import { PresenceUser } from "../data/presence-user.data.model";
4
3
  import { GetPresenceDataResponse, PresenceEventTypesMap } from "../data/presence-events.data.model";
5
4
  import { PresenceRequestQuery } from "../data/presence-actions.data.model";
5
+ import { FlockOptions } from "../data/flock-options.model";
6
6
 
7
7
  export declare class PresenceElement {
8
8
 
@@ -21,15 +21,27 @@ export declare class PresenceElement {
21
21
  setInactivityTime: (time: number) => void;
22
22
 
23
23
  /**
24
- * Enables follow along mode globally
25
- * @param options {FollowOptions: {useHistoryAPI: boolean, onNavigate: (url: PageInfo) => void}}}
24
+ * Enable flock mode globally
25
+ * @param options FlockOptions
26
26
  */
27
- enableFollowAlongMode: (useHistoryAPI: boolean) => any;
27
+ enableFlockMode: (options?: FlockOptions) => void;
28
28
 
29
29
  /**
30
- * To disable follow along mode
30
+ * Disable flock mode globally
31
31
  */
32
- disableFollowAlongMode: () => any;
32
+ disableFlockMode: () => void;
33
+
34
+ /**
35
+ * Start/join a flock session by following the given user
36
+ * @param userId The leader user ID
37
+ * @param name The leader user name
38
+ */
39
+ startFollowingUser: (userId: string, name: string) => void;
40
+
41
+ /**
42
+ * Exit the flock session / stop following
43
+ */
44
+ stopFollowingUser: () => void;
33
45
 
34
46
  /**
35
47
  * To enable adding self to the presence list
@@ -81,15 +93,24 @@ export declare class PresenceElement {
81
93
  private _setInactivityTime;
82
94
 
83
95
  /**
84
- * Enables follow along mode globally
85
- * @param options {FollowOptions: {useHistoryAPI: boolean, onNavigate: (url: PageInfo) => void}}}
96
+ * Enable flock mode globally
97
+ */
98
+ private _enableFlockMode;
99
+
100
+ /**
101
+ * Disable flock mode globally
102
+ */
103
+ private _disableFlockMode;
104
+
105
+ /**
106
+ * Start/join a flock session by following the given user
86
107
  */
87
- private _enableFollowAlongMode;
108
+ private _startFollowingUser;
88
109
 
89
110
  /**
90
- * To disable follow along mode
111
+ * Exit the flock session / stop following
91
112
  */
92
- private _disableFollowAlongMode;
113
+ private _stopFollowingUser;
93
114
 
94
115
  /**
95
116
  * To enable adding self to the presence list
@@ -1,4 +1,4 @@
1
- // @ts-nocheck
1
+ import { ReactionMap } from '../data/reaction-annotation.data.model';
2
2
  export { ReactionMap } from '../data/reaction-annotation.data.model';
3
3
 
4
4
  export declare class ReactionElement {
@@ -1,4 +1,3 @@
1
- // @ts-nocheck
2
1
  import { Observable } from "rxjs";
3
2
  import { RecorderData, RecorderRequestQuery, GetRecordingDataResponse, GetRecordingsResponse, DeleteRecordingsResponse } from "../data/recorder-annotation.data.model";
4
3
  import { RecorderEventTypesMap } from "../data/recorder-events.data.model";
@@ -6,13 +5,23 @@ import { RecordedData, RecorderQualityConstraints, RecorderEncodingOptions, Reco
6
5
 
7
6
  export declare class RecorderElement {
8
7
 
9
- initRecording: (type: string, panelId?: string) => any;
8
+ initRecording: (type: string, panelId?: string) => Promise<void>;
10
9
 
11
10
  /**
12
11
  * @deprecated Use on('recordingDone') method instead
13
12
  */
14
13
  onRecordedData: () => Observable<RecordedData | null>;
15
14
 
15
+ /**
16
+ * To enable dark mode in recording
17
+ */
18
+ enableDarkMode: () => void;
19
+
20
+ /**
21
+ * To disable dark mode in recording
22
+ */
23
+ disableDarkMode: () => void;
24
+
16
25
  /**
17
26
  * To enable recording countdown
18
27
  */
@@ -173,6 +182,16 @@ export declare class RecorderElement {
173
182
  */
174
183
  private _onRecordedData;
175
184
 
185
+ /**
186
+ * To enable dark mode in recording
187
+ */
188
+ private _enableDarkMode;
189
+
190
+ /**
191
+ * To disable dark mode in recording
192
+ */
193
+ private _disableDarkMode;
194
+
176
195
  /**
177
196
  * To enable dark mode in comments
178
197
  */
@@ -1,4 +1,6 @@
1
- // @ts-nocheck
1
+ import { Observable } from "rxjs";
2
+ import { RewriterAskAiRequest, RewriterAskAiResponse, RewriterReplaceTextRequest, RewriterReplaceTextResponse, RewriterAddCommentRequest, RewriterAddCommentResponse, RewriterEventTypesMap } from "../data/rewriter-events.data.model";
3
+
2
4
  export declare class RewriterElement {
3
5
  /**
4
6
  * To enable rewriter feature
@@ -19,6 +21,26 @@ export declare class RewriterElement {
19
21
  * To disable the default rewriter UI on text selection
20
22
  */
21
23
  disableDefaultUI: () => void;
24
+
25
+ /**
26
+ * Subscribe to rewriter events
27
+ */
28
+ on: <T extends keyof RewriterEventTypesMap>(action: T) => Observable<RewriterEventTypesMap[T]>;
29
+
30
+ /**
31
+ * Call AI with the currently selected text
32
+ */
33
+ askAi: (request: RewriterAskAiRequest) => Promise<RewriterAskAiResponse>;
34
+
35
+ /**
36
+ * Replace the selected text in the DOM with the given text
37
+ */
38
+ replaceText: (request: RewriterReplaceTextRequest) => Promise<RewriterReplaceTextResponse>;
39
+
40
+ /**
41
+ * Add a comment annotation on the selected text with the given text as comment body
42
+ */
43
+ addComment: (request: RewriterAddCommentRequest) => Promise<RewriterAddCommentResponse>;
22
44
  constructor();
23
45
 
24
46
  /**
@@ -40,4 +62,24 @@ export declare class RewriterElement {
40
62
  * To disable the default rewriter UI on text selection
41
63
  */
42
64
  private _disableDefaultUI;
65
+
66
+ /**
67
+ * Subscribe to rewriter events
68
+ */
69
+ private _on;
70
+
71
+ /**
72
+ * Call AI with the currently selected text
73
+ */
74
+ private _askAi;
75
+
76
+ /**
77
+ * Replace the selected text in the DOM with the given text
78
+ */
79
+ private _replaceText;
80
+
81
+ /**
82
+ * Add a comment annotation on the selected text with the given text as comment body
83
+ */
84
+ private _addComment;
43
85
  }
@@ -1,4 +1,4 @@
1
- // @ts-nocheck
1
+ import { Observable } from "rxjs";
2
2
  import { LiveSelectionData, UserIndicatorPosition, UserIndicatorType } from "../data/selection.model";
3
3
  export declare class SelectionElement {
4
4
  /**
@@ -1,4 +1,3 @@
1
- // @ts-nocheck
2
1
  import { Observable } from "rxjs";
3
2
  import { SuggestionEventType } from "../../utils/enums";
4
3
  import { SuggestionEventTypesMap } from "../data/suggestion-events.data.model";
@@ -1,31 +1,30 @@
1
- // @ts-nocheck
2
1
  import { Observable } from "rxjs";
3
- import { TagPinAnnotation } from "../data/tag-annotation.data.model";
2
+ import { TagAnnotation } from "../data/tag-annotation.data.model";
4
3
  export declare class TagElement {
5
4
  /**
6
5
  * Subscribe to tags on the current document.
7
6
  *
8
- * Returns Observable<TagPinAnnotation[] | null>.
7
+ * Returns Observable<TagAnnotation[] | null>.
9
8
  */
10
- getAllTagAnnotations: (documentId?: string, documentParams?: object) => Observable<TagPinAnnotation[] | null>;
9
+ getAllTagAnnotations: (documentId?: string, documentParams?: object) => Observable<TagAnnotation[] | null>;
11
10
 
12
11
  /**
13
12
  * To delete selected tags
14
13
  */
15
- deleteTag: () => any;
14
+ deleteTag: () => void;
16
15
 
17
16
  /**
18
17
  * To allow text selection in specific elements only
19
18
  * @param elementIds Element ids to be allowed
20
19
  */
21
- allowedElementIds: (elementIds: string[]) => any;
20
+ allowedElementIds: (elementIds: string[]) => void;
22
21
 
23
22
  /**
24
23
  * To add tags on specific elements
25
24
  *
26
25
  * @param elementId ID of html element
27
26
  */
28
- attachTag: (elementId: string) => any;
27
+ attachTag: (elementId: string) => void;
29
28
 
30
29
  /**
31
30
  * Subscribe to add tag mode change.
@@ -37,7 +36,7 @@ export declare class TagElement {
37
36
  /**
38
37
  * Subscribe to tags on the current document.
39
38
  *
40
- * Returns Observable<TagPinAnnotation[] | null>.
39
+ * Returns Observable<TagAnnotation[] | null>.
41
40
  */
42
41
  private _getAllTagAnnotations;
43
42
 
@@ -1,4 +1,4 @@
1
- // @ts-nocheck
1
+ import { Observable } from "rxjs";
2
2
  import { ViewsByUser, ViewsByDate } from "../data/views.data.model";
3
3
 
4
4
  export declare class ViewsElement {
@@ -1,38 +1,40 @@
1
- export declare enum CommentStatus {
2
- NEWLY_ADDED = "newlyAdded",
3
- ADDED = "added",
4
- UPDATED = "updated",
5
- DELETED = "deleted",
6
- APPROVED = "approved",
7
- ASSIGNED = "assigned",
8
- STATUS_CHANGED = "statusChanged",
9
- PRIORITY_CHANGED = "priorityChanged",
10
- ACCESS_MODE_CHANGED = "accessModeChanged",
11
- CUSTOM_LIST_CHANGED = "customListChanged",
12
- ACCEPTED = "accepted",
13
- REJECTED = "rejected",
14
- REACTION_ADDED = "reactionAdded",
15
- REACTION_DELETED = "reactionDeleted",
16
- SUBSCRIBED = "subscribed",
17
- UNSUBSCRIBED = "unsubscribed",
18
- SUGGESTION_ACCEPTED = "suggestionAccepted",
19
- SUGGESTION_REJECTED = "suggestionRejected"
20
- }
21
- export declare enum ResolverActions {
22
- COMMENT_ANNOTATION_ADD = "comment_annotation.add",
23
- COMMENT_ANNOTATION_DELETE = "comment_annotation.delete",
24
- COMMENT_ADD = "comment.add",
25
- COMMENT_DELETE = "comment.delete",
26
- COMMENT_UPDATE = "comment.update",
27
- REACTION_ADD = "reaction.add",
28
- REACTION_DELETE = "reaction.delete",
29
- ATTACHMENT_ADD = "attachment.add",
30
- ATTACHMENT_DELETE = "attachment.delete",
31
- RECORDER_ANNOTATION_ADD = "recorder_annotation.add",
32
- RECORDER_ANNOTATION_UPDATE = "recorder_annotation.update",
33
- RECORDER_ANNOTATION_DELETE = "recorder_annotation.delete",
34
- ACTIVITY_SAVE = "activity.save"
35
- }
1
+ export declare const CommentStatus: {
2
+ readonly NEWLY_ADDED: "newlyAdded";
3
+ readonly ADDED: "added";
4
+ readonly UPDATED: "updated";
5
+ readonly DELETED: "deleted";
6
+ readonly APPROVED: "approved";
7
+ readonly ASSIGNED: "assigned";
8
+ readonly STATUS_CHANGED: "statusChanged";
9
+ readonly PRIORITY_CHANGED: "priorityChanged";
10
+ readonly ACCESS_MODE_CHANGED: "accessModeChanged";
11
+ readonly CUSTOM_LIST_CHANGED: "customListChanged";
12
+ readonly ACCEPTED: "accepted";
13
+ readonly REJECTED: "rejected";
14
+ readonly REACTION_ADDED: "reactionAdded";
15
+ readonly REACTION_DELETED: "reactionDeleted";
16
+ readonly SUBSCRIBED: "subscribed";
17
+ readonly UNSUBSCRIBED: "unsubscribed";
18
+ readonly SUGGESTION_ACCEPTED: "suggestionAccepted";
19
+ readonly SUGGESTION_REJECTED: "suggestionRejected";
20
+ };
21
+ export type CommentStatus = (typeof CommentStatus)[keyof typeof CommentStatus];
22
+ export declare const ResolverActions: {
23
+ readonly COMMENT_ANNOTATION_ADD: "comment_annotation.add";
24
+ readonly COMMENT_ANNOTATION_DELETE: "comment_annotation.delete";
25
+ readonly COMMENT_ADD: "comment.add";
26
+ readonly COMMENT_DELETE: "comment.delete";
27
+ readonly COMMENT_UPDATE: "comment.update";
28
+ readonly REACTION_ADD: "reaction.add";
29
+ readonly REACTION_DELETE: "reaction.delete";
30
+ readonly ATTACHMENT_ADD: "attachment.add";
31
+ readonly ATTACHMENT_DELETE: "attachment.delete";
32
+ readonly RECORDER_ANNOTATION_ADD: "recorder_annotation.add";
33
+ readonly RECORDER_ANNOTATION_UPDATE: "recorder_annotation.update";
34
+ readonly RECORDER_ANNOTATION_DELETE: "recorder_annotation.delete";
35
+ readonly ACTIVITY_SAVE: "activity.save";
36
+ };
37
+ export type ResolverActions = (typeof ResolverActions)[keyof typeof ResolverActions];
36
38
  /**
37
39
  * Opt-in additional (non-core) comment save events for the Comment Annotations Resolver
38
40
  * (specs/comment-resolver iteration-2). Values mirror the non-core `CommentActivityActionTypes`
@@ -42,22 +44,23 @@ export declare enum ResolverActions {
42
44
  * `ResolverActions`. Kept in enums.ts (a leaf module) to avoid a
43
45
  * resolver.data.model ↔ comment-resolver.data.model import cycle.
44
46
  */
45
- export declare enum CommentResolverSaveEvent {
46
- STATUS_CHANGE = "comment_annotation.status_change",
47
- PRIORITY_CHANGE = "comment_annotation.priority_change",
48
- ASSIGN = "comment_annotation.assign",
49
- ACCESS_MODE_CHANGE = "comment_annotation.access_mode_change",
50
- CUSTOM_LIST_CHANGE = "comment_annotation.custom_list_change",
51
- APPROVE = "comment_annotation.approve",
52
- ACCEPT = "comment.accept",
53
- REJECT = "comment.reject",
54
- SUGGESTION_ACCEPT = "comment_annotation.suggestion_accept",
55
- SUGGESTION_REJECT = "comment_annotation.suggestion_reject",
56
- REACTION_ADD = "comment.reaction_add",
57
- REACTION_DELETE = "comment.reaction_delete",
58
- SUBSCRIBE = "comment_annotation.subscribe",
59
- UNSUBSCRIBE = "comment_annotation.unsubscribe"
60
- }
47
+ export declare const CommentResolverSaveEvent: {
48
+ readonly STATUS_CHANGE: "comment_annotation.status_change";
49
+ readonly PRIORITY_CHANGE: "comment_annotation.priority_change";
50
+ readonly ASSIGN: "comment_annotation.assign";
51
+ readonly ACCESS_MODE_CHANGE: "comment_annotation.access_mode_change";
52
+ readonly CUSTOM_LIST_CHANGE: "comment_annotation.custom_list_change";
53
+ readonly APPROVE: "comment_annotation.approve";
54
+ readonly ACCEPT: "comment.accept";
55
+ readonly REJECT: "comment.reject";
56
+ readonly SUGGESTION_ACCEPT: "comment_annotation.suggestion_accept";
57
+ readonly SUGGESTION_REJECT: "comment_annotation.suggestion_reject";
58
+ readonly REACTION_ADD: "comment.reaction_add";
59
+ readonly REACTION_DELETE: "comment.reaction_delete";
60
+ readonly SUBSCRIBE: "comment_annotation.subscribe";
61
+ readonly UNSUBSCRIBE: "comment_annotation.unsubscribe";
62
+ };
63
+ export type CommentResolverSaveEvent = (typeof CommentResolverSaveEvent)[keyof typeof CommentResolverSaveEvent];
61
64
  export declare const CommentEventTypes: {
62
65
  readonly ADD_COMMENT_ANNOTATION: "addCommentAnnotation";
63
66
  readonly ADD_COMMENT_ANNOTATION_DRAFT: "addCommentAnnotationDraft";
@@ -95,6 +98,10 @@ export declare const CommentEventTypes: {
95
98
  readonly COMMENT_TOOL_CLICKED: "commentToolClicked";
96
99
  readonly SIDEBAR_BUTTON_CLICK: "sidebarButtonClick";
97
100
  readonly SIDEBAR_BUTTON_CLICKED: "sidebarButtonClicked";
101
+ readonly SIDEBAR_OPEN: "sidebarOpen";
102
+ readonly SIDEBAR_CLOSE: "sidebarClose";
103
+ readonly COMMENT_CLICK: "commentClick";
104
+ readonly COMMENT_NAVIGATION_BUTTON_CLICK: "commentNavigationButtonClick";
98
105
  readonly ATTACHMENT_DOWNLOAD_CLICKED: "attachmentDownloadClicked";
99
106
  readonly COMMENT_SAVED: "commentSaved";
100
107
  readonly COMMENT_SAVE_TRIGGERED: "commentSaveTriggered";
@@ -200,11 +207,12 @@ export declare enum ArrowStatus {
200
207
  UPDATED = "updated",
201
208
  DELETED = "deleted"
202
209
  }
203
- export declare enum AreaStatus {
204
- ADDED = "added",
205
- UPDATED = "updated",
206
- DELETED = "deleted"
207
- }
210
+ export declare const AreaStatus: {
211
+ readonly ADDED: "added";
212
+ readonly UPDATED: "updated";
213
+ readonly DELETED: "deleted";
214
+ };
215
+ export type AreaStatus = (typeof AreaStatus)[keyof typeof AreaStatus];
208
216
  export declare enum DocumentViewsStatus {
209
217
  FIRST_VIEWED = "firstViewed"
210
218
  }
@@ -277,19 +285,21 @@ export declare enum Roles {
277
285
  ADMIN = "Admin",
278
286
  COMMENTER = "Commenter"
279
287
  }
280
- export declare enum DocumentAccessType {
281
- PUBLIC = "public",
282
- RESTRICTED = "restricted",
283
- ORGANIZATION_PRIVATE = "organizationPrivate"
284
- }
288
+ export declare const DocumentAccessType: {
289
+ readonly PUBLIC: "public";
290
+ readonly RESTRICTED: "restricted";
291
+ readonly ORGANIZATION_PRIVATE: "organizationPrivate";
292
+ };
293
+ export type DocumentAccessType = (typeof DocumentAccessType)[keyof typeof DocumentAccessType];
285
294
  export declare enum DetectionStrategy {
286
295
  DEFAULT = "default",
287
296
  DYNAMIC_ID = "dynamicId"
288
297
  }
289
- export declare enum CommentAccessMode {
290
- PUBLIC = "public",
291
- PRIVATE = "private"
292
- }
298
+ export declare const CommentAccessMode: {
299
+ readonly PUBLIC: "public";
300
+ readonly PRIVATE: "private";
301
+ };
302
+ export type CommentAccessMode = (typeof CommentAccessMode)[keyof typeof CommentAccessMode];
293
303
  export declare enum UnreadIndicatorMode {
294
304
  MINIMAL = "minimal",
295
305
  VERBOSE = "verbose"
@@ -302,19 +312,21 @@ export declare enum CommentCountType {
302
312
  TOTAL = "total",
303
313
  UNREAD = "unread"
304
314
  }
305
- export declare enum ServerConnectionState {
306
- ONLINE = "online",
307
- OFFLINE = "offline",
308
- PENDING_INIT = "pendingInit",
309
- PENDING_DATA = "pendingData"
310
- }
311
- export declare enum ContactListScopeForOrganizationUsers {
312
- ALL = "all",
313
- ORGANIZATION = "organization",
314
- ORGANIZATION_USER_GROUP = "organizationUserGroup",
315
- DOCUMENT = "document",
316
- FOLDER = "folder"
317
- }
315
+ export declare const ServerConnectionState: {
316
+ readonly ONLINE: "online";
317
+ readonly OFFLINE: "offline";
318
+ readonly PENDING_INIT: "pendingInit";
319
+ readonly PENDING_DATA: "pendingData";
320
+ };
321
+ export type ServerConnectionState = (typeof ServerConnectionState)[keyof typeof ServerConnectionState];
322
+ export declare const ContactListScopeForOrganizationUsers: {
323
+ readonly ALL: "all";
324
+ readonly ORGANIZATION: "organization";
325
+ readonly ORGANIZATION_USER_GROUP: "organizationUserGroup";
326
+ readonly DOCUMENT: "document";
327
+ readonly FOLDER: "folder";
328
+ };
329
+ export type ContactListScopeForOrganizationUsers = (typeof ContactListScopeForOrganizationUsers)[keyof typeof ContactListScopeForOrganizationUsers];
318
330
  export type RecorderMode = 'audio' | 'video' | 'screen' | 'all' | string;
319
331
  export type RecorderType = 'audio' | 'video' | 'screen';
320
332
  export type RecorderFileFormat = 'mp3' | 'mp4' | 'webm';
@@ -354,10 +366,11 @@ export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFir
354
366
  export type NotificationPanelMode = 'popover' | 'sidebar';
355
367
  export type SidebarActionButtonType = 'default' | 'toggle';
356
368
  export type SidebarButtonCountType = 'default' | 'filter';
357
- export declare enum CommentSidebarSystemFiltersOperator {
358
- AND = "and",
359
- OR = "or"
360
- }
369
+ export declare const CommentSidebarSystemFiltersOperator: {
370
+ readonly AND: "and";
371
+ readonly OR: "or";
372
+ };
373
+ export type CommentSidebarSystemFiltersOperator = (typeof CommentSidebarSystemFiltersOperator)[keyof typeof CommentSidebarSystemFiltersOperator];
361
374
  /**
362
375
  * Type for notification settings accordion types
363
376
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types",
3
- "version": "6.0.0-beta.1",
3
+ "version": "6.0.0-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": [
@@ -38,5 +38,11 @@
38
38
  },
39
39
  "author": "",
40
40
  "license": "ISC",
41
- "typings": "./velt.d.ts"
41
+ "typings": "./velt.d.ts",
42
+ "types": "./velt.d.ts",
43
+ "exports": {
44
+ ".": {
45
+ "types": "./velt.d.ts"
46
+ }
47
+ }
42
48
  }
package/types.d.ts CHANGED
@@ -1,22 +1,22 @@
1
- export * from './app/client/snippyly.model';
2
- export * from './app/client/velt.model';
3
- export * from './app/models/element/area-element.model';
4
- export * from './app/models/element/arrow-element.model';
5
- export * from './app/models/element/comment-element.model';
6
- export * from './app/models/element/contact-element.model';
7
- export * from './app/models/element/cursor-element.model';
8
- export * from './app/models/element/huddle-element.model';
9
- export * from './app/models/element/live-state-sync-element.model';
10
- export * from './app/models/element/presence-element.model';
11
- export * from './app/models/element/recorder-element.model';
12
- export * from './app/models/element/rewriter-element.model';
13
- export * from './app/models/element/selection-element.model';
14
- export * from './app/models/element/tag-element.model';
15
- export * from './app/models/element/views-element.model';
16
- export * from './app/models/element/notification-element.model';
17
- export * from './app/models/element/autocomplete-element.model';
18
- export * from './app/models/element/reaction-element.model';
19
- export * from './app/models/element/crdt-element.model';
20
- export * from './app/models/element/activity-element.model';
21
- export * from './app/models/element/suggestion-element.model';
22
- export * from './models';
1
+ export type * from './app/client/snippyly.model';
2
+ export type * from './app/client/velt.model';
3
+ export type * from './app/models/element/area-element.model';
4
+ export type * from './app/models/element/arrow-element.model';
5
+ export type * from './app/models/element/comment-element.model';
6
+ export type * from './app/models/element/contact-element.model';
7
+ export type * from './app/models/element/cursor-element.model';
8
+ export type * from './app/models/element/huddle-element.model';
9
+ export type * from './app/models/element/live-state-sync-element.model';
10
+ export type * from './app/models/element/presence-element.model';
11
+ export type * from './app/models/element/recorder-element.model';
12
+ export type * from './app/models/element/rewriter-element.model';
13
+ export type * from './app/models/element/selection-element.model';
14
+ export type * from './app/models/element/tag-element.model';
15
+ export type * from './app/models/element/views-element.model';
16
+ export type * from './app/models/element/notification-element.model';
17
+ export type * from './app/models/element/autocomplete-element.model';
18
+ export type * from './app/models/element/reaction-element.model';
19
+ export type * from './app/models/element/crdt-element.model';
20
+ export type * from './app/models/element/activity-element.model';
21
+ export type * from './app/models/element/suggestion-element.model';
22
+ export type * from './models';
package/velt.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- // @ts-nocheck
2
1
  import * as velt from './types';
3
- export * from './types';
2
+ export type * from './types';
4
3
  export type Velt = { init: (api: string, config: velt.Config) => Velt, loaded: boolean, loadVelt: Function, loadSnippyly: Function } & velt.Velt;
5
4
  export const Velt: {
6
5
  init: (api: string, config?: velt.Config) => Promise<Velt>,