@protobase/ui 0.65.0 → 0.65.1

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.
@@ -3,7 +3,7 @@ import { text } from "./messages.js";
3
3
  import { Breadcrumb, inApp } from "./breadcrumb.js";
4
4
  import { backTarget } from "./back-target.js";
5
5
  import { GlobalSearch } from "./global-search.js";
6
- import { useEffect, useRef, useState } from "react";
6
+ import { useLayoutEffect, useRef, useState } from "react";
7
7
  import { ChevronLeft, Menu, Search, X } from "lucide-react";
8
8
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region src/app-shell/top-bar.tsx
@@ -13,7 +13,7 @@ const TopBar = ({ breadcrumb, onNavigate, onBack, actions, onMenu, menuOpen, men
13
13
  const [searchOpen, setSearchOpen] = useState(false);
14
14
  const back = backTarget(breadcrumb);
15
15
  const desktopSearch = useRef(null);
16
- useEffect(() => {
16
+ useLayoutEffect(() => {
17
17
  if (!search) return;
18
18
  const onKey = (event) => {
19
19
  if (event.key.toLowerCase() !== "k" || !(event.metaKey || event.ctrlKey)) return;
package/dist/package.js CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.65.0";
2
+ var version = "0.65.1";
3
3
  var protobase = { "pluginApi": 1 };
4
4
  //#endregion
5
5
  export { protobase, version };