@veltdev/sdk-dev 6.0.33 → 6.0.34-beta.1
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-annotation.data.model.d.ts +8 -0
- package/{chunk-NKLB6GIG.js → chunk-34LFLBX5.js} +1 -1
- package/{chunk-UU32ITM2.js → chunk-4CIMEMHA.js} +1 -1
- package/{chunk-CBU5L57I.js → chunk-4JDKBL6T.js} +1 -1
- package/{chunk-A6TQH7ML.js → chunk-5NN3THOV.js} +1 -1
- package/{chunk-LZWDMAWH.js → chunk-76PJTJAE.js} +1 -1
- package/{chunk-3XRKKHB7.js → chunk-B6EXKCBS.js} +1 -1
- package/{chunk-3BL37J7P.js → chunk-BEFW7P3U.js} +1 -1
- package/{chunk-UO2AXRYB.js → chunk-BYI3X5XU.js} +1 -1
- package/{chunk-CFYAFZOA.js → chunk-CABROX7X.js} +1 -1
- package/{chunk-GGKS2APX.js → chunk-CTRB5TVE.js} +1 -1
- package/{chunk-DE6XT233.js → chunk-E5X4SNAK.js} +1 -1
- package/{chunk-Y5LURWG7.js → chunk-ENEBYFM2.js} +1 -1
- package/{chunk-QQMTYJGI.js → chunk-EP7CZ3EM.js} +1 -1
- package/{chunk-GNQ2MWRU.js → chunk-EXDARMGC.js} +1 -1
- package/{chunk-2Z6T2EUN.js → chunk-FDBP2MR3.js} +1 -1
- package/{chunk-OOE3DR3X.js → chunk-GXUATG32.js} +1 -1
- package/{chunk-EPZ4WWW5.js → chunk-HBFQOXCU.js} +1 -1
- package/{chunk-QJFVQB7S.js → chunk-HGX4FLFA.js} +1 -1
- package/{chunk-ETQGFFGO.js → chunk-IBZ4MVH2.js} +1 -1
- package/{chunk-SA3IN2F7.js → chunk-KK5MKT6K.js} +1 -1
- package/{chunk-HDRNY4IS.js → chunk-NFPV353N.js} +1 -1
- package/{chunk-KIK5TSPO.js → chunk-NGQMBPNS.js} +1 -1
- package/{chunk-EONQ4FOS.js → chunk-OE6TZOZO.js} +1 -1
- package/{chunk-CI4U5J3Y.js → chunk-QRWZNVD6.js} +1 -1
- package/{chunk-T6EW6ACD.js → chunk-R2ZBBZD3.js} +1 -1
- package/{chunk-2YZH2VPY.js → chunk-RA5LKFCC.js} +1 -1
- package/{chunk-J5PZTYG5.js → chunk-TRW3DRCQ.js} +1 -1
- package/{chunk-MODG6MY6.js → chunk-UFYGLYSF.js} +1 -1
- package/{chunk-ZJGEIOMM.js → chunk-UGGDJCBS.js} +1 -1
- package/{chunk-OYNNXKBB.js → chunk-ULT44YLH.js} +1 -1
- package/{chunk-GVSHBTDL.js → chunk-VS5M5ZP4.js} +1 -1
- package/{chunk-4T74SR2D.js → chunk-X73RVSMP.js} +1 -1
- package/{chunk-MB6Z7ACO.js → chunk-XCZQHLLQ.js} +1 -1
- package/{chunk-QMIP2UJO.js → chunk-XHGU5ZIA.js} +1 -1
- package/chunk-XRSE2VTK.js +174 -0
- package/{chunk-WCC6NAZZ.js → chunk-YCJV74EN.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 +7 -7
- 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-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 +1 -1
- package/velt.js +2 -2
- package/chunk-AXWQUUFQ.js +0 -174
|
@@ -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-IBZ4MVH2.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-XRSE2VTK.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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-dev",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.34-beta.1",
|
|
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": [
|