@univerjs-pro/collaboration-client 0.4.2 → 0.5.0-nightly.202411091605

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 (90) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/en-US.js +1 -0
  3. package/lib/cjs/locale/fa-IR.js +1 -0
  4. package/lib/cjs/locale/ru-RU.js +1 -0
  5. package/lib/cjs/locale/vi-VN.js +1 -0
  6. package/lib/cjs/locale/zh-CN.js +1 -0
  7. package/lib/cjs/locale/zh-TW.js +1 -0
  8. package/lib/es/index.js +1 -1
  9. package/lib/es/locale/en-US.js +1 -0
  10. package/lib/es/locale/fa-IR.js +1 -0
  11. package/lib/es/locale/ru-RU.js +1 -0
  12. package/lib/es/locale/vi-VN.js +1 -0
  13. package/lib/es/locale/zh-CN.js +1 -0
  14. package/lib/es/locale/zh-TW.js +1 -0
  15. package/lib/types/index.d.ts +890 -34
  16. package/lib/umd/index.js +1 -1
  17. package/lib/umd/locale/en-US.js +1 -0
  18. package/lib/umd/locale/fa-IR.js +1 -0
  19. package/lib/umd/locale/ru-RU.js +1 -0
  20. package/lib/umd/locale/vi-VN.js +1 -0
  21. package/lib/umd/locale/zh-CN.js +1 -0
  22. package/lib/umd/locale/zh-TW.js +1 -0
  23. package/package.json +39 -31
  24. package/lib/locale/en-US.json +0 -38
  25. package/lib/locale/fa-IR.json +0 -38
  26. package/lib/locale/ru-RU.json +0 -38
  27. package/lib/locale/vi-VN.json +0 -38
  28. package/lib/locale/zh-CN.json +0 -38
  29. package/lib/locale/zh-TW.json +0 -38
  30. package/lib/types/config/config.d.ts +0 -48
  31. package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +0 -23
  32. package/lib/types/controllers/collab-cursor/__tests__/serialize-text-ranges.spec.d.ts +0 -1
  33. package/lib/types/controllers/collab-cursor/__tests__/sheet-collab-cursor.controller.spec.d.ts +0 -1
  34. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +0 -22
  35. package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +0 -38
  36. package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +0 -24
  37. package/lib/types/controllers/collab-cursor/serialize-text-ranges.d.ts +0 -3
  38. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +0 -39
  39. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +0 -21
  40. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +0 -18
  41. package/lib/types/controllers/collaboration/__tests__/collaboration.controller.spec.d.ts +0 -4
  42. package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -0
  43. package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +0 -54
  44. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +0 -91
  45. package/lib/types/controllers/collaboration/collaboration-state.d.ts +0 -303
  46. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +0 -24
  47. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +0 -18
  48. package/lib/types/controllers/collaboration/utils/empty.d.ts +0 -2
  49. package/lib/types/controllers/config.schema.d.ts +0 -29
  50. package/lib/types/controllers/data-loader/__tests__/data-loader.controller.spec.d.ts +0 -1
  51. package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -22
  52. package/lib/types/controllers/file-name/file-name.controller.d.ts +0 -12
  53. package/lib/types/controllers/telemetry.d.ts +0 -11
  54. package/lib/types/locale/en-US.d.ts +0 -3
  55. package/lib/types/locale/fa-IR.d.ts +0 -3
  56. package/lib/types/locale/ru-RU.d.ts +0 -3
  57. package/lib/types/locale/vi-VN.d.ts +0 -3
  58. package/lib/types/locale/zh-CN.d.ts +0 -39
  59. package/lib/types/locale/zh-TW.d.ts +0 -3
  60. package/lib/types/models/cursor.d.ts +0 -30
  61. package/lib/types/plugin.d.ts +0 -18
  62. package/lib/types/services/auth-server/auth-server.service.d.ts +0 -10
  63. package/lib/types/services/auth-server/authz-io-http.service.d.ts +0 -30
  64. package/lib/types/services/auth-server/domain-request.service.d.ts +0 -6
  65. package/lib/types/services/auth-server/util.d.ts +0 -1
  66. package/lib/types/services/collaboration-session/collaboration-session.d.ts +0 -59
  67. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +0 -61
  68. package/lib/types/services/color-assign/color-assign.service.d.ts +0 -10
  69. package/lib/types/services/comment/comment.service.d.ts +0 -6
  70. package/lib/types/services/image-remote/image-io.service.d.ts +0 -34
  71. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +0 -13
  72. package/lib/types/services/local-cache/local-cache.service.d.ts +0 -37
  73. package/lib/types/services/member/member.service.d.ts +0 -77
  74. package/lib/types/services/permission/permission.service.d.ts +0 -12
  75. package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +0 -13
  76. package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +0 -39
  77. package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +0 -21
  78. package/lib/types/services/socket/collaboration-socket.service.d.ts +0 -34
  79. package/lib/types/services/socket/serialize.d.ts +0 -3
  80. package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +0 -12
  81. package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +0 -13
  82. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +0 -8
  83. package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +0 -19
  84. package/lib/types/services/url/url.service.d.ts +0 -12
  85. package/lib/types/services/url/web-url.service.d.ts +0 -10
  86. package/lib/types/views/components/CollabStatus.d.ts +0 -10
  87. package/lib/types/views/components/CollabStatus.stories.d.ts +0 -8
  88. package/lib/types/views/shapes/doc-collab-cursor.d.ts +0 -27
  89. package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +0 -27
  90. package/lib/types/views/shapes/text-bubble.shape.d.ts +0 -19
@@ -0,0 +1 @@
1
+ function _0x3738(){var _0x5b4b80=['Local\x20file','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','function','Synced','object','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.','UniverCollaborationClientEnUS','180yTKzYC','689622Ukomuz','amd','Edit\x20conflicts','6961472EeWHTA','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Authentication\x20Error','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','248420QRdHbx','249996FXiGzR','47108mSXSBl','63SmdzYt','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','exports','Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Collaboration\x20Conflict','93ihOnqd','2056104dViBAI','17711380pYCKfg'];_0x3738=function(){return _0x5b4b80;};return _0x3738();}function _0x167c(_0x493b75,_0x242c44){var _0x373885=_0x3738();return _0x167c=function(_0x167cae,_0x4d7e14){_0x167cae=_0x167cae-0xca;var _0x1d872c=_0x373885[_0x167cae];return _0x1d872c;},_0x167c(_0x493b75,_0x242c44);}(function(_0x5c1331,_0xe97636){var _0x3a2922=_0x167c,_0x1024ef=_0x5c1331();while(!![]){try{var _0x2d60a2=-parseInt(_0x3a2922(0xcf))/0x1+parseInt(_0x3a2922(0xe2))/0x2+-parseInt(_0x3a2922(0xd7))/0x3*(-parseInt(_0x3a2922(0xd0))/0x4)+parseInt(_0x3a2922(0xce))/0x5*(parseInt(_0x3a2922(0xe1))/0x6)+-parseInt(_0x3a2922(0xe5))/0x7+-parseInt(_0x3a2922(0xd8))/0x8*(parseInt(_0x3a2922(0xd1))/0x9)+parseInt(_0x3a2922(0xd9))/0xa;if(_0x2d60a2===_0xe97636)break;else _0x1024ef['push'](_0x1024ef['shift']());}catch(_0x3e56a4){_0x1024ef['push'](_0x1024ef['shift']());}}}(_0x3738,0xe28e5),function(_0x316ceb,_0x32e6c9){var _0x3c8528=_0x167c;typeof exports==_0x3c8528(0xde)&&typeof module<'u'?module[_0x3c8528(0xd3)]=_0x32e6c9():typeof define==_0x3c8528(0xdc)&&define[_0x3c8528(0xe3)]?define(_0x32e6c9):(_0x316ceb=typeof globalThis<'u'?globalThis:_0x316ceb||self,_0x316ceb[_0x3c8528(0xe0)]=_0x32e6c9());}(this,function(){'use strict';var _0x327c18=_0x167c;return{'collab-client':{'tooltip':{'reconnect':'Click\x20to\x20Reconnect'}},'collabStatus':{'fetchMiss':'Syncing\x20server\x20data...','conflict':_0x327c18(0xe4),'notCollab':_0x327c18(0xda),'synced':_0x327c18(0xdd),'syncing':'Syncing...','offline':_0x327c18(0xd5)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x327c18(0xcc),'room-full':_0x327c18(0xd4),'collaboration-timeout':_0x327c18(0xdb)},'conflict':{'title':_0x327c18(0xd6),'content':_0x327c18(0xdf)},'permission':{'title':_0x327c18(0xcb),'content':_0x327c18(0xcd)},'collaboration':{'single-unit':{'warning':_0x327c18(0xca)},'closeRoom':'Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'},'auth':{'needGotoLoginAlert':_0x327c18(0xd2)}};}));
@@ -0,0 +1 @@
1
+ function _0x2fc4(_0x22893a,_0x41aa8e){var _0x14715f=_0x1471();return _0x2fc4=function(_0x2fc4cd,_0x33ead5){_0x2fc4cd=_0x2fc4cd-0x86;var _0x443169=_0x14715f[_0x2fc4cd];return _0x443169;},_0x2fc4(_0x22893a,_0x41aa8e);}function _0x1471(){var _0x27a2ec=['آفلاین،\x20ویرایش\x20ها\x20در\x20محلی\x20ذخیره\x20می\x20شوند','object','13217358yYZkRk','amd','ورود\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کنید.','469AxkmJW','27CRhUYU','1975240ycVEFU','در\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از\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رفت.','21209rMtFby','UniverCollaborationClientFaIR','3958300qCMSLh','اتصال\x20ناموفق\x20بود،\x20ما\x20بعداً\x20دوباره\x20تلاش\x20می\x20کنیم.','اتصال\x20ناموفق\x20بود،\x20لطفا\x20شبکه\x20خود\x20را\x20بررسی\x20کنید.','همگام\x20سازی','101982cOLhuL','12NzYaij','3089168zXgbYi','پرونده\x20محلی','92tHmumj','تداخل\x20ویرایش','147921oTFNzl','exports'];_0x1471=function(){return _0x27a2ec;};return _0x1471();}(function(_0x28abf5,_0x4e353d){var _0x2c9004=_0x2fc4,_0xb100f2=_0x28abf5();while(!![]){try{var _0x5ae3ca=-parseInt(_0x2c9004(0x98))/0x1*(parseInt(_0x2c9004(0x9f))/0x2)+parseInt(_0x2c9004(0x89))/0x3*(parseInt(_0x2c9004(0x87))/0x4)+parseInt(_0x2c9004(0x93))/0x5+parseInt(_0x2c9004(0x9e))/0x6*(-parseInt(_0x2c9004(0x91))/0x7)+-parseInt(_0x2c9004(0xa0))/0x8*(parseInt(_0x2c9004(0x92))/0x9)+parseInt(_0x2c9004(0x9a))/0xa+parseInt(_0x2c9004(0x8d))/0xb;if(_0x5ae3ca===_0x4e353d)break;else _0xb100f2['push'](_0xb100f2['shift']());}catch(_0x3fab7b){_0xb100f2['push'](_0xb100f2['shift']());}}}(_0x1471,0xab64a),function(_0x166503,_0x27faa5){var _0x4d7a12=_0x2fc4;typeof exports==_0x4d7a12(0x8c)&&typeof module<'u'?module[_0x4d7a12(0x8a)]=_0x27faa5():typeof define=='function'&&define[_0x4d7a12(0x8e)]?define(_0x27faa5):(_0x166503=typeof globalThis<'u'?globalThis:_0x166503||self,_0x166503[_0x4d7a12(0x99)]=_0x27faa5());}(this,function(){'use strict';var _0x1926ff=_0x2fc4;return{'collab-client':{'tooltip':{'reconnect':'برای\x20اتصال\x20مجدد\x20کلیک\x20کنید'}},'collabStatus':{'fetchMiss':'در\x20حال\x20همگام\x20سازی\x20داده\x20های\x20سرور...','conflict':_0x1926ff(0x88),'notCollab':_0x1926ff(0x86),'synced':_0x1926ff(0x9d),'syncing':_0x1926ff(0x94),'offline':_0x1926ff(0x8b)},'session':{'connection-failed':_0x1926ff(0x9c),'will-retry':_0x1926ff(0x9b),'room-full':'اتاق\x20همکاری\x20پر\x20است.\x20شما\x20ویرایش\x20های\x20خود\x20را\x20در\x20محلی\x20ذخیره\x20خواهید\x20کرد.','collaboration-timeout':_0x1926ff(0x95)},'conflict':{'title':'تداخل\x20همکاری','content':_0x1926ff(0x96)},'permission':{'title':'خطای\x20اعتبارسنجی','content':_0x1926ff(0x97)},'collaboration':{'single-unit':{'warning':_0x1926ff(0x90)},'closeRoom':'امتیازات\x20ویرایش\x20به\x20دلیل\x20بسته\x20شدن\x20اتاق\x20همکاری\x20لغو\x20شد.'},'auth':{'needGotoLoginAlert':_0x1926ff(0x8f)}};}));
@@ -0,0 +1 @@
1
+ function _0x4085(_0x5e11a2,_0x18985c){var _0x9435d5=_0x9435();return _0x4085=function(_0x4085bf,_0x20ad64){_0x4085bf=_0x4085bf-0x75;var _0x85a88f=_0x9435d5[_0x4085bf];return _0x85a88f;},_0x4085(_0x5e11a2,_0x18985c);}(function(_0x21ffcc,_0x45fcf4){var _0x3e2560=_0x4085,_0x1027f1=_0x21ffcc();while(!![]){try{var _0x529879=-parseInt(_0x3e2560(0x7a))/0x1+-parseInt(_0x3e2560(0x86))/0x2*(parseInt(_0x3e2560(0x7e))/0x3)+-parseInt(_0x3e2560(0x90))/0x4+-parseInt(_0x3e2560(0x85))/0x5+parseInt(_0x3e2560(0x89))/0x6+parseInt(_0x3e2560(0x8e))/0x7+parseInt(_0x3e2560(0x8a))/0x8;if(_0x529879===_0x45fcf4)break;else _0x1027f1['push'](_0x1027f1['shift']());}catch(_0x288976){_0x1027f1['push'](_0x1027f1['shift']());}}}(_0x9435,0x7da0a),function(_0x507d74,_0x2fa6ec){var _0x1fbdcd=_0x4085;typeof exports==_0x1fbdcd(0x7c)&&typeof module<'u'?module[_0x1fbdcd(0x87)]=_0x2fa6ec():typeof define=='function'&&define[_0x1fbdcd(0x80)]?define(_0x2fa6ec):(_0x507d74=typeof globalThis<'u'?globalThis:_0x507d74||self,_0x507d74['UniverCollaborationClientRuRU']=_0x2fa6ec());}(this,function(){'use strict';var _0x1e0b19=_0x4085;return{'collab-client':{'tooltip':{'reconnect':_0x1e0b19(0x83)}},'collabStatus':{'fetchMiss':_0x1e0b19(0x7f),'conflict':_0x1e0b19(0x75),'notCollab':_0x1e0b19(0x7b),'synced':'Synced','syncing':_0x1e0b19(0x8d),'offline':_0x1e0b19(0x82)},'session':{'connection-failed':_0x1e0b19(0x8b),'will-retry':_0x1e0b19(0x88),'room-full':_0x1e0b19(0x78),'collaboration-timeout':_0x1e0b19(0x76)},'conflict':{'title':_0x1e0b19(0x84),'content':_0x1e0b19(0x77)},'permission':{'title':_0x1e0b19(0x8c),'content':_0x1e0b19(0x79)},'collaboration':{'single-unit':{'warning':_0x1e0b19(0x8f)},'closeRoom':_0x1e0b19(0x7d)},'auth':{'needGotoLoginAlert':_0x1e0b19(0x81)}};}));function _0x9435(){var _0x23817d=['2546732MOUVSq','Edit\x20conflicts','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','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\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','726271CYghiB','Local\x20file','object','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','895359EWjEUN','Syncing\x20server\x20data...','amd','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','Click\x20to\x20Reconnect','Collaboration\x20Conflict','1725120jkDxLB','2yiYNoj','exports','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','5995632McJVQZ','7500072fMMROA','Connection\x20failed,\x20please\x20check\x20your\x20network.','Authentication\x20Error','Syncing...','4089540XdNahk','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.'];_0x9435=function(){return _0x23817d;};return _0x9435();}
@@ -0,0 +1 @@
1
+ (function(_0xc6a254,_0x15c060){var _0x11287=_0x1373,_0x5deeca=_0xc6a254();while(!![]){try{var _0x292e17=parseInt(_0x11287(0x203))/0x1*(parseInt(_0x11287(0x1f3))/0x2)+-parseInt(_0x11287(0x1ee))/0x3*(parseInt(_0x11287(0x1ef))/0x4)+parseInt(_0x11287(0x1f6))/0x5*(-parseInt(_0x11287(0x206))/0x6)+parseInt(_0x11287(0x205))/0x7*(-parseInt(_0x11287(0x1f7))/0x8)+parseInt(_0x11287(0x1f9))/0x9+-parseInt(_0x11287(0x1eb))/0xa*(parseInt(_0x11287(0x1fb))/0xb)+parseInt(_0x11287(0x1fe))/0xc*(parseInt(_0x11287(0x1f5))/0xd);if(_0x292e17===_0x15c060)break;else _0x5deeca['push'](_0x5deeca['shift']());}catch(_0x260b55){_0x5deeca['push'](_0x5deeca['shift']());}}}(_0x58ca,0xcd176),function(_0x594689,_0x269585){var _0x499f19=_0x1373;typeof exports==_0x499f19(0x1ff)&&typeof module<'u'?module['exports']=_0x269585():typeof define=='function'&&define[_0x499f19(0x207)]?define(_0x269585):(_0x594689=typeof globalThis<'u'?globalThis:_0x594689||self,_0x594689[_0x499f19(0x1ec)]=_0x269585());}(this,function(){'use strict';var _0x4ae633=_0x1373;return{'collab-client':{'tooltip':{'reconnect':_0x4ae633(0x1f0)}},'collabStatus':{'fetchMiss':_0x4ae633(0x208),'conflict':_0x4ae633(0x200),'notCollab':_0x4ae633(0x1f8),'synced':_0x4ae633(0x1f1),'syncing':_0x4ae633(0x1fa),'offline':_0x4ae633(0x1f4)},'session':{'connection-failed':_0x4ae633(0x1fd),'will-retry':'Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x4ae633(0x202)},'conflict':{'title':'Collaboration\x20Conflict','content':_0x4ae633(0x201)},'permission':{'title':_0x4ae633(0x1f2),'content':_0x4ae633(0x1ed)},'collaboration':{'single-unit':{'warning':_0x4ae633(0x204)},'closeRoom':_0x4ae633(0x1fc)},'auth':{'needGotoLoginAlert':_0x4ae633(0x209)}};}));function _0x1373(_0x278b47,_0xb1b092){var _0x58ca5b=_0x58ca();return _0x1373=function(_0x13730a,_0x304e96){_0x13730a=_0x13730a-0x1eb;var _0x5a02b9=_0x58ca5b[_0x13730a];return _0x5a02b9;},_0x1373(_0x278b47,_0xb1b092);}function _0x58ca(){var _0x16ed99=['Syncing...','308uEPyOD','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.','Connection\x20failed,\x20please\x20check\x20your\x20network.','48IayPAR','object','Edit\x20conflicts','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.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','89GBcBrC','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','6979IYyYJO','9340758YwPqty','amd','Syncing\x20server\x20data...','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','120180rOsZJH','UniverCollaborationClientViVN','Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.','36357RPqjcF','404YIawKX','Click\x20to\x20Reconnect','Synced','Authentication\x20Error','31506WpdQtN','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','6112769ldCEhl','5YYVKWu','6672EInXKC','Local\x20file','13553991wocsyG'];_0x58ca=function(){return _0x16ed99;};return _0x58ca();}
@@ -0,0 +1 @@
1
+ (function(_0x322057,_0x13e323){var _0x312a9c=_0x3d3e,_0x7aa2cd=_0x322057();while(!![]){try{var _0x363d7c=parseInt(_0x312a9c(0x106))/0x1*(-parseInt(_0x312a9c(0x114))/0x2)+parseInt(_0x312a9c(0x113))/0x3+-parseInt(_0x312a9c(0x102))/0x4+parseInt(_0x312a9c(0x104))/0x5+-parseInt(_0x312a9c(0x111))/0x6*(parseInt(_0x312a9c(0x115))/0x7)+parseInt(_0x312a9c(0xfd))/0x8+parseInt(_0x312a9c(0xfe))/0x9*(parseInt(_0x312a9c(0x10a))/0xa);if(_0x363d7c===_0x13e323)break;else _0x7aa2cd['push'](_0x7aa2cd['shift']());}catch(_0x180eae){_0x7aa2cd['push'](_0x7aa2cd['shift']());}}}(_0x450b,0x6d535),function(_0x2f051f,_0x2b2c2e){var _0x41fbd8=_0x3d3e;typeof exports=='object'&&typeof module<'u'?module['exports']=_0x2b2c2e():typeof define==_0x41fbd8(0x100)&&define['amd']?define(_0x2b2c2e):(_0x2f051f=typeof globalThis<'u'?globalThis:_0x2f051f||self,_0x2f051f[_0x41fbd8(0x108)]=_0x2b2c2e());}(this,function(){'use strict';var _0x22e290=_0x3d3e;return{'collab-client':{'tooltip':{'reconnect':_0x22e290(0x101)}},'collabStatus':{'fetchMiss':_0x22e290(0xff),'conflict':_0x22e290(0x109),'notCollab':_0x22e290(0x10e),'synced':_0x22e290(0x110),'syncing':_0x22e290(0x116),'offline':'已离线,编辑将在本地缓存'},'session':{'connection-failed':_0x22e290(0x107),'will-retry':'连接失败,将在一会儿之后重试连接','room-full':_0x22e290(0x117),'collaboration-timeout':_0x22e290(0x112)},'conflict':{'title':_0x22e290(0x103),'content':_0x22e290(0xfc)},'permission':{'title':_0x22e290(0x10c),'content':_0x22e290(0x105)},'collaboration':{'single-unit':{'warning':_0x22e290(0x10f)},'closeRoom':_0x22e290(0x10b)},'auth':{'needGotoLoginAlert':_0x22e290(0x10d)}};}));function _0x3d3e(_0x44137e,_0xe8c3f){var _0x450baf=_0x450b();return _0x3d3e=function(_0x3d3eb9,_0x47fd0f){_0x3d3eb9=_0x3d3eb9-0xfc;var _0x1f0d65=_0x450baf[_0x3d3eb9];return _0x1f0d65;},_0x3d3e(_0x44137e,_0xe8c3f);}function _0x450b(){var _0x1578b3=['服务器未响应,你的编辑将在本地缓存','771642gpGdyj','2ZcRHAR','5866UpiLhv','保存中...','协同房间已满,你的编辑将在本地缓存','你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','5115912igOHRK','44379oGesOk','正在拉取服务端数据...','function','点击重新连接','1383596ynBrmF','协同冲突','3316425zOdCQL','你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。','752219pcIHcA','连接失败,请检查你的网络','UniverCollaborationClientZhCN','编辑冲突','1710NDxZoI','由于协同房间被关闭,编辑权限被收回。','权限错误','你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。','本地文件','你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。','已同步','6138xEaket'];_0x450b=function(){return _0x1578b3;};return _0x450b();}
@@ -0,0 +1 @@
1
+ function _0x32e9(_0x35ee3a,_0x1bf6ea){var _0xf4c8fa=_0xf4c8();return _0x32e9=function(_0x32e99c,_0xae350d){_0x32e99c=_0x32e99c-0x100;var _0x3e0de5=_0xf4c8fa[_0x32e99c];return _0x3e0de5;},_0x32e9(_0x35ee3a,_0x1bf6ea);}(function(_0x305601,_0x117ebf){var _0x35a125=_0x32e9,_0x4c9334=_0x305601();while(!![]){try{var _0xa65bdb=parseInt(_0x35a125(0x109))/0x1+parseInt(_0x35a125(0x104))/0x2+parseInt(_0x35a125(0x10c))/0x3+-parseInt(_0x35a125(0x10e))/0x4+parseInt(_0x35a125(0x111))/0x5*(parseInt(_0x35a125(0x117))/0x6)+parseInt(_0x35a125(0x110))/0x7+-parseInt(_0x35a125(0x10b))/0x8;if(_0xa65bdb===_0x117ebf)break;else _0x4c9334['push'](_0x4c9334['shift']());}catch(_0x31bd89){_0x4c9334['push'](_0x4c9334['shift']());}}}(_0xf4c8,0x40331),function(_0x25f018,_0x5070eb){var _0x183b07=_0x32e9;typeof exports==_0x183b07(0x102)&&typeof module<'u'?module[_0x183b07(0x108)]=_0x5070eb():typeof define==_0x183b07(0x10d)&&define['amd']?define(_0x5070eb):(_0x25f018=typeof globalThis<'u'?globalThis:_0x25f018||self,_0x25f018[_0x183b07(0x107)]=_0x5070eb());}(this,function(){'use strict';var _0x141615=_0x32e9;return{'collab-client':{'tooltip':{'reconnect':_0x141615(0x106)}},'collabStatus':{'fetchMiss':_0x141615(0x103),'conflict':'Edit\x20conflicts','notCollab':'Local\x20file','synced':_0x141615(0x112),'syncing':'Syncing...','offline':_0x141615(0x101)},'session':{'connection-failed':'Connection\x20failed,\x20please\x20check\x20your\x20network.','will-retry':_0x141615(0x105),'room-full':'Collaboration\x20room\x20is\x20full.\x20You\x20edits\x20would\x20be\x20saved\x20locally.','collaboration-timeout':_0x141615(0x116)},'conflict':{'title':_0x141615(0x10f),'content':_0x141615(0x115)},'permission':{'title':_0x141615(0x114),'content':'Your\x20actions\x20are\x20conflicting\x20with\x20the\x20server\x27s\x20permissions.\x20Please\x20save\x20your\x20local\x20edits\x20elsewhere\x20as\x20they\x20will\x20be\x20discarded\x20after\x20refreshing\x20the\x20page.'},'collaboration':{'single-unit':{'warning':_0x141615(0x100)},'closeRoom':_0x141615(0x113)},'auth':{'needGotoLoginAlert':_0x141615(0x10a)}};}));function _0xf4c8(){var _0x424b01=['Authentication\x20Error','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.','The\x20server\x20is\x20not\x20responding\x20to\x20your\x20collaboration\x20request.\x20Your\x20edits\x20would\x20be\x20saved\x20locally.','6HCGmKN','You\x20opened\x20the\x20same\x20file\x20in\x20another\x20tab.\x20In\x20case\x20of\x20data\x20missing,\x20you\x20cannot\x20edit\x20on\x20this\x20tab.','Offline,\x20edits\x20would\x20be\x20save\x20on\x20local','object','Syncing\x20server\x20data...','255322kKAOnx','Connection\x20failed,\x20we\x20retry\x20in\x20a\x20while.','Click\x20to\x20Reconnect','UniverCollaborationClientZhTW','exports','286306RudHoE','Your\x20login\x20has\x20expired,\x20click\x20OK\x20to\x20re-login,\x20click\x20Cancel\x20to\x20save\x20your\x20local\x20edits.','11585104YojIzD','1121502OMGKhn','function','419912pwRtdL','Collaboration\x20Conflict','3542329stMSZy','2611145AEBYcg','Synced','Editing\x20privileges\x20were\x20revoked\x20because\x20the\x20collaborative\x20room\x20was\x20closed.'];_0xf4c8=function(){return _0x424b01;};return _0xf4c8();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client",
3
- "version": "0.4.2",
3
+ "version": "0.5.0-nightly.202411091605",
4
4
  "private": false,
5
5
  "description": "Univer Collaboration Client",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -28,11 +28,14 @@
28
28
  "require": "./lib/cjs/*",
29
29
  "types": "./lib/types/index.d.ts"
30
30
  },
31
- "./lib/*": "./lib/*",
32
- "./locale/*": "./lib/locale/*.json"
31
+ "./locale/*": {
32
+ "import": "./lib/es/locale/*.js",
33
+ "require": "./lib/cjs/locale/*.js",
34
+ "types": "./lib/types/locale/*.d.ts"
35
+ },
36
+ "./lib/*": "./lib/*"
33
37
  },
34
- "main": "./lib/cjs/index.js",
35
- "module": "./lib/es/index.js",
38
+ "main": "./lib/es/index.js",
36
39
  "types": "./lib/types/index.d.ts",
37
40
  "publishConfig": {
38
41
  "access": "public"
@@ -48,37 +51,37 @@
48
51
  "rxjs": ">=7.0.0"
49
52
  },
50
53
  "dependencies": {
51
- "@univerjs/icons": "^0.1.78",
54
+ "@univerjs/icons": "^0.2.5",
52
55
  "clsx": "^2.1.1",
53
56
  "crypto-js": "4.2.0",
54
- "uuid": "^10.0.0",
55
- "@univerjs/core": "0.4.2",
56
- "@univerjs-pro/collaboration": "0.4.2",
57
- "@univerjs-pro/license": "0.4.2",
58
- "@univerjs/docs": "0.4.2",
59
- "@univerjs/design": "0.4.2",
60
- "@univerjs/docs-ui": "0.4.2",
61
- "@univerjs/drawing": "0.4.2",
62
- "@univerjs/engine-formula": "0.4.2",
63
- "@univerjs/engine-render": "0.4.2",
64
- "@univerjs/network": "0.4.2",
57
+ "uuid": "^11.0.2",
58
+ "@univerjs-pro/collaboration": "0.5.0-nightly.202411091605",
59
+ "@univerjs-pro/license": "0.5.0-nightly.202411091605",
60
+ "@univerjs/core": "0.5.0-nightly.202411091605",
61
+ "@univerjs/design": "0.5.0-nightly.202411091605",
62
+ "@univerjs/docs-ui": "0.5.0-nightly.202411091605",
63
+ "@univerjs/engine-formula": "0.5.0-nightly.202411091605",
64
+ "@univerjs/docs": "0.5.0-nightly.202411091605",
65
+ "@univerjs/drawing": "0.5.0-nightly.202411091605",
65
66
  "@univerjs/protocol": "0.1.39-alpha.38",
66
- "@univerjs/rpc": "0.4.2",
67
- "@univerjs/sheets": "0.4.2",
68
- "@univerjs/sheets-ui": "0.4.2",
69
- "@univerjs/ui": "0.4.2",
70
- "@univerjs/telemetry": "0.4.2"
67
+ "@univerjs/engine-render": "0.5.0-nightly.202411091605",
68
+ "@univerjs/sheets": "0.5.0-nightly.202411091605",
69
+ "@univerjs/rpc": "0.5.0-nightly.202411091605",
70
+ "@univerjs/telemetry": "0.5.0-nightly.202411091605",
71
+ "@univerjs/sheets-ui": "0.5.0-nightly.202411091605",
72
+ "@univerjs/network": "0.5.0-nightly.202411091605",
73
+ "@univerjs/ui": "0.5.0-nightly.202411091605"
71
74
  },
72
75
  "devDependencies": {
73
76
  "@types/crypto-js": "^4.2.2",
74
- "@types/react": "^18.3.11",
77
+ "@types/react": "^18.3.12",
75
78
  "rxjs": "^7.8.1",
76
79
  "typescript": "5.6.3",
77
- "vite": "^5.4.8",
78
- "vitest": "^2.1.2",
79
- "@univerjs-infra/shared": "0.4.2"
80
+ "vite": "^5.4.10",
81
+ "vitest": "^2.1.4",
82
+ "@univerjs-infra/shared": "0.5.0-alpha.0"
80
83
  },
81
- "univerSpace": {
84
+ "space": {
82
85
  ".": {
83
86
  "import": "./lib/es/index.js",
84
87
  "require": "./lib/cjs/index.js",
@@ -89,14 +92,19 @@
89
92
  "require": "./lib/cjs/*",
90
93
  "types": "./lib/types/index.d.ts"
91
94
  },
92
- "./lib/*": "./lib/*",
93
- "./locale/*": "./lib/locale/*.json"
95
+ "./locale/*": {
96
+ "import": "./lib/es/locale/*.js",
97
+ "require": "./lib/cjs/locale/*.js",
98
+ "types": "./lib/types/locale/*.d.ts"
99
+ },
100
+ "./lib/*": "./lib/*"
94
101
  },
95
102
  "scripts": {
96
103
  "test": "vitest run --pool=threads",
97
104
  "test:watch": "vitest --pool=threads",
98
105
  "coverage": "vitest run --coverage --pool=threads",
99
106
  "lint:types": "tsc --noEmit",
100
- "build": "tsc && vite build"
101
- }
107
+ "build": "tsx build.ts"
108
+ },
109
+ "module": "./lib/es/index.js"
102
110
  }
@@ -1,38 +0,0 @@
1
- {
2
- "collab-client": {
3
- "tooltip": {
4
- "reconnect": "Click to Reconnect"
5
- }
6
- },
7
- "collabStatus": {
8
- "fetchMiss": "Syncing server data...",
9
- "conflict": "Edit conflicts",
10
- "notCollab": "Local file",
11
- "synced": "Synced",
12
- "syncing": "Syncing...",
13
- "offline": "Offline, edits would be save on local"
14
- },
15
- "session": {
16
- "connection-failed": "Connection failed, please check your network.",
17
- "will-retry": "Connection failed, we retry in a while.",
18
- "room-full": "Collaboration room is full. You edits would be saved locally.",
19
- "collaboration-timeout": "The server is not responding to your collaboration request. Your edits would be saved locally."
20
- },
21
- "conflict": {
22
- "title": "Collaboration Conflict",
23
- "content": "There is a conflict between your local copy and the copy on the server. Please save your local edits, because they will be lost when you reload the page."
24
- },
25
- "permission": {
26
- "title": "Authentication Error",
27
- "content": "Your actions are conflicting with the server's permissions. Please save your local edits elsewhere as they will be discarded after refreshing the page."
28
- },
29
- "collaboration": {
30
- "single-unit": {
31
- "warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
32
- },
33
- "closeRoom": "Editing privileges were revoked because the collaborative room was closed."
34
- },
35
- "auth": {
36
- "needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
37
- }
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "collab-client": {
3
- "tooltip": {
4
- "reconnect": "برای اتصال مجدد کلیک کنید"
5
- }
6
- },
7
- "collabStatus": {
8
- "fetchMiss": "در حال همگام سازی داده های سرور...",
9
- "conflict": "تداخل ویرایش",
10
- "notCollab": "پرونده محلی",
11
- "synced": "همگام سازی",
12
- "syncing": "در حال همگام سازی...",
13
- "offline": "آفلاین، ویرایش ها در محلی ذخیره می شوند"
14
- },
15
- "session": {
16
- "connection-failed": "اتصال ناموفق بود، لطفا شبکه خود را بررسی کنید.",
17
- "will-retry": "اتصال ناموفق بود، ما بعداً دوباره تلاش می کنیم.",
18
- "room-full": "اتاق همکاری پر است. شما ویرایش های خود را در محلی ذخیره خواهید کرد.",
19
- "collaboration-timeout": "سرور به درخواست همکاری شما پاسخ نمی دهد. ویرایش های شما در محلی ذخیره می شوند."
20
- },
21
- "conflict": {
22
- "title": "تداخل همکاری",
23
- "content": "یک تداخل بین نسخه محلی شما و نسخه در سرور وجود دارد. لطفاً ویرایش های محلی خود را ذخیره کنید، زیرا آنها پس از بازیابی صفحه از بین خواهند رفت."
24
- },
25
- "permission": {
26
- "title": "خطای اعتبارسنجی",
27
- "content": "اعمال شما با مجوزهای سرور تداخل دارد. لطفاً ویرایش های محلی خود را در جای دیگر ذخیره کنید زیرا پس از تازه سازی صفحه از بین خواهند رفت."
28
- },
29
- "collaboration": {
30
- "single-unit": {
31
- "warning": "شما همان پرونده را در یک تب دیگر باز کرده اید. در صورت عدم وجود داده، نمی توانید در این تب ویرایش کنید."
32
- },
33
- "closeRoom": "امتیازات ویرایش به دلیل بسته شدن اتاق همکاری لغو شد."
34
- },
35
- "auth": {
36
- "needGotoLoginAlert": "ورود شما منقضی شده است، برای ورود مجدد کلیک کنید، برای ذخیره ویرایش های محلی خود کلیک کنید."
37
- }
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "collab-client": {
3
- "tooltip": {
4
- "reconnect": "Click to Reconnect"
5
- }
6
- },
7
- "collabStatus": {
8
- "fetchMiss": "Syncing server data...",
9
- "conflict": "Edit conflicts",
10
- "notCollab": "Local file",
11
- "synced": "Synced",
12
- "syncing": "Syncing...",
13
- "offline": "Offline, edits would be save on local"
14
- },
15
- "session": {
16
- "connection-failed": "Connection failed, please check your network.",
17
- "will-retry": "Connection failed, we retry in a while.",
18
- "room-full": "Collaboration room is full. You edits would be saved locally.",
19
- "collaboration-timeout": "The server is not responding to your collaboration request. Your edits would be saved locally."
20
- },
21
- "conflict": {
22
- "title": "Collaboration Conflict",
23
- "content": "There is a conflict between your local copy and the copy on the server. Please save your local edits, because they will be lost when you reload the page."
24
- },
25
- "permission": {
26
- "title": "Authentication Error",
27
- "content": "Your actions are conflicting with the server's permissions. Please save your local edits elsewhere as they will be discarded after refreshing the page."
28
- },
29
- "collaboration": {
30
- "single-unit": {
31
- "warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
32
- },
33
- "closeRoom": "Editing privileges were revoked because the collaborative room was closed."
34
- },
35
- "auth": {
36
- "needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
37
- }
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "collab-client": {
3
- "tooltip": {
4
- "reconnect": "Click to Reconnect"
5
- }
6
- },
7
- "collabStatus": {
8
- "fetchMiss": "Syncing server data...",
9
- "conflict": "Edit conflicts",
10
- "notCollab": "Local file",
11
- "synced": "Synced",
12
- "syncing": "Syncing...",
13
- "offline": "Offline, edits would be save on local"
14
- },
15
- "session": {
16
- "connection-failed": "Connection failed, please check your network.",
17
- "will-retry": "Connection failed, we retry in a while.",
18
- "room-full": "Collaboration room is full. You edits would be saved locally.",
19
- "collaboration-timeout": "The server is not responding to your collaboration request. Your edits would be saved locally."
20
- },
21
- "conflict": {
22
- "title": "Collaboration Conflict",
23
- "content": "There is a conflict between your local copy and the copy on the server. Please save your local edits, because they will be lost when you reload the page."
24
- },
25
- "permission": {
26
- "title": "Authentication Error",
27
- "content": "Your actions are conflicting with the server's permissions. Please save your local edits elsewhere as they will be discarded after refreshing the page."
28
- },
29
- "collaboration": {
30
- "single-unit": {
31
- "warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
32
- },
33
- "closeRoom": "Editing privileges were revoked because the collaborative room was closed."
34
- },
35
- "auth": {
36
- "needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
37
- }
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "collab-client": {
3
- "tooltip": {
4
- "reconnect": "点击重新连接"
5
- }
6
- },
7
- "collabStatus": {
8
- "fetchMiss": "正在拉取服务端数据...",
9
- "conflict": "编辑冲突",
10
- "notCollab": "本地文件",
11
- "synced": "已同步",
12
- "syncing": "保存中...",
13
- "offline": "已离线,编辑将在本地缓存"
14
- },
15
- "session": {
16
- "connection-failed": "连接失败,请检查你的网络",
17
- "will-retry": "连接失败,将在一会儿之后重试连接",
18
- "room-full": "协同房间已满,你的编辑将在本地缓存",
19
- "collaboration-timeout": "服务器未响应,你的编辑将在本地缓存"
20
- },
21
- "conflict": {
22
- "title": "协同冲突",
23
- "content": "你的本地文档和服务器的文档存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。"
24
- },
25
- "permission": {
26
- "title": "权限错误",
27
- "content": "你的操作和服务器的权限存在冲突。请在别处保存你的本地编辑,本地编辑将在刷新页面后丢弃。"
28
- },
29
- "collaboration": {
30
- "single-unit": {
31
- "warning": "你在另一个标签页打开了同一个文件。为了避免数据丢失,这个标签页的编辑行为将会被限制。"
32
- },
33
- "closeRoom": "由于协同房间被关闭,编辑权限被收回。"
34
- },
35
- "auth": {
36
- "needGotoLoginAlert": "你的登录已过期,点击确认重新登陆,点击取消去保存你的本地编辑。"
37
- }
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "collab-client": {
3
- "tooltip": {
4
- "reconnect": "Click to Reconnect"
5
- }
6
- },
7
- "collabStatus": {
8
- "fetchMiss": "Syncing server data...",
9
- "conflict": "Edit conflicts",
10
- "notCollab": "Local file",
11
- "synced": "Synced",
12
- "syncing": "Syncing...",
13
- "offline": "Offline, edits would be save on local"
14
- },
15
- "session": {
16
- "connection-failed": "Connection failed, please check your network.",
17
- "will-retry": "Connection failed, we retry in a while.",
18
- "room-full": "Collaboration room is full. You edits would be saved locally.",
19
- "collaboration-timeout": "The server is not responding to your collaboration request. Your edits would be saved locally."
20
- },
21
- "conflict": {
22
- "title": "Collaboration Conflict",
23
- "content": "There is a conflict between your local copy and the copy on the server. Please save your local edits, because they will be lost when you reload the page."
24
- },
25
- "permission": {
26
- "title": "Authentication Error",
27
- "content": "Your actions are conflicting with the server's permissions. Please save your local edits elsewhere as they will be discarded after refreshing the page."
28
- },
29
- "collaboration": {
30
- "single-unit": {
31
- "warning": "You opened the same file in another tab. In case of data missing, you cannot edit on this tab."
32
- },
33
- "closeRoom": "Editing privileges were revoked because the collaborative room was closed."
34
- },
35
- "auth": {
36
- "needGotoLoginAlert": "Your login has expired, click OK to re-login, click Cancel to save your local edits."
37
- }
38
- }
@@ -1,48 +0,0 @@
1
- /**
2
- * The config key to determined the URL provided by the snapshot server
3
- * to load snapshot. The URL should not ends with a slash.
4
- */
5
- /** @deprecated Will be removed in the 0.2.19 release */
6
- export declare const SNAPSHOT_SERVER_URL_KEY = "SNAPSHOT_SERVER_URL_KEY";
7
- /**
8
- * Default value for `SNAPSHOT_SERVER_URL_KEY`.
9
- *
10
- * Determined in the protocol file in `submodules/protocol/universer/v1/snapshot.proto`.
11
- */
12
- export declare const DEFAULT_SNAPSHOT_SERVER_URL = "/universer-api/snapshot";
13
- /**
14
- * @ignore
15
- */
16
- export declare const SNAPSHOT_URL_KEY = "SNAPSHOT_URL_KEY";
17
- /**
18
- * Determines how often should we send changesets.
19
- */
20
- /** @deprecated Will be removed in the 0.2.19 release */
21
- export declare const SEND_CHANGESET_TIMEOUT_KEY = "SEND_CHANGESET_TIMEOUT";
22
- export declare const DEFAULT_SEND_CHANGESET_TIMEOUT = 2000;
23
- /** @deprecated Will be removed in the 0.2.19 release */
24
- export declare const COLLAB_WEB_SOCKET_URL_KEY = "COLLAB_WEB_SOCKET_URL";
25
- export declare const DEFAULT_COLLAB_WEB_SOCKET_URL = "ws://127.0.0.1:8000/universer-api/comb/connect";
26
- /** The heartbeat interval in milliseconds. */
27
- export declare const HEARTBEAT_INTERVAL_KEY = "HEARTBEAT_INTERVAL";
28
- export declare const DEFAULT_HEARTBEAT_INTERVAL = 30000;
29
- export declare const HEARTBEAT_TIMEOUT_KEY = "HEARTBEAT_TIMEOUT";
30
- export declare const DEFAULT_HEARTBEAT_TIMEOUT = 20000;
31
- export declare const DEFAULT_RETRY_CONNECTING_INTERVAL = 20000;
32
- export declare const RETRY_CONNECTING_MAX_COUNT_KEY = "RETRY_CONNECTING_MAX_COUNT";
33
- export declare const DEFAULT_RETRY_CONNECTING_MAX_COUNT = 3;
34
- /**
35
- * A config key to determine how often should Univer save local edits.
36
- */
37
- export declare const LOCAL_CACHE_INTERVAL_KEY = "LOCAL_CACHE_INTERVAL";
38
- export declare const LOCAL_CACHE_INTERVAL = 1000;
39
- /** @deprecated Will be removed in the 0.2.19 release */
40
- export declare const COLLAB_SUBMIT_CHANGESET_URL_KEY = "COLLAB_SUBMIT_CHANGESET_URL";
41
- /** The url prefix is determined by protocol in submodules/protocol/universer/v1/comb.proto */
42
- export declare const DEFAULT_COLLAB_SUBMIT_CHANGESET_URL = "/universer-api/comb";
43
- /**
44
- * The config key to determined the URL provided by the auth server
45
- */
46
- /** @deprecated Will be removed in the 0.2.19 release */
47
- export declare const LOGIN_URL_KEY = "LOGIN_URL_KEY";
48
- export declare const DEFAULT_LOGIN_URL = "/universer-api/oidc/authpage";
@@ -1,23 +0,0 @@
1
- import { DocumentDataModel, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
2
- import { DocumentSkeleton, IRender, IRenderContext, IRenderModule, DocumentViewModel, IRenderManagerService } from '@univerjs/engine-render';
3
- import { Nullable } from 'vitest';
4
- export declare class MockRenderManagerService implements Pick<IRenderManagerService, 'getRenderById'> {
5
- private readonly _injector;
6
- constructor(_injector: Injector);
7
- getRenderById(_unitId: string): Nullable<IRender>;
8
- }
9
- export declare class MockDocSkeletonManagerService extends RxDisposable implements IRenderModule {
10
- private readonly _context;
11
- private readonly _univerInstanceService;
12
- private _docViewModel;
13
- private readonly _currentSkeleton$;
14
- readonly currentSkeleton$: import('rxjs').Observable<Nullable<DocumentSkeleton>>;
15
- private readonly _currentSkeletonBefore$;
16
- readonly currentSkeletonBefore$: import('rxjs').Observable<Nullable<DocumentSkeleton>>;
17
- constructor(_context: IRenderContext<DocumentDataModel>, _univerInstanceService: IUniverInstanceService);
18
- dispose(): void;
19
- private _update;
20
- getSkeleton(): DocumentSkeleton;
21
- getViewModel(): DocumentViewModel;
22
- private _buildDocViewModel;
23
- }
@@ -1,22 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { IDocCollabCursor, ISheetCollabCursor } from '../../models/cursor';
3
- import { Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
4
- import { CollaborationSessionService } from '../../services/collaboration-session/collaboration-session.service';
5
- /**
6
- * This controller adds collaboration cursors to Univer. It works with `CollabCursorRenderController`.
7
- *
8
- * This controller is also responsible for managing online collaborators' data.
9
- */
10
- export declare class CollabCursorController extends RxDisposable {
11
- private readonly _univerInstanceService;
12
- private readonly _injector;
13
- private readonly _collabSessionService;
14
- private readonly _entities;
15
- private readonly _entityInit$;
16
- constructor(_univerInstanceService: IUniverInstanceService, _injector: Injector, _collabSessionService: CollaborationSessionService);
17
- dispose(): void;
18
- getCollabCursors$(unitID: string): Observable<Map<string, ISheetCollabCursor> | Map<string, IDocCollabCursor>>;
19
- private _init;
20
- private _startSheetCollabCursor;
21
- private _startDocCollabCursor;
22
- }
@@ -1,38 +0,0 @@
1
- import { ICollaborationUser, ITransformService } from '@univerjs-pro/collaboration';
2
- import { IDocCollabCursor } from '../../models/cursor';
3
- import { ICommandService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
4
- import { CollaborationSession } from '../../services/collaboration-session/collaboration-session';
5
- import { ColorAssignService } from '../../services/color-assign/color-assign.service';
6
- import { MemberService } from '../../services/member/member.service';
7
- import { DocSyncEditingCollabCursorService } from '../../services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service';
8
- /**
9
- * Each univer document instance would map to an `CollabCursorEntity` to handle collaborated editing events.
10
- */
11
- export declare class DocCollabCursorEntity extends RxDisposable {
12
- readonly unitID: string;
13
- private readonly _session;
14
- private readonly _injector;
15
- private readonly _colorAssignService;
16
- private readonly _memberService;
17
- private readonly _syncEditingCollabCursorService;
18
- private readonly _transformService;
19
- private readonly _univerInstanceService;
20
- private readonly _commandService;
21
- private _online;
22
- private _init;
23
- /** Cursor info of the collaboration room members. The key would be the memberID. */
24
- private _cursorInfo$;
25
- cursorInfo$: import('rxjs').Observable<Map<string, IDocCollabCursor>>;
26
- get cursorInfo(): Readonly<Map<string, IDocCollabCursor>>;
27
- private _roomMembers$;
28
- roomMembers$: import('rxjs').Observable<ICollaborationUser[]>;
29
- get roomMembers(): Readonly<ICollaborationUser[]>;
30
- constructor(unitID: string, _session: CollaborationSession, _injector: Injector, _colorAssignService: ColorAssignService, _memberService: MemberService, _syncEditingCollabCursorService: DocSyncEditingCollabCursorService, _transformService: ITransformService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService);
31
- dispose(): void;
32
- init(): void;
33
- private _onCursorUpdate;
34
- private _onCursorDelete;
35
- private _updateLocalCursor;
36
- private _toggleOnline;
37
- private _toggleOffline;
38
- }
@@ -1,24 +0,0 @@
1
- import { DocumentDataModel, ICommandService, RxDisposable, ThemeService } from '@univerjs/core';
2
- import { IRenderContext, IRenderModule } from '@univerjs/engine-render';
3
- import { DocSkeletonManagerService } from '@univerjs/docs';
4
- import { CollabCursorController } from './collab-cursor.controller';
5
- /**
6
- * This controller works with `CollabCursorController` to render doc collaboration cursors.
7
- */
8
- export declare class DocCollabCursorRenderController extends RxDisposable implements IRenderModule {
9
- private readonly _context;
10
- private readonly _docSkeletonManagerService;
11
- private readonly _collabCursorController;
12
- private readonly _commandService;
13
- private readonly _themeService;
14
- /** Cursors stored for different Workbooks. */
15
- private _cursorShapes;
16
- private _cursors;
17
- constructor(_context: IRenderContext<DocumentDataModel>, _docSkeletonManagerService: DocSkeletonManagerService, _collabCursorController: CollabCursorController, _commandService: ICommandService, _themeService: ThemeService);
18
- private _init;
19
- private _updateCollabCursors;
20
- private _refreshCollabCursors;
21
- private _removeCollabCursors;
22
- private _initCommandExecutedListener;
23
- private _initResize;
24
- }
@@ -1,3 +0,0 @@
1
- import { ITextRangeWithStyle } from '@univerjs/engine-render';
2
- export declare function serializeDocTextRanges(ranges: ITextRangeWithStyle[]): string;
3
- export declare function deserializeDocTextRanges(serializedTextRanges: string): ITextRangeWithStyle[];
@@ -1,39 +0,0 @@
1
- import { ICollaborationUser } from '@univerjs-pro/collaboration';
2
- import { ISheetCollabCursor } from '../../models/cursor';
3
- import { CollaborationSession } from '../../services/collaboration-session/collaboration-session';
4
- import { ICommandService, Injector, IUniverInstanceService, RxDisposable } from '@univerjs/core';
5
- import { RefRangeService } from '@univerjs/sheets';
6
- import { ColorAssignService } from '../../services/color-assign/color-assign.service';
7
- import { MemberService } from '../../services/member/member.service';
8
- /**
9
- * Each univer document instance would map to an `CollabCursorEntity` to handle collaborated editing events.
10
- */
11
- export declare class SheetCollabCursorEntity extends RxDisposable {
12
- readonly unitID: string;
13
- private readonly _session;
14
- private readonly _injector;
15
- private readonly _colorAssignService;
16
- private readonly _memberService;
17
- private readonly _univerInstanceService;
18
- private readonly _commandService;
19
- private _refRangeService;
20
- private _online;
21
- private _init;
22
- /** Cursor info of the collaboration room members. The key would be the memberID. */
23
- private _cursorInfo$;
24
- cursorInfo$: import('rxjs').Observable<Map<string, ISheetCollabCursor>>;
25
- get cursorInfo(): Readonly<Map<string, ISheetCollabCursor>>;
26
- private _roomMembers$;
27
- roomMembers$: import('rxjs').Observable<ICollaborationUser[]>;
28
- get roomMembers(): Readonly<ICollaborationUser[]>;
29
- constructor(unitID: string, _session: CollaborationSession, _injector: Injector, _colorAssignService: ColorAssignService, _memberService: MemberService, _univerInstanceService: IUniverInstanceService, _commandService: ICommandService, _refRangeService: RefRangeService);
30
- dispose(): void;
31
- init(): void;
32
- private _onCursorUpdate;
33
- private _onCursorDelete;
34
- private _getMergeRange;
35
- private _onRefRangeChange;
36
- private _updateLocalCursor;
37
- private _toggleOnline;
38
- private _toggleOffline;
39
- }