oasis-editor 0.0.286 → 0.0.288

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 +1 @@
1
- import{$ as e,$i as t,Ao as a,At as o,Bo as r,Ct as i,Di as s,Do as n,Dt as l,Ei as g,Eo as d,Fo as c,Ho as m,Ji as u,Jo as p,Ko as b,Lo as f,Mi as h,Mo as S,Mt as C,Ni as x,Nn as T,Oi as P,Ot as F,Qi as B,Qo as _,Qr as w,So as y,St as D,Tt as k,Ui as v,Xi as A,Xo as L,Xr as R,Yi as H,Yr as I,Zi as E,Zo as N,Zr as O,_t as M,bi as W,bo as j,bt as $,ci as U,ct as z,di as K,dt as q,ea as J,ei as V,et as X,fi as G,ft as Q,gt as Y,ht as Z,jt as ee,kt as te,li as ae,lt as oe,mt as re,ni as ie,nt as se,pt as ne,ri as le,rt as ge,si as de,st as ce,t as me,ta as ue,ti as pe,tt as be,ui as fe,ut as he,vt as Se,wo as Ce,wt as xe,xo as Te,xt as Pe,yi as Fe,yt as Be}from"./defaultToolbar-DbTbnEI1.js";function _e(e={}){const t=d(()=>e.ui?.locale??"pt-BR"),[a,o]=b(0),[i,s]=b(null),n=()=>{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 r=performance.now()-e;o(.9*(1-Math.exp(-r/5e3))),requestAnimationFrame(a)};requestAnimationFrame(a),L(()=>{t=!0}),import("./OasisEditorApp--pDBHFEl.js").then(e=>{t=!0,o(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),m(Ce,{translator:t,get children(){return m(r,{get when(){return i()},get fallback(){return m(y,{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=h(),o=S(()=>_e({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function ye(e){return m(_e,p(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function De(e,t={}){const a=h(),o=S(()=>ye({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function ke(e){return{execute(t,a){const o=Te(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=Te(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=Te(t);return e.commands.state(a.name,a.payload)}}}var ve=["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","acceptRevisions","rejectRevisions","acceptAllRevisions","rejectAllRevisions","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"];function Ae(e,t={}){const a=h(),o=S(()=>m(_e,p(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{o(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}function Le(e){const[t,a]=_(e,["level","class","classList","children"]),o=t.level??2;return m(n,p({component:`h${o}`,get class(){return`oasis-editor-ui-heading ${t.class??""}`},get classList(){return{[`oasis-editor-ui-heading-${o}`]:!0,...t.classList}}},a,{get children(){return t.children}}))}var Re=/*#__PURE__*/f("<div>");function He(e){const[t,o]=_(e,["align","wrap","class","classList","children"]);return r=Re(),c(r,p({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}}},o),!1,!0),a(r,()=>t.children),r;var r}var Ie=/*#__PURE__*/f("<div>"),Ee={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Ne(e){const[t,o]=_(e,["align","class","style","children"]);return r=Ie(),c(r,p({get class(){return`oasis-editor-ui-field-row ${t.class??""}`},get style(){return{"align-items":Ee[t.align??"end"],..."object"==typeof t.style?t.style:{}}}},o),!1,!0),a(r,()=>t.children),r;var r}var Oe=/*#__PURE__*/f("<div>");function Me(e){const[t,o]=_(e,["align","class","classList","children"]);return r=Oe(),c(r,p({get class(){return`oasis-editor-ui-dialog-footer ${t.class??""}`},get classList(){return{[`oasis-editor-ui-dialog-footer-${t.align??"end"}`]:!0,...t.classList}}},o),!1,!0),a(r,()=>t.children),r;var r}var We={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"},je={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{He as ActionRow,i as BalloonShell,T as Button,ne as Checkbox,re as ColorField,le as ColorPicker,le as ToolbarColorPicker,s as CommandRegistry,pe as DEFAULT_PALETTE,D as Dialog,Me as DialogFooter,k as DocumentShell,u as EDITOR_SCHEMA_VERSION,g as Editor,z as FieldGroup,Ne as FieldRow,C as FloatingActionButton,M as FormField,Se as Grid,ie as GridPicker,ie as ToolbarGridPicker,Le as Heading,l as IconButton,xe as InlineShell,fe as Menu,fe as ToolbarMenu,e as MenuRegistry,q as NumberField,ve as OASIS_BUILTIN_COMMANDS,je as OASIS_MENU_ITEMS,We as OASIS_TOOLBAR_ITEMS,_e as OasisEditorAppLazy,ye as OasisEditorContainer,y as OasisEditorLoading,P as PluginCollection,K as Popover,O as RIBBON_TABS,oe as Radio,he as RadioGroup,ae as Select,ae as ToolbarSelect,Q as SelectField,U as Separator,U as ToolbarSeparator,F as SidePanel,te as SidePanelBody,o as SidePanelFooter,ee as SidePanelHeader,de as SplitButton,de as ToolbarSplitButton,Be as Stack,$ as StatusText,V as StyleGallery,W as SurfaceButton,Pe as Tabs,Fe as Text,Z as TextAreaField,Y as TextField,ce as ToggleChip,I as Toolbar,G as ToolbarButton,R as buildRibbonTabDefinitions,H as cloneDocument,j as commandRefName,me as createDefaultToolbarPreset,A as createDocument,ke as createEditorCommandBus,E as createHeading,we as createOasisEditor,De as createOasisEditorContainer,B as createParagraph,t as createTable,X as createToolbarRegistry,x as exportEditorDocumentToHtml,v as importHtmlToEditorDocument,Ae as mount,J as normalizeDocument,be as projectTrackedRevisions,w as registerToolbarRenderer,se as resolveAllTrackedRevisions,Te as resolveCommandRef,ge as resolveTrackedRevision,ue as validateDocument};
1
+ import{$ as e,$i as t,Ao as a,At as o,Bo as r,Ct as i,Di as s,Do as n,Dt as l,Ei as g,Eo as d,Fo as c,Ho as m,Ji as u,Jo as p,Ko as b,Lo as f,Mi as h,Mo as S,Mt as C,Ni as x,Nn as T,Oi as P,Ot as F,Qi as B,Qo as _,Qr as w,So as y,St as D,Tt as k,Ui as v,Xi as A,Xo as L,Xr as R,Yi as H,Yr as I,Zi as E,Zo as N,Zr as O,_t as M,bi as W,bo as j,bt as $,ci as U,ct as z,di as K,dt as q,ea as J,ei as V,et as X,fi as G,ft as Q,gt as Y,ht as Z,jt as ee,kt as te,li as ae,lt as oe,mt as re,ni as ie,nt as se,pt as ne,ri as le,rt as ge,si as de,st as ce,t as me,ta as ue,ti as pe,tt as be,ui as fe,ut as he,vt as Se,wo as Ce,wt as xe,xo as Te,xt as Pe,yi as Fe,yt as Be}from"./defaultToolbar-BM0I93SF.js";function _e(e={}){const t=d(()=>e.ui?.locale??"pt-BR"),[a,o]=b(0),[i,s]=b(null),n=()=>{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 r=performance.now()-e;o(.9*(1-Math.exp(-r/5e3))),requestAnimationFrame(a)};requestAnimationFrame(a),L(()=>{t=!0}),import("./OasisEditorApp-Co2bJnga.js").then(e=>{t=!0,o(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),m(Ce,{translator:t,get children(){return m(r,{get when(){return i()},get fallback(){return m(y,{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=h(),o=S(()=>_e({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function ye(e){return m(_e,p(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function De(e,t={}){const a=h(),o=S(()=>ye({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function ke(e){return{execute(t,a){const o=Te(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=Te(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=Te(t);return e.commands.state(a.name,a.payload)}}}var ve=["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","acceptRevisions","rejectRevisions","acceptAllRevisions","rejectAllRevisions","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"];function Ae(e,t={}){const a=h(),o=S(()=>m(_e,p(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{o(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}function Le(e){const[t,a]=_(e,["level","class","classList","children"]),o=t.level??2;return m(n,p({component:`h${o}`,get class(){return`oasis-editor-ui-heading ${t.class??""}`},get classList(){return{[`oasis-editor-ui-heading-${o}`]:!0,...t.classList}}},a,{get children(){return t.children}}))}var Re=/*#__PURE__*/f("<div>");function He(e){const[t,o]=_(e,["align","wrap","class","classList","children"]);return r=Re(),c(r,p({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}}},o),!1,!0),a(r,()=>t.children),r;var r}var Ie=/*#__PURE__*/f("<div>"),Ee={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Ne(e){const[t,o]=_(e,["align","class","style","children"]);return r=Ie(),c(r,p({get class(){return`oasis-editor-ui-field-row ${t.class??""}`},get style(){return{"align-items":Ee[t.align??"end"],..."object"==typeof t.style?t.style:{}}}},o),!1,!0),a(r,()=>t.children),r;var r}var Oe=/*#__PURE__*/f("<div>");function Me(e){const[t,o]=_(e,["align","class","classList","children"]);return r=Oe(),c(r,p({get class(){return`oasis-editor-ui-dialog-footer ${t.class??""}`},get classList(){return{[`oasis-editor-ui-dialog-footer-${t.align??"end"}`]:!0,...t.classList}}},o),!1,!0),a(r,()=>t.children),r;var r}var We={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"},je={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{He as ActionRow,i as BalloonShell,T as Button,ne as Checkbox,re as ColorField,le as ColorPicker,le as ToolbarColorPicker,s as CommandRegistry,pe as DEFAULT_PALETTE,D as Dialog,Me as DialogFooter,k as DocumentShell,u as EDITOR_SCHEMA_VERSION,g as Editor,z as FieldGroup,Ne as FieldRow,C as FloatingActionButton,M as FormField,Se as Grid,ie as GridPicker,ie as ToolbarGridPicker,Le as Heading,l as IconButton,xe as InlineShell,fe as Menu,fe as ToolbarMenu,e as MenuRegistry,q as NumberField,ve as OASIS_BUILTIN_COMMANDS,je as OASIS_MENU_ITEMS,We as OASIS_TOOLBAR_ITEMS,_e as OasisEditorAppLazy,ye as OasisEditorContainer,y as OasisEditorLoading,P as PluginCollection,K as Popover,O as RIBBON_TABS,oe as Radio,he as RadioGroup,ae as Select,ae as ToolbarSelect,Q as SelectField,U as Separator,U as ToolbarSeparator,F as SidePanel,te as SidePanelBody,o as SidePanelFooter,ee as SidePanelHeader,de as SplitButton,de as ToolbarSplitButton,Be as Stack,$ as StatusText,V as StyleGallery,W as SurfaceButton,Pe as Tabs,Fe as Text,Z as TextAreaField,Y as TextField,ce as ToggleChip,I as Toolbar,G as ToolbarButton,R as buildRibbonTabDefinitions,H as cloneDocument,j as commandRefName,me as createDefaultToolbarPreset,A as createDocument,ke as createEditorCommandBus,E as createHeading,we as createOasisEditor,De as createOasisEditorContainer,B as createParagraph,t as createTable,X as createToolbarRegistry,x as exportEditorDocumentToHtml,v as importHtmlToEditorDocument,Ae as mount,J as normalizeDocument,be as projectTrackedRevisions,w as registerToolbarRenderer,se as resolveAllTrackedRevisions,Te as resolveCommandRef,ge as resolveTrackedRevision,ue as validateDocument};