tldraw/apps/docs
Mitja Bezenšek bacb307bad
Asset improvements (#1557)
This PR does the following:
- Add `selfHosted.js`, which is a great option for users that wish to
self host the assets. Works well for both self hosting from the public
folder or via a CDN.
- Updates the docs for assets. We now have a dedicated page for assets
where all the options are more clearly explained. I also removed the
assets explanation from the main docs as the unpkg option should work
out of the box and setting up the assets is no longer necessary.
- Cleaned up the `refresh-assets` script. We now use common `types.d.ts`
file to define our types. All the other options then reuse them.
- Pulled out the `formatAssetUrl` into it's own file. It's now static an
no longer generated.
- `urls.d.ts`, `import.d.ts`, and newly added `selfhosted.d.ts` are now
also no longer generated as we can import the types from `types.d.ts`.
- You can now pass a subset of `assetUrls` to `<Tldraw />` and it will
override the default option with the passed in overrides. This makes it
easy to only customizes certain assets (only change the draw font as an
example).

### Change Type

- [x] `patch` — Bug Fix
2023-06-09 11:43:01 +00:00
..
components [docs] editor API (#1328) 2023-05-07 19:10:59 +01:00
content Asset improvements (#1557) 2023-06-09 11:43:01 +00:00
pages Add contributor license agreement. (#1556) 2023-06-08 12:45:44 +00:00
public [docs] editor API (#1328) 2023-05-07 19:10:59 +01:00
scripts replace console.log with nicelog (#1496) 2023-06-01 18:01:49 +00:00
styles [feature] add laser pointer (#1412) 2023-05-19 11:09:13 +00:00
types transfer-out: transfer out 2023-04-25 12:01:25 +01:00
utils transfer-out: transfer out 2023-04-25 12:01:25 +01:00
.eslintrc.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
.gitignore transfer-out: transfer out 2023-04-25 12:01:25 +01:00
CHANGELOG.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
content.d.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00
LICENSE readmes 2023-05-04 13:47:56 +01:00
next.config.js transfer-out: transfer out 2023-04-25 12:01:25 +01:00
package.json update lazyrepo 2023-06-05 18:32:32 +01:00
README.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
tsconfig.content.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
tsconfig.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00

tldraw-docs

tldraw