Tldraw/packages/tldraw/src/lib/ui/hooks
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
..
clipboard Fix undo/redo for Opacity Slider + Style dropdowns. (#2933) 2024-02-23 14:25:36 +00:00
useTranslation Add white (#3321) 2024-04-01 18:48:56 +00:00
menu-hooks.ts Don't show edit link for locked shapes. (#3457) 2024-04-13 19:46:50 +00:00
useClipboardEvents.ts fixup file helpers (#3130) 2024-03-12 16:51:29 +00:00
useCopyAs.ts ui: make toasts look more toasty (#2988) 2024-03-27 09:41:13 +00:00
useEditorEvents.ts ui: make toasts look more toasty (#2988) 2024-03-27 09:41:13 +00:00
useExportAs.ts ui: make toasts look more toasty (#2988) 2024-03-27 09:41:13 +00:00
useInsertMedia.ts No impure getters pt6 (#2218) 2023-11-14 11:57:43 +00:00
useKeyboardShortcuts.ts Component-based toolbar customisation API (#3067) 2024-03-12 16:14:28 +00:00
useLocalStorageState.ts Wrap local/session storage calls in try/catch (take 2) (#3066) 2024-03-04 16:15:20 +00:00
useMenuIsOpen.ts Composable custom UI (#2796) 2024-02-15 12:10:09 +00:00
usePreloadAssets.ts Add custom static assets example, extract preloadFont (#2932) 2024-02-23 13:58:06 +00:00
usePreloadIcons.ts Composable custom UI (#2796) 2024-02-15 12:10:09 +00:00
usePrint.ts React-powered SVG exports (#3117) 2024-03-25 14:16:55 +00:00
useReadonly.ts Replace Atom.value with Atom.get() (#2189) 2023-11-13 11:51:22 +00:00
useRelevantStyles.ts Fix 'style panel doesn't always disappear if you switch to the hand/laser tools' (#2886) 2024-02-20 15:09:45 +00:00
useTools.tsx Component-based toolbar customisation API (#3067) 2024-03-12 16:14:28 +00:00