oasis-editor 0.0.417 → 0.0.419

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.
Files changed (30) hide show
  1. package/dist/OasisEditorApp-DAqRW7aB.js +1 -0
  2. package/dist/assets/{importDocxWorker-ChuR4jqX.js → importDocxWorker-FgGrfnHp.js} +3800 -2669
  3. package/dist/core/commands/builtinCommands.d.ts +1 -1
  4. package/dist/core/commands/publicCommandTypes.d.ts +13 -0
  5. package/dist/core/commands/text.d.ts +1 -1
  6. package/dist/core/document/contentControlTransactions.d.ts +20 -0
  7. package/dist/core/document/contentControlTraversal.d.ts +9 -0
  8. package/dist/core/document/contentControlValues.d.ts +8 -0
  9. package/dist/core/document/documentProtection.d.ts +3 -0
  10. package/dist/core/document/inlineContentControlEdit.d.ts +8 -0
  11. package/dist/core/document/repeatingSectionRows.d.ts +4 -0
  12. package/dist/core/model/types/document.d.ts +6 -0
  13. package/dist/core/model/types/docxSourcePackage.d.ts +4 -0
  14. package/dist/core/model/types/nodes.d.ts +4 -0
  15. package/dist/defaultToolbar-Ux_dvdoA.js +1 -0
  16. package/dist/export/docx/docxPackageXml.d.ts +1 -1
  17. package/dist/export/docx/synchronizeBoundContentControls.d.ts +7 -1
  18. package/dist/export/docx/text/sdtSubtypeSource.d.ts +2 -0
  19. package/dist/import/docx/opc/sourcePackage.d.ts +1 -0
  20. package/dist/import/docx/settings.d.ts +5 -0
  21. package/dist/oasis-editor.js +1 -1
  22. package/dist/oasis-editor.umd.cjs +1 -1
  23. package/dist/ooxml/word/customXmlBinding.d.ts +5 -0
  24. package/dist/plugins/internal/essentialsCapabilities.d.ts +3 -0
  25. package/dist/sourcePackage-GLrWYLnd.js +1 -0
  26. package/dist/ui/app/useEditorTransactions.d.ts +2 -0
  27. package/package.json +1 -1
  28. package/dist/OasisEditorApp-Dis4OFNS.js +0 -1
  29. package/dist/defaultToolbar-y3saZHkk.js +0 -1
  30. package/dist/sourcePackage-BhGtQ-1k.js +0 -1
@@ -15,5 +15,5 @@ export interface HyphenationSettingsXml {
15
15
  hyphenationZone?: number;
16
16
  doNotHyphenateCaps?: boolean;
17
17
  }
18
- export declare function buildSettingsXml(hasEvenAndOddHeaders: boolean, defaultTabStop?: number, footnoteSettings?: EditorFootnoteSettings, endnoteSettings?: EditorFootnoteSettings, allowSpaceOfSameStyleInTable?: boolean, hyphenation?: HyphenationSettingsXml, documentVariables?: Readonly<Record<string, string>>): string;
18
+ export declare function buildSettingsXml(hasEvenAndOddHeaders: boolean, defaultTabStop?: number, footnoteSettings?: EditorFootnoteSettings, endnoteSettings?: EditorFootnoteSettings, allowSpaceOfSameStyleInTable?: boolean, hyphenation?: HyphenationSettingsXml, documentVariables?: Readonly<Record<string, string>>, documentProtectionXml?: string): string;
19
19
  export declare function buildPartRelationshipsXml(images: DocContext["images"], hyperlinks: DocContext["hyperlinks"]): string;
@@ -1,2 +1,8 @@
1
- import { EditorDocument } from '../../core/model.js';
1
+ import { EditorDocument, EditorSdtBlockWrapper } from '../../core/model.js';
2
+ interface BoundControlAccumulator {
3
+ wrapper: EditorSdtBlockWrapper;
4
+ value: string;
5
+ }
6
+ export declare function collectBoundControlValues(document: EditorDocument): Map<string, BoundControlAccumulator>;
2
7
  export declare function synchronizeBoundContentControls(document: EditorDocument): number;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ /** Merge unknown subtype extensions into its current modeled serialization. */
2
+ export declare function mergeSdtSubtypeSource(generated: string, sourceXml?: string): string;
@@ -2,3 +2,4 @@ import { EditorDocument, EditorDocxSourcePackage } from '../../../core/model.js'
2
2
  export declare function captureDocxSourcePackage(buffer: ArrayBuffer): Promise<EditorDocxSourcePackage>;
3
3
  export declare function attachDocxRebuiltPartBaseline(document: EditorDocument, sourcePackage: EditorDocxSourcePackage): Promise<void>;
4
4
  export declare function attachDocxSourcePackage(document: EditorDocument, buffer: ArrayBuffer): Promise<EditorDocument>;
5
+ export declare function attachCapturedDocxSourcePackage(document: EditorDocument, sourcePackage: EditorDocxSourcePackage): Promise<EditorDocument>;
@@ -1,5 +1,10 @@
1
1
  import { EditorFootnoteSettings, EditorEndnoteSettings } from '../../core/model.js';
2
2
  export interface DocxSettings {
3
+ documentProtection?: {
4
+ edit?: string;
5
+ enforcement: boolean;
6
+ sourceXml: string;
7
+ };
3
8
  adjustLineHeightInTable: boolean;
4
9
  allowSpaceOfSameStyleInTable?: boolean;
5
10
  defaultTabStop?: number;
@@ -1 +1 @@
1
- import{At as e,Bi as t,Br as a,Bt as o,Ct as r,Dt as i,Et as s,Fi as n,Ft as l,Gr as d,Hi as g,Hr as c,Ht as p,Ii as u,Ir as m,It as b,Ki as f,Kr as h,Li as S,Lr as C,Mi as x,Mt as T,Ni as P,Nr as F,Nt as k,Ot as v,Pi as y,Pr as A,Pt as B,Qi as w,Ri as _,Rr as D,Rt as R,St as L,Tt as I,Ur as O,Ut as H,Vi as N,Vr as E,Vt as M,Wi as W,Wr as j,Xi as z,_a as U,_t as V,bt as q,ca as K,di as $,dt as G,fa as J,ft as X,ga as Q,gi as Y,hi as Z,ji as ee,jt as te,kt as ae,li as oe,lt as re,ma as ie,ni as se,oa as ne,pt as le,qr as de,ra as ge,ri as ce,sn as pe,t as ue,ta as me,ui as be,ut as fe,va as he,vi as Se,vt as Ce,wt as xe,xt as Te,yt as Pe,zr as Fe,zt as ke}from"./defaultToolbar-y3saZHkk.js";function ve(e={}){const t=f(()=>e.ui?.locale??"pt-BR"),[a,o]=J(0),[r,i]=J(null),s=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return U(()=>{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),Q(()=>{t=!0}),import("./OasisEditorApp-Dis4OFNS.js").then(e=>{t=!0,o(1),setTimeout(()=>i(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),K(W,{translator:t,get children(){return K(ne,{get when(){return r()},get fallback(){return K(g,{variant:"fill",get progress(){return a()},get label(){return s()?.label},get class(){return s()?.class},get style(){return s()?.style}})},children:t=>{const a=t();return K(a,e)}})}})}function ye(e,t={}){const a=Z(),o=w(()=>ve({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function Ae(e){return K(ve,ie(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function Be(e,t={}){const a=Z(),o=w(()=>Ae({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function we(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 _e=["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","restartList","continueList","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","updateBodyFields","updateSelectedFields","insertFieldCode","editFieldCode","editFieldCodeAtSelection","toggleFieldLock","toggleFieldCodes","nextField","previousField","markAuthorityEntry","insertTableOfAuthorities","updateTableOfAuthorities","insertTableOfFigures","updateTableOfFigures","previewMergeRecord","mergeToNewDocuments","updateVariableFields","setFormFieldValue","toggleFormCheckbox","insertDateTime","insertCrossReference","markIndexEntry","insertIndex","updateIndex","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=Z(),o=w(()=>K(ve,ie(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{o(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}var Re=/*#__PURE__*/ge("<div>");function Le(e){const[t,a]=he(e,["align","wrap","class","classList","children"]);return o=Re(),me(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),z(o,()=>t.children),o;var o}var Ie=/*#__PURE__*/ge("<div>"),Oe={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function He(e){const[t,a]=he(e,["align","class","style","children"]);return o=Ie(),me(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),z(o,()=>t.children),o;var o}var Ne=/*#__PURE__*/ge("<div>");function Ee(e){const[t,a]=he(e,["align","class","classList","children"]);return o=Ne(),me(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),z(o,()=>t.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,B as BalloonShell,pe as Button,r as Checkbox,xe as ColorField,Fe as ColorPicker,Fe as ToolbarColorPicker,be as CommandRegistry,C as DEFAULT_PALETTE,k as Dialog,Ee as DialogFooter,b as DocumentShell,ee as EDITOR_SCHEMA_VERSION,oe as Editor,Ce as FieldGroup,He as FieldRow,H as FloatingActionButton,i as FormField,v as Grid,D as GridPicker,D as ToolbarGridPicker,te as Heading,R as IconButton,l as InlineShell,O as Menu,O as ToolbarMenu,re as MenuRegistry,Te as NumberField,_e as OASIS_BUILTIN_COMMANDS,We as OASIS_MENU_ITEMS,Me as OASIS_TOOLBAR_ITEMS,ve as OasisEditorAppLazy,Ae as OasisEditorContainer,g as OasisEditorLoading,$ as PluginCollection,j as Popover,de as RIBBON_TABS,Pe as Radio,q as RadioGroup,c as Select,c as ToolbarSelect,L as SelectField,E as Separator,E as ToolbarSeparator,ke as SidePanel,o as SidePanelBody,M as SidePanelFooter,p as SidePanelHeader,a as SplitButton,a as ToolbarSplitButton,ae as Stack,e as StatusText,m as StyleGallery,ce as SurfaceButton,T as Tabs,se as Text,I as TextAreaField,s as TextField,V as ToggleChip,F as Toolbar,d as ToolbarButton,h as buildRibbonTabDefinitions,x as cloneDocument,t as commandRefName,ue as createDefaultToolbarPreset,P as createDocument,we as createEditorCommandBus,y as createHeading,ye as createOasisEditor,Be as createOasisEditorContainer,n as createParagraph,u as createTable,fe as createToolbarRegistry,Y as exportEditorDocumentToHtml,Se as importHtmlToEditorDocument,De as mount,S as normalizeDocument,G as projectTrackedRevisions,A as registerToolbarRenderer,X as resolveAllTrackedRevisions,N as resolveCommandRef,le as resolveTrackedRevision,_ as validateDocument};
1
+ import{At as e,Bi as t,Br as a,Bt as o,Ct as r,Dt as i,Et as s,Fi as n,Ft as l,Gr as d,Gt as g,Hi as c,Hr as p,Ht as u,Ii as m,Ir as b,It as f,Ki as h,Kr as S,Li as C,Lr as x,Lt as T,Mi as P,Mt as F,Ni as k,Nr as v,Nt as w,Ot as y,Pi as A,Pr as B,Pt as D,Qi as _,Ri as R,Rr as L,Rt as I,St as O,Tt as H,Ur as N,Ut as E,Vi as M,Vr as W,Vt as j,Wi as U,Wr as V,Wt as z,Xi as q,_a as K,bt as G,ca as $,di as J,dt as X,fa as Q,ft as Y,ga as Z,gi as ee,hi as te,ht as ae,ji as oe,jt as re,kt as ie,li as se,ln as ne,ma as le,mt as de,ni as ge,oa as ce,pt as pe,qr as ue,ra as me,ri as be,t as fe,ta as he,ui as Se,va as Ce,vi as xe,wt as Te,xt as Pe,yt as Fe,zr as ke}from"./defaultToolbar-Ux_dvdoA.js";function ve(e={}){const t=h(()=>e.ui?.locale??"pt-BR"),[a,o]=Q(0),[r,i]=Q(null),s=()=>{const t=e.ui?.loading;return"object"==typeof t&&null!==t?t:void 0};return K(()=>{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),Z(()=>{t=!0}),import("./OasisEditorApp-DAqRW7aB.js").then(e=>{t=!0,o(1),setTimeout(()=>i(()=>e.OasisEditorApp),180)}).catch(()=>{t=!0})}),$(U,{translator:t,get children(){return $(ce,{get when(){return r()},get fallback(){return $(c,{variant:"fill",get progress(){return a()},get label(){return s()?.label},get class(){return s()?.class},get style(){return s()?.style}})},children:t=>{const a=t();return $(a,e)}})}})}function we(e,t={}){const a=te(),o=_(()=>ve({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function ye(e){return $(ve,le(e,{get ui(){return{...e.ui,showChrome:!1}}}))}function Ae(e,t={}){const a=te(),o=_(()=>ye({...t,runtime:{...t.runtime,client:a}}),e);return a.setDispose(()=>{o(),e.innerHTML=""}),a}function Be(e){return{execute(t,a){const o=M(t,a);return e.commands.execute(o.name,o.payload)},canExecute(t,a){const o=M(t,a);return e.commands.canExecute(o.name,o.payload)},state(t){const a=M(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","restartList","continueList","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","updateBodyFields","updateSelectedFields","insertFieldCode","editFieldCode","editFieldCodeAtSelection","toggleFieldLock","toggleFieldCodes","nextField","previousField","markAuthorityEntry","insertTableOfAuthorities","updateTableOfAuthorities","insertTableOfFigures","updateTableOfFigures","previewMergeRecord","mergeToNewDocuments","updateVariableFields","setFormFieldValue","setContentControlValue","mutateRepeatingSectionRow","toggleFormCheckbox","insertDateTime","insertCrossReference","markIndexEntry","insertIndex","updateIndex","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=te(),o=_(()=>$(ve,le(t,{get runtime(){return{...t.runtime,client:a}}})),e);return a.setDispose(()=>{o(),e.innerHTML=""}),Object.assign(a,{unmount:()=>a.dispose()})}var Re=/*#__PURE__*/me("<div>");function Le(e){const[t,a]=Ce(e,["align","wrap","class","classList","children"]);return o=Re(),he(o,le({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),q(o,()=>t.children),o;var o}var Ie=/*#__PURE__*/me("<div>"),Oe={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"};function He(e){const[t,a]=Ce(e,["align","class","style","children"]);return o=Ie(),he(o,le({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),q(o,()=>t.children),o;var o}var Ne=/*#__PURE__*/me("<div>");function Ee(e){const[t,a]=Ce(e,["align","class","classList","children"]);return o=Ne(),he(o,le({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),q(o,()=>t.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,f as BalloonShell,ne as Button,H as Checkbox,s as ColorField,ke as ColorPicker,ke as ToolbarColorPicker,Se as CommandRegistry,x as DEFAULT_PALETTE,l as Dialog,Ee as DialogFooter,I as DocumentShell,oe as EDITOR_SCHEMA_VERSION,se as Editor,G as FieldGroup,He as FieldRow,g as FloatingActionButton,ie as FormField,e as Grid,L as GridPicker,L as ToolbarGridPicker,w as Heading,o as IconButton,T as InlineShell,N as Menu,N as ToolbarMenu,X as MenuRegistry,r as NumberField,De as OASIS_BUILTIN_COMMANDS,We as OASIS_MENU_ITEMS,Me as OASIS_TOOLBAR_ITEMS,ve as OasisEditorAppLazy,ye as OasisEditorContainer,c as OasisEditorLoading,J as PluginCollection,V as Popover,ue as RIBBON_TABS,Pe as Radio,O as RadioGroup,p as Select,p as ToolbarSelect,Te as SelectField,W as Separator,W as ToolbarSeparator,j as SidePanel,u as SidePanelBody,E as SidePanelFooter,z as SidePanelHeader,a as SplitButton,a as ToolbarSplitButton,re as Stack,F as StatusText,b as StyleGallery,be as SurfaceButton,D as Tabs,ge as Text,i as TextAreaField,y as TextField,Fe as ToggleChip,v as Toolbar,d as ToolbarButton,S as buildRibbonTabDefinitions,P as cloneDocument,t as commandRefName,fe as createDefaultToolbarPreset,k as createDocument,Be as createEditorCommandBus,A as createHeading,we as createOasisEditor,Ae as createOasisEditorContainer,n as createParagraph,m as createTable,Y as createToolbarRegistry,ee as exportEditorDocumentToHtml,xe as importHtmlToEditorDocument,_e as mount,C as normalizeDocument,pe as projectTrackedRevisions,B as registerToolbarRenderer,de as resolveAllTrackedRevisions,M as resolveCommandRef,ae as resolveTrackedRevision,R as validateDocument};