@univerjs-pro/collaboration-client-ui 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.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-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.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-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/config/config.d.ts +7 -0
- package/lib/types/services/collaboration-socket/collaboration-socket.service.d.ts +1 -0
- package/lib/types/services/local-cache/web-local-cache.service.d.ts +11 -7
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +20 -20
- package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +0 -32
- package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +0 -35
- package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/services/formula-calculation-guard/formula-calculation-guard.service.d.ts +0 -38
- package/lib/types/services/formula-calculation-guard/util.d.ts +0 -11
- package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +0 -15
package/lib/umd/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x52a0(_0x306c75,_0x9cc061){_0x306c75=_0x306c75-0x14a;var _0x5c6732=_0x5c67();var _0x52a029=_0x5c6732[_0x306c75];return _0x52a029;}function _0x5c67(){var _0xa30e69=['40JJHdut','正在处理协同冲突…','amd','2765EpHwNp','协同冲突','110htswoM','120IjTrbz','编辑冲突','你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','已离线,编辑将在本地缓存','427790vqbvIH','function','刷新页面','1QLbEON','协同房间已满,你的编辑将在本地缓存','重试并刷新','正在拉取服务端数据...','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','487698IlwUal','已同步','2438605AHanJI','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','保存中...','由于协同房间被关闭,编辑权限被收回。','2859712tLMWRJ','7158bsVgfD','连接失败,将在一会儿之后重试连接','exports','4288065CAxjtL','UniverProCollaborationClientUiZhCN','3JqzyYE','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','无法清除本地冲突数据。刷新页面可能再次恢复异常数据,请重试。','本地文件','1140255nOKdfD'];_0x5c67=function(){return _0xa30e69;};return _0x5c67();}(function(_0x3f6a47,_0x192c1b){var _0x1dbc0b=_0x52a0,_0x507e7e=_0x3f6a47();while(!![]){try{var _0x334b85=parseInt(_0x1dbc0b(0x15f))/0x1*(parseInt(_0x1dbc0b(0x164))/0x2)+parseInt(_0x1dbc0b(0x14d))/0x3*(parseInt(_0x1dbc0b(0x16a))/0x4)+parseInt(_0x1dbc0b(0x14b))/0x5+parseInt(_0x1dbc0b(0x16b))/0x6*(parseInt(_0x1dbc0b(0x155))/0x7)+-parseInt(_0x1dbc0b(0x152))/0x8*(-parseInt(_0x1dbc0b(0x151))/0x9)+-parseInt(_0x1dbc0b(0x15c))/0xa*(parseInt(_0x1dbc0b(0x157))/0xb)+-parseInt(_0x1dbc0b(0x158))/0xc*(parseInt(_0x1dbc0b(0x166))/0xd);if(_0x334b85===_0x192c1b)break;else _0x507e7e['push'](_0x507e7e['shift']());}catch(_0x384996){_0x507e7e['push'](_0x507e7e['shift']());}}}(_0x5c67,0x96bf4),function(_0xd3b8b4,_0x2f0f6b){var _0x285c06=_0x52a0;typeof exports=='object'&&typeof module<'u'?module[_0x285c06(0x14a)]=_0x2f0f6b():typeof define==_0x285c06(0x15d)&&define[_0x285c06(0x154)]?define([],_0x2f0f6b):(_0xd3b8b4=typeof globalThis<'u'?globalThis:_0xd3b8b4||self,_0xd3b8b4[_0x285c06(0x14c)]=_0x2f0f6b());}(this,function(){var _0x37a270=_0x52a0;return{'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':'点击重新连接'}},'collabStatus':{'fetchMiss':_0x37a270(0x162),'conflict':_0x37a270(0x159),'notCollab':_0x37a270(0x150),'synced':_0x37a270(0x165),'syncing':_0x37a270(0x168),'offline':_0x37a270(0x15b)},'snapshotLoading':{'timeout':'数据加载停留在\x20{0}/{1},请刷新页面后重试。','refresh':_0x37a270(0x15e)},'session':{'connection-failed':'连接失败,请检查你的网络','will-retry':_0x37a270(0x16c),'room-full':_0x37a270(0x160),'collaboration-timeout':'服务器未响应,你的编辑将在本地缓存'},'conflict':{'processing':_0x37a270(0x153),'clearFailed':_0x37a270(0x14f),'retry':_0x37a270(0x161),'title':_0x37a270(0x156),'content':_0x37a270(0x14e)},'permission':{'title':'权限错误','content':_0x37a270(0x15a)},'collaboration':{'offline-data-not-saved':'你有离线编辑未保存到服务器,请检查网络后重试。','single-unit':{'warning':_0x37a270(0x167)},'closeRoom':_0x37a270(0x169)},'auth':{'needGotoLoginAlert':_0x37a270(0x163)}}};}));
|
package/lib/umd/locale/zh-HK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1fe3(_0x31bc57,_0x22f939){_0x31bc57=_0x31bc57-0x75;var _0x19fbe9=_0x19fb();var _0x1fe3ac=_0x19fbe9[_0x31bc57];return _0x1fe3ac;}function _0x19fb(){var _0x2155e6=['549715ZzftpH','UniverProCollaborationClientUiZhHK','144468kChmxt','675009OZYQfs','function','正在擷取伺服器資料...','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','object','922222apegTF','連線失敗,請檢查您的網絡。','同步中...','640ZaFxdm','協作衝突','伺服器未回應協作請求,您的編輯將儲存在本機。','連線失敗,將在稍後重試連線。','協作房間已滿,您的編輯將暫存於本機。','1220sDLzkQ','重新整理頁面','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','正在處理協同衝突…','10EeuFcF','由於協作房間已關閉,編輯權限已被收回。','17981760KxXlkD','已同步','重試並重新整理','18DLYJQY','資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','2NPXYQz','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','exports','amd','認證錯誤','1712lWruOZ','4937790iuiMvG','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'];_0x19fb=function(){return _0x2155e6;};return _0x19fb();}(function(_0xcfb3eb,_0x177a10){var _0x2ee1d0=_0x1fe3,_0x178646=_0xcfb3eb();while(!![]){try{var _0x21977d=parseInt(_0x2ee1d0(0x8b))/0x1+parseInt(_0x2ee1d0(0x83))/0x2*(parseInt(_0x2ee1d0(0x8e))/0x3)+parseInt(_0x2ee1d0(0x88))/0x4*(-parseInt(_0x2ee1d0(0x78))/0x5)+-parseInt(_0x2ee1d0(0x81))/0x6*(-parseInt(_0x2ee1d0(0x93))/0x7)+-parseInt(_0x2ee1d0(0x96))/0x8*(parseInt(_0x2ee1d0(0x8d))/0x9)+parseInt(_0x2ee1d0(0x7c))/0xa*(-parseInt(_0x2ee1d0(0x89))/0xb)+parseInt(_0x2ee1d0(0x7e))/0xc;if(_0x21977d===_0x177a10)break;else _0x178646['push'](_0x178646['shift']());}catch(_0x161f87){_0x178646['push'](_0x178646['shift']());}}}(_0x19fb,0xcadea),function(_0x14570f,_0x42373e){var _0x27be35=_0x1fe3;typeof exports==_0x27be35(0x92)&&typeof module<'u'?module[_0x27be35(0x85)]=_0x42373e():typeof define==_0x27be35(0x8f)&&define[_0x27be35(0x86)]?define([],_0x42373e):(_0x14570f=typeof globalThis<'u'?globalThis:_0x14570f||self,_0x14570f[_0x27be35(0x8c)]=_0x42373e());}(this,function(){var _0x22dad8=_0x1fe3;return{'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0x22dad8(0x90),'conflict':'編輯衝突','notCollab':'本機檔案','synced':_0x22dad8(0x7f),'syncing':_0x22dad8(0x95),'offline':'已離線,編輯將儲存在本機'},'snapshotLoading':{'timeout':_0x22dad8(0x82),'refresh':_0x22dad8(0x79)},'session':{'connection-failed':_0x22dad8(0x94),'will-retry':_0x22dad8(0x76),'room-full':_0x22dad8(0x77),'collaboration-timeout':_0x22dad8(0x75)},'conflict':{'processing':_0x22dad8(0x7b),'clearFailed':'無法清除本機衝突資料。重新整理頁面可能再次還原異常資料,請重試。','retry':_0x22dad8(0x80),'title':_0x22dad8(0x97),'content':_0x22dad8(0x7a)},'permission':{'title':_0x22dad8(0x87),'content':_0x22dad8(0x8a)},'collaboration':{'offline-data-not-saved':'您有未儲存至伺服器的離線編輯,請檢查網絡後重試。','single-unit':{'warning':_0x22dad8(0x84)},'closeRoom':_0x22dad8(0x7d)},'auth':{'needGotoLoginAlert':_0x22dad8(0x91)}}};}));
|
package/lib/umd/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5d01(_0x54f67d,_0x59bd21){_0x54f67d=_0x54f67d-0x1b6;var _0x45f173=_0x45f1();var _0x5d0109=_0x45f173[_0x54f67d];return _0x5d0109;}function _0x45f1(){var _0xd94348=['object','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','function','正在擷取伺服器資料...','5105FdOPEt','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','連線失敗,將在稍後重試連線。','重新整理頁面','4168629lVMkJg','資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','您有未儲存至伺服器的離線編輯,請檢查網路後重試。','UniverProCollaborationClientUiZhTW','40DkiDRk','3PeaGgS','已同步','無法清除本機衝突資料。重新整理頁面可能再次還原異常資料,請重試。','重試並重新整理','協作房間已滿,您的編輯將暫存於本機。','點擊重新連線','協作衝突','同步中...','759814EziKzj','由於協作房間已關閉,編輯權限已被收回。','正在處理協同衝突…','編輯衝突','本機檔案','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','253281TapNwM','exports','908ttUCcC','伺服器未回應協作請求,您的編輯將儲存在本機。','4152269sZxMvx','amd','350369rAOJQC','您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','8OQUfGh','3231402OnnWYG'];_0x45f1=function(){return _0xd94348;};return _0x45f1();}(function(_0x2fc15b,_0x529a76){var _0x1a39e2=_0x5d01,_0x2ceaec=_0x2fc15b();while(!![]){try{var _0x51a49f=-parseInt(_0x1a39e2(0x1d8))/0x1+parseInt(_0x1a39e2(0x1cc))/0x2*(parseInt(_0x1a39e2(0x1c4))/0x3)+parseInt(_0x1a39e2(0x1d4))/0x4*(-parseInt(_0x1a39e2(0x1bb))/0x5)+-parseInt(_0x1a39e2(0x1b6))/0x6+-parseInt(_0x1a39e2(0x1d2))/0x7+-parseInt(_0x1a39e2(0x1da))/0x8*(parseInt(_0x1a39e2(0x1bf))/0x9)+parseInt(_0x1a39e2(0x1c3))/0xa*(parseInt(_0x1a39e2(0x1d6))/0xb);if(_0x51a49f===_0x529a76)break;else _0x2ceaec['push'](_0x2ceaec['shift']());}catch(_0x2a44f7){_0x2ceaec['push'](_0x2ceaec['shift']());}}}(_0x45f1,0x41dbc),function(_0x14c464,_0x4c3dfd){var _0x462e06=_0x5d01;typeof exports==_0x462e06(0x1b7)&&typeof module<'u'?module[_0x462e06(0x1d3)]=_0x4c3dfd():typeof define==_0x462e06(0x1b9)&&define[_0x462e06(0x1d7)]?define([],_0x4c3dfd):(_0x14c464=typeof globalThis<'u'?globalThis:_0x14c464||self,_0x14c464[_0x462e06(0x1c2)]=_0x4c3dfd());}(this,function(){var _0x4bcab3=_0x5d01;return{'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x4bcab3(0x1c9)}},'collabStatus':{'fetchMiss':_0x4bcab3(0x1ba),'conflict':_0x4bcab3(0x1cf),'notCollab':_0x4bcab3(0x1d0),'synced':_0x4bcab3(0x1c5),'syncing':_0x4bcab3(0x1cb),'offline':'已離線,編輯將儲存在本機'},'snapshotLoading':{'timeout':_0x4bcab3(0x1c0),'refresh':_0x4bcab3(0x1be)},'session':{'connection-failed':'連線失敗,請檢查您的網路。','will-retry':_0x4bcab3(0x1bd),'room-full':_0x4bcab3(0x1c8),'collaboration-timeout':_0x4bcab3(0x1d5)},'conflict':{'processing':_0x4bcab3(0x1ce),'clearFailed':_0x4bcab3(0x1c6),'retry':_0x4bcab3(0x1c7),'title':_0x4bcab3(0x1ca),'content':_0x4bcab3(0x1d1)},'permission':{'title':'認證錯誤','content':_0x4bcab3(0x1bc)},'collaboration':{'offline-data-not-saved':_0x4bcab3(0x1c1),'single-unit':{'warning':_0x4bcab3(0x1d9)},'closeRoom':_0x4bcab3(0x1cd)},'auth':{'needGotoLoginAlert':_0x4bcab3(0x1b8)}}};}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/collaboration-client-ui",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Collaboration UI integration for Univer Pro clients.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -67,31 +67,31 @@
|
|
|
67
67
|
"rxjs": ">=7.0.0"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@univerjs-pro/collaboration": "1.0
|
|
71
|
-
"@univerjs-pro/collaboration-client": "1.0
|
|
72
|
-
"@univerjs-pro/license": "1.0
|
|
73
|
-
"@univerjs/core": "1.0
|
|
74
|
-
"@univerjs/design": "1.0
|
|
75
|
-
"@univerjs/docs": "1.0
|
|
76
|
-
"@univerjs/docs-ui": "1.0
|
|
77
|
-
"@univerjs/engine-formula": "1.0
|
|
78
|
-
"@univerjs/engine-render": "1.0
|
|
79
|
-
"@univerjs/icons": "1.
|
|
80
|
-
"@univerjs/network": "1.0
|
|
81
|
-
"@univerjs/protocol": "1.0
|
|
82
|
-
"@univerjs/sheets": "1.0
|
|
83
|
-
"@univerjs/sheets-ui": "1.0
|
|
84
|
-
"@univerjs/ui": "1.0
|
|
70
|
+
"@univerjs-pro/collaboration": "1.1.0",
|
|
71
|
+
"@univerjs-pro/collaboration-client": "1.1.0",
|
|
72
|
+
"@univerjs-pro/license": "1.1.0",
|
|
73
|
+
"@univerjs/core": "1.1.0",
|
|
74
|
+
"@univerjs/design": "1.1.0",
|
|
75
|
+
"@univerjs/docs": "1.1.0",
|
|
76
|
+
"@univerjs/docs-ui": "1.1.0",
|
|
77
|
+
"@univerjs/engine-formula": "1.1.0",
|
|
78
|
+
"@univerjs/engine-render": "1.1.0",
|
|
79
|
+
"@univerjs/icons": "1.46.0",
|
|
80
|
+
"@univerjs/network": "1.1.0",
|
|
81
|
+
"@univerjs/protocol": "1.1.0",
|
|
82
|
+
"@univerjs/sheets": "1.1.0",
|
|
83
|
+
"@univerjs/sheets-ui": "1.1.0",
|
|
84
|
+
"@univerjs/ui": "1.1.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"@univerjs-infra/shared": "1.0
|
|
88
|
-
"@univerjs/rpc": "1.0
|
|
89
|
-
"postcss": "^8.5.
|
|
87
|
+
"@univerjs-infra/shared": "1.1.0",
|
|
88
|
+
"@univerjs/rpc": "1.1.0",
|
|
89
|
+
"postcss": "^8.5.29",
|
|
90
90
|
"react": "18.3.1",
|
|
91
91
|
"rxjs": "7.8.2",
|
|
92
92
|
"tailwindcss": "3.4.17",
|
|
93
93
|
"typescript": "^6.0.3",
|
|
94
|
-
"vitest": "^5.0.
|
|
94
|
+
"vitest": "^5.0.4"
|
|
95
95
|
},
|
|
96
96
|
"scripts": {
|
|
97
97
|
"test": "vitest run --pool=threads",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type * as RxjsTypes from "rxjs";
|
|
2
|
-
import type { ICollaborationUser } from '@univerjs-pro/collaboration';
|
|
3
|
-
import type { CollaborationSession } from '@univerjs-pro/collaboration-client';
|
|
4
|
-
import type { IBoardCollabSelectionPayload, IElementCollabCursor } from '../../models/cursor';
|
|
5
|
-
import { IBoardElementStateService } from '@univerjs-pro/boards-ui';
|
|
6
|
-
import { MemberService } from '@univerjs-pro/collaboration-client';
|
|
7
|
-
import { RxDisposable } from '@univerjs/core';
|
|
8
|
-
import { ColorAssignService } from '../../services/color-assign/color-assign.service';
|
|
9
|
-
export declare function parseBoardCursorSelection(selection: string): IBoardCollabSelectionPayload | null;
|
|
10
|
-
export declare class BoardCollabCursorEntity extends RxDisposable {
|
|
11
|
-
readonly unitID: string;
|
|
12
|
-
private readonly _session;
|
|
13
|
-
private readonly _colorAssignService;
|
|
14
|
-
private readonly _memberService;
|
|
15
|
-
private readonly _boardElementStateService;
|
|
16
|
-
private _online;
|
|
17
|
-
private _init;
|
|
18
|
-
private _cursorInfo$;
|
|
19
|
-
cursorInfo$: RxjsTypes.Observable<Map<string, IElementCollabCursor>>;
|
|
20
|
-
get cursorInfo(): Readonly<Map<string, IElementCollabCursor>>;
|
|
21
|
-
private _roomMembers$;
|
|
22
|
-
roomMembers$: RxjsTypes.Observable<ICollaborationUser[]>;
|
|
23
|
-
get roomMembers(): Readonly<ICollaborationUser[]>;
|
|
24
|
-
constructor(unitID: string, _session: CollaborationSession, _colorAssignService: ColorAssignService, _memberService: MemberService, _boardElementStateService: IBoardElementStateService);
|
|
25
|
-
dispose(): void;
|
|
26
|
-
init(): void;
|
|
27
|
-
private _onCursorUpdate;
|
|
28
|
-
private _onCursorDelete;
|
|
29
|
-
private _updateLocalCursor;
|
|
30
|
-
private _toggleOnline;
|
|
31
|
-
private _toggleOffline;
|
|
32
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { BoardModel } from '@univerjs-pro/boards';
|
|
2
|
-
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
-
import { RxDisposable, ThemeService } from '@univerjs/core';
|
|
4
|
-
import { CollabCursorController } from './collab-cursor.controller';
|
|
5
|
-
export declare class BoardCollabCursorRenderController extends RxDisposable implements IRenderModule {
|
|
6
|
-
private readonly _context;
|
|
7
|
-
private readonly _collabCursorController;
|
|
8
|
-
private readonly _themeService;
|
|
9
|
-
private _cursors;
|
|
10
|
-
private _renderScheduled;
|
|
11
|
-
private _isApplyingOverlays;
|
|
12
|
-
private _latestCursors;
|
|
13
|
-
constructor(_context: IRenderContext<BoardModel>, _collabCursorController: CollabCursorController, _themeService: ThemeService);
|
|
14
|
-
dispose(): void;
|
|
15
|
-
private _init;
|
|
16
|
-
private _scheduleRender;
|
|
17
|
-
private _render;
|
|
18
|
-
private _removeCollabCursors;
|
|
19
|
-
private _getSceneObjectByKey;
|
|
20
|
-
private _getObjectBounds;
|
|
21
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type * as RxjsTypes from "rxjs";
|
|
2
|
-
import type { ICollaborationUser } from '@univerjs-pro/collaboration';
|
|
3
|
-
import type { CollaborationSession } from '@univerjs-pro/collaboration-client';
|
|
4
|
-
import type { IElementCollabCursor, ISlideCollabSelectionPayload } from '../../models/cursor';
|
|
5
|
-
import { MemberService } from '@univerjs-pro/collaboration-client';
|
|
6
|
-
import { ISlideDrawingStateService } from '@univerjs-pro/slides-ui';
|
|
7
|
-
import { RxDisposable } from '@univerjs/core';
|
|
8
|
-
import { ColorAssignService } from '../../services/color-assign/color-assign.service';
|
|
9
|
-
export declare function parseSlideCursorSelection(selection: string): ISlideCollabSelectionPayload | null;
|
|
10
|
-
/**
|
|
11
|
-
* Stores slide collaborator cursor presence without mutating local slide selection.
|
|
12
|
-
*/
|
|
13
|
-
export declare class SlideCollabCursorEntity extends RxDisposable {
|
|
14
|
-
readonly unitID: string;
|
|
15
|
-
private readonly _session;
|
|
16
|
-
private readonly _colorAssignService;
|
|
17
|
-
private readonly _memberService;
|
|
18
|
-
private readonly _slideDrawingStateService;
|
|
19
|
-
private _online;
|
|
20
|
-
private _init;
|
|
21
|
-
private _cursorInfo$;
|
|
22
|
-
cursorInfo$: RxjsTypes.Observable<Map<string, IElementCollabCursor>>;
|
|
23
|
-
get cursorInfo(): Readonly<Map<string, IElementCollabCursor>>;
|
|
24
|
-
private _roomMembers$;
|
|
25
|
-
roomMembers$: RxjsTypes.Observable<ICollaborationUser[]>;
|
|
26
|
-
get roomMembers(): Readonly<ICollaborationUser[]>;
|
|
27
|
-
constructor(unitID: string, _session: CollaborationSession, _colorAssignService: ColorAssignService, _memberService: MemberService, _slideDrawingStateService: ISlideDrawingStateService);
|
|
28
|
-
dispose(): void;
|
|
29
|
-
init(): void;
|
|
30
|
-
private _onCursorUpdate;
|
|
31
|
-
private _onCursorDelete;
|
|
32
|
-
private _updateLocalCursor;
|
|
33
|
-
private _toggleOnline;
|
|
34
|
-
private _toggleOffline;
|
|
35
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { SlideModel } from '@univerjs-pro/slides';
|
|
2
|
-
import type { IRenderContext, IRenderModule } from '@univerjs/engine-render';
|
|
3
|
-
import { RxDisposable, ThemeService } from '@univerjs/core';
|
|
4
|
-
import { CollabCursorController } from './collab-cursor.controller';
|
|
5
|
-
export declare class SlideCollabCursorRenderController extends RxDisposable implements IRenderModule {
|
|
6
|
-
private readonly _context;
|
|
7
|
-
private readonly _collabCursorController;
|
|
8
|
-
private readonly _themeService;
|
|
9
|
-
private _cursors;
|
|
10
|
-
private _renderScheduled;
|
|
11
|
-
private _isApplyingOverlays;
|
|
12
|
-
private _latestCursors;
|
|
13
|
-
constructor(_context: IRenderContext<SlideModel>, _collabCursorController: CollabCursorController, _themeService: ThemeService);
|
|
14
|
-
dispose(): void;
|
|
15
|
-
private _init;
|
|
16
|
-
private _scheduleRender;
|
|
17
|
-
private _render;
|
|
18
|
-
private _removeCollabCursors;
|
|
19
|
-
private _getSceneObjectByKey;
|
|
20
|
-
private _getObjectBounds;
|
|
21
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Disposable, ICommandService, IConfigService, ILogService, IUniverInstanceService, LocaleService } from '@univerjs/core';
|
|
2
|
-
import { HTTPService } from '@univerjs/network';
|
|
3
|
-
import { IMessageService } from '@univerjs/ui';
|
|
4
|
-
/**
|
|
5
|
-
* Implementation of formula calculation guard service
|
|
6
|
-
*/
|
|
7
|
-
export declare class FormulaCalculationGuardService extends Disposable {
|
|
8
|
-
private readonly _messageService;
|
|
9
|
-
private readonly _commandService;
|
|
10
|
-
private readonly _configService;
|
|
11
|
-
private readonly _httpService;
|
|
12
|
-
private readonly _univerInstanceService;
|
|
13
|
-
protected readonly _logService: ILogService;
|
|
14
|
-
private readonly _localeService;
|
|
15
|
-
private _pollingInterval;
|
|
16
|
-
private _maxFormulaLimit;
|
|
17
|
-
private _currentUsage;
|
|
18
|
-
private _taskIds;
|
|
19
|
-
private _lastResponseTimestamp;
|
|
20
|
-
constructor(_messageService: IMessageService, _commandService: ICommandService, _configService: IConfigService, _httpService: HTTPService, _univerInstanceService: IUniverInstanceService, _logService: ILogService, _localeService: LocaleService);
|
|
21
|
-
private _initCommandInterceptor;
|
|
22
|
-
dispose(): void;
|
|
23
|
-
private _checkAndWaitForCalculationPermission;
|
|
24
|
-
/**
|
|
25
|
-
* Apply the command after getting permission
|
|
26
|
-
* @param command
|
|
27
|
-
* @param options
|
|
28
|
-
*/
|
|
29
|
-
private _applyCommand;
|
|
30
|
-
private _setFormulaLimitStatus;
|
|
31
|
-
private _startCalculationLimit;
|
|
32
|
-
private _getFormulaLimitStatus;
|
|
33
|
-
private _releaseCalculationLimit;
|
|
34
|
-
private _checkCalculationAvailable;
|
|
35
|
-
private _clearPolling;
|
|
36
|
-
private _showGuardMessage;
|
|
37
|
-
private _hasFormulaInDirtyRanges;
|
|
38
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ISetFormulaCalculationNotificationMutation } from '@univerjs/engine-formula';
|
|
2
|
-
/**
|
|
3
|
-
* Determine if the calculation is starting based on params
|
|
4
|
-
* @param params
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare function isCalculationStart(params: ISetFormulaCalculationNotificationMutation): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Determine if the calculation has completed based on params
|
|
10
|
-
*/
|
|
11
|
-
export declare function isCalculationComplete(params: ISetFormulaCalculationNotificationMutation): boolean;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { IShapeProps } from '@univerjs/engine-render';
|
|
2
|
-
import type { IElementCollabCursor } from '../../models/cursor';
|
|
3
|
-
import { Shape } from '@univerjs/engine-render';
|
|
4
|
-
export declare const SLIDE_COLLAB_CURSOR_ZINDEX = 5002;
|
|
5
|
-
export interface ISlideCollabCursorShapeProps extends IShapeProps, IElementCollabCursor {
|
|
6
|
-
showText?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare class SlideCollabCursorShape<T extends ISlideCollabCursorShapeProps = ISlideCollabCursorShapeProps> extends Shape<T> {
|
|
9
|
-
private _color;
|
|
10
|
-
private _name;
|
|
11
|
-
private _showText;
|
|
12
|
-
constructor(key?: string, props?: T);
|
|
13
|
-
setShapeProps(props: Partial<ISlideCollabCursorShapeProps>): void;
|
|
14
|
-
protected _draw(ctx: CanvasRenderingContext2D): void;
|
|
15
|
-
}
|