@veltdev/sdk 4.4.0-beta.9 → 4.5.0-beta.1
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/models/data/comment-actions.data.model.d.ts +1 -0
- package/app/models/data/comment-sidebar-config.model.d.ts +10 -0
- package/app/models/data/recorder-annotation.data.model.d.ts +19 -0
- package/app/models/data/recorder-events.data.model.d.ts +3 -0
- package/app/models/element/comment-element.model.d.ts +54 -0
- package/app/models/element/live-state-sync-element.model.d.ts +3 -3
- package/app/utils/enums.d.ts +5 -0
- package/package.json +1 -1
- package/velt.js +86 -88
|
@@ -30,6 +30,16 @@ export declare class CommentSidebarFilters {
|
|
|
30
30
|
email?: string;
|
|
31
31
|
name?: string;
|
|
32
32
|
}[];
|
|
33
|
+
assigned?: {
|
|
34
|
+
userId?: string;
|
|
35
|
+
email?: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
}[];
|
|
38
|
+
tagged?: {
|
|
39
|
+
userId?: string;
|
|
40
|
+
email?: string;
|
|
41
|
+
name?: string;
|
|
42
|
+
}[];
|
|
33
43
|
priority?: string[];
|
|
34
44
|
status?: string[];
|
|
35
45
|
category?: string[];
|
|
@@ -163,11 +163,28 @@ export interface RecorderAnnotationEditVersion {
|
|
|
163
163
|
waveformData?: number[];
|
|
164
164
|
displayName?: string;
|
|
165
165
|
boundedTrimRanges?: RecorderBoundedTrimRange[];
|
|
166
|
+
boundedScaleRanges?: RecorderBoundedScaleRange[];
|
|
166
167
|
}
|
|
167
168
|
export interface RecorderBoundedTrimRange {
|
|
168
169
|
start: number;
|
|
169
170
|
end: number;
|
|
170
171
|
}
|
|
172
|
+
export interface RecorderBoundedScaleRange {
|
|
173
|
+
start: number;
|
|
174
|
+
end: number;
|
|
175
|
+
zoomInDuration?: number;
|
|
176
|
+
holdDuration?: number;
|
|
177
|
+
zoomOutDuration?: number;
|
|
178
|
+
zoomFactor?: number;
|
|
179
|
+
centerX?: number;
|
|
180
|
+
centerY?: number;
|
|
181
|
+
topLeftX?: number;
|
|
182
|
+
topLeftY?: number;
|
|
183
|
+
}
|
|
184
|
+
export interface RecorderEditRange {
|
|
185
|
+
trimRanges: RecorderBoundedTrimRange[];
|
|
186
|
+
scaleRanges: RecorderBoundedScaleRange[];
|
|
187
|
+
}
|
|
171
188
|
export declare class RecorderMetadata extends BaseMetadata {
|
|
172
189
|
[key: string]: any;
|
|
173
190
|
}
|
|
@@ -184,6 +201,7 @@ declare class RecorderDataTranscription {
|
|
|
184
201
|
contentSummary?: string;
|
|
185
202
|
}
|
|
186
203
|
declare class RecorderDataAsset {
|
|
204
|
+
version?: number;
|
|
187
205
|
url: string;
|
|
188
206
|
mimeType?: string;
|
|
189
207
|
fileName?: string;
|
|
@@ -201,6 +219,7 @@ export declare class RecorderData {
|
|
|
201
219
|
from?: User | null;
|
|
202
220
|
metadata?: RecorderMetadata;
|
|
203
221
|
assets: RecorderDataAsset[];
|
|
222
|
+
assetsAllVersions: RecorderDataAsset[];
|
|
204
223
|
transcription: RecorderDataTranscription;
|
|
205
224
|
}
|
|
206
225
|
export interface RecorderRequestQuery {
|
|
@@ -6,8 +6,11 @@ export interface RecordingDoneEvent extends RecorderData {
|
|
|
6
6
|
}
|
|
7
7
|
export interface RecordingDeleteEvent extends RecorderData {
|
|
8
8
|
}
|
|
9
|
+
export interface RecordingEditDoneEvent extends RecorderData {
|
|
10
|
+
}
|
|
9
11
|
export type RecorderEventTypesMap = {
|
|
10
12
|
[RecorderEventTypes.TRANSCRIPTION_DONE]: TranscriptionDoneEvent;
|
|
11
13
|
[RecorderEventTypes.RECORDING_DONE]: RecordingDoneEvent;
|
|
14
|
+
[RecorderEventTypes.RECORDING_EDIT_DONE]: RecordingEditDoneEvent;
|
|
12
15
|
[RecorderEventTypes.DELETE_RECORDING]: RecordingDeleteEvent;
|
|
13
16
|
};
|
|
@@ -9,6 +9,8 @@ import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebar
|
|
|
9
9
|
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
10
10
|
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, CommentRequestQuery, CommentRequestQuery, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest, FetchCommentAnnotationsRequest } from "../data/comment-actions.data.model";
|
|
11
11
|
import { UnreadCommentsCount, TransformContext } from "../data/comment-utils.data.model";
|
|
12
|
+
import { CommentSidebarSystemFiltersOperator } from "../../utils/enums";
|
|
13
|
+
|
|
12
14
|
export declare class CommentElement {
|
|
13
15
|
/**
|
|
14
16
|
* Subscribe to comments on the current document.
|
|
@@ -496,6 +498,12 @@ export declare class CommentElement {
|
|
|
496
498
|
*/
|
|
497
499
|
public setCommentSidebarFilters: (filters: any) => void;
|
|
498
500
|
|
|
501
|
+
/**
|
|
502
|
+
* To set system filters operator on comment sidebar.
|
|
503
|
+
* @param operator System filters operator
|
|
504
|
+
*/
|
|
505
|
+
public setSystemFiltersOperator: (operator: CommentSidebarSystemFiltersOperator) => void;
|
|
506
|
+
|
|
499
507
|
/**
|
|
500
508
|
* To enable comment pin highlighter.
|
|
501
509
|
*/
|
|
@@ -1112,6 +1120,26 @@ export declare class CommentElement {
|
|
|
1112
1120
|
* To disable full expanded
|
|
1113
1121
|
*/
|
|
1114
1122
|
public disableFullExpanded: () => void;
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* To enable comment to nearest allowed element
|
|
1126
|
+
*/
|
|
1127
|
+
public enableCommentToNearestAllowedElement: () => void;
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* To disable comment to nearest allowed element
|
|
1131
|
+
*/
|
|
1132
|
+
public disableCommentToNearestAllowedElement: () => void;
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* To enable draft mode
|
|
1136
|
+
*/
|
|
1137
|
+
public enableDraftMode: () => void;
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* To disable draft mode
|
|
1141
|
+
*/
|
|
1142
|
+
public disableDraftMode: () => void;
|
|
1115
1143
|
constructor();
|
|
1116
1144
|
/**
|
|
1117
1145
|
* Subscribe to comments on the current document.
|
|
@@ -1590,6 +1618,12 @@ export declare class CommentElement {
|
|
|
1590
1618
|
*/
|
|
1591
1619
|
private _setCommentSidebarFilters;
|
|
1592
1620
|
|
|
1621
|
+
/**
|
|
1622
|
+
* To set system filters operator on comment sidebar.
|
|
1623
|
+
* @param operator System filters operator
|
|
1624
|
+
*/
|
|
1625
|
+
private _setSystemFiltersOperator;
|
|
1626
|
+
|
|
1593
1627
|
/**
|
|
1594
1628
|
* To enable comment pin highlighter.
|
|
1595
1629
|
*/
|
|
@@ -2206,4 +2240,24 @@ export declare class CommentElement {
|
|
|
2206
2240
|
* To disable full expanded
|
|
2207
2241
|
*/
|
|
2208
2242
|
private _disableFullExpanded;
|
|
2243
|
+
|
|
2244
|
+
/**
|
|
2245
|
+
* To enable comment to nearest allowed element
|
|
2246
|
+
*/
|
|
2247
|
+
private _enableCommentToNearestAllowedElement;
|
|
2248
|
+
|
|
2249
|
+
/**
|
|
2250
|
+
* To disable comment to nearest allowed element
|
|
2251
|
+
*/
|
|
2252
|
+
private _disableCommentToNearestAllowedElement;
|
|
2253
|
+
|
|
2254
|
+
/**
|
|
2255
|
+
* To enable draft mode
|
|
2256
|
+
*/
|
|
2257
|
+
private _enableDraftMode;
|
|
2258
|
+
|
|
2259
|
+
/**
|
|
2260
|
+
* To disable draft mode
|
|
2261
|
+
*/
|
|
2262
|
+
private _disableDraftMode;
|
|
2209
2263
|
}
|
|
@@ -11,18 +11,18 @@ export declare class LiveStateSyncElement {
|
|
|
11
11
|
/**
|
|
12
12
|
* Gets live state data based on the provided ID.
|
|
13
13
|
*/
|
|
14
|
-
getLiveStateData: (liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<
|
|
14
|
+
getLiveStateData: <T = unknown>(liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<T>;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Gets live state data as an observable based on the provided ID.
|
|
18
18
|
* @deprecated Use `getLiveStateData` instead
|
|
19
19
|
*/
|
|
20
|
-
getLiveStateData$: (liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<
|
|
20
|
+
getLiveStateData$: <T = unknown>(liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<T>;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Sets live state data for the provided ID and data.
|
|
24
24
|
*/
|
|
25
|
-
setLiveStateData: (liveStateDataId: string, liveStateData:
|
|
25
|
+
setLiveStateData: <T = unknown>(liveStateDataId: string, liveStateData: T, config?: SetLiveStateDataConfig) => Promise<void>;
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Enables the single editor mode.
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export declare const CommentEventTypes: {
|
|
|
58
58
|
export declare const RecorderEventTypes: {
|
|
59
59
|
readonly TRANSCRIPTION_DONE: "transcriptionDone";
|
|
60
60
|
readonly RECORDING_DONE: "recordingDone";
|
|
61
|
+
readonly RECORDING_EDIT_DONE: "recordingEditDone";
|
|
61
62
|
readonly DELETE_RECORDING: "deleteRecording";
|
|
62
63
|
};
|
|
63
64
|
export declare const CoreEventTypes: {
|
|
@@ -242,3 +243,7 @@ export type SidebarFilterSearchType = 'people' | 'assigned' | 'tagged' | 'pages'
|
|
|
242
243
|
export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFirst' | 'updatedLast';
|
|
243
244
|
export type NotificationPanelMode = 'popover' | 'sidebar';
|
|
244
245
|
export type SidebarActionButtonType = 'default' | 'toggle';
|
|
246
|
+
export declare enum CommentSidebarSystemFiltersOperator {
|
|
247
|
+
AND = "and",
|
|
248
|
+
OR = "or"
|
|
249
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0-beta.1",
|
|
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": [
|