2023-04-25 11:01:25 +00:00
|
|
|
{
|
|
|
|
"name": "@tldraw/monorepo",
|
|
|
|
"description": "A tiny little drawing app (monorepo).",
|
|
|
|
"version": "0.0.0",
|
|
|
|
"private": true,
|
|
|
|
"author": {
|
2023-12-19 10:41:01 +00:00
|
|
|
"name": "tldraw Inc.",
|
2023-04-25 11:01:25 +00:00
|
|
|
"email": "hello@tldraw.com"
|
|
|
|
},
|
|
|
|
"homepage": "https://tldraw.dev",
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2023-05-12 16:02:32 +00:00
|
|
|
"url": "https://github.com/tldraw/tldraw"
|
2023-04-25 11:01:25 +00:00
|
|
|
},
|
|
|
|
"bugs": {
|
|
|
|
"url": "https://github.com/tldraw/tldraw/issues"
|
|
|
|
},
|
|
|
|
"keywords": [
|
|
|
|
"tldraw",
|
|
|
|
"drawing",
|
|
|
|
"app",
|
|
|
|
"development",
|
|
|
|
"whiteboard",
|
|
|
|
"canvas",
|
|
|
|
"infinite"
|
|
|
|
],
|
|
|
|
"workspaces": [
|
|
|
|
"apps/*",
|
|
|
|
"packages/*",
|
|
|
|
"apps/vscode/*",
|
2023-05-09 20:21:45 +00:00
|
|
|
"e2e",
|
2023-04-25 11:01:25 +00:00
|
|
|
"config",
|
|
|
|
"scripts"
|
|
|
|
],
|
|
|
|
"scripts": {
|
|
|
|
"clean": "scripts/clean.sh",
|
2023-05-02 13:26:57 +00:00
|
|
|
"postinstall": "husky install && yarn refresh-assets",
|
2023-04-25 11:01:25 +00:00
|
|
|
"refresh-assets": "lazy refresh-assets",
|
|
|
|
"build": "lazy build",
|
2023-12-27 17:17:18 +00:00
|
|
|
"dev": "LAZYREPO_PRETTY_OUTPUT=0 lazy run dev --filter='{,bublic/}apps/examples' --filter='{,bublic/}packages/tldraw'",
|
2023-05-02 12:25:26 +00:00
|
|
|
"dev-vscode": "code ./apps/vscode/extension && lazy run dev --filter='{,bublic/}apps/vscode/{extension,editor}'",
|
|
|
|
"build-types": "lazy inherit",
|
|
|
|
"build-api": "lazy build-api",
|
|
|
|
"build-package": "lazy build-package",
|
2023-04-25 11:01:25 +00:00
|
|
|
"lint": "lazy lint",
|
2023-11-14 09:06:52 +00:00
|
|
|
"format": "prettier --write --cache \"**/*.{ts,tsx,js,jsx,json}\"",
|
2023-04-25 11:01:25 +00:00
|
|
|
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
|
|
|
|
"check-scripts": "tsx scripts/check-scripts.ts",
|
2023-05-02 12:25:26 +00:00
|
|
|
"api-check": "lazy api-check",
|
2023-05-12 15:25:14 +00:00
|
|
|
"test": "lazy test",
|
2023-05-30 14:28:56 +00:00
|
|
|
"e2e": "lazy e2e --filter='{,bublic/}apps/examples'"
|
2023-04-25 11:01:25 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
|
|
|
"npm": ">=7.0.0"
|
|
|
|
},
|
|
|
|
"packageManager": "yarn@3.5.0",
|
|
|
|
"lint-staged": {
|
|
|
|
"*.{js,jsx,ts,tsx,json}": [
|
2023-11-14 09:06:52 +00:00
|
|
|
"prettier --write --cache"
|
2023-04-25 11:01:25 +00:00
|
|
|
]
|
|
|
|
},
|
2023-06-24 08:22:42 +00:00
|
|
|
"devDependencies": {
|
|
|
|
"@microsoft/api-extractor": "^7.35.4",
|
2023-04-25 11:01:25 +00:00
|
|
|
"@next/eslint-plugin-next": "^13.3.0",
|
2023-06-24 08:22:42 +00:00
|
|
|
"@swc/core": "^1.3.55",
|
|
|
|
"@swc/jest": "^0.2.26",
|
|
|
|
"@types/glob": "^8.1.0",
|
2023-04-25 11:01:25 +00:00
|
|
|
"@types/jest": "^28.1.2",
|
2023-06-19 09:49:44 +00:00
|
|
|
"@types/node": "18.7.3",
|
2023-04-25 11:01:25 +00:00
|
|
|
"@types/react": "^18.0.24",
|
|
|
|
"@types/react-dom": "^18.0.6",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^5.57.0",
|
|
|
|
"@typescript-eslint/parser": "^5.57.0",
|
2023-06-05 16:13:26 +00:00
|
|
|
"auto": "^10.46.0",
|
2023-04-25 11:01:25 +00:00
|
|
|
"eslint": "^8.37.0",
|
|
|
|
"eslint-config-prettier": "^8.8.0",
|
2023-11-16 15:34:56 +00:00
|
|
|
"eslint-plugin-deprecation": "^2.0.0",
|
2023-04-25 11:01:25 +00:00
|
|
|
"eslint-plugin-import": "^2.27.5",
|
|
|
|
"eslint-plugin-local": "^1.0.0",
|
|
|
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
|
|
"eslint-plugin-react": "^7.32.2",
|
|
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
2023-06-24 08:22:42 +00:00
|
|
|
"fs-extra": "^11.1.0",
|
2023-04-25 11:01:25 +00:00
|
|
|
"husky": "^8.0.0",
|
|
|
|
"jest": "^28.1.1",
|
2023-06-24 08:22:42 +00:00
|
|
|
"json5": "^2.2.3",
|
|
|
|
"lazyrepo": "0.0.0-alpha.27",
|
2023-04-25 11:01:25 +00:00
|
|
|
"lint-staged": ">=10",
|
2023-06-19 09:49:44 +00:00
|
|
|
"prettier": "^2.8.6",
|
2023-04-25 11:01:25 +00:00
|
|
|
"prettier-plugin-organize-imports": "^3.2.2",
|
|
|
|
"rimraf": "^4.4.0",
|
2023-07-18 10:19:28 +00:00
|
|
|
"tsx": "^3.12.7",
|
2023-06-24 08:22:42 +00:00
|
|
|
"typescript": "^5.0.2",
|
2023-05-30 15:23:28 +00:00
|
|
|
"vercel": "^28.16.15"
|
2023-04-25 11:01:25 +00:00
|
|
|
},
|
|
|
|
"resolutions": {
|
2023-06-16 10:33:47 +00:00
|
|
|
"@microsoft/api-extractor@^7.35.4": "patch:@microsoft/api-extractor@npm%3A7.35.4#./.yarn/patches/@microsoft-api-extractor-npm-7.35.4-5f4f0357b4.patch"
|
tldraw zero - package shuffle (#1710)
This PR moves code between our packages so that:
- @tldraw/editor is a “core” library with the engine and canvas but no
shapes, tools, or other things
- @tldraw/tldraw contains everything particular to the experience we’ve
built for tldraw
At first look, this might seem like a step away from customization and
configuration, however I believe it greatly increases the configuration
potential of the @tldraw/editor while also providing a more accurate
reflection of what configuration options actually exist for
@tldraw/tldraw.
## Library changes
@tldraw/editor re-exports its dependencies and @tldraw/tldraw re-exports
@tldraw/editor.
- users of @tldraw/editor WITHOUT @tldraw/tldraw should almost always
only import things from @tldraw/editor.
- users of @tldraw/tldraw should almost always only import things from
@tldraw/tldraw.
- @tldraw/polyfills is merged into @tldraw/editor
- @tldraw/indices is merged into @tldraw/editor
- @tldraw/primitives is merged mostly into @tldraw/editor, partially
into @tldraw/tldraw
- @tldraw/file-format is merged into @tldraw/tldraw
- @tldraw/ui is merged into @tldraw/tldraw
Many (many) utils and other code is moved from the editor to tldraw. For
example, embeds now are entirely an feature of @tldraw/tldraw. The only
big chunk of code left in core is related to arrow handling.
## API Changes
The editor can now be used without tldraw's assets. We load them in
@tldraw/tldraw instead, so feel free to use whatever fonts or images or
whatever that you like with the editor.
All tools and shapes (except for the `Group` shape) are moved to
@tldraw/tldraw. This includes the `select` tool.
You should use the editor with at least one tool, however, so you now
also need to send in an `initialState` prop to the Editor /
<TldrawEditor> component indicating which state the editor should begin
in.
The `components` prop now also accepts `SelectionForeground`.
The complex selection component that we use for tldraw is moved to
@tldraw/tldraw. The default component is quite basic but can easily be
replaced via the `components` prop. We pass down our tldraw-flavored
SelectionFg via `components`.
Likewise with the `Scribble` component: the `DefaultScribble` no longer
uses our freehand tech and is a simple path instead. We pass down the
tldraw-flavored scribble via `components`.
The `ExternalContentManager` (`Editor.externalContentManager`) is
removed and replaced with a mapping of types to handlers.
- Register new content handlers with
`Editor.registerExternalContentHandler`.
- Register new asset creation handlers (for files and URLs) with
`Editor.registerExternalAssetHandler`
### Change Type
- [x] `major` — Breaking change
### Test Plan
- [x] Unit Tests
- [x] End to end tests
### Release Notes
- [@tldraw/editor] lots, wip
- [@tldraw/ui] gone, merged to tldraw/tldraw
- [@tldraw/polyfills] gone, merged to tldraw/editor
- [@tldraw/primitives] gone, merged to tldraw/editor / tldraw/tldraw
- [@tldraw/indices] gone, merged to tldraw/editor
- [@tldraw/file-format] gone, merged to tldraw/tldraw
---------
Co-authored-by: alex <alex@dytry.ch>
2023-07-17 21:22:34 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"svgo": "^3.0.2"
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
}
|