@univerjs-pro/collaboration-client 0.6.0-nightly.202502121606 → 0.6.0-nightly.202502131606
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/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 +1 -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 +13 -13
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x2cf464=_0x40ae;function _0x89b7(){const _0x42e9cd=['Collaboration\x20Conflict','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Authentication\x20Error','Synced','341LaIuDD','2286552LtVWyO','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','2253285GAqBeI','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.','Syncing...','Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','33910YeuezP','85981HHMxtD','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.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','3HKGRMi','103440ZtvgWS','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','65DVVkWp','593172xHNIkO','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Edit\x20conflicts','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','120cGuWEQ','80356JGoeni','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Click\x20to\x20Reconnect'];_0x89b7=function(){return _0x42e9cd;};return _0x89b7();}function _0x40ae(_0x1e7989,_0x4388a3){const _0x89b7bd=_0x89b7();return _0x40ae=function(_0x40ae11,_0x57805b){_0x40ae11=_0x40ae11-0x148;let _0x5caed5=_0x89b7bd[_0x40ae11];return _0x5caed5;},_0x40ae(_0x1e7989,_0x4388a3);}(function(_0x117ab5,_0x53b487){const _0x3c33dd=_0x40ae,_0x47203c=_0x117ab5();while(!![]){try{const _0x259048=-parseInt(_0x3c33dd(0x14a))/0x1+-parseInt(_0x3c33dd(0x14d))/0x2*(parseInt(_0x3c33dd(0x149))/0x3)+parseInt(_0x3c33dd(0x152))/0x4*(parseInt(_0x3c33dd(0x14c))/0x5)+parseInt(_0x3c33dd(0x151))/0x6*(parseInt(_0x3c33dd(0x162))/0x7)+-parseInt(_0x3c33dd(0x15a))/0x8+parseInt(_0x3c33dd(0x15c))/0x9+parseInt(_0x3c33dd(0x161))/0xa*(parseInt(_0x3c33dd(0x159))/0xb);if(_0x259048===_0x53b487)break;else _0x47203c['push'](_0x47203c['shift']());}catch(_0x21ca7c){_0x47203c['push'](_0x47203c['shift']());}}}(_0x89b7,0x2b14a));const e={'collab-client':{'tooltip':{'reconnect':_0x2cf464(0x154)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x2cf464(0x14f),'notCollab':_0x2cf464(0x15f),'synced':_0x2cf464(0x158),'syncing':_0x2cf464(0x15e),'offline':_0x2cf464(0x166)},'session':{'connection-failed':_0x2cf464(0x148),'will-retry':_0x2cf464(0x167),'room-full':_0x2cf464(0x156),'join-failed':_0x2cf464(0x15b),'room-not-exists':_0x2cf464(0x14e),'room-permission-denied':_0x2cf464(0x163),'room-cnt-exceeds':_0x2cf464(0x14b),'collaboration-timeout':_0x2cf464(0x160)},'conflict':{'title':_0x2cf464(0x155),'content':_0x2cf464(0x15d)},'permission':{'title':_0x2cf464(0x157),'content':_0x2cf464(0x150)},'collaboration':{'single-unit':{'warning':_0x2cf464(0x164)},'closeRoom':_0x2cf464(0x153)},'auth':{'needGotoLoginAlert':_0x2cf464(0x165)}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x5647(_0x13d46a,_0x18b4bd){const _0x3384b6=_0x3384();return _0x5647=function(_0x5647b8,_0x234097){_0x5647b8=_0x5647b8-0x108;let _0x2196de=_0x3384b6[_0x5647b8];return _0x2196de;},_0x5647(_0x13d46a,_0x18b4bd);}const _0x36012a=_0x5647;function _0x3384(){const _0x2006b4=['تداخل\x20همکاری','26ISJQVy','ظرفیت\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شد.','2675vhrmay','یک\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کنید.','48wNbhZL','اتصال\x20ناموفق\x20بود،\x20لطفاً\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','تداخل\x20ویرایش','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','در\x20حال\x20همگام\x20سازی...','328608yhfeIA','خطای\x20اعتبارسنجی','475740enUjFO','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمیدهد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','120xhfCDf','4119005rUrueZ','همگام\x20سازی','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','43351zjlhac','1808560ZwYZvG','تعداد\x20اسناد\x20همکاری\x20از\x20حد\x20مجاز\x20فراتر\x20رفته\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','5857rQqbMi','216QAZtZP','در\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شد.'];_0x3384=function(){return _0x2006b4;};return _0x3384();}(function(_0x15e7cc,_0x2a1867){const _0x2d2b25=_0x5647,_0x1d2552=_0x15e7cc();while(!![]){try{const _0x11e2e2=parseInt(_0x2d2b25(0x115))/0x1*(parseInt(_0x2d2b25(0x11b))/0x2)+-parseInt(_0x2d2b25(0x10c))/0x3+-parseInt(_0x2d2b25(0x10e))/0x4*(-parseInt(_0x2d2b25(0x11f))/0x5)+parseInt(_0x2d2b25(0x116))/0x6*(parseInt(_0x2d2b25(0x112))/0x7)+-parseInt(_0x2d2b25(0x122))/0x8*(parseInt(_0x2d2b25(0x10a))/0x9)+-parseInt(_0x2d2b25(0x113))/0xa+parseInt(_0x2d2b25(0x10f))/0xb;if(_0x11e2e2===_0x2a1867)break;else _0x1d2552['push'](_0x1d2552['shift']());}catch(_0x2873c3){_0x1d2552['push'](_0x1d2552['shift']());}}}(_0x3384,0x2000e));const o={'collab-client':{'tooltip':{'reconnect':'برای\x20اتصال\x20مجدد\x20کلیک\x20کنید'}},'collabStatus':{'fetchMiss':_0x36012a(0x117),'conflict':_0x36012a(0x124),'notCollab':'پرونده\x20محلی','synced':_0x36012a(0x110),'syncing':_0x36012a(0x109),'offline':_0x36012a(0x108)},'session':{'connection-failed':_0x36012a(0x123),'will-retry':_0x36012a(0x111),'room-full':_0x36012a(0x11c),'join-failed':'پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20لطفاً\x20بعداً\x20دوباره\x20امتحان\x20کنید.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','room-not-exists':_0x36012a(0x118),'room-permission-denied':_0x36012a(0x11e),'room-cnt-exceeds':_0x36012a(0x114),'collaboration-timeout':_0x36012a(0x10d)},'conflict':{'title':_0x36012a(0x11a),'content':_0x36012a(0x120)},'permission':{'title':_0x36012a(0x10b),'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':_0x36012a(0x11d)},'closeRoom':_0x36012a(0x119)},'auth':{'needGotoLoginAlert':_0x36012a(0x121)}};export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x44acf1=_0x24df;(function(_0x5cc738,_0x5175b3){const _0x5bdda0=_0x24df,_0x55aaf7=_0x5cc738();while(!![]){try{const _0x26b2e1=-parseInt(_0x5bdda0(0x178))/0x1+parseInt(_0x5bdda0(0x16f))/0x2*(-parseInt(_0x5bdda0(0x173))/0x3)+-parseInt(_0x5bdda0(0x172))/0x4+-parseInt(_0x5bdda0(0x168))/0x5*(-parseInt(_0x5bdda0(0x163))/0x6)+-parseInt(_0x5bdda0(0x171))/0x7*(-parseInt(_0x5bdda0(0x15e))/0x8)+parseInt(_0x5bdda0(0x16a))/0x9+parseInt(_0x5bdda0(0x165))/0xa;if(_0x26b2e1===_0x5175b3)break;else _0x55aaf7['push'](_0x55aaf7['shift']());}catch(_0x2b4cef){_0x55aaf7['push'](_0x55aaf7['shift']());}}}(_0x4558,0x58e62));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x44acf1(0x175),'conflict':_0x44acf1(0x162),'notCollab':_0x44acf1(0x16d),'synced':_0x44acf1(0x170),'syncing':_0x44acf1(0x16c),'offline':_0x44acf1(0x177)},'session':{'connection-failed':'Connection\x20failed.\x20Please\x20check\x20your\x20network.','will-retry':'Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','room-full':'The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','join-failed':_0x44acf1(0x167),'room-not-exists':_0x44acf1(0x160),'room-permission-denied':_0x44acf1(0x16e),'room-cnt-exceeds':_0x44acf1(0x15f),'collaboration-timeout':_0x44acf1(0x166)},'conflict':{'title':_0x44acf1(0x16b),'content':_0x44acf1(0x15d)},'permission':{'title':_0x44acf1(0x174),'content':_0x44acf1(0x176)},'collaboration':{'single-unit':{'warning':_0x44acf1(0x169)},'closeRoom':_0x44acf1(0x161)},'auth':{'needGotoLoginAlert':_0x44acf1(0x164)}},o=e;function _0x24df(_0x25d554,_0x9716){const _0x4558cb=_0x4558();return _0x24df=function(_0x24df53,_0x24c539){_0x24df53=_0x24df53-0x15d;let _0x389cef=_0x4558cb[_0x24df53];return _0x389cef;},_0x24df(_0x25d554,_0x9716);}export{o as default};function _0x4558(){const _0x383e34=['Collaboration\x20Conflict','Syncing...','Local\x20file','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','21218pDpPLD','Synced','973fznAYk','1876612sKtXXH','99LntJzX','Authentication\x20Error','Syncing\x20server\x20data...','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','423681FqDJOS','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.','18168XGOUBY','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Edit\x20conflicts','111846kSWHcn','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','6362300rsmmsz','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','115RmLldy','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','2037771LJZltZ'];_0x4558=function(){return _0x383e34;};return _0x4558();}
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x277018=_0x5399;(function(_0x817024,_0x1bd993){const _0x1abe36=_0x5399,_0x491128=_0x817024();while(!![]){try{const _0xd7c468=parseInt(_0x1abe36(0x19a))/0x1*(-parseInt(_0x1abe36(0x189))/0x2)+-parseInt(_0x1abe36(0x18f))/0x3+parseInt(_0x1abe36(0x198))/0x4+parseInt(_0x1abe36(0x186))/0x5+parseInt(_0x1abe36(0x184))/0x6*(-parseInt(_0x1abe36(0x195))/0x7)+-parseInt(_0x1abe36(0x185))/0x8+parseInt(_0x1abe36(0x197))/0x9;if(_0xd7c468===_0x1bd993)break;else _0x491128['push'](_0x491128['shift']());}catch(_0x1e3b6a){_0x491128['push'](_0x491128['shift']());}}}(_0x4092,0xd3ce2));function _0x5399(_0x5184a2,_0x381795){const _0x4092e1=_0x4092();return _0x5399=function(_0x53998e,_0x47dbc0){_0x53998e=_0x53998e-0x180;let _0x37fb73=_0x4092e1[_0x53998e];return _0x37fb73;},_0x5399(_0x5184a2,_0x381795);}const e={'collab-client':{'tooltip':{'reconnect':_0x277018(0x181)}},'collabStatus':{'fetchMiss':_0x277018(0x192),'conflict':_0x277018(0x19c),'notCollab':'Local\x20file','synced':_0x277018(0x18b),'syncing':_0x277018(0x196),'offline':_0x277018(0x187)},'session':{'connection-failed':_0x277018(0x194),'will-retry':_0x277018(0x182),'room-full':'The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','join-failed':_0x277018(0x199),'room-not-exists':_0x277018(0x193),'room-permission-denied':_0x277018(0x18a),'room-cnt-exceeds':_0x277018(0x183),'collaboration-timeout':_0x277018(0x190)},'conflict':{'title':_0x277018(0x188),'content':_0x277018(0x18d)},'permission':{'title':_0x277018(0x180),'content':_0x277018(0x18e)},'collaboration':{'single-unit':{'warning':_0x277018(0x191)},'closeRoom':_0x277018(0x18c)},'auth':{'needGotoLoginAlert':_0x277018(0x19b)}},o=e;function _0x4092(){const _0x4eb179=['Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Edit\x20conflicts','Authentication\x20Error','Click\x20to\x20Reconnect','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','2370uZMcEM','4285768RlnVsc','4668140saLsQt','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Collaboration\x20Conflict','2ZwftLo','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Synced','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','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.','3522312luiJMP','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Syncing\x20server\x20data...','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','6657fvfzXI','Syncing...','20467692TDuewL','940264kkWqtb','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','489858EAbWbc'];_0x4092=function(){return _0x4eb179;};return _0x4092();}export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x4cfe(){const _0x20b503=['27ehhcqe','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','1002152KulVeX','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','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','Edit\x20conflicts','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','102234IOsUBl','Click\x20to\x20Reconnect','Local\x20file','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','205820DInwjm','2827480FxSHUk','5298NshXvD','Syncing\x20server\x20data...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','346017hJAraH','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','165nfoNbp','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','24zDgrti','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Synced','593090NBFfwd'];_0x4cfe=function(){return _0x20b503;};return _0x4cfe();}const _0x8803b=_0x4adf;(function(_0x5000f3,_0x4d1766){const _0x5ce07f=_0x4adf,_0x46821c=_0x5000f3();while(!![]){try{const _0x884981=parseInt(_0x5ce07f(0xd1))/0x1+-parseInt(_0x5ce07f(0xc7))/0x2+parseInt(_0x5ce07f(0xc4))/0x3*(parseInt(_0x5ce07f(0xba))/0x4)+parseInt(_0x5ce07f(0xc1))/0x5*(-parseInt(_0x5ce07f(0xbc))/0x6)+-parseInt(_0x5ce07f(0xbf))/0x7+parseInt(_0x5ce07f(0xca))/0x8*(parseInt(_0x5ce07f(0xc8))/0x9)+-parseInt(_0x5ce07f(0xbb))/0xa;if(_0x884981===_0x4d1766)break;else _0x46821c['push'](_0x46821c['shift']());}catch(_0x5271cf){_0x46821c['push'](_0x46821c['shift']());}}}(_0x4cfe,0x3898a));const e={'collab-client':{'tooltip':{'reconnect':_0x8803b(0xd2)}},'collabStatus':{'fetchMiss':_0x8803b(0xbd),'conflict':_0x8803b(0xcf),'notCollab':_0x8803b(0xb8),'synced':_0x8803b(0xc6),'syncing':'Syncing...','offline':_0x8803b(0xc3)},'session':{'connection-failed':_0x8803b(0xc5),'will-retry':'Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','room-full':_0x8803b(0xc9),'join-failed':_0x8803b(0xcc),'room-not-exists':_0x8803b(0xd0),'room-permission-denied':_0x8803b(0xc0),'room-cnt-exceeds':'Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','collaboration-timeout':_0x8803b(0xcb)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x8803b(0xcd)},'permission':{'title':_0x8803b(0xce),'content':_0x8803b(0xb9)},'collaboration':{'single-unit':{'warning':_0x8803b(0xc2)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x8803b(0xbe)}},o=e;function _0x4adf(_0x1d006d,_0x4bbe54){const _0x4cfe39=_0x4cfe();return _0x4adf=function(_0x4adf56,_0xf4ec88){_0x4adf56=_0x4adf56-0xb8;let _0x9bff48=_0x4cfe39[_0x4adf56];return _0x9bff48;},_0x4adf(_0x1d006d,_0x4bbe54);}export{o as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x5964(){const _0x53cfed=['852906tdojWn','连接失败,请检查你的网络','3825edmvSp','正在拉取服务端数据...','点击重新连接','加入协同失败,你的编辑将在本地缓存','1212Ibjxhb','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','协同冲突','397166EVawXL','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','16wqHyGE','890lrxkiw','没有协同权限,你的编辑将在本地缓存','加入协同失败,请稍后重试,你的编辑将在本地缓存','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','220566fOBqlg','编辑冲突','523092chDkre','已离线,编辑将在本地缓存','连接失败,将在一会儿之后重试连接','你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','权限错误','3978640cIMASp','35TbzNsN','63XyjRlN','已同步','保存中...','809352JeOinC'];_0x5964=function(){return _0x53cfed;};return _0x5964();}const _0x2b2b41=_0x9b51;(function(_0x5e64bd,_0x5bb90e){const _0x2ce8e0=_0x9b51,_0x85cf3d=_0x5e64bd();while(!![]){try{const _0x55b358=-parseInt(_0x2ce8e0(0x148))/0x1+-parseInt(_0x2ce8e0(0x153))/0x2*(-parseInt(_0x2ce8e0(0x158))/0x3)+-parseInt(_0x2ce8e0(0x15a))/0x4*(parseInt(_0x2ce8e0(0x160))/0x5)+-parseInt(_0x2ce8e0(0x147))/0x6*(parseInt(_0x2ce8e0(0x161))/0x7)+-parseInt(_0x2ce8e0(0x15f))/0x8+-parseInt(_0x2ce8e0(0x14a))/0x9*(parseInt(_0x2ce8e0(0x154))/0xa)+parseInt(_0x2ce8e0(0x151))/0xb*(parseInt(_0x2ce8e0(0x14e))/0xc);if(_0x55b358===_0x5bb90e)break;else _0x85cf3d['push'](_0x85cf3d['shift']());}catch(_0x4e9d6f){_0x85cf3d['push'](_0x85cf3d['shift']());}}}(_0x5964,0xaf246));function _0x9b51(_0x56991b,_0x218893){const _0x5964f2=_0x5964();return _0x9b51=function(_0x9b5145,_0x32df9e){_0x9b5145=_0x9b5145-0x145;let _0x9b2a9e=_0x5964f2[_0x9b5145];return _0x9b2a9e;},_0x9b51(_0x56991b,_0x218893);}const o={'collab-client':{'tooltip':{'reconnect':_0x2b2b41(0x14c)}},'collabStatus':{'fetchMiss':_0x2b2b41(0x14b),'conflict':_0x2b2b41(0x159),'notCollab':'本地文件','synced':_0x2b2b41(0x145),'syncing':_0x2b2b41(0x146),'offline':_0x2b2b41(0x15b)},'session':{'connection-failed':_0x2b2b41(0x149),'will-retry':_0x2b2b41(0x15c),'room-full':'此文档协同人数已满,你的编辑将在本地缓存','join-failed':_0x2b2b41(0x156),'room-not-exists':_0x2b2b41(0x14d),'room-permission-denied':_0x2b2b41(0x155),'room-cnt-exceeds':'协同文档数量超过限制,你的编辑将在本地缓存','collaboration-timeout':'服务器未响应,你的编辑将在本地缓存'},'conflict':{'title':_0x2b2b41(0x150),'content':_0x2b2b41(0x157)},'permission':{'title':_0x2b2b41(0x15e),'content':_0x2b2b41(0x15d)},'collaboration':{'single-unit':{'warning':_0x2b2b41(0x14f)},'closeRoom':'由于协同房间被关闭,编辑权限被收回。'},'auth':{'needGotoLoginAlert':_0x2b2b41(0x152)}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x3ddc00=_0x2cc3;function _0x5cfb(){const _0x18048e=['15EiXwRQ','Collaboration\x20Conflict','120WUHLjw','8WlZlfd','Authentication\x20Error','220048QVDfIX','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','281709Qjmeas','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','456313rnsDcA','Edit\x20conflicts','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','297404GGdqWY','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.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','195438CeyaYe','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','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.','Syncing...','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Local\x20file','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','10XOEoPu','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','96631WatmKW','3lFTaVe','570395bydIXe','Connection\x20failed.\x20Please\x20check\x20your\x20network.'];_0x5cfb=function(){return _0x18048e;};return _0x5cfb();}function _0x2cc3(_0x235f2c,_0x2be761){const _0x5cfbab=_0x5cfb();return _0x2cc3=function(_0x2cc3c8,_0x4eb4b1){_0x2cc3c8=_0x2cc3c8-0xaf;let _0x595c07=_0x5cfbab[_0x2cc3c8];return _0x595c07;},_0x2cc3(_0x235f2c,_0x2be761);}(function(_0x3b3e87,_0x13d529){const _0x51eaef=_0x2cc3,_0xcc9f02=_0x3b3e87();while(!![]){try{const _0x65bd27=-parseInt(_0x51eaef(0xb2))/0x1+parseInt(_0x51eaef(0xbb))/0x2+parseInt(_0x51eaef(0xb3))/0x3*(-parseInt(_0x51eaef(0xc2))/0x4)+-parseInt(_0x51eaef(0xb6))/0x5*(parseInt(_0x51eaef(0xc5))/0x6)+parseInt(_0x51eaef(0xb4))/0x7*(-parseInt(_0x51eaef(0xb9))/0x8)+-parseInt(_0x51eaef(0xbd))/0x9*(-parseInt(_0x51eaef(0xb0))/0xa)+-parseInt(_0x51eaef(0xbf))/0xb*(-parseInt(_0x51eaef(0xb8))/0xc);if(_0x65bd27===_0x13d529)break;else _0xcc9f02['push'](_0xcc9f02['shift']());}catch(_0x3cc2ac){_0xcc9f02['push'](_0xcc9f02['shift']());}}}(_0x5cfb,0x32491));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x3ddc00(0xc0),'notCollab':_0x3ddc00(0xcc),'synced':'Synced','syncing':_0x3ddc00(0xca),'offline':_0x3ddc00(0xbc)},'session':{'connection-failed':_0x3ddc00(0xb5),'will-retry':_0x3ddc00(0xc4),'room-full':_0x3ddc00(0xc7),'join-failed':_0x3ddc00(0xaf),'room-not-exists':'Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-permission-denied':_0x3ddc00(0xcb),'room-cnt-exceeds':_0x3ddc00(0xc1),'collaboration-timeout':_0x3ddc00(0xc8)},'conflict':{'title':_0x3ddc00(0xb7),'content':_0x3ddc00(0xc3)},'permission':{'title':_0x3ddc00(0xba),'content':_0x3ddc00(0xbe)},'collaboration':{'single-unit':{'warning':_0x3ddc00(0xc6)},'closeRoom':_0x3ddc00(0xc9)},'auth':{'needGotoLoginAlert':_0x3ddc00(0xb1)}},o=e;export{o as default};
|
@@ -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,6 @@ 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 _getSessionTicket;
|
44
|
-
private _createSocketURL;
|
45
41
|
/**
|
46
42
|
* Authentication flow for WebSocket connections:
|
47
43
|
* 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 _0xeb08(){var _0x673d05=['_collaborationController','subscribeCollaborators','235HEFZry','_univerInstanceService','107179QKOCEK','extend','@univerjs-pro/collaboration-client','51037FTCVbw','@univerjs-pro/collaboration','members$','from','FUniver','Injector','UniverProCollaborationClientFacade','23060OdoGJh','_handler','4197770jwBvKg','UniverProCollaboration','toStringTag','readyForCollab','object','subscribe','9LDsNxd','length','getUniverSheet','13073088eKHljv','loadSheetAsync','SnapshotService','getCollaboration','Module','FCollaboration','loadSheet','Inject','422oUPxZv','values','IUniverInstanceService','6006136bSQyST','switchMap','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','toDisposable','@univerjs/core/facade','UniverCore','rxjs','@univerjs/core','exports','function','22qHfTuI','_injector','UniverCoreFacade','MemberService','get','UniverProCollaborationClient','pipe','366pmKZOI','defineProperty','1389NGilNZ'];_0xeb08=function(){return _0x673d05;};return _0xeb08();}function _0x4b3b(_0x26d8eb,_0x27e61d){var _0xeb08ca=_0xeb08();return _0x4b3b=function(_0x4b3b02,_0x944b68){_0x4b3b02=_0x4b3b02-0x135;var _0x4331d5=_0xeb08ca[_0x4b3b02];return _0x4331d5;},_0x4b3b(_0x26d8eb,_0x27e61d);}(function(_0x2eda02,_0x1481ac){var _0x2eb254=_0x4b3b,_0x10ea3f=_0x2eda02();while(!![]){try{var _0x4f6f25=-parseInt(_0x2eb254(0x147))/0x1+-parseInt(_0x2eb254(0x164))/0x2*(parseInt(_0x2eb254(0x142))/0x3)+parseInt(_0x2eb254(0x151))/0x4*(-parseInt(_0x2eb254(0x145))/0x5)+parseInt(_0x2eb254(0x140))/0x6*(parseInt(_0x2eb254(0x14a))/0x7)+-parseInt(_0x2eb254(0x167))/0x8*(-parseInt(_0x2eb254(0x159))/0x9)+parseInt(_0x2eb254(0x153))/0xa*(parseInt(_0x2eb254(0x139))/0xb)+-parseInt(_0x2eb254(0x15c))/0xc;if(_0x4f6f25===_0x1481ac)break;else _0x10ea3f['push'](_0x10ea3f['shift']());}catch(_0x2c0580){_0x10ea3f['push'](_0x10ea3f['shift']());}}}(_0xeb08,0x72b3d),function(_0x3ac38b,_0x22a1aa){var _0x5f3dbd=_0x4b3b;typeof exports==_0x5f3dbd(0x157)&&typeof module<'u'?_0x22a1aa(exports,require(_0x5f3dbd(0x16b)),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require(_0x5f3dbd(0x136)),require(_0x5f3dbd(0x135))):typeof define==_0x5f3dbd(0x138)&&define['amd']?define([_0x5f3dbd(0x137),_0x5f3dbd(0x16b),_0x5f3dbd(0x14b),_0x5f3dbd(0x149),_0x5f3dbd(0x136),_0x5f3dbd(0x135)],_0x22a1aa):(_0x3ac38b=typeof globalThis<'u'?globalThis:_0x3ac38b||self,_0x22a1aa(_0x3ac38b[_0x5f3dbd(0x150)]={},_0x3ac38b[_0x5f3dbd(0x13b)],_0x3ac38b[_0x5f3dbd(0x154)],_0x3ac38b[_0x5f3dbd(0x13e)],_0x3ac38b[_0x5f3dbd(0x16c)],_0x3ac38b[_0x5f3dbd(0x135)]));}(this,function(_0x546569,_0x3a660f,_0x1f552d,_0x2ef48d,_0x2ccd27,_0x321c5e){'use strict';var _0x4c32cb=_0x4b3b;var _0xaf0956=Object['getOwnPropertyDescriptor'],_0x260cc9=(_0x3ace7f,_0x529e74,_0x24bc1a,_0x2c5104)=>{var _0x38be86=_0x4b3b;for(var _0x14ddf9=_0x2c5104>0x1?void 0x0:_0x2c5104?_0xaf0956(_0x529e74,_0x24bc1a):_0x529e74,_0x39053c=_0x3ace7f[_0x38be86(0x15a)]-0x1,_0x54825e;_0x39053c>=0x0;_0x39053c--)(_0x54825e=_0x3ace7f[_0x39053c])&&(_0x14ddf9=_0x54825e(_0x14ddf9)||_0x14ddf9);return _0x14ddf9;},_0x9a1102=(_0x2bcbf9,_0x35d7d9)=>(_0xd93167,_0x6a492d)=>_0x35d7d9(_0xd93167,_0x6a492d,_0x2bcbf9);_0x546569[_0x4c32cb(0x161)]=class extends _0x3a660f['FBase']{constructor(_0x1767a3,_0x1f4efb,_0xc813f5,_0x239284,_0x4865bd){var _0x58e8cc=_0x4c32cb;super(),this[_0x58e8cc(0x152)]=_0x1767a3,this[_0x58e8cc(0x13a)]=_0x1f4efb,this[_0x58e8cc(0x146)]=_0xc813f5,this['_snapshotService']=_0x239284,this[_0x58e8cc(0x143)]=_0x4865bd;}async['loadActiveSheet'](){return this['loadActiveSheetAsync']();}async['loadActiveSheetAsync'](){var _0x51f42f=_0x4c32cb;throw new Error(_0x51f42f(0x169));}async[_0x4c32cb(0x162)](_0x25e555){var _0x5e1e1e=_0x4c32cb;return this[_0x5e1e1e(0x15d)](_0x25e555);}async['loadSheetAsync'](_0xc84b57,_0x15e83d){var _0x56c656=_0x4c32cb;return await this['_snapshotService'][_0x56c656(0x162)](_0xc84b57,0x0,_0x15e83d)?(await this[_0x56c656(0x143)][_0x56c656(0x156)](_0xc84b57),this[_0x56c656(0x152)]['getUniverSheet'](_0xc84b57)):null;}[_0x4c32cb(0x144)](_0x53c543,_0x5b3ca0){var _0x1ba982=_0x4c32cb;const _0x5ee5e8=this[_0x1ba982(0x13a)][_0x1ba982(0x13d)](_0x2ef48d[_0x1ba982(0x13c)])['waitForRoom$'](_0x53c543)[_0x1ba982(0x13f)](_0x321c5e[_0x1ba982(0x168)](_0x503940=>_0x503940[_0x1ba982(0x14c)]))[_0x1ba982(0x158)](_0x40004c=>_0x5b3ca0(Array[_0x1ba982(0x14d)](_0x40004c[_0x1ba982(0x165)]())));return _0x2ccd27[_0x1ba982(0x16a)](_0x5ee5e8);}},_0x546569[_0x4c32cb(0x161)]=_0x260cc9([_0x9a1102(0x1,_0x2ccd27['Inject'](_0x2ccd27[_0x4c32cb(0x14f)])),_0x9a1102(0x2,_0x2ccd27[_0x4c32cb(0x166)]),_0x9a1102(0x3,_0x2ccd27[_0x4c32cb(0x163)](_0x1f552d[_0x4c32cb(0x15e)])),_0x9a1102(0x4,_0x2ccd27[_0x4c32cb(0x163)](_0x2ef48d['CollaborationController']))],_0x546569['FCollaboration']);class _0xe64c06 extends _0x3a660f['FUniver']{[_0x4c32cb(0x15f)](){var _0x2b9fd8=_0x4c32cb;return this['_injector']['createInstance'](_0x546569[_0x2b9fd8(0x161)],{'getUniverSheet':_0x28efe1=>this[_0x2b9fd8(0x15b)](_0x28efe1)});}}_0x3a660f[_0x4c32cb(0x14e)][_0x4c32cb(0x148)](_0xe64c06),Object[_0x4c32cb(0x141)](_0x546569,Symbol[_0x4c32cb(0x155)],{'value':_0x4c32cb(0x160)});}));
|