react-latex-editor-custom-mhzn-v2 1.0.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.
- package/LICENSE +20 -0
- package/README.md +342 -0
- package/dist/components/CharacterCount.d.ts +6 -0
- package/dist/components/CharacterCount.d.ts.map +1 -0
- package/dist/components/Editor.d.ts +83 -0
- package/dist/components/Editor.d.ts.map +1 -0
- package/dist/components/EditorToolbar.d.ts +10 -0
- package/dist/components/EditorToolbar.d.ts.map +1 -0
- package/dist/components/ErrorBoundary.d.ts +20 -0
- package/dist/components/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/ImagePickerDialog.d.ts +15 -0
- package/dist/components/ImagePickerDialog.d.ts.map +1 -0
- package/dist/components/LoadingOverlay.d.ts +5 -0
- package/dist/components/LoadingOverlay.d.ts.map +1 -0
- package/dist/components/MathEquationDialog.d.ts +39 -0
- package/dist/components/MathEquationDialog.d.ts.map +1 -0
- package/dist/components/ModalPortal.d.ts +11 -0
- package/dist/components/ModalPortal.d.ts.map +1 -0
- package/dist/components/ResizableImageView.d.ts +22 -0
- package/dist/components/ResizableImageView.d.ts.map +1 -0
- package/dist/components/ResizableYoutubeView.d.ts +18 -0
- package/dist/components/ResizableYoutubeView.d.ts.map +1 -0
- package/dist/components/TableControls.d.ts +8 -0
- package/dist/components/TableControls.d.ts.map +1 -0
- package/dist/components/Viewer.d.ts +38 -0
- package/dist/components/Viewer.d.ts.map +1 -0
- package/dist/components/toolbars/AlignmentControls.d.ts +8 -0
- package/dist/components/toolbars/AlignmentControls.d.ts.map +1 -0
- package/dist/components/toolbars/BlockControls.d.ts +8 -0
- package/dist/components/toolbars/BlockControls.d.ts.map +1 -0
- package/dist/components/toolbars/ColorControls.d.ts +8 -0
- package/dist/components/toolbars/ColorControls.d.ts.map +1 -0
- package/dist/components/toolbars/FontControls.d.ts +8 -0
- package/dist/components/toolbars/FontControls.d.ts.map +1 -0
- package/dist/components/toolbars/HeadingControls.d.ts +8 -0
- package/dist/components/toolbars/HeadingControls.d.ts.map +1 -0
- package/dist/components/toolbars/HistoryControls.d.ts +8 -0
- package/dist/components/toolbars/HistoryControls.d.ts.map +1 -0
- package/dist/components/toolbars/ImageAlignmentControls.d.ts +13 -0
- package/dist/components/toolbars/ImageAlignmentControls.d.ts.map +1 -0
- package/dist/components/toolbars/ImageGroupAlignmentControls.d.ts +13 -0
- package/dist/components/toolbars/ImageGroupAlignmentControls.d.ts.map +1 -0
- package/dist/components/toolbars/ListControls.d.ts +8 -0
- package/dist/components/toolbars/ListControls.d.ts.map +1 -0
- package/dist/components/toolbars/SpecialFeaturesControls.d.ts +10 -0
- package/dist/components/toolbars/SpecialFeaturesControls.d.ts.map +1 -0
- package/dist/components/toolbars/TextFormattingControls.d.ts +8 -0
- package/dist/components/toolbars/TextFormattingControls.d.ts.map +1 -0
- package/dist/components/toolbars/ToolbarButton.d.ts +12 -0
- package/dist/components/toolbars/ToolbarButton.d.ts.map +1 -0
- package/dist/components/toolbars/ToolbarDivider.d.ts +3 -0
- package/dist/components/toolbars/ToolbarDivider.d.ts.map +1 -0
- package/dist/components/toolbars/YouTubeControls.d.ts +13 -0
- package/dist/components/toolbars/YouTubeControls.d.ts.map +1 -0
- package/dist/constants/config.d.ts +144 -0
- package/dist/constants/config.d.ts.map +1 -0
- package/dist/constants/editorConstants.d.ts +12 -0
- package/dist/constants/editorConstants.d.ts.map +1 -0
- package/dist/extensions/BackgroundColor.d.ts +12 -0
- package/dist/extensions/BackgroundColor.d.ts.map +1 -0
- package/dist/extensions/CustomTextStyle.d.ts +16 -0
- package/dist/extensions/CustomTextStyle.d.ts.map +1 -0
- package/dist/extensions/ImageGroup.d.ts +4 -0
- package/dist/extensions/ImageGroup.d.ts.map +1 -0
- package/dist/extensions/InlineMath.d.ts +11 -0
- package/dist/extensions/InlineMath.d.ts.map +1 -0
- package/dist/extensions/MathNode.d.ts +4 -0
- package/dist/extensions/MathNode.d.ts.map +1 -0
- package/dist/extensions/MathNodeView.d.ts +28 -0
- package/dist/extensions/MathNodeView.d.ts.map +1 -0
- package/dist/extensions/ResizableImageExtension.d.ts +3 -0
- package/dist/extensions/ResizableImageExtension.d.ts.map +1 -0
- package/dist/extensions/ResizableYoutubeExtension.d.ts +3 -0
- package/dist/extensions/ResizableYoutubeExtension.d.ts.map +1 -0
- package/dist/hooks/useEditorForceUpdate.d.ts +7 -0
- package/dist/hooks/useEditorForceUpdate.d.ts.map +1 -0
- package/dist/hooks/useEditorKeyboard.d.ts +10 -0
- package/dist/hooks/useEditorKeyboard.d.ts.map +1 -0
- package/dist/hooks/useEditorState.d.ts +38 -0
- package/dist/hooks/useEditorState.d.ts.map +1 -0
- package/dist/hooks/useResponsive.d.ts +2 -0
- package/dist/hooks/useResponsive.d.ts.map +1 -0
- package/dist/index.cjs.js +131 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +23223 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.html +6 -0
- package/dist/react-latex-editor-custom-mhzn-v2.css +1 -0
- package/dist/styles.d.ts +1 -0
- package/dist/styles.d.ts.map +1 -0
- package/dist/types/editor.d.ts +87 -0
- package/dist/types/editor.d.ts.map +1 -0
- package/dist/types/mathlive.d.ts +25 -0
- package/dist/types/mathlive.d.ts.map +1 -0
- package/dist/utils/contentStats.d.ts +13 -0
- package/dist/utils/contentStats.d.ts.map +1 -0
- package/dist/utils/editorConfig.d.ts +23 -0
- package/dist/utils/editorConfig.d.ts.map +1 -0
- package/dist/utils/editorUtils.d.ts +23 -0
- package/dist/utils/editorUtils.d.ts.map +1 -0
- package/dist/utils/helpers.d.ts +58 -0
- package/dist/utils/helpers.d.ts.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/media.d.ts +30 -0
- package/dist/utils/media.d.ts.map +1 -0
- package/dist/utils/svgDom.d.ts +19 -0
- package/dist/utils/svgDom.d.ts.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +124 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
MathJax?: {
|
|
4
|
+
tex: {
|
|
5
|
+
inlineMath: string[][];
|
|
6
|
+
displayMath: string[][];
|
|
7
|
+
processEscapes: boolean;
|
|
8
|
+
processEnvironments: boolean;
|
|
9
|
+
packages: string[];
|
|
10
|
+
};
|
|
11
|
+
options: {
|
|
12
|
+
skipHtmlTags: string[];
|
|
13
|
+
ignoreHtmlClass: string;
|
|
14
|
+
processHtmlClass: string;
|
|
15
|
+
};
|
|
16
|
+
startup: {
|
|
17
|
+
pageReady?: () => Promise<void>;
|
|
18
|
+
defaultPageReady: () => Promise<void>;
|
|
19
|
+
};
|
|
20
|
+
typesetClear?: (elements?: Element[]) => void;
|
|
21
|
+
typesetPromise?: (elements: Element[]) => Promise<void>;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
interface ViewerProps {
|
|
26
|
+
content: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
contentClassName?: string;
|
|
29
|
+
enableMath?: boolean;
|
|
30
|
+
mathJaxConfig?: {
|
|
31
|
+
inlineMath?: string[][];
|
|
32
|
+
displayMath?: string[][];
|
|
33
|
+
packages?: string[];
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export declare const Viewer: ({ content, className, contentClassName, enableMath, mathJaxConfig, }: ViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export default Viewer;
|
|
38
|
+
//# sourceMappingURL=Viewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Viewer.d.ts","sourceRoot":"","sources":["../../src/components/Viewer.tsx"],"names":[],"mappings":"AASA,OAAO,sBAAsB,CAAC;AAE9B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,OAAO,CAAC,EAAE;YACR,GAAG,EAAE;gBACH,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC;gBACvB,WAAW,EAAE,MAAM,EAAE,EAAE,CAAC;gBACxB,cAAc,EAAE,OAAO,CAAC;gBACxB,mBAAmB,EAAE,OAAO,CAAC;gBAC7B,QAAQ,EAAE,MAAM,EAAE,CAAC;aACpB,CAAC;YACF,OAAO,EAAE;gBACP,YAAY,EAAE,MAAM,EAAE,CAAC;gBACvB,eAAe,EAAE,MAAM,CAAC;gBACxB,gBAAgB,EAAE,MAAM,CAAC;aAC1B,CAAC;YACF,OAAO,EAAE;gBACP,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;gBAChC,gBAAgB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;aACvC,CAAC;YACF,YAAY,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;YAC9C,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;SACzD,CAAC;KACH;CACF;AAED,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE;QACd,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;QACxB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;QACzB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;CACH;AAmFD,eAAO,MAAM,MAAM,GAAI,sEAMpB,WAAW,4CAmIb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
interface AlignmentControlsProps {
|
|
3
|
+
editor: Editor | null;
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const AlignmentControls: ({ editor, readOnly }: AlignmentControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default AlignmentControls;
|
|
8
|
+
//# sourceMappingURL=AlignmentControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlignmentControls.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/AlignmentControls.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,UAAU,sBAAsB;IAC9B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,iBAAiB,GAAI,sBAAsB,sBAAsB,4CAqDtE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
interface BlockControlsProps {
|
|
3
|
+
editor: Editor | null;
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const BlockControls: ({ editor, readOnly }: BlockControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default BlockControls;
|
|
8
|
+
//# sourceMappingURL=BlockControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockControls.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/BlockControls.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,UAAU,kBAAkB;IAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,aAAa,GAAI,sBAAsB,kBAAkB,4CA4D9D,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
interface ColorControlsProps {
|
|
3
|
+
editor: Editor | null;
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const ColorControls: ({ editor, readOnly }: ColorControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ColorControls;
|
|
8
|
+
//# sourceMappingURL=ColorControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorControls.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/ColorControls.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,UAAU,kBAAkB;IAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,aAAa,GAAI,sBAAsB,kBAAkB,4CAoC9D,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
export interface FontControlsProps {
|
|
3
|
+
editor: Editor | null;
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const FontControls: ({ editor, readOnly }: FontControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default FontControls;
|
|
8
|
+
//# sourceMappingURL=FontControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FontControls.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/FontControls.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,YAAY,GAAI,sBAAsB,iBAAiB,4CAyC5D,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
interface HeadingControlsProps {
|
|
3
|
+
editor: Editor | null;
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const HeadingControls: ({ editor, readOnly }: HeadingControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default HeadingControls;
|
|
8
|
+
//# sourceMappingURL=HeadingControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeadingControls.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/HeadingControls.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAG5C,UAAU,oBAAoB;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAUD,QAAA,MAAM,eAAe,GAAI,sBAAsB,oBAAoB,4CAiClE,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
interface HistoryControlsProps {
|
|
3
|
+
editor: Editor | null;
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const HistoryControls: ({ editor, readOnly }: HistoryControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default HistoryControls;
|
|
8
|
+
//# sourceMappingURL=HistoryControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HistoryControls.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/HistoryControls.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,UAAU,oBAAoB;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,eAAe,GAAI,sBAAsB,oBAAoB,4CA2BlE,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface ImageAlignmentControlsProps {
|
|
2
|
+
/**
|
|
3
|
+
* The Tiptap editor instance
|
|
4
|
+
*/
|
|
5
|
+
editor: any;
|
|
6
|
+
/**
|
|
7
|
+
* Whether the editor is in read-only mode
|
|
8
|
+
*/
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const ImageAlignmentControls: ({ editor, readOnly, }: ImageAlignmentControlsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export default ImageAlignmentControls;
|
|
13
|
+
//# sourceMappingURL=ImageAlignmentControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageAlignmentControls.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/ImageAlignmentControls.tsx"],"names":[],"mappings":"AAEA,UAAU,2BAA2B;IACnC;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,sBAAsB,GAAI,uBAG7B,2BAA2B,mDAmF7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface ImageGroupAlignmentControlsProps {
|
|
2
|
+
/**
|
|
3
|
+
* The Tiptap editor instance
|
|
4
|
+
*/
|
|
5
|
+
editor: any;
|
|
6
|
+
/**
|
|
7
|
+
* Whether the editor is in read-only mode
|
|
8
|
+
*/
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const ImageGroupAlignmentControls: ({ editor, readOnly, }: ImageGroupAlignmentControlsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export default ImageGroupAlignmentControls;
|
|
13
|
+
//# sourceMappingURL=ImageGroupAlignmentControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageGroupAlignmentControls.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/ImageGroupAlignmentControls.tsx"],"names":[],"mappings":"AAEA,UAAU,gCAAgC;IACxC;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,2BAA2B,GAAI,uBAGlC,gCAAgC,mDAuFlC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
interface ListControlsProps {
|
|
3
|
+
editor: Editor | null;
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const ListControls: ({ editor, readOnly }: ListControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ListControls;
|
|
8
|
+
//# sourceMappingURL=ListControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListControls.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/ListControls.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,YAAY,GAAI,sBAAsB,iBAAiB,4CAiD5D,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
interface SpecialFeaturesControlsProps {
|
|
3
|
+
editor: Editor | null;
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
onMathDialogOpen: () => void;
|
|
6
|
+
onImagePicker: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const SpecialFeaturesControls: ({ editor, readOnly, onMathDialogOpen, onImagePicker, }: SpecialFeaturesControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default SpecialFeaturesControls;
|
|
10
|
+
//# sourceMappingURL=SpecialFeaturesControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpecialFeaturesControls.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/SpecialFeaturesControls.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,UAAU,4BAA4B;IACpC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAiBD,QAAA,MAAM,uBAAuB,GAAI,wDAK9B,4BAA4B,4CA4K9B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
interface TextFormattingControlsProps {
|
|
3
|
+
editor: Editor | null;
|
|
4
|
+
readOnly?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const TextFormattingControls: ({ editor, readOnly, }: TextFormattingControlsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default TextFormattingControls;
|
|
8
|
+
//# sourceMappingURL=TextFormattingControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextFormattingControls.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/TextFormattingControls.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,UAAU,2BAA2B;IACnC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,sBAAsB,GAAI,uBAG7B,2BAA2B,4CAmI7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode, MouseEventHandler } from 'react';
|
|
2
|
+
interface ToolbarButtonProps {
|
|
3
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
4
|
+
isActive?: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
shortcut?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const ToolbarButton: import('react').NamedExoticComponent<ToolbarButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export default ToolbarButton;
|
|
12
|
+
//# sourceMappingURL=ToolbarButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarButton.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/ToolbarButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEvE,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,aAAa,6GAuBlB,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolbarDivider.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/ToolbarDivider.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,cAAc,+CAEnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface YouTubeControlsProps {
|
|
2
|
+
/**
|
|
3
|
+
* The Tiptap editor instance
|
|
4
|
+
*/
|
|
5
|
+
editor: any;
|
|
6
|
+
/**
|
|
7
|
+
* Whether the editor is in read-only mode
|
|
8
|
+
*/
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const YouTubeControls: ({ editor, readOnly }: YouTubeControlsProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export default YouTubeControls;
|
|
13
|
+
//# sourceMappingURL=YouTubeControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YouTubeControls.d.ts","sourceRoot":"","sources":["../../../src/components/toolbars/YouTubeControls.tsx"],"names":[],"mappings":"AAEA,UAAU,oBAAoB;IAC5B;;OAEG;IACH,MAAM,EAAE,GAAG,CAAC;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,eAAe,GAAI,sBAAsB,oBAAoB,mDA8IlE,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration constants for the editor
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Default editor configuration
|
|
6
|
+
*/
|
|
7
|
+
export declare const DEFAULT_CONFIG: {
|
|
8
|
+
readonly minHeight: "300px";
|
|
9
|
+
readonly maxHeight: "800px";
|
|
10
|
+
readonly placeholder: "Start typing...";
|
|
11
|
+
readonly autoFocus: false;
|
|
12
|
+
readonly showCharacterCount: true;
|
|
13
|
+
readonly showTableControls: true;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Math equation delimiters
|
|
17
|
+
*/
|
|
18
|
+
export declare const MATH_DELIMITERS: {
|
|
19
|
+
readonly inline: "$";
|
|
20
|
+
readonly block: "$$";
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Editor keyboard shortcuts
|
|
24
|
+
*/
|
|
25
|
+
export declare const KEYBOARD_SHORTCUTS: {
|
|
26
|
+
readonly bold: "Mod-b";
|
|
27
|
+
readonly italic: "Mod-i";
|
|
28
|
+
readonly underline: "Mod-u";
|
|
29
|
+
readonly strike: "Mod-Shift-x";
|
|
30
|
+
readonly code: "Mod-e";
|
|
31
|
+
readonly undo: "Mod-z";
|
|
32
|
+
readonly redo: "Mod-Shift-z";
|
|
33
|
+
readonly save: "Mod-s";
|
|
34
|
+
readonly link: "Mod-k";
|
|
35
|
+
readonly math: "Mod-m";
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Supported image formats
|
|
39
|
+
*/
|
|
40
|
+
export declare const SUPPORTED_IMAGE_FORMATS: readonly ["image/jpeg", "image/jpg", "image/png", "image/gif", "image/webp", "image/svg+xml"];
|
|
41
|
+
/**
|
|
42
|
+
* Max file sizes (in bytes)
|
|
43
|
+
*/
|
|
44
|
+
export declare const MAX_FILE_SIZE: {
|
|
45
|
+
readonly image: number;
|
|
46
|
+
readonly video: number;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Editor limits
|
|
50
|
+
*/
|
|
51
|
+
export declare const EDITOR_LIMITS: {
|
|
52
|
+
readonly maxCharacters: 100000;
|
|
53
|
+
readonly maxImages: 50;
|
|
54
|
+
readonly maxTables: 20;
|
|
55
|
+
readonly maxMathEquations: 200;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Default colors for text and background
|
|
59
|
+
*/
|
|
60
|
+
export declare const DEFAULT_COLORS: readonly ["#000000", "#ffffff", "#ef4444", "#f97316", "#f59e0b", "#eab308", "#84cc16", "#22c55e", "#10b981", "#14b8a6", "#06b6d4", "#0ea5e9", "#3b82f6", "#6366f1", "#8b5cf6", "#a855f7", "#d946ef", "#ec4899", "#f43f5e"];
|
|
61
|
+
/**
|
|
62
|
+
* Font families
|
|
63
|
+
*/
|
|
64
|
+
export declare const FONT_FAMILIES: readonly [{
|
|
65
|
+
readonly label: "Default";
|
|
66
|
+
readonly value: "";
|
|
67
|
+
}, {
|
|
68
|
+
readonly label: "Arial";
|
|
69
|
+
readonly value: "Arial, sans-serif";
|
|
70
|
+
}, {
|
|
71
|
+
readonly label: "Times New Roman";
|
|
72
|
+
readonly value: "Times New Roman, serif";
|
|
73
|
+
}, {
|
|
74
|
+
readonly label: "Courier New";
|
|
75
|
+
readonly value: "Courier New, monospace";
|
|
76
|
+
}, {
|
|
77
|
+
readonly label: "Georgia";
|
|
78
|
+
readonly value: "Georgia, serif";
|
|
79
|
+
}, {
|
|
80
|
+
readonly label: "Verdana";
|
|
81
|
+
readonly value: "Verdana, sans-serif";
|
|
82
|
+
}, {
|
|
83
|
+
readonly label: "Trebuchet";
|
|
84
|
+
readonly value: "Trebuchet MS, sans-serif";
|
|
85
|
+
}];
|
|
86
|
+
/**
|
|
87
|
+
* Font sizes
|
|
88
|
+
*/
|
|
89
|
+
export declare const FONT_SIZES: readonly [{
|
|
90
|
+
readonly label: "8";
|
|
91
|
+
readonly value: "8px";
|
|
92
|
+
}, {
|
|
93
|
+
readonly label: "10";
|
|
94
|
+
readonly value: "10px";
|
|
95
|
+
}, {
|
|
96
|
+
readonly label: "12";
|
|
97
|
+
readonly value: "12px";
|
|
98
|
+
}, {
|
|
99
|
+
readonly label: "14";
|
|
100
|
+
readonly value: "14px";
|
|
101
|
+
}, {
|
|
102
|
+
readonly label: "16";
|
|
103
|
+
readonly value: "16px";
|
|
104
|
+
}, {
|
|
105
|
+
readonly label: "18";
|
|
106
|
+
readonly value: "18px";
|
|
107
|
+
}, {
|
|
108
|
+
readonly label: "20";
|
|
109
|
+
readonly value: "20px";
|
|
110
|
+
}, {
|
|
111
|
+
readonly label: "24";
|
|
112
|
+
readonly value: "24px";
|
|
113
|
+
}, {
|
|
114
|
+
readonly label: "28";
|
|
115
|
+
readonly value: "28px";
|
|
116
|
+
}, {
|
|
117
|
+
readonly label: "32";
|
|
118
|
+
readonly value: "32px";
|
|
119
|
+
}, {
|
|
120
|
+
readonly label: "36";
|
|
121
|
+
readonly value: "36px";
|
|
122
|
+
}, {
|
|
123
|
+
readonly label: "48";
|
|
124
|
+
readonly value: "48px";
|
|
125
|
+
}, {
|
|
126
|
+
readonly label: "64";
|
|
127
|
+
readonly value: "64px";
|
|
128
|
+
}];
|
|
129
|
+
/**
|
|
130
|
+
* Heading levels
|
|
131
|
+
*/
|
|
132
|
+
export declare const HEADING_LEVELS: readonly [1, 2, 3, 4, 5, 6];
|
|
133
|
+
/**
|
|
134
|
+
* Z-index layers
|
|
135
|
+
*/
|
|
136
|
+
export declare const Z_INDEX: {
|
|
137
|
+
readonly base: 1;
|
|
138
|
+
readonly dropdown: 10;
|
|
139
|
+
readonly toolbar: 50;
|
|
140
|
+
readonly modal: 100;
|
|
141
|
+
readonly tooltip: 150;
|
|
142
|
+
readonly notification: 200;
|
|
143
|
+
};
|
|
144
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/constants/config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;CAOjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;CAWrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,uBAAuB,+FAO1B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc,4NAoBjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;EAQhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcb,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc,6BAA8B,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;;;CAOV,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const FONT_SIZES: string[];
|
|
2
|
+
export declare const FONT_FAMILIES: {
|
|
3
|
+
name: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}[];
|
|
6
|
+
export declare const HEADING_LEVELS: number[];
|
|
7
|
+
export declare const DEFAULT_IMAGE_WIDTH = "500px";
|
|
8
|
+
export declare const DEFAULT_IMAGE_HEIGHT = "auto";
|
|
9
|
+
export declare const DEFAULT_YOUTUBE_WIDTH = "640px";
|
|
10
|
+
export declare const DEFAULT_YOUTUBE_HEIGHT = "360px";
|
|
11
|
+
export declare const MOBILE_BREAKPOINT = 768;
|
|
12
|
+
//# sourceMappingURL=editorConstants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editorConstants.d.ts","sourceRoot":"","sources":["../../src/constants/editorConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,UAWtB,CAAC;AAEF,eAAO,MAAM,aAAa;;;GAgCzB,CAAC;AAGF,eAAO,MAAM,cAAc,UAAqB,CAAC;AAGjD,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAC3C,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAG3C,eAAO,MAAM,qBAAqB,UAAU,CAAC;AAC7C,eAAO,MAAM,sBAAsB,UAAU,CAAC;AAG9C,eAAO,MAAM,iBAAiB,MAAM,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Mark } from '@tiptap/core';
|
|
2
|
+
declare module "@tiptap/core" {
|
|
3
|
+
interface Commands<ReturnType> {
|
|
4
|
+
backgroundColor: {
|
|
5
|
+
setBackgroundColor: (color: string) => ReturnType;
|
|
6
|
+
unsetBackgroundColor: () => ReturnType;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
declare const BackgroundColor: Mark<any, any>;
|
|
11
|
+
export default BackgroundColor;
|
|
12
|
+
//# sourceMappingURL=BackgroundColor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackgroundColor.d.ts","sourceRoot":"","sources":["../../src/extensions/BackgroundColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAErD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,eAAe,EAAE;YACf,kBAAkB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,UAAU,CAAC;YAClD,oBAAoB,EAAE,MAAM,UAAU,CAAC;SACxC,CAAC;KACH;CACF;AAGD,QAAA,MAAM,eAAe,gBA+CnB,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Mark } from '@tiptap/core';
|
|
2
|
+
declare module "@tiptap/core" {
|
|
3
|
+
interface Commands<ReturnType> {
|
|
4
|
+
customTextStyle: {
|
|
5
|
+
setCustomTextStyle: (attributes: {
|
|
6
|
+
fontSize?: string | null;
|
|
7
|
+
fontFamily?: string | null;
|
|
8
|
+
color?: string | null;
|
|
9
|
+
}) => ReturnType;
|
|
10
|
+
unsetCustomTextStyle: () => ReturnType;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
declare const CustomTextStyle: Mark<any, any>;
|
|
15
|
+
export default CustomTextStyle;
|
|
16
|
+
//# sourceMappingURL=CustomTextStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomTextStyle.d.ts","sourceRoot":"","sources":["../../src/extensions/CustomTextStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAErD,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,eAAe,EAAE;YACf,kBAAkB,EAAE,CAAC,UAAU,EAAE;gBAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;gBAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;aACvB,KAAK,UAAU,CAAC;YACjB,oBAAoB,EAAE,MAAM,UAAU,CAAC;SACxC,CAAC;KACH;CACF;AASD,QAAA,MAAM,eAAe,gBA0FnB,CAAC;AAEH,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageGroup.d.ts","sourceRoot":"","sources":["../../src/extensions/ImageGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAC;AAErD,eAAO,MAAM,UAAU,gBAyDrB,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
declare module "@tiptap/core" {
|
|
3
|
+
interface Commands<ReturnType> {
|
|
4
|
+
inlineMath: {
|
|
5
|
+
insertInlineMath: (latex: string, displayMode?: boolean) => ReturnType;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
declare const InlineMath: Extension<any, any>;
|
|
10
|
+
export default InlineMath;
|
|
11
|
+
//# sourceMappingURL=InlineMath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineMath.d.ts","sourceRoot":"","sources":["../../src/extensions/InlineMath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,UAAU,EAAE;YACV,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,KAAK,UAAU,CAAC;SACxE,CAAC;KACH;CACF;AAMD,QAAA,MAAM,UAAU,qBAsEd,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MathNode.d.ts","sourceRoot":"","sources":["../../src/extensions/MathNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAIpC,QAAA,MAAM,QAAQ,gBA6DZ,CAAC;AAEH,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { Node } from '@tiptap/pm/model';
|
|
3
|
+
interface MathNodeAttrs {
|
|
4
|
+
latex: string;
|
|
5
|
+
displayMode: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface MathNodeViewProps {
|
|
8
|
+
node: Node & {
|
|
9
|
+
attrs: MathNodeAttrs;
|
|
10
|
+
};
|
|
11
|
+
updateAttributes: (attrs: Partial<MathNodeAttrs>) => void;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare class MathNodeView extends Component<MathNodeViewProps> {
|
|
15
|
+
private mathFieldRef;
|
|
16
|
+
private cleanup?;
|
|
17
|
+
private mounted;
|
|
18
|
+
constructor(props: MathNodeViewProps);
|
|
19
|
+
componentDidMount(): Promise<void>;
|
|
20
|
+
componentDidUpdate(prevProps: MathNodeViewProps): void;
|
|
21
|
+
componentWillUnmount(): void;
|
|
22
|
+
setupMathField(): void;
|
|
23
|
+
updateMathField(): void;
|
|
24
|
+
cleanupMathField(): void;
|
|
25
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
}
|
|
27
|
+
export default MathNodeView;
|
|
28
|
+
//# sourceMappingURL=MathNodeView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MathNodeView.d.ts","sourceRoot":"","sources":["../../src/extensions/MathNodeView.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,iBAAiB;IACzB,IAAI,EAAE,IAAI,GAAG;QACX,KAAK,EAAE,aAAa,CAAC;KACtB,CAAC;IACF,gBAAgB,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,cAAM,YAAa,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACrD,OAAO,CAAC,YAAY,CAA2C;IAC/D,OAAO,CAAC,OAAO,CAAC,CAAa;IAC7B,OAAO,CAAC,OAAO,CAAS;gBAEZ,KAAK,EAAE,iBAAiB;IAK9B,iBAAiB;IAoBvB,kBAAkB,CAAC,SAAS,EAAE,iBAAiB;IAM/C,oBAAoB;IAKpB,cAAc;IA2Bd,eAAe;IAaf,gBAAgB;IAIhB,MAAM;CAyBP;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResizableImageExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/ResizableImageExtension.ts"],"names":[],"mappings":"AA6BA,QAAA,MAAM,uBAAuB,kFAoP3B,CAAC;AAEH,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResizableYoutubeExtension.d.ts","sourceRoot":"","sources":["../../src/extensions/ResizableYoutubeExtension.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,yBAAyB,sFAsB7B,CAAC;AAEH,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
/**
|
|
3
|
+
* Re-render when the editor document or selection changes.
|
|
4
|
+
* Needed for toolbar active states, character count, and table controls.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useEditorForceUpdate(editor: Editor | null): void;
|
|
7
|
+
//# sourceMappingURL=useEditorForceUpdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEditorForceUpdate.d.ts","sourceRoot":"","sources":["../../src/hooks/useEditorForceUpdate.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,QAoBzD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
export interface UseEditorKeyboardOptions {
|
|
3
|
+
onMathDialogOpen?: () => void;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Registers editor-scoped shortcuts that TipTap does not already provide.
|
|
7
|
+
* Bold/italic/underline are handled by TipTap extensions — do not duplicate them.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useEditorKeyboard(editor: Editor | null, options?: UseEditorKeyboardOptions): void;
|
|
10
|
+
//# sourceMappingURL=useEditorKeyboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEditorKeyboard.d.ts","sourceRoot":"","sources":["../../src/hooks/useEditorKeyboard.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,wBAAwB;IACvC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,OAAO,CAAC,EAAE,wBAAwB,QAsCnC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Editor as TiptapEditor } from '@tiptap/react';
|
|
2
|
+
/**
|
|
3
|
+
* Hook to track editor state and statistics
|
|
4
|
+
*/
|
|
5
|
+
export declare function useEditorState(editor: TiptapEditor | null): {
|
|
6
|
+
isEmpty: boolean;
|
|
7
|
+
isFocused: boolean;
|
|
8
|
+
characterCount: number;
|
|
9
|
+
wordCount: number;
|
|
10
|
+
canUndo: boolean;
|
|
11
|
+
canRedo: boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Hook to manage editor content with auto-save
|
|
15
|
+
*/
|
|
16
|
+
export declare function useEditorAutoSave(editor: TiptapEditor | null, onSave: (content: string) => void | Promise<void>, delay?: number): {
|
|
17
|
+
isSaving: boolean;
|
|
18
|
+
lastSaved: Date | null;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Hook to handle editor selection
|
|
22
|
+
*/
|
|
23
|
+
export declare function useEditorSelection(editor: TiptapEditor | null): {
|
|
24
|
+
getSelectedText: () => string;
|
|
25
|
+
from: number;
|
|
26
|
+
to: number;
|
|
27
|
+
empty: boolean;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Hook for undo/redo history management
|
|
31
|
+
*/
|
|
32
|
+
export declare function useEditorHistory(editor: TiptapEditor | null): {
|
|
33
|
+
canUndo: boolean;
|
|
34
|
+
canRedo: boolean;
|
|
35
|
+
undo: () => void;
|
|
36
|
+
redo: () => void;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=useEditorState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEditorState.d.ts","sourceRoot":"","sources":["../../src/hooks/useEditorState.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,eAAe,CAAC;AAEvD;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;;;;;;;EAiDzD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,YAAY,GAAG,IAAI,EAC3B,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EACjD,KAAK,GAAE,MAAa;;;EAkCrB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;;;;;EA8B7D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;;;;;EA+B3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResponsive.d.ts","sourceRoot":"","sources":["../../src/hooks/useResponsive.ts"],"names":[],"mappings":"AAQA,wBAAgB,aAAa,YAc5B"}
|