@tightknitai/block-kitchen 0.10.10 → 0.10.11

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.
package/dist/index.js CHANGED
@@ -9467,11 +9467,13 @@ function BlockRow({
9467
9467
  {
9468
9468
  className: cn(
9469
9469
  // Hidden on mobile in favor of the inline row below; on desktop
9470
- // reveal on hover, on focus inside the row (so Tab-stops on the
9471
- // floating buttons themselves keep them visible), and when there
9470
+ // reveal on hover, on keyboard focus inside the row (so Tab-stops on
9471
+ // the floating buttons themselves keep them visible), and when there
9472
9472
  // are validation errors worth surfacing immediately.
9473
+ // :focus-visible, not :focus-within — a drag leaves pointer focus on
9474
+ // the block, which would otherwise pin the toolbar open until a click.
9473
9475
  "absolute -top-3 right-2 z-10 hidden items-center gap-0.5 rounded-md border bg-background p-0.5 shadow-sm transition-opacity md:flex",
9474
- hasErrors ? "opacity-100" : "opacity-0 group-hover:opacity-100 group-focus-within:opacity-100"
9476
+ hasErrors ? "opacity-100" : "opacity-0 group-hover:opacity-100 group-has-[:focus-visible]:opacity-100"
9475
9477
  ),
9476
9478
  children: [
9477
9479
  hasErrors ? /* @__PURE__ */ jsxs(Tooltip, { children: [
@@ -9781,7 +9783,7 @@ function ContainerRow({
9781
9783
  {
9782
9784
  className: cn(
9783
9785
  "absolute -top-3 right-2 z-10 hidden items-center gap-0.5 rounded-md border bg-background p-0.5 shadow-sm transition-opacity md:flex",
9784
- hasErrors ? "opacity-100" : "opacity-0 group-hover/container:opacity-100 group-focus-within/container:opacity-100"
9786
+ hasErrors ? "opacity-100" : "opacity-0 group-hover/container:opacity-100 group-has-[:focus-visible]/container:opacity-100"
9785
9787
  ),
9786
9788
  children: [
9787
9789
  hasErrors ? /* @__PURE__ */ jsxs(Tooltip, { children: [