@univerjs-pro/collaboration-client 0.23.0 → 0.24.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.
Files changed (58) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/sk-SK.js +1 -1
  12. package/lib/cjs/locale/vi-VN.js +1 -1
  13. package/lib/cjs/locale/zh-CN.js +1 -1
  14. package/lib/cjs/locale/zh-TW.js +1 -1
  15. package/lib/es/facade.js +1 -1
  16. package/lib/es/index.js +1 -1
  17. package/lib/es/locale/ca-ES.js +1 -1
  18. package/lib/es/locale/en-US.js +1 -1
  19. package/lib/es/locale/es-ES.js +1 -1
  20. package/lib/es/locale/fa-IR.js +1 -1
  21. package/lib/es/locale/fr-FR.js +1 -1
  22. package/lib/es/locale/ja-JP.js +1 -1
  23. package/lib/es/locale/ko-KR.js +1 -1
  24. package/lib/es/locale/ru-RU.js +1 -1
  25. package/lib/es/locale/sk-SK.js +1 -1
  26. package/lib/es/locale/vi-VN.js +1 -1
  27. package/lib/es/locale/zh-CN.js +1 -1
  28. package/lib/es/locale/zh-TW.js +1 -1
  29. package/lib/facade.js +1 -1
  30. package/lib/index.js +1 -1
  31. package/lib/locale/ca-ES.js +1 -1
  32. package/lib/locale/en-US.js +1 -1
  33. package/lib/locale/es-ES.js +1 -1
  34. package/lib/locale/fa-IR.js +1 -1
  35. package/lib/locale/fr-FR.js +1 -1
  36. package/lib/locale/ja-JP.js +1 -1
  37. package/lib/locale/ko-KR.js +1 -1
  38. package/lib/locale/ru-RU.js +1 -1
  39. package/lib/locale/sk-SK.js +1 -1
  40. package/lib/locale/vi-VN.js +1 -1
  41. package/lib/locale/zh-CN.js +1 -1
  42. package/lib/locale/zh-TW.js +1 -1
  43. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -0
  44. package/lib/umd/facade.js +1 -1
  45. package/lib/umd/index.js +1 -1
  46. package/lib/umd/locale/ca-ES.js +1 -1
  47. package/lib/umd/locale/en-US.js +1 -1
  48. package/lib/umd/locale/es-ES.js +1 -1
  49. package/lib/umd/locale/fa-IR.js +1 -1
  50. package/lib/umd/locale/fr-FR.js +1 -1
  51. package/lib/umd/locale/ja-JP.js +1 -1
  52. package/lib/umd/locale/ko-KR.js +1 -1
  53. package/lib/umd/locale/ru-RU.js +1 -1
  54. package/lib/umd/locale/sk-SK.js +1 -1
  55. package/lib/umd/locale/vi-VN.js +1 -1
  56. package/lib/umd/locale/zh-CN.js +1 -1
  57. package/lib/umd/locale/zh-TW.js +1 -1
  58. package/package.json +13 -13
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x554db2=_0x41cf;(function(_0x13e8a8,_0x16bfe2){const _0x341736=_0x41cf,_0x439c3b=_0x13e8a8();while(!![]){try{const _0x190073=-parseInt(_0x341736(0x1c8))/0x1*(-parseInt(_0x341736(0x203))/0x2)+parseInt(_0x341736(0x1d1))/0x3+parseInt(_0x341736(0x1d2))/0x4*(parseInt(_0x341736(0x1f1))/0x5)+parseInt(_0x341736(0x1e7))/0x6*(parseInt(_0x341736(0x1fb))/0x7)+parseInt(_0x341736(0x1f0))/0x8*(-parseInt(_0x341736(0x1db))/0x9)+-parseInt(_0x341736(0x1d5))/0xa+-parseInt(_0x341736(0x1f7))/0xb;if(_0x190073===_0x16bfe2)break;else _0x439c3b['push'](_0x439c3b['shift']());}catch(_0xc7cdce){_0x439c3b['push'](_0x439c3b['shift']());}}}(_0x4856,0xa101e),Object['defineProperty'](exports,Symbol[_0x554db2(0x1e0)],{'value':'Module'}));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[_0x554db2(0x1fe)]{get[_0x554db2(0x1ca)](){return e['CollaborationStatus'];}};function _0x4856(){const _0x3c4514=['add','7454270GVcuJD','state','getCollaboration','CollaborationController','values','DisposableCollection','207vIpBxh','IUniverInstanceService','FUniver','NOT_COLLAB','_injector','toStringTag','length','registerEventHandler','entityInit$','loadActiveSheet','Inject','getCollabEntity','12bLjSuj','FEventName','CollaborationStatusChanged','toDisposable','extend','DataLoaderService','from','loadSheetAsync','_snapshotService','422512sgTBOS','5pIsXdw','loadSheet','getFocusedUnit','FBase','fireEvent','Event','2337874RZXVGs','object','Injector','loadServerUnitOfRevision','2574775zngAbu','MemberService','_univerInstanceService','FEnum','subscribe','_handler','loadActiveSheetAsync','waitForRoom$','78996UVBoFA','getOwnPropertyDescriptor','19vdGXuM','decorate','CollaborationStatus','get','switchMap','createInstance','getUniverSheet','_collaborationController','readyForCollab','2301453PKrPjv','2315624JzcfMO','_initialize'];_0x4856=function(){return _0x3c4514;};return _0x4856();}t[_0x554db2(0x1fe)][_0x554db2(0x1eb)](a);var o=class extends t['FEventName']{get[_0x554db2(0x1e9)](){return'CollaborationStatusChanged';}};t[_0x554db2(0x1e8)][_0x554db2(0x1eb)](o);function s(_0x17e3d9,_0x4098d4){return function(_0x124cbe,_0x135b79){_0x4098d4(_0x124cbe,_0x135b79,_0x17e3d9);};}function c(_0x22eebe,_0x1c1427,_0x1855b0,_0x68322e){const _0x48fddd=_0x554db2;var _0xebf505=arguments[_0x48fddd(0x1e1)],_0x12bb1f=_0xebf505<0x3?_0x1c1427:_0x68322e===null?_0x68322e=Object[_0x48fddd(0x1c7)](_0x1c1427,_0x1855b0):_0x68322e,_0x1bfea4;if(typeof Reflect==_0x48fddd(0x1f8)&&typeof Reflect[_0x48fddd(0x1c9)]=='function')_0x12bb1f=Reflect[_0x48fddd(0x1c9)](_0x22eebe,_0x1c1427,_0x1855b0,_0x68322e);else{for(var _0x522c11=_0x22eebe['length']-0x1;_0x522c11>=0x0;_0x522c11--)(_0x1bfea4=_0x22eebe[_0x522c11])&&(_0x12bb1f=(_0xebf505<0x3?_0x1bfea4(_0x12bb1f):_0xebf505>0x3?_0x1bfea4(_0x1c1427,_0x1855b0,_0x12bb1f):_0x1bfea4(_0x1c1427,_0x1855b0))||_0x12bb1f);}return _0xebf505>0x3&&_0x12bb1f&&Object['defineProperty'](_0x1c1427,_0x1855b0,_0x12bb1f),_0x12bb1f;}let l=class extends t[_0x554db2(0x1f4)]{constructor(_0x3b88f8,_0x330ff1,_0xd7380e,_0x1c983d,_0x52dcdd){const _0x3e2b51=_0x554db2;super(),this[_0x3e2b51(0x200)]=_0x3b88f8,this[_0x3e2b51(0x1df)]=_0x330ff1,this[_0x3e2b51(0x1fd)]=_0xd7380e,this['_snapshotService']=_0x1c983d,this[_0x3e2b51(0x1cf)]=_0x52dcdd;}async[_0x554db2(0x1e4)](){const _0x25732e=_0x554db2;return this[_0x25732e(0x201)]();}async[_0x554db2(0x201)](){throw Error('[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.');}async[_0x554db2(0x1f2)](_0x300988){const _0x2c5642=_0x554db2;return this[_0x2c5642(0x1ee)](_0x300988);}async[_0x554db2(0x1ee)](_0x5a8d27,_0x10e984){const _0x1b744c=_0x554db2;return await this[_0x1b744c(0x1ef)][_0x1b744c(0x1f2)](_0x5a8d27,0x0,_0x10e984)?(await this[_0x1b744c(0x1cf)][_0x1b744c(0x1d0)](_0x5a8d27),this[_0x1b744c(0x200)][_0x1b744c(0x1ce)](_0x5a8d27)):null;}['subscribeCollaborators'](_0x4f47ea,_0x4cac85){const _0x2a0e29=_0x554db2;return(0x0,n[_0x2a0e29(0x1ea)])(this[_0x2a0e29(0x1df)][_0x2a0e29(0x1cb)](e[_0x2a0e29(0x1fc)])[_0x2a0e29(0x202)](_0x4f47ea)['pipe']((0x0,i[_0x2a0e29(0x1cc)])(_0x514858=>_0x514858['members$']))['subscribe'](_0x458cb7=>_0x4cac85(Array[_0x2a0e29(0x1ed)](_0x458cb7[_0x2a0e29(0x1d9)]()))));}['getCollaborationStatus'](_0x5db3c1){const _0x3fd8a8=_0x554db2;var _0x4de048;let _0xef5da5;if(_0x5db3c1)_0xef5da5=_0x5db3c1;else{let _0x3438b1=this['_univerInstanceService'][_0x3fd8a8(0x1f3)]();_0xef5da5=_0x3438b1==null?void 0x0:_0x3438b1['getUnitId']();}if(!_0xef5da5)return e[_0x3fd8a8(0x1ca)][_0x3fd8a8(0x1de)];let _0x1b35dd=this[_0x3fd8a8(0x1cf)][_0x3fd8a8(0x1e6)](_0xef5da5);return(_0x4de048=_0x1b35dd==null?void 0x0:_0x1b35dd[_0x3fd8a8(0x1d6)]['status'])==null?e['CollaborationStatus']['NOT_COLLAB']:_0x4de048;}};l=c([s(0x1,(0x0,n['Inject'])(n[_0x554db2(0x1f9)])),s(0x2,n[_0x554db2(0x1dc)]),s(0x3,(0x0,n['Inject'])(r['SnapshotService'])),s(0x4,(0x0,n[_0x554db2(0x1e5)])(e[_0x554db2(0x1d8)]))],l);function _0x41cf(_0x4d3c65,_0x15658a){_0x4d3c65=_0x4d3c65-0x1c7;const _0x48563e=_0x4856();let _0x41cf9a=_0x48563e[_0x4d3c65];return _0x41cf9a;}var u=class extends t[_0x554db2(0x1dd)]{[_0x554db2(0x1d3)](_0x3f52cf){const _0x10e5e4=_0x554db2;let _0x2453be=_0x3f52cf[_0x10e5e4(0x1cb)](e[_0x10e5e4(0x1d8)]);this['disposeWithMe'](this[_0x10e5e4(0x1e2)](this[_0x10e5e4(0x1f6)][_0x10e5e4(0x1e9)],()=>{const _0x357057=_0x10e5e4;let _0x372d0e=new n[(_0x357057(0x1da))](),_0x1547ac=_0x2453be[_0x357057(0x1e3)][_0x357057(0x1ff)](_0x220db9=>{const _0x2da6e1=_0x357057;let _0x5d0369=_0x220db9['status$']['subscribe'](_0x318693=>{const _0xdf3d41=_0x41cf;let _0x38e21e={'unitId':_0x220db9['unitID'],'status':_0x318693};this[_0xdf3d41(0x1f5)](this[_0xdf3d41(0x1f6)]['CollaborationStatusChanged'],_0x38e21e);});_0x372d0e[_0x2da6e1(0x1d4)]((0x0,n[_0x2da6e1(0x1ea)])(_0x5d0369));});return _0x372d0e['add']((0x0,n[_0x357057(0x1ea)])(_0x1547ac)),_0x372d0e;}));}[_0x554db2(0x1d7)](){const _0x3d6b25=_0x554db2;return this[_0x3d6b25(0x1df)][_0x3d6b25(0x1cd)](l,{'getUniverSheet':_0x47d55b=>this[_0x3d6b25(0x1ce)](_0x47d55b)});}['loadServerUnit'](_0x584acc,_0x57bc4d,_0x5bb76c){const _0x770208=_0x554db2;return this[_0x770208(0x1df)][_0x770208(0x1cb)](e[_0x770208(0x1ec)])['loadUnit'](_0x584acc,_0x57bc4d,_0x5bb76c);}[_0x554db2(0x1fa)](_0x8e335d,_0x4f3324,_0x4551ac){const _0x43b59b=_0x554db2;return this['_injector']['get'](e[_0x43b59b(0x1ec)])['loadUnitOfRevision'](_0x8e335d,_0x4f3324,_0x4551ac);}};t[_0x554db2(0x1dd)][_0x554db2(0x1eb)](u),Object['defineProperty'](exports,'FCollaboration',{'enumerable':!0x0,'get':function(){return l;}});
1
+ const _0x11c52d=_0x1d24;(function(_0x14bb66,_0x1b875e){const _0x1d4a09=_0x1d24,_0x522942=_0x14bb66();while(!![]){try{const _0x32db88=parseInt(_0x1d4a09(0xad))/0x1+-parseInt(_0x1d4a09(0xc5))/0x2*(-parseInt(_0x1d4a09(0x9e))/0x3)+-parseInt(_0x1d4a09(0xbb))/0x4+parseInt(_0x1d4a09(0x9b))/0x5*(parseInt(_0x1d4a09(0xb3))/0x6)+parseInt(_0x1d4a09(0xa8))/0x7+-parseInt(_0x1d4a09(0x99))/0x8*(-parseInt(_0x1d4a09(0xa3))/0x9)+-parseInt(_0x1d4a09(0x96))/0xa*(parseInt(_0x1d4a09(0x9c))/0xb);if(_0x32db88===_0x1b875e)break;else _0x522942['push'](_0x522942['shift']());}catch(_0x3a6958){_0x522942['push'](_0x522942['shift']());}}}(_0x2ec3,0xed145),Object[_0x11c52d(0xba)](exports,Symbol[_0x11c52d(0xac)],{'value':'Module'}));let e=require(`@univerjs-pro/collaboration-client`),t=require(`@univerjs/core/facade`),n=require(`@univerjs/core`),r=require(`@univerjs-pro/collaboration`),i=require(`rxjs`);function _0x2ec3(){const _0x32c076=['752DzNqHs','entityInit$','833015ZVisUT','11TxuWOR','getUnitId','2722431CjbWES','disposeWithMe','pipe','Inject','FEventName','32868qYZrHL','decorate','loadSheet','Event','extend','2010064CyNmWV','SnapshotService','fireEvent','switchMap','toStringTag','665727bkaCgG','_initialize','subscribe','CollaborationController','FBase','FEnum','42ultSHe','loadActiveSheet','CollaborationStatus','loadSheetAsync','DisposableCollection','loadServerUnit','getCollaboration','defineProperty','5534640eKmYYD','toDisposable','CollaborationStatusChanged','_injector','length','registerEventHandler','state','readyForCollab','DataLoaderService','loadUnitOfRevision','2ZOyghY','NOT_COLLAB','values','loadServerUnitOfRevision','_collaborationController','FUniver','_handler','getUniverSheet','FCollaboration','add','_univerInstanceService','subscribeCollaborators','getCollabEntity','loadUnit','_snapshotService','from','get','10151280ygLFnq','status','getCollaborationStatus'];_0x2ec3=function(){return _0x32c076;};return _0x2ec3();}var a=class extends t[_0x11c52d(0xb2)]{get[_0x11c52d(0xb5)](){return e['CollaborationStatus'];}};t[_0x11c52d(0xb2)][_0x11c52d(0xa7)](a);var o=class extends t[_0x11c52d(0xa2)]{get[_0x11c52d(0xbd)](){return'CollaborationStatusChanged';}};function _0x1d24(_0x48bc2c,_0x7b28e6){_0x48bc2c=_0x48bc2c-0x8c;const _0x2ec34c=_0x2ec3();let _0x1d241f=_0x2ec34c[_0x48bc2c];return _0x1d241f;}t[_0x11c52d(0xa2)][_0x11c52d(0xa7)](o);function s(_0x175ddc,_0x114e76){return function(_0x2137da,_0x32f97e){_0x114e76(_0x2137da,_0x32f97e,_0x175ddc);};}function c(_0x34784a,_0x4517b2,_0x22a74e,_0x17add6){const _0x5483d2=_0x11c52d;var _0xd3e451=arguments[_0x5483d2(0xbf)],_0x13ee00=_0xd3e451<0x3?_0x4517b2:_0x17add6===null?_0x17add6=Object['getOwnPropertyDescriptor'](_0x4517b2,_0x22a74e):_0x17add6,_0x6dabd3;if(typeof Reflect=='object'&&typeof Reflect[_0x5483d2(0xa4)]=='function')_0x13ee00=Reflect[_0x5483d2(0xa4)](_0x34784a,_0x4517b2,_0x22a74e,_0x17add6);else{for(var _0x453dc8=_0x34784a[_0x5483d2(0xbf)]-0x1;_0x453dc8>=0x0;_0x453dc8--)(_0x6dabd3=_0x34784a[_0x453dc8])&&(_0x13ee00=(_0xd3e451<0x3?_0x6dabd3(_0x13ee00):_0xd3e451>0x3?_0x6dabd3(_0x4517b2,_0x22a74e,_0x13ee00):_0x6dabd3(_0x4517b2,_0x22a74e))||_0x13ee00);}return _0xd3e451>0x3&&_0x13ee00&&Object[_0x5483d2(0xba)](_0x4517b2,_0x22a74e,_0x13ee00),_0x13ee00;}let l=class extends t[_0x11c52d(0xb1)]{constructor(_0x408e7f,_0x1ca230,_0x73d89d,_0x1d1b1c,_0x18aaa2){const _0x22b689=_0x11c52d;super(),this[_0x22b689(0xcb)]=_0x408e7f,this[_0x22b689(0xbe)]=_0x1ca230,this[_0x22b689(0x8f)]=_0x73d89d,this['_snapshotService']=_0x1d1b1c,this[_0x22b689(0xc9)]=_0x18aaa2;}async[_0x11c52d(0xb4)](){return this['loadActiveSheetAsync']();}async['loadActiveSheetAsync'](){throw Error('[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.');}async[_0x11c52d(0xa5)](_0x249668){const _0x3ac9fa=_0x11c52d;return this[_0x3ac9fa(0xb6)](_0x249668);}async[_0x11c52d(0xb6)](_0x51e516,_0x179751){const _0x5ae268=_0x11c52d;return await this[_0x5ae268(0x93)]['loadSheet'](_0x51e516,0x0,_0x179751)?(await this[_0x5ae268(0xc9)][_0x5ae268(0xc2)](_0x51e516),this['_handler'][_0x5ae268(0x8c)](_0x51e516)):null;}[_0x11c52d(0x90)](_0x4e5c00,_0x4d3ca7){const _0x461445=_0x11c52d;return(0x0,n[_0x461445(0xbc)])(this[_0x461445(0xbe)][_0x461445(0x95)](e['MemberService'])['waitForRoom$'](_0x4e5c00)[_0x461445(0xa0)]((0x0,i[_0x461445(0xab)])(_0x1e3898=>_0x1e3898['members$']))[_0x461445(0xaf)](_0x320713=>_0x4d3ca7(Array[_0x461445(0x94)](_0x320713[_0x461445(0xc7)]()))));}[_0x11c52d(0x98)](_0x47bbb0){const _0x5ece07=_0x11c52d;var _0x581f70;let _0x61c350;if(_0x47bbb0)_0x61c350=_0x47bbb0;else{let _0x23023e=this[_0x5ece07(0x8f)]['getFocusedUnit']();_0x61c350=_0x23023e==null?void 0x0:_0x23023e[_0x5ece07(0x9d)]();}if(!_0x61c350)return e[_0x5ece07(0xb5)][_0x5ece07(0xc6)];let _0x364132=this[_0x5ece07(0xc9)][_0x5ece07(0x91)](_0x61c350);return(_0x581f70=_0x364132==null?void 0x0:_0x364132[_0x5ece07(0xc1)][_0x5ece07(0x97)])==null?e[_0x5ece07(0xb5)]['NOT_COLLAB']:_0x581f70;}};l=c([s(0x1,(0x0,n['Inject'])(n['Injector'])),s(0x2,n['IUniverInstanceService']),s(0x3,(0x0,n[_0x11c52d(0xa1)])(r[_0x11c52d(0xa9)])),s(0x4,(0x0,n[_0x11c52d(0xa1)])(e[_0x11c52d(0xb0)]))],l);var u=class extends t[_0x11c52d(0xca)]{[_0x11c52d(0xae)](_0x48b254){const _0x574323=_0x11c52d;let _0x49d06f=_0x48b254['get'](e[_0x574323(0xb0)]);this[_0x574323(0x9f)](this[_0x574323(0xc0)](this[_0x574323(0xa6)][_0x574323(0xbd)],()=>{const _0x49a15e=_0x574323;let _0x47e663=new n[(_0x49a15e(0xb7))](),_0x266532=_0x49d06f[_0x49a15e(0x9a)]['subscribe'](_0x382d82=>{const _0x157005=_0x49a15e;let _0x361945=_0x382d82['status$']['subscribe'](_0x570b65=>{const _0x41bf46=_0x1d24;let _0x538f20={'unitId':_0x382d82['unitID'],'status':_0x570b65};this[_0x41bf46(0xaa)](this['Event'][_0x41bf46(0xbd)],_0x538f20);});_0x47e663[_0x157005(0x8e)]((0x0,n[_0x157005(0xbc)])(_0x361945));});return _0x47e663['add']((0x0,n[_0x49a15e(0xbc)])(_0x266532)),_0x47e663;}));}[_0x11c52d(0xb9)](){const _0x3fe59d=_0x11c52d;return this[_0x3fe59d(0xbe)]['createInstance'](l,{'getUniverSheet':_0x398e34=>this[_0x3fe59d(0x8c)](_0x398e34)});}[_0x11c52d(0xb8)](_0x11e147,_0x9db088,_0x55cc37){const _0x31d53e=_0x11c52d;return this[_0x31d53e(0xbe)]['get'](e[_0x31d53e(0xc3)])[_0x31d53e(0x92)](_0x11e147,_0x9db088,_0x55cc37);}[_0x11c52d(0xc8)](_0x335f61,_0x374508,_0x5aabd0){const _0x40c506=_0x11c52d;return this[_0x40c506(0xbe)][_0x40c506(0x95)](e[_0x40c506(0xc3)])[_0x40c506(0xc4)](_0x335f61,_0x374508,_0x5aabd0);}};t[_0x11c52d(0xca)][_0x11c52d(0xa7)](u),Object['defineProperty'](exports,_0x11c52d(0x8d),{'enumerable':!0x0,'get':function(){return l;}});