feat: export scene to e+ on workspace creation/redemption (#8514)

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
Barnabás Molnár 2024-11-04 23:35:45 +01:00 committed by GitHub
parent 7c0239e693
commit d9ad7c039b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 272 additions and 1 deletions

View file

@ -126,6 +126,7 @@ import DebugCanvas, {
loadSavedDebugState,
} from "./components/DebugCanvas";
import { AIComponents } from "./components/AI";
import { ExcalidrawPlusIframeExport } from "./ExcalidrawPlusIframeExport";
polyfill();
@ -1125,6 +1126,12 @@ const ExcalidrawWrapper = () => {
};
const ExcalidrawApp = () => {
const isCloudExportWindow =
window.location.pathname === "/excalidraw-plus-export";
if (isCloudExportWindow) {
return <ExcalidrawPlusIframeExport />;
}
return (
<TopErrorBoundary>
<Provider unstable_createStore={() => appJotaiStore}>