@veltdev/types-dev 3.0.250 → 3.0.252
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.
|
@@ -26,6 +26,7 @@ import { DocumentMetadata } from "../models/data/document-metadata.model";
|
|
|
26
26
|
import { ReactionElement } from "../models/element/reaction-element.model";
|
|
27
27
|
import { VeltEventMetadata } from "../models/data/event-metadata.data.model";
|
|
28
28
|
import { ButtonClickSubject } from "../models/data/button.data.model";
|
|
29
|
+
import { CoreEventTypesMap } from "../models/data/core-events.data.model";
|
|
29
30
|
export declare class Snippyly {
|
|
30
31
|
constructor();
|
|
31
32
|
initConfig: (apiKey: string, config?: Config) => void;
|
|
@@ -269,4 +270,9 @@ export declare class Snippyly {
|
|
|
269
270
|
* To get button click subject.
|
|
270
271
|
*/
|
|
271
272
|
onButtonClick: () => Observable<ButtonClickSubject>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* To subscribe to core actions
|
|
276
|
+
*/
|
|
277
|
+
on: <T extends keyof CoreEventTypesMap>(action: T) => Observable<CoreEventTypesMap[T]>;
|
|
272
278
|
}
|
|
@@ -2,6 +2,7 @@ import { CommentAccessMode, CommentEventTypes, CommentStatus } from "../../utils
|
|
|
2
2
|
import { Attachment } from "./attachment.model";
|
|
3
3
|
import { AddAttachmentResponse } from "./comment-actions.data.model";
|
|
4
4
|
import { CommentAnnotation, UpdateContextConfig } from "./comment-annotation.data.model";
|
|
5
|
+
import { CommentSidebarCustomActionEventData } from "./comment-sidebar-config.model";
|
|
5
6
|
import { Comment } from "./comment.data.model";
|
|
6
7
|
import { CustomPriority, CustomStatus } from "./custom-filter.data.model";
|
|
7
8
|
import { VeltEventMetadata } from "./event-metadata.data.model";
|
|
@@ -74,6 +75,8 @@ export type CommentEventTypesMap = {
|
|
|
74
75
|
[CommentEventTypes.ADD_REACTION]: AddReactionEvent;
|
|
75
76
|
[CommentEventTypes.DELETE_REACTION]: DeleteReactionEvent;
|
|
76
77
|
[CommentEventTypes.TOGGLE_REACTION]: ToggleReactionEvent;
|
|
78
|
+
[CommentEventTypes.COMMENT_SIDEBAR_INIT]: CommentSidebarCustomActionEventData;
|
|
79
|
+
[CommentEventTypes.COMMENT_SIDEBAR_DATA]: CommentSidebarCustomActionEventData;
|
|
77
80
|
};
|
|
78
81
|
export interface AddAttachmentEvent {
|
|
79
82
|
annotationId: string;
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -39,8 +39,14 @@ export declare const CommentEventTypes: {
|
|
|
39
39
|
readonly ADD_REACTION: "addReaction";
|
|
40
40
|
readonly DELETE_REACTION: "deleteReaction";
|
|
41
41
|
readonly TOGGLE_REACTION: "toggleReaction";
|
|
42
|
+
readonly COMMENT_SIDEBAR_INIT: "commentSidebarInit";
|
|
43
|
+
readonly COMMENT_SIDEBAR_DATA: "commentSidebarData";
|
|
44
|
+
};
|
|
45
|
+
export declare const CoreEventTypes: {
|
|
46
|
+
readonly CLICK_VELT_BUTTON: "clickVeltButton";
|
|
42
47
|
};
|
|
43
48
|
export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
|
|
49
|
+
export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
|
|
44
50
|
export declare enum TagStatus {
|
|
45
51
|
ADDED = "added",
|
|
46
52
|
UPDATED = "updated",
|
package/models.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './app/models/data/comment-events.data.model';
|
|
|
8
8
|
export * from './app/models/data/comment.data.model';
|
|
9
9
|
export * from './app/models/data/comment-actions.data.model';
|
|
10
10
|
export * from './app/models/data/config.data.model';
|
|
11
|
+
export * from './app/models/data/core-events.data.model';
|
|
11
12
|
export * from './app/models/data/cursor-position.data.model';
|
|
12
13
|
export * from './app/models/data/cursor-user.data.model';
|
|
13
14
|
export * from './app/models/data/custom-css.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types-dev",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.252",
|
|
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": [
|