@univerjs-pro/collaboration-client-ui 1.0.0-alpha.3 → 1.0.0-alpha.5

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 (89) 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 +87 -0
  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/controllers/snapshot-loading/snapshot-loading.controller.d.ts +36 -0
  66. package/lib/types/locale/en-US.d.ts +5 -0
  67. package/lib/types/views/components/SnapshotLoadingTimeout.d.ts +15 -0
  68. package/lib/umd/facade.js +1 -1
  69. package/lib/umd/index.js +1 -1
  70. package/lib/umd/locale/ar-SA.js +1 -1
  71. package/lib/umd/locale/ca-ES.js +1 -1
  72. package/lib/umd/locale/de-DE.js +1 -1
  73. package/lib/umd/locale/en-US.js +1 -1
  74. package/lib/umd/locale/es-ES.js +1 -1
  75. package/lib/umd/locale/fa-IR.js +1 -1
  76. package/lib/umd/locale/fr-FR.js +1 -1
  77. package/lib/umd/locale/id-ID.js +1 -1
  78. package/lib/umd/locale/it-IT.js +1 -1
  79. package/lib/umd/locale/ja-JP.js +1 -1
  80. package/lib/umd/locale/ko-KR.js +1 -1
  81. package/lib/umd/locale/pl-PL.js +1 -1
  82. package/lib/umd/locale/pt-BR.js +1 -1
  83. package/lib/umd/locale/ru-RU.js +1 -1
  84. package/lib/umd/locale/sk-SK.js +1 -1
  85. package/lib/umd/locale/vi-VN.js +1 -1
  86. package/lib/umd/locale/zh-CN.js +1 -1
  87. package/lib/umd/locale/zh-HK.js +1 -1
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +22 -22
@@ -1 +1 @@
1
- const _0xfc7ddc=_0x1912;function _0xa143(){const _0x551e55=['您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。','420PTmKNh','78639wUiHqy','8qnhkqw','1009446cDRlTn','您有未儲存至伺服器的離線編輯,請檢查網路後重試。','認證錯誤','93290UMkGbI','168EfaNCC','42903MCmmdh','141745TLpJvV','公式計算已開始。','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','協作房間已滿,您的編輯將暫存於本機。','由於協作房間已關閉,編輯權限已被收回。','本機檔案','6RRbkik','8872NymEXB','連線失敗,將在稍後重試連線。','805gixFzR','41005TUyTIb','已離線,編輯將儲存在本機','協作衝突','正在擷取伺服器資料...','同步中...'];_0xa143=function(){return _0x551e55;};return _0xa143();}function _0x1912(_0x2ed050,_0x148994){_0x2ed050=_0x2ed050-0x133;const _0xa143e7=_0xa143();let _0x19121d=_0xa143e7[_0x2ed050];return _0x19121d;}(function(_0x46bd7f,_0x11f8c9){const _0x21ae9c=_0x1912,_0xd612ee=_0x46bd7f();while(!![]){try{const _0x486bcf=-parseInt(_0x21ae9c(0x148))/0x1+parseInt(_0x21ae9c(0x13b))/0x2*(-parseInt(_0x21ae9c(0x144))/0x3)+-parseInt(_0x21ae9c(0x137))/0x4*(parseInt(_0x21ae9c(0x13e))/0x5)+parseInt(_0x21ae9c(0x138))/0x6+parseInt(_0x21ae9c(0x147))/0x7*(-parseInt(_0x21ae9c(0x145))/0x8)+parseInt(_0x21ae9c(0x13d))/0x9*(parseInt(_0x21ae9c(0x135))/0xa)+-parseInt(_0x21ae9c(0x136))/0xb*(-parseInt(_0x21ae9c(0x13c))/0xc);if(_0x486bcf===_0x11f8c9)break;else _0xd612ee['push'](_0xd612ee['shift']());}catch(_0x48003f){_0xd612ee['push'](_0xd612ee['shift']());}}}(_0xa143,0x249fd));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':'點擊重新連線'}},'collabStatus':{'fetchMiss':_0xfc7ddc(0x14b),'conflict':'編輯衝突','notCollab':_0xfc7ddc(0x143),'synced':'已同步','syncing':_0xfc7ddc(0x133),'offline':_0xfc7ddc(0x149)},'session':{'connection-failed':'連線失敗,請檢查您的網路。','will-retry':_0xfc7ddc(0x146),'room-full':_0xfc7ddc(0x141),'collaboration-timeout':'伺服器未回應協作請求,您的編輯將儲存在本機。'},'conflict':{'title':_0xfc7ddc(0x14a),'content':_0xfc7ddc(0x140)},'permission':{'title':_0xfc7ddc(0x13a),'content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'offline-data-not-saved':_0xfc7ddc(0x139),'single-unit':{'warning':_0xfc7ddc(0x134)},'closeRoom':_0xfc7ddc(0x142)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'},'formula':{'calculation':{'started':_0xfc7ddc(0x13f),'waiting':'公式計算佇列已滿,正在等待可用資源...','unable':'目前無法執行公式計算,請稍後重試。'}}}};export{e as default};
1
+ const _0x550687=_0x3ea5;(function(_0x22d09b,_0x4c5948){const _0x1ac712=_0x3ea5,_0x5e978b=_0x22d09b();while(!![]){try{const _0x13ab16=-parseInt(_0x1ac712(0x18a))/0x1+-parseInt(_0x1ac712(0x18d))/0x2+-parseInt(_0x1ac712(0x19c))/0x3+-parseInt(_0x1ac712(0x18c))/0x4*(-parseInt(_0x1ac712(0x197))/0x5)+-parseInt(_0x1ac712(0x193))/0x6+-parseInt(_0x1ac712(0x196))/0x7*(-parseInt(_0x1ac712(0x184))/0x8)+parseInt(_0x1ac712(0x198))/0x9;if(_0x13ab16===_0x4c5948)break;else _0x5e978b['push'](_0x5e978b['shift']());}catch(_0x121e43){_0x5e978b['push'](_0x5e978b['shift']());}}}(_0x439c,0x94727));const e={'collaboration-client-ui':{'collabClient':{'tooltip':{'reconnect':_0x550687(0x194)}},'collabStatus':{'fetchMiss':'正在擷取伺服器資料...','conflict':'編輯衝突','notCollab':_0x550687(0x199),'synced':_0x550687(0x19d),'syncing':_0x550687(0x195),'offline':_0x550687(0x19b)},'snapshotLoading':{'loadingSheet':_0x550687(0x189),'timeout':_0x550687(0x19a),'refresh':_0x550687(0x188)},'session':{'connection-failed':'連線失敗,請檢查您的網路。','will-retry':_0x550687(0x192),'room-full':_0x550687(0x187),'collaboration-timeout':_0x550687(0x18f)},'conflict':{'title':_0x550687(0x191),'content':_0x550687(0x18b)},'permission':{'title':_0x550687(0x190),'content':'您的操作與伺服器權限存在衝突。請將您的本機編輯儲存至其他地方,重新整理頁面後將會被捨棄。'},'collaboration':{'offline-data-not-saved':_0x550687(0x18e),'single-unit':{'warning':'您在另一個分頁開啟了同一個檔案。為避免資料遺失,此分頁將無法進行編輯。'},'closeRoom':_0x550687(0x185)},'auth':{'needGotoLoginAlert':'您的登入已過期,點擊「確定」重新登入,點擊「取消」儲存您的本機編輯。'},'formula':{'calculation':{'started':_0x550687(0x186),'waiting':_0x550687(0x19e),'unable':'目前無法執行公式計算,請稍後重試。'}}}};function _0x3ea5(_0x536165,_0x1b2c4b){_0x536165=_0x536165-0x184;const _0x439ce0=_0x439c();let _0x3ea554=_0x439ce0[_0x536165];return _0x3ea554;}function _0x439c(){const _0x445b81=['440748YNKhLu','點擊重新連線','同步中...','119539DlnPnn','3275hEZbaF','15445377jPqvPR','本機檔案','資料載入停留在\x20{0}/{1},請重新整理頁面後再試。','已離線,編輯將儲存在本機','3613362xhCHJj','已同步','公式計算佇列已滿,正在等待可用資源...','80ZyIZTN','由於協作房間已關閉,編輯權限已被收回。','公式計算已開始。','協作房間已滿,您的編輯將暫存於本機。','重新整理頁面','正在載入工作表','547899dpceLc','您的本機文件與伺服器文件存在衝突。請將您的本機編輯儲存至其他地方,因為重新整理頁面後將會遺失。','7288eZtWRW','1292966SQjIlK','您有未儲存至伺服器的離線編輯,請檢查網路後重試。','伺服器未回應協作請求,您的編輯將儲存在本機。','認證錯誤','協作衝突','連線失敗,將在稍後重試連線。'];_0x439c=function(){return _0x445b81;};return _0x439c();}export{e as default};
@@ -0,0 +1,36 @@
1
+ import type { ISnapshotLoadingTimeoutState } from '../../views/components/SnapshotLoadingTimeout';
2
+ import { SnapshotLoadingService } from '@univerjs-pro/collaboration';
3
+ import { Disposable, Injector, LocaleService, PluginService } from '@univerjs/core';
4
+ import { IMessageService, IShortcutService, IUIPartsService } from '@univerjs/ui';
5
+ import { IURLService } from '../../services/url/url.service';
6
+ export declare class SnapshotLoadingController extends Disposable {
7
+ private readonly _snapshotLoadingService;
8
+ private readonly _messageService;
9
+ private readonly _localeService;
10
+ private readonly _injector;
11
+ private readonly _pluginService;
12
+ private readonly _shortcutService;
13
+ private readonly _urlService;
14
+ private readonly _timeoutState$;
15
+ private readonly _interactionBlocked$;
16
+ private readonly _messageIds;
17
+ private readonly _blockProgressWatches;
18
+ private readonly _handoffUnitIds;
19
+ private _latestStates;
20
+ private _previewUnitId?;
21
+ private _shortcutBlock?;
22
+ private _sheetLoadingRenderService?;
23
+ readonly timeoutState$: import("rxjs").Observable<ISnapshotLoadingTimeoutState | null>;
24
+ constructor(_snapshotLoadingService: SnapshotLoadingService, _messageService: IMessageService, _localeService: LocaleService, _injector: Injector, _pluginService: PluginService, uiPartsService: IUIPartsService, _shortcutService: IShortcutService, _urlService: IURLService);
25
+ dispose(): void;
26
+ private _updateMessage;
27
+ private _watchBlockProgress;
28
+ private _clearBlockProgressWatch;
29
+ private _clearTimeoutState;
30
+ private _updateSheetPreview;
31
+ private _handoffPreview;
32
+ private _hidePreview;
33
+ private _setInteractionBlocked;
34
+ private _isVisibleUnit;
35
+ private _getSheetLoadingRenderService;
36
+ }
@@ -13,6 +13,11 @@ declare const locale: {
13
13
  syncing: string;
14
14
  offline: string;
15
15
  };
16
+ snapshotLoading: {
17
+ loadingSheet: string;
18
+ timeout: string;
19
+ refresh: string;
20
+ };
16
21
  session: {
17
22
  'connection-failed': string;
18
23
  'will-retry': string;
@@ -0,0 +1,15 @@
1
+ import type { Observable } from 'rxjs';
2
+ export interface ISnapshotLoadingTimeoutState {
3
+ unitId: string;
4
+ content: string;
5
+ refreshLabel: string;
6
+ }
7
+ interface IProps {
8
+ state$: Observable<ISnapshotLoadingTimeoutState | null>;
9
+ }
10
+ interface ISnapshotLoadingGlobalProps extends IProps {
11
+ interactionBlocked$: Observable<boolean>;
12
+ }
13
+ export declare function SnapshotLoadingGlobal({ state$, interactionBlocked$ }: ISnapshotLoadingGlobalProps): import("react").JSX.Element;
14
+ export declare function SnapshotLoadingTimeout({ state$ }: IProps): import("react").JSX.Element | null;
15
+ export {};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x3830(_0x14f2be,_0x47c019){_0x14f2be=_0x14f2be-0x1d2;var _0x19f416=_0x19f4();var _0x38302d=_0x19f416[_0x14f2be];return _0x38302d;}function _0x19f4(){var _0x1c00e6=['1762568HcePzs','runOnServer','FUniver','_injector','@univerjs-pro/collaboration-client-ui','460074HPPkyy','17092MnMVWE','2425353HnGMOg','822900ZYmmAH','amd','27mMTLKf','UniverCoreFacade','UniverProCollaborationClientUi','4162715Lcsycs','63zkmJGL','896748MtRKrs','extend','object','@univerjs/core/facade','RemoteUniscriptService'];_0x19f4=function(){return _0x1c00e6;};return _0x19f4();}(function(_0xb220ee,_0x5653c2){var _0x1025b6=_0x3830,_0x4fd7bb=_0xb220ee();while(!![]){try{var _0x156be8=-parseInt(_0x1025b6(0x1e3))/0x1+parseInt(_0x1025b6(0x1d9))/0x2+parseInt(_0x1025b6(0x1e2))/0x3*(-parseInt(_0x1025b6(0x1da))/0x4)+parseInt(_0x1025b6(0x1e1))/0x5+parseInt(_0x1025b6(0x1dc))/0x6+-parseInt(_0x1025b6(0x1db))/0x7+-parseInt(_0x1025b6(0x1d4))/0x8*(-parseInt(_0x1025b6(0x1de))/0x9);if(_0x156be8===_0x5653c2)break;else _0x4fd7bb['push'](_0x4fd7bb['shift']());}catch(_0x1f96c6){_0x4fd7bb['push'](_0x4fd7bb['shift']());}}}(_0x19f4,0x80d75),function(_0x3d301a,_0xbbc4a6){var _0x2b23e7=_0x3830;typeof exports==_0x2b23e7(0x1e5)&&typeof module<'u'?_0xbbc4a6(require('@univerjs-pro/collaboration-client-ui'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x2b23e7(0x1dd)]?define([_0x2b23e7(0x1d8),_0x2b23e7(0x1d2)],_0xbbc4a6):(_0x3d301a=typeof globalThis<'u'?globalThis:_0x3d301a||self,_0xbbc4a6(_0x3d301a[_0x2b23e7(0x1e0)],_0x3d301a[_0x2b23e7(0x1df)]));}(this,function(_0x5826be,_0x4427a9){var _0x1f6980=_0x3830,_0x458ac7=class extends _0x4427a9[_0x1f6980(0x1d6)]{[_0x1f6980(0x1d5)](_0x5c1d64,_0x5e9c2d,..._0x225380){var _0xfa19d3=_0x1f6980;return this[_0xfa19d3(0x1d7)]['get'](_0x5826be[_0xfa19d3(0x1d3)])[_0xfa19d3(0x1d5)](_0x5c1d64,_0x5e9c2d,{},..._0x225380);}};_0x4427a9[_0x1f6980(0x1d6)][_0x1f6980(0x1e4)](_0x458ac7);}));
1
+ function _0x2f5b(){var _0x39521c=['160rPpYqS','FUniver','extend','UniverCoreFacade','2622137gcmhbC','12jRYxiC','1650186MSCXPR','_injector','5284356DeEOfO','runOnServer','get','8rcTGSJ','RemoteUniscriptService','518067sGAQXV','@univerjs-pro/collaboration-client-ui','1293954UrGuLa','object','1ianBUc','7977978CYcssB','4yIvvsZ','13QYxfej','2799865UZfPQB','function'];_0x2f5b=function(){return _0x39521c;};return _0x2f5b();}function _0x4dd7(_0x4e30d9,_0x219677){_0x4e30d9=_0x4e30d9-0x163;var _0x2f5bdf=_0x2f5b();var _0x4dd704=_0x2f5bdf[_0x4e30d9];return _0x4dd704;}(function(_0x4313c6,_0x5adfaa){var _0x54aa5c=_0x4dd7,_0x4fa144=_0x4313c6();while(!![]){try{var _0x32539b=parseInt(_0x54aa5c(0x175))/0x1*(-parseInt(_0x54aa5c(0x173))/0x2)+parseInt(_0x54aa5c(0x16a))/0x3+-parseInt(_0x54aa5c(0x177))/0x4*(-parseInt(_0x54aa5c(0x179))/0x5)+parseInt(_0x54aa5c(0x169))/0x6*(parseInt(_0x54aa5c(0x168))/0x7)+-parseInt(_0x54aa5c(0x16f))/0x8*(-parseInt(_0x54aa5c(0x176))/0x9)+-parseInt(_0x54aa5c(0x164))/0xa*(parseInt(_0x54aa5c(0x171))/0xb)+-parseInt(_0x54aa5c(0x16c))/0xc*(parseInt(_0x54aa5c(0x178))/0xd);if(_0x32539b===_0x5adfaa)break;else _0x4fa144['push'](_0x4fa144['shift']());}catch(_0x3f0e14){_0x4fa144['push'](_0x4fa144['shift']());}}}(_0x2f5b,0xdce3f),function(_0x387138,_0x190985){var _0x75f64f=_0x4dd7;typeof exports==_0x75f64f(0x174)&&typeof module<'u'?_0x190985(require('@univerjs-pro/collaboration-client-ui'),require('@univerjs/core/facade')):typeof define==_0x75f64f(0x163)&&define['amd']?define([_0x75f64f(0x172),'@univerjs/core/facade'],_0x190985):(_0x387138=typeof globalThis<'u'?globalThis:_0x387138||self,_0x190985(_0x387138['UniverProCollaborationClientUi'],_0x387138[_0x75f64f(0x167)]));}(this,function(_0x353de1,_0x3462cf){var _0x1dccc5=_0x4dd7,_0x5f57ae=class extends _0x3462cf[_0x1dccc5(0x165)]{[_0x1dccc5(0x16d)](_0x2a8706,_0x5d9aca,..._0x45f183){var _0x14daac=_0x1dccc5;return this[_0x14daac(0x16b)][_0x14daac(0x16e)](_0x353de1[_0x14daac(0x170)])['runOnServer'](_0x2a8706,_0x5d9aca,{},..._0x45f183);}};_0x3462cf[_0x1dccc5(0x165)][_0x1dccc5(0x166)](_0x5f57ae);}));