react-motion-modal 1.2.5 → 1.2.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-motion-modal",
3
- "version": "1.2.5",
3
+ "version": "1.2.8",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -31,24 +31,24 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "peerDependencies": {
35
- "motion": ">12.0.0",
36
- "react": ">=18.0.0",
37
- "react-dom": ">=18.0.0",
38
- "zustand": ">=5.0.0"
39
- },
40
34
  "exports": {
41
35
  ".": {
42
36
  "types": "./dist/index.d.ts",
43
37
  "import": "./dist/index.js",
44
38
  "require": "./dist/index.js"
45
- }
39
+ },
40
+ "./style.css": "./dist/index.css",
41
+ "./main.css": "./dist/index.css"
46
42
  },
47
43
  "scripts": {
48
44
  "dev": "vite",
49
45
  "build": "tsc -b && vite build",
46
+ "ci": "yarn build",
50
47
  "preview": "vite preview",
51
- "deploy": "yarn build && yarn publish --access public"
48
+ "bump:patch": "npm version patch",
49
+ "bump:minor": "npm version minor",
50
+ "bump:major": "npm version major",
51
+ "release:check": "yarn build && npm pack --dry-run"
52
52
  },
53
53
  "dependencies": {
54
54
  "clsx": "^2.1.1",
@@ -57,7 +57,6 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@biomejs/biome": "2.2.0",
60
- "@tailwindcss/vite": "^4.1.11",
61
60
  "@types/keyboardjs": "^2.5.3",
62
61
  "@types/node": "^24.0.12",
63
62
  "@types/react": "^19.1.8",
@@ -71,12 +70,17 @@
71
70
  "playwright": "^1.53.2",
72
71
  "react": "^19.1.0",
73
72
  "react-dom": "^19.1.0",
74
- "tailwindcss": "^4.1.11",
75
73
  "typescript": "~5.8.3",
76
74
  "vite": "^7.0.3",
77
75
  "vite-plugin-dts": "^4.5.4",
78
76
  "vitest": "^3.2.4",
79
77
  "zustand": "^5.0.7"
80
78
  },
79
+ "peerDependencies": {
80
+ "motion": ">12.0.0",
81
+ "react": ">=18.0.0",
82
+ "react-dom": ">=18.0.0",
83
+ "zustand": ">=5.0.0"
84
+ },
81
85
  "packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
82
86
  }
package/CHANGELOG.md DELETED
@@ -1,73 +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.5] - 2026-05-30
11
-
12
- ### Fixed
13
- - Removed Tailwind CSS injection from the distributed library build.
14
- - Moved Tailwind CSS import to the example app only.
15
- - Replaced internal modal layout Tailwind classes with inline styles to avoid overriding consumer app utilities.
16
-
17
- ## [1.2.4] - 2025-05-30
18
-
19
- ### Changed
20
- - Split `modal.type.ts` into separate files for better maintainability
21
- - `base-modal-params.type.ts` – base modal parameter types
22
- - `modal-components.type.ts` – modal component and config types
23
- - `modal-state.type.ts` – modal state and action types
24
- - `modal.type.ts` now re-exports all types (backward compatible)
25
- - Bumped dependencies (motion, zustand, vite, tailwindcss, biome, playwright, etc.)
26
-
27
- ## [1.2.3] - 2025-05-30
28
-
29
- ### Fixed
30
- - Fixed `ModalParams` type to correctly extend `ModalDefinition[T]` with `closeModal`
31
- - Dependency updates for stability
32
-
33
- ## [1.2.2] - 2025-11-21
34
-
35
- ### Added
36
- - Enhanced TypeScript documentation with comprehensive JSDoc comments
37
- - More detailed examples for modal animations and positioning
38
- - Better documentation for blur effect parameter
39
- - Comprehensive examples for ModalComponent and ModalConfig types
40
-
41
- ### Changed
42
- - Improved type documentation with real-world usage examples
43
- - Enhanced Framer Motion animation configuration documentation
44
- - Better documentation for modal positioning options
45
-
46
- ### Fixed
47
- - Type definitions now properly import required dependencies
48
- - Documentation examples updated to reflect current API
49
-
50
- ## [1.1.9]
51
- ### Added
52
- - Responsive design improvements
53
- - Better modal stacking behavior
54
-
55
- ### Fixed
56
- - Modal closing logic issues
57
- - CSS rendering problems
58
-
59
- ## [1.1.8]
60
- ### Added
61
- - Streamlined modal closing logic
62
- - Performance optimizations
63
-
64
- ### Removed
65
- - Unused CSS styles
66
-
67
- ## [1.1.7]
68
- ### Fixed
69
- - Bug fixes and stability improvements
70
-
71
- ## [Previous Versions]
72
-
73
- For versions prior to 1.1.7, please refer to the git commit history.