@djangocfg/ui-core 2.1.347 → 2.1.348

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-core",
3
- "version": "2.1.347",
3
+ "version": "2.1.348",
4
4
  "description": "Pure React UI component library without Next.js dependencies - for Electron, Vite, CRA apps",
5
5
  "keywords": [
6
6
  "ui-components",
@@ -91,7 +91,7 @@
91
91
  "playground": "playground dev"
92
92
  },
93
93
  "peerDependencies": {
94
- "@djangocfg/i18n": "^2.1.347",
94
+ "@djangocfg/i18n": "^2.1.348",
95
95
  "consola": "^3.4.2",
96
96
  "lucide-react": "^0.545.0",
97
97
  "moment": "^2.30.1",
@@ -150,6 +150,7 @@
150
150
  "i18n-iso-countries": "^7.14.0",
151
151
  "input-otp": "1.4.2",
152
152
  "libphonenumber-js": "^1.12.24",
153
+ "nextjs-toploader": "^3.9.17",
153
154
  "react-day-picker": "9.11.1",
154
155
  "react-hotkeys-hook": "^4.6.1",
155
156
  "react-resizable-panels": "3.0.6",
@@ -160,9 +161,9 @@
160
161
  "vaul": "1.1.2"
161
162
  },
162
163
  "devDependencies": {
163
- "@djangocfg/i18n": "^2.1.347",
164
+ "@djangocfg/i18n": "^2.1.348",
164
165
  "@djangocfg/playground": "workspace:*",
165
- "@djangocfg/typescript-config": "^2.1.347",
166
+ "@djangocfg/typescript-config": "^2.1.348",
166
167
  "@types/node": "^24.7.2",
167
168
  "@types/react": "^19.1.0",
168
169
  "@types/react-dom": "^19.1.0",
@@ -40,7 +40,19 @@ import {
40
40
  type ReactNode,
41
41
  type Ref,
42
42
  } from 'react';
43
- import { useRouter as useNextRouter } from 'next/navigation';
43
+ // Use the toploader-wrapped router so that EVERY programmatic
44
+ // navigation through ui-core hooks (`useNavigate`, `useQueryState`,
45
+ // `useRouter` from `@djangocfg/ui-core/hooks`) starts the
46
+ // `nextjs-toploader` progress bar.
47
+ //
48
+ // Why not `next/navigation` directly: <NextTopLoader> only attaches a
49
+ // document-level click listener for <a> tags and instruments
50
+ // `history.pushState` to call `nprogress.done()` (NOT `.start()`). So
51
+ // `router.push()` from `next/navigation` mutates history but never
52
+ // starts the bar — only `<Link>` clicks do. The `nextjs-toploader/app`
53
+ // entry exposes a thin wrapper around the same `useRouter` whose
54
+ // `push`/`replace` call `nprogress.start()` first. Drop-in shape.
55
+ import { useRouter as useNextRouter } from 'nextjs-toploader/app';
44
56
  import NextLink from 'next/link';
45
57
 
46
58
  import {