@genesislcap/pbc-notify-seed 1.2.0 → 1.2.1-pre-release.2
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/.genx/versions.json
CHANGED
|
@@ -16,7 +16,7 @@ export const notificationsButton: AppElement = {
|
|
|
16
16
|
part="notifications-button"
|
|
17
17
|
data-test-id="notifications-button"
|
|
18
18
|
data-pbc-asset-id="notifications-button"
|
|
19
|
-
@click=${(x, c) => c.parent.$emit('notification-icon-clicked')}
|
|
19
|
+
@click=${(x, c) => (c.parent ?? x).$emit('notification-icon-clicked')}
|
|
20
20
|
>
|
|
21
21
|
<rapid-icon variant="regular" name="bell" part="notifications-icon"></rapid-icon>
|
|
22
22
|
<foundation-inbox-counter part="notifications-inbox-counter"></foundation-inbox-counter>
|
|
@@ -32,7 +32,7 @@ export const inboxFlyout: AppElement = {
|
|
|
32
32
|
elements: html`
|
|
33
33
|
<rapid-flyout
|
|
34
34
|
position="right"
|
|
35
|
-
@closed=${(x, c) => c.parent.$emit('change-inbox-display', false)}
|
|
35
|
+
@closed=${(x, c) => (c.parent ?? x).$emit('change-inbox-display', false)}
|
|
36
36
|
?closed=${() => !store.inboxDisplayState}
|
|
37
37
|
data-pbc-asset-id="inbox-flyout"
|
|
38
38
|
>
|
|
@@ -6,14 +6,14 @@ import type { AppMetadata } from '@genesislcap/foundation-shell/app';
|
|
|
6
6
|
export const metadata: AppMetadata = {
|
|
7
7
|
name: '@genesislcap/pbc-notify-ui',
|
|
8
8
|
description: 'Genesis Notify PBC',
|
|
9
|
-
version: '1.2.
|
|
9
|
+
version: '1.2.1-pre-release.2',
|
|
10
10
|
prerequisites: {
|
|
11
11
|
'@genesislcap/foundation-ui': '14.*',
|
|
12
12
|
gsf: '8.*',
|
|
13
13
|
},
|
|
14
14
|
dependencies: {
|
|
15
|
-
'@genesislcap/pbc-notify-ui': '1.0.
|
|
15
|
+
'@genesislcap/pbc-notify-ui': '1.0.39',
|
|
16
16
|
'@genesislcap/foundation-notifications': '14.*',
|
|
17
|
-
serverDepId: '8.
|
|
17
|
+
serverDepId: '8.2.0-RC0',
|
|
18
18
|
},
|
|
19
19
|
};
|
|
@@ -68,6 +68,8 @@ export const notificationsDashboard: AppRoute = {
|
|
|
68
68
|
path: 'notifications-dashboard',
|
|
69
69
|
name: 'notifications-dashboard',
|
|
70
70
|
element: Notifications,
|
|
71
|
+
// @ts-ignore
|
|
72
|
+
elementTag: 'notifications-dashboard',
|
|
71
73
|
settings: { autoAuth: true },
|
|
72
74
|
navItems: [
|
|
73
75
|
{
|
|
@@ -40,6 +40,7 @@ export class DefaultNotifyStore
|
|
|
40
40
|
*/
|
|
41
41
|
this.createListener<boolean | null>(
|
|
42
42
|
['change-inbox-display', 'notification-icon-clicked'],
|
|
43
|
+
// @ts-ignore add narrowing utils to store
|
|
43
44
|
(_, { detail, type }) => {
|
|
44
45
|
/**
|
|
45
46
|
* Account for `'notification-icon-clicked': void;` which has a `null` detail payload. Prior logic proxied that
|
|
@@ -54,7 +55,7 @@ export class DefaultNotifyStore
|
|
|
54
55
|
export const NotifyStore = registerStore<NotifyStore>(DefaultNotifyStore, 'NotifyStore');
|
|
55
56
|
|
|
56
57
|
export function getNotifyStore(): NotifyStore {
|
|
57
|
-
return DI.getOrCreateDOMContainer().get(NotifyStore);
|
|
58
|
+
return DI.getOrCreateDOMContainer().get(NotifyStore) as NotifyStore;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
export const notifyAppStore: AppStore<NotifyStore> = {
|