@veltdev/sdk-staging 6.0.0-beta.2 → 6.0.0-beta.4
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.
- package/app/models/data/comment-events.data.model.d.ts +29 -0
- package/app/models/data/reaction-resolver.data.model.d.ts +1 -0
- package/app/utils/enums.d.ts +4 -0
- package/{chunk-BG6MNCDK.js → chunk-2CSNE6K3.js} +1 -1
- package/{chunk-JWLHBAMV.js → chunk-3HVKHN3C.js} +9 -9
- package/{chunk-XMYVEF74.js → chunk-4HTRJDUT.js} +1 -1
- package/{chunk-TXOYHDVN.js → chunk-4KHSKSMM.js} +1 -1
- package/{chunk-447SWJD2.js → chunk-4RKIO2W6.js} +1 -1
- package/{chunk-UJMFCXYS.js → chunk-62IPFSNC.js} +1 -1
- package/{chunk-YBQBSGLX.js → chunk-6YAEGDTT.js} +1 -1
- package/{chunk-2KJNXU43.js → chunk-6YU4HPC3.js} +1 -1
- package/{chunk-USRSVPHC.js → chunk-A7KXFTE5.js} +1 -1
- package/{chunk-WANCOUQO.js → chunk-AUXK5IGY.js} +1 -1
- package/{chunk-2HGBJS2C.js → chunk-BLOVLKDQ.js} +1 -1
- package/{chunk-5B5CQEDX.js → chunk-CAH7LK67.js} +1 -1
- package/{chunk-AVMLJMVU.js → chunk-DEKTLMP2.js} +1 -1
- package/{chunk-6SOP2T3L.js → chunk-EJCDV3ZL.js} +1 -1
- package/{chunk-AOHSD4YE.js → chunk-GG5L5Y4V.js} +1 -1
- package/{chunk-7W553TUZ.js → chunk-GUCATQJB.js} +1 -1
- package/{chunk-BY627CV6.js → chunk-GY4HESRT.js} +1 -1
- package/{chunk-SKP3Z3DQ.js → chunk-H4F2DT7C.js} +1 -1
- package/{chunk-SALUJBOS.js → chunk-HPCGJVBV.js} +1 -1
- package/{chunk-5FKOPJVO.js → chunk-HRMFENXY.js} +7 -7
- package/{chunk-25GEE4UD.js → chunk-I3QEZDJJ.js} +1 -1
- package/{chunk-BLIJMW4Z.js → chunk-JWZNY6MR.js} +1 -1
- package/{chunk-DX4SZFHQ.js → chunk-M6OYNJUV.js} +1 -1
- package/{chunk-ZVY2YW2G.js → chunk-NM7DOIHZ.js} +1 -1
- package/{chunk-Q7BPHHBS.js → chunk-NREV2I2E.js} +1 -1
- package/{chunk-7ZOGXD6Z.js → chunk-NVSEAZ7V.js} +1 -1
- package/{chunk-IXZIBE27.js → chunk-ONMQQFFH.js} +1 -1
- package/{chunk-APIRNTKO.js → chunk-OSPUUVRC.js} +1 -1
- package/{chunk-QE2MK6NF.js → chunk-S6BGMPB5.js} +1 -1
- package/{chunk-Y6QKEGWK.js → chunk-WEQZFWL6.js} +1 -1
- package/{chunk-N4SGYLNB.js → chunk-XQKUJSNO.js} +1 -1
- package/{chunk-JFRM6MNS.js → chunk-ZOEYUSVF.js} +1 -1
- package/{chunk-J6J7I3SW.js → chunk-ZOM7FOLY.js} +1 -1
- package/package.json +1 -1
- package/velt-activity-log.js +1 -1
- package/velt-area.js +1 -1
- package/velt-arrow.js +1 -1
- package/velt-comment.js +6 -6
- package/velt-crdt.js +1 -1
- package/velt-cursor.js +1 -1
- package/velt-huddle.js +1 -1
- package/velt-live-state-sync.js +1 -1
- package/velt-notification.js +1 -1
- package/velt-presence.js +1 -1
- package/velt-reaction.js +1 -1
- package/velt-recorder.js +1 -1
- package/velt-rewriter.js +1 -1
- package/velt-selection.js +1 -1
- package/velt-tag.js +1 -1
- package/velt-user-invite.js +1 -1
- package/velt-user-request.js +1 -1
- package/velt-video-player.js +1 -1
- package/velt-views.js +1 -1
- package/velt.js +2 -2
|
@@ -89,6 +89,10 @@ export type CommentEventTypesMap = {
|
|
|
89
89
|
[CommentEventTypes.COMMENT_TOOL_CLICKED]: CommentToolClickedEvent;
|
|
90
90
|
[CommentEventTypes.SIDEBAR_BUTTON_CLICK]: SidebarButtonClickEvent;
|
|
91
91
|
[CommentEventTypes.SIDEBAR_BUTTON_CLICKED]: SidebarButtonClickedEvent;
|
|
92
|
+
[CommentEventTypes.SIDEBAR_OPEN]: SidebarOpenEvent;
|
|
93
|
+
[CommentEventTypes.SIDEBAR_CLOSE]: SidebarCloseEvent;
|
|
94
|
+
[CommentEventTypes.COMMENT_CLICK]: CommentClickEvent;
|
|
95
|
+
[CommentEventTypes.COMMENT_NAVIGATION_BUTTON_CLICK]: CommentNavigationButtonClickEvent;
|
|
92
96
|
[CommentEventTypes.ATTACHMENT_DOWNLOAD_CLICKED]: AttachmentDownloadClickedEvent;
|
|
93
97
|
[CommentEventTypes.COMMENT_SAVED]: CommentSavedEvent;
|
|
94
98
|
[CommentEventTypes.COMMENT_SAVE_TRIGGERED]: CommentSaveTriggeredEvent;
|
|
@@ -347,6 +351,31 @@ export interface SidebarButtonClickEvent {
|
|
|
347
351
|
}
|
|
348
352
|
export interface SidebarButtonClickedEvent extends SidebarButtonClickEvent {
|
|
349
353
|
}
|
|
354
|
+
/** Fired when the comment sidebar opens. Subscribe via `commentElement.on('sidebarOpen')`. */
|
|
355
|
+
export interface SidebarOpenEvent {
|
|
356
|
+
metadata?: VeltEventMetadata;
|
|
357
|
+
}
|
|
358
|
+
/** Fired when the comment sidebar closes. Subscribe via `commentElement.on('sidebarClose')`. */
|
|
359
|
+
export interface SidebarCloseEvent {
|
|
360
|
+
metadata?: VeltEventMetadata;
|
|
361
|
+
}
|
|
362
|
+
/** Fired when a comment is clicked in the sidebar list. Subscribe via `commentElement.on('commentClick')`. */
|
|
363
|
+
export interface CommentClickEvent {
|
|
364
|
+
documentId?: string | null;
|
|
365
|
+
location?: Location | null;
|
|
366
|
+
targetElementId?: string | null;
|
|
367
|
+
context?: {
|
|
368
|
+
[key: string]: any;
|
|
369
|
+
};
|
|
370
|
+
annotation?: CommentAnnotation;
|
|
371
|
+
metadata?: VeltEventMetadata;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Fired when the navigation ("go to") button on a sidebar comment is clicked.
|
|
375
|
+
* Subscribe via `commentElement.on('commentNavigationButtonClick')`.
|
|
376
|
+
*/
|
|
377
|
+
export interface CommentNavigationButtonClickEvent extends CommentClickEvent {
|
|
378
|
+
}
|
|
350
379
|
export interface AttachmentDownloadClickedEvent {
|
|
351
380
|
annotationId: string;
|
|
352
381
|
commentAnnotation: CommentAnnotation;
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -95,6 +95,10 @@ export declare const CommentEventTypes: {
|
|
|
95
95
|
readonly COMMENT_TOOL_CLICKED: "commentToolClicked";
|
|
96
96
|
readonly SIDEBAR_BUTTON_CLICK: "sidebarButtonClick";
|
|
97
97
|
readonly SIDEBAR_BUTTON_CLICKED: "sidebarButtonClicked";
|
|
98
|
+
readonly SIDEBAR_OPEN: "sidebarOpen";
|
|
99
|
+
readonly SIDEBAR_CLOSE: "sidebarClose";
|
|
100
|
+
readonly COMMENT_CLICK: "commentClick";
|
|
101
|
+
readonly COMMENT_NAVIGATION_BUTTON_CLICK: "commentNavigationButtonClick";
|
|
98
102
|
readonly ATTACHMENT_DOWNLOAD_CLICKED: "attachmentDownloadClicked";
|
|
99
103
|
readonly COMMENT_SAVED: "commentSaved";
|
|
100
104
|
readonly COMMENT_SAVE_TRIGGERED: "commentSaveTriggered";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-4KHSKSMM.js";import{Pa as g,U as c,Wa as l,k as s,pi as v}from"./chunk-3HVKHN3C.js";var p=(()=>{let i=class i{constructor(e,r){this.loggingService=e,this.dragDrop=r,this.currentX=0,this.currentY=0,this.destroy$=new s,this.subscriptions=[],this.loggingService.log("%c[WB] Creating CLASS: DraggableOverlayDirective","color: blue;")}ngOnInit(){try{this.loggingService.log("%c[WB] Calling DraggableOverlayDirective FUNCTION: ngOnInit","color: green;"),this.setupDraggableOverlay()}catch(e){this.loggingService.catch("Error in DraggableOverlayDirective ngOnInit: ",e)}}setupDraggableOverlay(){try{if(this.loggingService.log("%c[WB] Calling DraggableOverlayDirective FUNCTION: setupDraggableOverlay","color: green;"),this.connectedOverlay&&this.connectedOverlay.overlayRef){let e=this.connectedOverlay.overlayRef.overlayElement;this.dragRef=this.dragDrop.createDrag(e),this.subscriptions.push(this.dragRef.moved.pipe(c(this.destroy$)).subscribe(r=>{let a=this.connectedOverlay?.overlayRef.getConfig().positionStrategy;this.updatePosition(a,r.distance.x,r.distance.y)},r=>{this.loggingService.catch("Error in DraggableOverlayDirective dragRef.moved subscription: ",r)})),this.dragRef.ended.pipe(c(this.destroy$)).subscribe(r=>{this.currentX+=r.distance.x,this.currentY+=r.distance.y},r=>{this.loggingService.catch("Error in DraggableOverlayDirective dragRef.ended subscription: ",r)})}}catch(e){this.loggingService.catch("Error in DraggableOverlayDirective setupDraggableOverlay: ",e)}}updatePosition(e,r,a){try{if(e){let n=this.currentX+r,h=this.currentY+a;e.withDefaultOffsetX(n).withDefaultOffsetY(h),this.connectedOverlay?.overlayRef?.updatePosition()}}catch{}}cleanupDraggableOverlay(){try{this.loggingService.log("%c[WB] Calling DraggableOverlayDirective FUNCTION: cleanupDraggableOverlay","color: green;"),this.dragRef&&this.dragRef.dispose()}catch(e){this.loggingService.catch("Error in DraggableOverlayDirective cleanupDraggableOverlay: ",e)}}ngOnDestroy(){try{this.loggingService.log("%c[WB] Calling DraggableOverlayDirective FUNCTION: ngOnDestroy","color: green;"),this.cleanupDraggableOverlay(),this.destroy$.next(),this.destroy$.complete(),this.subscriptions.forEach(e=>{e.unsubscribe()})}catch(e){this.loggingService.catch("Error in DraggableOverlayDirective ngOnDestroy: ",e)}}};i.\u0275fac=function(r){return new(r||i)(g(v),g(o))},i.\u0275dir=l({type:i,selectors:[["","veltDraggableOverlay",""]],inputs:{connectedOverlay:[0,"veltDraggableOverlay","connectedOverlay"]}});let t=i;return t})();export{p as a};
|