UNPKG

@tldraw/editor

Version:

tldraw infinite canvas SDK (editor).

117 lines 3.18 kB
{ "name": "@tldraw/editor", "description": "tldraw infinite canvas SDK (editor).", "version": "3.15.0", "author": { "name": "tldraw Inc.", "email": "hello@tldraw.com" }, "homepage": "https://tldraw.dev", "license": "SEE LICENSE IN LICENSE.md", "repository": { "type": "git", "url": "https://github.com/tldraw/tldraw" }, "bugs": { "url": "https://github.com/tldraw/tldraw/issues" }, "keywords": [ "tldraw", "sdk", "drawing", "app", "development", "whiteboard", "canvas", "infinite" ], "main": "dist-cjs/index.js", "style": "./editor.css", "files": [ "editor.css", "dist-esm", "dist-cjs", "src" ], "scripts": { "test-ci": "lazy inherit", "test": "yarn run -T jest", "benchmark": "yarn run -T tsx ./internal/scripts/benchmark.ts", "test-coverage": "lazy inherit", "build": "yarn run -T tsx ../../internal/scripts/build-package.ts", "build-api": "yarn run -T tsx ../../internal/scripts/build-api.ts", "prepack": "yarn run -T tsx ../../internal/scripts/prepack.ts", "postpack": "../../internal/scripts/postpack.sh", "pack-tarball": "yarn pack", "lint": "yarn run -T tsx ../../internal/scripts/lint.ts" }, "dependencies": { "@tiptap/core": "^2.9.1", "@tiptap/pm": "^2.9.1", "@tiptap/react": "^2.9.1", "@tldraw/state": "3.15.0", "@tldraw/state-react": "3.15.0", "@tldraw/store": "3.15.0", "@tldraw/tlschema": "3.15.0", "@tldraw/utils": "3.15.0", "@tldraw/validate": "3.15.0", "@types/core-js": "^2.5.8", "@use-gesture/react": "^10.3.1", "classnames": "^2.5.1", "core-js": "^3.40.0", "eventemitter3": "^4.0.7", "idb": "^7.1.1", "is-plain-object": "^5.0.0" }, "peerDependencies": { "react": "^18.2.0 || ^19.0.0", "react-dom": "^18.2.0 || ^19.0.0" }, "devDependencies": { "@peculiar/webcrypto": "^1.5.0", "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^15.0.7", "@types/benchmark": "^2.1.5", "@types/react": "^18.3.18", "@types/wicg-file-system-access": "^2020.9.8", "benchmark": "^2.1.4", "fake-indexeddb": "^4.0.2", "jest-canvas-mock": "^2.5.2", "jest-environment-jsdom": "^29.7.0", "lazyrepo": "0.0.0-alpha.27", "react": "^18.3.1", "react-dom": "^18.3.1", "resize-observer-polyfill": "^1.5.1" }, "jest": { "preset": "../../internal/config/jest/node/jest-preset.js", "testEnvironment": "../../../packages/utils/patchedJestJsDom.js", "fakeTimers": { "enableGlobally": true }, "testPathIgnorePatterns": [ "^.+\\.*.css$" ], "moduleNameMapper": { "^~(.*)": "<rootDir>/src/$1", "\\.(css|less|scss|sass)$": "identity-obj-proxy" }, "setupFiles": [ "raf/polyfill", "jest-canvas-mock", "<rootDir>/setupTests.js" ], "setupFilesAfterEnv": [ "../../internal/config/setupJest.ts" ] }, "module": "dist-esm/index.mjs", "source": "src/index.ts", "exports": { ".": { "import": "./dist-esm/index.mjs", "require": "./dist-cjs/index.js" }, "./editor.css": "./editor.css" } }