@eka-care/medassist-widget 0.1.100-0 → 0.1.100

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.
@@ -10043,7 +10043,7 @@ function xh({ isOpen: e, onClose: t, botName: n }) {
10043
10043
  le,
10044
10044
  {
10045
10045
  onClick: t,
10046
- className: "w-full bg-primary hover:bg-primary/90 text-white",
10046
+ className: "w-full bg-primary hover:bg-primary/90 text-primary-foreground",
10047
10047
  children: "Got it"
10048
10048
  }
10049
10049
  )
@@ -10240,14 +10240,13 @@ function cl({
10240
10240
  let ne = null;
10241
10241
  const ye = () => {
10242
10242
  const he = window.visualViewport;
10243
- if (!Z || !he) return;
10244
- const ve = Math.max(
10245
- 0,
10246
- window.innerHeight - he.height - he.offsetTop
10247
- );
10248
- ne && cancelAnimationFrame(ne), ne = requestAnimationFrame(() => {
10243
+ !Z || !he || (ne && cancelAnimationFrame(ne), ne = requestAnimationFrame(() => {
10244
+ const ve = Math.max(
10245
+ 0,
10246
+ Math.round(Z.offsetHeight - he.height - he.offsetTop)
10247
+ );
10249
10248
  Z.style.setProperty("--keyboard-inset", `${ve}px`);
10250
- });
10249
+ }));
10251
10250
  };
10252
10251
  return window.visualViewport ? (window.visualViewport.addEventListener("resize", ye), window.visualViewport.addEventListener("scroll", ye), ye(), () => {
10253
10252
  ne && cancelAnimationFrame(ne), window.visualViewport?.removeEventListener("resize", ye), window.visualViewport?.removeEventListener("scroll", ye), Z.style.removeProperty("--keyboard-inset");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eka-care/medassist-widget",
3
3
  "description": "MedAssist Widget react application",
4
- "version": "0.1.100-0",
4
+ "version": "0.1.100",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"