@univerjs-pro/collaboration-client 0.4.2 → 0.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/types/index.d.ts +890 -34
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +39 -31
- package/lib/locale/en-US.json +0 -38
- package/lib/locale/fa-IR.json +0 -38
- package/lib/locale/ru-RU.json +0 -38
- package/lib/locale/vi-VN.json +0 -38
- package/lib/locale/zh-CN.json +0 -38
- package/lib/locale/zh-TW.json +0 -38
- package/lib/types/config/config.d.ts +0 -48
- 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 -54
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +0 -91
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +0 -303
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +0 -24
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +0 -18
- package/lib/types/controllers/collaboration/utils/empty.d.ts +0 -2
- package/lib/types/controllers/config.schema.d.ts +0 -29
- 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/controllers/file-name/file-name.controller.d.ts +0 -12
- package/lib/types/controllers/telemetry.d.ts +0 -11
- package/lib/types/locale/en-US.d.ts +0 -3
- package/lib/types/locale/fa-IR.d.ts +0 -3
- package/lib/types/locale/ru-RU.d.ts +0 -3
- package/lib/types/locale/vi-VN.d.ts +0 -3
- package/lib/types/locale/zh-CN.d.ts +0 -39
- package/lib/types/locale/zh-TW.d.ts +0 -3
- package/lib/types/models/cursor.d.ts +0 -30
- package/lib/types/plugin.d.ts +0 -18
- package/lib/types/services/auth-server/auth-server.service.d.ts +0 -10
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +0 -30
- package/lib/types/services/auth-server/domain-request.service.d.ts +0 -6
- package/lib/types/services/auth-server/util.d.ts +0 -1
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +0 -59
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +0 -61
- package/lib/types/services/color-assign/color-assign.service.d.ts +0 -10
- package/lib/types/services/comment/comment.service.d.ts +0 -6
- package/lib/types/services/image-remote/image-io.service.d.ts +0 -34
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +0 -13
- package/lib/types/services/local-cache/local-cache.service.d.ts +0 -37
- package/lib/types/services/member/member.service.d.ts +0 -77
- package/lib/types/services/permission/permission.service.d.ts +0 -12
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +0 -13
- package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +0 -39
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +0 -21
- package/lib/types/services/socket/collaboration-socket.service.d.ts +0 -34
- package/lib/types/services/socket/serialize.d.ts +0 -3
- 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/undoredo/collaborative-undoredo.service.d.ts +0 -19
- 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
@@ -0,0 +1 @@
|
|
1
|
+
(function(_0x266249,_0x119312){var _0x4146e6=_0x4c93,_0x5e152b=_0x266249();while(!![]){try{var _0x462c07=parseInt(_0x4146e6(0x159))/0x1+-parseInt(_0x4146e6(0x158))/0x2+parseInt(_0x4146e6(0x15c))/0x3*(-parseInt(_0x4146e6(0x15d))/0x4)+parseInt(_0x4146e6(0x166))/0x5*(parseInt(_0x4146e6(0x167))/0x6)+-parseInt(_0x4146e6(0x162))/0x7+-parseInt(_0x4146e6(0x157))/0x8*(-parseInt(_0x4146e6(0x16a))/0x9)+-parseInt(_0x4146e6(0x160))/0xa*(-parseInt(_0x4146e6(0x161))/0xb);if(_0x462c07===_0x119312)break;else _0x5e152b['push'](_0x5e152b['shift']());}catch(_0x17492b){_0x5e152b['push'](_0x5e152b['shift']());}}}(_0x459e,0x5f21e),function(_0x599203,_0x19ca62){var _0x911a00=_0x4c93;typeof exports=='object'&&typeof module<'u'?module[_0x911a00(0x16b)]=_0x19ca62():typeof define==_0x911a00(0x15a)&&define[_0x911a00(0x154)]?define(_0x19ca62):(_0x599203=typeof globalThis<'u'?globalThis:_0x599203||self,_0x599203[_0x911a00(0x16c)]=_0x19ca62());}(this,function(){'use strict';var _0x3983ad=_0x4c93;return{'collab-client':{'tooltip':{'reconnect':_0x3983ad(0x165)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x3983ad(0x164),'notCollab':_0x3983ad(0x168),'synced':'Synced','syncing':_0x3983ad(0x16d),'offline':_0x3983ad(0x15e)},'session':{'connection-failed':_0x3983ad(0x156),'will-retry':_0x3983ad(0x153),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x3983ad(0x15f)},'conflict':{'title':'Collaboration\x20Conflict','content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':_0x3983ad(0x16e),'content':_0x3983ad(0x155)},'collaboration':{'single-unit':{'warning':_0x3983ad(0x163)},'closeRoom':_0x3983ad(0x15b)},'auth':{'needGotoLoginAlert':_0x3983ad(0x169)}};}));function _0x4c93(_0x317ce1,_0xb9c234){var _0x459e53=_0x459e();return _0x4c93=function(_0x4c93c7,_0x1828ab){_0x4c93c7=_0x4c93c7-0x153;var _0x250455=_0x459e53[_0x4c93c7];return _0x250455;},_0x4c93(_0x317ce1,_0xb9c234);}function _0x459e(){var _0x5446d6=['25SdXcEI','180540kbLgQq','Local\x20file','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','9DmURYd','exports','UniverCollaborationClientEnUS','Syncing...','Authentication\x20Error','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','amd','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.','1601416iqyuNN','361192HxInrz','656683IKbRYV','function','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','3PVNauA','2957684xJFtYQ','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','13660QggOhE','3091QaBAYB','570339Edoace','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Edit\x20conflicts','Click\x20to\x20Reconnect'];_0x459e=function(){return _0x5446d6;};return _0x459e();}
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x58b0(_0x2a2747,_0x3389b7){var _0x3f2845=_0x3f28();return _0x58b0=function(_0x58b08f,_0x164718){_0x58b08f=_0x58b08f-0xbe;var _0x411ec6=_0x3f2845[_0x58b08f];return _0x411ec6;},_0x58b0(_0x2a2747,_0x3389b7);}function _0x3f28(){var _0xb9a162=['برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','3555368wrxpNZ','1496065hXjiiQ','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','829zUncyR','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمی\x20دهد.\x20ویرایش\x20های\x20شما\x20در\x20محلی\x20ذخیره\x20می\x20شوند.','object','خطای\x20اعتبارسنجی','1254216nZeJua','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','پرونده\x20محلی','12752595xezQXt','همگام\x20سازی','تداخل\x20همکاری','amd','424284JDbsoI','تداخل\x20ویرایش','887688CPyRab','3AJwgYX','UniverCollaborationClientFaIR','106oUDoyN','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','function'];_0x3f28=function(){return _0xb9a162;};return _0x3f28();}(function(_0x4e3b76,_0x47a288){var _0x766f89=_0x58b0,_0x49a524=_0x4e3b76();while(!![]){try{var _0x5e53e1=-parseInt(_0x766f89(0xd2))/0x1*(parseInt(_0x766f89(0xcb))/0x2)+parseInt(_0x766f89(0xc9))/0x3*(-parseInt(_0x766f89(0xcf))/0x4)+parseInt(_0x766f89(0xd0))/0x5+parseInt(_0x766f89(0xbf))/0x6+parseInt(_0x766f89(0xc6))/0x7+-parseInt(_0x766f89(0xc8))/0x8+parseInt(_0x766f89(0xc2))/0x9;if(_0x5e53e1===_0x47a288)break;else _0x49a524['push'](_0x49a524['shift']());}catch(_0x4ab230){_0x49a524['push'](_0x49a524['shift']());}}}(_0x3f28,0xe5ffc),function(_0x269cab,_0x519618){var _0x429eee=_0x58b0;typeof exports==_0x429eee(0xd5)&&typeof module<'u'?module['exports']=_0x519618():typeof define==_0x429eee(0xcd)&&define[_0x429eee(0xc5)]?define(_0x519618):(_0x269cab=typeof globalThis<'u'?globalThis:_0x269cab||self,_0x269cab[_0x429eee(0xca)]=_0x519618());}(this,function(){'use strict';var _0x41956b=_0x58b0;return{'collab-client':{'tooltip':{'reconnect':_0x41956b(0xce)}},'collabStatus':{'fetchMiss':_0x41956b(0xd3),'conflict':_0x41956b(0xc7),'notCollab':_0x41956b(0xc1),'synced':_0x41956b(0xc3),'syncing':'در\x20حال\x20همگام\x20سازی...','offline':_0x41956b(0xcc)},'session':{'connection-failed':_0x41956b(0xd1),'will-retry':'اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','room-full':'اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','collaboration-timeout':_0x41956b(0xd4)},'conflict':{'title':_0x41956b(0xc4),'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':_0x41956b(0xbe),'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':_0x41956b(0xc0)},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':'ورود\x20شما\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.'}};}));
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x3835(_0x5c7aa1,_0x1a6c3a){var _0x5a6ea6=_0x5a6e();return _0x3835=function(_0x3835bd,_0x453330){_0x3835bd=_0x3835bd-0x177;var _0x51906d=_0x5a6ea6[_0x3835bd];return _0x51906d;},_0x3835(_0x5c7aa1,_0x1a6c3a);}(function(_0x5f016b,_0x3054e2){var _0x4e96bc=_0x3835,_0x175997=_0x5f016b();while(!![]){try{var _0x27acec=parseInt(_0x4e96bc(0x193))/0x1*(-parseInt(_0x4e96bc(0x180))/0x2)+parseInt(_0x4e96bc(0x18b))/0x3*(parseInt(_0x4e96bc(0x191))/0x4)+parseInt(_0x4e96bc(0x17c))/0x5*(-parseInt(_0x4e96bc(0x17b))/0x6)+-parseInt(_0x4e96bc(0x179))/0x7+parseInt(_0x4e96bc(0x177))/0x8+parseInt(_0x4e96bc(0x18a))/0x9+parseInt(_0x4e96bc(0x194))/0xa*(parseInt(_0x4e96bc(0x192))/0xb);if(_0x27acec===_0x3054e2)break;else _0x175997['push'](_0x175997['shift']());}catch(_0x120e61){_0x175997['push'](_0x175997['shift']());}}}(_0x5a6e,0xa0a77),function(_0x2b4c48,_0x532d9a){var _0x324adf=_0x3835;typeof exports==_0x324adf(0x178)&&typeof module<'u'?module[_0x324adf(0x184)]=_0x532d9a():typeof define=='function'&&define[_0x324adf(0x183)]?define(_0x532d9a):(_0x2b4c48=typeof globalThis<'u'?globalThis:_0x2b4c48||self,_0x2b4c48['UniverCollaborationClientRuRU']=_0x532d9a());}(this,function(){'use strict';var _0x5f401d=_0x3835;return{'collab-client':{'tooltip':{'reconnect':_0x5f401d(0x189)}},'collabStatus':{'fetchMiss':_0x5f401d(0x17f),'conflict':_0x5f401d(0x188),'notCollab':_0x5f401d(0x186),'synced':_0x5f401d(0x18c),'syncing':_0x5f401d(0x17a),'offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x5f401d(0x18f),'will-retry':_0x5f401d(0x185),'room-full':_0x5f401d(0x190),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x5f401d(0x17e),'content':_0x5f401d(0x18e)},'permission':{'title':_0x5f401d(0x181),'content':_0x5f401d(0x182)},'collaboration':{'single-unit':{'warning':_0x5f401d(0x187)},'closeRoom':_0x5f401d(0x18d)},'auth':{'needGotoLoginAlert':_0x5f401d(0x17d)}};}));function _0x5a6e(){var _0x1e757b=['Connection\x20failed,\x20please\x20check\x20your\x20network.','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','748hrvLjM','49819PJfKLa','2xKAxDM','2510tXKDFq','4789376GATLPU','object','5070730AwBeBO','Syncing...','258Gxawcu','44535zSAjcJ','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Collaboration\x20Conflict','Syncing\x20server\x20data...','770358mzeWjM','Authentication\x20Error','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','amd','exports','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Local\x20file','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Edit\x20conflicts','Click\x20to\x20Reconnect','3195810FhJwOG','7143BXwxiq','Synced','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','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.'];_0x5a6e=function(){return _0x1e757b;};return _0x5a6e();}
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x31c2(_0x487daf,_0x13cae7){var _0x36706c=_0x3670();return _0x31c2=function(_0x31c20b,_0x208630){_0x31c20b=_0x31c20b-0x19f;var _0x1d3c3a=_0x36706c[_0x31c20b];return _0x1d3c3a;},_0x31c2(_0x487daf,_0x13cae7);}(function(_0x37819a,_0xbc2098){var _0x377b5e=_0x31c2,_0x487750=_0x37819a();while(!![]){try{var _0x2161e7=parseInt(_0x377b5e(0x1ba))/0x1*(-parseInt(_0x377b5e(0x1a9))/0x2)+-parseInt(_0x377b5e(0x1ab))/0x3*(-parseInt(_0x377b5e(0x1b3))/0x4)+-parseInt(_0x377b5e(0x1a1))/0x5*(-parseInt(_0x377b5e(0x1b5))/0x6)+parseInt(_0x377b5e(0x1ad))/0x7*(parseInt(_0x377b5e(0x1ac))/0x8)+-parseInt(_0x377b5e(0x1b2))/0x9*(-parseInt(_0x377b5e(0x1bb))/0xa)+-parseInt(_0x377b5e(0x1bd))/0xb*(-parseInt(_0x377b5e(0x1b8))/0xc)+-parseInt(_0x377b5e(0x1a8))/0xd*(-parseInt(_0x377b5e(0x1b4))/0xe);if(_0x2161e7===_0xbc2098)break;else _0x487750['push'](_0x487750['shift']());}catch(_0xc89281){_0x487750['push'](_0x487750['shift']());}}}(_0x3670,0x69add),function(_0x3fbed2,_0x11265c){var _0x3c1254=_0x31c2;typeof exports==_0x3c1254(0x1b7)&&typeof module<'u'?module[_0x3c1254(0x1a6)]=_0x11265c():typeof define==_0x3c1254(0x1b6)&&define[_0x3c1254(0x1a3)]?define(_0x11265c):(_0x3fbed2=typeof globalThis<'u'?globalThis:_0x3fbed2||self,_0x3fbed2['UniverCollaborationClientViVN']=_0x11265c());}(this,function(){'use strict';var _0x15ba6b=_0x31c2;return{'collab-client':{'tooltip':{'reconnect':_0x15ba6b(0x1a4)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x15ba6b(0x1ae),'notCollab':'Local\x20file','synced':_0x15ba6b(0x1b0),'syncing':_0x15ba6b(0x1af),'offline':_0x15ba6b(0x19f)},'session':{'connection-failed':_0x15ba6b(0x1a7),'will-retry':_0x15ba6b(0x1b1),'room-full':_0x15ba6b(0x1b9),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':'Collaboration\x20Conflict','content':_0x15ba6b(0x1aa)},'permission':{'title':_0x15ba6b(0x1a5),'content':_0x15ba6b(0x1a0)},'collaboration':{'single-unit':{'warning':_0x15ba6b(0x1be)},'closeRoom':_0x15ba6b(0x1bc)},'auth':{'needGotoLoginAlert':_0x15ba6b(0x1a2)}};}));function _0x3670(){var _0x1d1fe3=['12897ZJLyjv','4ahDEMU','14BPsCAv','156012MeAWNI','function','object','382272KvyFWN','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','89LsJJOW','470LEcWKL','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','154pQrWAB','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','40fCBigM','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','amd','Click\x20to\x20Reconnect','Authentication\x20Error','exports','Connection\x20failed,\x20please\x20check\x20your\x20network.','442DfBqcs','17188nMlzou','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.','405750ahAAtY','682184sBicLi','28PkMDNZ','Edit\x20conflicts','Syncing...','Synced','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.'];_0x3670=function(){return _0x1d1fe3;};return _0x3670();}
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x2bfd(){var _0x376461=['协同房间已满,你的编辑将在本地缓存','function','你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','保存中...','由于协同房间被关闭,编辑权限被收回。','协同冲突','85071ReLbAE','连接失败,请检查你的网络','权限错误','编辑冲突','2321agLvbe','点击重新连接','7275177XutRAL','5758512jlTpUg','object','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','amd','946961WwwmCe','784683tqhygk','6aOhGCi','224PfFNDJ','本地文件','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','已同步','152040hfWNBI','已离线,编辑将在本地缓存','2dCAIYU','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','4999265AYrhUD'];_0x2bfd=function(){return _0x376461;};return _0x2bfd();}function _0xc24f(_0x3127dd,_0x266498){var _0x2bfd4f=_0x2bfd();return _0xc24f=function(_0xc24ff0,_0x5df8e2){_0xc24ff0=_0xc24ff0-0x17f;var _0x56a75a=_0x2bfd4f[_0xc24ff0];return _0x56a75a;},_0xc24f(_0x3127dd,_0x266498);}(function(_0x396e0f,_0x41a35d){var _0x161fa2=_0xc24f,_0x3008c9=_0x396e0f();while(!![]){try{var _0x410d5f=parseInt(_0x161fa2(0x197))/0x1+-parseInt(_0x161fa2(0x183))/0x2*(parseInt(_0x161fa2(0x198))/0x3)+-parseInt(_0x161fa2(0x193))/0x4+parseInt(_0x161fa2(0x185))/0x5*(-parseInt(_0x161fa2(0x199))/0x6)+parseInt(_0x161fa2(0x18c))/0x7*(parseInt(_0x161fa2(0x19a))/0x8)+-parseInt(_0x161fa2(0x192))/0x9+-parseInt(_0x161fa2(0x181))/0xa*(-parseInt(_0x161fa2(0x190))/0xb);if(_0x410d5f===_0x41a35d)break;else _0x3008c9['push'](_0x3008c9['shift']());}catch(_0x297da1){_0x3008c9['push'](_0x3008c9['shift']());}}}(_0x2bfd,0xf0b26),function(_0x4b578e,_0x42980f){var _0x803402=_0xc24f;typeof exports==_0x803402(0x194)&&typeof module<'u'?module['exports']=_0x42980f():typeof define==_0x803402(0x187)&&define[_0x803402(0x196)]?define(_0x42980f):(_0x4b578e=typeof globalThis<'u'?globalThis:_0x4b578e||self,_0x4b578e['UniverCollaborationClientZhCN']=_0x42980f());}(this,function(){'use strict';var _0xc5c2cf=_0xc24f;return{'collab-client':{'tooltip':{'reconnect':_0xc5c2cf(0x191)}},'collabStatus':{'fetchMiss':'正在拉取服务端数据...','conflict':_0xc5c2cf(0x18f),'notCollab':_0xc5c2cf(0x19b),'synced':_0xc5c2cf(0x180),'syncing':_0xc5c2cf(0x189),'offline':_0xc5c2cf(0x182)},'session':{'connection-failed':_0xc5c2cf(0x18d),'will-retry':'连接失败,将在一会儿之后重试连接','room-full':_0xc5c2cf(0x186),'collaboration-timeout':'服务器未响应,你的编辑将在本地缓存'},'conflict':{'title':_0xc5c2cf(0x18b),'content':_0xc5c2cf(0x17f)},'permission':{'title':_0xc5c2cf(0x18e),'content':_0xc5c2cf(0x188)},'collaboration':{'single-unit':{'warning':_0xc5c2cf(0x195)},'closeRoom':_0xc5c2cf(0x18a)},'auth':{'needGotoLoginAlert':_0xc5c2cf(0x184)}};}));
|
@@ -0,0 +1 @@
|
|
1
|
+
function _0x1bd8(){var _0x1e4691=['50kkshWY','Edit\x20conflicts','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.','366530XEjksd','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','8uvYlCC','Collaboration\x20Conflict','856890dXQcMA','function','3340804WEXDkd','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','amd','12PJQeIk','709740LAPUJm','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','45mMWGsT','UniverCollaborationClientZhTW','9738379LGdAJn','Local\x20file','1026864HHFfyr','Syncing\x20server\x20data...','Connection\x20failed,\x20please\x20check\x20your\x20network.','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','object','2023549YjbYoG','Synced','exports','Syncing...'];_0x1bd8=function(){return _0x1e4691;};return _0x1bd8();}function _0x53a4(_0x700952,_0x429a51){var _0x1bd81c=_0x1bd8();return _0x53a4=function(_0x53a4b5,_0x5bc732){_0x53a4b5=_0x53a4b5-0x86;var _0x1864fc=_0x1bd81c[_0x53a4b5];return _0x1864fc;},_0x53a4(_0x700952,_0x429a51);}(function(_0x534fa5,_0x2936cc){var _0x59d4fb=_0x53a4,_0x5e3d6f=_0x534fa5();while(!![]){try{var _0x42fb2a=-parseInt(_0x59d4fb(0x8c))/0x1+-parseInt(_0x59d4fb(0x98))/0x2*(parseInt(_0x59d4fb(0xa1))/0x3)+parseInt(_0x59d4fb(0x9e))/0x4+-parseInt(_0x59d4fb(0x88))/0x5*(-parseInt(_0x59d4fb(0x9c))/0x6)+parseInt(_0x59d4fb(0x8a))/0x7*(parseInt(_0x59d4fb(0x9a))/0x8)+-parseInt(_0x59d4fb(0x86))/0x9+-parseInt(_0x59d4fb(0x95))/0xa*(parseInt(_0x59d4fb(0x91))/0xb);if(_0x42fb2a===_0x2936cc)break;else _0x5e3d6f['push'](_0x5e3d6f['shift']());}catch(_0x33cc80){_0x5e3d6f['push'](_0x5e3d6f['shift']());}}}(_0x1bd8,0xb7e02),function(_0x2e9801,_0x53f1b0){var _0x29ce86=_0x53a4;typeof exports==_0x29ce86(0x90)&&typeof module<'u'?module[_0x29ce86(0x93)]=_0x53f1b0():typeof define==_0x29ce86(0x9d)&&define[_0x29ce86(0xa0)]?define(_0x53f1b0):(_0x2e9801=typeof globalThis<'u'?globalThis:_0x2e9801||self,_0x2e9801[_0x29ce86(0x89)]=_0x53f1b0());}(this,function(){'use strict';var _0x5585e9=_0x53a4;return{'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x5585e9(0x8d),'conflict':_0x5585e9(0x96),'notCollab':_0x5585e9(0x8b),'synced':_0x5585e9(0x92),'syncing':_0x5585e9(0x94),'offline':_0x5585e9(0x87)},'session':{'connection-failed':_0x5585e9(0x8e),'will-retry':_0x5585e9(0x8f),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x5585e9(0x9f)},'conflict':{'title':_0x5585e9(0x9b),'content':_0x5585e9(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':'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':_0x5585e9(0x99)}};}));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@univerjs-pro/collaboration-client",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.5.0-alpha.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "Univer Collaboration Client",
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
@@ -28,11 +28,14 @@
|
|
28
28
|
"require": "./lib/cjs/*",
|
29
29
|
"types": "./lib/types/index.d.ts"
|
30
30
|
},
|
31
|
-
"./
|
32
|
-
|
31
|
+
"./locale/*": {
|
32
|
+
"import": "./lib/es/locale/*.js",
|
33
|
+
"require": "./lib/cjs/locale/*.js",
|
34
|
+
"types": "./lib/types/locale/*.d.ts"
|
35
|
+
},
|
36
|
+
"./lib/*": "./lib/*"
|
33
37
|
},
|
34
|
-
"main": "./lib/
|
35
|
-
"module": "./lib/es/index.js",
|
38
|
+
"main": "./lib/es/index.js",
|
36
39
|
"types": "./lib/types/index.d.ts",
|
37
40
|
"publishConfig": {
|
38
41
|
"access": "public"
|
@@ -48,37 +51,37 @@
|
|
48
51
|
"rxjs": ">=7.0.0"
|
49
52
|
},
|
50
53
|
"dependencies": {
|
51
|
-
"@univerjs/icons": "^0.
|
54
|
+
"@univerjs/icons": "^0.2.5",
|
52
55
|
"clsx": "^2.1.1",
|
53
56
|
"crypto-js": "4.2.0",
|
54
|
-
"uuid": "^
|
55
|
-
"@univerjs/
|
56
|
-
"@univerjs-pro/
|
57
|
-
"@univerjs
|
58
|
-
"@univerjs/docs": "0.
|
59
|
-
"@univerjs/design": "0.
|
60
|
-
"@univerjs/docs-ui": "0.
|
61
|
-
"@univerjs/
|
62
|
-
"@univerjs/
|
63
|
-
"@univerjs/engine-render": "0.
|
64
|
-
"@univerjs/network": "0.
|
57
|
+
"uuid": "^11.0.2",
|
58
|
+
"@univerjs-pro/collaboration": "0.5.0-alpha.0",
|
59
|
+
"@univerjs-pro/license": "0.5.0-alpha.0",
|
60
|
+
"@univerjs/core": "0.5.0-alpha.0",
|
61
|
+
"@univerjs/docs": "0.5.0-alpha.0",
|
62
|
+
"@univerjs/design": "0.5.0-alpha.0",
|
63
|
+
"@univerjs/docs-ui": "0.5.0-alpha.0",
|
64
|
+
"@univerjs/engine-formula": "0.5.0-alpha.0",
|
65
|
+
"@univerjs/drawing": "0.5.0-alpha.0",
|
66
|
+
"@univerjs/engine-render": "0.5.0-alpha.0",
|
67
|
+
"@univerjs/network": "0.5.0-alpha.0",
|
68
|
+
"@univerjs/sheets": "0.5.0-alpha.0",
|
65
69
|
"@univerjs/protocol": "0.1.39-alpha.38",
|
66
|
-
"@univerjs/
|
67
|
-
"@univerjs/
|
68
|
-
"@univerjs/
|
69
|
-
"@univerjs/ui": "0.
|
70
|
-
"@univerjs/telemetry": "0.4.2"
|
70
|
+
"@univerjs/sheets-ui": "0.5.0-alpha.0",
|
71
|
+
"@univerjs/rpc": "0.5.0-alpha.0",
|
72
|
+
"@univerjs/telemetry": "0.5.0-alpha.0",
|
73
|
+
"@univerjs/ui": "0.5.0-alpha.0"
|
71
74
|
},
|
72
75
|
"devDependencies": {
|
73
76
|
"@types/crypto-js": "^4.2.2",
|
74
|
-
"@types/react": "^18.3.
|
77
|
+
"@types/react": "^18.3.12",
|
75
78
|
"rxjs": "^7.8.1",
|
76
79
|
"typescript": "5.6.3",
|
77
|
-
"vite": "^5.4.
|
78
|
-
"vitest": "^2.1.
|
79
|
-
"@univerjs-infra/shared": "0.
|
80
|
+
"vite": "^5.4.10",
|
81
|
+
"vitest": "^2.1.4",
|
82
|
+
"@univerjs-infra/shared": "0.5.0-alpha.0"
|
80
83
|
},
|
81
|
-
"
|
84
|
+
"space": {
|
82
85
|
".": {
|
83
86
|
"import": "./lib/es/index.js",
|
84
87
|
"require": "./lib/cjs/index.js",
|
@@ -89,14 +92,19 @@
|
|
89
92
|
"require": "./lib/cjs/*",
|
90
93
|
"types": "./lib/types/index.d.ts"
|
91
94
|
},
|
92
|
-
"./
|
93
|
-
|
95
|
+
"./locale/*": {
|
96
|
+
"import": "./lib/es/locale/*.js",
|
97
|
+
"require": "./lib/cjs/locale/*.js",
|
98
|
+
"types": "./lib/types/locale/*.d.ts"
|
99
|
+
},
|
100
|
+
"./lib/*": "./lib/*"
|
94
101
|
},
|
95
102
|
"scripts": {
|
96
103
|
"test": "vitest run --pool=threads",
|
97
104
|
"test:watch": "vitest --pool=threads",
|
98
105
|
"coverage": "vitest run --coverage --pool=threads",
|
99
106
|
"lint:types": "tsc --noEmit",
|
100
|
-
"build": "
|
101
|
-
}
|
107
|
+
"build": "tsx build.ts"
|
108
|
+
},
|
109
|
+
"module": "./lib/es/index.js"
|
102
110
|
}
|
package/lib/locale/en-US.json
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"collab-client": {
|
3
|
-
"tooltip": {
|
4
|
-
"reconnect": "Click to Reconnect"
|
5
|
-
}
|
6
|
-
},
|
7
|
-
"collabStatus": {
|
8
|
-
"fetchMiss": "Syncing server data...",
|
9
|
-
"conflict": "Edit conflicts",
|
10
|
-
"notCollab": "Local file",
|
11
|
-
"synced": "Synced",
|
12
|
-
"syncing": "Syncing...",
|
13
|
-
"offline": "Offline, edits would be save on local"
|
14
|
-
},
|
15
|
-
"session": {
|
16
|
-
"connection-failed": "Connection failed, please check your network.",
|
17
|
-
"will-retry": "Connection failed, we retry in a while.",
|
18
|
-
"room-full": "Collaboration room is full. You edits would be saved locally.",
|
19
|
-
"collaboration-timeout": "The server is not responding to your collaboration request. Your edits would be saved locally."
|
20
|
-
},
|
21
|
-
"conflict": {
|
22
|
-
"title": "Collaboration Conflict",
|
23
|
-
"content": "There is a conflict between your local copy and the copy on the server. Please save your local edits, because they will be lost when you reload the page."
|
24
|
-
},
|
25
|
-
"permission": {
|
26
|
-
"title": "Authentication Error",
|
27
|
-
"content": "Your actions are conflicting with the server's permissions. Please save your local edits elsewhere as they will be discarded after refreshing the page."
|
28
|
-
},
|
29
|
-
"collaboration": {
|
30
|
-
"single-unit": {
|
31
|
-
"warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
|
32
|
-
},
|
33
|
-
"closeRoom": "Editing privileges were revoked because the collaborative room was closed."
|
34
|
-
},
|
35
|
-
"auth": {
|
36
|
-
"needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
|
37
|
-
}
|
38
|
-
}
|
package/lib/locale/fa-IR.json
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"collab-client": {
|
3
|
-
"tooltip": {
|
4
|
-
"reconnect": "برای اتصال مجدد کلیک کنید"
|
5
|
-
}
|
6
|
-
},
|
7
|
-
"collabStatus": {
|
8
|
-
"fetchMiss": "در حال همگام سازی داده های سرور...",
|
9
|
-
"conflict": "تداخل ویرایش",
|
10
|
-
"notCollab": "پرونده محلی",
|
11
|
-
"synced": "همگام سازی",
|
12
|
-
"syncing": "در حال همگام سازی...",
|
13
|
-
"offline": "آفلاین، ویرایش ها در محلی ذخیره می شوند"
|
14
|
-
},
|
15
|
-
"session": {
|
16
|
-
"connection-failed": "اتصال ناموفق بود، لطفا شبکه خود را بررسی کنید.",
|
17
|
-
"will-retry": "اتصال ناموفق بود، ما بعداً دوباره تلاش می کنیم.",
|
18
|
-
"room-full": "اتاق همکاری پر است. شما ویرایش های خود را در محلی ذخیره خواهید کرد.",
|
19
|
-
"collaboration-timeout": "سرور به درخواست همکاری شما پاسخ نمی دهد. ویرایش های شما در محلی ذخیره می شوند."
|
20
|
-
},
|
21
|
-
"conflict": {
|
22
|
-
"title": "تداخل همکاری",
|
23
|
-
"content": "یک تداخل بین نسخه محلی شما و نسخه در سرور وجود دارد. لطفاً ویرایش های محلی خود را ذخیره کنید، زیرا آنها پس از بازیابی صفحه از بین خواهند رفت."
|
24
|
-
},
|
25
|
-
"permission": {
|
26
|
-
"title": "خطای اعتبارسنجی",
|
27
|
-
"content": "اعمال شما با مجوزهای سرور تداخل دارد. لطفاً ویرایش های محلی خود را در جای دیگر ذخیره کنید زیرا پس از تازه سازی صفحه از بین خواهند رفت."
|
28
|
-
},
|
29
|
-
"collaboration": {
|
30
|
-
"single-unit": {
|
31
|
-
"warning": "شما همان پرونده را در یک تب دیگر باز کرده اید. در صورت عدم وجود داده، نمی توانید در این تب ویرایش کنید."
|
32
|
-
},
|
33
|
-
"closeRoom": "امتیازات ویرایش به دلیل بسته شدن اتاق همکاری لغو شد."
|
34
|
-
},
|
35
|
-
"auth": {
|
36
|
-
"needGotoLoginAlert": "ورود شما منقضی شده است، برای ورود مجدد کلیک کنید، برای ذخیره ویرایش های محلی خود کلیک کنید."
|
37
|
-
}
|
38
|
-
}
|
package/lib/locale/ru-RU.json
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"collab-client": {
|
3
|
-
"tooltip": {
|
4
|
-
"reconnect": "Click to Reconnect"
|
5
|
-
}
|
6
|
-
},
|
7
|
-
"collabStatus": {
|
8
|
-
"fetchMiss": "Syncing server data...",
|
9
|
-
"conflict": "Edit conflicts",
|
10
|
-
"notCollab": "Local file",
|
11
|
-
"synced": "Synced",
|
12
|
-
"syncing": "Syncing...",
|
13
|
-
"offline": "Offline, edits would be save on local"
|
14
|
-
},
|
15
|
-
"session": {
|
16
|
-
"connection-failed": "Connection failed, please check your network.",
|
17
|
-
"will-retry": "Connection failed, we retry in a while.",
|
18
|
-
"room-full": "Collaboration room is full. You edits would be saved locally.",
|
19
|
-
"collaboration-timeout": "The server is not responding to your collaboration request. Your edits would be saved locally."
|
20
|
-
},
|
21
|
-
"conflict": {
|
22
|
-
"title": "Collaboration Conflict",
|
23
|
-
"content": "There is a conflict between your local copy and the copy on the server. Please save your local edits, because they will be lost when you reload the page."
|
24
|
-
},
|
25
|
-
"permission": {
|
26
|
-
"title": "Authentication Error",
|
27
|
-
"content": "Your actions are conflicting with the server's permissions. Please save your local edits elsewhere as they will be discarded after refreshing the page."
|
28
|
-
},
|
29
|
-
"collaboration": {
|
30
|
-
"single-unit": {
|
31
|
-
"warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
|
32
|
-
},
|
33
|
-
"closeRoom": "Editing privileges were revoked because the collaborative room was closed."
|
34
|
-
},
|
35
|
-
"auth": {
|
36
|
-
"needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
|
37
|
-
}
|
38
|
-
}
|
package/lib/locale/vi-VN.json
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"collab-client": {
|
3
|
-
"tooltip": {
|
4
|
-
"reconnect": "Click to Reconnect"
|
5
|
-
}
|
6
|
-
},
|
7
|
-
"collabStatus": {
|
8
|
-
"fetchMiss": "Syncing server data...",
|
9
|
-
"conflict": "Edit conflicts",
|
10
|
-
"notCollab": "Local file",
|
11
|
-
"synced": "Synced",
|
12
|
-
"syncing": "Syncing...",
|
13
|
-
"offline": "Offline, edits would be save on local"
|
14
|
-
},
|
15
|
-
"session": {
|
16
|
-
"connection-failed": "Connection failed, please check your network.",
|
17
|
-
"will-retry": "Connection failed, we retry in a while.",
|
18
|
-
"room-full": "Collaboration room is full. You edits would be saved locally.",
|
19
|
-
"collaboration-timeout": "The server is not responding to your collaboration request. Your edits would be saved locally."
|
20
|
-
},
|
21
|
-
"conflict": {
|
22
|
-
"title": "Collaboration Conflict",
|
23
|
-
"content": "There is a conflict between your local copy and the copy on the server. Please save your local edits, because they will be lost when you reload the page."
|
24
|
-
},
|
25
|
-
"permission": {
|
26
|
-
"title": "Authentication Error",
|
27
|
-
"content": "Your actions are conflicting with the server's permissions. Please save your local edits elsewhere as they will be discarded after refreshing the page."
|
28
|
-
},
|
29
|
-
"collaboration": {
|
30
|
-
"single-unit": {
|
31
|
-
"warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
|
32
|
-
},
|
33
|
-
"closeRoom": "Editing privileges were revoked because the collaborative room was closed."
|
34
|
-
},
|
35
|
-
"auth": {
|
36
|
-
"needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
|
37
|
-
}
|
38
|
-
}
|
package/lib/locale/zh-CN.json
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"collab-client": {
|
3
|
-
"tooltip": {
|
4
|
-
"reconnect": "点击重新连接"
|
5
|
-
}
|
6
|
-
},
|
7
|
-
"collabStatus": {
|
8
|
-
"fetchMiss": "正在拉取服务端数据...",
|
9
|
-
"conflict": "编辑冲突",
|
10
|
-
"notCollab": "本地文件",
|
11
|
-
"synced": "已同步",
|
12
|
-
"syncing": "保存中...",
|
13
|
-
"offline": "已离线,编辑将在本地缓存"
|
14
|
-
},
|
15
|
-
"session": {
|
16
|
-
"connection-failed": "连接失败,请检查你的网络",
|
17
|
-
"will-retry": "连接失败,将在一会儿之后重试连接",
|
18
|
-
"room-full": "协同房间已满,你的编辑将在本地缓存",
|
19
|
-
"collaboration-timeout": "服务器未响应,你的编辑将在本地缓存"
|
20
|
-
},
|
21
|
-
"conflict": {
|
22
|
-
"title": "协同冲突",
|
23
|
-
"content": "你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。"
|
24
|
-
},
|
25
|
-
"permission": {
|
26
|
-
"title": "权限错误",
|
27
|
-
"content": "你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。"
|
28
|
-
},
|
29
|
-
"collaboration": {
|
30
|
-
"single-unit": {
|
31
|
-
"warning": "你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。"
|
32
|
-
},
|
33
|
-
"closeRoom": "由于协同房间被关闭,编辑权限被收回。"
|
34
|
-
},
|
35
|
-
"auth": {
|
36
|
-
"needGotoLoginAlert": "你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。"
|
37
|
-
}
|
38
|
-
}
|
package/lib/locale/zh-TW.json
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"collab-client": {
|
3
|
-
"tooltip": {
|
4
|
-
"reconnect": "Click to Reconnect"
|
5
|
-
}
|
6
|
-
},
|
7
|
-
"collabStatus": {
|
8
|
-
"fetchMiss": "Syncing server data...",
|
9
|
-
"conflict": "Edit conflicts",
|
10
|
-
"notCollab": "Local file",
|
11
|
-
"synced": "Synced",
|
12
|
-
"syncing": "Syncing...",
|
13
|
-
"offline": "Offline, edits would be save on local"
|
14
|
-
},
|
15
|
-
"session": {
|
16
|
-
"connection-failed": "Connection failed, please check your network.",
|
17
|
-
"will-retry": "Connection failed, we retry in a while.",
|
18
|
-
"room-full": "Collaboration room is full. You edits would be saved locally.",
|
19
|
-
"collaboration-timeout": "The server is not responding to your collaboration request. Your edits would be saved locally."
|
20
|
-
},
|
21
|
-
"conflict": {
|
22
|
-
"title": "Collaboration Conflict",
|
23
|
-
"content": "There is a conflict between your local copy and the copy on the server. Please save your local edits, because they will be lost when you reload the page."
|
24
|
-
},
|
25
|
-
"permission": {
|
26
|
-
"title": "Authentication Error",
|
27
|
-
"content": "Your actions are conflicting with the server's permissions. Please save your local edits elsewhere as they will be discarded after refreshing the page."
|
28
|
-
},
|
29
|
-
"collaboration": {
|
30
|
-
"single-unit": {
|
31
|
-
"warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
|
32
|
-
},
|
33
|
-
"closeRoom": "Editing privileges were revoked because the collaborative room was closed."
|
34
|
-
},
|
35
|
-
"auth": {
|
36
|
-
"needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
|
37
|
-
}
|
38
|
-
}
|
@@ -1,48 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* The config key to determined the URL provided by the snapshot server
|
3
|
-
* to load snapshot. The URL should not ends with a slash.
|
4
|
-
*/
|
5
|
-
/** @deprecated Will be removed in the 0.2.19 release */
|
6
|
-
export declare const SNAPSHOT_SERVER_URL_KEY = "SNAPSHOT_SERVER_URL_KEY";
|
7
|
-
/**
|
8
|
-
* Default value for `SNAPSHOT_SERVER_URL_KEY`.
|
9
|
-
*
|
10
|
-
* Determined in the protocol file in `submodules/protocol/universer/v1/snapshot.proto`.
|
11
|
-
*/
|
12
|
-
export declare const DEFAULT_SNAPSHOT_SERVER_URL = "/universer-api/snapshot";
|
13
|
-
/**
|
14
|
-
* @ignore
|
15
|
-
*/
|
16
|
-
export declare const SNAPSHOT_URL_KEY = "SNAPSHOT_URL_KEY";
|
17
|
-
/**
|
18
|
-
* Determines how often should we send changesets.
|
19
|
-
*/
|
20
|
-
/** @deprecated Will be removed in the 0.2.19 release */
|
21
|
-
export declare const SEND_CHANGESET_TIMEOUT_KEY = "SEND_CHANGESET_TIMEOUT";
|
22
|
-
export declare const DEFAULT_SEND_CHANGESET_TIMEOUT = 2000;
|
23
|
-
/** @deprecated Will be removed in the 0.2.19 release */
|
24
|
-
export declare const COLLAB_WEB_SOCKET_URL_KEY = "COLLAB_WEB_SOCKET_URL";
|
25
|
-
export declare const DEFAULT_COLLAB_WEB_SOCKET_URL = "ws://127.0.0.1:8000/universer-api/comb/connect";
|
26
|
-
/** The heartbeat interval in milliseconds. */
|
27
|
-
export declare const HEARTBEAT_INTERVAL_KEY = "HEARTBEAT_INTERVAL";
|
28
|
-
export declare const DEFAULT_HEARTBEAT_INTERVAL = 30000;
|
29
|
-
export declare const HEARTBEAT_TIMEOUT_KEY = "HEARTBEAT_TIMEOUT";
|
30
|
-
export declare const DEFAULT_HEARTBEAT_TIMEOUT = 20000;
|
31
|
-
export declare const DEFAULT_RETRY_CONNECTING_INTERVAL = 20000;
|
32
|
-
export declare const RETRY_CONNECTING_MAX_COUNT_KEY = "RETRY_CONNECTING_MAX_COUNT";
|
33
|
-
export declare const DEFAULT_RETRY_CONNECTING_MAX_COUNT = 3;
|
34
|
-
/**
|
35
|
-
* A config key to determine how often should Univer save local edits.
|
36
|
-
*/
|
37
|
-
export declare const LOCAL_CACHE_INTERVAL_KEY = "LOCAL_CACHE_INTERVAL";
|
38
|
-
export declare const LOCAL_CACHE_INTERVAL = 1000;
|
39
|
-
/** @deprecated Will be removed in the 0.2.19 release */
|
40
|
-
export declare const COLLAB_SUBMIT_CHANGESET_URL_KEY = "COLLAB_SUBMIT_CHANGESET_URL";
|
41
|
-
/** The url prefix is determined by protocol in submodules/protocol/universer/v1/comb.proto */
|
42
|
-
export declare const DEFAULT_COLLAB_SUBMIT_CHANGESET_URL = "/universer-api/comb";
|
43
|
-
/**
|
44
|
-
* The config key to determined the URL provided by the auth server
|
45
|
-
*/
|
46
|
-
/** @deprecated Will be removed in the 0.2.19 release */
|
47
|
-
export declare const LOGIN_URL_KEY = "LOGIN_URL_KEY";
|
48
|
-
export declare const DEFAULT_LOGIN_URL = "/universer-api/oidc/authpage";
|
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
|
-
}
|