@univerjs-pro/collaboration-client 1.0.0-rc.0 → 1.0.1
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 +0 -12
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +2 -1
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +3 -0
- package/lib/types/services/local-cache/local-cache.service.d.ts +1 -0
- 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 +16 -16
|
@@ -60,18 +60,6 @@ export interface IUniverCollaborationClientConfig {
|
|
|
60
60
|
* the collaboration attachment IO service.
|
|
61
61
|
*/
|
|
62
62
|
attachment?: IAttachmentUploadOptions;
|
|
63
|
-
/**
|
|
64
|
-
* The URL of the endpoint for starting formula limit.
|
|
65
|
-
*/
|
|
66
|
-
startFormulaLimitUrl?: string;
|
|
67
|
-
/**
|
|
68
|
-
* The URL of the endpoint for getting formula limit status.
|
|
69
|
-
*/
|
|
70
|
-
getFormulaLimitStatusUrl?: string;
|
|
71
|
-
/**
|
|
72
|
-
* The URL of the endpoint for releasing formula limit.
|
|
73
|
-
*/
|
|
74
|
-
releaseFormulaLimitUrl?: string;
|
|
75
63
|
/**
|
|
76
64
|
* The socket connection custom headers.
|
|
77
65
|
*/
|
|
@@ -248,7 +248,8 @@ export declare class ConflictState extends CollaborationState {
|
|
|
248
248
|
toggleOffline(): CollaborationState;
|
|
249
249
|
toggleOnline(): CollaborationState;
|
|
250
250
|
resend(): void;
|
|
251
|
-
private
|
|
251
|
+
private _prepareConflictRecovery;
|
|
252
|
+
private _showConflictProcessingNotification;
|
|
252
253
|
private _showConflictNotification;
|
|
253
254
|
private _disableEditing;
|
|
254
255
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export interface ICollaborationUIEvent {
|
|
2
2
|
id: CollaborationUIEventId;
|
|
3
3
|
data?: string;
|
|
4
|
+
unitID?: string;
|
|
4
5
|
}
|
|
5
6
|
export declare enum CollaborationUIEventId {
|
|
6
7
|
OTHER_CLIENT_EDITING = "OTHER_CLIENT_EDITING",
|
|
7
8
|
PERMISSION_DENIED = "PERMISSION_DENIED",
|
|
9
|
+
CONFLICT_PROCESSING = "CONFLICT_PROCESSING",
|
|
10
|
+
CONFLICT_CACHE_CLEAR_FAILED = "CONFLICT_CACHE_CLEAR_FAILED",
|
|
8
11
|
CONFLICT = "CONFLICT",
|
|
9
12
|
CLOSE_ROOM = "CLOSE_ROOM",
|
|
10
13
|
JOIN_ROOM_FAILED = "JOIN_ROOM_FAILED",
|
|
@@ -11,6 +11,7 @@ export interface ILocalCacheService {
|
|
|
11
11
|
loadOfflineData(unitID: string): Promise<Nullable<IUnitCacheData>>;
|
|
12
12
|
saveOfflineData(unitID: string, data: IUnitCacheData): Promise<boolean>;
|
|
13
13
|
backupOfflineData?(unitID: string, reason: string): Promise<void>;
|
|
14
|
+
clearOfflineData(unitID: string): Promise<void>;
|
|
14
15
|
updateOfflineData(unitID: string, type: UniverInstanceType, awaitingChangeset: Nullable<IChangeset>, pendingMutations: IMutationInfo[]): void;
|
|
15
16
|
disableLocalCache(): void;
|
|
16
17
|
enableLocalCache(): void;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x47f7(_0xb48264,_0x353e64){_0xb48264=_0xb48264-0x1e4;const _0x54f966=_0x54f9();let _0x47f728=_0x54f966[_0xb48264];return _0x47f728;}(function(_0x2dd7ee,_0x36bcb8){const _0x5df2b1=_0x47f7,_0x2671d8=_0x2dd7ee();while(!![]){try{const _0x36a235=-parseInt(_0x5df2b1(0x1e6))/0x1+parseInt(_0x5df2b1(0x1f1))/0x2*(-parseInt(_0x5df2b1(0x23e))/0x3)+-parseInt(_0x5df2b1(0x1ee))/0x4+parseInt(_0x5df2b1(0x219))/0x5*(parseInt(_0x5df2b1(0x1ef))/0x6)+parseInt(_0x5df2b1(0x224))/0x7+parseInt(_0x5df2b1(0x1f0))/0x8+parseInt(_0x5df2b1(0x22b))/0x9;if(_0x36a235===_0x36bcb8)break;else _0x2671d8['push'](_0x2671d8['shift']());}catch(_0x4752db){_0x2671d8['push'](_0x2671d8['shift']());}}}(_0x54f9,0xd889c),function(_0x3888c2,_0x2d75ea){const _0x15ac74=_0x47f7;typeof exports==_0x15ac74(0x213)&&typeof module<'u'?_0x2d75ea(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define=='function'&&define[_0x15ac74(0x21f)]?define([_0x15ac74(0x20d),_0x15ac74(0x217),'@univerjs/core/facade','@univerjs/core',_0x15ac74(0x232),_0x15ac74(0x1f8)],_0x2d75ea):(_0x3888c2=typeof globalThis<'u'?globalThis:_0x3888c2||self,_0x2d75ea(_0x3888c2[_0x15ac74(0x20c)]={},_0x3888c2[_0x15ac74(0x23d)],_0x3888c2[_0x15ac74(0x225)],_0x3888c2[_0x15ac74(0x235)],_0x3888c2['UniverProCollaboration'],_0x3888c2[_0x15ac74(0x1f8)]));}(this,function(_0x231d22,_0x27b7e7,_0x4f97fb,_0x5b6d51,_0x1dd91c,_0x3b1318){const _0x4649c8=_0x47f7;Object[_0x4649c8(0x21b)](_0x231d22,Symbol[_0x4649c8(0x236)],{'value':_0x4649c8(0x1e9)});var _0x4d713d=class extends _0x4f97fb['FEnum']{get[_0x4649c8(0x231)](){const _0x2215bc=_0x4649c8;return _0x27b7e7[_0x2215bc(0x231)];}};_0x4f97fb[_0x4649c8(0x1fb)]['extend'](_0x4d713d);var _0x9c6083=class extends _0x4f97fb[_0x4649c8(0x21e)]{get[_0x4649c8(0x22a)](){const _0x6e844c=_0x4649c8;return _0x6e844c(0x22a);}};_0x4f97fb[_0x4649c8(0x21e)][_0x4649c8(0x1fe)](_0x9c6083);function _0x3cdc4f(_0x4d322f,_0x1eb2fd){return function(_0x1a8c81,_0x558aca){_0x1eb2fd(_0x1a8c81,_0x558aca,_0x4d322f);};}function _0x62bd0c(_0x55bcb9,_0x317c14,_0x528124,_0x3914cb){const _0x4ea659=_0x4649c8;var _0x7d2a35=arguments[_0x4ea659(0x204)],_0xf3c276=_0x7d2a35<0x3?_0x317c14:_0x3914cb===null?_0x3914cb=Object[_0x4ea659(0x23f)](_0x317c14,_0x528124):_0x3914cb,_0x5b36c0;if(typeof Reflect==_0x4ea659(0x213)&&typeof Reflect[_0x4ea659(0x22d)]==_0x4ea659(0x211))_0xf3c276=Reflect[_0x4ea659(0x22d)](_0x55bcb9,_0x317c14,_0x528124,_0x3914cb);else{for(var _0x48f4aa=_0x55bcb9[_0x4ea659(0x204)]-0x1;_0x48f4aa>=0x0;_0x48f4aa--)(_0x5b36c0=_0x55bcb9[_0x48f4aa])&&(_0xf3c276=(_0x7d2a35<0x3?_0x5b36c0(_0xf3c276):_0x7d2a35>0x3?_0x5b36c0(_0x317c14,_0x528124,_0xf3c276):_0x5b36c0(_0x317c14,_0x528124))||_0xf3c276);}return _0x7d2a35>0x3&&_0xf3c276&&Object['defineProperty'](_0x317c14,_0x528124,_0xf3c276),_0xf3c276;}let _0x13c781=class extends _0x4f97fb[_0x4649c8(0x21a)]{constructor(_0x11966a,_0x40f0a2,_0x5a0c67,_0xa682e7,_0x2b6123){const _0x2cd258=_0x4649c8;super(),this[_0x2cd258(0x218)]=_0x11966a,this[_0x2cd258(0x237)]=_0x40f0a2,this[_0x2cd258(0x1e7)]=_0x5a0c67,this[_0x2cd258(0x212)]=_0xa682e7,this[_0x2cd258(0x1f3)]=_0x2b6123;}async['loadSheetAsync'](_0x460efb,_0x1a64d7){const _0x5c5c88=_0x4649c8;return await this[_0x5c5c88(0x212)]['loadSheet'](_0x460efb,0x0,_0x1a64d7)?(await this['_collaborationController'][_0x5c5c88(0x229)](_0x460efb),this['_handler']['getWorkbook'](_0x460efb)):null;}async['loadDocAsync'](_0x51205c,_0x2cbe25){const _0x286ab7=_0x4649c8;return await this[_0x286ab7(0x212)][_0x286ab7(0x228)](_0x51205c,0x0,_0x2cbe25)?(await this[_0x286ab7(0x1f3)][_0x286ab7(0x229)](_0x51205c),this[_0x286ab7(0x218)][_0x286ab7(0x210)](_0x51205c)):null;}async[_0x4649c8(0x1f5)](_0x2b58a0,_0x1eb85e){const _0x24eefa=_0x4649c8;return await this[_0x24eefa(0x212)][_0x24eefa(0x1e4)](_0x2b58a0,0x0,_0x1eb85e)?(await this['_collaborationController']['readyForCollab'](_0x2b58a0),this[_0x24eefa(0x218)][_0x24eefa(0x20f)](_0x2b58a0)):null;}async[_0x4649c8(0x1e5)](_0x3e43db,_0xa24bd7){const _0x4f4b92=_0x4649c8;return await this[_0x4f4b92(0x212)][_0x4f4b92(0x226)](_0x3e43db,0x0,_0xa24bd7)?(await this[_0x4f4b92(0x1f3)][_0x4f4b92(0x229)](_0x3e43db),this['_handler'][_0x4f4b92(0x234)](_0x3e43db)):null;}async['loadBoardAsync'](_0x57b7e3,_0x3198de){const _0x5807a2=_0x4649c8;return await this[_0x5807a2(0x212)][_0x5807a2(0x207)](_0x57b7e3,0x0,_0x3198de)?(await this[_0x5807a2(0x1f3)]['readyForCollab'](_0x57b7e3),this['_handler'][_0x5807a2(0x202)](_0x57b7e3)):null;}async[_0x4649c8(0x222)](_0x31106e,_0xdd2ffe){const _0x3f3425=_0x4649c8;return await this[_0x3f3425(0x212)][_0x3f3425(0x1fc)](_0x31106e,0x0,_0xdd2ffe)?(await this['_collaborationController'][_0x3f3425(0x229)](_0x31106e),this[_0x3f3425(0x218)][_0x3f3425(0x1f6)](_0x31106e)):null;}[_0x4649c8(0x1f4)](_0x47e0ab,_0x4d8726){const _0x549273=_0x4649c8;return(0x0,_0x5b6d51[_0x549273(0x1fd)])(this[_0x549273(0x237)][_0x549273(0x215)](_0x27b7e7[_0x549273(0x1eb)])[_0x549273(0x206)](_0x47e0ab)[_0x549273(0x20e)]((0x0,_0x3b1318[_0x549273(0x227)])(_0x366e0a=>_0x366e0a[_0x549273(0x1f7)]))[_0x549273(0x203)](_0x55d47b=>_0x4d8726(Array[_0x549273(0x21d)](_0x55d47b[_0x549273(0x230)]()))));}[_0x4649c8(0x1ff)](_0x1aa9ac){const _0x2fe5f8=_0x4649c8;let _0x1a4db4=this[_0x2fe5f8(0x23c)](_0x1aa9ac);if(!_0x1a4db4)return _0x27b7e7[_0x2fe5f8(0x231)]['NOT_COLLAB'];let _0x584951=this['_collaborationController'][_0x2fe5f8(0x21c)](_0x1a4db4);return(_0x584951==null?void 0x0:_0x584951[_0x2fe5f8(0x1f9)][_0x2fe5f8(0x242)])??_0x27b7e7[_0x2fe5f8(0x231)]['NOT_COLLAB'];}[_0x4649c8(0x209)](_0x16c656,_0x3fe99a={}){const _0x3f083e=_0x4649c8;let _0x20b84a=this[_0x3f083e(0x23c)](_0x16c656);if(!_0x20b84a)return Promise[_0x3f083e(0x221)](Error('[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.'));let _0xd66fd1=this[_0x3f083e(0x1f3)][_0x3f083e(0x21c)](_0x20b84a);if(!_0xd66fd1)return Promise[_0x3f083e(0x221)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x20b84a+_0x3f083e(0x22f)));let _0x533258=_0xd66fd1[_0x3f083e(0x1f9)][_0x3f083e(0x242)];if(_0x533258===_0x27b7e7[_0x3f083e(0x231)][_0x3f083e(0x240)])return Promise[_0x3f083e(0x20a)]();let _0x5d96b8=_0xe9b47d(_0x20b84a,_0x533258);if(_0x5d96b8)return Promise['reject'](_0x5d96b8);let _0x5d9150=_0x3fe99a[_0x3f083e(0x1fa)]??0x7530;return new Promise((_0xb737e1,_0x2c82c5)=>{const _0x55742f=_0x3f083e;let _0x34aa87=!0x1,_0x447f3d=null,_0x3c4add=setTimeout(()=>{const _0x54f123=_0x47f7;_0x34aa87=!0x0,_0x447f3d==null||_0x447f3d[_0x54f123(0x22c)](),_0x2c82c5(Error('[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22'+_0x20b84a+'\x22\x20after\x20'+_0x5d9150+_0x54f123(0x201)));},_0x5d9150),_0x1d8f30=()=>{const _0x315657=_0x47f7;_0x34aa87=!0x0,clearTimeout(_0x3c4add),_0x447f3d==null||_0x447f3d[_0x315657(0x22c)]();};_0x447f3d=_0xd66fd1[_0x55742f(0x238)]['subscribe'](_0x4ac069=>{const _0x146c7c=_0x55742f;if(_0x34aa87)return;if(_0x4ac069===_0x27b7e7[_0x146c7c(0x231)][_0x146c7c(0x240)]){_0x1d8f30(),_0xb737e1();return;}let _0x2032b8=_0xe9b47d(_0x20b84a,_0x4ac069);_0x2032b8&&(_0x1d8f30(),_0x2c82c5(_0x2032b8));});});}[_0x4649c8(0x23c)](_0xc6ffa9){var _0x45202e;return _0xc6ffa9||((_0x45202e=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x45202e['getUnitId']());}};_0x13c781=_0x62bd0c([_0x3cdc4f(0x1,(0x0,_0x5b6d51[_0x4649c8(0x205)])(_0x5b6d51[_0x4649c8(0x239)])),_0x3cdc4f(0x2,_0x5b6d51[_0x4649c8(0x216)]),_0x3cdc4f(0x3,(0x0,_0x5b6d51[_0x4649c8(0x205)])(_0x1dd91c[_0x4649c8(0x220)])),_0x3cdc4f(0x4,(0x0,_0x5b6d51[_0x4649c8(0x205)])(_0x27b7e7[_0x4649c8(0x1ed)]))],_0x13c781);function _0xe9b47d(_0x2389c9,_0x18d3e3){const _0x233c5f=_0x4649c8;return _0x18d3e3===_0x27b7e7['CollaborationStatus']['CONFLICT']||_0x18d3e3===_0x27b7e7['CollaborationStatus'][_0x233c5f(0x214)]?Error(_0x233c5f(0x1e8)+_0x2389c9+_0x233c5f(0x1f2)+_0x18d3e3+'.'):null;}var _0x2937ca=class extends _0x4f97fb[_0x4649c8(0x1ec)]{[_0x4649c8(0x233)](_0x3a8e48){const _0xf3a9c8=_0x4649c8;let _0x31a3ce=_0x3a8e48['get'](_0x27b7e7['CollaborationController']);this['disposeWithMe'](this[_0xf3a9c8(0x223)](this[_0xf3a9c8(0x200)][_0xf3a9c8(0x22a)],()=>{const _0x3166c9=_0xf3a9c8;let _0x99500b=new _0x5b6d51[(_0x3166c9(0x1ea))](),_0x28e5d8=_0x31a3ce['entityInit$'][_0x3166c9(0x203)](_0x55787d=>{const _0x502aba=_0x3166c9;let _0x3b10c3=_0x55787d[_0x502aba(0x238)]['subscribe'](_0x42d1b3=>{const _0x59964a=_0x502aba;let _0x43f6e1={'unitId':_0x55787d['unitID'],'status':_0x42d1b3};this['fireEvent'](this[_0x59964a(0x200)]['CollaborationStatusChanged'],_0x43f6e1);});_0x99500b[_0x502aba(0x22e)]((0x0,_0x5b6d51[_0x502aba(0x1fd)])(_0x3b10c3));});return _0x99500b[_0x3166c9(0x22e)]((0x0,_0x5b6d51['toDisposable'])(_0x28e5d8)),_0x99500b;}));}['getCollaboration'](){const _0x3497da=_0x4649c8;return this['_injector'][_0x3497da(0x208)](_0x13c781,{'getWorkbook':_0xa99ca9=>this['getWorkbook'](_0xa99ca9),'getDocument':_0xd8accb=>this[_0x3497da(0x210)](_0xd8accb),'getPresentation':_0x371ef2=>this[_0x3497da(0x234)](_0x371ef2),'getBase':_0x5eedd7=>this[_0x3497da(0x20f)](_0x5eedd7),'getBoard':_0x2c49e9=>this[_0x3497da(0x202)](_0x2c49e9),'getPdf':_0x3f6cbc=>this[_0x3497da(0x1f6)](_0x3f6cbc)});}[_0x4649c8(0x23a)](_0x19f697,_0x4f9020,_0x3702b4){const _0x13e8e1=_0x4649c8;return this[_0x13e8e1(0x237)][_0x13e8e1(0x215)](_0x27b7e7[_0x13e8e1(0x20b)])[_0x13e8e1(0x23b)](_0x19f697,_0x4f9020,_0x3702b4);}[_0x4649c8(0x241)](_0x2098a4,_0x310022,_0x5340fd){const _0x53afea=_0x4649c8;return this[_0x53afea(0x237)][_0x53afea(0x215)](_0x27b7e7[_0x53afea(0x20b)])['loadUnitOfRevision'](_0x2098a4,_0x310022,_0x5340fd);}};_0x4f97fb['FUniver']['extend'](_0x2937ca),Object[_0x4649c8(0x21b)](_0x231d22,'FCollaboration',{'enumerable':!0x0,'get':function(){return _0x13c781;}});}));function _0x54f9(){const _0x324d0e=['_injector','status$','Injector','loadServerUnit','loadUnit','_resolveUnitId','UniverProCollaborationClient','3ksjmLE','getOwnPropertyDescriptor','SYNCED','loadServerUnitOfRevision','status','loadBase','loadSlideAsync','1190339QRAPor','_univerInstanceService','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','Module','DisposableCollection','MemberService','FUniver','CollaborationController','5625312rUBmoC','6NiSIUv','5560992xHsQPa','3433596kJnAFz','\x22\x20while\x20collaboration\x20status\x20is\x20','_collaborationController','subscribeCollaborators','loadBaseAsync','getPdf','members$','rxjs','state','timeout','FEnum','loadPdf','toDisposable','extend','getCollaborationStatus','Event','ms.','getBoard','subscribe','length','Inject','waitForRoom$','loadBoard','createInstance','flush','resolve','DataLoaderService','UniverProCollaborationClientFacade','exports','pipe','getBase','getDocument','function','_snapshotService','object','NOT_COLLAB','get','IUniverInstanceService','@univerjs-pro/collaboration-client','_handler','2155420EZTFbi','FBase','defineProperty','getCollabEntity','from','FEventName','amd','SnapshotService','reject','loadPdfAsync','registerEventHandler','10701425yOeYpL','UniverCoreFacade','loadSlide','switchMap','loadDoc','readyForCollab','CollaborationStatusChanged','22908798mqejPs','unsubscribe','decorate','add','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','values','CollaborationStatus','@univerjs-pro/collaboration','_initialize','getPresentation','UniverCore','toStringTag'];_0x54f9=function(){return _0x324d0e;};return _0x54f9();}
|
|
1
|
+
function _0xdfcd(){const _0x437f81=['CollaborationController','_handler','49707zAeFVB','Inject','function','599418OrKEsn','NOT_COLLAB','1375356KIGqmt','exports','loadSheetAsync','DataLoaderService','DisposableCollection','FCollaboration','UniverCoreFacade','loadDoc','UniverCore','UniverProCollaborationClient','@univerjs-pro/collaboration','switchMap','loadBoardAsync','FEnum','subscribe','status','getOwnPropertyDescriptor','createInstance','entityInit$','pipe','@univerjs/core/facade','Event','CONFLICT','loadPdfAsync','@univerjs-pro/collaboration-client','values','UniverProCollaboration','getCollaboration','loadPdf','flush','IUniverInstanceService','waitForRoom$','add','_collaborationController','status$','8677590kslcmR','_injector','_univerInstanceService','\x22\x20is\x20not\x20in\x20collaboration\x20mode.','[FCollaboration]:\x20Cannot\x20flush\x20because\x20no\x20unit\x20is\x20focused\x20or\x20specified.','getWorkbook','from','extend','state','decorate','subscribeCollaborators','loadBase','getDocument','getPdf','32hmqzqW','toDisposable','708AhFmbU','toStringTag','SnapshotService','6108yDkWVa','timeout','loadUnitOfRevision','@univerjs/core','get','rxjs','readyForCollab','reject','defineProperty','members$','length','unitID','Injector','2930fmMGwf','loadDocAsync','getCollabEntity','SYNCED','UniverProCollaborationClientFacade','loadUnit','[FCollaboration]:\x20Timed\x20out\x20flushing\x20unit\x20\x22','amd','fireEvent','getCollaborationStatus','loadServerUnitOfRevision','\x22\x20after\x20','loadSlideAsync','getBase','MemberService','CollaborationStatusChanged','154CwCZtp','getUnitId','3RPPeNM','registerEventHandler','CollaborationStatus','FUniver','_snapshotService','_resolveUnitId','[FCollaboration]:\x20Cannot\x20flush\x20unit\x20\x22','FEventName','562577PEBazW','object','loadSlide','unsubscribe','1669238kCbKES','loadServerUnit','disposeWithMe'];_0xdfcd=function(){return _0x437f81;};return _0xdfcd();}function _0x45c2(_0x390010,_0x2d8b72){_0x390010=_0x390010-0x18f;const _0xdfcd15=_0xdfcd();let _0x45c2d9=_0xdfcd15[_0x390010];return _0x45c2d9;}(function(_0x482365,_0xe0f638){const _0x376ca8=_0x45c2,_0x1356ad=_0x482365();while(!![]){try{const _0x28e7d2=-parseInt(_0x376ca8(0x1f9))/0x1+parseInt(_0x376ca8(0x192))/0x2*(-parseInt(_0x376ca8(0x1f1))/0x3)+parseInt(_0x376ca8(0x1d2))/0x4*(-parseInt(_0x376ca8(0x1df))/0x5)+parseInt(_0x376ca8(0x1cf))/0x6*(parseInt(_0x376ca8(0x197))/0x7)+parseInt(_0x376ca8(0x1cd))/0x8*(-parseInt(_0x376ca8(0x19a))/0x9)+parseInt(_0x376ca8(0x1bf))/0xa+parseInt(_0x376ca8(0x1ef))/0xb*(parseInt(_0x376ca8(0x19c))/0xc);if(_0x28e7d2===_0xe0f638)break;else _0x1356ad['push'](_0x1356ad['shift']());}catch(_0x3e7fb3){_0x1356ad['push'](_0x1356ad['shift']());}}}(_0xdfcd,0xb78d9),function(_0x2a0ffa,_0x2f463e){const _0x3c280a=_0x45c2;typeof exports=='object'&&typeof module<'u'?_0x2f463e(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0x3c280a(0x199)&&define[_0x3c280a(0x1e6)]?define([_0x3c280a(0x19d),_0x3c280a(0x1b4),_0x3c280a(0x1b0),_0x3c280a(0x1d5),_0x3c280a(0x1a6),_0x3c280a(0x1d7)],_0x2f463e):(_0x2a0ffa=typeof globalThis<'u'?globalThis:_0x2a0ffa||self,_0x2f463e(_0x2a0ffa[_0x3c280a(0x1e3)]={},_0x2a0ffa[_0x3c280a(0x1a5)],_0x2a0ffa[_0x3c280a(0x1a2)],_0x2a0ffa[_0x3c280a(0x1a4)],_0x2a0ffa[_0x3c280a(0x1b6)],_0x2a0ffa[_0x3c280a(0x1d7)]));}(this,function(_0x27a369,_0x2b0af0,_0x365aae,_0x5c873f,_0x2f70f4,_0x19232d){const _0x46c129=_0x45c2;Object['defineProperty'](_0x27a369,Symbol[_0x46c129(0x1d0)],{'value':'Module'});var _0x44c836=class extends _0x365aae[_0x46c129(0x1a9)]{get[_0x46c129(0x1f3)](){const _0xa1d5=_0x46c129;return _0x2b0af0[_0xa1d5(0x1f3)];}};_0x365aae[_0x46c129(0x1a9)][_0x46c129(0x1c6)](_0x44c836);var _0x50a8eb=class extends _0x365aae[_0x46c129(0x1f8)]{get[_0x46c129(0x1ee)](){return'CollaborationStatusChanged';}};_0x365aae[_0x46c129(0x1f8)][_0x46c129(0x1c6)](_0x50a8eb);function _0x5e9676(_0x5df10d,_0x1b1c70){return function(_0x307e07,_0x3d537a){_0x1b1c70(_0x307e07,_0x3d537a,_0x5df10d);};}function _0x6a9d04(_0x46c0db,_0x2837b4,_0x38006d,_0x577af4){const _0x394ec8=_0x46c129;var _0x48e201=arguments[_0x394ec8(0x1dc)],_0x2068be=_0x48e201<0x3?_0x2837b4:_0x577af4===null?_0x577af4=Object[_0x394ec8(0x1ac)](_0x2837b4,_0x38006d):_0x577af4,_0x2fdb81;if(typeof Reflect==_0x394ec8(0x18f)&&typeof Reflect[_0x394ec8(0x1c8)]==_0x394ec8(0x199))_0x2068be=Reflect[_0x394ec8(0x1c8)](_0x46c0db,_0x2837b4,_0x38006d,_0x577af4);else{for(var _0x2d265b=_0x46c0db[_0x394ec8(0x1dc)]-0x1;_0x2d265b>=0x0;_0x2d265b--)(_0x2fdb81=_0x46c0db[_0x2d265b])&&(_0x2068be=(_0x48e201<0x3?_0x2fdb81(_0x2068be):_0x48e201>0x3?_0x2fdb81(_0x2837b4,_0x38006d,_0x2068be):_0x2fdb81(_0x2837b4,_0x38006d))||_0x2068be);}return _0x48e201>0x3&&_0x2068be&&Object[_0x394ec8(0x1da)](_0x2837b4,_0x38006d,_0x2068be),_0x2068be;}let _0x2b77a0=class extends _0x365aae['FBase']{constructor(_0x2b2d4d,_0x5ce2dd,_0x4f55f3,_0x178dae,_0x3c6915){const _0x492925=_0x46c129;super(),this[_0x492925(0x196)]=_0x2b2d4d,this[_0x492925(0x1c0)]=_0x5ce2dd,this['_univerInstanceService']=_0x4f55f3,this[_0x492925(0x1f5)]=_0x178dae,this[_0x492925(0x1bd)]=_0x3c6915;}async[_0x46c129(0x19e)](_0x45411d,_0x56b174){const _0x2f8497=_0x46c129;return await this[_0x2f8497(0x1f5)]['loadSheet'](_0x45411d,0x0,_0x56b174)?(await this['_collaborationController'][_0x2f8497(0x1d8)](_0x45411d),this['_handler'][_0x2f8497(0x1c4)](_0x45411d)):null;}async[_0x46c129(0x1e0)](_0x3bb08c,_0x2f82f6){const _0x49cc72=_0x46c129;return await this['_snapshotService'][_0x49cc72(0x1a3)](_0x3bb08c,0x0,_0x2f82f6)?(await this[_0x49cc72(0x1bd)][_0x49cc72(0x1d8)](_0x3bb08c),this[_0x49cc72(0x196)]['getDocument'](_0x3bb08c)):null;}async['loadBaseAsync'](_0x2f24c4,_0x59e31a){const _0x58858e=_0x46c129;return await this[_0x58858e(0x1f5)][_0x58858e(0x1ca)](_0x2f24c4,0x0,_0x59e31a)?(await this['_collaborationController'][_0x58858e(0x1d8)](_0x2f24c4),this[_0x58858e(0x196)]['getBase'](_0x2f24c4)):null;}async[_0x46c129(0x1eb)](_0x5eac42,_0x5e0113){const _0x407323=_0x46c129;return await this[_0x407323(0x1f5)][_0x407323(0x190)](_0x5eac42,0x0,_0x5e0113)?(await this['_collaborationController'][_0x407323(0x1d8)](_0x5eac42),this[_0x407323(0x196)]['getPresentation'](_0x5eac42)):null;}async[_0x46c129(0x1a8)](_0x2e6896,_0x13bf99){const _0x5c32da=_0x46c129;return await this[_0x5c32da(0x1f5)]['loadBoard'](_0x2e6896,0x0,_0x13bf99)?(await this['_collaborationController']['readyForCollab'](_0x2e6896),this[_0x5c32da(0x196)]['getBoard'](_0x2e6896)):null;}async[_0x46c129(0x1b3)](_0x3e3962,_0xbbbfde){const _0x2f359e=_0x46c129;return await this[_0x2f359e(0x1f5)][_0x2f359e(0x1b8)](_0x3e3962,0x0,_0xbbbfde)?(await this['_collaborationController'][_0x2f359e(0x1d8)](_0x3e3962),this['_handler']['getPdf'](_0x3e3962)):null;}[_0x46c129(0x1c9)](_0xe61ea4,_0x5ee6ba){const _0x1cad57=_0x46c129;let _0xed9a25=this[_0x1cad57(0x1c0)][_0x1cad57(0x1d6)](_0x2b0af0[_0x1cad57(0x1ed)])[_0x1cad57(0x1bb)](_0xe61ea4)[_0x1cad57(0x1af)]((0x0,_0x19232d[_0x1cad57(0x1a7)])(_0x5c4867=>_0x5c4867[_0x1cad57(0x1db)]))['subscribe'](_0x5e2814=>_0x5ee6ba(Array[_0x1cad57(0x1c5)](_0x5e2814[_0x1cad57(0x1b5)]())));return(0x0,_0x5c873f[_0x1cad57(0x1ce)])(_0xed9a25);}[_0x46c129(0x1e8)](_0x11e863){const _0x16d0b6=_0x46c129;let _0x1ec69d=this[_0x16d0b6(0x1f6)](_0x11e863);if(!_0x1ec69d)return _0x2b0af0['CollaborationStatus'][_0x16d0b6(0x19b)];let _0x26578e=this[_0x16d0b6(0x1bd)][_0x16d0b6(0x1e1)](_0x1ec69d);return(_0x26578e==null?void 0x0:_0x26578e[_0x16d0b6(0x1c7)][_0x16d0b6(0x1ab)])??_0x2b0af0['CollaborationStatus'][_0x16d0b6(0x19b)];}[_0x46c129(0x1b9)](_0x51db16,_0x1bc29b={}){const _0x1a1dc1=_0x46c129;let _0x58d73b=this[_0x1a1dc1(0x1f6)](_0x51db16);if(!_0x58d73b)return Promise[_0x1a1dc1(0x1d9)](Error(_0x1a1dc1(0x1c3)));let _0x2a1dec=this['_collaborationController'][_0x1a1dc1(0x1e1)](_0x58d73b);if(!_0x2a1dec)return Promise[_0x1a1dc1(0x1d9)](Error('[FCollaboration]:\x20Unit\x20\x22'+_0x58d73b+_0x1a1dc1(0x1c2)));let _0xeb12f1=_0x2a1dec[_0x1a1dc1(0x1c7)]['status'];if(_0xeb12f1===_0x2b0af0['CollaborationStatus'][_0x1a1dc1(0x1e2)])return Promise['resolve']();let _0x427e35=_0x45fbbe(_0x58d73b,_0xeb12f1);if(_0x427e35)return Promise['reject'](_0x427e35);let _0x3a47cd=_0x1bc29b[_0x1a1dc1(0x1d3)]??0x7530;return new Promise((_0x3fc2d0,_0x24adbf)=>{const _0x169a9b=_0x1a1dc1;let _0x151a27=!0x1,_0x32df82=null,_0x1a17b5=setTimeout(()=>{const _0x1ca552=_0x45c2;_0x151a27=!0x0,_0x32df82==null||_0x32df82[_0x1ca552(0x191)](),_0x24adbf(Error(_0x1ca552(0x1e5)+_0x58d73b+_0x1ca552(0x1ea)+_0x3a47cd+'ms.'));},_0x3a47cd),_0x1356e8=()=>{const _0x1de7cf=_0x45c2;_0x151a27=!0x0,clearTimeout(_0x1a17b5),_0x32df82==null||_0x32df82[_0x1de7cf(0x191)]();};_0x32df82=_0x2a1dec[_0x169a9b(0x1be)][_0x169a9b(0x1aa)](_0x33e4ee=>{const _0x39d38b=_0x169a9b;if(_0x151a27)return;if(_0x33e4ee===_0x2b0af0[_0x39d38b(0x1f3)][_0x39d38b(0x1e2)]){_0x1356e8(),_0x3fc2d0();return;}let _0x35cdad=_0x45fbbe(_0x58d73b,_0x33e4ee);_0x35cdad&&(_0x1356e8(),_0x24adbf(_0x35cdad));});});}[_0x46c129(0x1f6)](_0xd33157){const _0x513637=_0x46c129;var _0x15463d;return _0xd33157||((_0x15463d=this[_0x513637(0x1c1)]['getFocusedUnit']())==null?void 0x0:_0x15463d[_0x513637(0x1f0)]());}};_0x2b77a0=_0x6a9d04([_0x5e9676(0x1,(0x0,_0x5c873f[_0x46c129(0x198)])(_0x5c873f[_0x46c129(0x1de)])),_0x5e9676(0x2,_0x5c873f[_0x46c129(0x1ba)]),_0x5e9676(0x3,(0x0,_0x5c873f[_0x46c129(0x198)])(_0x2f70f4[_0x46c129(0x1d1)])),_0x5e9676(0x4,(0x0,_0x5c873f[_0x46c129(0x198)])(_0x2b0af0[_0x46c129(0x195)]))],_0x2b77a0);function _0x45fbbe(_0x574b99,_0x3c1d4c){const _0xf8c55b=_0x46c129;return _0x3c1d4c===_0x2b0af0[_0xf8c55b(0x1f3)][_0xf8c55b(0x1b2)]||_0x3c1d4c===_0x2b0af0['CollaborationStatus'][_0xf8c55b(0x19b)]?Error(_0xf8c55b(0x1f7)+_0x574b99+'\x22\x20while\x20collaboration\x20status\x20is\x20'+_0x3c1d4c+'.'):null;}var _0x2a94cc=class extends _0x365aae[_0x46c129(0x1f4)]{['_initialize'](_0x4cce96){const _0x130a11=_0x46c129;let _0x376f2b=_0x4cce96[_0x130a11(0x1d6)](_0x2b0af0[_0x130a11(0x195)]);this[_0x130a11(0x194)](this[_0x130a11(0x1f2)](this['Event'][_0x130a11(0x1ee)],()=>{const _0x1d5662=_0x130a11;let _0x4c298f=new _0x5c873f[(_0x1d5662(0x1a0))](),_0x5c823a=_0x376f2b[_0x1d5662(0x1ae)][_0x1d5662(0x1aa)](_0x59b8af=>{const _0x14b735=_0x1d5662;let _0x1a7652=_0x59b8af['status$'][_0x14b735(0x1aa)](_0x5900c9=>{const _0x5aaa9=_0x14b735;let _0x435431={'unitId':_0x59b8af[_0x5aaa9(0x1dd)],'status':_0x5900c9};this[_0x5aaa9(0x1e7)](this[_0x5aaa9(0x1b1)][_0x5aaa9(0x1ee)],_0x435431);});_0x4c298f[_0x14b735(0x1bc)]((0x0,_0x5c873f[_0x14b735(0x1ce)])(_0x1a7652));});return _0x4c298f['add']((0x0,_0x5c873f['toDisposable'])(_0x5c823a)),_0x4c298f;}));}[_0x46c129(0x1b7)](){const _0x1f2c48=_0x46c129;return this['_injector'][_0x1f2c48(0x1ad)](_0x2b77a0,{'getWorkbook':_0xf3c8a8=>this[_0x1f2c48(0x1c4)](_0xf3c8a8),'getDocument':_0x3dc82d=>this[_0x1f2c48(0x1cb)](_0x3dc82d),'getPresentation':_0x49009a=>this['getPresentation'](_0x49009a),'getBase':_0x9f0638=>this[_0x1f2c48(0x1ec)](_0x9f0638),'getBoard':_0x5b2267=>this['getBoard'](_0x5b2267),'getPdf':_0x77e7fe=>this[_0x1f2c48(0x1cc)](_0x77e7fe)});}[_0x46c129(0x193)](_0x1d08f7,_0x454ebf,_0x19faa5){const _0x47054f=_0x46c129;return this[_0x47054f(0x1c0)]['get'](_0x2b0af0['DataLoaderService'])[_0x47054f(0x1e4)](_0x1d08f7,_0x454ebf,_0x19faa5);}[_0x46c129(0x1e9)](_0x7f6287,_0x40b27a,_0xa61c83){const _0x32e782=_0x46c129;return this[_0x32e782(0x1c0)][_0x32e782(0x1d6)](_0x2b0af0[_0x32e782(0x19f)])[_0x32e782(0x1d4)](_0x7f6287,_0x40b27a,_0xa61c83);}};_0x365aae['FUniver'][_0x46c129(0x1c6)](_0x2a94cc),Object[_0x46c129(0x1da)](_0x27a369,_0x46c129(0x1a1),{'enumerable':!0x0,'get':function(){return _0x2b77a0;}});}));
|