@djangocfg/layouts 2.1.44 → 2.1.45
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.45",
|
|
4
4
|
"description": "Simple, straightforward layout components for Next.js - import and use with props",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"layouts",
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
"check": "tsc --noEmit"
|
|
93
93
|
},
|
|
94
94
|
"peerDependencies": {
|
|
95
|
-
"@djangocfg/api": "^2.1.
|
|
96
|
-
"@djangocfg/centrifugo": "^2.1.
|
|
97
|
-
"@djangocfg/ui-nextjs": "^2.1.
|
|
95
|
+
"@djangocfg/api": "^2.1.45",
|
|
96
|
+
"@djangocfg/centrifugo": "^2.1.45",
|
|
97
|
+
"@djangocfg/ui-nextjs": "^2.1.45",
|
|
98
98
|
"@hookform/resolvers": "^5.2.0",
|
|
99
99
|
"consola": "^3.4.2",
|
|
100
100
|
"lucide-react": "^0.545.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"uuid": "^11.1.0"
|
|
116
116
|
},
|
|
117
117
|
"devDependencies": {
|
|
118
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
118
|
+
"@djangocfg/typescript-config": "^2.1.45",
|
|
119
119
|
"@types/node": "^24.7.2",
|
|
120
120
|
"@types/react": "^19.1.0",
|
|
121
121
|
"@types/react-dom": "^19.1.0",
|
|
@@ -30,7 +30,7 @@ import React, {
|
|
|
30
30
|
createContext, ReactNode, useCallback, useContext, useEffect, useState
|
|
31
31
|
} from 'react';
|
|
32
32
|
|
|
33
|
-
import { toast } from '
|
|
33
|
+
import { toast } from 'sonner';
|
|
34
34
|
|
|
35
35
|
import { createErrorToast } from '../components/ErrorToast';
|
|
36
36
|
import {
|
|
@@ -138,10 +138,13 @@ export function ErrorTrackingProvider({
|
|
|
138
138
|
// Call custom error handler
|
|
139
139
|
const shouldShowToast = onError?.(detail) !== false;
|
|
140
140
|
|
|
141
|
-
// Show toast notification
|
|
141
|
+
// Show toast notification using Sonner
|
|
142
142
|
if (config.showToast && shouldShowToast) {
|
|
143
143
|
const toastOptions = createErrorToast(detail, config);
|
|
144
|
-
toast(toastOptions
|
|
144
|
+
toast.error(toastOptions.title as string, {
|
|
145
|
+
description: toastOptions.description,
|
|
146
|
+
duration: toastOptions.duration,
|
|
147
|
+
});
|
|
145
148
|
}
|
|
146
149
|
},
|
|
147
150
|
[onError]
|