@asteby/metacore-notifications 4.0.0 → 5.0.0
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/README.md +3 -3
- package/dist/types.d.ts +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -41,10 +41,10 @@ export function Header() {
|
|
|
41
41
|
}
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
`apiBasePath`
|
|
44
|
+
`apiBasePath` lets each host application point at its own notifications endpoint, for example:
|
|
45
45
|
|
|
46
|
-
- `
|
|
47
|
-
- `
|
|
46
|
+
- `"/data/notifications/me"`
|
|
47
|
+
- `"/dynamic/notifications/me"`
|
|
48
48
|
|
|
49
49
|
## Props
|
|
50
50
|
|
package/dist/types.d.ts
CHANGED
|
@@ -75,8 +75,8 @@ export interface NotificationsDropdownProps {
|
|
|
75
75
|
apiClient: NotificationsApiClient;
|
|
76
76
|
/**
|
|
77
77
|
* Base collection path for the current user's notifications. Typical
|
|
78
|
-
* values: `/data/notifications/me`
|
|
79
|
-
*
|
|
78
|
+
* values: `/data/notifications/me` or `/dynamic/notifications/me`,
|
|
79
|
+
* depending on the host. Items are mutated under `${apiBasePath}/${id}`.
|
|
80
80
|
*/
|
|
81
81
|
apiBasePath: string;
|
|
82
82
|
/** When true (default), updates `navigator.setAppBadge` with unread count. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asteby/metacore-notifications",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Metacore notifications — dropdown, app badge, WebSocket-driven real-time updates",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"date-fns": ">=3",
|
|
37
37
|
"lucide-react": ">=0.460",
|
|
38
38
|
"sonner": ">=1.7",
|
|
39
|
-
"@asteby/metacore-ui": "^0.
|
|
39
|
+
"@asteby/metacore-ui": "^0.7.0",
|
|
40
40
|
"@asteby/metacore-websocket": "^0.3.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"react-dom": "^19.2.4",
|
|
50
50
|
"sonner": "^1.7.0",
|
|
51
51
|
"typescript": "^5.6.0",
|
|
52
|
-
"@asteby/metacore-ui": "0.
|
|
52
|
+
"@asteby/metacore-ui": "0.7.0",
|
|
53
53
|
"@asteby/metacore-websocket": "0.3.0"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|