Back

Version 60

7/22/2024
/** @jsxImportSource https://esm.sh/react@18.3.1 **/
import build from "https://esm.sh/build";

const ret = await build({
dependencies: {
"react-dom": "18.3.1",
"react": "18.3.1",
"tldraw": "2.3.0",
"@reecelucas/react-use-hotkeys": "2.0.0",
},
source: `
export * as ReactDOM from "react-dom";
export * as React from "react";
export * as tldraw from "tldraw";
import useHotkeys from "@reecelucas/react-use-hotkeys";
export { useHotkeys };
`,
});
const {
ReactDOM,
React,
tldraw,
useHotkeys,
} = await import(ret.url + "?bundle-deps");
const { useCallback, useRef, useEffect } = React;
const {
Tldraw,
useEditor,
useToasts,
createShapeId,
BaseBoxShapeUtil,
DefaultSpinner,
HTMLContainer,
SvgExportContext,
TLBaseShape,
TldrawUiIcon,
Updated: July 26, 2024