@veltdev/types 5.0.0-beta.14 → 5.0.0-beta.16
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.
|
@@ -214,6 +214,32 @@ export interface ToggleReactionRequest {
|
|
|
214
214
|
};
|
|
215
215
|
options?: RequestOptions;
|
|
216
216
|
}
|
|
217
|
+
export interface SubmitCommentRequest {
|
|
218
|
+
targetComposerElementId: string;
|
|
219
|
+
}
|
|
220
|
+
export interface ClearComposerRequest {
|
|
221
|
+
targetComposerElementId: string;
|
|
222
|
+
}
|
|
223
|
+
export interface GetComposerDataRequest {
|
|
224
|
+
targetComposerElementId: string;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* FormatConfig - Configuration for format options
|
|
228
|
+
*/
|
|
229
|
+
export interface FormatConfig {
|
|
230
|
+
bold?: {
|
|
231
|
+
enable: boolean;
|
|
232
|
+
};
|
|
233
|
+
italic?: {
|
|
234
|
+
enable: boolean;
|
|
235
|
+
};
|
|
236
|
+
underline?: {
|
|
237
|
+
enable: boolean;
|
|
238
|
+
};
|
|
239
|
+
strikethrough?: {
|
|
240
|
+
enable: boolean;
|
|
241
|
+
};
|
|
242
|
+
}
|
|
217
243
|
export interface FetchCommentAnnotationsRequest {
|
|
218
244
|
createdAfter?: number;
|
|
219
245
|
createdBefore?: number;
|
|
@@ -280,6 +280,8 @@ export interface CommentBubbleClickedEvent {
|
|
|
280
280
|
}
|
|
281
281
|
export interface ComposerTextChangeEvent {
|
|
282
282
|
text: string;
|
|
283
|
+
annotation: CommentAnnotation;
|
|
284
|
+
targetComposerElementId: string;
|
|
283
285
|
metadata?: VeltEventMetadata;
|
|
284
286
|
}
|
|
285
287
|
export interface AssignToConfig {
|
|
@@ -7,7 +7,7 @@ import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResp
|
|
|
7
7
|
import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig, UpdateContextConfig } from "../data/comment-annotation.data.model";
|
|
8
8
|
import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, AssignToConfig, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, ComposerTextChangeEvent, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, FetchCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetLinkEvent, PageModeComposerConfig, RejectCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent } from "../data/comment-events.data.model";
|
|
9
9
|
import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
|
|
10
|
-
import { CommentContextProvider, TransformContext, UnreadCommentsCount } from "../data/comment-utils.data.model";
|
|
10
|
+
import { CommentContextProvider, FormatConfig, TransformContext, UnreadCommentsCount } from "../data/comment-utils.data.model";
|
|
11
11
|
import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
|
|
12
12
|
import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
|
|
13
13
|
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
@@ -1314,6 +1314,22 @@ export declare class CommentElement {
|
|
|
1314
1314
|
*/
|
|
1315
1315
|
public disablePaginatedContactList: () => void;
|
|
1316
1316
|
|
|
1317
|
+
/**
|
|
1318
|
+
* To enable format options (bold, italic, underline, strikethrough)
|
|
1319
|
+
*/
|
|
1320
|
+
public enableFormatOptions: () => void;
|
|
1321
|
+
|
|
1322
|
+
/**
|
|
1323
|
+
* To disable format options
|
|
1324
|
+
*/
|
|
1325
|
+
public disableFormatOptions: () => void;
|
|
1326
|
+
|
|
1327
|
+
/**
|
|
1328
|
+
* Set format config to control which format options are enabled
|
|
1329
|
+
* @param config FormatConfig with enable flags for each format type
|
|
1330
|
+
*/
|
|
1331
|
+
public setFormatConfig: (config: FormatConfig) => void;
|
|
1332
|
+
|
|
1317
1333
|
/**
|
|
1318
1334
|
* Programmatically trigger comment submission for a composer with the given targetComposerElementId
|
|
1319
1335
|
* @param request SubmitCommentRequest containing targetComposerElementId
|
|
@@ -2594,6 +2610,19 @@ export declare class CommentElement {
|
|
|
2594
2610
|
* To disable paginated contact list
|
|
2595
2611
|
*/
|
|
2596
2612
|
private _disablePaginatedContactList;
|
|
2613
|
+
/**
|
|
2614
|
+
* To enable format options (bold, italic, underline, strikethrough)
|
|
2615
|
+
*/
|
|
2616
|
+
private _enableFormatOptions;
|
|
2617
|
+
/**
|
|
2618
|
+
* To disable format options
|
|
2619
|
+
*/
|
|
2620
|
+
private _disableFormatOptions;
|
|
2621
|
+
/**
|
|
2622
|
+
* To set format config to control which format options are enabled
|
|
2623
|
+
* @param config FormatConfig with enable flags for each format type
|
|
2624
|
+
*/
|
|
2625
|
+
private _setFormatConfig;
|
|
2597
2626
|
|
|
2598
2627
|
/**
|
|
2599
2628
|
* Programmatically trigger comment submission for a composer with the given targetComposerElementId
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.16",
|
|
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": [
|