Update dependencies (#1613)
This PR updates a few key dependencies. ### Change Type - [x] `dependencies` — Changes to package dependencies
This commit is contained in:
parent
99a46af4c8
commit
b6716a3750
18 changed files with 341 additions and 731 deletions
|
@ -6,4 +6,4 @@
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
"useTabs": true,
|
"useTabs": true,
|
||||||
"plugins": ["prettier-plugin-organize-imports"]
|
"plugins": ["prettier-plugin-organize-imports"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,12 +35,13 @@
|
||||||
"content": "lazy docs-content"
|
"content": "lazy docs-content"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@microsoft/api-extractor-model": "^7.27.3",
|
||||||
"@microsoft/tsdoc": "^0.14.2",
|
"@microsoft/tsdoc": "^0.14.2",
|
||||||
"@tldraw/utils": "workspace:*",
|
"@tldraw/utils": "workspace:*",
|
||||||
"@types/node": "18.15.0",
|
"@types/node": "18.15.0",
|
||||||
"@types/react": "^18.0.24",
|
"@types/react": "^18.0.24",
|
||||||
"@types/react-dom": "^18.0.6",
|
"@types/react-dom": "^18.0.6",
|
||||||
"eslint": "8.36.0",
|
"eslint": "^8.37.0",
|
||||||
"eslint-config-next": "13.2.4",
|
"eslint-config-next": "13.2.4",
|
||||||
"gray-matter": "^4.0.3",
|
"gray-matter": "^4.0.3",
|
||||||
"next": "13.2.4",
|
"next": "13.2.4",
|
||||||
|
@ -48,8 +49,8 @@
|
||||||
"next-remote-watch": "^2.0.0",
|
"next-remote-watch": "^2.0.0",
|
||||||
"next-themes": "^0.2.1",
|
"next-themes": "^0.2.1",
|
||||||
"prettier": "^2.8.7",
|
"prettier": "^2.8.7",
|
||||||
"react": "18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"rehype-autolink-headings": "^6.1.1",
|
"rehype-autolink-headings": "^6.1.1",
|
||||||
"rehype-highlight": "^6.0.0",
|
"rehype-highlight": "^6.0.0",
|
||||||
"rehype-slug": "^5.1.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."
|
"tsdoc comments), even though we don't use any of their code to run the docs site."
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/api-extractor-model": "^7.26.4",
|
|
||||||
"@tldraw/editor": "workspace:*",
|
"@tldraw/editor": "workspace:*",
|
||||||
"@tldraw/file-format": "workspace:*",
|
"@tldraw/file-format": "workspace:*",
|
||||||
"@tldraw/primitives": "workspace:*",
|
"@tldraw/primitives": "workspace:*",
|
||||||
|
|
|
@ -45,8 +45,8 @@
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-router-dom": "^6.9.0",
|
"react-router-dom": "^6.9.0",
|
||||||
"signia": "0.1.4",
|
"signia": "*",
|
||||||
"signia-react": "0.1.4",
|
"signia-react": "*",
|
||||||
"vite": "^4.3.4",
|
"vite": "^4.3.4",
|
||||||
"y-websocket": "^1.5.0",
|
"y-websocket": "^1.5.0",
|
||||||
"yjs": "^13.6.2"
|
"yjs": "^13.6.2"
|
||||||
|
|
|
@ -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.
|
Open a `.tldr` file from the file explorer or create a new `.tldr` file from the command palette.
|
||||||
|
|
||||||
## 3. Debugging
|
## 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.
|
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.
|
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:
|
To publish:
|
||||||
|
|
||||||
- Install `vsce` globally
|
- 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:
|
In the `apps/vscode/extension` folder:
|
||||||
|
|
||||||
- Run `yarn package`
|
- Run `yarn package`
|
||||||
- Run `yarn publish`
|
- Run `yarn publish`
|
||||||
|
|
||||||
|
@ -45,18 +47,20 @@ In the `apps/vscode/extension` folder:
|
||||||
|
|
||||||
The Visual Studio Code extension is made of two projects:
|
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.
|
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).
|
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.
|
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.
|
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.
|
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.
|
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)
|
![VS Code Extension](VS-Code-Extension-1.png)
|
||||||
|
|
||||||
|
|
||||||
#### References
|
#### References
|
||||||
|
|
||||||
- [VS Code Marketplace Manager](https://marketplace.visualstudio.com/manage/)
|
- [VS Code Marketplace Manager](https://marketplace.visualstudio.com/manage/)
|
||||||
|
|
|
@ -40,11 +40,11 @@
|
||||||
"@tldraw/ui": "workspace:*",
|
"@tldraw/ui": "workspace:*",
|
||||||
"@tldraw/utils": "workspace:*",
|
"@tldraw/utils": "workspace:*",
|
||||||
"@types/fs-extra": "^11.0.1",
|
"@types/fs-extra": "^11.0.1",
|
||||||
"@types/node": "^17.0.14",
|
"@types/node": "18.15.0",
|
||||||
"@types/react": "^18.0.24",
|
"@types/react": "^18.0.24",
|
||||||
"@types/react-dom": "^18.0.6",
|
"@types/react-dom": "^18.0.6",
|
||||||
"@types/react-router-dom": "^5.1.8",
|
"@types/react-router-dom": "^5.1.8",
|
||||||
"concurrently": "7.0.0",
|
"concurrently": "^8.1.0",
|
||||||
"create-serve": "1.0.1",
|
"create-serve": "1.0.1",
|
||||||
"dotenv": "^16.0.3",
|
"dotenv": "^16.0.3",
|
||||||
"esbuild": "^0.18.3",
|
"esbuild": "^0.18.3",
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
## 2.0.8
|
## 2.0.8
|
||||||
|
|
||||||
- New highlighter tool!
|
- New highlighter tool!
|
||||||
- You can now lock shapes.
|
- You can now lock shapes.
|
||||||
- Added vertical align setting to Note shapes.
|
- Added vertical align setting to Note shapes.
|
||||||
|
@ -7,7 +8,8 @@
|
||||||
- Improved translations.
|
- Improved translations.
|
||||||
- Fixed a problem where arrows might cause the extension to crash.
|
- Fixed a problem where arrows might cause the extension to crash.
|
||||||
|
|
||||||
## 2.0.7
|
## 2.0.7
|
||||||
|
|
||||||
- New laser tool!
|
- New laser tool!
|
||||||
- New checkbox shape!
|
- New checkbox shape!
|
||||||
- Add veritcal alignment options to Notes and Geo shapes.
|
- Add veritcal alignment options to Notes and Geo shapes.
|
||||||
|
@ -15,6 +17,7 @@
|
||||||
- Improve exporting and saving to svgs.
|
- Improve exporting and saving to svgs.
|
||||||
|
|
||||||
## 2.0.6
|
## 2.0.6
|
||||||
|
|
||||||
- Improved appearance of selection for single draw shapes.
|
- Improved appearance of selection for single draw shapes.
|
||||||
- Improve handling of pixel scale when pasting images.
|
- Improve handling of pixel scale when pasting images.
|
||||||
- Fixed a bug where pasted tabs wouldn't get converted into spaces.
|
- 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.
|
- 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.
|
- Re-doing a deletion of the current page now correctly navigates back to that page.
|
||||||
|
|
||||||
|
|
||||||
## 2.0.5
|
## 2.0.5
|
||||||
|
|
||||||
- Fixed another issue with undo / redo.
|
- Fixed another issue with undo / redo.
|
||||||
|
|
|
@ -136,8 +136,8 @@
|
||||||
"@types/fs-extra": "^11.0.1",
|
"@types/fs-extra": "^11.0.1",
|
||||||
"@types/node-fetch": "^2.6.2",
|
"@types/node-fetch": "^2.6.2",
|
||||||
"@types/vscode": "^1.75.1",
|
"@types/vscode": "^1.75.1",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
||||||
"@typescript-eslint/parser": "^5.10.2",
|
"@typescript-eslint/parser": "^5.57.0",
|
||||||
"assert": "^2.0.0",
|
"assert": "^2.0.0",
|
||||||
"esbuild": "^0.18.3",
|
"esbuild": "^0.18.3",
|
||||||
"fs-extra": "^11.1.0",
|
"fs-extra": "^11.1.0",
|
||||||
|
|
|
@ -8,8 +8,8 @@
|
||||||
"eslint-preset.js"
|
"eslint-preset.js"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.8.0",
|
||||||
"eslint-plugin-react": "7.28.0"
|
"eslint-plugin-react": "^7.32.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lazyrepo": "0.0.0-alpha.27"
|
"lazyrepo": "0.0.0-alpha.27"
|
||||||
|
|
|
@ -62,9 +62,10 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@babel/parser": "^7.22.5",
|
||||||
"@next/eslint-plugin-next": "^13.3.0",
|
"@next/eslint-plugin-next": "^13.3.0",
|
||||||
"@types/jest": "^28.1.2",
|
"@types/jest": "^28.1.2",
|
||||||
"@types/node": "18.7.3",
|
"@types/node": "18.15.0",
|
||||||
"@types/react": "^18.0.24",
|
"@types/react": "^18.0.24",
|
||||||
"@types/react-dom": "^18.0.6",
|
"@types/react-dom": "^18.0.6",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
||||||
|
@ -80,7 +81,7 @@
|
||||||
"husky": "^8.0.0",
|
"husky": "^8.0.0",
|
||||||
"jest": "^28.1.1",
|
"jest": "^28.1.1",
|
||||||
"lint-staged": ">=10",
|
"lint-staged": ">=10",
|
||||||
"prettier": "^2.8.6",
|
"prettier": "^2.8.7",
|
||||||
"prettier-plugin-organize-imports": "^3.2.2",
|
"prettier-plugin-organize-imports": "^3.2.2",
|
||||||
"typescript": "^5.0.2"
|
"typescript": "^5.0.2"
|
||||||
},
|
},
|
||||||
|
@ -93,7 +94,7 @@
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"lazyrepo": "0.0.0-alpha.27",
|
"lazyrepo": "0.0.0-alpha.27",
|
||||||
"rimraf": "^4.4.0",
|
"rimraf": "^4.4.0",
|
||||||
"tsx": "^3.12.2",
|
"tsx": "^3.12.6",
|
||||||
"vercel": "^28.16.15"
|
"vercel": "^28.16.15"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|
|
@ -3,230 +3,228 @@
|
||||||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export function getBundlerAssetUrls(opts?: AssetUrlOptions): {
|
export function getBundlerAssetUrls(opts?: AssetUrlOptions): {
|
||||||
readonly fonts: {
|
readonly fonts: {
|
||||||
readonly monospace: string;
|
readonly monospace: string
|
||||||
readonly sansSerif: string;
|
readonly sansSerif: string
|
||||||
readonly serif: string;
|
readonly serif: string
|
||||||
readonly draw: string;
|
readonly draw: string
|
||||||
};
|
}
|
||||||
readonly icons: {
|
readonly icons: {
|
||||||
readonly 'align-bottom-center': string;
|
readonly 'align-bottom-center': string
|
||||||
readonly 'align-bottom-left': string;
|
readonly 'align-bottom-left': string
|
||||||
readonly 'align-bottom-right': string;
|
readonly 'align-bottom-right': string
|
||||||
readonly 'align-bottom': string;
|
readonly 'align-bottom': string
|
||||||
readonly 'align-center-center': string;
|
readonly 'align-center-center': string
|
||||||
readonly 'align-center-horizontal': string;
|
readonly 'align-center-horizontal': string
|
||||||
readonly 'align-center-left': string;
|
readonly 'align-center-left': string
|
||||||
readonly 'align-center-right': string;
|
readonly 'align-center-right': string
|
||||||
readonly 'align-center-vertical': string;
|
readonly 'align-center-vertical': string
|
||||||
readonly 'align-left': string;
|
readonly 'align-left': string
|
||||||
readonly 'align-right': string;
|
readonly 'align-right': string
|
||||||
readonly 'align-top-center': string;
|
readonly 'align-top-center': string
|
||||||
readonly 'align-top-left': string;
|
readonly 'align-top-left': string
|
||||||
readonly 'align-top-right': string;
|
readonly 'align-top-right': string
|
||||||
readonly 'align-top': string;
|
readonly 'align-top': string
|
||||||
readonly 'arrow-left': string;
|
readonly 'arrow-left': string
|
||||||
readonly 'arrowhead-arrow': string;
|
readonly 'arrowhead-arrow': string
|
||||||
readonly 'arrowhead-bar': string;
|
readonly 'arrowhead-bar': string
|
||||||
readonly 'arrowhead-diamond': string;
|
readonly 'arrowhead-diamond': string
|
||||||
readonly 'arrowhead-dot': string;
|
readonly 'arrowhead-dot': string
|
||||||
readonly 'arrowhead-none': string;
|
readonly 'arrowhead-none': string
|
||||||
readonly 'arrowhead-square': string;
|
readonly 'arrowhead-square': string
|
||||||
readonly 'arrowhead-triangle-inverted': string;
|
readonly 'arrowhead-triangle-inverted': string
|
||||||
readonly 'arrowhead-triangle': string;
|
readonly 'arrowhead-triangle': string
|
||||||
readonly 'aspect-ratio': string;
|
readonly 'aspect-ratio': string
|
||||||
readonly avatar: string;
|
readonly avatar: string
|
||||||
readonly blob: string;
|
readonly blob: string
|
||||||
readonly 'bring-forward': string;
|
readonly 'bring-forward': string
|
||||||
readonly 'bring-to-front': string;
|
readonly 'bring-to-front': string
|
||||||
readonly check: string;
|
readonly check: string
|
||||||
readonly 'checkbox-checked': string;
|
readonly 'checkbox-checked': string
|
||||||
readonly 'checkbox-empty': string;
|
readonly 'checkbox-empty': string
|
||||||
readonly 'chevron-down': string;
|
readonly 'chevron-down': string
|
||||||
readonly 'chevron-left': string;
|
readonly 'chevron-left': string
|
||||||
readonly 'chevron-right': string;
|
readonly 'chevron-right': string
|
||||||
readonly 'chevron-up': string;
|
readonly 'chevron-up': string
|
||||||
readonly 'chevrons-ne': string;
|
readonly 'chevrons-ne': string
|
||||||
readonly 'chevrons-sw': string;
|
readonly 'chevrons-sw': string
|
||||||
readonly 'clipboard-copy': string;
|
readonly 'clipboard-copy': string
|
||||||
readonly code: string;
|
readonly code: string
|
||||||
readonly collab: string;
|
readonly collab: string
|
||||||
readonly color: string;
|
readonly color: string
|
||||||
readonly comment: string;
|
readonly comment: string
|
||||||
readonly 'cross-2': string;
|
readonly 'cross-2': string
|
||||||
readonly cross: string;
|
readonly cross: string
|
||||||
readonly 'dash-dashed': string;
|
readonly 'dash-dashed': string
|
||||||
readonly 'dash-dotted': string;
|
readonly 'dash-dotted': string
|
||||||
readonly 'dash-draw': string;
|
readonly 'dash-draw': string
|
||||||
readonly 'dash-solid': string;
|
readonly 'dash-solid': string
|
||||||
readonly discord: string;
|
readonly discord: string
|
||||||
readonly 'distribute-horizontal': string;
|
readonly 'distribute-horizontal': string
|
||||||
readonly 'distribute-vertical': string;
|
readonly 'distribute-vertical': string
|
||||||
readonly dot: string;
|
readonly dot: string
|
||||||
readonly 'dots-horizontal': string;
|
readonly 'dots-horizontal': string
|
||||||
readonly 'dots-vertical': string;
|
readonly 'dots-vertical': string
|
||||||
readonly 'drag-handle-dots': string;
|
readonly 'drag-handle-dots': string
|
||||||
readonly duplicate: string;
|
readonly duplicate: string
|
||||||
readonly edit: string;
|
readonly edit: string
|
||||||
readonly 'external-link': string;
|
readonly 'external-link': string
|
||||||
readonly file: string;
|
readonly file: string
|
||||||
readonly 'fill-none': string;
|
readonly 'fill-none': string
|
||||||
readonly 'fill-pattern': string;
|
readonly 'fill-pattern': string
|
||||||
readonly 'fill-semi': string;
|
readonly 'fill-semi': string
|
||||||
readonly 'fill-solid': string;
|
readonly 'fill-solid': string
|
||||||
readonly follow: string;
|
readonly follow: string
|
||||||
readonly following: string;
|
readonly following: string
|
||||||
readonly 'font-draw': string;
|
readonly 'font-draw': string
|
||||||
readonly 'font-mono': string;
|
readonly 'font-mono': string
|
||||||
readonly 'font-sans': string;
|
readonly 'font-sans': string
|
||||||
readonly 'font-serif': string;
|
readonly 'font-serif': string
|
||||||
readonly 'geo-arrow-down': string;
|
readonly 'geo-arrow-down': string
|
||||||
readonly 'geo-arrow-left': string;
|
readonly 'geo-arrow-left': string
|
||||||
readonly 'geo-arrow-right': string;
|
readonly 'geo-arrow-right': string
|
||||||
readonly 'geo-arrow-up': string;
|
readonly 'geo-arrow-up': string
|
||||||
readonly 'geo-check-box': string;
|
readonly 'geo-check-box': string
|
||||||
readonly 'geo-diamond': string;
|
readonly 'geo-diamond': string
|
||||||
readonly 'geo-ellipse': string;
|
readonly 'geo-ellipse': string
|
||||||
readonly 'geo-hexagon': string;
|
readonly 'geo-hexagon': string
|
||||||
readonly 'geo-octagon': string;
|
readonly 'geo-octagon': string
|
||||||
readonly 'geo-oval': string;
|
readonly 'geo-oval': string
|
||||||
readonly 'geo-pentagon': string;
|
readonly 'geo-pentagon': string
|
||||||
readonly 'geo-rectangle': string;
|
readonly 'geo-rectangle': string
|
||||||
readonly 'geo-rhombus-2': string;
|
readonly 'geo-rhombus-2': string
|
||||||
readonly 'geo-rhombus': string;
|
readonly 'geo-rhombus': string
|
||||||
readonly 'geo-star': string;
|
readonly 'geo-star': string
|
||||||
readonly 'geo-trapezoid': string;
|
readonly 'geo-trapezoid': string
|
||||||
readonly 'geo-triangle': string;
|
readonly 'geo-triangle': string
|
||||||
readonly 'geo-x-box': string;
|
readonly 'geo-x-box': string
|
||||||
readonly github: string;
|
readonly github: string
|
||||||
readonly group: string;
|
readonly group: string
|
||||||
readonly hidden: string;
|
readonly hidden: string
|
||||||
readonly image: string;
|
readonly image: string
|
||||||
readonly 'info-circle': string;
|
readonly 'info-circle': string
|
||||||
readonly leading: string;
|
readonly leading: string
|
||||||
readonly link: string;
|
readonly link: string
|
||||||
readonly 'lock-small': string;
|
readonly 'lock-small': string
|
||||||
readonly lock: string;
|
readonly lock: string
|
||||||
readonly menu: string;
|
readonly menu: string
|
||||||
readonly minus: string;
|
readonly minus: string
|
||||||
readonly mixed: string;
|
readonly mixed: string
|
||||||
readonly pack: string;
|
readonly pack: string
|
||||||
readonly page: string;
|
readonly page: string
|
||||||
readonly plus: string;
|
readonly plus: string
|
||||||
readonly 'question-mark-circle': string;
|
readonly 'question-mark-circle': string
|
||||||
readonly 'question-mark': string;
|
readonly 'question-mark': string
|
||||||
readonly redo: string;
|
readonly redo: string
|
||||||
readonly 'reset-zoom': string;
|
readonly 'reset-zoom': string
|
||||||
readonly 'rotate-ccw': string;
|
readonly 'rotate-ccw': string
|
||||||
readonly 'rotate-cw': string;
|
readonly 'rotate-cw': string
|
||||||
readonly ruler: string;
|
readonly ruler: string
|
||||||
readonly search: string;
|
readonly search: string
|
||||||
readonly 'send-backward': string;
|
readonly 'send-backward': string
|
||||||
readonly 'send-to-back': string;
|
readonly 'send-to-back': string
|
||||||
readonly 'settings-horizontal': string;
|
readonly 'settings-horizontal': string
|
||||||
readonly 'settings-vertical-1': string;
|
readonly 'settings-vertical-1': string
|
||||||
readonly 'settings-vertical': string;
|
readonly 'settings-vertical': string
|
||||||
readonly 'share-1': string;
|
readonly 'share-1': string
|
||||||
readonly 'share-2': string;
|
readonly 'share-2': string
|
||||||
readonly 'size-extra-large': string;
|
readonly 'size-extra-large': string
|
||||||
readonly 'size-large': string;
|
readonly 'size-large': string
|
||||||
readonly 'size-medium': string;
|
readonly 'size-medium': string
|
||||||
readonly 'size-small': string;
|
readonly 'size-small': string
|
||||||
readonly 'spline-cubic': string;
|
readonly 'spline-cubic': string
|
||||||
readonly 'spline-line': string;
|
readonly 'spline-line': string
|
||||||
readonly 'stack-horizontal': string;
|
readonly 'stack-horizontal': string
|
||||||
readonly 'stack-vertical': string;
|
readonly 'stack-vertical': string
|
||||||
readonly 'stretch-horizontal': string;
|
readonly 'stretch-horizontal': string
|
||||||
readonly 'stretch-vertical': string;
|
readonly 'stretch-vertical': string
|
||||||
readonly 'text-align-center': string;
|
readonly 'text-align-center': string
|
||||||
readonly 'text-align-justify': string;
|
readonly 'text-align-justify': string
|
||||||
readonly 'text-align-left': string;
|
readonly 'text-align-left': string
|
||||||
readonly 'text-align-right': string;
|
readonly 'text-align-right': string
|
||||||
readonly 'tool-arrow': string;
|
readonly 'tool-arrow': string
|
||||||
readonly 'tool-embed': string;
|
readonly 'tool-embed': string
|
||||||
readonly 'tool-eraser': string;
|
readonly 'tool-eraser': string
|
||||||
readonly 'tool-frame': string;
|
readonly 'tool-frame': string
|
||||||
readonly 'tool-hand': string;
|
readonly 'tool-hand': string
|
||||||
readonly 'tool-highlighter': string;
|
readonly 'tool-highlighter': string
|
||||||
readonly 'tool-line': string;
|
readonly 'tool-line': string
|
||||||
readonly 'tool-media': string;
|
readonly 'tool-media': string
|
||||||
readonly 'tool-note': string;
|
readonly 'tool-note': string
|
||||||
readonly 'tool-pencil': string;
|
readonly 'tool-pencil': string
|
||||||
readonly 'tool-pointer': string;
|
readonly 'tool-pointer': string
|
||||||
readonly 'tool-text': string;
|
readonly 'tool-text': string
|
||||||
readonly trash: string;
|
readonly trash: string
|
||||||
readonly 'triangle-down': string;
|
readonly 'triangle-down': string
|
||||||
readonly 'triangle-up': string;
|
readonly 'triangle-up': string
|
||||||
readonly twitter: string;
|
readonly twitter: string
|
||||||
readonly undo: string;
|
readonly undo: string
|
||||||
readonly ungroup: string;
|
readonly ungroup: string
|
||||||
readonly 'unlock-small': string;
|
readonly 'unlock-small': string
|
||||||
readonly unlock: string;
|
readonly unlock: string
|
||||||
readonly visible: string;
|
readonly visible: string
|
||||||
readonly 'warning-triangle': string;
|
readonly 'warning-triangle': string
|
||||||
readonly 'zoom-in': string;
|
readonly 'zoom-in': string
|
||||||
readonly 'zoom-out': string;
|
readonly 'zoom-out': string
|
||||||
};
|
}
|
||||||
readonly translations: {
|
readonly translations: {
|
||||||
readonly ar: string;
|
readonly ar: string
|
||||||
readonly ca: string;
|
readonly ca: string
|
||||||
readonly da: string;
|
readonly da: string
|
||||||
readonly de: string;
|
readonly de: string
|
||||||
readonly en: string;
|
readonly en: string
|
||||||
readonly es: string;
|
readonly es: string
|
||||||
readonly fa: string;
|
readonly fa: string
|
||||||
readonly fi: string;
|
readonly fi: string
|
||||||
readonly fr: string;
|
readonly fr: string
|
||||||
readonly gl: string;
|
readonly gl: string
|
||||||
readonly he: string;
|
readonly he: string
|
||||||
readonly 'hi-in': string;
|
readonly 'hi-in': string
|
||||||
readonly hu: string;
|
readonly hu: string
|
||||||
readonly it: string;
|
readonly it: string
|
||||||
readonly ja: string;
|
readonly ja: string
|
||||||
readonly 'ko-kr': string;
|
readonly 'ko-kr': string
|
||||||
readonly ku: string;
|
readonly ku: string
|
||||||
readonly languages: string;
|
readonly languages: string
|
||||||
readonly main: string;
|
readonly main: string
|
||||||
readonly my: string;
|
readonly my: string
|
||||||
readonly ne: string;
|
readonly ne: string
|
||||||
readonly no: string;
|
readonly no: string
|
||||||
readonly pl: string;
|
readonly pl: string
|
||||||
readonly 'pt-br': string;
|
readonly 'pt-br': string
|
||||||
readonly 'pt-pt': string;
|
readonly 'pt-pt': string
|
||||||
readonly ro: string;
|
readonly ro: string
|
||||||
readonly ru: string;
|
readonly ru: string
|
||||||
readonly sv: string;
|
readonly sv: string
|
||||||
readonly te: string;
|
readonly te: string
|
||||||
readonly th: string;
|
readonly th: string
|
||||||
readonly tr: string;
|
readonly tr: string
|
||||||
readonly uk: string;
|
readonly uk: string
|
||||||
readonly vi: string;
|
readonly vi: string
|
||||||
readonly 'zh-cn': string;
|
readonly 'zh-cn': string
|
||||||
readonly 'zh-tw': string;
|
readonly 'zh-tw': string
|
||||||
};
|
}
|
||||||
readonly embedIcons: {
|
readonly embedIcons: {
|
||||||
readonly codepen: string;
|
readonly codepen: string
|
||||||
readonly codesandbox: string;
|
readonly codesandbox: string
|
||||||
readonly excalidraw: string;
|
readonly excalidraw: string
|
||||||
readonly felt: string;
|
readonly felt: string
|
||||||
readonly figma: string;
|
readonly figma: string
|
||||||
readonly github_gist: string;
|
readonly github_gist: string
|
||||||
readonly google_calendar: string;
|
readonly google_calendar: string
|
||||||
readonly google_maps: string;
|
readonly google_maps: string
|
||||||
readonly google_slides: string;
|
readonly google_slides: string
|
||||||
readonly observable: string;
|
readonly observable: string
|
||||||
readonly replit: string;
|
readonly replit: string
|
||||||
readonly scratch: string;
|
readonly scratch: string
|
||||||
readonly spotify: string;
|
readonly spotify: string
|
||||||
readonly tldraw: string;
|
readonly tldraw: string
|
||||||
readonly vimeo: string;
|
readonly vimeo: string
|
||||||
readonly youtube: string;
|
readonly youtube: string
|
||||||
};
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
// (No @packageDocumentation comment for this package)
|
// (No @packageDocumentation comment for this package)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -65,8 +65,8 @@
|
||||||
"nanoid": "4.0.2"
|
"nanoid": "4.0.2"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^18",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18",
|
"react-dom": "^18.2.0",
|
||||||
"signia": "*",
|
"signia": "*",
|
||||||
"signia-react": "*"
|
"signia-react": "*"
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,7 +3,5 @@
|
||||||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
|
||||||
// (No @packageDocumentation comment for this package)
|
// (No @packageDocumentation comment for this package)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
|
|
||||||
|
/// <reference types="react" />
|
||||||
|
|
||||||
import { TldrawEditorProps } from '@tldraw/editor';
|
import { TldrawEditorProps } from '@tldraw/editor';
|
||||||
import { TldrawUiProps } from '@tldraw/ui';
|
import { TldrawUiProps } from '@tldraw/ui';
|
||||||
|
|
||||||
|
|
|
@ -49,16 +49,16 @@
|
||||||
"@tldraw/ui": "workspace:*"
|
"@tldraw/ui": "workspace:*"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^18",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18"
|
"react-dom": "^18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@peculiar/webcrypto": "^1.4.0",
|
"@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",
|
"@testing-library/react": "^14.0.0",
|
||||||
"chokidar-cli": "^3.0.0",
|
"chokidar-cli": "^3.0.0",
|
||||||
"jest-canvas-mock": "^2.4.0",
|
"jest-canvas-mock": "^2.5.1",
|
||||||
"jest-environment-jsdom": "^28.1.2",
|
"jest-environment-jsdom": "^29.4.3",
|
||||||
"lazyrepo": "0.0.0-alpha.27",
|
"lazyrepo": "0.0.0-alpha.27",
|
||||||
"resize-observer-polyfill": "^1.5.1"
|
"resize-observer-polyfill": "^1.5.1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -211,13 +211,7 @@ function Title({ className, children }: {
|
||||||
}): JSX.Element;
|
}): JSX.Element;
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export const TldrawUi: React_2.NamedExoticComponent<{
|
export const TldrawUi: React_2.NamedExoticComponent<TldrawUiProps>;
|
||||||
children?: ReactNode;
|
|
||||||
hideUi?: boolean | undefined;
|
|
||||||
shareZone?: ReactNode;
|
|
||||||
topZone?: ReactNode;
|
|
||||||
renderDebugMenuItems?: (() => React_2.ReactNode) | undefined;
|
|
||||||
} & TldrawUiContextProviderProps>;
|
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
export function TldrawUiContextProvider({ overrides, assetUrls, onUiEvent, children, }: TldrawUiContextProviderProps): JSX.Element;
|
export function TldrawUiContextProvider({ overrides, assetUrls, onUiEvent, children, }: TldrawUiContextProviderProps): JSX.Element;
|
||||||
|
|
|
@ -63,18 +63,18 @@
|
||||||
"lz-string": "^1.4.4"
|
"lz-string": "^1.4.4"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^18",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18",
|
"react-dom": "^18.2.0",
|
||||||
"signia": "*",
|
"signia": "*",
|
||||||
"signia-react": "*"
|
"signia-react": "*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@peculiar/webcrypto": "^1.4.0",
|
"@peculiar/webcrypto": "^1.4.0",
|
||||||
"@testing-library/jest-dom": "^5.14.1",
|
"@testing-library/jest-dom": "^5.16.5",
|
||||||
"@testing-library/react": "^12.0.0",
|
"@testing-library/react": "^14.0.0",
|
||||||
"@types/lz-string": "^1.3.34",
|
"@types/lz-string": "^1.3.34",
|
||||||
"jest-canvas-mock": "^2.4.0",
|
"jest-canvas-mock": "^2.5.1",
|
||||||
"jest-environment-jsdom": "^28.1.2",
|
"jest-environment-jsdom": "^29.4.3",
|
||||||
"lazyrepo": "0.0.0-alpha.27",
|
"lazyrepo": "0.0.0-alpha.27",
|
||||||
"resize-observer-polyfill": "^1.5.1"
|
"resize-observer-polyfill": "^1.5.1"
|
||||||
},
|
},
|
||||||
|
|
536
public-yarn.lock
536
public-yarn.lock
File diff suppressed because it is too large
Load diff
|
@ -29,7 +29,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@auto-it/core": "^10.45.0",
|
"@auto-it/core": "^10.45.0",
|
||||||
"@types/is-ci": "^3.0.0",
|
"@types/is-ci": "^3.0.0",
|
||||||
"@types/node": "^18.13.0",
|
"@types/node": "18.15.0",
|
||||||
"@typescript-eslint/utils": "^5.59.0",
|
"@typescript-eslint/utils": "^5.59.0",
|
||||||
"ast-types": "^0.14.2",
|
"ast-types": "^0.14.2",
|
||||||
"cross-fetch": "^3.1.5",
|
"cross-fetch": "^3.1.5",
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
"rimraf": "^4.4.0",
|
"rimraf": "^4.4.0",
|
||||||
"semver": "^7.3.8",
|
"semver": "^7.3.8",
|
||||||
"svgo": "^3.0.2",
|
"svgo": "^3.0.2",
|
||||||
"typescript": "^4.5.2"
|
"typescript": "^5.0.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "yarn run -T tsx lint.ts"
|
"lint": "yarn run -T tsx lint.ts"
|
||||||
|
|
Loading…
Reference in a new issue