@univerjs-pro/exchange-client 0.5.4-nightly.202501161606 → 0.5.4-nightly.202501171120
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/types/index.d.ts +1 -1
- package/lib/types/services/utils/snapshot.d.ts +7 -1
- 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 +6 -6
package/lib/es/locale/en-US.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
const _0x25e608=_0x130d;function _0x3154(){const _0x438eb5=['7841720zwkeDd','{0}\x20file(s)\x20uploaded\x20successfully','Download\x20success','Unknown\x20mistake','File\x20uploaded\x20successfully','7gUBZhm','34363746oaGuBX','4993377rkreNg','5933502zDMNzb','1698040LYReOS','Uploading','Upload\x20again','Cancel','Please\x20wait...','Internal\x20unknown\x20error','Downloading','Open(File)','File','4892112uDqwCI','8695850rccVjQ','Data\x20is\x20too\x20large','2JAEyZL'];_0x3154=function(){return _0x438eb5;};return _0x3154();}(function(_0x596c0a,_0x2670a5){const _0x29264f=_0x130d,_0x2427f8=_0x596c0a();while(!![]){try{const _0x3ef814=-parseInt(_0x29264f(0x113))/0x1*(parseInt(_0x29264f(0x107))/0x2)+-parseInt(_0x29264f(0x105))/0x3+-parseInt(_0x29264f(0x110))/0x4+parseInt(_0x29264f(0x111))/0x5+parseInt(_0x29264f(0x106))/0x6+parseInt(_0x29264f(0x103))/0x7*(-parseInt(_0x29264f(0x114))/0x8)+parseInt(_0x29264f(0x104))/0x9;if(_0x3ef814===_0x2670a5)break;else _0x2427f8['push'](_0x2427f8['shift']());}catch(_0x185716){_0x2427f8['push'](_0x2427f8['shift']());}}}(_0x3154,0xef63b));function _0x130d(_0x39da9a,_0x4f9ba7){const _0x3154a5=_0x3154();return _0x130d=function(_0x130ddf,_0x4d5657){_0x130ddf=_0x130ddf-0x100;let _0x324f0e=_0x3154a5[_0x130ddf];return _0x324f0e;},_0x130d(_0x39da9a,_0x4f9ba7);}const e={'exchange':{'file':_0x25e608(0x10f),'upload':_0x25e608(0x10e),'download':'Save\x20As','uploading':_0x25e608(0x108),'uploadSuccess':_0x25e608(0x102),'uploadSuccessTip':_0x25e608(0x115),'downloading':_0x25e608(0x10d),'downloadSuccess':_0x25e608(0x100),'unknownMistake':_0x25e608(0x101),'networkError':'Network\x20error','tooLarge':_0x25e608(0x112),'internalError':_0x25e608(0x10c),'interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','wait':_0x25e608(0x10b),'cancel':_0x25e608(0x10a),'uploadAgain':_0x25e608(0x109)}};export{e as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x3d3df6=_0xa4ba;(function(_0x116ed4,_0x39b048){const _0xe8345d=_0xa4ba,_0x540cc9=_0x116ed4();while(!![]){try{const _0x3490d4=-parseInt(_0xe8345d(0x1f8))/0x1+parseInt(_0xe8345d(0x1eb))/0x2*(parseInt(_0xe8345d(0x1f5))/0x3)+parseInt(_0xe8345d(0x1ed))/0x4+parseInt(_0xe8345d(0x1fb))/0x5*(-parseInt(_0xe8345d(0x1f3))/0x6)+-parseInt(_0xe8345d(0x1f2))/0x7*(-parseInt(_0xe8345d(0x1f7))/0x8)+-parseInt(_0xe8345d(0x1ef))/0x9+-parseInt(_0xe8345d(0x1f0))/0xa*(-parseInt(_0xe8345d(0x1fd))/0xb);if(_0x3490d4===_0x39b048)break;else _0x540cc9['push'](_0x540cc9['shift']());}catch(_0x9cb790){_0x540cc9['push'](_0x540cc9['shift']());}}}(_0x2b91,0x6669b));function _0xa4ba(_0x1c930b,_0x2f0222){const _0x2b914a=_0x2b91();return _0xa4ba=function(_0xa4ba00,_0x2dc8a5){_0xa4ba00=_0xa4ba00-0x1e9;let _0x143125=_0x2b914a[_0xa4ba00];return _0x143125;},_0xa4ba(_0x1c930b,_0x2f0222);}const o={'exchange':{'file':_0x3d3df6(0x1f4),'upload':_0x3d3df6(0x1ea),'download':_0x3d3df6(0x1f6),'uploading':_0x3d3df6(0x1ee),'uploadSuccess':_0x3d3df6(0x1f9),'uploadSuccessTip':_0x3d3df6(0x1fa),'downloading':'در\x20حال\x20دانلود','downloadSuccess':_0x3d3df6(0x1fc),'unknownMistake':_0x3d3df6(0x1e9),'networkError':'خطای\x20شبکه','tooLarge':'داده\x20خیلی\x20بزرگ\x20است','internalError':'خطای\x20داخلی\x20ناشناخته','interrupt':'اتصال\x20شبکه\x20قطع\x20شد\x20و\x20بارگذاری\x20فایل\x20ناموفق\x20بود.','wait':'لطفا\x20صبر\x20کنید...','cancel':_0x3d3df6(0x1f1),'uploadAgain':_0x3d3df6(0x1ec)}};export{o as default};function _0x2b91(){const _0x10e51a=['ذخیره\x20به\x20عنوان','19272lMODgy','359265RMtuOc','فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','{0}\x20فایل\x20با\x20موفقیت\x20بارگذاری\x20شد','208545NoJpTD','دانلود\x20موفقیت\x20آمیز','11DQDzhr','خطای\x20ناشناخته','بازکردن(فایل)','758aEiWti','بارگذاری\x20مجدد','2045944MaUUce','در\x20حال\x20بارگذاری','2818683fhhwsG','5748300iVPbYO','لغو','1274NvCyKr','120idNoYj','فایل','3177WUIVnL'];_0x2b91=function(){return _0x10e51a;};return _0x2b91();}
|
package/lib/es/locale/fr-FR.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
function _0xbc2b(_0x5af594,_0x11d357){const _0x409f7a=_0x409f();return _0xbc2b=function(_0xbc2b99,_0x227478){_0xbc2b99=_0xbc2b99-0xa0;let _0x1ebbba=_0x409f7a[_0xbc2b99];return _0x1ebbba;},_0xbc2b(_0x5af594,_0x11d357);}const _0x2626f8=_0xbc2b;function _0x409f(){const _0x2fb793=['Save\x20As','1160494NbvtRS','Unknown\x20mistake','{0}\x20file(s)\x20uploaded\x20successfully','125864HmoDAf','8076509jjFxJr','66GuuaGy','Please\x20wait...','Uploading','Download\x20success','18OaKmXn','1785432CrZREo','5418785dVSntU','Downloading','Open(File)','1047089oKleeD','12843608CHgORv','File'];_0x409f=function(){return _0x2fb793;};return _0x409f();}(function(_0x1d9dc4,_0x377219){const _0x589160=_0xbc2b,_0xb354f=_0x1d9dc4();while(!![]){try{const _0x53bb69=-parseInt(_0x589160(0xab))/0x1+-parseInt(_0x589160(0xaf))/0x2+-parseInt(_0x589160(0xa2))/0x3*(parseInt(_0x589160(0xa0))/0x4)+-parseInt(_0x589160(0xa8))/0x5+-parseInt(_0x589160(0xa7))/0x6+parseInt(_0x589160(0xa1))/0x7+parseInt(_0x589160(0xac))/0x8*(parseInt(_0x589160(0xa6))/0x9);if(_0x53bb69===_0x377219)break;else _0xb354f['push'](_0xb354f['shift']());}catch(_0x3f58f8){_0xb354f['push'](_0xb354f['shift']());}}}(_0x409f,0xa20dc));const e={'exchange':{'file':_0x2626f8(0xad),'upload':_0x2626f8(0xaa),'download':_0x2626f8(0xae),'uploading':_0x2626f8(0xa4),'uploadSuccess':'File\x20uploaded\x20successfully','uploadSuccessTip':_0x2626f8(0xb1),'downloading':_0x2626f8(0xa9),'downloadSuccess':_0x2626f8(0xa5),'unknownMistake':_0x2626f8(0xb0),'networkError':'Network\x20error','tooLarge':'Data\x20is\x20too\x20large','internalError':'Internal\x20unknown\x20error','interrupt':'The\x20network\x20connection\x20was\x20interrupted\x20and\x20the\x20file\x20upload\x20failed.','wait':_0x2626f8(0xa3),'cancel':'Cancel','uploadAgain':'Upload\x20again'}},o=e;export{o as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x531108=_0x303c;(function(_0x3f10ae,_0x3a2448){const _0x49a6b8=_0x303c,_0x35c646=_0x3f10ae();while(!![]){try{const _0x567b4e=-parseInt(_0x49a6b8(0x82))/0x1*(parseInt(_0x49a6b8(0x80))/0x2)+-parseInt(_0x49a6b8(0x83))/0x3*(parseInt(_0x49a6b8(0x78))/0x4)+-parseInt(_0x49a6b8(0x7d))/0x5*(parseInt(_0x49a6b8(0x87))/0x6)+parseInt(_0x49a6b8(0x7e))/0x7*(-parseInt(_0x49a6b8(0x75))/0x8)+-parseInt(_0x49a6b8(0x77))/0x9+-parseInt(_0x49a6b8(0x79))/0xa*(parseInt(_0x49a6b8(0x7a))/0xb)+parseInt(_0x49a6b8(0x88))/0xc;if(_0x567b4e===_0x3a2448)break;else _0x35c646['push'](_0x35c646['shift']());}catch(_0x42002b){_0x35c646['push'](_0x35c646['shift']());}}}(_0x21d0,0x84434));function _0x303c(_0x1c0e96,_0xdeace6){const _0x21d0f3=_0x21d0();return _0x303c=function(_0x303c33,_0x36571a){_0x303c33=_0x303c33-0x71;let _0x489682=_0x21d0f3[_0x303c33];return _0x489682;},_0x303c(_0x1c0e96,_0xdeace6);}const o={'exchange':{'file':_0x531108(0x76),'upload':_0x531108(0x74),'download':_0x531108(0x84),'uploading':_0x531108(0x81),'uploadSuccess':_0x531108(0x85),'uploadSuccessTip':'{0}\x20файл(ов)\x20успешно\x20загружен(о)','downloading':_0x531108(0x72),'downloadSuccess':_0x531108(0x7f),'unknownMistake':_0x531108(0x7c),'networkError':_0x531108(0x73),'tooLarge':_0x531108(0x7b),'internalError':_0x531108(0x71),'interrupt':'Сетевое\x20соединение\x20было\x20прервано,\x20и\x20загрузка\x20файла\x20не\x20удалась.','wait':'Пожалуйста,\x20подождите...','cancel':_0x531108(0x86),'uploadAgain':_0x531108(0x89)}};export{o as default};function _0x21d0(){const _0x280e37=['Внутренняя\x20неизвестная\x20ошибка','Скачивание','Сетевая\x20ошибка','Открыть(Файл)','2036872DQkLWZ','Файл','5859378oabXlW','38532aHXBBa','4891060nLMIiH','11XXczTY','Данные\x20слишком\x20большие','Неизвестная\x20ошибка','3572715NqgoFk','28zRkQWn','Скачивание\x20успешно','2962pNSjtW','Загрузка','61zbYzEv','15PezsCX','Сохранить\x20как','Файл\x20успешно\x20загружен','Отмена','6BpOsAP','42640572TBavDv','Загрузить\x20снова'];_0x21d0=function(){return _0x280e37;};return _0x21d0();}
|
package/lib/es/locale/vi-VN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x426716=_0x52e8;function _0x365f(){const _0x9276e8=['Đang\x20tải\x20lên','Lỗi\x20không\x20xác\x20định\x20bên\x20trong','235TKlLIj','Hủy\x20bỏ','282688IUAxup','351888DvTymb','11844TQfWrd','892740myOOLJ','6KAQBNv','Vui\x20lòng\x20đợi...','Mở\x20(Tệp)','Tải\x20xuống\x20thành\x20công','Tệp','683595WMdSgY','63aArPva','867475nseGPQ','Lỗi\x20không\x20xác\x20định','Tải\x20lên\x20lại','1268544ehAxxZ','Luồng\x20dữ\x20liệu\x20quá\x20lớn','Đang\x20tải\x20xuống','{0}\x20tệp\x20đã\x20được\x20tải\x20lên\x20thành\x20công'];_0x365f=function(){return _0x9276e8;};return _0x365f();}(function(_0x4b4242,_0x5a7c79){const _0xcb8db2=_0x52e8,_0x28bb84=_0x4b4242();while(!![]){try{const _0x33e927=-parseInt(_0xcb8db2(0x11a))/0x1+parseInt(_0xcb8db2(0x11b))/0x2+-parseInt(_0xcb8db2(0x10d))/0x3+-parseInt(_0xcb8db2(0x11c))/0x4*(-parseInt(_0xcb8db2(0x118))/0x5)+-parseInt(_0xcb8db2(0x108))/0x6*(parseInt(_0xcb8db2(0x10f))/0x7)+-parseInt(_0xcb8db2(0x112))/0x8+-parseInt(_0xcb8db2(0x10e))/0x9*(-parseInt(_0xcb8db2(0x107))/0xa);if(_0x33e927===_0x5a7c79)break;else _0x28bb84['push'](_0x28bb84['shift']());}catch(_0x3d9f4e){_0x28bb84['push'](_0x28bb84['shift']());}}}(_0x365f,0x23e27));function _0x52e8(_0x23234a,_0x218a36){const _0x365f6e=_0x365f();return _0x52e8=function(_0x52e8c5,_0x1e7126){_0x52e8c5=_0x52e8c5-0x107;let _0x608b71=_0x365f6e[_0x52e8c5];return _0x608b71;},_0x52e8(_0x23234a,_0x218a36);}const n={'exchange':{'file':_0x426716(0x10c),'upload':_0x426716(0x10a),'download':'Lưu\x20dưới\x20dạng','uploading':_0x426716(0x116),'uploadSuccess':'Tải\x20lên\x20tệp\x20thành\x20công','uploadSuccessTip':_0x426716(0x115),'downloading':_0x426716(0x114),'downloadSuccess':_0x426716(0x10b),'unknownMistake':_0x426716(0x110),'networkError':'Lỗi\x20mạng','tooLarge':_0x426716(0x113),'internalError':_0x426716(0x117),'interrupt':'Kết\x20nối\x20mạng\x20bị\x20gián\x20đoạn,\x20tải\x20lên\x20tệp\x20thất\x20bại.','wait':_0x426716(0x109),'cancel':_0x426716(0x119),'uploadAgain':_0x426716(0x111)}};export{n as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
const
|
1
|
+
const _0x4b061f=_0x4807;(function(_0xac699b,_0xd6ac1e){const _0x1839b9=_0x4807,_0x1ac8fa=_0xac699b();while(!![]){try{const _0x593376=parseInt(_0x1839b9(0xf6))/0x1*(parseInt(_0x1839b9(0xf4))/0x2)+parseInt(_0x1839b9(0xf3))/0x3+parseInt(_0x1839b9(0xfc))/0x4+parseInt(_0x1839b9(0xf0))/0x5+parseInt(_0x1839b9(0xf2))/0x6*(parseInt(_0x1839b9(0xfa))/0x7)+parseInt(_0x1839b9(0xfb))/0x8+-parseInt(_0x1839b9(0xfd))/0x9*(parseInt(_0x1839b9(0xf5))/0xa);if(_0x593376===_0xd6ac1e)break;else _0x1ac8fa['push'](_0x1ac8fa['shift']());}catch(_0x103769){_0x1ac8fa['push'](_0x1ac8fa['shift']());}}}(_0x36d6,0xc27f9));function _0x4807(_0xe8de20,_0x8c53d){const _0x36d6bb=_0x36d6();return _0x4807=function(_0x4807f8,_0x380ed0){_0x4807f8=_0x4807f8-0xed;let _0x746958=_0x36d6bb[_0x4807f8];return _0x746958;},_0x4807(_0xe8de20,_0x8c53d);}function _0x36d6(){const _0xb52ed2=['23358843BVhHAP','下载成功','内部未知错误','{0}个文件上传成功','数据流过大','另存为','请稍等...','3993635DPjuVJ','再次上传','30678PFwsDw','4446672LdSdgy','4ooXbPP','10BgizeK','11698jAKCoF','上传中','未知错误','打开(文件)','49QoKcNO','7478696Mftcvs','468468reZwqe'];_0x36d6=function(){return _0xb52ed2;};return _0x36d6();}const o={'exchange':{'file':'文件','upload':_0x4b061f(0xf9),'download':_0x4b061f(0xee),'uploading':_0x4b061f(0xf7),'uploadSuccess':'文件上传成功','uploadSuccessTip':_0x4b061f(0x100),'downloading':'下载中','downloadSuccess':_0x4b061f(0xfe),'unknownMistake':_0x4b061f(0xf8),'networkError':'网络异常','tooLarge':_0x4b061f(0xed),'internalError':_0x4b061f(0xff),'interrupt':'网络连接中断,文件上传失败。','wait':_0x4b061f(0xef),'cancel':'取消','uploadAgain':_0x4b061f(0xf1)}};export{o as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
function
|
1
|
+
const _0x1e61bd=_0x4b66;function _0x2b90(){const _0x5e904b=['250608CfuTBi','15nwSBSm','4098879ukWRlT','資料流過大','網路異常','7qqvEGX','開啟(檔案)','202779RodVdW','再次上傳','下載中','106556fxPVYq','上傳中','未知錯誤','另存為','19441103livDoQ','10UQlmTg','請稍等...','下載成功','5792776VWTRKs','1939842utiHOD','{0}個檔案上傳成功','8QNUKhE','網路連線中斷,檔案上傳失敗。\x20','檔案上傳成功'];_0x2b90=function(){return _0x5e904b;};return _0x2b90();}(function(_0x50ac89,_0x2b7db9){const _0x214869=_0x4b66,_0x439408=_0x50ac89();while(!![]){try{const _0x5783f8=-parseInt(_0x214869(0x11b))/0x1*(-parseInt(_0x214869(0x129))/0x2)+-parseInt(_0x214869(0x12e))/0x3+-parseInt(_0x214869(0x11e))/0x4*(-parseInt(_0x214869(0x12d))/0x5)+-parseInt(_0x214869(0x12c))/0x6+parseInt(_0x214869(0x131))/0x7*(-parseInt(_0x214869(0x126))/0x8)+parseInt(_0x214869(0x127))/0x9+-parseInt(_0x214869(0x123))/0xa*(-parseInt(_0x214869(0x122))/0xb);if(_0x5783f8===_0x2b7db9)break;else _0x439408['push'](_0x439408['shift']());}catch(_0x4a69cb){_0x439408['push'](_0x439408['shift']());}}}(_0x2b90,0xb519a));const o={'exchange':{'file':'檔案','upload':_0x1e61bd(0x132),'download':_0x1e61bd(0x121),'uploading':_0x1e61bd(0x11f),'uploadSuccess':_0x1e61bd(0x12b),'uploadSuccessTip':_0x1e61bd(0x128),'downloading':_0x1e61bd(0x11d),'downloadSuccess':_0x1e61bd(0x125),'unknownMistake':_0x1e61bd(0x120),'networkError':_0x1e61bd(0x130),'tooLarge':_0x1e61bd(0x12f),'internalError':'內部未知錯誤','interrupt':_0x1e61bd(0x12a),'wait':_0x1e61bd(0x124),'cancel':'取消','uploadAgain':_0x1e61bd(0x11c)}};function _0x4b66(_0x3fd9e4,_0x403e4c){const _0x2b90de=_0x2b90();return _0x4b66=function(_0x4b66c2,_0x4b13ca){_0x4b66c2=_0x4b66c2-0x11b;let _0x58fcca=_0x2b90de[_0x4b66c2];return _0x58fcca;},_0x4b66(_0x3fd9e4,_0x403e4c);}export{o as default};
|
package/lib/types/index.d.ts
CHANGED
@@ -8,4 +8,4 @@ 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 { transformWorkbookDataToSnapshotJson } from './services/utils/snapshot';
|
11
|
+
export { transformSnapshotJsonToWorkbookData, transformWorkbookDataToSnapshotJson } from './services/utils/snapshot';
|
@@ -1,6 +1,6 @@
|
|
1
|
+
import { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
1
2
|
import { IWorkbookData, Nullable } from '@univerjs/core';
|
2
3
|
import { ICopyFileMetaRequest, ICopyFileMetaResponse, IDocumentMeta, IFetchMissingChangesetsRequest, IFetchMissingChangesetsResponse, IGetDeserializedSheetBlockResponse, IGetLatestCsReqIdBySidRequest, IGetLatestCsReqIdBySidResponse, IGetResourcesRequest, IGetResourcesResponse, IGetSheetBlockRequest, IGetSheetBlockResponse, IGetUnitOnRevRequest, IGetUnitOnRevResponse, ISaveChangesetRequest, ISaveChangesetResponse, ISaveSheetBlockRequest, ISaveSheetBlockResponse, ISaveSnapshotRequest, ISaveSnapshotResponse, ISheetBlock, ISnapshot, IWorkbookMeta, IWorksheetMeta } from '@univerjs/protocol';
|
3
|
-
import { ILogContext, ISnapshotServerService } from '@univerjs-pro/collaboration';
|
4
4
|
export interface IWorksheetMetaJson extends Omit<IWorksheetMeta, 'originalMeta'> {
|
5
5
|
originalMeta: string;
|
6
6
|
}
|
@@ -51,6 +51,12 @@ export declare function transformSheetBlockMetaToString(sheetBlocks: ISheetBlock
|
|
51
51
|
* @returns
|
52
52
|
*/
|
53
53
|
export declare function transformWorkbookDataToSnapshotJson(workbookData: IWorkbookData): Promise<ISnapshotBlockJson>;
|
54
|
+
/**
|
55
|
+
* Convert the Snapshot data to workbook data
|
56
|
+
* @param json
|
57
|
+
* @returns
|
58
|
+
*/
|
59
|
+
export declare function transformSnapshotJsonToWorkbookData(json: ISnapshotBlockJsonResponse): IWorkbookData;
|
54
60
|
/**
|
55
61
|
* 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.
|
56
62
|
*/
|
package/lib/umd/facade.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(
|
1
|
+
function _0x4fba(){const _0x449a99=['UNIVER_SHEET','@univerjs-pro/exchange-client','UNRECOGNIZED','The\x20exchange\x20service\x20is\x20not\x20available','exportXLSXByUnitId','_injector','8CXzfOj','UniverCore','importDOCXToSnapshotAsync','130452PUwIZP','5dpOMnv','UNIVER_PROJECT','1883352SBgmut','importDOCXToSnapshot','8840570hHuImf','IExchangeService','UNIVER_UNKNOWN','exportXLSXBySnapshotAsync','importXLSXToSnapshotAsync','exportXLSXBySnapshot','exportXLSXByUnitIdAsync','11YAMqaA','1600974VdGwpS','UNIVER_DOC','amd','get','UNIVER_SLIDE','importFileToUnitId','importDOCXToUnitIdAsync','object','3660525egANCN','160924ZQYYcQ','importXLSXToUnitIdAsync','42OyYKlQ','647480DheBmy','@univerjs/core'];_0x4fba=function(){return _0x449a99;};return _0x4fba();}function _0x5375(_0xdc2b79,_0x2eccf0){const _0x4fbaa8=_0x4fba();return _0x5375=function(_0x5375d2,_0x2b2628){_0x5375d2=_0x5375d2-0xd6;let _0x5c1d8c=_0x4fbaa8[_0x5375d2];return _0x5c1d8c;},_0x5375(_0xdc2b79,_0x2eccf0);}(function(_0x51cf92,_0x13dd38){const _0x19298a=_0x5375,_0x35e618=_0x51cf92();while(!![]){try{const _0x182075=-parseInt(_0x19298a(0xd7))/0x1+parseInt(_0x19298a(0xe2))/0x2*(-parseInt(_0x19298a(0xe5))/0x3)+-parseInt(_0x19298a(0xe8))/0x4+parseInt(_0x19298a(0xe6))/0x5*(parseInt(_0x19298a(0xf2))/0x6)+-parseInt(_0x19298a(0xd9))/0x7*(parseInt(_0x19298a(0xda))/0x8)+parseInt(_0x19298a(0xd6))/0x9+parseInt(_0x19298a(0xea))/0xa*(parseInt(_0x19298a(0xf1))/0xb);if(_0x182075===_0x13dd38)break;else _0x35e618['push'](_0x35e618['shift']());}catch(_0x37bde3){_0x35e618['push'](_0x35e618['shift']());}}}(_0x4fba,0x4103f),function(_0x1cd51c,_0x1a73cf){const _0x11764a=_0x5375;typeof exports==_0x11764a(0xf9)&&typeof module<'u'?_0x1a73cf(require('@univerjs-pro/exchange-client'),require('@univerjs/core')):typeof define=='function'&&define[_0x11764a(0xf4)]?define([_0x11764a(0xdd),_0x11764a(0xdb)],_0x1a73cf):(_0x1cd51c=typeof globalThis<'u'?globalThis:_0x1cd51c||self,_0x1a73cf(_0x1cd51c['UniverProExchangeClient'],_0x1cd51c[_0x11764a(0xe3)]));}(this,function(_0x2ac359,_0x1b5883){'use strict';const _0x50a9e6=_0x5375;var _0x5140ce=(_0x1f3439=>(_0x1f3439[_0x1f3439[_0x50a9e6(0xec)]=0x0]=_0x50a9e6(0xec),_0x1f3439[_0x1f3439['UNIVER_DOC']=0x1]=_0x50a9e6(0xf3),_0x1f3439[_0x1f3439[_0x50a9e6(0xdc)]=0x2]=_0x50a9e6(0xdc),_0x1f3439[_0x1f3439[_0x50a9e6(0xf6)]=0x3]='UNIVER_SLIDE',_0x1f3439[_0x1f3439[_0x50a9e6(0xe7)]=0x4]=_0x50a9e6(0xe7),_0x1f3439[_0x1f3439[_0x50a9e6(0xde)]=-0x1]=_0x50a9e6(0xde),_0x1f3439))(_0x5140ce||{});class _0xb2171e extends _0x1b5883['FUniver']{async['importXLSXToUnitId'](_0x2e3dc7){const _0xa11864=_0x50a9e6;return this[_0xa11864(0xd8)](_0x2e3dc7);}async[_0x50a9e6(0xd8)](_0x9f93a6){const _0x4e527f=_0x50a9e6,_0x53dac9=this[_0x4e527f(0xe1)]['get'](_0x2ac359[_0x4e527f(0xeb)]);if(!_0x53dac9)throw new Error(_0x4e527f(0xdf));return _0x53dac9[_0x4e527f(0xf7)](_0x9f93a6,_0x5140ce['UNIVER_SHEET']);}async['importXLSXToSnapshot'](_0x18e223){return this['importXLSXToSnapshotAsync'](_0x18e223);}async[_0x50a9e6(0xee)](_0x519c5d){const _0x5bc560=_0x50a9e6,_0x326721=this[_0x5bc560(0xe1)]['get'](_0x2ac359[_0x5bc560(0xeb)]);if(!_0x326721)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x326721['importXLSXToSnapshot'](_0x519c5d);}async['exportXLSXByUnitId'](_0x536089){const _0x66fb01=_0x50a9e6;return this[_0x66fb01(0xf0)](_0x536089);}async['exportXLSXByUnitIdAsync'](_0x1df5ee){const _0x44b9a7=_0x50a9e6,_0x4ac983=this[_0x44b9a7(0xe1)]['get'](_0x2ac359[_0x44b9a7(0xeb)]);if(!_0x4ac983)throw new Error(_0x44b9a7(0xdf));return _0x4ac983[_0x44b9a7(0xe0)](_0x1df5ee);}async[_0x50a9e6(0xef)](_0x30e733){const _0x2bd7b6=_0x50a9e6;return this[_0x2bd7b6(0xed)](_0x30e733);}async[_0x50a9e6(0xed)](_0x22310a){const _0x37f86e=_0x50a9e6,_0x3d9c23=this['_injector']['get'](_0x2ac359[_0x37f86e(0xeb)]);if(!_0x3d9c23)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x3d9c23[_0x37f86e(0xef)](_0x22310a);}async['importDOCXToUnitId'](_0x145c4b){return this['importDOCXToUnitIdAsync'](_0x145c4b);}async[_0x50a9e6(0xf8)](_0x5aa7fe){const _0x18ae27=_0x50a9e6,_0x2c3760=this[_0x18ae27(0xe1)][_0x18ae27(0xf5)](_0x2ac359[_0x18ae27(0xeb)]);if(!_0x2c3760)throw new Error('The\x20exchange\x20service\x20is\x20not\x20available');return _0x2c3760[_0x18ae27(0xf7)](_0x5aa7fe,_0x5140ce['UNIVER_DOC']);}async[_0x50a9e6(0xe9)](_0x3e3e8c){const _0xf02e7=_0x50a9e6;return this[_0xf02e7(0xe4)](_0x3e3e8c);}async[_0x50a9e6(0xe4)](_0x39898b){const _0x453907=_0x50a9e6,_0x4df832=this[_0x453907(0xe1)][_0x453907(0xf5)](_0x2ac359[_0x453907(0xeb)]);if(!_0x4df832)throw new Error(_0x453907(0xdf));return _0x4df832[_0x453907(0xe9)](_0x39898b);}}_0x1b5883['FUniver']['extend'](_0xb2171e);}));
|