swerasty_editor 0.1.0 → 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 +3 -0
- package/dist/components/Canvas.d.ts +15 -0
- package/dist/components/Editor.d.ts +7 -0
- package/dist/components/HandwritingModal.d.ts +0 -0
- package/dist/components/MathModal.d.ts +9 -0
- package/dist/components/TableModal.d.ts +8 -0
- package/dist/components/Toolbar.d.ts +11 -0
- package/dist/components/toolbars/ChemToolbar.d.ts +6 -0
- package/dist/components/toolbars/MathToolbar.d.ts +6 -0
- package/dist/demo/App.d.ts +0 -0
- package/dist/index.d.ts +2 -0
- package/dist/main.d.ts +1 -0
- package/dist/my-react-lib.js +12000 -0
- package/dist/my-react-lib.umd.cjs +377 -0
- package/dist/services/gemini.d.ts +0 -0
- package/dist/services/geminiService.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/types.d.ts +6 -0
- package/package.json +26 -29
- package/dist/swerasty_editor.js +0 -1
- package/dist/swerasty_editor.umd.cjs +0 -1
package/dist/App.d.ts
ADDED
|
@@ -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,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;
|
|
File without changes
|
package/dist/index.d.ts
ADDED
package/dist/main.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|