@univerjs-pro/collaboration-client 0.5.1-nightly.202412081606 → 0.5.1-nightly.202412090546
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 -0
- 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 -0
- 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/collaboration.controller.d.ts +1 -0
- package/lib/types/facade/f-collaboration.d.ts +13 -0
- package/lib/types/facade/f-univer.d.ts +12 -0
- package/lib/types/facade/index.d.ts +2 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +2 -2
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +6 -7
- package/lib/types/services/network-condition/network-condition.service.d.ts +6 -0
- package/lib/types/services/socket/collaboration-socket.service.d.ts +4 -4
- package/lib/umd/facade.js +1 -0
- 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 +19 -8
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x5d036f=_0x2784;(function(_0xf9af31,_0x295dc1){const _0x2502ed=_0x2784,_0xc4bc48=_0xf9af31();while(!![]){try{const _0x3b641a=parseInt(_0x2502ed(0xc4))/0x1+parseInt(_0x2502ed(0xd2))/0x2+-parseInt(_0x2502ed(0xcd))/0x3+-parseInt(_0x2502ed(0xc2))/0x4*(-parseInt(_0x2502ed(0xcb))/0x5)+parseInt(_0x2502ed(0xc0))/0x6*(-parseInt(_0x2502ed(0xb9))/0x7)+parseInt(_0x2502ed(0xd1))/0x8*(-parseInt(_0x2502ed(0xb8))/0x9)+parseInt(_0x2502ed(0xd3))/0xa;if(_0x3b641a===_0x295dc1)break;else _0xc4bc48['push'](_0xc4bc48['shift']());}catch(_0x5376a0){_0xc4bc48['push'](_0xc4bc48['shift']());}}}(_0x12fb,0xbab9f));function _0x2784(_0x28034f,_0x21fda2){const _0x12fb1b=_0x12fb();return _0x2784=function(_0x278443,_0x2c2b63){_0x278443=_0x278443-0xb8;let _0x38c5ab=_0x12fb1b[_0x278443];return _0x38c5ab;},_0x2784(_0x28034f,_0x21fda2);}function _0x12fb(){const _0x4ce35e=['The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Syncing...','4558096MtRMZI','2932662SoyKIN','5779350vEkpfH','Synced','9UGTlmf','37751FELxzU','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','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.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Edit\x20conflicts','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','906WJwowA','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','3668sgmeiW','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','267447sIqjBT','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Collaboration\x20Conflict','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.','Click\x20to\x20Reconnect','Authentication\x20Error','1745uYvvoq','Syncing\x20server\x20data...','1448430fmvfvP'];_0x12fb=function(){return _0x4ce35e;};return _0x12fb();}const e={'collab-client':{'tooltip':{'reconnect':_0x5d036f(0xc9)}},'collabStatus':{'fetchMiss':_0x5d036f(0xcc),'conflict':_0x5d036f(0xbe),'notCollab':'Local\x20file','synced':_0x5d036f(0xd4),'syncing':_0x5d036f(0xd0),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':'Connection\x20failed.\x20Please\x20check\x20your\x20network.','will-retry':_0x5d036f(0xc3),'room-full':_0x5d036f(0xc5),'join-failed':_0x5d036f(0xbc),'room-not-exists':_0x5d036f(0xba),'room-permission-denied':_0x5d036f(0xcf),'room-cnt-exceeds':_0x5d036f(0xbb),'collaboration-timeout':_0x5d036f(0xce)},'conflict':{'title':_0x5d036f(0xc7),'content':_0x5d036f(0xc8)},'permission':{'title':_0x5d036f(0xca),'content':_0x5d036f(0xbf)},'collaboration':{'single-unit':{'warning':_0x5d036f(0xc6)},'closeRoom':_0x5d036f(0xbd)},'auth':{'needGotoLoginAlert':_0x5d036f(0xc1)}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x4ac6(){const _0x12a037=['904qMajhg','تعداد\x20اسناد\x20همکاری\x20از\x20حد\x20مجاز\x20فراتر\x20رفته\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','320156wfZhDB','در\x20حال\x20همگام\x20سازی...','پرونده\x20محلی','79832qpOoBV','2763ciLbcK','خطای\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شد.','561650WtZGNB','504084aqZIMf','برای\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رفت.','196445LVXtbl','ورود\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شد.','6IMuyYG','410664WrwiOO','پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20لطفاً\x20بعداً\x20دوباره\x20امتحان\x20کنید.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','تداخل\x20ویرایش'];_0x4ac6=function(){return _0x12a037;};return _0x4ac6();}const _0x3f1136=_0xa31b;(function(_0x26486a,_0x113eca){const _0x1d21ff=_0xa31b,_0x7f65fb=_0x26486a();while(!![]){try{const _0x15279e=parseInt(_0x1d21ff(0xc7))/0x1+-parseInt(_0x1d21ff(0xbc))/0x2*(parseInt(_0x1d21ff(0xca))/0x3)+-parseInt(_0x1d21ff(0xd1))/0x4+parseInt(_0x1d21ff(0xc1))/0x5+-parseInt(_0x1d21ff(0xcb))/0x6+parseInt(_0x1d21ff(0xc2))/0x7+-parseInt(_0x1d21ff(0xce))/0x8*(parseInt(_0x1d21ff(0xbd))/0x9);if(_0x15279e===_0x113eca)break;else _0x7f65fb['push'](_0x7f65fb['shift']());}catch(_0x4a9b88){_0x7f65fb['push'](_0x7f65fb['shift']());}}}(_0x4ac6,0x1cc15));const o={'collab-client':{'tooltip':{'reconnect':_0x3f1136(0xc3)}},'collabStatus':{'fetchMiss':_0x3f1136(0xc5),'conflict':_0x3f1136(0xcd),'notCollab':_0x3f1136(0xbb),'synced':'همگام\x20سازی','syncing':_0x3f1136(0xba),'offline':'آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند'},'session':{'connection-failed':'اتصال\x20ناموفق\x20بود،\x20لطفاً\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','will-retry':_0x3f1136(0xd0),'room-full':'ظرفیت\x20همکاری\x20در\x20این\x20سند\x20پر\x20شده\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','join-failed':_0x3f1136(0xcc),'room-not-exists':'پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','room-permission-denied':_0x3f1136(0xc0),'room-cnt-exceeds':_0x3f1136(0xcf),'collaboration-timeout':_0x3f1136(0xbf)},'conflict':{'title':'تداخل\x20همکاری','content':'یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'permission':{'title':_0x3f1136(0xbe),'content':_0x3f1136(0xc6)},'collaboration':{'single-unit':{'warning':_0x3f1136(0xc4)},'closeRoom':_0x3f1136(0xc9)},'auth':{'needGotoLoginAlert':_0x3f1136(0xc8)}};function _0xa31b(_0x3b9333,_0x260f66){const _0x4ac66b=_0x4ac6();return _0xa31b=function(_0xa31b6a,_0x309f75){_0xa31b6a=_0xa31b6a-0xba;let _0x1ea08e=_0x4ac66b[_0xa31b6a];return _0x1ea08e;},_0xa31b(_0x3b9333,_0x260f66);}export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x535720=_0x3773;function _0x3773(_0x5a3fee,_0x247542){const _0x1cef6f=_0x1cef();return _0x3773=function(_0x3773cd,_0x2882b2){_0x3773cd=_0x3773cd-0x100;let _0x3b74da=_0x1cef6f[_0x3773cd];return _0x3b74da;},_0x3773(_0x5a3fee,_0x247542);}(function(_0x5184ed,_0xb121a){const _0x41b188=_0x3773,_0x47d756=_0x5184ed();while(!![]){try{const _0x25fc25=parseInt(_0x41b188(0x106))/0x1*(parseInt(_0x41b188(0x112))/0x2)+-parseInt(_0x41b188(0x10b))/0x3*(-parseInt(_0x41b188(0x110))/0x4)+parseInt(_0x41b188(0x10d))/0x5+parseInt(_0x41b188(0x114))/0x6+-parseInt(_0x41b188(0x10a))/0x7+-parseInt(_0x41b188(0x107))/0x8+-parseInt(_0x41b188(0x111))/0x9;if(_0x25fc25===_0xb121a)break;else _0x47d756['push'](_0x47d756['shift']());}catch(_0x1f158c){_0x47d756['push'](_0x47d756['shift']());}}}(_0x1cef,0xf1c70));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x535720(0x104),'notCollab':_0x535720(0x113),'synced':_0x535720(0x10c),'syncing':_0x535720(0x102),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x535720(0x100),'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':'Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-not-exists':'Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-permission-denied':_0x535720(0x108),'room-cnt-exceeds':_0x535720(0x101),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x535720(0x109),'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':_0x535720(0x105)},'collaboration':{'single-unit':{'warning':_0x535720(0x10e)},'closeRoom':_0x535720(0x10f)},'auth':{'needGotoLoginAlert':_0x535720(0x103)}},o=e;function _0x1cef(){const _0xcca431=['You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','4oBsxbY','15481575JSVeHA','10cvRyDa','Local\x20file','4128516UFxdlr','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Syncing...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Edit\x20conflicts','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','121689VkrMCp','9200776ngFmkK','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Collaboration\x20Conflict','3399081lAalMp','3456477ReRzkG','Synced','9487425tWdtHO'];_0x1cef=function(){return _0xcca431;};return _0x1cef();}export{o as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x1b5ae1=_0x13b0;(function(_0x58d487,_0x34aab1){const _0x370616=_0x13b0,_0x381781=_0x58d487();while(!![]){try{const _0x5124bc=parseInt(_0x370616(0x1f9))/0x1*(parseInt(_0x370616(0x1ec))/0x2)+-parseInt(_0x370616(0x1f1))/0x3+-parseInt(_0x370616(0x1f0))/0x4*(-parseInt(_0x370616(0x1f4))/0x5)+parseInt(_0x370616(0x1fa))/0x6+parseInt(_0x370616(0x1f8))/0x7+-parseInt(_0x370616(0x203))/0x8*(parseInt(_0x370616(0x207))/0x9)+parseInt(_0x370616(0x1f2))/0xa*(-parseInt(_0x370616(0x200))/0xb);if(_0x5124bc===_0x34aab1)break;else _0x381781['push'](_0x381781['shift']());}catch(_0x58d117){_0x381781['push'](_0x381781['shift']());}}}(_0x39e7,0x28e19));function _0x39e7(){const _0x4c21d3=['Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','2398ydcuvC','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','553880YmfmaZ','Syncing...','Syncing\x20server\x20data...','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','18oxKsUa','Collaboration\x20Conflict','Authentication\x20Error','1036cNydQG','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.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','52hbMfEv','573507cujdZC','17110sPLvDS','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.','116535rgjmvb','Synced','Click\x20to\x20Reconnect','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','1776068QAmkqd','517aNWMbU','273390EwjZap','Edit\x20conflicts'];_0x39e7=function(){return _0x4c21d3;};return _0x39e7();}function _0x13b0(_0x38575e,_0x5ad80d){const _0x39e7ee=_0x39e7();return _0x13b0=function(_0x13b0c3,_0x408b0a){_0x13b0c3=_0x13b0c3-0x1eb;let _0x4ead1d=_0x39e7ee[_0x13b0c3];return _0x4ead1d;},_0x13b0(_0x38575e,_0x5ad80d);}const e={'collab-client':{'tooltip':{'reconnect':_0x1b5ae1(0x1f6)}},'collabStatus':{'fetchMiss':_0x1b5ae1(0x205),'conflict':_0x1b5ae1(0x1fb),'notCollab':_0x1b5ae1(0x1fd),'synced':_0x1b5ae1(0x1f5),'syncing':_0x1b5ae1(0x204),'offline':_0x1b5ae1(0x1fc)},'session':{'connection-failed':_0x1b5ae1(0x1ef),'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':_0x1b5ae1(0x202),'room-not-exists':_0x1b5ae1(0x1ff),'room-permission-denied':_0x1b5ae1(0x1ed),'room-cnt-exceeds':_0x1b5ae1(0x206),'collaboration-timeout':_0x1b5ae1(0x1fe)},'conflict':{'title':_0x1b5ae1(0x208),'content':_0x1b5ae1(0x1f3)},'permission':{'title':_0x1b5ae1(0x1eb),'content':_0x1b5ae1(0x201)},'collaboration':{'single-unit':{'warning':_0x1b5ae1(0x1ee)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x1b5ae1(0x1f7)}},o=e;export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x39aea7=_0x33b2;function _0x33b2(_0x401d3f,_0x1b0c89){const _0x28d287=_0x28d2();return _0x33b2=function(_0x33b298,_0x266da1){_0x33b298=_0x33b298-0x13b;let _0x7428e7=_0x28d287[_0x33b298];return _0x7428e7;},_0x33b2(_0x401d3f,_0x1b0c89);}function _0x28d2(){const _0x262962=['Click\x20to\x20Reconnect','492018WUevCs','Failed\x20to\x20join\x20collaboration.\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.','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','7677276KTefft','129488GtzTmj','7UTzvZe','85821kKkgOt','93680mbvnQc','10sEpYwX','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Local\x20file','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','24VHctNZ','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Authentication\x20Error','606132oZSqFe','Syncing...','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.\x20Please\x20check\x20your\x20network.','121FYLEai','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','154YEPNvv','53234NxJNJz','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Synced'];_0x28d2=function(){return _0x262962;};return _0x28d2();}(function(_0x535a87,_0x5a70f3){const _0x5ac775=_0x33b2,_0x2b8234=_0x535a87();while(!![]){try{const _0x1e2071=-parseInt(_0x5ac775(0x148))/0x1*(parseInt(_0x5ac775(0x13d))/0x2)+parseInt(_0x5ac775(0x149))/0x3*(-parseInt(_0x5ac775(0x14f))/0x4)+-parseInt(_0x5ac775(0x14b))/0x5*(-parseInt(_0x5ac775(0x142))/0x6)+-parseInt(_0x5ac775(0x13c))/0x7*(parseInt(_0x5ac775(0x147))/0x8)+parseInt(_0x5ac775(0x152))/0x9+parseInt(_0x5ac775(0x14a))/0xa*(parseInt(_0x5ac775(0x156))/0xb)+parseInt(_0x5ac775(0x146))/0xc;if(_0x1e2071===_0x5a70f3)break;else _0x2b8234['push'](_0x2b8234['shift']());}catch(_0x2b4c4c){_0x2b8234['push'](_0x2b8234['shift']());}}}(_0x28d2,0x3f81a));const e={'collab-client':{'tooltip':{'reconnect':_0x39aea7(0x141)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x39aea7(0x14d),'synced':_0x39aea7(0x140),'syncing':_0x39aea7(0x153),'offline':_0x39aea7(0x13f)},'session':{'connection-failed':_0x39aea7(0x155),'will-retry':'Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','room-full':_0x39aea7(0x145),'join-failed':_0x39aea7(0x14c),'room-not-exists':_0x39aea7(0x143),'room-permission-denied':_0x39aea7(0x13e),'room-cnt-exceeds':_0x39aea7(0x13b),'collaboration-timeout':_0x39aea7(0x150)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x39aea7(0x144)},'permission':{'title':_0x39aea7(0x151),'content':_0x39aea7(0x154)},'collaboration':{'single-unit':{'warning':_0x39aea7(0x14e)},'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/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x33f9c5=_0x5d6d;(function(_0x3e81d9,_0x79c523){const _0x23618e=_0x5d6d,_0x3d14a8=_0x3e81d9();while(!![]){try{const _0x428243=-parseInt(_0x23618e(0x124))/0x1*(parseInt(_0x23618e(0x10c))/0x2)+parseInt(_0x23618e(0x10e))/0x3*(-parseInt(_0x23618e(0x12a))/0x4)+parseInt(_0x23618e(0x128))/0x5*(parseInt(_0x23618e(0x115))/0x6)+-parseInt(_0x23618e(0x121))/0x7+-parseInt(_0x23618e(0x126))/0x8+-parseInt(_0x23618e(0x122))/0x9*(parseInt(_0x23618e(0x116))/0xa)+-parseInt(_0x23618e(0x114))/0xb*(-parseInt(_0x23618e(0x129))/0xc);if(_0x428243===_0x79c523)break;else _0x3d14a8['push'](_0x3d14a8['shift']());}catch(_0x38d1bf){_0x3d14a8['push'](_0x3d14a8['shift']());}}}(_0x2457,0x2afd0));function _0x2457(){const _0x4a3db3=['没有协同权限,你的编辑将在本地缓存','编辑冲突','11KSRvtn','1216806OQmQEB','20MVtXCR','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','服务器未响应,你的编辑将在本地缓存','已离线,编辑将在本地缓存','你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','权限错误','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','协同冲突','已同步','协同文档数量超过限制,你的编辑将在本地缓存','此文档协同人数已满,你的编辑将在本地缓存','559482biTCqa','396999suGVnX','加入协同失败,请稍后重试,你的编辑将在本地缓存','300612MyBJeB','保存中...','1691736DxNnLM','本地文件','5pCUynI','9778932lMzKTv','380fWECdA','2mxqhTf','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','5097UKxXCH','点击重新连接','加入协同失败,你的编辑将在本地缓存','由于协同房间被关闭,编辑权限被收回。'];_0x2457=function(){return _0x4a3db3;};return _0x2457();}const o={'collab-client':{'tooltip':{'reconnect':_0x33f9c5(0x10f)}},'collabStatus':{'fetchMiss':'正在拉取服务端数据...','conflict':_0x33f9c5(0x113),'notCollab':_0x33f9c5(0x127),'synced':_0x33f9c5(0x11e),'syncing':_0x33f9c5(0x125),'offline':_0x33f9c5(0x119)},'session':{'connection-failed':'连接失败,请检查你的网络','will-retry':'连接失败,将在一会儿之后重试连接','room-full':_0x33f9c5(0x120),'join-failed':_0x33f9c5(0x123),'room-not-exists':_0x33f9c5(0x110),'room-permission-denied':_0x33f9c5(0x112),'room-cnt-exceeds':_0x33f9c5(0x11f),'collaboration-timeout':_0x33f9c5(0x118)},'conflict':{'title':_0x33f9c5(0x11d),'content':_0x33f9c5(0x117)},'permission':{'title':_0x33f9c5(0x11b),'content':_0x33f9c5(0x11a)},'collaboration':{'single-unit':{'warning':_0x33f9c5(0x10d)},'closeRoom':_0x33f9c5(0x111)},'auth':{'needGotoLoginAlert':_0x33f9c5(0x11c)}};function _0x5d6d(_0x28f1a6,_0x146e28){const _0x2457a4=_0x2457();return _0x5d6d=function(_0x5d6d04,_0x12d2ec){_0x5d6d04=_0x5d6d04-0x10c;let _0x2001ab=_0x2457a4[_0x5d6d04];return _0x2001ab;},_0x5d6d(_0x28f1a6,_0x146e28);}export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x3cbd8f=_0x3950;function _0x3950(_0x259022,_0x31ac6f){const _0x3a3a4f=_0x3a3a();return _0x3950=function(_0x39503f,_0x33894c){_0x39503f=_0x39503f-0x94;let _0x20d3b5=_0x3a3a4f[_0x39503f];return _0x20d3b5;},_0x3950(_0x259022,_0x31ac6f);}(function(_0x518ae2,_0x1cf908){const _0x8f3d73=_0x3950,_0x26a13a=_0x518ae2();while(!![]){try{const _0x574829=-parseInt(_0x8f3d73(0x99))/0x1+parseInt(_0x8f3d73(0x9b))/0x2*(parseInt(_0x8f3d73(0xaf))/0x3)+-parseInt(_0x8f3d73(0xa2))/0x4+-parseInt(_0x8f3d73(0x9d))/0x5*(parseInt(_0x8f3d73(0xb0))/0x6)+parseInt(_0x8f3d73(0x94))/0x7*(parseInt(_0x8f3d73(0x9a))/0x8)+parseInt(_0x8f3d73(0xa5))/0x9*(parseInt(_0x8f3d73(0xa8))/0xa)+parseInt(_0x8f3d73(0x9c))/0xb;if(_0x574829===_0x1cf908)break;else _0x26a13a['push'](_0x26a13a['shift']());}catch(_0x39659a){_0x26a13a['push'](_0x26a13a['shift']());}}}(_0x3a3a,0x55aa2));function _0x3a3a(){const _0x3bcb3e=['457111mpYZTi','471784BjrePr','782qdrGrF','8218474RYwrMM','528830OHNTjV','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Edit\x20conflicts','1737712HlsCuk','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Syncing\x20server\x20data...','87687ILsCJr','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.','Synced','270DvmKcH','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Click\x20to\x20Reconnect','Local\x20file','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Authentication\x20Error','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','1767BxFnuH','30iYjIpg','63GSVOTI','Collaboration\x20Conflict','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'];_0x3a3a=function(){return _0x3bcb3e;};return _0x3a3a();}const e={'collab-client':{'tooltip':{'reconnect':_0x3cbd8f(0xaa)}},'collabStatus':{'fetchMiss':_0x3cbd8f(0xa4),'conflict':_0x3cbd8f(0xa1),'notCollab':_0x3cbd8f(0xab),'synced':_0x3cbd8f(0xa7),'syncing':'Syncing...','offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x3cbd8f(0xa3),'will-retry':'Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','room-full':_0x3cbd8f(0xac),'join-failed':_0x3cbd8f(0x96),'room-not-exists':'Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-permission-denied':_0x3cbd8f(0xa0),'room-cnt-exceeds':_0x3cbd8f(0x97),'collaboration-timeout':_0x3cbd8f(0xa9)},'conflict':{'title':_0x3cbd8f(0x95),'content':_0x3cbd8f(0xa6)},'permission':{'title':_0x3cbd8f(0xad),'content':_0x3cbd8f(0xae)},'collaboration':{'single-unit':{'warning':_0x3cbd8f(0x9f)},'closeRoom':_0x3cbd8f(0x98)},'auth':{'needGotoLoginAlert':_0x3cbd8f(0x9e)}},o=e;export{o as default};
|
@@ -13,6 +13,7 @@ export declare class CollaborationController extends RxDisposable {
|
|
13
13
|
dispose(): void;
|
14
14
|
getCollabEntity(id: string): Nullable<CollaborationEntity>;
|
15
15
|
getCollabEntity$(id: string): Observable<CollaborationEntity>;
|
16
|
+
readyForCollab(id: string): Promise<void>;
|
16
17
|
private _init;
|
17
18
|
/**
|
18
19
|
* Start collaboration on a document.
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { FWorkbook } from '@univerjs/sheets/facade';
|
2
|
+
import { SnapshotService } from '@univerjs-pro/collaboration';
|
3
|
+
import { FBase } from '@univerjs/core';
|
4
|
+
import { CollaborationController } from '../controllers/collaboration/collaboration.controller';
|
5
|
+
export declare class FCollaboration extends FBase {
|
6
|
+
private readonly _handler;
|
7
|
+
private readonly _snapshotService;
|
8
|
+
private readonly _collaborationController;
|
9
|
+
constructor(_handler: {
|
10
|
+
getUniverSheet: (id: string) => FWorkbook | null;
|
11
|
+
}, _snapshotService: SnapshotService, _collaborationController: CollaborationController);
|
12
|
+
loadSheet(unitId: string): Promise<FWorkbook | null>;
|
13
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { FUniver } from '@univerjs/core';
|
2
|
+
import { FCollaboration } from './f-collaboration';
|
3
|
+
export interface IFUniverCollaborationClientMixin {
|
4
|
+
getCollaboration(): FCollaboration;
|
5
|
+
}
|
6
|
+
export declare class FUniverCollaborationClientMixin extends FUniver implements IFUniverCollaborationClientMixin {
|
7
|
+
getCollaboration(): FCollaboration;
|
8
|
+
}
|
9
|
+
declare module '@univerjs/core' {
|
10
|
+
interface FUniver extends IFUniverCollaborationClientMixin {
|
11
|
+
}
|
12
|
+
}
|
package/lib/types/index.d.ts
CHANGED
@@ -36,3 +36,4 @@ export { SheetTransformSelectionsService } from './services/range-selection/shee
|
|
36
36
|
export { CollaborativeUndoRedoService } from './services/undoredo/collaborative-undoredo.service';
|
37
37
|
export { DEFAULT_COLLAB_WEB_SOCKET_URL } from './config/config';
|
38
38
|
export { getLocalCacheKey, ILocalCacheService, type IUnitCacheData } from './services/local-cache/local-cache.service';
|
39
|
+
export { INetworkConditionService } from './services/network-condition/network-condition.service';
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { IDisposable, Nullable, IConfigService, ILogService, LocaleService, RxDisposable } from '@univerjs/core';
|
2
1
|
import { ICollaborationEvent } from '@univerjs-pro/collaboration';
|
2
|
+
import { IDisposable, Nullable, IConfigService, ILogService, LocaleService, RxDisposable } from '@univerjs/core';
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import { ICollaborationSocket } from '../socket/collaboration-socket.service';
|
5
5
|
import { ITelemetryService } from '@univerjs/telemetry';
|
6
|
+
import { CollaborationUIEventService } from '../collaboration-ui-event/collaboration-ui-event';
|
6
7
|
import { CommentService } from '../comment/comment.service';
|
7
8
|
import { MemberService } from '../member/member.service';
|
8
|
-
import { CollaborationUIEventService } from '../collaboration-ui-event/collaboration-ui-event';
|
9
9
|
export declare enum SessionStatus {
|
10
10
|
IDLE = 0,
|
11
11
|
JOINING = 1,
|
@@ -1,20 +1,21 @@
|
|
1
|
-
import { Nullable, Disposable, IConfigService, ILogService, Injector
|
1
|
+
import { Nullable, Disposable, IConfigService, ILogService, Injector } from '@univerjs/core';
|
2
2
|
import { ICollaborationSocket, ICollaborationSocketService } from '../socket/collaboration-socket.service';
|
3
3
|
import { HTTPService } from '@univerjs/network';
|
4
|
-
import { CollaborationSession, SessionStatus } from './collaboration-session';
|
5
4
|
import { CollaborationUIEventService } from '../collaboration-ui-event/collaboration-ui-event';
|
5
|
+
import { INetworkConditionService } from '../network-condition/network-condition.service';
|
6
|
+
import { CollaborationSession, SessionStatus } from './collaboration-session';
|
6
7
|
/**
|
7
8
|
* This service provide collaboration sessions to univer instances. A collaboration session
|
8
9
|
* may be used by different controllers of different features.
|
9
10
|
*/
|
10
11
|
export declare class CollaborationSessionService extends Disposable {
|
11
12
|
private readonly _injector;
|
12
|
-
private readonly _localeService;
|
13
13
|
private readonly _logService;
|
14
14
|
private readonly _configService;
|
15
15
|
private readonly _socketService;
|
16
16
|
private readonly _httpService;
|
17
17
|
private readonly _collaborationUIEventService;
|
18
|
+
private readonly _networkConditionService?;
|
18
19
|
/**
|
19
20
|
* Socket for collaboration sessions. Session are by unitID but the socket is share by collaboration sessions.
|
20
21
|
*/
|
@@ -28,8 +29,8 @@ export declare class CollaborationSessionService extends Disposable {
|
|
28
29
|
private _socketReady;
|
29
30
|
private _retryConnectingTimer;
|
30
31
|
private _retryCount;
|
31
|
-
constructor(_injector: Injector,
|
32
|
-
private
|
32
|
+
constructor(_injector: Injector, _logService: ILogService, _configService: IConfigService, _socketService: ICollaborationSocketService, _httpService: HTTPService, _collaborationUIEventService: CollaborationUIEventService, _networkConditionService?: INetworkConditionService | undefined);
|
33
|
+
private _listenToNetworkCondition;
|
33
34
|
dispose(): void;
|
34
35
|
/**
|
35
36
|
* Require a collaboration session.
|
@@ -59,10 +60,8 @@ export declare class CollaborationSessionService extends Disposable {
|
|
59
60
|
*/
|
60
61
|
private _tryEnsureSocket;
|
61
62
|
private _onConnectionOpen;
|
62
|
-
private _listenToOfflineEvent;
|
63
63
|
private _onOffline;
|
64
64
|
private _onConnectionFailed;
|
65
|
-
private _listenToOnlineEvent;
|
66
65
|
private _tryReconnect;
|
67
66
|
private _onMessage;
|
68
67
|
private _sendHeartbeatTimer;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ICombRequestEvent, ICombResponseEvent, IFetchingMissEvent, ISubmitChangesetEvent, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
2
|
-
import { Nullable, Disposable, IConfigService, ILogService } from '@univerjs/core';
|
3
|
-
import { ISocket, HTTPService
|
2
|
+
import { Nullable, Disposable, IConfigService, ILogService, Injector } from '@univerjs/core';
|
3
|
+
import { ISocket, HTTPService } from '@univerjs/network';
|
4
4
|
import { IChangeset } from '@univerjs/protocol';
|
5
5
|
import { Observable } from 'rxjs';
|
6
6
|
export interface ICollaborationSocket extends Pick<ISocket, 'open$' | 'error$' | 'close$'> {
|
@@ -17,12 +17,12 @@ export interface ICollaborationSocketService {
|
|
17
17
|
}
|
18
18
|
export declare const ICollaborationSocketService: import('@wendellhu/redi').IdentifierDecorator<ICollaborationSocketService>;
|
19
19
|
export declare class CollaborationSocketService extends Disposable implements ICollaborationSocketService {
|
20
|
+
protected readonly _injector: Injector;
|
20
21
|
protected readonly _http: HTTPService;
|
21
|
-
protected readonly _ws: WebSocketService;
|
22
22
|
protected readonly _configService: IConfigService;
|
23
23
|
protected readonly _logService: ILogService;
|
24
24
|
protected readonly _snapshotServerService: ISnapshotServerService;
|
25
|
-
constructor(
|
25
|
+
constructor(_injector: Injector, _http: HTTPService, _configService: IConfigService, _logService: ILogService, _snapshotServerService: ISnapshotServerService);
|
26
26
|
/**
|
27
27
|
* Create a socket that would connect to the remote collaboration server. It would throw an error when the socket cannot be created.
|
28
28
|
*
|