@veltdev/sdk 5.0.0-beta.1 → 5.0.0-beta.2
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.
|
@@ -79,6 +79,7 @@ export type CommentEventTypesMap = {
|
|
|
79
79
|
[CommentEventTypes.COMMENT_SIDEBAR_DATA_UPDATE]: CommentSidebarDataUpdateEvent;
|
|
80
80
|
[CommentEventTypes.AUTOCOMPLETE_SEARCH]: AutocompleteSearchEvent;
|
|
81
81
|
[CommentEventTypes.COMPOSER_CLICKED]: ComposerClickedEvent;
|
|
82
|
+
[CommentEventTypes.COMPOSER_TEXT_CHANGE]: ComposerTextChangeEvent;
|
|
82
83
|
[CommentEventTypes.LINK_CLICKED]: LinkClickedEvent;
|
|
83
84
|
[CommentEventTypes.COMMENT_PIN_CLICKED]: CommentPinClickedEvent;
|
|
84
85
|
[CommentEventTypes.COMMENT_BUBBLE_CLICKED]: CommentBubbleClickedEvent;
|
|
@@ -270,3 +271,7 @@ export interface CommentBubbleClickedEvent {
|
|
|
270
271
|
commentAnnotation: CommentAnnotation;
|
|
271
272
|
metadata?: VeltEventMetadata;
|
|
272
273
|
}
|
|
274
|
+
export interface ComposerTextChangeEvent {
|
|
275
|
+
text: string;
|
|
276
|
+
metadata?: VeltEventMetadata;
|
|
277
|
+
}
|
|
@@ -53,6 +53,14 @@ export declare class Config {
|
|
|
53
53
|
* The domain of the API proxy.
|
|
54
54
|
*/
|
|
55
55
|
apiProxyDomain?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Controls whether global Velt styles are loaded.
|
|
58
|
+
* When true (default), global styles are applied.
|
|
59
|
+
* When false, global styles are not loaded - useful for custom styling.
|
|
60
|
+
*
|
|
61
|
+
* Default: true
|
|
62
|
+
*/
|
|
63
|
+
globalStyles?: boolean;
|
|
56
64
|
}
|
|
57
65
|
export interface ExtendedFirebaseOptions extends FirebaseOptions {
|
|
58
66
|
storeDbId: string;
|
|
@@ -1264,6 +1264,13 @@ export declare class CommentElement {
|
|
|
1264
1264
|
*/
|
|
1265
1265
|
public disableScreenshot: () => void;
|
|
1266
1266
|
|
|
1267
|
+
/**
|
|
1268
|
+
* To programmatically submit a comment from a velt-comment-composer.
|
|
1269
|
+
* Finds the composer within the element identified by referenceId and submits its content.
|
|
1270
|
+
* @param referenceId The ID of the HTML element containing the velt-comment-composer
|
|
1271
|
+
*/
|
|
1272
|
+
public submitComment: (referenceId: string) => void;
|
|
1273
|
+
|
|
1267
1274
|
/**
|
|
1268
1275
|
* To enable paginated contact list
|
|
1269
1276
|
*/
|
|
@@ -2526,4 +2533,11 @@ export declare class CommentElement {
|
|
|
2526
2533
|
* To disable paginated contact list
|
|
2527
2534
|
*/
|
|
2528
2535
|
private _disablePaginatedContactList;
|
|
2536
|
+
|
|
2537
|
+
/**
|
|
2538
|
+
* To programmatically submit a comment from a velt-comment-composer.
|
|
2539
|
+
* Finds the composer within the element identified by referenceId and submits its content.
|
|
2540
|
+
* @param referenceId The ID of the HTML element containing the velt-comment-composer
|
|
2541
|
+
*/
|
|
2542
|
+
private _submitComment;
|
|
2529
2543
|
}
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare const CommentEventTypes: {
|
|
|
54
54
|
readonly COMMENT_SIDEBAR_DATA_UPDATE: "commentSidebarDataUpdate";
|
|
55
55
|
readonly AUTOCOMPLETE_SEARCH: "autocompleteSearch";
|
|
56
56
|
readonly COMPOSER_CLICKED: "composerClicked";
|
|
57
|
+
readonly COMPOSER_TEXT_CHANGE: "composerTextChange";
|
|
57
58
|
readonly LINK_CLICKED: "linkClicked";
|
|
58
59
|
readonly COMMENT_PIN_CLICKED: "commentPinClicked";
|
|
59
60
|
readonly COMMENT_BUBBLE_CLICKED: "commentBubbleClicked";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.2",
|
|
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": [
|