@univerjs-pro/collaboration-client 0.5.1-nightly.202412041606 → 0.5.1-nightly.202412061606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.css +0 -1
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +20 -18
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +17 -14
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +1 -0
- package/lib/types/index.d.ts +11 -11
- package/lib/types/plugin.d.ts +1 -6
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +3 -4
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +3 -3
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +19 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +23 -0
- package/lib/types/services/image-remote/image-io.service.d.ts +1 -1
- package/lib/types/services/local-cache/local-cache.service.d.ts +7 -23
- package/lib/types/services/permission/permission.service.d.ts +8 -3
- package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +0 -24
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -18
- 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/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x4fb7(_0x8eb46a,_0x4ea8de){const _0x4fd69f=_0x4fd6();return _0x4fb7=function(_0x4fb7c0,_0x594116){_0x4fb7c0=_0x4fb7c0-0x65;let _0x22506a=_0x4fd69f[_0x4fb7c0];return _0x22506a;},_0x4fb7(_0x8eb46a,_0x4ea8de);}const _0x32caef=_0x4fb7;function _0x4fd6(){const _0x2012d5=['No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','18qrtJgM','Failed\x20to\x20join\x20collaboration.\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.','5299305GmvYqk','20lbWFFx','Click\x20to\x20Reconnect','848004NgRbPS','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Syncing\x20server\x20data...','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','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.','Collaboration\x20Conflict','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','59062nQiQtU','265044xCRvvx','Synced','3732184WGIGJI','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','3yGzHqO','8287770XPeXJx','Edit\x20conflicts','Local\x20file','9JYonTG','3235554rmaWdG','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'];_0x4fd6=function(){return _0x2012d5;};return _0x4fd6();}(function(_0x40741c,_0x14eac7){const _0x28c883=_0x4fb7,_0x30a1d2=_0x40741c();while(!![]){try{const _0x2a5de1=parseInt(_0x28c883(0x67))/0x1+parseInt(_0x28c883(0x66))/0x2*(parseInt(_0x28c883(0x6b))/0x3)+parseInt(_0x28c883(0x79))/0x4*(-parseInt(_0x28c883(0x77))/0x5)+parseInt(_0x28c883(0x73))/0x6*(parseInt(_0x28c883(0x70))/0x7)+-parseInt(_0x28c883(0x69))/0x8*(parseInt(_0x28c883(0x6f))/0x9)+parseInt(_0x28c883(0x6c))/0xa+-parseInt(_0x28c883(0x76))/0xb;if(_0x2a5de1===_0x14eac7)break;else _0x30a1d2['push'](_0x30a1d2['shift']());}catch(_0x3f2cf7){_0x30a1d2['push'](_0x30a1d2['shift']());}}}(_0x4fd6,0xae408));const e={'collab-client':{'tooltip':{'reconnect':_0x32caef(0x78)}},'collabStatus':{'fetchMiss':_0x32caef(0x7b),'conflict':_0x32caef(0x6d),'notCollab':_0x32caef(0x6e),'synced':_0x32caef(0x68),'syncing':'Syncing...','offline':_0x32caef(0x71)},'session':{'connection-failed':_0x32caef(0x7e),'will-retry':_0x32caef(0x65),'room-full':_0x32caef(0x7a),'join-failed':_0x32caef(0x7c),'room-not-exists':_0x32caef(0x74),'room-permission-denied':_0x32caef(0x72),'room-cnt-exceeds':_0x32caef(0x7f),'collaboration-timeout':_0x32caef(0x83)},'conflict':{'title':_0x32caef(0x82),'content':_0x32caef(0x81)},'permission':{'title':'Authentication\x20Error','content':_0x32caef(0x75)},'collaboration':{'single-unit':{'warning':_0x32caef(0x80)},'closeRoom':_0x32caef(0x6a)},'auth':{'needGotoLoginAlert':_0x32caef(0x7d)}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x4bbba4=_0x516c;function _0x1d97(){const _0xb35a8a=['5541700YJoqRB','در\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رفت.','883276DtSQgC','آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','9844016DXiWTC','10xfjhXD','تداخل\x20ویرایش','همگام\x20سازی','1904ijZdgQ','تعداد\x20اسناد\x20همکاری\x20از\x20حد\x20مجاز\x20فراتر\x20رفته\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','2557030zwagQp','12doaGOl','اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.','ورود\x20شم\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.','دسترسی\x20همکاری\x20وجود\x20ندارد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','694674WnMtKL','پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20لطفاً\x20بعداً\x20دوباره\x20امتحان\x20کنید.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','پرونده\x20محلی','برای\x20اتصال\x20مجدد\x20کلیک\x20کنید','1469058ohkkaj','پیوستن\x20به\x20همکاری\x20ناموفق\x20بود.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','548XHakze','خطای\x20اعتبارسنجی'];_0x1d97=function(){return _0xb35a8a;};return _0x1d97();}function _0x516c(_0x599f1f,_0x52e65d){const _0x1d9785=_0x1d97();return _0x516c=function(_0x516cd2,_0x512033){_0x516cd2=_0x516cd2-0x89;let _0x24184f=_0x1d9785[_0x516cd2];return _0x24184f;},_0x516c(_0x599f1f,_0x52e65d);}(function(_0x377819,_0x1b56f3){const _0x3edba8=_0x516c,_0x1d4a1b=_0x377819();while(!![]){try{const _0x320fcb=-parseInt(_0x3edba8(0x97))/0x1*(-parseInt(_0x3edba8(0x8a))/0x2)+parseInt(_0x3edba8(0x8d))/0x3*(parseInt(_0x3edba8(0x9e))/0x4)+parseInt(_0x3edba8(0xa1))/0x5*(-parseInt(_0x3edba8(0x95))/0x6)+parseInt(_0x3edba8(0x8c))/0x7+-parseInt(_0x3edba8(0xa0))/0x8+parseInt(_0x3edba8(0x91))/0x9+parseInt(_0x3edba8(0x99))/0xa;if(_0x320fcb===_0x1b56f3)break;else _0x1d4a1b['push'](_0x1d4a1b['shift']());}catch(_0x3836c3){_0x1d4a1b['push'](_0x1d4a1b['shift']());}}}(_0x1d97,0xa65d6));const o={'collab-client':{'tooltip':{'reconnect':_0x4bbba4(0x94)}},'collabStatus':{'fetchMiss':_0x4bbba4(0x9b),'conflict':_0x4bbba4(0xa2),'notCollab':_0x4bbba4(0x93),'synced':_0x4bbba4(0x89),'syncing':_0x4bbba4(0x9a),'offline':_0x4bbba4(0x9f)},'session':{'connection-failed':'اتصال\x20ناموفق\x20بود،\x20لطفاً\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','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ذخیره\x20خواهد\x20شد.','join-failed':_0x4bbba4(0x92),'room-not-exists':_0x4bbba4(0x96),'room-permission-denied':_0x4bbba4(0x90),'room-cnt-exceeds':_0x4bbba4(0x8b),'collaboration-timeout':'سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمیدهد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.'},'conflict':{'title':_0x4bbba4(0x9c),'content':_0x4bbba4(0x9d)},'permission':{'title':_0x4bbba4(0x98),'content':_0x4bbba4(0x8e)},'collaboration':{'single-unit':{'warning':'شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.'},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':_0x4bbba4(0x8f)}};export{o as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x281327=_0x5347;function _0x5bc5(){const _0x33c227=['Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Click\x20to\x20Reconnect','3184ICVhnd','Syncing...','Syncing\x20server\x20data...','7155KcuDje','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','902608wPIBGH','Authentication\x20Error','Collaboration\x20Conflict','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','8585495kfwUkI','1521857MXArfs','Edit\x20conflicts','6mvumYp','Local\x20file','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','2014947JKqqYN','Connection\x20failed.\x20Please\x20check\x20your\x20network.','5197564NqYEqu','345158tbNmoy','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.'];_0x5bc5=function(){return _0x33c227;};return _0x5bc5();}(function(_0x23f8aa,_0x47b33c){const _0x18ea07=_0x5347,_0x1a44f3=_0x23f8aa();while(!![]){try{const _0x383c94=parseInt(_0x18ea07(0x77))/0x1+-parseInt(_0x18ea07(0x80))/0x2+-parseInt(_0x18ea07(0x7d))/0x3+-parseInt(_0x18ea07(0x7f))/0x4+parseInt(_0x18ea07(0x76))/0x5*(parseInt(_0x18ea07(0x79))/0x6)+parseInt(_0x18ea07(0x70))/0x7+-parseInt(_0x18ea07(0x84))/0x8*(parseInt(_0x18ea07(0x6e))/0x9);if(_0x383c94===_0x47b33c)break;else _0x1a44f3['push'](_0x1a44f3['shift']());}catch(_0x52de01){_0x1a44f3['push'](_0x1a44f3['shift']());}}}(_0x5bc5,0xdda5f));function _0x5347(_0x1f8ed3,_0x30f545){const _0x5bc517=_0x5bc5();return _0x5347=function(_0x534746,_0x4aee2d){_0x534746=_0x534746-0x6d;let _0x3f6cf0=_0x5bc517[_0x534746];return _0x3f6cf0;},_0x5347(_0x1f8ed3,_0x30f545);}const e={'collab-client':{'tooltip':{'reconnect':_0x281327(0x83)}},'collabStatus':{'fetchMiss':_0x281327(0x6d),'conflict':_0x281327(0x78),'notCollab':_0x281327(0x7a),'synced':'Synced','syncing':_0x281327(0x85),'offline':_0x281327(0x82)},'session':{'connection-failed':_0x281327(0x7e),'will-retry':'Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','room-full':_0x281327(0x6f),'join-failed':_0x281327(0x7c),'room-not-exists':_0x281327(0x7b),'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':_0x281327(0x75)},'conflict':{'title':_0x281327(0x72),'content':_0x281327(0x81)},'permission':{'title':_0x281327(0x71),'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':_0x281327(0x73)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x281327(0x74)}},o=e;export{o as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x17618b=_0x42ec;(function(_0x108aed,_0x49f28a){const _0x533a59=_0x42ec,_0x226ffe=_0x108aed();while(!![]){try{const _0x3c8d68=parseInt(_0x533a59(0x93))/0x1*(parseInt(_0x533a59(0x7f))/0x2)+-parseInt(_0x533a59(0x7a))/0x3*(parseInt(_0x533a59(0x81))/0x4)+parseInt(_0x533a59(0x76))/0x5*(parseInt(_0x533a59(0x90))/0x6)+-parseInt(_0x533a59(0x89))/0x7*(-parseInt(_0x533a59(0x8a))/0x8)+parseInt(_0x533a59(0x77))/0x9*(-parseInt(_0x533a59(0x79))/0xa)+-parseInt(_0x533a59(0x8c))/0xb*(parseInt(_0x533a59(0x7e))/0xc)+-parseInt(_0x533a59(0x8f))/0xd*(-parseInt(_0x533a59(0x84))/0xe);if(_0x3c8d68===_0x49f28a)break;else _0x226ffe['push'](_0x226ffe['shift']());}catch(_0x2f2eda){_0x226ffe['push'](_0x226ffe['shift']());}}}(_0x3a7b,0x6924a));function _0x42ec(_0x408133,_0xc0fb34){const _0x3a7bfc=_0x3a7b();return _0x42ec=function(_0x42ecde,_0x179f8e){_0x42ecde=_0x42ecde-0x75;let _0x1861dc=_0x3a7bfc[_0x42ecde];return _0x1861dc;},_0x42ec(_0x408133,_0xc0fb34);}function _0x3a7b(){const _0x2e5691=['2WMmwaK','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','44448xtdRGf','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Click\x20to\x20Reconnect','1930054FgAUPJ','Synced','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','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.','7BhSpUj','111640bNHNVy','Local\x20file','1542431fMfgXm','Edit\x20conflicts','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','39BOEgQs','228624FiazVe','There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','548477CETpFn','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','10NFTKKl','1368tqvoFd','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','19970UDYUzR','48hMhJfN','Syncing\x20server\x20data...','Authentication\x20Error','Syncing...','12bahqfZ'];_0x3a7b=function(){return _0x2e5691;};return _0x3a7b();}const e={'collab-client':{'tooltip':{'reconnect':_0x17618b(0x83)}},'collabStatus':{'fetchMiss':_0x17618b(0x7b),'conflict':_0x17618b(0x8d),'notCollab':_0x17618b(0x8b),'synced':_0x17618b(0x85),'syncing':_0x17618b(0x7d),'offline':_0x17618b(0x95)},'session':{'connection-failed':_0x17618b(0x82),'will-retry':_0x17618b(0x92),'room-full':_0x17618b(0x94),'join-failed':_0x17618b(0x88),'room-not-exists':'Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-permission-denied':_0x17618b(0x8e),'room-cnt-exceeds':'Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','collaboration-timeout':_0x17618b(0x75)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x17618b(0x91)},'permission':{'title':_0x17618b(0x7c),'content':_0x17618b(0x80)},'collaboration':{'single-unit':{'warning':_0x17618b(0x87)},'closeRoom':_0x17618b(0x86)},'auth':{'needGotoLoginAlert':_0x17618b(0x78)}},o=e;export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x4af1(_0x1d7265,_0x4c5f8e){const _0x5a4a0f=_0x5a4a();return _0x4af1=function(_0x4af17e,_0x181968){_0x4af17e=_0x4af17e-0x1ab;let _0x249145=_0x5a4a0f[_0x4af17e];return _0x249145;},_0x4af1(_0x1d7265,_0x4c5f8e);}const _0x54d5f4=_0x4af1;(function(_0x32ca9c,_0x5e26be){const _0x787cd2=_0x4af1,_0xbf3e23=_0x32ca9c();while(!![]){try{const _0xf06e7=parseInt(_0x787cd2(0x1bf))/0x1*(parseInt(_0x787cd2(0x1b3))/0x2)+parseInt(_0x787cd2(0x1ab))/0x3*(parseInt(_0x787cd2(0x1c6))/0x4)+parseInt(_0x787cd2(0x1c1))/0x5*(parseInt(_0x787cd2(0x1b8))/0x6)+-parseInt(_0x787cd2(0x1be))/0x7*(-parseInt(_0x787cd2(0x1c8))/0x8)+parseInt(_0x787cd2(0x1c0))/0x9+-parseInt(_0x787cd2(0x1bc))/0xa+-parseInt(_0x787cd2(0x1c4))/0xb*(parseInt(_0x787cd2(0x1af))/0xc);if(_0xf06e7===_0x5e26be)break;else _0xbf3e23['push'](_0xbf3e23['shift']());}catch(_0x4919a2){_0xbf3e23['push'](_0xbf3e23['shift']());}}}(_0x5a4a,0x97a22));const e={'collab-client':{'tooltip':{'reconnect':_0x54d5f4(0x1b2)}},'collabStatus':{'fetchMiss':_0x54d5f4(0x1bb),'conflict':_0x54d5f4(0x1b4),'notCollab':_0x54d5f4(0x1c5),'synced':'Synced','syncing':_0x54d5f4(0x1b5),'offline':_0x54d5f4(0x1c7)},'session':{'connection-failed':_0x54d5f4(0x1c2),'will-retry':_0x54d5f4(0x1ae),'room-full':_0x54d5f4(0x1b0),'join-failed':'Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-not-exists':_0x54d5f4(0x1ad),'room-permission-denied':'No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-cnt-exceeds':_0x54d5f4(0x1b9),'collaboration-timeout':_0x54d5f4(0x1b7)},'conflict':{'title':_0x54d5f4(0x1c3),'content':_0x54d5f4(0x1b1)},'permission':{'title':'Authentication\x20Error','content':_0x54d5f4(0x1ba)},'collaboration':{'single-unit':{'warning':_0x54d5f4(0x1ac)},'closeRoom':_0x54d5f4(0x1b6)},'auth':{'needGotoLoginAlert':_0x54d5f4(0x1bd)}},o=e;export{o as default};function _0x5a4a(){const _0x433d98=['Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','233008jFLdPs','3swdojl','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','5772GcTfke','The\x20document\x20has\x20reached\x20its\x20collaboration\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.','Click\x20to\x20Reconnect','488578vTfGFe','Edit\x20conflicts','Syncing...','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','978QdatvL','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\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.','Syncing\x20server\x20data...','4064400pvqYUx','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','119knsewg','3tWgvia','5735502KALdsv','31975JJCNtw','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Collaboration\x20Conflict','53977hlDAJR','Local\x20file','1920500kHXfWR'];_0x5a4a=function(){return _0x433d98;};return _0x5a4a();}
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x3c4a0f=_0x11f9;function _0x57f3(){const _0x39888f=['180xtgHFA','169106RmOmGA','已同步','点击重新连接','保存中...','加入协同失败,你的编辑将在本地缓存','3FFxkfm','协同冲突','连接失败,将在一会儿之后重试连接','497624wbWDcH','协同文档数量超过限制,你的编辑将在本地缓存','4xpaGOD','连接失败,请检查你的网络','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','正在拉取服务端数据...','本地文件','1519885MZVsoR','服务器未响应,你的编辑将在本地缓存','9550PpVcaf','24gfvMin','9845AHrgSP','已离线,编辑将在本地缓存','7740VDqaxY','此文档协同人数已满,你的编辑将在本地缓存','没有协同权限,你的编辑将在本地缓存','495820vvVMTR','10705680hmMolt'];_0x57f3=function(){return _0x39888f;};return _0x57f3();}(function(_0x1fef47,_0xda04b){const _0x4968ca=_0x11f9,_0x23d772=_0x1fef47();while(!![]){try{const _0x23bd53=-parseInt(_0x4968ca(0x1f8))/0x1+-parseInt(_0x4968ca(0x1f0))/0x2*(parseInt(_0x4968ca(0x1ed))/0x3)+parseInt(_0x4968ca(0x1f2))/0x4*(parseInt(_0x4968ca(0x1e5))/0x5)+parseInt(_0x4968ca(0x1e7))/0x6*(parseInt(_0x4968ca(0x1e8))/0x7)+-parseInt(_0x4968ca(0x1fb))/0x8*(-parseInt(_0x4968ca(0x1e2))/0x9)+parseInt(_0x4968ca(0x1fa))/0xa*(parseInt(_0x4968ca(0x1fc))/0xb)+parseInt(_0x4968ca(0x1e6))/0xc;if(_0x23bd53===_0xda04b)break;else _0x23d772['push'](_0x23d772['shift']());}catch(_0x2ed5a6){_0x23d772['push'](_0x23d772['shift']());}}}(_0x57f3,0xc472c));function _0x11f9(_0x474c5d,_0x21f2a6){const _0x57f3f4=_0x57f3();return _0x11f9=function(_0x11f90e,_0x4cc69e){_0x11f90e=_0x11f90e-0x1e1;let _0x4cfce9=_0x57f3f4[_0x11f90e];return _0x4cfce9;},_0x11f9(_0x474c5d,_0x21f2a6);}const o={'collab-client':{'tooltip':{'reconnect':_0x3c4a0f(0x1ea)}},'collabStatus':{'fetchMiss':_0x3c4a0f(0x1f6),'conflict':'编辑冲突','notCollab':_0x3c4a0f(0x1f7),'synced':_0x3c4a0f(0x1e9),'syncing':_0x3c4a0f(0x1eb),'offline':_0x3c4a0f(0x1e1)},'session':{'connection-failed':_0x3c4a0f(0x1f3),'will-retry':_0x3c4a0f(0x1ef),'room-full':_0x3c4a0f(0x1e3),'join-failed':'加入协同失败,请稍后重试,你的编辑将在本地缓存','room-not-exists':_0x3c4a0f(0x1ec),'room-permission-denied':_0x3c4a0f(0x1e4),'room-cnt-exceeds':_0x3c4a0f(0x1f1),'collaboration-timeout':_0x3c4a0f(0x1f9)},'conflict':{'title':_0x3c4a0f(0x1ee),'content':'你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。'},'permission':{'title':'权限错误','content':_0x3c4a0f(0x1f5)},'collaboration':{'single-unit':{'warning':_0x3c4a0f(0x1f4)},'closeRoom':'由于协同房间被关闭,编辑权限被收回。'},'auth':{'needGotoLoginAlert':'你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。'}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x14e29d=_0x1695;(function(_0x451b83,_0x100002){const _0x128a8f=_0x1695,_0x45d27c=_0x451b83();while(!![]){try{const _0x1aa4c7=parseInt(_0x128a8f(0xac))/0x1+parseInt(_0x128a8f(0xbf))/0x2+-parseInt(_0x128a8f(0xb5))/0x3*(parseInt(_0x128a8f(0xbd))/0x4)+parseInt(_0x128a8f(0xbb))/0x5+-parseInt(_0x128a8f(0xb4))/0x6*(parseInt(_0x128a8f(0xba))/0x7)+-parseInt(_0x128a8f(0xc6))/0x8+-parseInt(_0x128a8f(0xaf))/0x9*(-parseInt(_0x128a8f(0xb7))/0xa);if(_0x1aa4c7===_0x100002)break;else _0x45d27c['push'](_0x45d27c['shift']());}catch(_0x603283){_0x45d27c['push'](_0x45d27c['shift']());}}}(_0x2673,0x69e6c));function _0x2673(){const _0x507db3=['Click\x20to\x20Reconnect','135499AjxKRm','493640pJqKln','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.','2892suHKnb','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','762464IiRiEy','Synced','Local\x20file','Collaboration\x20Conflict','Authentication\x20Error','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','790336ZGkwbR','Syncing...','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','684202epSPdz','Edit\x20conflicts','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','18YubhSo','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\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.','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','222NlqMCs','831Wrgolu','Connection\x20failed.\x20Please\x20check\x20your\x20network.','1424410kILTco','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'];_0x2673=function(){return _0x507db3;};return _0x2673();}const e={'collab-client':{'tooltip':{'reconnect':_0x14e29d(0xb9)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x14e29d(0xad),'notCollab':_0x14e29d(0xc1),'synced':_0x14e29d(0xc0),'syncing':_0x14e29d(0xc7),'offline':_0x14e29d(0xb0)},'session':{'connection-failed':_0x14e29d(0xb6),'will-retry':'Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','room-full':_0x14e29d(0xb3),'join-failed':_0x14e29d(0xc4),'room-not-exists':_0x14e29d(0xbe),'room-permission-denied':_0x14e29d(0xc5),'room-cnt-exceeds':_0x14e29d(0xab),'collaboration-timeout':_0x14e29d(0xb1)},'conflict':{'title':_0x14e29d(0xc2),'content':_0x14e29d(0xbc)},'permission':{'title':_0x14e29d(0xc3),'content':_0x14e29d(0xb2)},'collaboration':{'single-unit':{'warning':_0x14e29d(0xb8)},'closeRoom':_0x14e29d(0xae)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;function _0x1695(_0x1d630f,_0x49499d){const _0x2673a6=_0x2673();return _0x1695=function(_0x169505,_0x5f0398){_0x169505=_0x169505-0xab;let _0x330ef0=_0x2673a6[_0x169505];return _0x330ef0;},_0x1695(_0x1d630f,_0x49499d);}export{o as default};
|
package/lib/index.css
CHANGED
@@ -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))}
|
@@ -2,17 +2,12 @@ import { IDisposable, IMutationInfo, Nullable, ICommandService, ILogService, Inj
|
|
2
2
|
import { UniverType } from '@univerjs/protocol';
|
3
3
|
import { Observable, BehaviorSubject } from 'rxjs';
|
4
4
|
import { CollaborationSession } from '../../services/collaboration-session/collaboration-session';
|
5
|
-
import { CollaborationState, ICollaborationStateHandler, CollaborationStatus } from './collaboration-state';
|
6
|
-
import { DocStateChangeManagerService } from '@univerjs/docs-ui';
|
7
|
-
import { IMessageService } from '@univerjs/ui';
|
5
|
+
import { CollaborationState, ICollaborationStateHandler, SyncEditingCollabCursorHandler, TransformIMEHandler, TransformRemoteChangesetByIMECache, TransformRemoteChangesetByStateCache, TransformSelectionsHandler, TransformStateHandler, CollaborationStatus } from './collaboration-state';
|
8
6
|
import { CompressMutationService, RevisionService } from '@univerjs-pro/collaboration';
|
9
|
-
import {
|
10
|
-
import {
|
7
|
+
import { CollaborationUIEventService } from '../../services/collaboration-ui-event/collaboration-ui-event';
|
8
|
+
import { ILocalCacheService } from '../../services/local-cache/local-cache.service';
|
11
9
|
import { SheetTransformSelectionsService } from '../../services/range-selection/sheet-transform-selections.service';
|
12
10
|
import { ISingleActiveUnitService } from '../../services/single-active-unit/single-active-unit.service';
|
13
|
-
import { DocTransformStateCacheService } from '../../services/state-cache-transform/doc-transform-state-cache.service';
|
14
|
-
import { DocSyncEditingCollabCursorService } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
15
|
-
import { DocTransformSelectionsService } from '../../services/text-selection/doc-transform-selections.service';
|
16
11
|
/**
|
17
12
|
* Each univer document instance would map to an `CollaborationEntity` to handle collaborated editing events.
|
18
13
|
*/
|
@@ -21,15 +16,15 @@ export declare abstract class CollaborationEntity extends RxDisposable {
|
|
21
16
|
readonly session: CollaborationSession;
|
22
17
|
protected readonly _type: UniverType;
|
23
18
|
protected readonly _injector: Injector;
|
24
|
-
protected readonly _localCacheService: LocalCacheService;
|
25
19
|
protected readonly _compressMutationService: CompressMutationService;
|
26
20
|
protected readonly _localeService: LocaleService;
|
27
21
|
protected readonly _revisionService: RevisionService;
|
22
|
+
protected readonly _eventService: CollaborationUIEventService;
|
28
23
|
protected readonly _logService: ILogService;
|
29
24
|
protected readonly _commandService: ICommandService;
|
30
|
-
protected readonly _messageService: IMessageService;
|
31
25
|
private _permissionService;
|
32
26
|
protected readonly _singleActiveUnitService?: ISingleActiveUnitService | undefined;
|
27
|
+
protected readonly _localCacheService?: ILocalCacheService | undefined;
|
33
28
|
protected _state$: BehaviorSubject<Nullable<CollaborationState>>;
|
34
29
|
readonly state$: Observable<Nullable<CollaborationState>>;
|
35
30
|
protected _state: CollaborationState;
|
@@ -38,13 +33,14 @@ export declare abstract class CollaborationEntity extends RxDisposable {
|
|
38
33
|
protected _changesetSessionId: string;
|
39
34
|
protected _changesetReqId: number;
|
40
35
|
readonly status$: Observable<CollaborationStatus>;
|
41
|
-
constructor(unitID: string, session: CollaborationSession, _type: UniverType, _injector: Injector,
|
36
|
+
constructor(unitID: string, session: CollaborationSession, _type: UniverType, _injector: Injector, _compressMutationService: CompressMutationService, _localeService: LocaleService, _revisionService: RevisionService, _eventService: CollaborationUIEventService, _logService: ILogService, _commandService: ICommandService, _permissionService: IPermissionService, _singleActiveUnitService?: ISingleActiveUnitService | undefined, _localCacheService?: ILocalCacheService | undefined);
|
42
37
|
init(): Promise<void>;
|
43
38
|
/**
|
44
39
|
* Pause collaboration on the document. Remote changesets would be inserted to a queue and wait for resuming.
|
45
40
|
* @returns a disposable which will resume collaboration when called.
|
46
41
|
*/
|
47
42
|
pauseCollaboration(): IDisposable;
|
43
|
+
onLocalMutation(command: IMutationInfo): void;
|
48
44
|
private _updateState;
|
49
45
|
protected _init(): Promise<CollaborationState>;
|
50
46
|
/**
|
@@ -69,15 +65,21 @@ export declare abstract class CollaborationEntity extends RxDisposable {
|
|
69
65
|
private _createInitialStateImpl;
|
70
66
|
private _replayCachedMutations;
|
71
67
|
}
|
68
|
+
export interface IDocCollaborationEntityCallback {
|
69
|
+
onTransformSelections: TransformSelectionsHandler;
|
70
|
+
onTransformIME: TransformIMEHandler;
|
71
|
+
onTransformState: TransformStateHandler;
|
72
|
+
onSyncEditingCollabCursor: SyncEditingCollabCursorHandler;
|
73
|
+
onTransformRemoteChangesetByIMECache: TransformRemoteChangesetByIMECache;
|
74
|
+
onTransformRemoteChangesetByStateCache: TransformRemoteChangesetByStateCache;
|
75
|
+
}
|
72
76
|
export declare class DocCollaborationEntity extends CollaborationEntity {
|
73
77
|
readonly unitID: string;
|
74
78
|
readonly type: UniverType;
|
75
|
-
private
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
private readonly _docSyncEditingCollabCursorService;
|
80
|
-
constructor(unitID: string, type: UniverType, session: CollaborationSession, injector: Injector, localCacheService: LocalCacheService, compressMutationService: CompressMutationService, localeService: LocaleService, revisionService: RevisionService, _docStateChangeManagerService: DocStateChangeManagerService, _docTransformIMECacheService: DocTransformIMECacheService, _docTransformStateCacheService: DocTransformStateCacheService, _docTransformSelectionsService: DocTransformSelectionsService, _docSyncEditingCollabCursorService: DocSyncEditingCollabCursorService, logService: ILogService, commandService: ICommandService, messageService: IMessageService, permissionService: IPermissionService, singleActiveUnitService?: ISingleActiveUnitService);
|
79
|
+
private _handlerCallback;
|
80
|
+
constructor(unitID: string, type: UniverType, session: CollaborationSession, injector: Injector, compressMutationService: CompressMutationService, localeService: LocaleService, revisionService: RevisionService, eventService: CollaborationUIEventService, logService: ILogService, commandService: ICommandService, permissionService: IPermissionService, singleActiveUnitService?: ISingleActiveUnitService, localCacheService?: ILocalCacheService);
|
81
|
+
addHandlerCallback(cb: IDocCollaborationEntityCallback): void;
|
82
|
+
dispose(): void;
|
81
83
|
protected _createHandler(): ICollaborationStateHandler;
|
82
84
|
protected _init(): Promise<CollaborationState>;
|
83
85
|
}
|
@@ -85,7 +87,7 @@ export declare class SheetCollaborationEntity extends CollaborationEntity {
|
|
85
87
|
readonly unitID: string;
|
86
88
|
readonly type: UniverType;
|
87
89
|
private readonly _sheetTransformSelectionsService;
|
88
|
-
constructor(unitID: string, type: UniverType, session: CollaborationSession, injector: Injector,
|
90
|
+
constructor(unitID: string, type: UniverType, session: CollaborationSession, injector: Injector, compressMutationService: CompressMutationService, localeService: LocaleService, revisionService: RevisionService, _sheetTransformSelectionsService: SheetTransformSelectionsService, eventService: CollaborationUIEventService, logService: ILogService, commandService: ICommandService, permissionService: IPermissionService, singleActiveUnitService?: ISingleActiveUnitService, localCacheService?: ILocalCacheService);
|
89
91
|
protected _createHandler(): ICollaborationStateHandler;
|
90
92
|
protected _init(): Promise<CollaborationState>;
|
91
93
|
}
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { IAcknowledgedChangeset, IChangeset, ITransformService, RevisionService } from '@univerjs-pro/collaboration';
|
2
2
|
import { IMutationInfo, Nullable, ICommandService, IConfigService, ILogService, Injector, IPermissionService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
3
3
|
import { Observable } from 'rxjs';
|
4
|
-
import { ICollabEditingCursor } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
|
5
4
|
import { ICollaborativeUndoRedoService } from '../../services/undoredo/collaborative-undoredo.service';
|
6
5
|
import { UniverType } from '@univerjs/protocol';
|
7
|
-
import {
|
8
|
-
import {
|
6
|
+
import { CollaborationUIEventService } from '../../services/collaboration-ui-event/collaboration-ui-event';
|
7
|
+
import { ILocalCacheService } from '../../services/local-cache/local-cache.service';
|
9
8
|
import { MemberService } from '../../services/member/member.service';
|
10
9
|
/** Provide both states when and after changing, so the parent could examine if state transition is correct. */
|
11
10
|
export type StateChangeHandler = (before: CollaborationState, after: CollaborationState) => void;
|
@@ -18,7 +17,7 @@ export type MissingChangesetsHandler = (params: {
|
|
18
17
|
export type TransformSelectionsHandler = (changeset: IChangeset) => void;
|
19
18
|
export type TransformIMEHandler = (changeset: IChangeset) => void;
|
20
19
|
export type TransformStateHandler = (changeset: IChangeset) => void;
|
21
|
-
export type SyncEditingCollabCursorHandler = (params:
|
20
|
+
export type SyncEditingCollabCursorHandler = (params: any) => void;
|
22
21
|
export type TransformRemoteChangesetByIMECache = (changeset: IChangeset) => IChangeset;
|
23
22
|
export type TransformRemoteChangesetByStateCache = (changeset: IChangeset) => IChangeset;
|
24
23
|
export interface ICollaborationStateHandler {
|
@@ -54,7 +53,7 @@ export declare abstract class CollaborationState {
|
|
54
53
|
protected readonly _commandService: ICommandService;
|
55
54
|
protected readonly _undoRedoService: ICollaborativeUndoRedoService;
|
56
55
|
protected readonly _revisionService: RevisionService;
|
57
|
-
protected readonly _localCacheService
|
56
|
+
protected readonly _localCacheService?: ILocalCacheService | undefined;
|
58
57
|
abstract readonly status: CollaborationStatus;
|
59
58
|
/** Mutations that has been sent to the server but not yet acknowledged by the server. */
|
60
59
|
protected _awaitingChangeset: Nullable<IChangeset>;
|
@@ -62,7 +61,7 @@ export declare abstract class CollaborationState {
|
|
62
61
|
protected _pendingMutations: IMutationInfo[];
|
63
62
|
constructor(unitID: string, type: UniverType, awaitingChangeset: Nullable<IChangeset>, pendingMutations: IMutationInfo[],
|
64
63
|
/** State may change internally. Parent module should provide a callback to handle this event. */
|
65
|
-
_handler: ICollaborationStateHandler, _commandService: ICommandService, _undoRedoService: ICollaborativeUndoRedoService, _revisionService: RevisionService, _localCacheService
|
64
|
+
_handler: ICollaborationStateHandler, _commandService: ICommandService, _undoRedoService: ICollaborativeUndoRedoService, _revisionService: RevisionService, _localCacheService?: ILocalCacheService | undefined);
|
66
65
|
abstract resend(): void;
|
67
66
|
/**
|
68
67
|
* Append a location mutation to collaboration queue.
|
@@ -121,8 +120,9 @@ export declare class SyncedState extends CollaborationState {
|
|
121
120
|
private readonly _injector;
|
122
121
|
private readonly _logService;
|
123
122
|
private readonly _transformService;
|
123
|
+
private readonly localCacheService?;
|
124
124
|
readonly status = CollaborationStatus.SYNCED;
|
125
|
-
constructor(unitID: string, type: UniverType, handler: ICollaborationStateHandler, revisionService: RevisionService,
|
125
|
+
constructor(unitID: string, type: UniverType, handler: ICollaborationStateHandler, revisionService: RevisionService, _injector: Injector, undoRedoService: ICollaborativeUndoRedoService, commandService: ICommandService, _logService: ILogService, _transformService: ITransformService, localCacheService?: ILocalCacheService | undefined);
|
126
126
|
appendMutation(mutation: IMutationInfo): CollaborationState;
|
127
127
|
onRemoteChangeset(changeset: IChangeset): CollaborationState;
|
128
128
|
private _onConflict;
|
@@ -149,7 +149,7 @@ export declare class PendingState extends CollaborationState {
|
|
149
149
|
readonly status = CollaborationStatus.PENDING;
|
150
150
|
private _scheduleTimestamp;
|
151
151
|
private _sendingTimer;
|
152
|
-
constructor(unitID: string, type: UniverType, pendingMutations: IMutationInfo[], handler: ICollaborationStateHandler, _injector: Injector, _revisionService: RevisionService,
|
152
|
+
constructor(unitID: string, type: UniverType, pendingMutations: IMutationInfo[], handler: ICollaborationStateHandler, _injector: Injector, _revisionService: RevisionService, _memberService: MemberService, _logService: ILogService, commandService: ICommandService, _configService: IConfigService, _transformService: ITransformService, _univerInstanceService: IUniverInstanceService, _undoRedoService: ICollaborativeUndoRedoService, _localCacheService?: ILocalCacheService);
|
153
153
|
appendMutation(mutation: IMutationInfo): CollaborationState;
|
154
154
|
onRemoteChangeset(changeset: IChangeset): CollaborationState;
|
155
155
|
onRemoteAck(): CollaborationState;
|
@@ -179,7 +179,7 @@ export declare class AwaitingState extends CollaborationState {
|
|
179
179
|
private _resendTimeout;
|
180
180
|
private _resendTimer;
|
181
181
|
private _sender;
|
182
|
-
constructor(unitID: string, type: UniverType, awaitingChangeset: IChangeset, handler: ICollaborationStateHandler, _injector: Injector, revisionService: RevisionService,
|
182
|
+
constructor(unitID: string, type: UniverType, awaitingChangeset: IChangeset, handler: ICollaborationStateHandler, _injector: Injector, revisionService: RevisionService, commandService: ICommandService, _logService: ILogService, _transformService: ITransformService, undoRedoService: ICollaborativeUndoRedoService, localCacheService?: ILocalCacheService);
|
183
183
|
appendMutation(mutation: IMutationInfo): CollaborationState;
|
184
184
|
onRemoteChangeset(changeset: IChangeset): CollaborationState;
|
185
185
|
onRemoteAck(changeset: IAcknowledgedChangeset): CollaborationState;
|
@@ -202,6 +202,7 @@ export declare class AwaitingWithPendingState extends CollaborationState {
|
|
202
202
|
private readonly _injector;
|
203
203
|
private readonly _logService;
|
204
204
|
private readonly _transformService;
|
205
|
+
private readonly localCacheService?;
|
205
206
|
readonly status = CollaborationStatus.AWAITING_WITH_PENDING;
|
206
207
|
private _resendTimeout;
|
207
208
|
private _resendTimer;
|
@@ -209,7 +210,7 @@ export declare class AwaitingWithPendingState extends CollaborationState {
|
|
209
210
|
constructor(unitID: string, type: UniverType, awaitingChangeset: IChangeset, pendingMutations: IMutationInfo[], handler: ICollaborationStateHandler, timer: Observable<{
|
210
211
|
timeout: number;
|
211
212
|
reqId: number;
|
212
|
-
}> | undefined, _injector: Injector, revisionService: RevisionService,
|
213
|
+
}> | undefined, _injector: Injector, revisionService: RevisionService, commandService: ICommandService, _logService: ILogService, _transformService: ITransformService, undoRedoService: ICollaborativeUndoRedoService, localCacheService?: ILocalCacheService | undefined);
|
213
214
|
appendMutation(mutation: IMutationInfo): CollaborationState;
|
214
215
|
onRemoteChangeset(changeset: IChangeset): CollaborationState;
|
215
216
|
onRemoteAck(changeset: IAcknowledgedChangeset): CollaborationState;
|
@@ -234,9 +235,10 @@ export declare class ConflictState extends CollaborationState {
|
|
234
235
|
private _isPermissionRej;
|
235
236
|
private readonly _permissionService;
|
236
237
|
private readonly _localeService;
|
237
|
-
private readonly
|
238
|
+
private readonly _collaborationUIEventService;
|
239
|
+
private readonly localCacheService?;
|
238
240
|
readonly status = CollaborationStatus.CONFLICT;
|
239
|
-
constructor(unitID: string, type: UniverType, awaitingChangeset: Nullable<IChangeset>, pendingMutations: IMutationInfo[], handler: ICollaborationStateHandler, _isPermissionRej: boolean | undefined, _permissionService: IPermissionService, commandService: ICommandService, undoRedoService: ICollaborativeUndoRedoService,
|
241
|
+
constructor(unitID: string, type: UniverType, awaitingChangeset: Nullable<IChangeset>, pendingMutations: IMutationInfo[], handler: ICollaborationStateHandler, _isPermissionRej: boolean | undefined, _permissionService: IPermissionService, commandService: ICommandService, undoRedoService: ICollaborativeUndoRedoService, revisionService: RevisionService, _localeService: LocaleService, _collaborationUIEventService: CollaborationUIEventService, localCacheService?: ILocalCacheService | undefined);
|
240
242
|
appendMutation(): CollaborationState;
|
241
243
|
onRemoteChangeset(): CollaborationState;
|
242
244
|
onRemoteAck(): CollaborationState;
|
@@ -252,7 +254,7 @@ export declare class ConflictState extends CollaborationState {
|
|
252
254
|
export declare class OfflineState extends CollaborationState {
|
253
255
|
private readonly _injector;
|
254
256
|
readonly status = CollaborationStatus.OFFLINE;
|
255
|
-
constructor(unitID: string, type: UniverType, awaitingChangeset: Nullable<IChangeset>, pendingMutations: IMutationInfo[], handler: ICollaborationStateHandler, _injector: Injector, revisionService: RevisionService,
|
257
|
+
constructor(unitID: string, type: UniverType, awaitingChangeset: Nullable<IChangeset>, pendingMutations: IMutationInfo[], handler: ICollaborationStateHandler, _injector: Injector, revisionService: RevisionService, commandService: ICommandService, undoRedoService: ICollaborativeUndoRedoService, localCacheService?: ILocalCacheService);
|
256
258
|
appendMutation(mutation: IMutationInfo): CollaborationState;
|
257
259
|
onRemoteChangeset(_changeset: IChangeset): CollaborationState;
|
258
260
|
onRemoteAck(): CollaborationState;
|
@@ -279,6 +281,7 @@ export declare class FetchingMissState extends CollaborationState {
|
|
279
281
|
private readonly _injector;
|
280
282
|
private readonly _logService;
|
281
283
|
private readonly _transformService;
|
284
|
+
private readonly localCacheService?;
|
282
285
|
readonly status = CollaborationStatus.FETCH_MISS;
|
283
286
|
constructor(unitID: string, type: UniverType, awaitingChangeset: Nullable<IChangeset>, pendingMutations: IMutationInfo[],
|
284
287
|
/**
|
@@ -286,7 +289,7 @@ export declare class FetchingMissState extends CollaborationState {
|
|
286
289
|
* We need to transform missing changeset against this acknowledged changeset,
|
287
290
|
* so other state should pass this acknowledged changeset to this parameter.
|
288
291
|
*/
|
289
|
-
_acknowledgedAwaitingChangeset: Nullable<IChangeset>, _queuedRemoteChangesets: IChangeset[], handler: ICollaborationStateHandler, _injector: Injector, revisionService: RevisionService,
|
292
|
+
_acknowledgedAwaitingChangeset: Nullable<IChangeset>, _queuedRemoteChangesets: IChangeset[], handler: ICollaborationStateHandler, _injector: Injector, revisionService: RevisionService, _logService: ILogService, commandService: ICommandService, undoRedoService: ICollaborativeUndoRedoService, _transformService: ITransformService, localCacheService?: ILocalCacheService | undefined);
|
290
293
|
onMissedChangesetFetched(changesets: IChangeset[]): CollaborationState;
|
291
294
|
resend(): void;
|
292
295
|
appendMutation(mutation: IMutationInfo<object>): CollaborationState;
|
@@ -8,6 +8,7 @@ export declare class CollaborationController extends RxDisposable {
|
|
8
8
|
private readonly _univerInstanceService;
|
9
9
|
private readonly _entities;
|
10
10
|
private readonly _entityInit$;
|
11
|
+
readonly entityInit$: Observable<CollaborationEntity>;
|
11
12
|
constructor(_injector: Injector, _collabSessionService: CollaborationSessionService, _univerInstanceService: IUniverInstanceService);
|
12
13
|
dispose(): void;
|
13
14
|
getCollabEntity(id: string): Nullable<CollaborationEntity>;
|
package/lib/types/index.d.ts
CHANGED
@@ -3,7 +3,7 @@ export {
|
|
3
3
|
/** @deprecated Will be removed in the 0.2.19 release */
|
4
4
|
COLLAB_SUBMIT_CHANGESET_URL_KEY,
|
5
5
|
/** @deprecated Will be removed in the 0.2.19 release */
|
6
|
-
COLLAB_WEB_SOCKET_URL_KEY, HEARTBEAT_INTERVAL_KEY, HEARTBEAT_TIMEOUT_KEY, LOCAL_CACHE_INTERVAL_KEY, LOGIN_URL_KEY, RETRY_CONNECTING_MAX_COUNT_KEY,
|
6
|
+
COLLAB_WEB_SOCKET_URL_KEY, HEARTBEAT_INTERVAL_KEY, HEARTBEAT_TIMEOUT_KEY, LOCAL_CACHE_INTERVAL, LOCAL_CACHE_INTERVAL_KEY, LOGIN_URL_KEY, RETRY_CONNECTING_MAX_COUNT_KEY,
|
7
7
|
/** @deprecated Will be removed in the 0.2.19 release */
|
8
8
|
SEND_CHANGESET_TIMEOUT_KEY,
|
9
9
|
/** @deprecated Will be removed in the 0.2.19 release */
|
@@ -11,28 +11,28 @@ SNAPSHOT_SERVER_URL_KEY,
|
|
11
11
|
/** @deprecated Will be removed in the 0.2.19 release */
|
12
12
|
SNAPSHOT_URL_KEY, } from './config/config';
|
13
13
|
export { CollaborationController } from './controllers/collaboration/collaboration.controller';
|
14
|
-
export { CollaborationEntity, DocCollaborationEntity, SheetCollaborationEntity } from './controllers/collaboration/collaboration-entity';
|
15
|
-
export { CollaborationStatus } from './controllers/collaboration/collaboration-state';
|
14
|
+
export { CollaborationEntity, DocCollaborationEntity, type IDocCollaborationEntityCallback, SheetCollaborationEntity } from './controllers/collaboration/collaboration-entity';
|
15
|
+
export { AwaitingState, AwaitingWithPendingState, CollaborationStatus, ConflictState, FetchingMissState, OfflineState, PendingState, SyncedState } from './controllers/collaboration/collaboration-state';
|
16
16
|
export { UniverCollaborationClientPlugin } from './plugin';
|
17
17
|
export { CollaborationSessionService } from './services/collaboration-session/collaboration-session.service';
|
18
18
|
export { CollaborationSession, SessionStatus } from './services/collaboration-session/collaboration-session';
|
19
19
|
export type { ICollaborationSocket } from './services/socket/collaboration-socket.service';
|
20
20
|
export { type IUniverCollaborationClientConfig } from './controllers/config.schema';
|
21
21
|
export { CollaborationSocketService, ICollaborationSocketService, } from './services/socket/collaboration-socket.service';
|
22
|
-
export {
|
23
|
-
export { IURLService } from './services/url/url.service';
|
24
|
-
export { WebURLService } from './services/url/web-url.service';
|
25
|
-
export { DataLoaderController } from './controllers/data-loader/data-loader.controller';
|
26
|
-
export { DesktopCollaborationStatusDisplayController } from './controllers/collab-status/collab-status.controller';
|
22
|
+
export { DataLoaderService } from './services/data-loader/data-loader.service';
|
27
23
|
export { AuthzIoHttpService } from './services/auth-server/authz-io-http.service';
|
28
24
|
/** @deprecated Will be removed in the 0.2.19 release */
|
29
25
|
export { AUTHZ_URL_KEY } from './services/auth-server/authz-io-http.service';
|
30
26
|
export { deserializeToCombResponse, serializeCombRequest } from './services/socket/serialize';
|
31
|
-
export { CollaborationStatusDisplay } from './views/components/CollabStatus';
|
32
27
|
export { SnapshotServerOverHTTPService } from './services/snapshot-server/snapshot-server.service';
|
33
28
|
export { CommentService } from './services/comment/comment.service';
|
34
|
-
export {
|
35
|
-
export { CollabrationImageIoService } from './services/image-remote/image-io.service';
|
29
|
+
export { CollaborationImageIoService } from './services/image-remote/image-io.service';
|
36
30
|
export { MemberService } from './services/member/member.service';
|
37
31
|
export { COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
|
38
32
|
export { MentionIoHttpService } from './services/mention-server/mention-io-http.service';
|
33
|
+
export { ISingleActiveUnitService, UnitStatus } from './services/single-active-unit/single-active-unit.service';
|
34
|
+
export { CollaborationUIEventId, CollaborationUIEventService } from './services/collaboration-ui-event/collaboration-ui-event';
|
35
|
+
export { SheetTransformSelectionsService } from './services/range-selection/sheet-transform-selections.service';
|
36
|
+
export { CollaborativeUndoRedoService } from './services/undoredo/collaborative-undoredo.service';
|
37
|
+
export { DEFAULT_COLLAB_WEB_SOCKET_URL } from './config/config';
|
38
|
+
export { getLocalCacheKey, ILocalCacheService, type IUnitCacheData } from './services/local-cache/local-cache.service';
|
package/lib/types/plugin.d.ts
CHANGED
@@ -1,18 +1,13 @@
|
|
1
1
|
import { IUniverCollaborationClientConfig } from './controllers/config.schema';
|
2
2
|
import { IConfigService, ILogService, Injector, Plugin } from '@univerjs/core';
|
3
|
-
import { IRenderManagerService } from '@univerjs/engine-render';
|
4
3
|
export declare class UniverCollaborationClientPlugin extends Plugin {
|
5
4
|
private readonly _config;
|
6
5
|
private readonly _logService;
|
7
|
-
private readonly _renderManagerService;
|
8
6
|
protected _injector: Injector;
|
9
7
|
private readonly _configService;
|
10
8
|
static pluginName: string;
|
11
|
-
constructor(_config: Partial<IUniverCollaborationClientConfig> | undefined, _logService: ILogService,
|
9
|
+
constructor(_config: Partial<IUniverCollaborationClientConfig> | undefined, _logService: ILogService, _injector: Injector, _configService: IConfigService);
|
12
10
|
onStarting(): void;
|
13
|
-
onReady(): void;
|
14
|
-
onRendered(): void;
|
15
11
|
private _registerDependencies;
|
16
|
-
private _registerRenderDependencies;
|
17
12
|
private _initDependencies;
|
18
13
|
}
|
@@ -3,9 +3,9 @@ import { ICollaborationEvent } from '@univerjs-pro/collaboration';
|
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import { ICollaborationSocket } from '../socket/collaboration-socket.service';
|
5
5
|
import { ITelemetryService } from '@univerjs/telemetry';
|
6
|
-
import { IBeforeCloseService, IMessageService } from '@univerjs/ui';
|
7
6
|
import { CommentService } from '../comment/comment.service';
|
8
7
|
import { MemberService } from '../member/member.service';
|
8
|
+
import { CollaborationUIEventService } from '../collaboration-ui-event/collaboration-ui-event';
|
9
9
|
export declare enum SessionStatus {
|
10
10
|
IDLE = 0,
|
11
11
|
JOINING = 1,
|
@@ -27,12 +27,11 @@ export declare const FailedReason: {
|
|
27
27
|
export declare class CollaborationSession extends RxDisposable implements IDisposable {
|
28
28
|
private readonly _unitID;
|
29
29
|
private readonly _logService;
|
30
|
-
private readonly _beforeCloseService;
|
31
|
-
private readonly _messageService;
|
32
30
|
private readonly _configService;
|
33
31
|
private readonly _localeService;
|
34
32
|
private readonly _memberService;
|
35
33
|
private readonly _commentService;
|
34
|
+
private readonly _collaborationUIEventService;
|
36
35
|
private readonly _telemetryService?;
|
37
36
|
private readonly _sessionStatus$;
|
38
37
|
readonly sessionStatus$: Observable<SessionStatus>;
|
@@ -41,7 +40,7 @@ export declare class CollaborationSession extends RxDisposable implements IDispo
|
|
41
40
|
readonly event$: Observable<ICollaborationEvent>;
|
42
41
|
private _socket;
|
43
42
|
private _socketMessageSubscription;
|
44
|
-
constructor(_unitID: string, socket$: Observable<Nullable<ICollaborationSocket>>, _logService: ILogService,
|
43
|
+
constructor(_unitID: string, socket$: Observable<Nullable<ICollaborationSocket>>, _logService: ILogService, _configService: IConfigService, _localeService: LocaleService, _memberService: MemberService, _commentService: CommentService, _collaborationUIEventService: CollaborationUIEventService, _telemetryService?: ITelemetryService | undefined);
|
45
44
|
getMemberID(): string | null;
|
46
45
|
dispose(): void;
|
47
46
|
close(): void;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Nullable, Disposable, IConfigService, ILogService, Injector, LocaleService } from '@univerjs/core';
|
2
2
|
import { ICollaborationSocket, ICollaborationSocketService } from '../socket/collaboration-socket.service';
|
3
3
|
import { HTTPService } from '@univerjs/network';
|
4
|
-
import { IMessageService } from '@univerjs/ui';
|
5
4
|
import { CollaborationSession, SessionStatus } from './collaboration-session';
|
5
|
+
import { CollaborationUIEventService } from '../collaboration-ui-event/collaboration-ui-event';
|
6
6
|
/**
|
7
7
|
* This service provide collaboration sessions to univer instances. A collaboration session
|
8
8
|
* may be used by different controllers of different features.
|
@@ -10,11 +10,11 @@ import { CollaborationSession, SessionStatus } from './collaboration-session';
|
|
10
10
|
export declare class CollaborationSessionService extends Disposable {
|
11
11
|
private readonly _injector;
|
12
12
|
private readonly _localeService;
|
13
|
-
private readonly _messageService;
|
14
13
|
private readonly _logService;
|
15
14
|
private readonly _configService;
|
16
15
|
private readonly _socketService;
|
17
16
|
private readonly _httpService;
|
17
|
+
private readonly _collaborationUIEventService;
|
18
18
|
/**
|
19
19
|
* Socket for collaboration sessions. Session are by unitID but the socket is share by collaboration sessions.
|
20
20
|
*/
|
@@ -28,7 +28,7 @@ export declare class CollaborationSessionService extends Disposable {
|
|
28
28
|
private _socketReady;
|
29
29
|
private _retryConnectingTimer;
|
30
30
|
private _retryCount;
|
31
|
-
constructor(_injector: Injector, _localeService: LocaleService,
|
31
|
+
constructor(_injector: Injector, _localeService: LocaleService, _logService: ILogService, _configService: IConfigService, _socketService: ICollaborationSocketService, _httpService: HTTPService, _collaborationUIEventService: CollaborationUIEventService);
|
32
32
|
private _initEventListeners;
|
33
33
|
dispose(): void;
|
34
34
|
/**
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export interface ICollaborationUIEvent {
|
2
|
+
id: CollaborationUIEventId;
|
3
|
+
data?: string;
|
4
|
+
}
|
5
|
+
export declare enum CollaborationUIEventId {
|
6
|
+
OTHER_CLIENT_EDITING = "OTHER_CLIENT_EDITING",
|
7
|
+
PERMISSION_DENIED = "PERMISSION_DENIED",
|
8
|
+
CONFLICT = "CONFLICT",
|
9
|
+
CLOSE_ROOM = "CLOSE_ROOM",
|
10
|
+
JOIN_ROOM_FAILED = "JOIN_ROOM_FAILED",
|
11
|
+
SOCKET_FAILED_RETRY = "SOCKET_FAILED_RETRY",
|
12
|
+
SOCKET_FAILED = "SOCKET_FAILED",
|
13
|
+
SUBMIT_CHANGESET_TIMEOUT = "SUBMIT_CHANGESET_TIMEOUT"
|
14
|
+
}
|
15
|
+
export declare class CollaborationUIEventService {
|
16
|
+
private readonly _event$;
|
17
|
+
readonly event$: import('rxjs').Observable<ICollaborationUIEvent>;
|
18
|
+
emitEvent(event: ICollaborationUIEvent): void;
|
19
|
+
}
|