@univerjs-pro/collaboration-client 0.5.0 → 0.5.1-nightly.202411301606
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/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 -0
- 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/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 -0
- 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/collaboration-state.d.ts +1 -1
- package/lib/types/controllers/config.schema.d.ts +1 -1
- package/lib/types/index.d.ts +3 -2
- package/lib/types/locale/fr-FR.d.ts +3 -0
- package/lib/types/locale/zh-CN.d.ts +4 -0
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +7 -0
- package/lib/types/services/image-remote/image-io.service.d.ts +1 -1
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +6 -2
- package/lib/types/services/socket/collaboration-socket.service.d.ts +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 -0
- 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 +23 -21
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x366e7d=_0x48e8;(function(_0x1b867a,_0x329ed2){const _0x13e26d=_0x48e8,_0x3bb037=_0x1b867a();while(!![]){try{const _0x534bc2=-parseInt(_0x13e26d(0x1fc))/0x1+-parseInt(_0x13e26d(0x1f8))/0x2*(-parseInt(_0x13e26d(0x208))/0x3)+parseInt(_0x13e26d(0x203))/0x4*(-parseInt(_0x13e26d(0x1f5))/0x5)+parseInt(_0x13e26d(0x1f3))/0x6*(-parseInt(_0x13e26d(0x20b))/0x7)+-parseInt(_0x13e26d(0x206))/0x8*(parseInt(_0x13e26d(0x1fa))/0x9)+parseInt(_0x13e26d(0x201))/0xa+parseInt(_0x13e26d(0x1f9))/0xb;if(_0x534bc2===_0x329ed2)break;else _0x3bb037['push'](_0x3bb037['shift']());}catch(_0x53d87e){_0x3bb037['push'](_0x3bb037['shift']());}}}(_0x51f8,0x74a9b));function _0x48e8(_0x3008f3,_0x287a98){const _0x51f884=_0x51f8();return _0x48e8=function(_0x48e8e6,_0x29c27e){_0x48e8e6=_0x48e8e6-0x1f3;let _0x157c74=_0x51f884[_0x48e8e6];return _0x157c74;},_0x48e8(_0x3008f3,_0x287a98);}const e={'collab-client':{'tooltip':{'reconnect':_0x366e7d(0x20a)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x366e7d(0x1f6),'notCollab':_0x366e7d(0x202),'synced':_0x366e7d(0x20d),'syncing':'Syncing...','offline':_0x366e7d(0x1ff)},'session':{'connection-failed':_0x366e7d(0x20c),'will-retry':_0x366e7d(0x1f7),'room-full':_0x366e7d(0x200),'join-failed':_0x366e7d(0x209),'room-not-exists':_0x366e7d(0x207),'room-permission-denied':'No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-cnt-exceeds':_0x366e7d(0x1f4),'collaboration-timeout':_0x366e7d(0x20e)},'conflict':{'title':_0x366e7d(0x204),'content':_0x366e7d(0x1fe)},'permission':{'title':'Authentication\x20Error','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':_0x366e7d(0x1fd)},'closeRoom':_0x366e7d(0x205)},'auth':{'needGotoLoginAlert':_0x366e7d(0x1fb)}};function _0x51f8(){const _0x5c814f=['1395xTJmJE','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','252223LcMghe','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.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','746370JgXZdv','Local\x20file','4oUZAiF','Collaboration\x20Conflict','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','29512cyvtum','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','35535SKHSXi','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Click\x20to\x20Reconnect','7MzVKOu','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Synced','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','4602558bmtffS','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','832570nStKhh','Edit\x20conflicts','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','20lRwdZi','22466279ubrOQI'];_0x51f8=function(){return _0x5c814f;};return _0x51f8();}export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x343e67=_0x258a;function _0x9741(){const _0x4b8b0c=['5NnJMUu','ورود\x20شم\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','3750736wzxpYw','6475620wqPNaQ','همگام\x20سازی','3143877txsRfu','اعمال\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رفت.','8311226FDRJbE','ظرفیت\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شد.','17gSUQBB','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20لطفاً\x20بعداً\x20دوباره\x20امتحان\x20کنید.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','تداخل\x20ویرایش','1368JquVMf','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','پرونده\x20محلی','19110WNaDGG','140754uckvsS','1164584OqXlwa','خطای\x20اعتبارسنجی','دسترسی\x20همکاری\x20وجود\x20ندارد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','در\x20حال\x20همگام\x20سازی...'];_0x9741=function(){return _0x4b8b0c;};return _0x9741();}(function(_0x1cb1e7,_0x168894){const _0x425740=_0x258a,_0x46617c=_0x1cb1e7();while(!![]){try{const _0xc4585b=parseInt(_0x425740(0x91))/0x1*(parseInt(_0x425740(0x99))/0x2)+-parseInt(_0x425740(0x8a))/0x3+-parseInt(_0x425740(0x9a))/0x4*(parseInt(_0x425740(0x9e))/0x5)+-parseInt(_0x425740(0xa1))/0x6+parseInt(_0x425740(0x8e))/0x7+parseInt(_0x425740(0xa0))/0x8+parseInt(_0x425740(0x95))/0x9*(parseInt(_0x425740(0x98))/0xa);if(_0xc4585b===_0x168894)break;else _0x46617c['push'](_0x46617c['shift']());}catch(_0xc3c90c){_0x46617c['push'](_0x46617c['shift']());}}}(_0x9741,0xb0eba));const o={'collab-client':{'tooltip':{'reconnect':'برای\x20اتصال\x20مجدد\x20کلیک\x20کنید'}},'collabStatus':{'fetchMiss':_0x343e67(0x92),'conflict':_0x343e67(0x94),'notCollab':_0x343e67(0x97),'synced':_0x343e67(0xa2),'syncing':_0x343e67(0x9d),'offline':'آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند'},'session':{'connection-failed':'اتصال\x20ناموفق\x20بود،\x20لطفاً\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','will-retry':'اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','room-full':_0x343e67(0x8f),'join-failed':_0x343e67(0x93),'room-not-exists':'پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','room-permission-denied':_0x343e67(0x9c),'room-cnt-exceeds':_0x343e67(0x90),'collaboration-timeout':'سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمیدهد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.'},'conflict':{'title':_0x343e67(0x8c),'content':_0x343e67(0x8d)},'permission':{'title':_0x343e67(0x9b),'content':_0x343e67(0x8b)},'collaboration':{'single-unit':{'warning':_0x343e67(0x96)},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':_0x343e67(0x9f)}};function _0x258a(_0x166142,_0x42cbe1){const _0x9741f9=_0x9741();return _0x258a=function(_0x258af1,_0x5ebea6){_0x258af1=_0x258af1-0x8a;let _0x2f2ea1=_0x9741f9[_0x258af1];return _0x2f2ea1;},_0x258a(_0x166142,_0x42cbe1);}export{o as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
const _0x497d0e=_0x2aa0;(function(_0x5e92e4,_0x4df4bf){const _0x6d02f=_0x2aa0,_0x504de0=_0x5e92e4();while(!![]){try{const _0x40fa06=-parseInt(_0x6d02f(0x8a))/0x1+parseInt(_0x6d02f(0x87))/0x2+-parseInt(_0x6d02f(0x9b))/0x3+-parseInt(_0x6d02f(0x9c))/0x4*(-parseInt(_0x6d02f(0x92))/0x5)+parseInt(_0x6d02f(0x93))/0x6+-parseInt(_0x6d02f(0x94))/0x7+-parseInt(_0x6d02f(0x9a))/0x8*(parseInt(_0x6d02f(0x84))/0x9);if(_0x40fa06===_0x4df4bf)break;else _0x504de0['push'](_0x504de0['shift']());}catch(_0x387524){_0x504de0['push'](_0x504de0['shift']());}}}(_0x1f0d,0xeef75));const e={'collab-client':{'tooltip':{'reconnect':_0x497d0e(0x85)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x497d0e(0x8e),'synced':_0x497d0e(0x97),'syncing':_0x497d0e(0x86),'offline':_0x497d0e(0x8f)},'session':{'connection-failed':_0x497d0e(0x8d),'will-retry':_0x497d0e(0x90),'room-full':_0x497d0e(0x88),'join-failed':_0x497d0e(0x9d),'room-not-exists':_0x497d0e(0x98),'room-permission-denied':'No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-cnt-exceeds':_0x497d0e(0x95),'collaboration-timeout':_0x497d0e(0x91)},'conflict':{'title':_0x497d0e(0x89),'content':_0x497d0e(0x8c)},'permission':{'title':_0x497d0e(0x96),'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':_0x497d0e(0x83)},'closeRoom':_0x497d0e(0x8b)},'auth':{'needGotoLoginAlert':_0x497d0e(0x99)}},o=e;export{o as default};function _0x2aa0(_0x5b6f92,_0x3ecbea){const _0x1f0d81=_0x1f0d();return _0x2aa0=function(_0x2aa032,_0x28ec58){_0x2aa032=_0x2aa032-0x83;let _0xa2f219=_0x1f0d81[_0x2aa032];return _0xa2f219;},_0x2aa0(_0x5b6f92,_0x3ecbea);}function _0x1f0d(){const _0x3f0906=['32jJnvbU','1032711IqjrPv','6196132cvTooO','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\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.','3427803ufpZCw','Click\x20to\x20Reconnect','Syncing...','1002628KpCKWf','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Collaboration\x20Conflict','702226ukFQRa','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.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Local\x20file','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','5BmdECo','9606294EGkSXV','718620mcrcMN','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Authentication\x20Error','Synced','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'];_0x1f0d=function(){return _0x3f0906;};return _0x1f0d();}
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0xb57a05=_0x4362;function _0x4362(_0x15fb06,_0x31f1c3){const _0x1d8d65=_0x1d8d();return _0x4362=function(_0x43620b,_0x28f6a7){_0x43620b=_0x43620b-0xe4;let _0xca2fdc=_0x1d8d65[_0x43620b];return _0xca2fdc;},_0x4362(_0x15fb06,_0x31f1c3);}(function(_0x5dd3aa,_0x64de56){const _0x19f977=_0x4362,_0x40240f=_0x5dd3aa();while(!![]){try{const _0xdef8f4=parseInt(_0x19f977(0xe7))/0x1*(-parseInt(_0x19f977(0xf3))/0x2)+-parseInt(_0x19f977(0xe5))/0x3+parseInt(_0x19f977(0xe6))/0x4+-parseInt(_0x19f977(0xf1))/0x5+parseInt(_0x19f977(0xf0))/0x6*(-parseInt(_0x19f977(0xf8))/0x7)+parseInt(_0x19f977(0xea))/0x8+parseInt(_0x19f977(0xf4))/0x9;if(_0xdef8f4===_0x64de56)break;else _0x40240f['push'](_0x40240f['shift']());}catch(_0x11c06d){_0x40240f['push'](_0x40240f['shift']());}}}(_0x1d8d,0xc0988));function _0x1d8d(){const _0x1b5a23=['4398128TaAMXP','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','1984101dlNYhM','84788cwwRrl','1nwQuUk','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.\x20Please\x20check\x20your\x20network.','9508552mYPWPW','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','6zJHpwd','3085435RHnkZu','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','114698zaCkmp','13888917pCgzws','Click\x20to\x20Reconnect','Syncing...','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.'];_0x1d8d=function(){return _0x1b5a23;};return _0x1d8d();}const e={'collab-client':{'tooltip':{'reconnect':_0xb57a05(0xf5)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':'Synced','syncing':_0xb57a05(0xf6),'offline':_0xb57a05(0xeb)},'session':{'connection-failed':_0xb57a05(0xe9),'will-retry':_0xb57a05(0xee),'room-full':_0xb57a05(0xf7),'join-failed':_0xb57a05(0xec),'room-not-exists':_0xb57a05(0xef),'room-permission-denied':_0xb57a05(0xf2),'room-cnt-exceeds':'Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':'Collaboration\x20Conflict','content':_0xb57a05(0xe8)},'permission':{'title':'Authentication\x20Error','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':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0xb57a05(0xe4)},'auth':{'needGotoLoginAlert':_0xb57a05(0xed)}},o=e;export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x3875ad=_0x2540;(function(_0x3f43ef,_0x289842){const _0x351ee1=_0x2540,_0x3906cc=_0x3f43ef();while(!![]){try{const _0x1fcf09=parseInt(_0x351ee1(0x82))/0x1+parseInt(_0x351ee1(0x89))/0x2+-parseInt(_0x351ee1(0x93))/0x3+-parseInt(_0x351ee1(0x8d))/0x4+parseInt(_0x351ee1(0x7f))/0x5*(parseInt(_0x351ee1(0x95))/0x6)+-parseInt(_0x351ee1(0x84))/0x7*(-parseInt(_0x351ee1(0x85))/0x8)+-parseInt(_0x351ee1(0x80))/0x9;if(_0x1fcf09===_0x289842)break;else _0x3906cc['push'](_0x3906cc['shift']());}catch(_0x58d611){_0x3906cc['push'](_0x3906cc['shift']());}}}(_0x86aa,0x25de1));function _0x2540(_0x4d780c,_0x4d497d){const _0x86aa77=_0x86aa();return _0x2540=function(_0x254031,_0x53d29b){_0x254031=_0x254031-0x7f;let _0x47628b=_0x86aa77[_0x254031];return _0x47628b;},_0x2540(_0x4d780c,_0x4d497d);}const e={'collab-client':{'tooltip':{'reconnect':_0x3875ad(0x91)}},'collabStatus':{'fetchMiss':_0x3875ad(0x94),'conflict':_0x3875ad(0x8f),'notCollab':_0x3875ad(0x86),'synced':_0x3875ad(0x8c),'syncing':'Syncing...','offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x3875ad(0x87),'will-retry':_0x3875ad(0x92),'room-full':_0x3875ad(0x90),'join-failed':_0x3875ad(0x8a),'room-not-exists':'Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-permission-denied':'No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-cnt-exceeds':'Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','collaboration-timeout':_0x3875ad(0x88)},'conflict':{'title':_0x3875ad(0x83),'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':_0x3875ad(0x81)},'collaboration':{'single-unit':{'warning':_0x3875ad(0x8b)},'closeRoom':_0x3875ad(0x8e)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;function _0x86aa(){const _0x3a0dd3=['Edit\x20conflicts','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Click\x20to\x20Reconnect','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','46602oCepzc','Syncing\x20server\x20data...','12966GBJAmW','55NBsemX','393156XVlIOg','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','48281CUvjcr','Collaboration\x20Conflict','42IDuZSG','255512DlRTvn','Local\x20file','Connection\x20failed.\x20Please\x20check\x20your\x20network.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','187966GpPner','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\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','573384XxDIgp','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'];_0x86aa=function(){return _0x3a0dd3;};return _0x86aa();}export{o as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x49f6(_0x3365bb,_0x31df69){const _0x37eeee=_0x37ee();return _0x49f6=function(_0x49f6ea,_0x49923c){_0x49f6ea=_0x49f6ea-0x1f0;let _0x4733ab=_0x37eeee[_0x49f6ea];return _0x4733ab;},_0x49f6(_0x3365bb,_0x31df69);}function _0x37ee(){const _0x54f173=['已离线,编辑将在本地缓存','71392UsstkS','22rnRagX','8387892xqQcjA','没有协同权限,你的编辑将在本地缓存','正在拉取服务端数据...','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','10OwdjKh','564CZXqER','编辑冲突','保存中...','4DBXyar','由于协同房间被关闭,编辑权限被收回。','你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','协同文档数量超过限制,你的编辑将在本地缓存','权限错误','连接失败,将在一会儿之后重试连接','加入协同失败,你的编辑将在本地缓存','本地文件','29080utaHcH','392LBSIKj','点击重新连接','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','1155606JxrTnn','6094224AAKAom','13Xdwkif','此文档协同人数已满,你的编辑将在本地缓存','8UFnGzS','26397476FfsneT','106841oLZMQu'];_0x37ee=function(){return _0x54f173;};return _0x37ee();}const _0x498a4c=_0x49f6;(function(_0x17dcc4,_0x1f33fb){const _0x72e651=_0x49f6,_0x40c949=_0x17dcc4();while(!![]){try{const _0x566269=-parseInt(_0x72e651(0x200))/0x1*(-parseInt(_0x72e651(0x204))/0x2)+parseInt(_0x72e651(0x1fc))/0x3*(parseInt(_0x72e651(0x1f0))/0x4)+parseInt(_0x72e651(0x1f8))/0x5*(parseInt(_0x72e651(0x20b))/0x6)+parseInt(_0x72e651(0x202))/0x7*(parseInt(_0x72e651(0x1f9))/0x8)+-parseInt(_0x72e651(0x1fd))/0x9*(parseInt(_0x72e651(0x20a))/0xa)+parseInt(_0x72e651(0x205))/0xb*(parseInt(_0x72e651(0x206))/0xc)+-parseInt(_0x72e651(0x1fe))/0xd*(parseInt(_0x72e651(0x201))/0xe);if(_0x566269===_0x1f33fb)break;else _0x40c949['push'](_0x40c949['shift']());}catch(_0x3d0195){_0x40c949['push'](_0x40c949['shift']());}}}(_0x37ee,0xc37a1));const o={'collab-client':{'tooltip':{'reconnect':_0x498a4c(0x1fa)}},'collabStatus':{'fetchMiss':_0x498a4c(0x208),'conflict':_0x498a4c(0x20c),'notCollab':_0x498a4c(0x1f7),'synced':'已同步','syncing':_0x498a4c(0x20d),'offline':_0x498a4c(0x203)},'session':{'connection-failed':'连接失败,请检查你的网络','will-retry':_0x498a4c(0x1f5),'room-full':_0x498a4c(0x1ff),'join-failed':'加入协同失败,请稍后重试,你的编辑将在本地缓存','room-not-exists':_0x498a4c(0x1f6),'room-permission-denied':_0x498a4c(0x207),'room-cnt-exceeds':_0x498a4c(0x1f3),'collaboration-timeout':'服务器未响应,你的编辑将在本地缓存'},'conflict':{'title':'协同冲突','content':_0x498a4c(0x1fb)},'permission':{'title':_0x498a4c(0x1f4),'content':_0x498a4c(0x1f2)},'collaboration':{'single-unit':{'warning':_0x498a4c(0x209)},'closeRoom':_0x498a4c(0x1f1)},'auth':{'needGotoLoginAlert':'你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。'}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x51b2e=_0x4f8f;function _0x4f8f(_0x3edd12,_0x2215f1){const _0xb0509=_0xb050();return _0x4f8f=function(_0x4f8f53,_0x2a8859){_0x4f8f53=_0x4f8f53-0x123;let _0x490366=_0xb0509[_0x4f8f53];return _0x490366;},_0x4f8f(_0x3edd12,_0x2215f1);}(function(_0x1fde3d,_0x1bc7e9){const _0x1a9dab=_0x4f8f,_0x3c6194=_0x1fde3d();while(!![]){try{const _0x51557d=parseInt(_0x1a9dab(0x136))/0x1*(-parseInt(_0x1a9dab(0x134))/0x2)+parseInt(_0x1a9dab(0x13b))/0x3*(parseInt(_0x1a9dab(0x12d))/0x4)+-parseInt(_0x1a9dab(0x137))/0x5+-parseInt(_0x1a9dab(0x128))/0x6+-parseInt(_0x1a9dab(0x124))/0x7+-parseInt(_0x1a9dab(0x13a))/0x8*(-parseInt(_0x1a9dab(0x126))/0x9)+-parseInt(_0x1a9dab(0x125))/0xa*(-parseInt(_0x1a9dab(0x127))/0xb);if(_0x51557d===_0x1bc7e9)break;else _0x3c6194['push'](_0x3c6194['shift']());}catch(_0x48f49c){_0x3c6194['push'](_0x3c6194['shift']());}}}(_0xb050,0x2cdc9));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x51b2e(0x135),'conflict':_0x51b2e(0x138),'notCollab':_0x51b2e(0x12f),'synced':_0x51b2e(0x129),'syncing':'Syncing...','offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x51b2e(0x133),'will-retry':_0x51b2e(0x12c),'room-full':_0x51b2e(0x123),'join-failed':_0x51b2e(0x13d),'room-not-exists':_0x51b2e(0x13c),'room-permission-denied':'No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-cnt-exceeds':_0x51b2e(0x12e),'collaboration-timeout':_0x51b2e(0x131)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x51b2e(0x12a)},'permission':{'title':_0x51b2e(0x12b),'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':_0x51b2e(0x139)},'closeRoom':_0x51b2e(0x130)},'auth':{'needGotoLoginAlert':_0x51b2e(0x132)}},o=e;export{o as default};function _0xb050(){const _0xf1ff67=['Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','2wlujpu','Syncing\x20server\x20data...','83077MluUyP','535990BXppak','Edit\x20conflicts','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','60248FiktzO','1476zTztto','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','12131avtqqz','10aOlROp','234oERYrz','3425323JbTvHE','1322940AsAHbY','Synced','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','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','724kuyYFM','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Local\x20file','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'];_0xb050=function(){return _0xf1ff67;};return _0xb050();}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { IMutationInfo, Nullable, ICommandService, IConfigService, ILogService, Injector, IPermissionService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
2
1
|
import { IAcknowledgedChangeset, IChangeset, ITransformService, RevisionService } from '@univerjs-pro/collaboration';
|
2
|
+
import { IMutationInfo, Nullable, ICommandService, IConfigService, ILogService, Injector, IPermissionService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import { ICollabEditingCursor } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
5
5
|
import { ICollaborativeUndoRedoService } from '../../services/undoredo/collaborative-undoredo.service';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Ctor, DependencyOverride } from '@univerjs/core';
|
2
2
|
import { ICollaborationSocketService } from '../services/socket/collaboration-socket.service';
|
3
|
-
export declare const
|
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
6
|
socketService?: Ctor<ICollaborationSocketService>;
|
package/lib/types/index.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import './global.css';
|
1
2
|
export {
|
2
3
|
/** @deprecated Will be removed in the 0.2.19 release */
|
3
4
|
COLLAB_SUBMIT_CHANGESET_URL_KEY,
|
@@ -31,7 +32,7 @@ export { CollaborationStatusDisplay } from './views/components/CollabStatus';
|
|
31
32
|
export { SnapshotServerOverHTTPService } from './services/snapshot-server/snapshot-server.service';
|
32
33
|
export { CommentService } from './services/comment/comment.service';
|
33
34
|
export { type ISheetCollabCursorShapeProps, SheetCollabCursorShape } from './views/shapes/sheet-collab-cursor.shape';
|
34
|
-
export {
|
35
|
+
export { CollabrationImageIoService } from './services/image-remote/image-io.service';
|
35
36
|
export { MemberService } from './services/member/member.service';
|
36
|
-
export {
|
37
|
+
export { COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
|
37
38
|
export { MentionIoHttpService } from './services/mention-server/mention-io-http.service';
|
@@ -16,6 +16,10 @@ declare const locales: {
|
|
16
16
|
'connection-failed': string;
|
17
17
|
'will-retry': string;
|
18
18
|
'room-full': string;
|
19
|
+
'join-failed': string;
|
20
|
+
'room-not-exists': string;
|
21
|
+
'room-permission-denied': string;
|
22
|
+
'room-cnt-exceeds': string;
|
19
23
|
'collaboration-timeout': string;
|
20
24
|
};
|
21
25
|
conflict: {
|
@@ -12,6 +12,13 @@ export declare enum SessionStatus {
|
|
12
12
|
OFFLINE = 2,
|
13
13
|
ONLINE = 3
|
14
14
|
}
|
15
|
+
export declare const FailedReason: {
|
16
|
+
2: string;
|
17
|
+
1001: string;
|
18
|
+
1002: string;
|
19
|
+
1003: string;
|
20
|
+
1004: string;
|
21
|
+
};
|
15
22
|
/**
|
16
23
|
* The data structure to represent a collaboration session. It also manages the collaborator's identity.
|
17
24
|
*
|
@@ -12,7 +12,7 @@ export interface ISignUrlResponse {
|
|
12
12
|
error: IError | undefined;
|
13
13
|
url: string;
|
14
14
|
}
|
15
|
-
export declare class
|
15
|
+
export declare class CollabrationImageIoService implements IImageIoService {
|
16
16
|
private readonly _httpService;
|
17
17
|
private readonly _configService;
|
18
18
|
private readonly _univerInstanceService;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ICopyFileMetaResponse, IFetchMissingChangesetsRequest, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetLatestCsReqIdBySidResponse, IGetResourcesRequest, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevRequest, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockResponse, ISaveSnapshotResponse } from '@univerjs/protocol';
|
2
1
|
import { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
2
|
+
import { ICopyFileMetaResponse, IFetchMissingChangesetsRequest, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetLatestCsReqIdBySidResponse, IGetResourcesRequest, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevRequest, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockResponse, ISaveSnapshotResponse } from '@univerjs/protocol';
|
3
3
|
import { IConfigService } from '@univerjs/core';
|
4
4
|
import { HTTPService } from '@univerjs/network';
|
5
5
|
export declare class SnapshotServerOverHTTPService implements ISnapshotServerService {
|
@@ -10,7 +10,11 @@ export declare class SnapshotServerOverHTTPService implements ISnapshotServerSer
|
|
10
10
|
getSheetBlock(_context: ILogContext, params: IGetSheetBlockRequest): Promise<IGetSheetBlockResponse>;
|
11
11
|
getDeserializedSheetBlock(_context: ILogContext, params: IGetSheetBlockRequest): Promise<IGetDeserializedSheetBlockResponse>;
|
12
12
|
fetchMissingChangesets(_context: ILogContext, params: IFetchMissingChangesetsRequest): Promise<IFetchMissingChangesetsResponse>;
|
13
|
-
|
13
|
+
/**
|
14
|
+
* Get the prefix of the snapshot server API.
|
15
|
+
* @returns The prefix of the snapshot server API.
|
16
|
+
*/
|
17
|
+
getSnapshotAPIPath(): string;
|
14
18
|
private _getAPIPrefix;
|
15
19
|
getResourcesRequest(_context: ILogContext, params: IGetResourcesRequest): Promise<IGetResourcesResponse>;
|
16
20
|
saveSnapshot(): Promise<ISaveSnapshotResponse>;
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import { ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
1
2
|
import { Nullable, Disposable, IConfigService, ILogService } from '@univerjs/core';
|
2
3
|
import { ISocket, HTTPService, WebSocketService } from '@univerjs/network';
|
3
4
|
import { IChangeset } from '@univerjs/protocol';
|
4
|
-
import { ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
5
5
|
import { Observable } from 'rxjs';
|
6
6
|
export interface ICollaborationSocket extends Pick<ISocket, 'open$' | 'error$' | 'close$'> {
|
7
7
|
memberID: string;
|