@univerjs-pro/collaboration-client-ui 1.0.0-beta.0 → 1.0.0-beta.2

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.
Files changed (104) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.css +10 -22
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/commands/operations/update-remote-unit-presence.operation.d.ts +25 -0
  66. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +2 -4
  67. package/lib/types/controllers/collab-cursor/unit-presence-collab-cursor-entity.d.ts +38 -0
  68. package/lib/types/controllers/collab-cursor/unit-presence-collab-cursor.controller.d.ts +21 -0
  69. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +8 -13
  70. package/lib/types/controllers/data-loader/data-loader.controller.d.ts +1 -2
  71. package/lib/types/controllers/snapshot-loading/snapshot-loading.controller.d.ts +3 -15
  72. package/lib/types/locale/en-US.d.ts +0 -1
  73. package/lib/types/models/cursor.d.ts +0 -25
  74. package/lib/types/plugin.d.ts +3 -2
  75. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +3 -3
  76. package/lib/types/views/components/SnapshotLoadingTimeout.d.ts +0 -4
  77. package/lib/types/views/shapes/doc-collab-cursor.d.ts +6 -1
  78. package/lib/umd/facade.js +1 -1
  79. package/lib/umd/index.js +1 -1
  80. package/lib/umd/locale/ar-SA.js +1 -1
  81. package/lib/umd/locale/ca-ES.js +1 -1
  82. package/lib/umd/locale/de-DE.js +1 -1
  83. package/lib/umd/locale/en-US.js +1 -1
  84. package/lib/umd/locale/es-ES.js +1 -1
  85. package/lib/umd/locale/fa-IR.js +1 -1
  86. package/lib/umd/locale/fr-FR.js +1 -1
  87. package/lib/umd/locale/id-ID.js +1 -1
  88. package/lib/umd/locale/it-IT.js +1 -1
  89. package/lib/umd/locale/ja-JP.js +1 -1
  90. package/lib/umd/locale/ko-KR.js +1 -1
  91. package/lib/umd/locale/pl-PL.js +1 -1
  92. package/lib/umd/locale/pt-BR.js +1 -1
  93. package/lib/umd/locale/ru-RU.js +1 -1
  94. package/lib/umd/locale/sk-SK.js +1 -1
  95. package/lib/umd/locale/vi-VN.js +1 -1
  96. package/lib/umd/locale/zh-CN.js +1 -1
  97. package/lib/umd/locale/zh-HK.js +1 -1
  98. package/lib/umd/locale/zh-TW.js +1 -1
  99. package/package.json +19 -23
  100. package/lib/types/controllers/collab-cursor/board-collab-cursor-entity.d.ts +0 -31
  101. package/lib/types/controllers/collab-cursor/board-collab-cursor-render.controller.d.ts +0 -21
  102. package/lib/types/controllers/collab-cursor/slide-collab-cursor-entity.d.ts +0 -34
  103. package/lib/types/controllers/collab-cursor/slide-collab-cursor-render.controller.d.ts +0 -21
  104. package/lib/types/views/shapes/slide-collab-cursor.shape.d.ts +0 -15
@@ -1 +1 @@
1
- function _0x357b(){const _0x4fc6c6=['6eoHMlA','目前無法執行公式計算,請稍後重試。','正在載入工作表','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','公式計算佇列已滿,正在等待可用資源...','已離線,編輯將儲存在本機','編輯衝突','已同步','2946520ymrPVN','同步中...','1050944hUWvfy','9040068XuLRVj','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','4813067STndTM','伺服器未回應協作請求,您的編輯將儲存在本機。','您有未儲存至伺服器的離線編輯,請檢查網路後重試。','4573128zwrnUz','協作衝突','點擊重新連線','3480895CQJcwj','協作房間已滿,您的編輯將暫存於本機。','重新整理頁面','1jXRpIq','認證錯誤','資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','557106IPZLgK','本機檔案'];_0x357b=function(){return _0x4fc6c6;};return _0x357b();}function _0x3541(_0x3ceb89,_0x406687){_0x3ceb89=_0x3ceb89-0x12a;const _0x357be4=_0x357b();let _0x354178=_0x357be4[_0x3ceb89];return _0x354178;}const _0x239df0=_0x3541;(function(_0x40e4b9,_0x764ea6){const _0x7c24fa=_0x3541,_0x1f2b62=_0x40e4b9();while(!![]){try{const _0x3011a1=-parseInt(_0x7c24fa(0x12d))/0x1*(parseInt(_0x7c24fa(0x13c))/0x2)+parseInt(_0x7c24fa(0x130))/0x3+parseInt(_0x7c24fa(0x13a))/0x4+-parseInt(_0x7c24fa(0x12a))/0x5+parseInt(_0x7c24fa(0x132))/0x6*(-parseInt(_0x7c24fa(0x13f))/0x7)+parseInt(_0x7c24fa(0x142))/0x8+parseInt(_0x7c24fa(0x13d))/0x9;if(_0x3011a1===_0x764ea6)break;else _0x1f2b62['push'](_0x1f2b62['shift']());}catch(_0x286e13){_0x1f2b62['push'](_0x1f2b62['shift']());}}}(_0x357b,0x8fd89));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x239df0(0x144)}},'collabStatus':{'fetchMiss':'正在擷取伺服器資料...','conflict':_0x239df0(0x138),'notCollab':_0x239df0(0x131),'synced':_0x239df0(0x139),'syncing':_0x239df0(0x13b),'offline':_0x239df0(0x137)},'snapshotLoading':{'loadingSheet':_0x239df0(0x134),'timeout':_0x239df0(0x12f),'refresh':_0x239df0(0x12c)},'session':{'connection-failed':'連線失敗,請檢查您的網路。','will-retry':'連線失敗,將在稍後重試連線。','room-full':_0x239df0(0x12b),'collaboration-timeout':_0x239df0(0x140)},'conflict':{'title':_0x239df0(0x143),'content':'您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。'},'permission':{'title':_0x239df0(0x12e),'content':_0x239df0(0x135)},'collaboration':{'offline-data-not-saved':_0x239df0(0x141),'single-unit':{'warning':'您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0x239df0(0x13e)},'formula':{'calculation':{'started':'公式計算已開始。','waiting':_0x239df0(0x136),'unable':_0x239df0(0x133)}}}};export{e as default};
1
+ function _0x31f4(){const _0x18f8ab=['258sisbFK','193556BqzexX','您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。','正在擷取伺服器資料...','協作衝突','目前無法執行公式計算,請稍後重試。','連線失敗,將在稍後重試連線。','同步中...','2163576KvqfFi','您有未儲存至伺服器的離線編輯,請檢查網路後重試。','公式計算佇列已滿,正在等待可用資源...','160748LkXaBx','協作房間已滿,您的編輯將暫存於本機。','860dKHgdS','已離線,編輯將儲存在本機','187916FNUvky','公式計算已開始。','12634XFydvc','已同步','2433186igLdzF','伺服器未回應協作請求,您的編輯將儲存在本機。','31bvjwga','本機檔案','您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。','重新整理頁面','3254480VUHUpK','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','54mktNvo','連線失敗,請檢查您的網路。'];_0x31f4=function(){return _0x18f8ab;};return _0x31f4();}const _0x15fb2c=_0x1fa7;(function(_0x239b78,_0x2063de){const _0x49bfe8=_0x1fa7,_0x24b04d=_0x239b78();while(!![]){try{const _0x5a89df=parseInt(_0x49bfe8(0x15c))/0x1*(parseInt(_0x49bfe8(0x158))/0x2)+parseInt(_0x49bfe8(0x145))/0x3*(-parseInt(_0x49bfe8(0x156))/0x4)+parseInt(_0x49bfe8(0x143))/0x5+-parseInt(_0x49bfe8(0x147))/0x6*(parseInt(_0x49bfe8(0x152))/0x7)+-parseInt(_0x49bfe8(0x14f))/0x8+parseInt(_0x49bfe8(0x15a))/0x9+parseInt(_0x49bfe8(0x154))/0xa*(parseInt(_0x49bfe8(0x148))/0xb);if(_0x5a89df===_0x2063de)break;else _0x24b04d['push'](_0x24b04d['shift']());}catch(_0x43867f){_0x24b04d['push'](_0x24b04d['shift']());}}}(_0x31f4,0x809dc));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0x15fb2c(0x14a),'conflict':'編輯衝突','notCollab':_0x15fb2c(0x15d),'synced':_0x15fb2c(0x159),'syncing':_0x15fb2c(0x14e),'offline':_0x15fb2c(0x155)},'snapshotLoading':{'timeout':'資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','refresh':_0x15fb2c(0x142)},'session':{'connection-failed':_0x15fb2c(0x146),'will-retry':_0x15fb2c(0x14d),'room-full':_0x15fb2c(0x153),'collaboration-timeout':_0x15fb2c(0x15b)},'conflict':{'title':_0x15fb2c(0x14b),'content':_0x15fb2c(0x144)},'permission':{'title':'認證錯誤','content':_0x15fb2c(0x15e)},'collaboration':{'offline-data-not-saved':_0x15fb2c(0x150),'single-unit':{'warning':'您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'},'closeRoom':'由於協作房間已關閉,編輯權限已被收回。'},'auth':{'needGotoLoginAlert':_0x15fb2c(0x149)},'formula':{'calculation':{'started':_0x15fb2c(0x157),'waiting':_0x15fb2c(0x151),'unable':_0x15fb2c(0x14c)}}}};function _0x1fa7(_0x4e09d9,_0x45c273){_0x4e09d9=_0x4e09d9-0x142;const _0x31f468=_0x31f4();let _0x1fa705=_0x31f468[_0x4e09d9];return _0x1fa705;}export{e as default};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x3ab2(_0xd03aa7,_0x381c52){_0xd03aa7=_0xd03aa7-0x1da;var _0x504eba=_0x504e();var _0x3ab234=_0x504eba[_0xd03aa7];return _0x3ab234;}var _0x4b2a76=_0x3ab2;function _0x504e(){var _0xedaf03=['runOnServer','extend','6409696qKWMOk','get','_injector','24496860BlhFkG','646578WlDfnX','11CkJuoo','22570vMgqsp','35Ffmksu','7FSPAyT','3546MjEioJ','1605114RJJvzN','1586470XaHcxy','218452acgObI','48CwMcdE'];_0x504e=function(){return _0xedaf03;};return _0x504e();}(function(_0x330b27,_0x186ec2){var _0xa3cb95=_0x3ab2,_0x3c875a=_0x330b27();while(!![]){try{var _0x447293=parseInt(_0xa3cb95(0x1e8))/0x1+-parseInt(_0xa3cb95(0x1df))/0x2+-parseInt(_0xa3cb95(0x1e1))/0x3*(-parseInt(_0xa3cb95(0x1e0))/0x4)+-parseInt(_0xa3cb95(0x1db))/0x5*(parseInt(_0xa3cb95(0x1de))/0x6)+parseInt(_0xa3cb95(0x1dc))/0x7*(-parseInt(_0xa3cb95(0x1e4))/0x8)+-parseInt(_0xa3cb95(0x1dd))/0x9*(-parseInt(_0xa3cb95(0x1da))/0xa)+-parseInt(_0xa3cb95(0x1e9))/0xb*(-parseInt(_0xa3cb95(0x1e7))/0xc);if(_0x447293===_0x186ec2)break;else _0x3c875a['push'](_0x3c875a['shift']());}catch(_0x4ccb26){_0x3c875a['push'](_0x3c875a['shift']());}}}(_0x504e,0xf03a1));import{RemoteUniscriptService as _0x53f247}from'@univerjs-pro/collaboration-client-ui';import{FUniver as _0x401d4f}from'@univerjs/core/facade';var n=class extends _0x401d4f{[_0x4b2a76(0x1e2)](_0x18679d,_0x559f8d,..._0x4a8512){var _0x5c7f53=_0x4b2a76;return this[_0x5c7f53(0x1e6)][_0x5c7f53(0x1e5)](_0x53f247)[_0x5c7f53(0x1e2)](_0x18679d,_0x559f8d,{},..._0x4a8512);}};_0x401d4f[_0x4b2a76(0x1e3)](n);export{};
1
+ function _0x1aaa(_0x3b9b38,_0x1799f0){_0x3b9b38=_0x3b9b38-0x78;var _0x32f946=_0x32f9();var _0x1aaa83=_0x32f946[_0x3b9b38];return _0x1aaa83;}var _0x167e42=_0x1aaa;(function(_0x24a71a,_0x1f1ba7){var _0x147819=_0x1aaa,_0x52bdb6=_0x24a71a();while(!![]){try{var _0x28d69a=parseInt(_0x147819(0x84))/0x1+-parseInt(_0x147819(0x7b))/0x2*(parseInt(_0x147819(0x7e))/0x3)+parseInt(_0x147819(0x7c))/0x4+parseInt(_0x147819(0x7d))/0x5*(-parseInt(_0x147819(0x82))/0x6)+parseInt(_0x147819(0x81))/0x7*(-parseInt(_0x147819(0x78))/0x8)+-parseInt(_0x147819(0x7a))/0x9+parseInt(_0x147819(0x83))/0xa;if(_0x28d69a===_0x1f1ba7)break;else _0x52bdb6['push'](_0x52bdb6['shift']());}catch(_0x3c7951){_0x52bdb6['push'](_0x52bdb6['shift']());}}}(_0x32f9,0x3a7d5));import{RemoteUniscriptService as _0x4f0847}from'@univerjs-pro/collaboration-client-ui';import{FUniver as _0x2e5bb0}from'@univerjs/core/facade';function _0x32f9(){var _0x53349b=['20426eNopML','1900312hEnGjN','2066220yCnhLt','108LKgLJP','get','runOnServer','14217MDWelB','6lhuklt','11151450MurrFk','18557MQHgwb','496WnLAwD','_injector','4161357SDKbNy'];_0x32f9=function(){return _0x53349b;};return _0x32f9();}var n=class extends _0x2e5bb0{[_0x167e42(0x80)](_0x39ed77,_0x1a75bb,..._0x47cdc0){var _0x24712f=_0x167e42;return this[_0x24712f(0x79)][_0x24712f(0x7f)](_0x4f0847)[_0x24712f(0x80)](_0x39ed77,_0x1a75bb,{},..._0x47cdc0);}};_0x2e5bb0['extend'](n);export{};
package/lib/index.css CHANGED
@@ -2,10 +2,6 @@
2
2
  position: fixed;
3
3
  }
4
4
 
5
- .univer-inset-0 {
6
- inset: 0;
7
- }
8
-
9
5
  .univer-left-1\/2 {
10
6
  left: 50%;
11
7
  }
@@ -14,10 +10,6 @@
14
10
  top: 1rem;
15
11
  }
16
12
 
17
- .univer-z-\[1000\] {
18
- z-index: 1000;
19
- }
20
-
21
13
  .univer-z-\[1001\] {
22
14
  z-index: 1001;
23
15
  }
@@ -89,10 +81,6 @@
89
81
  cursor: pointer;
90
82
  }
91
83
 
92
- .univer-cursor-wait {
93
- cursor: wait;
94
- }
95
-
96
84
  .univer-appearance-none {
97
85
  appearance: none;
98
86
  }
@@ -133,6 +121,10 @@
133
121
  background-color: var(--univer-gray-700) !important;
134
122
  }
135
123
 
124
+ .univer-bg-gray-0 {
125
+ background-color: var(--univer-gray-0);
126
+ }
127
+
136
128
  .univer-bg-primary-500 {
137
129
  background-color: var(--univer-primary-500);
138
130
  }
@@ -141,10 +133,6 @@
141
133
  background-color: #0000;
142
134
  }
143
135
 
144
- .univer-bg-white {
145
- background-color: var(--univer-white);
146
- }
147
-
148
136
  .univer-p-0 {
149
137
  padding: 0;
150
138
  }
@@ -183,6 +171,10 @@
183
171
  color: var(--univer-blue-500);
184
172
  }
185
173
 
174
+ .univer-text-gray-0 {
175
+ color: var(--univer-gray-0);
176
+ }
177
+
186
178
  .univer-text-gray-400 {
187
179
  color: var(--univer-gray-400);
188
180
  }
@@ -207,10 +199,6 @@
207
199
  color: var(--univer-red-500);
208
200
  }
209
201
 
210
- .univer-text-white {
211
- color: var(--univer-white);
212
- }
213
-
214
202
  .univer-shadow-lg {
215
203
  --univer-tw-shadow: 0px 4px 6px 0px #1e284d0d, 0px 10px 15px -3px #1e284d1a;
216
204
  --univer-tw-shadow-colored: 0px 4px 6px 0px var(--univer-tw-shadow-color), 0px 10px 15px -3px var(--univer-tw-shadow-color);
@@ -262,8 +250,8 @@
262
250
  background-color: var(--univer-gray-700) !important;
263
251
  }
264
252
 
265
- .dark\:\!univer-text-white:where(.univer-dark, .univer-dark *) {
266
- color: var(--univer-white) !important;
253
+ .dark\:\!univer-text-gray-0:where(.univer-dark, .univer-dark *) {
254
+ color: var(--univer-gray-0) !important;
267
255
  }
268
256
 
269
257
  .dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {