oasis-editor 0.0.378 → 0.0.380
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/OasisEditorApp-DPVuZiUV.js +1 -0
- package/dist/assets/{importDocxWorker-B13OESgI.js → importDocxWorker-pLxNACCd.js} +1239 -1182
- package/dist/core/document/fieldMutation.d.ts +18 -0
- package/dist/core/document/paragraphRunEdit.d.ts +9 -0
- package/dist/{defaultToolbar-CgJlrQ3u.js → defaultToolbar-NLzzqKtC.js} +1 -1
- package/dist/import/docx/runs/fieldPreservation.d.ts +7 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/package.json +1 -1
- package/dist/OasisEditorApp-DvBGpr7z.js +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ImportedRun } from './types.js';
|
|
2
|
+
/** Scalar projection must never flatten typed objects, markers, links or
|
|
3
|
+
* distinct formatting. Conservative: retain runs on any ambiguous shape. */
|
|
4
|
+
export declare function canProjectFieldResult(runs: readonly ImportedRun[]): boolean;
|
|
5
|
+
/** Accept only a single well-ordered complex span. A missing separator is
|
|
6
|
+
* permitted for the legacy instruction-only PAGE representation. */
|
|
7
|
+
export declare function inspectScalarFieldSpan(span: readonly ImportedRun[]): ImportedRun[] | undefined;
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,$i as t,At as a,Ci as r,Cr as o,Ct as i,Dr as s,Dt as n,Ei as l,Er as g,Et as d,Gr as c,Hi as p,Ji as m,Kr as u,Li as b,Mi as f,Oi as h,Or as S,Ot as C,Pi as x,Q as T,Qi as P,Qr as v,Rr as k,Si as w,Sr as y,St as F,Tr as _,Tt as D,Wi as A,X as B,Xi as R,Yt as L,Z as O,Zr as H,_i as I,_t as E,at as M,bi as N,br as W,bt as j,ct as z,dt as q,ea as U,ei as K,et as $,ft as G,gi as J,gr as V,gt as Q,hi as X,hr as Y,ht as Z,it as ee,kr as te,kt as ae,lt as re,mi as oe,mt as ie,ot as se,pi as ne,pt as le,qr as ge,st as de,t as ce,ut as pe,vi as me,vr as ue,vt as be,wi as fe,wr as he,xr as Se,xt as Ce,yi as xe,yr as Te,yt as Pe,zi as ve,zr as ke}from"./defaultToolbar-CgJlrQ3u.js";function we(e={}){const a=h(()=>e.ui?.locale??"pt-BR"),[r,o]=m(0),[i,s]=m(null),n=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return t(()=>{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),P(()=>{t=!0}),import("./OasisEditorApp-DvBGpr7z.js").then(e=>{t=!0,o(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),A(l,{translator:a,get children(){return A(p,{get when(){return i()},get fallback(){return A(fe,{variant:"fill",get progress(){return r()},get label(){return n()?.label},get class(){return n()?.class},get style(){return n()?.style}})},children:t=>{const a=t();return A(a,e)}})}})}function ye(e,t={}){const a=H(),r=x(()=>we({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{r(),e.innerHTML=""}),a}function Fe(e){return A(we,R(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function _e(e,t={}){const a=H(),r=x(()=>Fe({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{r(),e.innerHTML=""}),a}function De(e){return{execute(t,a){const o=r(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=r(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=r(t);return e.commands.state(a.name,a.payload)}}}var Ae=["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 Be(e,t={}){const a=H(),r=x(()=>A(we,R(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{r(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}var Re=/*#__PURE__*/ve("<div>");function Le(e){const[t,a]=U(e,["align","wrap","class","classList","children"]);return r=Re(),b(r,R({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),f(r,()=>t.children),r;var r}var Oe=/*#__PURE__*/ve("<div>"),He={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Ie(e){const[t,a]=U(e,["align","class","style","children"]);return r=Oe(),b(r,R({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),f(r,()=>t.children),r;var r}var Ee=/*#__PURE__*/ve("<div>");function Me(e){const[t,a]=U(e,["align","class","classList","children"]);return r=Ee(),b(r,R({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),f(r,()=>t.children),r;var r}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,Ce as BalloonShell,L as Button,pe as Checkbox,q as ColorField,Se as ColorPicker,Se as ToolbarColorPicker,u as CommandRegistry,Te as DEFAULT_PALETTE,j as Dialog,Me as DialogFooter,i as DocumentShell,ne as EDITOR_SCHEMA_VERSION,c as Editor,M as FieldGroup,Ie as FieldRow,a as FloatingActionButton,ie as FormField,Z as Grid,W as GridPicker,W as ToolbarGridPicker,be as Heading,D as IconButton,F as InlineShell,_ as Menu,_ as ToolbarMenu,B as MenuRegistry,z as NumberField,Ae as OASIS_BUILTIN_COMMANDS,We as OASIS_MENU_ITEMS,Ne as OASIS_TOOLBAR_ITEMS,we as OasisEditorAppLazy,Fe as OasisEditorContainer,fe as OasisEditorLoading,ge as PluginCollection,g as Popover,te as RIBBON_TABS,se as Radio,de as RadioGroup,he as Select,he as ToolbarSelect,re as SelectField,o as Separator,o as ToolbarSeparator,d as SidePanel,n as SidePanelBody,C as SidePanelFooter,ae as SidePanelHeader,y as SplitButton,y as ToolbarSplitButton,Q as Stack,E as StatusText,ue as StyleGallery,ke as SurfaceButton,Pe as Tabs,k as Text,G as TextAreaField,le as TextField,ee as ToggleChip,Y as Toolbar,s as ToolbarButton,S as buildRibbonTabDefinitions,oe as cloneDocument,w as commandRefName,ce as createDefaultToolbarPreset,X as createDocument,De as createEditorCommandBus,J as createHeading,ye as createOasisEditor,_e as createOasisEditorContainer,I as createParagraph,me as createTable,O as createToolbarRegistry,v as exportEditorDocumentToHtml,K as importHtmlToEditorDocument,Be as mount,xe as normalizeDocument,T as projectTrackedRevisions,V as registerToolbarRenderer,e as resolveAllTrackedRevisions,r as resolveCommandRef,$ as resolveTrackedRevision,N as validateDocument};
|
|
1
|
+
import{$r as e,Ai as t,Ar as a,Bi as o,Ci as r,Ct as i,Dr as s,Dt as n,Ei as l,Er as g,Et as d,Fr as c,Ft as p,Gi as m,Gr as u,It as b,Ji as f,Mi as h,Mr as S,Mt as C,Nr as x,Nt as T,Oi as P,Or as F,Ot as k,Pi as w,Pr as v,Pt as y,Qr as A,Ri as B,Si as D,Sr as _,St as R,Ti as L,Tr as I,Tt as O,Ui as E,Wr as H,Xi as M,Zr as N,_t as W,aa as j,at as U,bi as z,bt as q,dt as K,ea as $,ft as G,gt as J,ht as V,ia as X,ii as Q,it as Y,jr as Z,jt as ee,ki as te,kr as ae,kt as oe,mt as re,na as ie,nt as se,oa as ne,oi as le,ot as ge,pt as de,ri as ce,rt as pe,t as me,tn as ue,ut as be,vt as fe,wi as he,wr as Se,wt as Ce,xi as xe,xr as Te,xt as Pe,yi as Fe,yt as ke}from"./defaultToolbar-NLzzqKtC.js";function we(e={}){const a=w(()=>e.ui?.locale??"pt-BR"),[o,r]=$(0),[i,s]=$(null),n=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return j(()=>{const e=performance.now();let t=!1;const a=()=>{if(t)return;const o=performance.now()-e;r(.9*(1-Math.exp(-o/5e3))),requestAnimationFrame(a)};requestAnimationFrame(a),X(()=>{t=!0}),import("./OasisEditorApp-DPVuZiUV.js").then(e=>{t=!0,r(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),M(h,{translator:a,get children(){return M(f,{get when(){return i()},get fallback(){return M(t,{variant:"fill",get progress(){return o()},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 ve(e,t={}){const a=ce(),r=o(()=>we({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{r(),e.innerHTML=""}),a}function ye(e){return M(we,ie(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function Ae(e,t={}){const a=ce(),r=o(()=>ye({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{r(),e.innerHTML=""}),a}function Be(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 De=["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 _e(e,t={}){const a=ce(),r=o(()=>M(we,ie(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{r(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}var Re=/*#__PURE__*/m("<div>");function Le(e){const[t,a]=ne(e,["align","wrap","class","classList","children"]);return o=Re(),E(o,ie({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),B(o,()=>t.children),o;var o}var Ie=/*#__PURE__*/m("<div>"),Oe={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Ee(e){const[t,a]=ne(e,["align","class","style","children"]);return o=Ie(),E(o,ie({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:{}}}},a),!1,!0),B(o,()=>t.children),o;var o}var He=/*#__PURE__*/m("<div>");function Me(e){const[t,a]=ne(e,["align","class","classList","children"]);return o=He(),E(o,ie({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),B(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,n as BalloonShell,ue as Button,J as Checkbox,W as ColorField,s as ColorPicker,s as ToolbarColorPicker,A as CommandRegistry,I as DEFAULT_PALETTE,d as Dialog,Me as DialogFooter,oe as DocumentShell,Fe as EDITOR_SCHEMA_VERSION,N as Editor,K as FieldGroup,Ee as FieldRow,b as FloatingActionButton,q as FormField,Pe as Grid,g as GridPicker,g as ToolbarGridPicker,Ce as Heading,ee as IconButton,k as InlineShell,Z as Menu,Z as ToolbarMenu,se as MenuRegistry,re as NumberField,De as OASIS_BUILTIN_COMMANDS,We as OASIS_MENU_ITEMS,Ne as OASIS_TOOLBAR_ITEMS,we as OasisEditorAppLazy,ye as OasisEditorContainer,t as OasisEditorLoading,e as PluginCollection,S as Popover,c as RIBBON_TABS,G as Radio,de as RadioGroup,a as Select,a as ToolbarSelect,V as SelectField,ae as Separator,ae as ToolbarSeparator,C as SidePanel,T as SidePanelBody,y as SidePanelFooter,p as SidePanelHeader,F as SplitButton,F as ToolbarSplitButton,R as Stack,i as StatusText,Se as StyleGallery,u as SurfaceButton,O as Tabs,H as Text,fe as TextAreaField,ke as TextField,be as ToggleChip,Te as Toolbar,x as ToolbarButton,v as buildRibbonTabDefinitions,z as cloneDocument,P as commandRefName,me as createDefaultToolbarPreset,xe as createDocument,Be as createEditorCommandBus,D as createHeading,ve as createOasisEditor,Ae as createOasisEditorContainer,r as createParagraph,he as createTable,pe as createToolbarRegistry,Q as exportEditorDocumentToHtml,le as importHtmlToEditorDocument,_e as mount,L as normalizeDocument,Y as projectTrackedRevisions,_ as registerToolbarRenderer,U as resolveAllTrackedRevisions,te as resolveCommandRef,ge as resolveTrackedRevision,l as validateDocument};
|