@veltdev/sdk-dev 6.0.11 → 6.0.14-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.
Files changed (79) hide show
  1. package/app/models/data/config.data.model.d.ts +18 -0
  2. package/app/models/data/user.data.model.d.ts +13 -0
  3. package/app/models/element/comment-element.model.d.ts +3 -2
  4. package/app/utils/constants.d.ts +1 -0
  5. package/{chunk-FUYX2CTL.js → chunk-2HGCWC7B.js} +1 -1
  6. package/{chunk-LG5WHFSD.js → chunk-2KTYC2AG.js} +1 -1
  7. package/chunk-3AL5S762.js +1 -0
  8. package/chunk-45X5JRZ6.js +2 -0
  9. package/chunk-5O7VYDEF.js +1 -0
  10. package/chunk-6NWFM6PC.js +1 -0
  11. package/chunk-77FADRSO.js +1 -0
  12. package/chunk-7TFVNMHJ.js +2 -0
  13. package/{chunk-P5SWOPSS.js → chunk-C5JOX4MX.js} +1 -1
  14. package/{chunk-UKJTOZK4.js → chunk-DFEL6HM7.js} +1 -1
  15. package/{chunk-SYSCTHS4.js → chunk-DZYXTTOX.js} +1 -1
  16. package/chunk-FZSZ6AV3.js +1 -0
  17. package/chunk-GULBDPIM.js +2 -0
  18. package/{chunk-AAD7TO6X.js → chunk-HRCWTVRH.js} +2 -2
  19. package/{chunk-EJ332HKA.js → chunk-I63T4QWP.js} +6 -6
  20. package/{chunk-TW7O56QU.js → chunk-IMH5OESK.js} +1 -1
  21. package/chunk-IQ22I2I3.js +1 -0
  22. package/{chunk-7RRXZUH7.js → chunk-KNQJBBQA.js} +1 -1
  23. package/chunk-KQPNTB77.js +1 -0
  24. package/chunk-KWLMOL5X.js +193 -0
  25. package/chunk-L4QMAEKA.js +1 -0
  26. package/chunk-MRY4A7N6.js +1 -0
  27. package/{chunk-IU25BW6T.js → chunk-NMPXJFDX.js} +1 -1
  28. package/chunk-O3FUWWWQ.js +1 -0
  29. package/{chunk-EQBACTBQ.js → chunk-PWTBCAPJ.js} +1 -1
  30. package/chunk-TQNLXTQA.js +2 -0
  31. package/chunk-UI2CRSTN.js +1 -0
  32. package/{chunk-SY46UNW5.js → chunk-UVKIGEOH.js} +1 -1
  33. package/{chunk-2K2XEJWM.js → chunk-VJLHHQ2Z.js} +1 -1
  34. package/chunk-VW5ND7U4.js +93 -0
  35. package/{chunk-YOW3SSZH.js → chunk-WMDZMDJS.js} +1 -1
  36. package/chunk-YFBAHLK6.js +174 -0
  37. package/chunk-YO4HNOAN.js +1 -0
  38. package/chunk-ZHXLO4CC.js +1 -0
  39. package/package.json +1 -1
  40. package/velt-activity-log.js +1 -1
  41. package/velt-area.js +1 -1
  42. package/velt-arrow.js +1 -1
  43. package/velt-comment.js +7 -7
  44. package/velt-crdt.js +1 -1
  45. package/velt-cursor.js +1 -1
  46. package/velt-huddle.js +1 -1
  47. package/velt-live-state-sync.js +1 -1
  48. package/velt-notification.js +1 -1
  49. package/velt-portable.js +1 -0
  50. package/velt-presence.js +1 -1
  51. package/velt-reaction.js +1 -1
  52. package/velt-recorder.js +1 -1
  53. package/velt-rewriter.js +1 -1
  54. package/velt-selection.js +1 -1
  55. package/velt-tag.js +1 -1
  56. package/velt-user-invite.js +1 -1
  57. package/velt-user-request.js +1 -1
  58. package/velt-video-player.js +1 -1
  59. package/velt-views.js +3 -3
  60. package/velt.js +6 -6
  61. package/chunk-4Z6NNDYV.js +0 -2
  62. package/chunk-BX4TSYIT.js +0 -1
  63. package/chunk-BYLLW3IQ.js +0 -1
  64. package/chunk-F6CKB7IS.js +0 -2
  65. package/chunk-FWDYATXS.js +0 -1
  66. package/chunk-GTSIWRGU.js +0 -1
  67. package/chunk-ID3E7CBZ.js +0 -1
  68. package/chunk-IM25G5ZA.js +0 -2
  69. package/chunk-JPNIBNJC.js +0 -2
  70. package/chunk-NU5FBCN4.js +0 -1
  71. package/chunk-Q245RDEX.js +0 -1
  72. package/chunk-SPYRQOBV.js +0 -193
  73. package/chunk-TK4YP443.js +0 -1
  74. package/chunk-VKGZ33MA.js +0 -167
  75. package/chunk-XJ6VFULL.js +0 -1
  76. package/chunk-YNPH7CSB.js +0 -1
  77. package/chunk-ZJH32HDL.js +0 -1
  78. package/chunk-ZMDRNPLQ.js +0 -1
  79. package/chunk-ZUUOHWRX.js +0 -93
@@ -0,0 +1 @@
1
+ import{$ as w,_ as V,aa as j,ba as T,ca as Z}from"./chunk-I63T4QWP.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-YFBAHLK6.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};