@univerjs-pro/collaboration-client 0.5.1 → 0.5.2-nightly.202412281605
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 _0x5e34(_0x3f931f,_0x2be595){var _0x170962=_0x1709();return _0x5e34=function(_0x5e3492,_0x4a178c){_0x5e3492=_0x5e3492-0x1d5;var _0x5ac4dd=_0x170962[_0x5e3492];return _0x5ac4dd;},_0x5e34(_0x3f931f,_0x2be595);}(function(_0x20023a,_0xd29313){var _0x47af78=_0x5e34,_0x29b852=_0x20023a();while(!![]){try{var _0x3482ad=parseInt(_0x47af78(0x1e1))/0x1*(parseInt(_0x47af78(0x1e2))/0x2)+parseInt(_0x47af78(0x1ea))/0x3+-parseInt(_0x47af78(0x1d9))/0x4+-parseInt(_0x47af78(0x1e6))/0x5*(parseInt(_0x47af78(0x1e7))/0x6)+parseInt(_0x47af78(0x1d6))/0x7*(parseInt(_0x47af78(0x1d7))/0x8)+-parseInt(_0x47af78(0x1e9))/0x9+parseInt(_0x47af78(0x1ef))/0xa;if(_0x3482ad===_0xd29313)break;else _0x29b852['push'](_0x29b852['shift']());}catch(_0x312ebe){_0x29b852['push'](_0x29b852['shift']());}}}(_0x1709,0x3e65c),function(_0x324281,_0x5aa03c){var _0x44086c=_0x5e34;typeof exports=='object'&&typeof module<'u'?module['exports']=_0x5aa03c():typeof define==_0x44086c(0x1d8)&&define[_0x44086c(0x1e4)]?define(_0x5aa03c):(_0x324281=typeof globalThis<'u'?globalThis:_0x324281||self,_0x324281[_0x44086c(0x1de)]=_0x5aa03c());}(this,function(){'use strict';var _0x77b9d8=_0x5e34;return{'collab-client':{'tooltip':{'reconnect':_0x77b9d8(0x1eb)}},'collabStatus':{'fetchMiss':_0x77b9d8(0x1ed),'conflict':_0x77b9d8(0x1f0),'notCollab':'Local\x20file','synced':_0x77b9d8(0x1ee),'syncing':_0x77b9d8(0x1e0),'offline':_0x77b9d8(0x1f3)},'session':{'connection-failed':_0x77b9d8(0x1e3),'will-retry':_0x77b9d8(0x1d5),'room-full':_0x77b9d8(0x1dc),'join-failed':_0x77b9d8(0x1da),'room-not-exists':_0x77b9d8(0x1db),'room-permission-denied':_0x77b9d8(0x1ec),'room-cnt-exceeds':_0x77b9d8(0x1f1),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':'Collaboration\x20Conflict','content':_0x77b9d8(0x1e5)},'permission':{'title':'Authentication\x20Error','content':_0x77b9d8(0x1dd)},'collaboration':{'single-unit':{'warning':_0x77b9d8(0x1df)},'closeRoom':_0x77b9d8(0x1f2)},'auth':{'needGotoLoginAlert':_0x77b9d8(0x1e8)}};}));function _0x1709(){var _0xf6c106=['Connection\x20failed.\x20Please\x20check\x20your\x20network.','amd','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.','662525aoaELo','6ZpfcCr','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','1946655sIAyGU','683712rrGpVG','Click\x20to\x20Reconnect','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Syncing\x20server\x20data...','Synced','6117320RNNNfJ','Edit\x20conflicts','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','7pVtkse','480stgseC','function','964232wgRnPr','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','UniverProCollaborationClientEnUS','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Syncing...','2BPPuVo','5742GtXaqO'];_0x1709=function(){return _0xf6c106;};return _0x1709();}
|
package/lib/umd/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
(function(_0x440691,_0x3d44fd){var _0x4a00f2=_0x2834,_0x622008=_0x440691();while(!![]){try{var _0x3e077a=-parseInt(_0x4a00f2(0x89))/0x1*(-parseInt(_0x4a00f2(0x73))/0x2)+parseInt(_0x4a00f2(0x78))/0x3*(-parseInt(_0x4a00f2(0x92))/0x4)+parseInt(_0x4a00f2(0x79))/0x5*(-parseInt(_0x4a00f2(0x85))/0x6)+parseInt(_0x4a00f2(0x7f))/0x7+-parseInt(_0x4a00f2(0x88))/0x8*(-parseInt(_0x4a00f2(0x93))/0x9)+-parseInt(_0x4a00f2(0x7c))/0xa+-parseInt(_0x4a00f2(0x83))/0xb*(-parseInt(_0x4a00f2(0x94))/0xc);if(_0x3e077a===_0x3d44fd)break;else _0x622008['push'](_0x622008['shift']());}catch(_0x506631){_0x622008['push'](_0x622008['shift']());}}}(_0x56dc,0xec747),function(_0x4d2090,_0x26827f){var _0x1fee9c=_0x2834;typeof exports==_0x1fee9c(0x87)&&typeof module<'u'?module[_0x1fee9c(0x8e)]=_0x26827f():typeof define=='function'&&define[_0x1fee9c(0x75)]?define(_0x26827f):(_0x4d2090=typeof globalThis<'u'?globalThis:_0x4d2090||self,_0x4d2090[_0x1fee9c(0x91)]=_0x26827f());}(this,function(){'use strict';var _0x5a8da8=_0x2834;return{'collab-client':{'tooltip':{'reconnect':_0x5a8da8(0x8d)}},'collabStatus':{'fetchMiss':_0x5a8da8(0x82),'conflict':'تداخل\x20ویرایش','notCollab':_0x5a8da8(0x7a),'synced':_0x5a8da8(0x7e),'syncing':_0x5a8da8(0x74),'offline':_0x5a8da8(0x8f)},'session':{'connection-failed':_0x5a8da8(0x8b),'will-retry':_0x5a8da8(0x84),'room-full':_0x5a8da8(0x76),'join-failed':_0x5a8da8(0x7d),'room-not-exists':_0x5a8da8(0x86),'room-permission-denied':_0x5a8da8(0x95),'room-cnt-exceeds':_0x5a8da8(0x7b),'collaboration-timeout':_0x5a8da8(0x80)},'conflict':{'title':_0x5a8da8(0x8a),'content':_0x5a8da8(0x8c)},'permission':{'title':_0x5a8da8(0x77),'content':_0x5a8da8(0x90)},'collaboration':{'single-unit':{'warning':_0x5a8da8(0x96)},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':_0x5a8da8(0x81)}};}));function _0x2834(_0x13eb93,_0x56d178){var _0x56dc95=_0x56dc();return _0x2834=function(_0x283442,_0x28236c){_0x283442=_0x283442-0x73;var _0x3a150d=_0x56dc95[_0x283442];return _0x3a150d;},_0x2834(_0x13eb93,_0x56d178);}function _0x56dc(){var _0x4d3410=['اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','902814feIacp','پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','object','76000KdRqDL','22886qlFtyA','تداخل\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کنید','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خواهند\x20رفت.','UniverProCollaborationClientFaIR','4WPtjJt','9LdqIxO','1116gigwPG','دسترسی\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کنید.','54MEOFTE','در\x20حال\x20همگام\x20سازی...','amd','ظرفیت\x20همکاری\x20در\x20این\x20سند\x20پر\x20شده\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','خطای\x20اعتبارسنجی','5034444PdrXGH','35uXEpOt','پرونده\x20محلی','تعداد\x20اسناد\x20همکاری\x20از\x20حد\x20مجاز\x20فراتر\x20رفته\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','18650980zMHQCx','پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20لطفاً\x20بعداً\x20دوباره\x20امتحان\x20کنید.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','همگام\x20سازی','790804isugfX','سرور\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سرور...','570658iGezpr'];_0x56dc=function(){return _0x4d3410;};return _0x56dc();}
|
package/lib/umd/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0xde00(){var _0x4021a0=['Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','21096NqmPfp','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Synced','1864058dyzNSd','2772876QeRpGo','Authentication\x20Error','890ebDjpH','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','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.','7oztjlB','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Local\x20file','Edit\x20conflicts','556501JxIfHE','1tGnSwz','11516XnyTfX','4671410jgLHRd','1095UJORhi','Syncing...','amd','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.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','13128496XrUmTx','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'];_0xde00=function(){return _0x4021a0;};return _0xde00();}function _0x5810(_0x100db1,_0x2ce3d1){var _0xde00f1=_0xde00();return _0x5810=function(_0x581024,_0x23b429){_0x581024=_0x581024-0x188;var _0x31e5f6=_0xde00f1[_0x581024];return _0x31e5f6;},_0x5810(_0x100db1,_0x2ce3d1);}(function(_0xe79319,_0x5131b2){var _0x25074a=_0x5810,_0x1b1783=_0xe79319();while(!![]){try{var _0x46b70f=-parseInt(_0x25074a(0x190))/0x1*(parseInt(_0x25074a(0x1a0))/0x2)+parseInt(_0x25074a(0x193))/0x3*(-parseInt(_0x25074a(0x191))/0x4)+parseInt(_0x25074a(0x192))/0x5+parseInt(_0x25074a(0x1a1))/0x6+-parseInt(_0x25074a(0x18b))/0x7*(-parseInt(_0x25074a(0x19a))/0x8)+-parseInt(_0x25074a(0x19d))/0x9*(parseInt(_0x25074a(0x1a3))/0xa)+parseInt(_0x25074a(0x18f))/0xb;if(_0x46b70f===_0x5131b2)break;else _0x1b1783['push'](_0x1b1783['shift']());}catch(_0x5b11f4){_0x1b1783['push'](_0x1b1783['shift']());}}}(_0xde00,0xdae59),function(_0x594e7f,_0x349b83){var _0x408621=_0x5810;typeof exports=='object'&&typeof module<'u'?module['exports']=_0x349b83():typeof define=='function'&&define[_0x408621(0x195)]?define(_0x349b83):(_0x594e7f=typeof globalThis<'u'?globalThis:_0x594e7f||self,_0x594e7f['UniverProCollaborationClientFrFR']=_0x349b83());}(this,function(){'use strict';var _0x21c51d=_0x5810;return{'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x21c51d(0x18e),'notCollab':_0x21c51d(0x18d),'synced':_0x21c51d(0x19f),'syncing':_0x21c51d(0x194),'offline':_0x21c51d(0x19e)},'session':{'connection-failed':_0x21c51d(0x196),'will-retry':_0x21c51d(0x19c),'room-full':_0x21c51d(0x18c),'join-failed':_0x21c51d(0x198),'room-not-exists':_0x21c51d(0x189),'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':_0x21c51d(0x19b)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x21c51d(0x18a)},'permission':{'title':_0x21c51d(0x1a2),'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':_0x21c51d(0x197)},'closeRoom':_0x21c51d(0x199)},'auth':{'needGotoLoginAlert':_0x21c51d(0x188)}};}));
|
package/lib/umd/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x2960(_0x95e2c7,_0x25cbf6){var _0x5cdd4c=_0x5cdd();return _0x2960=function(_0x2960ab,_0x2083ac){_0x2960ab=_0x2960ab-0xdd;var _0x73fc4a=_0x5cdd4c[_0x2960ab];return _0x73fc4a;},_0x2960(_0x95e2c7,_0x25cbf6);}(function(_0x52df4c,_0xb2c1f6){var _0x2bd8f3=_0x2960,_0xfdb292=_0x52df4c();while(!![]){try{var _0x5d32a6=-parseInt(_0x2bd8f3(0xe1))/0x1+parseInt(_0x2bd8f3(0xf5))/0x2*(parseInt(_0x2bd8f3(0xf0))/0x3)+-parseInt(_0x2bd8f3(0xea))/0x4+-parseInt(_0x2bd8f3(0xf6))/0x5+parseInt(_0x2bd8f3(0xe8))/0x6+-parseInt(_0x2bd8f3(0xf9))/0x7*(-parseInt(_0x2bd8f3(0xfb))/0x8)+-parseInt(_0x2bd8f3(0xdd))/0x9;if(_0x5d32a6===_0xb2c1f6)break;else _0xfdb292['push'](_0xfdb292['shift']());}catch(_0x13425a){_0xfdb292['push'](_0xfdb292['shift']());}}}(_0x5cdd,0x427e2),function(_0x205afc,_0x583c86){var _0x281cc7=_0x2960;typeof exports==_0x281cc7(0xf8)&&typeof module<'u'?module[_0x281cc7(0xe9)]=_0x583c86():typeof define==_0x281cc7(0xec)&&define[_0x281cc7(0xe3)]?define(_0x583c86):(_0x205afc=typeof globalThis<'u'?globalThis:_0x205afc||self,_0x205afc[_0x281cc7(0xfa)]=_0x583c86());}(this,function(){'use strict';var _0x564c28=_0x2960;return{'collab-client':{'tooltip':{'reconnect':_0x564c28(0xe5)}},'collabStatus':{'fetchMiss':_0x564c28(0xe7),'conflict':_0x564c28(0xf2),'notCollab':_0x564c28(0xde),'synced':_0x564c28(0xe4),'syncing':_0x564c28(0xeb),'offline':_0x564c28(0xfc)},'session':{'connection-failed':_0x564c28(0xf1),'will-retry':_0x564c28(0xf4),'room-full':'The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','join-failed':_0x564c28(0xed),'room-not-exists':_0x564c28(0xf7),'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':_0x564c28(0xf3)},'conflict':{'title':_0x564c28(0xdf),'content':_0x564c28(0xe2)},'permission':{'title':_0x564c28(0xe0),'content':_0x564c28(0xee)},'collaboration':{'single-unit':{'warning':_0x564c28(0xe6)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x564c28(0xef)}};}));function _0x5cdd(){var _0x4c3cfa=['5032awJEvL','910455wDSdgL','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','object','455JTwRjB','UniverProCollaborationClientRuRU','21808irBoML','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','390942kcUeXf','Local\x20file','Collaboration\x20Conflict','Authentication\x20Error','158901OXouDi','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.','amd','Synced','Click\x20to\x20Reconnect','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Syncing\x20server\x20data...','3205644fDbVLx','exports','1808832pongeL','Syncing...','function','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','474oHdZTR','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Edit\x20conflicts','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.'];_0x5cdd=function(){return _0x4c3cfa;};return _0x5cdd();}
|
package/lib/umd/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x4ac2(_0x17a077,_0x7d128e){var _0x1adc71=_0x1adc();return _0x4ac2=function(_0x4ac25a,_0x551dc6){_0x4ac25a=_0x4ac25a-0x9b;var _0x386e3b=_0x1adc71[_0x4ac25a];return _0x386e3b;},_0x4ac2(_0x17a077,_0x7d128e);}function _0x1adc(){var _0x709c75=['2268696KOghpZ','151310YAPpzx','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','UniverProCollaborationClientViVN','2185603fVqnLE','2677995GJRCpx','amd','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','313536YSRYrb','324565DjwXzf','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','exports','Syncing...','Syncing\x20server\x20data...','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','1533280REmYsx','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Synced','3rUaBOA','Local\x20file','Authentication\x20Error','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Collaboration\x20Conflict','Edit\x20conflicts'];_0x1adc=function(){return _0x709c75;};return _0x1adc();}(function(_0x41593c,_0x3ed356){var _0x483065=_0x4ac2,_0x19a7fd=_0x41593c();while(!![]){try{var _0x1d4b43=parseInt(_0x483065(0xa9))/0x1+-parseInt(_0x483065(0xa1))/0x2+parseInt(_0x483065(0xb5))/0x3*(parseInt(_0x483065(0xa8))/0x4)+parseInt(_0x483065(0xa5))/0x5+-parseInt(_0x483065(0xa0))/0x6+-parseInt(_0x483065(0xa4))/0x7+parseInt(_0x483065(0xb1))/0x8;if(_0x1d4b43===_0x3ed356)break;else _0x19a7fd['push'](_0x19a7fd['shift']());}catch(_0x58a788){_0x19a7fd['push'](_0x19a7fd['shift']());}}}(_0x1adc,0x58eb0),function(_0x3e8988,_0x41d066){var _0x3914f8=_0x4ac2;typeof exports=='object'&&typeof module<'u'?module[_0x3914f8(0xad)]=_0x41d066():typeof define=='function'&&define[_0x3914f8(0xa6)]?define(_0x41d066):(_0x3e8988=typeof globalThis<'u'?globalThis:_0x3e8988||self,_0x3e8988[_0x3914f8(0xa3)]=_0x41d066());}(this,function(){'use strict';var _0x4b5205=_0x4ac2;return{'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x4b5205(0xaf),'conflict':_0x4b5205(0x9f),'notCollab':_0x4b5205(0x9b),'synced':_0x4b5205(0xb4),'syncing':_0x4b5205(0xae),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x4b5205(0xb2),'will-retry':'Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','room-full':'The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','join-failed':_0x4b5205(0xac),'room-not-exists':_0x4b5205(0xb3),'room-permission-denied':_0x4b5205(0xb0),'room-cnt-exceeds':_0x4b5205(0xaa),'collaboration-timeout':_0x4b5205(0xa7)},'conflict':{'title':_0x4b5205(0x9e),'content':_0x4b5205(0xab)},'permission':{'title':_0x4b5205(0x9c),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x4b5205(0xa2)},'auth':{'needGotoLoginAlert':_0x4b5205(0x9d)}};}));
|
package/lib/umd/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x7626(){var _0x40cb98=['由于协同房间被关闭,编辑权限被收回。','function','连接失败,将在一会儿之后重试连接','7AhpvKS','amd','保存中...','加入协同失败,你的编辑将在本地缓存','你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','6957171VhXfcw','4963146DMOlmk','协同冲突','UniverProCollaborationClientZhCN','296312uadCBe','724822wKoqqO','exports','3885016kRptZx','92eMnivv','object','正在拉取服务端数据...','44160720qudsbj','186580QPTzkj','连接失败,请检查你的网络','协同文档数量超过限制,你的编辑将在本地缓存','已同步','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','6bzhJOD'];_0x7626=function(){return _0x40cb98;};return _0x7626();}function _0x5bd1(_0x34b1c6,_0x33b49d){var _0x7626d7=_0x7626();return _0x5bd1=function(_0x5bd1a0,_0xff2837){_0x5bd1a0=_0x5bd1a0-0x86;var _0x4e2605=_0x7626d7[_0x5bd1a0];return _0x4e2605;},_0x5bd1(_0x34b1c6,_0x33b49d);}(function(_0x1f963a,_0x5dd757){var _0x127b3f=_0x5bd1,_0x159cde=_0x1f963a();while(!![]){try{var _0x4b0dc1=-parseInt(_0x127b3f(0x9a))/0x1+parseInt(_0x127b3f(0x99))/0x2*(-parseInt(_0x127b3f(0x8c))/0x3)+-parseInt(_0x127b3f(0x9d))/0x4*(parseInt(_0x127b3f(0x86))/0x5)+-parseInt(_0x127b3f(0x96))/0x6+parseInt(_0x127b3f(0x90))/0x7*(-parseInt(_0x127b3f(0x9c))/0x8)+-parseInt(_0x127b3f(0x95))/0x9+parseInt(_0x127b3f(0xa0))/0xa;if(_0x4b0dc1===_0x5dd757)break;else _0x159cde['push'](_0x159cde['shift']());}catch(_0x5c4acd){_0x159cde['push'](_0x159cde['shift']());}}}(_0x7626,0x6e111),function(_0xa8997c,_0x3acaba){var _0x3e819e=_0x5bd1;typeof exports==_0x3e819e(0x9e)&&typeof module<'u'?module[_0x3e819e(0x9b)]=_0x3acaba():typeof define==_0x3e819e(0x8e)&&define[_0x3e819e(0x91)]?define(_0x3acaba):(_0xa8997c=typeof globalThis<'u'?globalThis:_0xa8997c||self,_0xa8997c[_0x3e819e(0x98)]=_0x3acaba());}(this,function(){'use strict';var _0x5b0eca=_0x5bd1;return{'collab-client':{'tooltip':{'reconnect':'点击重新连接'}},'collabStatus':{'fetchMiss':_0x5b0eca(0x9f),'conflict':'编辑冲突','notCollab':'本地文件','synced':_0x5b0eca(0x89),'syncing':_0x5b0eca(0x92),'offline':'已离线,编辑将在本地缓存'},'session':{'connection-failed':_0x5b0eca(0x87),'will-retry':_0x5b0eca(0x8f),'room-full':'此文档协同人数已满,你的编辑将在本地缓存','join-failed':'加入协同失败,请稍后重试,你的编辑将在本地缓存','room-not-exists':_0x5b0eca(0x93),'room-permission-denied':'没有协同权限,你的编辑将在本地缓存','room-cnt-exceeds':_0x5b0eca(0x88),'collaboration-timeout':'服务器未响应,你的编辑将在本地缓存'},'conflict':{'title':_0x5b0eca(0x97),'content':'你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。'},'permission':{'title':'权限错误','content':_0x5b0eca(0x94)},'collaboration':{'single-unit':{'warning':_0x5b0eca(0x8a)},'closeRoom':_0x5b0eca(0x8d)},'auth':{'needGotoLoginAlert':_0x5b0eca(0x8b)}};}));
|
package/lib/umd/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
(function(_0x5d929e,_0x264dcd){var _0x5c643d=_0x164c,_0x46cd41=_0x5d929e();while(!![]){try{var _0x4ccaac=-parseInt(_0x5c643d(0x154))/0x1+-parseInt(_0x5c643d(0x156))/0x2+parseInt(_0x5c643d(0x14f))/0x3+parseInt(_0x5c643d(0x14c))/0x4+parseInt(_0x5c643d(0x15f))/0x5*(parseInt(_0x5c643d(0x149))/0x6)+parseInt(_0x5c643d(0x14b))/0x7*(-parseInt(_0x5c643d(0x14a))/0x8)+-parseInt(_0x5c643d(0x166))/0x9*(-parseInt(_0x5c643d(0x152))/0xa);if(_0x4ccaac===_0x264dcd)break;else _0x46cd41['push'](_0x46cd41['shift']());}catch(_0x4e3f86){_0x46cd41['push'](_0x46cd41['shift']());}}}(_0x5ab7,0x6664c),function(_0x36adfb,_0x5e5e41){var _0x6d406f=_0x164c;typeof exports==_0x6d406f(0x159)&&typeof module<'u'?module[_0x6d406f(0x168)]=_0x5e5e41():typeof define==_0x6d406f(0x15c)&&define[_0x6d406f(0x151)]?define(_0x5e5e41):(_0x36adfb=typeof globalThis<'u'?globalThis:_0x36adfb||self,_0x36adfb[_0x6d406f(0x161)]=_0x5e5e41());}(this,function(){'use strict';var _0xcd198c=_0x164c;return{'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0xcd198c(0x164),'conflict':'Edit\x20conflicts','notCollab':_0xcd198c(0x169),'synced':_0xcd198c(0x162),'syncing':_0xcd198c(0x14e),'offline':_0xcd198c(0x15a)},'session':{'connection-failed':_0xcd198c(0x15e),'will-retry':_0xcd198c(0x150),'room-full':_0xcd198c(0x15b),'join-failed':_0xcd198c(0x165),'room-not-exists':_0xcd198c(0x16a),'room-permission-denied':_0xcd198c(0x155),'room-cnt-exceeds':'Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','collaboration-timeout':_0xcd198c(0x15d)},'conflict':{'title':_0xcd198c(0x160),'content':_0xcd198c(0x157)},'permission':{'title':_0xcd198c(0x158),'content':_0xcd198c(0x163)},'collaboration':{'single-unit':{'warning':_0xcd198c(0x14d)},'closeRoom':_0xcd198c(0x167)},'auth':{'needGotoLoginAlert':_0xcd198c(0x153)}};}));function _0x164c(_0x3c3199,_0x48bee8){var _0x5ab735=_0x5ab7();return _0x164c=function(_0x164c06,_0x2f158f){_0x164c06=_0x164c06-0x149;var _0xaf8d31=_0x5ab735[_0x164c06];return _0xaf8d31;},_0x164c(_0x3c3199,_0x48bee8);}function _0x5ab7(){var _0x3a4307=['Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','amd','11784460xzRkoJ','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','777012uUcOfX','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','433936akIEhC','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Authentication\x20Error','object','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','function','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','5qMGFXN','Collaboration\x20Conflict','UniverProCollaborationClientZhTW','Synced','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Syncing\x20server\x20data...','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','9saHavB','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','exports','Local\x20file','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','902436nrxepH','589592LeLVSP','70NqFabu','679464CMZjQK','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Syncing...','1954968REWRbA'];_0x5ab7=function(){return _0x3a4307;};return _0x5ab7();}
|
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.202412281605",
|
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/
|
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.202412281605",
|
62
|
+
"@univerjs/docs": "0.5.2-nightly.202412281605",
|
63
|
+
"@univerjs-pro/license": "0.5.2-nightly.202412281605",
|
64
|
+
"@univerjs/protocol": "0.1.40-alpha.10",
|
65
|
+
"@univerjs/core": "0.5.2-nightly.202412281605",
|
66
|
+
"@univerjs/drawing": "0.5.2-nightly.202412281605",
|
67
|
+
"@univerjs/sheets": "0.5.2-nightly.202412281605",
|
68
|
+
"@univerjs/network": "0.5.2-nightly.202412281605",
|
69
|
+
"@univerjs/telemetry": "0.5.2-nightly.202412281605"
|
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 {};
|