@alexandregme/zljs 3.13.2 → 3.15.0

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/CHANGELOG.md CHANGED
@@ -8,6 +8,35 @@ A change that needs action in an app has a **Migration** note. When updating, re
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [3.15.0] - 2026-11-18
12
+
13
+ ### Added
14
+
15
+ - `TopNav`, and so `Navigation` on a small screen, shows an install button before the logout button in the account panel: it puts the app on the home screen of the phone, to open like an installed app. It only shows when the browser can do it. Where the browser offers the install (Chrome on Android), a tap shows its install dialog. On an iPhone a tap opens a modal with the steps. Opened from the home screen, or in a browser that can't install, there is no button. `install` takes its texts: `label`, `instructionsTitle` and `instructions`
16
+ - `useInstallApp` and `InstallAppButton`, the hook and the button `TopNav` uses, for an app that puts the install somewhere else
17
+ - `Icon` has the `Download` icon
18
+
19
+ #### Migration
20
+
21
+ An app that uses `TopNav` or `Navigation` gets the install button when it updates:
22
+
23
+ - An app in another language passes `install={{ label, instructionsTitle, instructions }}`, or the button and its modal are in English. Find where with `grep -rnE "<(TopNav|Navigation)" app src pages`
24
+ - Chrome on Android only offers the install to an app with a web app manifest, so without one the button never shows there. In Next.js, add `app/manifest.ts` with `name`, `icons` (192px and 512px), `start_url` and `display: "standalone"`
25
+ - On an iPhone the button shows with or without a manifest. Without one, the app opens from the home screen inside the browser
26
+
27
+ ## [3.14.0] - 2026-11-12
28
+
29
+ ### Added
30
+
31
+ - `RootLayout` counts the page views with [Vercel Web Analytics](https://vercel.com/docs/analytics): it renders `Analytics` from `@vercel/analytics/next`, which zljs now installs, so an app has nothing to install or import. It adds a script to the document and nothing to the page. It is always on. In development it sends nothing and stays silent in the console
32
+
33
+ #### Migration
34
+
35
+ An app that uses `RootLayout` starts loading the analytics script when it updates:
36
+
37
+ - Enable Web Analytics in the project on Vercel (Analytics tab), then deploy. Until it is enabled the script answers 404 and nothing is counted
38
+ - An app that already renders `<Analytics />` from `@vercel/analytics` itself: remove its own, or the views are counted by two components. Find it with `grep -rn "@vercel/analytics" app src pages`
39
+
11
40
  ## [3.13.1] - 2026-11-12
12
41
 
13
42
  ### Fixed
@@ -530,7 +559,9 @@ Replace the shade with the class of the `color` being tested, for example `/(^|\
530
559
 
531
560
  The message of `Error` is `text-zl-danger`. `none` and `ghost` didn't change.
532
561
 
533
- [Unreleased]: https://github.com/alexandregme/zljs/compare/v3.13.1...HEAD
562
+ [Unreleased]: https://github.com/alexandregme/zljs/compare/v3.15.0...HEAD
563
+ [3.15.0]: https://github.com/alexandregme/zljs/compare/v3.14.0...v3.15.0
564
+ [3.14.0]: https://github.com/alexandregme/zljs/compare/v3.13.1...v3.14.0
534
565
  [3.13.1]: https://github.com/alexandregme/zljs/compare/v3.13.0...v3.13.1
535
566
  [3.13.0]: https://github.com/alexandregme/zljs/compare/v3.11.0...v3.13.0
536
567
  [3.11.0]: https://github.com/alexandregme/zljs/compare/v3.10.0...v3.11.0
package/README.md CHANGED
@@ -43,6 +43,23 @@ import { FormProvider, FormInput } from "@alexandregme/zljs/rhf";
43
43
  <Button onClick={handleClick}>Submit</Button>;
44
44
  ```
45
45
 
46
+ `RootLayout` goes in the root layout of a Next.js app, around its content. It renders the page's `<main>` and counts the page views with [Vercel Web Analytics](https://vercel.com/docs/analytics), so the app installs nothing for it: enable Web Analytics in the project on Vercel and deploy.
47
+
48
+ ```tsx
49
+ // app/layout.tsx
50
+ import { RootLayout } from "@alexandregme/zljs/next";
51
+
52
+ export default function Layout({ children }: { children: React.ReactNode }) {
53
+ return (
54
+ <html lang="en">
55
+ <body>
56
+ <RootLayout>{children}</RootLayout>
57
+ </body>
58
+ </html>
59
+ );
60
+ }
61
+ ```
62
+
46
63
  ## Colors
47
64
 
48
65
  The components work with no setup, using the default colors. To use your own, redefine the values you want after importing the styles:
@@ -851,8 +851,119 @@ var Sidebar = ({
851
851
  ] });
852
852
  };
853
853
 
854
+ // features/app/components/install-app-button/install-app-button.const.ts
855
+ var INSTALL_APP_MODAL_ID = "zljs-install-app";
856
+
857
+ // features/app/components/install-app-button/install-app-button.tsx
858
+ import { Fragment as Fragment5, jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
859
+ var InstallAppButton = ({
860
+ way,
861
+ label = "Install app",
862
+ size = "md",
863
+ instructionsTitle = "Install this app",
864
+ instructions = "Tap the Share button of the browser, then Add to Home Screen.",
865
+ onPrompt
866
+ }) => {
867
+ const openModal = useAppStore((s) => s.openModal);
868
+ const install = () => {
869
+ if (way === "prompt") {
870
+ onPrompt();
871
+ } else {
872
+ openModal(INSTALL_APP_MODAL_ID);
873
+ }
874
+ };
875
+ return /* @__PURE__ */ jsxs6(Fragment5, { children: [
876
+ /* @__PURE__ */ jsx11(
877
+ Button,
878
+ {
879
+ color: "ghost",
880
+ size,
881
+ icon: "Download",
882
+ "aria-label": label,
883
+ onClick: install
884
+ }
885
+ ),
886
+ way === "instructions" && /* @__PURE__ */ jsx11(
887
+ ConnectedModal,
888
+ {
889
+ modalId: INSTALL_APP_MODAL_ID,
890
+ title: instructionsTitle,
891
+ description: instructions,
892
+ size: "xs"
893
+ }
894
+ )
895
+ ] });
896
+ };
897
+
898
+ // features/app/hooks/use-install-app/use-install-app.ts
899
+ import { useEffect, useState as useState2, useSyncExternalStore } from "react";
900
+
901
+ // features/app/hooks/use-install-app/use-install-app.const.ts
902
+ var INSTALL_APP_IOS_USER_AGENT = /iPhone|iPad|iPod/i;
903
+ var INSTALLED_APP_QUERY = "(display-mode: standalone)";
904
+
905
+ // features/app/hooks/use-install-app/use-install-app.ts
906
+ var subscribeToNothing = () => () => {
907
+ };
908
+ var needsInstructions = () => INSTALL_APP_IOS_USER_AGENT.test(navigator.userAgent) && !window.matchMedia(INSTALLED_APP_QUERY).matches;
909
+ var notOnServer = () => false;
910
+ var useInstallApp = () => {
911
+ const [promptEvent, setPromptEvent] = useState2(
912
+ null
913
+ );
914
+ const instructions = useSyncExternalStore(
915
+ subscribeToNothing,
916
+ needsInstructions,
917
+ notOnServer
918
+ );
919
+ useEffect(() => {
920
+ const keep = (event) => {
921
+ event.preventDefault();
922
+ setPromptEvent(event);
923
+ };
924
+ const forget = () => {
925
+ setPromptEvent(null);
926
+ };
927
+ window.addEventListener("beforeinstallprompt", keep);
928
+ window.addEventListener("appinstalled", forget);
929
+ return () => {
930
+ window.removeEventListener("beforeinstallprompt", keep);
931
+ window.removeEventListener("appinstalled", forget);
932
+ };
933
+ }, []);
934
+ const prompt = () => {
935
+ if (!promptEvent) {
936
+ return;
937
+ }
938
+ void promptEvent.prompt();
939
+ setPromptEvent(null);
940
+ };
941
+ if (promptEvent) {
942
+ return { way: "prompt", prompt };
943
+ }
944
+ return { way: instructions ? "instructions" : null, prompt };
945
+ };
946
+
947
+ // features/app/hooks/use-is-desktop/use-is-desktop.ts
948
+ import { useSyncExternalStore as useSyncExternalStore2 } from "react";
949
+
950
+ // features/app/hooks/use-is-desktop/use-is-desktop.const.ts
951
+ var DESKTOP_QUERY = "(min-width: 768px)";
952
+
953
+ // features/app/hooks/use-is-desktop/use-is-desktop.ts
954
+ var subscribe = (onChange) => {
955
+ const media = window.matchMedia(DESKTOP_QUERY);
956
+ media.addEventListener("change", onChange);
957
+ return () => {
958
+ media.removeEventListener("change", onChange);
959
+ };
960
+ };
961
+ var isDesktop = () => window.matchMedia(DESKTOP_QUERY).matches;
962
+ var unknown = () => null;
963
+ var useIsDesktop = () => useSyncExternalStore2(subscribe, isDesktop, unknown);
964
+
854
965
  // core/top-nav/top-nav.tsx
855
- import { useEffect, useRef, useState as useState2 } from "react";
966
+ import { useEffect as useEffect2, useRef, useState as useState3 } from "react";
856
967
 
857
968
  // core/top-nav/top-nav.styles.ts
858
969
  import { tv as tv9 } from "tailwind-variants";
@@ -879,7 +990,7 @@ var topNav = tv9({
879
990
  });
880
991
 
881
992
  // core/top-nav/top-nav.tsx
882
- import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
993
+ import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
883
994
  var TopNav = ({
884
995
  sections,
885
996
  user,
@@ -889,13 +1000,15 @@ var TopNav = ({
889
1000
  navLabel = "Main navigation",
890
1001
  menuLabel = "Menu",
891
1002
  accountLabel = "Account",
1003
+ install = {},
892
1004
  logout = {},
893
1005
  onLogout
894
1006
  }) => {
895
- const [open, setOpen] = useState2(null);
1007
+ const [open, setOpen] = useState3(null);
896
1008
  const pressedInside = useRef(false);
1009
+ const installApp = useInstallApp();
897
1010
  const styles = topNav();
898
- useEffect(() => {
1011
+ useEffect2(() => {
899
1012
  if (!open) {
900
1013
  return;
901
1014
  }
@@ -927,9 +1040,9 @@ var TopNav = ({
927
1040
  const close = () => {
928
1041
  setOpen(null);
929
1042
  };
930
- return /* @__PURE__ */ jsxs6("header", { className: styles.base(), onPointerDown: markPressInside, children: [
931
- /* @__PURE__ */ jsxs6("div", { className: styles.bar(), children: [
932
- hasLinks ? /* @__PURE__ */ jsx11(
1043
+ return /* @__PURE__ */ jsxs7("header", { className: styles.base(), onPointerDown: markPressInside, children: [
1044
+ /* @__PURE__ */ jsxs7("div", { className: styles.bar(), children: [
1045
+ hasLinks ? /* @__PURE__ */ jsx12(
933
1046
  Button,
934
1047
  {
935
1048
  color: "ghost",
@@ -939,8 +1052,8 @@ var TopNav = ({
939
1052
  "aria-expanded": menuOpen,
940
1053
  onClick: toggleMenu
941
1054
  }
942
- ) : /* @__PURE__ */ jsx11("span", { "aria-hidden": "true", className: styles.spacer() }),
943
- /* @__PURE__ */ jsx11("div", { className: styles.home(), children: homeHref && /* @__PURE__ */ jsxs6(
1055
+ ) : /* @__PURE__ */ jsx12("span", { "aria-hidden": "true", className: styles.spacer() }),
1056
+ /* @__PURE__ */ jsx12("div", { className: styles.home(), children: homeHref && /* @__PURE__ */ jsxs7(
944
1057
  Link,
945
1058
  {
946
1059
  href: homeHref,
@@ -950,12 +1063,12 @@ var TopNav = ({
950
1063
  "aria-label": homeLabel || "Home",
951
1064
  onClick: close,
952
1065
  children: [
953
- /* @__PURE__ */ jsx11(Icon, { name: "Home" }),
954
- homeLabel && /* @__PURE__ */ jsx11(Text, { as: "span", variant: "caption", children: homeLabel })
1066
+ /* @__PURE__ */ jsx12(Icon, { name: "Home" }),
1067
+ homeLabel && /* @__PURE__ */ jsx12(Text, { as: "span", variant: "caption", children: homeLabel })
955
1068
  ]
956
1069
  }
957
1070
  ) }),
958
- /* @__PURE__ */ jsx11(
1071
+ /* @__PURE__ */ jsx12(
959
1072
  Button,
960
1073
  {
961
1074
  color: "ghost",
@@ -967,12 +1080,23 @@ var TopNav = ({
967
1080
  }
968
1081
  )
969
1082
  ] }),
970
- accountOpen && /* @__PURE__ */ jsxs6("div", { className: styles.account(), children: [
971
- /* @__PURE__ */ jsxs6("div", { className: styles.user(), children: [
972
- /* @__PURE__ */ jsx11(Text, { as: "span", variant: "caption", children: user.name }),
973
- /* @__PURE__ */ jsx11(Text, { as: "span", variant: "caption", children: user.email })
1083
+ accountOpen && /* @__PURE__ */ jsxs7("div", { className: styles.account(), children: [
1084
+ /* @__PURE__ */ jsxs7("div", { className: styles.user(), children: [
1085
+ /* @__PURE__ */ jsx12(Text, { as: "span", variant: "caption", children: user.name }),
1086
+ /* @__PURE__ */ jsx12(Text, { as: "span", variant: "caption", children: user.email })
974
1087
  ] }),
975
- /* @__PURE__ */ jsx11(
1088
+ installApp.way && /* @__PURE__ */ jsx12(
1089
+ InstallAppButton,
1090
+ {
1091
+ way: installApp.way,
1092
+ size: "lg",
1093
+ label: install.label,
1094
+ instructionsTitle: install.instructionsTitle,
1095
+ instructions: install.instructions,
1096
+ onPrompt: installApp.prompt
1097
+ }
1098
+ ),
1099
+ /* @__PURE__ */ jsx12(
976
1100
  SignOutButton,
977
1101
  {
978
1102
  size: "lg",
@@ -985,7 +1109,7 @@ var TopNav = ({
985
1109
  }
986
1110
  )
987
1111
  ] }),
988
- menuOpen && /* @__PURE__ */ jsx11("nav", { "aria-label": navLabel, className: styles.menu(), children: sections.map((section2, i) => /* @__PURE__ */ jsx11("div", { className: styles.section(), children: section2.items.map((item) => /* @__PURE__ */ jsxs6(
1112
+ menuOpen && /* @__PURE__ */ jsx12("nav", { "aria-label": navLabel, className: styles.menu(), children: sections.map((section2, i) => /* @__PURE__ */ jsx12("div", { className: styles.section(), children: section2.items.map((item) => /* @__PURE__ */ jsxs7(
989
1113
  Link,
990
1114
  {
991
1115
  href: item.href,
@@ -995,8 +1119,8 @@ var TopNav = ({
995
1119
  "aria-label": item.label,
996
1120
  onClick: close,
997
1121
  children: [
998
- /* @__PURE__ */ jsx11(Icon, { name: item.icon }),
999
- /* @__PURE__ */ jsx11(Text, { as: "span", variant: "caption", children: item.label })
1122
+ /* @__PURE__ */ jsx12(Icon, { name: item.icon }),
1123
+ /* @__PURE__ */ jsx12(Text, { as: "span", variant: "caption", children: item.label })
1000
1124
  ]
1001
1125
  },
1002
1126
  item.href
@@ -1005,7 +1129,7 @@ var TopNav = ({
1005
1129
  };
1006
1130
 
1007
1131
  // features/toaster/components/toaster/toaster.tsx
1008
- import { useEffect as useEffect2 } from "react";
1132
+ import { useEffect as useEffect3 } from "react";
1009
1133
  import { Toaster as SonnerToaster, toast } from "sonner";
1010
1134
 
1011
1135
  // features/toaster/components/toaster/toaster.styles.ts
@@ -1033,18 +1157,18 @@ var toasterColors = {
1033
1157
  };
1034
1158
 
1035
1159
  // features/toaster/components/toaster/toaster.tsx
1036
- import { jsx as jsx12 } from "react/jsx-runtime";
1160
+ import { jsx as jsx13 } from "react/jsx-runtime";
1037
1161
  var Toaster = () => {
1038
1162
  const toasts = useToastStore((s) => s.toasts);
1039
1163
  const removeToast = useToastStore((s) => s.removeToast);
1040
1164
  const { toast: toastStyles, closeButton } = toaster();
1041
- useEffect2(() => {
1165
+ useEffect3(() => {
1042
1166
  toasts.forEach((t) => {
1043
1167
  toast[t.type](t.message, { id: `store-${t.id}` });
1044
1168
  removeToast(t.id);
1045
1169
  });
1046
1170
  }, [toasts, removeToast]);
1047
- return /* @__PURE__ */ jsx12(
1171
+ return /* @__PURE__ */ jsx13(
1048
1172
  SonnerToaster,
1049
1173
  {
1050
1174
  position: "bottom-right",
@@ -1078,19 +1202,19 @@ var spinner = tv11({
1078
1202
  });
1079
1203
 
1080
1204
  // core/spinner/spinner.tsx
1081
- import { jsx as jsx13 } from "react/jsx-runtime";
1205
+ import { jsx as jsx14 } from "react/jsx-runtime";
1082
1206
  var Spinner = ({
1083
1207
  variant = "circle",
1084
1208
  size = "md",
1085
1209
  label = "Loading"
1086
- }) => /* @__PURE__ */ jsx13(
1210
+ }) => /* @__PURE__ */ jsx14(
1087
1211
  "span",
1088
1212
  {
1089
1213
  "data-testid": "spinner",
1090
1214
  role: "status",
1091
1215
  "aria-label": label,
1092
1216
  className: spinner(),
1093
- children: /* @__PURE__ */ jsx13(Icon, { name: spinnerIcons[variant], size })
1217
+ children: /* @__PURE__ */ jsx14(Icon, { name: spinnerIcons[variant], size })
1094
1218
  }
1095
1219
  );
1096
1220
 
@@ -1101,33 +1225,15 @@ var loader = tv12({
1101
1225
  });
1102
1226
 
1103
1227
  // features/app/components/loader/loader.tsx
1104
- import { jsx as jsx14 } from "react/jsx-runtime";
1228
+ import { jsx as jsx15 } from "react/jsx-runtime";
1105
1229
  var Loader = ({ label = "Loading" }) => {
1106
1230
  const fetching = useAppStore((s) => s.fetching);
1107
1231
  if (!fetching) return null;
1108
- return /* @__PURE__ */ jsx14("div", { className: loader(), children: /* @__PURE__ */ jsx14(Spinner, { size: "lg", label }) });
1232
+ return /* @__PURE__ */ jsx15("div", { className: loader(), children: /* @__PURE__ */ jsx15(Spinner, { size: "lg", label }) });
1109
1233
  };
1110
1234
 
1111
- // features/app/hooks/use-is-desktop/use-is-desktop.ts
1112
- import { useSyncExternalStore } from "react";
1113
-
1114
- // features/app/hooks/use-is-desktop/use-is-desktop.const.ts
1115
- var DESKTOP_QUERY = "(min-width: 768px)";
1116
-
1117
- // features/app/hooks/use-is-desktop/use-is-desktop.ts
1118
- var subscribe = (onChange) => {
1119
- const media = window.matchMedia(DESKTOP_QUERY);
1120
- media.addEventListener("change", onChange);
1121
- return () => {
1122
- media.removeEventListener("change", onChange);
1123
- };
1124
- };
1125
- var isDesktop = () => window.matchMedia(DESKTOP_QUERY).matches;
1126
- var unknown = () => null;
1127
- var useIsDesktop = () => useSyncExternalStore(subscribe, isDesktop, unknown);
1128
-
1129
1235
  // features/app/components/navigation/navigation.tsx
1130
- import { jsx as jsx15 } from "react/jsx-runtime";
1236
+ import { jsx as jsx16 } from "react/jsx-runtime";
1131
1237
  var Navigation = ({
1132
1238
  mode = "auto",
1133
1239
  sections,
@@ -1141,6 +1247,7 @@ var Navigation = ({
1141
1247
  navLabel,
1142
1248
  menuLabel,
1143
1249
  accountLabel,
1250
+ install,
1144
1251
  logout,
1145
1252
  onLogout
1146
1253
  }) => {
@@ -1150,7 +1257,7 @@ var Navigation = ({
1150
1257
  return null;
1151
1258
  }
1152
1259
  if (desktop) {
1153
- return /* @__PURE__ */ jsx15(
1260
+ return /* @__PURE__ */ jsx16(
1154
1261
  Sidebar,
1155
1262
  {
1156
1263
  sections,
@@ -1167,7 +1274,7 @@ var Navigation = ({
1167
1274
  }
1168
1275
  );
1169
1276
  }
1170
- return /* @__PURE__ */ jsx15(
1277
+ return /* @__PURE__ */ jsx16(
1171
1278
  TopNav,
1172
1279
  {
1173
1280
  sections,
@@ -1178,6 +1285,7 @@ var Navigation = ({
1178
1285
  navLabel,
1179
1286
  menuLabel,
1180
1287
  accountLabel,
1288
+ install,
1181
1289
  logout,
1182
1290
  onLogout
1183
1291
  }
@@ -1185,7 +1293,7 @@ var Navigation = ({
1185
1293
  };
1186
1294
 
1187
1295
  // core/state/redux/redux-provider/redux-provider.tsx
1188
- import { useState as useState3 } from "react";
1296
+ import { useState as useState4 } from "react";
1189
1297
  import { Provider } from "react-redux";
1190
1298
 
1191
1299
  // core/state/redux/store/store.ts
@@ -1218,7 +1326,7 @@ var createReduxStore = ({
1218
1326
  };
1219
1327
 
1220
1328
  // core/state/redux/redux-provider/redux-provider.tsx
1221
- import { jsx as jsx16 } from "react/jsx-runtime";
1329
+ import { jsx as jsx17 } from "react/jsx-runtime";
1222
1330
  var ReduxProvider = ({
1223
1331
  children,
1224
1332
  reducers = {},
@@ -1226,7 +1334,7 @@ var ReduxProvider = ({
1226
1334
  preloadedState = {},
1227
1335
  coreReducers = {}
1228
1336
  }) => {
1229
- const [store] = useState3(
1337
+ const [store] = useState4(
1230
1338
  () => createReduxStore({
1231
1339
  reducers,
1232
1340
  middlewares,
@@ -1234,7 +1342,7 @@ var ReduxProvider = ({
1234
1342
  coreReducers
1235
1343
  })
1236
1344
  );
1237
- return /* @__PURE__ */ jsx16(Provider, { store, children });
1345
+ return /* @__PURE__ */ jsx17(Provider, { store, children });
1238
1346
  };
1239
1347
 
1240
1348
  // core/state/zustand/router/router.utils.ts
@@ -1326,7 +1434,7 @@ var card = tv13({
1326
1434
  });
1327
1435
 
1328
1436
  // core/card/card.tsx
1329
- import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
1437
+ import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
1330
1438
  var Card = ({
1331
1439
  children,
1332
1440
  title: title2,
@@ -1336,10 +1444,10 @@ var Card = ({
1336
1444
  }) => {
1337
1445
  const { base, header: header3 } = card({ color });
1338
1446
  const messageColor = color === "none" ? "muted" : "none";
1339
- return /* @__PURE__ */ jsxs7("div", { "data-testid": "card", className: base(), children: [
1340
- (title2 || message) && /* @__PURE__ */ jsxs7("div", { className: header3(), children: [
1341
- title2 && /* @__PURE__ */ jsx17(Heading, { level: titleLevel, children: title2 }),
1342
- message && /* @__PURE__ */ jsx17(Text, { color: messageColor, children: message })
1447
+ return /* @__PURE__ */ jsxs8("div", { "data-testid": "card", className: base(), children: [
1448
+ (title2 || message) && /* @__PURE__ */ jsxs8("div", { className: header3(), children: [
1449
+ title2 && /* @__PURE__ */ jsx18(Heading, { level: titleLevel, children: title2 }),
1450
+ message && /* @__PURE__ */ jsx18(Text, { color: messageColor, children: message })
1343
1451
  ] }),
1344
1452
  children
1345
1453
  ] });
@@ -1354,7 +1462,7 @@ var accessPending = tv14({
1354
1462
  });
1355
1463
 
1356
1464
  // features/auth/components/access-pending/access-pending.tsx
1357
- import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
1465
+ import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
1358
1466
  var AccessPending = ({
1359
1467
  title: title2 = "Waiting for approval",
1360
1468
  message = "Your access to this app has not been approved yet.",
@@ -1369,9 +1477,9 @@ var AccessPending = ({
1369
1477
  if (!user) {
1370
1478
  return null;
1371
1479
  }
1372
- return /* @__PURE__ */ jsx18(Card, { title: title2, titleLevel: 1, message, children: /* @__PURE__ */ jsxs8("div", { className: account(), children: [
1373
- /* @__PURE__ */ jsx18(Text, { variant: "caption", color: "muted", children: user.email }),
1374
- /* @__PURE__ */ jsx18(
1480
+ return /* @__PURE__ */ jsx19(Card, { title: title2, titleLevel: 1, message, children: /* @__PURE__ */ jsxs9("div", { className: account(), children: [
1481
+ /* @__PURE__ */ jsx19(Text, { variant: "caption", color: "muted", children: user.email }),
1482
+ /* @__PURE__ */ jsx19(
1375
1483
  SignOutButton,
1376
1484
  {
1377
1485
  label: signOutLabel,
@@ -1385,8 +1493,8 @@ var AccessPending = ({
1385
1493
  };
1386
1494
 
1387
1495
  // features/auth/components/auth-provider/auth-provider.tsx
1388
- import { useEffect as useEffect3 } from "react";
1389
- import { Fragment as Fragment5, jsx as jsx19 } from "react/jsx-runtime";
1496
+ import { useEffect as useEffect4 } from "react";
1497
+ import { Fragment as Fragment6, jsx as jsx20 } from "react/jsx-runtime";
1390
1498
  var AuthProvider = ({
1391
1499
  adapter,
1392
1500
  appId,
@@ -1395,7 +1503,7 @@ var AuthProvider = ({
1395
1503
  const configure = useAuthStore((s) => s.configure);
1396
1504
  const setSession = useAuthStore((s) => s.setSession);
1397
1505
  const reset = useAuthStore((s) => s.reset);
1398
- useEffect3(() => {
1506
+ useEffect4(() => {
1399
1507
  configure(adapter, appId);
1400
1508
  const unsubscribe = adapter.onSessionChange(setSession);
1401
1509
  return () => {
@@ -1403,7 +1511,7 @@ var AuthProvider = ({
1403
1511
  reset();
1404
1512
  };
1405
1513
  }, [adapter, appId, configure, setSession, reset]);
1406
- return /* @__PURE__ */ jsx19(Fragment5, { children });
1514
+ return /* @__PURE__ */ jsx20(Fragment6, { children });
1407
1515
  };
1408
1516
 
1409
1517
  // features/auth/components/login/login.const.ts
@@ -1425,7 +1533,7 @@ var login = tv15({
1425
1533
  });
1426
1534
 
1427
1535
  // features/auth/components/login/login.tsx
1428
- import { jsx as jsx20 } from "react/jsx-runtime";
1536
+ import { jsx as jsx21 } from "react/jsx-runtime";
1429
1537
  var LoginProviderButton = ({
1430
1538
  id,
1431
1539
  label,
@@ -1434,7 +1542,7 @@ var LoginProviderButton = ({
1434
1542
  const signIn = () => {
1435
1543
  onSignIn(id);
1436
1544
  };
1437
- return /* @__PURE__ */ jsx20(Button, { size: "lg", fullWidth: true, onClick: signIn, children: label });
1545
+ return /* @__PURE__ */ jsx21(Button, { size: "lg", fullWidth: true, onClick: signIn, children: label });
1438
1546
  };
1439
1547
  var Login = ({
1440
1548
  vendor,
@@ -1452,9 +1560,9 @@ var Login = ({
1452
1560
  useToastStore.getState().error(errorMessage);
1453
1561
  });
1454
1562
  };
1455
- return /* @__PURE__ */ jsx20(Card, { title: title2, titleLevel: 1, message, children: /* @__PURE__ */ jsx20("div", { className: options(), children: providers.map((provider) => {
1563
+ return /* @__PURE__ */ jsx21(Card, { title: title2, titleLevel: 1, message, children: /* @__PURE__ */ jsx21("div", { className: options(), children: providers.map((provider) => {
1456
1564
  const id = String(provider);
1457
- return /* @__PURE__ */ jsx20(
1565
+ return /* @__PURE__ */ jsx21(
1458
1566
  LoginProviderButton,
1459
1567
  {
1460
1568
  id,
@@ -1467,7 +1575,7 @@ var Login = ({
1467
1575
  };
1468
1576
 
1469
1577
  // features/auth/components/authorized/authorized.tsx
1470
- import { Fragment as Fragment6, jsx as jsx21 } from "react/jsx-runtime";
1578
+ import { Fragment as Fragment7, jsx as jsx22 } from "react/jsx-runtime";
1471
1579
  var Authorized = ({
1472
1580
  children,
1473
1581
  roles,
@@ -1476,18 +1584,18 @@ var Authorized = ({
1476
1584
  }) => {
1477
1585
  const { status, user, role } = useAuth();
1478
1586
  if (status === "loading") return null;
1479
- if (!user) return /* @__PURE__ */ jsx21(Login, { ...login2 });
1587
+ if (!user) return /* @__PURE__ */ jsx22(Login, { ...login2 });
1480
1588
  const hasRole = !roles || role !== null && roles.includes(role);
1481
- if (!user.hasAccess || !hasRole) return /* @__PURE__ */ jsx21(AccessPending, { ...accessPending2 });
1482
- return /* @__PURE__ */ jsx21(Fragment6, { children });
1589
+ if (!user.hasAccess || !hasRole) return /* @__PURE__ */ jsx22(AccessPending, { ...accessPending2 });
1590
+ return /* @__PURE__ */ jsx22(Fragment7, { children });
1483
1591
  };
1484
1592
 
1485
1593
  // features/providers/components/zustand-providers/zustand-providers.tsx
1486
- import { Fragment as Fragment7, jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
1487
- var ZustandProviders = ({ children, auth }) => /* @__PURE__ */ jsxs9(Fragment7, { children: [
1488
- /* @__PURE__ */ jsx22(Loader, {}),
1489
- /* @__PURE__ */ jsx22(Toaster, {}),
1490
- auth ? /* @__PURE__ */ jsx22(AuthProvider, { adapter: auth.adapter, appId: auth.appId, children }) : children
1594
+ import { Fragment as Fragment8, jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
1595
+ var ZustandProviders = ({ children, auth }) => /* @__PURE__ */ jsxs10(Fragment8, { children: [
1596
+ /* @__PURE__ */ jsx23(Loader, {}),
1597
+ /* @__PURE__ */ jsx23(Toaster, {}),
1598
+ auth ? /* @__PURE__ */ jsx23(AuthProvider, { adapter: auth.adapter, appId: auth.appId, children }) : children
1491
1599
  ] });
1492
1600
 
1493
1601
  export {
@@ -1505,12 +1613,14 @@ export {
1505
1613
  SignOutButton,
1506
1614
  Link,
1507
1615
  Sidebar,
1616
+ InstallAppButton,
1617
+ useInstallApp,
1618
+ useIsDesktop,
1508
1619
  TopNav,
1509
1620
  Toaster,
1510
1621
  toast2 as toast,
1511
1622
  Spinner,
1512
1623
  Loader,
1513
- useIsDesktop,
1514
1624
  Navigation,
1515
1625
  ReduxProvider,
1516
1626
  splitURLasPath,
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ import 'react-hook-form';
12
12
  */
13
13
  type Size = "sm" | "md" | "lg";
14
14
 
15
- declare const iconNames: readonly ["Check", "X", "Plus", "Minus", "Search", "Menu", "ChevronDown", "ChevronUp", "ChevronLeft", "ChevronRight", "ChevronsUp", "ArrowUp", "Pencil", "Trash2", "Save", "RefreshCw", "Home", "MessageSquare", "Users", "Store", "ShoppingCart", "BarChart3", "Brain", "Send", "LogOut", "User", "Key", "Contact", "Package", "Warehouse", "HandCoins", "Stethoscope", "LogIn", "Megaphone", "LayoutDashboard", "Smile", "Frown", "Cat", "ArrowRight", "Loader", "LoaderCircle", "CheckCircle", "XCircle", "AlertTriangle", "Info", "Route", "Navigation", "ListChecks", "Map", "MapPinOff", "SiWhatsapp", "SiFacebook", "SiInstagram", "SiShopify"];
15
+ declare const iconNames: readonly ["Check", "X", "Plus", "Minus", "Search", "Menu", "ChevronDown", "ChevronUp", "ChevronLeft", "ChevronRight", "ChevronsUp", "ArrowUp", "Pencil", "Trash2", "Save", "RefreshCw", "Home", "MessageSquare", "Users", "Store", "ShoppingCart", "BarChart3", "Brain", "Send", "LogOut", "Download", "User", "Key", "Contact", "Package", "Warehouse", "HandCoins", "Stethoscope", "LogIn", "Megaphone", "LayoutDashboard", "Smile", "Frown", "Cat", "ArrowRight", "Loader", "LoaderCircle", "CheckCircle", "XCircle", "AlertTriangle", "Info", "Route", "Navigation", "ListChecks", "Map", "MapPinOff", "SiWhatsapp", "SiFacebook", "SiInstagram", "SiShopify"];
16
16
 
17
17
  type IconName = (typeof iconNames)[number];
18
18
  interface IconProps {
@@ -327,6 +327,61 @@ interface TabsProps {
327
327
 
328
328
  declare const Tabs: ({ tabs, "aria-label": ariaLabel, defaultTab, onChange, }: TabsProps) => react.JSX.Element;
329
329
 
330
+ /**
331
+ * How the browser puts the app on the home screen: `prompt` shows its own
332
+ * install dialog, and `instructions` is for a browser with no dialog to show,
333
+ * where the user is told the steps.
334
+ */
335
+ type InstallAppWay = "prompt" | "instructions";
336
+ interface InstallApp {
337
+ /**
338
+ * How this browser installs the app. `null` when it can't, when the app is
339
+ * already installed, and on the server.
340
+ */
341
+ way: InstallAppWay | null;
342
+ /**
343
+ * Shows the install dialog of the browser. Call it from a click. It does
344
+ * nothing unless `way` is `prompt`.
345
+ */
346
+ prompt: () => void;
347
+ }
348
+
349
+ /**
350
+ * How the browser can put the app on the home screen of the device, to open
351
+ * like an installed app. It listens for the install offer of the browser from
352
+ * the moment it mounts, so call it in a component that stays on the page.
353
+ */
354
+ declare const useInstallApp: () => InstallApp;
355
+
356
+ /**
357
+ * Whether the screen fits `Sidebar`, and it follows the screen as it is
358
+ * resized or turned. `null` on the server, where there is no screen.
359
+ */
360
+ declare const useIsDesktop: () => boolean | null;
361
+
362
+ interface InstallAppButtonProps {
363
+ /**
364
+ * How the browser installs the app, from `useInstallApp`: `prompt` calls
365
+ * `onPrompt` on a click, and `instructions` opens a modal with the steps.
366
+ */
367
+ way: InstallAppWay;
368
+ /** The accessible name of the icon button. */
369
+ label?: string;
370
+ /** The size of the icon button. `lg` is for a touch screen. */
371
+ size?: Size;
372
+ /** The title of the modal with the steps. */
373
+ instructionsTitle?: string;
374
+ /** The steps to install the app by hand, the text of the modal. */
375
+ instructions?: string;
376
+ /**
377
+ * Shows the install dialog of the browser: the `prompt` of `useInstallApp`.
378
+ * It is called on a click when `way` is `prompt`.
379
+ */
380
+ onPrompt: () => void;
381
+ }
382
+
383
+ declare const InstallAppButton: ({ way, label, size, instructionsTitle, instructions, onPrompt, }: InstallAppButtonProps) => react.JSX.Element;
384
+
330
385
  interface TopNavProps {
331
386
  /**
332
387
  * The same sections `Sidebar` takes. The menu button opens them. With no
@@ -344,6 +399,12 @@ interface TopNavProps {
344
399
  menuLabel?: string;
345
400
  /** The accessible name of the account button. */
346
401
  accountLabel?: string;
402
+ /**
403
+ * The texts of the install button and of the modal with its steps: `label`,
404
+ * `instructionsTitle` and `instructions`. The button shows before the logout
405
+ * button, only in a browser that can put the app on the home screen.
406
+ */
407
+ install?: Pick<InstallAppButtonProps, "label" | "instructionsTitle" | "instructions">;
347
408
  /**
348
409
  * The texts of the logout button and of the modal it opens: `label`,
349
410
  * `confirmTitle`, `confirmLabel`, `cancelLabel` and `errorMessage`.
@@ -356,7 +417,7 @@ interface TopNavProps {
356
417
  onLogout: () => void | Promise<void>;
357
418
  }
358
419
 
359
- declare const TopNav: ({ sections, user, activeHref, homeHref, homeLabel, navLabel, menuLabel, accountLabel, logout, onLogout, }: TopNavProps) => react.JSX.Element;
420
+ declare const TopNav: ({ sections, user, activeHref, homeHref, homeLabel, navLabel, menuLabel, accountLabel, install, logout, onLogout, }: TopNavProps) => react.JSX.Element;
360
421
 
361
422
  type TagColor = Exclude<SemanticColor, "none"> | AuxiliaryColor;
362
423
  interface TagProps {
@@ -433,17 +494,11 @@ type NavigationMode = "auto" | "desktop" | "mobile";
433
494
  * The props of `Sidebar` and of `TopNav` together: what both take is passed to
434
495
  * the one that shows, and the rest only to its owner.
435
496
  */
436
- interface NavigationProps extends SidebarProps, Pick<TopNavProps, "menuLabel" | "accountLabel"> {
497
+ interface NavigationProps extends SidebarProps, Pick<TopNavProps, "menuLabel" | "accountLabel" | "install"> {
437
498
  mode?: NavigationMode;
438
499
  }
439
500
 
440
- declare const Navigation: ({ mode, sections, user, activeHref, defaultCollapsed, collapseLabel, expandLabel, homeHref, homeLabel, navLabel, menuLabel, accountLabel, logout, onLogout, }: NavigationProps) => react.JSX.Element | null;
441
-
442
- /**
443
- * Whether the screen fits `Sidebar`, and it follows the screen as it is
444
- * resized or turned. `null` on the server, where there is no screen.
445
- */
446
- declare const useIsDesktop: () => boolean | null;
501
+ declare const Navigation: ({ mode, sections, user, activeHref, defaultCollapsed, collapseLabel, expandLabel, homeHref, homeLabel, navLabel, menuLabel, accountLabel, install, logout, onLogout, }: NavigationProps) => react.JSX.Element | null;
447
502
 
448
503
  interface AppState {
449
504
  fetchingCalls: number;
@@ -672,5 +727,5 @@ declare const useAuth: () => UseAuthResult;
672
727
 
673
728
  declare const ZustandProviders: ({ children, auth }: ZustandProvidersProps) => react.JSX.Element;
674
729
 
675
- export { AccessPending, AuthAdapter, AuthProvider, AuthSession, Authorized, AuxiliaryColor, Button, Card, Checkbox, ConnectedModal, DataColor, DataGrid, Error, Form, HTTPClient, Heading, Icon, Input, Loader, Login, Modal, Navigation, Radio, ReduxProvider, ReduxProviderProps, Select, SemanticColor, Sidebar, SignOutButton, Spinner, StatsCard, Tabs, Tag, Text, TextArea, Toaster, TopNav, WhatsAppButton, ZustandProviders, ZustandProvidersProps, appInitialState, getAuthSession, splitURLasPath, useAppStore, useAuth, useIsDesktop, usePageStore, useRouterStore, useToastStore };
676
- export type { AppState, AuthorizedProps, ButtonColor, ButtonProps, ButtonVariant, CardProps, CheckboxProps, CheckboxVariant, ConnectedModalProps, DataGridColumn, DataGridProps, ErrorProps, FormProps, HeadingProps, HttpClientConfig, HttpRequestConfig, IconName, IconProps, InputProps, LoaderProps, LoginProvider, LoginVendor, ModalProps, NavigationMode, NavigationProps, PageState, RadioProps, ReduxStore, RouterState, SelectOption, SelectProps, SidebarItem, SidebarProps, SidebarSection, SidebarUser, Size, SpinnerProps, SpinnerVariant, StatsCardProps, TabsItem, TabsProps, TagColor, TagProps, TextAreaProps, TextProps, TextVariant, Toast, ToastState, ToastType, TopNavProps, WhatsAppButtonProps };
730
+ export { AccessPending, AuthAdapter, AuthProvider, AuthSession, Authorized, AuxiliaryColor, Button, Card, Checkbox, ConnectedModal, DataColor, DataGrid, Error, Form, HTTPClient, Heading, Icon, Input, InstallAppButton, Loader, Login, Modal, Navigation, Radio, ReduxProvider, ReduxProviderProps, Select, SemanticColor, Sidebar, SignOutButton, Spinner, StatsCard, Tabs, Tag, Text, TextArea, Toaster, TopNav, WhatsAppButton, ZustandProviders, ZustandProvidersProps, appInitialState, getAuthSession, splitURLasPath, useAppStore, useAuth, useInstallApp, useIsDesktop, usePageStore, useRouterStore, useToastStore };
731
+ export type { AppState, AuthorizedProps, ButtonColor, ButtonProps, ButtonVariant, CardProps, CheckboxProps, CheckboxVariant, ConnectedModalProps, DataGridColumn, DataGridProps, ErrorProps, FormProps, HeadingProps, HttpClientConfig, HttpRequestConfig, IconName, IconProps, InputProps, InstallApp, InstallAppButtonProps, InstallAppWay, LoaderProps, LoginProvider, LoginVendor, ModalProps, NavigationMode, NavigationProps, PageState, RadioProps, ReduxStore, RouterState, SelectOption, SelectProps, SidebarItem, SidebarProps, SidebarSection, SidebarUser, Size, SpinnerProps, SpinnerVariant, StatsCardProps, TabsItem, TabsProps, TagColor, TagProps, TextAreaProps, TextProps, TextVariant, Toast, ToastState, ToastType, TopNavProps, WhatsAppButtonProps };
package/dist/index.js CHANGED
@@ -8,6 +8,7 @@ import {
8
8
  ConnectedModal,
9
9
  Heading,
10
10
  Icon,
11
+ InstallAppButton,
11
12
  Loader,
12
13
  Login,
13
14
  Modal,
@@ -26,11 +27,12 @@ import {
26
27
  toast,
27
28
  useAppStore,
28
29
  useAuth,
30
+ useInstallApp,
29
31
  useIsDesktop,
30
32
  usePageStore,
31
33
  useRouterStore,
32
34
  useToastStore
33
- } from "./chunk-ZB76FFTW.js";
35
+ } from "./chunk-OY4JANWC.js";
34
36
  import {
35
37
  Error,
36
38
  FormInput,
@@ -784,6 +786,7 @@ export {
784
786
  Heading,
785
787
  Icon,
786
788
  Input,
789
+ InstallAppButton,
787
790
  Loader,
788
791
  Login,
789
792
  Modal,
@@ -809,6 +812,7 @@ export {
809
812
  toast,
810
813
  useAppStore,
811
814
  useAuth,
815
+ useInstallApp,
812
816
  useIsDesktop,
813
817
  usePageStore,
814
818
  useRouterStore,
@@ -7,7 +7,10 @@ import {
7
7
  ZustandProviders,
8
8
  usePageStore,
9
9
  useRouterStore
10
- } from "../chunk-ZB76FFTW.js";
10
+ } from "../chunk-OY4JANWC.js";
11
+
12
+ // core/next/root-layout/root-layout.tsx
13
+ import { Analytics } from "@vercel/analytics/next";
11
14
 
12
15
  // core/next/root-layout/root-layout.styles.ts
13
16
  import { tv } from "tailwind-variants";
@@ -16,9 +19,12 @@ var rootLayout = tv({
16
19
  });
17
20
 
18
21
  // core/next/root-layout/root-layout.tsx
19
- import { jsx } from "react/jsx-runtime";
22
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
20
23
  var RootLayout = ({ children }) => {
21
- return /* @__PURE__ */ jsx("main", { className: rootLayout(), children });
24
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
25
+ /* @__PURE__ */ jsx("main", { className: rootLayout(), children }),
26
+ /* @__PURE__ */ jsx(Analytics, { debug: false })
27
+ ] });
22
28
  };
23
29
 
24
30
  // core/next/not-found/not-found.styles.ts
@@ -32,7 +38,7 @@ var notFound = tv2({
32
38
  });
33
39
 
34
40
  // core/next/not-found/not-found.tsx
35
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
41
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
36
42
  var NotFound = ({
37
43
  title = "Page not found",
38
44
  message = "The page you are looking for does not exist.",
@@ -40,9 +46,9 @@ var NotFound = ({
40
46
  backLabel = "Go back home"
41
47
  }) => {
42
48
  const { base, code, content } = notFound();
43
- return /* @__PURE__ */ jsxs("div", { className: base(), children: [
49
+ return /* @__PURE__ */ jsxs2("div", { className: base(), children: [
44
50
  /* @__PURE__ */ jsx2("span", { className: code(), children: "404" }),
45
- /* @__PURE__ */ jsxs("div", { className: content(), children: [
51
+ /* @__PURE__ */ jsxs2("div", { className: content(), children: [
46
52
  /* @__PURE__ */ jsx2(Heading, { children: title }),
47
53
  /* @__PURE__ */ jsx2(Text, { color: "muted", children: message })
48
54
  ] }),
@@ -69,7 +75,7 @@ var PageWrapper = ({ children }) => {
69
75
  // core/next/app-providers/app-providers.tsx
70
76
  import { useEffect } from "react";
71
77
  import { usePathname } from "next/navigation.js";
72
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
78
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
73
79
  var RouteSync = () => {
74
80
  const pathname = usePathname();
75
81
  const setRoute = useRouterStore((s) => s.setRoute);
@@ -84,7 +90,7 @@ var AppProviders = ({
84
90
  children,
85
91
  auth,
86
92
  ...store
87
- }) => /* @__PURE__ */ jsxs2(ReduxProvider, { ...store, children: [
93
+ }) => /* @__PURE__ */ jsxs3(ReduxProvider, { ...store, children: [
88
94
  /* @__PURE__ */ jsx4(RouteSync, {}),
89
95
  /* @__PURE__ */ jsx4(ZustandProviders, { auth, children })
90
96
  ] });
@@ -92,7 +98,7 @@ var AppProviders = ({
92
98
  // core/next/page-config/page-config.tsx
93
99
  import { useEffect as useEffect2 } from "react";
94
100
  import { useDispatch, useStore } from "react-redux";
95
- import { Fragment, jsx as jsx5 } from "react/jsx-runtime";
101
+ import { Fragment as Fragment2, jsx as jsx5 } from "react/jsx-runtime";
96
102
  var PageConfig = ({
97
103
  children,
98
104
  title,
@@ -115,7 +121,7 @@ var PageConfig = ({
115
121
  initPage(dispatch);
116
122
  }
117
123
  }, []);
118
- return /* @__PURE__ */ jsx5(Fragment, { children });
124
+ return /* @__PURE__ */ jsx5(Fragment2, { children });
119
125
  };
120
126
  export {
121
127
  AppProviders,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexandregme/zljs",
3
- "version": "3.13.2",
3
+ "version": "3.15.0",
4
4
  "description": "Opinionated, accessible React component library for enterprise apps (Next.js, Tailwind CSS v4).",
5
5
  "keywords": [
6
6
  "react",
@@ -76,6 +76,7 @@
76
76
  "@hookform/resolvers": "^5.2.2",
77
77
  "@radix-ui/react-dialog": "^1.1.15",
78
78
  "@radix-ui/react-tabs": "^1.2.1",
79
+ "@vercel/analytics": "^2.0.1",
79
80
  "ag-grid-community": "^36.2.0",
80
81
  "ag-grid-react": "^36.2.0",
81
82
  "axios": "^1.13.5",