@wallavi/widget 1.3.1 → 1.3.2

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/index.js CHANGED
@@ -850,6 +850,24 @@ function BubbleWidget({
850
850
  "aria-hidden": !open,
851
851
  style: { display: open ? "block" : "none", position: "relative" },
852
852
  children: [
853
+ /* @__PURE__ */ jsxRuntime.jsx(
854
+ "div",
855
+ {
856
+ style: {
857
+ width: expanded ? Math.min(expandedWidth, typeof window !== "undefined" ? window.innerWidth - 40 : expandedWidth) : width,
858
+ height: expanded ? expandedHeight : height,
859
+ transition: "width 0.3s ease, height 0.3s ease"
860
+ },
861
+ children: /* @__PURE__ */ jsxRuntime.jsx(
862
+ ChatWidget,
863
+ {
864
+ ...mergedConfig,
865
+ hideCloseButton: true,
866
+ className: cn4("shadow-2xl h-full", panelClassName)
867
+ }
868
+ )
869
+ }
870
+ ),
853
871
  /* @__PURE__ */ jsxRuntime.jsxs(
854
872
  "div",
855
873
  {
@@ -907,24 +925,6 @@ function BubbleWidget({
907
925
  )
908
926
  ]
909
927
  }
910
- ),
911
- /* @__PURE__ */ jsxRuntime.jsx(
912
- "div",
913
- {
914
- style: {
915
- width: expanded ? Math.min(expandedWidth, typeof window !== "undefined" ? window.innerWidth - 40 : expandedWidth) : width,
916
- height: expanded ? expandedHeight : height,
917
- transition: "width 0.3s ease, height 0.3s ease"
918
- },
919
- children: /* @__PURE__ */ jsxRuntime.jsx(
920
- ChatWidget,
921
- {
922
- ...mergedConfig,
923
- hideCloseButton: true,
924
- className: cn4("shadow-2xl h-full", panelClassName)
925
- }
926
- )
927
- }
928
928
  )
929
929
  ]
930
930
  }
package/dist/index.mjs CHANGED
@@ -824,6 +824,24 @@ function BubbleWidget({
824
824
  "aria-hidden": !open,
825
825
  style: { display: open ? "block" : "none", position: "relative" },
826
826
  children: [
827
+ /* @__PURE__ */ jsx(
828
+ "div",
829
+ {
830
+ style: {
831
+ width: expanded ? Math.min(expandedWidth, typeof window !== "undefined" ? window.innerWidth - 40 : expandedWidth) : width,
832
+ height: expanded ? expandedHeight : height,
833
+ transition: "width 0.3s ease, height 0.3s ease"
834
+ },
835
+ children: /* @__PURE__ */ jsx(
836
+ ChatWidget,
837
+ {
838
+ ...mergedConfig,
839
+ hideCloseButton: true,
840
+ className: cn4("shadow-2xl h-full", panelClassName)
841
+ }
842
+ )
843
+ }
844
+ ),
827
845
  /* @__PURE__ */ jsxs(
828
846
  "div",
829
847
  {
@@ -881,24 +899,6 @@ function BubbleWidget({
881
899
  )
882
900
  ]
883
901
  }
884
- ),
885
- /* @__PURE__ */ jsx(
886
- "div",
887
- {
888
- style: {
889
- width: expanded ? Math.min(expandedWidth, typeof window !== "undefined" ? window.innerWidth - 40 : expandedWidth) : width,
890
- height: expanded ? expandedHeight : height,
891
- transition: "width 0.3s ease, height 0.3s ease"
892
- },
893
- children: /* @__PURE__ */ jsx(
894
- ChatWidget,
895
- {
896
- ...mergedConfig,
897
- hideCloseButton: true,
898
- className: cn4("shadow-2xl h-full", panelClassName)
899
- }
900
- )
901
- }
902
902
  )
903
903
  ]
904
904
  }
package/package.json CHANGED
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "private": false,
35
35
  "types": "./dist/index.d.ts",
36
- "version": "1.3.1",
36
+ "version": "1.3.2",
37
37
  "scripts": {
38
38
  "build": "tsup",
39
39
  "typecheck": "tsc --noEmit"