react-motion-modal 1.2.4 → 1.2.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.
- package/README.md +70 -37
- package/dist/index.css +1 -0
- package/dist/index.d.ts +23 -8
- package/dist/index.js +2540 -5159
- package/package.json +8 -9
- package/CHANGELOG.md +0 -66
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-motion-modal",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
|
-
"module": "./dist/index.
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
8
9
|
"author": "Ngô Văn Sơn",
|
|
9
10
|
"files": [
|
|
10
11
|
"dist"
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
35
|
"motion": ">12.0.0",
|
|
35
|
-
"react": ">=18.0
|
|
36
|
+
"react": ">=18.0.0",
|
|
36
37
|
"react-dom": ">=18.0.0",
|
|
37
38
|
"zustand": ">=5.0.0"
|
|
38
39
|
},
|
|
@@ -41,23 +42,23 @@
|
|
|
41
42
|
"types": "./dist/index.d.ts",
|
|
42
43
|
"import": "./dist/index.js",
|
|
43
44
|
"require": "./dist/index.js"
|
|
44
|
-
}
|
|
45
|
+
},
|
|
46
|
+
"./style.css": "./dist/index.css",
|
|
47
|
+
"./main.css": "./dist/index.css"
|
|
45
48
|
},
|
|
46
49
|
"scripts": {
|
|
47
50
|
"dev": "vite",
|
|
48
51
|
"build": "tsc -b && vite build",
|
|
49
52
|
"preview": "vite preview",
|
|
50
|
-
"deploy": "yarn build &&
|
|
53
|
+
"deploy": "yarn build && npm publish --registry https://registry.npmjs.org/ --access public"
|
|
51
54
|
},
|
|
52
55
|
"dependencies": {
|
|
53
56
|
"clsx": "^2.1.1",
|
|
54
57
|
"keyboardjs": "^2.7.0",
|
|
55
|
-
"tailwind-merge": "^3.3.1",
|
|
56
58
|
"uuid": "^11.1.0"
|
|
57
59
|
},
|
|
58
60
|
"devDependencies": {
|
|
59
61
|
"@biomejs/biome": "2.2.0",
|
|
60
|
-
"@tailwindcss/vite": "^4.1.11",
|
|
61
62
|
"@types/keyboardjs": "^2.5.3",
|
|
62
63
|
"@types/node": "^24.0.12",
|
|
63
64
|
"@types/react": "^19.1.8",
|
|
@@ -71,10 +72,8 @@
|
|
|
71
72
|
"playwright": "^1.53.2",
|
|
72
73
|
"react": "^19.1.0",
|
|
73
74
|
"react-dom": "^19.1.0",
|
|
74
|
-
"tailwindcss": "^4.1.11",
|
|
75
75
|
"typescript": "~5.8.3",
|
|
76
76
|
"vite": "^7.0.3",
|
|
77
|
-
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
78
77
|
"vite-plugin-dts": "^4.5.4",
|
|
79
78
|
"vitest": "^3.2.4",
|
|
80
79
|
"zustand": "^5.0.7"
|
package/CHANGELOG.md
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [Unreleased]
|
|
9
|
-
|
|
10
|
-
## [1.2.4] - 2025-05-30
|
|
11
|
-
|
|
12
|
-
### Changed
|
|
13
|
-
- Split `modal.type.ts` into separate files for better maintainability
|
|
14
|
-
- `base-modal-params.type.ts` – base modal parameter types
|
|
15
|
-
- `modal-components.type.ts` – modal component and config types
|
|
16
|
-
- `modal-state.type.ts` – modal state and action types
|
|
17
|
-
- `modal.type.ts` now re-exports all types (backward compatible)
|
|
18
|
-
- Bumped dependencies (motion, zustand, vite, tailwindcss, biome, playwright, etc.)
|
|
19
|
-
|
|
20
|
-
## [1.2.3] - 2025-05-30
|
|
21
|
-
|
|
22
|
-
### Fixed
|
|
23
|
-
- Fixed `ModalParams` type to correctly extend `ModalDefinition[T]` with `closeModal`
|
|
24
|
-
- Dependency updates for stability
|
|
25
|
-
|
|
26
|
-
## [1.2.2] - 2025-11-21
|
|
27
|
-
|
|
28
|
-
### Added
|
|
29
|
-
- Enhanced TypeScript documentation with comprehensive JSDoc comments
|
|
30
|
-
- More detailed examples for modal animations and positioning
|
|
31
|
-
- Better documentation for blur effect parameter
|
|
32
|
-
- Comprehensive examples for ModalComponent and ModalConfig types
|
|
33
|
-
|
|
34
|
-
### Changed
|
|
35
|
-
- Improved type documentation with real-world usage examples
|
|
36
|
-
- Enhanced Framer Motion animation configuration documentation
|
|
37
|
-
- Better documentation for modal positioning options
|
|
38
|
-
|
|
39
|
-
### Fixed
|
|
40
|
-
- Type definitions now properly import required dependencies
|
|
41
|
-
- Documentation examples updated to reflect current API
|
|
42
|
-
|
|
43
|
-
## [1.1.9]
|
|
44
|
-
### Added
|
|
45
|
-
- Responsive design improvements
|
|
46
|
-
- Better modal stacking behavior
|
|
47
|
-
|
|
48
|
-
### Fixed
|
|
49
|
-
- Modal closing logic issues
|
|
50
|
-
- CSS rendering problems
|
|
51
|
-
|
|
52
|
-
## [1.1.8]
|
|
53
|
-
### Added
|
|
54
|
-
- Streamlined modal closing logic
|
|
55
|
-
- Performance optimizations
|
|
56
|
-
|
|
57
|
-
### Removed
|
|
58
|
-
- Unused CSS styles
|
|
59
|
-
|
|
60
|
-
## [1.1.7]
|
|
61
|
-
### Fixed
|
|
62
|
-
- Bug fixes and stability improvements
|
|
63
|
-
|
|
64
|
-
## [Previous Versions]
|
|
65
|
-
|
|
66
|
-
For versions prior to 1.1.7, please refer to the git commit history.
|