Tldraw/packages/tldraw/src/lib/ui
Mitja Bezenšek b979bba37a
Don't show edit link for locked shapes. (#3457)
Hides the edit link option in the context menu for locked shapes.

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

### Change Type

<!--  Please select a 'Scope' label ️ -->

- [x] `sdk` — Changes the tldraw SDK
- [ ] `dotcom` — Changes the tldraw.com web app
- [ ] `docs` — Changes to the documentation, examples, or templates.
- [ ] `vs code` — Changes to the vscode plugin
- [ ] `internal` — Does not affect user-facing stuff

<!--  Please select a 'Type' label ️ -->

- [x] `bugfix` — Bug fix
- [ ] `feature` — New feature
- [ ] `improvement` — Improving existing features
- [ ] `chore` — Updating dependencies, other boring stuff
- [ ] `galaxy brain` — Architectural changes
- [ ] `tests` — Changes to any test code
- [ ] `tools` — Changes to infrastructure, CI, internal scripts,
debugging tools, etc.
- [ ] `dunno` — I don't know


### Test Plan

1.  Add a link to a shape.
2. Lock it
3. Right click it to open the context menu.
4. You should not see the `Edit link` option

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

### Release Notes

- Hide edit link context menu option for locked shapes.
2024-04-13 19:46:50 +00:00
..
components Remove minimap throttling (#3438) 2024-04-10 14:12:08 +00:00
context Add white (#3321) 2024-04-01 18:48:56 +00:00
hooks Don't show edit link for locked shapes. (#3457) 2024-04-13 19:46:50 +00:00
TldrawUi.tsx Allow hiding debug panel. (#3261) 2024-03-26 10:03:20 +00:00
assetUrls.ts Custom Tools DX + screenshot example (#2198) 2023-11-15 18:06:02 +00:00
constants.ts ui: refactor breakpoints to fit in an enum (#2843) 2024-02-15 17:39:17 +00:00
icon-types.ts ui: make toasts look more toasty (#2988) 2024-03-27 09:41:13 +00:00
kbd-utils.ts UI components round two (#2847) 2024-02-16 09:13:04 +00:00
overrides.ts Component-based toolbar customisation API (#3067) 2024-03-12 16:14:28 +00:00
version.ts Update CHANGELOG.md [skip ci] 2024-02-29 18:28:45 +00:00