@djangocfg/layouts 2.1.215 → 2.1.217
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/layouts",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.217",
|
|
4
4
|
"description": "Simple, straightforward layout components for Next.js - import and use with props",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layouts",
|
|
@@ -74,17 +74,18 @@
|
|
|
74
74
|
"check": "tsc --noEmit"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@djangocfg/api": "^2.1.
|
|
78
|
-
"@djangocfg/centrifugo": "^2.1.
|
|
79
|
-
"@djangocfg/i18n": "^2.1.
|
|
80
|
-
"@djangocfg/
|
|
81
|
-
"@djangocfg/ui-
|
|
82
|
-
"@djangocfg/ui-
|
|
77
|
+
"@djangocfg/api": "^2.1.217",
|
|
78
|
+
"@djangocfg/centrifugo": "^2.1.217",
|
|
79
|
+
"@djangocfg/i18n": "^2.1.217",
|
|
80
|
+
"@djangocfg/monitor": "^2.1.217",
|
|
81
|
+
"@djangocfg/ui-core": "^2.1.217",
|
|
82
|
+
"@djangocfg/ui-nextjs": "^2.1.217",
|
|
83
|
+
"@djangocfg/ui-tools": "^2.1.217",
|
|
83
84
|
"@hookform/resolvers": "^5.2.2",
|
|
84
85
|
"consola": "^3.4.2",
|
|
85
86
|
"lucide-react": "^0.545.0",
|
|
86
87
|
"moment": "^2.30.1",
|
|
87
|
-
"next": "
|
|
88
|
+
"next": "^16.0.10",
|
|
88
89
|
"p-retry": "^7.0.0",
|
|
89
90
|
"react": "^19.1.0",
|
|
90
91
|
"react-dom": "^19.1.0",
|
|
@@ -93,7 +94,12 @@
|
|
|
93
94
|
"swr": "^2.3.7",
|
|
94
95
|
"tailwindcss": "^4.1.18",
|
|
95
96
|
"tailwindcss-animate": "^1.0.7",
|
|
96
|
-
"zod": "^4.3.
|
|
97
|
+
"zod": "^4.3.6"
|
|
98
|
+
},
|
|
99
|
+
"peerDependenciesMeta": {
|
|
100
|
+
"@djangocfg/monitor": {
|
|
101
|
+
"optional": true
|
|
102
|
+
}
|
|
97
103
|
},
|
|
98
104
|
"dependencies": {
|
|
99
105
|
"nextjs-toploader": "^3.9.17",
|
|
@@ -102,13 +108,14 @@
|
|
|
102
108
|
"uuid": "^11.1.0"
|
|
103
109
|
},
|
|
104
110
|
"devDependencies": {
|
|
105
|
-
"@djangocfg/api": "^2.1.
|
|
106
|
-
"@djangocfg/i18n": "^2.1.
|
|
107
|
-
"@djangocfg/centrifugo": "^2.1.
|
|
108
|
-
"@djangocfg/
|
|
109
|
-
"@djangocfg/
|
|
110
|
-
"@djangocfg/ui-
|
|
111
|
-
"@djangocfg/ui-
|
|
111
|
+
"@djangocfg/api": "^2.1.217",
|
|
112
|
+
"@djangocfg/i18n": "^2.1.217",
|
|
113
|
+
"@djangocfg/centrifugo": "^2.1.217",
|
|
114
|
+
"@djangocfg/monitor": "^2.1.217",
|
|
115
|
+
"@djangocfg/typescript-config": "^2.1.217",
|
|
116
|
+
"@djangocfg/ui-core": "^2.1.217",
|
|
117
|
+
"@djangocfg/ui-nextjs": "^2.1.217",
|
|
118
|
+
"@djangocfg/ui-tools": "^2.1.217",
|
|
112
119
|
"@types/node": "^24.7.2",
|
|
113
120
|
"@types/react": "^19.1.0",
|
|
114
121
|
"@types/react-dom": "^19.1.0",
|
|
@@ -155,6 +155,8 @@ export interface ErrorTrackingProviderProps {
|
|
|
155
155
|
centrifugo?: Partial<CentrifugoErrorConfig>;
|
|
156
156
|
runtime?: Partial<RuntimeErrorConfig>;
|
|
157
157
|
onError?: (error: ErrorDetail) => boolean | void;
|
|
158
|
+
/** Called with the raw ErrorDetail for every tracked error. Wire to FrontendMonitor.capture() (via toMonitorEvent) to forward errors to the backend. */
|
|
159
|
+
onMonitorCapture?: (detail: ErrorDetail) => void;
|
|
158
160
|
}
|
|
159
161
|
|
|
160
162
|
/**
|
|
@@ -170,6 +172,7 @@ export function ErrorTrackingProvider({
|
|
|
170
172
|
centrifugo: userCentrifugoConfig,
|
|
171
173
|
runtime: userRuntimeConfig,
|
|
172
174
|
onError,
|
|
175
|
+
onMonitorCapture,
|
|
173
176
|
}: ErrorTrackingProviderProps) {
|
|
174
177
|
const [errors, setErrors] = useState<StoredError[]>([]);
|
|
175
178
|
|
|
@@ -240,6 +243,13 @@ export function ErrorTrackingProvider({
|
|
|
240
243
|
return updated.slice(0, config.maxErrors);
|
|
241
244
|
});
|
|
242
245
|
|
|
246
|
+
// Forward raw ErrorDetail to monitor bridge (fire-and-forget)
|
|
247
|
+
if (onMonitorCapture) {
|
|
248
|
+
try {
|
|
249
|
+
onMonitorCapture(detail);
|
|
250
|
+
} catch { /* never crash */ }
|
|
251
|
+
}
|
|
252
|
+
|
|
243
253
|
// Call custom error handler
|
|
244
254
|
const shouldShowToast = onError?.(detail) !== false;
|
|
245
255
|
|
|
@@ -252,7 +262,7 @@ export function ErrorTrackingProvider({
|
|
|
252
262
|
});
|
|
253
263
|
}
|
|
254
264
|
},
|
|
255
|
-
[onError]
|
|
265
|
+
[onError, onMonitorCapture]
|
|
256
266
|
);
|
|
257
267
|
|
|
258
268
|
/**
|
package/src/snippets/index.ts
CHANGED
|
@@ -8,6 +8,10 @@ export * from './Breadcrumbs';
|
|
|
8
8
|
export * from './AuthDialog';
|
|
9
9
|
export * from './Analytics';
|
|
10
10
|
|
|
11
|
+
// MonitorProvider lives in @djangocfg/monitor/client — re-exported here for convenience
|
|
12
|
+
export { MonitorProvider } from '@djangocfg/monitor/client';
|
|
13
|
+
export type { MonitorProviderProps } from '@djangocfg/monitor/client';
|
|
14
|
+
|
|
11
15
|
// MCP Chat (AI-powered documentation assistant)
|
|
12
16
|
export {
|
|
13
17
|
AIChatWidget,
|