@univerjs-pro/collaboration-client 0.11.0 → 0.12.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 -0
  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/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -0
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -0
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/types/facade/f-collaboration.d.ts +29 -1
  41. package/lib/types/facade/f-enum.d.ts +17 -0
  42. package/lib/types/facade/index.d.ts +1 -0
  43. package/lib/types/locale/ja-JP.d.ts +3 -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 -0
  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/vi-VN.js +1 -1
  55. package/lib/umd/locale/zh-CN.js +1 -1
  56. package/lib/umd/locale/zh-TW.js +1 -1
  57. package/package.json +11 -11
  58. package/lib/types/controllers/collaboration/utils/empty.d.ts +0 -2
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x48e5(_0x437298,_0x32943c){var _0x140f5e=_0x140f();return _0x48e5=function(_0x48e530,_0x193b15){_0x48e530=_0x48e530-0x127;var _0x128794=_0x140f5e[_0x48e530];return _0x128794;},_0x48e5(_0x437298,_0x32943c);}var _0xae3c93=_0x48e5;(function(_0x5d4b44,_0x3dd6ef){var _0x3a88a9=_0x48e5,_0x5c7b01=_0x5d4b44();while(!![]){try{var _0x2dd127=-parseInt(_0x3a88a9(0x12a))/0x1+-parseInt(_0x3a88a9(0x130))/0x2+-parseInt(_0x3a88a9(0x158))/0x3*(parseInt(_0x3a88a9(0x153))/0x4)+-parseInt(_0x3a88a9(0x13f))/0x5*(-parseInt(_0x3a88a9(0x139))/0x6)+-parseInt(_0x3a88a9(0x150))/0x7+-parseInt(_0x3a88a9(0x13d))/0x8+parseInt(_0x3a88a9(0x134))/0x9*(parseInt(_0x3a88a9(0x144))/0xa);if(_0x2dd127===_0x3dd6ef)break;else _0x5c7b01['push'](_0x5c7b01['shift']());}catch(_0x11b4d9){_0x5c7b01['push'](_0x5c7b01['shift']());}}}(_0x140f,0xc3572));Object[_0xae3c93(0x131)](exports,Symbol[_0xae3c93(0x14c)],{'value':_0xae3c93(0x136)});function _0x140f(){var _0x5e34e1=['_injector','_univerInstanceService','length','toStringTag','MemberService','loadServerUnitOfRevision','subscribeCollaborators','2957906oydnGI','get','getOwnPropertyDescriptor','21388gRrbnK','loadUnitOfRevision','Injector','loadSheet','FCollaboration','834GOcNAg','getUniverSheet','members$','readyForCollab','CollaborationController','700599elIsGi','waitForRoom$','loadActiveSheet','getCollaboration','toDisposable','createInstance','2631746amBVLe','defineProperty','extend','DataLoaderService','18cMjXvM','values','Module','from','_collaborationController','3682914tinFvW','FBase','FUniver','_handler','12200088bCAGXU','_snapshotService','5QnQIeJ','loadServerUnit','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','switchMap','loadSheetAsync','28184010uABJvy','pipe','loadUnit','Inject','loadActiveSheetAsync'];_0x140f=function(){return _0x5e34e1;};return _0x140f();}const c=require('@univerjs-pro/collaboration-client'),l=require('@univerjs/core/facade'),h=require('@univerjs-pro/collaboration'),n=require('@univerjs/core'),b=require('rxjs');var d=Object[_0xae3c93(0x152)],S=(_0x52f2cb,_0x4adc30,_0x52282f,_0x424f07)=>{var _0x38262a=_0xae3c93;for(var _0x218380=_0x424f07>0x1?void 0x0:_0x424f07?d(_0x4adc30,_0x52282f):_0x4adc30,_0x1a3058=_0x52f2cb[_0x38262a(0x14b)]-0x1,_0xc1e9a6;_0x1a3058>=0x0;_0x1a3058--)(_0xc1e9a6=_0x52f2cb[_0x1a3058])&&(_0x218380=_0xc1e9a6(_0x218380)||_0x218380);return _0x218380;},s=(_0x420bd5,_0xb3609c)=>(_0x1c8748,_0x3efe03)=>_0xb3609c(_0x1c8748,_0x3efe03,_0x420bd5);exports[_0xae3c93(0x157)]=class extends l[_0xae3c93(0x13a)]{constructor(_0x2b86be,_0x390830,_0x263290,_0x261134,_0x3b16c4){var _0x4b0ab6=_0xae3c93;super(),this[_0x4b0ab6(0x13c)]=_0x2b86be,this[_0x4b0ab6(0x149)]=_0x390830,this[_0x4b0ab6(0x14a)]=_0x263290,this[_0x4b0ab6(0x13e)]=_0x261134,this['_collaborationController']=_0x3b16c4;}async[_0xae3c93(0x12c)](){var _0x4b6d8f=_0xae3c93;return this[_0x4b6d8f(0x148)]();}async[_0xae3c93(0x148)](){var _0x5783fe=_0xae3c93;throw new Error(_0x5783fe(0x141));}async[_0xae3c93(0x156)](_0x5da79c){var _0x56bb1d=_0xae3c93;return this[_0x56bb1d(0x143)](_0x5da79c);}async[_0xae3c93(0x143)](_0x46c7d0,_0x2e3e43){var _0x28ed1e=_0xae3c93;return await this[_0x28ed1e(0x13e)][_0x28ed1e(0x156)](_0x46c7d0,0x0,_0x2e3e43)?(await this[_0x28ed1e(0x138)][_0x28ed1e(0x128)](_0x46c7d0),this[_0x28ed1e(0x13c)][_0x28ed1e(0x159)](_0x46c7d0)):null;}[_0xae3c93(0x14f)](_0x25bad5,_0x19f137){var _0x47a27b=_0xae3c93;const _0x120a26=this['_injector']['get'](c[_0x47a27b(0x14d)])[_0x47a27b(0x12b)](_0x25bad5)[_0x47a27b(0x145)](b[_0x47a27b(0x142)](_0x5cd5d2=>_0x5cd5d2[_0x47a27b(0x127)]))['subscribe'](_0x3ee5f8=>_0x19f137(Array[_0x47a27b(0x137)](_0x3ee5f8[_0x47a27b(0x135)]())));return n[_0x47a27b(0x12e)](_0x120a26);}},exports[_0xae3c93(0x157)]=S([s(0x1,n[_0xae3c93(0x147)](n[_0xae3c93(0x155)])),s(0x2,n['IUniverInstanceService']),s(0x3,n[_0xae3c93(0x147)](h['SnapshotService'])),s(0x4,n[_0xae3c93(0x147)](c[_0xae3c93(0x129)]))],exports[_0xae3c93(0x157)]);class u extends l[_0xae3c93(0x13b)]{[_0xae3c93(0x12d)](){var _0x17168c=_0xae3c93;return this[_0x17168c(0x149)][_0x17168c(0x12f)](exports[_0x17168c(0x157)],{'getUniverSheet':_0x550ce8=>this['getUniverSheet'](_0x550ce8)});}[_0xae3c93(0x140)](_0x1bdbff,_0x4616ee,_0x2c13fb){var _0x59f1ca=_0xae3c93;return this[_0x59f1ca(0x149)][_0x59f1ca(0x151)](c[_0x59f1ca(0x133)])[_0x59f1ca(0x146)](_0x1bdbff,_0x4616ee,_0x2c13fb);}[_0xae3c93(0x14e)](_0x2a38f9,_0x4f5dcb,_0x136cea){var _0x2848fb=_0xae3c93;return this['_injector'][_0x2848fb(0x151)](c[_0x2848fb(0x133)])[_0x2848fb(0x154)](_0x2a38f9,_0x4f5dcb,_0x136cea);}}l['FUniver'][_0xae3c93(0x132)](u);
1
+ 'use strict';function _0x5425(){const _0x31ec67=['length','getUniverSheet','3228544pMLFNf','loadServerUnit','loadActiveSheetAsync','890775xWSQyq','getCollabEntity','getUnitId','45befVVp','loadSheetAsync','_handler','NOT_COLLAB','Injector','get','loadUnit','toStringTag','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','IUniverInstanceService','status','createInstance','FEnum','4iTQeEw','CollaborationController','state','SnapshotService','_snapshotService','loadSheet','getFocusedUnit','FCollaboration','subscribe','defineProperty','waitForRoom$','values','FUniver','DataLoaderService','333490FzTBRV','_injector','101015QcaKsp','_collaborationController','switchMap','1680756wtINAy','extend','getCollaboration','getCollaborationStatus','getOwnPropertyDescriptor','Inject','CollaborationStatus','from','subscribeCollaborators','2012840zodZlH','MemberService','516036xMhnHu','171ZTXZyD','_univerInstanceService','loadUnitOfRevision'];_0x5425=function(){return _0x31ec67;};return _0x5425();}const _0x12e4e7=_0x78b0;function _0x78b0(_0x3b1c4a,_0x2217f3){const _0x5425fa=_0x5425();return _0x78b0=function(_0x78b077,_0x552e63){_0x78b077=_0x78b077-0xcc;let _0x67104d=_0x5425fa[_0x78b077];return _0x67104d;},_0x78b0(_0x3b1c4a,_0x2217f3);}(function(_0x4fd853,_0x2cf8ec){const _0x4ff0a3=_0x78b0,_0x1151a1=_0x4fd853();while(!![]){try{const _0x37f756=parseInt(_0x4ff0a3(0xcd))/0x1*(parseInt(_0x4ff0a3(0xf4))/0x2)+parseInt(_0x4ff0a3(0xe4))/0x3+parseInt(_0x4ff0a3(0xe1))/0x4+parseInt(_0x4ff0a3(0xe7))/0x5*(-parseInt(_0x4ff0a3(0xdb))/0x6)+-parseInt(_0x4ff0a3(0xd0))/0x7+-parseInt(_0x4ff0a3(0xd9))/0x8+-parseInt(_0x4ff0a3(0xdc))/0x9*(-parseInt(_0x4ff0a3(0x102))/0xa);if(_0x37f756===_0x2cf8ec)break;else _0x1151a1['push'](_0x1151a1['shift']());}catch(_0x30f7a3){_0x1151a1['push'](_0x1151a1['shift']());}}}(_0x5425,0xa48a3));Object[_0x12e4e7(0xfd)](exports,Symbol[_0x12e4e7(0xee)],{'value':'Module'});const i=require('@univerjs-pro/collaboration-client'),l=require('@univerjs/core/facade'),v=require('@univerjs-pro/collaboration'),s=require('@univerjs/core'),b=require('rxjs');class h extends l[_0x12e4e7(0xf3)]{get[_0x12e4e7(0xd6)](){return i['CollaborationStatus'];}}l[_0x12e4e7(0xf3)][_0x12e4e7(0xd1)](h);var d=Object[_0x12e4e7(0xd4)],S=(_0x5a1741,_0x4aff31,_0x4f3537,_0x558883)=>{const _0x28e094=_0x12e4e7;for(var _0x1ab15f=_0x558883>0x1?void 0x0:_0x558883?d(_0x4aff31,_0x4f3537):_0x4aff31,_0x1bf843=_0x5a1741[_0x28e094(0xdf)]-0x1,_0x45edac;_0x1bf843>=0x0;_0x1bf843--)(_0x45edac=_0x5a1741[_0x1bf843])&&(_0x1ab15f=_0x45edac(_0x1ab15f)||_0x1ab15f);return _0x1ab15f;},c=(_0x5605af,_0x39cc27)=>(_0x3182f1,_0x2911ac)=>_0x39cc27(_0x3182f1,_0x2911ac,_0x5605af);exports[_0x12e4e7(0xfb)]=class extends l['FBase']{constructor(_0x3f28a4,_0x1f702b,_0x5597ce,_0xe2523,_0x48cba1){const _0x351700=_0x12e4e7;super(),this[_0x351700(0xe9)]=_0x3f28a4,this[_0x351700(0xcc)]=_0x1f702b,this[_0x351700(0xdd)]=_0x5597ce,this[_0x351700(0xf8)]=_0xe2523,this[_0x351700(0xce)]=_0x48cba1;}async['loadActiveSheet'](){const _0xc442e2=_0x12e4e7;return this[_0xc442e2(0xe3)]();}async[_0x12e4e7(0xe3)](){const _0x4184e0=_0x12e4e7;throw new Error(_0x4184e0(0xef));}async[_0x12e4e7(0xf9)](_0x4da49b){const _0x26802f=_0x12e4e7;return this[_0x26802f(0xe8)](_0x4da49b);}async['loadSheetAsync'](_0xedb2f8,_0x319631){const _0x255a9d=_0x12e4e7;return await this[_0x255a9d(0xf8)][_0x255a9d(0xf9)](_0xedb2f8,0x0,_0x319631)?(await this[_0x255a9d(0xce)]['readyForCollab'](_0xedb2f8),this[_0x255a9d(0xe9)]['getUniverSheet'](_0xedb2f8)):null;}[_0x12e4e7(0xd8)](_0x13c204,_0x3fc423){const _0x39f68d=_0x12e4e7,_0x14dc48=this[_0x39f68d(0xcc)][_0x39f68d(0xec)](i[_0x39f68d(0xda)])[_0x39f68d(0xfe)](_0x13c204)['pipe'](b[_0x39f68d(0xcf)](_0x36c899=>_0x36c899['members$']))[_0x39f68d(0xfc)](_0x34df24=>_0x3fc423(Array[_0x39f68d(0xd7)](_0x34df24[_0x39f68d(0xff)]())));return s['toDisposable'](_0x14dc48);}[_0x12e4e7(0xd3)](){const _0x4b781c=_0x12e4e7,_0x2b0c1c=this[_0x4b781c(0xdd)][_0x4b781c(0xfa)]();if(!_0x2b0c1c)return i['CollaborationStatus'][_0x4b781c(0xea)];const _0x44b1b3=this['_collaborationController'][_0x4b781c(0xe5)](_0x2b0c1c[_0x4b781c(0xe6)]());return _0x44b1b3?_0x44b1b3[_0x4b781c(0xf6)][_0x4b781c(0xf1)]:i[_0x4b781c(0xd6)]['NOT_COLLAB'];}},exports[_0x12e4e7(0xfb)]=S([c(0x1,s[_0x12e4e7(0xd5)](s[_0x12e4e7(0xeb)])),c(0x2,s[_0x12e4e7(0xf0)]),c(0x3,s[_0x12e4e7(0xd5)](v[_0x12e4e7(0xf7)])),c(0x4,s[_0x12e4e7(0xd5)](i[_0x12e4e7(0xf5)]))],exports[_0x12e4e7(0xfb)]);class C extends l[_0x12e4e7(0x100)]{[_0x12e4e7(0xd2)](){const _0x3c1ad5=_0x12e4e7;return this[_0x3c1ad5(0xcc)][_0x3c1ad5(0xf2)](exports[_0x3c1ad5(0xfb)],{'getUniverSheet':_0x37c135=>this[_0x3c1ad5(0xe0)](_0x37c135)});}[_0x12e4e7(0xe2)](_0x498adc,_0x3fdfde,_0x586e81){const _0x491c55=_0x12e4e7;return this[_0x491c55(0xcc)][_0x491c55(0xec)](i['DataLoaderService'])[_0x491c55(0xed)](_0x498adc,_0x3fdfde,_0x586e81);}['loadServerUnitOfRevision'](_0x394fad,_0xf12c6d,_0xef7392){const _0x1f6a6a=_0x12e4e7;return this['_injector'][_0x1f6a6a(0xec)](i[_0x1f6a6a(0x101)])[_0x1f6a6a(0xde)](_0x394fad,_0xf12c6d,_0xef7392);}}l[_0x12e4e7(0x100)][_0x12e4e7(0xd1)](C);