@silurus/ooxml 0.61.0 → 0.62.0
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/README.md +1 -0
- package/dist/{docx-DcHz7cyz.js → docx-T14vhkTM.js} +1 -1
- package/dist/docx.mjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/pptx-D26eLmSN.js +1894 -0
- package/dist/pptx.mjs +2 -2
- package/dist/render-worker-host-5ujZbyy-.js +27 -0
- package/dist/render-worker-host-hySSiyes.js +27 -0
- package/dist/{src-CWqt1QE0.js → src-D377dlK7.js} +576 -525
- package/dist/types/index.d.ts +79 -0
- package/dist/types/pptx.d.ts +60 -0
- package/dist/types/xlsx.d.ts +19 -0
- package/dist/xlsx-CCGJYt-x.js +3915 -0
- package/dist/xlsx.mjs +2 -2
- package/package.json +1 -1
- package/dist/pptx-XdCbndbT.js +0 -1852
- package/dist/render-worker-host-CI4BVZcT.js +0 -27
- package/dist/render-worker-host-CZI8tWId.js +0 -27
- package/dist/xlsx-B8GnK1Ad.js +0 -3904
package/README.md
CHANGED
|
@@ -567,6 +567,7 @@ export const PptxViewerComponent = component$<{ src: string }>(({ src }) => {
|
|
|
567
567
|
| | Per-run underline colour (`uFill` / `uFillTx`) | ✅ |
|
|
568
568
|
| | Font family, size, color | ✅ |
|
|
569
569
|
| | East Asian font (`rPr > a:ea` — separate typeface for CJK glyphs) | ✅ |
|
|
570
|
+
| | Symbol font runs (`a:sym` — e.g. Wingdings / Webdings glyphs) | ✅ |
|
|
570
571
|
| | Caps transform (`all` / `small`) | ✅ |
|
|
571
572
|
| | Letter spacing (`spc`) | ✅ |
|
|
572
573
|
| | Superscript / subscript | ✅ |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, C as t, D as n, E as r, F as i, H as a, I as o, L as s, N as c, O as l, R as u, S as d, T as f, U as p, V as m, a as h, i as g, n as _, o as v, r as y, t as b, w as x, z as S } from "./src-
|
|
1
|
+
import { B as e, C as t, D as n, E as r, F as i, H as a, I as o, L as s, N as c, O as l, R as u, S as d, T as f, U as p, V as m, a as h, i as g, n as _, o as v, r as y, t as b, w as x, z as S } from "./src-D377dlK7.js";
|
|
2
2
|
import { t as C } from "./mathjax-CNh-4Cw1.js";
|
|
3
3
|
//#region packages/docx/src/worker.ts?worker&inline
|
|
4
4
|
var w = "function e(e,t){let n,r;try{let a=c(e,h.__wbindgen_malloc),o=m,l=h.parse_docx(a,o,!s(t),s(t)?BigInt(0):t);return n=l[0],r=l[1],i(l[0],l[1])}finally{h.__wbindgen_free(n,r,1)}}function t(){return{__proto__:null,\"./docx_parser_bg.js\":{__proto__:null,__wbg_error_a6fa202b58aa1cd3:function(e,t){let n,r;try{n=e,r=t,console.error(i(e,t))}finally{h.__wbindgen_free(n,r,1)}},__wbg_new_227d7c05414eb861:function(){return Error()},__wbg_stack_3b0d974bbf31e44f:function(e,t){let n=t.stack,i=l(n,h.__wbindgen_malloc,h.__wbindgen_realloc),a=m;r().setInt32(e+4,a,!0),r().setInt32(e+0,i,!0)},__wbindgen_cast_0000000000000001:function(e,t){return i(e,t)},__wbindgen_init_externref_table:function(){let e=h.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}let n=null;function r(){return(n===null||n.buffer.detached===!0||n.buffer.detached===void 0&&n.buffer!==h.memory.buffer)&&(n=new DataView(h.memory.buffer)),n}function i(e,t){return e>>>=0,f(e,t)}let a=null;function o(){return(a===null||a.byteLength===0)&&(a=new Uint8Array(h.memory.buffer)),a}function s(e){return e==null}function c(e,t){let n=t(e.length*1,1)>>>0;return o().set(e,n/1),m=e.length,n}function l(e,t,n){if(n===void 0){let n=p.encode(e),r=t(n.length,1)>>>0;return o().subarray(r,r+n.length).set(n),m=n.length,r}let r=e.length,i=t(r,1)>>>0,a=o(),s=0;for(;s<r;s++){let t=e.charCodeAt(s);if(t>127)break;a[i+s]=t}if(s!==r){s!==0&&(e=e.slice(s)),i=n(i,r,r=s+e.length*3,1)>>>0;let t=o().subarray(i+s,i+r),a=p.encodeInto(e,t);s+=a.written,i=n(i,r,s,1)>>>0}return m=s,i}let u=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0});u.decode();let d=0;function f(e,t){return d+=t,d>=2146435072&&(u=new TextDecoder(`utf-8`,{ignoreBOM:!0,fatal:!0}),u.decode(),d=t),u.decode(o().subarray(e,e+t))}const p=new TextEncoder;`encodeInto`in p||(p.encodeInto=function(e,t){let n=p.encode(e);return t.set(n),{read:e.length,written:n.length}});let m=0,h;function g(e,t){return h=e.exports,n=null,a=null,h.__wbindgen_start(),h}async function _(e,t){if(typeof Response==`function`&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming==`function`)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&n(e.type)&&e.headers.get(`Content-Type`)!==`application/wasm`)console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\",t);else throw t}let r=await e.arrayBuffer();return await WebAssembly.instantiate(r,t)}else{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}function n(e){switch(e){case`basic`:case`cors`:case`default`:return!0}return!1}}async function v(e){if(h!==void 0)return h;e!==void 0&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn(`using deprecated parameters for the initialization function; pass a single object instead`));let n=t();(typeof e==`string`||typeof Request==`function`&&e instanceof Request||typeof URL==`function`&&e instanceof URL)&&(e=fetch(e));let{instance:r,module:i}=await _(await e,n);return g(r,i)}const y=e=>`https://fonts.googleapis.com/css2?family=${e}:wght@400;700&display=swap`;y(`Noto+Sans+KR`),y(`Noto+Sans+SC`),y(`Noto+Sans+TC`),y(`Noto+Sans+JP`),y(`Noto+Serif+KR`),y(`Noto+Serif+SC`),y(`Noto+Serif+TC`),y(`Noto+Serif+JP`),y(`Noto+Sans`),y(`Noto+Serif`),y(`Noto+Sans+Devanagari`),y(`Noto+Sans+Thai`),y(`Noto+Sans+Hebrew`),y(`Noto+Serif+Hebrew`),Math.PI*2/216e5,Math.PI*2/216e5,35*Math.PI/180,12*Math.PI/180;function b(e){if(!e.startsWith(`data:`))return null;let t=e.indexOf(`,`);if(t===-1)return null;let n=atob(e.slice(t+1)),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r.buffer}const x=[40,41,41,40,60,62,62,60,91,93,93,91,123,125,125,123,171,187,187,171,3898,3899,3899,3898,3900,3901,3901,3900,5787,5788,5788,5787,8249,8250,8250,8249,8261,8262,8262,8261,8317,8318,8318,8317,8333,8334,8334,8333,8712,8715,8713,8716,8714,8717,8715,8712,8716,8713,8717,8714,8725,10741,8735,11262,8736,10659,8737,10651,8738,10656,8740,10990,8764,8765,8765,8764,8771,8909,8773,8780,8780,8773,8786,8787,8787,8786,8788,8789,8789,8788,8804,8805,8805,8804,8806,8807,8807,8806,8808,8809,8809,8808,8810,8811,8811,8810,8814,8815,8815,8814,8816,8817,8817,8816,8818,8819,8819,8818,8820,8821,8821,8820,8822,8823,8823,8822,8824,8825,8825,8824,8826,8827,8827,8826,8828,8829,8829,8828,8830,8831,8831,8830,8832,8833,8833,8832,8834,8835,8835,8834,8836,8837,8837,8836,8838,8839,8839,8838,8840,8841,8841,8840,8842,8843,8843,8842,8847,8848,8848,8847,8849,8850,8850,8849,8856,10680,8866,8867,8867,8866,8870,10974,8872,10980,8873,10979,8875,10981,8880,8881,8881,8880,8882,8883,8883,8882,8884,8885,8885,8884,8886,8887,8887,8886,8888,10204,8905,8906,8906,8905,8907,8908,8908,8907,8909,8771,8912,8913,8913,8912,8918,8919,8919,8918,8920,8921,8921,8920,8922,8923,8923,8922,8924,8925,8925,8924,8926,8927,8927,8926,8928,8929,8929,8928,8930,8931,8931,8930,8932,8933,8933,8932,8934,8935,8935,8934,8936,8937,8937,8936,8938,8939,8939,8938,8940,8941,8941,8940,8944,8945,8945,8944,8946,8954,8947,8955,8948,8956,8950,8957,8951,8958,8954,8946,8955,8947,8956,8948,8957,8950,8958,8951,8968,8969,8969,8968,8970,8971,8971,8970,9001,9002,9002,9001,10088,10089,10089,10088,10090,10091,10091,10090,10092,10093,10093,10092,10094,10095,10095,10094,10096,10097,10097,10096,10098,10099,10099,10098,10100,10101,10101,10100,10179,10180,10180,10179,10181,10182,10182,10181,10184,10185,10185,10184,10187,10189,10189,10187,10197,10198,10198,10197,10204,8888,10205,10206,10206,10205,10210,10211,10211,10210,10212,10213,10213,10212,10214,10215,10215,10214,10216,10217,10217,10216,10218,10219,10219,10218,10220,10221,10221,10220,10222,10223,10223,10222,10627,10628,10628,10627,10629,10630,10630,10629,10631,10632,10632,10631,10633,10634,10634,10633,10635,10636,10636,10635,10637,10640,10638,10639,10639,10638,10640,10637,10641,10642,10642,10641,10643,10644,10644,10643,10645,10646,10646,10645,10647,10648,10648,10647,10651,8737,10656,8738,10659,8736,10660,10661,10661,10660,10664,10665,10665,10664,10666,10667,10667,10666,10668,10669,10669,10668,10670,10671,10671,10670,10680,8856,10688,10689,10689,10688,10692,10693,10693,10692,10703,10704,10704,10703,10705,10706,10706,10705,10708,10709,10709,10708,10712,10713,10713,10712,10714,10715,10715,10714,10728,10729,10729,10728,10741,8725,10744,10745,10745,10744,10748,10749,10749,10748,10795,10796,10796,10795,10797,10798,10798,10797,10804,10805,10805,10804,10812,10813,10813,10812,10852,10853,10853,10852,10873,10874,10874,10873,10875,10876,10876,10875,10877,10878,10878,10877,10879,10880,10880,10879,10881,10882,10882,10881,10883,10884,10884,10883,10885,10886,10886,10885,10887,10888,10888,10887,10889,10890,10890,10889,10891,10892,10892,10891,10893,10894,10894,10893,10895,10896,10896,10895,10897,10898,10898,10897,10899,10900,10900,10899,10901,10902,10902,10901,10903,10904,10904,10903,10905,10906,10906,10905,10907,10908,10908,10907,10909,10910,10910,10909,10911,10912,10912,10911,10913,10914,10914,10913,10918,10919,10919,10918,10920,10921,10921,10920,10922,10923,10923,10922,10924,10925,10925,10924,10927,10928,10928,10927,10929,10930,10930,10929,10931,10932,10932,10931,10933,10934,10934,10933,10935,10936,10936,10935,10937,10938,10938,10937,10939,10940,10940,10939,10941,10942,10942,10941,10943,10944,10944,10943,10945,10946,10946,10945,10947,10948,10948,10947,10949,10950,10950,10949,10951,10952,10952,10951,10953,10954,10954,10953,10955,10956,10956,10955,10957,10958,10958,10957,10959,10960,10960,10959,10961,10962,10962,10961,10963,10964,10964,10963,10965,10966,10966,10965,10974,8870,10979,8873,10980,8872,10981,8875,10988,10989,10989,10988,10990,8740,10999,11e3,11e3,10999,11001,11002,11002,11001,11262,8735,11778,11779,11779,11778,11780,11781,11781,11780,11785,11786,11786,11785,11788,11789,11789,11788,11804,11805,11805,11804,11808,11809,11809,11808,11810,11811,11811,11810,11812,11813,11813,11812,11814,11815,11815,11814,11816,11817,11817,11816,11861,11862,11862,11861,11863,11864,11864,11863,11865,11866,11866,11865,11867,11868,11868,11867,12296,12297,12297,12296,12298,12299,12299,12298,12300,12301,12301,12300,12302,12303,12303,12302,12304,12305,12305,12304,12308,12309,12309,12308,12310,12311,12311,12310,12312,12313,12313,12312,12314,12315,12315,12314,65113,65114,65114,65113,65115,65116,65116,65115,65117,65118,65118,65117,65124,65125,65125,65124,65288,65289,65289,65288,65308,65310,65310,65308,65339,65341,65341,65339,65371,65373,65373,65371,65375,65376,65376,65375,65378,65379,65379,65378],S=[40,41,0,41,40,1,91,93,0,93,91,1,123,125,0,125,123,1,3898,3899,0,3899,3898,1,3900,3901,0,3901,3900,1,5787,5788,0,5788,5787,1,8261,8262,0,8262,8261,1,8317,8318,0,8318,8317,1,8333,8334,0,8334,8333,1,8968,8969,0,8969,8968,1,8970,8971,0,8971,8970,1,9001,9002,0,9002,9001,1,10088,10089,0,10089,10088,1,10090,10091,0,10091,10090,1,10092,10093,0,10093,10092,1,10094,10095,0,10095,10094,1,10096,10097,0,10097,10096,1,10098,10099,0,10099,10098,1,10100,10101,0,10101,10100,1,10181,10182,0,10182,10181,1,10214,10215,0,10215,10214,1,10216,10217,0,10217,10216,1,10218,10219,0,10219,10218,1,10220,10221,0,10221,10220,1,10222,10223,0,10223,10222,1,10627,10628,0,10628,10627,1,10629,10630,0,10630,10629,1,10631,10632,0,10632,10631,1,10633,10634,0,10634,10633,1,10635,10636,0,10636,10635,1,10637,10640,0,10638,10639,1,10639,10638,0,10640,10637,1,10641,10642,0,10642,10641,1,10643,10644,0,10644,10643,1,10645,10646,0,10646,10645,1,10647,10648,0,10648,10647,1,10712,10713,0,10713,10712,1,10714,10715,0,10715,10714,1,10748,10749,0,10749,10748,1,11810,11811,0,11811,11810,1,11812,11813,0,11813,11812,1,11814,11815,0,11815,11814,1,11816,11817,0,11817,11816,1,11861,11862,0,11862,11861,1,11863,11864,0,11864,11863,1,11865,11866,0,11866,11865,1,11867,11868,0,11868,11867,1,12296,12297,0,12297,12296,1,12298,12299,0,12299,12298,1,12300,12301,0,12301,12300,1,12302,12303,0,12303,12302,1,12304,12305,0,12305,12304,1,12308,12309,0,12309,12308,1,12310,12311,0,12311,12310,1,12312,12313,0,12313,12312,1,12314,12315,0,12315,12314,1,65113,65114,0,65114,65113,1,65115,65116,0,65116,65115,1,65117,65118,0,65118,65117,1,65288,65289,0,65289,65288,1,65339,65341,0,65341,65339,1,65371,65373,0,65373,65371,1,65375,65376,0,65376,65375,1,65378,65379,0,65379,65378,1];(()=>{let e=new Map;for(let t=0;t<x.length;t+=2)e.set(x[t],x[t+1]);return e})(),(()=>{let e=new Map;for(let t=0;t<S.length;t+=3)e.set(S[t],{pair:S[t+1],type:S[t+2]===0?`o`:`c`});return e})();let C=null;self.onmessage=async t=>{let n=t.data;if(n.type===`init`){C=v(b(n.wasmUrl)??n.wasmUrl);return}let r=n.id;try{if(await C,n.type===`parse`){let t=typeof n.maxZipEntryBytes==`number`&&n.maxZipEntryBytes>0?BigInt(n.maxZipEntryBytes):void 0,i=e(new Uint8Array(n.data),t),a=JSON.parse(i);if(a.error)throw Error(`Parse error: ${a.error}`);let o={type:`parsed`,id:r,document:a};self.postMessage(o)}}catch(e){let t={type:`error`,id:r,message:String(e)};self.postMessage(t)}};", T = typeof self < "u" && self.Blob && new Blob(["URL.revokeObjectURL(import.meta.url);", w], { type: "text/javascript;charset=utf-8" });
|
package/dist/docx.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { O as e } from "./src-
|
|
2
|
-
import { i as t, n, r } from "./docx-
|
|
1
|
+
import { O as e } from "./src-D377dlK7.js";
|
|
2
|
+
import { i as t, n, r } from "./docx-T14vhkTM.js";
|
|
3
3
|
export { t as DocxDocument, r as DocxViewer, e as autoResize, n as noteText };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./pptx-
|
|
2
|
-
import { t } from "./xlsx-
|
|
3
|
-
import { t as n } from "./docx-
|
|
1
|
+
import { t as e } from "./pptx-D26eLmSN.js";
|
|
2
|
+
import { t } from "./xlsx-CCGJYt-x.js";
|
|
3
|
+
import { t as n } from "./docx-T14vhkTM.js";
|
|
4
4
|
export { n as docx, e as pptx, t as xlsx };
|