@meith/theme-phasebook 0.10.0 → 0.11.1

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": "@meith/theme-phasebook",
3
- "version": "0.10.0",
3
+ "version": "0.11.1",
4
4
  "description": "A theme for Meith with a familiar social shape, built on the default theme's slots.",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "repository": {
@@ -20,9 +20,9 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@meith/theme-default": "^0.10.0",
24
- "@meith/ui": "^0.10.0",
25
- "@meith/theme-kit": "^0.10.0"
23
+ "@meith/theme-kit": "^0.11.1",
24
+ "@meith/ui": "^0.11.1",
25
+ "@meith/theme-default": "^0.11.1"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^19.2.0"
@@ -82,6 +82,7 @@ export function UserPanel({
82
82
  unreadMessages,
83
83
  notificationsHref,
84
84
  messagesHref,
85
+ regions,
85
86
  children,
86
87
  copy,
87
88
  }: UserPanelModel & { copy: SlotCopy }) {
@@ -110,18 +111,22 @@ export function UserPanel({
110
111
  }}
111
112
  />
112
113
 
113
- {unreadNotifications.value > 0 && (
114
- <IconButton href={notificationsHref ?? null} title={c('notifications')}>
115
- <BellIcon />
116
- <CountBadge value={unreadNotifications} label={c('unreadNotifications')} />
117
- </IconButton>
118
- )}
114
+ {regions?.notifications ?? (
115
+ <>
116
+ {unreadNotifications.value > 0 && (
117
+ <IconButton href={notificationsHref ?? null} title={c('notifications')}>
118
+ <BellIcon />
119
+ <CountBadge value={unreadNotifications} label={c('unreadNotifications')} />
120
+ </IconButton>
121
+ )}
119
122
 
120
- {unreadMessages.value > 0 && (
121
- <IconButton href={messagesHref ?? null} title={c('messages')}>
122
- <MessageIcon />
123
- <CountBadge value={unreadMessages} label={c('unreadMessages')} />
124
- </IconButton>
123
+ {unreadMessages.value > 0 && (
124
+ <IconButton href={messagesHref ?? null} title={c('messages')}>
125
+ <MessageIcon />
126
+ <CountBadge value={unreadMessages} label={c('unreadMessages')} />
127
+ </IconButton>
128
+ )}
129
+ </>
125
130
  )}
126
131
 
127
132
  <div data-account="menu" className="flex min-w-0 items-center">