mathlean-canvas 0.3.4 → 0.3.5

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.
@@ -13,6 +13,7 @@ export type ActiveInlineMathSession = {
13
13
  start: number;
14
14
  end: number;
15
15
  displayMode: boolean;
16
+ initialPosition?: "start" | "end";
16
17
  tailAfter?: string;
17
18
  };
18
19
  export type InlineMathPreview = {
@@ -50,6 +51,7 @@ export declare function useInlineMathSession({ blocks, editingBlockId, editingVa
50
51
  activeInlineMathSessionRef: RefObject<ActiveInlineMathSession | null>;
51
52
  editingDisplayValue: string;
52
53
  inlineMathEditorMode: "mathlive" | "fallback";
54
+ isOpeningInlineMathSession: boolean;
53
55
  isOpeningInlineMathSessionRef: RefObject<boolean>;
54
56
  latexPreview: InlineMathPreview;
55
57
  markInlineMathEditorReady: () => void;
@@ -58,7 +60,7 @@ export declare function useInlineMathSession({ blocks, editingBlockId, editingVa
58
60
  activateInlineMathFallback: (fallbackLatex?: string) => void;
59
61
  resetInlineMathState: () => void;
60
62
  insertInlineMathAtSelection: (start: number, end: number) => void;
61
- reopenInlineMathSessionAtBoundary: (direction: "before" | "after") => boolean;
63
+ reopenInlineMathSessionAtBoundary: (direction: "before" | "after", selection?: number) => boolean;
62
64
  commitActiveInlineMathDraft: () => void;
63
65
  exitActiveInlineMathDraft: (direction: "before" | "after") => void;
64
66
  cancelActiveInlineMathDraft: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mathlean-canvas",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",