oasis-editor 0.0.226 → 0.0.228
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-CpKYMW3z.js +1 -0
- package/dist/app/controllers/EditorCommandsController.d.ts +6 -1
- package/dist/app/services/FindReplaceService.d.ts +6 -18
- package/dist/assets/{importDocxWorker-D9et8X0W.js → importDocxWorker-dPLECw5a.js} +197 -181
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/dropCap.d.ts +23 -0
- package/dist/core/commands/fieldDate.d.ts +6 -0
- package/dist/core/commands/findReplace.d.ts +25 -0
- package/dist/core/commands/floatingAlignCommands.d.ts +98 -0
- package/dist/core/commands/floatingReorderCommands.d.ts +17 -0
- package/dist/core/commands/headerFooter.d.ts +17 -0
- package/dist/core/commands/horizontalLine.d.ts +3 -0
- package/dist/core/commands/hyphenation.d.ts +27 -0
- package/dist/core/commands/image.d.ts +45 -0
- package/dist/core/commands/noteOptions.d.ts +22 -0
- package/dist/core/commands/outlineStep.d.ts +13 -0
- package/dist/core/commands/pageSetup.d.ts +41 -1
- package/dist/core/commands/paragraphAdjustRightInd.d.ts +8 -0
- package/dist/core/commands/paragraphAlign.d.ts +10 -0
- package/dist/core/commands/paragraphAutoSpaceDE.d.ts +8 -0
- package/dist/core/commands/paragraphAutoSpaceDN.d.ts +8 -0
- package/dist/core/commands/paragraphBidi.d.ts +7 -0
- package/dist/core/commands/paragraphContextualSpacing.d.ts +7 -0
- package/dist/core/commands/paragraphKeepLinesTogether.d.ts +7 -0
- package/dist/core/commands/paragraphKeepWithNext.d.ts +7 -0
- package/dist/core/commands/paragraphKinsoku.d.ts +8 -0
- package/dist/core/commands/paragraphLineRule.d.ts +10 -0
- package/dist/core/commands/paragraphListLevel.d.ts +8 -0
- package/dist/core/commands/paragraphMirrorIndents.d.ts +7 -0
- package/dist/core/commands/paragraphMove.d.ts +8 -0
- package/dist/core/commands/paragraphOutlineLevel.d.ts +11 -0
- package/dist/core/commands/paragraphOverflowPunct.d.ts +8 -0
- package/dist/core/commands/paragraphPageBreakBefore.d.ts +7 -0
- package/dist/core/commands/paragraphReset.d.ts +9 -0
- package/dist/core/commands/paragraphSort.d.ts +7 -0
- package/dist/core/commands/paragraphSuppressAutoHyphens.d.ts +7 -0
- package/dist/core/commands/paragraphSuppressLineNumbers.d.ts +7 -0
- package/dist/core/commands/paragraphTabs.d.ts +28 -0
- package/dist/core/commands/paragraphTextDirection.d.ts +9 -0
- package/dist/core/commands/paragraphTopLinePunct.d.ts +7 -0
- package/dist/core/commands/paragraphWidowControl.d.ts +8 -0
- package/dist/core/commands/paragraphWordWrap.d.ts +8 -0
- package/dist/core/commands/publicCommandTypes.d.ts +190 -3
- package/dist/core/commands/selectUnit.d.ts +43 -0
- package/dist/core/commands/shape.d.ts +4 -0
- package/dist/core/commands/shapeFillCommands.d.ts +31 -0
- package/dist/core/commands/specialChar.d.ts +18 -0
- package/dist/core/commands/table/tableAlignmentCommands.d.ts +10 -0
- package/dist/core/commands/table/tableAutoFitCommands.d.ts +16 -0
- package/dist/core/commands/table/tableCellFitTextCommands.d.ts +7 -0
- package/dist/core/commands/table/tableCellMarginsCommands.d.ts +20 -0
- package/dist/core/commands/table/tableCellNoWrapCommands.d.ts +7 -0
- package/dist/core/commands/table/tableCellSpacingCommands.d.ts +9 -0
- package/dist/core/commands/table/tableColumnCommands.d.ts +10 -0
- package/dist/core/commands/table/tableDeleteCellsCommands.d.ts +16 -0
- package/dist/core/commands/table/tableDeleteCommands.d.ts +11 -0
- package/dist/core/commands/table/tableFormulaCommands.d.ts +34 -0
- package/dist/core/commands/table/tableIndentCommands.d.ts +9 -0
- package/dist/core/commands/table/tableRepeatHeaderCommands.d.ts +15 -0
- package/dist/core/commands/table/tableRowBreakAcrossPagesCommands.d.ts +9 -0
- package/dist/core/commands/table/tableRowCommands.d.ts +2 -0
- package/dist/core/commands/table/tableRowHeightCommands.d.ts +21 -0
- package/dist/core/commands/table/tableSelectionCommands.d.ts +18 -0
- package/dist/core/commands/table/tableSortCommands.d.ts +16 -0
- package/dist/core/commands/table/tableSplitCommands.d.ts +16 -0
- package/dist/core/commands/table/tableStyleCommands.d.ts +9 -0
- package/dist/core/commands/table.d.ts +16 -0
- package/dist/core/commands/text.d.ts +1 -1
- package/dist/core/commands/textBoxBodyCommands.d.ts +43 -0
- package/dist/core/commands/textFormatting.d.ts +15 -0
- package/dist/core/commands/zoneBlocks.d.ts +10 -0
- package/dist/core/engine.d.ts +3 -0
- package/dist/core/model/types/primitives.d.ts +10 -0
- package/dist/core/textStyle/textStyleKeys.d.ts +3 -3
- package/dist/core/transactionMergeKeys.d.ts +35 -0
- package/dist/defaultToolbar-Em7_omZA.js +1 -0
- package/dist/export/docx/docxTypes.d.ts +1 -0
- package/dist/i18n/locales/en.d.ts +18 -0
- package/dist/i18n/locales/pt-BR.d.ts +18 -0
- package/dist/layoutProjection/floatingObjects.d.ts +3 -0
- package/dist/oasis-editor.js +1 -1
- package/dist/oasis-editor.umd.cjs +1 -1
- package/dist/plugins/internal/essentialsCapabilities.d.ts +314 -2
- package/dist/plugins/internal/essentialsCommandBuilders.d.ts +2 -0
- package/dist/plugins/internal/essentialsCommandGroups/table.d.ts +3 -2
- package/dist/ui/app/createAppCommandsController.d.ts +12 -2
- package/dist/ui/app/createEditorCommandRuntime.d.ts +11 -1
- package/dist/ui/app/essentials/types.d.ts +2 -0
- package/dist/ui/components/Toolbar/marginPresets.d.ts +5 -9
- package/dist/ui/toolbarStyleState.d.ts +22 -3
- package/package.json +1 -1
- package/dist/OasisEditorApp-CjSBBmts.js +0 -1
- package/dist/defaultToolbar-NDF0Ecan.js +0 -1
|
@@ -18,11 +18,12 @@ export interface EditorCommandsControllerDeps extends EditorTransactionPort, Foc
|
|
|
18
18
|
export declare function createEditorCommandsController(deps: EditorCommandsControllerDeps): ReturnType<typeof createEditorCommandsControllerImpl>;
|
|
19
19
|
declare function createEditorCommandsControllerImpl(deps: EditorCommandsControllerDeps): {
|
|
20
20
|
applyBooleanStyleCommand: (key: BooleanStyleKey) => void;
|
|
21
|
+
applyToggleCharacterBorderCommand: () => void;
|
|
21
22
|
applyValueStyleCommand: <K extends "styleId" | "fontFamily" | "fontSize" | "color" | "highlight" | "shading" | "language" | "textEffect" | "link" | "underlineStyle">(key: K, value: EditorTextStyle[K] | null) => void;
|
|
22
23
|
applyChangeTextCaseCommand: (mode: TextCaseMode) => void;
|
|
23
24
|
applyClearFormattingCommand: () => void;
|
|
24
25
|
applyParagraphStyleCommand: <K extends ParagraphStyleKey>(key: K, value: EditorParagraphStyle[K] | null) => void;
|
|
25
|
-
toggleParagraphFlagCommand: (key: "pageBreakBefore" | "keepWithNext") => void;
|
|
26
|
+
toggleParagraphFlagCommand: (key: "pageBreakBefore" | "keepWithNext" | "keepLinesTogether" | "widowControl") => void;
|
|
26
27
|
applyParagraphListCommand: (kind: NonNullable<EditorParagraphListStyle["kind"]>) => void;
|
|
27
28
|
handleListFormatChange: (format: EditorParagraphListStyle["format"]) => void;
|
|
28
29
|
handleListStartAtChange: (startAt: number | null) => void;
|
|
@@ -54,6 +55,10 @@ declare function createEditorCommandsControllerImpl(deps: EditorCommandsControll
|
|
|
54
55
|
applyImageCropFitCommand: () => void;
|
|
55
56
|
resetImageCropCommand: () => void;
|
|
56
57
|
applyImageBorderCommand: (patch: ImageBorderPatch) => void;
|
|
58
|
+
flipImageCommand: (axis: "horizontal" | "vertical") => void;
|
|
59
|
+
rotateImageCommand: (direction: "left" | "right") => void;
|
|
60
|
+
applyImageTransparencyCommand: (transparency: number | null) => void;
|
|
61
|
+
resetImageCommand: () => void;
|
|
57
62
|
handleListTab: (direction: "indent" | "outdent") => boolean;
|
|
58
63
|
handleListEnter: () => boolean;
|
|
59
64
|
handleListBoundaryBackspace: (event: KeyboardEvent & {
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import { EditorDocument, EditorPosition } from '../../core/model.js';
|
|
2
|
-
/** Describes a single match found by the find service. */
|
|
3
|
-
export interface FindReplaceMatch {
|
|
4
|
-
anchor: EditorPosition;
|
|
5
|
-
focus: EditorPosition;
|
|
6
|
-
paragraphIndex: number;
|
|
7
|
-
}
|
|
8
|
-
/** Options that control how find searches operate. */
|
|
9
|
-
export interface FindOptions {
|
|
10
|
-
matchCase?: boolean;
|
|
11
|
-
wholeWord?: boolean;
|
|
12
|
-
}
|
|
13
1
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
2
|
+
* Find-and-replace service.
|
|
3
|
+
*
|
|
4
|
+
* The search engine and the document mutation live in the core
|
|
5
|
+
* `findReplace` command module; this file is a thin re-export so existing
|
|
6
|
+
* consumers keep their import path.
|
|
19
7
|
*/
|
|
20
|
-
export
|
|
8
|
+
export { findMatchesInDocument, replaceAllInDocument, type FindOptions, type FindReplaceMatch, } from '../../core/commands/findReplace.js';
|