bump dependencies
This commit is contained in:
parent
bb077762c5
commit
014bfbc841
18 changed files with 4949 additions and 4059 deletions
|
@ -19,20 +19,20 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tldraw/tldraw": "^1.6.0",
|
"@tldraw/tldraw": "^1.6.0",
|
||||||
"@types/node": "^14.14.35",
|
"@types/node": "^17.0.14",
|
||||||
"@types/react": "^16.9.55",
|
"@types/react": "^17.0.38",
|
||||||
"@types/react-dom": "^16.9.9",
|
"@types/react-dom": "^17.0.11",
|
||||||
"@types/react-router-dom": "^5.1.8",
|
"@types/react-router-dom": "^5.1.8",
|
||||||
"electron": "15.3.0",
|
"electron": "17.0.0",
|
||||||
"electron-builder": "^22.13.1",
|
"electron-builder": "^22.13.1",
|
||||||
"electron-esbuild": "^3.0.0",
|
"electron-esbuild": "^5.0.0",
|
||||||
"electron-util": "^0.17.2",
|
"electron-util": "^0.17.2",
|
||||||
"esbuild": "^0.13.8",
|
"esbuild": "^0.14.18",
|
||||||
"esbuild-serve": "^1.0.1",
|
"esbuild-serve": "^1.0.1",
|
||||||
"react": ">=16.8",
|
"react": ">=16.8",
|
||||||
"react-dom": "^16.8 || ^17.0",
|
"react-dom": "^16.8 || ^17.0",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"typescript": "4.2.3"
|
"typescript": "4.5.5"
|
||||||
},
|
},
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "io.comp.tldraw-electron",
|
"appId": "io.comp.tldraw-electron",
|
||||||
|
|
|
@ -17,19 +17,19 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tldraw/tldraw": "^1.6.0",
|
"@tldraw/tldraw": "^1.6.0",
|
||||||
"@types/node": "^14.14.35",
|
"@types/node": "^17.0.14",
|
||||||
"@types/react": "^16.9.55",
|
"@types/react": "^17.0.38",
|
||||||
"@types/react-dom": "^16.9.9",
|
"@types/react-dom": "^17.0.11",
|
||||||
"@types/react-router-dom": "^5.1.8",
|
"@types/react-router-dom": "^5.1.8",
|
||||||
"concurrently": "6.0.1",
|
"concurrently": "7.0.0",
|
||||||
"create-serve": "1.0.1",
|
"create-serve": "1.0.1",
|
||||||
"esbuild": "^0.13.8",
|
"esbuild": "^0.14.18",
|
||||||
"esbuild-serve": "^1.0.1",
|
"esbuild-serve": "^1.0.1",
|
||||||
"react": ">=16.8",
|
"react": ">=16.8",
|
||||||
"react-dom": "^16.8 || ^17.0",
|
"react-dom": "^16.8 || ^17.0",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"tslib": "^2.3.1",
|
"tslib": "^2.3.1",
|
||||||
"typescript": "4.2.3"
|
"typescript": "4.5.5"
|
||||||
},
|
},
|
||||||
"gitHead": "a7dac0f83ad998e205c2aab58182cb4ba4e099a6"
|
"gitHead": "a7dac0f83ad998e205c2aab58182cb4ba4e099a6"
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,11 +112,11 @@
|
||||||
"lint": "eslint src --ext ts"
|
"lint": "eslint src --ext ts"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
||||||
"@typescript-eslint/parser": "^4.31.1",
|
"@typescript-eslint/parser": "^5.10.2",
|
||||||
"@vscode/test-web": "^0.0.12",
|
"@vscode/test-web": "^0.0.22",
|
||||||
"assert": "^2.0.0",
|
"assert": "^2.0.0",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^8.8.0",
|
||||||
"mocha": "^9.1.1",
|
"mocha": "^9.1.1",
|
||||||
"process": "^0.11.10",
|
"process": "^0.11.10",
|
||||||
"ts-loader": "^9.2.5",
|
"ts-loader": "^9.2.5",
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@liveblocks/client": "^0.13.1",
|
"@liveblocks/client": "^0.14.0",
|
||||||
"@liveblocks/react": "^0.13.1",
|
"@liveblocks/react": "^0.14.0",
|
||||||
"@sentry/integrations": "^6.13.2",
|
"@sentry/integrations": "^6.13.2",
|
||||||
"@sentry/node": "^6.13.2",
|
"@sentry/node": "^6.13.2",
|
||||||
"@sentry/react": "^6.13.2",
|
"@sentry/react": "^6.13.2",
|
||||||
|
@ -29,13 +29,13 @@
|
||||||
"@tldraw/tldraw": "^1.6.0",
|
"@tldraw/tldraw": "^1.6.0",
|
||||||
"@types/next-auth": "^3.15.0",
|
"@types/next-auth": "^3.15.0",
|
||||||
"aws-sdk": "^2.1053.0",
|
"aws-sdk": "^2.1053.0",
|
||||||
"chrome-aws-lambda": "9.0.0",
|
"chrome-aws-lambda": "10.1.0",
|
||||||
"next": "^12.0.7",
|
"next": "^12.0.7",
|
||||||
"next-auth": "^4.0.5",
|
"next-auth": "^4.0.5",
|
||||||
"next-pwa": "^5.4.4",
|
"next-pwa": "^5.4.4",
|
||||||
"next-themes": "^0.0.15",
|
"next-themes": "^0.0.15",
|
||||||
"next-transpile-modules": "^9.0.0",
|
"next-transpile-modules": "^9.0.0",
|
||||||
"puppeteer-core": "^9.0.0",
|
"puppeteer-core": "^13.1.3",
|
||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
"react-dom": "17.0.2"
|
"react-dom": "17.0.2"
|
||||||
},
|
},
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default function Auth(
|
||||||
async signIn() {
|
async signIn() {
|
||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
async session({ session, token, user }) {
|
async session({ session, token }) {
|
||||||
if (token) {
|
if (token) {
|
||||||
session.isSponsor = await isSignedInUserSponsoringMe()
|
session.isSponsor = await isSignedInUserSponsoringMe()
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,28 +16,28 @@
|
||||||
},
|
},
|
||||||
"files": [],
|
"files": [],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@state-designer/react": "3.0.0",
|
"@state-designer/react": "^3.0.0",
|
||||||
"@stitches/react": "^1.2.5",
|
"@stitches/react": "^1.2.6",
|
||||||
"@tldraw/core": "^1.5.1",
|
"@tldraw/core": "^1.5.1",
|
||||||
"@tldraw/intersect": "^1.4.3",
|
"@tldraw/intersect": "^1.4.3",
|
||||||
"@tldraw/vec": "^1.4.3",
|
"@tldraw/vec": "^1.4.3",
|
||||||
"@types/node": "^14.14.35",
|
"@types/node": "^17.0.14",
|
||||||
"@types/react": "^16.9.55",
|
"@types/react": "^17.0.38",
|
||||||
"@types/react-dom": "^16.9.9",
|
"@types/react-dom": "^17.0.11",
|
||||||
"@types/react-router-dom": "^5.1.8",
|
"@types/react-router-dom": "^5.3.3",
|
||||||
"concurrently": "6.0.1",
|
"concurrently": "^7.0.0",
|
||||||
"create-serve": "1.0.1",
|
"create-serve": "^1.0.1",
|
||||||
"esbuild": "^0.13.8",
|
"esbuild": "^0.14.18",
|
||||||
"esbuild-serve": "^1.0.1",
|
"esbuild-serve": "^1.0.1",
|
||||||
"immer": "^9.0.6",
|
"immer": "^9.0.12",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"nanoid": "^3.1.30",
|
"nanoid": "^3.2.0",
|
||||||
"perfect-freehand": "^1.0.16",
|
"perfect-freehand": "^1.0.16",
|
||||||
"react": ">=16.8",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^16.8 || ^17.0",
|
"react-dom": "^17.0.2",
|
||||||
"react-feather": "^2.0.9",
|
"react-feather": "^2.0.9",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "4.2.3"
|
"typescript": "^4.5.5"
|
||||||
},
|
},
|
||||||
"gitHead": "a7dac0f83ad998e205c2aab58182cb4ba4e099a6"
|
"gitHead": "a7dac0f83ad998e205c2aab58182cb4ba4e099a6"
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,19 +17,19 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tldraw/core": "^1.5.1",
|
"@tldraw/core": "^1.5.1",
|
||||||
"@tldraw/vec": "^1.4.3",
|
"@tldraw/vec": "^1.4.3",
|
||||||
"@types/node": "^14.14.35",
|
"@types/node": "^17.0.14",
|
||||||
"@types/react": "^16.9.55",
|
"@types/react": "^17.0.38",
|
||||||
"@types/react-dom": "^16.9.9",
|
"@types/react-dom": "^17.0.11",
|
||||||
"@types/react-router-dom": "^5.1.8",
|
"@types/react-router-dom": "^5.3.3",
|
||||||
"concurrently": "6.0.1",
|
"concurrently": "^7.0.0",
|
||||||
"esbuild": "^0.13.8",
|
"esbuild": "^0.14.18",
|
||||||
"esbuild-serve": "^1.0.1",
|
"esbuild-serve": "^1.0.1",
|
||||||
"mobx": "^6.3.7",
|
"mobx": "^6.3.13",
|
||||||
"mobx-react-lite": "^3.2.2",
|
"mobx-react-lite": "^3.2.3",
|
||||||
"react": ">=16.8",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^16.8 || ^17.0",
|
"react-dom": "^17.0.2",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "4.2.3"
|
"typescript": "^4.5.5"
|
||||||
},
|
},
|
||||||
"gitHead": "a7dac0f83ad998e205c2aab58182cb4ba4e099a6"
|
"gitHead": "a7dac0f83ad998e205c2aab58182cb4ba4e099a6"
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,25 +15,25 @@
|
||||||
"build": "node scripts/build.mjs"
|
"build": "node scripts/build.mjs"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@liveblocks/client": "^0.13.0-beta.1",
|
"@liveblocks/client": "^0.14.0",
|
||||||
"@liveblocks/react": "0.13.0-beta.1",
|
"@liveblocks/react": "^0.14.0",
|
||||||
"@tldraw/tldraw": "^1.6.0",
|
"@tldraw/tldraw": "^1.6.0",
|
||||||
"@types/node": "^14.14.35",
|
"@types/node": "^17.0.14",
|
||||||
"@types/react": "^16.9.55",
|
"@types/react": "^17.0.38",
|
||||||
"@types/react-dom": "^16.9.9",
|
"@types/react-dom": "^17.0.11",
|
||||||
"@types/react-router-dom": "^5.1.8",
|
"@types/react-router-dom": "^5.3.3",
|
||||||
"concurrently": "6.0.1",
|
"concurrently": "^7.0.0",
|
||||||
"create-serve": "1.0.1",
|
"create-serve": "^1.0.1",
|
||||||
"esbuild": "^0.13.8",
|
"esbuild": "^0.14.18",
|
||||||
"esbuild-envfile-plugin": "^1.0.1",
|
"esbuild-envfile-plugin": "^1.0.2",
|
||||||
"esbuild-serve": "^1.0.1",
|
"esbuild-serve": "^1.0.1",
|
||||||
"firebase": "^9.6.1",
|
"firebase": "^9.6.5",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"react-router": "^5.2.1",
|
"react-router": "^6.2.1",
|
||||||
"react-router-dom": "^5.3.0",
|
"react-router-dom": "^6.2.1",
|
||||||
"rimraf": "3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"typescript": "4.2.3"
|
"typescript": "^4.5.5"
|
||||||
},
|
},
|
||||||
"gitHead": "a7dac0f83ad998e205c2aab58182cb4ba4e099a6"
|
"gitHead": "a7dac0f83ad998e205c2aab58182cb4ba4e099a6"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import { Switch, Route, Link } from 'react-router-dom'
|
import { Routes, Route, Link } from 'react-router-dom'
|
||||||
import Basic from './basic'
|
import Basic from './basic'
|
||||||
import ReadOnly from './readonly'
|
import ReadOnly from './readonly'
|
||||||
import PropsControl from './props-control'
|
import PropsControl from './props-control'
|
||||||
|
@ -20,104 +20,93 @@ import './styles.css'
|
||||||
export default function App(): JSX.Element {
|
export default function App(): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<main>
|
<main>
|
||||||
<Switch>
|
<Routes>
|
||||||
<Route path="/develop">
|
<Route path="/develop" element={<Develop />} />
|
||||||
<Develop />
|
|
||||||
</Route>
|
<Route path="/basic" element={<Basic />} />
|
||||||
<Route path="/basic">
|
|
||||||
<Basic />
|
<Route path="/ui-options" element={<UIOptions />} />
|
||||||
</Route>
|
|
||||||
<Route path="/ui-options">
|
<Route path="/persisted" element={<Persisted />} />
|
||||||
<UIOptions />
|
|
||||||
</Route>
|
<Route path="/loading-files" element={<LoadingFiles />} />
|
||||||
<Route path="/persisted">
|
|
||||||
<Persisted />
|
<Route path="/file-system" element={<FileSystem />} />
|
||||||
</Route>
|
|
||||||
<Route path="/loading-files">
|
<Route path="/api" element={<Api />} />
|
||||||
<LoadingFiles />
|
|
||||||
</Route>
|
<Route path="/readonly" element={<ReadOnly />} />
|
||||||
<Route path="/file-system">
|
|
||||||
<FileSystem />
|
<Route path="/controlled" element={<PropsControl />} />
|
||||||
</Route>
|
|
||||||
<Route path="/api">
|
<Route path="/imperative" element={<ApiControl />} />
|
||||||
<Api />
|
|
||||||
</Route>
|
<Route path="/changing-id" element={<ChangingId />} />
|
||||||
<Route path="/readonly">
|
|
||||||
<ReadOnly />
|
<Route path="/embedded" element={<Embedded />} />
|
||||||
</Route>
|
|
||||||
<Route path="/controlled">
|
<Route path="/no-size-embedded" element={<NoSizeEmbedded />} />
|
||||||
<PropsControl />
|
|
||||||
</Route>
|
<Route path="/multiplayer" element={<Multiplayer />} />
|
||||||
<Route path="/imperative">
|
|
||||||
<ApiControl />
|
<Route path="/multiplayer-with-images" element={MultiplayerWithImages} />
|
||||||
</Route>
|
<Route
|
||||||
<Route path="/changing-id">
|
path="/"
|
||||||
<ChangingId />
|
element={
|
||||||
</Route>
|
<div>
|
||||||
<Route path="/embedded">
|
<img className="hero" src="./card-repo.png" />
|
||||||
<Embedded />
|
<ul className="links">
|
||||||
</Route>
|
<li>
|
||||||
<Route path="/no-size-embedded">
|
<Link to="/develop">Develop</Link>
|
||||||
<NoSizeEmbedded />
|
</li>
|
||||||
</Route>
|
<hr />
|
||||||
<Route path="/multiplayer">
|
<li>
|
||||||
<Multiplayer />
|
<Link to="/basic">Basic</Link>
|
||||||
</Route>
|
</li>
|
||||||
<Route path="/multiplayer-with-images">
|
<li>
|
||||||
<MultiplayerWithImages />
|
<Link to="/ui-options">UI Options</Link>
|
||||||
</Route>
|
</li>
|
||||||
<Route path="/">
|
<li>
|
||||||
<img className="hero" src="./card-repo.png" />
|
<Link to="/persisted">Persisting State with an ID</Link>
|
||||||
<ul className="links">
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link to="/develop">Develop</Link>
|
<Link to="/file-system">Using the File System</Link>
|
||||||
</li>
|
</li>
|
||||||
<hr />
|
<li>
|
||||||
<li>
|
<Link to="/readonly">Readonly Mode</Link>
|
||||||
<Link to="/basic">Basic</Link>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<Link to="/loading-files">Loading Files</Link>
|
||||||
<Link to="/ui-options">UI Options</Link>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<Link to="/file-system">Using the File System</Link>
|
||||||
<Link to="/persisted">Persisting State with an ID</Link>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<Link to="/controlled">Controlled via Props</Link>
|
||||||
<Link to="/file-system">Using the File System</Link>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<Link to="/api">Using the TldrawApp API</Link>
|
||||||
<Link to="/readonly">Readonly Mode</Link>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<Link to="/imperative">Controlled via TldrawApp API</Link>
|
||||||
<Link to="/loading-files">Loading Files</Link>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<Link to="/changing-id">Changing ID</Link>
|
||||||
<Link to="/file-system">Using the File System</Link>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<Link to="/embedded">Embedded</Link>
|
||||||
<Link to="/controlled">Controlled via Props</Link>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<Link to="/no-size-embedded">Embedded (without explicit size)</Link>
|
||||||
<Link to="/api">Using the TldrawApp API</Link>
|
</li>
|
||||||
</li>
|
<li>
|
||||||
<li>
|
<Link to="/multiplayer">Multiplayer</Link>
|
||||||
<Link to="/imperative">Controlled via TldrawApp API</Link>
|
</li>
|
||||||
</li>
|
</ul>
|
||||||
<li>
|
</div>
|
||||||
<Link to="/changing-id">Changing ID</Link>
|
}
|
||||||
</li>
|
/>
|
||||||
<li>
|
</Routes>
|
||||||
<Link to="/embedded">Embedded</Link>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<Link to="/no-size-embedded">Embedded (without explicit size)</Link>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<Link to="/multiplayer">Multiplayer</Link>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</Route>
|
|
||||||
</Switch>
|
|
||||||
</main>
|
</main>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
"@types/react": "^17.0.33",
|
"@types/react": "^17.0.33",
|
||||||
"@types/react-dom": "^17.0.10",
|
"@types/react-dom": "^17.0.10",
|
||||||
"@types/vscode": "^1.59.0",
|
"@types/vscode": "^1.59.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.19.0",
|
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
||||||
"@typescript-eslint/parser": "^4.19.0",
|
"@typescript-eslint/parser": "^4.19.0",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"fake-indexeddb": "^3.1.3",
|
"fake-indexeddb": "^3.1.3",
|
||||||
|
|
|
@ -40,20 +40,21 @@
|
||||||
"@tldraw/intersect": "^1.4.3",
|
"@tldraw/intersect": "^1.4.3",
|
||||||
"@tldraw/vec": "^1.4.3",
|
"@tldraw/vec": "^1.4.3",
|
||||||
"@use-gesture/react": "^10.2.4",
|
"@use-gesture/react": "^10.2.4",
|
||||||
"mobx-react-lite": "^3.2.2"
|
"mobx-react-lite": "^3.2.3",
|
||||||
|
"resize-observer-polyfill": "^1.5.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": ">=16.8",
|
"react": ">=16.8",
|
||||||
"react-dom": "^16.8 || ^17.0"
|
"react-dom": "^16.8 || ^17.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@swc-node/jest": "^1.3.3",
|
"@swc-node/jest": "^1.4.3",
|
||||||
"@testing-library/jest-dom": "^5.14.1",
|
"@testing-library/jest-dom": "^5.16.2",
|
||||||
"@testing-library/react": "^12.0.0",
|
"@testing-library/react": "^12.1.2",
|
||||||
"@types/jest": "^27.0.2",
|
"@types/jest": "^27.4.0",
|
||||||
"@types/node": "^16.11.6",
|
"@types/node": "^17.0.14",
|
||||||
"@types/react": "^17.0.33",
|
"@types/react": "^17.0.38",
|
||||||
"@types/react-dom": "^17.0.10",
|
"@types/react-dom": "^17.0.11",
|
||||||
"mobx": "^6.3.8",
|
"mobx": "^6.3.8",
|
||||||
"tsconfig-replace-paths": "^0.0.11"
|
"tsconfig-replace-paths": "^0.0.11"
|
||||||
},
|
},
|
||||||
|
|
|
@ -26,7 +26,7 @@ async function main() {
|
||||||
jsxFactory: 'React.createElement',
|
jsxFactory: 'React.createElement',
|
||||||
jsxFragment: 'React.Fragment',
|
jsxFragment: 'React.Fragment',
|
||||||
tsconfig: './tsconfig.build.json',
|
tsconfig: './tsconfig.build.json',
|
||||||
external: Object.keys(pkg.dependencies).concat(Object.keys(pkg.peerDependencies)),
|
external: Object.keys(pkg.dependencies ?? {}).concat(Object.keys(pkg.peerDependencies ?? {})),
|
||||||
metafile: true,
|
metafile: true,
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
import { useTLContext } from '../hooks'
|
import { useTLContext } from '../hooks'
|
||||||
|
import ResizeObserver from 'resize-observer-polyfill'
|
||||||
import * as React from 'react'
|
import * as React from 'react'
|
||||||
import { Utils } from '../utils'
|
import { Utils } from '../utils'
|
||||||
import type { TLBounds } from '../types'
|
import type { TLBounds } from '../types'
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
"dist",
|
"dist",
|
||||||
"docs"
|
"docs"
|
||||||
],
|
],
|
||||||
|
"include": ["src/**/*"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": false,
|
"composite": false,
|
||||||
"incremental": false,
|
"incremental": false,
|
||||||
|
|
|
@ -51,16 +51,23 @@
|
||||||
"@tldraw/core": "^1.5.1",
|
"@tldraw/core": "^1.5.1",
|
||||||
"@tldraw/intersect": "^1.4.3",
|
"@tldraw/intersect": "^1.4.3",
|
||||||
"@tldraw/vec": "^1.4.3",
|
"@tldraw/vec": "^1.4.3",
|
||||||
"idb-keyval": "^6.0.3",
|
"idb-keyval": "^6.1.0",
|
||||||
"perfect-freehand": "^1.0.16",
|
"perfect-freehand": "^1.0.16",
|
||||||
"react-hotkeys-hook": "^3.4.0",
|
"react-hotkey-hook": "^1.0.2",
|
||||||
|
"react-hotkeys-hook": "^3.4.4",
|
||||||
"tslib": "^2.3.1",
|
"tslib": "^2.3.1",
|
||||||
"zustand": "^3.6.5"
|
"zustand": "^3.6.9"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@swc-node/jest": "^1.3.3",
|
"@swc-node/jest": "^1.4.3",
|
||||||
"@testing-library/jest-dom": "^5.14.1",
|
"@testing-library/jest-dom": "^5.16.2",
|
||||||
"@testing-library/react": "^12.0.0",
|
"@testing-library/react": "^12.1.2",
|
||||||
|
"@types/node": "^17.0.14",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
||||||
|
"@typescript-eslint/parser": "^5.10.2",
|
||||||
|
"eslint": "^8.8.0",
|
||||||
|
"lerna": "^4.0.0",
|
||||||
|
"lint-staged": "^12.3.3",
|
||||||
"tsconfig-replace-paths": "^0.0.11"
|
"tsconfig-replace-paths": "^0.0.11"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
|
|
|
@ -87,7 +87,9 @@ export function PageOptionsDialog({ page, onOpen, onClose }: PageOptionsDialogPr
|
||||||
</SmallIcon>
|
</SmallIcon>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Dialog.Trigger>
|
</Dialog.Trigger>
|
||||||
<Dialog.Portal>
|
<Dialog.Portal
|
||||||
|
// container={the current app's tl-container}
|
||||||
|
>
|
||||||
<StyledDialogOverlay onPointerDown={close} />
|
<StyledDialogOverlay onPointerDown={close} />
|
||||||
<StyledDialogContent dir="ltr" onKeyDown={stopPropagation} onKeyUp={stopPropagation}>
|
<StyledDialogContent dir="ltr" onKeyDown={stopPropagation} onKeyUp={stopPropagation}>
|
||||||
<DialogAction onSelect={handleRename}>Rename</DialogAction>
|
<DialogAction onSelect={handleRename}>Rename</DialogAction>
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
"docs"
|
"docs"
|
||||||
],
|
],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"skipLibCheck": true,
|
||||||
"composite": false,
|
"composite": false,
|
||||||
"incremental": false,
|
"incremental": false,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
|
|
Loading…
Reference in a new issue