@univerjs-pro/exchange-client 0.8.0-nightly.202506041607 → 0.8.0-nightly.202506051607
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 +2 -2
- package/lib/cjs/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +2 -2
- package/lib/es/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +2 -2
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/services/exchange.service.d.ts +1 -1
- package/lib/types/services/utils/snapshot.d.ts +15 -7
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +2 -2
- package/lib/umd/locale/en-US.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/ru-RU.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-TW.js +1 -1
- package/package.json +7 -6
package/lib/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x3bab(){const _0x4f4aec=['Cancel','Upload\x20again','6KJMnwO','3590basDRo','Selected\x20file\x20[{0}]\x20is\x20not\x20supported\x20for\x20upload','2944644BkClca','Save\x20As','Open(File)','Data\x20is\x20too\x20large','2769064LcrZJA','{0}\x20file(s)\x20uploaded\x20successfully','The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed','1310GdcuTY','100341tiEpkH','Unknown\x20mistake','2668232AozXwJ','Download\x20success','File\x20uploaded\x20successfully','Uploading','4877375zvbkaz','Internal\x20unknown\x20error','1345IQZQHr','Please\x20wait...','155183qJwMYe'];_0x3bab=function(){return _0x4f4aec;};return _0x3bab();}const _0x3ee3b7=_0x2ece;function _0x2ece(_0x4d3af1,_0x2a2271){const _0x3bab93=_0x3bab();return _0x2ece=function(_0x2ecef0,_0x57e809){_0x2ecef0=_0x2ecef0-0x170;let _0x5d45e9=_0x3bab93[_0x2ecef0];return _0x5d45e9;},_0x2ece(_0x4d3af1,_0x2a2271);}(function(_0x3597e5,_0xdf2e8c){const _0x32ca25=_0x2ece,_0xb9ff92=_0x3597e5();while(!![]){try{const _0x4f2a6b=parseInt(_0x32ca25(0x181))/0x1*(-parseInt(_0x32ca25(0x178))/0x2)+-parseInt(_0x32ca25(0x171))/0x3+-parseInt(_0x32ca25(0x17b))/0x4+-parseInt(_0x32ca25(0x17f))/0x5+-parseInt(_0x32ca25(0x186))/0x6*(-parseInt(_0x32ca25(0x183))/0x7)+parseInt(_0x32ca25(0x175))/0x8+parseInt(_0x32ca25(0x179))/0x9*(parseInt(_0x32ca25(0x187))/0xa);if(_0x4f2a6b===_0xdf2e8c)break;else _0xb9ff92['push'](_0xb9ff92['shift']());}catch(_0x20b841){_0xb9ff92['push'](_0xb9ff92['shift']());}}}(_0x3bab,0xd35c9));const e={'exchange':{'file':'File','upload':_0x3ee3b7(0x173),'download':_0x3ee3b7(0x172),'uploading':_0x3ee3b7(0x17e),'uploadSuccess':_0x3ee3b7(0x17d),'uploadSuccessTip':_0x3ee3b7(0x176),'downloading':'Downloading','downloadSuccess':_0x3ee3b7(0x17c),'unknownMistake':_0x3ee3b7(0x17a),'networkError':'Network\x20error','tooLarge':_0x3ee3b7(0x174),'internalError':_0x3ee3b7(0x180),'interrupt':_0x3ee3b7(0x177),'fileTypeError':_0x3ee3b7(0x170),'wait':_0x3ee3b7(0x182),'cancel':_0x3ee3b7(0x184),'uploadAgain':_0x3ee3b7(0x185)}};export{e as default};
|
package/lib/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x1bc4(_0x2e1835,_0x117f48){const _0xec7008=_0xec70();return _0x1bc4=function(_0x1bc4d4,_0x470bf8){_0x1bc4d4=_0x1bc4d4-0x183;let _0x1b4d67=_0xec7008[_0x1bc4d4];return _0x1b4d67;},_0x1bc4(_0x2e1835,_0x117f48);}const _0x5243d5=_0x1bc4;function _0xec70(){const _0x4ecd86=['در\x20حال\x20بارگذاری','خطای\x20ناشناخته','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','لغو','در\x20حال\x20دانلود','22147965UjrwME','خطای\x20داخلی\x20ناشناخته','داده\x20خیلی\x20بزرگ\x20است','155MEYBWS','فایل\x20انتخاب\x20شده\x20[{0}]\x20برای\x20بارگذاری\x20پشتیبانی\x20نمیشود','261330mIhMJv','507352zuBLiT','1389172RsLXGP','30cwogGA','2453070NbDLph','10900448uTfCrN','خطای\x20شبکه','بارگذاری\x20مجدد','ذخیره\x20به\x20عنوان','6556795clVwMG'];_0xec70=function(){return _0x4ecd86;};return _0xec70();}(function(_0xa9a9c3,_0x350c08){const _0x319aaf=_0x1bc4,_0x5d4df8=_0xa9a9c3();while(!![]){try{const _0xd1a8a4=parseInt(_0x319aaf(0x193))/0x1+-parseInt(_0x319aaf(0x195))/0x2+-parseInt(_0x319aaf(0x194))/0x3*(-parseInt(_0x319aaf(0x192))/0x4)+parseInt(_0x319aaf(0x18f))/0x5*(parseInt(_0x319aaf(0x191))/0x6)+-parseInt(_0x319aaf(0x186))/0x7+parseInt(_0x319aaf(0x196))/0x8+-parseInt(_0x319aaf(0x18c))/0x9;if(_0xd1a8a4===_0x350c08)break;else _0x5d4df8['push'](_0x5d4df8['shift']());}catch(_0x4f9158){_0x5d4df8['push'](_0x5d4df8['shift']());}}}(_0xec70,0xb62e0));const o={'exchange':{'file':'فایل','upload':'بازکردن(فایل)','download':_0x5243d5(0x185),'uploading':_0x5243d5(0x187),'uploadSuccess':'فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','uploadSuccessTip':_0x5243d5(0x189),'downloading':_0x5243d5(0x18b),'downloadSuccess':'دانلود\x20موفقیت\x20آمیز','unknownMistake':_0x5243d5(0x188),'networkError':_0x5243d5(0x183),'tooLarge':_0x5243d5(0x18e),'internalError':_0x5243d5(0x18d),'interrupt':'اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','fileTypeError':_0x5243d5(0x190),'wait':'لطفا\x20صبر\x20کنید...','cancel':_0x5243d5(0x18a),'uploadAgain':_0x5243d5(0x184)}};export{o as default};
|
package/lib/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
function _0x3f1b(_0x2a605c,_0x1a6129){const _0x34caf3=_0x34ca();return _0x3f1b=function(_0x3f1bf3,_0x24ebdb){_0x3f1bf3=_0x3f1bf3-0x12e;let _0x2575e2=_0x34caf3[_0x3f1bf3];return _0x2575e2;},_0x3f1b(_0x2a605c,_0x1a6129);}function _0x34ca(){const _0x20be64=['La\x20connexion\x20réseau\x20a\x20été\x20interrompue\x20et\x20le\x20téléchargement\x20du\x20fichier\x20a\x20échoué','Erreur\x20interne\x20inconnue','Téléchargement','Ouvrir\x20(Fichier)','Télécharger\x20à\x20nouveau','Veuillez\x20patienter...','6ftcAHW','Téléchargement\x20réussi','2600ftOqnb','7683qYjMlI','Erreur\x20inconnue','7312OgZdSk','3804SfDphc','106nKsqTc','3704371mIHpWW','239452dsYWBb','Téléchargement\x20en\x20cours','{0}\x20fichier(s)\x20téléchargé(s)\x20avec\x20succès','11169fgxVLq','5321785oQzZUZ','Fichier\x20téléchargé\x20avec\x20succès','6198900XnJWTr','12dUFrij','Fichier','30XSsuUZ'];_0x34ca=function(){return _0x20be64;};return _0x34ca();}const _0x2880ed=_0x3f1b;(function(_0x4e81f1,_0x170d05){const _0x1add03=_0x3f1b,_0x2bda0b=_0x4e81f1();while(!![]){try{const _0x586f06=-parseInt(_0x1add03(0x135))/0x1*(parseInt(_0x1add03(0x133))/0x2)+-parseInt(_0x1add03(0x12e))/0x3*(parseInt(_0x1add03(0x137))/0x4)+parseInt(_0x1add03(0x13d))/0x5+-parseInt(_0x1add03(0x13e))/0x6*(parseInt(_0x1add03(0x13b))/0x7)+-parseInt(_0x1add03(0x130))/0x8*(-parseInt(_0x1add03(0x13a))/0x9)+parseInt(_0x1add03(0x140))/0xa*(parseInt(_0x1add03(0x136))/0xb)+parseInt(_0x1add03(0x134))/0xc*(parseInt(_0x1add03(0x131))/0xd);if(_0x586f06===_0x170d05)break;else _0x2bda0b['push'](_0x2bda0b['shift']());}catch(_0x42757a){_0x2bda0b['push'](_0x2bda0b['shift']());}}}(_0x34ca,0xc67a3));const e={'exchange':{'file':_0x2880ed(0x13f),'upload':_0x2880ed(0x144),'download':'Enregistrer\x20sous','uploading':_0x2880ed(0x138),'uploadSuccess':_0x2880ed(0x13c),'uploadSuccessTip':_0x2880ed(0x139),'downloading':_0x2880ed(0x143),'downloadSuccess':_0x2880ed(0x12f),'unknownMistake':_0x2880ed(0x132),'networkError':'Erreur\x20réseau','tooLarge':'Les\x20données\x20sont\x20trop\x20volumineuses','internalError':_0x2880ed(0x142),'interrupt':_0x2880ed(0x141),'fileTypeError':'Le\x20fichier\x20sélectionné\x20[{0}]\x20n\x27est\x20pas\x20pris\x20en\x20charge\x20pour\x20le\x20téléchargement','wait':_0x2880ed(0x146),'cancel':'Annuler','uploadAgain':_0x2880ed(0x145)}};export{e as default};
|
package/lib/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x39d7e8=_0x200a;(function(_0x180540,_0x5ee9a5){const _0x170535=_0x200a,_0x32a2df=_0x180540();while(!![]){try{const _0x87e6e1=parseInt(_0x170535(0x16b))/0x1+-parseInt(_0x170535(0x162))/0x2+parseInt(_0x170535(0x161))/0x3*(parseInt(_0x170535(0x167))/0x4)+parseInt(_0x170535(0x168))/0x5*(-parseInt(_0x170535(0x164))/0x6)+parseInt(_0x170535(0x169))/0x7*(-parseInt(_0x170535(0x15b))/0x8)+-parseInt(_0x170535(0x15a))/0x9*(parseInt(_0x170535(0x16d))/0xa)+parseInt(_0x170535(0x16c))/0xb*(parseInt(_0x170535(0x166))/0xc);if(_0x87e6e1===_0x5ee9a5)break;else _0x32a2df['push'](_0x32a2df['shift']());}catch(_0x3a4b17){_0x32a2df['push'](_0x32a2df['shift']());}}}(_0x592c,0x443f6));function _0x200a(_0x19d56e,_0x93a7bf){const _0x592cc0=_0x592c();return _0x200a=function(_0x200ae5,_0x35623b){_0x200ae5=_0x200ae5-0x15a;let _0x15e7e3=_0x592cc0[_0x200ae5];return _0x15e7e3;},_0x200a(_0x19d56e,_0x93a7bf);}const o={'exchange':{'file':_0x39d7e8(0x15d),'upload':_0x39d7e8(0x172),'download':_0x39d7e8(0x16e),'uploading':_0x39d7e8(0x15c),'uploadSuccess':_0x39d7e8(0x15f),'uploadSuccessTip':_0x39d7e8(0x170),'downloading':_0x39d7e8(0x171),'downloadSuccess':_0x39d7e8(0x163),'unknownMistake':_0x39d7e8(0x16a),'networkError':_0x39d7e8(0x165),'tooLarge':'Данные\x20слишком\x20большие','internalError':_0x39d7e8(0x15e),'interrupt':_0x39d7e8(0x160),'fileTypeError':'Выбранный\x20файл\x20[{0}]\x20не\x20поддерживается\x20для\x20загрузки','wait':_0x39d7e8(0x173),'cancel':_0x39d7e8(0x16f),'uploadAgain':'Загрузить\x20снова'}};function _0x592c(){const _0x11ddd1=['4228FZHlac','Неизвестная\x20ошибка','457976bJUGsQ','781MNZsLM','40VQoMgh','Сохранить\x20как','Отмена','{0}\x20файл(ов)\x20успешно\x20загружен(о)','Скачивание','Открыть(Файл)','Пожалуйста,\x20подождите...','705933GotZSz','4232TGUWjX','Загрузка','Файл','Внутренняя\x20неизвестная\x20ошибка','Файл\x20успешно\x20загружен','Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась','9MTJQoa','38412XZqKBC','Скачивание\x20успешно','2148ATisEq','Сетевая\x20ошибка','43572mZHEVv','465404htaVcI','1855yseaDc'];_0x592c=function(){return _0x11ddd1;};return _0x592c();}export{o as default};
|
package/lib/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0x885a(){const _0x2099d8=['2300573QucDUJ','Mở\x20(Tệp)','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công','Lưu\x20dưới\x20dạng','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','2803732znWBBN','Lỗi\x20không\x20xác\x20định','2601090ntmZQn','Đang\x20tải\x20lên','876127NZoNPj','300085muAJGQ','568222ALZrOg','Tải\x20lên\x20lại','Tải\x20xuống\x20thành\x20công','12xTsTSD','3MRRWVU','Tệp','20IDNhkl','Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại','8LgGGFN','900497SuQGKT','Đang\x20tải\x20xuống','Vui\x20lòng\x20đợi...'];_0x885a=function(){return _0x2099d8;};return _0x885a();}const _0x155492=_0x2390;(function(_0x1305ff,_0x2617a7){const _0x316b41=_0x2390,_0x7c2daa=_0x1305ff();while(!![]){try{const _0x40bc8c=parseInt(_0x316b41(0x1e7))/0x1+-parseInt(_0x316b41(0x1f5))/0x2+-parseInt(_0x316b41(0x1e2))/0x3*(parseInt(_0x316b41(0x1ef))/0x4)+-parseInt(_0x316b41(0x1f4))/0x5*(parseInt(_0x316b41(0x1e1))/0x6)+-parseInt(_0x316b41(0x1f3))/0x7*(parseInt(_0x316b41(0x1e6))/0x8)+parseInt(_0x316b41(0x1f1))/0x9*(parseInt(_0x316b41(0x1e4))/0xa)+parseInt(_0x316b41(0x1ea))/0xb;if(_0x40bc8c===_0x2617a7)break;else _0x7c2daa['push'](_0x7c2daa['shift']());}catch(_0x1d74c0){_0x7c2daa['push'](_0x7c2daa['shift']());}}}(_0x885a,0x6facd));const n={'exchange':{'file':_0x155492(0x1e3),'upload':_0x155492(0x1eb),'download':_0x155492(0x1ed),'uploading':_0x155492(0x1f2),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x155492(0x1ec),'downloading':_0x155492(0x1e8),'downloadSuccess':_0x155492(0x1e0),'unknownMistake':_0x155492(0x1f0),'networkError':'Lỗi\x20mạng','tooLarge':'Luồng\x20dữ\x20liệu\x20quá\x20lớn','internalError':_0x155492(0x1ee),'interrupt':_0x155492(0x1e5),'fileTypeError':'Tệp\x20được\x20chọn\x20[{0}]\x20không\x20được\x20hỗ\x20trợ\x20để\x20tải\x20lên','wait':_0x155492(0x1e9),'cancel':'Hủy\x20bỏ','uploadAgain':_0x155492(0x1df)}};function _0x2390(_0x359dd1,_0x32c924){const _0x885add=_0x885a();return _0x2390=function(_0x23907f,_0x3c38aa){_0x23907f=_0x23907f-0x1df;let _0x5da858=_0x885add[_0x23907f];return _0x5da858;},_0x2390(_0x359dd1,_0x32c924);}export{n as default};
|
package/lib/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x58a9bc=_0x1666;function _0x1666(_0x31bdf2,_0x491a6e){const _0x505b09=_0x505b();return _0x1666=function(_0x166664,_0x2742d9){_0x166664=_0x166664-0x1e5;let _0x30adc8=_0x505b09[_0x166664];return _0x30adc8;},_0x1666(_0x31bdf2,_0x491a6e);}function _0x505b(){const _0x277fb1=['648438iVuWdv','{0}个文件上传成功','616ZCmhLY','请稍等...','再次上传','1858245auOcrF','4bfpkQT','网络连接中断,文件上传失败','未知错误','打开(文件)','另存为','文件上传成功','165706VYXMND','1600AkaKVq','下载成功','268436LtKETO','37079cXJqwp','31095jACKkm','2079894EyiLtT','数据流过大'];_0x505b=function(){return _0x277fb1;};return _0x505b();}(function(_0x2dbb6f,_0x368273){const _0x166d75=_0x1666,_0x324f5d=_0x2dbb6f();while(!![]){try{const _0x4f91ca=parseInt(_0x166d75(0x1e8))/0x1*(parseInt(_0x166d75(0x1ee))/0x2)+-parseInt(_0x166d75(0x1f6))/0x3+-parseInt(_0x166d75(0x1f1))/0x4+parseInt(_0x166d75(0x1e7))/0x5+-parseInt(_0x166d75(0x1f4))/0x6+parseInt(_0x166d75(0x1f2))/0x7*(-parseInt(_0x166d75(0x1f8))/0x8)+parseInt(_0x166d75(0x1f3))/0x9*(parseInt(_0x166d75(0x1ef))/0xa);if(_0x4f91ca===_0x368273)break;else _0x324f5d['push'](_0x324f5d['shift']());}catch(_0x361d25){_0x324f5d['push'](_0x324f5d['shift']());}}}(_0x505b,0x353e8));const o={'exchange':{'file':'文件','upload':_0x58a9bc(0x1eb),'download':_0x58a9bc(0x1ec),'uploading':'上传中','uploadSuccess':_0x58a9bc(0x1ed),'uploadSuccessTip':_0x58a9bc(0x1f7),'downloading':'下载中','downloadSuccess':_0x58a9bc(0x1f0),'unknownMistake':_0x58a9bc(0x1ea),'networkError':'网络异常','tooLarge':_0x58a9bc(0x1f5),'internalError':'内部未知错误','interrupt':_0x58a9bc(0x1e9),'fileTypeError':'所选文件\x20[{0}]\x20不支持上传','wait':_0x58a9bc(0x1e5),'cancel':'取消','uploadAgain':_0x58a9bc(0x1e6)}};export{o as default};
|
package/lib/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x1b8137=_0x27c3;function _0x27c3(_0x290cb5,_0x4ae6a5){const _0x2f113d=_0x2f11();return _0x27c3=function(_0x27c317,_0x3fb306){_0x27c317=_0x27c317-0x73;let _0x581901=_0x2f113d[_0x27c317];return _0x581901;},_0x27c3(_0x290cb5,_0x4ae6a5);}(function(_0x14b37b,_0xace0a6){const _0xb591f9=_0x27c3,_0x1da944=_0x14b37b();while(!![]){try{const _0x3890b5=-parseInt(_0xb591f9(0x7f))/0x1+-parseInt(_0xb591f9(0x74))/0x2+-parseInt(_0xb591f9(0x89))/0x3*(-parseInt(_0xb591f9(0x7e))/0x4)+parseInt(_0xb591f9(0x7c))/0x5+parseInt(_0xb591f9(0x7a))/0x6*(parseInt(_0xb591f9(0x84))/0x7)+-parseInt(_0xb591f9(0x75))/0x8*(-parseInt(_0xb591f9(0x76))/0x9)+parseInt(_0xb591f9(0x83))/0xa*(parseInt(_0xb591f9(0x82))/0xb);if(_0x3890b5===_0xace0a6)break;else _0x1da944['push'](_0x1da944['shift']());}catch(_0x5e58ae){_0x1da944['push'](_0x1da944['shift']());}}}(_0x2f11,0xdde97));const o={'exchange':{'file':'檔案','upload':_0x1b8137(0x80),'download':_0x1b8137(0x88),'uploading':'上傳中','uploadSuccess':_0x1b8137(0x81),'uploadSuccessTip':_0x1b8137(0x86),'downloading':_0x1b8137(0x78),'downloadSuccess':'下載成功','unknownMistake':_0x1b8137(0x85),'networkError':_0x1b8137(0x73),'tooLarge':_0x1b8137(0x87),'internalError':_0x1b8137(0x7b),'interrupt':_0x1b8137(0x79),'fileTypeError':_0x1b8137(0x77),'wait':_0x1b8137(0x7d),'cancel':'取消','uploadAgain':'再次上傳'}};export{o as default};function _0x2f11(){const _0x521c21=['187DtFUtq','47790lPeqCQ','8999242NwJRYx','未知錯誤','{0}個檔案上傳成功','資料流過大','另存為','5151kkgvew','網路異常','3044376DDdnpG','8PmYRUU','6731289AOhObR','所選檔案\x20[{0}]\x20不支援上傳','下載中','網路連線中斷,檔案上傳失敗','6EMDjSI','內部未知錯誤','4620615NZVMAh','請稍等...','2084XkCcsV','1502311SOqsmm','開啟(檔案)','檔案上傳成功'];_0x2f11=function(){return _0x521c21;};return _0x2f11();}
|
package/lib/types/index.d.ts
CHANGED
@@ -8,6 +8,6 @@ export { EXCHANGE_EXPORT_SERVER_URL_KEY, EXCHANGE_GET_TASK_SERVER_URL_KEY, EXCHA
|
|
8
8
|
export { IUploadNotificationService, UploadNotificationService, UploadNotificationState } from './services/upload-notification.service';
|
9
9
|
export { downloadFile, getUniverTypeByFile, getUploadFile } from './services/utils/tool';
|
10
10
|
export { UploadNotificationContainer } from './views/UploadNotificationContainer';
|
11
|
-
export { transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson } from './services/utils/snapshot';
|
11
|
+
export { transformDocumentDataToSnapshotJson, transformSnapshotJsonToDocumentData, transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson } from './services/utils/snapshot';
|
12
12
|
export type { ISnapshotBlockJsonResponse } from './services/utils/snapshot';
|
13
13
|
export { EXCHANGE_CLIENT_PLUGIN_CONFIG_KEY, type IUniverExchangeClientOptions } from './controllers/config.schema';
|
@@ -66,7 +66,7 @@ export declare class ExchangeService extends Disposable implements IExchangeServ
|
|
66
66
|
dispose(): void;
|
67
67
|
importDOCXToSnapshot(file: File | string): Promise<IDocumentData | undefined>;
|
68
68
|
exportDOCXByUnitId(unitId: string): Promise<File | undefined>;
|
69
|
-
exportDOCXBySnapshot(
|
69
|
+
exportDOCXBySnapshot(data: IDocumentData): Promise<File | undefined>;
|
70
70
|
importXLSXToSnapshot(file: File | string): Promise<IWorkbookData | undefined>;
|
71
71
|
exportXLSXByUnitId(unitId: string): Promise<File | undefined>;
|
72
72
|
exportXLSXBySnapshot(data: IWorkbookData): Promise<File | undefined>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
2
|
-
import { IWorkbookData, Nullable } from '@univerjs/core';
|
2
|
+
import { IDocumentData, IWorkbookData, Nullable } from '@univerjs/core';
|
3
3
|
import { ICopyFileMetaResponse, IDocumentMeta, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetLatestCsReqIdBySidResponse, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevResponse, ISaveChangesetResponse, ISaveSheetBlockRequest, ISaveSheetBlockResponse, ISaveSnapshotResponse, ISheetBlock, ISnapshot, IWorkbookMeta, IWorksheetMeta } from '@univerjs/protocol';
|
4
4
|
export interface IWorksheetMetaJson extends Omit<IWorksheetMeta, 'originalMeta'> {
|
5
5
|
originalMeta: string;
|
@@ -36,9 +36,13 @@ export interface ISnapshotBlockJsonResponse {
|
|
36
36
|
/**
|
37
37
|
* Convert the Uint8Array in the snapshot to a string for easy transmission to the backend
|
38
38
|
* @param snapshot
|
39
|
-
* @returns
|
40
39
|
*/
|
41
|
-
export declare function
|
40
|
+
export declare function transformWorkbookSnapshotMetaToString(snapshot: ISnapshot): Nullable<ISnapshotJson>;
|
41
|
+
/**
|
42
|
+
* Convert the Uint8Array in the snapshot to a string for easy transmission to the backend
|
43
|
+
* @param snapshot
|
44
|
+
*/
|
45
|
+
export declare function transformDocumentSnapshotMetaToString(snapshot: ISnapshot): Nullable<ISnapshotJson>;
|
42
46
|
/**
|
43
47
|
* Convert the Uint8Array in the sheet block to a string for easy transmission to the backend
|
44
48
|
* @param sheetBlocks
|
@@ -47,16 +51,20 @@ export declare function transformSnapshotMetaToString(snapshot: ISnapshot): Null
|
|
47
51
|
export declare function transformSheetBlockMetaToString(sheetBlocks: ISheetBlock[]): ISheetBlockJson;
|
48
52
|
/**
|
49
53
|
* Convert the workbook data to snapshot data
|
50
|
-
* @param workbookData
|
51
|
-
* @returns
|
52
54
|
*/
|
53
55
|
export declare function transformWorkbookDataToSnapshotJson(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
|
56
|
+
/**
|
57
|
+
* Convert the document data to snapshot data
|
58
|
+
*/
|
59
|
+
export declare function transformDocumentDataToSnapshotJson(documentData: IDocumentData): Promise<ISnapshotBlockJson>;
|
54
60
|
/**
|
55
61
|
* Convert the Snapshot data to workbook data
|
56
|
-
* @param json
|
57
|
-
* @returns
|
58
62
|
*/
|
59
63
|
export declare function transformSnapshotJsonToWorkbookData(json: ISnapshotBlockJsonResponse): IWorkbookData;
|
64
|
+
/**
|
65
|
+
* Convert the Snapshot data to workbook data
|
66
|
+
*/
|
67
|
+
export declare function transformSnapshotJsonToDocumentData(json: ISnapshotBlockJsonResponse): IDocumentData;
|
60
68
|
/**
|
61
69
|
* The server needs to fully implement all interfaces, but when used by the client, use saveSheetBlock to cache the sheet block locally, and use getSheetBlock to obtain the sheet block.
|
62
70
|
*/
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
(function(_0x37d94c,_0x323c47){const _0x5cacc3=_0x56b6,_0x38c09a=_0x37d94c();while(!![]){try{const _0x19ca5a=-parseInt(_0x5cacc3(0x88))/0x1+parseInt(_0x5cacc3(0x91))/0x2+-parseInt(_0x5cacc3(0x83))/0x3+-parseInt(_0x5cacc3(0x7e))/0x4*(parseInt(_0x5cacc3(0x9b))/0x5)+parseInt(_0x5cacc3(0x86))/0x6*(-parseInt(_0x5cacc3(0x80))/0x7)+parseInt(_0x5cacc3(0x94))/0x8+-parseInt(_0x5cacc3(0x87))/0x9*(-parseInt(_0x5cacc3(0x77))/0xa);if(_0x19ca5a===_0x323c47)break;else _0x38c09a['push'](_0x38c09a['shift']());}catch(_0x227438){_0x38c09a['push'](_0x38c09a['shift']());}}}(_0x5493,0x9d135),function(_0x162b86,_0x57dc4c){const _0x918087=_0x56b6;typeof exports=='object'&&typeof module<'u'?_0x57dc4c(require('@univerjs-pro/exchange-client'),require(_0x918087(0x85))):typeof define=='function'&&define[_0x918087(0x84)]?define([_0x918087(0x82),'@univerjs/core/facade'],_0x57dc4c):(_0x162b86=typeof globalThis<'u'?globalThis:_0x162b86||self,_0x57dc4c(_0x162b86[_0x918087(0x81)],_0x162b86[_0x918087(0x7d)]));}(this,function(_0x5ce8ea,_0x293fa8){'use strict';const _0x32aaed=_0x56b6;var _0x59a4c7=(_0x3666ea=>(_0x3666ea[_0x3666ea[_0x32aaed(0x8f)]=0x0]=_0x32aaed(0x8f),_0x3666ea[_0x3666ea['UNIVER_DOC']=0x1]=_0x32aaed(0x74),_0x3666ea[_0x3666ea['UNIVER_SHEET']=0x2]=_0x32aaed(0x89),_0x3666ea[_0x3666ea['UNIVER_SLIDE']=0x3]=_0x32aaed(0x9a),_0x3666ea[_0x3666ea[_0x32aaed(0x8a)]=0x4]=_0x32aaed(0x8a),_0x3666ea[_0x3666ea['UNRECOGNIZED']=-0x1]=_0x32aaed(0x97),_0x3666ea))(_0x59a4c7||{});class _0x4b719d extends _0x293fa8[_0x32aaed(0x8d)]{async[_0x32aaed(0x7c)](_0x5b7eef){return this['importXLSXToUnitIdAsync'](_0x5b7eef);}async[_0x32aaed(0x76)](_0x1bca84){const _0x39affa=_0x32aaed,_0x482f49=this['_injector']['get'](_0x5ce8ea[_0x39affa(0x95)]);if(!_0x482f49)throw new Error(_0x39affa(0x96));return _0x482f49['importFileToUnitId'](_0x1bca84,_0x59a4c7[_0x39affa(0x89)]);}async['importXLSXToSnapshot'](_0x60eb63){const _0x5ad194=_0x32aaed;return this[_0x5ad194(0x93)](_0x60eb63);}async[_0x32aaed(0x93)](_0x381f46){const _0x5cc352=_0x32aaed,_0x5bbc0a=this[_0x5cc352(0x8e)][_0x5cc352(0x7a)](_0x5ce8ea[_0x5cc352(0x95)]);if(!_0x5bbc0a)throw new Error(_0x5cc352(0x96));return _0x5bbc0a[_0x5cc352(0x92)](_0x381f46);}async[_0x32aaed(0x90)](_0x2d4ba0){const _0x5b2348=_0x32aaed;return this[_0x5b2348(0x78)](_0x2d4ba0);}async['exportXLSXByUnitIdAsync'](_0x24e13c){const _0x3ce1a7=_0x32aaed,_0x3fce3f=this['_injector'][_0x3ce1a7(0x7a)](_0x5ce8ea[_0x3ce1a7(0x95)]);if(!_0x3fce3f)throw new Error(_0x3ce1a7(0x96));return _0x3fce3f[_0x3ce1a7(0x90)](_0x24e13c);}async[_0x32aaed(0x7b)](_0x227b5e){const _0x59ab6d=_0x32aaed;return this[_0x59ab6d(0x73)](_0x227b5e);}async[_0x32aaed(0x73)](_0x4a0909){const _0xb98483=_0x32aaed,_0x292c0d=this[_0xb98483(0x8e)]['get'](_0x5ce8ea['IExchangeService']);if(!_0x292c0d)throw new Error(_0xb98483(0x96));return _0x292c0d[_0xb98483(0x7b)](_0x4a0909);}async[_0x32aaed(0x98)](_0x3bff6e){return this['importDOCXToUnitIdAsync'](_0x3bff6e);}async['importDOCXToUnitIdAsync'](_0x33ab93){const _0x5030b9=_0x32aaed,_0xd57225=this[_0x5030b9(0x8e)]['get'](_0x5ce8ea[_0x5030b9(0x95)]);if(!_0xd57225)throw new Error(_0x5030b9(0x96));return _0xd57225[_0x5030b9(0x8b)](_0x33ab93,_0x59a4c7[_0x5030b9(0x74)]);}async[_0x32aaed(0x8c)](_0x10efd2){const _0x560680=_0x32aaed;return this[_0x560680(0x7f)](_0x10efd2);}async[_0x32aaed(0x7f)](_0x8f21b0){const _0x13f391=_0x32aaed,_0xb97d6c=this['_injector'][_0x13f391(0x7a)](_0x5ce8ea[_0x13f391(0x95)]);if(!_0xb97d6c)throw new Error(_0x13f391(0x96));return _0xb97d6c['importDOCXToSnapshot'](_0x8f21b0);}async[_0x32aaed(0x99)](_0x194859){const _0x5b41cb=_0x32aaed,_0x1128b0=this[_0x5b41cb(0x8e)][_0x5b41cb(0x7a)](_0x5ce8ea[_0x5b41cb(0x95)]);if(!_0x1128b0)throw new Error(_0x5b41cb(0x96));return _0x1128b0[_0x5b41cb(0x75)](_0x194859);}async[_0x32aaed(0x79)](_0x59da7d){const _0x129289=_0x32aaed,_0x18ad9d=this[_0x129289(0x8e)][_0x129289(0x7a)](_0x5ce8ea['IExchangeService']);if(!_0x18ad9d)throw new Error(_0x129289(0x96));return _0x18ad9d['exportDOCXByUnitId'](_0x59da7d);}}_0x293fa8['FUniver']['extend'](_0x4b719d);}));function _0x56b6(_0xb12eb3,_0x306d83){const _0x54935d=_0x5493();return _0x56b6=function(_0x56b6c2,_0x2edfbe){_0x56b6c2=_0x56b6c2-0x73;let _0x33dc69=_0x54935d[_0x56b6c2];return _0x33dc69;},_0x56b6(_0xb12eb3,_0x306d83);}function _0x5493(){const _0x3bd293=['exportXLSXBySnapshot','importXLSXToUnitId','UniverCoreFacade','517780YVImhs','importDOCXToSnapshotAsync','196bZOsxl','UniverProExchangeClient','@univerjs-pro/exchange-client','756141fcfbdu','amd','@univerjs/core/facade','109542wYYXix','6462paTjvC','1204740NTNWNL','UNIVER_SHEET','UNIVER_PROJECT','importFileToUnitId','importDOCXToSnapshot','FUniver','_injector','UNIVER_UNKNOWN','exportXLSXByUnitId','449708fymCHB','importXLSXToSnapshot','importXLSXToSnapshotAsync','108976xDvIed','IExchangeService','The\x20exchange\x20service\x20is\x20not\x20available','UNRECOGNIZED','importDOCXToUnitId','exportDOCXBySnapshotAsync','UNIVER_SLIDE','20lYxPpX','exportXLSXBySnapshotAsync','UNIVER_DOC','exportDOCXBySnapshot','importXLSXToUnitIdAsync','40260unjlcR','exportXLSXByUnitIdAsync','exportDOCXByUnitIdAsync','get'];_0x5493=function(){return _0x3bd293;};return _0x5493();}
|