diff --git a/.prettierrc b/.prettierrc index a808b9c2b..7fd1df8c6 100644 --- a/.prettierrc +++ b/.prettierrc @@ -6,4 +6,4 @@ "tabWidth": 2, "useTabs": true, "plugins": ["prettier-plugin-organize-imports"] -} \ No newline at end of file +} diff --git a/apps/docs/package.json b/apps/docs/package.json index 5ab39e090..90647ede4 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -35,12 +35,13 @@ "content": "lazy docs-content" }, "dependencies": { + "@microsoft/api-extractor-model": "^7.27.3", "@microsoft/tsdoc": "^0.14.2", "@tldraw/utils": "workspace:*", "@types/node": "18.15.0", "@types/react": "^18.0.24", "@types/react-dom": "^18.0.6", - "eslint": "8.36.0", + "eslint": "^8.37.0", "eslint-config-next": "13.2.4", "gray-matter": "^4.0.3", "next": "13.2.4", @@ -48,8 +49,8 @@ "next-remote-watch": "^2.0.0", "next-themes": "^0.2.1", "prettier": "^2.8.7", - "react": "18.2.0", - "react-dom": "18.2.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", "rehype-autolink-headings": "^6.1.1", "rehype-highlight": "^6.0.0", "rehype-slug": "^5.1.0", @@ -62,7 +63,6 @@ "tsdoc comments), even though we don't use any of their code to run the docs site." ], "devDependencies": { - "@microsoft/api-extractor-model": "^7.26.4", "@tldraw/editor": "workspace:*", "@tldraw/file-format": "workspace:*", "@tldraw/primitives": "workspace:*", diff --git a/apps/examples/package.json b/apps/examples/package.json index 0418c7ba1..b2fabafa0 100644 --- a/apps/examples/package.json +++ b/apps/examples/package.json @@ -45,8 +45,8 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-router-dom": "^6.9.0", - "signia": "0.1.4", - "signia-react": "0.1.4", + "signia": "*", + "signia-react": "*", "vite": "^4.3.4", "y-websocket": "^1.5.0", "yjs": "^13.6.2" diff --git a/apps/vscode/README.md b/apps/vscode/README.md index 4369af950..c63b73290 100644 --- a/apps/vscode/README.md +++ b/apps/vscode/README.md @@ -24,6 +24,7 @@ In the `apps/vscode/extension` window, open the terminal and: Open a `.tldr` file from the file explorer or create a new `.tldr` file from the command palette. ## 3. Debugging + You can use standard debugging techniques like `console.log`, which will be displayed in the VS Code window with the extension running. It will display logs both from the Extension and the Editor. VS Code editor with the Extension folder will show more detailed logs from the Extension project. You can also use a debugger. The code is hot-reloaded, so the developer experience is quite nice. @@ -35,9 +36,10 @@ Update the `CHANGELOG.md` with the new version number and the changes. To publish: - Install `vsce` globally -- Run `vsce login tldraw-org` and sign in. For this to work you need to create a [personal access token](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#get-a-personal-access-token) and you also need to be added to the `tldraw-org` organization on the [Visual Studio Marketplace](https://marketplace.visualstudio.com/manage). +- Run `vsce login tldraw-org` and sign in. For this to work you need to create a [personal access token](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#get-a-personal-access-token) and you also need to be added to the `tldraw-org` organization on the [Visual Studio Marketplace](https://marketplace.visualstudio.com/manage). In the `apps/vscode/extension` folder: + - Run `yarn package` - Run `yarn publish` @@ -45,18 +47,20 @@ In the `apps/vscode/extension` folder: The Visual Studio Code extension is made of two projects: -### 1. Extension project +### 1. Extension project + Extension project is under `apps/vscode/extension` and contains the code needed to run a VS Code Extension - it implements the required VS Code interfaces so that VS Code can call our extension and start running it. It registers the command for generating a new `.tldr` file, custom editor for `.tldr` files, and it communicates with the WebViews that run `@tldraw/editor` (more on this later on). -VS Code Extension API offers two ways for adding [new editors](https://code.visualstudio.com/api/extension-guides/custom-editors): `CustomEditor` and `CustomTextEditor`. We are using [`CustomEditor`](https://code.visualstudio.com/api/extension-guides/custom-editors#custom-editor), even though it means we have to do a bit more work and maintain the contents of the document ourselves. This allows us to better support features like `undo`, `redo`, and `revert`, since we are in complete control of the contents of the document. +VS Code Extension API offers two ways for adding [new editors](https://code.visualstudio.com/api/extension-guides/custom-editors): `CustomEditor` and `CustomTextEditor`. We are using [`CustomEditor`](https://code.visualstudio.com/api/extension-guides/custom-editors#custom-editor), even though it means we have to do a bit more work and maintain the contents of the document ourselves. This allows us to better support features like `undo`, `redo`, and `revert`, since we are in complete control of the contents of the document. The custom editor logic lives in `TldrawDocument`, where we handle all the required custom editor operations like reading the file from disk, saving the file, backups, reverting, etc. When a `.tldr` file is opened a new instance of a `TldrawDocument` is created and this instance then serves as the underlying document model for displaying in the VS Code editors for editing this file. You can open the same file in multiple editors, but even then only a single instance of `TldrawDocument` is created per file. When a users opens a file a new WebView is created by the `TldrawWebviewManager` and the file's contents are sent do it. WebViews then show our editor project, which is described below. -### 2. Editor project +### 2. Editor project + Editor project is under `apps/vscode/editor`. When a file is opened a new instance of a WebView is created and we show `@tldraw/editor` this WebView. The implementation is pretty straight forward, but there are some limitations of running `tldraw` inside a WebView, like `window.open` and `window.prompt` not being available, as well as some issues with embeds. We are using `useLocalSyncClient` to sync between different editor instances for cases when the same file is opened in multiple editors. @@ -69,7 +73,6 @@ VS Code actives our extension when needed - when a user opens the first `.tldr` ![VS Code Extension](VS-Code-Extension-1.png) - #### References - [VS Code Marketplace Manager](https://marketplace.visualstudio.com/manage/) diff --git a/apps/vscode/editor/package.json b/apps/vscode/editor/package.json index a6f9de40b..89f7e65c1 100644 --- a/apps/vscode/editor/package.json +++ b/apps/vscode/editor/package.json @@ -40,11 +40,11 @@ "@tldraw/ui": "workspace:*", "@tldraw/utils": "workspace:*", "@types/fs-extra": "^11.0.1", - "@types/node": "^17.0.14", + "@types/node": "18.15.0", "@types/react": "^18.0.24", "@types/react-dom": "^18.0.6", "@types/react-router-dom": "^5.1.8", - "concurrently": "7.0.0", + "concurrently": "^8.1.0", "create-serve": "1.0.1", "dotenv": "^16.0.3", "esbuild": "^0.18.3", diff --git a/apps/vscode/extension/CHANGELOG.md b/apps/vscode/extension/CHANGELOG.md index cc3ab31cf..b351c5b12 100644 --- a/apps/vscode/extension/CHANGELOG.md +++ b/apps/vscode/extension/CHANGELOG.md @@ -1,4 +1,5 @@ ## 2.0.8 + - New highlighter tool! - You can now lock shapes. - Added vertical align setting to Note shapes. @@ -7,7 +8,8 @@ - Improved translations. - Fixed a problem where arrows might cause the extension to crash. -## 2.0.7 +## 2.0.7 + - New laser tool! - New checkbox shape! - Add veritcal alignment options to Notes and Geo shapes. @@ -15,6 +17,7 @@ - Improve exporting and saving to svgs. ## 2.0.6 + - Improved appearance of selection for single draw shapes. - Improve handling of pixel scale when pasting images. - Fixed a bug where pasted tabs wouldn't get converted into spaces. @@ -26,7 +29,6 @@ - Fixed a minor consistency bug when re-doing a shape update. - Re-doing a deletion of the current page now correctly navigates back to that page. - ## 2.0.5 - Fixed another issue with undo / redo. diff --git a/apps/vscode/extension/package.json b/apps/vscode/extension/package.json index f2a4edba3..672316a0a 100644 --- a/apps/vscode/extension/package.json +++ b/apps/vscode/extension/package.json @@ -136,8 +136,8 @@ "@types/fs-extra": "^11.0.1", "@types/node-fetch": "^2.6.2", "@types/vscode": "^1.75.1", - "@typescript-eslint/eslint-plugin": "^5.10.2", - "@typescript-eslint/parser": "^5.10.2", + "@typescript-eslint/eslint-plugin": "^5.57.0", + "@typescript-eslint/parser": "^5.57.0", "assert": "^2.0.0", "esbuild": "^0.18.3", "fs-extra": "^11.1.0", diff --git a/config/package.json b/config/package.json index 95a4425c8..225e871e3 100644 --- a/config/package.json +++ b/config/package.json @@ -8,8 +8,8 @@ "eslint-preset.js" ], "dependencies": { - "eslint-config-prettier": "^8.3.0", - "eslint-plugin-react": "7.28.0" + "eslint-config-prettier": "^8.8.0", + "eslint-plugin-react": "^7.32.2" }, "devDependencies": { "lazyrepo": "0.0.0-alpha.27" diff --git a/package.json b/package.json index 4de6350e5..98b5246d3 100644 --- a/package.json +++ b/package.json @@ -62,9 +62,10 @@ ] }, "dependencies": { + "@babel/parser": "^7.22.5", "@next/eslint-plugin-next": "^13.3.0", "@types/jest": "^28.1.2", - "@types/node": "18.7.3", + "@types/node": "18.15.0", "@types/react": "^18.0.24", "@types/react-dom": "^18.0.6", "@typescript-eslint/eslint-plugin": "^5.57.0", @@ -80,7 +81,7 @@ "husky": "^8.0.0", "jest": "^28.1.1", "lint-staged": ">=10", - "prettier": "^2.8.6", + "prettier": "^2.8.7", "prettier-plugin-organize-imports": "^3.2.2", "typescript": "^5.0.2" }, @@ -93,7 +94,7 @@ "json5": "^2.2.3", "lazyrepo": "0.0.0-alpha.27", "rimraf": "^4.4.0", - "tsx": "^3.12.2", + "tsx": "^3.12.6", "vercel": "^28.16.15" }, "resolutions": { diff --git a/packages/assets/api-report.md b/packages/assets/api-report.md index b5f9156d7..068f3bdc8 100644 --- a/packages/assets/api-report.md +++ b/packages/assets/api-report.md @@ -3,230 +3,228 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts - // @public (undocumented) export function getBundlerAssetUrls(opts?: AssetUrlOptions): { - readonly fonts: { - readonly monospace: string; - readonly sansSerif: string; - readonly serif: string; - readonly draw: string; - }; - readonly icons: { - readonly 'align-bottom-center': string; - readonly 'align-bottom-left': string; - readonly 'align-bottom-right': string; - readonly 'align-bottom': string; - readonly 'align-center-center': string; - readonly 'align-center-horizontal': string; - readonly 'align-center-left': string; - readonly 'align-center-right': string; - readonly 'align-center-vertical': string; - readonly 'align-left': string; - readonly 'align-right': string; - readonly 'align-top-center': string; - readonly 'align-top-left': string; - readonly 'align-top-right': string; - readonly 'align-top': string; - readonly 'arrow-left': string; - readonly 'arrowhead-arrow': string; - readonly 'arrowhead-bar': string; - readonly 'arrowhead-diamond': string; - readonly 'arrowhead-dot': string; - readonly 'arrowhead-none': string; - readonly 'arrowhead-square': string; - readonly 'arrowhead-triangle-inverted': string; - readonly 'arrowhead-triangle': string; - readonly 'aspect-ratio': string; - readonly avatar: string; - readonly blob: string; - readonly 'bring-forward': string; - readonly 'bring-to-front': string; - readonly check: string; - readonly 'checkbox-checked': string; - readonly 'checkbox-empty': string; - readonly 'chevron-down': string; - readonly 'chevron-left': string; - readonly 'chevron-right': string; - readonly 'chevron-up': string; - readonly 'chevrons-ne': string; - readonly 'chevrons-sw': string; - readonly 'clipboard-copy': string; - readonly code: string; - readonly collab: string; - readonly color: string; - readonly comment: string; - readonly 'cross-2': string; - readonly cross: string; - readonly 'dash-dashed': string; - readonly 'dash-dotted': string; - readonly 'dash-draw': string; - readonly 'dash-solid': string; - readonly discord: string; - readonly 'distribute-horizontal': string; - readonly 'distribute-vertical': string; - readonly dot: string; - readonly 'dots-horizontal': string; - readonly 'dots-vertical': string; - readonly 'drag-handle-dots': string; - readonly duplicate: string; - readonly edit: string; - readonly 'external-link': string; - readonly file: string; - readonly 'fill-none': string; - readonly 'fill-pattern': string; - readonly 'fill-semi': string; - readonly 'fill-solid': string; - readonly follow: string; - readonly following: string; - readonly 'font-draw': string; - readonly 'font-mono': string; - readonly 'font-sans': string; - readonly 'font-serif': string; - readonly 'geo-arrow-down': string; - readonly 'geo-arrow-left': string; - readonly 'geo-arrow-right': string; - readonly 'geo-arrow-up': string; - readonly 'geo-check-box': string; - readonly 'geo-diamond': string; - readonly 'geo-ellipse': string; - readonly 'geo-hexagon': string; - readonly 'geo-octagon': string; - readonly 'geo-oval': string; - readonly 'geo-pentagon': string; - readonly 'geo-rectangle': string; - readonly 'geo-rhombus-2': string; - readonly 'geo-rhombus': string; - readonly 'geo-star': string; - readonly 'geo-trapezoid': string; - readonly 'geo-triangle': string; - readonly 'geo-x-box': string; - readonly github: string; - readonly group: string; - readonly hidden: string; - readonly image: string; - readonly 'info-circle': string; - readonly leading: string; - readonly link: string; - readonly 'lock-small': string; - readonly lock: string; - readonly menu: string; - readonly minus: string; - readonly mixed: string; - readonly pack: string; - readonly page: string; - readonly plus: string; - readonly 'question-mark-circle': string; - readonly 'question-mark': string; - readonly redo: string; - readonly 'reset-zoom': string; - readonly 'rotate-ccw': string; - readonly 'rotate-cw': string; - readonly ruler: string; - readonly search: string; - readonly 'send-backward': string; - readonly 'send-to-back': string; - readonly 'settings-horizontal': string; - readonly 'settings-vertical-1': string; - readonly 'settings-vertical': string; - readonly 'share-1': string; - readonly 'share-2': string; - readonly 'size-extra-large': string; - readonly 'size-large': string; - readonly 'size-medium': string; - readonly 'size-small': string; - readonly 'spline-cubic': string; - readonly 'spline-line': string; - readonly 'stack-horizontal': string; - readonly 'stack-vertical': string; - readonly 'stretch-horizontal': string; - readonly 'stretch-vertical': string; - readonly 'text-align-center': string; - readonly 'text-align-justify': string; - readonly 'text-align-left': string; - readonly 'text-align-right': string; - readonly 'tool-arrow': string; - readonly 'tool-embed': string; - readonly 'tool-eraser': string; - readonly 'tool-frame': string; - readonly 'tool-hand': string; - readonly 'tool-highlighter': string; - readonly 'tool-line': string; - readonly 'tool-media': string; - readonly 'tool-note': string; - readonly 'tool-pencil': string; - readonly 'tool-pointer': string; - readonly 'tool-text': string; - readonly trash: string; - readonly 'triangle-down': string; - readonly 'triangle-up': string; - readonly twitter: string; - readonly undo: string; - readonly ungroup: string; - readonly 'unlock-small': string; - readonly unlock: string; - readonly visible: string; - readonly 'warning-triangle': string; - readonly 'zoom-in': string; - readonly 'zoom-out': string; - }; - readonly translations: { - readonly ar: string; - readonly ca: string; - readonly da: string; - readonly de: string; - readonly en: string; - readonly es: string; - readonly fa: string; - readonly fi: string; - readonly fr: string; - readonly gl: string; - readonly he: string; - readonly 'hi-in': string; - readonly hu: string; - readonly it: string; - readonly ja: string; - readonly 'ko-kr': string; - readonly ku: string; - readonly languages: string; - readonly main: string; - readonly my: string; - readonly ne: string; - readonly no: string; - readonly pl: string; - readonly 'pt-br': string; - readonly 'pt-pt': string; - readonly ro: string; - readonly ru: string; - readonly sv: string; - readonly te: string; - readonly th: string; - readonly tr: string; - readonly uk: string; - readonly vi: string; - readonly 'zh-cn': string; - readonly 'zh-tw': string; - }; - readonly embedIcons: { - readonly codepen: string; - readonly codesandbox: string; - readonly excalidraw: string; - readonly felt: string; - readonly figma: string; - readonly github_gist: string; - readonly google_calendar: string; - readonly google_maps: string; - readonly google_slides: string; - readonly observable: string; - readonly replit: string; - readonly scratch: string; - readonly spotify: string; - readonly tldraw: string; - readonly vimeo: string; - readonly youtube: string; - }; -}; + readonly fonts: { + readonly monospace: string + readonly sansSerif: string + readonly serif: string + readonly draw: string + } + readonly icons: { + readonly 'align-bottom-center': string + readonly 'align-bottom-left': string + readonly 'align-bottom-right': string + readonly 'align-bottom': string + readonly 'align-center-center': string + readonly 'align-center-horizontal': string + readonly 'align-center-left': string + readonly 'align-center-right': string + readonly 'align-center-vertical': string + readonly 'align-left': string + readonly 'align-right': string + readonly 'align-top-center': string + readonly 'align-top-left': string + readonly 'align-top-right': string + readonly 'align-top': string + readonly 'arrow-left': string + readonly 'arrowhead-arrow': string + readonly 'arrowhead-bar': string + readonly 'arrowhead-diamond': string + readonly 'arrowhead-dot': string + readonly 'arrowhead-none': string + readonly 'arrowhead-square': string + readonly 'arrowhead-triangle-inverted': string + readonly 'arrowhead-triangle': string + readonly 'aspect-ratio': string + readonly avatar: string + readonly blob: string + readonly 'bring-forward': string + readonly 'bring-to-front': string + readonly check: string + readonly 'checkbox-checked': string + readonly 'checkbox-empty': string + readonly 'chevron-down': string + readonly 'chevron-left': string + readonly 'chevron-right': string + readonly 'chevron-up': string + readonly 'chevrons-ne': string + readonly 'chevrons-sw': string + readonly 'clipboard-copy': string + readonly code: string + readonly collab: string + readonly color: string + readonly comment: string + readonly 'cross-2': string + readonly cross: string + readonly 'dash-dashed': string + readonly 'dash-dotted': string + readonly 'dash-draw': string + readonly 'dash-solid': string + readonly discord: string + readonly 'distribute-horizontal': string + readonly 'distribute-vertical': string + readonly dot: string + readonly 'dots-horizontal': string + readonly 'dots-vertical': string + readonly 'drag-handle-dots': string + readonly duplicate: string + readonly edit: string + readonly 'external-link': string + readonly file: string + readonly 'fill-none': string + readonly 'fill-pattern': string + readonly 'fill-semi': string + readonly 'fill-solid': string + readonly follow: string + readonly following: string + readonly 'font-draw': string + readonly 'font-mono': string + readonly 'font-sans': string + readonly 'font-serif': string + readonly 'geo-arrow-down': string + readonly 'geo-arrow-left': string + readonly 'geo-arrow-right': string + readonly 'geo-arrow-up': string + readonly 'geo-check-box': string + readonly 'geo-diamond': string + readonly 'geo-ellipse': string + readonly 'geo-hexagon': string + readonly 'geo-octagon': string + readonly 'geo-oval': string + readonly 'geo-pentagon': string + readonly 'geo-rectangle': string + readonly 'geo-rhombus-2': string + readonly 'geo-rhombus': string + readonly 'geo-star': string + readonly 'geo-trapezoid': string + readonly 'geo-triangle': string + readonly 'geo-x-box': string + readonly github: string + readonly group: string + readonly hidden: string + readonly image: string + readonly 'info-circle': string + readonly leading: string + readonly link: string + readonly 'lock-small': string + readonly lock: string + readonly menu: string + readonly minus: string + readonly mixed: string + readonly pack: string + readonly page: string + readonly plus: string + readonly 'question-mark-circle': string + readonly 'question-mark': string + readonly redo: string + readonly 'reset-zoom': string + readonly 'rotate-ccw': string + readonly 'rotate-cw': string + readonly ruler: string + readonly search: string + readonly 'send-backward': string + readonly 'send-to-back': string + readonly 'settings-horizontal': string + readonly 'settings-vertical-1': string + readonly 'settings-vertical': string + readonly 'share-1': string + readonly 'share-2': string + readonly 'size-extra-large': string + readonly 'size-large': string + readonly 'size-medium': string + readonly 'size-small': string + readonly 'spline-cubic': string + readonly 'spline-line': string + readonly 'stack-horizontal': string + readonly 'stack-vertical': string + readonly 'stretch-horizontal': string + readonly 'stretch-vertical': string + readonly 'text-align-center': string + readonly 'text-align-justify': string + readonly 'text-align-left': string + readonly 'text-align-right': string + readonly 'tool-arrow': string + readonly 'tool-embed': string + readonly 'tool-eraser': string + readonly 'tool-frame': string + readonly 'tool-hand': string + readonly 'tool-highlighter': string + readonly 'tool-line': string + readonly 'tool-media': string + readonly 'tool-note': string + readonly 'tool-pencil': string + readonly 'tool-pointer': string + readonly 'tool-text': string + readonly trash: string + readonly 'triangle-down': string + readonly 'triangle-up': string + readonly twitter: string + readonly undo: string + readonly ungroup: string + readonly 'unlock-small': string + readonly unlock: string + readonly visible: string + readonly 'warning-triangle': string + readonly 'zoom-in': string + readonly 'zoom-out': string + } + readonly translations: { + readonly ar: string + readonly ca: string + readonly da: string + readonly de: string + readonly en: string + readonly es: string + readonly fa: string + readonly fi: string + readonly fr: string + readonly gl: string + readonly he: string + readonly 'hi-in': string + readonly hu: string + readonly it: string + readonly ja: string + readonly 'ko-kr': string + readonly ku: string + readonly languages: string + readonly main: string + readonly my: string + readonly ne: string + readonly no: string + readonly pl: string + readonly 'pt-br': string + readonly 'pt-pt': string + readonly ro: string + readonly ru: string + readonly sv: string + readonly te: string + readonly th: string + readonly tr: string + readonly uk: string + readonly vi: string + readonly 'zh-cn': string + readonly 'zh-tw': string + } + readonly embedIcons: { + readonly codepen: string + readonly codesandbox: string + readonly excalidraw: string + readonly felt: string + readonly figma: string + readonly github_gist: string + readonly google_calendar: string + readonly google_maps: string + readonly google_slides: string + readonly observable: string + readonly replit: string + readonly scratch: string + readonly spotify: string + readonly tldraw: string + readonly vimeo: string + readonly youtube: string + } +} // (No @packageDocumentation comment for this package) - ``` diff --git a/packages/editor/package.json b/packages/editor/package.json index 1cb08b2c7..5b15c3fd6 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -65,8 +65,8 @@ "nanoid": "4.0.2" }, "peerDependencies": { - "react": "^18", - "react-dom": "^18", + "react": "^18.2.0", + "react-dom": "^18.2.0", "signia": "*", "signia-react": "*" }, diff --git a/packages/polyfills/api-report.md b/packages/polyfills/api-report.md index 440a48166..f2c553b3f 100644 --- a/packages/polyfills/api-report.md +++ b/packages/polyfills/api-report.md @@ -3,7 +3,5 @@ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts - // (No @packageDocumentation comment for this package) - ``` diff --git a/packages/tldraw/api-report.md b/packages/tldraw/api-report.md index 73bdd9e74..51c41b268 100644 --- a/packages/tldraw/api-report.md +++ b/packages/tldraw/api-report.md @@ -4,6 +4,8 @@ ```ts +/// + import { TldrawEditorProps } from '@tldraw/editor'; import { TldrawUiProps } from '@tldraw/ui'; diff --git a/packages/tldraw/package.json b/packages/tldraw/package.json index db9fc5342..7e5c6516d 100644 --- a/packages/tldraw/package.json +++ b/packages/tldraw/package.json @@ -49,16 +49,16 @@ "@tldraw/ui": "workspace:*" }, "peerDependencies": { - "react": "^18", - "react-dom": "^18" + "react": "^18.2.0", + "react-dom": "^18.2.0" }, "devDependencies": { "@peculiar/webcrypto": "^1.4.0", - "@testing-library/jest-dom": "^5.14.1", + "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^14.0.0", "chokidar-cli": "^3.0.0", - "jest-canvas-mock": "^2.4.0", - "jest-environment-jsdom": "^28.1.2", + "jest-canvas-mock": "^2.5.1", + "jest-environment-jsdom": "^29.4.3", "lazyrepo": "0.0.0-alpha.27", "resize-observer-polyfill": "^1.5.1" }, diff --git a/packages/ui/api-report.md b/packages/ui/api-report.md index 243a50c27..627e5c1ad 100644 --- a/packages/ui/api-report.md +++ b/packages/ui/api-report.md @@ -211,13 +211,7 @@ function Title({ className, children }: { }): JSX.Element; // @public (undocumented) -export const TldrawUi: React_2.NamedExoticComponent<{ - children?: ReactNode; - hideUi?: boolean | undefined; - shareZone?: ReactNode; - topZone?: ReactNode; - renderDebugMenuItems?: (() => React_2.ReactNode) | undefined; -} & TldrawUiContextProviderProps>; +export const TldrawUi: React_2.NamedExoticComponent; // @public (undocumented) export function TldrawUiContextProvider({ overrides, assetUrls, onUiEvent, children, }: TldrawUiContextProviderProps): JSX.Element; diff --git a/packages/ui/package.json b/packages/ui/package.json index 7f58cc3be..c029454a1 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -63,18 +63,18 @@ "lz-string": "^1.4.4" }, "peerDependencies": { - "react": "^18", - "react-dom": "^18", + "react": "^18.2.0", + "react-dom": "^18.2.0", "signia": "*", "signia-react": "*" }, "devDependencies": { "@peculiar/webcrypto": "^1.4.0", - "@testing-library/jest-dom": "^5.14.1", - "@testing-library/react": "^12.0.0", + "@testing-library/jest-dom": "^5.16.5", + "@testing-library/react": "^14.0.0", "@types/lz-string": "^1.3.34", - "jest-canvas-mock": "^2.4.0", - "jest-environment-jsdom": "^28.1.2", + "jest-canvas-mock": "^2.5.1", + "jest-environment-jsdom": "^29.4.3", "lazyrepo": "0.0.0-alpha.27", "resize-observer-polyfill": "^1.5.1" }, diff --git a/public-yarn.lock b/public-yarn.lock index ded2c920c..fadb03be7 100644 --- a/public-yarn.lock +++ b/public-yarn.lock @@ -534,6 +534,15 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.22.5": + version: 7.22.5 + resolution: "@babel/parser@npm:7.22.5" + bin: + parser: ./bin/babel-parser.js + checksum: 470ebba516417ce8683b36e2eddd56dcfecb32c54b9bb507e28eb76b30d1c3e618fd0cfeee1f64d8357c2254514e1a19e32885cfb4e73149f4ae875436a6d59c + languageName: node + linkType: hard + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:^7.18.6": version: 7.18.6 resolution: "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:7.18.6" @@ -2316,7 +2325,7 @@ __metadata: languageName: node linkType: hard -"@eslint/eslintrc@npm:^2.0.1, @eslint/eslintrc@npm:^2.0.2": +"@eslint/eslintrc@npm:^2.0.2": version: 2.0.2 resolution: "@eslint/eslintrc@npm:2.0.2" dependencies: @@ -2333,13 +2342,6 @@ __metadata: languageName: node linkType: hard -"@eslint/js@npm:8.36.0": - version: 8.36.0 - resolution: "@eslint/js@npm:8.36.0" - checksum: b7d6b84b823c8c7784be390741196617565527b1f7c0977fde9455bfb57fd88f81c074a03dd878757d2c33fa29f24291e9ecbc1425710f067917324b55e1bf3a - languageName: node - linkType: hard - "@eslint/js@npm:8.38.0": version: 8.38.0 resolution: "@eslint/js@npm:8.38.0" @@ -2861,7 +2863,7 @@ __metadata: languageName: node linkType: hard -"@microsoft/api-extractor-model@npm:7.27.3": +"@microsoft/api-extractor-model@npm:7.27.3, @microsoft/api-extractor-model@npm:^7.27.3": version: 7.27.3 resolution: "@microsoft/api-extractor-model@npm:7.27.3" dependencies: @@ -2872,17 +2874,6 @@ __metadata: languageName: node linkType: hard -"@microsoft/api-extractor-model@npm:^7.26.4": - version: 7.26.4 - resolution: "@microsoft/api-extractor-model@npm:7.26.4" - dependencies: - "@microsoft/tsdoc": 0.14.2 - "@microsoft/tsdoc-config": ~0.16.1 - "@rushstack/node-core-library": 3.55.2 - checksum: 0b27f9b248396422f3044f2472d86c111a6a4d34b4fd2c67d9995e96e5b144ec41ac35dbf2a005f144766814b824518bc42b424d93e3075d3dc1b17c2f8791d6 - languageName: node - linkType: hard - "@microsoft/api-extractor@npm:7.35.4": version: 7.35.4 resolution: "@microsoft/api-extractor@npm:7.35.4" @@ -4044,26 +4035,6 @@ __metadata: languageName: node linkType: hard -"@rushstack/node-core-library@npm:3.55.2": - version: 3.55.2 - resolution: "@rushstack/node-core-library@npm:3.55.2" - dependencies: - colors: ~1.2.1 - fs-extra: ~7.0.1 - import-lazy: ~4.0.0 - jju: ~1.4.0 - resolve: ~1.22.1 - semver: ~7.3.0 - z-schema: ~5.0.2 - peerDependencies: - "@types/node": "*" - peerDependenciesMeta: - "@types/node": - optional: true - checksum: b6b289315cd6a3544471f534405479b7c80f3906b7506590d5eb83a605a0a5b65861bf678f3e6c2277c8db116b8e05f8e7b6864fdc75e0f1514c9ff224b83fe6 - languageName: node - linkType: hard - "@rushstack/node-core-library@npm:3.59.4": version: 3.59.4 resolution: "@rushstack/node-core-library@npm:3.59.4" @@ -4326,22 +4297,6 @@ __metadata: languageName: node linkType: hard -"@testing-library/dom@npm:^8.0.0": - version: 8.20.0 - resolution: "@testing-library/dom@npm:8.20.0" - dependencies: - "@babel/code-frame": ^7.10.4 - "@babel/runtime": ^7.12.5 - "@types/aria-query": ^5.0.1 - aria-query: ^5.0.0 - chalk: ^4.1.0 - dom-accessibility-api: ^0.5.9 - lz-string: ^1.4.4 - pretty-format: ^27.0.2 - checksum: 1e599129a2fe91959ce80900a0a4897232b89e2a8e22c1f5950c36d39c97629ea86b4986b60b173b5525a05de33fde1e35836ea597b03de78cc51b122835c6f0 - languageName: node - linkType: hard - "@testing-library/dom@npm:^9.0.0": version: 9.2.0 resolution: "@testing-library/dom@npm:9.2.0" @@ -4358,7 +4313,7 @@ __metadata: languageName: node linkType: hard -"@testing-library/jest-dom@npm:^5.14.1, @testing-library/jest-dom@npm:^5.16.5": +"@testing-library/jest-dom@npm:^5.16.5": version: 5.16.5 resolution: "@testing-library/jest-dom@npm:5.16.5" dependencies: @@ -4375,20 +4330,6 @@ __metadata: languageName: node linkType: hard -"@testing-library/react@npm:^12.0.0": - version: 12.1.5 - resolution: "@testing-library/react@npm:12.1.5" - dependencies: - "@babel/runtime": ^7.12.5 - "@testing-library/dom": ^8.0.0 - "@types/react-dom": <18.0.0 - peerDependencies: - react: <18.0.0 - react-dom: <18.0.0 - checksum: 4abd0490405e709a7df584a0db604e508a4612398bb1326e8fa32dd9393b15badc826dcf6d2f7525437886d507871f719f127b9860ed69ddd204d1fa834f576a - languageName: node - linkType: hard - "@testing-library/react@npm:^14.0.0": version: 14.0.0 resolution: "@testing-library/react@npm:14.0.0" @@ -4417,7 +4358,7 @@ __metadata: version: 0.0.0-use.local resolution: "@tldraw/docs@workspace:apps/docs" dependencies: - "@microsoft/api-extractor-model": ^7.26.4 + "@microsoft/api-extractor-model": ^7.27.3 "@microsoft/tsdoc": ^0.14.2 "@tldraw/editor": "workspace:*" "@tldraw/file-format": "workspace:*" @@ -4431,7 +4372,7 @@ __metadata: "@types/node": 18.15.0 "@types/react": ^18.0.24 "@types/react-dom": ^18.0.6 - eslint: 8.36.0 + eslint: ^8.37.0 eslint-config-next: 13.2.4 gray-matter: ^4.0.3 lazyrepo: 0.0.0-alpha.27 @@ -4440,8 +4381,8 @@ __metadata: next-remote-watch: ^2.0.0 next-themes: ^0.2.1 prettier: ^2.8.7 - react: 18.2.0 - react-dom: 18.2.0 + react: ^18.2.0 + react-dom: ^18.2.0 rehype-autolink-headings: ^6.1.1 rehype-highlight: ^6.0.0 rehype-slug: ^5.1.0 @@ -4491,8 +4432,8 @@ __metadata: react-test-renderer: ^18.2.0 resize-observer-polyfill: ^1.5.1 peerDependencies: - react: ^18 - react-dom: ^18 + react: ^18.2.0 + react-dom: ^18.2.0 signia: "*" signia-react: "*" languageName: unknown @@ -4524,13 +4465,14 @@ __metadata: version: 0.0.0-use.local resolution: "@tldraw/monorepo@workspace:." dependencies: + "@babel/parser": ^7.22.5 "@microsoft/api-extractor": ^7.35.4 "@next/eslint-plugin-next": ^13.3.0 "@swc/core": ^1.3.55 "@swc/jest": ^0.2.26 "@types/glob": ^8.1.0 "@types/jest": ^28.1.2 - "@types/node": 18.7.3 + "@types/node": 18.15.0 "@types/react": ^18.0.24 "@types/react-dom": ^18.0.6 "@typescript-eslint/eslint-plugin": ^5.57.0 @@ -4549,10 +4491,10 @@ __metadata: json5: ^2.2.3 lazyrepo: 0.0.0-alpha.27 lint-staged: ">=10" - prettier: ^2.8.6 + prettier: ^2.8.7 prettier-plugin-organize-imports: ^3.2.2 rimraf: ^4.4.0 - tsx: ^3.12.2 + tsx: ^3.12.6 typescript: ^5.0.2 vercel: ^28.16.15 languageName: unknown @@ -4582,7 +4524,7 @@ __metadata: dependencies: "@auto-it/core": ^10.45.0 "@types/is-ci": ^3.0.0 - "@types/node": ^18.13.0 + "@types/node": 18.15.0 "@typescript-eslint/utils": ^5.59.0 ast-types: ^0.14.2 cross-fetch: ^3.1.5 @@ -4597,7 +4539,7 @@ __metadata: rimraf: ^4.4.0 semver: ^7.3.8 svgo: ^3.0.2 - typescript: ^4.5.2 + typescript: ^5.0.2 languageName: unknown linkType: soft @@ -4622,19 +4564,19 @@ __metadata: resolution: "@tldraw/tldraw@workspace:packages/tldraw" dependencies: "@peculiar/webcrypto": ^1.4.0 - "@testing-library/jest-dom": ^5.14.1 + "@testing-library/jest-dom": ^5.16.5 "@testing-library/react": ^14.0.0 "@tldraw/editor": "workspace:*" "@tldraw/polyfills": "workspace:*" "@tldraw/ui": "workspace:*" chokidar-cli: ^3.0.0 - jest-canvas-mock: ^2.4.0 - jest-environment-jsdom: ^28.1.2 + jest-canvas-mock: ^2.5.1 + jest-environment-jsdom: ^29.4.3 lazyrepo: 0.0.0-alpha.27 resize-observer-polyfill: ^1.5.1 peerDependencies: - react: ^18 - react-dom: ^18 + react: ^18.2.0 + react-dom: ^18.2.0 languageName: unknown linkType: soft @@ -4666,8 +4608,8 @@ __metadata: "@radix-ui/react-select": ^1.2.0 "@radix-ui/react-slider": ^1.1.0 "@radix-ui/react-toast": ^1.1.1 - "@testing-library/jest-dom": ^5.14.1 - "@testing-library/react": ^12.0.0 + "@testing-library/jest-dom": ^5.16.5 + "@testing-library/react": ^14.0.0 "@tldraw/editor": "workspace:*" "@tldraw/primitives": "workspace:*" "@tldraw/tlschema": "workspace:*" @@ -4677,14 +4619,14 @@ __metadata: classnames: ^2.3.2 hotkeys-js: ^3.9.4 idb: ^7.1.1 - jest-canvas-mock: ^2.4.0 - jest-environment-jsdom: ^28.1.2 + jest-canvas-mock: ^2.5.1 + jest-environment-jsdom: ^29.4.3 lazyrepo: 0.0.0-alpha.27 lz-string: ^1.4.4 resize-observer-polyfill: ^1.5.1 peerDependencies: - react: ^18 - react-dom: ^18 + react: ^18.2.0 + react-dom: ^18.2.0 signia: "*" signia-react: "*" languageName: unknown @@ -4718,11 +4660,11 @@ __metadata: "@tldraw/ui": "workspace:*" "@tldraw/utils": "workspace:*" "@types/fs-extra": ^11.0.1 - "@types/node": ^17.0.14 + "@types/node": 18.15.0 "@types/react": ^18.0.24 "@types/react-dom": ^18.0.6 "@types/react-router-dom": ^5.1.8 - concurrently: 7.0.0 + concurrently: ^8.1.0 create-serve: 1.0.1 dotenv: ^16.0.3 esbuild: ^0.18.3 @@ -5073,17 +5015,6 @@ __metadata: languageName: node linkType: hard -"@types/jsdom@npm:^16.2.4": - version: 16.2.15 - resolution: "@types/jsdom@npm:16.2.15" - dependencies: - "@types/node": "*" - "@types/parse5": ^6.0.3 - "@types/tough-cookie": "*" - checksum: e038335321bef42ebf220aaf597e186e2eec8de6107ce7a70de1c046a84c1fbb42d454e195a20383a6870b18c7ef6fa6b73812a626f88a4a2ef1f711d2e2e13c - languageName: node - linkType: hard - "@types/jsdom@npm:^20.0.0": version: 20.0.1 resolution: "@types/jsdom@npm:20.0.1" @@ -5215,7 +5146,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:^18.13.0": +"@types/node@npm:*": version: 18.15.12 resolution: "@types/node@npm:18.15.12" checksum: dff7596db8d0a18bcd8da542dc62ed4377cba39546ff53baaa06d106f1482bc3e4e5e03644f5d1e3cef0904ffbe8ebbc244b2b0851f8025ab2a3959ee0ace58f @@ -5236,20 +5167,6 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:18.7.3": - version: 18.7.3 - resolution: "@types/node@npm:18.7.3" - checksum: f51ed436a112235ac068d739b4823090a37b869cc186b64dd5c250dd285139c286990fcbeff2fb3ecba5d605fa885de4275247d332e5b96eafdfbb1da62e3ced - languageName: node - linkType: hard - -"@types/node@npm:^17.0.14": - version: 17.0.45 - resolution: "@types/node@npm:17.0.45" - checksum: aa04366b9103b7d6cfd6b2ef64182e0eaa7d4462c3f817618486ea0422984c51fc69fd0d436eae6c9e696ddfdbec9ccaa27a917f7c2e8c75c5d57827fe3d95e8 - languageName: node - linkType: hard - "@types/parse-json@npm:^4.0.0": version: 4.0.0 resolution: "@types/parse-json@npm:4.0.0" @@ -5257,13 +5174,6 @@ __metadata: languageName: node linkType: hard -"@types/parse5@npm:^6.0.3": - version: 6.0.3 - resolution: "@types/parse5@npm:6.0.3" - checksum: ddb59ee4144af5dfcc508a8dcf32f37879d11e12559561e65788756b95b33e6f03ea027d88e1f5408f9b7bfb656bf630ace31a2169edf44151daaf8dd58df1b7 - languageName: node - linkType: hard - "@types/prettier@npm:^2.1.5": version: 2.7.2 resolution: "@types/prettier@npm:2.7.2" @@ -5278,15 +5188,6 @@ __metadata: languageName: node linkType: hard -"@types/react-dom@npm:<18.0.0": - version: 17.0.19 - resolution: "@types/react-dom@npm:17.0.19" - dependencies: - "@types/react": ^17 - checksum: 875a472d868b235435c905ded16cf92297bd2afb20a5a78f5dccd54312f6f038ccf452ea92bb41c0b39150c2f16f3ddff0265a2de756c6f63b0971dd5719578b - languageName: node - linkType: hard - "@types/react-dom@npm:^18.0.0, @types/react-dom@npm:^18.0.6": version: 18.0.11 resolution: "@types/react-dom@npm:18.0.11" @@ -5337,17 +5238,6 @@ __metadata: languageName: node linkType: hard -"@types/react@npm:^17": - version: 17.0.58 - resolution: "@types/react@npm:17.0.58" - dependencies: - "@types/prop-types": "*" - "@types/scheduler": "*" - csstype: ^3.0.2 - checksum: 4eaf32b86c43f388c681e34a00921c508dd88a1d1022aebfadc5fe802b7c5bed863de1a17eed31e43ca2d65222952dfe79a022055a0e6e4e1ad89fc5a42ec05e - languageName: node - linkType: hard - "@types/responselike@npm:^1.0.0": version: 1.0.0 resolution: "@types/responselike@npm:1.0.0" @@ -5454,7 +5344,7 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^5.10.2, @typescript-eslint/eslint-plugin@npm:^5.57.0": +"@typescript-eslint/eslint-plugin@npm:^5.57.0": version: 5.59.0 resolution: "@typescript-eslint/eslint-plugin@npm:5.59.0" dependencies: @@ -5478,7 +5368,7 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/parser@npm:^5.10.2, @typescript-eslint/parser@npm:^5.42.0, @typescript-eslint/parser@npm:^5.57.0": +"@typescript-eslint/parser@npm:^5.42.0, @typescript-eslint/parser@npm:^5.57.0": version: 5.59.0 resolution: "@typescript-eslint/parser@npm:5.59.0" dependencies: @@ -5855,7 +5745,7 @@ __metadata: languageName: node linkType: hard -"abab@npm:^2.0.5, abab@npm:^2.0.6": +"abab@npm:^2.0.6": version: 2.0.6 resolution: "abab@npm:2.0.6" checksum: 6ffc1af4ff315066c62600123990d87551ceb0aafa01e6539da77b0f5987ac7019466780bf480f1787576d4385e3690c81ccc37cfda12819bf510b8ab47e5a3e @@ -5905,16 +5795,6 @@ __metadata: languageName: node linkType: hard -"acorn-globals@npm:^6.0.0": - version: 6.0.0 - resolution: "acorn-globals@npm:6.0.0" - dependencies: - acorn: ^7.1.1 - acorn-walk: ^7.1.1 - checksum: 72d95e5b5e585f9acd019b993ab8bbba68bb3cbc9d9b5c1ebb3c2f1fe5981f11deababfb4949f48e6262f9c57878837f5958c0cca396f81023814680ca878042 - languageName: node - linkType: hard - "acorn-globals@npm:^7.0.0": version: 7.0.1 resolution: "acorn-globals@npm:7.0.1" @@ -5934,13 +5814,6 @@ __metadata: languageName: node linkType: hard -"acorn-walk@npm:^7.1.1": - version: 7.2.0 - resolution: "acorn-walk@npm:7.2.0" - checksum: 9252158a79b9d92f1bc0dd6acc0fcfb87a67339e84bcc301bb33d6078936d27e35d606b4d35626d2962cd43c256d6f27717e70cbe15c04fff999ab0b2260b21f - languageName: node - linkType: hard - "acorn-walk@npm:^8.0.2, acorn-walk@npm:^8.1.1, acorn-walk@npm:^8.2.0": version: 8.2.0 resolution: "acorn-walk@npm:8.2.0" @@ -5948,16 +5821,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^7.1.1": - version: 7.4.1 - resolution: "acorn@npm:7.4.1" - bin: - acorn: bin/acorn - checksum: 1860f23c2107c910c6177b7b7be71be350db9e1080d814493fae143ae37605189504152d1ba8743ba3178d0b37269ce1ffc42b101547fdc1827078f82671e407 - languageName: node - linkType: hard - -"acorn@npm:^8.0.0, acorn@npm:^8.1.0, acorn@npm:^8.4.1, acorn@npm:^8.5.0, acorn@npm:^8.6.0, acorn@npm:^8.7.0, acorn@npm:^8.8.0, acorn@npm:^8.8.1, acorn@npm:^8.8.2": +"acorn@npm:^8.0.0, acorn@npm:^8.1.0, acorn@npm:^8.4.1, acorn@npm:^8.6.0, acorn@npm:^8.7.0, acorn@npm:^8.8.0, acorn@npm:^8.8.1, acorn@npm:^8.8.2": version: 8.8.2 resolution: "acorn@npm:8.8.2" bin: @@ -6219,7 +6083,7 @@ __metadata: languageName: node linkType: hard -"array-includes@npm:^3.1.4, array-includes@npm:^3.1.5, array-includes@npm:^3.1.6": +"array-includes@npm:^3.1.5, array-includes@npm:^3.1.6": version: 3.1.6 resolution: "array-includes@npm:3.1.6" dependencies: @@ -6267,7 +6131,7 @@ __metadata: languageName: node linkType: hard -"array.prototype.flatmap@npm:^1.2.5, array.prototype.flatmap@npm:^1.3.1": +"array.prototype.flatmap@npm:^1.3.1": version: 1.3.1 resolution: "array.prototype.flatmap@npm:1.3.1" dependencies: @@ -6729,13 +6593,6 @@ __metadata: languageName: node linkType: hard -"browser-process-hrtime@npm:^1.0.0": - version: 1.0.0 - resolution: "browser-process-hrtime@npm:1.0.0" - checksum: e30f868cdb770b1201afb714ad1575dd86366b6e861900884665fb627109b3cc757c40067d3bfee1ff2a29c835257ea30725a8018a9afd02ac1c24b408b1e45f - languageName: node - linkType: hard - "browser-stdout@npm:1.3.1": version: 1.3.1 resolution: "browser-stdout@npm:1.3.1" @@ -7396,24 +7253,6 @@ __metadata: languageName: node linkType: hard -"concurrently@npm:7.0.0": - version: 7.0.0 - resolution: "concurrently@npm:7.0.0" - dependencies: - chalk: ^4.1.0 - date-fns: ^2.16.1 - lodash: ^4.17.21 - rxjs: ^6.6.3 - spawn-command: ^0.0.2-1 - supports-color: ^8.1.0 - tree-kill: ^1.2.2 - yargs: ^16.2.0 - bin: - concurrently: dist/bin/concurrently.js - checksum: 1be78f24bf814f097adaf2e61a37563eb73f12272bbeda90e3e616a23525f793268e22a3c6aedf34e5bad44459f7c30ee053c617905416ba11ce2bee55f089a5 - languageName: node - linkType: hard - "concurrently@npm:^8.1.0": version: 8.1.0 resolution: "concurrently@npm:8.1.0" @@ -7438,8 +7277,8 @@ __metadata: version: 0.0.0-use.local resolution: "config@workspace:config" dependencies: - eslint-config-prettier: ^8.3.0 - eslint-plugin-react: 7.28.0 + eslint-config-prettier: ^8.8.0 + eslint-plugin-react: ^7.32.2 lazyrepo: 0.0.0-alpha.27 languageName: unknown linkType: soft @@ -7709,7 +7548,7 @@ __metadata: languageName: node linkType: hard -"data-urls@npm:^3.0.1, data-urls@npm:^3.0.2": +"data-urls@npm:^3.0.2": version: 3.0.2 resolution: "data-urls@npm:3.0.2" dependencies: @@ -7720,13 +7559,6 @@ __metadata: languageName: node linkType: hard -"date-fns@npm:^2.16.1": - version: 2.29.3 - resolution: "date-fns@npm:2.29.3" - checksum: e01cf5b62af04e05dfff921bb9c9933310ed0e1ae9a81eb8653452e64dc841acf7f6e01e1a5ae5644d0337e9a7f936175fd2cb6819dc122fdd9c5e86c56be484 - languageName: node - linkType: hard - "date-fns@npm:^2.29.3": version: 2.30.0 resolution: "date-fns@npm:2.30.0" @@ -7802,7 +7634,7 @@ __metadata: languageName: node linkType: hard -"decimal.js@npm:^10.3.1, decimal.js@npm:^10.4.2": +"decimal.js@npm:^10.4.2": version: 10.4.3 resolution: "decimal.js@npm:10.4.3" checksum: 796404dcfa9d1dbfdc48870229d57f788b48c21c603c3f6554a1c17c10195fc1024de338b0cf9e1efe0c7c167eeb18f04548979bcc5fdfabebb7cc0ae3287bae @@ -9101,7 +8933,7 @@ __metadata: languageName: node linkType: hard -"eslint-config-prettier@npm:^8.3.0, eslint-config-prettier@npm:^8.8.0": +"eslint-config-prettier@npm:^8.8.0": version: 8.8.0 resolution: "eslint-config-prettier@npm:8.8.0" peerDependencies: @@ -9228,30 +9060,6 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-react@npm:7.28.0": - version: 7.28.0 - resolution: "eslint-plugin-react@npm:7.28.0" - dependencies: - array-includes: ^3.1.4 - array.prototype.flatmap: ^1.2.5 - doctrine: ^2.1.0 - estraverse: ^5.3.0 - jsx-ast-utils: ^2.4.1 || ^3.0.0 - minimatch: ^3.0.4 - object.entries: ^1.1.5 - object.fromentries: ^2.0.5 - object.hasown: ^1.1.0 - object.values: ^1.1.5 - prop-types: ^15.7.2 - resolve: ^2.0.0-next.3 - semver: ^6.3.0 - string.prototype.matchall: ^4.0.6 - peerDependencies: - eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 - checksum: 90293d0fd53bb1f735ffd32141cdd211fb1120c9f7bbe5342f9e923261a39e52a2b2575d4e46c9cd77d257f42db4a99b8b339689fc5b5c1c26048929f69b1784 - languageName: node - linkType: hard - "eslint-plugin-react@npm:^7.31.7, eslint-plugin-react@npm:^7.32.2": version: 7.32.2 resolution: "eslint-plugin-react@npm:7.32.2" @@ -9304,56 +9112,6 @@ __metadata: languageName: node linkType: hard -"eslint@npm:8.36.0": - version: 8.36.0 - resolution: "eslint@npm:8.36.0" - dependencies: - "@eslint-community/eslint-utils": ^4.2.0 - "@eslint-community/regexpp": ^4.4.0 - "@eslint/eslintrc": ^2.0.1 - "@eslint/js": 8.36.0 - "@humanwhocodes/config-array": ^0.11.8 - "@humanwhocodes/module-importer": ^1.0.1 - "@nodelib/fs.walk": ^1.2.8 - ajv: ^6.10.0 - chalk: ^4.0.0 - cross-spawn: ^7.0.2 - debug: ^4.3.2 - doctrine: ^3.0.0 - escape-string-regexp: ^4.0.0 - eslint-scope: ^7.1.1 - eslint-visitor-keys: ^3.3.0 - espree: ^9.5.0 - esquery: ^1.4.2 - esutils: ^2.0.2 - fast-deep-equal: ^3.1.3 - file-entry-cache: ^6.0.1 - find-up: ^5.0.0 - glob-parent: ^6.0.2 - globals: ^13.19.0 - grapheme-splitter: ^1.0.4 - ignore: ^5.2.0 - import-fresh: ^3.0.0 - imurmurhash: ^0.1.4 - is-glob: ^4.0.0 - is-path-inside: ^3.0.3 - js-sdsl: ^4.1.4 - js-yaml: ^4.1.0 - json-stable-stringify-without-jsonify: ^1.0.1 - levn: ^0.4.1 - lodash.merge: ^4.6.2 - minimatch: ^3.1.2 - natural-compare: ^1.4.0 - optionator: ^0.9.1 - strip-ansi: ^6.0.1 - strip-json-comments: ^3.1.0 - text-table: ^0.2.0 - bin: - eslint: bin/eslint.js - checksum: e9a961fc3b3de5cff5a1cb2c92eeffaa7e155a715489e30b3e1e76f186bd1255e0481e09564f2094733c0b1dbd3453499fb72ae7c043c83156e11e6d965b2304 - languageName: node - linkType: hard - "eslint@npm:^8.37.0": version: 8.38.0 resolution: "eslint@npm:8.38.0" @@ -9404,7 +9162,7 @@ __metadata: languageName: node linkType: hard -"espree@npm:^9.5.0, espree@npm:^9.5.1": +"espree@npm:^9.5.1": version: 9.5.1 resolution: "espree@npm:9.5.1" dependencies: @@ -9591,8 +9349,8 @@ __metadata: react: ^18.2.0 react-dom: ^18.2.0 react-router-dom: ^6.9.0 - signia: 0.1.4 - signia-react: 0.1.4 + signia: "*" + signia-react: "*" vite: ^4.3.4 y-websocket: ^1.5.0 yjs: ^13.6.2 @@ -11696,16 +11454,6 @@ __metadata: languageName: node linkType: hard -"jest-canvas-mock@npm:^2.4.0": - version: 2.5.0 - resolution: "jest-canvas-mock@npm:2.5.0" - dependencies: - cssfontparser: ^1.2.1 - moo-color: ^1.0.2 - checksum: 093bc15577e8576e96170107f2b0a0c6a9193a3dd66f2dc5151b68d4c9af8ff8aacaa47c2d20bdf4a902b2f0f91884f54978d448257d0d9cf8cd36c695a023cd - languageName: node - linkType: hard - "jest-canvas-mock@npm:^2.5.1": version: 2.5.1 resolution: "jest-canvas-mock@npm:2.5.1" @@ -11864,22 +11612,6 @@ __metadata: languageName: node linkType: hard -"jest-environment-jsdom@npm:^28.1.2": - version: 28.1.3 - resolution: "jest-environment-jsdom@npm:28.1.3" - dependencies: - "@jest/environment": ^28.1.3 - "@jest/fake-timers": ^28.1.3 - "@jest/types": ^28.1.3 - "@types/jsdom": ^16.2.4 - "@types/node": "*" - jest-mock: ^28.1.3 - jest-util: ^28.1.3 - jsdom: ^19.0.0 - checksum: 32758f9b9a1fd04ec3ebaaa608d740a36b960d37d00bd3d4d83fdc4b527afc474c14f04fa860817e1fa22923e2dc3cd2b497db41af6a5d73e91327951612025e - languageName: node - linkType: hard - "jest-environment-jsdom@npm:^29.4.3": version: 29.5.0 resolution: "jest-environment-jsdom@npm:29.5.0" @@ -12309,46 +12041,6 @@ __metadata: languageName: node linkType: hard -"jsdom@npm:^19.0.0": - version: 19.0.0 - resolution: "jsdom@npm:19.0.0" - dependencies: - abab: ^2.0.5 - acorn: ^8.5.0 - acorn-globals: ^6.0.0 - cssom: ^0.5.0 - cssstyle: ^2.3.0 - data-urls: ^3.0.1 - decimal.js: ^10.3.1 - domexception: ^4.0.0 - escodegen: ^2.0.0 - form-data: ^4.0.0 - html-encoding-sniffer: ^3.0.0 - http-proxy-agent: ^5.0.0 - https-proxy-agent: ^5.0.0 - is-potential-custom-element-name: ^1.0.1 - nwsapi: ^2.2.0 - parse5: 6.0.1 - saxes: ^5.0.1 - symbol-tree: ^3.2.4 - tough-cookie: ^4.0.0 - w3c-hr-time: ^1.0.2 - w3c-xmlserializer: ^3.0.0 - webidl-conversions: ^7.0.0 - whatwg-encoding: ^2.0.0 - whatwg-mimetype: ^3.0.0 - whatwg-url: ^10.0.0 - ws: ^8.2.3 - xml-name-validator: ^4.0.0 - peerDependencies: - canvas: ^2.5.0 - peerDependenciesMeta: - canvas: - optional: true - checksum: 94b693bf4a394097dd96705550bb7b6cd3c8db3c5414e6e9c92a0995ed8b61067597da2f37fca6bed4b5a2f1ef33960ee759522156dccd0b306311988ea87cfb - languageName: node - linkType: hard - "jsdom@npm:^20.0.0": version: 20.0.3 resolution: "jsdom@npm:20.0.3" @@ -14640,7 +14332,7 @@ __metadata: languageName: node linkType: hard -"nwsapi@npm:^2.2.0, nwsapi@npm:^2.2.2": +"nwsapi@npm:^2.2.2": version: 2.2.4 resolution: "nwsapi@npm:2.2.4" checksum: a5eb9467158bdf255d27e9c4555e9ca02e4ba84ddce9b683856ed49de23eb1bb28ae3b8e791b7a93d156ad62b324a56f4d44cad827c2ca288c107ed6bdaff8a8 @@ -14690,7 +14382,7 @@ __metadata: languageName: node linkType: hard -"object.entries@npm:^1.1.5, object.entries@npm:^1.1.6": +"object.entries@npm:^1.1.6": version: 1.1.6 resolution: "object.entries@npm:1.1.6" dependencies: @@ -14701,7 +14393,7 @@ __metadata: languageName: node linkType: hard -"object.fromentries@npm:^2.0.5, object.fromentries@npm:^2.0.6": +"object.fromentries@npm:^2.0.6": version: 2.0.6 resolution: "object.fromentries@npm:2.0.6" dependencies: @@ -14712,7 +14404,7 @@ __metadata: languageName: node linkType: hard -"object.hasown@npm:^1.1.0, object.hasown@npm:^1.1.2": +"object.hasown@npm:^1.1.2": version: 1.1.2 resolution: "object.hasown@npm:1.1.2" dependencies: @@ -14722,7 +14414,7 @@ __metadata: languageName: node linkType: hard -"object.values@npm:^1.1.5, object.values@npm:^1.1.6": +"object.values@npm:^1.1.6": version: 1.1.6 resolution: "object.values@npm:1.1.6" dependencies: @@ -15072,13 +14764,6 @@ __metadata: languageName: node linkType: hard -"parse5@npm:6.0.1": - version: 6.0.1 - resolution: "parse5@npm:6.0.1" - checksum: 7d569a176c5460897f7c8f3377eff640d54132b9be51ae8a8fa4979af940830b2b0c296ce75e5bd8f4041520aadde13170dbdec44889975f906098ea0002f4bd - languageName: node - linkType: hard - "parse5@npm:^7.0.0, parse5@npm:^7.1.1": version: 7.1.2 resolution: "parse5@npm:7.1.2" @@ -15507,7 +15192,7 @@ __metadata: languageName: node linkType: hard -"prettier@npm:^2.8.6, prettier@npm:^2.8.7": +"prettier@npm:^2.8.7": version: 2.8.7 resolution: "prettier@npm:2.8.7" bin: @@ -15607,7 +15292,7 @@ __metadata: languageName: node linkType: hard -"prop-types@npm:^15.7.2, prop-types@npm:^15.8.1": +"prop-types@npm:^15.8.1": version: 15.8.1 resolution: "prop-types@npm:15.8.1" dependencies: @@ -15828,7 +15513,7 @@ __metadata: languageName: node linkType: hard -"react-dom@npm:18.2.0, react-dom@npm:^18.2.0": +"react-dom@npm:^18.2.0": version: 18.2.0 resolution: "react-dom@npm:18.2.0" dependencies: @@ -15969,7 +15654,7 @@ __metadata: languageName: node linkType: hard -"react@npm:18.2.0, react@npm:^18.2.0": +"react@npm:^18.2.0": version: 18.2.0 resolution: "react@npm:18.2.0" dependencies: @@ -16414,7 +16099,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^2.0.0-next.3, resolve@npm:^2.0.0-next.4": +"resolve@npm:^2.0.0-next.4": version: 2.0.0-next.4 resolution: "resolve@npm:2.0.0-next.4" dependencies: @@ -16459,7 +16144,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@^2.0.0-next.3#~builtin, resolve@patch:resolve@^2.0.0-next.4#~builtin": +"resolve@patch:resolve@^2.0.0-next.4#~builtin": version: 2.0.0-next.4 resolution: "resolve@patch:resolve@npm%3A2.0.0-next.4#~builtin::version=2.0.0-next.4&hash=c3c19d" dependencies: @@ -16637,15 +16322,6 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:^6.6.3": - version: 6.6.7 - resolution: "rxjs@npm:6.6.7" - dependencies: - tslib: ^1.9.0 - checksum: bc334edef1bb8bbf56590b0b25734ba0deaf8825b703256a93714308ea36dff8a11d25533671adf8e104e5e8f256aa6fdfe39b2e248cdbd7a5f90c260acbbd1b - languageName: node - linkType: hard - "rxjs@npm:^7.5.5, rxjs@npm:^7.8.0": version: 7.8.0 resolution: "rxjs@npm:7.8.0" @@ -16703,15 +16379,6 @@ __metadata: languageName: node linkType: hard -"saxes@npm:^5.0.1": - version: 5.0.1 - resolution: "saxes@npm:5.0.1" - dependencies: - xmlchars: ^2.2.0 - checksum: 5636b55cf15f7cf0baa73f2797bf992bdcf75d1b39d82c0aa4608555c774368f6ac321cb641fd5f3d3ceb87805122cd47540da6a7b5960fe0dbdb8f8c263f000 - languageName: node - linkType: hard - "saxes@npm:^6.0.0": version: 6.0.0 resolution: "saxes@npm:6.0.0" @@ -16904,7 +16571,7 @@ __metadata: languageName: node linkType: hard -"signia-react@npm:0.1.4": +"signia-react@npm:*": version: 0.1.4 resolution: "signia-react@npm:0.1.4" dependencies: @@ -16915,7 +16582,7 @@ __metadata: languageName: node linkType: hard -"signia@npm:0.1.4": +"signia@npm:*, signia@npm:0.1.4": version: 0.1.4 resolution: "signia@npm:0.1.4" checksum: 0daab872c3e335c74a464a3b592cfa0fc5e1e0b65e61eecdf4e0476830791543add8a661b9b33ce9e0f6c3f0f8093ef1965955a64ec510cfcaaf15066bd25e94 @@ -17141,13 +16808,6 @@ __metadata: languageName: node linkType: hard -"spawn-command@npm:^0.0.2-1": - version: 0.0.2 - resolution: "spawn-command@npm:0.0.2" - checksum: e35c5d28177b4d461d33c88cc11f6f3a5079e2b132c11e1746453bbb7a0c0b8a634f07541a2a234fa4758239d88203b758def509161b651e81958894c0b4b64b - languageName: node - linkType: hard - "sprintf-js@npm:~1.0.2": version: 1.0.3 resolution: "sprintf-js@npm:1.0.3" @@ -17262,7 +16922,7 @@ __metadata: languageName: node linkType: hard -"string.prototype.matchall@npm:^4.0.6, string.prototype.matchall@npm:^4.0.8": +"string.prototype.matchall@npm:^4.0.8": version: 4.0.8 resolution: "string.prototype.matchall@npm:4.0.8" dependencies: @@ -17456,7 +17116,7 @@ __metadata: languageName: node linkType: hard -"supports-color@npm:8.1.1, supports-color@npm:^8.0.0, supports-color@npm:^8.1.0, supports-color@npm:^8.1.1": +"supports-color@npm:8.1.1, supports-color@npm:^8.0.0, supports-color@npm:^8.1.1": version: 8.1.1 resolution: "supports-color@npm:8.1.1" dependencies: @@ -17672,8 +17332,8 @@ __metadata: "@types/fs-extra": ^11.0.1 "@types/node-fetch": ^2.6.2 "@types/vscode": ^1.75.1 - "@typescript-eslint/eslint-plugin": ^5.10.2 - "@typescript-eslint/parser": ^5.10.2 + "@typescript-eslint/eslint-plugin": ^5.57.0 + "@typescript-eslint/parser": ^5.57.0 assert: ^2.0.0 esbuild: ^0.18.3 fs-extra: ^11.1.0 @@ -17745,7 +17405,7 @@ __metadata: languageName: node linkType: hard -"tough-cookie@npm:^4.0.0, tough-cookie@npm:^4.1.2": +"tough-cookie@npm:^4.1.2": version: 4.1.2 resolution: "tough-cookie@npm:4.1.2" dependencies: @@ -17979,7 +17639,7 @@ __metadata: languageName: node linkType: hard -"tslib@npm:^1.14.1, tslib@npm:^1.8.1, tslib@npm:^1.9.0": +"tslib@npm:^1.14.1, tslib@npm:^1.8.1": version: 1.14.1 resolution: "tslib@npm:1.14.1" checksum: dbe628ef87f66691d5d2959b3e41b9ca0045c3ee3c7c7b906cc1e328b39f199bb1ad9e671c39025bd56122ac57dfbf7385a94843b1cc07c60a4db74795829acd @@ -18004,7 +17664,7 @@ __metadata: languageName: node linkType: hard -"tsx@npm:^3.12.2, tsx@npm:^3.12.6": +"tsx@npm:^3.12.6": version: 3.12.6 resolution: "tsx@npm:3.12.6" dependencies: @@ -18125,16 +17785,6 @@ __metadata: languageName: node linkType: hard -"typescript@npm:^4.5.2": - version: 4.9.5 - resolution: "typescript@npm:4.9.5" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: ee000bc26848147ad423b581bd250075662a354d84f0e06eb76d3b892328d8d4440b7487b5a83e851b12b255f55d71835b008a66cbf8f255a11e4400159237db - languageName: node - linkType: hard - "typescript@npm:^5.0.2, typescript@npm:~5.0.4": version: 5.0.4 resolution: "typescript@npm:5.0.4" @@ -18155,16 +17805,6 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@^4.5.2#~builtin": - version: 4.9.5 - resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=23ec76" - bin: - tsc: bin/tsc - tsserver: bin/tsserver - checksum: ab417a2f398380c90a6cf5a5f74badd17866adf57f1165617d6a551f059c3ba0a3e4da0d147b3ac5681db9ac76a303c5876394b13b3de75fdd5b1eaa06181c9d - languageName: node - linkType: hard - "typescript@patch:typescript@^5.0.2#~builtin, typescript@patch:typescript@~5.0.4#~builtin": version: 5.0.4 resolution: "typescript@patch:typescript@npm%3A5.0.4#~builtin::version=5.0.4&hash=85af82" @@ -18813,24 +18453,6 @@ __metadata: languageName: node linkType: hard -"w3c-hr-time@npm:^1.0.2": - version: 1.0.2 - resolution: "w3c-hr-time@npm:1.0.2" - dependencies: - browser-process-hrtime: ^1.0.0 - checksum: ec3c2dacbf8050d917bbf89537a101a08c2e333b4c19155f7d3bedde43529d4339db6b3d049d9610789cb915f9515f8be037e0c54c079e9d4735c50b37ed52b9 - languageName: node - linkType: hard - -"w3c-xmlserializer@npm:^3.0.0": - version: 3.0.0 - resolution: "w3c-xmlserializer@npm:3.0.0" - dependencies: - xml-name-validator: ^4.0.0 - checksum: 0af8589942eeb11c9fe29eb31a1a09f3d5dd136aea53a9848dfbabff79ac0dd26fe13eb54d330d5555fe27bb50b28dca0715e09f9cc2bfa7670ccc8b7f919ca2 - languageName: node - linkType: hard - "w3c-xmlserializer@npm:^4.0.0": version: 4.0.0 resolution: "w3c-xmlserializer@npm:4.0.0" @@ -18922,16 +18544,6 @@ __metadata: languageName: node linkType: hard -"whatwg-url@npm:^10.0.0": - version: 10.0.0 - resolution: "whatwg-url@npm:10.0.0" - dependencies: - tr46: ^3.0.0 - webidl-conversions: ^7.0.0 - checksum: a21ec309c5cc743fe9414509408bedf65eaf0fb5c17ac66baa08ef12fce16da4dd30ce90abefbd5a716408301c58a73666dabfd5042cf4242992eb98b954f861 - languageName: node - linkType: hard - "whatwg-url@npm:^11.0.0": version: 11.0.0 resolution: "whatwg-url@npm:11.0.0" @@ -19127,7 +18739,7 @@ __metadata: languageName: node linkType: hard -"ws@npm:^8.11.0, ws@npm:^8.2.3": +"ws@npm:^8.11.0": version: 8.13.0 resolution: "ws@npm:8.13.0" peerDependencies: @@ -19349,7 +18961,7 @@ __metadata: languageName: node linkType: hard -"yargs@npm:16.2.0, yargs@npm:^16.2.0": +"yargs@npm:16.2.0": version: 16.2.0 resolution: "yargs@npm:16.2.0" dependencies: diff --git a/scripts/package.json b/scripts/package.json index 472132d4c..314193851 100644 --- a/scripts/package.json +++ b/scripts/package.json @@ -29,7 +29,7 @@ "devDependencies": { "@auto-it/core": "^10.45.0", "@types/is-ci": "^3.0.0", - "@types/node": "^18.13.0", + "@types/node": "18.15.0", "@typescript-eslint/utils": "^5.59.0", "ast-types": "^0.14.2", "cross-fetch": "^3.1.5", @@ -43,7 +43,7 @@ "rimraf": "^4.4.0", "semver": "^7.3.8", "svgo": "^3.0.2", - "typescript": "^4.5.2" + "typescript": "^5.0.2" }, "scripts": { "lint": "yarn run -T tsx lint.ts"