@djangocfg/ui-core 2.1.650 → 2.1.652
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.
|
|
3
|
+
"version": "2.1.652",
|
|
4
4
|
"description": "Pure React UI component library without Next.js dependencies - for Electron, Vite, CRA apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui-components",
|
|
@@ -144,8 +144,8 @@
|
|
|
144
144
|
"check:docs": "node scripts/check-docs.mjs"
|
|
145
145
|
},
|
|
146
146
|
"peerDependencies": {
|
|
147
|
-
"@djangocfg/api": "^2.1.
|
|
148
|
-
"@djangocfg/i18n": "^2.1.
|
|
147
|
+
"@djangocfg/api": "^2.1.652",
|
|
148
|
+
"@djangocfg/i18n": "^2.1.652",
|
|
149
149
|
"consola": "^3.4.2",
|
|
150
150
|
"lucide-react": "^1.68.0",
|
|
151
151
|
"moment": "^2.30.1",
|
|
@@ -220,10 +220,10 @@
|
|
|
220
220
|
"vaul": "1.1.2"
|
|
221
221
|
},
|
|
222
222
|
"devDependencies": {
|
|
223
|
-
"@djangocfg/api": "^2.1.
|
|
224
|
-
"@djangocfg/eslint-config": "^2.1.
|
|
225
|
-
"@djangocfg/i18n": "^2.1.
|
|
226
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
223
|
+
"@djangocfg/api": "^2.1.652",
|
|
224
|
+
"@djangocfg/eslint-config": "^2.1.652",
|
|
225
|
+
"@djangocfg/i18n": "^2.1.652",
|
|
226
|
+
"@djangocfg/typescript-config": "^2.1.652",
|
|
227
227
|
"@storybook/react-vite": "^10.6.5",
|
|
228
228
|
"@types/node": "^24.13.3",
|
|
229
229
|
"@types/react": "19.3.0",
|
|
@@ -107,8 +107,18 @@ export function NextRouterAdapter({ children, defaultScroll }: NextRouterAdapter
|
|
|
107
107
|
window.addEventListener(NAVIGATE_EVENT, stop);
|
|
108
108
|
return () => window.removeEventListener(NAVIGATE_EVENT, stop);
|
|
109
109
|
}, []);
|
|
110
|
+
// Next's App Router commits its own navigations through the `pushState` it captured at boot, before our patch, so
|
|
111
|
+
// `NAVIGATE_EVENT` never fires for them. Announce every new pathname ourselves: `usePathnameChange`, `useLocation` and
|
|
112
|
+
// any other subscriber then see a Next navigation like any other (seen on gptkino 2026-11-11: the phone assistant
|
|
113
|
+
// stayed open after a link). The first pathname is not a navigation.
|
|
114
|
+
const firstPathname = useRef(true);
|
|
110
115
|
useEffect(() => {
|
|
111
116
|
progressRef.current?.engine.done();
|
|
117
|
+
if (firstPathname.current) {
|
|
118
|
+
firstPathname.current = false;
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
window.dispatchEvent(new Event(NAVIGATE_EVENT));
|
|
112
122
|
}, [pathname]);
|
|
113
123
|
|
|
114
124
|
const adapter = useMemo<RouterAdapter>(
|