fix: change notification hooks to internal
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
@@ -177,23 +177,5 @@ export function useNotificationsApi<T>(
|
||||
value: T;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export function useTitleCounter(): {
|
||||
setNotificationCount: (newCount: number) => void;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export function useWebNotifications(
|
||||
enabled: boolean,
|
||||
markAsReadOnLinkOpen: boolean,
|
||||
): {
|
||||
sendWebNotification: (options: {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
link?: string;
|
||||
}) => Notification | null;
|
||||
};
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
```
|
||||
|
||||
@@ -25,7 +25,7 @@ const throttledSetTitle = throttle((shownTitle: string) => {
|
||||
document.title = shownTitle;
|
||||
}, 100);
|
||||
|
||||
/** @public */
|
||||
/** @internal */
|
||||
export function useTitleCounter() {
|
||||
const [title, setTitle] = useState(document.title);
|
||||
const [count, setCount] = useState(0);
|
||||
|
||||
@@ -19,7 +19,7 @@ import { useApi, useRouteRef } from '@backstage/core-plugin-api';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { notificationsApiRef } from '../api';
|
||||
|
||||
/** @public */
|
||||
/** @internal */
|
||||
export function useWebNotifications(
|
||||
enabled: boolean,
|
||||
markAsReadOnLinkOpen: boolean,
|
||||
|
||||
@@ -15,5 +15,5 @@
|
||||
*/
|
||||
export { notificationsPlugin, NotificationsPage } from './plugin';
|
||||
export * from './api';
|
||||
export * from './hooks';
|
||||
export { useNotificationsApi } from './hooks';
|
||||
export * from './components';
|
||||
|
||||
Reference in New Issue
Block a user