oasis-editor 0.0.333 → 0.0.335

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