swerasty_editor 0.1.1 → 0.1.2

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/App.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ declare const App: React.FC;
3
+ export default App;
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ interface CanvasProps {
3
+ onHistoryChange?: (state: {
4
+ canUndo: boolean;
5
+ canRedo: boolean;
6
+ }) => void;
7
+ }
8
+ export interface CanvasRef {
9
+ clear: () => void;
10
+ undo: () => void;
11
+ redo: () => void;
12
+ getTrimmedImageData: () => string | null;
13
+ }
14
+ export declare const Canvas: React.ForwardRefExoticComponent<CanvasProps & React.RefAttributes<CanvasRef>>;
15
+ export {};
@@ -0,0 +1,7 @@
1
+ import { EditorProps } from '../types';
2
+ export interface EditorRef {
3
+ getContent: () => string;
4
+ setContent: (content: string) => void;
5
+ }
6
+ declare const Editor: import('react').ForwardRefExoticComponent<EditorProps & import('react').RefAttributes<EditorRef>>;
7
+ export default Editor;
File without changes
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ interface MathModalProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ onInsert: (html: string) => void;
6
+ apiKey?: string;
7
+ }
8
+ export declare const MathModal: React.FC<MathModalProps>;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ interface TableModalProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ onInsert: (rows: number, cols: number) => void;
6
+ }
7
+ export declare const TableModal: React.FC<TableModalProps>;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ interface ToolbarProps {
3
+ onOpenHandwritingModal: () => void;
4
+ onApplyStyle: (command: string, value?: string) => void;
5
+ onUndo: () => void;
6
+ onRedo: () => void;
7
+ canUndo: boolean;
8
+ canRedo: boolean;
9
+ }
10
+ export declare const Toolbar: React.FC<ToolbarProps>;
11
+ export default Toolbar;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface ChemToolbarProps {
3
+ onInsert: (latex: string) => void;
4
+ }
5
+ export declare const ChemToolbar: React.FC<ChemToolbarProps>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface MathToolbarProps {
3
+ onInsert: (latex: string) => void;
4
+ }
5
+ export declare const MathToolbar: React.FC<MathToolbarProps>;
6
+ export {};
File without changes
@@ -0,0 +1,2 @@
1
+ export { default as Editor } from './components/Editor';
2
+ export type { EditorRef } from './components/Editor';
package/dist/main.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};