@clubmed/usg-chat-ui 1.5.0 → 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.
@@ -1,8 +1,8 @@
1
1
  import { jsx as h } from "react/jsx-runtime";
2
- import { createContext as C, useState as e, useCallback as c, useContext as d } from "react";
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 = c((u) => {
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 = d(a);
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 lg:z-auto overflow-hidden flex flex-col lg:border-l border-border relative",
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%"