@univerjs-pro/collaboration-client 0.6.0-experimental.20250125-1d060b9 → 0.6.0-experimental.20250220-d9a8e74
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/en-US.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/ru-RU.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-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +1 -1
- package/lib/types/controllers/config.schema.d.ts +2 -2
- package/lib/types/facade/f-collaboration.d.ts +7 -3
- package/lib/types/facade/f-univer.d.ts +2 -2
- package/lib/types/index.d.ts +1 -1
- package/lib/types/plugin.d.ts +2 -2
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +2 -5
- package/lib/types/services/permission/permission.service.d.ts +2 -4
- package/lib/types/services/socket/collaboration-socket.service.d.ts +13 -6
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/package.json +15 -15
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x56b5(){const _0x45ab4d=['Edit\x20conflicts','Click\x20to\x20Reconnect','337959ZHjtkV','4337600jPcerY','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','670WoUALZ','9489KgBGiM','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','Local\x20file','13167328DUWBMA','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','5502210EhDLxR','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','860oJmyNy','26448uYkQyD','Syncing...','1918juVQgW','Synced','1879763uGxAwT','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Authentication\x20Error','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'];_0x56b5=function(){return _0x45ab4d;};return _0x56b5();}const _0x5bfc2d=_0x406e;(function(_0x1531ec,_0x22b85f){const _0x2b1e49=_0x406e,_0xeec5bc=_0x1531ec();while(!![]){try{const _0x1d4650=-parseInt(_0x2b1e49(0x150))/0x1+-parseInt(_0x2b1e49(0x15a))/0x2*(parseInt(_0x2b1e49(0x142))/0x3)+-parseInt(_0x2b1e49(0x157))/0x4+-parseInt(_0x2b1e49(0x149))/0x5+parseInt(_0x2b1e49(0x14c))/0x6*(parseInt(_0x2b1e49(0x14e))/0x7)+parseInt(_0x2b1e49(0x146))/0x8+parseInt(_0x2b1e49(0x156))/0x9*(parseInt(_0x2b1e49(0x14b))/0xa);if(_0x1d4650===_0x22b85f)break;else _0xeec5bc['push'](_0xeec5bc['shift']());}catch(_0x2bc3f8){_0xeec5bc['push'](_0xeec5bc['shift']());}}}(_0x56b5,0xea1a4));const e={'collab-client':{'tooltip':{'reconnect':_0x5bfc2d(0x155)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x5bfc2d(0x154),'notCollab':_0x5bfc2d(0x145),'synced':_0x5bfc2d(0x14f),'syncing':_0x5bfc2d(0x14d),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x5bfc2d(0x143),'will-retry':_0x5bfc2d(0x144),'room-full':'The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','join-failed':'Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-not-exists':_0x5bfc2d(0x147),'room-permission-denied':_0x5bfc2d(0x159),'room-cnt-exceeds':_0x5bfc2d(0x14a),'collaboration-timeout':_0x5bfc2d(0x153)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x5bfc2d(0x151)},'permission':{'title':_0x5bfc2d(0x152),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x5bfc2d(0x148)},'closeRoom':_0x5bfc2d(0x158)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};function _0x406e(_0x48f993,_0x3123cd){const _0x56b5d7=_0x56b5();return _0x406e=function(_0x406eb2,_0x3a104b){_0x406eb2=_0x406eb2-0x142;let _0x593038=_0x56b5d7[_0x406eb2];return _0x593038;},_0x406e(_0x48f993,_0x3123cd);}export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x8b627b=_0x1385;function _0x3cbb(){const _0x3dfa3d=['آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20لطفاً\x20بعداً\x20دوباره\x20امتحان\x20کنید.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','9audboW','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمیدهد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','2946bPYvdx','3664840oBzPLF','همگام\x20سازی','ظرفیت\x20همکاری\x20در\x20این\x20سند\x20پر\x20شده\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','ورود\x20شم\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','18BkZOvx','771727uqvQvM','تداخل\x20همکاری','16EXRxMy','اتصال\x20ناموفق\x20بود،\x20لطفاً\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','تعداد\x20اسناد\x20همکاری\x20از\x20حد\x20مجاز\x20فراتر\x20رفته\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','تداخل\x20ویرایش','54203088UrGDBn','142301wRMrbt','خطای\x20اعتبارسنجی','17227Hnrroh','1348912xCKDTy','130qfRVQs','136491oROGpc'];_0x3cbb=function(){return _0x3dfa3d;};return _0x3cbb();}(function(_0x492713,_0x184cdb){const _0x59b4e2=_0x1385,_0x300446=_0x492713();while(!![]){try{const _0x40d7b7=parseInt(_0x59b4e2(0x110))/0x1*(-parseInt(_0x59b4e2(0x122))/0x2)+-parseInt(_0x59b4e2(0x115))/0x3*(-parseInt(_0x59b4e2(0x125))/0x4)+-parseInt(_0x59b4e2(0x11b))/0x5+parseInt(_0x59b4e2(0x11a))/0x6*(-parseInt(_0x59b4e2(0x112))/0x7)+parseInt(_0x59b4e2(0x113))/0x8*(parseInt(_0x59b4e2(0x118))/0x9)+-parseInt(_0x59b4e2(0x114))/0xa*(parseInt(_0x59b4e2(0x123))/0xb)+parseInt(_0x59b4e2(0x10f))/0xc;if(_0x40d7b7===_0x184cdb)break;else _0x300446['push'](_0x300446['shift']());}catch(_0x2a50fd){_0x300446['push'](_0x300446['shift']());}}}(_0x3cbb,0xb3111));function _0x1385(_0x31aa89,_0x3d751d){const _0x3cbb82=_0x3cbb();return _0x1385=function(_0x138539,_0x3d4cf6){_0x138539=_0x138539-0x10d;let _0x1317cd=_0x3cbb82[_0x138539];return _0x1317cd;},_0x1385(_0x31aa89,_0x3d751d);}const o={'collab-client':{'tooltip':{'reconnect':_0x8b627b(0x121)}},'collabStatus':{'fetchMiss':_0x8b627b(0x120),'conflict':_0x8b627b(0x10e),'notCollab':'پرونده\x20محلی','synced':_0x8b627b(0x11c),'syncing':'در\x20حال\x20همگام\x20سازی...','offline':_0x8b627b(0x116)},'session':{'connection-failed':_0x8b627b(0x126),'will-retry':_0x8b627b(0x11f),'room-full':_0x8b627b(0x11d),'join-failed':_0x8b627b(0x117),'room-not-exists':'پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','room-permission-denied':'دسترسی\x20همکاری\x20وجود\x20ندارد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','room-cnt-exceeds':_0x8b627b(0x10d),'collaboration-timeout':_0x8b627b(0x119)},'conflict':{'title':_0x8b627b(0x124),'content':'یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'permission':{'title':_0x8b627b(0x111),'content':'اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'collaboration':{'single-unit':{'warning':'شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.'},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':_0x8b627b(0x11e)}};export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x18ea53=_0x14da;function _0x14da(_0x87a929,_0x205452){const _0x3775ef=_0x3775();return _0x14da=function(_0x14da7b,_0x52843a){_0x14da7b=_0x14da7b-0xb2;let _0x2ef1ea=_0x3775ef[_0x14da7b];return _0x2ef1ea;},_0x14da(_0x87a929,_0x205452);}function _0x3775(){const _0xc9b9a9=['The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Edit\x20conflicts','5966720pmincl','2817524qXvaLT','35608snXqtz','2826qIUeWi','3181270tmGsDg','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Syncing\x20server\x20data...','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','171773FTzqAQ','99YErhvc','Authentication\x20Error','Click\x20to\x20Reconnect','1294701gHvbND','56957xzpPsE','Syncing...','6LYtIYv','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Synced','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Local\x20file','Collaboration\x20Conflict','6fRoBFG','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.'];_0x3775=function(){return _0xc9b9a9;};return _0x3775();}(function(_0x1ed0d7,_0x452597){const _0x1968de=_0x14da,_0x5d073b=_0x1ed0d7();while(!![]){try{const _0x4d4c70=parseInt(_0x1968de(0xca))/0x1*(-parseInt(_0x1968de(0xcc))/0x2)+parseInt(_0x1968de(0xc9))/0x3+parseInt(_0x1968de(0xbb))/0x4+parseInt(_0x1968de(0xba))/0x5+parseInt(_0x1968de(0xb6))/0x6*(parseInt(_0x1968de(0xc5))/0x7)+-parseInt(_0x1968de(0xbc))/0x8*(-parseInt(_0x1968de(0xbd))/0x9)+parseInt(_0x1968de(0xbe))/0xa*(-parseInt(_0x1968de(0xc6))/0xb);if(_0x4d4c70===_0x452597)break;else _0x5d073b['push'](_0x5d073b['shift']());}catch(_0x4a9c3a){_0x5d073b['push'](_0x5d073b['shift']());}}}(_0x3775,0xaf277));const e={'collab-client':{'tooltip':{'reconnect':_0x18ea53(0xc8)}},'collabStatus':{'fetchMiss':_0x18ea53(0xc1),'conflict':_0x18ea53(0xb9),'notCollab':_0x18ea53(0xb4),'synced':_0x18ea53(0xb2),'syncing':_0x18ea53(0xcb),'offline':_0x18ea53(0xc2)},'session':{'connection-failed':_0x18ea53(0xc4),'will-retry':_0x18ea53(0xb7),'room-full':'The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','join-failed':_0x18ea53(0xbf),'room-not-exists':_0x18ea53(0xc3),'room-permission-denied':_0x18ea53(0xce),'room-cnt-exceeds':_0x18ea53(0xb3),'collaboration-timeout':_0x18ea53(0xb8)},'conflict':{'title':_0x18ea53(0xb5),'content':_0x18ea53(0xcd)},'permission':{'title':_0x18ea53(0xc7),'content':_0x18ea53(0xc0)},'collaboration':{'single-unit':{'warning':_0x18ea53(0xcf)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;export{o as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x55e645=_0x4a9e;function _0x4a9e(_0x337e27,_0x4765ed){const _0x498af2=_0x498a();return _0x4a9e=function(_0x4a9e08,_0x378301){_0x4a9e08=_0x4a9e08-0x11c;let _0x207944=_0x498af2[_0x4a9e08];return _0x207944;},_0x4a9e(_0x337e27,_0x4765ed);}function _0x498a(){const _0xb3cb50=['51IAXDBD','Local\x20file','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Synced','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Syncing...','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','170oIJVNq','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Authentication\x20Error','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','7MusLsc','367569xdbYbI','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','2712504SkYfwS','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','2793456nDFhNt','Click\x20to\x20Reconnect','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','2599895ueTrEP','558606DPPiSj','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Edit\x20conflicts','3405072YIXJbh','14548TtcJXD'];_0x498a=function(){return _0xb3cb50;};return _0x498a();}(function(_0x3a61ac,_0x5413ff){const _0x5cde1b=_0x4a9e,_0x43a636=_0x3a61ac();while(!![]){try{const _0x385cdd=parseInt(_0x5cde1b(0x128))/0x1+-parseInt(_0x5cde1b(0x12c))/0x2*(parseInt(_0x5cde1b(0x12d))/0x3)+parseInt(_0x5cde1b(0x121))/0x4+-parseInt(_0x5cde1b(0x127))/0x5+parseInt(_0x5cde1b(0x12b))/0x6*(-parseInt(_0x5cde1b(0x11e))/0x7)+-parseInt(_0x5cde1b(0x124))/0x8+parseInt(_0x5cde1b(0x11f))/0x9*(parseInt(_0x5cde1b(0x135))/0xa);if(_0x385cdd===_0x5413ff)break;else _0x43a636['push'](_0x43a636['shift']());}catch(_0x20a1ca){_0x43a636['push'](_0x43a636['shift']());}}}(_0x498a,0x5a80a));const e={'collab-client':{'tooltip':{'reconnect':_0x55e645(0x125)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x55e645(0x12a),'notCollab':_0x55e645(0x12e),'synced':_0x55e645(0x130),'syncing':_0x55e645(0x132),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x55e645(0x134),'will-retry':'Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','room-full':_0x55e645(0x136),'join-failed':_0x55e645(0x133),'room-not-exists':_0x55e645(0x120),'room-permission-denied':_0x55e645(0x11d),'room-cnt-exceeds':_0x55e645(0x131),'collaboration-timeout':_0x55e645(0x123)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x55e645(0x122)},'permission':{'title':_0x55e645(0x11c),'content':_0x55e645(0x126)},'collaboration':{'single-unit':{'warning':_0x55e645(0x129)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x55e645(0x12f)}},o=e;export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x1ce1d0=_0x20fb;(function(_0x3deb8f,_0x1f0709){const _0x2e6615=_0x20fb,_0x5d7a6c=_0x3deb8f();while(!![]){try{const _0x425358=parseInt(_0x2e6615(0x1d1))/0x1*(-parseInt(_0x2e6615(0x1c9))/0x2)+parseInt(_0x2e6615(0x1d0))/0x3*(parseInt(_0x2e6615(0x1cd))/0x4)+-parseInt(_0x2e6615(0x1d2))/0x5+parseInt(_0x2e6615(0x1ca))/0x6+parseInt(_0x2e6615(0x1cc))/0x7*(parseInt(_0x2e6615(0x1c0))/0x8)+parseInt(_0x2e6615(0x1bd))/0x9*(parseInt(_0x2e6615(0x1c1))/0xa)+-parseInt(_0x2e6615(0x1d4))/0xb*(parseInt(_0x2e6615(0x1c4))/0xc);if(_0x425358===_0x1f0709)break;else _0x5d7a6c['push'](_0x5d7a6c['shift']());}catch(_0x5f0a93){_0x5d7a6c['push'](_0x5d7a6c['shift']());}}}(_0x173a,0xa0389));const e={'collab-client':{'tooltip':{'reconnect':_0x1ce1d0(0x1cb)}},'collabStatus':{'fetchMiss':_0x1ce1d0(0x1c6),'conflict':_0x1ce1d0(0x1be),'notCollab':'Local\x20file','synced':_0x1ce1d0(0x1ce),'syncing':_0x1ce1d0(0x1c2),'offline':_0x1ce1d0(0x1bf)},'session':{'connection-failed':'Connection\x20failed.\x20Please\x20check\x20your\x20network.','will-retry':_0x1ce1d0(0x1d5),'room-full':_0x1ce1d0(0x1bb),'join-failed':'Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-not-exists':_0x1ce1d0(0x1c3),'room-permission-denied':_0x1ce1d0(0x1d3),'room-cnt-exceeds':_0x1ce1d0(0x1ba),'collaboration-timeout':_0x1ce1d0(0x1cf)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x1ce1d0(0x1c7)},'permission':{'title':'Authentication\x20Error','content':_0x1ce1d0(0x1c8)},'collaboration':{'single-unit':{'warning':_0x1ce1d0(0x1bc)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x1ce1d0(0x1c5)}},o=e;export{o as default};function _0x20fb(_0x27aaa8,_0x232e1f){const _0x173a7b=_0x173a();return _0x20fb=function(_0x20fb7a,_0x15747b){_0x20fb7a=_0x20fb7a-0x1ba;let _0x18c4d9=_0x173a7b[_0x20fb7a];return _0x18c4d9;},_0x20fb(_0x27aaa8,_0x232e1f);}function _0x173a(){const _0x4319e2=['270RighWb','Syncing...','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','60876enLlrZ','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Syncing\x20server\x20data...','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','271412Rjqyhi','7366548EaJnou','Click\x20to\x20Reconnect','44793HSQKwA','4iUWmNF','Synced','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','3052377oyXApN','7brqwIV','4926245fpdqjZ','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','1353fGYeLW','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','69579fuGcwk','Edit\x20conflicts','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','952AqmZnX'];_0x173a=function(){return _0x4319e2;};return _0x173a();}
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x33a510=_0x5056;function _0x5056(_0x2cd4af,_0x59ae85){const _0x2052d6=_0x2052();return _0x5056=function(_0x505675,_0xe55963){_0x505675=_0x505675-0x7a;let _0x36aa64=_0x2052d6[_0x505675];return _0x36aa64;},_0x5056(_0x2cd4af,_0x59ae85);}(function(_0x3a3378,_0x28758e){const _0x7d7234=_0x5056,_0x1f6e61=_0x3a3378();while(!![]){try{const _0x17b281=parseInt(_0x7d7234(0x89))/0x1*(-parseInt(_0x7d7234(0x7f))/0x2)+parseInt(_0x7d7234(0x86))/0x3+parseInt(_0x7d7234(0x7e))/0x4+-parseInt(_0x7d7234(0x7d))/0x5+parseInt(_0x7d7234(0x87))/0x6+-parseInt(_0x7d7234(0x8f))/0x7*(-parseInt(_0x7d7234(0x80))/0x8)+parseInt(_0x7d7234(0x85))/0x9*(-parseInt(_0x7d7234(0x8a))/0xa);if(_0x17b281===_0x28758e)break;else _0x1f6e61['push'](_0x1f6e61['shift']());}catch(_0x4d6705){_0x1f6e61['push'](_0x1f6e61['shift']());}}}(_0x2052,0x792b1));const o={'collab-client':{'tooltip':{'reconnect':'点击重新连接'}},'collabStatus':{'fetchMiss':_0x33a510(0x8e),'conflict':_0x33a510(0x90),'notCollab':'本地文件','synced':_0x33a510(0x83),'syncing':'保存中...','offline':_0x33a510(0x84)},'session':{'connection-failed':_0x33a510(0x7a),'will-retry':_0x33a510(0x7b),'room-full':_0x33a510(0x88),'join-failed':_0x33a510(0x91),'room-not-exists':_0x33a510(0x8d),'room-permission-denied':_0x33a510(0x7c),'room-cnt-exceeds':_0x33a510(0x81),'collaboration-timeout':_0x33a510(0x8b)},'conflict':{'title':'协同冲突','content':_0x33a510(0x8c)},'permission':{'title':_0x33a510(0x92),'content':'你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。'},'collaboration':{'single-unit':{'warning':'你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。'},'closeRoom':_0x33a510(0x82)},'auth':{'needGotoLoginAlert':'你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。'}};export{o as default};function _0x2052(){const _0x29b0bc=['连接失败,请检查你的网络','连接失败,将在一会儿之后重试连接','没有协同权限,你的编辑将在本地缓存','3468025SNohkw','2399600EwseLO','1822xqWqym','16xOoNjv','协同文档数量超过限制,你的编辑将在本地缓存','由于协同房间被关闭,编辑权限被收回。','已同步','已离线,编辑将在本地缓存','15467031MVFgPe','1871505iyfIXj','5112336eHibcc','此文档协同人数已满,你的编辑将在本地缓存','26xlHNRi','10ypAHKt','服务器未响应,你的编辑将在本地缓存','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','加入协同失败,你的编辑将在本地缓存','正在拉取服务端数据...','2997274CLzjhm','编辑冲突','加入协同失败,请稍后重试,你的编辑将在本地缓存','权限错误'];_0x2052=function(){return _0x29b0bc;};return _0x2052();}
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x26db23=_0x4cb7;function _0x8f4c(){const _0x291575=['1774971HZtrcQ','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Local\x20file','Synced','407996KnyTNC','2519380AObpoO','769720MDadtG','110qsiowC','Syncing\x20server\x20data...','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','42VkDxKD','Syncing...','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','605895wnqSTT','677015HVLBHm','1066125NhpfTt','Collaboration\x20Conflict','Authentication\x20Error','6tPiyAc'];_0x8f4c=function(){return _0x291575;};return _0x8f4c();}(function(_0x5c4556,_0x5e9dd8){const _0x592a3a=_0x4cb7,_0x332141=_0x5c4556();while(!![]){try{const _0x2e5bc8=-parseInt(_0x592a3a(0x14d))/0x1+parseInt(_0x592a3a(0x144))/0x2+-parseInt(_0x592a3a(0x14f))/0x3+-parseInt(_0x592a3a(0x145))/0x4+-parseInt(_0x592a3a(0x14e))/0x5*(-parseInt(_0x592a3a(0x152))/0x6)+-parseInt(_0x592a3a(0x14a))/0x7*(parseInt(_0x592a3a(0x146))/0x8)+-parseInt(_0x592a3a(0x153))/0x9*(-parseInt(_0x592a3a(0x147))/0xa);if(_0x2e5bc8===_0x5e9dd8)break;else _0x332141['push'](_0x332141['shift']());}catch(_0x3fd60e){_0x332141['push'](_0x332141['shift']());}}}(_0x8f4c,0x531b5));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x26db23(0x148),'conflict':'Edit\x20conflicts','notCollab':_0x26db23(0x142),'synced':_0x26db23(0x143),'syncing':_0x26db23(0x14b),'offline':_0x26db23(0x140)},'session':{'connection-failed':'Connection\x20failed.\x20Please\x20check\x20your\x20network.','will-retry':_0x26db23(0x149),'room-full':'The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','join-failed':_0x26db23(0x14c),'room-not-exists':'Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-permission-denied':_0x26db23(0x141),'room-cnt-exceeds':'Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','collaboration-timeout':_0x26db23(0x13d)},'conflict':{'title':_0x26db23(0x150),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x26db23(0x151),'content':_0x26db23(0x13f)},'collaboration':{'single-unit':{'warning':_0x26db23(0x155)},'closeRoom':_0x26db23(0x13e)},'auth':{'needGotoLoginAlert':_0x26db23(0x154)}},o=e;function _0x4cb7(_0x406d0f,_0xacf01){const _0x8f4c48=_0x8f4c();return _0x4cb7=function(_0x4cb78e,_0x112268){_0x4cb78e=_0x4cb78e-0x13d;let _0x10623f=_0x8f4c48[_0x4cb78e];return _0x10623f;},_0x4cb7(_0x406d0f,_0xacf01);}export{o as default};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { IMutationInfo, IUniverInstanceService } from '@univerjs/core';
|
2
1
|
import { IChangeset, RevisionService } from '@univerjs-pro/collaboration';
|
2
|
+
import { IMutationInfo, IUniverInstanceService } from '@univerjs/core';
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import { MemberService } from '../../../services/member/member.service';
|
5
5
|
export interface IAssembledChangeset {
|
@@ -3,7 +3,7 @@ import { ICollaborationSocketService } from '../services/socket/collaboration-so
|
|
3
3
|
export declare const COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY = "collaboration-client.config";
|
4
4
|
export declare const configSymbol: unique symbol;
|
5
5
|
export interface IUniverCollaborationClientConfig {
|
6
|
-
socketService
|
6
|
+
socketService: Ctor<ICollaborationSocketService>;
|
7
7
|
enableOfflineEditing?: boolean;
|
8
8
|
enableSingleActiveInstanceLock?: boolean;
|
9
9
|
enableAuthServer?: boolean;
|
@@ -30,4 +30,4 @@ export interface IUniverCollaborationClientConfig {
|
|
30
30
|
uploadFileServerUrl?: string;
|
31
31
|
signUrlServerUrl?: string;
|
32
32
|
}
|
33
|
-
export declare const defaultPluginConfig: IUniverCollaborationClientConfig
|
33
|
+
export declare const defaultPluginConfig: Omit<IUniverCollaborationClientConfig, 'socketService'>;
|
@@ -1,8 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import { ILogContext, SnapshotService } from '@univerjs-pro/collaboration';
|
2
|
+
import { IDisposable, Injector, IUniverInstanceService } from '@univerjs/core';
|
2
3
|
import { IMember } from '@univerjs/protocol';
|
3
4
|
import { FWorkbook } from '@univerjs/sheets/facade';
|
4
|
-
import { SnapshotService } from '@univerjs-pro/collaboration';
|
5
5
|
import { CollaborationController } from '@univerjs-pro/collaboration-client';
|
6
|
+
import { FBase } from '@univerjs/core/facade';
|
6
7
|
/**
|
7
8
|
* The Facade API object for the Collaboration module. It provides methods to interact with the
|
8
9
|
* Univer Collaboration backend server, such as loading Univer Sheets and subscribing to collaborators.
|
@@ -45,7 +46,10 @@ export declare class FCollaboration extends FBase {
|
|
45
46
|
loadSheet(unitId: string): Promise<FWorkbook | null>;
|
46
47
|
/**
|
47
48
|
* Load a Univer Sheet from the server with a unit ID.
|
49
|
+
*
|
48
50
|
* @param {string} unitId ID of the Univer Sheet that you would like to load.
|
51
|
+
* @param {ILogContext} [context] Optional context.
|
52
|
+
*
|
49
53
|
* @returns {Promise<FWorkbook | null>} The {@link FWorkbook} or null if ID cannot be associated with a Univer Sheet.
|
50
54
|
*
|
51
55
|
* @example
|
@@ -54,7 +58,7 @@ export declare class FCollaboration extends FBase {
|
|
54
58
|
* const workbook = await collaboration.loadSheetAsync('your-unit-id');
|
55
59
|
* ```
|
56
60
|
*/
|
57
|
-
loadSheetAsync(unitId: string): Promise<FWorkbook | null>;
|
61
|
+
loadSheetAsync(unitId: string, context?: ILogContext): Promise<FWorkbook | null>;
|
58
62
|
/**
|
59
63
|
* Subscribe collaborators of a Univer file.
|
60
64
|
*
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { FUniver } from '@univerjs/core';
|
1
|
+
import { FUniver } from '@univerjs/core/facade';
|
2
2
|
import { FCollaboration } from './f-collaboration';
|
3
3
|
/**
|
4
4
|
* @ignore
|
@@ -21,7 +21,7 @@ export declare class FUniverCollaborationClientMixin extends FUniver implements
|
|
21
21
|
/**
|
22
22
|
* @ignore
|
23
23
|
*/
|
24
|
-
declare module '@univerjs/core' {
|
24
|
+
declare module '@univerjs/core/facade' {
|
25
25
|
interface FUniver extends IFUniverCollaborationClientMixin {
|
26
26
|
}
|
27
27
|
}
|
package/lib/types/index.d.ts
CHANGED
@@ -2,7 +2,7 @@ export {
|
|
2
2
|
/** @deprecated Will be removed in the 0.2.19 release */
|
3
3
|
COLLAB_SUBMIT_CHANGESET_URL_KEY,
|
4
4
|
/** @deprecated Will be removed in the 0.2.19 release */
|
5
|
-
COLLAB_WEB_SOCKET_URL_KEY, HEARTBEAT_INTERVAL_KEY, HEARTBEAT_TIMEOUT_KEY, LOCAL_CACHE_INTERVAL, LOCAL_CACHE_INTERVAL_KEY, LOGIN_URL_KEY, RETRY_CONNECTING_MAX_COUNT_KEY,
|
5
|
+
COLLAB_WEB_SOCKET_URL_KEY, DEFAULT_WS_SESSION_TICKET_URL, HEARTBEAT_INTERVAL_KEY, HEARTBEAT_TIMEOUT_KEY, LOCAL_CACHE_INTERVAL, LOCAL_CACHE_INTERVAL_KEY, LOGIN_URL_KEY, RETRY_CONNECTING_MAX_COUNT_KEY,
|
6
6
|
/** @deprecated Will be removed in the 0.2.19 release */
|
7
7
|
SEND_CHANGESET_TIMEOUT_KEY,
|
8
8
|
/** @deprecated Will be removed in the 0.2.19 release */
|
package/lib/types/plugin.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { IUniverCollaborationClientConfig } from './controllers/config.schema';
|
2
2
|
import { IConfigService, ILogService, Injector, Plugin } from '@univerjs/core';
|
3
3
|
export declare class UniverCollaborationClientPlugin extends Plugin {
|
4
|
-
private readonly _config;
|
5
4
|
private readonly _logService;
|
6
5
|
protected _injector: Injector;
|
7
6
|
private readonly _configService;
|
8
7
|
static pluginName: string;
|
9
|
-
|
8
|
+
private readonly _config;
|
9
|
+
constructor(_config: IUniverCollaborationClientConfig, _logService: ILogService, _injector: Injector, _configService: IConfigService);
|
10
10
|
onStarting(): void;
|
11
11
|
private _registerDependencies;
|
12
12
|
private _initDependencies;
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { Nullable, Disposable, IConfigService, ILogService, Injector } from '@univerjs/core';
|
2
2
|
import { ICollaborationSocket, ICollaborationSocketService } from '../socket/collaboration-socket.service';
|
3
|
-
import { HTTPService } from '@univerjs/network';
|
4
3
|
import { CollaborationUIEventService } from '../collaboration-ui-event/collaboration-ui-event';
|
5
4
|
import { INetworkConditionService } from '../network-condition/network-condition.service';
|
6
5
|
import { CollaborationSession, SessionStatus } from './collaboration-session';
|
@@ -13,7 +12,6 @@ export declare class CollaborationSessionService extends Disposable {
|
|
13
12
|
private readonly _logService;
|
14
13
|
private readonly _configService;
|
15
14
|
private readonly _socketService;
|
16
|
-
private readonly _httpService;
|
17
15
|
private readonly _collaborationUIEventService;
|
18
16
|
private readonly _networkConditionService?;
|
19
17
|
/**
|
@@ -29,7 +27,7 @@ export declare class CollaborationSessionService extends Disposable {
|
|
29
27
|
private _socketReady;
|
30
28
|
private _retryConnectingTimer;
|
31
29
|
private _retryCount;
|
32
|
-
constructor(_injector: Injector, _logService: ILogService, _configService: IConfigService, _socketService: ICollaborationSocketService,
|
30
|
+
constructor(_injector: Injector, _logService: ILogService, _configService: IConfigService, _socketService: ICollaborationSocketService, _collaborationUIEventService: CollaborationUIEventService, _networkConditionService?: INetworkConditionService | undefined);
|
33
31
|
private _listenToNetworkCondition;
|
34
32
|
dispose(): void;
|
35
33
|
/**
|
@@ -40,8 +38,7 @@ export declare class CollaborationSessionService extends Disposable {
|
|
40
38
|
requireSession(unitID: string): Promise<CollaborationSession>;
|
41
39
|
closeSession(unitID: string): void;
|
42
40
|
reconnect(): void;
|
43
|
-
private
|
44
|
-
private _createSocketURL;
|
41
|
+
private _clearRetryConnectingTimer;
|
45
42
|
/**
|
46
43
|
* Authentication flow for WebSocket connections:
|
47
44
|
* 1. Get one-time session ticket via HTTP request
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Injector, IPermissionService, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
2
2
|
import { CollaborationSessionService } from '../collaboration-session/collaboration-session.service';
|
3
3
|
import { CollaborationUIEventService } from '../collaboration-ui-event/collaboration-ui-event';
|
4
4
|
export declare class PermissionService extends RxDisposable {
|
@@ -7,9 +7,7 @@ export declare class PermissionService extends RxDisposable {
|
|
7
7
|
private _permissionService;
|
8
8
|
private _collaborationSessionService;
|
9
9
|
private _collaborationUIEventService;
|
10
|
-
|
11
|
-
private readonly _undoRedoService;
|
12
|
-
constructor(_injector: Injector, _univerInstanceService: IUniverInstanceService, _permissionService: IPermissionService, _collaborationSessionService: CollaborationSessionService, _collaborationUIEventService: CollaborationUIEventService, _authzIoService: IAuthzIoService, _undoRedoService: IUndoRedoService);
|
10
|
+
constructor(_injector: Injector, _univerInstanceService: IUniverInstanceService, _permissionService: IPermissionService, _collaborationSessionService: CollaborationSessionService, _collaborationUIEventService: CollaborationUIEventService);
|
13
11
|
private _initCloseConn;
|
14
12
|
private _initUnitPermissionChange;
|
15
13
|
}
|
@@ -3,6 +3,10 @@ import { Nullable, Disposable, IConfigService, ILogService, Injector } from '@un
|
|
3
3
|
import { ISocket, HTTPService } from '@univerjs/network';
|
4
4
|
import { IChangeset } from '@univerjs/protocol';
|
5
5
|
import { Observable } from 'rxjs';
|
6
|
+
/**
|
7
|
+
* A special wrapper around of the original {@link ISocket} implementation to
|
8
|
+
* for collaboration.
|
9
|
+
*/
|
6
10
|
export interface ICollaborationSocket extends Pick<ISocket, 'open$' | 'error$' | 'close$'> {
|
7
11
|
memberID: string;
|
8
12
|
message$: Observable<ICombResponseEvent>;
|
@@ -10,25 +14,28 @@ export interface ICollaborationSocket extends Pick<ISocket, 'open$' | 'error$' |
|
|
10
14
|
close: () => void;
|
11
15
|
}
|
12
16
|
/**
|
13
|
-
* This service provides a
|
17
|
+
* This service provides a method to open a socket be used to communicate with the collaboration server.
|
18
|
+
* Different environments may have different implementations of this service, because of the different
|
19
|
+
* authentication methods.
|
14
20
|
*/
|
15
21
|
export interface ICollaborationSocketService {
|
16
|
-
createSocket: (url: string) => Nullable<ICollaborationSocket
|
22
|
+
createSocket: (url: string) => Promise<Nullable<ICollaborationSocket>>;
|
17
23
|
}
|
18
24
|
export declare const ICollaborationSocketService: import('@wendellhu/redi').IdentifierDecorator<ICollaborationSocketService>;
|
19
|
-
export declare class CollaborationSocketService extends Disposable implements ICollaborationSocketService {
|
25
|
+
export declare abstract class CollaborationSocketService extends Disposable implements ICollaborationSocketService {
|
20
26
|
protected readonly _injector: Injector;
|
21
|
-
protected readonly
|
27
|
+
protected readonly _httpService: HTTPService;
|
22
28
|
protected readonly _configService: IConfigService;
|
23
29
|
protected readonly _logService: ILogService;
|
24
30
|
protected readonly _snapshotServerService: ISnapshotServerService;
|
25
|
-
constructor(_injector: Injector,
|
31
|
+
constructor(_injector: Injector, _httpService: HTTPService, _configService: IConfigService, _logService: ILogService, _snapshotServerService: ISnapshotServerService);
|
32
|
+
abstract createSocket(url: string): Promise<Nullable<ICollaborationSocket>>;
|
26
33
|
/**
|
27
34
|
* Create a socket that would connect to the remote collaboration server. It would throw an error when the socket cannot be created.
|
28
35
|
*
|
29
36
|
* @param URL The URL of the remote server.
|
30
37
|
*/
|
31
|
-
|
38
|
+
protected _doCreateSocket(URL: string): Nullable<ICollaborationSocket>;
|
32
39
|
protected _submitChangeset(socket: ICollaborationSocket, event: ISubmitChangesetEvent): Promise<void>;
|
33
40
|
protected _fetchMissChangesets(event: IFetchingMissEvent): Promise<IChangeset[]>;
|
34
41
|
}
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
(function(_0x15a75a,_0x12ac4e){var _0x1493fd=_0x5d6e,_0x2f2fd7=_0x15a75a();while(!![]){try{var _0x21c70e=parseInt(_0x1493fd(0x20f))/0x1+parseInt(_0x1493fd(0x207))/0x2+-parseInt(_0x1493fd(0x217))/0x3*(parseInt(_0x1493fd(0x1f4))/0x4)+-parseInt(_0x1493fd(0x205))/0x5+parseInt(_0x1493fd(0x1e8))/0x6*(parseInt(_0x1493fd(0x1e6))/0x7)+-parseInt(_0x1493fd(0x20e))/0x8*(parseInt(_0x1493fd(0x213))/0x9)+-parseInt(_0x1493fd(0x204))/0xa*(-parseInt(_0x1493fd(0x212))/0xb);if(_0x21c70e===_0x12ac4e)break;else _0x2f2fd7['push'](_0x2f2fd7['shift']());}catch(_0x5b1e7c){_0x2f2fd7['push'](_0x2f2fd7['shift']());}}}(_0x4371,0x66faa),function(_0x35ed8d,_0x573e07){var _0x77b73d=_0x5d6e;typeof exports==_0x77b73d(0x1fa)&&typeof module<'u'?_0x573e07(exports,require(_0x77b73d(0x215)),require(_0x77b73d(0x1f9)),require(_0x77b73d(0x1ee)),require(_0x77b73d(0x200)),require(_0x77b73d(0x1f3))):typeof define==_0x77b73d(0x208)&&define[_0x77b73d(0x1fe)]?define([_0x77b73d(0x1e7),_0x77b73d(0x215),_0x77b73d(0x1f9),_0x77b73d(0x1ee),_0x77b73d(0x200),_0x77b73d(0x1f3)],_0x573e07):(_0x35ed8d=typeof globalThis<'u'?globalThis:_0x35ed8d||self,_0x573e07(_0x35ed8d[_0x77b73d(0x1fd)]={},_0x35ed8d[_0x77b73d(0x203)],_0x35ed8d[_0x77b73d(0x211)],_0x35ed8d[_0x77b73d(0x20c)],_0x35ed8d[_0x77b73d(0x201)],_0x35ed8d['rxjs']));}(this,function(_0x1891f0,_0xfcf67b,_0x2eeb4c,_0x392bd1,_0x24069e,_0xb14094){'use strict';var _0x111ec5=_0x5d6e;var _0x58db3a=Object[_0x111ec5(0x1f6)],_0x46e5dd=Object[_0x111ec5(0x1ea)],_0x478735=(_0x455c1d,_0x1a737,_0x2806ce,_0x2cc184)=>{var _0x16fb7b=_0x111ec5;for(var _0x328859=_0x2cc184>0x1?void 0x0:_0x2cc184?_0x46e5dd(_0x1a737,_0x2806ce):_0x1a737,_0x3abbb0=_0x455c1d[_0x16fb7b(0x216)]-0x1,_0x23a9a6;_0x3abbb0>=0x0;_0x3abbb0--)(_0x23a9a6=_0x455c1d[_0x3abbb0])&&(_0x328859=(_0x2cc184?_0x23a9a6(_0x1a737,_0x2806ce,_0x328859):_0x23a9a6(_0x328859))||_0x328859);return _0x2cc184&&_0x328859&&_0x58db3a(_0x1a737,_0x2806ce,_0x328859),_0x328859;},_0x5201ca=(_0x174fd9,_0x24a165)=>(_0x1265ae,_0x56c787)=>_0x24a165(_0x1265ae,_0x56c787,_0x174fd9);_0x1891f0[_0x111ec5(0x1f8)]=class extends _0xfcf67b[_0x111ec5(0x1e3)]{constructor(_0x2cc59d,_0x33e4d3,_0x117b28,_0x4b0e5b,_0x2c9c49){var _0x26d40f=_0x111ec5;super(),this[_0x26d40f(0x1ed)]=_0x2cc59d,this[_0x26d40f(0x20a)]=_0x33e4d3,this[_0x26d40f(0x209)]=_0x117b28,this[_0x26d40f(0x1eb)]=_0x4b0e5b,this[_0x26d40f(0x1ec)]=_0x2c9c49;}async['loadActiveSheet'](){return this['loadActiveSheetAsync']();}async[_0x111ec5(0x1f1)](){var _0x4bf236=_0x111ec5;throw new Error(_0x4bf236(0x214));}async['loadSheet'](_0x52f417){var _0x4636af=_0x111ec5;return this[_0x4636af(0x20b)](_0x52f417);}async[_0x111ec5(0x20b)](_0x123d14,_0x31efa8){var _0x581956=_0x111ec5;return await this[_0x581956(0x1eb)]['loadSheet'](_0x123d14,0x0,_0x31efa8)?(await this['_collaborationController'][_0x581956(0x206)](_0x123d14),this[_0x581956(0x1ed)][_0x581956(0x1f2)](_0x123d14)):null;}[_0x111ec5(0x1fc)](_0x3abdba,_0x1f7660){var _0x278eb5=_0x111ec5;const _0x5e478e=this[_0x278eb5(0x20a)][_0x278eb5(0x1e2)](_0x392bd1[_0x278eb5(0x20d)])[_0x278eb5(0x1f7)](_0x3abdba)[_0x278eb5(0x210)](_0xb14094[_0x278eb5(0x1ff)](_0x123577=>_0x123577['members$']))[_0x278eb5(0x218)](_0x3bc2c3=>_0x1f7660(Array[_0x278eb5(0x1e9)](_0x3bc2c3['values']())));return _0x24069e['toDisposable'](_0x5e478e);}},_0x1891f0[_0x111ec5(0x1f8)]=_0x478735([_0x5201ca(0x1,_0x24069e['Inject'](_0x24069e['Injector'])),_0x5201ca(0x2,_0x24069e[_0x111ec5(0x219)]),_0x5201ca(0x3,_0x24069e[_0x111ec5(0x1e4)](_0x2eeb4c['SnapshotService'])),_0x5201ca(0x4,_0x24069e[_0x111ec5(0x1e4)](_0x392bd1[_0x111ec5(0x1f0)]))],_0x1891f0['FCollaboration']);class _0x1a9040 extends _0xfcf67b[_0x111ec5(0x1fb)]{[_0x111ec5(0x1ef)](){var _0x17344f=_0x111ec5;return this[_0x17344f(0x20a)][_0x17344f(0x1f5)](_0x1891f0[_0x17344f(0x1f8)],{'getUniverSheet':_0x5e5d00=>this['getUniverSheet'](_0x5e5d00)});}}_0xfcf67b['FUniver'][_0x111ec5(0x1e5)](_0x1a9040),Object['defineProperty'](_0x1891f0,Symbol['toStringTag'],{'value':_0x111ec5(0x202)});}));function _0x5d6e(_0x491050,_0x447374){var _0x437157=_0x4371();return _0x5d6e=function(_0x5d6e86,_0x2d92b1){_0x5d6e86=_0x5d6e86-0x1e2;var _0x249649=_0x437157[_0x5d6e86];return _0x249649;},_0x5d6e(_0x491050,_0x447374);}function _0x4371(){var _0x21802c=['getOwnPropertyDescriptor','_snapshotService','_collaborationController','_handler','@univerjs-pro/collaboration-client','getCollaboration','CollaborationController','loadActiveSheetAsync','getUniverSheet','rxjs','489644tcCsev','createInstance','defineProperty','waitForRoom$','FCollaboration','@univerjs-pro/collaboration','object','FUniver','subscribeCollaborators','UniverProCollaborationClientFacade','amd','switchMap','@univerjs/core','UniverCore','Module','UniverCoreFacade','90hjnflL','2068205NBamNV','readyForCollab','842586QSHMhR','function','_univerInstanceService','_injector','loadSheetAsync','UniverProCollaborationClient','MemberService','1992HYUrCi','698989oxqlxY','pipe','UniverProCollaboration','127930kUlJPV','19629lXYUNE','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','@univerjs/core/facade','length','15elnPSf','subscribe','IUniverInstanceService','get','FBase','Inject','extend','1786435oDQnxg','exports','18RtvwQu','from'];_0x4371=function(){return _0x21802c;};return _0x4371();}
|