@2uinc/frontend-component-xpert-chatbot 1.40.31-alpha.1 → 1.40.31

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.
@@ -2832,15 +2832,20 @@ function Gu({
2832
2832
  children: i,
2833
2833
  ...o
2834
2834
  }) {
2835
- const { isMobile: s } = Ie(jt), [u, l] = Te(!1), c = u ? "Expand chatbot launch button" : "Collapse chatbot launch button", h = (p) => {
2836
- const m = p.target?.closest?.(
2835
+ const { isMobile: s } = Ie(jt), [u, l] = Te(!1), c = u ? "Expand chatbot launch button" : "Collapse chatbot launch button", h = (m) => {
2836
+ const y = m.target?.closest?.(
2837
2837
  '[data-collapse-toggle="true"]'
2838
2838
  );
2839
- if (!s && r && m) {
2840
- p.preventDefault(), p.stopPropagation(), l((y) => !y);
2839
+ if (!s && r && y) {
2840
+ m.preventDefault(), m.stopPropagation(), l((b) => !b);
2841
2841
  return;
2842
2842
  }
2843
- n(p);
2843
+ n(m);
2844
+ }, p = (m) => {
2845
+ const y = m.target?.closest?.(
2846
+ '[data-collapse-toggle="true"]'
2847
+ );
2848
+ !s && r && y && m.preventDefault();
2844
2849
  };
2845
2850
  return /* @__PURE__ */ S.jsxs(
2846
2851
  "button",
@@ -2859,8 +2864,9 @@ function Gu({
2859
2864
  t
2860
2865
  ),
2861
2866
  style: a,
2862
- onClick: h,
2863
2867
  ...o,
2868
+ onMouseDown: p,
2869
+ onClick: h,
2864
2870
  children: [
2865
2871
  !s && r && /* @__PURE__ */ S.jsx(
2866
2872
  "span",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.40.31-alpha.1",
3
+ "version": "1.40.31",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/2uinc/frontend-component-xpert-chatbot.git"