@veltdev/sdk 4.4.0-beta.3 → 4.4.0-beta.5
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.
|
@@ -30,6 +30,7 @@ import { Document, SetDocumentsRequestOptions, FetchDocumentsRequest, FetchFolde
|
|
|
30
30
|
import { FetchDocumentsResponse, FetchFoldersResponse } from "../models/data/document-events.data.model";
|
|
31
31
|
import { UserDataProvider } from "../models/data/user-resolver.data.model";
|
|
32
32
|
import { VeltDataProvider } from "../models/data/provider.data.model";
|
|
33
|
+
import { VeltResetButtonStateConfig } from "../models/data/button.data.model";
|
|
33
34
|
|
|
34
35
|
export declare class Snippyly {
|
|
35
36
|
constructor();
|
|
@@ -310,4 +311,9 @@ export declare class Snippyly {
|
|
|
310
311
|
* To disable logs.
|
|
311
312
|
*/
|
|
312
313
|
disableLogs: (config?: DisableLogsConfig) => void;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* To reset the button toggle map.
|
|
317
|
+
*/
|
|
318
|
+
resetVeltButtonState: (config?: VeltResetButtonStateConfig) => void;
|
|
313
319
|
}
|
|
@@ -4,8 +4,8 @@ import { Comment } from "./comment.data.model";
|
|
|
4
4
|
import { VeltEventMetadata } from "./event-metadata.data.model";
|
|
5
5
|
import { Notification } from "./notification.model";
|
|
6
6
|
export interface VeltButtonClickEvent extends VeltButtonData {
|
|
7
|
-
buttonContext
|
|
8
|
-
metadata
|
|
7
|
+
buttonContext?: VeltButtonContext;
|
|
8
|
+
metadata?: VeltEventMetadata;
|
|
9
9
|
}
|
|
10
10
|
export interface VeltButtonContext {
|
|
11
11
|
type?: string;
|
|
@@ -28,3 +28,7 @@ export interface VeltButtonSelectionMap {
|
|
|
28
28
|
[buttonId: string]: boolean;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
+
export interface VeltResetButtonStateConfig {
|
|
32
|
+
id?: string;
|
|
33
|
+
group?: string;
|
|
34
|
+
}
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -121,6 +121,25 @@ export declare enum Features {
|
|
|
121
121
|
NOTIFICATION = "notification",
|
|
122
122
|
REACTION = "reaction"
|
|
123
123
|
}
|
|
124
|
+
export declare enum AnalyticsFeatures {
|
|
125
|
+
AREA = "area",
|
|
126
|
+
ARROW = "arrow",
|
|
127
|
+
AUDIO_HUDDLE = "audioHuddle",
|
|
128
|
+
COMMENT = "comment",
|
|
129
|
+
MULTI_THREAD = "multiThread",
|
|
130
|
+
CURSOR = "cursor",
|
|
131
|
+
HUDDLE = "huddle",
|
|
132
|
+
LIVE_STATE_SYNC = "liveStateSync",
|
|
133
|
+
PRESENCE = "presence",
|
|
134
|
+
TAG = "tag",
|
|
135
|
+
RECORDER = "recorder",
|
|
136
|
+
REWRITER = "rewriter",
|
|
137
|
+
LIVE_SELECTION = "liveSelection",
|
|
138
|
+
NOTIFICATION = "notification",
|
|
139
|
+
REACTION = "reaction",
|
|
140
|
+
AREA_COMMENT = "areaComment",
|
|
141
|
+
INLINE_COMMENT = "inlineComment"
|
|
142
|
+
}
|
|
124
143
|
export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction' | 'multiThread';
|
|
125
144
|
export declare enum DeviceType {
|
|
126
145
|
DESKTOP = "Desktop",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.4.0-beta.
|
|
3
|
+
"version": "4.4.0-beta.5",
|
|
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": [
|