@univerjs-pro/collaboration-client 0.5.1 → 0.5.2-nightly.202412291605
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -0
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/types/config/config.d.ts +7 -2
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +20 -18
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +18 -15
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +2 -0
- package/lib/types/facade/f-collaboration.d.ts +33 -0
- package/lib/types/facade/f-univer.d.ts +12 -0
- package/lib/types/facade/index.d.ts +2 -0
- package/lib/types/index.d.ts +12 -12
- package/lib/types/plugin.d.ts +1 -6
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +4 -5
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +7 -8
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +19 -0
- package/lib/types/services/data-loader/data-loader.service.d.ts +23 -0
- package/lib/types/services/image-remote/image-io.service.d.ts +1 -1
- package/lib/types/services/local-cache/local-cache.service.d.ts +7 -23
- package/lib/types/services/member/member.service.d.ts +6 -0
- package/lib/types/services/network-condition/network-condition.service.d.ts +6 -0
- package/lib/types/services/permission/permission.service.d.ts +8 -3
- package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +0 -24
- package/lib/types/services/socket/collaboration-socket.service.d.ts +4 -4
- package/lib/umd/facade.js +1 -0
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +23 -21
- package/lib/index.css +0 -1
- package/lib/types/controllers/clipboard/docs/image/image-paste.controller.d.ts +0 -9
- package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +0 -23
- package/lib/types/controllers/collab-cursor/__tests__/serialize-text-ranges.spec.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/__tests__/sheet-collab-cursor.controller.spec.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +0 -22
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +0 -38
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +0 -24
- package/lib/types/controllers/collab-cursor/serialize-text-ranges.d.ts +0 -3
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +0 -39
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/controllers/collab-status/collab-status.controller.d.ts +0 -18
- package/lib/types/controllers/collaboration/__tests__/collaboration.controller.spec.d.ts +0 -4
- package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -0
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +0 -58
- package/lib/types/controllers/data-loader/__tests__/data-loader.controller.spec.d.ts +0 -1
- package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -22
- package/lib/types/models/cursor.d.ts +0 -30
- package/lib/types/services/color-assign/color-assign.service.d.ts +0 -10
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +0 -13
- package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +0 -12
- package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +0 -13
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +0 -8
- package/lib/types/services/url/url.service.d.ts +0 -12
- package/lib/types/services/url/web-url.service.d.ts +0 -10
- package/lib/types/views/components/CollabStatus.d.ts +0 -10
- package/lib/types/views/components/CollabStatus.stories.d.ts +0 -8
- package/lib/types/views/shapes/doc-collab-cursor.d.ts +0 -27
- package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +0 -27
- package/lib/types/views/shapes/text-bubble.shape.d.ts +0 -19
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x241d(_0x357cdb,_0x5b65e9){const _0x21ddd9=_0x21dd();return _0x241d=function(_0x241d0b,_0x55b621){_0x241d0b=_0x241d0b-0x1cc;let _0xb5a404=_0x21ddd9[_0x241d0b];return _0xb5a404;},_0x241d(_0x357cdb,_0x5b65e9);}const _0x1b9b71=_0x241d;(function(_0x5b5481,_0x2fcd18){const _0x3cd6ba=_0x241d,_0x1db67c=_0x5b5481();while(!![]){try{const _0x2d4ef9=parseInt(_0x3cd6ba(0x1e4))/0x1*(-parseInt(_0x3cd6ba(0x1cd))/0x2)+parseInt(_0x3cd6ba(0x1d5))/0x3+-parseInt(_0x3cd6ba(0x1d9))/0x4*(parseInt(_0x3cd6ba(0x1d7))/0x5)+-parseInt(_0x3cd6ba(0x1d0))/0x6*(parseInt(_0x3cd6ba(0x1d8))/0x7)+parseInt(_0x3cd6ba(0x1dc))/0x8+-parseInt(_0x3cd6ba(0x1d1))/0x9+parseInt(_0x3cd6ba(0x1e3))/0xa;if(_0x2d4ef9===_0x2fcd18)break;else _0x1db67c['push'](_0x1db67c['shift']());}catch(_0x1042a9){_0x1db67c['push'](_0x1db67c['shift']());}}}(_0x21dd,0x74973));function _0x21dd(){const _0x584886=['Syncing\x20server\x20data...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','3519402iEsGjT','5352309KFjFgh','Edit\x20conflicts','Click\x20to\x20Reconnect','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','120522ljJGcK','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','3249245RUNCSr','7yZsnES','4yBeAXu','Synced','Local\x20file','17096dCOKfg','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','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','Connection\x20failed.\x20Please\x20check\x20your\x20network.','26476720DIxDDF','133VshVut','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.','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','5734JXMrfR'];_0x21dd=function(){return _0x584886;};return _0x21dd();}const e={'collab-client':{'tooltip':{'reconnect':_0x1b9b71(0x1d3)}},'collabStatus':{'fetchMiss':_0x1b9b71(0x1ce),'conflict':_0x1b9b71(0x1d2),'notCollab':_0x1b9b71(0x1db),'synced':_0x1b9b71(0x1da),'syncing':'Syncing...','offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x1b9b71(0x1e2),'will-retry':_0x1b9b71(0x1df),'room-full':_0x1b9b71(0x1e8),'join-failed':_0x1b9b71(0x1d6),'room-not-exists':_0x1b9b71(0x1e7),'room-permission-denied':_0x1b9b71(0x1dd),'room-cnt-exceeds':_0x1b9b71(0x1cc),'collaboration-timeout':_0x1b9b71(0x1d4)},'conflict':{'title':_0x1b9b71(0x1e1),'content':_0x1b9b71(0x1e0)},'permission':{'title':_0x1b9b71(0x1e5),'content':_0x1b9b71(0x1e6)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x1b9b71(0x1de)},'auth':{'needGotoLoginAlert':_0x1b9b71(0x1cf)}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x48ab7c=_0xe363;(function(_0x5c9786,_0x2e9889){const _0x5ed3b7=_0xe363,_0x257808=_0x5c9786();while(!![]){try{const _0x3680a5=-parseInt(_0x5ed3b7(0x167))/0x1+-parseInt(_0x5ed3b7(0x15f))/0x2*(-parseInt(_0x5ed3b7(0x161))/0x3)+parseInt(_0x5ed3b7(0x154))/0x4+parseInt(_0x5ed3b7(0x153))/0x5*(-parseInt(_0x5ed3b7(0x162))/0x6)+parseInt(_0x5ed3b7(0x155))/0x7+parseInt(_0x5ed3b7(0x157))/0x8+parseInt(_0x5ed3b7(0x15d))/0x9;if(_0x3680a5===_0x2e9889)break;else _0x257808['push'](_0x257808['shift']());}catch(_0x280498){_0x257808['push'](_0x257808['shift']());}}}(_0x2fba,0x20301));const o={'collab-client':{'tooltip':{'reconnect':_0x48ab7c(0x15a)}},'collabStatus':{'fetchMiss':_0x48ab7c(0x168),'conflict':'تداخل\x20ویرایش','notCollab':'پرونده\x20محلی','synced':_0x48ab7c(0x15c),'syncing':_0x48ab7c(0x156),'offline':_0x48ab7c(0x15b)},'session':{'connection-failed':_0x48ab7c(0x163),'will-retry':_0x48ab7c(0x158),'room-full':_0x48ab7c(0x165),'join-failed':_0x48ab7c(0x166),'room-not-exists':_0x48ab7c(0x164),'room-permission-denied':_0x48ab7c(0x159),'room-cnt-exceeds':'تعداد\x20اسناد\x20همکاری\x20از\x20حد\x20مجاز\x20فراتر\x20رفته\x20است.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.','collaboration-timeout':'سرور\x20به\x20درخواست\x20همکاری\x20شما\x20پاسخ\x20نمیدهد.\x20ویرایشهای\x20شما\x20به\x20صورت\x20محلی\x20ذخیره\x20خواهد\x20شد.'},'conflict':{'title':_0x48ab7c(0x169),'content':'یک\x20تداخل\x20بین\x20نسخه\x20محلی\x20شما\x20و\x20نسخه\x20در\x20سرور\x20وجود\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20ذخیره\x20کنید،\x20زیرا\x20آنها\x20پس\x20از\x20بازیابی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'permission':{'title':'خطای\x20اعتبارسنجی','content':'اعمال\x20شما\x20با\x20مجوزهای\x20سرور\x20تداخل\x20دارد.\x20لطفاً\x20ویرایش\x20های\x20محلی\x20خود\x20را\x20در\x20جای\x20دیگر\x20ذخیره\x20کنید\x20زیرا\x20پس\x20از\x20تازه\x20سازی\x20صفحه\x20از\x20بین\x20خواهند\x20رفت.'},'collaboration':{'single-unit':{'warning':_0x48ab7c(0x15e)},'closeRoom':_0x48ab7c(0x160)},'auth':{'needGotoLoginAlert':'ورود\x20شم\x20منقضی\x20شده\x20است،\x20برای\x20ورود\x20مجدد\x20کلیک\x20کنید،\x20برای\x20ذخیره\x20ویرایش\x20های\x20محلی\x20خود\x20کلیک\x20کنید.'}};function _0xe363(_0x16b280,_0x34e0a8){const _0x2fba50=_0x2fba();return _0xe363=function(_0xe363e0,_0x126a75){_0xe363e0=_0xe363e0-0x153;let _0x28cf10=_0x2fba50[_0xe363e0];return _0x28cf10;},_0xe363(_0x16b280,_0x34e0a8);}export{o as default};function _0x2fba(){const _0x3d1f71=['پیوستن\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شد.','204514KWiOqb','در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','تداخل\x20همکاری','5IcZntI','33092gkPkQy','497777NwOafV','در\x20حال\x20همگام\x20سازی...','495088VMCCjm','اتصال\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سازی','2852541zFxCUp','شما\x20همان\x20پرونده\x20را\x20در\x20یک\x20تب\x20دیگر\x20باز\x20کرده\x20اید.\x20در\x20صورت\x20عدم\x20وجود\x20داده،\x20نمی\x20توانید\x20در\x20این\x20تب\x20ویرایش\x20کنید.','76RYmtPr','امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.','2409LdkELB','914268xqrBKn','اتصال\x20ناموفق\x20بود،\x20لطفاً\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.'];_0x2fba=function(){return _0x3d1f71;};return _0x2fba();}
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x4ef816=_0x543f;(function(_0x8120dd,_0x370837){const _0x4e471c=_0x543f,_0x4159b1=_0x8120dd();while(!![]){try{const _0x51e972=-parseInt(_0x4e471c(0xad))/0x1+-parseInt(_0x4e471c(0xb8))/0x2*(-parseInt(_0x4e471c(0xb1))/0x3)+parseInt(_0x4e471c(0xa7))/0x4+-parseInt(_0x4e471c(0xb0))/0x5*(parseInt(_0x4e471c(0xae))/0x6)+-parseInt(_0x4e471c(0xb2))/0x7+parseInt(_0x4e471c(0xa4))/0x8*(parseInt(_0x4e471c(0xb7))/0x9)+-parseInt(_0x4e471c(0xb6))/0xa;if(_0x51e972===_0x370837)break;else _0x4159b1['push'](_0x4159b1['shift']());}catch(_0x30ce36){_0x4159b1['push'](_0x4159b1['shift']());}}}(_0x3046,0xec2a7));const e={'collab-client':{'tooltip':{'reconnect':_0x4ef816(0xaa)}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':'Edit\x20conflicts','notCollab':_0x4ef816(0xab),'synced':'Synced','syncing':'Syncing...','offline':'Offline,\x20edits\x20would\x20be\x20save\x20on\x20local'},'session':{'connection-failed':_0x4ef816(0xb5),'will-retry':_0x4ef816(0xa5),'room-full':_0x4ef816(0xb3),'join-failed':_0x4ef816(0xa2),'room-not-exists':_0x4ef816(0xaf),'room-permission-denied':_0x4ef816(0xa1),'room-cnt-exceeds':'Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','collaboration-timeout':_0x4ef816(0xac)},'conflict':{'title':_0x4ef816(0xb4),'content':_0x4ef816(0xa6)},'permission':{'title':_0x4ef816(0xa9),'content':_0x4ef816(0xa8)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x4ef816(0xa3)},'auth':{'needGotoLoginAlert':'Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.'}},o=e;function _0x543f(_0x2e26eb,_0x3a8f06){const _0x304662=_0x3046();return _0x543f=function(_0x543f28,_0x4b8a4e){_0x543f28=_0x543f28-0xa1;let _0x96665b=_0x304662[_0x543f28];return _0x96665b;},_0x543f(_0x2e26eb,_0x3a8f06);}export{o as default};function _0x3046(){const _0x4d86d5=['Authentication\x20Error','Click\x20to\x20Reconnect','Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','337092DqzKSj','1617858EInmWc','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','30lLAVXw','3nRoSPi','1808688OvmcFk','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Collaboration\x20Conflict','Connection\x20failed.\x20Please\x20check\x20your\x20network.','2139170DIRWwk','9ttAsIf','1186782NJFvuL','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','7176952Jridnn','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','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.','7616304UkJZhX','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'];_0x3046=function(){return _0x4d86d5;};return _0x3046();}
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x19b849=_0x35d1;(function(_0x4a0dbe,_0x14d165){const _0x4a7443=_0x35d1,_0x120c32=_0x4a0dbe();while(!![]){try{const _0x3ac656=-parseInt(_0x4a7443(0x171))/0x1*(-parseInt(_0x4a7443(0x16d))/0x2)+-parseInt(_0x4a7443(0x179))/0x3*(-parseInt(_0x4a7443(0x17a))/0x4)+-parseInt(_0x4a7443(0x173))/0x5+parseInt(_0x4a7443(0x16b))/0x6*(parseInt(_0x4a7443(0x170))/0x7)+parseInt(_0x4a7443(0x183))/0x8*(parseInt(_0x4a7443(0x182))/0x9)+parseInt(_0x4a7443(0x176))/0xa+-parseInt(_0x4a7443(0x174))/0xb*(parseInt(_0x4a7443(0x177))/0xc);if(_0x3ac656===_0x14d165)break;else _0x120c32['push'](_0x120c32['shift']());}catch(_0x2d0511){_0x120c32['push'](_0x120c32['shift']());}}}(_0x4b7b,0xd2111));function _0x4b7b(){const _0x49bc76=['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.','Syncing\x20server\x20data...','1980qyryls','Local\x20file','2LqUodJ','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Synced','4144IjUSGN','397526GIUXvj','Collaboration\x20Conflict','7105335PaFKyF','4436850LPlceb','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','682030nILwDR','24MhCeVt','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','9tDSLRh','1427704gOeOgv','Syncing...','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Connection\x20failed.\x20Please\x20check\x20your\x20network.','16083sOWNjs','6072SHYiiF','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'];_0x4b7b=function(){return _0x49bc76;};return _0x4b7b();}const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x19b849(0x16a),'conflict':'Edit\x20conflicts','notCollab':_0x19b849(0x16c),'synced':_0x19b849(0x16f),'syncing':_0x19b849(0x17b),'offline':_0x19b849(0x178)},'session':{'connection-failed':_0x19b849(0x181),'will-retry':_0x19b849(0x17e),'room-full':_0x19b849(0x180),'join-failed':_0x19b849(0x17d),'room-not-exists':'Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-permission-denied':'No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-cnt-exceeds':_0x19b849(0x17c),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x19b849(0x172),'content':_0x19b849(0x169)},'permission':{'title':'Authentication\x20Error','content':_0x19b849(0x175)},'collaboration':{'single-unit':{'warning':_0x19b849(0x168)},'closeRoom':_0x19b849(0x16e)},'auth':{'needGotoLoginAlert':_0x19b849(0x17f)}},o=e;function _0x35d1(_0x6d6fcc,_0x363467){const _0x4b7bb2=_0x4b7b();return _0x35d1=function(_0x35d1dc,_0x4bbf6e){_0x35d1dc=_0x35d1dc-0x168;let _0x1a2abe=_0x4b7bb2[_0x35d1dc];return _0x1a2abe;},_0x35d1(_0x6d6fcc,_0x363467);}export{o as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x2447(){const _0x447bf7=['Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','58578tffZZG','Syncing\x20server\x20data...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Synced','Connection\x20failed.\x20Please\x20check\x20your\x20network.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Local\x20file','4411746pPvmKP','6iqjfJa','Authentication\x20Error','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','Edit\x20conflicts','1048238TNFtco','980NIayrT','31159000iXGwfS','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','24uUkFzL','1008932BSFbJE','Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','619554mBOJKS','Collaboration\x20Conflict','5536205guuXDW'];_0x2447=function(){return _0x447bf7;};return _0x2447();}const _0x579372=_0xe5f2;(function(_0xac8854,_0x2bb0bc){const _0x2d0cff=_0xe5f2,_0x4068d7=_0xac8854();while(!![]){try{const _0x38a245=-parseInt(_0x2d0cff(0xad))/0x1+-parseInt(_0x2d0cff(0xa6))/0x2+parseInt(_0x2d0cff(0xa1))/0x3*(parseInt(_0x2d0cff(0xab))/0x4)+parseInt(_0x2d0cff(0xaf))/0x5+-parseInt(_0x2d0cff(0xb3))/0x6*(parseInt(_0x2d0cff(0xa7))/0x7)+parseInt(_0x2d0cff(0xaa))/0x8*(-parseInt(_0x2d0cff(0xa0))/0x9)+parseInt(_0x2d0cff(0xa8))/0xa;if(_0x38a245===_0x2bb0bc)break;else _0x4068d7['push'](_0x4068d7['shift']());}catch(_0x3724a2){_0x4068d7['push'](_0x4068d7['shift']());}}}(_0x2447,0xb6424));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x579372(0xb4),'conflict':_0x579372(0xa5),'notCollab':_0x579372(0x9f),'synced':_0x579372(0xb6),'syncing':'Syncing...','offline':_0x579372(0xb2)},'session':{'connection-failed':_0x579372(0xb7),'will-retry':_0x579372(0xac),'room-full':'The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','join-failed':_0x579372(0xb1),'room-not-exists':_0x579372(0xa9),'room-permission-denied':_0x579372(0xa4),'room-cnt-exceeds':_0x579372(0xa3),'collaboration-timeout':'The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.'},'conflict':{'title':_0x579372(0xae),'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':_0x579372(0xa2),'content':_0x579372(0xb8)},'collaboration':{'single-unit':{'warning':'You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'},'closeRoom':_0x579372(0xb0)},'auth':{'needGotoLoginAlert':_0x579372(0xb5)}},o=e;function _0xe5f2(_0x42ba96,_0x2afddb){const _0x24473a=_0x2447();return _0xe5f2=function(_0xe5f26b,_0x45e1e2){_0xe5f26b=_0xe5f26b-0x9f;let _0x501b12=_0x24473a[_0xe5f26b];return _0x501b12;},_0xe5f2(_0x42ba96,_0x2afddb);}export{o as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
function _0x3caa(_0x5e4dd3,_0x54f1ee){const _0x90b35c=_0x90b3();return _0x3caa=function(_0x3caa0b,_0x379a76){_0x3caa0b=_0x3caa0b-0x1c6;let _0x5d3918=_0x90b35c[_0x3caa0b];return _0x5d3918;},_0x3caa(_0x5e4dd3,_0x54f1ee);}const _0x116840=_0x3caa;(function(_0x376c5b,_0x538739){const _0x159b01=_0x3caa,_0x56a679=_0x376c5b();while(!![]){try{const _0x25c851=-parseInt(_0x159b01(0x1d9))/0x1*(parseInt(_0x159b01(0x1d8))/0x2)+parseInt(_0x159b01(0x1cb))/0x3+parseInt(_0x159b01(0x1e0))/0x4*(-parseInt(_0x159b01(0x1c6))/0x5)+-parseInt(_0x159b01(0x1e2))/0x6+-parseInt(_0x159b01(0x1ce))/0x7*(-parseInt(_0x159b01(0x1d3))/0x8)+-parseInt(_0x159b01(0x1c7))/0x9+-parseInt(_0x159b01(0x1c9))/0xa*(-parseInt(_0x159b01(0x1d5))/0xb);if(_0x25c851===_0x538739)break;else _0x56a679['push'](_0x56a679['shift']());}catch(_0x4a4b9c){_0x56a679['push'](_0x56a679['shift']());}}}(_0x90b3,0x94983));function _0x90b3(){const _0x3a7148=['你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','2992482DwkBFG','已同步','由于协同房间被关闭,编辑权限被收回。','11053cXadZB','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','协同冲突','本地文件','2144ntoIct','此文档协同人数已满,你的编辑将在本地缓存','77KFEXgC','服务器未响应,你的编辑将在本地缓存','点击重新连接','476314nBeGdh','2hnFvAg','权限错误','加入协同失败,你的编辑将在本地缓存','没有协同权限,你的编辑将在本地缓存','加入协同失败,请稍后重试,你的编辑将在本地缓存','正在拉取服务端数据...','编辑冲突','4bcrSaW','连接失败,请检查你的网络','2624760Gmemhq','保存中...','4908370BBVnkh','2888109JNiiBk','你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','2006180VGAdGj'];_0x90b3=function(){return _0x3a7148;};return _0x90b3();}const o={'collab-client':{'tooltip':{'reconnect':_0x116840(0x1d7)}},'collabStatus':{'fetchMiss':_0x116840(0x1de),'conflict':_0x116840(0x1df),'notCollab':_0x116840(0x1d2),'synced':_0x116840(0x1cc),'syncing':_0x116840(0x1e3),'offline':'已离线,编辑将在本地缓存'},'session':{'connection-failed':_0x116840(0x1e1),'will-retry':'连接失败,将在一会儿之后重试连接','room-full':_0x116840(0x1d4),'join-failed':_0x116840(0x1dd),'room-not-exists':_0x116840(0x1db),'room-permission-denied':_0x116840(0x1dc),'room-cnt-exceeds':'协同文档数量超过限制,你的编辑将在本地缓存','collaboration-timeout':_0x116840(0x1d6)},'conflict':{'title':_0x116840(0x1d1),'content':_0x116840(0x1d0)},'permission':{'title':_0x116840(0x1da),'content':_0x116840(0x1c8)},'collaboration':{'single-unit':{'warning':_0x116840(0x1cf)},'closeRoom':_0x116840(0x1cd)},'auth':{'needGotoLoginAlert':_0x116840(0x1ca)}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x26e3f1=_0xf9f4;function _0xf9f4(_0x1a2fcf,_0x155dd7){const _0x5b7edb=_0x5b7e();return _0xf9f4=function(_0xf9f453,_0x454824){_0xf9f453=_0xf9f453-0x12b;let _0x6583a2=_0x5b7edb[_0xf9f453];return _0x6583a2;},_0xf9f4(_0x1a2fcf,_0x155dd7);}function _0x5b7e(){const _0x1f645c=['444fnnFsB','Edit\x20conflicts','115355NkQpKp','473jHnZdL','24vhvVCG','838VGNbdP','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','157652KOgFog','Failed\x20to\x20join\x20collaboration.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','78rMfYTS','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','647920aCXWUo','Failed\x20to\x20join\x20collaboration.\x20Please\x20try\x20again\x20later.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','74745QQLjTC','Syncing\x20server\x20data...','Syncing...','Number\x20of\x20collaborative\x20documents\x20exceeds\x20the\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','643986iZVjwK','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','32dsKKoC','611739mhKgRG','Collaboration\x20Conflict','Connection\x20failed.\x20Please\x20check\x20your\x20network.','The\x20document\x20has\x20reached\x20its\x20collaboration\x20limit.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.'];_0x5b7e=function(){return _0x1f645c;};return _0x5b7e();}(function(_0x54d11e,_0x41a1f9){const _0x5879c1=_0xf9f4,_0x4c7b45=_0x54d11e();while(!![]){try{const _0x336461=-parseInt(_0x5879c1(0x130))/0x1*(-parseInt(_0x5879c1(0x132))/0x2)+-parseInt(_0x5879c1(0x131))/0x3*(parseInt(_0x5879c1(0x134))/0x4)+parseInt(_0x5879c1(0x12f))/0x5*(parseInt(_0x5879c1(0x136))/0x6)+parseInt(_0x5879c1(0x13f))/0x7+parseInt(_0x5879c1(0x141))/0x8*(-parseInt(_0x5879c1(0x142))/0x9)+-parseInt(_0x5879c1(0x139))/0xa+-parseInt(_0x5879c1(0x13b))/0xb*(-parseInt(_0x5879c1(0x12d))/0xc);if(_0x336461===_0x41a1f9)break;else _0x4c7b45['push'](_0x4c7b45['shift']());}catch(_0x23b3af){_0x4c7b45['push'](_0x4c7b45['shift']());}}}(_0x5b7e,0x2e467));const e={'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':_0x26e3f1(0x13c),'conflict':_0x26e3f1(0x12e),'notCollab':'Local\x20file','synced':'Synced','syncing':_0x26e3f1(0x13d),'offline':_0x26e3f1(0x138)},'session':{'connection-failed':_0x26e3f1(0x12b),'will-retry':'Connection\x20failed.\x20We\x20will\x20retry\x20in\x20a\x20while.','room-full':_0x26e3f1(0x12c),'join-failed':_0x26e3f1(0x13a),'room-not-exists':_0x26e3f1(0x135),'room-permission-denied':'No\x20collaboration\x20permission.\x20Your\x20edits\x20will\x20be\x20cached\x20locally.','room-cnt-exceeds':_0x26e3f1(0x13e),'collaboration-timeout':_0x26e3f1(0x140)},'conflict':{'title':_0x26e3f1(0x143),'content':'There\x20is\x20a\x20conflict\x20between\x20your\x20local\x20copy\x20and\x20the\x20copy\x20on\x20the\x20server.\x20Please\x20save\x20your\x20local\x20edits,\x20because\x20they\x20will\x20be\x20lost\x20when\x20you\x20reload\x20the\x20page.'},'permission':{'title':'Authentication\x20Error','content':_0x26e3f1(0x137)},'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':_0x26e3f1(0x133)}},o=e;export{o as default};
|
@@ -42,8 +42,13 @@ export declare const COLLAB_SUBMIT_CHANGESET_URL_KEY = "COLLAB_SUBMIT_CHANGESET_
|
|
42
42
|
/** The url prefix is determined by protocol in submodules/protocol/universer/v1/comb.proto */
|
43
43
|
export declare const DEFAULT_COLLAB_SUBMIT_CHANGESET_URL = "/universer-api/comb";
|
44
44
|
/**
|
45
|
-
* The config key to
|
45
|
+
* The config key to determine the URL provided by the auth server
|
46
|
+
* @deprecated Will be removed in the 0.2.19 release
|
46
47
|
*/
|
47
|
-
/** @deprecated Will be removed in the 0.2.19 release */
|
48
48
|
export declare const LOGIN_URL_KEY = "LOGIN_URL_KEY";
|
49
49
|
export declare const DEFAULT_LOGIN_URL = "/universer-api/oidc/authpage";
|
50
|
+
/**
|
51
|
+
* The config key to determine the URL of the Uniscript execution endpoint.
|
52
|
+
*/
|
53
|
+
export declare const REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY = "REMOTE_UNISCRIPT_EXECUTION_ENDPOINT";
|
54
|
+
export declare const DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT = "/universer-api/uniscript";
|
@@ -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;
|
@@ -147,9 +147,9 @@ export declare class PendingState extends CollaborationState {
|
|
147
147
|
private readonly _transformService;
|
148
148
|
private readonly _univerInstanceService;
|
149
149
|
readonly status = CollaborationStatus.PENDING;
|
150
|
-
private
|
150
|
+
private _scheduleCompleteTimestamp;
|
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,10 +8,12 @@ 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>;
|
14
15
|
getCollabEntity$(id: string): Observable<CollaborationEntity>;
|
16
|
+
readyForCollab(id: string): Promise<void>;
|
15
17
|
private _init;
|
16
18
|
/**
|
17
19
|
* Start collaboration on a document.
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { IDisposable, FBase, Injector, IUniverInstanceService } from '@univerjs/core';
|
2
|
+
import { IMember } from '@univerjs/protocol';
|
3
|
+
import { FWorkbook } from '@univerjs/sheets/facade';
|
4
|
+
import { SnapshotService } from '@univerjs-pro/collaboration';
|
5
|
+
import { CollaborationController } from '@univerjs-pro/collaboration-client';
|
6
|
+
export declare class FCollaboration extends FBase {
|
7
|
+
private readonly _handler;
|
8
|
+
protected readonly _injector: Injector;
|
9
|
+
protected readonly _univerInstanceService: IUniverInstanceService;
|
10
|
+
protected readonly _snapshotService: SnapshotService;
|
11
|
+
protected readonly _collaborationController: CollaborationController;
|
12
|
+
constructor(_handler: {
|
13
|
+
getUniverSheet: (id: string) => FWorkbook | null;
|
14
|
+
}, _injector: Injector, _univerInstanceService: IUniverInstanceService, _snapshotService: SnapshotService, _collaborationController: CollaborationController);
|
15
|
+
/**
|
16
|
+
* Load the active Univer Sheet. It should be associated with the Uniscript Node.js Runtime.
|
17
|
+
*/
|
18
|
+
loadActiveSheet(): Promise<FWorkbook | null>;
|
19
|
+
/**
|
20
|
+
* Load a Univer Sheet from the server with a unit ID.
|
21
|
+
* @param unitId ID of the Univer Sheet that you would like to load.
|
22
|
+
* @returns {Promise<FWorkbook | null>} The {@link FWorkbook} or null if ID cannot be associated with a Univer Sheet.
|
23
|
+
*/
|
24
|
+
loadSheet(unitId: string): Promise<FWorkbook | null>;
|
25
|
+
/**
|
26
|
+
* Subscribe collaborators of a Univer file.
|
27
|
+
*
|
28
|
+
* @param unitId ID of the Univer file.
|
29
|
+
* @param callback The function that will be called when the collaborators of this Univer file changes.
|
30
|
+
* @returns A handler to dispose the subscription.
|
31
|
+
*/
|
32
|
+
subscribeCollaborators(unitId: string, callback: (members: IMember[]) => void): IDisposable;
|
33
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { FUniver } from '@univerjs/core';
|
2
|
+
import { FCollaboration } from './f-collaboration';
|
3
|
+
export interface IFUniverCollaborationClientMixin {
|
4
|
+
getCollaboration(): FCollaboration;
|
5
|
+
}
|
6
|
+
export declare class FUniverCollaborationClientMixin extends FUniver implements IFUniverCollaborationClientMixin {
|
7
|
+
getCollaboration(): FCollaboration;
|
8
|
+
}
|
9
|
+
declare module '@univerjs/core' {
|
10
|
+
interface FUniver extends IFUniverCollaborationClientMixin {
|
11
|
+
}
|
12
|
+
}
|
package/lib/types/index.d.ts
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
import './global.css';
|
2
1
|
export {
|
3
2
|
/** @deprecated Will be removed in the 0.2.19 release */
|
4
3
|
COLLAB_SUBMIT_CHANGESET_URL_KEY,
|
5
4
|
/** @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,
|
5
|
+
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
6
|
/** @deprecated Will be removed in the 0.2.19 release */
|
8
7
|
SEND_CHANGESET_TIMEOUT_KEY,
|
9
8
|
/** @deprecated Will be removed in the 0.2.19 release */
|
@@ -11,28 +10,29 @@ SNAPSHOT_SERVER_URL_KEY,
|
|
11
10
|
/** @deprecated Will be removed in the 0.2.19 release */
|
12
11
|
SNAPSHOT_URL_KEY, } from './config/config';
|
13
12
|
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';
|
13
|
+
export { CollaborationEntity, DocCollaborationEntity, type IDocCollaborationEntityCallback, SheetCollaborationEntity } from './controllers/collaboration/collaboration-entity';
|
14
|
+
export { AwaitingState, AwaitingWithPendingState, CollaborationStatus, ConflictState, FetchingMissState, OfflineState, PendingState, SyncedState } from './controllers/collaboration/collaboration-state';
|
16
15
|
export { UniverCollaborationClientPlugin } from './plugin';
|
17
16
|
export { CollaborationSessionService } from './services/collaboration-session/collaboration-session.service';
|
18
17
|
export { CollaborationSession, SessionStatus } from './services/collaboration-session/collaboration-session';
|
19
18
|
export type { ICollaborationSocket } from './services/socket/collaboration-socket.service';
|
20
19
|
export { type IUniverCollaborationClientConfig } from './controllers/config.schema';
|
21
20
|
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';
|
21
|
+
export { DataLoaderService } from './services/data-loader/data-loader.service';
|
27
22
|
export { AuthzIoHttpService } from './services/auth-server/authz-io-http.service';
|
28
23
|
/** @deprecated Will be removed in the 0.2.19 release */
|
29
24
|
export { AUTHZ_URL_KEY } from './services/auth-server/authz-io-http.service';
|
30
25
|
export { deserializeToCombResponse, serializeCombRequest } from './services/socket/serialize';
|
31
|
-
export { CollaborationStatusDisplay } from './views/components/CollabStatus';
|
32
26
|
export { SnapshotServerOverHTTPService } from './services/snapshot-server/snapshot-server.service';
|
33
27
|
export { CommentService } from './services/comment/comment.service';
|
34
|
-
export {
|
35
|
-
export { CollabrationImageIoService } from './services/image-remote/image-io.service';
|
28
|
+
export { CollaborationImageIoService } from './services/image-remote/image-io.service';
|
36
29
|
export { MemberService } from './services/member/member.service';
|
37
30
|
export { COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY } from './controllers/config.schema';
|
38
31
|
export { MentionIoHttpService } from './services/mention-server/mention-io-http.service';
|
32
|
+
export { ISingleActiveUnitService, UnitStatus } from './services/single-active-unit/single-active-unit.service';
|
33
|
+
export { CollaborationUIEventId, CollaborationUIEventService } from './services/collaboration-ui-event/collaboration-ui-event';
|
34
|
+
export { SheetTransformSelectionsService } from './services/range-selection/sheet-transform-selections.service';
|
35
|
+
export { CollaborativeUndoRedoService } from './services/undoredo/collaborative-undoredo.service';
|
36
|
+
export { DEFAULT_COLLAB_WEB_SOCKET_URL, DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT, REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY } from './config/config';
|
37
|
+
export { getLocalCacheKey, ILocalCacheService, type IUnitCacheData } from './services/local-cache/local-cache.service';
|
38
|
+
export { INetworkConditionService } from './services/network-condition/network-condition.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
|
}
|