@veltdev/sdk-staging 4.0.0-beta.112 → 4.0.0-beta.113
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.
|
@@ -6,3 +6,11 @@ export interface IUnreadCommentsCount {
|
|
|
6
6
|
count: number;
|
|
7
7
|
}
|
|
8
8
|
export type UnreadCommentsCount = IUnreadCommentsCount | null;
|
|
9
|
+
export interface TransformContext {
|
|
10
|
+
containerSelector: string;
|
|
11
|
+
transforms: {
|
|
12
|
+
scale: number;
|
|
13
|
+
transformOrigin: string;
|
|
14
|
+
inverseScale?: number;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -7,4 +7,19 @@ export declare class CursorPosition {
|
|
|
7
7
|
* Position left of cursor on viewer user's screen
|
|
8
8
|
*/
|
|
9
9
|
left: number;
|
|
10
|
+
/**
|
|
11
|
+
* Scale factor of the parent element in X direction
|
|
12
|
+
* Used for transform handling
|
|
13
|
+
*/
|
|
14
|
+
parentScaleX?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Scale factor of the parent element in Y direction
|
|
17
|
+
* Used for transform handling
|
|
18
|
+
*/
|
|
19
|
+
parentScaleY?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Transform context information
|
|
22
|
+
* Used to handle transforms properly
|
|
23
|
+
*/
|
|
24
|
+
transformContext?: any;
|
|
10
25
|
}
|
|
@@ -8,7 +8,7 @@ import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
|
8
8
|
import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
|
|
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 } from "../data/comment-actions.data.model";
|
|
11
|
-
import { UnreadCommentsCount } from "../data/comment-utils.data.model";
|
|
11
|
+
import { UnreadCommentsCount, TransformContext } from "../data/comment-utils.data.model";
|
|
12
12
|
export declare class CommentElement {
|
|
13
13
|
/**
|
|
14
14
|
* Subscribe to comments on the current document.
|
|
@@ -1083,6 +1083,11 @@ export declare class CommentElement {
|
|
|
1083
1083
|
*/
|
|
1084
1084
|
public disableCustomAutocompleteSearch: () => void;
|
|
1085
1085
|
|
|
1086
|
+
/**
|
|
1087
|
+
* To set transform context
|
|
1088
|
+
*/
|
|
1089
|
+
public setTransformContext: (transformContext: TransformContext) => void;
|
|
1090
|
+
|
|
1086
1091
|
constructor();
|
|
1087
1092
|
/**
|
|
1088
1093
|
* Subscribe to comments on the current document.
|
|
@@ -2147,4 +2152,9 @@ export declare class CommentElement {
|
|
|
2147
2152
|
* To disable custom autocomplete search
|
|
2148
2153
|
*/
|
|
2149
2154
|
private _disableCustomAutocompleteSearch;
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* To set transform context
|
|
2158
|
+
*/
|
|
2159
|
+
private _setTransformContext;
|
|
2150
2160
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-staging",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.113",
|
|
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": [
|