react-motion-modal 1.2.6 → 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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +16 -0
  3. package/package.json +12 -8
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ngo Van Son
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # react-motion-modal
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/react-motion-modal)](https://www.npmjs.com/package/react-motion-modal)
4
+ [![npm downloads](https://img.shields.io/npm/dm/react-motion-modal)](https://www.npmjs.com/package/react-motion-modal)
5
+ [![License](https://img.shields.io/npm/l/react-motion-modal)](https://github.com/sonnv1912/react-motion-modal/blob/main/LICENSE)
6
+ [![Bundle size](https://img.shields.io/bundlephobia/minzip/react-motion-modal)](https://bundlephobia.com/package/react-motion-modal)
7
+ [![TypeScript types](https://img.shields.io/npm/types/react-motion-modal)](https://www.npmjs.com/package/react-motion-modal)
8
+ [![Node version](https://img.shields.io/node/v/react-motion-modal)](https://www.npmjs.com/package/react-motion-modal)
9
+ [![npm package size](https://img.shields.io/packagephobia/publish/react-motion-modal)](https://www.npmjs.com/package/react-motion-modal)
10
+ [![GitHub issues](https://img.shields.io/github/issues/sonnv1912/react-motion-modal)](https://github.com/sonnv1912/react-motion-modal/issues)
11
+ [![Socket](https://socket.dev/api/badge/npm/package/react-motion-modal)](https://socket.dev/npm/package/react-motion-modal)
12
+
3
13
  `react-motion-modal` is a flexible modal management library built with [Zustand](https://zustand-demo.pmnd.rs/) for state management and powered by [Framer Motion](https://www.framer.com/motion/) for beautiful animations. It offers full TypeScript type-safety and allows dynamic modal opening with custom parameters.
4
14
 
5
15
  ## ✨ Features
@@ -147,6 +157,12 @@ MODAL_POSITIONS.BOTTOM_CENTER;
147
157
 
148
158
  Default body animation follows the position. For example, `left` slides in from the left, `right` slides in from the right, `top` slides down, and `bottom` slides up.
149
159
 
160
+ ## 🔐 Release Security
161
+
162
+ - CI runs from `.github/workflows/ci.yml` on pushes and pull requests.
163
+ - npm publishing is defined in `.github/workflows/publish.yml` and uses `npm publish --provenance --access public`.
164
+ - Trusted publishing still needs to be enabled in npm package settings for this repository before the workflow can publish official releases.
165
+
150
166
  ## 📝 Notes
151
167
 
152
168
  - Zustand-based, framework-agnostic state management
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-motion-modal",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -31,12 +31,6 @@
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",
@@ -49,8 +43,12 @@
49
43
  "scripts": {
50
44
  "dev": "vite",
51
45
  "build": "tsc -b && vite build",
46
+ "ci": "yarn build",
52
47
  "preview": "vite preview",
53
- "deploy": "yarn build && npm publish --registry https://registry.npmjs.org/ --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"
54
52
  },
55
53
  "dependencies": {
56
54
  "clsx": "^2.1.1",
@@ -78,5 +76,11 @@
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
  }