@veltdev/sdk 6.0.16-beta.1 → 6.0.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.
Files changed (65) hide show
  1. package/app/models/element/comment-element.model.d.ts +25 -0
  2. package/app/utils/constants.d.ts +7 -0
  3. package/chunk-2OZEFTFU.js +174 -0
  4. package/chunk-2RHKFNZ6.js +1 -0
  5. package/{chunk-VMF3PU24.js → chunk-3CGYXFL2.js} +1 -1
  6. package/{chunk-RXFVCKQL.js → chunk-3I2BVNSF.js} +1 -1
  7. package/{chunk-5TJMR4HW.js → chunk-43U52B3X.js} +2 -2
  8. package/{chunk-4WKDLT4A.js → chunk-477BMYZU.js} +1 -1
  9. package/{chunk-D4N6XJTM.js → chunk-4HJBQMN7.js} +1 -1
  10. package/{chunk-UVCYON2Y.js → chunk-54HSCW5O.js} +1 -1
  11. package/{chunk-R5GYV2DR.js → chunk-5UQ7SMM2.js} +1 -1
  12. package/{chunk-OMUPD6YQ.js → chunk-6LB6FZLB.js} +1 -1
  13. package/{chunk-VHFBTL2F.js → chunk-7MF6EHOJ.js} +1 -1
  14. package/{chunk-Q572IGEI.js → chunk-DDCPK7SE.js} +1 -1
  15. package/{chunk-VIJL7KCO.js → chunk-GLKSONFU.js} +1 -1
  16. package/chunk-GLYYZPJQ.js +1 -0
  17. package/{chunk-7V27RI2Q.js → chunk-H3QC2JO5.js} +1 -1
  18. package/chunk-H7D3DCV5.js +1 -0
  19. package/{chunk-OM6MABVZ.js → chunk-HSXPZSWN.js} +1 -1
  20. package/chunk-J36M2YTC.js +1 -0
  21. package/{chunk-KCD46XXW.js → chunk-JF5FFC4U.js} +1 -1
  22. package/{chunk-F76UYITJ.js → chunk-JRFA4ZQE.js} +1 -1
  23. package/chunk-LP3L3WUY.js +1 -0
  24. package/{chunk-BMNJZNYN.js → chunk-M5F25YXT.js} +1 -1
  25. package/{chunk-2V5K46UQ.js → chunk-NKQUQWVE.js} +1 -1
  26. package/{chunk-IZL5WZJ4.js → chunk-ONFKPVOS.js} +1 -1
  27. package/{chunk-ELF4HHKE.js → chunk-OOECMXOM.js} +1 -1
  28. package/{chunk-CZG3GH2S.js → chunk-OUTESE2X.js} +1 -1
  29. package/{chunk-UBFDELKG.js → chunk-PPMAL7J7.js} +1 -1
  30. package/{chunk-YBEXCUAP.js → chunk-RUY3KAPO.js} +1 -1
  31. package/{chunk-FMYEJJPB.js → chunk-TWJHLEB3.js} +1 -1
  32. package/{chunk-A2VPQHCN.js → chunk-U27P3DP4.js} +1 -1
  33. package/{chunk-CPTMJZUQ.js → chunk-UMVEZ34V.js} +1 -1
  34. package/{chunk-FAXTDACW.js → chunk-WE36C3LT.js} +1 -1
  35. package/chunk-Z5UO5HVJ.js +1 -0
  36. package/{chunk-LF55NW2M.js → chunk-ZIP7VPVU.js} +1 -1
  37. package/{chunk-OLBIIIIK.js → chunk-ZUHH524F.js} +1 -1
  38. package/package.json +1 -1
  39. package/velt-activity-log.js +1 -1
  40. package/velt-area.js +1 -1
  41. package/velt-arrow.js +2 -2
  42. package/velt-comment.js +7 -7
  43. package/velt-crdt.js +1 -1
  44. package/velt-cursor.js +2 -2
  45. package/velt-huddle.js +1 -1
  46. package/velt-live-state-sync.js +1 -1
  47. package/velt-notification.js +1 -1
  48. package/velt-portable.js +1 -1
  49. package/velt-presence.js +1 -1
  50. package/velt-reaction.js +1 -1
  51. package/velt-recorder.js +1 -1
  52. package/velt-rewriter.js +2 -2
  53. package/velt-selection.js +1 -1
  54. package/velt-tag.js +1 -1
  55. package/velt-user-invite.js +1 -1
  56. package/velt-user-request.js +1 -1
  57. package/velt-video-player.js +1 -1
  58. package/velt-views.js +2 -2
  59. package/velt.js +3 -3
  60. package/chunk-LPTIQD5G.js +0 -174
  61. package/chunk-O2MN6F4M.js +0 -1
  62. package/chunk-QSF2FGZR.js +0 -1
  63. package/chunk-T4GWR2DV.js +0 -1
  64. package/chunk-VY2FLES5.js +0 -1
  65. package/chunk-X7A6WY6F.js +0 -1
@@ -1 +1 @@
1
- import{a as o}from"./chunk-OLBIIIIK.js";import{Ra as g,W as c,Ya as l,Zi as v,k as s}from"./chunk-LPTIQD5G.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};
1
+ import{a as o}from"./chunk-ZUHH524F.js";import{Ra as g,W as c,Ya as l,Zi as v,k as s}from"./chunk-2OZEFTFU.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};
@@ -0,0 +1 @@
1
+ import{He as h,Rg as a,Yd as c}from"./chunk-2OZEFTFU.js";var T=(t,o)=>{try{let e=d(t),r=[],n=[];return e.forEach(i=>{i?.parentElement?.closest(h.TAGS.SNIPPYLY_TEXT_HIGHLIGHT)?i?.parentElement?.normalize():i?.data&&n.push(i)}),n.forEach(i=>{let s=l(i,o);s&&r.push(s)}),r}catch(e){return c.catch("Error in highlighter highlightRange: ",e),[]}},d=t=>{try{if(t.collapsed)return[];let o=t.commonAncestorContainer;if(t.commonAncestorContainer.nodeType!==Node.ELEMENT_NODE&&(o=t.commonAncestorContainer.parentElement),!o)return[];let e=[],r=o.ownerDocument.createNodeIterator(o,NodeFilter.SHOW_TEXT),n,i=!1;for(;n=r.nextNode();)if(t.intersectsNode(n)){if(a(n))continue;let s=n?.length;t.startContainer===n&&t.startOffset>0&&(n.splitText(t.startOffset),i=!0),t.endContainer===n&&t.endOffset<s&&n.splitText(t.endOffset),e.push(n)}return i&&e.shift(),e}catch(o){return c.catch("Error in highlighter getTextNodesInRange: ",o),[]}},l=(t,o)=>{try{let e=document.createElement(o||h.TAGS.SNIPPYLY_TEXT_HIGHLIGHT),r=t.splitText(0);return r.parentNode?.replaceChild(e,r),e.appendChild(r),e.__veltPageTextNode=t,e}catch(e){return c.catch("Error in highlighter highlightNode: ",e),null}},g=(t,o)=>{try{if(!t)return;let e=o??(t.textContent?document.createTextNode(t.textContent):null),r=t.__veltPageTextNode;if(r){if(r.parentNode!==t.parentNode){t.remove();return}if(e?.nodeType===Node.TEXT_NODE){r.data||(r.data=e.data),t.remove();return}}e?t.replaceWith(e):t.remove()}catch(e){c.catch("Error in highlighter unwrapHighlightElement: ",e)}};export{T as a,g as b};