tldraw 3.16.0-canary.614a556981b7 → 3.16.0-canary.648a8d837266

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist-cjs/index.d.ts +1 -1
  2. package/dist-cjs/index.js +1 -1
  3. package/dist-cjs/lib/shapes/frame/FrameShapeUtil.js +4 -4
  4. package/dist-cjs/lib/shapes/frame/FrameShapeUtil.js.map +2 -2
  5. package/dist-cjs/lib/shapes/shared/ShapeFill.js +1 -1
  6. package/dist-cjs/lib/shapes/shared/ShapeFill.js.map +2 -2
  7. package/dist-cjs/lib/ui/components/primitives/TldrawUiTooltip.js +47 -85
  8. package/dist-cjs/lib/ui/components/primitives/TldrawUiTooltip.js.map +2 -2
  9. package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuContext.js.map +2 -2
  10. package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuGroup.js +0 -10
  11. package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuGroup.js.map +2 -2
  12. package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuItem.js +1 -18
  13. package/dist-cjs/lib/ui/components/primitives/menus/TldrawUiMenuItem.js.map +2 -2
  14. package/dist-cjs/lib/ui/hooks/useTools.js +21 -3
  15. package/dist-cjs/lib/ui/hooks/useTools.js.map +2 -2
  16. package/dist-cjs/lib/ui/version.js +3 -3
  17. package/dist-cjs/lib/ui/version.js.map +1 -1
  18. package/dist-esm/index.d.mts +1 -1
  19. package/dist-esm/index.mjs +1 -1
  20. package/dist-esm/lib/shapes/frame/FrameShapeUtil.mjs +4 -4
  21. package/dist-esm/lib/shapes/frame/FrameShapeUtil.mjs.map +2 -2
  22. package/dist-esm/lib/shapes/shared/ShapeFill.mjs +1 -1
  23. package/dist-esm/lib/shapes/shared/ShapeFill.mjs.map +2 -2
  24. package/dist-esm/lib/ui/components/primitives/TldrawUiTooltip.mjs +56 -87
  25. package/dist-esm/lib/ui/components/primitives/TldrawUiTooltip.mjs.map +2 -2
  26. package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuContext.mjs.map +2 -2
  27. package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuGroup.mjs +0 -10
  28. package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuGroup.mjs.map +2 -2
  29. package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuItem.mjs +1 -18
  30. package/dist-esm/lib/ui/components/primitives/menus/TldrawUiMenuItem.mjs.map +2 -2
  31. package/dist-esm/lib/ui/hooks/useTools.mjs +22 -3
  32. package/dist-esm/lib/ui/hooks/useTools.mjs.map +2 -2
  33. package/dist-esm/lib/ui/version.mjs +3 -3
  34. package/dist-esm/lib/ui/version.mjs.map +1 -1
  35. package/package.json +3 -3
  36. package/src/lib/shapes/frame/FrameShapeUtil.tsx +12 -4
  37. package/src/lib/shapes/shared/ShapeFill.tsx +1 -1
  38. package/src/lib/ui/components/primitives/TldrawUiTooltip.tsx +64 -106
  39. package/src/lib/ui/components/primitives/menus/TldrawUiMenuContext.tsx +0 -1
  40. package/src/lib/ui/components/primitives/menus/TldrawUiMenuGroup.tsx +0 -10
  41. package/src/lib/ui/components/primitives/menus/TldrawUiMenuItem.tsx +2 -16
  42. package/src/lib/ui/hooks/useTools.tsx +25 -3
  43. package/src/lib/ui/version.ts +3 -3
  44. package/src/lib/ui.css +5 -6
  45. package/tldraw.css +5 -6
package/tldraw.css CHANGED
@@ -2861,7 +2861,6 @@ it from receiving any pointer events or affecting the cursor. */
2861
2861
  .tlui-layout__bottom {
2862
2862
  grid-row: 2;
2863
2863
  width: 100%;
2864
- overflow: hidden;
2865
2864
  }
2866
2865
 
2867
2866
  .tlui-layout__bottom__main {
@@ -3053,6 +3052,10 @@ it from receiving any pointer events or affecting the cursor. */
3053
3052
  opacity: 1;
3054
3053
  }
3055
3054
 
3055
+ .tlui-main-toolbar__overflow-content {
3056
+ touch-action: none;
3057
+ }
3058
+
3056
3059
  .tlui-main-toolbar__tools [data-toolbar-visible='false'],
3057
3060
  .tlui-main-toolbar__overflow-content [data-toolbar-visible='false'] {
3058
3061
  display: none;
@@ -3102,7 +3105,6 @@ it from receiving any pointer events or affecting the cursor. */
3102
3105
  max-width: 400px;
3103
3106
  width: fit-content;
3104
3107
  text-align: center;
3105
- pointer-events: none;
3106
3108
  will-change: transform, opacity;
3107
3109
  z-index: 2;
3108
3110
  }
@@ -3114,10 +3116,7 @@ it from receiving any pointer events or affecting the cursor. */
3114
3116
 
3115
3117
  [data-radix-popper-content-wrapper]:has(.tlui-tooltip) {
3116
3118
  z-index: var(--tl-layer-toasts) !important;
3117
- }
3118
-
3119
- [data-radix-popper-content-wrapper]:has(.tlui-tooltip[data-should-animate='true']) {
3120
- transition: all 0.1s ease-out;
3119
+ pointer-events: none;
3121
3120
  }
3122
3121
 
3123
3122
  /* ------------------- Debug panel ------------------ */