@univerjs-pro/collaboration-client 0.5.1-nightly.202412031606 → 0.5.1-nightly.202412051606
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 -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/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/index.css +0 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +20 -18
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +17 -14
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -0
- package/lib/types/index.d.ts +11 -11
- package/lib/types/plugin.d.ts +1 -6
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +3 -4
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -3
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +19 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +23 -0
- package/lib/types/services/image-remote/image-io.service.d.ts +1 -1
- package/lib/types/services/local-cache/local-cache.service.d.ts +7 -23
- package/lib/types/services/permission/permission.service.d.ts +8 -3
- package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +0 -24
- 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 +8 -17
- package/lib/types/controllers/clipboard/docs/image/image-paste.controller.d.ts +0 -9
- package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +0 -23
- package/lib/types/controllers/collab-cursor/__tests__/serialize-text-ranges.spec.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/__tests__/sheet-collab-cursor.controller.spec.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +0 -22
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +0 -38
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +0 -24
- package/lib/types/controllers/collab-cursor/serialize-text-ranges.d.ts +0 -3
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +0 -39
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/controllers/collab-status/collab-status.controller.d.ts +0 -18
- package/lib/types/controllers/collaboration/__tests__/collaboration.controller.spec.d.ts +0 -4
- package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -0
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +0 -58
- package/lib/types/controllers/data-loader/__tests__/data-loader.controller.spec.d.ts +0 -1
- package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -22
- package/lib/types/models/cursor.d.ts +0 -30
- package/lib/types/services/color-assign/color-assign.service.d.ts +0 -10
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +0 -13
- package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +0 -12
- package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +0 -13
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +0 -8
- package/lib/types/services/url/url.service.d.ts +0 -12
- package/lib/types/services/url/web-url.service.d.ts +0 -10
- package/lib/types/views/components/CollabStatus.d.ts +0 -10
- package/lib/types/views/components/CollabStatus.stories.d.ts +0 -8
- package/lib/types/views/shapes/doc-collab-cursor.d.ts +0 -27
- package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +0 -27
- package/lib/types/views/shapes/text-bubble.shape.d.ts +0 -19
package/lib/umd/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x3af3(_0x1b2331,_0x223e01){var _0x4eb3a4=_0x4eb3();return _0x3af3=function(_0x3af3f3,_0x4a3344){_0x3af3f3=_0x3af3f3-0xcf;var _0x1378e1=_0x4eb3a4[_0x3af3f3];return _0x1378e1;},_0x3af3(_0x1b2331,_0x223e01);}(function(_0x293793,_0x1b315b){var _0x551fc0=_0x3af3,_0x23c1c5=_0x293793();while(!![]){try{var _0x1dd963=-parseInt(_0x551fc0(0xd0))/0x1*(parseInt(_0x551fc0(0xe2))/0x2)+-parseInt(_0x551fc0(0xe3))/0x3*(parseInt(_0x551fc0(0xdd))/0x4)+-parseInt(_0x551fc0(0xde))/0x5+parseInt(_0x551fc0(0xeb))/0x6+-parseInt(_0x551fc0(0xe6))/0x7+parseInt(_0x551fc0(0xe8))/0x8*(parseInt(_0x551fc0(0xea))/0x9)+-parseInt(_0x551fc0(0xdf))/0xa*(-parseInt(_0x551fc0(0xed))/0xb);if(_0x1dd963===_0x1b315b)break;else _0x23c1c5['push'](_0x23c1c5['shift']());}catch(_0x3093e7){_0x23c1c5['push'](_0x23c1c5['shift']());}}}(_0x4eb3,0x88359),function(_0xa91ff1,_0x45f07c){var _0x594ac5=_0x3af3;typeof exports==_0x594ac5(0xe1)&&typeof module<'u'?module[_0x594ac5(0xe4)]=_0x45f07c():typeof define=='function'&&define[_0x594ac5(0xd5)]?define(_0x45f07c):(_0xa91ff1=typeof globalThis<'u'?globalThis:_0xa91ff1||self,_0xa91ff1['UniverProCollaborationClientEnUS']=_0x45f07c());}(this,function(){'use strict';var _0x618c63=_0x3af3;return{'collab-client':{'tooltip':{'reconnect':_0x618c63(0xd8)}},'collabStatus':{'fetchMiss':_0x618c63(0xdb),'conflict':'Edit\x20conflicts','notCollab':_0x618c63(0xda),'synced':_0x618c63(0xd1),'syncing':_0x618c63(0xe9),'offline':_0x618c63(0xd6)},'session':{'connection-failed':_0x618c63(0xef),'will-retry':_0x618c63(0xe7),'room-full':'The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','join-failed':_0x618c63(0xd7),'room-not-exists':_0x618c63(0xd9),'room-permission-denied':_0x618c63(0xd2),'room-cnt-exceeds':_0x618c63(0xdc),'collaboration-timeout':_0x618c63(0xd4)},'conflict':{'title':_0x618c63(0xec),'content':_0x618c63(0xe5)},'permission':{'title':_0x618c63(0xe0),'content':_0x618c63(0xee)},'collaboration':{'single-unit':{'warning':_0x618c63(0xcf)},'closeRoom':_0x618c63(0xd3)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};}));function _0x4eb3(){var _0x3f50ec=['Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Click\x20to\x20Reconnect','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Local\x20file','Syncing\x20server\x20data...','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','15668vPIYzJ','3134880Dmzvqy','190nTxTFC','Authentication\x20Error','object','3518QKSsib','3kZqeKP','exports','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.','19957QnGkcN','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','16wnVFtK','Syncing...','1591362jScXJI','6502980EYEwvc','Collaboration\x20Conflict','364837LuyrnN','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.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','498qHgZSL','Synced','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','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.','amd','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'];_0x4eb3=function(){return _0x3f50ec;};return _0x4eb3();}
|
package/lib/umd/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x17a8(){var _0x31e1af=['ظرفیت\x20همکاری\x20در\x20این\x20سند\x20پر\x20شده\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20لطفاً\x20بعداً\x20دوباره\x20امتحان\x20کنید.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','همگام\x20سازی','پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','amd','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','1307336NbWJVP','exports','ورود\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شد.','3028ulIUnl','302004AKPGgh','672yFKvsv','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمیدهد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','42812HLWYAN','خطای\x20اعتبارسنجی','287991xiIGeX','2875615TnztLh','شما\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شد.','363WwElSf','UniverProCollaborationClientFaIR','1906002gIDnPA','330VohhnU'];_0x17a8=function(){return _0x31e1af;};return _0x17a8();}function _0x3ed2(_0x431d3b,_0x29e3fe){var _0x17a88f=_0x17a8();return _0x3ed2=function(_0x3ed2e4,_0x2559b9){_0x3ed2e4=_0x3ed2e4-0x173;var _0x396571=_0x17a88f[_0x3ed2e4];return _0x396571;},_0x3ed2(_0x431d3b,_0x29e3fe);}(function(_0x3b963f,_0x334fb9){var _0x5f0756=_0x3ed2,_0x2ccb7c=_0x3b963f();while(!![]){try{var _0x28aa7b=-parseInt(_0x5f0756(0x184))/0x1*(-parseInt(_0x5f0756(0x178))/0x2)+parseInt(_0x5f0756(0x17e))/0x3+-parseInt(_0x5f0756(0x174))/0x4+parseInt(_0x5f0756(0x17f))/0x5+parseInt(_0x5f0756(0x186))/0x6+-parseInt(_0x5f0756(0x17c))/0x7*(-parseInt(_0x5f0756(0x17a))/0x8)+parseInt(_0x5f0756(0x179))/0x9*(-parseInt(_0x5f0756(0x187))/0xa);if(_0x28aa7b===_0x334fb9)break;else _0x2ccb7c['push'](_0x2ccb7c['shift']());}catch(_0x2d2f9e){_0x2ccb7c['push'](_0x2ccb7c['shift']());}}}(_0x17a8,0x96dcb),function(_0x13a3e6,_0x5c2626){var _0x490955=_0x3ed2;typeof exports=='object'&&typeof module<'u'?module[_0x490955(0x175)]=_0x5c2626():typeof define=='function'&&define[_0x490955(0x18e)]?define(_0x5c2626):(_0x13a3e6=typeof globalThis<'u'?globalThis:_0x13a3e6||self,_0x13a3e6[_0x490955(0x185)]=_0x5c2626());}(this,function(){'use strict';var _0x511729=_0x3ed2;return{'collab-client':{'tooltip':{'reconnect':_0x511729(0x18f)}},'collabStatus':{'fetchMiss':_0x511729(0x18b),'conflict':_0x511729(0x181),'notCollab':'پرونده\x20محلی','synced':_0x511729(0x18c),'syncing':_0x511729(0x182),'offline':_0x511729(0x173)},'session':{'connection-failed':'اتصال\x20ناموفق\x20بود،\x20لطفاً\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','will-retry':'اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','room-full':_0x511729(0x188),'join-failed':_0x511729(0x189),'room-not-exists':_0x511729(0x18d),'room-permission-denied':_0x511729(0x183),'room-cnt-exceeds':_0x511729(0x177),'collaboration-timeout':_0x511729(0x17b)},'conflict':{'title':'تداخل\x20همکاری','content':_0x511729(0x18a)},'permission':{'title':_0x511729(0x17d),'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':_0x511729(0x180)},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':_0x511729(0x176)}};}));
|
package/lib/umd/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x4fc3(_0x4e261e,_0x55d946){var _0x25c3d2=_0x25c3();return _0x4fc3=function(_0x4fc3b3,_0x15fbd9){_0x4fc3b3=_0x4fc3b3-0x158;var _0x14e03b=_0x25c3d2[_0x4fc3b3];return _0x14e03b;},_0x4fc3(_0x4e261e,_0x55d946);}function _0x25c3(){var _0x5c5846=['Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','UniverProCollaborationClientFrFR','exports','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','1444155thonof','Collaboration\x20Conflict','1700164genaJO','792395kBHKyd','73938HOMRbS','16rgQLXz','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.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','52YbZYUc','Syncing...','Syncing\x20server\x20data...','Click\x20to\x20Reconnect','function','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','1843793UQHKwK','Authentication\x20Error','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','18GLdwGD','780426HsfhYj','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','25175710HsXmPC','amd','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.'];_0x25c3=function(){return _0x5c5846;};return _0x25c3();}(function(_0x421cb4,_0x485f73){var _0x462054=_0x4fc3,_0x82480b=_0x421cb4();while(!![]){try{var _0x3ca052=-parseInt(_0x462054(0x16e))/0x1+-parseInt(_0x462054(0x175))/0x2*(parseInt(_0x462054(0x16f))/0x3)+parseInt(_0x462054(0x16d))/0x4+-parseInt(_0x462054(0x16b))/0x5+-parseInt(_0x462054(0x160))/0x6*(parseInt(_0x462054(0x15d))/0x7)+parseInt(_0x462054(0x170))/0x8*(parseInt(_0x462054(0x161))/0x9)+parseInt(_0x462054(0x163))/0xa;if(_0x3ca052===_0x485f73)break;else _0x82480b['push'](_0x82480b['shift']());}catch(_0x3bf757){_0x82480b['push'](_0x82480b['shift']());}}}(_0x25c3,0x936ad),function(_0x510e7e,_0x5945ce){var _0x117837=_0x4fc3;typeof exports=='object'&&typeof module<'u'?module[_0x117837(0x169)]=_0x5945ce():typeof define==_0x117837(0x15a)&&define[_0x117837(0x164)]?define(_0x5945ce):(_0x510e7e=typeof globalThis<'u'?globalThis:_0x510e7e||self,_0x510e7e[_0x117837(0x168)]=_0x5945ce());}(this,function(){'use strict';var _0x206dbc=_0x4fc3;return{'collab-client':{'tooltip':{'reconnect':_0x206dbc(0x159)}},'collabStatus':{'fetchMiss':_0x206dbc(0x158),'conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':'Synced','syncing':_0x206dbc(0x176),'offline':_0x206dbc(0x15c)},'session':{'connection-failed':_0x206dbc(0x172),'will-retry':_0x206dbc(0x167),'room-full':'The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','join-failed':_0x206dbc(0x166),'room-not-exists':'Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-permission-denied':_0x206dbc(0x165),'room-cnt-exceeds':_0x206dbc(0x15b),'collaboration-timeout':_0x206dbc(0x16a)},'conflict':{'title':_0x206dbc(0x16c),'content':_0x206dbc(0x171)},'permission':{'title':_0x206dbc(0x15e),'content':_0x206dbc(0x174)},'collaboration':{'single-unit':{'warning':_0x206dbc(0x162)},'closeRoom':_0x206dbc(0x173)},'auth':{'needGotoLoginAlert':_0x206dbc(0x15f)}};}));
|
package/lib/umd/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x50ed(_0x1eda4e,_0x5c3d02){var _0x5c283c=_0x5c28();return _0x50ed=function(_0x50edec,_0xa27dd){_0x50edec=_0x50edec-0x1a5;var _0x837129=_0x5c283c[_0x50edec];return _0x837129;},_0x50ed(_0x1eda4e,_0x5c3d02);}(function(_0x5f436e,_0x458bf4){var _0x246b62=_0x50ed,_0x22725d=_0x5f436e();while(!![]){try{var _0x51d64a=parseInt(_0x246b62(0x1bc))/0x1*(parseInt(_0x246b62(0x1ac))/0x2)+-parseInt(_0x246b62(0x1b9))/0x3+parseInt(_0x246b62(0x1ae))/0x4+-parseInt(_0x246b62(0x1a7))/0x5*(-parseInt(_0x246b62(0x1ab))/0x6)+-parseInt(_0x246b62(0x1b2))/0x7*(-parseInt(_0x246b62(0x1c1))/0x8)+parseInt(_0x246b62(0x1b8))/0x9+parseInt(_0x246b62(0x1bb))/0xa*(-parseInt(_0x246b62(0x1a5))/0xb);if(_0x51d64a===_0x458bf4)break;else _0x22725d['push'](_0x22725d['shift']());}catch(_0x907222){_0x22725d['push'](_0x22725d['shift']());}}}(_0x5c28,0xed634),function(_0x269b98,_0x168aae){var _0x5ca4be=_0x50ed;typeof exports=='object'&&typeof module<'u'?module[_0x5ca4be(0x1ba)]=_0x168aae():typeof define==_0x5ca4be(0x1b6)&&define['amd']?define(_0x168aae):(_0x269b98=typeof globalThis<'u'?globalThis:_0x269b98||self,_0x269b98[_0x5ca4be(0x1b1)]=_0x168aae());}(this,function(){'use strict';var _0x35a1d2=_0x50ed;return{'collab-client':{'tooltip':{'reconnect':_0x35a1d2(0x1a9)}},'collabStatus':{'fetchMiss':_0x35a1d2(0x1be),'conflict':_0x35a1d2(0x1a8),'notCollab':'Local\x20file','synced':'Synced','syncing':_0x35a1d2(0x1b5),'offline':_0x35a1d2(0x1aa)},'session':{'connection-failed':'Connection\x20failed.\x20Please\x20check\x20your\x20network.','will-retry':_0x35a1d2(0x1b0),'room-full':'The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','join-failed':_0x35a1d2(0x1b7),'room-not-exists':_0x35a1d2(0x1bf),'room-permission-denied':_0x35a1d2(0x1c0),'room-cnt-exceeds':'Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','collaboration-timeout':_0x35a1d2(0x1af)},'conflict':{'title':_0x35a1d2(0x1bd),'content':_0x35a1d2(0x1b3)},'permission':{'title':_0x35a1d2(0x1a6),'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':_0x35a1d2(0x1b4)},'closeRoom':_0x35a1d2(0x1ad)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}};}));function _0x5c28(){var _0x4070d1=['93747jtaNAK','Collaboration\x20Conflict','Syncing\x20server\x20data...','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','160CoJXwu','19589141AZYixK','Authentication\x20Error','1756855JnpfRg','Edit\x20conflicts','Click\x20to\x20Reconnect','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','6YiKXVl','14NbFPIT','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','5500636GSQuNK','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','UniverProCollaborationClientRuRU','211862ZTuqSq','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.','Syncing...','function','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','6066630pjqvNU','2726934zjnMfz','exports','10ZliGcg'];_0x5c28=function(){return _0x4070d1;};return _0x5c28();}
|
package/lib/umd/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x762a(){var _0x1c1dbe=['The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Syncing...','2794148BMJGRz','amd','Click\x20to\x20Reconnect','UniverProCollaborationClientViVN','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','Authentication\x20Error','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','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.','310815YOAemc','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','3397314bRtFxB','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','482691ymsWKA','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','4PutvrY','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','10mQZGIx','Local\x20file','3675355krwkPL','Syncing\x20server\x20data...','262ShFeaY','object','Edit\x20conflicts','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Synced','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','8922768YarTGB','5024cxPttd','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.'];_0x762a=function(){return _0x1c1dbe;};return _0x762a();}function _0x5915(_0x34711f,_0x3b3636){var _0x762aef=_0x762a();return _0x5915=function(_0x5915b6,_0x5e2234){_0x5915b6=_0x5915b6-0x193;var _0x5ee3b5=_0x762aef[_0x5915b6];return _0x5ee3b5;},_0x5915(_0x34711f,_0x3b3636);}(function(_0x349972,_0x41c212){var _0x517ccb=_0x5915,_0x1d8d3b=_0x349972();while(!![]){try{var _0x3f4c63=-parseInt(_0x517ccb(0x19e))/0x1*(-parseInt(_0x517ccb(0x1a5))/0x2)+-parseInt(_0x517ccb(0x196))/0x3*(-parseInt(_0x517ccb(0x198))/0x4)+-parseInt(_0x517ccb(0x19c))/0x5+-parseInt(_0x517ccb(0x194))/0x6+parseInt(_0x517ccb(0x1aa))/0x7+parseInt(_0x517ccb(0x1a4))/0x8+parseInt(_0x517ccb(0x1b2))/0x9*(-parseInt(_0x517ccb(0x19a))/0xa);if(_0x3f4c63===_0x41c212)break;else _0x1d8d3b['push'](_0x1d8d3b['shift']());}catch(_0x4e3e5c){_0x1d8d3b['push'](_0x1d8d3b['shift']());}}}(_0x762a,0xf395e),function(_0xfb9f06,_0x27727c){var _0xa20534=_0x5915;typeof exports==_0xa20534(0x19f)&&typeof module<'u'?module['exports']=_0x27727c():typeof define=='function'&&define[_0xa20534(0x1ab)]?define(_0x27727c):(_0xfb9f06=typeof globalThis<'u'?globalThis:_0xfb9f06||self,_0xfb9f06[_0xa20534(0x1ad)]=_0x27727c());}(this,function(){'use strict';var _0x3d3470=_0x5915;return{'collab-client':{'tooltip':{'reconnect':_0x3d3470(0x1ac)}},'collabStatus':{'fetchMiss':_0x3d3470(0x19d),'conflict':_0x3d3470(0x1a0),'notCollab':_0x3d3470(0x19b),'synced':_0x3d3470(0x1a2),'syncing':_0x3d3470(0x1a9),'offline':_0x3d3470(0x1b0)},'session':{'connection-failed':'Connection\x20failed.\x20Please\x20check\x20your\x20network.','will-retry':_0x3d3470(0x1ae),'room-full':_0x3d3470(0x1a6),'join-failed':_0x3d3470(0x1a7),'room-not-exists':_0x3d3470(0x195),'room-permission-denied':_0x3d3470(0x193),'room-cnt-exceeds':_0x3d3470(0x1a3),'collaboration-timeout':_0x3d3470(0x1a8)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x3d3470(0x1b1)},'permission':{'title':_0x3d3470(0x1af),'content':_0x3d3470(0x199)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x3d3470(0x1a1)},'auth':{'needGotoLoginAlert':_0x3d3470(0x197)}};}));
|
package/lib/umd/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
(function(_0x318d26,_0x250069){var _0x3d51ba=_0x57ff,_0x1b961b=_0x318d26();while(!![]){try{var _0x1b4edb=-parseInt(_0x3d51ba(0x14b))/0x1+parseInt(_0x3d51ba(0x145))/0x2*(-parseInt(_0x3d51ba(0x13c))/0x3)+-parseInt(_0x3d51ba(0x141))/0x4+parseInt(_0x3d51ba(0x142))/0x5+parseInt(_0x3d51ba(0x139))/0x6+parseInt(_0x3d51ba(0x14c))/0x7+-parseInt(_0x3d51ba(0x151))/0x8*(parseInt(_0x3d51ba(0x136))/0x9);if(_0x1b4edb===_0x250069)break;else _0x1b961b['push'](_0x1b961b['shift']());}catch(_0x2d1990){_0x1b961b['push'](_0x1b961b['shift']());}}}(_0x5197,0x35f18),function(_0x551979,_0x492232){var _0x443d86=_0x57ff;typeof exports==_0x443d86(0x137)&&typeof module<'u'?module[_0x443d86(0x14f)]=_0x492232():typeof define==_0x443d86(0x147)&&define[_0x443d86(0x153)]?define(_0x492232):(_0x551979=typeof globalThis<'u'?globalThis:_0x551979||self,_0x551979[_0x443d86(0x149)]=_0x492232());}(this,function(){'use strict';var _0x404665=_0x57ff;return{'collab-client':{'tooltip':{'reconnect':_0x404665(0x13e)}},'collabStatus':{'fetchMiss':_0x404665(0x140),'conflict':_0x404665(0x13b),'notCollab':_0x404665(0x14a),'synced':_0x404665(0x155),'syncing':_0x404665(0x143),'offline':'已离线,编辑将在本地缓存'},'session':{'connection-failed':_0x404665(0x14d),'will-retry':_0x404665(0x13d),'room-full':_0x404665(0x148),'join-failed':_0x404665(0x144),'room-not-exists':'加入协同失败,你的编辑将在本地缓存','room-permission-denied':_0x404665(0x14e),'room-cnt-exceeds':_0x404665(0x138),'collaboration-timeout':_0x404665(0x154)},'conflict':{'title':'协同冲突','content':_0x404665(0x146)},'permission':{'title':_0x404665(0x13a),'content':'你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。'},'collaboration':{'single-unit':{'warning':_0x404665(0x13f)},'closeRoom':_0x404665(0x150)},'auth':{'needGotoLoginAlert':_0x404665(0x152)}};}));function _0x57ff(_0x3707d0,_0x7b0ecb){var _0x51970a=_0x5197();return _0x57ff=function(_0x57ff4b,_0x4f6c04){_0x57ff4b=_0x57ff4b-0x136;var _0x154386=_0x51970a[_0x57ff4b];return _0x154386;},_0x57ff(_0x3707d0,_0x7b0ecb);}function _0x5197(){var _0x17bcf3=['由于协同房间被关闭,编辑权限被收回。','48huBfQo','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','amd','服务器未响应,你的编辑将在本地缓存','已同步','420732nuwRap','object','协同文档数量超过限制,你的编辑将在本地缓存','1879980aoAzjZ','权限错误','编辑冲突','54fpnHOQ','连接失败,将在一会儿之后重试连接','点击重新连接','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','正在拉取服务端数据...','206032OAwYOj','1692365StvHXZ','保存中...','加入协同失败,请稍后重试,你的编辑将在本地缓存','15874fUnWkw','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','function','此文档协同人数已满,你的编辑将在本地缓存','UniverProCollaborationClientZhCN','本地文件','150342hBkVeB','1360471DssWfw','连接失败,请检查你的网络','没有协同权限,你的编辑将在本地缓存','exports'];_0x5197=function(){return _0x17bcf3;};return _0x5197();}
|
package/lib/umd/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
(function(_0x4abc75,_0x3ca5dd){var _0x30e349=_0x2e60,_0x28113a=_0x4abc75();while(!![]){try{var _0x297293=-parseInt(_0x30e349(0x14d))/0x1+-parseInt(_0x30e349(0x169))/0x2*(parseInt(_0x30e349(0x15f))/0x3)+parseInt(_0x30e349(0x14e))/0x4*(-parseInt(_0x30e349(0x167))/0x5)+-parseInt(_0x30e349(0x150))/0x6*(-parseInt(_0x30e349(0x151))/0x7)+parseInt(_0x30e349(0x158))/0x8+parseInt(_0x30e349(0x154))/0x9+-parseInt(_0x30e349(0x16b))/0xa*(-parseInt(_0x30e349(0x165))/0xb);if(_0x297293===_0x3ca5dd)break;else _0x28113a['push'](_0x28113a['shift']());}catch(_0x1886b5){_0x28113a['push'](_0x28113a['shift']());}}}(_0x1572,0xd9001),function(_0x4a10a6,_0x227f5c){var _0x440eea=_0x2e60;typeof exports==_0x440eea(0x153)&&typeof module<'u'?module['exports']=_0x227f5c():typeof define==_0x440eea(0x152)&&define[_0x440eea(0x162)]?define(_0x227f5c):(_0x4a10a6=typeof globalThis<'u'?globalThis:_0x4a10a6||self,_0x4a10a6['UniverProCollaborationClientZhTW']=_0x227f5c());}(this,function(){'use strict';var _0x3a3fdf=_0x2e60;return{'collab-client':{'tooltip':{'reconnect':_0x3a3fdf(0x15d)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x3a3fdf(0x168),'notCollab':_0x3a3fdf(0x156),'synced':_0x3a3fdf(0x161),'syncing':_0x3a3fdf(0x14f),'offline':_0x3a3fdf(0x15c)},'session':{'connection-failed':_0x3a3fdf(0x15a),'will-retry':_0x3a3fdf(0x163),'room-full':_0x3a3fdf(0x14b),'join-failed':_0x3a3fdf(0x14c),'room-not-exists':_0x3a3fdf(0x155),'room-permission-denied':_0x3a3fdf(0x157),'room-cnt-exceeds':_0x3a3fdf(0x160),'collaboration-timeout':_0x3a3fdf(0x164)},'conflict':{'title':_0x3a3fdf(0x16a),'content':_0x3a3fdf(0x15e)},'permission':{'title':'Authentication\x20Error','content':_0x3a3fdf(0x159)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x3a3fdf(0x166)},'auth':{'needGotoLoginAlert':_0x3a3fdf(0x15b)}};}));function _0x2e60(_0x4e0bdd,_0x2162cc){var _0x15725b=_0x1572();return _0x2e60=function(_0x2e607e,_0x58cf9c){_0x2e607e=_0x2e607e-0x14b;var _0x3d2982=_0x15725b[_0x2e607e];return _0x3d2982;},_0x2e60(_0x4e0bdd,_0x2162cc);}function _0x1572(){var _0x5c3b07=['Collaboration\x20Conflict','10bDfIsF','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','1588702VphLym','1284852pZPAcs','Syncing...','48UDeDBj','1256941WFYXeK','function','object','7672194pkTIdW','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Local\x20file','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','14064296kZDjTG','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.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Click\x20to\x20Reconnect','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.','964719iCXchn','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Synced','amd','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','7477129npTiSf','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','25KDVbQT','Edit\x20conflicts','4EDCjKF'];_0x1572=function(){return _0x5c3b07;};return _0x1572();}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@univerjs-pro/collaboration-client",
|
3
|
-
"version": "0.5.1-nightly.
|
3
|
+
"version": "0.5.1-nightly.202412051606",
|
4
4
|
"private": false,
|
5
5
|
"description": "Univer Collaboration Client",
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
@@ -47,29 +47,20 @@
|
|
47
47
|
"lib"
|
48
48
|
],
|
49
49
|
"peerDependencies": {
|
50
|
-
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
|
51
50
|
"rxjs": ">=7.0.0"
|
52
51
|
},
|
53
52
|
"dependencies": {
|
54
|
-
"@univerjs/icons": "^0.2.8",
|
55
53
|
"clsx": "^2.1.1",
|
56
54
|
"crypto-js": "4.2.0",
|
57
55
|
"uuid": "^11.0.3",
|
58
|
-
"@univerjs-pro/collaboration": "0.5.1-nightly.
|
59
|
-
"@univerjs/core": "0.5.1-nightly.
|
60
|
-
"@univerjs/docs": "0.5.1-nightly.
|
61
|
-
"@univerjs/
|
62
|
-
"@univerjs/
|
63
|
-
"@univerjs/drawing": "0.5.1-nightly.202412031606",
|
64
|
-
"@univerjs/engine-formula": "0.5.1-nightly.202412031606",
|
65
|
-
"@univerjs/network": "0.5.1-nightly.202412031606",
|
66
|
-
"@univerjs/engine-render": "0.5.1-nightly.202412031606",
|
56
|
+
"@univerjs-pro/collaboration": "0.5.1-nightly.202412051606",
|
57
|
+
"@univerjs/core": "0.5.1-nightly.202412051606",
|
58
|
+
"@univerjs/docs": "0.5.1-nightly.202412051606",
|
59
|
+
"@univerjs/drawing": "0.5.1-nightly.202412051606",
|
60
|
+
"@univerjs/network": "0.5.1-nightly.202412051606",
|
67
61
|
"@univerjs/protocol": "0.1.39",
|
68
|
-
"@univerjs/
|
69
|
-
"@univerjs/
|
70
|
-
"@univerjs/sheets-ui": "0.5.1-nightly.202412031606",
|
71
|
-
"@univerjs/ui": "0.5.1-nightly.202412031606",
|
72
|
-
"@univerjs/telemetry": "0.5.1-nightly.202412031606"
|
62
|
+
"@univerjs/sheets": "0.5.1-nightly.202412051606",
|
63
|
+
"@univerjs/telemetry": "0.5.1-nightly.202412051606"
|
73
64
|
},
|
74
65
|
"devDependencies": {
|
75
66
|
"@types/crypto-js": "^4.2.2",
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { RxDisposable } from '@univerjs/core';
|
2
|
-
import { IDocClipboardService } from '@univerjs/docs-ui';
|
3
|
-
import { IImageIoService } from '@univerjs/drawing';
|
4
|
-
export declare class ImagePasteController extends RxDisposable {
|
5
|
-
private _docClipboardService;
|
6
|
-
private _imageIoService;
|
7
|
-
constructor(_docClipboardService: IDocClipboardService, _imageIoService: IImageIoService);
|
8
|
-
private _init;
|
9
|
-
}
|
package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
import { DocumentDataModel, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
2
|
-
import { DocumentSkeleton, IRender, IRenderContext, IRenderModule, DocumentViewModel, IRenderManagerService } from '@univerjs/engine-render';
|
3
|
-
import { Nullable } from 'vitest';
|
4
|
-
export declare class MockRenderManagerService implements Pick<IRenderManagerService, 'getRenderById'> {
|
5
|
-
private readonly _injector;
|
6
|
-
constructor(_injector: Injector);
|
7
|
-
getRenderById(_unitId: string): Nullable<IRender>;
|
8
|
-
}
|
9
|
-
export declare class MockDocSkeletonManagerService extends RxDisposable implements IRenderModule {
|
10
|
-
private readonly _context;
|
11
|
-
private readonly _univerInstanceService;
|
12
|
-
private _docViewModel;
|
13
|
-
private readonly _currentSkeleton$;
|
14
|
-
readonly currentSkeleton$: import('rxjs').Observable<Nullable<DocumentSkeleton>>;
|
15
|
-
private readonly _currentSkeletonBefore$;
|
16
|
-
readonly currentSkeletonBefore$: import('rxjs').Observable<Nullable<DocumentSkeleton>>;
|
17
|
-
constructor(_context: IRenderContext<DocumentDataModel>, _univerInstanceService: IUniverInstanceService);
|
18
|
-
dispose(): void;
|
19
|
-
private _update;
|
20
|
-
getSkeleton(): DocumentSkeleton;
|
21
|
-
getViewModel(): DocumentViewModel;
|
22
|
-
private _buildDocViewModel;
|
23
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
package/lib/types/controllers/collab-cursor/__tests__/sheet-collab-cursor.controller.spec.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { Observable } from 'rxjs';
|
2
|
-
import { IDocCollabCursor, ISheetCollabCursor } from '../../models/cursor';
|
3
|
-
import { Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
4
|
-
import { CollaborationSessionService } from '../../services/collaboration-session/collaboration-session.service';
|
5
|
-
/**
|
6
|
-
* This controller adds collaboration cursors to Univer. It works with `CollabCursorRenderController`.
|
7
|
-
*
|
8
|
-
* This controller is also responsible for managing online collaborators' data.
|
9
|
-
*/
|
10
|
-
export declare class CollabCursorController extends RxDisposable {
|
11
|
-
private readonly _univerInstanceService;
|
12
|
-
private readonly _injector;
|
13
|
-
private readonly _collabSessionService;
|
14
|
-
private readonly _entities;
|
15
|
-
private readonly _entityInit$;
|
16
|
-
constructor(_univerInstanceService: IUniverInstanceService, _injector: Injector, _collabSessionService: CollaborationSessionService);
|
17
|
-
dispose(): void;
|
18
|
-
getCollabCursors$(unitID: string): Observable<Map<string, ISheetCollabCursor> | Map<string, IDocCollabCursor>>;
|
19
|
-
private _init;
|
20
|
-
private _startSheetCollabCursor;
|
21
|
-
private _startDocCollabCursor;
|
22
|
-
}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import { ICollaborationUser, ITransformService } from '@univerjs-pro/collaboration';
|
2
|
-
import { IDocCollabCursor } from '../../models/cursor';
|
3
|
-
import { ICommandService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
4
|
-
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session';
|
5
|
-
import { ColorAssignService } from '../../services/color-assign/color-assign.service';
|
6
|
-
import { MemberService } from '../../services/member/member.service';
|
7
|
-
import { DocSyncEditingCollabCursorService } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
8
|
-
/**
|
9
|
-
* Each univer document instance would map to an `CollabCursorEntity` to handle collaborated editing events.
|
10
|
-
*/
|
11
|
-
export declare class DocCollabCursorEntity extends RxDisposable {
|
12
|
-
readonly unitID: string;
|
13
|
-
private readonly _session;
|
14
|
-
private readonly _injector;
|
15
|
-
private readonly _colorAssignService;
|
16
|
-
private readonly _memberService;
|
17
|
-
private readonly _syncEditingCollabCursorService;
|
18
|
-
private readonly _transformService;
|
19
|
-
private readonly _univerInstanceService;
|
20
|
-
private readonly _commandService;
|
21
|
-
private _online;
|
22
|
-
private _init;
|
23
|
-
/** Cursor info of the collaboration room members. The key would be the memberID. */
|
24
|
-
private _cursorInfo$;
|
25
|
-
cursorInfo$: import('rxjs').Observable<Map<string, IDocCollabCursor>>;
|
26
|
-
get cursorInfo(): Readonly<Map<string, IDocCollabCursor>>;
|
27
|
-
private _roomMembers$;
|
28
|
-
roomMembers$: import('rxjs').Observable<ICollaborationUser[]>;
|
29
|
-
get roomMembers(): Readonly<ICollaborationUser[]>;
|
30
|
-
constructor(unitID: string, _session: CollaborationSession, _injector: Injector, _colorAssignService: ColorAssignService, _memberService: MemberService, _syncEditingCollabCursorService: DocSyncEditingCollabCursorService, _transformService: ITransformService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService);
|
31
|
-
dispose(): void;
|
32
|
-
init(): void;
|
33
|
-
private _onCursorUpdate;
|
34
|
-
private _onCursorDelete;
|
35
|
-
private _updateLocalCursor;
|
36
|
-
private _toggleOnline;
|
37
|
-
private _toggleOffline;
|
38
|
-
}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { DocumentDataModel, ICommandService, RxDisposable, ThemeService } from '@univerjs/core';
|
2
|
-
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
3
|
-
import { DocSkeletonManagerService } from '@univerjs/docs';
|
4
|
-
import { CollabCursorController } from './collab-cursor.controller';
|
5
|
-
/**
|
6
|
-
* This controller works with `CollabCursorController` to render doc collaboration cursors.
|
7
|
-
*/
|
8
|
-
export declare class DocCollabCursorRenderController extends RxDisposable implements IRenderModule {
|
9
|
-
private readonly _context;
|
10
|
-
private readonly _docSkeletonManagerService;
|
11
|
-
private readonly _collabCursorController;
|
12
|
-
private readonly _commandService;
|
13
|
-
private readonly _themeService;
|
14
|
-
/** Cursors stored for different Workbooks. */
|
15
|
-
private _cursorShapes;
|
16
|
-
private _cursors;
|
17
|
-
constructor(_context: IRenderContext<DocumentDataModel>, _docSkeletonManagerService: DocSkeletonManagerService, _collabCursorController: CollabCursorController, _commandService: ICommandService, _themeService: ThemeService);
|
18
|
-
private _init;
|
19
|
-
private _updateCollabCursors;
|
20
|
-
private _refreshCollabCursors;
|
21
|
-
private _removeCollabCursors;
|
22
|
-
private _initCommandExecutedListener;
|
23
|
-
private _initResize;
|
24
|
-
}
|
@@ -1,39 +0,0 @@
|
|
1
|
-
import { ICollaborationUser } from '@univerjs-pro/collaboration';
|
2
|
-
import { ISheetCollabCursor } from '../../models/cursor';
|
3
|
-
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session';
|
4
|
-
import { ICommandService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
|
5
|
-
import { RefRangeService } from '@univerjs/sheets';
|
6
|
-
import { ColorAssignService } from '../../services/color-assign/color-assign.service';
|
7
|
-
import { MemberService } from '../../services/member/member.service';
|
8
|
-
/**
|
9
|
-
* Each univer document instance would map to an `CollabCursorEntity` to handle collaborated editing events.
|
10
|
-
*/
|
11
|
-
export declare class SheetCollabCursorEntity extends RxDisposable {
|
12
|
-
readonly unitID: string;
|
13
|
-
private readonly _session;
|
14
|
-
private readonly _injector;
|
15
|
-
private readonly _colorAssignService;
|
16
|
-
private readonly _memberService;
|
17
|
-
private readonly _univerInstanceService;
|
18
|
-
private readonly _commandService;
|
19
|
-
private _refRangeService;
|
20
|
-
private _online;
|
21
|
-
private _init;
|
22
|
-
/** Cursor info of the collaboration room members. The key would be the memberID. */
|
23
|
-
private _cursorInfo$;
|
24
|
-
cursorInfo$: import('rxjs').Observable<Map<string, ISheetCollabCursor>>;
|
25
|
-
get cursorInfo(): Readonly<Map<string, ISheetCollabCursor>>;
|
26
|
-
private _roomMembers$;
|
27
|
-
roomMembers$: import('rxjs').Observable<ICollaborationUser[]>;
|
28
|
-
get roomMembers(): Readonly<ICollaborationUser[]>;
|
29
|
-
constructor(unitID: string, _session: CollaborationSession, _injector: Injector, _colorAssignService: ColorAssignService, _memberService: MemberService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _refRangeService: RefRangeService);
|
30
|
-
dispose(): void;
|
31
|
-
init(): void;
|
32
|
-
private _onCursorUpdate;
|
33
|
-
private _onCursorDelete;
|
34
|
-
private _getMergeRange;
|
35
|
-
private _onRefRangeChange;
|
36
|
-
private _updateLocalCursor;
|
37
|
-
private _toggleOnline;
|
38
|
-
private _toggleOffline;
|
39
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { Workbook, RxDisposable, ThemeService } from '@univerjs/core';
|
2
|
-
import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
3
|
-
import { SheetSkeletonManagerService } from '@univerjs/sheets-ui';
|
4
|
-
import { CollabCursorController } from './collab-cursor.controller';
|
5
|
-
/**
|
6
|
-
* This controller works with `CollabCursorController` to render sheet collaboration cursors.
|
7
|
-
*/
|
8
|
-
export declare class SheetCollabCursorRenderController extends RxDisposable implements IRenderModule {
|
9
|
-
private readonly _context;
|
10
|
-
private readonly _sheetSkeletonManagerService;
|
11
|
-
private readonly _collabCursorController;
|
12
|
-
private readonly _themeService;
|
13
|
-
/** Cursors stored for different Workbooks. */
|
14
|
-
private _cursors;
|
15
|
-
private _lastPointer;
|
16
|
-
constructor(_context: IRenderContext<Workbook>, _sheetSkeletonManagerService: SheetSkeletonManagerService, _collabCursorController: CollabCursorController, _themeService: ThemeService);
|
17
|
-
private _init;
|
18
|
-
private _updateCollabCursors;
|
19
|
-
private _removeCollabCursors;
|
20
|
-
private _getSheetObject;
|
21
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Disposable, Injector, IUniverInstanceService } from '@univerjs/core';
|
2
|
-
import { IUIPartsService } from '@univerjs/ui';
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
4
|
-
import { CollaborationController } from '../collaboration/collaboration.controller';
|
5
|
-
import { CollaborationStatus } from '../collaboration/collaboration-state';
|
6
|
-
/**
|
7
|
-
* This controller is responsible for monitoring the collaboration status of the currently focused unit.
|
8
|
-
*/
|
9
|
-
export declare class DesktopCollaborationStatusDisplayController extends Disposable {
|
10
|
-
private readonly _univerInstanceService;
|
11
|
-
private readonly _uiPartsService;
|
12
|
-
private readonly _injector;
|
13
|
-
private readonly _collaborationController;
|
14
|
-
protected readonly _status$: BehaviorSubject<CollaborationStatus>;
|
15
|
-
constructor(_univerInstanceService: IUniverInstanceService, _uiPartsService: IUIPartsService, _injector: Injector, _collaborationController: CollaborationController);
|
16
|
-
private _initStatusListener;
|
17
|
-
protected _initStatusComponent(): void;
|
18
|
-
}
|
File without changes
|
@@ -1,58 +0,0 @@
|
|
1
|
-
import { IDisposable, ILocalStorageService, Nullable, ILogService } from '@univerjs/core';
|
2
|
-
import { IMessageOptions, IMessageProps } from '@univerjs/design';
|
3
|
-
import { HTTPResponse } from '@univerjs/network';
|
4
|
-
import { IBeforeCloseService, IMessageService, INotificationService } from '@univerjs/ui';
|
5
|
-
import { ICombResponseEvent } from '@univerjs-pro/collaboration';
|
6
|
-
import { ICollaborationSocket, ICollaborationSocketService } from '../../../services/socket/collaboration-socket.service';
|
7
|
-
import { Subject } from 'rxjs';
|
8
|
-
/**
|
9
|
-
* The handler object for a mocked socket connection. You can terminate, send messages / error through this object.
|
10
|
-
*/
|
11
|
-
export interface IMockCollabSessionSocketHandler extends ICollaborationSocket {
|
12
|
-
socket: ICollaborationSocket;
|
13
|
-
close$: Subject<CloseEvent>;
|
14
|
-
error$: Subject<Event>;
|
15
|
-
open$: Subject<Event>;
|
16
|
-
message$: Subject<ICombResponseEvent>;
|
17
|
-
}
|
18
|
-
/**
|
19
|
-
* This service provides a mocked
|
20
|
-
*/
|
21
|
-
export declare class MockCollaborationSocketService implements ICollaborationSocketService {
|
22
|
-
private readonly _logService;
|
23
|
-
private readonly _handlers;
|
24
|
-
constructor(_logService: ILogService);
|
25
|
-
createSocket(url: string): Nullable<ICollaborationSocket>;
|
26
|
-
/** Test scripts could get the session handler from this method to mock network events. */
|
27
|
-
getHandler(url: string): Nullable<IMockCollabSessionSocketHandler>;
|
28
|
-
}
|
29
|
-
export declare class MockBeforeCloseService implements IBeforeCloseService {
|
30
|
-
private _onCloseCallbacks;
|
31
|
-
private _beforeCloseCallbacks;
|
32
|
-
registerBeforeClose(callback: () => string | undefined): IDisposable;
|
33
|
-
registerOnClose(callback: () => void): IDisposable;
|
34
|
-
}
|
35
|
-
/**
|
36
|
-
* A mocked local storage service which use in-memory storage.
|
37
|
-
*/
|
38
|
-
export declare class MockLocalStorageService implements ILocalStorageService {
|
39
|
-
private readonly _inMemoryCache;
|
40
|
-
getItem<T>(key: string): Promise<T | null>;
|
41
|
-
setItem<T>(key: string, value: T): Promise<T>;
|
42
|
-
removeItem(_key: string): Promise<void>;
|
43
|
-
clear(): Promise<void>;
|
44
|
-
key(_index: number): Promise<string | null>;
|
45
|
-
keys(): Promise<string[]>;
|
46
|
-
iterate<T, U>(_iteratee: (value: T, key: string, iterationNumber: number) => U): Promise<U>;
|
47
|
-
}
|
48
|
-
export declare class MockMessageService implements IMessageService {
|
49
|
-
show(_options: IMessageOptions & Omit<IMessageProps, 'key'>): IDisposable;
|
50
|
-
setContainer(_container: HTMLElement): void;
|
51
|
-
getContainer(): HTMLElement;
|
52
|
-
}
|
53
|
-
export declare class MockNotificationService implements INotificationService {
|
54
|
-
show(): IDisposable;
|
55
|
-
}
|
56
|
-
export declare class MockHTTPService {
|
57
|
-
get(url: string): Promise<HTTPResponse<any>>;
|
58
|
-
}
|
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { ICommandService, ILogService, RxDisposable } from '@univerjs/core';
|
2
|
-
import { IRemoteInstanceService } from '@univerjs/rpc';
|
3
|
-
import { SnapshotService } from '@univerjs-pro/collaboration';
|
4
|
-
import { LocalCacheService } from '../../services/local-cache/local-cache.service';
|
5
|
-
import { IURLService } from '../../services/url/url.service';
|
6
|
-
/**
|
7
|
-
* This controller loads data when URL changes.
|
8
|
-
*/
|
9
|
-
export declare class DataLoaderController extends RxDisposable {
|
10
|
-
private _urlService;
|
11
|
-
private readonly _logService;
|
12
|
-
private readonly _commandService;
|
13
|
-
private readonly _localCacheService;
|
14
|
-
private readonly _snapshotService;
|
15
|
-
constructor(_urlService: IURLService, _logService: ILogService, _commandService: ICommandService, _localCacheService: LocalCacheService, _snapshotService: SnapshotService, remoteInstanceService?: IRemoteInstanceService);
|
16
|
-
private _init;
|
17
|
-
private _setupSubUnitSync;
|
18
|
-
private _updateURLWithCurrentState;
|
19
|
-
private _updateSubUnitFromURLParams;
|
20
|
-
private _loadSheet;
|
21
|
-
private _loadDoc;
|
22
|
-
}
|