diff --git a/apps/examples/.gitignore b/apps/examples/.gitignore new file mode 100644 index 000000000..e985853ed --- /dev/null +++ b/apps/examples/.gitignore @@ -0,0 +1 @@ +.vercel diff --git a/apps/examples/src/index.tsx b/apps/examples/src/index.tsx index 7b410a0d0..3e37345e3 100644 --- a/apps/examples/src/index.tsx +++ b/apps/examples/src/index.tsx @@ -55,127 +55,127 @@ type Example = { export const allExamples: Example[] = [ { title: 'Basic (development)', - path: '/develop', + path: 'develop', element: , }, { title: 'Collaboration (with Yjs)', - path: '/yjs', + path: 'yjs', element: , }, { title: 'Editor API', - path: '/api', + path: 'api', element: , }, { title: 'Multiple editors', - path: '/multiple', + path: 'multiple', element: , }, { title: 'Readonly Example', - path: '/readonly', + path: 'readonly', element: , }, { title: 'Scroll example', - path: '/scroll', + path: 'scroll', element: , }, { title: 'Custom shapes / tools', - path: '/custom-config', + path: 'custom-config', element: , }, { title: 'Sublibraries', - path: '/exploded', + path: 'exploded', element: , }, { title: 'Error boundary', - path: '/error-boundary', + path: 'error-boundary', element: , }, { title: 'Custom UI', - path: '/custom-ui', + path: 'custom-ui', element: , }, { title: 'Hide UI', - path: '/hide-ui', + path: 'hide-ui', element: , }, { title: 'UI components', - path: '/custom-components', + path: 'custom-components', element: , }, { title: 'UI events', - path: '/ui-events', + path: 'ui-events', element: , }, { title: 'Canvas events', - path: '/canvas-events', + path: 'canvas-events', element: , }, { title: 'Store events', - path: '/store-events', + path: 'store-events', element: , }, { title: 'User presence', - path: '/user-presence', + path: 'user-presence', element: , }, { title: 'UI zones', - path: '/zones', + path: 'zones', element: , }, { title: 'Persistence', - path: '/persistence', + path: 'persistence', element: , }, { title: 'Snapshots', - path: '/snapshots', + path: 'snapshots', element: , }, { title: 'Custom styles', - path: '/custom-styles', + path: 'custom-styles', element: , }, { title: 'Shape meta property', - path: '/shape-meta', + path: 'shape-meta', element: , }, { title: 'Only editor', - path: '/only-editor', + path: 'only-editor', element: , }, { title: 'Asset props', - path: '/asset-props', + path: 'asset-props', element: , }, { title: 'External content sources', - path: '/external-content-sources', + path: 'external-content-sources', element: , }, // not listed { - path: '/end-to-end', + path: 'end-to-end', element: , }, ] @@ -201,12 +201,13 @@ function App() { } const router = createBrowserRouter([ - ...allExamples, { path: '/', element: , }, + ...allExamples, ]) + const rootElement = document.getElementById('root') const root = createRoot(rootElement!) diff --git a/packages/tldraw/README.md b/packages/tldraw/README.md index 84f97c605..94b194a06 100644 --- a/packages/tldraw/README.md +++ b/packages/tldraw/README.md @@ -1,24 +1,26 @@
- - Signia + + tldraw
# @tldraw/tldraw -This is the alpha version of [tldraw](https://beta.tldraw.com). It is very much a work in progress. +This is the pre-release version of [tldraw](https://github.com/tldraw/tldraw). + +See the pre-release docs at [canary.tldraw.dev](https://canary.tldraw.com). ## Installation -Install the `@tldraw/tldraw` package using `@alpha` for the latest alpha release. +Install the `@tldraw/tldraw` package using `@canary` for the latest canary release. (Or `@alpha` for the latest alpha release.) ```bash -yarn add @tldraw/tldraw@alpha +yarn add @tldraw/tldraw@canary # or -npm install @tldraw/tldraw@alpha +npm install @tldraw/tldraw@canary # or -pnpm i @tldraw/tldraw@alpha +pnpm i @tldraw/tldraw@canary ``` Then start the local development server. @@ -37,15 +39,14 @@ An extremely minimal usage (without our UI) might look like this: ```tsx import { Tldraw } from '@tldraw/tldraw' -import '@tldraw/tldraw/styles-editor.css' -import '@tldraw/tldraw/styles-ui.css' +import '@tldraw/tldraw/tldraw.css' export default function () { return } ``` -See the [examples repo](https://github.com/tldraw/tldraw-examples) for more examples. +See the [examples folder](https://github.com/tldraw/tldraw/tree/main/apps/examples) for more examples. ## License diff --git a/apps/examples/vercel.json b/vercel.json similarity index 87% rename from apps/examples/vercel.json rename to vercel.json index 7c92c7028..df3d2ede4 100644 --- a/apps/examples/vercel.json +++ b/vercel.json @@ -13,7 +13,7 @@ "rewrites": [ { "source": "/(.*)", - "destination": "/index.html" + "destination": "/" } ] }