@tangle-network/agent-app 4.0.39 → 4.0.40

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 {
3
3
  ResizeHandle,
4
4
  chatToolCallPart,
5
5
  resolveToolPresentation
6
- } from "../chunk-DPD7LY3T.js";
6
+ } from "../chunk-N6EWZGTH.js";
7
7
  import "../chunk-UHSUY6H6.js";
8
8
  import "../chunk-3HUFJ5LO.js";
9
9
  import "../chunk-7PULOECS.js";
@@ -26,7 +26,9 @@ import {
26
26
  import "../chunk-ZAMHLXNS.js";
27
27
  import "../chunk-SJWIZT7B.js";
28
28
  import "../chunk-RASGKEAL.js";
29
- import "../chunk-23FH5TF5.js";
29
+ import {
30
+ useMediaQuery
31
+ } from "../chunk-M2NKUZYV.js";
30
32
  import "../chunk-OTSNOIFJ.js";
31
33
  import {
32
34
  AsyncView
@@ -2102,22 +2104,6 @@ function usePanelPrefs(userId, geometry = DEFAULT_GEOMETRY) {
2102
2104
  nudgeWidth
2103
2105
  };
2104
2106
  }
2105
- function useMediaQuery(query, fallback = true) {
2106
- const [matches, setMatches] = useState4(
2107
- () => typeof window !== "undefined" && typeof window.matchMedia === "function" ? window.matchMedia(query).matches : fallback
2108
- );
2109
- useEffect4(() => {
2110
- if (typeof window === "undefined" || typeof window.matchMedia !== "function") {
2111
- return;
2112
- }
2113
- const mq = window.matchMedia(query);
2114
- const update = () => setMatches(mq.matches);
2115
- update();
2116
- mq.addEventListener("change", update);
2117
- return () => mq.removeEventListener("change", update);
2118
- }, [query]);
2119
- return matches;
2120
- }
2121
2107
  function useViewportWidth() {
2122
2108
  const [width, setWidth] = useState4(
2123
2109
  () => typeof window === "undefined" ? Number.POSITIVE_INFINITY : window.innerWidth