@notificationapi/react 0.0.6 → 0.0.8

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.
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { ImageShape } from './Notification';
2
3
  import { NotificationPopupProps } from './NotificationPopup';
3
4
 
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
1
+ import { default as React } from 'react';
2
+
2
3
  export declare const InboxHeader: (props: {
3
4
  markAsArchived: (ids: string[] | "ALL") => void;
4
- }) => JSX.Element;
5
+ }) => React.JSX.Element;
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
1
+ import { default as React } from 'react';
2
+
2
3
  export declare enum ImageShape {
3
4
  square = "square",
4
5
  circle = "circle"
@@ -8,4 +9,4 @@ export declare const Notification: (props: {
8
9
  markAsArchived: (ids: string[] | "ALL") => void;
9
10
  markAsClicked: (id: string) => void;
10
11
  imageShape: keyof typeof ImageShape;
11
- }) => JSX.Element;
12
+ }) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
2
  import { UnreadBadgeProps } from './UnreadBadge';
3
3
 
4
4
  export type NotificationCounterProps = Omit<UnreadBadgeProps, "count"> & {
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { Pagination } from './Inbox';
2
3
  import { ImageShape } from './Notification';
3
4
  import { Filter } from './NotificationPopup';
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { NotificationPopupProps } from './NotificationPopup';
2
3
 
3
4
  export declare enum Position {
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { Pagination } from './Inbox';
2
3
  import { UnreadBadgeProps } from './UnreadBadge';
3
4
  import { ImageShape } from './Notification';
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { default as React, PropsWithChildren } from 'react';
2
2
  import { NotificationPopupProps } from './NotificationPopup';
3
3
 
4
4
  export type UnreadBadgeProps = {
@@ -1,2 +1,3 @@
1
- /// <reference types="react" />
2
- export declare function NotificationPreferencesInline(props: React.HTMLAttributes<HTMLElement>): JSX.Element;
1
+ import { default as React } from 'react';
2
+
3
+ export declare function NotificationPreferencesInline(props: React.HTMLAttributes<HTMLElement>): React.JSX.Element;
@@ -1,7 +1,8 @@
1
- /// <reference types="react" />
1
+ import { default as React } from 'react';
2
+
2
3
  type NotificationPreferencesPopupProps = {
3
4
  open?: boolean;
4
5
  onClose?: () => void;
5
6
  };
6
- export declare function NotificationPreferencesPopup(props: NotificationPreferencesPopupProps): JSX.Element;
7
+ export declare function NotificationPreferencesPopup(props: NotificationPreferencesPopupProps): React.JSX.Element;
7
8
  export {};
@@ -1,4 +1,5 @@
1
- /// <reference types="react" />
1
+ import { default as React } from 'react';
2
+
2
3
  type PreferenceGroupProps = {
3
4
  subNotificationId?: string;
4
5
  title: string;
@@ -1,5 +1,6 @@
1
+ import { default as React } from 'react';
1
2
  import { Channels } from '../Provider';
2
3
 
3
4
  export declare const getChannelLabel: (c: Channels) => string;
4
5
  export declare const getChannelIcon: (channel: Channels) => React.ReactElement;
5
- export declare function Preferences(): JSX.Element | null;
6
+ export declare function Preferences(): React.JSX.Element | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@notificationapi/react",
3
3
  "private": false,
4
- "version": "0.0.6",
4
+ "version": "0.0.8",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",