Move all remaining files in src

This commit is contained in:
Deepen Timalsina 2025-04-15 20:54:26 +05:45
parent e75a7b45d6
commit c48d847f62
524 changed files with 538 additions and 547 deletions

View file

@ -1,8 +1,8 @@
import { CaptureUpdateAction } from "@excalidraw/excalidraw";
import { CaptureUpdateAction } from "@excalidraw/excalidraw/src";
import { compressData } from "@excalidraw/excalidraw/src/data/encode";
import { newElementWith } from "@excalidraw/element/mutateElement";
import { isInitializedImageElement } from "@excalidraw/element/typeChecks";
import { t } from "@excalidraw/excalidraw/i18n";
import { t } from "@excalidraw/excalidraw/src/i18n";
import type {
ExcalidrawElement,
@ -15,7 +15,7 @@ import type {
BinaryFileMetadata,
ExcalidrawImperativeAPI,
BinaryFiles,
} from "@excalidraw/excalidraw/types";
} from "@excalidraw/excalidraw/src/types";
type FileVersion = Required<BinaryFileData>["version"];

View file

@ -10,7 +10,7 @@
* (localStorage, indexedDB).
*/
import { clearAppStateForLocalStorage } from "@excalidraw/excalidraw/appState";
import { clearAppStateForLocalStorage } from "@excalidraw/excalidraw/src/appState";
import {
CANVAS_SEARCH_TAB,
DEFAULT_SIDEBAR,
@ -34,7 +34,7 @@ import type {
AppState,
BinaryFileData,
BinaryFiles,
} from "@excalidraw/excalidraw/types";
} from "@excalidraw/excalidraw/src/types";
import type { MaybePromise } from "@excalidraw/common/utility-types";
import { SAVE_TO_LOCAL_STORAGE_TIMEOUT, STORAGE_KEYS } from "../app_constants";

View file

@ -1,4 +1,4 @@
import { reconcileElements } from "@excalidraw/excalidraw";
import { reconcileElements } from "@excalidraw/excalidraw/src";
import { MIME_TYPES } from "@excalidraw/common";
import { decompressData } from "@excalidraw/excalidraw/src/data/encode";
import {
@ -28,7 +28,7 @@ import type {
BinaryFileData,
BinaryFileMetadata,
DataURL,
} from "@excalidraw/excalidraw/types";
} from "@excalidraw/excalidraw/src/types";
import { FILE_CACHE_MAX_AGE_SEC } from "../app_constants";

View file

@ -11,7 +11,7 @@ import { serializeAsJSON } from "@excalidraw/excalidraw/src/data/json";
import { restore } from "@excalidraw/excalidraw/src/data/restore";
import { isInvisiblySmallElement } from "@excalidraw/element/sizeHelpers";
import { isInitializedImageElement } from "@excalidraw/element/typeChecks";
import { t } from "@excalidraw/excalidraw/i18n";
import { t } from "@excalidraw/excalidraw/src/i18n";
import { bytesToHexString } from "@excalidraw/common";
import type { UserIdleState } from "@excalidraw/common";
@ -27,7 +27,7 @@ import type {
BinaryFileData,
BinaryFiles,
SocketId,
} from "@excalidraw/excalidraw/types";
} from "@excalidraw/excalidraw/src/types";
import type { MakeBrand } from "@excalidraw/common/utility-types";
import {

View file

@ -1,11 +1,11 @@
import {
clearAppStateForLocalStorage,
getDefaultAppState,
} from "@excalidraw/excalidraw/appState";
} from "@excalidraw/excalidraw/src/appState";
import { clearElementsForLocalStorage } from "@excalidraw/element";
import type { ExcalidrawElement } from "@excalidraw/element/types";
import type { AppState } from "@excalidraw/excalidraw/types";
import type { AppState } from "@excalidraw/excalidraw/src/types";
import { STORAGE_KEYS } from "../app_constants";