@betteroffice/docx 0.0.2 → 0.0.3
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/dist/chunk-GGEGIQRK.mjs +1 -0
- package/dist/chunk-J7LNO6SM.mjs +1 -0
- package/dist/chunk-WON6K4FY.mjs +1 -0
- package/dist/chunk-Y7RUNRU2.mjs +1 -0
- package/dist/collaboration/index.d.mts +5 -4
- package/dist/core.d.mts +3 -3
- package/dist/{displayListQueries-UGc_XBUv.d.mts → displayListQueries-BJlo7Jkz.d.mts} +24 -6
- package/dist/docx/index.d.mts +1 -1
- package/dist/editor/index.d.mts +5 -4
- package/dist/{rustDisplayList-CX78djsZ.d.mts → frameDelta-D965X8yK.d.mts} +2 -273
- package/dist/generated/edit/docx_edit_bg.wasm +0 -0
- package/dist/generated/layout/docx_layout_bg.wasm +0 -0
- package/dist/generated/parse/docx_parse_bg.wasm +0 -0
- package/dist/{index-Bwxm3oiC.d.mts → index-Dx4Z3lkz.d.mts} +83 -7
- package/dist/layout/index.d.mts +5 -4
- package/dist/layout/index.mjs +1 -1
- package/dist/layout/pagination/index.d.mts +3 -3
- package/dist/layout/render/index.d.mts +8 -7
- package/dist/layout/render/index.mjs +1 -1
- package/dist/plugin-api/RenderedDomContext.d.mts +5 -4
- package/dist/plugin-api/index.d.mts +1 -1
- package/dist/plugin-api/resolveItemPositions.d.mts +1 -1
- package/dist/rustDisplayList-BRuZBqdL.d.mts +278 -0
- package/dist/types/content.d.mts +1 -1
- package/dist/types/document.d.mts +2 -2
- package/dist/{types-DMkDbvEu.d.mts → types-BfqUl2h_.d.mts} +1 -1
- package/dist/utils/comments.d.mts +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/wasm-DO3BUV7C.mjs +1 -0
- package/dist/wasm-NWXX4H5G.mjs +1 -0
- package/dist/wasm-edit.d.mts +1 -0
- package/dist/wasm-edit.mjs +1 -1
- package/dist/wasm-layout.d.mts +10 -1
- package/dist/wasm-layout.mjs +1 -1
- package/dist/yrs/index.d.mts +4 -3
- package/dist/yrs/index.mjs +1 -1
- package/dist/yrs/residentEngineWorker.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-6NEKRDXF.mjs +0 -1
- package/dist/chunk-CIRN3LZA.mjs +0 -1
- package/dist/chunk-NTQM4EYN.mjs +0 -1
- package/dist/wasm-BGQBTR2J.mjs +0 -1
- package/dist/wasm-SA237OSP.mjs +0 -1
- package/dist/{content-DLFHRQav.d.mts → content-MOZ6hKP4.d.mts} +349 -349
package/dist/chunk-NTQM4EYN.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-T4EZMUXM.mjs';var I=class{__destroy_into_raw(){let _=this.__wbg_ptr;return this.__wbg_ptr=0,q.unregister(this),_}free(){let _=this.__destroy_into_raw();e.__wbg_editsession_free(_,0);}accept_change(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_accept_change(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}add_comment(_,r,o,n){let t,i;try{let w=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),p=c,m=a(o,e.__wbindgen_malloc,e.__wbindgen_realloc),y=c,h=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),x=c,v=e.editsession_add_comment(this.__wbg_ptr,w,f,g,p,m,y,h,x);var l=v[0],s=v[1];if(v[3])throw l=0,s=0,b(v[2]);return t=l,i=s,u(l,s)}finally{e.__wbindgen_free(t,i,1);}}apply_delete(_,r){let o=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),n=c,t=e.editsession_apply_delete(this.__wbg_ptr,o,n,r);if(t[3])throw b(t[2]);var i=S(t[0],t[1]).slice();return e.__wbindgen_free(t[0],t[1]*1,1),i}apply_delete_profiled(_,r){let o=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),n=c,t=e.editsession_apply_delete_profiled(this.__wbg_ptr,o,n,r);if(t[3])throw b(t[2]);var i=S(t[0],t[1]).slice();return e.__wbindgen_free(t[0],t[1]*1,1),i}apply_input(_,r){let o=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),n=c,t=e.editsession_apply_input(this.__wbg_ptr,o,n,r);if(t[3])throw b(t[2]);var i=S(t[0],t[1]).slice();return e.__wbindgen_free(t[0],t[1]*1,1),i}apply_input_profile_json(){let _,r;try{let o=e.editsession_apply_input_profile_json(this.__wbg_ptr);return _=o[0],r=o[1],u(o[0],o[1])}finally{e.__wbindgen_free(_,r,1);}}apply_input_profiled(_,r){let o=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),n=c,t=e.editsession_apply_input_profiled(this.__wbg_ptr,o,n,r);if(t[3])throw b(t[2]);var i=S(t[0],t[1]).slice();return e.__wbindgen_free(t[0],t[1]*1,1),i}apply_local_update(_){let r=F(_,e.__wbindgen_malloc),o=c,n=e.editsession_apply_local_update(this.__wbg_ptr,r,o);if(n[1])throw b(n[0])}apply_paragraph_style(_,r,o,n,t,i,l,s){let w=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),p=c,m=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),y=c,h=a(i,e.__wbindgen_malloc,e.__wbindgen_realloc),x=c;var v=j(l)?0:a(l,e.__wbindgen_malloc,e.__wbindgen_realloc),E=c,W=j(s)?0:a(s,e.__wbindgen_malloc,e.__wbindgen_realloc),k=c;let A=e.editsession_apply_paragraph_style(this.__wbg_ptr,w,f,g,p,o,m,y,t,h,x,v,E,W,k);if(A[1])throw b(A[0])}apply_raw_ops(_,r){let o=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),n=c,t=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),i=c,l=e.editsession_apply_raw_ops(this.__wbg_ptr,o,n,t,i);if(l[1])throw b(l[0])}apply_update(_){let r=F(_,e.__wbindgen_malloc),o=c,n=e.editsession_apply_update(this.__wbg_ptr,r,o);if(n[1])throw b(n[0])}build_display_list_frame(_,r){let o=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),n=c,t=e.editsession_build_display_list_frame(this.__wbg_ptr,o,n,r);if(t[3])throw b(t[2]);var i=S(t[0],t[1]).slice();return e.__wbindgen_free(t[0],t[1]*1,1),i}build_display_list_json(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_build_display_list_json(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}can_redo(){return e.editsession_can_redo(this.__wbg_ptr)!==0}can_undo(){return e.editsession_can_undo(this.__wbg_ptr)!==0}cell_selection(){let _,r;try{let t=e.editsession_cell_selection(this.__wbg_ptr);var o=t[0],n=t[1];if(t[3])throw o=0,n=0,b(t[2]);return _=o,r=n,u(o,n)}finally{e.__wbindgen_free(_,r,1);}}clear_content_control_value(_){let r=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),o=c,n=e.editsession_clear_content_control_value(this.__wbg_ptr,r,o);if(n[1])throw b(n[0])}clear_formatting(_,r,o,n,t){let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),w=c,f=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),g=c,p=e.editsession_clear_formatting(this.__wbg_ptr,i,l,s,w,o,f,g,t);if(p[1])throw b(p[0])}clear_measure_fonts(){e.editsession_clear_measure_fonts(this.__wbg_ptr);}clear_update_event_observation(){e.editsession_clear_update_event_observation(this.__wbg_ptr);}clear_update_observer(){e.editsession_clear_update_observer(this.__wbg_ptr);}client_id(){return e.editsession_client_id(this.__wbg_ptr)}create_story(_,r,o,n){let t,i;try{let w=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),p=c,m=a(o,e.__wbindgen_malloc,e.__wbindgen_realloc),y=c,h=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),x=c,v=e.editsession_create_story(this.__wbg_ptr,w,f,g,p,m,y,h,x);var l=v[0],s=v[1];if(v[3])throw l=0,s=0,b(v[2]);return t=l,i=s,u(l,s)}finally{e.__wbindgen_free(t,i,1);}}delete_column(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_delete_column(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}delete_range(_,r,o,n,t,i,l){let s,w;try{let x=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),v=c,E=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),W=c,k=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),A=c;var f=j(i)?0:a(i,e.__wbindgen_malloc,e.__wbindgen_realloc),g=c,p=j(l)?0:a(l,e.__wbindgen_malloc,e.__wbindgen_realloc),m=c;let T=e.editsession_delete_range(this.__wbg_ptr,x,v,E,W,o,k,A,t,f,g,p,m);var y=T[0],h=T[1];if(T[3])throw y=0,h=0,b(T[2]);return s=y,w=h,u(y,h)}finally{e.__wbindgen_free(s,w,1);}}delete_row(_,r,o){let n,t;try{let p=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),m=c;var i=j(r)?0:a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=j(o)?0:a(o,e.__wbindgen_malloc,e.__wbindgen_realloc),w=c;let y=e.editsession_delete_row(this.__wbg_ptr,p,m,i,l,s,w);var f=y[0],g=y[1];if(y[3])throw f=0,g=0,b(y[2]);return n=f,t=g,u(f,g)}finally{e.__wbindgen_free(n,t,1);}}delete_story(_){let r=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),o=c,n=e.editsession_delete_story(this.__wbg_ptr,r,o);if(n[1])throw b(n[0])}delete_table(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_delete_table(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}display_hit_test_regions_json(_,r,o){let n,t;try{let s=e.editsession_display_hit_test_regions_json(this.__wbg_ptr,_,r,o);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,b(s[2]);return n=i,t=l,u(i,l)}finally{e.__wbindgen_free(n,t,1);}}display_range_rects_json(_,r){let o,n;try{let l=e.editsession_display_range_rects_json(this.__wbg_ptr,_,r);var t=l[0],i=l[1];if(l[3])throw t=0,i=0,b(l[2]);return o=t,n=i,u(t,i)}finally{e.__wbindgen_free(o,n,1);}}display_range_rects_region_json(_,r,o,n){let t,i;try{let w=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),p=c,m=e.editsession_display_range_rects_region_json(this.__wbg_ptr,w,f,g,p,o,n);var l=m[0],s=m[1];if(m[3])throw l=0,s=0,b(m[2]);return t=l,i=s,u(l,s)}finally{e.__wbindgen_free(t,i,1);}}drain_update_event(){let _=e.editsession_drain_update_event(this.__wbg_ptr);var r=S(_[0],_[1]).slice();return e.__wbindgen_free(_[0],_[1]*1,1),r}encode_diff(_){let r=F(_,e.__wbindgen_malloc),o=c,n=e.editsession_encode_diff(this.__wbg_ptr,r,o);if(n[3])throw b(n[2]);var t=S(n[0],n[1]).slice();return e.__wbindgen_free(n[0],n[1]*1,1),t}encode_state(){let _=e.editsession_encode_state(this.__wbg_ptr);var r=S(_[0],_[1]).slice();return e.__wbindgen_free(_[0],_[1]*1,1),r}encode_state_vector(){let _=e.editsession_encode_state_vector(this.__wbg_ptr);var r=S(_[0],_[1]).slice();return e.__wbindgen_free(_[0],_[1]*1,1),r}format_range(_,r,o,n,t,i){let l=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),p=c,m=a(i,e.__wbindgen_malloc,e.__wbindgen_realloc),y=c,h=e.editsession_format_range(this.__wbg_ptr,l,s,w,f,o,g,p,t,m,y);if(h[1])throw b(h[0])}insert_column(_,r){let o,n;try{let l=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=e.editsession_insert_column(this.__wbg_ptr,l,s,r);var t=w[0],i=w[1];if(w[3])throw t=0,i=0,b(w[2]);return o=t,n=i,u(t,i)}finally{e.__wbindgen_free(o,n,1);}}insert_image(_,r,o,n,t,i){let l,s;try{let h=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),x=c,v=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),E=c,W=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),k=c;var w=j(t)?0:a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=j(i)?0:a(i,e.__wbindgen_malloc,e.__wbindgen_realloc),p=c;let A=e.editsession_insert_image(this.__wbg_ptr,h,x,v,E,o,W,k,w,f,g,p);var m=A[0],y=A[1];if(A[3])throw m=0,y=0,b(A[2]);return l=m,s=y,u(m,y)}finally{e.__wbindgen_free(l,s,1);}}insert_page_break(_,r,o){let n=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),t=c,i=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_insert_page_break(this.__wbg_ptr,n,t,i,l,o);if(s[1])throw b(s[0])}insert_row(_,r,o,n){let t,i;try{let m=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),y=c;var l=j(o)?0:a(o,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=j(n)?0:a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c;let h=e.editsession_insert_row(this.__wbg_ptr,m,y,r,l,s,w,f);var g=h[0],p=h[1];if(h[3])throw g=0,p=0,b(h[2]);return t=g,i=p,u(g,p)}finally{e.__wbindgen_free(t,i,1);}}insert_section_break(_,r,o,n){let t=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),i=c,l=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=e.editsession_insert_section_break(this.__wbg_ptr,t,i,l,s,o,w,f);if(g[1])throw b(g[0])}insert_table(_,r,o,n,t,i,l){let s,w;try{let x=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),v=c,E=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),W=c;var f=j(i)?0:a(i,e.__wbindgen_malloc,e.__wbindgen_realloc),g=c,p=j(l)?0:a(l,e.__wbindgen_malloc,e.__wbindgen_realloc),m=c;let k=e.editsession_insert_table(this.__wbg_ptr,x,v,E,W,o,n,t,f,g,p,m);var y=k[0],h=k[1];if(k[3])throw y=0,h=0,b(k[2]);return s=y,w=h,u(y,h)}finally{e.__wbindgen_free(s,w,1);}}insert_text(_,r,o,n,t,i){let l,s;try{let h=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),x=c,v=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),E=c,W=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),k=c;var w=j(t)?0:a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=j(i)?0:a(i,e.__wbindgen_malloc,e.__wbindgen_realloc),p=c;let A=e.editsession_insert_text(this.__wbg_ptr,h,x,v,E,o,W,k,w,f,g,p);var m=A[0],y=A[1];if(A[3])throw m=0,y=0,b(A[2]);return l=m,s=y,u(m,y)}finally{e.__wbindgen_free(l,s,1);}}insert_watermark(_,r,o,n){let t=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),i=c,l=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=e.editsession_insert_watermark(this.__wbg_ptr,t,i,l,s,o,w,f);if(g[1])throw b(g[0])}layout_document_json(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_layout_document_json(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}layout_document_with_regions_json(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_layout_document_with_regions_json(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}layout_font_requirements_json(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_layout_font_requirements_json(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}list_revisions(){let _,r;try{let t=e.editsession_list_revisions(this.__wbg_ptr);var o=t[0],n=t[1];if(t[3])throw o=0,n=0,b(t[2]);return _=o,r=n,u(o,n)}finally{e.__wbindgen_free(_,r,1);}}load(_){let r=F(_,e.__wbindgen_malloc),o=c,n=e.editsession_load(this.__wbg_ptr,r,o);if(n[1])throw b(n[0])}load_json(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_load_json(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}locate_paragraph(_,r){let o,n;try{let l=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=e.editsession_locate_paragraph(this.__wbg_ptr,l,s,w,f);var t=g[0],i=g[1];if(g[3])throw t=0,i=0,b(g[2]);return o=t,n=i,u(t,i)}finally{e.__wbindgen_free(o,n,1);}}measure_paragraph_json(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_measure_paragraph_json(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}merge_cells(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_merge_cells(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}merge_paragraphs(_,r,o,n){let t,i;try{let m=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),y=c,h=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),x=c;var l=j(o)?0:a(o,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=j(n)?0:a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c;let v=e.editsession_merge_paragraphs(this.__wbg_ptr,m,y,h,x,l,s,w,f);var g=v[0],p=v[1];if(v[3])throw g=0,p=0,b(v[2]);return t=g,i=p,u(g,p)}finally{e.__wbindgen_free(t,i,1);}}constructor(_){let r=e.editsession_new(_);if(r[2])throw b(r[1]);return this.__wbg_ptr=r[0],q.register(this,this.__wbg_ptr,this),this}outline_glyph_json(_,r){let o,n;try{let l=e.editsession_outline_glyph_json(this.__wbg_ptr,_,r);var t=l[0],i=l[1];if(l[3])throw t=0,i=0,b(l[2]);return o=t,n=i,u(t,i)}finally{e.__wbindgen_free(o,n,1);}}paragraph_spans(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_paragraph_spans(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}paragraphs(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_paragraphs(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}redo(){return e.editsession_redo(this.__wbg_ptr)!==0}redo_depth(){return e.editsession_redo_depth(this.__wbg_ptr)>>>0}register_measure_font(_){let r=F(_,e.__wbindgen_malloc),o=c,n=e.editsession_register_measure_font(this.__wbg_ptr,r,o);if(n[2])throw b(n[1]);return n[0]>>>0}reject_change(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_reject_change(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}replace_range(_,r,o,n,t,i,l,s){let w,f;try{let v=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),E=c,W=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),k=c,A=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),T=c,J=a(i,e.__wbindgen_malloc,e.__wbindgen_realloc),Y=c;var g=j(l)?0:a(l,e.__wbindgen_malloc,e.__wbindgen_realloc),p=c,m=j(s)?0:a(s,e.__wbindgen_malloc,e.__wbindgen_realloc),y=c;let D=e.editsession_replace_range(this.__wbg_ptr,v,E,W,k,o,A,T,t,J,Y,g,p,m,y);var h=D[0],x=D[1];if(D[3])throw h=0,x=0,b(D[2]);return w=h,f=x,u(h,x)}finally{e.__wbindgen_free(w,f,1);}}resolve_comment(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_resolve_comment(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}selection(){let _,r;try{let t=e.editsession_selection(this.__wbg_ptr);var o=t[0],n=t[1];if(t[3])throw o=0,n=0,b(t[2]);return _=o,r=n,u(o,n)}finally{e.__wbindgen_free(_,r,1);}}selection_context(_,r,o,n,t){let i,l;try{let f=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),g=c,p=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),m=c,y=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),h=c,x=e.editsession_selection_context(this.__wbg_ptr,f,g,p,m,o,y,h,t);var s=x[0],w=x[1];if(x[3])throw s=0,w=0,b(x[2]);return i=s,l=w,u(s,w)}finally{e.__wbindgen_free(i,l,1);}}set_cell_borders(_,r){let o,n;try{let l=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=e.editsession_set_cell_borders(this.__wbg_ptr,l,s,w,f);var t=g[0],i=g[1];if(g[3])throw t=0,i=0,b(g[2]);return o=t,n=i,u(t,i)}finally{e.__wbindgen_free(o,n,1);}}set_cell_selection(_){let r=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),o=c,n=e.editsession_set_cell_selection(this.__wbg_ptr,r,o);if(n[1])throw b(n[0])}set_cell_shading(_,r){let o,n;try{let w=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c;var t=j(r)?0:a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),i=c;let g=e.editsession_set_cell_shading(this.__wbg_ptr,w,f,t,i);var l=g[0],s=g[1];if(g[3])throw l=0,s=0,b(g[2]);return o=l,n=s,u(l,s)}finally{e.__wbindgen_free(o,n,1);}}set_cell_text_format(_,r){let o,n;try{let l=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=e.editsession_set_cell_text_format(this.__wbg_ptr,l,s,w,f);var t=g[0],i=g[1];if(g[3])throw t=0,i=0,b(g[2]);return o=t,n=i,u(t,i)}finally{e.__wbindgen_free(o,n,1);}}set_column_width(_,r){let o,n;try{let l=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=e.editsession_set_column_width(this.__wbg_ptr,l,s,r);var t=w[0],i=w[1];if(w[3])throw t=0,i=0,b(w[2]);return o=t,n=i,u(t,i)}finally{e.__wbindgen_free(o,n,1);}}set_content_control_value(_,r){let o=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),n=c,t=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),i=c,l=e.editsession_set_content_control_value(this.__wbg_ptr,o,n,t,i);if(l[1])throw b(l[0])}set_content_control_value_at(_,r,o,n){let t=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),i=c,l=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=e.editsession_set_content_control_value_at(this.__wbg_ptr,t,i,l,s,o,w,f);if(g[1])throw b(g[0])}set_hyperlink(_,r,o,n,t,i){let l=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),p=c,m=a(i,e.__wbindgen_malloc,e.__wbindgen_realloc),y=c,h=e.editsession_set_hyperlink(this.__wbg_ptr,l,s,w,f,o,g,p,t,m,y);if(h[1])throw b(h[0])}set_image_geometry(_,r){let o=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),n=c,t=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),i=c,l=e.editsession_set_image_geometry(this.__wbg_ptr,o,n,t,i);if(l[1])throw b(l[0])}set_paragraph_attr(_,r,o){let n=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),t=c,i=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=a(o,e.__wbindgen_malloc,e.__wbindgen_realloc),w=c,f=e.editsession_set_paragraph_attr(this.__wbg_ptr,n,t,i,l,s,w);if(f[1])throw b(f[0])}set_paragraph_attrs(_,r,o,n,t,i,l,s){let w=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),p=c,m=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),y=c,h=a(i,e.__wbindgen_malloc,e.__wbindgen_realloc),x=c;var v=j(l)?0:a(l,e.__wbindgen_malloc,e.__wbindgen_realloc),E=c,W=j(s)?0:a(s,e.__wbindgen_malloc,e.__wbindgen_realloc),k=c;let A=e.editsession_set_paragraph_attrs(this.__wbg_ptr,w,f,g,p,o,m,y,t,h,x,v,E,W,k);if(A[1])throw b(A[0])}set_selection(_,r,o,n,t){let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),w=c,f=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),g=c,p=e.editsession_set_selection(this.__wbg_ptr,i,l,s,w,o,f,g,t);if(p[1])throw b(p[0])}set_table_width(_,r){let o,n;try{let l=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=e.editsession_set_table_width(this.__wbg_ptr,l,s,r);var t=w[0],i=w[1];if(w[3])throw t=0,i=0,b(w[2]);return o=t,n=i,u(t,i)}finally{e.__wbindgen_free(o,n,1);}}set_update_observer(_){let r=e.editsession_set_update_observer(this.__wbg_ptr,_);if(r[1])throw b(r[0])}split_cell(_,r,o){let n,t;try{let s=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),w=c,f=e.editsession_split_cell(this.__wbg_ptr,s,w,j(r)?Number.MAX_SAFE_INTEGER:r>>>0,j(o)?Number.MAX_SAFE_INTEGER:o>>>0);var i=f[0],l=f[1];if(f[3])throw i=0,l=0,b(f[2]);return n=i,t=l,u(i,l)}finally{e.__wbindgen_free(n,t,1);}}split_paragraph(_,r,o,n,t){let i,l;try{let y=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),h=c,x=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),v=c;var s=j(n)?0:a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),w=c,f=j(t)?0:a(t,e.__wbindgen_malloc,e.__wbindgen_realloc),g=c;let E=e.editsession_split_paragraph(this.__wbg_ptr,y,h,x,v,o,s,w,f,g);var p=E[0],m=E[1];if(E[3])throw p=0,m=0,b(E[2]);return i=p,l=m,u(p,m)}finally{e.__wbindgen_free(i,l,1);}}start_update_event_observation(){let _=e.editsession_start_update_event_observation(this.__wbg_ptr);if(_[1])throw b(_[0])}story_checksum(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_story_checksum(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}story_ids(){let _=e.editsession_story_ids(this.__wbg_ptr);var r=Z(_[0],_[1]).slice();return e.__wbindgen_free(_[0],_[1]*4,4),r}story_len(_){let r=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),o=c,n=e.editsession_story_len(this.__wbg_ptr,r,o);if(n[2])throw b(n[1]);return n[0]>>>0}story_segments(_){let r,o;try{let i=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=c,s=e.editsession_story_segments(this.__wbg_ptr,i,l);var n=s[0],t=s[1];if(s[3])throw n=0,t=0,b(s[2]);return r=n,o=t,u(n,t)}finally{e.__wbindgen_free(r,o,1);}}toggle_mark(_,r,o,n,t,i){let l=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=a(n,e.__wbindgen_malloc,e.__wbindgen_realloc),p=c,m=a(i,e.__wbindgen_malloc,e.__wbindgen_realloc),y=c,h=e.editsession_toggle_mark(this.__wbg_ptr,l,s,w,f,o,g,p,t,m,y);if(h[1])throw b(h[0])}track_table_undo(_){let r=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),o=c,n=e.editsession_track_table_undo(this.__wbg_ptr,r,o);if(n[1])throw b(n[0])}track_undo(_){let r=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),o=c,n=e.editsession_track_undo(this.__wbg_ptr,r,o);if(n[1])throw b(n[0])}undo(){return e.editsession_undo(this.__wbg_ptr)!==0}undo_depth(){return e.editsession_undo_depth(this.__wbg_ptr)>>>0}yrs_blocks_for_story(_,r){let o,n;try{let l=a(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=c,w=a(r,e.__wbindgen_malloc,e.__wbindgen_realloc),f=c,g=e.editsession_yrs_blocks_for_story(this.__wbg_ptr,l,s,w,f);var t=g[0],i=g[1];if(g[3])throw t=0,i=0,b(g[2]);return o=t,n=i,u(t,i)}finally{e.__wbindgen_free(o,n,1);}}};Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);function B(){return {__proto__:null,"./docx_edit_bg.js":{__proto__:null,__wbg___wbindgen_throw_344f42d3211c4765:function(_,r){throw new Error(u(_,r))},__wbg_call_e3b662382210db98:function(){return z(function(_,r,o,n){return _.call(r,o,n)},arguments)},__wbg_getRandomValues_3f44b700395062e5:function(){return z(function(_,r){globalThis.crypto.getRandomValues(S(_,r));},arguments)},__wbg_new_from_slice_77cdfb7977362f3c:function(_,r){return new Uint8Array(S(_,r))},__wbg_now_6c169aa7096caae5:function(){return performance.now()},__wbindgen_cast_0000000000000001:function(_){return _},__wbindgen_cast_0000000000000002:function(_,r){return u(_,r)},__wbindgen_init_externref_table:function(){let _=e.__wbindgen_externrefs,r=_.grow(4);_.set(0,void 0),_.set(r+0,void 0),_.set(r+1,null),_.set(r+2,true),_.set(r+3,false);}}}}var q=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(d=>e.__wbg_editsession_free(d,1));function Q(d){let _=e.__externref_table_alloc();return e.__wbindgen_externrefs.set(_,d),_}function Z(d,_){d=d>>>0;let r=$(),o=[];for(let n=d;n<d+4*_;n+=4)o.push(e.__wbindgen_externrefs.get(r.getUint32(n,true)));return e.__externref_drop_slice(d,_),o}function S(d,_){return d=d>>>0,M().subarray(d/1,d/1+_)}var R=null;function $(){return (R===null||R.buffer.detached===true||R.buffer.detached===void 0&&R.buffer!==e.memory.buffer)&&(R=new DataView(e.memory.buffer)),R}function u(d,_){return _e(d>>>0,_)}var O=null;function M(){return (O===null||O.byteLength===0)&&(O=new Uint8Array(e.memory.buffer)),O}function z(d,_){try{return d.apply(this,_)}catch(r){let o=Q(r);e.__wbindgen_exn_store(o);}}function j(d){return d==null}function F(d,_){let r=_(d.length*1,1)>>>0;return M().set(d,r/1),c=d.length,r}function a(d,_,r){if(r===void 0){let l=U.encode(d),s=_(l.length,1)>>>0;return M().subarray(s,s+l.length).set(l),c=l.length,s}let o=d.length,n=_(o,1)>>>0,t=M(),i=0;for(;i<o;i++){let l=d.charCodeAt(i);if(l>127)break;t[n+i]=l;}if(i!==o){i!==0&&(d=d.slice(i)),n=r(n,o,o=i+d.length*3,1)>>>0;let l=M().subarray(n+i,n+o),s=U.encodeInto(d,l);i+=s.written,n=r(n,o,i,1)>>>0;}return c=i,n}function b(d){let _=e.__wbindgen_externrefs.get(d);return e.__externref_table_dealloc(d),_}var L=new TextDecoder("utf-8",{ignoreBOM:true,fatal:true});L.decode();var ee=2146435072,N=0;function _e(d,_){return N+=_,N>=ee&&(L=new TextDecoder("utf-8",{ignoreBOM:true,fatal:true}),L.decode(),N=_),L.decode(M().subarray(d,d+_))}var U=new TextEncoder;"encodeInto"in U||(U.encodeInto=function(d,_){let r=U.encode(d);return _.set(r),{read:d.length,written:r.length}});var c=0,e;function C(d,_){return e=d.exports,R=null,O=null,e.__wbindgen_start(),e}async function re(d,_){if(typeof Response=="function"&&d instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(d,_)}catch(n){if(d.ok&&r(d.type)&&d.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",n);else throw n}let o=await d.arrayBuffer();return await WebAssembly.instantiate(o,_)}else {let o=await WebAssembly.instantiate(d,_);return o instanceof WebAssembly.Instance?{instance:o,module:d}:o}function r(o){switch(o){case "basic":case "cors":case "default":return true}return false}}function P(d){if(e!==void 0)return e;d!==void 0&&(Object.getPrototypeOf(d)===Object.prototype?{module:d}=d:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let _=B();d instanceof WebAssembly.Module||(d=new WebAssembly.Module(d));let r=new WebAssembly.Instance(d,_);return C(r)}async function X(d){if(e!==void 0)return e;if(d!==void 0&&(Object.getPrototypeOf(d)===Object.prototype?{module_or_path:d}=d:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),d===void 0)throw new Error("docx-edit wasm requires an explicit module or URL");let _=B();(typeof d=="string"||typeof Request=="function"&&d instanceof Request||typeof URL=="function"&&d instanceof URL)&&(d=fetch(d));let{instance:r,module:o}=await re(await d,_);return C(r)}var G=a$1({label:"docx-edit",preloadName:"preloadEditWasm",assetUrl:()=>new URL("./generated/edit/docx_edit_bg.wasm",import.meta.url),initAsync:X,initSync:P});function ce(d){return G.preload(d)}function ae(d){return G.ensure(),new I(d)}export{ce as a,ae as b};
|
package/dist/wasm-BGQBTR2J.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import'./chunk-EUUIJVM6.mjs';export{b as createEditSession,a as preloadEditWasm}from'./chunk-NTQM4EYN.mjs';import'./chunk-T4EZMUXM.mjs';import'./chunk-TTRUPDAB.mjs';
|
package/dist/wasm-SA237OSP.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{l as buildDisplayListJson,o as clearMeasureFonts,g as closeDisplayList,d as hasDisplayListSession,e as hasRangeRectsRegion,h as hitTestRegionsByHandle,b as hitTestRegionsJson,m as layoutDocumentJson,p as measureParagraphJson,f as openDisplayList,q as outlineGlyphJson,a as preloadLayoutWasm,i as rangeRectsByHandle,c as rangeRectsJson,k as rangeRectsRegionByHandle,j as rangeRectsRegionJson,n as registerMeasureFont}from'./chunk-CIRN3LZA.mjs';import'./chunk-T4EZMUXM.mjs';import'./chunk-TTRUPDAB.mjs';
|