Update CHANGELOG.md [skip ci]
This commit is contained in:
parent
07296286ca
commit
176c17cbb7
23 changed files with 1698 additions and 14 deletions
648
CHANGELOG.md
648
CHANGELOG.md
|
@ -1,3 +1,651 @@
|
|||
# v2.2.0 (Tue Jun 11 2024)
|
||||
|
||||
### Release Notes
|
||||
|
||||
#### Fix 'insert media' undo operation ([#3910](https://github.com/tldraw/tldraw/pull/3910))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Cropping undo/redo UX ([#3891](https://github.com/tldraw/tldraw/pull/3891))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Bindings tests ([#3800](https://github.com/tldraw/tldraw/pull/3800))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Fix Content-Security-Policy browser warnings ([#3906](https://github.com/tldraw/tldraw/pull/3906))
|
||||
|
||||
- Fix Content-Security-Policy warnings
|
||||
|
||||
#### bookmark: fix up double request and rework extractor ([#3856](https://github.com/tldraw/tldraw/pull/3856))
|
||||
|
||||
- Bookmarks: fix up double request and rework extractor code.
|
||||
|
||||
#### Open share menu when navigating from create new shared project button ([#3898](https://github.com/tldraw/tldraw/pull/3898))
|
||||
|
||||
- Open share menu when navigating from the create new shared project button.
|
||||
|
||||
#### Add option for max points per draw shape ([#3900](https://github.com/tldraw/tldraw/pull/3900))
|
||||
|
||||
- SDK: Add option for controlling max length of draw shapes
|
||||
|
||||
#### Bindings onBeforeShapeIsolate? ([#3871](https://github.com/tldraw/tldraw/pull/3871))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Add option to navigate to new project from file menu ([#3876](https://github.com/tldraw/tldraw/pull/3876))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### [DX] sensible defaults for createTLStore ([#3886](https://github.com/tldraw/tldraw/pull/3886))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Editor.blur method ([#3875](https://github.com/tldraw/tldraw/pull/3875))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### security: don't send referrer paths for images and bookmarks ([#3881](https://github.com/tldraw/tldraw/pull/3881))
|
||||
|
||||
- Security: fix referrer being sent for bookmarks and images.
|
||||
|
||||
#### Prevent stale shape data in render ([#3882](https://github.com/tldraw/tldraw/pull/3882))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Fix pressure ([#3877](https://github.com/tldraw/tldraw/pull/3877))
|
||||
|
||||
- Fixes pen pressure.
|
||||
|
||||
#### Fix drag distance ([#3873](https://github.com/tldraw/tldraw/pull/3873))
|
||||
|
||||
- Fixed a bug where the minimum distance for a drag was wrong when zoomed in or out.
|
||||
|
||||
#### editor: register timeouts/intervals/rafs for disposal ([#3852](https://github.com/tldraw/tldraw/pull/3852))
|
||||
|
||||
- Editor: add registry of timeouts/intervals/rafs
|
||||
|
||||
#### Taha/more constraints tests ([#3863](https://github.com/tldraw/tldraw/pull/3863))
|
||||
|
||||
- Adds more tests for the camera constraints API
|
||||
|
||||
#### Snapshots pit of success ([#3811](https://github.com/tldraw/tldraw/pull/3811))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### [bugfix] Preserve redo stack when selection changes ([#3862](https://github.com/tldraw/tldraw/pull/3862))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Add `select` option to `Editor.groupShapes` and `Editor.ungroupShapes` ([#3690](https://github.com/tldraw/tldraw/pull/3690))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### share: make share/fork/copy actions clearer ([#3846](https://github.com/tldraw/tldraw/pull/3846))
|
||||
|
||||
- Share menu: make sharing/fork/copy actions clearer
|
||||
|
||||
#### cloudflare: dont cache no-cache headers ([#3849](https://github.com/tldraw/tldraw/pull/3849))
|
||||
|
||||
- Cloudflare: don't cache no-cache headers.
|
||||
|
||||
#### text labels: address some rendering inconsistencies with the content vs. textarea ([#3830](https://github.com/tldraw/tldraw/pull/3830))
|
||||
|
||||
- Text labels: fix some inconsistencies with rendering.
|
||||
|
||||
#### Camera Constraints Tests ([#3844](https://github.com/tldraw/tldraw/pull/3844))
|
||||
|
||||
- Adds tests for the camera constraints api
|
||||
|
||||
#### Move constants to options prop ([#3799](https://github.com/tldraw/tldraw/pull/3799))
|
||||
|
||||
You can now override many options which were previously hard-coded constants. Pass an `options` prop into the tldraw component to change the maximum number of pages, grid steps, or other previously hard-coded values. See `TldrawOptions` for more
|
||||
|
||||
#### toolbar: disable items that dont work when not in select mode ([#3819](https://github.com/tldraw/tldraw/pull/3819))
|
||||
|
||||
- Toolbar: disable menu items that don't work when not in select mode.
|
||||
|
||||
#### Fix cropped image export ([#3837](https://github.com/tldraw/tldraw/pull/3837))
|
||||
|
||||
- Fixed cropped images not exporting properly
|
||||
|
||||
#### [fix] setCamera animates to constrained viewport ([#3828](https://github.com/tldraw/tldraw/pull/3828))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Add heart geo shape ([#3787](https://github.com/tldraw/tldraw/pull/3787))
|
||||
|
||||
- Adds a heart shape to the geo shape set.
|
||||
|
||||
#### rework canBind callback ([#3797](https://github.com/tldraw/tldraw/pull/3797))
|
||||
|
||||
#### Breaking changes
|
||||
The `canBind` flag now accepts an options object instead of just the shape in question. If you're relying on its arguments, you need to change from `canBind(shape) {}` to `canBind({shape}) {}`.
|
||||
|
||||
#### Add unit tests for the camera ([#3814](https://github.com/tldraw/tldraw/pull/3814))
|
||||
|
||||
- Adds unit tests for the camera
|
||||
|
||||
#### fix coarse pointer detection ([#3795](https://github.com/tldraw/tldraw/pull/3795))
|
||||
|
||||
- Fix a bug where coarse-pointer mode would get incorrectly detected on some touch devices
|
||||
|
||||
#### Update validation.ts ([#3324](https://github.com/tldraw/tldraw/pull/3324))
|
||||
|
||||
- Update example for Union type
|
||||
|
||||
---
|
||||
|
||||
I believe this type was changed and `literal` is what it should be now.
|
||||
|
||||
#### Tighten up zoom to fit padding ([#3798](https://github.com/tldraw/tldraw/pull/3798))
|
||||
|
||||
- Reduce padding when zooming to fit.
|
||||
|
||||
#### toolbar: rework overflow css logic ([#3779](https://github.com/tldraw/tldraw/pull/3779))
|
||||
|
||||
- Toolbar: cleanup overflow css rules.
|
||||
|
||||
#### Fix spacebar/mmb panning bug. ([#3791](https://github.com/tldraw/tldraw/pull/3791))
|
||||
|
||||
- Fix bug with panning
|
||||
|
||||
#### [bugfix] Cleanup input state after middle-click-to-pan ([#3792](https://github.com/tldraw/tldraw/pull/3792))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Move InFrontOfTheCanvas ([#3782](https://github.com/tldraw/tldraw/pull/3782))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### google meet: add hardware whiteboard integration ([#3765](https://github.com/tldraw/tldraw/pull/3765))
|
||||
|
||||
- Google Meet: add hardware whiteboard integration
|
||||
|
||||
#### fix flipping for arrows ([#3780](https://github.com/tldraw/tldraw/pull/3780))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### [bugfix?] End interactions before switching page ([#3771](https://github.com/tldraw/tldraw/pull/3771))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### add missing spline icons ([#3778](https://github.com/tldraw/tldraw/pull/3778))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### delete old todo comment ([#3777](https://github.com/tldraw/tldraw/pull/3777))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Prevent pressing escape when editing document name to bubble up to the editor ([#3725](https://github.com/tldraw/tldraw/pull/3725))
|
||||
|
||||
- Prevent escaping out of editing the document name to switch the active tool to select tool.
|
||||
|
||||
#### Prevent wobble during viewport following ([#3695](https://github.com/tldraw/tldraw/pull/3695))
|
||||
|
||||
- Fixes a bug that caused the cursor & shapes to wiggle around when following someone else's viewport
|
||||
|
||||
#### E2E camera tests ([#3747](https://github.com/tldraw/tldraw/pull/3747))
|
||||
|
||||
- Adds E2E tests for the camera
|
||||
|
||||
#### Bump max shapes to 4000 ([#3716](https://github.com/tldraw/tldraw/pull/3716))
|
||||
|
||||
- Increase maximum number of shapes per page from 2000 to 4000.
|
||||
|
||||
#### export DefaultNavigationPanel ([#3772](https://github.com/tldraw/tldraw/pull/3772))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Allow DefaultErrorFallback to be used independently ([#3769](https://github.com/tldraw/tldraw/pull/3769))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### focus: rework and untangle existing focus management logic in the sdk ([#3718](https://github.com/tldraw/tldraw/pull/3718))
|
||||
|
||||
- Focus: rework and untangle existing focus management logic in the SDK
|
||||
|
||||
#### [bindings] beforeUnbind/afterUnbind to replace beforeDelete/afterDelete ([#3761](https://github.com/tldraw/tldraw/pull/3761))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### No defaults for contexts ([#3750](https://github.com/tldraw/tldraw/pull/3750))
|
||||
|
||||
`useEditor` and other context-based hooks will now throw an error when used out-of-context, instead of returning a fake value.
|
||||
|
||||
#### Store-level "operation end" event ([#3748](https://github.com/tldraw/tldraw/pull/3748))
|
||||
|
||||
#### Breaking changes
|
||||
`editor.registerBatchCompleteHandler` has been replaced with `editor.registerOperationCompleteHandler`
|
||||
|
||||
#### Fix readonly fetching happening too often. ([#3732](https://github.com/tldraw/tldraw/pull/3732))
|
||||
|
||||
- Fix an issue where readonly slug was being fetched every time the url changed (panning, zooming,...).
|
||||
|
||||
#### assets: rework mime-type detection to be consistent/centralized; add support for webp/webm, apng, avif ([#3730](https://github.com/tldraw/tldraw/pull/3730))
|
||||
|
||||
- Images: unify list of acceptable types and expand to include webp, webm, apng, avif
|
||||
|
||||
#### Fix imports in Astro ([#3742](https://github.com/tldraw/tldraw/pull/3742))
|
||||
|
||||
- Fix bug effecting imports in Astro.
|
||||
|
||||
#### Move arrow helpers from editor to tldraw ([#3721](https://github.com/tldraw/tldraw/pull/3721))
|
||||
|
||||
#### Breaking changes
|
||||
- `editor.getArrowInfo(shape)` has been replaced with `getArrowInfo(editor, shape)`
|
||||
- `editor.getArrowsBoundTo(shape)` has been removed. Instead, use `editor.getBindingsToShape(shape, 'arrow')` and follow the `fromId` of each binding to the corresponding arrow shape
|
||||
- These types have moved from `@tldraw/editor` to `tldraw`:
|
||||
- `TLArcInfo`
|
||||
- `TLArrowInfo`
|
||||
- `TLArrowPoint`
|
||||
- `WeakMapCache` has been removed
|
||||
|
||||
#### fix link ([#3726](https://github.com/tldraw/tldraw/pull/3726))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
Just a small link fix for the docs.
|
||||
|
||||
#### Bindings ([#3326](https://github.com/tldraw/tldraw/pull/3326))
|
||||
|
||||
#### Breaking changes
|
||||
- The `start` and `end` properties on `TLArrowShape` no longer have `type: point | binding`. Instead, they're always a point, which may be out of date if a binding exists. To check for & retrieve arrow bindings, use `getArrowBindings(editor, shape)` instead.
|
||||
- `getArrowTerminalsInArrowSpace` must be passed a `TLArrowBindings` as a third argument: `getArrowTerminalsInArrowSpace(editor, shape, getArrowBindings(editor, shape))`
|
||||
- The following types have been renamed:
|
||||
- `ShapeProps` -> `RecordProps`
|
||||
- `ShapePropsType` -> `RecordPropsType`
|
||||
- `TLShapePropsMigrations` -> `TLPropsMigrations`
|
||||
- `SchemaShapeInfo` -> `SchemaPropsInfo`
|
||||
|
||||
#### Move storing of snapshots to R2 ([#3693](https://github.com/tldraw/tldraw/pull/3693))
|
||||
|
||||
- Move storing of snapshots to cloudflare R2.
|
||||
|
||||
#### Add asset pruning when importing files ([#3689](https://github.com/tldraw/tldraw/pull/3689))
|
||||
|
||||
- Prunes unused assets when loading a tldraw document.
|
||||
|
||||
#### Fix background color for patterned shapes. ([#3708](https://github.com/tldraw/tldraw/pull/3708))
|
||||
|
||||
- Fixes an issue with copy pasting shapes as svg and png not correctly working for patterned shapes.
|
||||
|
||||
#### Camera options ([#3282](https://github.com/tldraw/tldraw/pull/3282))
|
||||
|
||||
- SDK: Adds camera options.
|
||||
|
||||
#### Prevent duplicate from creating any shapes if we reach max allowed shapes ([#3692](https://github.com/tldraw/tldraw/pull/3692))
|
||||
|
||||
- Prevent duplicating shapes if we would go over the maximum shape limit. It's now an all or nothing operation, where as before some shapes would get created.
|
||||
|
||||
#### textfields: fix RTL layout for SVG exports ([#3680](https://github.com/tldraw/tldraw/pull/3680))
|
||||
|
||||
- [Add a brief release note for your PR here.](textfields: fix RTL layout for SVG exports)
|
||||
|
||||
#### Prevent unnecessary fetching of readonly slugs ([#3663](https://github.com/tldraw/tldraw/pull/3663))
|
||||
|
||||
- Prevent unnecessary fetching of readonly slugs.
|
||||
|
||||
#### delete stray error screen css import ([#3683](https://github.com/tldraw/tldraw/pull/3683))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Fix viewport following ([#3681](https://github.com/tldraw/tldraw/pull/3681))
|
||||
|
||||
- Fixes an issue where viewport following was not working
|
||||
|
||||
#### Fix className.includes bug ([#3672](https://github.com/tldraw/tldraw/pull/3672))
|
||||
|
||||
- Fixes a rare bug effecting text shapes on mobile.
|
||||
|
||||
#### Fix link in collaboration documentation ([#3662](https://github.com/tldraw/tldraw/pull/3662))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### [signia] perf thing again ([#3645](https://github.com/tldraw/tldraw/pull/3645))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### VS Code 2.0.32 ([#3664](https://github.com/tldraw/tldraw/pull/3664))
|
||||
|
||||
- VS Code release.
|
||||
|
||||
#### Fix textbox direction when it contains both RTL and LTR languages ([#3188](https://github.com/tldraw/tldraw/pull/3188))
|
||||
|
||||
Fix textbox direction when it contains both RTL and LTR languages
|
||||
|
||||
#### embed: prevent nested tldraw ([#3659](https://github.com/tldraw/tldraw/pull/3659))
|
||||
|
||||
- Embeds: Fix infinite nesting of tldraw rooms.
|
||||
|
||||
#### fix android long press changing cursor to non-coarse ([#3656](https://github.com/tldraw/tldraw/pull/3656))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### [bugfix] don't crash if a bound shape doesn't exist ([#3653](https://github.com/tldraw/tldraw/pull/3653))
|
||||
|
||||
- fixes an edge case in multiplayer rooms where the room can crash if an arrow's bound shape is deleted by a peer
|
||||
|
||||
#### embed: allow embeds like YouTube to link back to its site ([#3609](https://github.com/tldraw/tldraw/pull/3609))
|
||||
|
||||
- Embeds: fix being able to click on links that go back to the embed's site (e.g. YouTube)
|
||||
|
||||
#### Improve pressure-detection logic in drawing ([#3639](https://github.com/tldraw/tldraw/pull/3639))
|
||||
|
||||
- Improves handling of mouse-type devices that support pressure, e.g. wacom tablets. They now use the same freehand options as true pen-type inputs.
|
||||
|
||||
#### copy/paste: fix pasting not working from Edit menu ([#3623](https://github.com/tldraw/tldraw/pull/3623))
|
||||
|
||||
- Clipboard: fix pasting from the Edit menu.
|
||||
|
||||
#### textfields: for unfilled geo shapes fix edit->edit ([#3577](https://github.com/tldraw/tldraw/pull/3577))
|
||||
|
||||
- Text labels: fix edit→edit not working as expected when unfilled geo shapes are on 'top' of other shapes.
|
||||
|
||||
#### Allow embedding tldraw in iframes ([#3640](https://github.com/tldraw/tldraw/pull/3640))
|
||||
|
||||
- Allow embedding tldraw inside iframes again.
|
||||
|
||||
#### Separate text-align property for shapes ([#3627](https://github.com/tldraw/tldraw/pull/3627))
|
||||
|
||||
- Separates the text align property for text shapes and labels.
|
||||
|
||||
#### Fix text resizing with alt key ([#3632](https://github.com/tldraw/tldraw/pull/3632))
|
||||
|
||||
- Fixed a bug with resizing text shapes from the left and right while holding alt.
|
||||
|
||||
#### Don't hover locked shapes ([#3575](https://github.com/tldraw/tldraw/pull/3575))
|
||||
|
||||
- Fixed a bug with locked shapes being hoverable.
|
||||
|
||||
#### Add desmos graph embed type ([#3608](https://github.com/tldraw/tldraw/pull/3608))
|
||||
|
||||
- (feature) add desmos embed
|
||||
|
||||
#### Make coarse pointer check dynamic ([#3572](https://github.com/tldraw/tldraw/pull/3572))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### examples: add filter input ([#3625](https://github.com/tldraw/tldraw/pull/3625))
|
||||
|
||||
- Examples: add a filter box.
|
||||
|
||||
#### stickies: make pit/pack distance the same ([#3606](https://github.com/tldraw/tldraw/pull/3606))
|
||||
|
||||
- Shapes: tweak default gap value to be consistent with sticky note gaps.
|
||||
|
||||
#### Fix an issue with the minimap ([#3617](https://github.com/tldraw/tldraw/pull/3617))
|
||||
|
||||
- Fixes clicking on the minimap when we clicked just slightly outside of the current viewport.
|
||||
|
||||
#### Fix an issue with minimap. ([#3621](https://github.com/tldraw/tldraw/pull/3621))
|
||||
|
||||
- Fixes an issue with the minimap bugging out after you change the window's height.
|
||||
|
||||
#### Bring back `/r` ([#3615](https://github.com/tldraw/tldraw/pull/3615))
|
||||
|
||||
- Brings back `/r` route for creating new rooms.
|
||||
|
||||
#### Expose migrations, validators, and versions from tlschema ([#3613](https://github.com/tldraw/tldraw/pull/3613))
|
||||
|
||||
Previously, we weren't exporting migrations & validators for our default shapes. This meant that it wasn't possible to make your own tlschema with both our default shapes and some of your own (e.g. for custom multiplayer). This fixes that by exposing all the migrations, validators, and versions from tlschema, plus `defaultShapeSchemas` which can be passed directly to `createTLSchema`
|
||||
|
||||
#### Readonly / room creation omnibus ([#3192](https://github.com/tldraw/tldraw/pull/3192))
|
||||
|
||||
1. This adds new functionality for readonly rooms:
|
||||
- We have a new route `/ro` for newly created readonly rooms. These rooms no longer use the scrambling logic to create readonly slugs. Instead we now use KV storage from cloudflare to track the mapping for slugs -> readonly slug and readonly slug -> slug.
|
||||
- The old route `/v` is preserved, so that the old room still work as they did before.
|
||||
- For old rooms we will keep on generating the old readonly slugs, but for new rooms we'll start using the new logic.
|
||||
2. We no longer prevent embedding of tldraw inside iframes.
|
||||
3. We do prevent generating new rooms from inside the iframes though. `/r`, `/new`, `/r/non-existing-id` should not allow creation of new rooms inside iframes. Only `/new` still works when not inside iframes.
|
||||
4. Forking a project from inside an iframe now opens it on tldraw.com
|
||||
5. Slight copy change on the sharing menu. We no longer have a toggle between readonly and non-readonly links.
|
||||
6. `editor` and `app` are no longer exposed on the window object for readonly rooms. Prevents users from using the `updateInstanceState` to escape readonly rooms.
|
||||
|
||||
#### fix migration exports ([#3586](https://github.com/tldraw/tldraw/pull/3586))
|
||||
|
||||
- Expose `createShapePropsMigrationIds`, `defaultEditorAssetUrls`, `PORTRAIT_BREAKPOINT`, `useDefaultColorTheme`, & `getPerfectDashProps`
|
||||
|
||||
---
|
||||
|
||||
#### 🐛 Bug Fix
|
||||
|
||||
- build: disable flaky edit->edit focus test for now [#3803](https://github.com/tldraw/tldraw/pull/3803) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- `@tldraw/assets`, `@tldraw/editor`, `@tldraw/tlschema`
|
||||
- Lokalise: Translations update [#3649](https://github.com/tldraw/tldraw/pull/3649) ([@TodePond](https://github.com/TodePond))
|
||||
|
||||
#### 🏎 Performance
|
||||
|
||||
- `@tldraw/editor`, `tldraw`
|
||||
- Incremental bindings index [#3685](https://github.com/tldraw/tldraw/pull/3685) ([@ds300](https://github.com/ds300))
|
||||
|
||||
#### 📚 SDK Changes
|
||||
|
||||
- touchscreen: allow meet.google.com origin [#3805](https://github.com/tldraw/tldraw/pull/3805) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- touchscreen: just create a new room [#3802](https://github.com/tldraw/tldraw/pull/3802) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- touchscreen: wrong url argh [#3790](https://github.com/tldraw/tldraw/pull/3790) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- touchscreen: just add a fallback, figure out env later [#3789](https://github.com/tldraw/tldraw/pull/3789) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- touchscreen: fix env var name [#3788](https://github.com/tldraw/tldraw/pull/3788) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- touchscreen: whoops, fix up script tag [#3786](https://github.com/tldraw/tldraw/pull/3786) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- make route prefixes have a single place where they are defined [#3624](https://github.com/tldraw/tldraw/pull/3624) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- `@tldraw/store`
|
||||
- Add return info to StoreSideEffects methods [#3918](https://github.com/tldraw/tldraw/pull/3918) ([@steveruizok](https://github.com/steveruizok))
|
||||
- `tldraw`
|
||||
- Fix 'insert media' undo operation [#3910](https://github.com/tldraw/tldraw/pull/3910) ([@ds300](https://github.com/ds300))
|
||||
- Fix pressure [#3877](https://github.com/tldraw/tldraw/pull/3877) ([@steveruizok](https://github.com/steveruizok))
|
||||
- share: make share/fork/copy actions clearer [#3846](https://github.com/tldraw/tldraw/pull/3846) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- toolbar: disable items that dont work when not in select mode [#3819](https://github.com/tldraw/tldraw/pull/3819) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Fix cropped image export [#3837](https://github.com/tldraw/tldraw/pull/3837) ([@TodePond](https://github.com/TodePond))
|
||||
- fix excalidraw paste [#3822](https://github.com/tldraw/tldraw/pull/3822) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Fix broken files [#3821](https://github.com/tldraw/tldraw/pull/3821) ([@steveruizok](https://github.com/steveruizok))
|
||||
- fix pattern fill lods [#3801](https://github.com/tldraw/tldraw/pull/3801) ([@SomeHats](https://github.com/SomeHats))
|
||||
- toolbar: rework overflow css logic [#3779](https://github.com/tldraw/tldraw/pull/3779) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- export DefaultNavigationPanel [#3772](https://github.com/tldraw/tldraw/pull/3772) ([@ds300](https://github.com/ds300))
|
||||
- Add asset pruning when importing files [#3689](https://github.com/tldraw/tldraw/pull/3689) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Fix background color for patterned shapes. [#3708](https://github.com/tldraw/tldraw/pull/3708) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- don't render the minimap if it fails to initialize the gl context [#3679](https://github.com/tldraw/tldraw/pull/3679) ([@ds300](https://github.com/ds300))
|
||||
- embed: prevent nested tldraw [#3659](https://github.com/tldraw/tldraw/pull/3659) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Hacky fix safari transparency [#3657](https://github.com/tldraw/tldraw/pull/3657) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Fix missing icon [#3652](https://github.com/tldraw/tldraw/pull/3652) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Improve pressure-detection logic in drawing [#3639](https://github.com/tldraw/tldraw/pull/3639) ([@steveruizok](https://github.com/steveruizok))
|
||||
- copy/paste: fix pasting not working from Edit menu [#3623](https://github.com/tldraw/tldraw/pull/3623) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- stickies: make pit/pack distance the same [#3606](https://github.com/tldraw/tldraw/pull/3606) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Fix an issue with minimap. [#3621](https://github.com/tldraw/tldraw/pull/3621) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- `@tldraw/editor`, `tldraw`
|
||||
- Cropping undo/redo UX [#3891](https://github.com/tldraw/tldraw/pull/3891) ([@ds300](https://github.com/ds300))
|
||||
- Bindings tests [#3800](https://github.com/tldraw/tldraw/pull/3800) ([@ds300](https://github.com/ds300))
|
||||
- Add option for max points per draw shape [#3900](https://github.com/tldraw/tldraw/pull/3900) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Bindings onBeforeShapeIsolate? [#3871](https://github.com/tldraw/tldraw/pull/3871) ([@ds300](https://github.com/ds300))
|
||||
- Editor.blur method [#3875](https://github.com/tldraw/tldraw/pull/3875) ([@ds300](https://github.com/ds300))
|
||||
- Fix drag distance [#3873](https://github.com/tldraw/tldraw/pull/3873) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Add `select` option to `Editor.groupShapes` and `Editor.ungroupShapes` [#3690](https://github.com/tldraw/tldraw/pull/3690) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@steveruizok](https://github.com/steveruizok))
|
||||
- chore: cleanup z-indices so that they're all clearly listed [#3855](https://github.com/tldraw/tldraw/pull/3855) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- text labels: address some rendering inconsistencies with the content vs. textarea [#3830](https://github.com/tldraw/tldraw/pull/3830) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Move constants to options prop [#3799](https://github.com/tldraw/tldraw/pull/3799) ([@SomeHats](https://github.com/SomeHats))
|
||||
- [fix] setCamera animates to constrained viewport [#3828](https://github.com/tldraw/tldraw/pull/3828) ([@ds300](https://github.com/ds300))
|
||||
- Tighten up zoom to fit padding [#3798](https://github.com/tldraw/tldraw/pull/3798) ([@steveruizok](https://github.com/steveruizok))
|
||||
- [bugfix] Cleanup input state after middle-click-to-pan [#3792](https://github.com/tldraw/tldraw/pull/3792) ([@ds300](https://github.com/ds300))
|
||||
- Move InFrontOfTheCanvas [#3782](https://github.com/tldraw/tldraw/pull/3782) ([@ds300](https://github.com/ds300))
|
||||
- fix flipping for arrows [#3780](https://github.com/tldraw/tldraw/pull/3780) ([@ds300](https://github.com/ds300))
|
||||
- [bugfix?] End interactions before switching page [#3771](https://github.com/tldraw/tldraw/pull/3771) ([@ds300](https://github.com/ds300))
|
||||
- [bindings] beforeUnbind/afterUnbind to replace beforeDelete/afterDelete [#3761](https://github.com/tldraw/tldraw/pull/3761) ([@ds300](https://github.com/ds300))
|
||||
- No defaults for contexts [#3750](https://github.com/tldraw/tldraw/pull/3750) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Fix imports in Astro [#3742](https://github.com/tldraw/tldraw/pull/3742) ([@steveruizok](https://github.com/steveruizok))
|
||||
- textfields: fix RTL layout for SVG exports [#3680](https://github.com/tldraw/tldraw/pull/3680) ([@mimecuvalo](https://github.com/mimecuvalo) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
|
||||
- fix undo/redo issues [#3658](https://github.com/tldraw/tldraw/pull/3658) ([@SomeHats](https://github.com/SomeHats))
|
||||
- textfields: for unfilled geo shapes fix edit->edit [#3577](https://github.com/tldraw/tldraw/pull/3577) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Fix text resizing with alt key [#3632](https://github.com/tldraw/tldraw/pull/3632) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Don't hover locked shapes [#3575](https://github.com/tldraw/tldraw/pull/3575) ([@steveruizok](https://github.com/steveruizok))
|
||||
- `@tldraw/editor`
|
||||
- [DX] sensible defaults for createTLStore [#3886](https://github.com/tldraw/tldraw/pull/3886) ([@ds300](https://github.com/ds300))
|
||||
- Prevent stale shape data in render [#3882](https://github.com/tldraw/tldraw/pull/3882) ([@ds300](https://github.com/ds300))
|
||||
- [bugfix] Preserve redo stack when selection changes [#3862](https://github.com/tldraw/tldraw/pull/3862) ([@ds300](https://github.com/ds300))
|
||||
- fix coarse pointer detection [#3795](https://github.com/tldraw/tldraw/pull/3795) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Fix spacebar/mmb panning bug. [#3791](https://github.com/tldraw/tldraw/pull/3791) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Prevent wobble during viewport following [#3695](https://github.com/tldraw/tldraw/pull/3695) ([@ds300](https://github.com/ds300))
|
||||
- Bump max shapes to 4000 [#3716](https://github.com/tldraw/tldraw/pull/3716) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Allow DefaultErrorFallback to be used independently [#3769](https://github.com/tldraw/tldraw/pull/3769) ([@ds300](https://github.com/ds300))
|
||||
- Prevent duplicate from creating any shapes if we reach max allowed shapes [#3692](https://github.com/tldraw/tldraw/pull/3692) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Fix viewport following [#3681](https://github.com/tldraw/tldraw/pull/3681) ([@ds300](https://github.com/ds300))
|
||||
- Fix className.includes bug [#3672](https://github.com/tldraw/tldraw/pull/3672) ([@steveruizok](https://github.com/steveruizok))
|
||||
- [bugfix] don't crash if a bound shape doesn't exist [#3653](https://github.com/tldraw/tldraw/pull/3653) ([@ds300](https://github.com/ds300))
|
||||
- `tldraw`, `@tldraw/utils`
|
||||
- security: don't send referrer paths for images and bookmarks [#3881](https://github.com/tldraw/tldraw/pull/3881) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- assets: rework mime-type detection to be consistent/centralized; add support for webp/webm, apng, avif [#3730](https://github.com/tldraw/tldraw/pull/3730) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- `@tldraw/state`
|
||||
- timeouts: rework effectschedule timeout tracking [#3870](https://github.com/tldraw/tldraw/pull/3870) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- [signia] perf thing again [#3645](https://github.com/tldraw/tldraw/pull/3645) ([@ds300](https://github.com/ds300))
|
||||
- Revert "[signia] Smart dirty checking of active computeds (#3516)" [#3612](https://github.com/tldraw/tldraw/pull/3612) ([@SomeHats](https://github.com/SomeHats))
|
||||
- `@tldraw/editor`, `@tldraw/state`, `tldraw`, `@tldraw/utils`
|
||||
- editor: register timeouts/intervals/rafs for disposal [#3852](https://github.com/tldraw/tldraw/pull/3852) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- `@tldraw/editor`, `@tldraw/store`, `tldraw`, `@tldraw/tlschema`
|
||||
- Snapshots pit of success [#3811](https://github.com/tldraw/tldraw/pull/3811) ([@ds300](https://github.com/ds300))
|
||||
- Bindings [#3326](https://github.com/tldraw/tldraw/pull/3326) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Automatic undo/redo [#3364](https://github.com/tldraw/tldraw/pull/3364) ([@SomeHats](https://github.com/SomeHats))
|
||||
- `@tldraw/assets`, `@tldraw/editor`, `tldraw`, `@tldraw/tlschema`
|
||||
- Add heart geo shape [#3787](https://github.com/tldraw/tldraw/pull/3787) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Separate text-align property for shapes [#3627](https://github.com/tldraw/tldraw/pull/3627) ([@steveruizok](https://github.com/steveruizok) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
|
||||
- `@tldraw/editor`, `tldraw`, `@tldraw/tlschema`
|
||||
- rework canBind callback [#3797](https://github.com/tldraw/tldraw/pull/3797) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Camera options [#3282](https://github.com/tldraw/tldraw/pull/3282) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
|
||||
- `@tldraw/editor`, `@tldraw/state`, `@tldraw/store`, `tldraw`, `@tldraw/tlschema`, `@tldraw/utils`, `@tldraw/validate`
|
||||
- Force `interface` instead of `type` for better docs [#3815](https://github.com/tldraw/tldraw/pull/3815) ([@SomeHats](https://github.com/SomeHats))
|
||||
- `@tldraw/assets`, `tldraw`
|
||||
- add missing spline icons [#3778](https://github.com/tldraw/tldraw/pull/3778) ([@ds300](https://github.com/ds300))
|
||||
- Fix missing icons [#3654](https://github.com/tldraw/tldraw/pull/3654) ([@steveruizok](https://github.com/steveruizok))
|
||||
- `@tldraw/editor`, `@tldraw/store`, `tldraw`
|
||||
- focus: rework and untangle existing focus management logic in the sdk [#3718](https://github.com/tldraw/tldraw/pull/3718) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- `@tldraw/editor`, `@tldraw/store`
|
||||
- Store-level "operation end" event [#3748](https://github.com/tldraw/tldraw/pull/3748) ([@SomeHats](https://github.com/SomeHats))
|
||||
- `@tldraw/editor`, `@tldraw/store`, `tldraw`, `@tldraw/utils`
|
||||
- Move arrow helpers from editor to tldraw [#3721](https://github.com/tldraw/tldraw/pull/3721) ([@SomeHats](https://github.com/SomeHats))
|
||||
- `@tldraw/editor`, `tldraw`, `@tldraw/utils`
|
||||
- Camera options followups [#3701](https://github.com/tldraw/tldraw/pull/3701) ([@steveruizok](https://github.com/steveruizok))
|
||||
- `@tldraw/tlschema`
|
||||
- embed: allow embeds like YouTube to link back to its site [#3609](https://github.com/tldraw/tldraw/pull/3609) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- Expose migrations, validators, and versions from tlschema [#3613](https://github.com/tldraw/tldraw/pull/3613) ([@SomeHats](https://github.com/SomeHats))
|
||||
- `tldraw`, `@tldraw/tlschema`
|
||||
- fix migration exports [#3586](https://github.com/tldraw/tldraw/pull/3586) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 🖥️ tldraw.com Changes
|
||||
|
||||
- csp: disable for now [#3907](https://github.com/tldraw/tldraw/pull/3907) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Fix Content-Security-Policy browser warnings [#3906](https://github.com/tldraw/tldraw/pull/3906) ([@kitschpatrol](https://github.com/kitschpatrol))
|
||||
- dotcom: desc tweak [#3885](https://github.com/tldraw/tldraw/pull/3885) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Add option to navigate to new project from file menu [#3876](https://github.com/tldraw/tldraw/pull/3876) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- cloudflare: dont cache no-cache headers [#3849](https://github.com/tldraw/tldraw/pull/3849) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- security: nix list and delete commands [#3847](https://github.com/tldraw/tldraw/pull/3847) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- security: add recommended OWASP settings; also Zoom apps require them [#3810](https://github.com/tldraw/tldraw/pull/3810) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Remove unneeded worker IS_LOCAL check [#3808](https://github.com/tldraw/tldraw/pull/3808) ([@SomeHats](https://github.com/SomeHats))
|
||||
- touchscreen: improve the side panel, fix deploy env var, create room programmatically [#3806](https://github.com/tldraw/tldraw/pull/3806) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Prevent pressing escape when editing document name to bubble up to the editor [#3725](https://github.com/tldraw/tldraw/pull/3725) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Fix readonly fetching happening too often. [#3732](https://github.com/tldraw/tldraw/pull/3732) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Move storing of snapshots to R2 [#3693](https://github.com/tldraw/tldraw/pull/3693) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Prevent unnecessary fetching of readonly slugs [#3663](https://github.com/tldraw/tldraw/pull/3663) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- delete stray error screen css import [#3683](https://github.com/tldraw/tldraw/pull/3683) ([@ds300](https://github.com/ds300))
|
||||
- Allow clients to gracefully handle rejection [#3673](https://github.com/tldraw/tldraw/pull/3673) ([@ds300](https://github.com/ds300))
|
||||
- Allow embedding tldraw in iframes [#3640](https://github.com/tldraw/tldraw/pull/3640) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Bring back `/r` [#3615](https://github.com/tldraw/tldraw/pull/3615) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- `tldraw`
|
||||
- bookmarks: resolve relative urls [#3914](https://github.com/tldraw/tldraw/pull/3914) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Open share menu when navigating from create new shared project button [#3898](https://github.com/tldraw/tldraw/pull/3898) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@steveruizok](https://github.com/steveruizok))
|
||||
- Fix textbox direction when it contains both RTL and LTR languages [#3188](https://github.com/tldraw/tldraw/pull/3188) ([@mokazemi](https://github.com/mokazemi) [@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- Readonly / room creation omnibus [#3192](https://github.com/tldraw/tldraw/pull/3192) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- `@tldraw/editor`, `tldraw`, `@tldraw/tlschema`
|
||||
- bookmark: fix up double request and rework extractor [#3856](https://github.com/tldraw/tldraw/pull/3856) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- `@tldraw/editor`
|
||||
- fix android long press changing cursor to non-coarse [#3656](https://github.com/tldraw/tldraw/pull/3656) ([@TodePond](https://github.com/TodePond))
|
||||
- Make coarse pointer check dynamic [#3572](https://github.com/tldraw/tldraw/pull/3572) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@steveruizok](https://github.com/steveruizok))
|
||||
- `@tldraw/assets`, `tldraw`, `@tldraw/tlschema`
|
||||
- Add desmos graph embed type [#3608](https://github.com/tldraw/tldraw/pull/3608) ([@not-first](https://github.com/not-first) [@steveruizok](https://github.com/steveruizok))
|
||||
|
||||
#### 📖 Documentation changes
|
||||
|
||||
- Add editor notes to the docs [#3832](https://github.com/tldraw/tldraw/pull/3832) ([@CodeTorso](https://github.com/CodeTorso) [@steveruizok](https://github.com/steveruizok))
|
||||
- Remove alpha mention in installation for static assets [#3833](https://github.com/tldraw/tldraw/pull/3833) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Fix markdown list rendering on docs site [#3813](https://github.com/tldraw/tldraw/pull/3813) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Update README.md [#3818](https://github.com/tldraw/tldraw/pull/3818) ([@SomeHats](https://github.com/SomeHats))
|
||||
- docs: smaller snapshot so it doesnt crash [#3768](https://github.com/tldraw/tldraw/pull/3768) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- fix link [#3726](https://github.com/tldraw/tldraw/pull/3726) ([@Trevato](https://github.com/Trevato))
|
||||
- Fix link in collaboration documentation [#3662](https://github.com/tldraw/tldraw/pull/3662) ([@eswarclynn](https://github.com/eswarclynn))
|
||||
- 3d example [#3647](https://github.com/tldraw/tldraw/pull/3647) ([@steveruizok](https://github.com/steveruizok))
|
||||
- examples: add filter input [#3625](https://github.com/tldraw/tldraw/pull/3625) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- `@tldraw/editor`, `@tldraw/state`, `@tldraw/store`, `tldraw`, `@tldraw/tlschema`, `@tldraw/utils`, `@tldraw/validate`
|
||||
- make sure everything marked @public gets documented [#3892](https://github.com/tldraw/tldraw/pull/3892) ([@SomeHats](https://github.com/SomeHats))
|
||||
- `@tldraw/editor`, `@tldraw/tlschema`
|
||||
- Bindings documentation [#3812](https://github.com/tldraw/tldraw/pull/3812) ([@SomeHats](https://github.com/SomeHats))
|
||||
- `@tldraw/validate`
|
||||
- Update validation.ts [#3324](https://github.com/tldraw/tldraw/pull/3324) ([@lorenzolewis](https://github.com/lorenzolewis))
|
||||
- `tldraw`
|
||||
- ban using `@internal` items in examples [#3746](https://github.com/tldraw/tldraw/pull/3746) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- tests: ugh edit->edit still flaky, skip [#3919](https://github.com/tldraw/tldraw/pull/3919) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- test: disable camera pinch test for now, too flaky [#3854](https://github.com/tldraw/tldraw/pull/3854) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- tests: fix edit→edit flakiness [#3850](https://github.com/tldraw/tldraw/pull/3850) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- tests: fix camera scroll flakiness [#3829](https://github.com/tldraw/tldraw/pull/3829) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- google meet: add hardware whiteboard integration [#3765](https://github.com/tldraw/tldraw/pull/3765) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- delete old todo comment [#3777](https://github.com/tldraw/tldraw/pull/3777) ([@ds300](https://github.com/ds300))
|
||||
- E2E camera tests [#3747](https://github.com/tldraw/tldraw/pull/3747) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- Update template versions to latest [#3646](https://github.com/tldraw/tldraw/pull/3646) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Fix patch release script [#3597](https://github.com/tldraw/tldraw/pull/3597) ([@SomeHats](https://github.com/SomeHats))
|
||||
- increase publish script timeouts [#3570](https://github.com/tldraw/tldraw/pull/3570) ([@SomeHats](https://github.com/SomeHats))
|
||||
- longer retries for package publishing [#3567](https://github.com/tldraw/tldraw/pull/3567) ([@SomeHats](https://github.com/SomeHats))
|
||||
- `tldraw`
|
||||
- Taha/more constraints tests [#3863](https://github.com/tldraw/tldraw/pull/3863) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- npm: improve tldraw package readme [#3851](https://github.com/tldraw/tldraw/pull/3851) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Camera Constraints Tests [#3844](https://github.com/tldraw/tldraw/pull/3844) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- Add unit tests for the camera [#3814](https://github.com/tldraw/tldraw/pull/3814) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- Fix an issue with the minimap [#3617](https://github.com/tldraw/tldraw/pull/3617) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- `@tldraw/assets`, `@tldraw/editor`, `tldraw`, `@tldraw/tlschema`, `@tldraw/utils`, `@tldraw/validate`
|
||||
- Update READMEs, add form link [#3741](https://github.com/tldraw/tldraw/pull/3741) ([@steveruizok](https://github.com/steveruizok))
|
||||
- `@tldraw/editor`, `@tldraw/utils`
|
||||
- Measure action durations and fps for our interactions [#3472](https://github.com/tldraw/tldraw/pull/3472) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- `@tldraw/assets`, `tldraw`
|
||||
- delete untracked api.json and stale api-report.md files [#3619](https://github.com/tldraw/tldraw/pull/3619) ([@SomeHats](https://github.com/SomeHats))
|
||||
- `@tldraw/editor`, `@tldraw/tldraw`, `@tldraw/state`, `@tldraw/store`, `tldraw`, `@tldraw/tlschema`, `@tldraw/utils`, `@tldraw/validate`
|
||||
- Don't check api.json files into git [#3565](https://github.com/tldraw/tldraw/pull/3565) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 🧹 Chores
|
||||
|
||||
- VS Code 2.0.35 [#3879](https://github.com/tldraw/tldraw/pull/3879) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- VS Code version bump 2.0.34 [#3874](https://github.com/tldraw/tldraw/pull/3874) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- [VS Code] Version 2.0.33 [#3687](https://github.com/tldraw/tldraw/pull/3687) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Lokalise: Translations update [#3665](https://github.com/tldraw/tldraw/pull/3665) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
|
||||
- VS Code 2.0.32 [#3664](https://github.com/tldraw/tldraw/pull/3664) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- VS Code 2.0.31 [#3566](https://github.com/tldraw/tldraw/pull/3566) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
|
||||
#### 🔩 Dependency Updates
|
||||
|
||||
- Bump the npm_and_yarn group across 2 directories with 4 updates [#3731](https://github.com/tldraw/tldraw/pull/3731) ([@dependabot[bot]](https://github.com/dependabot[bot]) [@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Bump the npm_and_yarn group across 2 directories with 4 updates [#3719](https://github.com/tldraw/tldraw/pull/3719) ([@dependabot[bot]](https://github.com/dependabot[bot]))
|
||||
- Bump the npm_and_yarn group across 2 directories with 6 updates [#3712](https://github.com/tldraw/tldraw/pull/3712) ([@dependabot[bot]](https://github.com/dependabot[bot]) [@github-actions[bot]](https://github.com/github-actions[bot]) [@mimecuvalo](https://github.com/mimecuvalo))
|
||||
|
||||
#### Authors: 17
|
||||
|
||||
- [@dependabot[bot]](https://github.com/dependabot[bot])
|
||||
- [@github-actions[bot]](https://github.com/github-actions[bot])
|
||||
- [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
|
||||
- alex ([@SomeHats](https://github.com/SomeHats))
|
||||
- CodeTorso ([@CodeTorso](https://github.com/CodeTorso))
|
||||
- David Sheldrick ([@ds300](https://github.com/ds300))
|
||||
- Eric Mika ([@kitschpatrol](https://github.com/kitschpatrol))
|
||||
- Eswar Prasad Clinton. A ([@eswarclynn](https://github.com/eswarclynn))
|
||||
- fakerr ([@not-first](https://github.com/not-first))
|
||||
- Lorenzo Lewis ([@lorenzolewis](https://github.com/lorenzolewis))
|
||||
- Lu Wilson ([@TodePond](https://github.com/TodePond))
|
||||
- Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Mohammad Kazemi ([@mokazemi](https://github.com/mokazemi))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- Trevor Dobbertin ([@Trevato](https://github.com/Trevato))
|
||||
|
||||
---
|
||||
|
||||
# v2.1.0 (Tue Apr 23 2024)
|
||||
|
||||
### Release Notes
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is automatically generated by scripts/refresh-assets.ts.
|
||||
// Do not edit manually. Or do, I'm a comment, not a cop.
|
||||
|
||||
export const version = '2.1.0'
|
||||
export const version = '2.2.0'
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
{
|
||||
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
|
||||
"packages": ["packages/*"],
|
||||
"version": "2.1.0"
|
||||
"packages": [
|
||||
"packages/*"
|
||||
],
|
||||
"version": "2.2.0"
|
||||
}
|
||||
|
|
|
@ -1,3 +1,56 @@
|
|||
# v2.2.0 (Tue Jun 11 2024)
|
||||
|
||||
### Release Notes
|
||||
|
||||
#### Add heart geo shape ([#3787](https://github.com/tldraw/tldraw/pull/3787))
|
||||
|
||||
- Adds a heart shape to the geo shape set.
|
||||
|
||||
#### add missing spline icons ([#3778](https://github.com/tldraw/tldraw/pull/3778))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Separate text-align property for shapes ([#3627](https://github.com/tldraw/tldraw/pull/3627))
|
||||
|
||||
- Separates the text align property for text shapes and labels.
|
||||
|
||||
#### Add desmos graph embed type ([#3608](https://github.com/tldraw/tldraw/pull/3608))
|
||||
|
||||
- (feature) add desmos embed
|
||||
|
||||
---
|
||||
|
||||
#### 🐛 Bug Fix
|
||||
|
||||
- Lokalise: Translations update [#3649](https://github.com/tldraw/tldraw/pull/3649) ([@TodePond](https://github.com/TodePond))
|
||||
|
||||
#### 📚 SDK Changes
|
||||
|
||||
- Add heart geo shape [#3787](https://github.com/tldraw/tldraw/pull/3787) ([@steveruizok](https://github.com/steveruizok))
|
||||
- add missing spline icons [#3778](https://github.com/tldraw/tldraw/pull/3778) ([@ds300](https://github.com/ds300))
|
||||
- Fix missing icons [#3654](https://github.com/tldraw/tldraw/pull/3654) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Separate text-align property for shapes [#3627](https://github.com/tldraw/tldraw/pull/3627) ([@steveruizok](https://github.com/steveruizok) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
|
||||
|
||||
#### 🖥️ tldraw.com Changes
|
||||
|
||||
- Add desmos graph embed type [#3608](https://github.com/tldraw/tldraw/pull/3608) ([@not-first](https://github.com/not-first) [@steveruizok](https://github.com/steveruizok))
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- Update READMEs, add form link [#3741](https://github.com/tldraw/tldraw/pull/3741) ([@steveruizok](https://github.com/steveruizok))
|
||||
- delete untracked api.json and stale api-report.md files [#3619](https://github.com/tldraw/tldraw/pull/3619) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### Authors: 6
|
||||
|
||||
- [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
|
||||
- alex ([@SomeHats](https://github.com/SomeHats))
|
||||
- David Sheldrick ([@ds300](https://github.com/ds300))
|
||||
- fakerr ([@not-first](https://github.com/not-first))
|
||||
- Lu Wilson ([@TodePond](https://github.com/TodePond))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
|
||||
---
|
||||
|
||||
# v2.1.0 (Tue Apr 23 2024)
|
||||
|
||||
### Release Notes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@tldraw/assets",
|
||||
"description": "A tiny little drawing app (assets).",
|
||||
"version": "2.1.0",
|
||||
"version": "2.2.0",
|
||||
"author": {
|
||||
"name": "tldraw Inc.",
|
||||
"email": "hello@tldraw.com"
|
||||
|
|
|
@ -1,3 +1,303 @@
|
|||
# v2.2.0 (Tue Jun 11 2024)
|
||||
|
||||
### Release Notes
|
||||
|
||||
#### Cropping undo/redo UX ([#3891](https://github.com/tldraw/tldraw/pull/3891))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Bindings tests ([#3800](https://github.com/tldraw/tldraw/pull/3800))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### bookmark: fix up double request and rework extractor ([#3856](https://github.com/tldraw/tldraw/pull/3856))
|
||||
|
||||
- Bookmarks: fix up double request and rework extractor code.
|
||||
|
||||
#### Add option for max points per draw shape ([#3900](https://github.com/tldraw/tldraw/pull/3900))
|
||||
|
||||
- SDK: Add option for controlling max length of draw shapes
|
||||
|
||||
#### Bindings onBeforeShapeIsolate? ([#3871](https://github.com/tldraw/tldraw/pull/3871))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### [DX] sensible defaults for createTLStore ([#3886](https://github.com/tldraw/tldraw/pull/3886))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Editor.blur method ([#3875](https://github.com/tldraw/tldraw/pull/3875))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Prevent stale shape data in render ([#3882](https://github.com/tldraw/tldraw/pull/3882))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Fix drag distance ([#3873](https://github.com/tldraw/tldraw/pull/3873))
|
||||
|
||||
- Fixed a bug where the minimum distance for a drag was wrong when zoomed in or out.
|
||||
|
||||
#### editor: register timeouts/intervals/rafs for disposal ([#3852](https://github.com/tldraw/tldraw/pull/3852))
|
||||
|
||||
- Editor: add registry of timeouts/intervals/rafs
|
||||
|
||||
#### Snapshots pit of success ([#3811](https://github.com/tldraw/tldraw/pull/3811))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### [bugfix] Preserve redo stack when selection changes ([#3862](https://github.com/tldraw/tldraw/pull/3862))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Add `select` option to `Editor.groupShapes` and `Editor.ungroupShapes` ([#3690](https://github.com/tldraw/tldraw/pull/3690))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### text labels: address some rendering inconsistencies with the content vs. textarea ([#3830](https://github.com/tldraw/tldraw/pull/3830))
|
||||
|
||||
- Text labels: fix some inconsistencies with rendering.
|
||||
|
||||
#### Move constants to options prop ([#3799](https://github.com/tldraw/tldraw/pull/3799))
|
||||
|
||||
You can now override many options which were previously hard-coded constants. Pass an `options` prop into the tldraw component to change the maximum number of pages, grid steps, or other previously hard-coded values. See `TldrawOptions` for more
|
||||
|
||||
#### [fix] setCamera animates to constrained viewport ([#3828](https://github.com/tldraw/tldraw/pull/3828))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Add heart geo shape ([#3787](https://github.com/tldraw/tldraw/pull/3787))
|
||||
|
||||
- Adds a heart shape to the geo shape set.
|
||||
|
||||
#### rework canBind callback ([#3797](https://github.com/tldraw/tldraw/pull/3797))
|
||||
|
||||
#### Breaking changes
|
||||
The `canBind` flag now accepts an options object instead of just the shape in question. If you're relying on its arguments, you need to change from `canBind(shape) {}` to `canBind({shape}) {}`.
|
||||
|
||||
#### fix coarse pointer detection ([#3795](https://github.com/tldraw/tldraw/pull/3795))
|
||||
|
||||
- Fix a bug where coarse-pointer mode would get incorrectly detected on some touch devices
|
||||
|
||||
#### Tighten up zoom to fit padding ([#3798](https://github.com/tldraw/tldraw/pull/3798))
|
||||
|
||||
- Reduce padding when zooming to fit.
|
||||
|
||||
#### Fix spacebar/mmb panning bug. ([#3791](https://github.com/tldraw/tldraw/pull/3791))
|
||||
|
||||
- Fix bug with panning
|
||||
|
||||
#### [bugfix] Cleanup input state after middle-click-to-pan ([#3792](https://github.com/tldraw/tldraw/pull/3792))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Move InFrontOfTheCanvas ([#3782](https://github.com/tldraw/tldraw/pull/3782))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### fix flipping for arrows ([#3780](https://github.com/tldraw/tldraw/pull/3780))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### [bugfix?] End interactions before switching page ([#3771](https://github.com/tldraw/tldraw/pull/3771))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Prevent wobble during viewport following ([#3695](https://github.com/tldraw/tldraw/pull/3695))
|
||||
|
||||
- Fixes a bug that caused the cursor & shapes to wiggle around when following someone else's viewport
|
||||
|
||||
#### Bump max shapes to 4000 ([#3716](https://github.com/tldraw/tldraw/pull/3716))
|
||||
|
||||
- Increase maximum number of shapes per page from 2000 to 4000.
|
||||
|
||||
#### Allow DefaultErrorFallback to be used independently ([#3769](https://github.com/tldraw/tldraw/pull/3769))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### focus: rework and untangle existing focus management logic in the sdk ([#3718](https://github.com/tldraw/tldraw/pull/3718))
|
||||
|
||||
- Focus: rework and untangle existing focus management logic in the SDK
|
||||
|
||||
#### [bindings] beforeUnbind/afterUnbind to replace beforeDelete/afterDelete ([#3761](https://github.com/tldraw/tldraw/pull/3761))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### No defaults for contexts ([#3750](https://github.com/tldraw/tldraw/pull/3750))
|
||||
|
||||
`useEditor` and other context-based hooks will now throw an error when used out-of-context, instead of returning a fake value.
|
||||
|
||||
#### Store-level "operation end" event ([#3748](https://github.com/tldraw/tldraw/pull/3748))
|
||||
|
||||
#### Breaking changes
|
||||
`editor.registerBatchCompleteHandler` has been replaced with `editor.registerOperationCompleteHandler`
|
||||
|
||||
#### Fix imports in Astro ([#3742](https://github.com/tldraw/tldraw/pull/3742))
|
||||
|
||||
- Fix bug effecting imports in Astro.
|
||||
|
||||
#### Move arrow helpers from editor to tldraw ([#3721](https://github.com/tldraw/tldraw/pull/3721))
|
||||
|
||||
#### Breaking changes
|
||||
- `editor.getArrowInfo(shape)` has been replaced with `getArrowInfo(editor, shape)`
|
||||
- `editor.getArrowsBoundTo(shape)` has been removed. Instead, use `editor.getBindingsToShape(shape, 'arrow')` and follow the `fromId` of each binding to the corresponding arrow shape
|
||||
- These types have moved from `@tldraw/editor` to `tldraw`:
|
||||
- `TLArcInfo`
|
||||
- `TLArrowInfo`
|
||||
- `TLArrowPoint`
|
||||
- `WeakMapCache` has been removed
|
||||
|
||||
#### Bindings ([#3326](https://github.com/tldraw/tldraw/pull/3326))
|
||||
|
||||
#### Breaking changes
|
||||
- The `start` and `end` properties on `TLArrowShape` no longer have `type: point | binding`. Instead, they're always a point, which may be out of date if a binding exists. To check for & retrieve arrow bindings, use `getArrowBindings(editor, shape)` instead.
|
||||
- `getArrowTerminalsInArrowSpace` must be passed a `TLArrowBindings` as a third argument: `getArrowTerminalsInArrowSpace(editor, shape, getArrowBindings(editor, shape))`
|
||||
- The following types have been renamed:
|
||||
- `ShapeProps` -> `RecordProps`
|
||||
- `ShapePropsType` -> `RecordPropsType`
|
||||
- `TLShapePropsMigrations` -> `TLPropsMigrations`
|
||||
- `SchemaShapeInfo` -> `SchemaPropsInfo`
|
||||
|
||||
#### Camera options ([#3282](https://github.com/tldraw/tldraw/pull/3282))
|
||||
|
||||
- SDK: Adds camera options.
|
||||
|
||||
#### Prevent duplicate from creating any shapes if we reach max allowed shapes ([#3692](https://github.com/tldraw/tldraw/pull/3692))
|
||||
|
||||
- Prevent duplicating shapes if we would go over the maximum shape limit. It's now an all or nothing operation, where as before some shapes would get created.
|
||||
|
||||
#### textfields: fix RTL layout for SVG exports ([#3680](https://github.com/tldraw/tldraw/pull/3680))
|
||||
|
||||
- [Add a brief release note for your PR here.](textfields: fix RTL layout for SVG exports)
|
||||
|
||||
#### Fix viewport following ([#3681](https://github.com/tldraw/tldraw/pull/3681))
|
||||
|
||||
- Fixes an issue where viewport following was not working
|
||||
|
||||
#### Fix className.includes bug ([#3672](https://github.com/tldraw/tldraw/pull/3672))
|
||||
|
||||
- Fixes a rare bug effecting text shapes on mobile.
|
||||
|
||||
#### fix android long press changing cursor to non-coarse ([#3656](https://github.com/tldraw/tldraw/pull/3656))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### [bugfix] don't crash if a bound shape doesn't exist ([#3653](https://github.com/tldraw/tldraw/pull/3653))
|
||||
|
||||
- fixes an edge case in multiplayer rooms where the room can crash if an arrow's bound shape is deleted by a peer
|
||||
|
||||
#### textfields: for unfilled geo shapes fix edit->edit ([#3577](https://github.com/tldraw/tldraw/pull/3577))
|
||||
|
||||
- Text labels: fix edit→edit not working as expected when unfilled geo shapes are on 'top' of other shapes.
|
||||
|
||||
#### Separate text-align property for shapes ([#3627](https://github.com/tldraw/tldraw/pull/3627))
|
||||
|
||||
- Separates the text align property for text shapes and labels.
|
||||
|
||||
#### Fix text resizing with alt key ([#3632](https://github.com/tldraw/tldraw/pull/3632))
|
||||
|
||||
- Fixed a bug with resizing text shapes from the left and right while holding alt.
|
||||
|
||||
#### Don't hover locked shapes ([#3575](https://github.com/tldraw/tldraw/pull/3575))
|
||||
|
||||
- Fixed a bug with locked shapes being hoverable.
|
||||
|
||||
#### Make coarse pointer check dynamic ([#3572](https://github.com/tldraw/tldraw/pull/3572))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
---
|
||||
|
||||
#### 🐛 Bug Fix
|
||||
|
||||
- Lokalise: Translations update [#3649](https://github.com/tldraw/tldraw/pull/3649) ([@TodePond](https://github.com/TodePond))
|
||||
|
||||
#### 🏎 Performance
|
||||
|
||||
- Incremental bindings index [#3685](https://github.com/tldraw/tldraw/pull/3685) ([@ds300](https://github.com/ds300))
|
||||
|
||||
#### 📚 SDK Changes
|
||||
|
||||
- Cropping undo/redo UX [#3891](https://github.com/tldraw/tldraw/pull/3891) ([@ds300](https://github.com/ds300))
|
||||
- Bindings tests [#3800](https://github.com/tldraw/tldraw/pull/3800) ([@ds300](https://github.com/ds300))
|
||||
- Add option for max points per draw shape [#3900](https://github.com/tldraw/tldraw/pull/3900) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Bindings onBeforeShapeIsolate? [#3871](https://github.com/tldraw/tldraw/pull/3871) ([@ds300](https://github.com/ds300))
|
||||
- [DX] sensible defaults for createTLStore [#3886](https://github.com/tldraw/tldraw/pull/3886) ([@ds300](https://github.com/ds300))
|
||||
- Editor.blur method [#3875](https://github.com/tldraw/tldraw/pull/3875) ([@ds300](https://github.com/ds300))
|
||||
- Prevent stale shape data in render [#3882](https://github.com/tldraw/tldraw/pull/3882) ([@ds300](https://github.com/ds300))
|
||||
- Fix drag distance [#3873](https://github.com/tldraw/tldraw/pull/3873) ([@steveruizok](https://github.com/steveruizok))
|
||||
- editor: register timeouts/intervals/rafs for disposal [#3852](https://github.com/tldraw/tldraw/pull/3852) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- Snapshots pit of success [#3811](https://github.com/tldraw/tldraw/pull/3811) ([@ds300](https://github.com/ds300))
|
||||
- [bugfix] Preserve redo stack when selection changes [#3862](https://github.com/tldraw/tldraw/pull/3862) ([@ds300](https://github.com/ds300))
|
||||
- Add `select` option to `Editor.groupShapes` and `Editor.ungroupShapes` [#3690](https://github.com/tldraw/tldraw/pull/3690) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@steveruizok](https://github.com/steveruizok))
|
||||
- chore: cleanup z-indices so that they're all clearly listed [#3855](https://github.com/tldraw/tldraw/pull/3855) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- text labels: address some rendering inconsistencies with the content vs. textarea [#3830](https://github.com/tldraw/tldraw/pull/3830) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Move constants to options prop [#3799](https://github.com/tldraw/tldraw/pull/3799) ([@SomeHats](https://github.com/SomeHats))
|
||||
- [fix] setCamera animates to constrained viewport [#3828](https://github.com/tldraw/tldraw/pull/3828) ([@ds300](https://github.com/ds300))
|
||||
- Add heart geo shape [#3787](https://github.com/tldraw/tldraw/pull/3787) ([@steveruizok](https://github.com/steveruizok))
|
||||
- rework canBind callback [#3797](https://github.com/tldraw/tldraw/pull/3797) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Force `interface` instead of `type` for better docs [#3815](https://github.com/tldraw/tldraw/pull/3815) ([@SomeHats](https://github.com/SomeHats))
|
||||
- fix coarse pointer detection [#3795](https://github.com/tldraw/tldraw/pull/3795) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Tighten up zoom to fit padding [#3798](https://github.com/tldraw/tldraw/pull/3798) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Fix spacebar/mmb panning bug. [#3791](https://github.com/tldraw/tldraw/pull/3791) ([@steveruizok](https://github.com/steveruizok))
|
||||
- [bugfix] Cleanup input state after middle-click-to-pan [#3792](https://github.com/tldraw/tldraw/pull/3792) ([@ds300](https://github.com/ds300))
|
||||
- Move InFrontOfTheCanvas [#3782](https://github.com/tldraw/tldraw/pull/3782) ([@ds300](https://github.com/ds300))
|
||||
- fix flipping for arrows [#3780](https://github.com/tldraw/tldraw/pull/3780) ([@ds300](https://github.com/ds300))
|
||||
- [bugfix?] End interactions before switching page [#3771](https://github.com/tldraw/tldraw/pull/3771) ([@ds300](https://github.com/ds300))
|
||||
- Prevent wobble during viewport following [#3695](https://github.com/tldraw/tldraw/pull/3695) ([@ds300](https://github.com/ds300))
|
||||
- Bump max shapes to 4000 [#3716](https://github.com/tldraw/tldraw/pull/3716) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Allow DefaultErrorFallback to be used independently [#3769](https://github.com/tldraw/tldraw/pull/3769) ([@ds300](https://github.com/ds300))
|
||||
- focus: rework and untangle existing focus management logic in the sdk [#3718](https://github.com/tldraw/tldraw/pull/3718) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- [bindings] beforeUnbind/afterUnbind to replace beforeDelete/afterDelete [#3761](https://github.com/tldraw/tldraw/pull/3761) ([@ds300](https://github.com/ds300))
|
||||
- No defaults for contexts [#3750](https://github.com/tldraw/tldraw/pull/3750) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Store-level "operation end" event [#3748](https://github.com/tldraw/tldraw/pull/3748) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Fix imports in Astro [#3742](https://github.com/tldraw/tldraw/pull/3742) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Move arrow helpers from editor to tldraw [#3721](https://github.com/tldraw/tldraw/pull/3721) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Bindings [#3326](https://github.com/tldraw/tldraw/pull/3326) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Camera options followups [#3701](https://github.com/tldraw/tldraw/pull/3701) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Camera options [#3282](https://github.com/tldraw/tldraw/pull/3282) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
|
||||
- Prevent duplicate from creating any shapes if we reach max allowed shapes [#3692](https://github.com/tldraw/tldraw/pull/3692) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- textfields: fix RTL layout for SVG exports [#3680](https://github.com/tldraw/tldraw/pull/3680) ([@mimecuvalo](https://github.com/mimecuvalo) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
|
||||
- Fix viewport following [#3681](https://github.com/tldraw/tldraw/pull/3681) ([@ds300](https://github.com/ds300))
|
||||
- Fix className.includes bug [#3672](https://github.com/tldraw/tldraw/pull/3672) ([@steveruizok](https://github.com/steveruizok))
|
||||
- fix undo/redo issues [#3658](https://github.com/tldraw/tldraw/pull/3658) ([@SomeHats](https://github.com/SomeHats))
|
||||
- [bugfix] don't crash if a bound shape doesn't exist [#3653](https://github.com/tldraw/tldraw/pull/3653) ([@ds300](https://github.com/ds300))
|
||||
- textfields: for unfilled geo shapes fix edit->edit [#3577](https://github.com/tldraw/tldraw/pull/3577) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Separate text-align property for shapes [#3627](https://github.com/tldraw/tldraw/pull/3627) ([@steveruizok](https://github.com/steveruizok) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
|
||||
- Fix text resizing with alt key [#3632](https://github.com/tldraw/tldraw/pull/3632) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Don't hover locked shapes [#3575](https://github.com/tldraw/tldraw/pull/3575) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Automatic undo/redo [#3364](https://github.com/tldraw/tldraw/pull/3364) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 🖥️ tldraw.com Changes
|
||||
|
||||
- bookmark: fix up double request and rework extractor [#3856](https://github.com/tldraw/tldraw/pull/3856) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- fix android long press changing cursor to non-coarse [#3656](https://github.com/tldraw/tldraw/pull/3656) ([@TodePond](https://github.com/TodePond))
|
||||
- Make coarse pointer check dynamic [#3572](https://github.com/tldraw/tldraw/pull/3572) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@steveruizok](https://github.com/steveruizok))
|
||||
|
||||
#### 📖 Documentation changes
|
||||
|
||||
- make sure everything marked @public gets documented [#3892](https://github.com/tldraw/tldraw/pull/3892) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Bindings documentation [#3812](https://github.com/tldraw/tldraw/pull/3812) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- Update READMEs, add form link [#3741](https://github.com/tldraw/tldraw/pull/3741) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Measure action durations and fps for our interactions [#3472](https://github.com/tldraw/tldraw/pull/3472) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Don't check api.json files into git [#3565](https://github.com/tldraw/tldraw/pull/3565) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### Authors: 8
|
||||
|
||||
- [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
|
||||
- alex ([@SomeHats](https://github.com/SomeHats))
|
||||
- David Sheldrick ([@ds300](https://github.com/ds300))
|
||||
- Lu Wilson ([@TodePond](https://github.com/TodePond))
|
||||
- Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
|
||||
---
|
||||
|
||||
# v2.1.0 (Tue Apr 23 2024)
|
||||
|
||||
### Release Notes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@tldraw/editor",
|
||||
"description": "A tiny little drawing app (editor).",
|
||||
"version": "2.1.0",
|
||||
"version": "2.2.0",
|
||||
"author": {
|
||||
"name": "tldraw Inc.",
|
||||
"email": "hello@tldraw.com"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is automatically generated by scripts/refresh-assets.ts.
|
||||
// Do not edit manually. Or do, I'm a comment, not a cop.
|
||||
|
||||
export const version = '2.1.0'
|
||||
export const version = '2.2.0'
|
||||
|
|
|
@ -1,3 +1,15 @@
|
|||
# v2.2.0 (Tue Jun 11 2024)
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- Don't check api.json files into git [#3565](https://github.com/tldraw/tldraw/pull/3565) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### Authors: 1
|
||||
|
||||
- alex ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
---
|
||||
|
||||
# v2.1.0 (Tue Apr 23 2024)
|
||||
|
||||
### Release Notes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@tldraw/tldraw",
|
||||
"description": "A tiny little drawing editor.",
|
||||
"version": "2.1.0",
|
||||
"version": "2.2.0",
|
||||
"author": {
|
||||
"name": "tldraw Inc.",
|
||||
"email": "hello@tldraw.com"
|
||||
|
|
|
@ -1,3 +1,42 @@
|
|||
# v2.2.0 (Tue Jun 11 2024)
|
||||
|
||||
### Release Notes
|
||||
|
||||
#### editor: register timeouts/intervals/rafs for disposal ([#3852](https://github.com/tldraw/tldraw/pull/3852))
|
||||
|
||||
- Editor: add registry of timeouts/intervals/rafs
|
||||
|
||||
#### [signia] perf thing again ([#3645](https://github.com/tldraw/tldraw/pull/3645))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
---
|
||||
|
||||
#### 📚 SDK Changes
|
||||
|
||||
- timeouts: rework effectschedule timeout tracking [#3870](https://github.com/tldraw/tldraw/pull/3870) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- editor: register timeouts/intervals/rafs for disposal [#3852](https://github.com/tldraw/tldraw/pull/3852) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- Force `interface` instead of `type` for better docs [#3815](https://github.com/tldraw/tldraw/pull/3815) ([@SomeHats](https://github.com/SomeHats))
|
||||
- [signia] perf thing again [#3645](https://github.com/tldraw/tldraw/pull/3645) ([@ds300](https://github.com/ds300))
|
||||
- Revert "[signia] Smart dirty checking of active computeds (#3516)" [#3612](https://github.com/tldraw/tldraw/pull/3612) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 📖 Documentation changes
|
||||
|
||||
- make sure everything marked @public gets documented [#3892](https://github.com/tldraw/tldraw/pull/3892) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- Don't check api.json files into git [#3565](https://github.com/tldraw/tldraw/pull/3565) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### Authors: 4
|
||||
|
||||
- alex ([@SomeHats](https://github.com/SomeHats))
|
||||
- David Sheldrick ([@ds300](https://github.com/ds300))
|
||||
- Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
|
||||
---
|
||||
|
||||
# v2.1.0 (Tue Apr 23 2024)
|
||||
|
||||
### Release Notes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@tldraw/state",
|
||||
"description": "A tiny little drawing app (state).",
|
||||
"version": "2.1.0",
|
||||
"version": "2.2.0",
|
||||
"author": {
|
||||
"name": "tldraw Inc.",
|
||||
"email": "hello@tldraw.com"
|
||||
|
|
|
@ -1,3 +1,72 @@
|
|||
# v2.2.0 (Tue Jun 11 2024)
|
||||
|
||||
### Release Notes
|
||||
|
||||
#### Snapshots pit of success ([#3811](https://github.com/tldraw/tldraw/pull/3811))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### focus: rework and untangle existing focus management logic in the sdk ([#3718](https://github.com/tldraw/tldraw/pull/3718))
|
||||
|
||||
- Focus: rework and untangle existing focus management logic in the SDK
|
||||
|
||||
#### Store-level "operation end" event ([#3748](https://github.com/tldraw/tldraw/pull/3748))
|
||||
|
||||
#### Breaking changes
|
||||
`editor.registerBatchCompleteHandler` has been replaced with `editor.registerOperationCompleteHandler`
|
||||
|
||||
#### Move arrow helpers from editor to tldraw ([#3721](https://github.com/tldraw/tldraw/pull/3721))
|
||||
|
||||
#### Breaking changes
|
||||
- `editor.getArrowInfo(shape)` has been replaced with `getArrowInfo(editor, shape)`
|
||||
- `editor.getArrowsBoundTo(shape)` has been removed. Instead, use `editor.getBindingsToShape(shape, 'arrow')` and follow the `fromId` of each binding to the corresponding arrow shape
|
||||
- These types have moved from `@tldraw/editor` to `tldraw`:
|
||||
- `TLArcInfo`
|
||||
- `TLArrowInfo`
|
||||
- `TLArrowPoint`
|
||||
- `WeakMapCache` has been removed
|
||||
|
||||
#### Bindings ([#3326](https://github.com/tldraw/tldraw/pull/3326))
|
||||
|
||||
#### Breaking changes
|
||||
- The `start` and `end` properties on `TLArrowShape` no longer have `type: point | binding`. Instead, they're always a point, which may be out of date if a binding exists. To check for & retrieve arrow bindings, use `getArrowBindings(editor, shape)` instead.
|
||||
- `getArrowTerminalsInArrowSpace` must be passed a `TLArrowBindings` as a third argument: `getArrowTerminalsInArrowSpace(editor, shape, getArrowBindings(editor, shape))`
|
||||
- The following types have been renamed:
|
||||
- `ShapeProps` -> `RecordProps`
|
||||
- `ShapePropsType` -> `RecordPropsType`
|
||||
- `TLShapePropsMigrations` -> `TLPropsMigrations`
|
||||
- `SchemaShapeInfo` -> `SchemaPropsInfo`
|
||||
|
||||
---
|
||||
|
||||
#### 📚 SDK Changes
|
||||
|
||||
- Add return info to StoreSideEffects methods [#3918](https://github.com/tldraw/tldraw/pull/3918) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Snapshots pit of success [#3811](https://github.com/tldraw/tldraw/pull/3811) ([@ds300](https://github.com/ds300))
|
||||
- Force `interface` instead of `type` for better docs [#3815](https://github.com/tldraw/tldraw/pull/3815) ([@SomeHats](https://github.com/SomeHats))
|
||||
- focus: rework and untangle existing focus management logic in the sdk [#3718](https://github.com/tldraw/tldraw/pull/3718) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Store-level "operation end" event [#3748](https://github.com/tldraw/tldraw/pull/3748) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Move arrow helpers from editor to tldraw [#3721](https://github.com/tldraw/tldraw/pull/3721) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Bindings [#3326](https://github.com/tldraw/tldraw/pull/3326) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Automatic undo/redo [#3364](https://github.com/tldraw/tldraw/pull/3364) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 📖 Documentation changes
|
||||
|
||||
- make sure everything marked @public gets documented [#3892](https://github.com/tldraw/tldraw/pull/3892) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- Don't check api.json files into git [#3565](https://github.com/tldraw/tldraw/pull/3565) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### Authors: 4
|
||||
|
||||
- alex ([@SomeHats](https://github.com/SomeHats))
|
||||
- David Sheldrick ([@ds300](https://github.com/ds300))
|
||||
- Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
|
||||
---
|
||||
|
||||
# v2.1.0 (Tue Apr 23 2024)
|
||||
|
||||
### Release Notes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@tldraw/store",
|
||||
"description": "A tiny little drawing app (store).",
|
||||
"version": "2.1.0",
|
||||
"version": "2.2.0",
|
||||
"author": {
|
||||
"name": "tldraw Inc.",
|
||||
"email": "hello@tldraw.com"
|
||||
|
|
|
@ -1,3 +1,367 @@
|
|||
# v2.2.0 (Tue Jun 11 2024)
|
||||
|
||||
### Release Notes
|
||||
|
||||
#### Fix 'insert media' undo operation ([#3910](https://github.com/tldraw/tldraw/pull/3910))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Cropping undo/redo UX ([#3891](https://github.com/tldraw/tldraw/pull/3891))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Bindings tests ([#3800](https://github.com/tldraw/tldraw/pull/3800))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### bookmark: fix up double request and rework extractor ([#3856](https://github.com/tldraw/tldraw/pull/3856))
|
||||
|
||||
- Bookmarks: fix up double request and rework extractor code.
|
||||
|
||||
#### Open share menu when navigating from create new shared project button ([#3898](https://github.com/tldraw/tldraw/pull/3898))
|
||||
|
||||
- Open share menu when navigating from the create new shared project button.
|
||||
|
||||
#### Add option for max points per draw shape ([#3900](https://github.com/tldraw/tldraw/pull/3900))
|
||||
|
||||
- SDK: Add option for controlling max length of draw shapes
|
||||
|
||||
#### Bindings onBeforeShapeIsolate? ([#3871](https://github.com/tldraw/tldraw/pull/3871))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Editor.blur method ([#3875](https://github.com/tldraw/tldraw/pull/3875))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### security: don't send referrer paths for images and bookmarks ([#3881](https://github.com/tldraw/tldraw/pull/3881))
|
||||
|
||||
- Security: fix referrer being sent for bookmarks and images.
|
||||
|
||||
#### Fix pressure ([#3877](https://github.com/tldraw/tldraw/pull/3877))
|
||||
|
||||
- Fixes pen pressure.
|
||||
|
||||
#### Fix drag distance ([#3873](https://github.com/tldraw/tldraw/pull/3873))
|
||||
|
||||
- Fixed a bug where the minimum distance for a drag was wrong when zoomed in or out.
|
||||
|
||||
#### editor: register timeouts/intervals/rafs for disposal ([#3852](https://github.com/tldraw/tldraw/pull/3852))
|
||||
|
||||
- Editor: add registry of timeouts/intervals/rafs
|
||||
|
||||
#### Taha/more constraints tests ([#3863](https://github.com/tldraw/tldraw/pull/3863))
|
||||
|
||||
- Adds more tests for the camera constraints API
|
||||
|
||||
#### Snapshots pit of success ([#3811](https://github.com/tldraw/tldraw/pull/3811))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Add `select` option to `Editor.groupShapes` and `Editor.ungroupShapes` ([#3690](https://github.com/tldraw/tldraw/pull/3690))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### share: make share/fork/copy actions clearer ([#3846](https://github.com/tldraw/tldraw/pull/3846))
|
||||
|
||||
- Share menu: make sharing/fork/copy actions clearer
|
||||
|
||||
#### text labels: address some rendering inconsistencies with the content vs. textarea ([#3830](https://github.com/tldraw/tldraw/pull/3830))
|
||||
|
||||
- Text labels: fix some inconsistencies with rendering.
|
||||
|
||||
#### Move constants to options prop ([#3799](https://github.com/tldraw/tldraw/pull/3799))
|
||||
|
||||
You can now override many options which were previously hard-coded constants. Pass an `options` prop into the tldraw component to change the maximum number of pages, grid steps, or other previously hard-coded values. See `TldrawOptions` for more
|
||||
|
||||
#### toolbar: disable items that dont work when not in select mode ([#3819](https://github.com/tldraw/tldraw/pull/3819))
|
||||
|
||||
- Toolbar: disable menu items that don't work when not in select mode.
|
||||
|
||||
#### Fix cropped image export ([#3837](https://github.com/tldraw/tldraw/pull/3837))
|
||||
|
||||
- Fixed cropped images not exporting properly
|
||||
|
||||
#### [fix] setCamera animates to constrained viewport ([#3828](https://github.com/tldraw/tldraw/pull/3828))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Add heart geo shape ([#3787](https://github.com/tldraw/tldraw/pull/3787))
|
||||
|
||||
- Adds a heart shape to the geo shape set.
|
||||
|
||||
#### rework canBind callback ([#3797](https://github.com/tldraw/tldraw/pull/3797))
|
||||
|
||||
#### Breaking changes
|
||||
The `canBind` flag now accepts an options object instead of just the shape in question. If you're relying on its arguments, you need to change from `canBind(shape) {}` to `canBind({shape}) {}`.
|
||||
|
||||
#### Add unit tests for the camera ([#3814](https://github.com/tldraw/tldraw/pull/3814))
|
||||
|
||||
- Adds unit tests for the camera
|
||||
|
||||
#### Tighten up zoom to fit padding ([#3798](https://github.com/tldraw/tldraw/pull/3798))
|
||||
|
||||
- Reduce padding when zooming to fit.
|
||||
|
||||
#### toolbar: rework overflow css logic ([#3779](https://github.com/tldraw/tldraw/pull/3779))
|
||||
|
||||
- Toolbar: cleanup overflow css rules.
|
||||
|
||||
#### [bugfix] Cleanup input state after middle-click-to-pan ([#3792](https://github.com/tldraw/tldraw/pull/3792))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Move InFrontOfTheCanvas ([#3782](https://github.com/tldraw/tldraw/pull/3782))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### fix flipping for arrows ([#3780](https://github.com/tldraw/tldraw/pull/3780))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### [bugfix?] End interactions before switching page ([#3771](https://github.com/tldraw/tldraw/pull/3771))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### add missing spline icons ([#3778](https://github.com/tldraw/tldraw/pull/3778))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### export DefaultNavigationPanel ([#3772](https://github.com/tldraw/tldraw/pull/3772))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### focus: rework and untangle existing focus management logic in the sdk ([#3718](https://github.com/tldraw/tldraw/pull/3718))
|
||||
|
||||
- Focus: rework and untangle existing focus management logic in the SDK
|
||||
|
||||
#### [bindings] beforeUnbind/afterUnbind to replace beforeDelete/afterDelete ([#3761](https://github.com/tldraw/tldraw/pull/3761))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### No defaults for contexts ([#3750](https://github.com/tldraw/tldraw/pull/3750))
|
||||
|
||||
`useEditor` and other context-based hooks will now throw an error when used out-of-context, instead of returning a fake value.
|
||||
|
||||
#### assets: rework mime-type detection to be consistent/centralized; add support for webp/webm, apng, avif ([#3730](https://github.com/tldraw/tldraw/pull/3730))
|
||||
|
||||
- Images: unify list of acceptable types and expand to include webp, webm, apng, avif
|
||||
|
||||
#### Fix imports in Astro ([#3742](https://github.com/tldraw/tldraw/pull/3742))
|
||||
|
||||
- Fix bug effecting imports in Astro.
|
||||
|
||||
#### Move arrow helpers from editor to tldraw ([#3721](https://github.com/tldraw/tldraw/pull/3721))
|
||||
|
||||
#### Breaking changes
|
||||
- `editor.getArrowInfo(shape)` has been replaced with `getArrowInfo(editor, shape)`
|
||||
- `editor.getArrowsBoundTo(shape)` has been removed. Instead, use `editor.getBindingsToShape(shape, 'arrow')` and follow the `fromId` of each binding to the corresponding arrow shape
|
||||
- These types have moved from `@tldraw/editor` to `tldraw`:
|
||||
- `TLArcInfo`
|
||||
- `TLArrowInfo`
|
||||
- `TLArrowPoint`
|
||||
- `WeakMapCache` has been removed
|
||||
|
||||
#### Bindings ([#3326](https://github.com/tldraw/tldraw/pull/3326))
|
||||
|
||||
#### Breaking changes
|
||||
- The `start` and `end` properties on `TLArrowShape` no longer have `type: point | binding`. Instead, they're always a point, which may be out of date if a binding exists. To check for & retrieve arrow bindings, use `getArrowBindings(editor, shape)` instead.
|
||||
- `getArrowTerminalsInArrowSpace` must be passed a `TLArrowBindings` as a third argument: `getArrowTerminalsInArrowSpace(editor, shape, getArrowBindings(editor, shape))`
|
||||
- The following types have been renamed:
|
||||
- `ShapeProps` -> `RecordProps`
|
||||
- `ShapePropsType` -> `RecordPropsType`
|
||||
- `TLShapePropsMigrations` -> `TLPropsMigrations`
|
||||
- `SchemaShapeInfo` -> `SchemaPropsInfo`
|
||||
|
||||
#### Add asset pruning when importing files ([#3689](https://github.com/tldraw/tldraw/pull/3689))
|
||||
|
||||
- Prunes unused assets when loading a tldraw document.
|
||||
|
||||
#### Fix background color for patterned shapes. ([#3708](https://github.com/tldraw/tldraw/pull/3708))
|
||||
|
||||
- Fixes an issue with copy pasting shapes as svg and png not correctly working for patterned shapes.
|
||||
|
||||
#### Camera options ([#3282](https://github.com/tldraw/tldraw/pull/3282))
|
||||
|
||||
- SDK: Adds camera options.
|
||||
|
||||
#### textfields: fix RTL layout for SVG exports ([#3680](https://github.com/tldraw/tldraw/pull/3680))
|
||||
|
||||
- [Add a brief release note for your PR here.](textfields: fix RTL layout for SVG exports)
|
||||
|
||||
#### Fix textbox direction when it contains both RTL and LTR languages ([#3188](https://github.com/tldraw/tldraw/pull/3188))
|
||||
|
||||
Fix textbox direction when it contains both RTL and LTR languages
|
||||
|
||||
#### embed: prevent nested tldraw ([#3659](https://github.com/tldraw/tldraw/pull/3659))
|
||||
|
||||
- Embeds: Fix infinite nesting of tldraw rooms.
|
||||
|
||||
#### Improve pressure-detection logic in drawing ([#3639](https://github.com/tldraw/tldraw/pull/3639))
|
||||
|
||||
- Improves handling of mouse-type devices that support pressure, e.g. wacom tablets. They now use the same freehand options as true pen-type inputs.
|
||||
|
||||
#### copy/paste: fix pasting not working from Edit menu ([#3623](https://github.com/tldraw/tldraw/pull/3623))
|
||||
|
||||
- Clipboard: fix pasting from the Edit menu.
|
||||
|
||||
#### textfields: for unfilled geo shapes fix edit->edit ([#3577](https://github.com/tldraw/tldraw/pull/3577))
|
||||
|
||||
- Text labels: fix edit→edit not working as expected when unfilled geo shapes are on 'top' of other shapes.
|
||||
|
||||
#### Separate text-align property for shapes ([#3627](https://github.com/tldraw/tldraw/pull/3627))
|
||||
|
||||
- Separates the text align property for text shapes and labels.
|
||||
|
||||
#### Fix text resizing with alt key ([#3632](https://github.com/tldraw/tldraw/pull/3632))
|
||||
|
||||
- Fixed a bug with resizing text shapes from the left and right while holding alt.
|
||||
|
||||
#### Don't hover locked shapes ([#3575](https://github.com/tldraw/tldraw/pull/3575))
|
||||
|
||||
- Fixed a bug with locked shapes being hoverable.
|
||||
|
||||
#### Add desmos graph embed type ([#3608](https://github.com/tldraw/tldraw/pull/3608))
|
||||
|
||||
- (feature) add desmos embed
|
||||
|
||||
#### stickies: make pit/pack distance the same ([#3606](https://github.com/tldraw/tldraw/pull/3606))
|
||||
|
||||
- Shapes: tweak default gap value to be consistent with sticky note gaps.
|
||||
|
||||
#### Fix an issue with the minimap ([#3617](https://github.com/tldraw/tldraw/pull/3617))
|
||||
|
||||
- Fixes clicking on the minimap when we clicked just slightly outside of the current viewport.
|
||||
|
||||
#### Fix an issue with minimap. ([#3621](https://github.com/tldraw/tldraw/pull/3621))
|
||||
|
||||
- Fixes an issue with the minimap bugging out after you change the window's height.
|
||||
|
||||
#### Readonly / room creation omnibus ([#3192](https://github.com/tldraw/tldraw/pull/3192))
|
||||
|
||||
1. This adds new functionality for readonly rooms:
|
||||
- We have a new route `/ro` for newly created readonly rooms. These rooms no longer use the scrambling logic to create readonly slugs. Instead we now use KV storage from cloudflare to track the mapping for slugs -> readonly slug and readonly slug -> slug.
|
||||
- The old route `/v` is preserved, so that the old room still work as they did before.
|
||||
- For old rooms we will keep on generating the old readonly slugs, but for new rooms we'll start using the new logic.
|
||||
2. We no longer prevent embedding of tldraw inside iframes.
|
||||
3. We do prevent generating new rooms from inside the iframes though. `/r`, `/new`, `/r/non-existing-id` should not allow creation of new rooms inside iframes. Only `/new` still works when not inside iframes.
|
||||
4. Forking a project from inside an iframe now opens it on tldraw.com
|
||||
5. Slight copy change on the sharing menu. We no longer have a toggle between readonly and non-readonly links.
|
||||
6. `editor` and `app` are no longer exposed on the window object for readonly rooms. Prevents users from using the `updateInstanceState` to escape readonly rooms.
|
||||
|
||||
#### fix migration exports ([#3586](https://github.com/tldraw/tldraw/pull/3586))
|
||||
|
||||
- Expose `createShapePropsMigrationIds`, `defaultEditorAssetUrls`, `PORTRAIT_BREAKPOINT`, `useDefaultColorTheme`, & `getPerfectDashProps`
|
||||
|
||||
---
|
||||
|
||||
#### 🏎 Performance
|
||||
|
||||
- Incremental bindings index [#3685](https://github.com/tldraw/tldraw/pull/3685) ([@ds300](https://github.com/ds300))
|
||||
|
||||
#### 📚 SDK Changes
|
||||
|
||||
- Fix 'insert media' undo operation [#3910](https://github.com/tldraw/tldraw/pull/3910) ([@ds300](https://github.com/ds300))
|
||||
- Cropping undo/redo UX [#3891](https://github.com/tldraw/tldraw/pull/3891) ([@ds300](https://github.com/ds300))
|
||||
- Bindings tests [#3800](https://github.com/tldraw/tldraw/pull/3800) ([@ds300](https://github.com/ds300))
|
||||
- Add option for max points per draw shape [#3900](https://github.com/tldraw/tldraw/pull/3900) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Bindings onBeforeShapeIsolate? [#3871](https://github.com/tldraw/tldraw/pull/3871) ([@ds300](https://github.com/ds300))
|
||||
- Editor.blur method [#3875](https://github.com/tldraw/tldraw/pull/3875) ([@ds300](https://github.com/ds300))
|
||||
- security: don't send referrer paths for images and bookmarks [#3881](https://github.com/tldraw/tldraw/pull/3881) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Fix pressure [#3877](https://github.com/tldraw/tldraw/pull/3877) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Fix drag distance [#3873](https://github.com/tldraw/tldraw/pull/3873) ([@steveruizok](https://github.com/steveruizok))
|
||||
- editor: register timeouts/intervals/rafs for disposal [#3852](https://github.com/tldraw/tldraw/pull/3852) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- Snapshots pit of success [#3811](https://github.com/tldraw/tldraw/pull/3811) ([@ds300](https://github.com/ds300))
|
||||
- Add `select` option to `Editor.groupShapes` and `Editor.ungroupShapes` [#3690](https://github.com/tldraw/tldraw/pull/3690) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@steveruizok](https://github.com/steveruizok))
|
||||
- share: make share/fork/copy actions clearer [#3846](https://github.com/tldraw/tldraw/pull/3846) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- chore: cleanup z-indices so that they're all clearly listed [#3855](https://github.com/tldraw/tldraw/pull/3855) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- text labels: address some rendering inconsistencies with the content vs. textarea [#3830](https://github.com/tldraw/tldraw/pull/3830) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Move constants to options prop [#3799](https://github.com/tldraw/tldraw/pull/3799) ([@SomeHats](https://github.com/SomeHats))
|
||||
- toolbar: disable items that dont work when not in select mode [#3819](https://github.com/tldraw/tldraw/pull/3819) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Fix cropped image export [#3837](https://github.com/tldraw/tldraw/pull/3837) ([@TodePond](https://github.com/TodePond))
|
||||
- [fix] setCamera animates to constrained viewport [#3828](https://github.com/tldraw/tldraw/pull/3828) ([@ds300](https://github.com/ds300))
|
||||
- Add heart geo shape [#3787](https://github.com/tldraw/tldraw/pull/3787) ([@steveruizok](https://github.com/steveruizok))
|
||||
- fix excalidraw paste [#3822](https://github.com/tldraw/tldraw/pull/3822) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Fix broken files [#3821](https://github.com/tldraw/tldraw/pull/3821) ([@steveruizok](https://github.com/steveruizok))
|
||||
- rework canBind callback [#3797](https://github.com/tldraw/tldraw/pull/3797) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Force `interface` instead of `type` for better docs [#3815](https://github.com/tldraw/tldraw/pull/3815) ([@SomeHats](https://github.com/SomeHats))
|
||||
- fix pattern fill lods [#3801](https://github.com/tldraw/tldraw/pull/3801) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Tighten up zoom to fit padding [#3798](https://github.com/tldraw/tldraw/pull/3798) ([@steveruizok](https://github.com/steveruizok))
|
||||
- toolbar: rework overflow css logic [#3779](https://github.com/tldraw/tldraw/pull/3779) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- [bugfix] Cleanup input state after middle-click-to-pan [#3792](https://github.com/tldraw/tldraw/pull/3792) ([@ds300](https://github.com/ds300))
|
||||
- Move InFrontOfTheCanvas [#3782](https://github.com/tldraw/tldraw/pull/3782) ([@ds300](https://github.com/ds300))
|
||||
- fix flipping for arrows [#3780](https://github.com/tldraw/tldraw/pull/3780) ([@ds300](https://github.com/ds300))
|
||||
- [bugfix?] End interactions before switching page [#3771](https://github.com/tldraw/tldraw/pull/3771) ([@ds300](https://github.com/ds300))
|
||||
- add missing spline icons [#3778](https://github.com/tldraw/tldraw/pull/3778) ([@ds300](https://github.com/ds300))
|
||||
- export DefaultNavigationPanel [#3772](https://github.com/tldraw/tldraw/pull/3772) ([@ds300](https://github.com/ds300))
|
||||
- focus: rework and untangle existing focus management logic in the sdk [#3718](https://github.com/tldraw/tldraw/pull/3718) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- [bindings] beforeUnbind/afterUnbind to replace beforeDelete/afterDelete [#3761](https://github.com/tldraw/tldraw/pull/3761) ([@ds300](https://github.com/ds300))
|
||||
- No defaults for contexts [#3750](https://github.com/tldraw/tldraw/pull/3750) ([@SomeHats](https://github.com/SomeHats))
|
||||
- assets: rework mime-type detection to be consistent/centralized; add support for webp/webm, apng, avif [#3730](https://github.com/tldraw/tldraw/pull/3730) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Fix imports in Astro [#3742](https://github.com/tldraw/tldraw/pull/3742) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Move arrow helpers from editor to tldraw [#3721](https://github.com/tldraw/tldraw/pull/3721) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Bindings [#3326](https://github.com/tldraw/tldraw/pull/3326) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Add asset pruning when importing files [#3689](https://github.com/tldraw/tldraw/pull/3689) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Fix background color for patterned shapes. [#3708](https://github.com/tldraw/tldraw/pull/3708) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Camera options followups [#3701](https://github.com/tldraw/tldraw/pull/3701) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Camera options [#3282](https://github.com/tldraw/tldraw/pull/3282) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
|
||||
- textfields: fix RTL layout for SVG exports [#3680](https://github.com/tldraw/tldraw/pull/3680) ([@mimecuvalo](https://github.com/mimecuvalo) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
|
||||
- don't render the minimap if it fails to initialize the gl context [#3679](https://github.com/tldraw/tldraw/pull/3679) ([@ds300](https://github.com/ds300))
|
||||
- embed: prevent nested tldraw [#3659](https://github.com/tldraw/tldraw/pull/3659) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- fix undo/redo issues [#3658](https://github.com/tldraw/tldraw/pull/3658) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Hacky fix safari transparency [#3657](https://github.com/tldraw/tldraw/pull/3657) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Fix missing icons [#3654](https://github.com/tldraw/tldraw/pull/3654) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Fix missing icon [#3652](https://github.com/tldraw/tldraw/pull/3652) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Improve pressure-detection logic in drawing [#3639](https://github.com/tldraw/tldraw/pull/3639) ([@steveruizok](https://github.com/steveruizok))
|
||||
- copy/paste: fix pasting not working from Edit menu [#3623](https://github.com/tldraw/tldraw/pull/3623) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- textfields: for unfilled geo shapes fix edit->edit [#3577](https://github.com/tldraw/tldraw/pull/3577) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Separate text-align property for shapes [#3627](https://github.com/tldraw/tldraw/pull/3627) ([@steveruizok](https://github.com/steveruizok) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
|
||||
- Fix text resizing with alt key [#3632](https://github.com/tldraw/tldraw/pull/3632) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Don't hover locked shapes [#3575](https://github.com/tldraw/tldraw/pull/3575) ([@steveruizok](https://github.com/steveruizok))
|
||||
- stickies: make pit/pack distance the same [#3606](https://github.com/tldraw/tldraw/pull/3606) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Fix an issue with minimap. [#3621](https://github.com/tldraw/tldraw/pull/3621) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Automatic undo/redo [#3364](https://github.com/tldraw/tldraw/pull/3364) ([@SomeHats](https://github.com/SomeHats))
|
||||
- fix migration exports [#3586](https://github.com/tldraw/tldraw/pull/3586) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 🖥️ tldraw.com Changes
|
||||
|
||||
- bookmarks: resolve relative urls [#3914](https://github.com/tldraw/tldraw/pull/3914) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- bookmark: fix up double request and rework extractor [#3856](https://github.com/tldraw/tldraw/pull/3856) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- Open share menu when navigating from create new shared project button [#3898](https://github.com/tldraw/tldraw/pull/3898) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@steveruizok](https://github.com/steveruizok))
|
||||
- Fix textbox direction when it contains both RTL and LTR languages [#3188](https://github.com/tldraw/tldraw/pull/3188) ([@mokazemi](https://github.com/mokazemi) [@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- Add desmos graph embed type [#3608](https://github.com/tldraw/tldraw/pull/3608) ([@not-first](https://github.com/not-first) [@steveruizok](https://github.com/steveruizok))
|
||||
- Readonly / room creation omnibus [#3192](https://github.com/tldraw/tldraw/pull/3192) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@mimecuvalo](https://github.com/mimecuvalo))
|
||||
|
||||
#### 📖 Documentation changes
|
||||
|
||||
- make sure everything marked @public gets documented [#3892](https://github.com/tldraw/tldraw/pull/3892) ([@SomeHats](https://github.com/SomeHats))
|
||||
- ban using `@internal` items in examples [#3746](https://github.com/tldraw/tldraw/pull/3746) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- Taha/more constraints tests [#3863](https://github.com/tldraw/tldraw/pull/3863) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- npm: improve tldraw package readme [#3851](https://github.com/tldraw/tldraw/pull/3851) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Add unit tests for the camera [#3814](https://github.com/tldraw/tldraw/pull/3814) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
- Update READMEs, add form link [#3741](https://github.com/tldraw/tldraw/pull/3741) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Fix an issue with the minimap [#3617](https://github.com/tldraw/tldraw/pull/3617) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- delete untracked api.json and stale api-report.md files [#3619](https://github.com/tldraw/tldraw/pull/3619) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Don't check api.json files into git [#3565](https://github.com/tldraw/tldraw/pull/3565) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### Authors: 10
|
||||
|
||||
- [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
|
||||
- alex ([@SomeHats](https://github.com/SomeHats))
|
||||
- David Sheldrick ([@ds300](https://github.com/ds300))
|
||||
- fakerr ([@not-first](https://github.com/not-first))
|
||||
- Lu Wilson ([@TodePond](https://github.com/TodePond))
|
||||
- Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Mohammad Kazemi ([@mokazemi](https://github.com/mokazemi))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
||||
|
||||
---
|
||||
|
||||
# v2.1.0 (Tue Apr 23 2024)
|
||||
|
||||
### Release Notes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "tldraw",
|
||||
"description": "A tiny little drawing editor.",
|
||||
"version": "2.1.0",
|
||||
"version": "2.2.0",
|
||||
"author": {
|
||||
"name": "tldraw Inc.",
|
||||
"email": "hello@tldraw.com"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is automatically generated by scripts/refresh-assets.ts.
|
||||
// Do not edit manually. Or do, I'm a comment, not a cop.
|
||||
|
||||
export const version = '2.1.0'
|
||||
export const version = '2.2.0'
|
||||
|
|
|
@ -1,3 +1,107 @@
|
|||
# v2.2.0 (Tue Jun 11 2024)
|
||||
|
||||
### Release Notes
|
||||
|
||||
#### bookmark: fix up double request and rework extractor ([#3856](https://github.com/tldraw/tldraw/pull/3856))
|
||||
|
||||
- Bookmarks: fix up double request and rework extractor code.
|
||||
|
||||
#### Snapshots pit of success ([#3811](https://github.com/tldraw/tldraw/pull/3811))
|
||||
|
||||
- Add a brief release note for your PR here.
|
||||
|
||||
#### Add heart geo shape ([#3787](https://github.com/tldraw/tldraw/pull/3787))
|
||||
|
||||
- Adds a heart shape to the geo shape set.
|
||||
|
||||
#### rework canBind callback ([#3797](https://github.com/tldraw/tldraw/pull/3797))
|
||||
|
||||
#### Breaking changes
|
||||
The `canBind` flag now accepts an options object instead of just the shape in question. If you're relying on its arguments, you need to change from `canBind(shape) {}` to `canBind({shape}) {}`.
|
||||
|
||||
#### Bindings ([#3326](https://github.com/tldraw/tldraw/pull/3326))
|
||||
|
||||
#### Breaking changes
|
||||
- The `start` and `end` properties on `TLArrowShape` no longer have `type: point | binding`. Instead, they're always a point, which may be out of date if a binding exists. To check for & retrieve arrow bindings, use `getArrowBindings(editor, shape)` instead.
|
||||
- `getArrowTerminalsInArrowSpace` must be passed a `TLArrowBindings` as a third argument: `getArrowTerminalsInArrowSpace(editor, shape, getArrowBindings(editor, shape))`
|
||||
- The following types have been renamed:
|
||||
- `ShapeProps` -> `RecordProps`
|
||||
- `ShapePropsType` -> `RecordPropsType`
|
||||
- `TLShapePropsMigrations` -> `TLPropsMigrations`
|
||||
- `SchemaShapeInfo` -> `SchemaPropsInfo`
|
||||
|
||||
#### Camera options ([#3282](https://github.com/tldraw/tldraw/pull/3282))
|
||||
|
||||
- SDK: Adds camera options.
|
||||
|
||||
#### embed: allow embeds like YouTube to link back to its site ([#3609](https://github.com/tldraw/tldraw/pull/3609))
|
||||
|
||||
- Embeds: fix being able to click on links that go back to the embed's site (e.g. YouTube)
|
||||
|
||||
#### Separate text-align property for shapes ([#3627](https://github.com/tldraw/tldraw/pull/3627))
|
||||
|
||||
- Separates the text align property for text shapes and labels.
|
||||
|
||||
#### Add desmos graph embed type ([#3608](https://github.com/tldraw/tldraw/pull/3608))
|
||||
|
||||
- (feature) add desmos embed
|
||||
|
||||
#### Expose migrations, validators, and versions from tlschema ([#3613](https://github.com/tldraw/tldraw/pull/3613))
|
||||
|
||||
Previously, we weren't exporting migrations & validators for our default shapes. This meant that it wasn't possible to make your own tlschema with both our default shapes and some of your own (e.g. for custom multiplayer). This fixes that by exposing all the migrations, validators, and versions from tlschema, plus `defaultShapeSchemas` which can be passed directly to `createTLSchema`
|
||||
|
||||
#### fix migration exports ([#3586](https://github.com/tldraw/tldraw/pull/3586))
|
||||
|
||||
- Expose `createShapePropsMigrationIds`, `defaultEditorAssetUrls`, `PORTRAIT_BREAKPOINT`, `useDefaultColorTheme`, & `getPerfectDashProps`
|
||||
|
||||
---
|
||||
|
||||
#### 🐛 Bug Fix
|
||||
|
||||
- Lokalise: Translations update [#3649](https://github.com/tldraw/tldraw/pull/3649) ([@TodePond](https://github.com/TodePond))
|
||||
|
||||
#### 📚 SDK Changes
|
||||
|
||||
- Snapshots pit of success [#3811](https://github.com/tldraw/tldraw/pull/3811) ([@ds300](https://github.com/ds300))
|
||||
- Add heart geo shape [#3787](https://github.com/tldraw/tldraw/pull/3787) ([@steveruizok](https://github.com/steveruizok))
|
||||
- rework canBind callback [#3797](https://github.com/tldraw/tldraw/pull/3797) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Force `interface` instead of `type` for better docs [#3815](https://github.com/tldraw/tldraw/pull/3815) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Bindings [#3326](https://github.com/tldraw/tldraw/pull/3326) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Camera options [#3282](https://github.com/tldraw/tldraw/pull/3282) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
|
||||
- embed: allow embeds like YouTube to link back to its site [#3609](https://github.com/tldraw/tldraw/pull/3609) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- Separate text-align property for shapes [#3627](https://github.com/tldraw/tldraw/pull/3627) ([@steveruizok](https://github.com/steveruizok) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
|
||||
- Expose migrations, validators, and versions from tlschema [#3613](https://github.com/tldraw/tldraw/pull/3613) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Automatic undo/redo [#3364](https://github.com/tldraw/tldraw/pull/3364) ([@SomeHats](https://github.com/SomeHats))
|
||||
- fix migration exports [#3586](https://github.com/tldraw/tldraw/pull/3586) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 🖥️ tldraw.com Changes
|
||||
|
||||
- bookmark: fix up double request and rework extractor [#3856](https://github.com/tldraw/tldraw/pull/3856) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- Add desmos graph embed type [#3608](https://github.com/tldraw/tldraw/pull/3608) ([@not-first](https://github.com/not-first) [@steveruizok](https://github.com/steveruizok))
|
||||
|
||||
#### 📖 Documentation changes
|
||||
|
||||
- make sure everything marked @public gets documented [#3892](https://github.com/tldraw/tldraw/pull/3892) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Bindings documentation [#3812](https://github.com/tldraw/tldraw/pull/3812) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- Update READMEs, add form link [#3741](https://github.com/tldraw/tldraw/pull/3741) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Don't check api.json files into git [#3565](https://github.com/tldraw/tldraw/pull/3565) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### Authors: 8
|
||||
|
||||
- [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
|
||||
- alex ([@SomeHats](https://github.com/SomeHats))
|
||||
- David Sheldrick ([@ds300](https://github.com/ds300))
|
||||
- fakerr ([@not-first](https://github.com/not-first))
|
||||
- Lu Wilson ([@TodePond](https://github.com/TodePond))
|
||||
- Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
|
||||
---
|
||||
|
||||
# v2.1.0 (Tue Apr 23 2024)
|
||||
|
||||
### Release Notes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@tldraw/tlschema",
|
||||
"description": "A tiny little drawing app (schema).",
|
||||
"version": "2.1.0",
|
||||
"version": "2.2.0",
|
||||
"author": {
|
||||
"name": "tldraw Inc.",
|
||||
"email": "hello@tldraw.com"
|
||||
|
|
|
@ -1,3 +1,60 @@
|
|||
# v2.2.0 (Tue Jun 11 2024)
|
||||
|
||||
### Release Notes
|
||||
|
||||
#### security: don't send referrer paths for images and bookmarks ([#3881](https://github.com/tldraw/tldraw/pull/3881))
|
||||
|
||||
- Security: fix referrer being sent for bookmarks and images.
|
||||
|
||||
#### editor: register timeouts/intervals/rafs for disposal ([#3852](https://github.com/tldraw/tldraw/pull/3852))
|
||||
|
||||
- Editor: add registry of timeouts/intervals/rafs
|
||||
|
||||
#### assets: rework mime-type detection to be consistent/centralized; add support for webp/webm, apng, avif ([#3730](https://github.com/tldraw/tldraw/pull/3730))
|
||||
|
||||
- Images: unify list of acceptable types and expand to include webp, webm, apng, avif
|
||||
|
||||
#### Move arrow helpers from editor to tldraw ([#3721](https://github.com/tldraw/tldraw/pull/3721))
|
||||
|
||||
#### Breaking changes
|
||||
- `editor.getArrowInfo(shape)` has been replaced with `getArrowInfo(editor, shape)`
|
||||
- `editor.getArrowsBoundTo(shape)` has been removed. Instead, use `editor.getBindingsToShape(shape, 'arrow')` and follow the `fromId` of each binding to the corresponding arrow shape
|
||||
- These types have moved from `@tldraw/editor` to `tldraw`:
|
||||
- `TLArcInfo`
|
||||
- `TLArrowInfo`
|
||||
- `TLArrowPoint`
|
||||
- `WeakMapCache` has been removed
|
||||
|
||||
---
|
||||
|
||||
#### 📚 SDK Changes
|
||||
|
||||
- security: don't send referrer paths for images and bookmarks [#3881](https://github.com/tldraw/tldraw/pull/3881) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- editor: register timeouts/intervals/rafs for disposal [#3852](https://github.com/tldraw/tldraw/pull/3852) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok))
|
||||
- Force `interface` instead of `type` for better docs [#3815](https://github.com/tldraw/tldraw/pull/3815) ([@SomeHats](https://github.com/SomeHats))
|
||||
- assets: rework mime-type detection to be consistent/centralized; add support for webp/webm, apng, avif [#3730](https://github.com/tldraw/tldraw/pull/3730) ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Move arrow helpers from editor to tldraw [#3721](https://github.com/tldraw/tldraw/pull/3721) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Camera options followups [#3701](https://github.com/tldraw/tldraw/pull/3701) ([@steveruizok](https://github.com/steveruizok))
|
||||
|
||||
#### 📖 Documentation changes
|
||||
|
||||
- make sure everything marked @public gets documented [#3892](https://github.com/tldraw/tldraw/pull/3892) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- Update READMEs, add form link [#3741](https://github.com/tldraw/tldraw/pull/3741) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Measure action durations and fps for our interactions [#3472](https://github.com/tldraw/tldraw/pull/3472) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Don't check api.json files into git [#3565](https://github.com/tldraw/tldraw/pull/3565) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### Authors: 4
|
||||
|
||||
- alex ([@SomeHats](https://github.com/SomeHats))
|
||||
- Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo))
|
||||
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
|
||||
---
|
||||
|
||||
# v2.1.0 (Tue Apr 23 2024)
|
||||
|
||||
### Release Notes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@tldraw/utils",
|
||||
"description": "A tiny little drawing app (private utilities).",
|
||||
"version": "2.1.0",
|
||||
"version": "2.2.0",
|
||||
"author": {
|
||||
"name": "tldraw Inc.",
|
||||
"email": "hello@tldraw.com"
|
||||
|
|
|
@ -1,3 +1,39 @@
|
|||
# v2.2.0 (Tue Jun 11 2024)
|
||||
|
||||
### Release Notes
|
||||
|
||||
#### Update validation.ts ([#3324](https://github.com/tldraw/tldraw/pull/3324))
|
||||
|
||||
- Update example for Union type
|
||||
|
||||
---
|
||||
|
||||
I believe this type was changed and `literal` is what it should be now.
|
||||
|
||||
---
|
||||
|
||||
#### 📚 SDK Changes
|
||||
|
||||
- Force `interface` instead of `type` for better docs [#3815](https://github.com/tldraw/tldraw/pull/3815) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### 📖 Documentation changes
|
||||
|
||||
- make sure everything marked @public gets documented [#3892](https://github.com/tldraw/tldraw/pull/3892) ([@SomeHats](https://github.com/SomeHats))
|
||||
- Update validation.ts [#3324](https://github.com/tldraw/tldraw/pull/3324) ([@lorenzolewis](https://github.com/lorenzolewis))
|
||||
|
||||
#### 🏠 Internal
|
||||
|
||||
- Update READMEs, add form link [#3741](https://github.com/tldraw/tldraw/pull/3741) ([@steveruizok](https://github.com/steveruizok))
|
||||
- Don't check api.json files into git [#3565](https://github.com/tldraw/tldraw/pull/3565) ([@SomeHats](https://github.com/SomeHats))
|
||||
|
||||
#### Authors: 3
|
||||
|
||||
- alex ([@SomeHats](https://github.com/SomeHats))
|
||||
- Lorenzo Lewis ([@lorenzolewis](https://github.com/lorenzolewis))
|
||||
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
||||
|
||||
---
|
||||
|
||||
# v2.1.0 (Tue Apr 23 2024)
|
||||
|
||||
### Release Notes
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@tldraw/validate",
|
||||
"description": "A runtime validation library by tldraw.",
|
||||
"version": "2.1.0",
|
||||
"version": "2.2.0",
|
||||
"author": {
|
||||
"name": "tldraw Inc.",
|
||||
"email": "hello@tldraw.com"
|
||||
|
|
Loading…
Reference in a new issue