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.
Files changed (48) hide show
  1. package/dist/{OasisEditorApp-B1b1iJOQ.js → OasisEditorApp-CZNfjaj2.js} +661 -79
  2. package/dist/app/controllers/EditorCommandsController.d.ts +4 -0
  3. package/dist/app/controllers/createCropSession.d.ts +1 -0
  4. package/dist/app/controllers/useEditorImageOperations.d.ts +3 -0
  5. package/dist/app/controllers/useEditorSurfaceEvents.d.ts +1 -0
  6. package/dist/assets/importDocxWorker-Ddoy1WwF.js +12 -0
  7. package/dist/core/commands/builtinCommands.d.ts +1 -1
  8. package/dist/core/commands/image.d.ts +16 -1
  9. package/dist/core/commands/publicCommandTypes.d.ts +11 -1
  10. package/dist/core/commands/text.d.ts +1 -1
  11. package/dist/core/commands/textEditing.d.ts +3 -1
  12. package/dist/core/document/clone.d.ts +2 -1
  13. package/dist/core/math/linear.d.ts +5 -0
  14. package/dist/core/model/index.d.ts +4 -2
  15. package/dist/core/model/runKind.d.ts +3 -0
  16. package/dist/core/model/types/layout.d.ts +2 -0
  17. package/dist/core/model/types/math.d.ts +95 -0
  18. package/dist/core/model/types/nodes.d.ts +4 -0
  19. package/dist/core/model/types/primitives.d.ts +16 -0
  20. package/dist/export/docx/docxTypes.d.ts +3 -1
  21. package/dist/export/docx/text/mathXml.d.ts +3 -0
  22. package/dist/export/pdf/OasisPdfWriter.d.ts +2 -1
  23. package/dist/export/pdf/writer/PdfContentStream.d.ts +3 -1
  24. package/dist/i18n/locales/en.d.ts +13 -0
  25. package/dist/i18n/locales/pt-BR.d.ts +13 -0
  26. package/dist/import/docx/math.d.ts +5 -0
  27. package/dist/import/docx/runs/types.d.ts +2 -1
  28. package/dist/{index-CpZO1PF4.js → index-DgN6KXYw.js} +2405 -1510
  29. package/dist/index.d.ts +1 -0
  30. package/dist/oasis-editor.css +1 -1
  31. package/dist/oasis-editor.js +79 -79
  32. package/dist/oasis-editor.umd.cjs +4 -4
  33. package/dist/plugins/internal/essentialsCapabilities.d.ts +14 -1
  34. package/dist/ui/OasisEditorEditorProps.d.ts +3 -0
  35. package/dist/ui/app/EditorDialogsLayer.d.ts +2 -0
  36. package/dist/ui/app/buildEditorViewProps.d.ts +1 -0
  37. package/dist/ui/app/createAppCommandsController.d.ts +8 -0
  38. package/dist/ui/app/createEditorCommandRuntime.d.ts +9 -0
  39. package/dist/ui/app/createEditorInteractionRuntime.d.ts +4 -0
  40. package/dist/ui/app/essentials/types.d.ts +1 -0
  41. package/dist/ui/app/useEditorDialogs.d.ts +11 -0
  42. package/dist/ui/app/useEditorInteractionWiring.d.ts +1 -0
  43. package/dist/ui/components/Dialogs/EquationDialog.d.ts +10 -0
  44. package/dist/ui/cropGeometry.d.ts +4 -3
  45. package/dist/ui/math/mathPainter.d.ts +10 -0
  46. package/dist/ui/overlays/ImageCropPreviewOverlay.d.ts +16 -0
  47. package/package.json +1 -1
  48. 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): {