@novu/react-native 2.3.1 → 2.3.5

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/README.md CHANGED
@@ -16,9 +16,7 @@ npm install @novu/react-native
16
16
  - Add the below code in the app.tsx file
17
17
 
18
18
  ```jsx
19
- import { NovuProvider } from '@novu/react-native';
20
-
21
- import { useNotifications } from '@novu/react';
19
+ import { NovuProvider, useNotifications } from '@novu/react-native';
22
20
 
23
21
  function YourCustomInbox() {
24
22
  const { notifications, isLoading, fetchMore, hasMore } = useNotifications();
@@ -13,8 +13,6 @@ var __copyProps = (to, from, except, desc) => {
13
13
  };
14
14
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
15
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
-
17
- // src/index.ts
18
16
  var src_exports = {};
19
17
  module.exports = __toCommonJS(src_exports);
20
18
  __reExport(src_exports, require("@novu/react/hooks"), module.exports);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@novu/react/hooks';\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,8BAAd;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@novu/react/hooks';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,8BAAd;","names":[]}
@@ -1,3 +1,2 @@
1
- // src/index.ts
2
1
  export * from "@novu/react/hooks";
3
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@novu/react/hooks';\n"],"mappings":";AAAA,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@novu/react/hooks';\n"],"mappings":"AAAA,cAAc;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novu/react-native",
3
- "version": "2.3.1",
3
+ "version": "2.3.5",
4
4
  "repository": "https://github.com/novuhq/novu",
5
5
  "description": "Novu's React Native SDK for building custom inbox notification experiences",
6
6
  "author": "",
@@ -17,15 +17,20 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "scripts": {
21
- "build:watch": "tsup --watch",
22
- "build": "tsup && pnpm run check-exports",
23
- "lint": "eslint src",
24
- "check-exports": "attw --pack .",
25
- "release:preview": "pnpx pkg-pr-new publish"
20
+ "exports": {
21
+ ".": {
22
+ "import": {
23
+ "types": "./dist/client/index.d.mts",
24
+ "default": "./dist/client/index.mjs"
25
+ },
26
+ "require": {
27
+ "types": "./dist/client/index.d.ts",
28
+ "default": "./dist/client/index.js"
29
+ }
30
+ }
26
31
  },
27
32
  "devDependencies": {
28
- "@arethetypeswrong/cli": "^0.15.4",
33
+ "@arethetypeswrong/cli": "^0.16.4",
29
34
  "@types/node": "^20.14.12",
30
35
  "@types/react": "*",
31
36
  "@types/react-dom": "*",
@@ -36,6 +41,18 @@
36
41
  "react": ">=17"
37
42
  },
38
43
  "dependencies": {
39
- "@novu/react": "^2.3.1"
44
+ "@novu/react": "2.6.3"
45
+ },
46
+ "nx": {
47
+ "tags": [
48
+ "type:package"
49
+ ]
50
+ },
51
+ "scripts": {
52
+ "build:watch": "tsup --watch",
53
+ "build": "tsup && pnpm run check:exports",
54
+ "lint": "eslint src",
55
+ "check:exports": "attw --pack .",
56
+ "release:preview": "pnpx pkg-pr-new publish"
40
57
  }
41
- }
58
+ }