@novu/nextjs 2.6.5 → 3.0.0-canary.0
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/dist/app-router/Inbox.d.mts +7 -0
- package/dist/app-router/Inbox.d.ts +7 -0
- package/dist/app-router/Inbox.js +47 -0
- package/dist/app-router/Inbox.js.map +1 -0
- package/dist/app-router/esm/Inbox.js +18 -0
- package/dist/app-router/esm/Inbox.js.map +1 -0
- package/dist/app-router/esm/index.js +10 -0
- package/dist/app-router/esm/index.js.map +1 -0
- package/dist/app-router/index.d.mts +3 -0
- package/dist/app-router/index.d.ts +3 -0
- package/dist/app-router/index.js +39 -0
- package/dist/app-router/index.js.map +1 -0
- package/dist/cjs/app-router/Inbox.js +38 -0
- package/dist/cjs/app-router/Inbox.js.map +1 -0
- package/dist/cjs/app-router/index.js +42 -0
- package/dist/cjs/app-router/index.js.map +1 -0
- package/dist/cjs/hooks/index.js +26 -0
- package/dist/cjs/hooks/index.js.map +1 -0
- package/dist/cjs/pages-router/Inbox.js +49 -0
- package/dist/cjs/pages-router/Inbox.js.map +1 -0
- package/dist/cjs/pages-router/index.js +42 -0
- package/dist/cjs/pages-router/index.js.map +1 -0
- package/dist/cjs/server/index.js +49 -0
- package/dist/cjs/server/index.js.map +1 -0
- package/dist/cjs/themes/index.js +26 -0
- package/dist/cjs/themes/index.js.map +1 -0
- package/dist/client/esm/index.js +18 -0
- package/dist/client/esm/index.js.map +1 -0
- package/dist/client/index.d.mts +3 -5
- package/dist/client/index.d.ts +3 -5
- package/dist/client/index.js +23 -35
- package/dist/client/index.js.map +1 -1
- package/dist/esm/app-router/Inbox.js +14 -0
- package/dist/esm/app-router/Inbox.js.map +1 -0
- package/dist/esm/app-router/index.js +12 -0
- package/dist/esm/app-router/index.js.map +1 -0
- package/dist/{hooks/index.mjs → esm/hooks/index.js} +1 -1
- package/dist/esm/hooks/index.js.map +1 -0
- package/dist/esm/pages-router/Inbox.js +20 -0
- package/dist/esm/pages-router/Inbox.js.map +1 -0
- package/dist/esm/pages-router/index.js +12 -0
- package/dist/esm/pages-router/index.js.map +1 -0
- package/dist/esm/server/index.js +26 -0
- package/dist/esm/server/index.js.map +1 -0
- package/dist/{themes/index.mjs → esm/themes/index.js} +1 -1
- package/dist/esm/themes/index.js.map +1 -0
- package/dist/hooks/esm/index.js +5 -0
- package/dist/hooks/esm/index.js.map +1 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/index.js.map +1 -1
- package/dist/themes/esm/index.js +5 -0
- package/dist/themes/esm/index.js.map +1 -0
- package/dist/themes/index.js +4 -0
- package/dist/types/app-router/Inbox.d.ts +3 -0
- package/dist/types/app-router/Inbox.d.ts.map +1 -0
- package/dist/types/app-router/index.d.ts +4 -0
- package/dist/types/app-router/index.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/index.d.ts.map +1 -0
- package/dist/types/pages-router/Inbox.d.ts +4 -0
- package/dist/types/pages-router/Inbox.d.ts.map +1 -0
- package/dist/types/pages-router/index.d.ts +4 -0
- package/dist/types/pages-router/index.d.ts.map +1 -0
- package/dist/types/server/index.d.ts +3 -0
- package/dist/types/server/index.d.ts.map +1 -0
- package/dist/types/themes/index.d.ts +2 -0
- package/dist/types/themes/index.d.ts.map +1 -0
- package/hooks/package.json +3 -3
- package/package.json +44 -34
- package/server/package.json +5 -0
- package/themes/package.json +3 -3
- package/dist/client/index.mjs +0 -62
- package/dist/client/index.mjs.map +0 -1
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/themes/index.mjs.map +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
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 };
|
|
@@ -0,0 +1,7 @@
|
|
|
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 };
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1,3 @@
|
|
|
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';
|
|
@@ -0,0 +1,3 @@
|
|
|
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';
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
|
|
21
|
+
// src/app-router/Inbox.tsx
|
|
22
|
+
var Inbox_exports = {};
|
|
23
|
+
__export(Inbox_exports, {
|
|
24
|
+
Inbox: () => Inbox
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(Inbox_exports);
|
|
27
|
+
var import_react = require("@novu/react");
|
|
28
|
+
var import_navigation = require("next/navigation");
|
|
29
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
+
function Inbox(props) {
|
|
31
|
+
const router = (0, import_navigation.useRouter)();
|
|
32
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Inbox, { routerPush: router.push, ...props });
|
|
33
|
+
}
|
|
34
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
Inbox
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=Inbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAAiD;AACjD,wBAA0B;AAKjB;AAHF,SAAS,MAAM,OAAmB;AACvC,QAAM,aAAS,6BAAU;AAEzB,SAAO,4CAAC,aAAAA,OAAA,EAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD;","names":["RInbox"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
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/app-router/index.ts
|
|
21
|
+
var app_router_exports = {};
|
|
22
|
+
__export(app_router_exports, {
|
|
23
|
+
Bell: () => import_react.Bell,
|
|
24
|
+
Inbox: () => import_Inbox.Inbox,
|
|
25
|
+
InboxContent: () => import_react.InboxContent,
|
|
26
|
+
Notifications: () => import_react.Notifications,
|
|
27
|
+
NovuProvider: () => import_react.NovuProvider,
|
|
28
|
+
Preferences: () => import_react.Preferences
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(app_router_exports);
|
|
31
|
+
var import_Inbox = require("./Inbox.js");
|
|
32
|
+
var import_react = require("@novu/react");
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
Bell,
|
|
36
|
+
Inbox,
|
|
37
|
+
InboxContent,
|
|
38
|
+
Notifications,
|
|
39
|
+
NovuProvider,
|
|
40
|
+
Preferences
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/app-router/index.ts"],"sourcesContent":["export { Inbox } from './Inbox';\nexport { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';\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,mBAAsB;AACtB,mBAA6E;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
|
|
21
|
+
// src/pages-router/Inbox.tsx
|
|
22
|
+
var Inbox_exports = {};
|
|
23
|
+
__export(Inbox_exports, {
|
|
24
|
+
Bell: () => import_react2.Bell,
|
|
25
|
+
Inbox: () => Inbox,
|
|
26
|
+
InboxContent: () => import_react2.InboxContent,
|
|
27
|
+
Notifications: () => import_react2.Notifications,
|
|
28
|
+
NovuProvider: () => import_react2.NovuProvider,
|
|
29
|
+
Preferences: () => import_react2.Preferences
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(Inbox_exports);
|
|
32
|
+
var import_react = require("@novu/react");
|
|
33
|
+
var import_router = require("next/router");
|
|
34
|
+
var import_react2 = require("@novu/react");
|
|
35
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
36
|
+
function Inbox(props) {
|
|
37
|
+
const router = (0, import_router.useRouter)();
|
|
38
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Inbox, { routerPush: router.push, ...props });
|
|
39
|
+
}
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
Bell,
|
|
43
|
+
Inbox,
|
|
44
|
+
InboxContent,
|
|
45
|
+
Notifications,
|
|
46
|
+
NovuProvider,
|
|
47
|
+
Preferences
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=Inbox.js.map
|
|
@@ -0,0 +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"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
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/pages-router/index.ts
|
|
21
|
+
var pages_router_exports = {};
|
|
22
|
+
__export(pages_router_exports, {
|
|
23
|
+
Bell: () => import_react.Bell,
|
|
24
|
+
Inbox: () => import_Inbox.Inbox,
|
|
25
|
+
InboxContent: () => import_react.InboxContent,
|
|
26
|
+
Notifications: () => import_react.Notifications,
|
|
27
|
+
NovuProvider: () => import_react.NovuProvider,
|
|
28
|
+
Preferences: () => import_react.Preferences
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(pages_router_exports);
|
|
31
|
+
var import_Inbox = require("./Inbox.js");
|
|
32
|
+
var import_react = require("@novu/react");
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
Bell,
|
|
36
|
+
Inbox,
|
|
37
|
+
InboxContent,
|
|
38
|
+
Notifications,
|
|
39
|
+
NovuProvider,
|
|
40
|
+
Preferences
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/pages-router/index.ts"],"sourcesContent":["export { Inbox } from './Inbox';\nexport { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';\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,mBAAsB;AACtB,mBAA6E;","names":[]}
|
|
@@ -0,0 +1,49 @@
|
|
|
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/server/index.ts
|
|
21
|
+
var server_exports = {};
|
|
22
|
+
__export(server_exports, {
|
|
23
|
+
Bell: () => import_server.Bell,
|
|
24
|
+
Inbox: () => import_server.Inbox,
|
|
25
|
+
InboxContent: () => import_server.InboxContent,
|
|
26
|
+
Notifications: () => import_server.Notifications,
|
|
27
|
+
NovuProvider: () => import_server.NovuProvider,
|
|
28
|
+
Preferences: () => import_server.Preferences,
|
|
29
|
+
useCounts: () => import_server.useCounts,
|
|
30
|
+
useNotifications: () => import_server.useNotifications,
|
|
31
|
+
useNovu: () => import_server.useNovu,
|
|
32
|
+
usePreferences: () => import_server.usePreferences
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(server_exports);
|
|
35
|
+
var import_server = require("@novu/react/server");
|
|
36
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
37
|
+
0 && (module.exports = {
|
|
38
|
+
Bell,
|
|
39
|
+
Inbox,
|
|
40
|
+
InboxContent,
|
|
41
|
+
Notifications,
|
|
42
|
+
NovuProvider,
|
|
43
|
+
Preferences,
|
|
44
|
+
useCounts,
|
|
45
|
+
useNotifications,
|
|
46
|
+
useNovu,
|
|
47
|
+
usePreferences
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/server/index.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\n\nexport type {\n BaseProps,\n DefaultInboxProps,\n DefaultProps,\n NoRendererProps,\n NotificationRendererProps,\n SubjectBodyRendererProps,\n WithChildrenProps,\n BellRenderer,\n BodyRenderer,\n NotificationsRenderer,\n Notification,\n} from '@novu/react';\n\nexport {\n Inbox,\n InboxContent,\n Notifications,\n Preferences,\n Bell,\n NovuProvider,\n useNovu,\n useCounts,\n useNotifications,\n usePreferences,\n} from '@novu/react/server';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,oBAWO;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
package/dist/client/index.d.mts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { InboxProps } from '@novu/react';
|
|
2
|
-
export { BaseProps, Bell, BellProps, BellRenderer, DefaultInboxProps, DefaultProps, InboxContent, InboxContentProps, InboxProps, Notification, NotificationProps, Notifications, NotificationsRenderer, Preferences, WithChildrenProps } from '@novu/react';
|
|
3
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import
|
|
5
|
-
export
|
|
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';
|
|
6
4
|
|
|
7
|
-
declare
|
|
5
|
+
declare function Inbox(props: InboxProps): react_jsx_runtime.JSX.Element;
|
|
8
6
|
|
|
9
7
|
export { Inbox };
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { InboxProps } from '@novu/react';
|
|
2
|
-
export { BaseProps, Bell, BellProps, BellRenderer, DefaultInboxProps, DefaultProps, InboxContent, InboxContentProps, InboxProps, Notification, NotificationProps, Notifications, NotificationsRenderer, Preferences, WithChildrenProps } from '@novu/react';
|
|
3
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import
|
|
5
|
-
export
|
|
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';
|
|
6
4
|
|
|
7
|
-
declare
|
|
5
|
+
declare function Inbox(props: InboxProps): react_jsx_runtime.JSX.Element;
|
|
8
6
|
|
|
9
7
|
export { Inbox };
|
package/dist/client/index.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __create = Object.create;
|
|
4
2
|
var __defProp = Object.defineProperty;
|
|
5
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
6
|
var __export = (target, all) => {
|
|
10
7
|
for (var name in all)
|
|
@@ -18,45 +15,36 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
15
|
}
|
|
19
16
|
return to;
|
|
20
17
|
};
|
|
21
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
-
mod
|
|
29
|
-
));
|
|
30
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
19
|
|
|
32
|
-
// src/index.ts
|
|
33
|
-
var
|
|
34
|
-
__export(
|
|
35
|
-
Bell: () =>
|
|
20
|
+
// src/components/index.ts
|
|
21
|
+
var components_exports = {};
|
|
22
|
+
__export(components_exports, {
|
|
23
|
+
Bell: () => import_react2.Bell,
|
|
36
24
|
Inbox: () => Inbox,
|
|
37
|
-
InboxContent: () =>
|
|
38
|
-
Notifications: () =>
|
|
39
|
-
|
|
25
|
+
InboxContent: () => import_react2.InboxContent,
|
|
26
|
+
Notifications: () => import_react2.Notifications,
|
|
27
|
+
NovuProvider: () => import_react2.NovuProvider,
|
|
28
|
+
Preferences: () => import_react2.Preferences
|
|
40
29
|
});
|
|
41
|
-
module.exports = __toCommonJS(
|
|
42
|
-
|
|
43
|
-
// src/components/index.ts
|
|
44
|
-
var import_react3 = require("@novu/react");
|
|
30
|
+
module.exports = __toCommonJS(components_exports);
|
|
45
31
|
|
|
46
32
|
// src/components/Inbox.tsx
|
|
47
|
-
var import_react =
|
|
33
|
+
var import_react = require("@novu/react");
|
|
34
|
+
var import_router = require("next/router");
|
|
48
35
|
var import_react2 = require("@novu/react");
|
|
49
|
-
var import_navigation = require("next/navigation");
|
|
50
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
51
|
-
|
|
52
|
-
const router = (0,
|
|
53
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
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
|
|
54
49
|
});
|
|
55
|
-
|
|
56
|
-
// src/hooks/index.ts
|
|
57
|
-
var hooks_exports = {};
|
|
58
|
-
__reExport(hooks_exports, require("@novu/react/hooks"));
|
|
59
|
-
|
|
60
|
-
// src/index.ts
|
|
61
|
-
__reExport(src_exports, hooks_exports, module.exports);
|
|
62
50
|
//# sourceMappingURL=index.js.map
|
package/dist/client/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
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"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/app-router/Inbox.tsx
|
|
4
|
+
import { Inbox as RInbox } from "@novu/react";
|
|
5
|
+
import { useRouter } from "next/navigation";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
function Inbox(props) {
|
|
8
|
+
const router = useRouter();
|
|
9
|
+
return /* @__PURE__ */ jsx(RInbox, { routerPush: router.push, ...props });
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
Inbox
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=Inbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"],"mappings":";;;AAEA,SAAS,SAAS,cAA+B;AACjD,SAAS,iBAAiB;AAKjB;AAHF,SAAS,MAAM,OAAmB;AACvC,QAAM,SAAS,UAAU;AAEzB,SAAO,oBAAC,UAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD;","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/app-router/index.ts
|
|
2
|
+
import { Inbox } from "./Inbox.js";
|
|
3
|
+
import { Bell, Preferences, Notifications, InboxContent, NovuProvider } from "@novu/react";
|
|
4
|
+
export {
|
|
5
|
+
Bell,
|
|
6
|
+
Inbox,
|
|
7
|
+
InboxContent,
|
|
8
|
+
Notifications,
|
|
9
|
+
NovuProvider,
|
|
10
|
+
Preferences
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/app-router/index.ts"],"sourcesContent":["export { Inbox } from './Inbox';\nexport { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';\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,aAAa;AACtB,SAAS,MAAM,aAAa,eAAe,cAAc,oBAAoB;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/pages-router/Inbox.tsx
|
|
4
|
+
import { Inbox as RInbox } from "@novu/react";
|
|
5
|
+
import { useRouter } from "next/router";
|
|
6
|
+
import { Bell, Preferences, Notifications, InboxContent, NovuProvider } from "@novu/react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
function Inbox(props) {
|
|
9
|
+
const router = useRouter();
|
|
10
|
+
return /* @__PURE__ */ jsx(RInbox, { routerPush: router.push, ...props });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
Bell,
|
|
14
|
+
Inbox,
|
|
15
|
+
InboxContent,
|
|
16
|
+
Notifications,
|
|
17
|
+
NovuProvider,
|
|
18
|
+
Preferences
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=Inbox.js.map
|
|
@@ -0,0 +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":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/pages-router/index.ts
|
|
2
|
+
import { Inbox } from "./Inbox.js";
|
|
3
|
+
import { Bell, Preferences, Notifications, InboxContent, NovuProvider } from "@novu/react";
|
|
4
|
+
export {
|
|
5
|
+
Bell,
|
|
6
|
+
Inbox,
|
|
7
|
+
InboxContent,
|
|
8
|
+
Notifications,
|
|
9
|
+
NovuProvider,
|
|
10
|
+
Preferences
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/pages-router/index.ts"],"sourcesContent":["export { Inbox } from './Inbox';\nexport { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';\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,aAAa;AACtB,SAAS,MAAM,aAAa,eAAe,cAAc,oBAAoB;","names":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/server/index.ts
|
|
2
|
+
import {
|
|
3
|
+
Inbox,
|
|
4
|
+
InboxContent,
|
|
5
|
+
Notifications,
|
|
6
|
+
Preferences,
|
|
7
|
+
Bell,
|
|
8
|
+
NovuProvider,
|
|
9
|
+
useNovu,
|
|
10
|
+
useCounts,
|
|
11
|
+
useNotifications,
|
|
12
|
+
usePreferences
|
|
13
|
+
} from "@novu/react/server";
|
|
14
|
+
export {
|
|
15
|
+
Bell,
|
|
16
|
+
Inbox,
|
|
17
|
+
InboxContent,
|
|
18
|
+
Notifications,
|
|
19
|
+
NovuProvider,
|
|
20
|
+
Preferences,
|
|
21
|
+
useCounts,
|
|
22
|
+
useNotifications,
|
|
23
|
+
useNovu,
|
|
24
|
+
usePreferences
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/server/index.ts"],"sourcesContent":["/* eslint-disable no-restricted-imports */\n\nexport type {\n BaseProps,\n DefaultInboxProps,\n DefaultProps,\n NoRendererProps,\n NotificationRendererProps,\n SubjectBodyRendererProps,\n WithChildrenProps,\n BellRenderer,\n BodyRenderer,\n NotificationsRenderer,\n Notification,\n} from '@novu/react';\n\nexport {\n Inbox,\n InboxContent,\n Notifications,\n Preferences,\n Bell,\n NovuProvider,\n useNovu,\n useCounts,\n useNotifications,\n usePreferences,\n} from '@novu/react/server';\n"],"mappings":";AAgBA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/themes/index.ts"],"sourcesContent":["'use client';\n\nexport * from '@novu/react/themes';\n"],"mappings":";;;AAEA,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
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":[]}
|
package/dist/hooks/index.js
CHANGED
|
@@ -19,4 +19,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var hooks_exports = {};
|
|
20
20
|
module.exports = __toCommonJS(hooks_exports);
|
|
21
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
|
+
});
|
|
22
26
|
//# sourceMappingURL=index.js.map
|
package/dist/hooks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/index.ts"],"sourcesContent":["'use client';\n\nexport * from '@novu/react/hooks';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;
|
|
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":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/themes/index.ts"],"sourcesContent":["'use client';\n\nexport * from '@novu/react/themes';\n"],"mappings":";;;AAEA,cAAc;","names":[]}
|
package/dist/themes/index.js
CHANGED
|
@@ -19,4 +19,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var themes_exports = {};
|
|
20
20
|
module.exports = __toCommonJS(themes_exports);
|
|
21
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
|
+
});
|
|
22
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inbox.d.ts","sourceRoot":"","sources":["../../../src/app-router/Inbox.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAG/D,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,2CAItC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Inbox } from './Inbox';
|
|
2
|
+
export { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';
|
|
3
|
+
export type { BaseProps, BellProps, BellRenderer, DefaultInboxProps, DefaultProps, InboxContentProps, InboxProps, Notification, NotificationProps, NotificationsRenderer, WithChildrenProps, } from '@novu/react';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app-router/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3F,YAAY,EACV,SAAS,EACT,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { Inbox } from './Inbox';
|
|
2
|
+
export { Bell, Preferences, Notifications, InboxContent, NovuProvider } from '@novu/react';
|
|
3
|
+
export type { BaseProps, BellProps, BellRenderer, DefaultInboxProps, DefaultProps, InboxContentProps, InboxProps, Notification, NotificationProps, NotificationsRenderer, WithChildrenProps, } from '@novu/react';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pages-router/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3F,YAAY,EACV,SAAS,EACT,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { BaseProps, DefaultInboxProps, DefaultProps, NoRendererProps, NotificationRendererProps, SubjectBodyRendererProps, WithChildrenProps, BellRenderer, BodyRenderer, NotificationsRenderer, Notification, } from '@novu/react';
|
|
2
|
+
export { Inbox, InboxContent, Notifications, Preferences, Bell, NovuProvider, useNovu, useCounts, useNotifications, usePreferences, } from '@novu/react/server';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,SAAS,EACT,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,yBAAyB,EACzB,wBAAwB,EACxB,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,qBAAqB,EACrB,YAAY,GACb,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,KAAK,EACL,YAAY,EACZ,aAAa,EACb,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,SAAS,EACT,gBAAgB,EAChB,cAAc,GACf,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/themes/index.ts"],"names":[],"mappings":"AAEA,cAAc,oBAAoB,CAAC"}
|
package/hooks/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,50 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novu/nextjs",
|
|
3
|
-
"version": "
|
|
4
|
-
"repository":
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"version": "3.0.0-canary.0",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/novuhq/novu",
|
|
7
|
+
"directory": "packages/nextjs"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://novu.co",
|
|
10
|
+
"description": "Novu <Inbox /> Next.js SDK",
|
|
11
|
+
"author": "Novu",
|
|
7
12
|
"license": "ISC",
|
|
8
|
-
"main": "dist/
|
|
9
|
-
"module": "dist/
|
|
10
|
-
"types": "dist/
|
|
13
|
+
"main": "./dist/cjs/server/index.js",
|
|
14
|
+
"module": "./dist/esm/pages-router/index.js",
|
|
15
|
+
"types": "./dist/types/pages-router/index.d.ts",
|
|
11
16
|
"exports": {
|
|
12
17
|
".": {
|
|
13
18
|
"import": {
|
|
14
|
-
"types": "./dist/
|
|
15
|
-
"
|
|
19
|
+
"types": "./dist/types/pages-router/index.d.ts",
|
|
20
|
+
"react-server": "./dist/esm/app-router/index.js",
|
|
21
|
+
"default": "./dist/esm/pages-router/index.js"
|
|
16
22
|
},
|
|
17
23
|
"require": {
|
|
18
|
-
"types": "./dist/
|
|
19
|
-
"
|
|
24
|
+
"types": "./dist/types/pages-router/index.d.ts",
|
|
25
|
+
"react-server": "./dist/cjs/app-router/index.js",
|
|
26
|
+
"default": "./dist/cjs/pages-router/index.js"
|
|
20
27
|
}
|
|
21
28
|
},
|
|
22
29
|
"./hooks": {
|
|
23
30
|
"import": {
|
|
24
|
-
"types": "./dist/hooks/index.d.
|
|
25
|
-
"default": "./dist/hooks/index.
|
|
31
|
+
"types": "./dist/types/hooks/index.d.ts",
|
|
32
|
+
"default": "./dist/esm/hooks/index.js"
|
|
26
33
|
},
|
|
27
34
|
"require": {
|
|
28
|
-
"types": "./dist/hooks/index.d.ts",
|
|
29
|
-
"default": "./dist/hooks/index.js"
|
|
35
|
+
"types": "./dist/types/hooks/index.d.ts",
|
|
36
|
+
"default": "./dist/cjs/hooks/index.js"
|
|
30
37
|
}
|
|
31
38
|
},
|
|
32
39
|
"./themes": {
|
|
33
40
|
"import": {
|
|
34
|
-
"types": "./dist/themes/index.d.
|
|
35
|
-
"default": "./dist/themes/index.
|
|
41
|
+
"types": "./dist/types/themes/index.d.ts",
|
|
42
|
+
"default": "./dist/esm/themes/index.js"
|
|
36
43
|
},
|
|
37
44
|
"require": {
|
|
38
|
-
"types": "./dist/themes/index.d.ts",
|
|
39
|
-
"default": "./dist/themes/index.js"
|
|
45
|
+
"types": "./dist/types/themes/index.d.ts",
|
|
46
|
+
"default": "./dist/cjs/themes/index.js"
|
|
40
47
|
}
|
|
41
48
|
}
|
|
42
49
|
},
|
|
43
50
|
"files": [
|
|
44
51
|
"dist",
|
|
45
|
-
"dist/
|
|
46
|
-
"dist/
|
|
47
|
-
"dist/
|
|
52
|
+
"dist/cjs/**/*",
|
|
53
|
+
"dist/esm/**/*",
|
|
54
|
+
"dist/types/**/*",
|
|
55
|
+
"server/**/*",
|
|
48
56
|
"hooks/**/*",
|
|
49
57
|
"themes/**/*"
|
|
50
58
|
],
|
|
@@ -53,6 +61,13 @@
|
|
|
53
61
|
"publishConfig": {
|
|
54
62
|
"access": "public"
|
|
55
63
|
},
|
|
64
|
+
"scripts": {
|
|
65
|
+
"build:watch": "tsup --watch",
|
|
66
|
+
"build": "tsup && pnpm run build:declarations && pnpm run check-exports",
|
|
67
|
+
"build:declarations": "tsc -p tsconfig.declarations.json",
|
|
68
|
+
"lint": "eslint src",
|
|
69
|
+
"check-exports": "attw --pack . --ignore-rules unexpected-module-syntax"
|
|
70
|
+
},
|
|
56
71
|
"browserslist": {
|
|
57
72
|
"production": [
|
|
58
73
|
">0.2%",
|
|
@@ -66,17 +81,18 @@
|
|
|
66
81
|
]
|
|
67
82
|
},
|
|
68
83
|
"devDependencies": {
|
|
69
|
-
"@arethetypeswrong/cli": "^0.
|
|
84
|
+
"@arethetypeswrong/cli": "^0.17.4",
|
|
70
85
|
"@types/node": "^20.14.12",
|
|
71
86
|
"@types/react": "*",
|
|
72
87
|
"@types/react-dom": "*",
|
|
88
|
+
"esbuild-plugin-file-path-extensions": "^2.1.4",
|
|
73
89
|
"tsup": "^8.2.1",
|
|
74
90
|
"typescript": "5.6.2"
|
|
75
91
|
},
|
|
76
92
|
"peerDependencies": {
|
|
77
|
-
"
|
|
78
|
-
"react
|
|
79
|
-
"
|
|
93
|
+
"next": ">=13.5.2 || ^14.0.0 || ^15.0.0",
|
|
94
|
+
"react": "^18.0.0 || ^19.0.0 || ^19.0.0-0",
|
|
95
|
+
"react-dom": "^18.0.0 || ^19.0.0 || ^19.0.0-0"
|
|
80
96
|
},
|
|
81
97
|
"peerDependenciesMeta": {
|
|
82
98
|
"react-dom": {
|
|
@@ -84,17 +100,11 @@
|
|
|
84
100
|
}
|
|
85
101
|
},
|
|
86
102
|
"dependencies": {
|
|
87
|
-
"@novu/react": "
|
|
103
|
+
"@novu/react": "3.0.0-canary.0"
|
|
88
104
|
},
|
|
89
105
|
"nx": {
|
|
90
106
|
"tags": [
|
|
91
107
|
"type:package"
|
|
92
108
|
]
|
|
93
|
-
},
|
|
94
|
-
"scripts": {
|
|
95
|
-
"build:watch": "tsup --watch",
|
|
96
|
-
"build": "tsup && pnpm run check-exports",
|
|
97
|
-
"lint": "eslint src",
|
|
98
|
-
"check-exports": "attw --pack ."
|
|
99
109
|
}
|
|
100
|
-
}
|
|
110
|
+
}
|
package/themes/package.json
CHANGED
package/dist/client/index.mjs
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
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 __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
Bell: () => Bell,
|
|
24
|
-
Inbox: () => Inbox,
|
|
25
|
-
InboxContent: () => InboxContent,
|
|
26
|
-
Notifications: () => Notifications,
|
|
27
|
-
Preferences: () => Preferences
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
// src/components/index.ts
|
|
31
|
-
import {
|
|
32
|
-
Bell,
|
|
33
|
-
InboxContent,
|
|
34
|
-
Notifications,
|
|
35
|
-
Preferences
|
|
36
|
-
} from "@novu/react";
|
|
37
|
-
|
|
38
|
-
// src/components/Inbox.tsx
|
|
39
|
-
import React from "react";
|
|
40
|
-
import { Inbox as RInbox } from "@novu/react";
|
|
41
|
-
import { useRouter } from "next/navigation";
|
|
42
|
-
import { jsx } from "react/jsx-runtime";
|
|
43
|
-
var Inbox = React.memo((props) => {
|
|
44
|
-
const router = useRouter();
|
|
45
|
-
return /* @__PURE__ */ jsx(RInbox, { routerPush: router.push, ...props });
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
// src/hooks/index.ts
|
|
49
|
-
var hooks_exports = {};
|
|
50
|
-
__reExport(hooks_exports, hooks_star);
|
|
51
|
-
import * as hooks_star from "@novu/react/hooks";
|
|
52
|
-
|
|
53
|
-
// src/index.ts
|
|
54
|
-
__reExport(src_exports, hooks_exports);
|
|
55
|
-
export {
|
|
56
|
-
Bell,
|
|
57
|
-
Inbox,
|
|
58
|
-
InboxContent,
|
|
59
|
-
Notifications,
|
|
60
|
-
Preferences
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/components/index.ts","../../src/components/Inbox.tsx","../../src/hooks/index.ts"],"sourcesContent":["'use client';\n\nexport * from './components';\nexport * from './hooks';\n","'use client';\n\nimport {\n BaseProps,\n Bell,\n BellProps,\n BellRenderer,\n DefaultInboxProps,\n DefaultProps,\n Inbox,\n InboxContent,\n InboxContentProps,\n InboxProps,\n Notification,\n NotificationProps,\n Notifications,\n NotificationsRenderer,\n Preferences,\n WithChildrenProps,\n} from '@novu/react';\n\nexport * from './Inbox';\n\nexport { Bell, InboxContent, Notifications, Preferences };\n\nexport type {\n BaseProps,\n BellProps,\n BellRenderer,\n DefaultInboxProps,\n DefaultProps,\n InboxContentProps,\n InboxProps,\n NotificationProps,\n NotificationsRenderer,\n WithChildrenProps,\n Notification,\n};\n","'use client';\n\nimport React from 'react';\nimport { InboxProps, Inbox as RInbox } from '@novu/react';\nimport { useRouter } from 'next/navigation';\n\nexport const Inbox = React.memo((props: InboxProps) => {\n const router = useRouter();\n\n return <RInbox routerPush={router.push} {...props} />;\n});\n","'use client';\n\nexport * from '@novu/react/hooks';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA;AAAA,EAEE;AAAA,EAMA;AAAA,EAKA;AAAA,EAEA;AAAA,OAEK;;;ACjBP,OAAO,WAAW;AAClB,SAAqB,SAAS,cAAc;AAC5C,SAAS,iBAAiB;AAKjB;AAHF,IAAM,QAAQ,MAAM,KAAK,CAAC,UAAsB;AACrD,QAAM,SAAS,UAAU;AAEzB,SAAO,oBAAC,UAAO,YAAY,OAAO,MAAO,GAAG,OAAO;AACrD,CAAC;;;ACVD;AAEA;AAAA,4BAAc;;;AHCd,wBAAc;","names":[]}
|
package/dist/hooks/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/hooks/index.ts"],"sourcesContent":["'use client';\n\nexport * from '@novu/react/hooks';\n"],"mappings":";;;AAEA,cAAc;","names":[]}
|
|
@@ -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":[]}
|