strapi-plugin-bulk-editor 0.1.0
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/LICENSE +21 -0
- package/README.md +80 -0
- package/admin/src/components/BulkEditModal.tsx +1252 -0
- package/admin/src/components/BulkEditorAction.tsx +46 -0
- package/admin/src/components/BulkEditorButton.tsx +49 -0
- package/admin/src/components/ModalManager.tsx +62 -0
- package/admin/src/index.tsx +57 -0
- package/admin/src/translations/en.json +4 -0
- package/package.json +45 -0
- package/server/controllers/bulk-editor.js +171 -0
- package/server/controllers/index.js +5 -0
- package/server/index.js +9 -0
- package/server/routes/index.js +20 -0
- package/server/services/index.js +1 -0
- package/strapi-admin.js +1 -0
- package/strapi-server.js +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 John CHEDEVILLE
|
|
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
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Strapi Plugin: Bulk Editor
|
|
2
|
+
|
|
3
|
+
Edit multiple Strapi entries at once in a spreadsheet-like interface.
|
|
4
|
+
|
|
5
|
+
[](https://strapi.io/five)
|
|
6
|
+
[](https://www.npmjs.com/package/strapi-plugin-bulk-editor)
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
## Features
|
|
11
|
+
|
|
12
|
+
- **Spreadsheet View** - Edit multiple entries in a familiar table layout
|
|
13
|
+
- **Multi-Cell Selection** - Select and edit multiple cells at once
|
|
14
|
+
- Click to select a cell
|
|
15
|
+
- Cmd/Ctrl+Click to toggle additional cells (same column only)
|
|
16
|
+
- Shift+Click for range selection
|
|
17
|
+
- Shift+Cmd/Ctrl+Click to add a new range selection to the current selection
|
|
18
|
+
- **Drag to Fill** - Drag a value down to apply it to multiple rows
|
|
19
|
+
- **Bulk Save** - Save all changes in a single operation
|
|
20
|
+
- **Almost All Field Types** - Text, numbers, booleans, enums, dates, and relations… Support list below
|
|
21
|
+
- **Relation Support** - Full support for oneToOne, manyToOne, oneToMany, and manyToMany relations
|
|
22
|
+
|
|
23
|
+
## Requirements
|
|
24
|
+
|
|
25
|
+
- Strapi v5.0.0 or higher
|
|
26
|
+
|
|
27
|
+
## Installation
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install strapi-plugin-bulk-editor
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Add the plugin to your Strapi config:
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
// config/plugins.js or config/plugins.ts
|
|
37
|
+
module.exports = {
|
|
38
|
+
...
|
|
39
|
+
"bulk-editor": {
|
|
40
|
+
enabled: true,
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Start your Strapi admin panel :
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
npm run develop
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Usage
|
|
52
|
+
|
|
53
|
+
1. Navigate to any content type in the Content Manager
|
|
54
|
+
2. Select at least one entry using the checkboxes
|
|
55
|
+
3. Click the **"Bulk Edit"** button in the action bar
|
|
56
|
+
4. Edit fields directly in the spreadsheet view
|
|
57
|
+
5. Click **Save** to apply all changes
|
|
58
|
+
|
|
59
|
+
> ⚠️ **Warning** : This plugin is still in beta (v0.1). It may overwrite data inadvertently. Always check before saving. When in doubt, discard the edit.
|
|
60
|
+
|
|
61
|
+
## Supported Field Types
|
|
62
|
+
|
|
63
|
+
| Type | Support |
|
|
64
|
+
| ------------------------- | ------------------ |
|
|
65
|
+
| String / Text | ✅ Full |
|
|
66
|
+
| Integer / Float / Decimal | ✅ Full |
|
|
67
|
+
| Boolean | ✅ Full |
|
|
68
|
+
| Enumeration | ✅ Full (dropdown) |
|
|
69
|
+
| Date / DateTime / Time | ✅ Full |
|
|
70
|
+
| Email / Password | ✅ Full |
|
|
71
|
+
| Relation (all types) | ✅ Full |
|
|
72
|
+
| JSON | 👁️ Read-only |
|
|
73
|
+
| Rich Text / Blocks | 👁️ Read-only |
|
|
74
|
+
| Media | 👁️ Read-only |
|
|
75
|
+
| Components | ❌ Not supported |
|
|
76
|
+
| Dynamic Zones | ❌ Not supported |
|
|
77
|
+
|
|
78
|
+
## License
|
|
79
|
+
|
|
80
|
+
MIT
|