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