@nomos-ui/next-adapter 0.0.5 → 0.1.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/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AA4C/C;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,EAAE,aAQzB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -43,6 +43,9 @@ function useParams() {
|
|
|
43
43
|
get: (key) => params[key] ?? null,
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
+
function usePathname() {
|
|
47
|
+
return (0, navigation_1.usePathname)();
|
|
48
|
+
}
|
|
46
49
|
/**
|
|
47
50
|
* Next.js router adapter for `@nomos-ui/core` Provider.
|
|
48
51
|
* Implements the `RouterAdapter` contract using Next.js navigation hooks and components.
|
|
@@ -63,6 +66,7 @@ exports.NextAdapter = {
|
|
|
63
66
|
useSearchParams,
|
|
64
67
|
useUpdateSearchParams: use_update_search_params_1.default,
|
|
65
68
|
useParams,
|
|
69
|
+
usePathname,
|
|
66
70
|
components: {
|
|
67
71
|
Link: { component: link_1.default, hrefKey: "href" },
|
|
68
72
|
},
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA6B;AAC7B,gDAIyB;AACzB,gGAAyE;AAGzE;;;;;;;;;;;GAWG;AACH,SAAS,eAAe;IACtB,MAAM,YAAY,GAAG,IAAA,4BAAmB,GAAE,CAAC;IAC3C,OAAO;QACL,GAAG,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC;KAC5C,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAS,SAAS;IAChB,MAAM,MAAM,GAAG,IAAA,sBAAa,GAAE,CAAC;IAC/B,OAAO;QACL,GAAG,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,IAAI;KAC1C,CAAC;AACJ,CAAC;AAED,SAAS,WAAW;IAClB,OAAO,IAAA,wBAAe,GAAE,CAAC;AAC3B,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACU,QAAA,WAAW,GAAkB;IACxC,eAAe;IACf,qBAAqB,EAAE,kCAAyB;IAChD,SAAS;IACT,WAAW;IACX,UAAU,EAAE;QACV,IAAI,EAAE,EAAE,SAAS,EAAE,cAAI,EAAE,OAAO,EAAE,MAAM,EAAE;KAC3C;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomos-ui/next-adapter",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "The Shadcn library for building robust React layouts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/exports/index.js",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"sideEffects": false,
|
|
76
76
|
"packageManager": "pnpm@10.13.1",
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@nomos-ui/core": "^0.2.
|
|
78
|
+
"@nomos-ui/core": "^0.2.5"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@types/node": "^24.9.1",
|