@univerjs-pro/collaboration-client 0.5.0 → 0.5.1-nightly.202412011605
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
|
-
|
1
|
+
function _0x5974(){const _0x314043=['Local\x20file','Connection\x20failed.\x20Please\x20check\x20your\x20network.','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.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1616337deYHGy','Syncing\x20server\x20data...','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Authentication\x20Error','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','391655rvXFUg','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','181098WyUBNO','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\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.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','6738895MCYXHv','Collaboration\x20Conflict','7080792XPjEAy','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','406eeFlOI','1244FqEaZK','7836724yjjxdT','Edit\x20conflicts','Synced','24eMpwRY','4YXNHaE','Click\x20to\x20Reconnect','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','50oNUuzz'];_0x5974=function(){return _0x314043;};return _0x5974();}const _0x22cc46=_0x4668;(function(_0x29e2d0,_0x2b3d55){const _0x3550f0=_0x4668,_0xa43978=_0x29e2d0();while(!![]){try{const _0x129238=-parseInt(_0x3550f0(0x179))/0x1*(-parseInt(_0x3550f0(0x178))/0x2)+-parseInt(_0x3550f0(0x16e))/0x3+parseInt(_0x3550f0(0x17e))/0x4*(-parseInt(_0x3550f0(0x174))/0x5)+parseInt(_0x3550f0(0x176))/0x6+parseInt(_0x3550f0(0x17a))/0x7+parseInt(_0x3550f0(0x17d))/0x8*(-parseInt(_0x3550f0(0x186))/0x9)+-parseInt(_0x3550f0(0x181))/0xa*(-parseInt(_0x3550f0(0x16b))/0xb);if(_0x129238===_0x2b3d55)break;else _0xa43978['push'](_0xa43978['shift']());}catch(_0x26e87e){_0xa43978['push'](_0xa43978['shift']());}}}(_0x5974,0xbf3c1));function _0x4668(_0x15e022,_0x55ef45){const _0x5974fa=_0x5974();return _0x4668=function(_0x4668c3,_0x1cdc90){_0x4668c3=_0x4668c3-0x16b;let _0xc56cc0=_0x5974fa[_0x4668c3];return _0xc56cc0;},_0x4668(_0x15e022,_0x55ef45);}const e={'collab-client':{'tooltip':{'reconnect':_0x22cc46(0x17f)}},'collabStatus':{'fetchMiss':_0x22cc46(0x187),'conflict':_0x22cc46(0x17b),'notCollab':_0x22cc46(0x182),'synced':_0x22cc46(0x17c),'syncing':'Syncing...','offline':_0x22cc46(0x18a)},'session':{'connection-failed':_0x22cc46(0x183),'will-retry':_0x22cc46(0x16d),'room-full':_0x22cc46(0x180),'join-failed':_0x22cc46(0x188),'room-not-exists':_0x22cc46(0x16f),'room-permission-denied':_0x22cc46(0x177),'room-cnt-exceeds':_0x22cc46(0x170),'collaboration-timeout':_0x22cc46(0x171)},'conflict':{'title':_0x22cc46(0x175),'content':_0x22cc46(0x184)},'permission':{'title':_0x22cc46(0x189),'content':_0x22cc46(0x172)},'collaboration':{'single-unit':{'warning':_0x22cc46(0x185)},'closeRoom':_0x22cc46(0x16c)},'auth':{'needGotoLoginAlert':_0x22cc46(0x173)}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x4e5b(_0x5b3315,_0x355eb0){const _0x410846=_0x4108();return _0x4e5b=function(_0x4e5bcd,_0x191317){_0x4e5bcd=_0x4e5bcd-0x7e;let _0x5e7399=_0x410846[_0x4e5bcd];return _0x5e7399;},_0x4e5b(_0x5b3315,_0x355eb0);}const _0xc090f1=_0x4e5b;(function(_0x14ebc1,_0x3bf484){const _0x56f801=_0x4e5b,_0x298761=_0x14ebc1();while(!![]){try{const _0x124182=-parseInt(_0x56f801(0x95))/0x1*(parseInt(_0x56f801(0x94))/0x2)+-parseInt(_0x56f801(0x87))/0x3+-parseInt(_0x56f801(0x84))/0x4*(parseInt(_0x56f801(0x8b))/0x5)+-parseInt(_0x56f801(0x83))/0x6*(parseInt(_0x56f801(0x7e))/0x7)+-parseInt(_0x56f801(0x8d))/0x8*(parseInt(_0x56f801(0x92))/0x9)+-parseInt(_0x56f801(0x85))/0xa+parseInt(_0x56f801(0x98))/0xb;if(_0x124182===_0x3bf484)break;else _0x298761['push'](_0x298761['shift']());}catch(_0x4ab12c){_0x298761['push'](_0x298761['shift']());}}}(_0x4108,0x9792e));const o={'collab-client':{'tooltip':{'reconnect':_0xc090f1(0x82)}},'collabStatus':{'fetchMiss':'در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','conflict':_0xc090f1(0x7f),'notCollab':'پرونده\x20محلی','synced':_0xc090f1(0x89),'syncing':_0xc090f1(0x80),'offline':_0xc090f1(0x93)},'session':{'connection-failed':_0xc090f1(0x96),'will-retry':_0xc090f1(0x97),'room-full':_0xc090f1(0x8e),'join-failed':'پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20لطفاً\x20بعداً\x20دوباره\x20امتحان\x20کنید.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','room-not-exists':_0xc090f1(0x99),'room-permission-denied':_0xc090f1(0x90),'room-cnt-exceeds':'تعداد\x20اسناد\x20همکاری\x20از\x20حد\x20مجاز\x20فراتر\x20رفته\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','collaboration-timeout':_0xc090f1(0x81)},'conflict':{'title':_0xc090f1(0x8f),'content':_0xc090f1(0x88)},'permission':{'title':_0xc090f1(0x86),'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':_0xc090f1(0x91)},'closeRoom':_0xc090f1(0x8c)},'auth':{'needGotoLoginAlert':_0xc090f1(0x8a)}};function _0x4108(){const _0x5442d7=['خطای\x20اعتبارسنجی','1232778cmtCwB','یک\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کنید.','35GaXYwn','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','3774728tHCMhb','ظرفیت\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کنید.','9WVXNMY','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','1987744JHjqXZ','1QtLBOq','اتصال\x20ناموفق\x20بود،\x20لطفاً\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','44902429jXiNbw','پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','2114dvIont','تداخل\x20ویرایش','در\x20حال\x20همگام\x20سازی...','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمیدهد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','348rBpMYH','700052zxtgja','3419470DXNggM'];_0x4108=function(){return _0x5442d7;};return _0x4108();}export{o as default};
|
@@ -0,0 +1 @@
|
|
1
|
+
const _0x516c6d=_0x54b6;(function(_0x4a5087,_0x4ce4a0){const _0x1a806e=_0x54b6,_0x5c3584=_0x4a5087();while(!![]){try{const _0x1ec4b2=-parseInt(_0x1a806e(0x90))/0x1+parseInt(_0x1a806e(0x85))/0x2*(parseInt(_0x1a806e(0x88))/0x3)+-parseInt(_0x1a806e(0x83))/0x4+parseInt(_0x1a806e(0x8c))/0x5*(parseInt(_0x1a806e(0x93))/0x6)+-parseInt(_0x1a806e(0x8e))/0x7+-parseInt(_0x1a806e(0x8a))/0x8*(parseInt(_0x1a806e(0x96))/0x9)+parseInt(_0x1a806e(0x95))/0xa*(parseInt(_0x1a806e(0x94))/0xb);if(_0x1ec4b2===_0x4ce4a0)break;else _0x5c3584['push'](_0x5c3584['shift']());}catch(_0x2b01c6){_0x5c3584['push'](_0x5c3584['shift']());}}}(_0x38ba,0x59127));function _0x54b6(_0x38a94d,_0x1e6201){const _0x38ba27=_0x38ba();return _0x54b6=function(_0x54b6f9,_0x1a778d){_0x54b6f9=_0x54b6f9-0x83;let _0x222f40=_0x38ba27[_0x54b6f9];return _0x222f40;},_0x54b6(_0x38a94d,_0x1e6201);}function _0x38ba(){const _0xa79936=['10sUExrF','117hezXlz','2429708kQcrch','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','1676SeKvRx','Local\x20file','Click\x20to\x20Reconnect','2379KcpuzE','Syncing...','140984erqwOn','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','462730obWnsQ','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','876477QRdGXq','Authentication\x20Error','144473LHpmQW','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.','6OHyazZ','7853659EXAjdq'];_0x38ba=function(){return _0xa79936;};return _0x38ba();}const e={'collab-client':{'tooltip':{'reconnect':_0x516c6d(0x87)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x516c6d(0x86),'synced':'Synced','syncing':_0x516c6d(0x89),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'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':_0x516c6d(0x91),'room-not-exists':_0x516c6d(0x8b),'room-permission-denied':'No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-cnt-exceeds':_0x516c6d(0x8d),'collaboration-timeout':_0x516c6d(0x92)},'conflict':{'title':'Collaboration\x20Conflict','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':_0x516c6d(0x8f),'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':_0x516c6d(0x84)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;export{o as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0xe9d95c=_0x4014;function _0x4014(_0x9d9cb6,_0x45abe6){const _0x1f27f7=_0x1f27();return _0x4014=function(_0x4014af,_0x5bba4b){_0x4014af=_0x4014af-0x155;let _0x4bb046=_0x1f27f7[_0x4014af];return _0x4bb046;},_0x4014(_0x9d9cb6,_0x45abe6);}(function(_0xb2ef80,_0x18ec54){const _0x319c5b=_0x4014,_0x276a22=_0xb2ef80();while(!![]){try{const _0x3d4ce8=-parseInt(_0x319c5b(0x160))/0x1*(-parseInt(_0x319c5b(0x16e))/0x2)+parseInt(_0x319c5b(0x163))/0x3+-parseInt(_0x319c5b(0x167))/0x4*(parseInt(_0x319c5b(0x162))/0x5)+parseInt(_0x319c5b(0x161))/0x6*(-parseInt(_0x319c5b(0x166))/0x7)+-parseInt(_0x319c5b(0x15d))/0x8*(parseInt(_0x319c5b(0x16b))/0x9)+-parseInt(_0x319c5b(0x169))/0xa*(-parseInt(_0x319c5b(0x15f))/0xb)+parseInt(_0x319c5b(0x158))/0xc;if(_0x3d4ce8===_0x18ec54)break;else _0x276a22['push'](_0x276a22['shift']());}catch(_0x1bd8d1){_0x276a22['push'](_0x276a22['shift']());}}}(_0x1f27,0x3bbf0));const e={'collab-client':{'tooltip':{'reconnect':_0xe9d95c(0x164)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0xe9d95c(0x16c),'notCollab':_0xe9d95c(0x16d),'synced':_0xe9d95c(0x15c),'syncing':_0xe9d95c(0x16f),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':'Connection\x20failed.\x20Please\x20check\x20your\x20network.','will-retry':_0xe9d95c(0x159),'room-full':_0xe9d95c(0x168),'join-failed':_0xe9d95c(0x165),'room-not-exists':_0xe9d95c(0x15a),'room-permission-denied':_0xe9d95c(0x170),'room-cnt-exceeds':'Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','collaboration-timeout':_0xe9d95c(0x15e)},'conflict':{'title':_0xe9d95c(0x16a),'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':_0xe9d95c(0x156),'content':_0xe9d95c(0x157)},'collaboration':{'single-unit':{'warning':_0xe9d95c(0x155)},'closeRoom':_0xe9d95c(0x15b)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;export{o as default};function _0x1f27(){const _0x25f523=['Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','2543160JKKLHO','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Synced','832hbzfQV','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','9251yfdiRj','13619yzDXtO','6yLyPdV','745vhXTNI','1405908Nxjwpr','Click\x20to\x20Reconnect','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','1466682nfPbME','7404tBBdNi','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','5530tjOabe','Collaboration\x20Conflict','38322pGKhvy','Edit\x20conflicts','Local\x20file','4vnAgWJ','Syncing...','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.','Authentication\x20Error'];_0x1f27=function(){return _0x25f523;};return _0x1f27();}
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x5455(_0x453f8b,_0x2d0f7f){const _0x47dd7c=_0x47dd();return _0x5455=function(_0x5455ea,_0x7bc2c8){_0x5455ea=_0x5455ea-0x1df;let _0x16a7e1=_0x47dd7c[_0x5455ea];return _0x16a7e1;},_0x5455(_0x453f8b,_0x2d0f7f);}const _0x48e03d=_0x5455;(function(_0x562724,_0x57cec1){const _0x26747f=_0x5455,_0xd0d68c=_0x562724();while(!![]){try{const _0x14fc49=-parseInt(_0x26747f(0x1f5))/0x1+-parseInt(_0x26747f(0x1f4))/0x2*(-parseInt(_0x26747f(0x1e6))/0x3)+-parseInt(_0x26747f(0x1e5))/0x4*(parseInt(_0x26747f(0x1e8))/0x5)+parseInt(_0x26747f(0x1e4))/0x6+-parseInt(_0x26747f(0x1ee))/0x7+parseInt(_0x26747f(0x1f0))/0x8*(-parseInt(_0x26747f(0x1f7))/0x9)+parseInt(_0x26747f(0x1e0))/0xa;if(_0x14fc49===_0x57cec1)break;else _0xd0d68c['push'](_0xd0d68c['shift']());}catch(_0x1a05c3){_0xd0d68c['push'](_0xd0d68c['shift']());}}}(_0x47dd,0xe07a6));function _0x47dd(){const _0x5ccdef=['1438270bGvaZL','1608675PNRXWb','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','7022079dEndOh','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Edit\x20conflicts','23718020ciiJpT','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','10547310DsTnGn','4WRyewg','3IDweDM','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','350380gNPrNz','Click\x20to\x20Reconnect','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Local\x20file','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','10292646HaQcly','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','8puFASc','Syncing\x20server\x20data...','Syncing...','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.'];_0x47dd=function(){return _0x5ccdef;};return _0x47dd();}const e={'collab-client':{'tooltip':{'reconnect':_0x48e03d(0x1e9)}},'collabStatus':{'fetchMiss':_0x48e03d(0x1f1),'conflict':_0x48e03d(0x1df),'notCollab':_0x48e03d(0x1eb),'synced':'Synced','syncing':_0x48e03d(0x1f2),'offline':_0x48e03d(0x1f6)},'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':_0x48e03d(0x1ef),'room-not-exists':_0x48e03d(0x1e3),'room-permission-denied':_0x48e03d(0x1ed),'room-cnt-exceeds':_0x48e03d(0x1ec),'collaboration-timeout':_0x48e03d(0x1e1)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x48e03d(0x1f3)},'permission':{'title':'Authentication\x20Error','content':_0x48e03d(0x1e7)},'collaboration':{'single-unit':{'warning':_0x48e03d(0x1ea)},'closeRoom':_0x48e03d(0x1f8)},'auth':{'needGotoLoginAlert':_0x48e03d(0x1e2)}},o=e;export{o as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x13b7(){const _0x5a1185=['连接失败,将在一会儿之后重试连接','服务器未响应,你的编辑将在本地缓存','由于协同房间被关闭,编辑权限被收回。','协同冲突','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','已离线,编辑将在本地缓存','45yjQoTx','1128585kQvGXM','34460juGThh','点击重新连接','18GKxLGK','3508572lWfDtr','你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','协同文档数量超过限制,你的编辑将在本地缓存','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','10pRKnCY','1981610QXFOVU','33rlwRYC','正在拉取服务端数据...','4291jxPgdn','权限错误','连接失败,请检查你的网络','2664JDkRyj','加入协同失败,请稍后重试,你的编辑将在本地缓存','此文档协同人数已满,你的编辑将在本地缓存','已同步','加入协同失败,你的编辑将在本地缓存','5177QrfLhM','689088PwXlxF'];_0x13b7=function(){return _0x5a1185;};return _0x13b7();}function _0x3a5d(_0x35c607,_0x139736){const _0x13b7a3=_0x13b7();return _0x3a5d=function(_0x3a5d0e,_0x5ee1c8){_0x3a5d0e=_0x3a5d0e-0x141;let _0x31a10b=_0x13b7a3[_0x3a5d0e];return _0x31a10b;},_0x3a5d(_0x35c607,_0x139736);}const _0x149c80=_0x3a5d;(function(_0x116a9f,_0x3a15ee){const _0x2acbae=_0x3a5d,_0x284e57=_0x116a9f();while(!![]){try{const _0x2656fb=-parseInt(_0x2acbae(0x153))/0x1*(-parseInt(_0x2acbae(0x147))/0x2)+-parseInt(_0x2acbae(0x15b))/0x3*(-parseInt(_0x2acbae(0x15d))/0x4)+parseInt(_0x2acbae(0x15c))/0x5+parseInt(_0x2acbae(0x14e))/0x6*(parseInt(_0x2acbae(0x14b))/0x7)+-parseInt(_0x2acbae(0x154))/0x8*(-parseInt(_0x2acbae(0x142))/0x9)+parseInt(_0x2acbae(0x148))/0xa+parseInt(_0x2acbae(0x149))/0xb*(-parseInt(_0x2acbae(0x143))/0xc);if(_0x2656fb===_0x3a15ee)break;else _0x284e57['push'](_0x284e57['shift']());}catch(_0x499853){_0x284e57['push'](_0x284e57['shift']());}}}(_0x13b7,0x23b71));const o={'collab-client':{'tooltip':{'reconnect':_0x149c80(0x141)}},'collabStatus':{'fetchMiss':_0x149c80(0x14a),'conflict':'编辑冲突','notCollab':'本地文件','synced':_0x149c80(0x151),'syncing':'保存中...','offline':_0x149c80(0x15a)},'session':{'connection-failed':_0x149c80(0x14d),'will-retry':_0x149c80(0x155),'room-full':_0x149c80(0x150),'join-failed':_0x149c80(0x14f),'room-not-exists':_0x149c80(0x152),'room-permission-denied':'没有协同权限,你的编辑将在本地缓存','room-cnt-exceeds':_0x149c80(0x145),'collaboration-timeout':_0x149c80(0x156)},'conflict':{'title':_0x149c80(0x158),'content':_0x149c80(0x159)},'permission':{'title':_0x149c80(0x14c),'content':_0x149c80(0x144)},'collaboration':{'single-unit':{'warning':_0x149c80(0x146)},'closeRoom':_0x149c80(0x157)},'auth':{'needGotoLoginAlert':'你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。'}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x13a4(){const _0xa4e972=['3704908YkSFAC','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Authentication\x20Error','5803389qjMLmi','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','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.','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','1673065DYKrcl','Click\x20to\x20Reconnect','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Syncing...','959396kNpMAc','14450960NkJEZS','42AynVfr','3yvbEfm','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Local\x20file','8iitLUP','39115ZYCwvK','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.','Syncing\x20server\x20data...','3755059ljMfXP','Collaboration\x20Conflict'];_0x13a4=function(){return _0xa4e972;};return _0x13a4();}const _0x59662d=_0x4d2d;(function(_0x344796,_0x213290){const _0x31ffbb=_0x4d2d,_0x1c1150=_0x344796();while(!![]){try{const _0x3fc522=parseInt(_0x31ffbb(0x180))/0x1+parseInt(_0x31ffbb(0x194))/0x2*(-parseInt(_0x31ffbb(0x189))/0x3)+-parseInt(_0x31ffbb(0x186))/0x4+-parseInt(_0x31ffbb(0x18e))/0x5*(-parseInt(_0x31ffbb(0x188))/0x6)+parseInt(_0x31ffbb(0x192))/0x7+-parseInt(_0x31ffbb(0x18d))/0x8*(parseInt(_0x31ffbb(0x197))/0x9)+parseInt(_0x31ffbb(0x187))/0xa;if(_0x3fc522===_0x213290)break;else _0x1c1150['push'](_0x1c1150['shift']());}catch(_0x33baf0){_0x1c1150['push'](_0x1c1150['shift']());}}}(_0x13a4,0xed5cb));function _0x4d2d(_0x51e558,_0x15bd1c){const _0x13a411=_0x13a4();return _0x4d2d=function(_0x4d2d9b,_0xd09a19){_0x4d2d9b=_0x4d2d9b-0x17c;let _0x5f1004=_0x13a411[_0x4d2d9b];return _0x5f1004;},_0x4d2d(_0x51e558,_0x15bd1c);}const e={'collab-client':{'tooltip':{'reconnect':_0x59662d(0x181)}},'collabStatus':{'fetchMiss':_0x59662d(0x191),'conflict':'Edit\x20conflicts','notCollab':_0x59662d(0x18c),'synced':'Synced','syncing':_0x59662d(0x185),'offline':_0x59662d(0x184)},'session':{'connection-failed':_0x59662d(0x183),'will-retry':_0x59662d(0x182),'room-full':_0x59662d(0x17e),'join-failed':_0x59662d(0x17d),'room-not-exists':_0x59662d(0x17f),'room-permission-denied':'No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-cnt-exceeds':_0x59662d(0x18a),'collaboration-timeout':_0x59662d(0x18b)},'conflict':{'title':_0x59662d(0x193),'content':_0x59662d(0x18f)},'permission':{'title':_0x59662d(0x196),'content':_0x59662d(0x190)},'collaboration':{'single-unit':{'warning':_0x59662d(0x17c)},'closeRoom':_0x59662d(0x195)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;export{o as default};
|
@@ -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;
|