oasis-editor 0.0.369 → 0.0.371

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.
@@ -10,6 +10,8 @@ export interface EditorTextDragDeps {
10
10
  applyTransactionalState: (producer: (current: EditorState) => EditorState, options?: {
11
11
  mergeKey?: MergeKey;
12
12
  }) => void;
13
+ /** Commits a state without recording undo history (view-only changes). */
14
+ applyState: (state: EditorState) => void;
13
15
  applyTableAwareParagraphEdit: (state: EditorState, edit: (state: EditorState) => EditorState) => EditorState;
14
16
  clearPreferredColumn: () => void;
15
17
  resetTransactionGrouping: () => void;
@@ -20,6 +22,18 @@ export interface EditorTextDragDeps {
20
22
  warn?: (msg: string, payload?: unknown) => void;
21
23
  };
22
24
  }
25
+ /**
26
+ * A press that lands inside the current selection and never becomes a drag
27
+ * collapses the caret at the pressed offset (Word parity). This is a caret
28
+ * move, not a document edit, so it must not enter the undo stack: `Word` does
29
+ * not record an undo step for clicking, and a recorded no-op entry would make
30
+ * the first Ctrl+Z after a click do nothing visible.
31
+ *
32
+ * Returns `state` unchanged when the position is outside the selection, which
33
+ * is the signal that the press is a fresh caret placement (handled by the
34
+ * surface) rather than a collapse.
35
+ */
36
+ export declare function collapseSelectionAtPosition(state: EditorState, position: EditorPosition): EditorState;
23
37
  /** Cross-story drops are explicit transactions, not edits of the active
24
38
  * zone's flattened paragraph stream. Unsupported transfers are no-ops. */
25
39
  export declare function applyTextDragDrop(state: EditorState, destination: EditorPosition, hit: Pick<SurfaceHit, "zone" | "paragraphId" | "paragraphOffset" | "tableCellAnchorPosition">, copy: boolean, edit: EditorTextDragDeps["applyTableAwareParagraphEdit"], onRejected?: (error: unknown) => void): EditorState;
@@ -26,7 +26,6 @@ export declare const MERGE_KEYS: {
26
26
  readonly fontDialog: "font-dialog";
27
27
  readonly copyTextByDrag: "copyTextByDrag";
28
28
  readonly moveTextByDrag: "moveTextByDrag";
29
- readonly collapseSelectionByClick: "collapseSelectionByClick";
30
29
  readonly mergeTable: "mergeTable";
31
30
  readonly splitTable: "splitTable";
32
31
  readonly insertTableColumn: "insertTableColumn";
@@ -0,0 +1,11 @@
1
+ import { OpaqueTransferInsertionPlan } from '../../../ooxml/word/opaqueTransferInsertion.js';
2
+ export interface AppliedOpaqueTransfer {
3
+ buffer: ArrayBuffer;
4
+ plan: OpaqueTransferInsertionPlan;
5
+ }
6
+ /** Standalone package-level integration step, not an editor paste command.
7
+ * Recompute from the actual destination bytes; append to one existing direct
8
+ * body paragraph. Only the main story, its .rels, and [Content_Types].xml
9
+ * may change. Return nothing on ANY failed preflight or postcondition.
10
+ * This is deliberately not exported through the editor public API yet. */
11
+ export declare function applyOpaqueTransferToDocx(destination: ArrayBuffer, manifest: unknown, paragraphIndex: number): Promise<AppliedOpaqueTransfer>;
@@ -1 +1 @@
1
- import{$ as e,$i as t,$r as a,At as r,Ci as o,Cr as i,Ct as s,Di as n,Dr as l,Dt as g,Er as d,Et as c,Gr as p,Ii as m,Jt as u,Kr as b,Lr as f,Ni as h,Or as S,Ot as C,Q as x,Qi as T,Ri as P,Rr as v,Si as _,Sr as y,St as D,Ti as F,Tr as k,Tt as w,Ui as A,Vi as B,Wr as R,X as L,Xr as I,Yi as O,Z as H,Zi as E,Zr as N,_i as M,_r as W,_t as j,at as U,br as q,bt as z,ct as $,dt as K,et as V,fi as G,ft as J,gi as X,gt as Z,hi as Q,hr as Y,ht as ee,it as te,ji as ae,kt as re,lt as oe,mi as ie,mr as se,mt as ne,ot as le,pi as ge,pt as de,qi as ce,st as pe,t as me,ut as ue,vi as be,vr as fe,vt as he,wr as Se,xi as Ce,xr as xe,xt as Te,yi as Pe,yr as ve,yt as _e}from"./defaultToolbar-D0rn6_HF.js";function ye(e={}){const t=n(()=>e.ui?.locale??"pt-BR"),[a,r]=ce(0),[i,s]=ce(null),l=()=>{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 o=performance.now()-e;r(.9*(1-Math.exp(-o/5e3))),requestAnimationFrame(a)};requestAnimationFrame(a),E(()=>{t=!0}),import("./OasisEditorApp-CebAmWM1.js").then(e=>{t=!0,r(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),A(F,{translator:t,get children(){return A(B,{get when(){return i()},get fallback(){return A(o,{variant:"fill",get progress(){return a()},get label(){return l()?.label},get class(){return l()?.class},get style(){return l()?.style}})},children:t=>{const a=t();return A(a,e)}})}})}function De(e,t={}){const a=I(),r=h(()=>ye({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{r(),e.innerHTML=""}),a}function Fe(e){return A(ye,O(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function ke(e,t={}){const a=I(),r=h(()=>Fe({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{r(),e.innerHTML=""}),a}function we(e){return{execute(t,a){const r=_(t,a);return e.commands.execute(r.name,r.payload)},canExecute(t,a){const r=_(t,a);return e.commands.canExecute(r.name,r.payload)},state(t){const a=_(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=I(),r=h(()=>A(ye,O(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{r(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}var Re=/*#__PURE__*/P("<div>");function Le(e){const[a,r]=t(e,["align","wrap","class","classList","children"]);return o=Re(),m(o,O({get class(){return`oasis-editor-ui-action-row ${a.class??""}`},get classList(){return{[`oasis-editor-ui-action-row-${a.align??"start"}`]:!0,"oasis-editor-ui-action-row-nowrap":!1===a.wrap,...a.classList}}},r),!1,!0),ae(o,()=>a.children),o;var o}var Ie=/*#__PURE__*/P("<div>"),Oe={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function He(e){const[a,r]=t(e,["align","class","style","children"]);return o=Ie(),m(o,O({get class(){return`oasis-editor-ui-field-row ${a.class??""}`},get style(){return{"align-items":Oe[a.align??"end"],..."object"==typeof a.style?a.style:{}}}},r),!1,!0),ae(o,()=>a.children),o;var o}var Ee=/*#__PURE__*/P("<div>");function Ne(e){const[a,r]=t(e,["align","class","classList","children"]);return o=Ee(),m(o,O({get class(){return`oasis-editor-ui-dialog-footer ${a.class??""}`},get classList(){return{[`oasis-editor-ui-dialog-footer-${a.align??"end"}`]:!0,...a.classList}}},r),!1,!0),ae(o,()=>a.children),o;var o}var Me={saveDocument:"editor-toolbar-save-document",newDocument:"editor-toolbar-new-document",importDocument:"editor-toolbar-import-document",exportDocx:"editor-toolbar-export-docx",exportPdf:"editor-toolbar-export-pdf",print:"editor-toolbar-print",undo:"editor-toolbar-undo",redo:"editor-toolbar-redo",style:"editor-toolbar-style",fontFamily:"editor-toolbar-font-family",fontSize:"editor-toolbar-font-size",color:"editor-toolbar-color",highlight:"editor-toolbar-highlight",textShading:"editor-toolbar-text-shading",bold:"editor-toolbar-bold",italic:"editor-toolbar-italic",underlineControl:"editor-toolbar-underline-control",strike:"editor-toolbar-strike",superscript:"editor-toolbar-superscript",subscript:"editor-toolbar-subscript",insertImage:"editor-toolbar-insert-image",insertTable:"editor-toolbar-insert-table",symbols:"editor-toolbar-symbols",link:"editor-toolbar-link",unlink:"editor-toolbar-unlink",footnote:"editor-toolbar-footnote",imageAlt:"editor-toolbar-image-alt",imageCaption:"editor-toolbar-image-caption",alignLeft:"editor-toolbar-align-left",alignCenter:"editor-toolbar-align-center",alignRight:"editor-toolbar-align-right",alignJustify:"editor-toolbar-align-justify",bulletList:"editor-toolbar-list-bullet",orderedList:"editor-toolbar-list-ordered",outdent:"editor-toolbar-list-outdent",indent:"editor-toolbar-list-indent",listOptions:"editor-toolbar-list-options",specialIndent:"editor-toolbar-special-indent",lineSpacing:"editor-toolbar-line-spacing-control",metrics:"editor-toolbar-metrics",margins:"editor-toolbar-margins",section:"editor-toolbar-section"},We={fileNew:"file_new",fileImport:"file_import",fileSave:"file_save",fileExport:"file_export",fileExportPdf:"file_export_pdf",fileExportDocx:"file_export_docx",filePrint:"file_print",editUndo:"edit_undo",editRedo:"edit_redo",editCopy:"edit_copy",editFind:"edit_find",editSelectAll:"edit_selectAll",viewMargins:"view_margins",viewParagraphMarks:"view_paragraph_marks",viewPreciseFonts:"view_precise_fonts",insertImage:"insert_image",insertImageCaption:"insert_image_caption",insertTable:"insert_table",insertLink:"insert_link",insertFootnote:"insert_footnote",insertPageBreak:"insert_pageBreak",formatText:"format_text",formatTextBold:"format_text_bold",formatTextItalic:"format_text_italic",formatTextUnderline:"format_text_underline",formatTextStrike:"format_text_strike",formatAlign:"format_align",formatAlignLeft:"format_align_left",formatAlignCenter:"format_align_center",formatAlignRight:"format_align_right",formatAlignJustify:"format_align_justify",formatLists:"format_lists",formatListsBullet:"format_lists_bullet",formatListsNumbered:"format_lists_numbered"};export{Le as ActionRow,Te as BalloonShell,u as Button,ue as Checkbox,K as ColorField,q as ColorPicker,q as ToolbarColorPicker,p as CommandRegistry,fe as DEFAULT_PALETTE,z as Dialog,Ne as DialogFooter,s as DocumentShell,G as EDITOR_SCHEMA_VERSION,R as Editor,U as FieldGroup,He as FieldRow,r as FloatingActionButton,ne as FormField,ee as Grid,ve as GridPicker,ve as ToolbarGridPicker,he as Heading,w as IconButton,D as InlineShell,Se as Menu,Se as ToolbarMenu,L as MenuRegistry,$ as NumberField,Ae as OASIS_BUILTIN_COMMANDS,We as OASIS_MENU_ITEMS,Me as OASIS_TOOLBAR_ITEMS,ye as OasisEditorAppLazy,Fe as OasisEditorContainer,o as OasisEditorLoading,b as PluginCollection,k as Popover,S as RIBBON_TABS,le as Radio,pe as RadioGroup,i as Select,i as ToolbarSelect,oe as SelectField,y as Separator,y as ToolbarSeparator,c as SidePanel,g as SidePanelBody,C as SidePanelFooter,re as SidePanelHeader,xe as SplitButton,xe as ToolbarSplitButton,Z as Stack,j as StatusText,W as StyleGallery,v as SurfaceButton,_e as Tabs,f as Text,J as TextAreaField,de as TextField,te as ToggleChip,se as Toolbar,d as ToolbarButton,l as buildRibbonTabDefinitions,ge as cloneDocument,Ce as commandRefName,me as createDefaultToolbarPreset,ie as createDocument,we as createEditorCommandBus,Q as createHeading,De as createOasisEditor,ke as createOasisEditorContainer,X as createParagraph,M as createTable,H as createToolbarRegistry,N as exportEditorDocumentToHtml,a as importHtmlToEditorDocument,Be as mount,be as normalizeDocument,x as projectTrackedRevisions,Y as registerToolbarRenderer,e as resolveAllTrackedRevisions,_ as resolveCommandRef,V as resolveTrackedRevision,Pe as validateDocument};
1
+ import{$ as e,$i as t,$r as a,At as r,Ci as o,Cr as i,Ct as s,Di as n,Dr as l,Dt as g,Er as d,Et as c,Gr as p,Ii as m,Jt as u,Kr as b,Lr as f,Ni as h,Or as S,Ot as C,Q as x,Qi as T,Ri as P,Rr as v,Si as _,Sr as y,St as D,Ti as F,Tr as k,Tt as w,Ui as A,Vi as B,Wr as R,X as L,Xr as I,Yi as O,Z as H,Zi as E,Zr as N,_i as M,_r as W,_t as j,at as U,br as q,bt as z,ct as $,dt as K,et as V,fi as G,ft as J,gi as X,gt as Z,hi as Q,hr as Y,ht as ee,it as te,ji as ae,kt as re,lt as oe,mi as ie,mr as se,mt as ne,ot as le,pi as ge,pt as de,qi as ce,st as pe,t as me,ut as ue,vi as be,vr as fe,vt as he,wr as Se,xi as Ce,xr as xe,xt as Te,yi as Pe,yr as ve,yt as _e}from"./defaultToolbar-D0rn6_HF.js";function ye(e={}){const t=n(()=>e.ui?.locale??"pt-BR"),[a,r]=ce(0),[i,s]=ce(null),l=()=>{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 o=performance.now()-e;r(.9*(1-Math.exp(-o/5e3))),requestAnimationFrame(a)};requestAnimationFrame(a),E(()=>{t=!0}),import("./OasisEditorApp-DTrayMXa.js").then(e=>{t=!0,r(1),setTimeout(()=>s(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),A(F,{translator:t,get children(){return A(B,{get when(){return i()},get fallback(){return A(o,{variant:"fill",get progress(){return a()},get label(){return l()?.label},get class(){return l()?.class},get style(){return l()?.style}})},children:t=>{const a=t();return A(a,e)}})}})}function De(e,t={}){const a=I(),r=h(()=>ye({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{r(),e.innerHTML=""}),a}function Fe(e){return A(ye,O(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function ke(e,t={}){const a=I(),r=h(()=>Fe({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{r(),e.innerHTML=""}),a}function we(e){return{execute(t,a){const r=_(t,a);return e.commands.execute(r.name,r.payload)},canExecute(t,a){const r=_(t,a);return e.commands.canExecute(r.name,r.payload)},state(t){const a=_(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=I(),r=h(()=>A(ye,O(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{r(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}var Re=/*#__PURE__*/P("<div>");function Le(e){const[a,r]=t(e,["align","wrap","class","classList","children"]);return o=Re(),m(o,O({get class(){return`oasis-editor-ui-action-row ${a.class??""}`},get classList(){return{[`oasis-editor-ui-action-row-${a.align??"start"}`]:!0,"oasis-editor-ui-action-row-nowrap":!1===a.wrap,...a.classList}}},r),!1,!0),ae(o,()=>a.children),o;var o}var Ie=/*#__PURE__*/P("<div>"),Oe={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function He(e){const[a,r]=t(e,["align","class","style","children"]);return o=Ie(),m(o,O({get class(){return`oasis-editor-ui-field-row ${a.class??""}`},get style(){return{"align-items":Oe[a.align??"end"],..."object"==typeof a.style?a.style:{}}}},r),!1,!0),ae(o,()=>a.children),o;var o}var Ee=/*#__PURE__*/P("<div>");function Ne(e){const[a,r]=t(e,["align","class","classList","children"]);return o=Ee(),m(o,O({get class(){return`oasis-editor-ui-dialog-footer ${a.class??""}`},get classList(){return{[`oasis-editor-ui-dialog-footer-${a.align??"end"}`]:!0,...a.classList}}},r),!1,!0),ae(o,()=>a.children),o;var o}var Me={saveDocument:"editor-toolbar-save-document",newDocument:"editor-toolbar-new-document",importDocument:"editor-toolbar-import-document",exportDocx:"editor-toolbar-export-docx",exportPdf:"editor-toolbar-export-pdf",print:"editor-toolbar-print",undo:"editor-toolbar-undo",redo:"editor-toolbar-redo",style:"editor-toolbar-style",fontFamily:"editor-toolbar-font-family",fontSize:"editor-toolbar-font-size",color:"editor-toolbar-color",highlight:"editor-toolbar-highlight",textShading:"editor-toolbar-text-shading",bold:"editor-toolbar-bold",italic:"editor-toolbar-italic",underlineControl:"editor-toolbar-underline-control",strike:"editor-toolbar-strike",superscript:"editor-toolbar-superscript",subscript:"editor-toolbar-subscript",insertImage:"editor-toolbar-insert-image",insertTable:"editor-toolbar-insert-table",symbols:"editor-toolbar-symbols",link:"editor-toolbar-link",unlink:"editor-toolbar-unlink",footnote:"editor-toolbar-footnote",imageAlt:"editor-toolbar-image-alt",imageCaption:"editor-toolbar-image-caption",alignLeft:"editor-toolbar-align-left",alignCenter:"editor-toolbar-align-center",alignRight:"editor-toolbar-align-right",alignJustify:"editor-toolbar-align-justify",bulletList:"editor-toolbar-list-bullet",orderedList:"editor-toolbar-list-ordered",outdent:"editor-toolbar-list-outdent",indent:"editor-toolbar-list-indent",listOptions:"editor-toolbar-list-options",specialIndent:"editor-toolbar-special-indent",lineSpacing:"editor-toolbar-line-spacing-control",metrics:"editor-toolbar-metrics",margins:"editor-toolbar-margins",section:"editor-toolbar-section"},We={fileNew:"file_new",fileImport:"file_import",fileSave:"file_save",fileExport:"file_export",fileExportPdf:"file_export_pdf",fileExportDocx:"file_export_docx",filePrint:"file_print",editUndo:"edit_undo",editRedo:"edit_redo",editCopy:"edit_copy",editFind:"edit_find",editSelectAll:"edit_selectAll",viewMargins:"view_margins",viewParagraphMarks:"view_paragraph_marks",viewPreciseFonts:"view_precise_fonts",insertImage:"insert_image",insertImageCaption:"insert_image_caption",insertTable:"insert_table",insertLink:"insert_link",insertFootnote:"insert_footnote",insertPageBreak:"insert_pageBreak",formatText:"format_text",formatTextBold:"format_text_bold",formatTextItalic:"format_text_italic",formatTextUnderline:"format_text_underline",formatTextStrike:"format_text_strike",formatAlign:"format_align",formatAlignLeft:"format_align_left",formatAlignCenter:"format_align_center",formatAlignRight:"format_align_right",formatAlignJustify:"format_align_justify",formatLists:"format_lists",formatListsBullet:"format_lists_bullet",formatListsNumbered:"format_lists_numbered"};export{Le as ActionRow,Te as BalloonShell,u as Button,ue as Checkbox,K as ColorField,q as ColorPicker,q as ToolbarColorPicker,p as CommandRegistry,fe as DEFAULT_PALETTE,z as Dialog,Ne as DialogFooter,s as DocumentShell,G as EDITOR_SCHEMA_VERSION,R as Editor,U as FieldGroup,He as FieldRow,r as FloatingActionButton,ne as FormField,ee as Grid,ve as GridPicker,ve as ToolbarGridPicker,he as Heading,w as IconButton,D as InlineShell,Se as Menu,Se as ToolbarMenu,L as MenuRegistry,$ as NumberField,Ae as OASIS_BUILTIN_COMMANDS,We as OASIS_MENU_ITEMS,Me as OASIS_TOOLBAR_ITEMS,ye as OasisEditorAppLazy,Fe as OasisEditorContainer,o as OasisEditorLoading,b as PluginCollection,k as Popover,S as RIBBON_TABS,le as Radio,pe as RadioGroup,i as Select,i as ToolbarSelect,oe as SelectField,y as Separator,y as ToolbarSeparator,c as SidePanel,g as SidePanelBody,C as SidePanelFooter,re as SidePanelHeader,xe as SplitButton,xe as ToolbarSplitButton,Z as Stack,j as StatusText,W as StyleGallery,v as SurfaceButton,_e as Tabs,f as Text,J as TextAreaField,de as TextField,te as ToggleChip,se as Toolbar,d as ToolbarButton,l as buildRibbonTabDefinitions,ge as cloneDocument,Ce as commandRefName,me as createDefaultToolbarPreset,ie as createDocument,we as createEditorCommandBus,Q as createHeading,De as createOasisEditor,ke as createOasisEditorContainer,X as createParagraph,M as createTable,H as createToolbarRegistry,N as exportEditorDocumentToHtml,a as importHtmlToEditorDocument,Be as mount,be as normalizeDocument,x as projectTrackedRevisions,Y as registerToolbarRenderer,e as resolveAllTrackedRevisions,_ as resolveCommandRef,V as resolveTrackedRevision,Pe as validateDocument};