erl-mathtextx-editor 0.1.10 → 0.2.0

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.
@@ -1,4 +1,4 @@
1
- import { g as Wt, c as F, a as za } from "./index-CakccgVO.js";
1
+ import { g as Wt, c as F, a as za } from "./index-D0Rzm7Tg.js";
2
2
  function yf(t, e) {
3
3
  for (var n = 0; n < e.length; n++) {
4
4
  const r = e[n];
@@ -5,6 +5,7 @@ interface MainToolbarProps {
5
5
  editor: Editor | null;
6
6
  toolbarMode?: ToolbarMode;
7
7
  onInsertMath?: (tab?: string) => void;
8
+ onInsertBlockMath?: () => void;
8
9
  onInsertImage?: () => void;
9
10
  onEditImage?: () => void;
10
11
  onSetImageAlign?: (align: 'left' | 'center' | 'right' | 'full') => void;
@@ -1,7 +1,9 @@
1
+ import { ToolbarMode } from '../types';
1
2
  interface MathToolbarProps {
2
3
  onInsertLatex: (latex: string) => void;
3
4
  onToggleSymbols: () => void;
4
5
  onToggleTemplates?: () => void;
6
+ mode?: ToolbarMode;
5
7
  }
6
- export declare function MathToolbar({ onInsertLatex, onToggleSymbols, onToggleTemplates }: MathToolbarProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function MathToolbar({ onInsertLatex, onToggleSymbols, onToggleTemplates, mode }: MathToolbarProps): import("react/jsx-runtime").JSX.Element;
7
9
  export {};
@@ -8,7 +8,7 @@ export type EducationLevel = 'sd' | 'smp' | 'sma' | 'all';
8
8
  /** Output format */
9
9
  export type OutputFormat = 'html' | 'json';
10
10
  /** Toolbar density mode */
11
- export type ToolbarMode = 'basic' | 'advanced';
11
+ export type ToolbarMode = 'basic' | 'advanced' | 'olimpiade';
12
12
  /** Main editor props */
13
13
  export interface MathTextXEditorProps {
14
14
  /** Initial content (HTML string or TipTap JSON) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "erl-mathtextx-editor",
3
- "version": "0.1.10",
3
+ "version": "0.2.0",
4
4
  "description": "Visual math editor component for solutest.id — CKEditor replacement with zero-LaTeX approach",
5
5
  "type": "module",
6
6
  "main": "./dist/erl-mathtextx-editor.umd.cjs",