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": {
|
|
|
|
"name": "tldraw GB Ltd.",
|
|
|
|
"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-05-22 08:21:54 +00:00
|
|
|
"build-docs": "lazy build --filter='{,bublic/}apps/docs'",
|
2023-05-02 12:25:26 +00:00
|
|
|
"dev": "lazy run dev --filter='{,bublic/}apps/examples' --filter='{,bublic/}packages/tldraw'",
|
2023-05-22 08:21:54 +00:00
|
|
|
"dev-docs": "lazy run dev --filter='{,bublic/}apps/docs'",
|
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-05-02 15:12:34 +00:00
|
|
|
"format": "prettier --write \"**/*.{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}": [
|
|
|
|
"prettier --write"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"dependencies": {
|
|
|
|
"@next/eslint-plugin-next": "^13.3.0",
|
|
|
|
"@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",
|
|
|
|
"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",
|
|
|
|
"husky": "^8.0.0",
|
|
|
|
"jest": "^28.1.1",
|
|
|
|
"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",
|
|
|
|
"typescript": "^5.0.2"
|
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-06-16 10:33:47 +00:00
|
|
|
"@microsoft/api-extractor": "^7.35.4",
|
derived presence state (#1204)
This PR adds
- A new `TLInstancePresence` record type, to collect info about the
presence state in a particular instance of the editor. This will
eventually be used to sync presence data instead of sending
instance-only state across the wire.
- **Record Scopes**
`RecordType` now has a `scope` property which can be one of three
things:
- `document`: the record belongs to the document and should be synced
and persisted freely. Currently: `TLDocument`, `TLPage`, `TLShape`, and
`TLAsset`
- `instance`: the record belongs to a single instance of the store and
should not be synced at all. It should not be persisted directly in most
cases, but rather compiled into a kind of 'instance configuration' to
store alongside the local document data so that when reopening the
associated document it can remember some of the previous instance state.
Currently: `TLInstance`, `TLInstancePageState`, `TLCamera`, `TLUser`,
`TLUserDocument`, `TLUserPresence`
- `presence`: the record belongs to a single instance of the store and
should not be persisted, but may be synced using the special presence
sync protocol. Currently just `TLInstancePresence`
This sets us up for the following changes, which are gonna be pretty
high-impact in terms of integrating tldraw into existing systems:
- Removing `instanceId` as a config option. Each instance gets a
randomly generated ID.
- We'd replace it with an `instanceConfig` option that has stuff like
selectedIds, camera positions, and so on. Then it's up to library users
to get and reinstate the instance config at persistence boundaries.
- Removing `userId` as config option, and removing the `TLUser` type
altogether.
- We might need to revisit when doing auth-enabled features like locking
shapes, but I suspect that will be separate.
2023-04-27 18:03:19 +00:00
|
|
|
"@swc/core": "^1.3.55",
|
|
|
|
"@swc/jest": "^0.2.26",
|
2023-04-25 11:01:25 +00:00
|
|
|
"@types/glob": "^8.1.0",
|
|
|
|
"fs-extra": "^11.1.0",
|
|
|
|
"json5": "^2.2.3",
|
2023-06-05 17:32:32 +00:00
|
|
|
"lazyrepo": "0.0.0-alpha.27",
|
2023-04-25 11:01:25 +00:00
|
|
|
"rimraf": "^4.4.0",
|
2023-06-19 09:49:44 +00:00
|
|
|
"tsx": "^3.12.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"
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|
|
|
|
}
|