@veltdev/sdk 6.0.23 → 6.0.24
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/{chunk-KLBBTIC3.js → chunk-2GJ6LQGO.js} +1 -1
- package/chunk-2TBFGTFV.js +1 -0
- package/{chunk-EO6L3AMW.js → chunk-3ETDYFCP.js} +1 -1
- package/{chunk-THHNU3CV.js → chunk-4OP5FRJZ.js} +1 -1
- package/{chunk-IZ4JZWW3.js → chunk-5CE5EQ5I.js} +1 -1
- package/{chunk-TSVEXSPX.js → chunk-AAZRCO7P.js} +1 -1
- package/{chunk-LIE3QUYS.js → chunk-B4MCRMP7.js} +1 -1
- package/{chunk-G6KKTDE5.js → chunk-D4RIWWWT.js} +1 -1
- package/{chunk-BKRNQPLW.js → chunk-FAOXE2LY.js} +1 -1
- package/{chunk-LZD424IN.js → chunk-FV4CYQIJ.js} +1 -1
- package/{chunk-Y3GDB5Y5.js → chunk-FXHOBF24.js} +1 -1
- package/{chunk-TGU6RDMK.js → chunk-FZKRXZIZ.js} +1 -1
- package/{chunk-KXYVKXXQ.js → chunk-HRFML32S.js} +1 -1
- package/{chunk-KBHHOQF7.js → chunk-HWSQCIIL.js} +1 -1
- package/chunk-K7KCPFC7.js +1 -0
- package/{chunk-TDQOVJ2P.js → chunk-MKJOFE4P.js} +1 -1
- package/{chunk-WNYOMHEK.js → chunk-N366MN5J.js} +1 -1
- package/{chunk-XDY2NCFJ.js → chunk-NAJL2GCA.js} +1 -1
- package/{chunk-U6IYPBIQ.js → chunk-NEJKRV3M.js} +1 -1
- package/{chunk-7NB67YTZ.js → chunk-OL2RJSA5.js} +1 -1
- package/{chunk-SXISQLEE.js → chunk-PS5CHEBA.js} +1 -1
- package/{chunk-LS7ATBSW.js → chunk-QWB3Q3X3.js} +1 -1
- package/{chunk-3TQDQN3X.js → chunk-R7PGKNXH.js} +1 -1
- package/{chunk-R2RJ3D6W.js → chunk-RHUUOSBK.js} +1 -1
- package/{chunk-NE4ASEU4.js → chunk-S3ZS5EPV.js} +1 -1
- package/{chunk-2OM7GRSC.js → chunk-S5U5EJSH.js} +1 -1
- package/{chunk-2FL7NHMS.js → chunk-T3JQYK3N.js} +1 -1
- package/{chunk-3NA76ZTF.js → chunk-U76HLU2G.js} +9 -9
- package/{chunk-D4JLBBJT.js → chunk-UYR6HRGI.js} +1 -1
- package/{chunk-HAZARMBL.js → chunk-VSBVKZYP.js} +1 -1
- package/{chunk-OWKVWABT.js → chunk-VTMNUIEK.js} +1 -1
- package/{chunk-UW67T555.js → chunk-WQPVR2MY.js} +1 -1
- package/{chunk-WQKWNVKC.js → chunk-WQQKFPTA.js} +1 -1
- package/{chunk-WR4YGVJB.js → chunk-Y7EFNXLS.js} +1 -1
- package/{chunk-SAB762YK.js → chunk-ZLOF7AUP.js} +1 -1
- package/{chunk-C4L4DJUX.js → chunk-ZN6UGTUP.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 +1 -1
- package/velt-crdt.js +1 -1
- package/velt-cursor.js +2 -2
- package/velt-huddle.js +1 -1
- package/velt-live-state-sync.js +1 -1
- package/velt-notification.js +1 -1
- package/velt-portable.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 +3 -3
- package/velt.js +2 -2
- package/chunk-F3DXFJ7X.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Cb as a,Db as h,Ra as o,Wa as c,
|
|
1
|
+
import{$j as l,Cb as a,Db as h,Ra as o,Wa as c,fb as m,oj as g,ya as s}from"./chunk-U76HLU2G.js";var d=["*"],C=(()=>{let i=class i{constructor(t,e,n){this.elementRef=t,this.domService=e,this.loggingService=n,this.veltElement=!0}ngAfterViewInit(){try{this.customCssSubscription=this.domService.subscribeInjectCustomCss(this.elementRef)}catch(t){this.loggingService.catch("Error in ShadowDomComponent ngAfterViewInit: ",t)}}ngOnDestroy(){try{this.customCssSubscription?.unsubscribe()}catch(t){this.loggingService.catch("Error in ShadowDomComponent ngOnDestroy: ",t)}}};i.\u0275fac=function(e){return new(e||i)(o(s),o(l),o(g))},i.\u0275cmp=c({type:i,selectors:[["velt-shadow-dom-internal"]],hostVars:1,hostBindings:function(e,n){e&2&&m("data-velt-element",n.veltElement)},ngContentSelectors:d,decls:1,vars:0,template:function(e,n){e&1&&(a(),h(0))},styles:[`:host{width:100%}
|
|
2
2
|
`],encapsulation:3,changeDetection:0});let r=i;return r})();export{C as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as s,K as a,ba as c,ea as n,l as o,
|
|
1
|
+
import{B as s,K as a,ba as c,ea as n,l as o,oj as h}from"./chunk-U76HLU2G.js";var u=(()=>{let r=class r{constructor(t){this.loggingService=t,this.toasts$=new o([])}setToast(t){try{t.id||(t.id=Math.random()),this.toasts$.next([...this.toasts$.value,t]),t.duration&&t.duration>0&&s(t.duration).pipe(a(1)).subscribe(()=>{this.removeToast(t)},i=>{this.loggingService.catch("Error in ToastService setToast timer subscription: ",i)})}catch(i){this.loggingService.catch("Error in ToastService setToast: ",i)}}removeToast(t){try{this.toasts$.next(this.toasts$.value.filter(i=>i.id!==t.id))}catch(i){this.loggingService.catch("Error in ToastService removeToast: ",i)}}getToasts$(){return this.toasts$.asObservable()}};r.\u0275fac=function(i){return new(i||r)(n(h))},r.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"});let e=r;return e})();export{u as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as w,_ as V,aa as j,ba as T,ca as Z}from"./chunk-
|
|
1
|
+
import{$ as w,_ as V,aa as j,ba as T,ca as Z}from"./chunk-PS5CHEBA.js";import{D as E,Ja as R,La as S,Ma as F,Oa as l,V as b,db as C,i as g,m as y,na as I,ta as v}from"./chunk-U76HLU2G.js";var _={schedule(n,t){let e=setTimeout(n,t);return()=>clearTimeout(e)}};function O(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function k(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}var h;function N(n,t){if(!h){let e=Element.prototype;h=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE?h.call(n,t):!1}function z(n){let t={};return n.forEach(({propName:e,templateName:s,transform:u})=>{t[O(s)]=[e,u]}),t}function A(n,t){return t.get(l).resolveComponentFactory(n).inputs}function P(n,t){let e=n.childNodes,s=t.map(()=>[]),u=-1;t.some((r,o)=>r==="*"?(u=o,!0):!1);for(let r=0,o=e.length;r<o;++r){let i=e[r],c=L(i,t,u);c!==-1&&s[c].push(i)}return s}function L(n,t,e){let s=e;return k(n)&&t.some((u,r)=>u!=="*"&&N(n,u)?(s=r,!0):!1),s}var Y=10,p=class{componentFactory;inputMap=new Map;constructor(t,e){this.componentFactory=e.get(l).resolveComponentFactory(t);for(let s of this.componentFactory.inputs)this.inputMap.set(s.propName,s.templateName)}create(t){return new m(this.componentFactory,t,this.inputMap)}},m=class{componentFactory;injector;inputMap;eventEmitters=new y(1);events=this.eventEmitters.pipe(b(t=>E(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,e,s){this.componentFactory=t,this.injector=e,this.inputMap=s,this.ngZone=this.injector.get(R),this.appRef=this.injector.get(C),this.cdScheduler=e.get(v),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=_.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Y))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){if(this.componentRef===null){this.initialInputValues.set(t,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,e),S(this.componentRef.hostView)&&(F(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let e=I.create({providers:[],parent:this.injector}),s=P(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,s,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,e]of this.initialInputValues)this.setInputValue(t,e);this.initialInputValues.clear()}initializeOutputs(t){let e=this.componentFactory.outputs.map(({propName:s,templateName:u})=>{let r=t.instance[s];return new g(o=>{let i=r.subscribe(c=>o.next({name:u,value:c}));return()=>i.unsubscribe()})});this.eventEmitters.next(e)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},f=class extends HTMLElement{ngElementEventsSubscription=null};function D(n,t){let e=A(n,t.injector),s=t.strategyFactory||new p(n,t.injector),u=z(e);class r extends f{injector;static observedAttributes=Object.keys(u);get ngElementStrategy(){if(!this._ngElementStrategy){let i=this._ngElementStrategy=s.create(this.injector||t.injector);e.forEach(({propName:c,transform:a})=>{if(!this.hasOwnProperty(c))return;let d=this[c];delete this[c],i.setInputValue(c,d,a)})}return this._ngElementStrategy}_ngElementStrategy;constructor(i){super(),this.injector=i}attributeChangedCallback(i,c,a,d){let[M,x]=u[i];this.ngElementStrategy.setInputValue(M,a,x)}connectedCallback(){let i=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),i=!0),this.ngElementStrategy.connect(this),i||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(i=>{let c=new CustomEvent(i.name,{detail:i.value});this.dispatchEvent(c)})}}return e.forEach(({propName:o,transform:i})=>{Object.defineProperty(r.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(c){this.ngElementStrategy.setInputValue(o,c,i)},configurable:!0,enumerable:!0})}),r}function K(n,t){let e=D(n,{injector:t});class s extends e{connectedCallback(){let r;try{let o=this;Z(o),r=V(o)}catch{}super.connectedCallback?.();try{if(w(r),r){let o=this;setTimeout(()=>{j(o),T(o)},0)}}catch{}}}return s}export{K as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Yd as d}from"./chunk-
|
|
1
|
+
import{Yd as d}from"./chunk-U76HLU2G.js";var f=e=>{let c=e?.annotationId;return c||null},l=()=>{let e=new Set;return{advance(c,n){try{if(!Array.isArray(c))return[];let t=new Set;for(let r of c){let s=f(r);s&&t.add(s)}let o=new Set;for(let r of n??[]){let s=f(r);s&&t.has(s)&&o.add(s)}let a=[],h=[];return e.forEach(r=>{t.has(r)?o.has(r)||a.push(r):h.push(r)}),a.forEach(r=>e.delete(r)),h.forEach(r=>e.delete(r)),o.forEach(r=>e.add(r)),a}catch(t){return d.catch("Error in ListenerResultSet advance: ",t),[]}},leave(c){try{if(!Array.isArray(c))return[];let n=new Set;for(let t of c){let o=f(t);o&&e.has(o)&&n.add(o)}return n.forEach(t=>e.delete(t)),[...n]}catch(n){return d.catch("Error in ListenerResultSet leave: ",n),[]}}}};function i(e,c,n){if(!c?.isPortableFeed)return{kept:e,departed:[]};let t=e?.length?n(e):e,o=c.evictDropped?c.resultSet?.advance(e,t)??[]:[];return{kept:t?.length===e?.length?e:t,departed:o}}export{l as a,i as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{He as h,
|
|
1
|
+
import{He as h,Ug as a,Yd as c}from"./chunk-U76HLU2G.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ia as c,Ra as n,Ya as o,
|
|
1
|
+
import{$j as h,Ia as c,Ra as n,Ya as o,wa as a,ya as r}from"./chunk-U76HLU2G.js";var I=(()=>{let e=class e{constructor(t,i){this.domService=t,this.elementRef=i,this.clickOutside=new c}ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{this.subscription=this.domService.onDocumentClickSubject$().subscribe(t=>{let i=this.checkInsideClick(t,this.elementRef.nativeElement);!i&&this.clickOutsideHandler&&typeof this.clickOutsideHandler=="function"&&(i=this.clickOutsideHandler(t.target,this.elementRef.nativeElement)),i||this.clickOutside.emit()})},500)}ngOnDestroy(){this.subscription?.unsubscribe()}checkInsideClick(t,i){return t.composedPath().includes(i)}};e.\u0275fac=function(i){return new(i||e)(n(h),n(r))},e.\u0275dir=o({type:e,selectors:[["","snippylyClickOutside",""]],inputs:{clickOutsideHandler:"clickOutsideHandler"},outputs:{clickOutside:"clickOutside"}});let s=e;return s})();var b=(()=>{let e=class e{constructor(t){this.elementRef=t,this.lastPosition=null,this.positionChange=new c,this.disabled=!1,this.timeSpentInMs=0,this.MAX_TIME_SPENT_IN_MS=6e4}ngAfterViewInit(){try{this.toggleTrackingPosition()}catch{}}toggleTrackingPosition(){try{this.disabled?this.stopTracking():this.startTrackingPosition()}catch{}}startTrackingPosition(){try{if(this.intervalId)return;this.intervalId=setInterval(()=>{if(this.timeSpentInMs+=10,this.timeSpentInMs>this.MAX_TIME_SPENT_IN_MS){this.stopTracking();return}let t=this.elementRef.nativeElement.getBoundingClientRect();(!this.lastPosition||!this.arePositionsEqual(this.lastPosition,t))&&(this.lastPosition=t,this.positionChange.emit(t))},10)}catch{}}stopTracking(){try{this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null,this.timeSpentInMs=0)}catch{}}arePositionsEqual(t,i){try{return t.top===i.top&&t.left===i.left&&t.bottom===i.bottom&&t.right===i.right&&t.width===i.width&&t.height===i.height}catch{return!0}}ngOnChanges(){try{this.toggleTrackingPosition()}catch{}}ngOnDestroy(){try{this.stopTracking()}catch{}}};e.\u0275fac=function(i){return new(i||e)(n(r))},e.\u0275dir=o({type:e,selectors:[["","veltPositionObserver",""]],inputs:{disabled:[0,"veltPositionObserverDisabled","disabled"]},outputs:{positionChange:"positionChange"},features:[a]});let s=e;return s})();export{I as a,b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as V}from"./chunk-
|
|
1
|
+
import{h as V}from"./chunk-FZKRXZIZ.js";import{Ga as x,Ha as L,Ja as D,M as C,R as v,S as I}from"./chunk-PS5CHEBA.js";import{Wa as m,Yi as y,_a as d,a as s,b as h,fa as o,mj as E,oj as U,sa as f,xc as u,ya as S,zc as p}from"./chunk-U76HLU2G.js";var A=(()=>{let r=class r extends D{set parentLocalUIState(t){try{t&&(this.localUIStateSignal=t,this.isLocalUIStateOwner=!1,this._localUIStateFromExplicitInput=!0)}catch{}}get elementRef(){try{return this.hostElementRef}catch{return null}}getServiceComponentConfigSignal(){}constructor(){let t=o(S),e=o(L),i=o(p),a=o(E).get(y),g=o(x),l=o(U);super(t,e,i,a??void 0,void 0,g,l),this.defaultCondition=u(!0,{transform:n=>{try{return typeof n=="string"?n==="true"||n==="":n}catch{return!0}}}),this.isLocalUIStateOwner=!1,this._localUIStateFromExplicitInput=!1,this.veltContextHost=new V({getHost:()=>this.hostElementRef?.nativeElement,ownerRef:this,getEntity:()=>this.getPublishedVeltEntity(),getLocalUIState:()=>this.isLocalUIStateOwner?this.localUIStateSignal:void 0,onContextChanged:()=>{this.adoptInheritedLocalUIState(),this.rebindServiceConfigFromPlacement(),this.onVeltContextChanged()},markForCheck:()=>this.cd?.markForCheck()}),this.isLocalUIStateRoot=!1,this.selfConnectedConfig=!1,this.ownsConfigSignal=!0;try{this.hostElementRef=t,this.themeService=e,this.dynamicDataService=g,this.loggingService=l,this.cd=i,this.commentService=a??void 0,this.initializeLocalUIState()}catch(n){this.loggingService=this.loggingService||l,this.loggingService?.catch?.("Error in V2PrimitiveThemedBase constructor:",n)}}initializeLocalUIState(){this.localUIStateSignal=f(this.getDefaultLocalUIState()),this.isLocalUIStateOwner=!0}getConditionalClassesContext(){return{componentConfigSignal:this.componentConfigSignal}}ngOnInit(){try{this.adoptInheritedLocalUIState(),this.connectToServiceSignalIfStandalone(),this.dynamicDataService.applyConditionalClasses(this.hostElementRef?.nativeElement,this.getConditionalClassesContext()),this.setupA11yAttributes(),this.isLocalUIStateOwner&&this.setupDarkModeSync(),this.finalizeVeltContext()}catch(t){this.loggingService.catch("Error in V2PrimitiveThemedBase ngOnInit:",t)}}adoptInheritedLocalUIState(){try{v({host:this.hostElementRef?.nativeElement,current:this.localUIStateSignal,isOwner:this.isLocalUIStateOwner,fromExplicitInput:this._localUIStateFromExplicitInput,isRoot:this.isLocalUIStateRoot,adopt:t=>{this.localUIStateSignal=t,this.isLocalUIStateOwner=!1}})}catch(t){this.loggingService.catch("Error in V2PrimitiveThemedBase adoptInheritedLocalUIState:",t)}}rebindServiceConfigFromPlacement(){try{if(!this.selfConnectedConfig)return;let t=this.getServiceComponentConfigSignal();if(!t||t===this.componentConfigSignal)return;let e=this.componentConfigSignal,i=this.ownsConfigSignal;if(this.componentConfigSignal=t,this.ownsConfigSignal=!1,i)try{e?.update(a=>s({},a))}catch{}this.cd?.markForCheck()}catch(t){this.loggingService.catch("Error in V2PrimitiveThemedBase rebindServiceConfigFromPlacement:",t)}}finalizeVeltContext(){this.veltContextHost.finalize()}getPublishedVeltEntity(){}getInheritedVeltEntity(){try{return I(this.hostElementRef?.nativeElement)}catch{return}}refreshVeltContextFromPlacement(){this.veltContextHost.refreshFromPlacement()}onVeltContextChanged(){}getInheritedVeltContextData(){try{return C(this.hostElementRef?.nativeElement)?.payload?.contextData||{}}catch{return{}}}connectToServiceSignalIfStandalone(){try{let t=this.componentConfigSignal();if(!t||!t?.uiState){this.selfConnectedConfig=!0;let e=this.getServiceComponentConfigSignal();e&&(this.componentConfigSignal=e,this.ownsConfigSignal=!1)}}catch(t){this.loggingService.catch("Error connecting to service signal:",t)}}ngOnDestroy(){try{this.darkModeConfigSyncSubscription&&this.darkModeConfigSyncSubscription.unsubscribe(),this.veltContextHost.destroy(),super.ngOnDestroy()}catch(t){this.loggingService.catch("Error in V2PrimitiveThemedBase ngOnDestroy:",t)}}setupA11yAttributes(){}setupDarkModeSync(){try{this.darkModeConfigSyncSubscription=this.onDarkModeChange().subscribe(t=>{try{if(this.componentConfigSignal&&typeof this.componentConfigSignal=="function"){let e=this.componentConfigSignal();e&&e.uiState&&e.uiState.darkMode!==t&&this.componentConfigSignal.update(i=>h(s({},i),{uiState:h(s({},i.uiState),{darkMode:t})}))}}catch(e){this.loggingService.catch("Error in darkMode sync subscription:",e)}})}catch(t){this.loggingService.catch("Error in V2PrimitiveThemedBase setupDarkModeSync:",t)}}};r.\u0275fac=function(e){return new(e||r)},r.\u0275cmp=m({type:r,selectors:[["app-v2-primitive-themed-base"]],inputs:{defaultCondition:[1,"defaultCondition"],parentLocalUIState:"parentLocalUIState"},standalone:!1,features:[d],decls:0,vars:0,template:function(e,i){},encapsulation:2});let c=r;return c})();export{A as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as Y}from"./chunk-
|
|
1
|
+
import{b as Y}from"./chunk-FZKRXZIZ.js";import{B as x,C as Q,y as _}from"./chunk-2TBFGTFV.js";import{$j as N,C as A,E as g,Ld as w,M as S,Mj as R,Nd as y,O as B,Od as U,Pd as O,Pj as M,U as F,V as H,Y as E,_f as D,ak as K,ba as j,bi as P,ea as b,g as $,l as C,oj as W,p as k,pj as L,r as u,v as m,w as z}from"./chunk-U76HLU2G.js";var he=(()=>{let p=class p{constructor(e,t,r,a,s,c,n,i,d,o){this.authService=e,this.commonDbService=t,this.databaseService=r,this.docService=a,this.domService=s,this.loggingService=c,this.metadataService=n,this.commonDbUtils=i,this.configService=d,this.realtimeAdapter=o,this.HEARTBEAT_DURATION=5*1e3,this.heartbeatEnabled$=new C(!1),this.subscriptions=[],this.heartbeatCreatedTimestamps=new Map,this.initializedHeartbeatIds=new Set;try{this.loggingService.log("%c[WB] Creating CLASS: HeartbeatService","color: blue;"),this.heartbeatEnabled$.pipe(S()).subscribe(h=>{h?this.setupHeartbeat():this.teardownHeartbeat()}),this.docService.addPreDocumentIdChangeFunction("heartbeat-service",h=>h?.documentId?this.removeDocumentHeartbeat(h):Promise.resolve())}catch(h){this.loggingService.catch("Error in HeartbeatService constructor: ",h)}}setupWebWorker(e){try{let t=`
|
|
2
2
|
let intervalId;
|
|
3
3
|
self.addEventListener('message', (event) => {
|
|
4
4
|
if (event.data === 'start') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.24",
|
|
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": [
|