oasis-editor 0.0.148 → 0.0.150
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-B1b1iJOQ.js → OasisEditorApp-CZNfjaj2.js} +661 -79
- package/dist/app/controllers/EditorCommandsController.d.ts +4 -0
- package/dist/app/controllers/createCropSession.d.ts +1 -0
- package/dist/app/controllers/useEditorImageOperations.d.ts +3 -0
- package/dist/app/controllers/useEditorSurfaceEvents.d.ts +1 -0
- package/dist/assets/importDocxWorker-Ddoy1WwF.js +12 -0
- package/dist/core/commands/builtinCommands.d.ts +1 -1
- package/dist/core/commands/image.d.ts +16 -1
- package/dist/core/commands/publicCommandTypes.d.ts +11 -1
- package/dist/core/commands/text.d.ts +1 -1
- package/dist/core/commands/textEditing.d.ts +3 -1
- package/dist/core/document/clone.d.ts +2 -1
- package/dist/core/math/linear.d.ts +5 -0
- package/dist/core/model/index.d.ts +4 -2
- package/dist/core/model/runKind.d.ts +3 -0
- package/dist/core/model/types/layout.d.ts +2 -0
- package/dist/core/model/types/math.d.ts +95 -0
- package/dist/core/model/types/nodes.d.ts +4 -0
- package/dist/core/model/types/primitives.d.ts +16 -0
- package/dist/export/docx/docxTypes.d.ts +3 -1
- package/dist/export/docx/text/mathXml.d.ts +3 -0
- package/dist/export/pdf/OasisPdfWriter.d.ts +2 -1
- package/dist/export/pdf/writer/PdfContentStream.d.ts +3 -1
- package/dist/i18n/locales/en.d.ts +13 -0
- package/dist/i18n/locales/pt-BR.d.ts +13 -0
- package/dist/import/docx/math.d.ts +5 -0
- package/dist/import/docx/runs/types.d.ts +2 -1
- package/dist/{index-CpZO1PF4.js → index-DgN6KXYw.js} +2405 -1510
- package/dist/index.d.ts +1 -0
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +79 -79
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/plugins/internal/essentialsCapabilities.d.ts +14 -1
- package/dist/ui/OasisEditorEditorProps.d.ts +3 -0
- package/dist/ui/app/EditorDialogsLayer.d.ts +2 -0
- package/dist/ui/app/buildEditorViewProps.d.ts +1 -0
- package/dist/ui/app/createAppCommandsController.d.ts +8 -0
- package/dist/ui/app/createEditorCommandRuntime.d.ts +9 -0
- package/dist/ui/app/createEditorInteractionRuntime.d.ts +4 -0
- package/dist/ui/app/essentials/types.d.ts +1 -0
- package/dist/ui/app/useEditorDialogs.d.ts +11 -0
- package/dist/ui/app/useEditorInteractionWiring.d.ts +1 -0
- package/dist/ui/components/Dialogs/EquationDialog.d.ts +10 -0
- package/dist/ui/cropGeometry.d.ts +4 -3
- package/dist/ui/math/mathPainter.d.ts +10 -0
- package/dist/ui/overlays/ImageCropPreviewOverlay.d.ts +16 -0
- package/package.json +1 -1
- package/dist/assets/importDocxWorker-BLm3QMHu.js +0 -12
|
@@ -48,6 +48,10 @@ declare function createEditorCommandsControllerImpl(deps: EditorCommandsControll
|
|
|
48
48
|
applyImageWidthCmCommand: (cm: number) => void;
|
|
49
49
|
applyImageHeightCmCommand: (cm: number) => void;
|
|
50
50
|
applyImageCropAspectCommand: (preset: string) => void;
|
|
51
|
+
applyImageCropShapeCommand: (preset: string) => void;
|
|
52
|
+
applyImageCropFillCommand: () => void;
|
|
53
|
+
applyImageCropFitCommand: () => void;
|
|
54
|
+
resetImageCropCommand: () => void;
|
|
51
55
|
applyImageBorderCommand: (patch: ImageBorderPatch) => void;
|
|
52
56
|
handleListTab: (direction: "indent" | "outdent") => boolean;
|
|
53
57
|
handleListEnter: () => boolean;
|
|
@@ -22,5 +22,6 @@ export interface CropSessionDeps {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare function createCropSession(deps: CropSessionDeps): {
|
|
24
24
|
start: (paragraphId: string, paragraphOffset: number, handleDirection: ResizeHandleDirection, event: MouseEvent, initialState: EditorState) => void;
|
|
25
|
+
startMove: (paragraphId: string, paragraphOffset: number, event: MouseEvent, initialState: EditorState) => void;
|
|
25
26
|
stop: () => void;
|
|
26
27
|
};
|
|
@@ -73,5 +73,8 @@ declare function createEditorImageOperationsImpl(deps: EditorImageOperationsDeps
|
|
|
73
73
|
handleImageCropHandleMouseDown: (paragraphId: string, paragraphOffset: number, direction: ResizeHandleDirection, event: MouseEvent & {
|
|
74
74
|
currentTarget: HTMLElement;
|
|
75
75
|
}) => void;
|
|
76
|
+
handleImageCropBodyMouseDown: (paragraphId: string, paragraphOffset: number, event: MouseEvent & {
|
|
77
|
+
currentTarget: HTMLElement;
|
|
78
|
+
}) => void;
|
|
76
79
|
};
|
|
77
80
|
export {};
|
|
@@ -33,6 +33,7 @@ export interface UseEditorSurfaceEventsProps {
|
|
|
33
33
|
debug: (msg: string) => void;
|
|
34
34
|
info: (msg: string, payload?: unknown) => void;
|
|
35
35
|
};
|
|
36
|
+
openEquationDialog: (initial?: import('../../core/model.js').EditorMathExpression, targetRunId?: string) => void;
|
|
36
37
|
}
|
|
37
38
|
export declare function createEditorSurfaceEvents(deps: UseEditorSurfaceEventsProps): ReturnType<typeof createEditorSurfaceEventsImpl>;
|
|
38
39
|
declare function createEditorSurfaceEventsImpl(deps: UseEditorSurfaceEventsProps): {
|