@djangocfg/ui-nextjs 2.1.192 → 2.1.194

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/ui-nextjs",
3
- "version": "2.1.192",
3
+ "version": "2.1.194",
4
4
  "description": "Next.js UI component library with Radix UI primitives, Tailwind CSS styling, charts, and form components",
5
5
  "keywords": [
6
6
  "ui-components",
@@ -80,10 +80,10 @@
80
80
  "check": "tsc --noEmit"
81
81
  },
82
82
  "peerDependencies": {
83
- "@djangocfg/api": "^2.1.192",
84
- "@djangocfg/nextjs": "^2.1.192",
85
- "@djangocfg/ui-core": "^2.1.192",
86
- "@djangocfg/ui-tools": "^2.1.192",
83
+ "@djangocfg/api": "^2.1.194",
84
+ "@djangocfg/nextjs": "^2.1.194",
85
+ "@djangocfg/ui-core": "^2.1.194",
86
+ "@djangocfg/ui-tools": "^2.1.194",
87
87
  "@types/react": "^19.1.0",
88
88
  "@types/react-dom": "^19.1.0",
89
89
  "consola": "^3.4.2",
@@ -106,7 +106,7 @@
106
106
  "react-chartjs-2": "^5.3.0"
107
107
  },
108
108
  "devDependencies": {
109
- "@djangocfg/typescript-config": "^2.1.192",
109
+ "@djangocfg/typescript-config": "^2.1.194",
110
110
  "@radix-ui/react-dropdown-menu": "^2.1.16",
111
111
  "@radix-ui/react-slot": "^1.2.4",
112
112
  "@types/node": "^24.7.2",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Internal navigation utilities for ui-nextjs
3
3
  *
4
- * Uses next-intl's createNavigation() with routing from @djangocfg/nextjs to produce
4
+ * Uses next-intl's createNavigation() with routing to produce
5
5
  * locale-aware Link, usePathname, useRouter, etc.
6
6
  *
7
7
  * These are used internally by ui-nextjs components (breadcrumb, pagination, sidebar, etc.)
@@ -9,9 +9,18 @@
9
9
  *
10
10
  * IMPORTANT: routing config must be passed to createNavigation() for SSR context resolution.
11
11
  * Without it, next-intl falls back to `[locale]` pattern which Next.js rejects as dynamic href.
12
+ *
13
+ * NOTE: Uses defineRouting directly from next-intl to avoid circular dependency
14
+ * on @djangocfg/nextjs (which depends on ui-nextjs).
12
15
  */
13
16
  import { createNavigation } from 'next-intl/navigation';
14
- import { routing } from '@djangocfg/nextjs/i18n/routing';
17
+ import { defineRouting } from 'next-intl/routing';
18
+
19
+ const routing = defineRouting({
20
+ locales: ['en', 'ru', 'ko', 'ja', 'de', 'fr', 'zh', 'it', 'es', 'nl', 'ar', 'tr', 'pt-BR', 'pl', 'sv', 'no', 'da'],
21
+ defaultLocale: 'en',
22
+ localePrefix: 'as-needed',
23
+ });
15
24
 
16
25
  export const {
17
26
  Link,