@univerjs-pro/collaboration-client 0.25.0 → 1.0.0-alpha.0
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/config/config.d.ts +70 -0
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +15 -1
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +6 -14
- package/lib/types/facade/f-collaboration.d.ts +38 -25
- package/lib/types/index.d.ts +11 -7
- package/lib/types/locale/types.d.ts +3 -0
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/services/attachment-remote/attachment-io.service.d.ts +22 -0
- package/lib/types/services/attachment-remote/types.d.ts +23 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +3 -0
- package/lib/types/services/local-cache/local-cache.service.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +16 -14
- package/lib/types/controllers/config.schema.d.ts +0 -64
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x347938=_0x5edd;(function(_0xb37f48,_0x48c635){const _0x569b28=_0x5edd,_0x3619d4=_0xb37f48();while(!![]){try{const _0x4036b7=parseInt(_0x569b28(0x11b))/0x1+parseInt(_0x569b28(0x13e))/0x2*(-parseInt(_0x569b28(0x135))/0x3)+parseInt(_0x569b28(0x14c))/0x4+parseInt(_0x569b28(0x12e))/0x5+parseInt(_0x569b28(0x11e))/0x6*(parseInt(_0x569b28(0x147))/0x7)+parseInt(_0x569b28(0x141))/0x8*(parseInt(_0x569b28(0x144))/0x9)+-parseInt(_0x569b28(0x15a))/0xa;if(_0x4036b7===_0x48c635)break;else _0x3619d4['push'](_0x3619d4['shift']());}catch(_0x1cc10b){_0x3619d4['push'](_0x3619d4['shift']());}}}(_0x509a,0xe9cee),Object[_0x347938(0x152)](exports,Symbol['toStringTag'],{'value':_0x347938(0x129)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core/facade'),n=require('@univerjs/core'),r=require('@univerjs-pro/collaboration'),i=require('rxjs');var a=class extends t[_0x347938(0x158)]{get[_0x347938(0x14b)](){const _0x496beb=_0x347938;return e[_0x496beb(0x14b)];}};t[_0x347938(0x158)][_0x347938(0x140)](a);var o=class extends t[_0x347938(0x125)]{get[_0x347938(0x11f)](){const _0x4584cd=_0x347938;return _0x4584cd(0x11f);}};t[_0x347938(0x125)][_0x347938(0x140)](o);function s(_0xf710f0,_0x13a854){return function(_0x5ba977,_0x4f3351){_0x13a854(_0x5ba977,_0x4f3351,_0xf710f0);};}function c(_0x1f6bab,_0x1d5e0b,_0x127eb6,_0x348584){const _0x4d936a=_0x347938;var _0xe5ec3a=arguments['length'],_0x4a0005=_0xe5ec3a<0x3?_0x1d5e0b:_0x348584===null?_0x348584=Object[_0x4d936a(0x14a)](_0x1d5e0b,_0x127eb6):_0x348584,_0x4a8584;if(typeof Reflect==_0x4d936a(0x13d)&&typeof Reflect[_0x4d936a(0x146)]==_0x4d936a(0x145))_0x4a0005=Reflect['decorate'](_0x1f6bab,_0x1d5e0b,_0x127eb6,_0x348584);else{for(var _0x54b329=_0x1f6bab['length']-0x1;_0x54b329>=0x0;_0x54b329--)(_0x4a8584=_0x1f6bab[_0x54b329])&&(_0x4a0005=(_0xe5ec3a<0x3?_0x4a8584(_0x4a0005):_0xe5ec3a>0x3?_0x4a8584(_0x1d5e0b,_0x127eb6,_0x4a0005):_0x4a8584(_0x1d5e0b,_0x127eb6))||_0x4a0005);}return _0xe5ec3a>0x3&&_0x4a0005&&Object[_0x4d936a(0x152)](_0x1d5e0b,_0x127eb6,_0x4a0005),_0x4a0005;}function _0x509a(){const _0x17f900=['FEventName','loadServerUnit','status$','state','Module','loadSlide','from','disposeWithMe','getWorkbook','2017645NYmhJn','unitID','fireEvent','loadBaseAsync','DataLoaderService','getDocument','FUniver','21nutOTz','_collaborationController','FCollaboration','switchMap','getBase','values','DisposableCollection','Inject','object','109922HlrqxB','getPresentation','extend','18336cjYfbG','SnapshotService','getCollaborationStatus','108OwvQLB','function','decorate','272762sXZIxD','loadUnitOfRevision','NOT_COLLAB','getOwnPropertyDescriptor','CollaborationStatus','5570932jtetXJ','loadDocAsync','waitForRoom$','getUnitId','_handler','entityInit$','defineProperty','pipe','_injector','readyForCollab','status','loadSlideAsync','FEnum','FBase','34254370yoyVUz','createInstance','add','_snapshotService','loadServerUnitOfRevision','1463368HMsKTP','get','toDisposable','228cGHTAL','CollaborationStatusChanged','Injector','_univerInstanceService','getFocusedUnit','getCollaboration','subscribe'];_0x509a=function(){return _0x17f900;};return _0x509a();}function _0x5edd(_0x5959df,_0x64e6e){_0x5959df=_0x5959df-0x117;const _0x509a6a=_0x509a();let _0x5edd6f=_0x509a6a[_0x5959df];return _0x5edd6f;}let l=class extends t[_0x347938(0x159)]{constructor(_0x17d358,_0x442247,_0xaa6d9c,_0x29cf25,_0x58a382){const _0x53c3c1=_0x347938;super(),this['_handler']=_0x17d358,this[_0x53c3c1(0x154)]=_0x442247,this[_0x53c3c1(0x121)]=_0xaa6d9c,this[_0x53c3c1(0x119)]=_0x29cf25,this[_0x53c3c1(0x136)]=_0x58a382;}async['loadSheetAsync'](_0x5c44b7,_0x44a033){const _0x53a041=_0x347938;return await this[_0x53a041(0x119)]['loadSheet'](_0x5c44b7,0x0,_0x44a033)?(await this[_0x53a041(0x136)][_0x53a041(0x155)](_0x5c44b7),this[_0x53a041(0x150)]['getWorkbook'](_0x5c44b7)):null;}async[_0x347938(0x14d)](_0x5d4361,_0x2e2511){const _0x1b6a2d=_0x347938;return await this['_snapshotService']['loadDoc'](_0x5d4361,0x0,_0x2e2511)?(await this[_0x1b6a2d(0x136)]['readyForCollab'](_0x5d4361),this[_0x1b6a2d(0x150)]['getDocument'](_0x5d4361)):null;}async[_0x347938(0x131)](_0x4022fb,_0x3ac6c5){const _0x207e16=_0x347938;return await this['_snapshotService']['loadBase'](_0x4022fb,0x0,_0x3ac6c5)?(await this[_0x207e16(0x136)][_0x207e16(0x155)](_0x4022fb),this[_0x207e16(0x150)][_0x207e16(0x139)](_0x4022fb)):null;}async[_0x347938(0x157)](_0x121435,_0x4c5505){const _0x21ae05=_0x347938;return await this[_0x21ae05(0x119)][_0x21ae05(0x12a)](_0x121435,0x0,_0x4c5505)?(await this['_collaborationController'][_0x21ae05(0x155)](_0x121435),this[_0x21ae05(0x150)][_0x21ae05(0x13f)](_0x121435)):null;}['subscribeCollaborators'](_0x55901b,_0x3bea77){const _0xe332cf=_0x347938;return(0x0,n[_0xe332cf(0x11d)])(this[_0xe332cf(0x154)][_0xe332cf(0x11c)](e['MemberService'])[_0xe332cf(0x14e)](_0x55901b)[_0xe332cf(0x153)]((0x0,i[_0xe332cf(0x138)])(_0x28492e=>_0x28492e['members$']))[_0xe332cf(0x124)](_0x34166d=>_0x3bea77(Array[_0xe332cf(0x12b)](_0x34166d[_0xe332cf(0x13a)]()))));}[_0x347938(0x143)](_0x565f9b){const _0x3a9a51=_0x347938;var _0x54ea70;let _0x4fd6b6;if(_0x565f9b)_0x4fd6b6=_0x565f9b;else{let _0x5f515a=this[_0x3a9a51(0x121)][_0x3a9a51(0x122)]();_0x4fd6b6=_0x5f515a==null?void 0x0:_0x5f515a[_0x3a9a51(0x14f)]();}if(!_0x4fd6b6)return e[_0x3a9a51(0x14b)][_0x3a9a51(0x149)];let _0x186258=this['_collaborationController']['getCollabEntity'](_0x4fd6b6);return(_0x54ea70=_0x186258==null?void 0x0:_0x186258[_0x3a9a51(0x128)][_0x3a9a51(0x156)])==null?e[_0x3a9a51(0x14b)][_0x3a9a51(0x149)]:_0x54ea70;}};l=c([s(0x1,(0x0,n[_0x347938(0x13c)])(n[_0x347938(0x120)])),s(0x2,n['IUniverInstanceService']),s(0x3,(0x0,n[_0x347938(0x13c)])(r[_0x347938(0x142)])),s(0x4,(0x0,n[_0x347938(0x13c)])(e['CollaborationController']))],l);var u=class extends t['FUniver']{['_initialize'](_0x174713){const _0x574490=_0x347938;let _0x3e6e7d=_0x174713[_0x574490(0x11c)](e['CollaborationController']);this[_0x574490(0x12c)](this['registerEventHandler'](this['Event']['CollaborationStatusChanged'],()=>{const _0x5b21d6=_0x574490;let _0x5be78b=new n[(_0x5b21d6(0x13b))](),_0x143377=_0x3e6e7d[_0x5b21d6(0x151)][_0x5b21d6(0x124)](_0x279580=>{const _0x4dd32b=_0x5b21d6;let _0x42e29b=_0x279580[_0x4dd32b(0x127)][_0x4dd32b(0x124)](_0x258618=>{const _0x4bd44a=_0x4dd32b;let _0x4089d7={'unitId':_0x279580[_0x4bd44a(0x12f)],'status':_0x258618};this[_0x4bd44a(0x130)](this['Event']['CollaborationStatusChanged'],_0x4089d7);});_0x5be78b['add']((0x0,n['toDisposable'])(_0x42e29b));});return _0x5be78b[_0x5b21d6(0x118)]((0x0,n[_0x5b21d6(0x11d)])(_0x143377)),_0x5be78b;}));}[_0x347938(0x123)](){const _0x518653=_0x347938;return this[_0x518653(0x154)][_0x518653(0x117)](l,{'getWorkbook':_0x25f584=>this[_0x518653(0x12d)](_0x25f584),'getDocument':_0x577535=>this[_0x518653(0x133)](_0x577535),'getPresentation':_0x358a4a=>this[_0x518653(0x13f)](_0x358a4a),'getBase':_0x27d24a=>this[_0x518653(0x139)](_0x27d24a)});}[_0x347938(0x126)](_0x555221,_0x5d3f7d,_0x30ad91){const _0x220f21=_0x347938;return this[_0x220f21(0x154)][_0x220f21(0x11c)](e[_0x220f21(0x132)])['loadUnit'](_0x555221,_0x5d3f7d,_0x30ad91);}[_0x347938(0x11a)](_0xd9e9a,_0x4afbbb,_0x11bdb9){const _0xfa4348=_0x347938;return this[_0xfa4348(0x154)][_0xfa4348(0x11c)](e[_0xfa4348(0x132)])[_0xfa4348(0x148)](_0xd9e9a,_0x4afbbb,_0x11bdb9);}};t[_0x347938(0x134)][_0x347938(0x140)](u),Object[_0x347938(0x152)](exports,_0x347938(0x137),{'enumerable':!0x0,'get':function(){return l;}});
|