@capawesome/capacitor-screenshot 8.0.2 → 8.0.3

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 +1 -7
  2. package/package.json +6 -1
package/README.md CHANGED
@@ -53,16 +53,10 @@ Then use the following prompt:
53
53
  If you prefer **Manual Setup**, install the plugin by running the following commands:
54
54
 
55
55
  ```bash
56
- npm install @capawesome/capacitor-screenshot
56
+ npm install @capawesome/capacitor-screenshot html2canvas
57
57
  npx cap sync
58
58
  ```
59
59
 
60
- If you are using the Web platform, you must also install the `html2canvas` package:
61
-
62
- ```bash
63
- npm i html2canvas
64
- ```
65
-
66
60
  ## Usage
67
61
 
68
62
  The following example shows how to take a screenshot of the current screen.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capawesome/capacitor-screenshot",
3
- "version": "8.0.2",
3
+ "version": "8.0.3",
4
4
  "description": "Capacitor plugin for taking screenshots on Android, iOS, and Web.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -86,6 +86,11 @@
86
86
  "@capacitor/core": ">=8.0.0",
87
87
  "html2canvas": "^1.4.1"
88
88
  },
89
+ "peerDependenciesMeta": {
90
+ "html2canvas": {
91
+ "optional": true
92
+ }
93
+ },
89
94
  "eslintConfig": {
90
95
  "extends": "@ionic/eslint-config/recommended"
91
96
  },