refactor: old paths updated to reflect new path for files in excalidraw package

This commit is contained in:
Deepen Timalsina 2025-04-14 22:50:46 +05:45
parent 98e7946887
commit 18a187e470
107 changed files with 256 additions and 242 deletions

View file

@ -1,5 +1,5 @@
import { CaptureUpdateAction } from "@excalidraw/excalidraw/src";
import { compressData } from "@excalidraw/excalidraw/data/encode";
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/src/i18n";

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,
@ -27,8 +27,8 @@ import {
get,
} from "idb-keyval";
import type { LibraryPersistedData } from "@excalidraw/excalidraw/data/library";
import type { ImportedDataState } from "@excalidraw/excalidraw/data/types";
import type { LibraryPersistedData } from "@excalidraw/excalidraw/src/data/library";
import type { ImportedDataState } from "@excalidraw/excalidraw/src/data/types";
import type { ExcalidrawElement, FileId } from "@excalidraw/element/types";
import type {
AppState,

View file

@ -1,11 +1,11 @@
import { reconcileElements } from "@excalidraw/excalidraw/src";
import { MIME_TYPES } from "@excalidraw/common";
import { decompressData } from "@excalidraw/excalidraw/data/encode";
import { decompressData } from "@excalidraw/excalidraw/src/data/encode";
import {
encryptData,
decryptData,
} from "@excalidraw/excalidraw/data/encryption";
import { restoreElements } from "@excalidraw/excalidraw/data/restore";
} from "@excalidraw/excalidraw/src/data/encryption";
import { restoreElements } from "@excalidraw/excalidraw/src/data/restore";
import { getSceneVersion } from "@excalidraw/element";
import { initializeApp } from "firebase/app";
import {
@ -17,7 +17,7 @@ import {
} from "firebase/firestore";
import { getStorage, ref, uploadBytes } from "firebase/storage";
import type { RemoteExcalidrawElement } from "@excalidraw/excalidraw/data/reconcile";
import type { RemoteExcalidrawElement } from "@excalidraw/excalidraw/src/data/reconcile";
import type {
ExcalidrawElement,
FileId,

View file

@ -1,21 +1,21 @@
import {
compressData,
decompressData,
} from "@excalidraw/excalidraw/data/encode";
} from "@excalidraw/excalidraw/src/data/encode";
import {
decryptData,
generateEncryptionKey,
IV_LENGTH_BYTES,
} from "@excalidraw/excalidraw/data/encryption";
import { serializeAsJSON } from "@excalidraw/excalidraw/data/json";
import { restore } from "@excalidraw/excalidraw/data/restore";
} from "@excalidraw/excalidraw/src/data/encryption";
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/src/i18n";
import { bytesToHexString } from "@excalidraw/common";
import type { UserIdleState } from "@excalidraw/common";
import type { ImportedDataState } from "@excalidraw/excalidraw/data/types";
import type { ImportedDataState } from "@excalidraw/excalidraw/src/data/types";
import type { SceneBounds } from "@excalidraw/element/bounds";
import type {
ExcalidrawElement,

View file

@ -1,7 +1,7 @@
import {
clearAppStateForLocalStorage,
getDefaultAppState,
} from "@excalidraw/excalidraw/appState";
} from "@excalidraw/excalidraw/src/appState";
import { clearElementsForLocalStorage } from "@excalidraw/element";
import type { ExcalidrawElement } from "@excalidraw/element/types";