@novu/nextjs 3.0.0 → 3.0.3

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.
Files changed (36) hide show
  1. package/dist/cjs/pages-router/Inbox.js +9 -1
  2. package/dist/cjs/pages-router/Inbox.js.map +1 -1
  3. package/dist/esm/pages-router/Inbox.js +9 -1
  4. package/dist/esm/pages-router/Inbox.js.map +1 -1
  5. package/dist/types/pages-router/Inbox.d.ts.map +1 -1
  6. package/package.json +2 -2
  7. package/dist/app-router/Inbox.d.mts +0 -7
  8. package/dist/app-router/Inbox.d.ts +0 -7
  9. package/dist/app-router/Inbox.js +0 -47
  10. package/dist/app-router/Inbox.js.map +0 -1
  11. package/dist/app-router/esm/Inbox.js +0 -18
  12. package/dist/app-router/esm/Inbox.js.map +0 -1
  13. package/dist/app-router/esm/index.js +0 -10
  14. package/dist/app-router/esm/index.js.map +0 -1
  15. package/dist/app-router/index.d.mts +0 -3
  16. package/dist/app-router/index.d.ts +0 -3
  17. package/dist/app-router/index.js +0 -39
  18. package/dist/app-router/index.js.map +0 -1
  19. package/dist/client/esm/index.js +0 -18
  20. package/dist/client/esm/index.js.map +0 -1
  21. package/dist/client/index.d.mts +0 -7
  22. package/dist/client/index.d.ts +0 -7
  23. package/dist/client/index.js +0 -50
  24. package/dist/client/index.js.map +0 -1
  25. package/dist/hooks/esm/index.js +0 -5
  26. package/dist/hooks/esm/index.js.map +0 -1
  27. package/dist/hooks/index.d.mts +0 -1
  28. package/dist/hooks/index.d.ts +0 -1
  29. package/dist/hooks/index.js +0 -26
  30. package/dist/hooks/index.js.map +0 -1
  31. package/dist/themes/esm/index.js +0 -5
  32. package/dist/themes/esm/index.js.map +0 -1
  33. package/dist/themes/index.d.mts +0 -1
  34. package/dist/themes/index.d.ts +0 -1
  35. package/dist/themes/index.js +0 -26
  36. package/dist/themes/index.js.map +0 -1
@@ -30,11 +30,19 @@ __export(Inbox_exports, {
30
30
  });
31
31
  module.exports = __toCommonJS(Inbox_exports);
32
32
  var import_react = require("@novu/react");
33
- var import_router = require("next/router");
33
+ var import_navigation = require("next/navigation");
34
+ var import_router = require("next/compat/router");
34
35
  var import_react2 = require("@novu/react");
35
36
  var import_jsx_runtime = require("react/jsx-runtime");
37
+ function AppRouterInbox(props) {
38
+ const router = (0, import_navigation.useRouter)();
39
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Inbox, { routerPush: router.push, ...props });
40
+ }
36
41
  function Inbox(props) {
37
42
  const router = (0, import_router.useRouter)();
43
+ if (!router) {
44
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppRouterInbox, { ...props });
45
+ }
38
46
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Inbox, { routerPush: router.push, ...props });
39
47
  }
40
48
  // Annotate the CommonJS export names for ESM import in node:
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/pages-router/Inbox.tsx"],"sourcesContent":["'use client';\n\nimport { InboxProps, Inbox as RInbox } from '@novu/react';\nimport { useRouter } from 'next/router';\n\nexport function Inbox(props: InboxProps) {\n const router = useRouter();\n\n return <RInbox routerPush={router.push} {...props} />;\n}\n\nexport { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAA4C;AAC5C,oBAA0B;AAQ1B,IAAAA,gBAA6E;AAHpE;AAHF,SAAS,MAAM,OAAmB;AACvC,QAAM,aAAS,yBAAU;AAEzB,SAAO,4CAAC,aAAAC,OAAA,EAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD;","names":["import_react","RInbox"]}
1
+ {"version":3,"sources":["../../../src/pages-router/Inbox.tsx"],"sourcesContent":["'use client';\n\nimport { InboxProps, Inbox as RInbox } from '@novu/react';\nimport { useRouter as useAppRouter } from 'next/navigation';\nimport { useRouter } from 'next/compat/router';\n\nfunction AppRouterInbox(props: InboxProps) {\n const router = useAppRouter();\n\n return <RInbox routerPush={router.push} {...props} />;\n}\n\nexport function Inbox(props: InboxProps) {\n const router = useRouter();\n\n if (!router) {\n return <AppRouterInbox {...props} />;\n }\n\n return <RInbox routerPush={router.push} {...props} />;\n}\n\nexport { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAA4C;AAC5C,wBAA0C;AAC1C,oBAA0B;AAkB1B,IAAAA,gBAA6E;AAbpE;AAHT,SAAS,eAAe,OAAmB;AACzC,QAAM,aAAS,kBAAAC,WAAa;AAE5B,SAAO,4CAAC,aAAAC,OAAA,EAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD;AAEO,SAAS,MAAM,OAAmB;AACvC,QAAM,aAAS,yBAAU;AAEzB,MAAI,CAAC,QAAQ;AACX,WAAO,4CAAC,kBAAgB,GAAG,OAAO;AAAA,EACpC;AAEA,SAAO,4CAAC,aAAAA,OAAA,EAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD;","names":["import_react","useAppRouter","RInbox"]}
@@ -2,11 +2,19 @@
2
2
 
3
3
  // src/pages-router/Inbox.tsx
4
4
  import { Inbox as RInbox } from "@novu/react";
5
- import { useRouter } from "next/router";
5
+ import { useRouter as useAppRouter } from "next/navigation";
6
+ import { useRouter } from "next/compat/router";
6
7
  import { Bell, Preferences, Notifications, InboxContent, NovuProvider } from "@novu/react";
7
8
  import { jsx } from "react/jsx-runtime";
9
+ function AppRouterInbox(props) {
10
+ const router = useAppRouter();
11
+ return /* @__PURE__ */ jsx(RInbox, { routerPush: router.push, ...props });
12
+ }
8
13
  function Inbox(props) {
9
14
  const router = useRouter();
15
+ if (!router) {
16
+ return /* @__PURE__ */ jsx(AppRouterInbox, { ...props });
17
+ }
10
18
  return /* @__PURE__ */ jsx(RInbox, { routerPush: router.push, ...props });
11
19
  }
12
20
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/pages-router/Inbox.tsx"],"sourcesContent":["'use client';\n\nimport { InboxProps, Inbox as RInbox } from '@novu/react';\nimport { useRouter } from 'next/router';\n\nexport function Inbox(props: InboxProps) {\n const router = useRouter();\n\n return <RInbox routerPush={router.push} {...props} />;\n}\n\nexport { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';\n"],"mappings":";;;AAEA,SAAqB,SAAS,cAAc;AAC5C,SAAS,iBAAiB;AAQ1B,SAAS,MAAM,aAAa,eAAe,cAAc,oBAAoB;AAHpE;AAHF,SAAS,MAAM,OAAmB;AACvC,QAAM,SAAS,UAAU;AAEzB,SAAO,oBAAC,UAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD;","names":[]}
1
+ {"version":3,"sources":["../../../src/pages-router/Inbox.tsx"],"sourcesContent":["'use client';\n\nimport { InboxProps, Inbox as RInbox } from '@novu/react';\nimport { useRouter as useAppRouter } from 'next/navigation';\nimport { useRouter } from 'next/compat/router';\n\nfunction AppRouterInbox(props: InboxProps) {\n const router = useAppRouter();\n\n return <RInbox routerPush={router.push} {...props} />;\n}\n\nexport function Inbox(props: InboxProps) {\n const router = useRouter();\n\n if (!router) {\n return <AppRouterInbox {...props} />;\n }\n\n return <RInbox routerPush={router.push} {...props} />;\n}\n\nexport { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';\n"],"mappings":";;;AAEA,SAAqB,SAAS,cAAc;AAC5C,SAAS,aAAa,oBAAoB;AAC1C,SAAS,iBAAiB;AAkB1B,SAAS,MAAM,aAAa,eAAe,cAAc,oBAAoB;AAbpE;AAHT,SAAS,eAAe,OAAmB;AACzC,QAAM,SAAS,aAAa;AAE5B,SAAO,oBAAC,UAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD;AAEO,SAAS,MAAM,OAAmB;AACvC,QAAM,SAAS,UAAU;AAEzB,MAAI,CAAC,QAAQ;AACX,WAAO,oBAAC,kBAAgB,GAAG,OAAO;AAAA,EACpC;AAEA,SAAO,oBAAC,UAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"Inbox.d.ts","sourceRoot":"","sources":["../../../src/pages-router/Inbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAmB,MAAM,aAAa,CAAC;AAG1D,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,2CAItC;AAED,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"Inbox.d.ts","sourceRoot":"","sources":["../../../src/pages-router/Inbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAmB,MAAM,aAAa,CAAC;AAU1D,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,2CAQtC;AAED,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novu/nextjs",
3
- "version": "3.0.0",
3
+ "version": "3.0.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/novuhq/novu",
@@ -93,7 +93,7 @@
93
93
  }
94
94
  },
95
95
  "dependencies": {
96
- "@novu/react": "3.0.0"
96
+ "@novu/react": "3.0.3"
97
97
  },
98
98
  "nx": {
99
99
  "tags": [
@@ -1,7 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { InboxProps } from '@novu/react';
3
- export { Bell, InboxContent, Notifications, NovuProvider, Preferences } from '@novu/react';
4
-
5
- declare function Inbox(props: InboxProps): react_jsx_runtime.JSX.Element;
6
-
7
- export { Inbox };
@@ -1,7 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { InboxProps } from '@novu/react';
3
- export { Bell, InboxContent, Notifications, NovuProvider, Preferences } from '@novu/react';
4
-
5
- declare function Inbox(props: InboxProps): react_jsx_runtime.JSX.Element;
6
-
7
- export { Inbox };
@@ -1,47 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
- var Inbox_exports = {};
21
- __export(Inbox_exports, {
22
- Bell: () => import_react2.Bell,
23
- Inbox: () => Inbox,
24
- InboxContent: () => import_react2.InboxContent,
25
- Notifications: () => import_react2.Notifications,
26
- NovuProvider: () => import_react2.NovuProvider,
27
- Preferences: () => import_react2.Preferences
28
- });
29
- module.exports = __toCommonJS(Inbox_exports);
30
- var import_jsx_runtime = require("react/jsx-runtime");
31
- var import_react = require("@novu/react");
32
- var import_navigation = require("next/navigation");
33
- var import_react2 = require("@novu/react");
34
- function Inbox(props) {
35
- const router = (0, import_navigation.useRouter)();
36
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Inbox, { routerPush: router.push, ...props });
37
- }
38
- // Annotate the CommonJS export names for ESM import in node:
39
- 0 && (module.exports = {
40
- Bell,
41
- Inbox,
42
- InboxContent,
43
- Notifications,
44
- NovuProvider,
45
- Preferences
46
- });
47
- //# sourceMappingURL=Inbox.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/app-router/Inbox.tsx"],"sourcesContent":["'use client';\n\nimport { Inbox as RInbox, type InboxProps } from '@novu/react';\nimport { useRouter } from 'next/navigation';\n\nexport function Inbox(props: InboxProps) {\n const router = useRouter();\n\n return <RInbox routerPush={router.push} {...props} />;\n}\n\nexport { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQS;AANT,mBAAiD;AACjD,wBAA0B;AAQ1B,IAAAA,gBAA6E;AANtE,SAAS,MAAM,OAAmB;AACvC,QAAM,aAAS,6BAAU;AAEzB,SAAO,4CAAC,aAAAC,OAAA,EAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD;","names":["import_react","RInbox"]}
@@ -1,18 +0,0 @@
1
- "use client";
2
- import { jsx } from "react/jsx-runtime";
3
- import { Inbox as RInbox } from "@novu/react";
4
- import { useRouter } from "next/navigation";
5
- function Inbox(props) {
6
- const router = useRouter();
7
- return /* @__PURE__ */ jsx(RInbox, { routerPush: router.push, ...props });
8
- }
9
- import { Bell, Preferences, Notifications, InboxContent, NovuProvider } from "@novu/react";
10
- export {
11
- Bell,
12
- Inbox,
13
- InboxContent,
14
- Notifications,
15
- NovuProvider,
16
- Preferences
17
- };
18
- //# sourceMappingURL=Inbox.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/app-router/Inbox.tsx"],"sourcesContent":["'use client';\n\nimport { Inbox as RInbox, type InboxProps } from '@novu/react';\nimport { useRouter } from 'next/navigation';\n\nexport function Inbox(props: InboxProps) {\n const router = useRouter();\n\n return <RInbox routerPush={router.push} {...props} />;\n}\n\nexport { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';\n"],"mappings":";AAQS;AANT,SAAS,SAAS,cAA+B;AACjD,SAAS,iBAAiB;AAEnB,SAAS,MAAM,OAAmB;AACvC,QAAM,SAAS,UAAU;AAEzB,SAAO,oBAAC,UAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD;AAEA,SAAS,MAAM,aAAa,eAAe,cAAc,oBAAoB;","names":[]}
@@ -1,10 +0,0 @@
1
- import { Inbox, Bell, Preferences, Notifications, InboxContent, NovuProvider } from "./Inbox";
2
- export {
3
- Bell,
4
- Inbox,
5
- InboxContent,
6
- Notifications,
7
- NovuProvider,
8
- Preferences
9
- };
10
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/app-router/index.ts"],"sourcesContent":["export { Inbox, Bell, Preferences, Notifications, InboxContent, NovuProvider } from './Inbox';\n\nexport type {\n BaseProps,\n BellProps,\n BellRenderer,\n DefaultInboxProps,\n DefaultProps,\n InboxContentProps,\n InboxProps,\n Notification,\n NotificationProps,\n NotificationsRenderer,\n WithChildrenProps,\n} from '@novu/react';\n"],"mappings":"AAAA,SAAS,OAAO,MAAM,aAAa,eAAe,cAAc,oBAAoB;","names":[]}
@@ -1,3 +0,0 @@
1
- export { Inbox } from './Inbox.mjs';
2
- export { BaseProps, Bell, BellProps, BellRenderer, DefaultInboxProps, DefaultProps, InboxContent, InboxContentProps, InboxProps, Notification, NotificationProps, Notifications, NotificationsRenderer, NovuProvider, Preferences, WithChildrenProps } from '@novu/react';
3
- import 'react/jsx-runtime';
@@ -1,3 +0,0 @@
1
- export { Inbox } from './Inbox.js';
2
- export { BaseProps, Bell, BellProps, BellRenderer, DefaultInboxProps, DefaultProps, InboxContent, InboxContentProps, InboxProps, Notification, NotificationProps, Notifications, NotificationsRenderer, NovuProvider, Preferences, WithChildrenProps } from '@novu/react';
3
- import 'react/jsx-runtime';
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var app_router_exports = {};
20
- __export(app_router_exports, {
21
- Bell: () => import_Inbox.Bell,
22
- Inbox: () => import_Inbox.Inbox,
23
- InboxContent: () => import_Inbox.InboxContent,
24
- Notifications: () => import_Inbox.Notifications,
25
- NovuProvider: () => import_Inbox.NovuProvider,
26
- Preferences: () => import_Inbox.Preferences
27
- });
28
- module.exports = __toCommonJS(app_router_exports);
29
- var import_Inbox = require("./Inbox");
30
- // Annotate the CommonJS export names for ESM import in node:
31
- 0 && (module.exports = {
32
- Bell,
33
- Inbox,
34
- InboxContent,
35
- Notifications,
36
- NovuProvider,
37
- Preferences
38
- });
39
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/app-router/index.ts"],"sourcesContent":["export { Inbox, Bell, Preferences, Notifications, InboxContent, NovuProvider } from './Inbox';\n\nexport type {\n BaseProps,\n BellProps,\n BellRenderer,\n DefaultInboxProps,\n DefaultProps,\n InboxContentProps,\n InboxProps,\n Notification,\n NotificationProps,\n NotificationsRenderer,\n WithChildrenProps,\n} from '@novu/react';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAoF;","names":[]}
@@ -1,18 +0,0 @@
1
- // src/components/Inbox.tsx
2
- import { Inbox as RInbox } from "@novu/react";
3
- import { useRouter } from "next/router";
4
- import { Bell, Preferences, Notifications, InboxContent, NovuProvider } from "@novu/react";
5
- import { jsx } from "react/jsx-runtime";
6
- function Inbox(props) {
7
- const router = useRouter();
8
- return /* @__PURE__ */ jsx(RInbox, { routerPush: router.push, ...props });
9
- }
10
- export {
11
- Bell,
12
- Inbox,
13
- InboxContent,
14
- Notifications,
15
- NovuProvider,
16
- Preferences
17
- };
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/Inbox.tsx"],"sourcesContent":["'use client';\n\nimport { InboxProps, Inbox as RInbox } from '@novu/react';\nimport { useRouter } from 'next/router';\n\nexport function Inbox(props: InboxProps) {\n const router = useRouter();\n\n return <RInbox routerPush={router.push} {...props} />;\n}\n\nexport { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';\n"],"mappings":";AAEA,SAAqB,SAAS,cAAc;AAC5C,SAAS,iBAAiB;AAQ1B,SAAS,MAAM,aAAa,eAAe,cAAc,oBAAoB;AAHpE;AAHF,SAAS,MAAM,OAAmB;AACvC,QAAM,SAAS,UAAU;AAEzB,SAAO,oBAAC,UAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD;","names":[]}
@@ -1,7 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { InboxProps } from '@novu/react';
3
- export { BaseProps, Bell, BellProps, BellRenderer, DefaultInboxProps, DefaultProps, InboxContent, InboxContentProps, InboxProps, Notification, NotificationProps, Notifications, NotificationsRenderer, NovuProvider, Preferences, WithChildrenProps } from '@novu/react';
4
-
5
- declare function Inbox(props: InboxProps): react_jsx_runtime.JSX.Element;
6
-
7
- export { Inbox };
@@ -1,7 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { InboxProps } from '@novu/react';
3
- export { BaseProps, Bell, BellProps, BellRenderer, DefaultInboxProps, DefaultProps, InboxContent, InboxContentProps, InboxProps, Notification, NotificationProps, Notifications, NotificationsRenderer, NovuProvider, Preferences, WithChildrenProps } from '@novu/react';
4
-
5
- declare function Inbox(props: InboxProps): react_jsx_runtime.JSX.Element;
6
-
7
- export { Inbox };
@@ -1,50 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/components/index.ts
21
- var components_exports = {};
22
- __export(components_exports, {
23
- Bell: () => import_react2.Bell,
24
- Inbox: () => Inbox,
25
- InboxContent: () => import_react2.InboxContent,
26
- Notifications: () => import_react2.Notifications,
27
- NovuProvider: () => import_react2.NovuProvider,
28
- Preferences: () => import_react2.Preferences
29
- });
30
- module.exports = __toCommonJS(components_exports);
31
-
32
- // src/components/Inbox.tsx
33
- var import_react = require("@novu/react");
34
- var import_router = require("next/router");
35
- var import_react2 = require("@novu/react");
36
- var import_jsx_runtime = require("react/jsx-runtime");
37
- function Inbox(props) {
38
- const router = (0, import_router.useRouter)();
39
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Inbox, { routerPush: router.push, ...props });
40
- }
41
- // Annotate the CommonJS export names for ESM import in node:
42
- 0 && (module.exports = {
43
- Bell,
44
- Inbox,
45
- InboxContent,
46
- Notifications,
47
- NovuProvider,
48
- Preferences
49
- });
50
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/index.ts","../../src/components/Inbox.tsx"],"sourcesContent":["export { Inbox, Bell, Preferences, Notifications, InboxContent, NovuProvider } from './Inbox';\n\nexport type {\n BaseProps,\n BellProps,\n BellRenderer,\n DefaultInboxProps,\n DefaultProps,\n InboxContentProps,\n InboxProps,\n Notification,\n NotificationProps,\n NotificationsRenderer,\n WithChildrenProps,\n} from '@novu/react';\n","'use client';\n\nimport { InboxProps, Inbox as RInbox } from '@novu/react';\nimport { useRouter } from 'next/router';\n\nexport function Inbox(props: InboxProps) {\n const router = useRouter();\n\n return <RInbox routerPush={router.push} {...props} />;\n}\n\nexport { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,mBAA4C;AAC5C,oBAA0B;AAQ1B,IAAAA,gBAA6E;AAHpE;AAHF,SAAS,MAAM,OAAmB;AACvC,QAAM,aAAS,yBAAU;AAEzB,SAAO,4CAAC,aAAAC,OAAA,EAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD;","names":["import_react","RInbox"]}
@@ -1,5 +0,0 @@
1
- "use client";
2
-
3
- // src/hooks/index.ts
4
- export * from "@novu/react/hooks";
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/hooks/index.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\n\n'use client';\n\nexport * from '@novu/react/hooks';\n"],"mappings":";;;AAIA,cAAc;","names":[]}
@@ -1 +0,0 @@
1
- export * from '@novu/react/hooks';
@@ -1 +0,0 @@
1
- export * from '@novu/react/hooks';
@@ -1,26 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from))
10
- if (!__hasOwnProp.call(to, key) && key !== except)
11
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- }
13
- return to;
14
- };
15
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
16
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
17
-
18
- // src/hooks/index.ts
19
- var hooks_exports = {};
20
- module.exports = __toCommonJS(hooks_exports);
21
- __reExport(hooks_exports, require("@novu/react/hooks"), module.exports);
22
- // Annotate the CommonJS export names for ESM import in node:
23
- 0 && (module.exports = {
24
- ...require("@novu/react/hooks")
25
- });
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/hooks/index.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\n\n'use client';\n\nexport * from '@novu/react/hooks';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAIA,0BAAc,8BAJd;","names":[]}
@@ -1,5 +0,0 @@
1
- "use client";
2
-
3
- // src/themes/index.ts
4
- export * from "@novu/react/themes";
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/themes/index.ts"],"sourcesContent":["'use client';\n\nexport * from '@novu/react/themes';\n"],"mappings":";;;AAEA,cAAc;","names":[]}
@@ -1 +0,0 @@
1
- export * from '@novu/react/themes';
@@ -1 +0,0 @@
1
- export * from '@novu/react/themes';
@@ -1,26 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from))
10
- if (!__hasOwnProp.call(to, key) && key !== except)
11
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- }
13
- return to;
14
- };
15
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
16
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
17
-
18
- // src/themes/index.ts
19
- var themes_exports = {};
20
- module.exports = __toCommonJS(themes_exports);
21
- __reExport(themes_exports, require("@novu/react/themes"), module.exports);
22
- // Annotate the CommonJS export names for ESM import in node:
23
- 0 && (module.exports = {
24
- ...require("@novu/react/themes")
25
- });
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/themes/index.ts"],"sourcesContent":["'use client';\n\nexport * from '@novu/react/themes';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAEA,2BAAc,+BAFd;","names":[]}