@veltdev/sdk 4.5.0-beta.9 → 4.5.0
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.
- package/app/client/snippyly.model.d.ts +62 -8
- package/app/models/data/button.data.model.d.ts +2 -0
- package/app/models/data/comment-actions.data.model.d.ts +3 -0
- package/app/models/data/comment-annotation.data.model.d.ts +10 -0
- package/app/models/data/comment-resolver.data.model.d.ts +19 -0
- package/app/models/data/comment-sidebar-config.model.d.ts +21 -0
- package/app/models/data/comment.data.model.d.ts +1 -0
- package/app/models/data/core-events.data.model.d.ts +9 -0
- package/app/models/data/crdt.data.model.d.ts +59 -0
- package/app/models/data/custom-filter.data.model.d.ts +8 -0
- package/app/models/data/document-paths.data.model.d.ts +13 -0
- package/app/models/data/document.data.model.d.ts +2 -0
- package/app/models/data/encryption-provider.data.model.d.ts +12 -0
- package/app/models/data/location.model.d.ts +10 -0
- package/app/models/data/media-preview-config.data.model.d.ts +2 -0
- package/app/models/data/multi-thread.data.model.d.ts +2 -0
- package/app/models/data/notification.model.d.ts +23 -1
- package/app/models/data/notifications-events.data.model.d.ts +9 -0
- package/app/models/data/reaction-resolver.data.model.d.ts +4 -2
- package/app/models/data/recorder-annotation.data.model.d.ts +3 -0
- package/app/models/data/recorder-events.data.model.d.ts +19 -0
- package/app/models/data/recorder.model.d.ts +4 -0
- package/app/models/data/resolver.data.model.d.ts +7 -0
- package/app/models/data/user-iam.data.model.d.ts +6 -0
- package/app/models/data/user-resolver.data.model.d.ts +2 -0
- package/app/models/data/user.data.model.d.ts +10 -0
- package/app/models/element/comment-element.model.d.ts +136 -11
- package/app/models/element/crdt-element.model.d.ts +166 -0
- package/app/models/element/notification-element.model.d.ts +103 -3
- package/app/models/element/presence-element.model.d.ts +2 -0
- package/app/models/element/recorder-element.model.d.ts +82 -2
- package/app/utils/constants.d.ts +45 -1
- package/app/utils/enums.d.ts +20 -1
- package/models.d.ts +3 -0
- package/package.json +1 -1
- package/types.d.ts +1 -0
- package/velt.js +116 -105
package/app/utils/constants.d.ts
CHANGED
|
@@ -12,8 +12,10 @@ export declare class Constants {
|
|
|
12
12
|
static FIREBASE_PARTIAL_PATH_ORGANIZATIONS: string;
|
|
13
13
|
static FIREBASE_PARTIAL_PATH_FOLDERS: string;
|
|
14
14
|
static FIREBASE_PARTIAL_PATH_DOCS: string;
|
|
15
|
+
static FIREBASE_PARTIAL_PATH_DOCUMENT_CONFIGURATIONS: string;
|
|
15
16
|
static FIREBASE_PARTIAL_PATH_PRESENCE: string;
|
|
16
17
|
static FIREBASE_PARTIAL_PATH_ORGANIZATION_USERS: string;
|
|
18
|
+
static FIREBASE_PARTIAL_PATH_CENTRAL_USERS: string;
|
|
17
19
|
static FIREBASE_PARTIAL_PATH_FOLDER_USERS: string;
|
|
18
20
|
static FIREBASE_PARTIAL_PATH_DOCUMENT_USERS: string;
|
|
19
21
|
static FIREBASE_PARTIAL_PATH_CURSOR: string;
|
|
@@ -44,8 +46,8 @@ export declare class Constants {
|
|
|
44
46
|
static FIREBASE_PARTIAL_PATH_LIVE_STATE: string;
|
|
45
47
|
static FIREBASE_PARTIAL_PATH_IAM: string;
|
|
46
48
|
static FIREBASE_PARTIAL_PATH_REACTION: string;
|
|
49
|
+
static FIREBASE_PARTIAL_PATH_CRDT: string;
|
|
47
50
|
static FIREBASE_PARTIAL_PATH_VIEWS: string;
|
|
48
|
-
static FIREBASE_PARTIAL_PATH_COMMENT_VIEWS: string;
|
|
49
51
|
static FIREBASE_PARTIAL_PATH_NOTIFICATION_VIEWS: string;
|
|
50
52
|
static FIREBASE_PARTIAL_PATH_DOCUMENT_VIEWS: string;
|
|
51
53
|
static FIREBASE_PARTIAL_PATH_LOCATION_VIEWS: string;
|
|
@@ -53,6 +55,7 @@ export declare class Constants {
|
|
|
53
55
|
static FIREBASE_PARTIAL_PATH_ORGANIZATION_NOTIFICATIONS: string;
|
|
54
56
|
static FIREBASE_PARTIAL_PATH_LAST_NOTIFICATION_TIMESTAMP: string;
|
|
55
57
|
static FIREBASE_PARTIAL_PATH_USERS: string;
|
|
58
|
+
static FIREBASE_PARTIAL_PATH_PERMISSIONS_USERS: string;
|
|
56
59
|
static FIREBASE_PARTIAL_PATH_USER_REQUESTS: string;
|
|
57
60
|
static FIREBASE_PARTIAL_PATH_FEEDBACK: string;
|
|
58
61
|
static FIREBASE_PARTIAL_PATH_BUGS: string;
|
|
@@ -193,6 +196,7 @@ export declare class Constants {
|
|
|
193
196
|
VELT_RECORDER_CONTROL_PANEL: string;
|
|
194
197
|
VELT_RECORDER_CONTROL_PANEL_INTERNAL: string;
|
|
195
198
|
VELT_RECORDER_PLAYER: string;
|
|
199
|
+
VELT_VIDEO_EDITOR: string;
|
|
196
200
|
VELT_TEXT_HIGHLIGHT: string;
|
|
197
201
|
VELT_COMMENT_TEXT_PORTAL: string;
|
|
198
202
|
VELT_COMMENTS_SIDEBAR: string;
|
|
@@ -457,4 +461,44 @@ export declare class Constants {
|
|
|
457
461
|
overlayX: any;
|
|
458
462
|
overlayY: any;
|
|
459
463
|
}[];
|
|
464
|
+
static VIDEO_EDITOR: {
|
|
465
|
+
ZOOM_IN_DURATION: number;
|
|
466
|
+
ZOOM_OUT_DURATION: number;
|
|
467
|
+
DEFAULT_ZOOM_FACTOR: number;
|
|
468
|
+
MAX_ZOOM_FACTOR: number;
|
|
469
|
+
ZOOM_FACTOR_OPTIONS: {
|
|
470
|
+
value: number;
|
|
471
|
+
label: string;
|
|
472
|
+
}[];
|
|
473
|
+
MIN_DRAG_AREA_MULTIPLIER: number;
|
|
474
|
+
PREFERRED_SECTION_DURATION_MULTIPLIER: number;
|
|
475
|
+
SELECTION_MIN_DRAG_DISTANCE: number;
|
|
476
|
+
MIN_DURATION_THRESHOLD: number;
|
|
477
|
+
TIME_BUFFER: number;
|
|
478
|
+
SHORT_VIDEO_THRESHOLD: number;
|
|
479
|
+
SMALL_VIDEO_THRESHOLD: number;
|
|
480
|
+
MILLISECOND_PRECISION_MULTIPLIER: number;
|
|
481
|
+
TENTH_SECOND_PRECISION_MULTIPLIER: number;
|
|
482
|
+
DEBOUNCE_DELAY: number;
|
|
483
|
+
DECIMAL_PRECISION: number;
|
|
484
|
+
MAX_MARKER_COUNT: number;
|
|
485
|
+
MARKER_INTERVAL: number;
|
|
486
|
+
FAST_TIMEOUT: number;
|
|
487
|
+
STANDARD_TIMEOUT: number;
|
|
488
|
+
RECTANGLE_POSITIONING: {
|
|
489
|
+
FULL_PERCENT: number;
|
|
490
|
+
HALF_PERCENT: number;
|
|
491
|
+
QUARTER_PERCENT: number;
|
|
492
|
+
};
|
|
493
|
+
EASING: {
|
|
494
|
+
QUAD_IN_OUT_MULTIPLIER: number;
|
|
495
|
+
QUAD_IN_OUT_POWER: number;
|
|
496
|
+
HALF_THRESHOLD: number;
|
|
497
|
+
};
|
|
498
|
+
PERCENTAGE: {
|
|
499
|
+
HALF: number;
|
|
500
|
+
FULL: number;
|
|
501
|
+
};
|
|
502
|
+
MILLISECONDS_TO_SECONDS: number;
|
|
503
|
+
};
|
|
460
504
|
}
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -62,10 +62,16 @@ export declare const RecorderEventTypes: {
|
|
|
62
62
|
readonly DELETE_RECORDING: "deleteRecording";
|
|
63
63
|
readonly ERROR: "error";
|
|
64
64
|
readonly RECORDING_SAVE_INITIATED: "recordingSaveInitiated";
|
|
65
|
+
readonly RECORDING_STARTED: "recordingStarted";
|
|
66
|
+
readonly RECORDING_PAUSED: "recordingPaused";
|
|
67
|
+
readonly RECORDING_RESUMED: "recordingResumed";
|
|
68
|
+
readonly RECORDING_CANCELLED: "recordingCancelled";
|
|
69
|
+
readonly RECORDING_STOPPED: "recordingStopped";
|
|
65
70
|
};
|
|
66
71
|
export declare const CoreEventTypes: {
|
|
67
72
|
readonly VELT_BUTTON_CLICK: "veltButtonClick";
|
|
68
73
|
readonly USER_UPDATE: "userUpdate";
|
|
74
|
+
readonly INIT_UPDATE: "initUpdate";
|
|
69
75
|
readonly DOCUMENT_INIT: "documentInit";
|
|
70
76
|
readonly ERROR: "error";
|
|
71
77
|
};
|
|
@@ -82,11 +88,15 @@ export declare const PresenceEventTypes: {
|
|
|
82
88
|
readonly MULTIPLE_USERS_ONLINE: "multipleUsersOnline";
|
|
83
89
|
readonly USER_STATE_CHANGE: "userStateChange";
|
|
84
90
|
};
|
|
91
|
+
export declare const NotificationEventTypes: {
|
|
92
|
+
readonly SETTINGS_UPDATED: "settingsUpdated";
|
|
93
|
+
};
|
|
85
94
|
export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
|
|
86
95
|
export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
|
|
87
96
|
export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
|
|
88
97
|
export type LiveStateSyncEventType = typeof LiveStateSyncEventTypes[keyof typeof LiveStateSyncEventTypes];
|
|
89
98
|
export type PresenceEventType = typeof PresenceEventTypes[keyof typeof PresenceEventTypes];
|
|
99
|
+
export type NotificationEventType = typeof NotificationEventTypes[keyof typeof NotificationEventTypes];
|
|
90
100
|
export declare enum TagStatus {
|
|
91
101
|
ADDED = "added",
|
|
92
102
|
UPDATED = "updated",
|
|
@@ -256,11 +266,20 @@ export type ReactionPinType = 'timeline' | 'comment';
|
|
|
256
266
|
export type SidebarPosition = 'left' | 'right';
|
|
257
267
|
export type SidebarSortingCriteria = 'date' | 'unread' | null;
|
|
258
268
|
export type SidebarFilterCriteria = 'all' | 'read' | 'unread' | 'resolved';
|
|
259
|
-
export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions';
|
|
269
|
+
export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'involved' | 'pages' | 'documents' | 'statuses' | 'priorities' | 'categories' | 'versions' | string;
|
|
260
270
|
export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
|
|
261
271
|
export type NotificationPanelMode = 'popover' | 'sidebar';
|
|
262
272
|
export type SidebarActionButtonType = 'default' | 'toggle';
|
|
273
|
+
export type SidebarButtonCountType = 'default' | 'filter';
|
|
263
274
|
export declare enum CommentSidebarSystemFiltersOperator {
|
|
264
275
|
AND = "and",
|
|
265
276
|
OR = "or"
|
|
266
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Type for notification settings accordion types
|
|
280
|
+
*/
|
|
281
|
+
export type NotificationSettingsAccordionType = 'inbox' | 'email' | string;
|
|
282
|
+
/**
|
|
283
|
+
* Type for notification settings item options
|
|
284
|
+
*/
|
|
285
|
+
export type NotificationSettingsItemType = 'ALL' | 'MINE' | 'NONE' | string;
|
package/models.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export * from './app/models/data/location.model';
|
|
|
35
35
|
export * from './app/models/data/media-preview-config.data.model';
|
|
36
36
|
export * from './app/models/data/multi-thread.data.model';
|
|
37
37
|
export * from './app/models/data/notification.model';
|
|
38
|
+
export * from './app/models/data/notifications-events.data.model';
|
|
38
39
|
export * from './app/models/data/page-info.model';
|
|
39
40
|
export * from './app/models/data/permission.data.model';
|
|
40
41
|
export * from './app/models/data/presence-user.data.model';
|
|
@@ -76,3 +77,5 @@ export * from './app/models/data/event-metadata.data.model';
|
|
|
76
77
|
export * from './app/models/data/user-resolver.data.model';
|
|
77
78
|
export * from './app/models/data/provider.data.model';
|
|
78
79
|
export * from './app/models/data/resolver.data.model';
|
|
80
|
+
export * from './app/models/data/crdt.data.model';
|
|
81
|
+
export * from './app/models/data/encryption-provider.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.5.0
|
|
3
|
+
"version": "4.5.0",
|
|
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": [
|
package/types.d.ts
CHANGED
|
@@ -16,4 +16,5 @@ export * from './app/models/element/views-element.model';
|
|
|
16
16
|
export * from './app/models/element/notification-element.model';
|
|
17
17
|
export * from './app/models/element/autocomplete-element.model';
|
|
18
18
|
export * from './app/models/element/reaction-element.model';
|
|
19
|
+
export * from './app/models/element/crdt-element.model';
|
|
19
20
|
export * from './models';
|