@clubmed/usg-chat-ui 1.4.1 → 1.5.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.
- package/README.md +6 -3
- package/assets/style.css +1 -1
- package/chunks/react.esm.js +1 -0
- package/chunks/react.esm.js.map +1 -1
- package/contexts/ChatJiraContext.js +3 -3
- package/organisms/canvas/CanvasLayout.js +1 -1
- package/organisms/canvas/CanvasLayout.js.map +1 -1
- package/organisms/chat/hooks/useChat.js +74 -74
- package/organisms/chat/hooks/useChat.js.map +1 -1
- package/organisms/chat/hooks/useChat.test.d.ts +1 -0
- package/organisms/chat/hooks/useChat.test.js +218 -0
- package/organisms/chat/hooks/useChat.test.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as h } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as C,
|
|
2
|
+
import { createContext as C, useContext as c, useState as e, useCallback as d } from "react";
|
|
3
3
|
const a = C(null);
|
|
4
4
|
function J({ children: t }) {
|
|
5
|
-
const [i, o] = e(!1), [r, n] = e({ authUrl: "", threadId: "" }), s =
|
|
5
|
+
const [i, o] = e(!1), [r, n] = e({ authUrl: "", threadId: "" }), s = d((u) => {
|
|
6
6
|
n({
|
|
7
7
|
...r,
|
|
8
8
|
...u
|
|
@@ -16,7 +16,7 @@ function J({ children: t }) {
|
|
|
16
16
|
}, children: t });
|
|
17
17
|
}
|
|
18
18
|
function p() {
|
|
19
|
-
const t =
|
|
19
|
+
const t = c(a);
|
|
20
20
|
if (!t)
|
|
21
21
|
throw new Error("useChatJira must be used within a ChatProvider");
|
|
22
22
|
return t;
|
|
@@ -5078,7 +5078,7 @@ function _u({ children: t }) {
|
|
|
5078
5078
|
animate: { x: 0 },
|
|
5079
5079
|
exit: { x: "100%" },
|
|
5080
5080
|
transition: { type: "spring", damping: 30, stiffness: 300 },
|
|
5081
|
-
className: "fixed lg:relative right-0 top-0 h-screen w-full bg-card shadow-2xl lg:shadow-none z-50
|
|
5081
|
+
className: "fixed lg:relative right-0 top-0 h-screen w-full bg-card shadow-2xl lg:shadow-none z-50 overflow-hidden flex flex-col lg:border-l border-border",
|
|
5082
5082
|
ref: d,
|
|
5083
5083
|
style: {
|
|
5084
5084
|
width: e && typeof window < "u" && window.innerWidth >= 1024 ? y() : "100%"
|