@univerjs-pro/collaboration-client 0.5.1 → 0.5.2-nightly.202412291605
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/config/config.d.ts +7 -2
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +20 -18
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +18 -15
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +2 -0
- package/lib/types/facade/f-collaboration.d.ts +33 -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 +12 -12
- package/lib/types/plugin.d.ts +1 -6
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +4 -5
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +7 -8
- 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/member/member.service.d.ts +6 -0
- package/lib/types/services/network-condition/network-condition.service.d.ts +6 -0
- 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/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 +23 -21
- package/lib/index.css +0 -1
- 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(_0x39dfaa,_0x1a9ea9){var _0x375fbd=_0x1a52,_0x12c25d=_0x39dfaa();while(!![]){try{var _0x2158d3=-parseInt(_0x375fbd(0x14c))/0x1+-parseInt(_0x375fbd(0x160))/0x2+-parseInt(_0x375fbd(0x15c))/0x3+parseInt(_0x375fbd(0x152))/0x4*(parseInt(_0x375fbd(0x159))/0x5)+-parseInt(_0x375fbd(0x15e))/0x6+parseInt(_0x375fbd(0x167))/0x7*(parseInt(_0x375fbd(0x158))/0x8)+parseInt(_0x375fbd(0x157))/0x9;if(_0x2158d3===_0x1a9ea9)break;else _0x12c25d['push'](_0x12c25d['shift']());}catch(_0x107ea5){_0x12c25d['push'](_0x12c25d['shift']());}}}(_0x10e0,0x4bfa6),function(_0x1df1a8,_0x5defb3){var _0x22b807=_0x1a52;typeof exports=='object'&&typeof module<'u'?module[_0x22b807(0x165)]=_0x5defb3():typeof define==_0x22b807(0x151)&&define[_0x22b807(0x15d)]?define(_0x5defb3):(_0x1df1a8=typeof globalThis<'u'?globalThis:_0x1df1a8||self,_0x1df1a8['UniverProCollaborationClientEnUS']=_0x5defb3());}(this,function(){'use strict';var _0x27cfa0=_0x1a52;return{'collab-client':{'tooltip':{'reconnect':_0x27cfa0(0x150)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x27cfa0(0x14b),'notCollab':_0x27cfa0(0x162),'synced':_0x27cfa0(0x14f),'syncing':_0x27cfa0(0x15f),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x27cfa0(0x15a),'will-retry':_0x27cfa0(0x154),'room-full':_0x27cfa0(0x166),'join-failed':_0x27cfa0(0x161),'room-not-exists':'Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-permission-denied':_0x27cfa0(0x164),'room-cnt-exceeds':'Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','collaboration-timeout':_0x27cfa0(0x163)},'conflict':{'title':_0x27cfa0(0x153),'content':_0x27cfa0(0x14d)},'permission':{'title':_0x27cfa0(0x156),'content':_0x27cfa0(0x168)},'collaboration':{'single-unit':{'warning':_0x27cfa0(0x15b)},'closeRoom':_0x27cfa0(0x155)},'auth':{'needGotoLoginAlert':_0x27cfa0(0x14e)}};}));function _0x1a52(_0x2f75ea,_0x463630){var _0x10e014=_0x10e0();return _0x1a52=function(_0x1a529c,_0x32e5a9){_0x1a529c=_0x1a529c-0x14b;var _0x138352=_0x10e014[_0x1a529c];return _0x138352;},_0x1a52(_0x2f75ea,_0x463630);}function _0x10e0(){var _0x3ebf40=['exports','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','28SaCMgw','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Edit\x20conflicts','244448lbVmEF','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\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Synced','Click\x20to\x20Reconnect','function','224RSWbhG','Collaboration\x20Conflict','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Authentication\x20Error','5351463kXrkzl','432032LTglkH','35395WwaQHF','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.','92319HtHxXj','amd','2649642czfQrT','Syncing...','358026IvDabx','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.'];_0x10e0=function(){return _0x3ebf40;};return _0x10e0();}
|
package/lib/umd/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0xb209(){var _0x41463a=['2463655IXTuqL','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمیدهد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','ورود\x20شم\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','4zsqptO','تداخل\x20ویرایش','41719365RxXDpp','4023594iSyWfE','3529440zOnias','تداخل\x20همکاری','همگام\x20سازی','exports','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','UniverProCollaborationClientFaIR','1103606MZhhyO','222dCEByj','اتصال\x20ناموفق\x20بود،\x20لطفاً\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','object','2205560mLOTOx','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','164983kLPmfL','پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','پرونده\x20محلی'];_0xb209=function(){return _0x41463a;};return _0xb209();}function _0x504f(_0x4c65ef,_0x250981){var _0xb20987=_0xb209();return _0x504f=function(_0x504ffa,_0x17c567){_0x504ffa=_0x504ffa-0x1f1;var _0x2092e8=_0xb20987[_0x504ffa];return _0x2092e8;},_0x504f(_0x4c65ef,_0x250981);}(function(_0x35f187,_0xf77bae){var _0x3c381e=_0x504f,_0x42fb78=_0x35f187();while(!![]){try{var _0x21c2d6=parseInt(_0x3c381e(0x1f5))/0x1+parseInt(_0x3c381e(0x1fa))/0x2+parseInt(_0x3c381e(0x208))/0x3+parseInt(_0x3c381e(0x205))/0x4*(parseInt(_0x3c381e(0x201))/0x5)+parseInt(_0x3c381e(0x1f6))/0x6*(parseInt(_0x3c381e(0x1fd))/0x7)+parseInt(_0x3c381e(0x209))/0x8+-parseInt(_0x3c381e(0x207))/0x9;if(_0x21c2d6===_0xf77bae)break;else _0x42fb78['push'](_0x42fb78['shift']());}catch(_0x3fc6be){_0x42fb78['push'](_0x42fb78['shift']());}}}(_0xb209,0xaf4ef),function(_0x515806,_0x5d3cdb){var _0x248209=_0x504f;typeof exports==_0x248209(0x1f9)&&typeof module<'u'?module[_0x248209(0x1f2)]=_0x5d3cdb():typeof define=='function'&&define['amd']?define(_0x5d3cdb):(_0x515806=typeof globalThis<'u'?globalThis:_0x515806||self,_0x515806[_0x248209(0x1f4)]=_0x5d3cdb());}(this,function(){'use strict';var _0x1683b1=_0x504f;return{'collab-client':{'tooltip':{'reconnect':_0x1683b1(0x1ff)}},'collabStatus':{'fetchMiss':_0x1683b1(0x1fc),'conflict':_0x1683b1(0x206),'notCollab':_0x1683b1(0x200),'synced':_0x1683b1(0x1f1),'syncing':'در\x20حال\x20همگام\x20سازی...','offline':_0x1683b1(0x1f3)},'session':{'connection-failed':_0x1683b1(0x1f7),'will-retry':_0x1683b1(0x1f8),'room-full':'ظرفیت\x20همکاری\x20در\x20این\x20سند\x20پر\x20شده\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','join-failed':'پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20لطفاً\x20بعداً\x20دوباره\x20امتحان\x20کنید.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','room-not-exists':_0x1683b1(0x1fe),'room-permission-denied':'دسترسی\x20همکاری\x20وجود\x20ندارد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','room-cnt-exceeds':'تعداد\x20اسناد\x20همکاری\x20از\x20حد\x20مجاز\x20فراتر\x20رفته\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','collaboration-timeout':_0x1683b1(0x202)},'conflict':{'title':_0x1683b1(0x20a),'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':'خطای\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رفت.'},'collaboration':{'single-unit':{'warning':_0x1683b1(0x1fb)},'closeRoom':_0x1683b1(0x203)},'auth':{'needGotoLoginAlert':_0x1683b1(0x204)}};}));
|
package/lib/umd/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x2167(_0x3a7b3a,_0x302502){var _0x3dc408=_0x3dc4();return _0x2167=function(_0x21675c,_0x5f0c8f){_0x21675c=_0x21675c-0x10f;var _0x1add44=_0x3dc408[_0x21675c];return _0x1add44;},_0x2167(_0x3a7b3a,_0x302502);}function _0x3dc4(){var _0x3f5ef8=['Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','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.','Syncing...','250Ckpozk','1459TMKYaT','3238209jVEVwq','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','11552nsczJV','24sqeGYH','amd','Click\x20to\x20Reconnect','2023rZlnTw','25atwAxH','4059816IUmuxu','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','233991afyeyC','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','object','90OvnpEc','Collaboration\x20Conflict','Synced','33zqiybA','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','171249iGEKDw','UniverProCollaborationClientFrFR','Authentication\x20Error','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','1192938Gvreza','function','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.','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.'];_0x3dc4=function(){return _0x3f5ef8;};return _0x3dc4();}(function(_0x1c2dcc,_0x8a83a5){var _0x39009b=_0x2167,_0x718269=_0x1c2dcc();while(!![]){try{var _0x2ea88c=-parseInt(_0x39009b(0x113))/0x1*(-parseInt(_0x39009b(0x112))/0x2)+parseInt(_0x39009b(0x127))/0x3*(parseInt(_0x39009b(0x117))/0x4)+-parseInt(_0x39009b(0x11b))/0x5*(parseInt(_0x39009b(0x12b))/0x6)+parseInt(_0x39009b(0x11a))/0x7*(parseInt(_0x39009b(0x116))/0x8)+parseInt(_0x39009b(0x11e))/0x9*(parseInt(_0x39009b(0x121))/0xa)+-parseInt(_0x39009b(0x124))/0xb*(-parseInt(_0x39009b(0x11c))/0xc)+-parseInt(_0x39009b(0x114))/0xd;if(_0x2ea88c===_0x8a83a5)break;else _0x718269['push'](_0x718269['shift']());}catch(_0x5518c2){_0x718269['push'](_0x718269['shift']());}}}(_0x3dc4,0xe76d6),function(_0x43afc6,_0x4a2580){var _0x2c77cc=_0x2167;typeof exports==_0x2c77cc(0x120)&&typeof module<'u'?module['exports']=_0x4a2580():typeof define==_0x2c77cc(0x12c)&&define[_0x2c77cc(0x118)]?define(_0x4a2580):(_0x43afc6=typeof globalThis<'u'?globalThis:_0x43afc6||self,_0x43afc6[_0x2c77cc(0x128)]=_0x4a2580());}(this,function(){'use strict';var _0x47e6bc=_0x2167;return{'collab-client':{'tooltip':{'reconnect':_0x47e6bc(0x119)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':_0x47e6bc(0x123),'syncing':_0x47e6bc(0x111),'offline':_0x47e6bc(0x126)},'session':{'connection-failed':_0x47e6bc(0x110),'will-retry':'Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','room-full':_0x47e6bc(0x12a),'join-failed':_0x47e6bc(0x115),'room-not-exists':_0x47e6bc(0x11f),'room-permission-denied':_0x47e6bc(0x12e),'room-cnt-exceeds':'Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','collaboration-timeout':_0x47e6bc(0x125)},'conflict':{'title':_0x47e6bc(0x122),'content':_0x47e6bc(0x12d)},'permission':{'title':_0x47e6bc(0x129),'content':_0x47e6bc(0x10f)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x47e6bc(0x11d)},'auth':{'needGotoLoginAlert':_0x47e6bc(0x12f)}};}));
|
package/lib/umd/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
(function(_0x49a1a2,_0x2fefd5){var _0x5d1a4b=_0x5ce4,_0x5a6379=_0x49a1a2();while(!![]){try{var _0x35af23=parseInt(_0x5d1a4b(0x1cf))/0x1+-parseInt(_0x5d1a4b(0x1cc))/0x2+-parseInt(_0x5d1a4b(0x1d0))/0x3+-parseInt(_0x5d1a4b(0x1d3))/0x4+-parseInt(_0x5d1a4b(0x1d1))/0x5+-parseInt(_0x5d1a4b(0x1c1))/0x6*(parseInt(_0x5d1a4b(0x1ba))/0x7)+-parseInt(_0x5d1a4b(0x1c0))/0x8*(-parseInt(_0x5d1a4b(0x1b9))/0x9);if(_0x35af23===_0x2fefd5)break;else _0x5a6379['push'](_0x5a6379['shift']());}catch(_0x2eb6e8){_0x5a6379['push'](_0x5a6379['shift']());}}}(_0x3247,0xbb47c),function(_0x432fb6,_0x1772ef){var _0x2fa547=_0x5ce4;typeof exports==_0x2fa547(0x1be)&&typeof module<'u'?module[_0x2fa547(0x1b8)]=_0x1772ef():typeof define==_0x2fa547(0x1c8)&&define[_0x2fa547(0x1bd)]?define(_0x1772ef):(_0x432fb6=typeof globalThis<'u'?globalThis:_0x432fb6||self,_0x432fb6[_0x2fa547(0x1bc)]=_0x1772ef());}(this,function(){'use strict';var _0x20b1d3=_0x5ce4;return{'collab-client':{'tooltip':{'reconnect':_0x20b1d3(0x1c6)}},'collabStatus':{'fetchMiss':_0x20b1d3(0x1d4),'conflict':_0x20b1d3(0x1d2),'notCollab':'Local\x20file','synced':_0x20b1d3(0x1c4),'syncing':'Syncing...','offline':_0x20b1d3(0x1bf)},'session':{'connection-failed':'Connection\x20failed.\x20Please\x20check\x20your\x20network.','will-retry':_0x20b1d3(0x1c7),'room-full':_0x20b1d3(0x1cb),'join-failed':_0x20b1d3(0x1ce),'room-not-exists':_0x20b1d3(0x1cd),'room-permission-denied':_0x20b1d3(0x1c5),'room-cnt-exceeds':_0x20b1d3(0x1ca),'collaboration-timeout':_0x20b1d3(0x1c3)},'conflict':{'title':_0x20b1d3(0x1c9),'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':_0x20b1d3(0x1bb),'content':_0x20b1d3(0x1c2)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'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.'}};}));function _0x5ce4(_0x300346,_0x1e7f8e){var _0x3247c9=_0x3247();return _0x5ce4=function(_0x5ce438,_0x256061){_0x5ce438=_0x5ce438-0x1b8;var _0x584fa8=_0x3247c9[_0x5ce438];return _0x584fa8;},_0x5ce4(_0x300346,_0x1e7f8e);}function _0x3247(){var _0x320690=['Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','198212iZtqEe','1350342VTivNM','5648590FKggtX','Edit\x20conflicts','5620672UilbTg','Syncing\x20server\x20data...','exports','1457586PGviaF','77yjAddf','Authentication\x20Error','UniverProCollaborationClientRuRU','amd','object','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','248DudhGx','662736ODUPqs','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Synced','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Click\x20to\x20Reconnect','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','function','Collaboration\x20Conflict','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','503340rorLCz','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.'];_0x3247=function(){return _0x320690;};return _0x3247();}
|
package/lib/umd/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0xee97(_0x2cfef4,_0xc73fb4){var _0x112d7b=_0x112d();return _0xee97=function(_0xee9778,_0xc8edf6){_0xee9778=_0xee9778-0x70;var _0x3825e8=_0x112d7b[_0xee9778];return _0x3825e8;},_0xee97(_0x2cfef4,_0xc73fb4);}(function(_0x46e3ab,_0x4a9c12){var _0x13fa65=_0xee97,_0x236337=_0x46e3ab();while(!![]){try{var _0x593299=parseInt(_0x13fa65(0x7a))/0x1+-parseInt(_0x13fa65(0x7f))/0x2*(-parseInt(_0x13fa65(0x8d))/0x3)+parseInt(_0x13fa65(0x8b))/0x4*(parseInt(_0x13fa65(0x81))/0x5)+-parseInt(_0x13fa65(0x78))/0x6+parseInt(_0x13fa65(0x86))/0x7*(-parseInt(_0x13fa65(0x89))/0x8)+parseInt(_0x13fa65(0x83))/0x9*(parseInt(_0x13fa65(0x82))/0xa)+-parseInt(_0x13fa65(0x73))/0xb;if(_0x593299===_0x4a9c12)break;else _0x236337['push'](_0x236337['shift']());}catch(_0x30b272){_0x236337['push'](_0x236337['shift']());}}}(_0x112d,0xd3550),function(_0x58f8bd,_0x23fb52){var _0x4f5a66=_0xee97;typeof exports=='object'&&typeof module<'u'?module[_0x4f5a66(0x70)]=_0x23fb52():typeof define==_0x4f5a66(0x8c)&&define[_0x4f5a66(0x79)]?define(_0x23fb52):(_0x58f8bd=typeof globalThis<'u'?globalThis:_0x58f8bd||self,_0x58f8bd[_0x4f5a66(0x75)]=_0x23fb52());}(this,function(){'use strict';var _0x454ba2=_0xee97;return{'collab-client':{'tooltip':{'reconnect':_0x454ba2(0x85)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x454ba2(0x77),'notCollab':'Local\x20file','synced':_0x454ba2(0x7e),'syncing':_0x454ba2(0x87),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x454ba2(0x80),'will-retry':_0x454ba2(0x8a),'room-full':_0x454ba2(0x7b),'join-failed':_0x454ba2(0x88),'room-not-exists':_0x454ba2(0x74),'room-permission-denied':'No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-cnt-exceeds':'Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','collaboration-timeout':_0x454ba2(0x7d)},'conflict':{'title':_0x454ba2(0x71),'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':_0x454ba2(0x76)},'collaboration':{'single-unit':{'warning':_0x454ba2(0x72)},'closeRoom':_0x454ba2(0x84)},'auth':{'needGotoLoginAlert':_0x454ba2(0x7c)}};}));function _0x112d(){var _0x2235f7=['30239539jecqMz','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','UniverProCollaborationClientViVN','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Edit\x20conflicts','2756196GGffNm','amd','560962mkoTvd','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Synced','229258IlCEOz','Connection\x20failed.\x20Please\x20check\x20your\x20network.','15DXkUJe','30ADuagK','3679623dgANJg','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Click\x20to\x20Reconnect','14fdqoli','Syncing...','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','838232sJSfVl','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','1799728oytLeI','function','30UEiKbw','exports','Collaboration\x20Conflict','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'];_0x112d=function(){return _0x2235f7;};return _0x112d();}
|
package/lib/umd/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0xdd3c(){var _0x25d031=['exports','已离线,编辑将在本地缓存','324507fbKEVG','此文档协同人数已满,你的编辑将在本地缓存','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','6683580yGpwpd','35009660yxsPJo','保存中...','点击重新连接','正在拉取服务端数据...','UniverProCollaborationClientZhCN','没有协同权限,你的编辑将在本地缓存','你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','8414585ksEWcJ','24DvhLhK','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','协同冲突','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','6jGsXgh','object','amd','4699968oKbhJT','连接失败,请检查你的网络','加入协同失败,你的编辑将在本地缓存','232MbrTVW','服务器未响应,你的编辑将在本地缓存','function','1803216DvMpLh','109602VIQrSJ','协同文档数量超过限制,你的编辑将在本地缓存','加入协同失败,请稍后重试,你的编辑将在本地缓存','编辑冲突','由于协同房间被关闭,编辑权限被收回。'];_0xdd3c=function(){return _0x25d031;};return _0xdd3c();}function _0x4929(_0x147803,_0x66a55e){var _0xdd3c0f=_0xdd3c();return _0x4929=function(_0x4929f1,_0x4acb26){_0x4929f1=_0x4929f1-0x198;var _0x1fddb7=_0xdd3c0f[_0x4929f1];return _0x1fddb7;},_0x4929(_0x147803,_0x66a55e);}(function(_0x4f5764,_0x2814d6){var _0x507e36=_0x4929,_0x38a6a3=_0x4f5764();while(!![]){try{var _0xa3d319=parseInt(_0x507e36(0x1a2))/0x1+-parseInt(_0x507e36(0x1b6))/0x2*(parseInt(_0x507e36(0x1aa))/0x3)+-parseInt(_0x507e36(0x1ad))/0x4+parseInt(_0x507e36(0x1b5))/0x5*(-parseInt(_0x507e36(0x199))/0x6)+parseInt(_0x507e36(0x19c))/0x7+parseInt(_0x507e36(0x19f))/0x8*(-parseInt(_0x507e36(0x1a3))/0x9)+parseInt(_0x507e36(0x1ae))/0xa;if(_0xa3d319===_0x2814d6)break;else _0x38a6a3['push'](_0x38a6a3['shift']());}catch(_0x528c83){_0x38a6a3['push'](_0x38a6a3['shift']());}}}(_0xdd3c,0xecf6c),function(_0x51e355,_0x3be1f8){var _0x21295a=_0x4929;typeof exports==_0x21295a(0x19a)&&typeof module<'u'?module[_0x21295a(0x1a8)]=_0x3be1f8():typeof define==_0x21295a(0x1a1)&&define[_0x21295a(0x19b)]?define(_0x3be1f8):(_0x51e355=typeof globalThis<'u'?globalThis:_0x51e355||self,_0x51e355[_0x21295a(0x1b2)]=_0x3be1f8());}(this,function(){'use strict';var _0x5708e7=_0x4929;return{'collab-client':{'tooltip':{'reconnect':_0x5708e7(0x1b0)}},'collabStatus':{'fetchMiss':_0x5708e7(0x1b1),'conflict':_0x5708e7(0x1a6),'notCollab':'本地文件','synced':'已同步','syncing':_0x5708e7(0x1af),'offline':_0x5708e7(0x1a9)},'session':{'connection-failed':_0x5708e7(0x19d),'will-retry':'连接失败,将在一会儿之后重试连接','room-full':_0x5708e7(0x1ab),'join-failed':_0x5708e7(0x1a5),'room-not-exists':_0x5708e7(0x19e),'room-permission-denied':_0x5708e7(0x1b3),'room-cnt-exceeds':_0x5708e7(0x1a4),'collaboration-timeout':_0x5708e7(0x1a0)},'conflict':{'title':_0x5708e7(0x1b8),'content':_0x5708e7(0x1ac)},'permission':{'title':'权限错误','content':_0x5708e7(0x1b4)},'collaboration':{'single-unit':{'warning':_0x5708e7(0x198)},'closeRoom':_0x5708e7(0x1a7)},'auth':{'needGotoLoginAlert':_0x5708e7(0x1b7)}};}));
|
package/lib/umd/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x3542(_0x3b51e4,_0x45f24e){var _0x7c19b=_0x7c19();return _0x3542=function(_0x354285,_0x3336be){_0x354285=_0x354285-0x7d;var _0x3871c3=_0x7c19b[_0x354285];return _0x3871c3;},_0x3542(_0x3b51e4,_0x45f24e);}(function(_0xca43cd,_0xfe0ebb){var _0x4ffecc=_0x3542,_0x4a2a8e=_0xca43cd();while(!![]){try{var _0x3b4778=parseInt(_0x4ffecc(0x90))/0x1*(parseInt(_0x4ffecc(0x88))/0x2)+parseInt(_0x4ffecc(0x82))/0x3*(-parseInt(_0x4ffecc(0x87))/0x4)+parseInt(_0x4ffecc(0x92))/0x5*(-parseInt(_0x4ffecc(0x7e))/0x6)+parseInt(_0x4ffecc(0x8e))/0x7+-parseInt(_0x4ffecc(0x80))/0x8*(parseInt(_0x4ffecc(0x8b))/0x9)+-parseInt(_0x4ffecc(0x85))/0xa*(-parseInt(_0x4ffecc(0x83))/0xb)+-parseInt(_0x4ffecc(0x7f))/0xc*(-parseInt(_0x4ffecc(0x8a))/0xd);if(_0x3b4778===_0xfe0ebb)break;else _0x4a2a8e['push'](_0x4a2a8e['shift']());}catch(_0x22043c){_0x4a2a8e['push'](_0x4a2a8e['shift']());}}}(_0x7c19,0xf13cb),function(_0x40472b,_0x22e4bf){var _0x287ce8=_0x3542;typeof exports==_0x287ce8(0x84)&&typeof module<'u'?module['exports']=_0x22e4bf():typeof define=='function'&&define[_0x287ce8(0x86)]?define(_0x22e4bf):(_0x40472b=typeof globalThis<'u'?globalThis:_0x40472b||self,_0x40472b['UniverProCollaborationClientZhTW']=_0x22e4bf());}(this,function(){'use strict';var _0x1bffae=_0x3542;return{'collab-client':{'tooltip':{'reconnect':_0x1bffae(0x8c)}},'collabStatus':{'fetchMiss':_0x1bffae(0x99),'conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':'Synced','syncing':'Syncing...','offline':_0x1bffae(0x8d)},'session':{'connection-failed':_0x1bffae(0x95),'will-retry':_0x1bffae(0x94),'room-full':_0x1bffae(0x91),'join-failed':'Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-not-exists':_0x1bffae(0x98),'room-permission-denied':_0x1bffae(0x81),'room-cnt-exceeds':_0x1bffae(0x93),'collaboration-timeout':_0x1bffae(0x96)},'conflict':{'title':_0x1bffae(0x8f),'content':_0x1bffae(0x97)},'permission':{'title':'Authentication\x20Error','content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x1bffae(0x89)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x1bffae(0x7d)}};}));function _0x7c19(){var _0x1b6c04=['74802XsRiXE','Collaboration\x20Conflict','61961oQslIz','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','5tjbNTm','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Syncing\x20server\x20data...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','11351694KYOxft','36ieUbWj','24040LGWdew','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','8049crsfPw','11IXEmEe','object','8873960uJwkwu','amd','2232wmFxmJ','34EpvgQD','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','15030106NKCxVt','3123UMsGIE','Click\x20to\x20Reconnect','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'];_0x7c19=function(){return _0x1b6c04;};return _0x7c19();}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@univerjs-pro/collaboration-client",
|
3
|
-
"version": "0.5.
|
3
|
+
"version": "0.5.2-nightly.202412291605",
|
4
4
|
"private": false,
|
5
5
|
"description": "Univer Collaboration Client",
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
@@ -33,6 +33,11 @@
|
|
33
33
|
"require": "./lib/cjs/locale/*.js",
|
34
34
|
"types": "./lib/types/locale/*.d.ts"
|
35
35
|
},
|
36
|
+
"./facade": {
|
37
|
+
"import": "./lib/es/facade.js",
|
38
|
+
"require": "./lib/cjs/facade.js",
|
39
|
+
"types": "./lib/types/facade/index.d.ts"
|
40
|
+
},
|
36
41
|
"./lib/*": "./lib/*"
|
37
42
|
},
|
38
43
|
"main": "./lib/es/index.js",
|
@@ -47,29 +52,21 @@
|
|
47
52
|
"lib"
|
48
53
|
],
|
49
54
|
"peerDependencies": {
|
50
|
-
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
|
51
55
|
"rxjs": ">=7.0.0"
|
52
56
|
},
|
53
57
|
"dependencies": {
|
54
|
-
"@univerjs/icons": "^0.2.8",
|
55
58
|
"clsx": "^2.1.1",
|
56
59
|
"crypto-js": "4.2.0",
|
57
60
|
"uuid": "^11.0.3",
|
58
|
-
"@univerjs-pro/collaboration": "0.5.
|
59
|
-
"@univerjs/
|
60
|
-
"@univerjs/docs": "0.5.
|
61
|
-
"@univerjs/
|
62
|
-
"@univerjs/
|
63
|
-
"@univerjs/
|
64
|
-
"@univerjs/
|
65
|
-
"@univerjs/
|
66
|
-
"@univerjs/
|
67
|
-
"@univerjs/protocol": "0.1.39",
|
68
|
-
"@univerjs/rpc": "0.5.1",
|
69
|
-
"@univerjs/sheets": "0.5.1",
|
70
|
-
"@univerjs/sheets-ui": "0.5.1",
|
71
|
-
"@univerjs/ui": "0.5.1",
|
72
|
-
"@univerjs/telemetry": "0.5.1"
|
61
|
+
"@univerjs-pro/collaboration": "0.5.2-nightly.202412291605",
|
62
|
+
"@univerjs-pro/license": "0.5.2-nightly.202412291605",
|
63
|
+
"@univerjs/docs": "0.5.2-nightly.202412291605",
|
64
|
+
"@univerjs/drawing": "0.5.2-nightly.202412291605",
|
65
|
+
"@univerjs/core": "0.5.2-nightly.202412291605",
|
66
|
+
"@univerjs/network": "0.5.2-nightly.202412291605",
|
67
|
+
"@univerjs/sheets": "0.5.2-nightly.202412291605",
|
68
|
+
"@univerjs/telemetry": "0.5.2-nightly.202412291605",
|
69
|
+
"@univerjs/protocol": "0.1.40-alpha.10"
|
73
70
|
},
|
74
71
|
"devDependencies": {
|
75
72
|
"@types/crypto-js": "^4.2.2",
|
@@ -77,9 +74,9 @@
|
|
77
74
|
"rxjs": "^7.8.1",
|
78
75
|
"tailwindcss": "^3.4.15",
|
79
76
|
"typescript": "^5.7.2",
|
80
|
-
"vite": "^6.0.
|
81
|
-
"vitest": "^2.1.
|
82
|
-
"@univerjs-infra/shared": "0.5.
|
77
|
+
"vite": "^6.0.3",
|
78
|
+
"vitest": "^2.1.8",
|
79
|
+
"@univerjs-infra/shared": "0.5.2"
|
83
80
|
},
|
84
81
|
"space": {
|
85
82
|
".": {
|
@@ -97,6 +94,11 @@
|
|
97
94
|
"require": "./lib/cjs/locale/*.js",
|
98
95
|
"types": "./lib/types/locale/*.d.ts"
|
99
96
|
},
|
97
|
+
"./facade": {
|
98
|
+
"import": "./lib/es/facade.js",
|
99
|
+
"require": "./lib/cjs/facade.js",
|
100
|
+
"types": "./lib/types/facade/index.d.ts"
|
101
|
+
},
|
100
102
|
"./lib/*": "./lib/*"
|
101
103
|
},
|
102
104
|
"scripts": {
|
package/lib/index.css
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
.univer-online-status-icon{display:flex;margin-right:8px;font-size:20px}.univer-online-status-title{font-size:14px;line-height:32px;color:rgb(var(--grey-600))}.univer-online-status.univer-online .univer-online-status-icon{color:rgb(var(--green-500))}.univer-online-status.univer-offline .univer-online-status-icon{color:rgb(var(--red-500))}
|
@@ -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 {};
|