@veltdev/sdk-staging 4.4.0-beta.28 → 4.4.0-beta.3

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,7 +30,6 @@ 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";
34
33
 
35
34
  export declare class Snippyly {
36
35
  constructor();
@@ -311,9 +310,4 @@ export declare class Snippyly {
311
310
  * To disable logs.
312
311
  */
313
312
  disableLogs: (config?: DisableLogsConfig) => void;
314
-
315
- /**
316
- * To reset the button toggle map.
317
- */
318
- resetVeltButtonState: (config?: VeltResetButtonStateConfig) => void;
319
313
  }
@@ -6,10 +6,6 @@ export declare class Attachment {
6
6
  * Auto generated.
7
7
  */
8
8
  attachmentId: number;
9
- /**
10
- * To check if attachment resolver is used
11
- */
12
- isAttachmentResolverUsed?: boolean;
13
9
  /**
14
10
  * File name
15
11
  */
@@ -44,9 +40,3 @@ export declare class Attachment {
44
40
  */
45
41
  mimeType?: any;
46
42
  }
47
- export interface UploadFileOptions {
48
- path: string;
49
- file: File;
50
- useAttachmentResolver?: boolean;
51
- metadata?: any;
52
- }
@@ -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?: VeltButtonContext;
8
- metadata?: VeltEventMetadata;
7
+ buttonContext: VeltButtonContext;
8
+ metadata: VeltEventMetadata;
9
9
  }
10
10
  export interface VeltButtonContext {
11
11
  type?: string;
@@ -28,7 +28,3 @@ export interface VeltButtonSelectionMap {
28
28
  [buttonId: string]: boolean;
29
29
  };
30
30
  }
31
- export interface VeltResetButtonStateConfig {
32
- id?: string;
33
- group?: string;
34
- }
@@ -86,7 +86,6 @@ export interface AddCommentRequest {
86
86
  annotationId: string;
87
87
  comment: Comment;
88
88
  assignedTo?: User;
89
- assigned?: boolean;
90
89
  options?: RequestOptions;
91
90
  }
92
91
  export interface UpdateCommentRequest {
@@ -1,5 +1,4 @@
1
1
  import { ResolverActions } from "../../utils/enums";
2
- import { PartialAttachment } from "./attachment-resolver.data.model";
3
2
  import { BaseMetadata } from "./base-metadata.data.model";
4
3
  import { CommentAnnotation } from "./comment-annotation.data.model";
5
4
  import { ResolverConfig, ResolverResponse } from "./resolver.data.model";
@@ -26,16 +25,12 @@ export interface SaveCommentResolverRequest {
26
25
  [key: string]: PartialCommentAnnotation;
27
26
  };
28
27
  event?: ResolverActions;
29
- metadata?: BaseMetadata;
30
28
  commentId?: string;
31
29
  }
32
30
  export interface PartialComment {
33
31
  commentId: string | number;
34
32
  commentHtml?: string;
35
33
  commentText?: string;
36
- attachments?: {
37
- [attachmentId: number]: PartialAttachment;
38
- };
39
34
  }
40
35
  export interface PartialCommentAnnotationResult {
41
36
  strippedData: {
@@ -20,12 +20,6 @@ export declare class LiveStateData {
20
20
  tabId?: string | null;
21
21
  isDataStringified?: boolean;
22
22
  }
23
- export declare class SetLiveStateDataConfig {
24
- /**
25
- * To merge data with existing data.
26
- */
27
- merge?: boolean;
28
- }
29
23
  export declare class SingleEditorLiveStateData {
30
24
  editor?: User | null;
31
25
  requestEditorAccess?: {
@@ -1,10 +1,8 @@
1
1
  import { CommentAnnotationDataProvider } from "./comment-resolver.data.model";
2
- import { AttachmentDataProvider } from "./attachment-resolver.data.model";
3
2
  import { ReactionAnnotationDataProvider } from "./reaction-resolver.data.model";
4
3
  import { UserDataProvider } from "./user-resolver.data.model";
5
4
  export interface VeltDataProvider {
6
5
  comment?: CommentAnnotationDataProvider;
7
6
  user?: UserDataProvider;
8
7
  reaction?: ReactionAnnotationDataProvider;
9
- attachment?: AttachmentDataProvider;
10
8
  }
@@ -24,7 +24,6 @@ export interface SaveReactionResolverRequest {
24
24
  reactionAnnotation: {
25
25
  [key: string]: PartialReactionAnnotation;
26
26
  };
27
- metadata?: BaseMetadata;
28
27
  event?: ResolverActions;
29
28
  }
30
29
  export interface PartialReactionAnnotationResult {
@@ -2,7 +2,6 @@ export interface ResolverConfig {
2
2
  resolveTimeout?: number;
3
3
  saveRetryConfig?: RetryConfig;
4
4
  deleteRetryConfig?: RetryConfig;
5
- getRetryConfig?: RetryConfig;
6
5
  }
7
6
  export interface ResolverResponse<T> {
8
7
  data?: T;
@@ -1112,26 +1112,6 @@ export declare class CommentElement {
1112
1112
  * To disable full expanded
1113
1113
  */
1114
1114
  public disableFullExpanded: () => void;
1115
-
1116
- /**
1117
- * To enable comment to nearest allowed element
1118
- */
1119
- public enableCommentToNearestAllowedElement: () => void;
1120
-
1121
- /**
1122
- * To disable comment to nearest allowed element
1123
- */
1124
- public disableCommentToNearestAllowedElement: () => void;
1125
-
1126
- /**
1127
- * To enable draft mode
1128
- */
1129
- public enableDraftMode: () => void;
1130
-
1131
- /**
1132
- * To disable draft mode
1133
- */
1134
- public disableDraftMode: () => void;
1135
1115
  constructor();
1136
1116
  /**
1137
1117
  * Subscribe to comments on the current document.
@@ -2226,24 +2206,4 @@ export declare class CommentElement {
2226
2206
  * To disable full expanded
2227
2207
  */
2228
2208
  private _disableFullExpanded;
2229
-
2230
- /**
2231
- * To enable comment to nearest allowed element
2232
- */
2233
- private _enableCommentToNearestAllowedElement;
2234
-
2235
- /**
2236
- * To disable comment to nearest allowed element
2237
- */
2238
- private _disableCommentToNearestAllowedElement;
2239
-
2240
- /**
2241
- * To enable draft mode
2242
- */
2243
- private _enableDraftMode;
2244
-
2245
- /**
2246
- * To disable draft mode
2247
- */
2248
- private _disableDraftMode;
2249
2209
  }
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import { SingleEditorConfig, UserEditorAccess, EditorAccessTimer, LiveStateDataConfig, SetLiveStateDataConfig } from '../data/live-state-data.data.model';
2
+ import { SingleEditorConfig, UserEditorAccess, EditorAccessTimer, LiveStateDataConfig, LiveStateDataConfig } from '../data/live-state-data.data.model';
3
3
  import { User } from '../data/user.data.model';
4
4
  import { ServerConnectionState } from '../../utils/enums';
5
5
 
@@ -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: <T = unknown>(liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<T>;
14
+ getLiveStateData: (liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<any>;
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$: <T = unknown>(liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<T>;
20
+ getLiveStateData$: (liveStateDataId?: string, liveStateDataConfig?: LiveStateDataConfig) => Observable<any>;
21
21
 
22
22
  /**
23
23
  * Sets live state data for the provided ID and data.
24
24
  */
25
- setLiveStateData: <T = unknown>(liveStateDataId: string, liveStateData: T, config?: SetLiveStateDataConfig) => Promise<void>;
25
+ setLiveStateData: (liveStateDataId: string, liveStateData: any) => any;
26
26
 
27
27
  /**
28
28
  * Enables the single editor mode.
@@ -38,12 +38,12 @@ export declare class LiveStateSyncElement {
38
38
  * Checks if the current user is an editor. Returns an observable.
39
39
  * @deprecated Use `isUserEditor` instead
40
40
  */
41
- isUserEditor$: () => Observable<UserEditorAccess | null | undefined>;
41
+ isUserEditor$: () => Observable<UserEditorAccess | null>;
42
42
 
43
43
  /**
44
44
  * Checks if the current user is an editor. Returns an observable.
45
45
  */
46
- isUserEditor: () => Observable<UserEditorAccess | null | undefined>;
46
+ isUserEditor: () => Observable<UserEditorAccess | null>;
47
47
 
48
48
  /**
49
49
  * To get editor
@@ -248,7 +248,6 @@ export declare class Constants {
248
248
  VELT_COMMENT_COMPOSER: string;
249
249
  VELT_SKELETON_LOADER: string;
250
250
  VELT_SHADOW_DOM_INTERNAL: string;
251
- VELT_SINGLE_EDITOR_MODE_PANEL: string;
252
251
  };
253
252
  static ATTRIBUTES: {
254
253
  VELT_COMMENT_CONTAINER: string;
@@ -23,9 +23,7 @@ export declare enum ResolverActions {
23
23
  COMMENT_DELETE = "comment.delete",
24
24
  COMMENT_UPDATE = "comment.update",
25
25
  REACTION_ADD = "reaction.add",
26
- REACTION_DELETE = "reaction.delete",
27
- ATTACHMENT_ADD = "attachment.add",
28
- ATTACHMENT_DELETE = "attachment.delete"
26
+ REACTION_DELETE = "reaction.delete"
29
27
  }
30
28
  export declare const CommentEventTypes: {
31
29
  readonly ADD_COMMENT_ANNOTATION: "addCommentAnnotation";
@@ -121,26 +119,6 @@ export declare enum Features {
121
119
  NOTIFICATION = "notification",
122
120
  REACTION = "reaction"
123
121
  }
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
- COMMENT_SIDEBAR = "commentSidebar"
143
- }
144
122
  export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction' | 'multiThread';
145
123
  export declare enum DeviceType {
146
124
  DESKTOP = "Desktop",
package/models.d.ts CHANGED
@@ -64,7 +64,6 @@ export * from './app/models/data/views.data.model';
64
64
  export * from './app/models/data/autocomplete.data.model';
65
65
  export * from './app/models/data/reaction-annotation.data.model';
66
66
  export * from './app/models/data/reaction-resolver.data.model';
67
- export * from './app/models/data/attachment-resolver.data.model';
68
67
  export * from './app/models/data/reaction.data.model';
69
68
  export * from './app/models/data/organization-groups.data.model';
70
69
  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": "4.4.0-beta.28",
3
+ "version": "4.4.0-beta.3",
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": [