@tightknitai/block-kitchen 0.10.10 → 0.10.12

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.cjs CHANGED
@@ -9497,11 +9497,13 @@ function BlockRow({
9497
9497
  {
9498
9498
  className: cn(
9499
9499
  // Hidden on mobile in favor of the inline row below; on desktop
9500
- // reveal on hover, on focus inside the row (so Tab-stops on the
9501
- // floating buttons themselves keep them visible), and when there
9500
+ // reveal on hover, on keyboard focus inside the row (so Tab-stops on
9501
+ // the floating buttons themselves keep them visible), and when there
9502
9502
  // are validation errors worth surfacing immediately.
9503
+ // :focus-visible, not :focus-within — a drag leaves pointer focus on
9504
+ // the block, which would otherwise pin the toolbar open until a click.
9503
9505
  "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",
9504
- hasErrors ? "opacity-100" : "opacity-0 group-hover:opacity-100 group-focus-within:opacity-100"
9506
+ hasErrors ? "opacity-100" : "opacity-0 group-hover:opacity-100 group-has-[:focus-visible]:opacity-100"
9505
9507
  ),
9506
9508
  children: [
9507
9509
  hasErrors ? /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
@@ -9811,7 +9813,7 @@ function ContainerRow({
9811
9813
  {
9812
9814
  className: cn(
9813
9815
  "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",
9814
- hasErrors ? "opacity-100" : "opacity-0 group-hover/container:opacity-100 group-focus-within/container:opacity-100"
9816
+ hasErrors ? "opacity-100" : "opacity-0 group-hover/container:opacity-100 group-has-[:focus-visible]/container:opacity-100"
9815
9817
  ),
9816
9818
  children: [
9817
9819
  hasErrors ? /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [