Skip to content

Commit babc2b4

Browse files
authored
refactor: switch to Excalidraw fork (#9)
1 parent a98bd4b commit babc2b4

File tree

12 files changed

+94
-187
lines changed

12 files changed

+94
-187
lines changed

src/frontend/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<div id="root"></div>
1818

1919
<script type="module">
20-
import * as ExcalidrawLib from "@excalidraw/excalidraw";
20+
import * as ExcalidrawLib from "@atyrode/excalidraw";
2121

2222
window.ExcalidrawLib = ExcalidrawLib;
2323
</script>

src/frontend/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import { QueryClientProvider } from '@tanstack/react-query';
88
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
99
import { queryClient } from './src/api/queryClient';
1010

11-
import "@excalidraw/excalidraw/index.css";
11+
import "@atyrode/excalidraw/index.css";
1212
import "./src/styles/index.scss";
1313

14-
import type * as TExcalidraw from "@excalidraw/excalidraw";
14+
import type * as TExcalidraw from "@atyrode/excalidraw";
1515

1616
import App from "./src/App";
1717
import AuthGate from "./src/AuthGate";

src/frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"private": true,
55
"dependencies": {
6-
"@excalidraw/excalidraw": "*",
6+
"@atyrode/excalidraw": "*",
77
"@monaco-editor/react": "^4.7.0",
88
"@tanstack/react-query": "^5.74.3",
99
"@tanstack/react-query-devtools": "^5.74.3",

src/frontend/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import { debounce } from "./utils/debounce";
55
import { capture } from "./utils/posthog";
66
import posthog from "./utils/posthog";
77
import { useSaveCanvas } from "./api/hooks";
8-
import type * as TExcalidraw from "@excalidraw/excalidraw";
9-
import type { NonDeletedExcalidrawElement } from "@excalidraw/excalidraw/element/types";
10-
import type { ExcalidrawImperativeAPI, AppState } from "@excalidraw/excalidraw/types";
8+
import type * as TExcalidraw from "@atyrode/excalidraw";
9+
import type { NonDeletedExcalidrawElement } from "@atyrode/excalidraw/element/types";
10+
import type { ExcalidrawImperativeAPI, AppState } from "@atyrode/excalidraw/types";
1111
import { useAuthCheck } from "./api/hooks";
1212

1313
export interface AppProps {

src/frontend/src/CustomEmbeddableRenderer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
2-
import type { NonDeleted, ExcalidrawEmbeddableElement } from '@excalidraw/excalidraw/element/types';
3-
import type { AppState } from '@excalidraw/excalidraw/types';
2+
import type { NonDeleted, ExcalidrawEmbeddableElement } from '@atyrode/excalidraw/element/types';
3+
import type { AppState } from '@atyrode/excalidraw/types';
44
import {
55
Dashboard,
66
StateIndicator,

src/frontend/src/ExcalidrawWrapper.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React, { Children, cloneElement } from 'react';
22
import DiscordButton from './ui/DiscordButton';
33
import FeedbackButton from './ui/FeedbackButton';
4-
import type { ExcalidrawImperativeAPI } from '@excalidraw/excalidraw/types';
5-
import type { NonDeletedExcalidrawElement } from '@excalidraw/excalidraw/element/types';
6-
import type { AppState } from '@excalidraw/excalidraw/types';
4+
import type { ExcalidrawImperativeAPI } from '@atyrode/excalidraw/types';
5+
import type { NonDeletedExcalidrawElement } from '@atyrode/excalidraw/element/types';
6+
import type { AppState } from '@atyrode/excalidraw/types';
77
import { MainMenuConfig } from './ui/MainMenu';
88
import { renderCustomEmbeddable } from './CustomEmbeddableRenderer';
99

src/frontend/src/lib/ExcalidrawElementFactory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import type {
55
FillStyle,
66
StrokeStyle,
77
RoundnessType
8-
} from '@excalidraw/excalidraw/element/types';
9-
import type { ExcalidrawImperativeAPI } from '@excalidraw/excalidraw/types';
8+
} from '@atyrode/excalidraw/element/types';
9+
import type { ExcalidrawImperativeAPI } from '@atyrode/excalidraw/types';
1010
import {
1111
PlacementMode,
1212
placeElement

src/frontend/src/pad/containers/Dashboard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState, useRef, useEffect } from 'react';
2-
import type { NonDeleted, ExcalidrawEmbeddableElement } from '@excalidraw/excalidraw/element/types';
3-
import type { AppState } from '@excalidraw/excalidraw/types';
2+
import type { NonDeleted, ExcalidrawEmbeddableElement } from '@atyrode/excalidraw/element/types';
3+
import type { AppState } from '@atyrode/excalidraw/types';
44
import StateIndicator from '../controls/StateIndicator';
55
import ControlButton from '../controls/ControlButton';
66
import { ActionButtonGrid } from '../buttons';

src/frontend/src/pad/editors/HtmlEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useState, useRef } from 'react';
2-
import type { NonDeleted, ExcalidrawEmbeddableElement } from '@excalidraw/excalidraw/element/types';
3-
import type { AppState } from '@excalidraw/excalidraw/types';
2+
import type { NonDeleted, ExcalidrawEmbeddableElement } from '@atyrode/excalidraw/element/types';
3+
import type { AppState } from '@atyrode/excalidraw/types';
44
import Editor from '@monaco-editor/react';
55
import { ExcalidrawElementFactory } from '../../lib/ExcalidrawElementFactory';
66
import '../../styles/HtmlEditor.scss';

src/frontend/src/ui/MainMenu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

3-
import type { ExcalidrawImperativeAPI } from '@excalidraw/excalidraw/types';
4-
import type { MainMenu as MainMenuType } from '@excalidraw/excalidraw';
3+
import type { ExcalidrawImperativeAPI } from '@atyrode/excalidraw/types';
4+
import type { MainMenu as MainMenuType } from '@atyrode/excalidraw';
55

66
import { LogOut, SquarePlus, LayoutDashboard, SquareCode, Eye, Coffee, Grid2x2, User } from 'lucide-react';
77
import { capture } from '../utils/posthog';

0 commit comments

Comments
 (0)