strapi-plugin-copy-any-component 1.0.3 → 1.0.4

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 (2) hide show
  1. package/README.md +24 -7
  2. package/package.json +7 -3
package/README.md CHANGED
@@ -77,6 +77,30 @@ export default () => ({
77
77
 
78
78
  ## ⚠️ Troubleshooting
79
79
 
80
+ ### Version Mismatch / Build Errors
81
+
82
+ If you see errors like `useAIAvailability` or other export errors after installing the plugin:
83
+
84
+ ```bash
85
+ # 1. Remove the plugin temporarily
86
+ npm uninstall strapi-plugin-copy-any-component
87
+
88
+ # 2. Clean everything
89
+ rm -rf node_modules package-lock.json .cache dist
90
+
91
+ # 3. Update React versions in package.json to ^18.2.0
92
+
93
+ # 4. Reinstall all dependencies
94
+ npm install
95
+
96
+ # 5. Install plugin again
97
+ npm install strapi-plugin-copy-any-component
98
+
99
+ # 6. Build and run
100
+ npm run build
101
+ npm run develop
102
+ ```
103
+
80
104
  ### `flushSync` Error
81
105
 
82
106
  If you see:
@@ -94,13 +118,6 @@ Update your project's React version in `package.json`:
94
118
  }
95
119
  ```
96
120
 
97
- Then run:
98
- ```bash
99
- rm -rf node_modules package-lock.json
100
- npm install
101
- npm run develop
102
- ```
103
-
104
121
  ### Plugin not visible
105
122
 
106
123
  - Check permissions in Settings > Roles
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-copy-any-component",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A powerful Strapi plugin that allows you to copy and reorder components (sections) between pages using an intuitive drag-and-drop interface. Works with any content type and dynamic zone - no code required!",
5
5
  "keywords": [
6
6
  "strapi",
@@ -44,7 +44,11 @@
44
44
  },
45
45
  "dependencies": {},
46
46
  "peerDependencies": {
47
- "@strapi/strapi": "^5.0.0"
47
+ "@strapi/strapi": ">=5.0.0",
48
+ "@strapi/design-system": ">=2.0.0",
49
+ "@strapi/icons": ">=2.0.0",
50
+ "react": "^18.0.0",
51
+ "react-dom": "^18.0.0"
48
52
  },
49
53
  "author": {
50
54
  "name": "Metehan Kasap",
@@ -52,7 +56,7 @@
52
56
  },
53
57
  "license": "MIT",
54
58
  "engines": {
55
- "node": ">=18.0.0 <=20.x.x",
59
+ "node": ">=18.0.0 <=24.x.x",
56
60
  "npm": ">=6.0.0"
57
61
  }
58
62
  }