oasis-editor 0.0.355 → 0.0.357

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.
@@ -1,3 +1,7 @@
1
1
  import { EditorDocument } from '../../core/model.js';
2
- export declare function exportEditorDocumentToDocxPreservingSource(document: EditorDocument): Promise<ArrayBuffer>;
3
- export declare function exportEditorDocumentToDocxBlobPreservingSource(document: EditorDocument): Promise<Blob>;
2
+ export interface DocxSourcePreservationOptions {
3
+ /** Block export if an inventoried opaque source object or dependency changes. */
4
+ requireOpaquePreservation?: boolean;
5
+ }
6
+ export declare function exportEditorDocumentToDocxPreservingSource(document: EditorDocument, options?: DocxSourcePreservationOptions): Promise<ArrayBuffer>;
7
+ export declare function exportEditorDocumentToDocxBlobPreservingSource(document: EditorDocument, options?: DocxSourcePreservationOptions): Promise<Blob>;
@@ -0,0 +1,8 @@
1
+ import { Element as XmlElement } from '@xmldom/xmldom';
2
+ /** Attribute identity is the expanded name, not a producer-selected prefix.
3
+ * Do not interpret an ignored extension's id/type as a Word relationship.
4
+ * The current semantic import and preservation paths target Transitional WML.
5
+ */
6
+ export declare function readHeaderFooterRelationshipId(element: XmlElement): string | undefined;
7
+ export declare function readHeaderFooterReferenceType(element: XmlElement): string;
8
+ export declare function replaceHeaderFooterRelationshipId(element: XmlElement, value: string): boolean;
@@ -8,7 +8,7 @@ export interface HeaderFooterStoryReference {
8
8
  /**
9
9
  * Reads active section header/footer references without assuming `w` or `r`
10
10
  * prefix spellings. The semantic identity is namespace URI + local name; the
11
- * relationship id is intentionally read by local name so Transitional, Strict
12
- * and producer-chosen relationship prefixes all remain discoverable.
11
+ * relationship attribute is resolved in the Transitional relationship namespace.
12
+ * Strict import remains a separate, explicitly unverified path.
13
13
  */
14
14
  export declare function collectHeaderFooterStoryReferences(xml: string): HeaderFooterStoryReference[];
@@ -0,0 +1,5 @@
1
+ /** Sort only complete, freshly generated property fragments, not imported XML.
2
+ * Preserve nested markup and stable order for repeated/unknown properties.
3
+ * MC wrappers are positioned according to their known WML fallback when present.
4
+ */
5
+ export declare function orderedPropertyFragments(parts: readonly string[], order: readonly string[]): string;
@@ -0,0 +1,5 @@
1
+ /** CSS font list -> one Word font face. Preserve quoted commas in actual face
2
+ * names unless the quoted token itself is an old serialized CSS fallback list.
3
+ * Do not truncate a real long name into a nonexistent font; fall back to Calibri.
4
+ */
5
+ export declare function docxTypeface(css: string): string;
@@ -1 +1 @@
1
- import{$ as e,$o as t,Ai as a,At as o,Ct as i,Dt as r,Et as s,Fo as n,Jo as l,Ki as g,Ko as d,Li as c,Lo as p,Mo as m,No as u,Ot as b,Q as f,Ri as h,Si as S,Sn as C,St as x,Tt as T,Ui as P,Uo as F,Vo as v,Wi as _,X as k,Z as y,Zo as A,_i as w,_t as B,aa as D,ai as R,as as L,at as I,bi as H,bt as O,ca as E,ci as M,cs as N,ct as W,da as j,di as U,dt as z,et as K,fa as q,ft as $,gi as V,gt as J,hi as G,ht as X,it as Z,ji as Q,jo as Y,kt as ee,la as te,li as ae,ls as oe,lt as ie,mt as re,oa as se,oi as ne,ot as le,pt as ge,rs as de,sa as ce,ss as pe,st as me,t as ue,ua as be,ui as fe,ut as he,vi as Se,vt as Ce,xi as xe,xt as Te,yi as Pe,yt as Fe,zi as ve}from"./defaultToolbar-C3dWxyY7.js";function _e(e={}){const a=p(()=>e.ui?.locale??"pt-BR"),[o,i]=de(0),[r,s]=de(null),l=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return N(()=>{const e=performance.now();let t=!1;const a=()=>{if(t)return;const o=performance.now()-e;i(.9*(1-Math.exp(-o/5e3))),requestAnimationFrame(a)};requestAnimationFrame(a),pe(()=>{t=!0}),import("./OasisEditorApp-CzDrLM9b.js").then(e=>{t=!0,i(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),t(n,{translator:a,get children(){return t(A,{get when(){return r()},get fallback(){return t(u,{variant:"fill",get progress(){return o()},get label(){return l()?.label},get class(){return l()?.class},get style(){return l()?.style}})},children:a=>{const o=a();return t(o,e)}})}})}function ke(e,t={}){const a=P(),o=F(()=>_e({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function ye(e){return t(_e,L(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function Ae(e,t={}){const a=P(),o=F(()=>ye({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function we(e){return{execute(t,a){const o=m(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=m(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=m(t);return e.commands.state(a.name,a.payload)}}}var Be=["selectAll","selectWord","selectSentence","selectParagraph","selectCollapse","selectText","selectRange","insertFootnote","insertText","insertEquation","updateEquation","insertTableOfContents","updateTableOfContents","pastePlainText","paste","pasteAsPlainText","pasteMergeFormatting","formatPainter","formatPainterContinuous","cancelFormatPainter","bold","italic","underline","doubleUnderline","wordUnderline","strike","doubleStrike","smallCaps","allCaps","hidden","noProof","webHidden","specVanish","contextualAlternates","characterBorder","shadow","emboss","engrave","outline","superscript","subscript","link","unlink","alignLeft","alignCenter","alignRight","alignJustify","orderedList","bulletList","find","replace","replaceAll","toggleTrackChanges","toggleRevisionMarkup","showMarkupOptions","applyShowMarkup","toggleOutlinePanel","toggleRevisionsPanel","openCommandSearch","repeatLastAction","acceptRevisions","rejectRevisions","setReviewDisplayMode","acceptAllRevisions","rejectAllRevisions","requestAcceptAllRevisions","requestRejectAllRevisions","nextRevision","previousRevision","nextComment","previousComment","newComment","replyComment","editComment","toggleCommentsPanel","resolveComment","reopenComment","deleteComment","toggleShowMargins","toggleShowParagraphMarks","togglePreciseFonts","undo","redo","pageBreak","lineBreak","columnBreak","splitBlock","insertNonBreakingSpace","insertNonBreakingHyphen","insertOptionalHyphen","insertEmDash","insertEllipsis","insertCopyright","insertRegistered","insertTrademark","setFontFamily","setFontSize","increaseFontSize","decreaseFontSize","growFont1","shrinkFont1","changeTextCase","clearFormatting","setColor","setHighlight","setTextShading","setStyleId","setCharacterStyleId","setUnderlineStyle","applyUnderlineStyle","setUnderlineColor","setCharacterScale","setCharacterSpacing","setRunSnapToGrid","setFitText","setBaselineShift","setEmphasisMark","setTextEffect","setKerning","setLigatures","setNumberSpacing","setNumberForm","setStylisticSet","documentStyles","print","copy","cut","newDocument","saveDocument","exportDocx","exportPdf","importDocument","insertHtml","insertImage","editImageAlt","insertImageCaption","imageContext","imageWidthCm","imageHeightCm","imageCrop","imageCropAspect","imageCropShape","imageCropFill","imageCropFit","imageCropReset","imageFlip","imageRotate","imageBorder","imageTransparency","resetImage","outdent","indent","moveParagraphsUp","moveParagraphsDown","togglePageBreakBefore","toggleKeepWithNext","toggleKeepLinesTogether","toggleWidowControl","toggleParagraphBidi","setParagraphBidi","setParagraphAlign","sortParagraphs","promote","demote","resetParagraphFormatting","setParagraphTabStops","setOutlineLevel","setSpacingAfter","setSpacingBefore","setContextualSpacing","setMirrorIndents","setLineRule","setTextDirection","setSuppressAutoHyphens","setSuppressLineNumbers","setKinsoku","setOverflowPunct","setWordWrap","setAutoSpaceDE","setAutoSpaceDN","setAdjustRightInd","setTopLinePunct","setPageBreakBefore","setKeepWithNext","setKeepLinesTogether","setWidowControl","setIndentLeft","setIndentRight","setIndentFirstLine","setIndentHanging","setSpecialIndent","setParagraphShading","applyParagraphBorders","applyHorizontalLine","setDropCap","setLineHeight","setListFormat","setListStartAt","setListLevel","toggleOrientation","setOrientation","sectionBreakNextPage","sectionBreakContinuous","sectionBreakEvenPage","sectionBreakOddPage","sectionBreakNextColumn","setPageMargins","setMarginsPreset","setSectionPageNumbering","setPaperSize","setPaperSizePreset","setColumns","setColumnsPreset","setSectionVerticalAlign","setSectionStart","setSectionBidi","setHyphenation","editHeader","editFooter","editFirstPageHeader","editEvenPageHeader","editFirstPageFooter","editEvenPageFooter","insertPageNumber","insertPageNumberXOfY","placePageNumberTop","placePageNumberBottom","insertBookmark","removeBookmark","insertDateField","insertDateTime","insertCrossReference","setNoteOptions","exitHeaderFooter","setDifferentFirstPage","setDifferentOddEven","applyDocumentTheme","setDocumentColorScheme","setDocumentFontScheme","setDocumentParagraphSpacing","setDocumentEffects","setDocumentPageColor","setDocumentWatermark","setDocumentPageBorder","setDocumentDesignDefault","tableContext","tableMerge","tableSplit","tableInsertColumnBefore","tableInsertColumnAfter","tableDeleteColumn","tableDeleteCells","tableInsertRowBefore","tableInsertRowAfter","tableDeleteRow","tableCellShading","tableCellBorders","tableCellNoBorders","tableApplyBorderPreset","toggleTableDrawBorders","toggleTableGridlines","tableWidth100","tableAlignLeft","tableAlignCenter","tableAlignRight","tableSetCellAlignment","tableSetCellVerticalAlign","tableSetCellTextDirection","tableToText","textToTable","tableSplitAtRow","tableSortAscending","tableSortDescending","tableDelete","tableRepeatHeaderRows","tableSetCellMargins","tableSetCellSpacing","tableSetTableIndent","tableSetAlignment","tableFormula","tableSelectCell","tableSelectRow","tableSelectColumn","tableSelectTable","tableSetRowHeight","tableSetBreakAcrossPages","tableSetHeaderRow","tableSetColumnWidth","tableSetTableWidth","tableSetCellWidth","tableSetCellNoWrap","tableSetCellFitText","tableToggleHeaderRow","tableToggleTotalRow","tableToggleBandedRows","tableToggleFirstColumn","tableToggleLastColumn","tableToggleBandedColumns","setTableStyle","tableToggleAutoFit","tableAutoFit","tableDistributeColumns","tableDistributeRows","insertTable","insertShape","setShapeFill","setShapeOutline","setShapeOutlineWidth","alignFloatingObject","reorderFloatingObject","nudgeFloatingObject","setFloatingFixedPosition","setFloatingRotation","setFloatingWrapPreset","setFloatingWrapText","setFloatingPositionPreset","setShapePreset","setTextBoxTextDirection","setTextBoxVerticalAlign","editTextBoxAlt","rotateTextBox","textBoxWidthCm","textBoxHeightCm","openSymbolDialog","openEquationDialog","tableProperties","openFontDialog","openParagraphDialog"];function De(e,a={}){const o=P(),i=F(()=>t(_e,L(a,{get runtime(){return{...a.runtime,client:o}}})),e);return o.setDispose(()=>{i(),e.innerHTML=""}),Object.assign(o,{unmount:()=>o.dispose()})}var Re=/*#__PURE__*/l("<div>");function Le(e){const[t,a]=oe(e,["align","wrap","class","classList","children"]);return o=Re(),d(o,L({get class(){return`oasis-editor-ui-action-row ${t.class??""}`},get classList(){return{[`oasis-editor-ui-action-row-${t.align??"start"}`]:!0,"oasis-editor-ui-action-row-nowrap":!1===t.wrap,...t.classList}}},a),!1,!0),v(o,()=>t.children),o;var o}var Ie=/*#__PURE__*/l("<div>"),He={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Oe(e){const[t,a]=oe(e,["align","class","style","children"]);return o=Ie(),d(o,L({get class(){return`oasis-editor-ui-field-row ${t.class??""}`},get style(){return{"align-items":He[t.align??"end"],..."object"==typeof t.style?t.style:{}}}},a),!1,!0),v(o,()=>t.children),o;var o}var Ee=/*#__PURE__*/l("<div>");function Me(e){const[t,a]=oe(e,["align","class","classList","children"]);return o=Ee(),d(o,L({get class(){return`oasis-editor-ui-dialog-footer ${t.class??""}`},get classList(){return{[`oasis-editor-ui-dialog-footer-${t.align??"end"}`]:!0,...t.classList}}},a),!1,!0),v(o,()=>t.children),o;var o}var Ne={saveDocument:"editor-toolbar-save-document",newDocument:"editor-toolbar-new-document",importDocument:"editor-toolbar-import-document",exportDocx:"editor-toolbar-export-docx",exportPdf:"editor-toolbar-export-pdf",print:"editor-toolbar-print",undo:"editor-toolbar-undo",redo:"editor-toolbar-redo",style:"editor-toolbar-style",fontFamily:"editor-toolbar-font-family",fontSize:"editor-toolbar-font-size",color:"editor-toolbar-color",highlight:"editor-toolbar-highlight",textShading:"editor-toolbar-text-shading",bold:"editor-toolbar-bold",italic:"editor-toolbar-italic",underlineControl:"editor-toolbar-underline-control",strike:"editor-toolbar-strike",superscript:"editor-toolbar-superscript",subscript:"editor-toolbar-subscript",insertImage:"editor-toolbar-insert-image",insertTable:"editor-toolbar-insert-table",symbols:"editor-toolbar-symbols",link:"editor-toolbar-link",unlink:"editor-toolbar-unlink",footnote:"editor-toolbar-footnote",imageAlt:"editor-toolbar-image-alt",imageCaption:"editor-toolbar-image-caption",alignLeft:"editor-toolbar-align-left",alignCenter:"editor-toolbar-align-center",alignRight:"editor-toolbar-align-right",alignJustify:"editor-toolbar-align-justify",bulletList:"editor-toolbar-list-bullet",orderedList:"editor-toolbar-list-ordered",outdent:"editor-toolbar-list-outdent",indent:"editor-toolbar-list-indent",listOptions:"editor-toolbar-list-options",specialIndent:"editor-toolbar-special-indent",lineSpacing:"editor-toolbar-line-spacing-control",metrics:"editor-toolbar-metrics",margins:"editor-toolbar-margins",section:"editor-toolbar-section"},We={fileNew:"file_new",fileImport:"file_import",fileSave:"file_save",fileExport:"file_export",fileExportPdf:"file_export_pdf",fileExportDocx:"file_export_docx",filePrint:"file_print",editUndo:"edit_undo",editRedo:"edit_redo",editCopy:"edit_copy",editFind:"edit_find",editSelectAll:"edit_selectAll",viewMargins:"view_margins",viewParagraphMarks:"view_paragraph_marks",viewPreciseFonts:"view_precise_fonts",insertImage:"insert_image",insertImageCaption:"insert_image_caption",insertTable:"insert_table",insertLink:"insert_link",insertFootnote:"insert_footnote",insertPageBreak:"insert_pageBreak",formatText:"format_text",formatTextBold:"format_text_bold",formatTextItalic:"format_text_italic",formatTextUnderline:"format_text_underline",formatTextStrike:"format_text_strike",formatAlign:"format_align",formatAlignLeft:"format_align_left",formatAlignCenter:"format_align_center",formatAlignRight:"format_align_right",formatAlignJustify:"format_align_justify",formatLists:"format_lists",formatListsBullet:"format_lists_bullet",formatListsNumbered:"format_lists_numbered"};export{Le as ActionRow,Te as BalloonShell,C as Button,he as Checkbox,z as ColorField,U as ColorPicker,U as ToolbarColorPicker,h as CommandRegistry,ae as DEFAULT_PALETTE,O as Dialog,Me as DialogFooter,i as DocumentShell,D as EDITOR_SCHEMA_VERSION,c as Editor,I as FieldGroup,Oe as FieldRow,o as FloatingActionButton,re as FormField,X as Grid,fe as GridPicker,fe as ToolbarGridPicker,Ce as Heading,T as IconButton,x as InlineShell,Se as Menu,Se as ToolbarMenu,k as MenuRegistry,W as NumberField,Be as OASIS_BUILTIN_COMMANDS,We as OASIS_MENU_ITEMS,Ne as OASIS_TOOLBAR_ITEMS,_e as OasisEditorAppLazy,ye as OasisEditorContainer,u as OasisEditorLoading,ve as PluginCollection,Pe as Popover,S as RIBBON_TABS,le as Radio,me as RadioGroup,w as Select,w as ToolbarSelect,ie as SelectField,V as Separator,V as ToolbarSeparator,s as SidePanel,r as SidePanelBody,b as SidePanelFooter,ee as SidePanelHeader,G as SplitButton,G as ToolbarSplitButton,J as Stack,B as StatusText,M as StyleGallery,Q as SurfaceButton,Fe as Tabs,a as Text,$ as TextAreaField,ge as TextField,Z as ToggleChip,R as Toolbar,H as ToolbarButton,xe as buildRibbonTabDefinitions,se as cloneDocument,Y as commandRefName,ue as createDefaultToolbarPreset,ce as createDocument,we as createEditorCommandBus,E as createHeading,ke as createOasisEditor,Ae as createOasisEditorContainer,te as createParagraph,be as createTable,y as createToolbarRegistry,_ as exportEditorDocumentToHtml,g as importHtmlToEditorDocument,De as mount,j as normalizeDocument,f as projectTrackedRevisions,ne as registerToolbarRenderer,e as resolveAllTrackedRevisions,m as resolveCommandRef,K as resolveTrackedRevision,q as validateDocument};
1
+ import{$ as e,Ai as t,At as a,Bi as r,Cr as o,Ct as i,Dr as s,Dt as n,Ei as l,Er as g,Et as d,Fi as c,Gr as p,Hi as m,Ir as u,Ji as b,Jt as f,Ki as h,Li as S,Lr as C,Mi as x,Or as T,Ot as P,Q as v,Qi as F,Qr as _,Si as w,Sr as k,St as y,Tr as A,Tt as B,Ur as D,Wr as R,X as L,Xi as I,Xr as H,Yr as O,Z as E,Zi as M,_i as N,_r as W,_t as j,at as U,bi as z,br as q,bt as K,ct as $,di as J,dt as G,et as V,fi as X,ft as Q,gi as Y,gt as Z,hi as ee,hr as te,ht as ae,it as re,kt as oe,lt as ie,mi as se,mr as ne,mt as le,ot as ge,pi as de,pt as ce,st as pe,t as me,ut as ue,vi as be,vr as fe,vt as he,wi as Se,wr as Ce,xi as xe,xr as Te,xt as Pe,yr as ve,yt as Fe}from"./defaultToolbar-Bw1M5hhi.js";function _e(e={}){const t=l(()=>e.ui?.locale??"pt-BR"),[a,o]=h(0),[i,s]=h(null),n=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return M(()=>{const e=performance.now();let t=!1;const a=()=>{if(t)return;const r=performance.now()-e;o(.9*(1-Math.exp(-r/5e3))),requestAnimationFrame(a)};requestAnimationFrame(a),I(()=>{t=!0}),import("./OasisEditorApp-qcQ7z1Te.js").then(e=>{t=!0,o(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),m(Se,{translator:t,get children(){return m(r,{get when(){return i()},get fallback(){return m(w,{variant:"fill",get progress(){return a()},get label(){return n()?.label},get class(){return n()?.class},get style(){return n()?.style}})},children:t=>{const a=t();return m(a,e)}})}})}function we(e,t={}){const a=O(),r=x(()=>_e({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{r(),e.innerHTML=""}),a}function ke(e){return m(_e,b(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function ye(e,t={}){const a=O(),r=x(()=>ke({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{r(),e.innerHTML=""}),a}function Ae(e){return{execute(t,a){const r=xe(t,a);return e.commands.execute(r.name,r.payload)},canExecute(t,a){const r=xe(t,a);return e.commands.canExecute(r.name,r.payload)},state(t){const a=xe(t);return e.commands.state(a.name,a.payload)}}}var Be=["selectAll","selectWord","selectSentence","selectParagraph","selectCollapse","selectText","selectRange","insertFootnote","insertText","insertEquation","updateEquation","insertTableOfContents","updateTableOfContents","pastePlainText","paste","pasteAsPlainText","pasteMergeFormatting","formatPainter","formatPainterContinuous","cancelFormatPainter","bold","italic","underline","doubleUnderline","wordUnderline","strike","doubleStrike","smallCaps","allCaps","hidden","noProof","webHidden","specVanish","contextualAlternates","characterBorder","shadow","emboss","engrave","outline","superscript","subscript","link","unlink","alignLeft","alignCenter","alignRight","alignJustify","orderedList","bulletList","find","replace","replaceAll","toggleTrackChanges","toggleRevisionMarkup","showMarkupOptions","applyShowMarkup","toggleOutlinePanel","toggleRevisionsPanel","openCommandSearch","repeatLastAction","acceptRevisions","rejectRevisions","setReviewDisplayMode","acceptAllRevisions","rejectAllRevisions","requestAcceptAllRevisions","requestRejectAllRevisions","nextRevision","previousRevision","nextComment","previousComment","newComment","replyComment","editComment","toggleCommentsPanel","resolveComment","reopenComment","deleteComment","toggleShowMargins","toggleShowParagraphMarks","togglePreciseFonts","undo","redo","pageBreak","lineBreak","columnBreak","splitBlock","insertNonBreakingSpace","insertNonBreakingHyphen","insertOptionalHyphen","insertEmDash","insertEllipsis","insertCopyright","insertRegistered","insertTrademark","setFontFamily","setFontSize","increaseFontSize","decreaseFontSize","growFont1","shrinkFont1","changeTextCase","clearFormatting","setColor","setHighlight","setTextShading","setStyleId","setCharacterStyleId","setUnderlineStyle","applyUnderlineStyle","setUnderlineColor","setCharacterScale","setCharacterSpacing","setRunSnapToGrid","setFitText","setBaselineShift","setEmphasisMark","setTextEffect","setKerning","setLigatures","setNumberSpacing","setNumberForm","setStylisticSet","documentStyles","print","copy","cut","newDocument","saveDocument","exportDocx","exportPdf","importDocument","insertHtml","insertImage","editImageAlt","insertImageCaption","imageContext","imageWidthCm","imageHeightCm","imageCrop","imageCropAspect","imageCropShape","imageCropFill","imageCropFit","imageCropReset","imageFlip","imageRotate","imageBorder","imageTransparency","resetImage","outdent","indent","moveParagraphsUp","moveParagraphsDown","togglePageBreakBefore","toggleKeepWithNext","toggleKeepLinesTogether","toggleWidowControl","toggleParagraphBidi","setParagraphBidi","setParagraphAlign","sortParagraphs","promote","demote","resetParagraphFormatting","setParagraphTabStops","setOutlineLevel","setSpacingAfter","setSpacingBefore","setContextualSpacing","setMirrorIndents","setLineRule","setTextDirection","setSuppressAutoHyphens","setSuppressLineNumbers","setKinsoku","setOverflowPunct","setWordWrap","setAutoSpaceDE","setAutoSpaceDN","setAdjustRightInd","setTopLinePunct","setPageBreakBefore","setKeepWithNext","setKeepLinesTogether","setWidowControl","setIndentLeft","setIndentRight","setIndentFirstLine","setIndentHanging","setSpecialIndent","setParagraphShading","applyParagraphBorders","applyHorizontalLine","setDropCap","setLineHeight","setListFormat","setListStartAt","setListLevel","toggleOrientation","setOrientation","sectionBreakNextPage","sectionBreakContinuous","sectionBreakEvenPage","sectionBreakOddPage","sectionBreakNextColumn","setPageMargins","setMarginsPreset","setSectionPageNumbering","setPaperSize","setPaperSizePreset","setColumns","setColumnsPreset","setSectionVerticalAlign","setSectionStart","setSectionBidi","setHyphenation","editHeader","editFooter","editFirstPageHeader","editEvenPageHeader","editFirstPageFooter","editEvenPageFooter","insertPageNumber","insertPageNumberXOfY","placePageNumberTop","placePageNumberBottom","insertBookmark","removeBookmark","insertDateField","insertDateTime","insertCrossReference","setNoteOptions","exitHeaderFooter","setDifferentFirstPage","setDifferentOddEven","applyDocumentTheme","setDocumentColorScheme","setDocumentFontScheme","setDocumentParagraphSpacing","setDocumentEffects","setDocumentPageColor","setDocumentWatermark","setDocumentPageBorder","setDocumentDesignDefault","tableContext","tableMerge","tableSplit","tableInsertColumnBefore","tableInsertColumnAfter","tableDeleteColumn","tableDeleteCells","tableInsertRowBefore","tableInsertRowAfter","tableDeleteRow","tableCellShading","tableCellBorders","tableCellNoBorders","tableApplyBorderPreset","toggleTableDrawBorders","toggleTableGridlines","tableWidth100","tableAlignLeft","tableAlignCenter","tableAlignRight","tableSetCellAlignment","tableSetCellVerticalAlign","tableSetCellTextDirection","tableToText","textToTable","tableSplitAtRow","tableSortAscending","tableSortDescending","tableDelete","tableRepeatHeaderRows","tableSetCellMargins","tableSetCellSpacing","tableSetTableIndent","tableSetAlignment","tableFormula","tableSelectCell","tableSelectRow","tableSelectColumn","tableSelectTable","tableSetRowHeight","tableSetBreakAcrossPages","tableSetHeaderRow","tableSetColumnWidth","tableSetTableWidth","tableSetCellWidth","tableSetCellNoWrap","tableSetCellFitText","tableToggleHeaderRow","tableToggleTotalRow","tableToggleBandedRows","tableToggleFirstColumn","tableToggleLastColumn","tableToggleBandedColumns","setTableStyle","tableToggleAutoFit","tableAutoFit","tableDistributeColumns","tableDistributeRows","insertTable","insertShape","setShapeFill","setShapeOutline","setShapeOutlineWidth","alignFloatingObject","reorderFloatingObject","nudgeFloatingObject","setFloatingFixedPosition","setFloatingRotation","setFloatingWrapPreset","setFloatingWrapText","setFloatingPositionPreset","setShapePreset","setTextBoxTextDirection","setTextBoxVerticalAlign","editTextBoxAlt","rotateTextBox","textBoxWidthCm","textBoxHeightCm","openSymbolDialog","openEquationDialog","tableProperties","openFontDialog","openParagraphDialog"];function De(e,t={}){const a=O(),r=x(()=>m(_e,b(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{r(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}var Re=/*#__PURE__*/S("<div>");function Le(e){const[a,r]=F(e,["align","wrap","class","classList","children"]);return o=Re(),c(o,b({get class(){return`oasis-editor-ui-action-row ${a.class??""}`},get classList(){return{[`oasis-editor-ui-action-row-${a.align??"start"}`]:!0,"oasis-editor-ui-action-row-nowrap":!1===a.wrap,...a.classList}}},r),!1,!0),t(o,()=>a.children),o;var o}var Ie=/*#__PURE__*/S("<div>"),He={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Oe(e){const[a,r]=F(e,["align","class","style","children"]);return o=Ie(),c(o,b({get class(){return`oasis-editor-ui-field-row ${a.class??""}`},get style(){return{"align-items":He[a.align??"end"],..."object"==typeof a.style?a.style:{}}}},r),!1,!0),t(o,()=>a.children),o;var o}var Ee=/*#__PURE__*/S("<div>");function Me(e){const[a,r]=F(e,["align","class","classList","children"]);return o=Ee(),c(o,b({get class(){return`oasis-editor-ui-dialog-footer ${a.class??""}`},get classList(){return{[`oasis-editor-ui-dialog-footer-${a.align??"end"}`]:!0,...a.classList}}},r),!1,!0),t(o,()=>a.children),o;var o}var Ne={saveDocument:"editor-toolbar-save-document",newDocument:"editor-toolbar-new-document",importDocument:"editor-toolbar-import-document",exportDocx:"editor-toolbar-export-docx",exportPdf:"editor-toolbar-export-pdf",print:"editor-toolbar-print",undo:"editor-toolbar-undo",redo:"editor-toolbar-redo",style:"editor-toolbar-style",fontFamily:"editor-toolbar-font-family",fontSize:"editor-toolbar-font-size",color:"editor-toolbar-color",highlight:"editor-toolbar-highlight",textShading:"editor-toolbar-text-shading",bold:"editor-toolbar-bold",italic:"editor-toolbar-italic",underlineControl:"editor-toolbar-underline-control",strike:"editor-toolbar-strike",superscript:"editor-toolbar-superscript",subscript:"editor-toolbar-subscript",insertImage:"editor-toolbar-insert-image",insertTable:"editor-toolbar-insert-table",symbols:"editor-toolbar-symbols",link:"editor-toolbar-link",unlink:"editor-toolbar-unlink",footnote:"editor-toolbar-footnote",imageAlt:"editor-toolbar-image-alt",imageCaption:"editor-toolbar-image-caption",alignLeft:"editor-toolbar-align-left",alignCenter:"editor-toolbar-align-center",alignRight:"editor-toolbar-align-right",alignJustify:"editor-toolbar-align-justify",bulletList:"editor-toolbar-list-bullet",orderedList:"editor-toolbar-list-ordered",outdent:"editor-toolbar-list-outdent",indent:"editor-toolbar-list-indent",listOptions:"editor-toolbar-list-options",specialIndent:"editor-toolbar-special-indent",lineSpacing:"editor-toolbar-line-spacing-control",metrics:"editor-toolbar-metrics",margins:"editor-toolbar-margins",section:"editor-toolbar-section"},We={fileNew:"file_new",fileImport:"file_import",fileSave:"file_save",fileExport:"file_export",fileExportPdf:"file_export_pdf",fileExportDocx:"file_export_docx",filePrint:"file_print",editUndo:"edit_undo",editRedo:"edit_redo",editCopy:"edit_copy",editFind:"edit_find",editSelectAll:"edit_selectAll",viewMargins:"view_margins",viewParagraphMarks:"view_paragraph_marks",viewPreciseFonts:"view_precise_fonts",insertImage:"insert_image",insertImageCaption:"insert_image_caption",insertTable:"insert_table",insertLink:"insert_link",insertFootnote:"insert_footnote",insertPageBreak:"insert_pageBreak",formatText:"format_text",formatTextBold:"format_text_bold",formatTextItalic:"format_text_italic",formatTextUnderline:"format_text_underline",formatTextStrike:"format_text_strike",formatAlign:"format_align",formatAlignLeft:"format_align_left",formatAlignCenter:"format_align_center",formatAlignRight:"format_align_right",formatAlignJustify:"format_align_justify",formatLists:"format_lists",formatListsBullet:"format_lists_bullet",formatListsNumbered:"format_lists_numbered"};export{Le as ActionRow,Pe as BalloonShell,f as Button,ue as Checkbox,G as ColorField,q as ColorPicker,q as ToolbarColorPicker,R as CommandRegistry,fe as DEFAULT_PALETTE,K as Dialog,Me as DialogFooter,i as DocumentShell,J as EDITOR_SCHEMA_VERSION,D as Editor,U as FieldGroup,Oe as FieldRow,a as FloatingActionButton,le as FormField,ae as Grid,ve as GridPicker,ve as ToolbarGridPicker,he as Heading,B as IconButton,y as InlineShell,Ce as Menu,Ce as ToolbarMenu,L as MenuRegistry,$ as NumberField,Be as OASIS_BUILTIN_COMMANDS,We as OASIS_MENU_ITEMS,Ne as OASIS_TOOLBAR_ITEMS,_e as OasisEditorAppLazy,ke as OasisEditorContainer,w as OasisEditorLoading,p as PluginCollection,A as Popover,T as RIBBON_TABS,ge as Radio,pe as RadioGroup,o as Select,o as ToolbarSelect,ie as SelectField,k as Separator,k as ToolbarSeparator,d as SidePanel,n as SidePanelBody,P as SidePanelFooter,oe as SidePanelHeader,Te as SplitButton,Te as ToolbarSplitButton,Z as Stack,j as StatusText,W as StyleGallery,C as SurfaceButton,Fe as Tabs,u as Text,Q as TextAreaField,ce as TextField,re as ToggleChip,ne as Toolbar,g as ToolbarButton,s as buildRibbonTabDefinitions,X as cloneDocument,z as commandRefName,me as createDefaultToolbarPreset,de as createDocument,Ae as createEditorCommandBus,se as createHeading,we as createOasisEditor,ye as createOasisEditorContainer,ee as createParagraph,Y as createTable,E as createToolbarRegistry,H as exportEditorDocumentToHtml,_ as importHtmlToEditorDocument,De as mount,N as normalizeDocument,v as projectTrackedRevisions,te as registerToolbarRenderer,e as resolveAllTrackedRevisions,xe as resolveCommandRef,V as resolveTrackedRevision,be as validateDocument};