tldraw/packages
Mitja Bezenšek ca9ae8e3a3
Fix validation when pasting images. (#2436)
Before introducing url / src validation [we allowed
nulls](https://github.com/tldraw/tldraw/pull/2428/files#diff-28a9f0a3d4797d7addd1d61d336fc00acdec878273ac09f048e2e2dfaf77a037L30)
for src so I updated validations to reflect that.

Fixes [#2437](https://github.com/tldraw/tldraw/issues/2437)

### Change Type

- [x] `patch` — Bug fix
- [ ] `minor` — New feature
- [ ] `major` — Breaking change
- [ ] `dependencies` — Changes to package dependencies[^1]
- [ ] `documentation` — Changes to the documentation only[^2]
- [ ] `tests` — Changes to any test code only[^2]
- [ ] `internal` — Any other changes that don't affect the published
package[^2]
- [ ] I don't know

[^1]: publishes a `patch` release, for devDependencies use `internal`
[^2]: will not publish a new version

### Test Plan

1. Copy an image in tldraw in one browser (`cmd + c`)
2. Paste it to a different browser (or at least private mode of the same
browser)
3. Paste should work and you should not see any errors in the console.

- [ ] Unit Tests
- [ ] End to end tests

### Release Notes

- Fixes url validations.

---------

Co-authored-by: alex <alex@dytry.ch>
2024-01-10 10:45:19 +00:00
..
assets Fix trademark links (#2380) 2023-12-26 09:22:04 +00:00
editor [fix] next selected shapes comment (#2427) 2024-01-09 10:16:16 +00:00
state Update CHANGELOG.md [skip ci] 2023-12-20 15:27:34 +00:00
store Fix meta examples (#2379) 2024-01-03 08:26:22 +00:00
tldraw refactor copy/export, fix safari copy-as-image being broken (#2411) 2024-01-09 14:50:10 +00:00
tlschema Fix validation when pasting images. (#2436) 2024-01-10 10:45:19 +00:00
utils Add url validation (#2428) 2024-01-09 10:49:57 +00:00
validate Add url validation (#2428) 2024-01-09 10:49:57 +00:00