oasis-editor 0.0.222 → 0.0.223
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-BOAA5LnD.js +1 -0
- package/dist/assets/{importDocxWorker-VC9O6KEc.js → importDocxWorker-D9et8X0W.js} +5 -3
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/publicCommandTypes.d.ts +1 -0
- package/dist/core/commands/text.d.ts +1 -1
- package/dist/core/commands/textEditing.d.ts +1 -0
- package/dist/core/units.d.ts +9 -0
- package/dist/{defaultToolbar-CW2DRegv.js → defaultToolbar-Cow2Hv4N.js} +1 -1
- package/dist/import/docx/units.d.ts +1 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/plugins/internal/essentialsCapabilities.d.ts +1 -0
- package/package.json +1 -1
- package/dist/OasisEditorApp-C4_jZw79.js +0 -1
|
@@ -9775,8 +9775,10 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
9775
9775
|
else if ("tab" === i.localName) p(" ");
|
|
9776
9776
|
else if ("noBreakHyphen" === i.localName) p("‑");
|
|
9777
9777
|
else if ("softHyphen" === i.localName) p("");
|
|
9778
|
-
else if ("br" === i.localName)
|
|
9779
|
-
|
|
9778
|
+
else if ("br" === i.localName) {
|
|
9779
|
+
const e = Pe(i, "type");
|
|
9780
|
+
p("page" === e ? "\f" : "column" === e ? "\v" : "\n");
|
|
9781
|
+
} else {
|
|
9780
9782
|
if ("lastRenderedPageBreak" === i.localName) continue;
|
|
9781
9783
|
if ("bookmarkStart" === i.localName || "bookmarkEnd" === i.localName) {
|
|
9782
9784
|
const e = Cr(i);
|
|
@@ -12655,7 +12657,7 @@ while (n === s[++o] && n === s[++o] && n === s[++o] && n === s[++o] && n === s[+
|
|
|
12655
12657
|
function Oi(e) {
|
|
12656
12658
|
if (0 === e.length) return "<w:t></w:t>";
|
|
12657
12659
|
let t = "", r = "";
|
|
12658
|
-
for (const n of e) "\n" !== n ? " " !== n ? "‑" !== n ? "" !== n ? r += n : (t += Mi(r), r = "", t += "<w:softHyphen/>") : (t += Mi(r), r = "", t += "<w:noBreakHyphen/>") : (t += Mi(r), r = "", t += "<w:tab/>") : (t += Mi(r), r = "", t += "<w:br/>");
|
|
12660
|
+
for (const n of e) "\n" !== n ? "\v" !== n ? " " !== n ? "‑" !== n ? "" !== n ? r += n : (t += Mi(r), r = "", t += "<w:softHyphen/>") : (t += Mi(r), r = "", t += "<w:noBreakHyphen/>") : (t += Mi(r), r = "", t += "<w:tab/>") : (t += Mi(r), r = "", t += "<w:br w:type=\"column\"/>") : (t += Mi(r), r = "", t += "<w:br/>");
|
|
12659
12661
|
return t += Mi(r), t || "<w:t></w:t>";
|
|
12660
12662
|
}
|
|
12661
12663
|
function Li(e, t) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "insertFootnote", "insertText", "insertEquation", "updateEquation", "insertTableOfContents", "updateTableOfContents", "pastePlainText", "paste", "pasteAsPlainText", "pasteMergeFormatting", "formatPainter", "formatPainterContinuous", "cancelFormatPainter", "bold", "italic", "underline", "strike", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "toggleTrackChanges", "acceptRevisions", "rejectRevisions", "nextRevision", "previousRevision", "nextComment", "previousComment", "newComment", "replyComment", "editComment", "toggleCommentsPanel", "resolveComment", "reopenComment", "deleteComment", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "splitBlock", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setCharacterStyleId", "setUnderlineStyle", "documentStyles", "print", "copy", "cut", "newDocument", "exportDocx", "exportPdf", "importDocument", "insertHtml", "insertImage", "editImageAlt", "insertImageCaption", "imageContext", "imageWidthCm", "imageHeightCm", "imageCrop", "imageCropAspect", "imageCropShape", "imageCropFill", "imageCropFit", "imageCropReset", "imageBorder", "outdent", "indent", "togglePageBreakBefore", "toggleKeepWithNext", "setSpacingAfter", "setSpacingBefore", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setSpecialIndent", "setParagraphShading", "applyParagraphBorders", "setLineHeight", "setListFormat", "setListStartAt", "toggleOrientation", "setOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "sectionBreakEvenPage", "sectionBreakOddPage", "sectionBreakNextColumn", "setPageMargins", "setSectionPageNumbering", "setPaperSize", "setPaperSizePreset", "setColumns", "setColumnsPreset", "editHeader", "editFooter", "editFirstPageHeader", "editEvenPageHeader", "editFirstPageFooter", "editEvenPageFooter", "insertPageNumber", "insertPageNumberXOfY", "placePageNumberTop", "placePageNumberBottom", "insertBookmark", "removeBookmark", "insertDateField", "insertCrossReference", "exitHeaderFooter", "applyDocumentTheme", "setDocumentColorScheme", "setDocumentFontScheme", "setDocumentParagraphSpacing", "setDocumentEffects", "setDocumentPageColor", "setDocumentWatermark", "setDocumentPageBorder", "setDocumentDesignDefault", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableApplyBorderPreset", "toggleTableDrawBorders", "toggleTableGridlines", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellWidth", "tableToggleHeaderRow", "tableToggleTotalRow", "tableToggleBandedRows", "tableToggleFirstColumn", "tableToggleLastColumn", "tableToggleBandedColumns", "setTableStyle", "tableToggleAutoFit", "tableDistributeColumns", "tableDistributeRows", "insertTable", "insertShape", "openSymbolDialog", "openEquationDialog"];
|
|
1
|
+
export declare const OASIS_BUILTIN_COMMANDS: readonly ["selectAll", "insertFootnote", "insertText", "insertEquation", "updateEquation", "insertTableOfContents", "updateTableOfContents", "pastePlainText", "paste", "pasteAsPlainText", "pasteMergeFormatting", "formatPainter", "formatPainterContinuous", "cancelFormatPainter", "bold", "italic", "underline", "strike", "superscript", "subscript", "link", "unlink", "alignLeft", "alignCenter", "alignRight", "alignJustify", "orderedList", "bulletList", "find", "replace", "toggleTrackChanges", "acceptRevisions", "rejectRevisions", "nextRevision", "previousRevision", "nextComment", "previousComment", "newComment", "replyComment", "editComment", "toggleCommentsPanel", "resolveComment", "reopenComment", "deleteComment", "toggleShowMargins", "toggleShowParagraphMarks", "togglePreciseFonts", "undo", "redo", "pageBreak", "lineBreak", "columnBreak", "splitBlock", "setFontFamily", "setFontSize", "increaseFontSize", "decreaseFontSize", "changeTextCase", "clearFormatting", "setColor", "setHighlight", "setTextShading", "setStyleId", "setCharacterStyleId", "setUnderlineStyle", "documentStyles", "print", "copy", "cut", "newDocument", "exportDocx", "exportPdf", "importDocument", "insertHtml", "insertImage", "editImageAlt", "insertImageCaption", "imageContext", "imageWidthCm", "imageHeightCm", "imageCrop", "imageCropAspect", "imageCropShape", "imageCropFill", "imageCropFit", "imageCropReset", "imageBorder", "outdent", "indent", "togglePageBreakBefore", "toggleKeepWithNext", "setSpacingAfter", "setSpacingBefore", "setIndentLeft", "setIndentRight", "setIndentFirstLine", "setIndentHanging", "setSpecialIndent", "setParagraphShading", "applyParagraphBorders", "setLineHeight", "setListFormat", "setListStartAt", "toggleOrientation", "setOrientation", "sectionBreakNextPage", "sectionBreakContinuous", "sectionBreakEvenPage", "sectionBreakOddPage", "sectionBreakNextColumn", "setPageMargins", "setSectionPageNumbering", "setPaperSize", "setPaperSizePreset", "setColumns", "setColumnsPreset", "editHeader", "editFooter", "editFirstPageHeader", "editEvenPageHeader", "editFirstPageFooter", "editEvenPageFooter", "insertPageNumber", "insertPageNumberXOfY", "placePageNumberTop", "placePageNumberBottom", "insertBookmark", "removeBookmark", "insertDateField", "insertCrossReference", "exitHeaderFooter", "applyDocumentTheme", "setDocumentColorScheme", "setDocumentFontScheme", "setDocumentParagraphSpacing", "setDocumentEffects", "setDocumentPageColor", "setDocumentWatermark", "setDocumentPageBorder", "setDocumentDesignDefault", "tableContext", "tableMerge", "tableSplit", "tableInsertColumnBefore", "tableInsertColumnAfter", "tableDeleteColumn", "tableInsertRowBefore", "tableInsertRowAfter", "tableDeleteRow", "tableCellShading", "tableCellBorders", "tableCellNoBorders", "tableApplyBorderPreset", "toggleTableDrawBorders", "toggleTableGridlines", "tableWidth100", "tableAlignLeft", "tableAlignCenter", "tableAlignRight", "tableSetCellWidth", "tableToggleHeaderRow", "tableToggleTotalRow", "tableToggleBandedRows", "tableToggleFirstColumn", "tableToggleLastColumn", "tableToggleBandedColumns", "setTableStyle", "tableToggleAutoFit", "tableDistributeColumns", "tableDistributeRows", "insertTable", "insertShape", "openSymbolDialog", "openEquationDialog"];
|
|
2
2
|
export type OasisBuiltinCommand = (typeof OASIS_BUILTIN_COMMANDS)[number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { moveOrCopySelectionToPosition, insertTextAtSelection, insertPlainTextAtSelection, insertMathAtSelection, updateMathRun, } from './textEditing.js';
|
|
1
|
+
export { moveOrCopySelectionToPosition, insertTextAtSelection, insertPlainTextAtSelection, insertMathAtSelection, insertColumnBreakAtSelection, updateMathRun, } from './textEditing.js';
|
|
2
2
|
export { deleteBackward, deleteForward, deleteCharsBackwardRaw, } from './textDeletion.js';
|
|
3
3
|
export { toggleTextStyle, clearSelectedTextFormatting, setTextStyleValue, } from './textFormatting.js';
|
|
4
4
|
export { type TextCaseMode, transformSelectedText, changeSelectedTextCase, } from './textCase.js';
|
|
@@ -3,6 +3,7 @@ export declare function moveOrCopySelectionToPosition(state: EditorState, target
|
|
|
3
3
|
copy?: boolean;
|
|
4
4
|
}): EditorState;
|
|
5
5
|
export declare function insertTextAtSelection(state: EditorState, text: string, styleOverride?: EditorTextStyle): EditorState;
|
|
6
|
+
export declare function insertColumnBreakAtSelection(state: EditorState): EditorState;
|
|
6
7
|
export declare function insertMathAtSelection(state: EditorState, expression: EditorMathExpression): EditorState;
|
|
7
8
|
export declare function updateMathRun(state: EditorState, runId: string, expression: EditorMathExpression): EditorState;
|
|
8
9
|
export declare function insertPlainTextAtSelection(state: EditorState, text: string, styleOverride?: EditorTextStyle): EditorState;
|
package/dist/core/units.d.ts
CHANGED
|
@@ -31,3 +31,12 @@ export declare const OOXML_ROTATION_UNITS = 60000;
|
|
|
31
31
|
* `14.6667` so layout measurements remain byte-identical.
|
|
32
32
|
*/
|
|
33
33
|
export declare const DEFAULT_FONT_SIZE_PX = 14.6667;
|
|
34
|
+
/**
|
|
35
|
+
* Inline marker for a hard column break (`<w:br w:type="column"/>`), stored as
|
|
36
|
+
* a literal control character inside `EditorTextRun.text`, exactly like the
|
|
37
|
+
* line-break `\n` and tab `\t` markers. The vertical-tab codepoint is distinct
|
|
38
|
+
* from the page-break marker `\u000C` so the two never collide. Shared across
|
|
39
|
+
* the core (commands), layout, import and export layers so every consumer
|
|
40
|
+
* references one symbol rather than a magic string.
|
|
41
|
+
*/
|
|
42
|
+
export declare const COLUMN_BREAK_MARKER = "\v";
|