oasis-editor 0.0.320 → 0.0.322
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-CmIVKFcK.js → OasisEditorApp-BkaBeXg2.js} +1 -1
- package/dist/core/commands/reviewMarkup.d.ts +19 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/ui/OasisEditorAppProps.d.ts +5 -0
- package/dist/ui/canvas/CanvasChangeBarGeometry.d.ts +12 -8
- package/package.json +1 -1
|
@@ -84,6 +84,25 @@ export declare function reviewDisplayProjection(mode: ReviewDisplayMode | undefi
|
|
|
84
84
|
* no editable zone and are not walked.
|
|
85
85
|
*/
|
|
86
86
|
export declare function collectChangeBarParagraphIds(state: EditorState): Set<string>;
|
|
87
|
+
/** A visible revision's extent in the accepted (final) text of a paragraph. */
|
|
88
|
+
export interface ChangeBarRange {
|
|
89
|
+
start: number;
|
|
90
|
+
end: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Per-paragraph extents of visible revisions, expressed in *final-text* offsets
|
|
94
|
+
* — the coordinate space of Simple Markup's projected layout. A `null` value
|
|
95
|
+
* means the whole paragraph is changed (a table/row/cell/grid revision covers
|
|
96
|
+
* every line), while an array marks only the lines overlapping those ranges.
|
|
97
|
+
*
|
|
98
|
+
* Inserted and property-revision runs survive the "final" projection, so their
|
|
99
|
+
* offsets are used directly. Deleted runs are removed from the projection, so
|
|
100
|
+
* they contribute a narrow marker at the join point instead: the line the text
|
|
101
|
+
* disappeared from is still marked. Show Markup filters are applied through
|
|
102
|
+
* `isRevisionMarkupShown`, keeping this in lockstep with
|
|
103
|
+
* `collectChangeBarParagraphIds`.
|
|
104
|
+
*/
|
|
105
|
+
export declare function collectChangeBarRanges(state: EditorState): Map<string, ChangeBarRange[] | null>;
|
|
87
106
|
/** The explicit author allow-list, or null when all authors are shown. */
|
|
88
107
|
export declare function visibleMarkupAuthors(state: EditorState): string[] | null;
|
|
89
108
|
/** Flip one markup section; returns the same state when nothing changes. */
|
package/dist/oasis-editor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,$i as t,$o as a,$r as o,Ai as r,At as i,Bo as s,Co as n,Ct as l,Dt as g,Eo as d,Fi as c,Fo as p,Gi as m,Go as u,Mt as b,No as f,Oi as h,Oo as S,Ot as C,Pi as x,Pn as T,Qi as P,Ro as F,Si as k,So as v,St as w,Tt as A,Uo as B,Xi as _,Xr as y,Yo as D,Zi as R,Zo as L,Zr as O,_t as I,bt as H,ci as E,ct as M,di as N,dt as W,ea as j,ei as $,es as U,et as z,fi as q,ft as K,gt as G,ht as V,jt as J,ki as X,ko as Z,kt as Y,li as Q,lt as ee,mt as te,na as ae,ni as oe,nt as re,oi as ie,pi as se,pt as ne,ra as le,rt as ge,si as de,st as ce,t as pe,ta as me,ti as ue,ts as be,tt as fe,ui as he,ut as Se,vt as Ce,wo as xe,wt as Te,xi as Pe,xt as Fe,yt as ke}from"./defaultToolbar-COMYxry_.js";function ve(e={}){const t=S(()=>e.ui?.locale??"pt-BR"),[o,r]=D(0),[i,s]=D(null),n=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return U(()=>{const e=performance.now();let t=!1;const o=()=>{if(t)return;const a=performance.now()-e;r(.9*(1-Math.exp(-a/5e3))),requestAnimationFrame(o)};requestAnimationFrame(o),a(()=>{t=!0}),import("./OasisEditorApp-CmIVKFcK.js").then(e=>{t=!0,r(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),u(d,{translator:t,get children(){return u(B,{get when(){return i()},get fallback(){return u(xe,{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 u(a,e)}})}})}function we(e,t={}){const a=x(),o=p(()=>ve({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function Ae(e){return u(ve,L(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function Be(e,t={}){const a=x(),o=p(()=>Ae({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function _e(e){return{execute(t,a){const o=n(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=n(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=n(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 a=x(),o=p(()=>u(ve,L(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{o(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}function Re(e){const[t,a]=be(e,["level","class","classList","children"]),o=t.level??2;return u(Z,L({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 Le=/*#__PURE__*/s("<div>");function Oe(e){const[t,a]=be(e,["align","wrap","class","classList","children"]);return o=Le(),F(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),f(o,()=>t.children),o;var o}var Ie=/*#__PURE__*/s("<div>"),He={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Ee(e){const[t,a]=be(e,["align","class","style","children"]);return o=Ie(),F(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),f(o,()=>t.children),o;var o}var Me=/*#__PURE__*/s("<div>");function Ne(e){const[t,a]=be(e,["align","class","classList","children"]);return o=Me(),F(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),f(o,()=>t.children),o;var o}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{Oe as ActionRow,l as BalloonShell,T as Button,ne as Checkbox,te as ColorField,oe as ColorPicker,oe as ToolbarColorPicker,X as CommandRegistry,$ as DEFAULT_PALETTE,w as Dialog,Ne as DialogFooter,A as DocumentShell,_ as EDITOR_SCHEMA_VERSION,h as Editor,M as FieldGroup,Ee as FieldRow,b as FloatingActionButton,I as FormField,Ce as Grid,ue as GridPicker,ue as ToolbarGridPicker,Re as Heading,g as IconButton,Te as InlineShell,Q as Menu,Q as ToolbarMenu,e as MenuRegistry,W as NumberField,ye as OASIS_BUILTIN_COMMANDS,je as OASIS_MENU_ITEMS,We as OASIS_TOOLBAR_ITEMS,ve as OasisEditorAppLazy,Ae as OasisEditorContainer,xe as OasisEditorLoading,r as PluginCollection,he as Popover,se as RIBBON_TABS,ee as Radio,Se as RadioGroup,E as Select,E as ToolbarSelect,K as SelectField,de as Separator,de as ToolbarSeparator,C as SidePanel,Y as SidePanelBody,i as SidePanelFooter,J as SidePanelHeader,ie as SplitButton,ie as ToolbarSplitButton,ke as Stack,H as StatusText,o as StyleGallery,k as SurfaceButton,Fe as Tabs,Pe as Text,V as TextAreaField,G as TextField,ce as ToggleChip,y as Toolbar,N as ToolbarButton,q as buildRibbonTabDefinitions,R as cloneDocument,v as commandRefName,pe as createDefaultToolbarPreset,P as createDocument,_e as createEditorCommandBus,t as createHeading,we as createOasisEditor,Be as createOasisEditorContainer,j as createParagraph,me as createTable,z as createToolbarRegistry,c as exportEditorDocumentToHtml,m as importHtmlToEditorDocument,De as mount,ae as normalizeDocument,fe as projectTrackedRevisions,O as registerToolbarRenderer,re as resolveAllTrackedRevisions,n as resolveCommandRef,ge as resolveTrackedRevision,le as validateDocument};
|
|
1
|
+
import{$ as e,$i as t,$o as a,$r as o,Ai as r,At as i,Bo as s,Co as n,Ct as l,Dt as g,Eo as d,Fi as c,Fo as p,Gi as m,Go as u,Mt as b,No as f,Oi as h,Oo as S,Ot as C,Pi as x,Pn as T,Qi as P,Ro as F,Si as k,So as v,St as w,Tt as A,Uo as B,Xi as _,Xr as y,Yo as D,Zi as R,Zo as L,Zr as O,_t as I,bt as H,ci as E,ct as M,di as N,dt as W,ea as j,ei as $,es as U,et as z,fi as q,ft as K,gt as G,ht as V,jt as J,ki as X,ko as Z,kt as Y,li as Q,lt as ee,mt as te,na as ae,ni as oe,nt as re,oi as ie,pi as se,pt as ne,ra as le,rt as ge,si as de,st as ce,t as pe,ta as me,ti as ue,ts as be,tt as fe,ui as he,ut as Se,vt as Ce,wo as xe,wt as Te,xi as Pe,xt as Fe,yt as ke}from"./defaultToolbar-COMYxry_.js";function ve(e={}){const t=S(()=>e.ui?.locale??"pt-BR"),[o,r]=D(0),[i,s]=D(null),n=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return U(()=>{const e=performance.now();let t=!1;const o=()=>{if(t)return;const a=performance.now()-e;r(.9*(1-Math.exp(-a/5e3))),requestAnimationFrame(o)};requestAnimationFrame(o),a(()=>{t=!0}),import("./OasisEditorApp-BkaBeXg2.js").then(e=>{t=!0,r(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),u(d,{translator:t,get children(){return u(B,{get when(){return i()},get fallback(){return u(xe,{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 u(a,e)}})}})}function we(e,t={}){const a=x(),o=p(()=>ve({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function Ae(e){return u(ve,L(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function Be(e,t={}){const a=x(),o=p(()=>Ae({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function _e(e){return{execute(t,a){const o=n(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=n(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=n(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 a=x(),o=p(()=>u(ve,L(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{o(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}function Re(e){const[t,a]=be(e,["level","class","classList","children"]),o=t.level??2;return u(Z,L({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 Le=/*#__PURE__*/s("<div>");function Oe(e){const[t,a]=be(e,["align","wrap","class","classList","children"]);return o=Le(),F(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),f(o,()=>t.children),o;var o}var Ie=/*#__PURE__*/s("<div>"),He={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function Ee(e){const[t,a]=be(e,["align","class","style","children"]);return o=Ie(),F(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),f(o,()=>t.children),o;var o}var Me=/*#__PURE__*/s("<div>");function Ne(e){const[t,a]=be(e,["align","class","classList","children"]);return o=Me(),F(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),f(o,()=>t.children),o;var o}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{Oe as ActionRow,l as BalloonShell,T as Button,ne as Checkbox,te as ColorField,oe as ColorPicker,oe as ToolbarColorPicker,X as CommandRegistry,$ as DEFAULT_PALETTE,w as Dialog,Ne as DialogFooter,A as DocumentShell,_ as EDITOR_SCHEMA_VERSION,h as Editor,M as FieldGroup,Ee as FieldRow,b as FloatingActionButton,I as FormField,Ce as Grid,ue as GridPicker,ue as ToolbarGridPicker,Re as Heading,g as IconButton,Te as InlineShell,Q as Menu,Q as ToolbarMenu,e as MenuRegistry,W as NumberField,ye as OASIS_BUILTIN_COMMANDS,je as OASIS_MENU_ITEMS,We as OASIS_TOOLBAR_ITEMS,ve as OasisEditorAppLazy,Ae as OasisEditorContainer,xe as OasisEditorLoading,r as PluginCollection,he as Popover,se as RIBBON_TABS,ee as Radio,Se as RadioGroup,E as Select,E as ToolbarSelect,K as SelectField,de as Separator,de as ToolbarSeparator,C as SidePanel,Y as SidePanelBody,i as SidePanelFooter,J as SidePanelHeader,ie as SplitButton,ie as ToolbarSplitButton,ke as Stack,H as StatusText,o as StyleGallery,k as SurfaceButton,Fe as Tabs,Pe as Text,V as TextAreaField,G as TextField,ce as ToggleChip,y as Toolbar,N as ToolbarButton,q as buildRibbonTabDefinitions,R as cloneDocument,v as commandRefName,pe as createDefaultToolbarPreset,P as createDocument,_e as createEditorCommandBus,t as createHeading,we as createOasisEditor,Be as createOasisEditorContainer,j as createParagraph,me as createTable,z as createToolbarRegistry,c as exportEditorDocumentToHtml,m as importHtmlToEditorDocument,De as mount,ae as normalizeDocument,fe as projectTrackedRevisions,O as registerToolbarRenderer,re as resolveAllTrackedRevisions,n as resolveCommandRef,ge as resolveTrackedRevision,le as validateDocument};
|