@nextsparkjs/core 0.1.0-beta.187 → 0.1.0-beta.188
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,2 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
interface MobileTopBarProps {
|
|
2
|
+
/**
|
|
3
|
+
* Se reenvía al `<Link>` del perfil. Sin valor, decide Next (prefetch automático al entrar en
|
|
4
|
+
* viewport). La barra se monta en toda página del dashboard en mobile, así que `false` ahorra
|
|
5
|
+
* una request RSC por carga en apps donde casi nadie navega al perfil.
|
|
6
|
+
*/
|
|
7
|
+
prefetch?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function MobileTopBar({ prefetch }?: MobileTopBarProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
2
11
|
//# sourceMappingURL=MobileTopBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileTopBar.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/mobile/MobileTopBar.tsx"],"names":[],"mappings":"AAaA,wBAAgB,YAAY,
|
|
1
|
+
{"version":3,"file":"MobileTopBar.d.ts","sourceRoot":"","sources":["../../../../src/components/dashboard/mobile/MobileTopBar.tsx"],"names":[],"mappings":"AAaA,UAAU,iBAAiB;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,GAAE,iBAAsB,2CA8FhE"}
|
|
@@ -8,7 +8,7 @@ import { NotificationsDropdown } from "../misc/NotificationsDropdown.js";
|
|
|
8
8
|
import { sel } from "../../../lib/test/index.js";
|
|
9
9
|
import { isTopbarFeatureEnabled } from "../../../lib/config/index.js";
|
|
10
10
|
import { useTranslations } from "next-intl";
|
|
11
|
-
function MobileTopBar() {
|
|
11
|
+
function MobileTopBar({ prefetch } = {}) {
|
|
12
12
|
const { user } = useAuth();
|
|
13
13
|
const t = useTranslations();
|
|
14
14
|
if (!user) return null;
|
|
@@ -50,6 +50,7 @@ function MobileTopBar() {
|
|
|
50
50
|
Link,
|
|
51
51
|
{
|
|
52
52
|
href: "/dashboard/settings/profile",
|
|
53
|
+
prefetch,
|
|
53
54
|
className: "flex items-center gap-3 hover:opacity-80 transition-opacity",
|
|
54
55
|
"aria-label": `Ir al perfil de ${user.firstName || user.email}`,
|
|
55
56
|
"data-cy": sel("dashboard.mobile.topbar.userProfile"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextsparkjs/core",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.188",
|
|
4
4
|
"description": "NextSpark - The complete SaaS framework for Next.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "NextSpark <hello@nextspark.dev>",
|
|
@@ -479,7 +479,7 @@
|
|
|
479
479
|
"tailwind-merge": "^3.3.1",
|
|
480
480
|
"uuid": "^13.0.0",
|
|
481
481
|
"zod": "^4.3.6",
|
|
482
|
-
"@nextsparkjs/testing": "0.1.0-beta.
|
|
482
|
+
"@nextsparkjs/testing": "0.1.0-beta.188"
|
|
483
483
|
},
|
|
484
484
|
"scripts": {
|
|
485
485
|
"postinstall": "node scripts/postinstall.mjs || true",
|