@univerjs-pro/collaboration-client 0.6.0-nightly.202502121606 → 0.6.0-nightly.202502141606
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 +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 +14 -14
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x190e(){const _0x17f0ad=['2476ipHbqh','Synced','Syncing\x20server\x20data...','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','1812jZAGUC','7135tewqaU','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Syncing...','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','6523296eOHnLm','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','432956gIoztN','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','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.','Edit\x20conflicts','2710fefEmu','Local\x20file','4161132IrnOHj','85911WIMhEI','694180NjXAwF','174IrcaQK','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','154DkPGWR','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.'];_0x190e=function(){return _0x17f0ad;};return _0x190e();}const _0x18b989=_0x10d8;function _0x10d8(_0x4c8e48,_0x28d220){const _0x190e2f=_0x190e();return _0x10d8=function(_0x10d85b,_0x18c4e6){_0x10d85b=_0x10d85b-0x76;let _0x18ddd9=_0x190e2f[_0x10d85b];return _0x18ddd9;},_0x10d8(_0x4c8e48,_0x28d220);}(function(_0x3116f1,_0x2f05e1){const _0x15fc28=_0x10d8,_0x4545f0=_0x3116f1();while(!![]){try{const _0x2ea855=parseInt(_0x15fc28(0x7c))/0x1+parseInt(_0x15fc28(0x80))/0x2*(parseInt(_0x15fc28(0x90))/0x3)+-parseInt(_0x15fc28(0x8a))/0x4*(-parseInt(_0x15fc28(0x76))/0x5)+-parseInt(_0x15fc28(0x85))/0x6*(parseInt(_0x15fc28(0x83))/0x7)+-parseInt(_0x15fc28(0x7a))/0x8+parseInt(_0x15fc28(0x82))/0x9+parseInt(_0x15fc28(0x84))/0xa*(-parseInt(_0x15fc28(0x87))/0xb);if(_0x2ea855===_0x2f05e1)break;else _0x4545f0['push'](_0x4545f0['shift']());}catch(_0x217f84){_0x4545f0['push'](_0x4545f0['shift']());}}}(_0x190e,0x6ece0));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x18b989(0x8c),'conflict':_0x18b989(0x7f),'notCollab':_0x18b989(0x81),'synced':_0x18b989(0x8b),'syncing':_0x18b989(0x78),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x18b989(0x8e),'will-retry':'Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','room-full':_0x18b989(0x88),'join-failed':_0x18b989(0x86),'room-not-exists':_0x18b989(0x77),'room-permission-denied':_0x18b989(0x8d),'room-cnt-exceeds':_0x18b989(0x89),'collaboration-timeout':_0x18b989(0x79)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x18b989(0x7e)},'permission':{'title':'Authentication\x20Error','content':_0x18b989(0x7b)},'collaboration':{'single-unit':{'warning':_0x18b989(0x7d)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x18b989(0x8f)}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x556f(){const _0x277424=['403268wKbguS','224jltkgE','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','3yAgNUB','شما\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منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','112064bVYMlU','334902eRhAcG','5tnUeAy','33SUMfqJ','779253LwZrlB','پرونده\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کنیم.','1378048BYinZI','همگام\x20سازی','383220fZacvl','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','1781559JOqLpT','در\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ویرایش'];_0x556f=function(){return _0x277424;};return _0x556f();}const _0x1beaae=_0x4bb2;function _0x4bb2(_0x469ee9,_0x14db06){const _0x556f87=_0x556f();return _0x4bb2=function(_0x4bb2f4,_0x4e0175){_0x4bb2f4=_0x4bb2f4-0x11a;let _0x1dc099=_0x556f87[_0x4bb2f4];return _0x1dc099;},_0x4bb2(_0x469ee9,_0x14db06);}(function(_0x2876c7,_0x5a02dd){const _0x16f0cd=_0x4bb2,_0x40129e=_0x2876c7();while(!![]){try{const _0x53d90c=parseInt(_0x16f0cd(0x12a))/0x1+-parseInt(_0x16f0cd(0x130))/0x2+-parseInt(_0x16f0cd(0x122))/0x3*(parseInt(_0x16f0cd(0x11f))/0x4)+parseInt(_0x16f0cd(0x128))/0x5*(parseInt(_0x16f0cd(0x127))/0x6)+-parseInt(_0x16f0cd(0x120))/0x7*(-parseInt(_0x16f0cd(0x126))/0x8)+-parseInt(_0x16f0cd(0x11a))/0x9+parseInt(_0x16f0cd(0x132))/0xa*(parseInt(_0x16f0cd(0x129))/0xb);if(_0x53d90c===_0x5a02dd)break;else _0x40129e['push'](_0x40129e['shift']());}catch(_0x16c76a){_0x40129e['push'](_0x40129e['shift']());}}}(_0x556f,0x64384));const o={'collab-client':{'tooltip':{'reconnect':_0x1beaae(0x133)}},'collabStatus':{'fetchMiss':_0x1beaae(0x121),'conflict':_0x1beaae(0x11e),'notCollab':_0x1beaae(0x12b),'synced':_0x1beaae(0x131),'syncing':_0x1beaae(0x11b),'offline':'آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند'},'session':{'connection-failed':'اتصال\x20ناموفق\x20بود،\x20لطفاً\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','will-retry':_0x1beaae(0x12f),'room-full':'ظرفیت\x20همکاری\x20در\x20این\x20سند\x20پر\x20شده\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','join-failed':_0x1beaae(0x12d),'room-not-exists':_0x1beaae(0x12e),'room-permission-denied':'دسترسی\x20همکاری\x20وجود\x20ندارد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','room-cnt-exceeds':'تعداد\x20اسناد\x20همکاری\x20از\x20حد\x20مجاز\x20فراتر\x20رفته\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','collaboration-timeout':'سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمیدهد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.'},'conflict':{'title':_0x1beaae(0x11d),'content':_0x1beaae(0x11c)},'permission':{'title':_0x1beaae(0x12c),'content':_0x1beaae(0x124)},'collaboration':{'single-unit':{'warning':_0x1beaae(0x123)},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':_0x1beaae(0x125)}};export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x269a49=_0x55c9;(function(_0x5f5b92,_0x312277){const _0x1b057f=_0x55c9,_0x516c58=_0x5f5b92();while(!![]){try{const _0x2425d1=parseInt(_0x1b057f(0x134))/0x1+-parseInt(_0x1b057f(0x128))/0x2*(parseInt(_0x1b057f(0x129))/0x3)+-parseInt(_0x1b057f(0x122))/0x4+-parseInt(_0x1b057f(0x133))/0x5+parseInt(_0x1b057f(0x120))/0x6*(parseInt(_0x1b057f(0x126))/0x7)+-parseInt(_0x1b057f(0x131))/0x8*(parseInt(_0x1b057f(0x12b))/0x9)+parseInt(_0x1b057f(0x12f))/0xa;if(_0x2425d1===_0x312277)break;else _0x516c58['push'](_0x516c58['shift']());}catch(_0xc0254a){_0x516c58['push'](_0x516c58['shift']());}}}(_0x366a,0x509e8));const e={'collab-client':{'tooltip':{'reconnect':_0x269a49(0x125)}},'collabStatus':{'fetchMiss':_0x269a49(0x136),'conflict':_0x269a49(0x132),'notCollab':_0x269a49(0x124),'synced':_0x269a49(0x135),'syncing':_0x269a49(0x11b),'offline':_0x269a49(0x121)},'session':{'connection-failed':_0x269a49(0x123),'will-retry':_0x269a49(0x127),'room-full':_0x269a49(0x130),'join-failed':_0x269a49(0x12d),'room-not-exists':_0x269a49(0x12a),'room-permission-denied':'No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-cnt-exceeds':_0x269a49(0x11d),'collaboration-timeout':_0x269a49(0x11f)},'conflict':{'title':_0x269a49(0x11c),'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':'Authentication\x20Error','content':_0x269a49(0x12e)},'collaboration':{'single-unit':{'warning':_0x269a49(0x11e)},'closeRoom':_0x269a49(0x12c)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;function _0x55c9(_0x454d9f,_0x37c3fd){const _0x366ae1=_0x366a();return _0x55c9=function(_0x55c9ac,_0x54da45){_0x55c9ac=_0x55c9ac-0x11b;let _0x10462c=_0x366ae1[_0x55c9ac];return _0x10462c;},_0x55c9(_0x454d9f,_0x37c3fd);}function _0x366a(){const _0x3190ef=['Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','27vqXAmo','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','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.','9723370NXbemU','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','1231376JhOYds','Edit\x20conflicts','1452715QbYKhG','116483RdQPQh','Synced','Syncing\x20server\x20data...','Syncing...','Collaboration\x20Conflict','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\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.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','888oEaOSD','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','537396AYUcIu','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Local\x20file','Click\x20to\x20Reconnect','30086Wxjvyp','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','60xEvyWE','50805LPIvEx'];_0x366a=function(){return _0x3190ef;};return _0x366a();}export{o as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x293e16=_0x508a;function _0x508a(_0x24f364,_0x2e243a){const _0x290d6f=_0x290d();return _0x508a=function(_0x508a52,_0x29d6e3){_0x508a52=_0x508a52-0xb2;let _0x28c22c=_0x290d6f[_0x508a52];return _0x28c22c;},_0x508a(_0x24f364,_0x2e243a);}(function(_0x3a96f2,_0x3be4f0){const _0x4de573=_0x508a,_0x5e0eda=_0x3a96f2();while(!![]){try{const _0x5ae99e=parseInt(_0x4de573(0xb7))/0x1*(-parseInt(_0x4de573(0xc7))/0x2)+parseInt(_0x4de573(0xbf))/0x3+-parseInt(_0x4de573(0xc3))/0x4*(-parseInt(_0x4de573(0xbb))/0x5)+parseInt(_0x4de573(0xcf))/0x6+parseInt(_0x4de573(0xb6))/0x7+parseInt(_0x4de573(0xc8))/0x8+-parseInt(_0x4de573(0xbc))/0x9*(parseInt(_0x4de573(0xcc))/0xa);if(_0x5ae99e===_0x3be4f0)break;else _0x5e0eda['push'](_0x5e0eda['shift']());}catch(_0x42142f){_0x5e0eda['push'](_0x5e0eda['shift']());}}}(_0x290d,0x3141a));const e={'collab-client':{'tooltip':{'reconnect':_0x293e16(0xb8)}},'collabStatus':{'fetchMiss':_0x293e16(0xb9),'conflict':_0x293e16(0xce),'notCollab':_0x293e16(0xb3),'synced':_0x293e16(0xc4),'syncing':_0x293e16(0xc9),'offline':_0x293e16(0xb4)},'session':{'connection-failed':_0x293e16(0xc2),'will-retry':_0x293e16(0xb5),'room-full':_0x293e16(0xc1),'join-failed':_0x293e16(0xcb),'room-not-exists':_0x293e16(0xb2),'room-permission-denied':'No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-cnt-exceeds':_0x293e16(0xca),'collaboration-timeout':_0x293e16(0xc5)},'conflict':{'title':_0x293e16(0xbe),'content':_0x293e16(0xcd)},'permission':{'title':_0x293e16(0xc0),'content':_0x293e16(0xba)},'collaboration':{'single-unit':{'warning':_0x293e16(0xc6)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x293e16(0xbd)}},o=e;export{o as default};function _0x290d(){const _0x102236=['The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','219732fhXZAP','Synced','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.','30DTXocg','3061800TJuxmM','Syncing...','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','10tZQEQi','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.','Edit\x20conflicts','2027772kpDeGl','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Local\x20file','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','1982519GGSVxq','26100pgrBXa','Click\x20to\x20Reconnect','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.','5PlNweK','5684508HZTvfT','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Collaboration\x20Conflict','498087eNFDcL','Authentication\x20Error'];_0x290d=function(){return _0x102236;};return _0x290d();}
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x56b79f=_0x381a;function _0x3b41(){const _0x1c02d5=['Synced','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','56PHrorJ','No\x20collaboration\x20permission.\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.','16705620GxcBWe','3MCqDVm','222682cYspOl','Syncing...','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','2849465VrdTDS','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.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','7549072IgNUfo','Click\x20to\x20Reconnect','Authentication\x20Error','582504kRIIPt','502666zDLxeM','Collaboration\x20Conflict','Syncing\x20server\x20data...','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','2800880DtWcWz','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Local\x20file','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.'];_0x3b41=function(){return _0x1c02d5;};return _0x3b41();}(function(_0x29f6a6,_0x6697b5){const _0x25dba8=_0x381a,_0x3cee2a=_0x29f6a6();while(!![]){try{const _0x3d4f4d=-parseInt(_0x25dba8(0xba))/0x1+parseInt(_0x25dba8(0xae))/0x2*(-parseInt(_0x25dba8(0xad))/0x3)+parseInt(_0x25dba8(0xbe))/0x4+parseInt(_0x25dba8(0xb2))/0x5+parseInt(_0x25dba8(0xb9))/0x6*(parseInt(_0x25dba8(0xa9))/0x7)+parseInt(_0x25dba8(0xb6))/0x8+-parseInt(_0x25dba8(0xac))/0x9;if(_0x3d4f4d===_0x6697b5)break;else _0x3cee2a['push'](_0x3cee2a['shift']());}catch(_0x1277bb){_0x3cee2a['push'](_0x3cee2a['shift']());}}}(_0x3b41,0x7f028));const e={'collab-client':{'tooltip':{'reconnect':_0x56b79f(0xb7)}},'collabStatus':{'fetchMiss':_0x56b79f(0xbc),'conflict':'Edit\x20conflicts','notCollab':_0x56b79f(0xc0),'synced':_0x56b79f(0xa6),'syncing':_0x56b79f(0xaf),'offline':_0x56b79f(0xbd)},'session':{'connection-failed':_0x56b79f(0xa8),'will-retry':_0x56b79f(0xa5),'room-full':'The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','join-failed':_0x56b79f(0xb0),'room-not-exists':_0x56b79f(0xbf),'room-permission-denied':_0x56b79f(0xaa),'room-cnt-exceeds':_0x56b79f(0xa7),'collaboration-timeout':_0x56b79f(0xb1)},'conflict':{'title':_0x56b79f(0xbb),'content':_0x56b79f(0xab)},'permission':{'title':_0x56b79f(0xb8),'content':_0x56b79f(0xb4)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x56b79f(0xb3)},'auth':{'needGotoLoginAlert':_0x56b79f(0xb5)}},o=e;function _0x381a(_0x76d706,_0x198ec5){const _0x3b41e2=_0x3b41();return _0x381a=function(_0x381aae,_0x3aaaa3){_0x381aae=_0x381aae-0xa5;let _0x92b508=_0x3b41e2[_0x381aae];return _0x92b508;},_0x381a(_0x76d706,_0x198ec5);}export{o as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x1f5b(_0xbc3bfe,_0x5db059){const _0xe8329e=_0xe832();return _0x1f5b=function(_0x1f5b05,_0x32ae98){_0x1f5b05=_0x1f5b05-0x123;let _0x512986=_0xe8329e[_0x1f5b05];return _0x512986;},_0x1f5b(_0xbc3bfe,_0x5db059);}const _0x56f467=_0x1f5b;function _0xe832(){const _0x4719cf=['服务器未响应,你的编辑将在本地缓存','6970469hCTtMu','952792OLLGSm','正在拉取服务端数据...','2588766dbJJBH','44780QzTQRb','16BOUHrK','点击重新连接','1478748plnBCw','本地文件','24HMiRwV','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','5BQlCnp','加入协同失败,请稍后重试,你的编辑将在本地缓存','你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','312382ONZkTB','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','协同冲突','1308WIwzSR','协同文档数量超过限制,你的编辑将在本地缓存','连接失败,将在一会儿之后重试连接','加入协同失败,你的编辑将在本地缓存','1431GDxtYL','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','由于协同房间被关闭,编辑权限被收回。','连接失败,请检查你的网络'];_0xe832=function(){return _0x4719cf;};return _0xe832();}(function(_0xfe5d3e,_0x4076fc){const _0x5b59af=_0x1f5b,_0x2c27c9=_0xfe5d3e();while(!![]){try{const _0x532944=parseInt(_0x5b59af(0x128))/0x1*(parseInt(_0x5b59af(0x134))/0x2)+-parseInt(_0x5b59af(0x12a))/0x3+parseInt(_0x5b59af(0x124))/0x4+-parseInt(_0x5b59af(0x12e))/0x5*(-parseInt(_0x5b59af(0x126))/0x6)+-parseInt(_0x5b59af(0x131))/0x7*(-parseInt(_0x5b59af(0x12c))/0x8)+-parseInt(_0x5b59af(0x138))/0x9*(-parseInt(_0x5b59af(0x127))/0xa)+-parseInt(_0x5b59af(0x123))/0xb;if(_0x532944===_0x4076fc)break;else _0x2c27c9['push'](_0x2c27c9['shift']());}catch(_0x5a6b89){_0x2c27c9['push'](_0x2c27c9['shift']());}}}(_0xe832,0x61830));const o={'collab-client':{'tooltip':{'reconnect':_0x56f467(0x129)}},'collabStatus':{'fetchMiss':_0x56f467(0x125),'conflict':'编辑冲突','notCollab':_0x56f467(0x12b),'synced':'已同步','syncing':'保存中...','offline':'已离线,编辑将在本地缓存'},'session':{'connection-failed':_0x56f467(0x13b),'will-retry':_0x56f467(0x136),'room-full':'此文档协同人数已满,你的编辑将在本地缓存','join-failed':_0x56f467(0x12f),'room-not-exists':_0x56f467(0x137),'room-permission-denied':'没有协同权限,你的编辑将在本地缓存','room-cnt-exceeds':_0x56f467(0x135),'collaboration-timeout':_0x56f467(0x13c)},'conflict':{'title':_0x56f467(0x133),'content':_0x56f467(0x132)},'permission':{'title':'权限错误','content':_0x56f467(0x130)},'collaboration':{'single-unit':{'warning':_0x56f467(0x12d)},'closeRoom':_0x56f467(0x13a)},'auth':{'needGotoLoginAlert':_0x56f467(0x139)}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x3fa443=_0x2cdb;(function(_0x3714ef,_0x1634c9){const _0x55f971=_0x2cdb,_0x5e12bf=_0x3714ef();while(!![]){try{const _0x495fda=-parseInt(_0x55f971(0xc4))/0x1+parseInt(_0x55f971(0xc2))/0x2*(-parseInt(_0x55f971(0xc1))/0x3)+-parseInt(_0x55f971(0xc9))/0x4+parseInt(_0x55f971(0xc3))/0x5*(parseInt(_0x55f971(0xbc))/0x6)+-parseInt(_0x55f971(0xbe))/0x7+parseInt(_0x55f971(0xc8))/0x8*(-parseInt(_0x55f971(0xc6))/0x9)+parseInt(_0x55f971(0xb9))/0xa*(parseInt(_0x55f971(0xcd))/0xb);if(_0x495fda===_0x1634c9)break;else _0x5e12bf['push'](_0x5e12bf['shift']());}catch(_0xf790e6){_0x5e12bf['push'](_0x5e12bf['shift']());}}}(_0x44a0,0x3a712));const e={'collab-client':{'tooltip':{'reconnect':_0x3fa443(0xcc)}},'collabStatus':{'fetchMiss':_0x3fa443(0xc7),'conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':'Synced','syncing':'Syncing...','offline':_0x3fa443(0xb8)},'session':{'connection-failed':_0x3fa443(0xbb),'will-retry':_0x3fa443(0xb5),'room-full':_0x3fa443(0xca),'join-failed':_0x3fa443(0xce),'room-not-exists':_0x3fa443(0xbd),'room-permission-denied':_0x3fa443(0xb6),'room-cnt-exceeds':_0x3fa443(0xb7),'collaboration-timeout':_0x3fa443(0xbf)},'conflict':{'title':_0x3fa443(0xcb),'content':_0x3fa443(0xc0)},'permission':{'title':_0x3fa443(0xba),'content':_0x3fa443(0xb4)},'collaboration':{'single-unit':{'warning':_0x3fa443(0xc5)},'closeRoom':_0x3fa443(0xcf)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;function _0x44a0(){const _0x3a24d7=['65650XbkZWm','Authentication\x20Error','Connection\x20failed.\x20Please\x20check\x20your\x20network.','4836xewHoP','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','1237341BvouBn','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\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.','621zBvGCZ','3234YCXsvH','2265ZMhoMD','303000jCezgf','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','2185101ybWwVM','Syncing\x20server\x20data...','8fDYOcr','869376XXNrou','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Collaboration\x20Conflict','Click\x20to\x20Reconnect','1925OQAYCE','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\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.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'];_0x44a0=function(){return _0x3a24d7;};return _0x44a0();}function _0x2cdb(_0x414984,_0x563dde){const _0x44a08d=_0x44a0();return _0x2cdb=function(_0x2cdb50,_0x38e7a5){_0x2cdb50=_0x2cdb50-0xb4;let _0x2d6b56=_0x44a08d[_0x2cdb50];return _0x2d6b56;},_0x2cdb(_0x414984,_0x563dde);}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,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(_0x236948,_0x2f760d){var _0x414c3a=_0x3224,_0x234aad=_0x236948();while(!![]){try{var _0x204eba=parseInt(_0x414c3a(0x191))/0x1+-parseInt(_0x414c3a(0x19c))/0x2*(-parseInt(_0x414c3a(0x1a2))/0x3)+parseInt(_0x414c3a(0x18a))/0x4*(parseInt(_0x414c3a(0x198))/0x5)+parseInt(_0x414c3a(0x1ad))/0x6+-parseInt(_0x414c3a(0x1b1))/0x7*(parseInt(_0x414c3a(0x19d))/0x8)+parseInt(_0x414c3a(0x1a0))/0x9+-parseInt(_0x414c3a(0x18e))/0xa*(parseInt(_0x414c3a(0x1b6))/0xb);if(_0x204eba===_0x2f760d)break;else _0x234aad['push'](_0x234aad['shift']());}catch(_0x31a9e0){_0x234aad['push'](_0x234aad['shift']());}}}(_0x1b45,0x2ea1a),function(_0x15b80c,_0x3981c5){var _0x24424d=_0x3224;typeof exports==_0x24424d(0x186)&&typeof module<'u'?_0x3981c5(exports,require(_0x24424d(0x18b)),require(_0x24424d(0x19e)),require(_0x24424d(0x18c)),require('@univerjs/core'),require(_0x24424d(0x1ab))):typeof define==_0x24424d(0x1a3)&&define[_0x24424d(0x1bd)]?define([_0x24424d(0x1a1),_0x24424d(0x18b),_0x24424d(0x19e),'@univerjs-pro/collaboration-client',_0x24424d(0x1b5),_0x24424d(0x1ab)],_0x3981c5):(_0x15b80c=typeof globalThis<'u'?globalThis:_0x15b80c||self,_0x3981c5(_0x15b80c[_0x24424d(0x18d)]={},_0x15b80c[_0x24424d(0x190)],_0x15b80c[_0x24424d(0x1a8)],_0x15b80c[_0x24424d(0x1ac)],_0x15b80c[_0x24424d(0x1a5)],_0x15b80c[_0x24424d(0x1ab)]));}(this,function(_0x53414b,_0x370987,_0x261eb0,_0x20d323,_0x2b63be,_0x3484a8){'use strict';var _0x4047ca=_0x3224;var _0x1e4dc0=Object[_0x4047ca(0x1b3)],_0x41c97a=(_0x28a405,_0x1fa9bf,_0x4eb721,_0x10db4c)=>{var _0x8e93b8=_0x4047ca;for(var _0x2ac10b=_0x10db4c>0x1?void 0x0:_0x10db4c?_0x1e4dc0(_0x1fa9bf,_0x4eb721):_0x1fa9bf,_0x2c9d45=_0x28a405[_0x8e93b8(0x199)]-0x1,_0x55feb8;_0x2c9d45>=0x0;_0x2c9d45--)(_0x55feb8=_0x28a405[_0x2c9d45])&&(_0x2ac10b=_0x55feb8(_0x2ac10b)||_0x2ac10b);return _0x2ac10b;},_0x4f79e4=(_0x1ff739,_0x577bc3)=>(_0x5796c3,_0x35f876)=>_0x577bc3(_0x5796c3,_0x35f876,_0x1ff739);_0x53414b['FCollaboration']=class extends _0x370987[_0x4047ca(0x1b7)]{constructor(_0x5eecdc,_0x288eb5,_0xb45b88,_0x5bbb69,_0x44469e){var _0x3c604e=_0x4047ca;super(),this[_0x3c604e(0x183)]=_0x5eecdc,this[_0x3c604e(0x188)]=_0x288eb5,this[_0x3c604e(0x1b8)]=_0xb45b88,this[_0x3c604e(0x184)]=_0x5bbb69,this[_0x3c604e(0x18f)]=_0x44469e;}async[_0x4047ca(0x1b0)](){var _0x15def4=_0x4047ca;return this[_0x15def4(0x1bc)]();}async[_0x4047ca(0x1bc)](){var _0x3b3771=_0x4047ca;throw new Error(_0x3b3771(0x1b2));}async['loadSheet'](_0x364151){var _0x53b724=_0x4047ca;return this[_0x53b724(0x195)](_0x364151);}async[_0x4047ca(0x195)](_0x5deb5d,_0x43fdb3){var _0x23b150=_0x4047ca;return await this[_0x23b150(0x184)][_0x23b150(0x1b4)](_0x5deb5d,0x0,_0x43fdb3)?(await this[_0x23b150(0x18f)][_0x23b150(0x1a6)](_0x5deb5d),this[_0x23b150(0x183)][_0x23b150(0x182)](_0x5deb5d)):null;}[_0x4047ca(0x193)](_0x376cdc,_0x32264d){var _0x11e6b2=_0x4047ca;const _0x3dd0ff=this['_injector']['get'](_0x20d323[_0x11e6b2(0x19b)])[_0x11e6b2(0x1ae)](_0x376cdc)[_0x11e6b2(0x1b9)](_0x3484a8[_0x11e6b2(0x196)](_0x2c36ae=>_0x2c36ae['members$']))['subscribe'](_0x276771=>_0x32264d(Array[_0x11e6b2(0x197)](_0x276771[_0x11e6b2(0x1aa)]())));return _0x2b63be[_0x11e6b2(0x187)](_0x3dd0ff);}},_0x53414b['FCollaboration']=_0x41c97a([_0x4f79e4(0x1,_0x2b63be[_0x4047ca(0x189)](_0x2b63be[_0x4047ca(0x1a7)])),_0x4f79e4(0x2,_0x2b63be[_0x4047ca(0x19f)]),_0x4f79e4(0x3,_0x2b63be[_0x4047ca(0x189)](_0x261eb0[_0x4047ca(0x19a)])),_0x4f79e4(0x4,_0x2b63be[_0x4047ca(0x189)](_0x20d323[_0x4047ca(0x1ba)]))],_0x53414b[_0x4047ca(0x194)]);class _0x264c44 extends _0x370987[_0x4047ca(0x185)]{[_0x4047ca(0x1bb)](){var _0xb20299=_0x4047ca;return this[_0xb20299(0x188)]['createInstance'](_0x53414b[_0xb20299(0x194)],{'getUniverSheet':_0x41d194=>this[_0xb20299(0x182)](_0x41d194)});}}_0x370987['FUniver'][_0x4047ca(0x192)](_0x264c44),Object[_0x4047ca(0x1a4)](_0x53414b,Symbol[_0x4047ca(0x1af)],{'value':_0x4047ca(0x1a9)});}));function _0x3224(_0x2caa84,_0x295c14){var _0x1b45e5=_0x1b45();return _0x3224=function(_0x32249c,_0x22b9b5){_0x32249c=_0x32249c-0x182;var _0x4155b=_0x1b45e5[_0x32249c];return _0x4155b;},_0x3224(_0x2caa84,_0x295c14);}function _0x1b45(){var _0x15421b=['1266588ozlkmn','waitForRoom$','toStringTag','loadActiveSheet','189vyxKQB','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','getOwnPropertyDescriptor','loadSheet','@univerjs/core','11STjUgC','FBase','_univerInstanceService','pipe','CollaborationController','getCollaboration','loadActiveSheetAsync','amd','getUniverSheet','_handler','_snapshotService','FUniver','object','toDisposable','_injector','Inject','220soSGtf','@univerjs/core/facade','@univerjs-pro/collaboration-client','UniverProCollaborationClientFacade','4738390cQUgtZ','_collaborationController','UniverCoreFacade','34215mtjXSI','extend','subscribeCollaborators','FCollaboration','loadSheetAsync','switchMap','from','22685dTpRUC','length','SnapshotService','MemberService','571882QIbvFv','103128LhWXVP','@univerjs-pro/collaboration','IUniverInstanceService','2088981xxwXEn','exports','3lYGSWY','function','defineProperty','UniverCore','readyForCollab','Injector','UniverProCollaboration','Module','values','rxjs','UniverProCollaborationClient'];_0x1b45=function(){return _0x15421b;};return _0x1b45();}
|