@tangle-network/agent-app 4.0.39 → 4.0.41
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/assistant/index.js +4 -18
- package/dist/assistant/index.js.map +1 -1
- package/dist/assistant/usePanelPrefs.d.ts +1 -7
- package/dist/{chunk-23FH5TF5.js → chunk-M2NKUZYV.js} +16 -1
- package/dist/chunk-M2NKUZYV.js.map +1 -0
- package/dist/{chunk-DPD7LY3T.js → chunk-N6EWZGTH.js} +37 -34
- package/dist/chunk-N6EWZGTH.js.map +1 -0
- package/dist/hub-approvals-react/index.js +4 -14
- package/dist/hub-approvals-react/index.js.map +1 -1
- package/dist/public-consultation/index.d.ts +1 -1
- package/dist/web-react/chat-message-body.d.ts +8 -4
- package/dist/web-react/index.js +2 -2
- package/dist/web-react/media-query.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunk-23FH5TF5.js.map +0 -1
- package/dist/chunk-DPD7LY3T.js.map +0 -1
package/dist/assistant/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ResizeHandle,
|
|
4
4
|
chatToolCallPart,
|
|
5
5
|
resolveToolPresentation
|
|
6
|
-
} from "../chunk-
|
|
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
|
|
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
|