@nobertdev/react-confirm-dialog 1.1.5 → 1.1.6

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 (1) hide show
  1. package/package.json +25 -24
package/package.json CHANGED
@@ -1,17 +1,7 @@
1
1
  {
2
2
  "name": "@nobertdev/react-confirm-dialog",
3
- "version": "1.1.5",
4
- "description": "A lightweight, fully customizable confirmation dialog hook (useConfirm()) that replaces window.confirm() with beautiful async modals. Zero dependencies.",
5
- "keywords": [
6
- "react",
7
- "confirm",
8
- "dialog",
9
- "modal",
10
- "hook",
11
- "async",
12
- "confirm-dialog",
13
- "useConfirm"
14
- ],
3
+ "version": "1.1.6",
4
+ "description": "A lightweight async confirmation dialog hook for React that replaces window.confirm() with customizable modals.",
15
5
  "author": "Nobert Langat",
16
6
  "license": "MIT",
17
7
  "main": "dist/index.js",
@@ -19,16 +9,24 @@
19
9
  "types": "dist/index.d.ts",
20
10
  "exports": {
21
11
  ".": {
22
- "import": {
23
- "types": "dist/index.d.mts",
24
- "default": "dist/index.mjs"
25
- },
26
- "require": {
27
- "types": "dist/index.d.ts",
28
- "default": "dist/index.js"
29
- }
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.mjs",
14
+ "require": "./dist/index.js"
30
15
  }
31
16
  },
17
+ "keywords": [
18
+ "react",
19
+ "react-hook",
20
+ "confirm",
21
+ "confirmation",
22
+ "dialog",
23
+ "modal",
24
+ "hook",
25
+ "async",
26
+ "confirm-dialog",
27
+ "useConfirm",
28
+ "react-confirm-dialog"
29
+ ],
32
30
  "files": [
33
31
  "dist"
34
32
  ],
@@ -36,12 +34,12 @@
36
34
  "scripts": {
37
35
  "build": "tsup src/index.ts --format cjs,esm --dts --clean --external react --external react-dom",
38
36
  "dev": "tsup src/index.ts --format cjs,esm --dts --watch --external react --external react-dom",
39
- "lint": "tsc --noEmit",
37
+ "typecheck": "tsc --noEmit",
40
38
  "prepublishOnly": "npm run build"
41
39
  },
42
40
  "peerDependencies": {
43
- "react": ">=17.0.0",
44
- "react-dom": ">=17.0.0"
41
+ "react": ">=17",
42
+ "react-dom": ">=17"
45
43
  },
46
44
  "devDependencies": {
47
45
  "@types/react": "^18.3.0",
@@ -49,9 +47,12 @@
49
47
  "tsup": "^8.0.0",
50
48
  "typescript": "^5.4.0"
51
49
  },
50
+ "engines": {
51
+ "node": ">=16"
52
+ },
52
53
  "repository": {
53
54
  "type": "git",
54
- "url": "https://github.com/NOBERT167/react-confirm-dialog.git"
55
+ "url": "git+https://github.com/NOBERT167/react-confirm-dialog.git"
55
56
  },
56
57
  "bugs": {
57
58
  "url": "https://github.com/NOBERT167/react-confirm-dialog/issues"