use @excalidraw/excalidraw-next but keep @excalidraw/excalidraw as the alias

This commit is contained in:
ad1992
2021-10-14 16:36:46 +05:30
parent 5640a61b83
commit f181b1c786
3 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
"@types/node": "^16.10.3",
"@types/react": "^17.0.27",
"@types/react-dom": "^17.0.9",
"@excalidraw/excalidraw": "0.10.0",
"@excalidraw/excalidraw": "npm:@excalidraw/excalidraw-next@latest",
"clsx": "^1.1.1",
"lodash.throttle": "^4.1.1",
"open-color": "^1.9.1",
+7 -4
View File
@@ -1,4 +1,4 @@
import Excalidraw from "@excalidraw/excalidraw";
import Excalidraw, { THEME } from "@excalidraw/excalidraw";
import {
AppState,
ExcalidrawImperativeAPI,
@@ -13,7 +13,10 @@ import CollabWrapper, {
import { useCallbackRefState } from "./hooks/useCallbackRefState";
import "./App.css";
import { ExcalidrawElement } from "@excalidraw/excalidraw/types/element/types";
import {
ExcalidrawElement,
Theme,
} from "@excalidraw/excalidraw/types/element/types";
import { ImportedDataState } from "@excalidraw/excalidraw/types/data/types";
import { getCollaborationLinkData } from "./data";
import { ResolvablePromise } from "@excalidraw/excalidraw/types/utils";
@@ -31,7 +34,7 @@ const ExcalidrawWrapper = () => {
const [loaded, setLoaded] = useState(false);
const [user, setUser] = useState({});
const [theme, setTheme] = useState<"light" | "dark">("light");
const [theme, setTheme] = useState<Theme>(THEME.LIGHT);
if (!initialStatePromiseRef.current.promise) {
initialStatePromiseRef.current.promise =
@@ -58,7 +61,7 @@ const ExcalidrawWrapper = () => {
});
webexApp.listen().then(() => {
webexApp.on("application:themeChanged", (theme: "LIGHT" | "DARK") => {
setTheme(theme.toLowerCase() as "light" | "dark");
setTheme(theme.toLowerCase() as Theme);
});
});
});
+4 -4
View File
@@ -1182,10 +1182,10 @@
resolved "https://registry.yarnpkg.com/@excalidraw/eslint-config/-/eslint-config-1.0.1.tgz#1289559eb9bdf84117c5af5d082343ab6d36fd65"
integrity sha512-BUkZLH2M1sPA/wPbho8w8yJhSY+jdd4lB9fs2Dn606ZutlDKXVMnn8LqrtAlYiJlRYwi6EQRgGdVkNrHCOssjg==
"@excalidraw/excalidraw@0.10.0":
version "0.10.0"
resolved "https://registry.yarnpkg.com/@excalidraw/excalidraw/-/excalidraw-0.10.0.tgz#5329d6fb1b0cca068e2cd34da6d648dd6d0d3fec"
integrity sha512-0fHc/oX394dHAT7LEacwZ0vh8aeI179plYnfaeLeRHBtHARgmtlmvxcnxd2pxJ0Z1Uj/Cy76oK9MVw/y8P1HhQ==
"@excalidraw/excalidraw@npm:@excalidraw/excalidraw-next@latest":
version "0.10.0-463857a"
resolved "https://registry.yarnpkg.com/@excalidraw/excalidraw-next/-/excalidraw-next-0.10.0-463857a.tgz#77a306d69b6500f0dde70ae0bb86df5d1a8c684a"
integrity sha512-KNjSihikGDViSm0EwBEQU2yxKCC9j9fG8v2eazxW6dh2kYLVJveV2NpyJENsoCCN8V50eCjTAWwc7XorPI7xhg==
"@excalidraw/prettier-config@^1.0.2":
version "1.0.2"