@veltdev/sdk-staging 5.0.2-beta.9 → 5.0.2-beta.90

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.
Files changed (53) hide show
  1. package/app/client/snippyly.model.d.ts +34 -1
  2. package/app/models/data/activity-resolver.data.model.d.ts +27 -0
  3. package/app/models/data/activity.data.model.d.ts +181 -0
  4. package/app/models/data/agent-suggestion.data.model.d.ts +57 -0
  5. package/app/models/data/attachment-resolver.data.model.d.ts +2 -2
  6. package/app/models/data/attachment.model.d.ts +1 -0
  7. package/app/models/data/autocomplete.data.model.d.ts +4 -3
  8. package/app/models/data/base-metadata.data.model.d.ts +3 -0
  9. package/app/models/data/comment-actions.data.model.d.ts +14 -0
  10. package/app/models/data/comment-annotation.data.model.d.ts +66 -2
  11. package/app/models/data/comment-events.data.model.d.ts +27 -2
  12. package/app/models/data/comment-resolver.data.model.d.ts +3 -3
  13. package/app/models/data/comment-sidebar-config.model.d.ts +2 -0
  14. package/app/models/data/comment.data.model.d.ts +18 -0
  15. package/app/models/data/config.data.model.d.ts +26 -0
  16. package/app/models/data/core-events.data.model.d.ts +72 -0
  17. package/app/models/data/crdt.data.model.d.ts +51 -0
  18. package/app/models/data/document-paths.data.model.d.ts +1 -0
  19. package/app/models/data/document.data.model.d.ts +2 -0
  20. package/app/models/data/live-state-events.data.model.d.ts +6 -0
  21. package/app/models/data/notification-resolver.data.model.d.ts +39 -0
  22. package/app/models/data/notification.model.d.ts +24 -0
  23. package/app/models/data/page-info.model.d.ts +9 -0
  24. package/app/models/data/presence-user.data.model.d.ts +5 -0
  25. package/app/models/data/provider.data.model.d.ts +6 -0
  26. package/app/models/data/reaction-annotation.data.model.d.ts +5 -0
  27. package/app/models/data/reaction-resolver.data.model.d.ts +3 -3
  28. package/app/models/data/recorder-annotation.data.model.d.ts +11 -0
  29. package/app/models/data/recorder-events.data.model.d.ts +3 -0
  30. package/app/models/data/recorder-resolver.data.model.d.ts +58 -0
  31. package/app/models/data/resolver.data.model.d.ts +1 -0
  32. package/app/models/data/rewriter-events.data.model.d.ts +44 -0
  33. package/app/models/data/suggestion-events.data.model.d.ts +57 -0
  34. package/app/models/data/suggestion.data.model.d.ts +267 -0
  35. package/app/models/data/user-resolver.data.model.d.ts +2 -0
  36. package/app/models/data/user.data.model.d.ts +49 -0
  37. package/app/models/element/activity-element.model.d.ts +33 -0
  38. package/app/models/element/comment-element.model.d.ts +52 -8
  39. package/app/models/element/crdt-element.model.d.ts +88 -1
  40. package/app/models/element/notification-element.model.d.ts +15 -1
  41. package/app/models/element/presence-element.model.d.ts +25 -0
  42. package/app/models/element/rewriter-element.model.d.ts +20 -0
  43. package/app/models/element/suggestion-element.model.d.ts +180 -0
  44. package/app/utils/console.d.ts +25 -0
  45. package/app/utils/constants.d.ts +255 -0
  46. package/app/utils/enums.d.ts +42 -5
  47. package/app/utils/page-info-store.d.ts +29 -0
  48. package/environments/environment.d.ts +48 -0
  49. package/models.d.ts +8 -0
  50. package/package.json +1 -1
  51. package/types.d.ts +3 -0
  52. package/velt.css +1 -1
  53. package/velt.js +131 -142
@@ -14,7 +14,9 @@ export declare enum CommentStatus {
14
14
  REACTION_ADDED = "reactionAdded",
15
15
  REACTION_DELETED = "reactionDeleted",
16
16
  SUBSCRIBED = "subscribed",
17
- UNSUBSCRIBED = "unsubscribed"
17
+ UNSUBSCRIBED = "unsubscribed",
18
+ SUGGESTION_ACCEPTED = "suggestionAccepted",
19
+ SUGGESTION_REJECTED = "suggestionRejected"
18
20
  }
19
21
  export declare enum ResolverActions {
20
22
  COMMENT_ANNOTATION_ADD = "comment_annotation.add",
@@ -25,7 +27,11 @@ export declare enum ResolverActions {
25
27
  REACTION_ADD = "reaction.add",
26
28
  REACTION_DELETE = "reaction.delete",
27
29
  ATTACHMENT_ADD = "attachment.add",
28
- ATTACHMENT_DELETE = "attachment.delete"
30
+ ATTACHMENT_DELETE = "attachment.delete",
31
+ RECORDER_ANNOTATION_ADD = "recorder_annotation.add",
32
+ RECORDER_ANNOTATION_UPDATE = "recorder_annotation.update",
33
+ RECORDER_ANNOTATION_DELETE = "recorder_annotation.delete",
34
+ ACTIVITY_SAVE = "activity.save"
29
35
  }
30
36
  export declare const CommentEventTypes: {
31
37
  readonly ADD_COMMENT_ANNOTATION: "addCommentAnnotation";
@@ -42,6 +48,7 @@ export declare const CommentEventTypes: {
42
48
  readonly UPDATE_ACCESS: "updateAccess";
43
49
  readonly RESOLVE_COMMENT: "resolveComment";
44
50
  readonly ADD_COMMENT: "addComment";
51
+ readonly ADD_COMMENT_DRAFT: "addCommentDraft";
45
52
  readonly UPDATE_COMMENT: "updateComment";
46
53
  readonly DELETE_COMMENT: "deleteComment";
47
54
  readonly ADD_ATTACHMENT: "addAttachment";
@@ -67,6 +74,8 @@ export declare const CommentEventTypes: {
67
74
  readonly COMMENT_SAVED: "commentSaved";
68
75
  readonly COMMENT_SAVE_TRIGGERED: "commentSaveTriggered";
69
76
  readonly VISIBILITY_OPTION_CLICKED: "visibilityOptionClicked";
77
+ readonly SUGGESTION_ACCEPTED: "suggestionAccepted";
78
+ readonly SUGGESTION_REJECTED: "suggestionRejected";
70
79
  };
71
80
  export declare const RecorderEventTypes: {
72
81
  readonly TRANSCRIPTION_DONE: "transcriptionDone";
@@ -80,6 +89,18 @@ export declare const RecorderEventTypes: {
80
89
  readonly RECORDING_RESUMED: "recordingResumed";
81
90
  readonly RECORDING_CANCELLED: "recordingCancelled";
82
91
  readonly RECORDING_STOPPED: "recordingStopped";
92
+ readonly RECORDING_DONE_LOCAL: "recordingDoneLocal";
93
+ };
94
+ export declare const RewriterEventTypes: {
95
+ readonly TEXT_SELECTED: "textSelected";
96
+ };
97
+ export declare const SuggestionEventTypes: {
98
+ readonly SUGGESTION_CREATED: "suggestionCreated";
99
+ readonly SUGGESTION_APPROVED: "suggestionApproved";
100
+ readonly SUGGESTION_REJECTED: "suggestionRejected";
101
+ readonly SUGGESTION_STALE: "suggestionStale";
102
+ readonly TARGET_EDIT_START: "targetEditStart";
103
+ readonly TARGET_EDIT_COMMIT: "targetEditCommit";
83
104
  };
84
105
  export declare const CoreEventTypes: {
85
106
  readonly PERMISSION_PROVIDER: "permissionProvider";
@@ -87,6 +108,9 @@ export declare const CoreEventTypes: {
87
108
  readonly COMMENT_RESOLVER: "commentResolver";
88
109
  readonly ATTACHMENT_RESOLVER: "attachmentResolver";
89
110
  readonly REACTION_RESOLVER: "reactionResolver";
111
+ readonly RECORDER_RESOLVER: "recorderResolver";
112
+ readonly NOTIFICATION_RESOLVER: "notificationResolver";
113
+ readonly ACTIVITY_RESOLVER: "activityResolver";
90
114
  readonly VELT_BUTTON_CLICK: "veltButtonClick";
91
115
  readonly USER_UPDATE: "userUpdate";
92
116
  readonly INIT_UPDATE: "initUpdate";
@@ -118,6 +142,8 @@ export type CoreEventType = typeof CoreEventTypes[keyof typeof CoreEventTypes];
118
142
  export type LiveStateSyncEventType = typeof LiveStateSyncEventTypes[keyof typeof LiveStateSyncEventTypes];
119
143
  export type PresenceEventType = typeof PresenceEventTypes[keyof typeof PresenceEventTypes];
120
144
  export type NotificationEventType = typeof NotificationEventTypes[keyof typeof NotificationEventTypes];
145
+ export type RewriterEventType = typeof RewriterEventTypes[keyof typeof RewriterEventTypes];
146
+ export type SuggestionEventType = typeof SuggestionEventTypes[keyof typeof SuggestionEventTypes];
121
147
  export type CrdtEventType = typeof CrdtEventTypes[keyof typeof CrdtEventTypes];
122
148
  export declare enum TagStatus {
123
149
  ADDED = "added",
@@ -172,7 +198,8 @@ export declare enum Features {
172
198
  REWRITER = "rewriter",
173
199
  LIVE_SELECTION = "liveSelection",
174
200
  NOTIFICATION = "notification",
175
- REACTION = "reaction"
201
+ REACTION = "reaction",
202
+ ACTIVITY = "activity"
176
203
  }
177
204
  export declare enum AnalyticsFeatures {
178
205
  AREA = "area",
@@ -194,7 +221,7 @@ export declare enum AnalyticsFeatures {
194
221
  INLINE_COMMENT = "inlineComment",
195
222
  COMMENT_SIDEBAR = "commentSidebar"
196
223
  }
197
- export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction' | 'multiThread';
224
+ export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction' | 'multiThread' | 'activity';
198
225
  export type AssignToType = 'dropdown' | 'checkbox';
199
226
  export declare enum DeviceType {
200
227
  DESKTOP = "Desktop",
@@ -263,7 +290,7 @@ export type RecorderType = 'audio' | 'video' | 'screen';
263
290
  export type RecorderFileFormat = 'mp3' | 'mp4' | 'webm';
264
291
  export type RecorderLayoutMode = 'floating' | 'thread';
265
292
  export type SupportedMimeType = 'audio' | 'video';
266
- export type FirebaseRegion = 'usCentral1' | 'asiaSouthEast1' | 'europeWest1';
293
+ export type FirebaseRegion = 'usCentral1' | 'asiaSouthEast1' | 'europeWest1' | 'australiaSouthEast1';
267
294
  export type VideoEventType = 'play' | 'pause' | 'ratechange' | 'seeked' | 'timeupdate' | 'volumechange';
268
295
  export type RewriterType = 'copywriter' | 'generic';
269
296
  export type RecorderStatusType = 'started' | 'paused' | 'resumed' | 'stopped' | 'error' | null;
@@ -313,3 +340,13 @@ export type NotificationSettingsItemType = 'ALL' | 'MINE' | 'NONE' | string;
313
340
  * Type for notification settings layout
314
341
  */
315
342
  export type NotificationSettingsLayout = 'accordion' | 'dropdown';
343
+ /**
344
+ * Enum for comment visibility options in the visibility banner dropdown
345
+ */
346
+ export declare enum CommentVisibilityOption {
347
+ RESTRICTED_SELF = "restrictedSelf",
348
+ RESTRICTED_SELECTED_PEOPLE = "restrictedSelectedPeople",
349
+ ORGANIZATION_PRIVATE = "organizationPrivate",
350
+ PUBLIC = "public"
351
+ }
352
+ export type CommentVisibilityOptionType = `${CommentVisibilityOption}`;
@@ -0,0 +1,29 @@
1
+ import type { PageInfo } from "../models/data/page-info.model";
2
+ /**
3
+ * Register a resolver that returns the current client document id.
4
+ * Used to pick the right per-document override when no explicit document id is passed.
5
+ */
6
+ export declare const registerCurrentClientDocumentIdGetter: (getter: () => string | number | undefined | null) => void;
7
+ /**
8
+ * Set client-provided page info.
9
+ * @param pageInfo page info provided by the client
10
+ * @param documentId optional client document id; when omitted, sets the global override
11
+ */
12
+ export declare const setClientPageInfo: (pageInfo: Partial<PageInfo> | undefined | null, documentId?: string | number) => void;
13
+ /**
14
+ * Clear client-provided page info.
15
+ * @param documentId optional client document id; when omitted, clears the global override
16
+ */
17
+ export declare const clearClientPageInfo: (documentId?: string | number) => void;
18
+ /**
19
+ * Get the client-provided page info that applies for the given (or current) document.
20
+ * Per-document override wins; otherwise falls back to the global override.
21
+ * @param documentId optional client document id; when omitted, resolves the current document
22
+ * @returns client page info, or undefined when the client has not provided any
23
+ */
24
+ export declare const getClientPageInfo: (documentId?: string | number) => Partial<PageInfo> | undefined;
25
+ /**
26
+ * Reset all client page info and the registered document-id resolver.
27
+ * Intended for tests.
28
+ */
29
+ export declare const resetClientPageInfo: () => void;
@@ -0,0 +1,48 @@
1
+ export declare const environment: {
2
+ production: boolean;
3
+ staging: boolean;
4
+ firebaseLogLevel: string;
5
+ firebaseConfig: {
6
+ apiKey: string;
7
+ authDomain: string;
8
+ projectId: string;
9
+ storageBucket: string;
10
+ messagingSenderId: string;
11
+ appId: string;
12
+ };
13
+ firebaseNotificationsDatabaseURL: string;
14
+ segmentAnalyticsWriteKey: string;
15
+ useEmulators: boolean;
16
+ debugMode: boolean;
17
+ cloudFunction: {
18
+ sa: string;
19
+ getIceServers: string;
20
+ validateClient: string;
21
+ convertRecording: string;
22
+ chatgptCompletion: string;
23
+ rewriterAskAi: string;
24
+ whisperTranscription: string;
25
+ getPlanDetails: string;
26
+ getAllowedDocuments: string;
27
+ getNotificationsForDocuments: string;
28
+ videoBackend: string;
29
+ processRecording: string;
30
+ sdkProxy: string;
31
+ screenshot: string;
32
+ usCentral1: {
33
+ setEncryptedData: string;
34
+ };
35
+ asiaSouthEast1: {
36
+ setEncryptedData: string;
37
+ };
38
+ europeWest1: {
39
+ setEncryptedData: string;
40
+ };
41
+ asiaNorthEast1: {
42
+ setEncryptedData: string;
43
+ };
44
+ australiaSouthEast1: {
45
+ setEncryptedData: string;
46
+ };
47
+ };
48
+ };
package/models.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  export * from './app/utils/enums';
2
2
  export * from './app/models/data/anchor-record.data.model';
3
3
  export * from './app/models/data/attachment.model';
4
+ export * from './app/models/data/activity.data.model';
4
5
  export * from './app/models/data/area-annotation.data.model';
5
6
  export * from './app/models/data/arrow-annotation.data.model';
7
+ export * from './app/models/data/agent-suggestion.data.model';
6
8
  export * from './app/models/data/base-metadata.data.model';
7
9
  export * from './app/models/data/button.data.model';
8
10
  export * from './app/models/data/chatgpt.data.model';
@@ -37,6 +39,7 @@ export * from './app/models/data/location.model';
37
39
  export * from './app/models/data/media-preview-config.data.model';
38
40
  export * from './app/models/data/multi-thread.data.model';
39
41
  export * from './app/models/data/notification.model';
42
+ export * from './app/models/data/notification-resolver.data.model';
40
43
  export * from './app/models/data/notifications-events.data.model';
41
44
  export * from './app/models/data/page-info.model';
42
45
  export * from './app/models/data/permission.data.model';
@@ -47,6 +50,9 @@ export * from './app/models/data/recorder.model';
47
50
  export * from './app/models/data/recorder-annotation.data.model';
48
51
  export * from './app/models/data/recorder-events.data.model';
49
52
  export * from './app/models/data/rewriter-annotation.data.model';
53
+ export * from './app/models/data/rewriter-events.data.model';
54
+ export * from './app/models/data/suggestion.data.model';
55
+ export * from './app/models/data/suggestion-events.data.model';
50
56
  export * from './app/models/data/screen-size.data.model';
51
57
  export * from './app/models/data/screenshot.data.model';
52
58
  export * from './app/models/data/selection.model';
@@ -71,7 +77,9 @@ export * from './app/models/data/views.data.model';
71
77
  export * from './app/models/data/autocomplete.data.model';
72
78
  export * from './app/models/data/reaction-annotation.data.model';
73
79
  export * from './app/models/data/reaction-resolver.data.model';
80
+ export * from './app/models/data/recorder-resolver.data.model';
74
81
  export * from './app/models/data/attachment-resolver.data.model';
82
+ export * from './app/models/data/activity-resolver.data.model';
75
83
  export * from './app/models/data/reaction.data.model';
76
84
  export * from './app/models/data/organization-groups.data.model';
77
85
  export * from './app/models/data/organization-metadata.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk-staging",
3
- "version": "5.0.2-beta.9",
3
+ "version": "5.0.2-beta.90",
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
@@ -14,7 +14,10 @@ export * from './app/models/element/selection-element.model';
14
14
  export * from './app/models/element/tag-element.model';
15
15
  export * from './app/models/element/views-element.model';
16
16
  export * from './app/models/element/notification-element.model';
17
+ export * from './app/models/element/cross-organization-config.model';
17
18
  export * from './app/models/element/autocomplete-element.model';
18
19
  export * from './app/models/element/reaction-element.model';
19
20
  export * from './app/models/element/crdt-element.model';
21
+ export * from './app/models/element/activity-element.model';
22
+ export * from './app/models/element/suggestion-element.model';
20
23
  export * from './models';
package/velt.css CHANGED
@@ -1 +1 @@
1
- html{--velt-base-rem-unit: 1}*[data-snippyly-element=true],*[data-velt-element=true]{font-family:var(--velt-default-font-family)}velt-wireframe{display:none!important}
1
+ html{--velt-base-rem-unit: 1;background-color:#000}*[data-snippyly-element=true],*[data-velt-element=true]{font-family:var(--velt-default-font-family)}velt-wireframe{display:none!important}body.velt-pin-dragging iframe{pointer-events:none!important}