@erkamyaman/capacitor-foldable 7.0.0 → 7.0.2

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 +6 -0
  2. package/package.json +10 -5
package/README.md CHANGED
@@ -5,11 +5,17 @@
5
5
  <a href="https://www.npmjs.com/package/@erkamyaman/capacitor-foldable"><img src="https://img.shields.io/npm/v/@erkamyaman/capacitor-foldable?style=for-the-badge" /></a>
6
6
  <a href="https://www.npmjs.com/package/@erkamyaman/capacitor-foldable"><img src="https://img.shields.io/npm/dw/@erkamyaman/capacitor-foldable?style=for-the-badge" /></a>
7
7
  <a href="LICENSE"><img src="https://img.shields.io/npm/l/@erkamyaman/capacitor-foldable?style=for-the-badge" /></a>
8
+ <a href="https://github.com/sponsors/erkamyaman"><img src="https://img.shields.io/badge/sponsor-%E2%9D%A4-db61a2?style=for-the-badge&logo=githubsponsors&logoColor=white" /></a>
8
9
  </p>
9
10
  <p align="center">
10
11
  Fold state, posture, hinge angle and size classes for foldable phones such as Galaxy Z Fold and Flip and Pixel Fold, in Capacitor 7 apps.
11
12
  </p>
12
13
 
14
+ <p align="center">
15
+ <img width="420" alt="Pixel Fold in tabletop posture" src="https://raw.githubusercontent.com/erkamyaman/capacitor-foldable/main/docs/images/android-tabletop.jpg">
16
+ <img width="420" alt="Pixel Fold half-open in book posture" src="https://raw.githubusercontent.com/erkamyaman/capacitor-foldable/main/docs/images/android-book.jpg">
17
+ </p>
18
+
13
19
  ```typescript
14
20
  const { state, hingeOrientation } = await Foldable.getFoldState();
15
21
  // { state: 'half-opened', hingeOrientation: 'horizontal' }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erkamyaman/capacitor-foldable",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
4
4
  "description": "Fold-state and dual-display APIs for foldable devices in Capacitor apps",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -27,19 +27,24 @@
27
27
  },
28
28
  "keywords": [
29
29
  "capacitor",
30
+ "capacitor-plugin",
31
+ "ionic",
30
32
  "plugin",
31
- "native",
32
33
  "foldable",
33
- "fold",
34
34
  "foldables",
35
+ "fold",
35
36
  "hinge",
36
- "dual-screen",
37
37
  "posture",
38
+ "device-posture",
39
+ "viewport-segments",
40
+ "polyfill",
41
+ "dual-screen",
38
42
  "large-screen",
39
43
  "android",
40
44
  "ios",
41
45
  "pixel-fold",
42
- "iphone-duo"
46
+ "galaxy-fold",
47
+ "jetpack-windowmanager"
43
48
  ],
44
49
  "scripts": {
45
50
  "verify": "npm run verify:ios && npm run verify:android && npm run verify:web",