chore: Drop @excalidraw/extensions and move the MathJax subtype into

`src/excalidraw-app/subtypes` to leave `@excalidraw/excalidraw` untouched.

`@excalidraw/extensions` mostly contained boilerplate and obscured the
main new features here: `ExcalidrawElement` subtypes and MathJax support.
This commit is contained in:
Daniel J. Geiger
2023-09-01 13:40:27 -05:00
parent e8a6053251
commit 23eb08088e
39 changed files with 96 additions and 5555 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import { trackEvent } from "../analytics";
import { getDefaultAppState } from "../appState";
import { ErrorDialog } from "../components/ErrorDialog";
import { TopErrorBoundary } from "../components/TopErrorBoundary";
import { useExtensions } from "@excalidraw/extensions";
import { useSubtypes } from "./subtypes";
import {
APP_NAME,
EVENT,
@@ -297,7 +297,7 @@ const ExcalidrawWrapper = () => {
const [excalidrawAPI, excalidrawRefCallback] =
useCallbackRefState<ExcalidrawImperativeAPI>();
useExtensions(excalidrawAPI);
useSubtypes(excalidrawAPI);
const [collabAPI] = useAtom(collabAPIAtom);
const [, setCollabDialogShown] = useAtom(collabDialogShownAtom);