device-shots 0.2.0 → 0.2.1

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/README.md +9 -9
  2. package/dist/index.js +22 -17
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -117,10 +117,10 @@ Screenshots are organized by platform and screen size bucket, matching App Store
117
117
  │ │ ├── dashboard_framed.png
118
118
  │ │ ├── settings.png
119
119
  │ │ └── settings_framed.png
120
- │ ├── 6.7/ # iPhone 16 Plus, 15 Pro Max
120
+ │ ├── 6.5/ # iPhone 14 Plus, 13 Pro Max
121
121
  │ │ ├── dashboard.png
122
122
  │ │ └── dashboard_framed.png
123
- │ └── 6.3/ # iPhone 16 Pro
123
+ │ └── 6.3/ # iPhone 16 Pro, 16, 15 Pro, 15
124
124
  │ └── ...
125
125
  ├── android/
126
126
  │ └── phone/ # Pixel 9 Pro, etc.
@@ -135,14 +135,14 @@ Screenshots are organized by platform and screen size bucket, matching App Store
135
135
 
136
136
  | Bucket | Devices |
137
137
  |--------|---------|
138
- | `6.9` | iPhone 16 Pro Max |
139
- | `6.7` | iPhone 16 Plus, 15 Pro Max, 15 Plus, 14 Pro Max |
140
- | `6.5` | iPhone 14 Plus, 13 Pro Max, 12 Pro Max, 11 Pro Max |
141
- | `6.3` | iPhone 16 Pro |
142
- | `6.1` | iPhone 16, 15, 15 Pro, 14, 14 Pro, 13, 13 Pro |
138
+ | `6.9` | iPhone 16 Pro Max, 16 Plus, 15 Pro Max, 15 Plus, 14 Pro Max |
139
+ | `6.5` | iPhone 14 Plus, 13 Pro Max, 12 Pro Max, 11 Pro Max, XS Max |
140
+ | `6.3` | iPhone 16 Pro, 16, 15 Pro, 15, 14 Pro |
141
+ | `6.1` | iPhone 14, 13, 12, X, XS, 12 mini, 13 mini |
143
142
  | `5.5` | iPhone 8 Plus, 7 Plus |
144
- | `13` | iPad Pro 13" |
145
- | `11` | iPad Pro 11", iPad Air |
143
+ | `4.7` | iPhone SE (3rd/2nd), iPhone 8 |
144
+ | `13` | iPad Pro 13", iPad Air 13" |
145
+ | `11` | iPad Pro 11", iPad Air 11", iPad mini 6th gen |
146
146
 
147
147
  **Android** — Categorized by form factor:
148
148
 
package/dist/index.js CHANGED
@@ -96,35 +96,40 @@ async function runOrFail(cmd, args, options) {
96
96
 
97
97
  // src/devices/screen-sizes.ts
98
98
  var IOS_RESOLUTION_MAP = {
99
- // 6.9" — iPhone 16 Pro Max
99
+ // 6.9" — iPhone 16 Pro Max, 16 Plus, 15 Pro Max, 15 Plus, 14 Pro Max
100
100
  "1320x2868": "6.9",
101
- // 6.7" — iPhone 16 Plus, 15 Pro Max, 15 Plus, 14 Pro Max
102
- "1290x2796": "6.7",
103
- // 6.5" — iPhone 14 Plus, 13 Pro Max, 12 Pro Max, 11 Pro Max
101
+ "1290x2796": "6.9",
102
+ "1260x2736": "6.9",
103
+ // 6.5" — iPhone 14 Plus, 13 Pro Max, 12 Pro Max, 11 Pro Max, XS Max, XR
104
104
  "1284x2778": "6.5",
105
105
  "1242x2688": "6.5",
106
- // 6.3" — iPhone 16 Pro
106
+ // 6.3" — iPhone 16 Pro, 16, 15 Pro, 15, 14 Pro
107
107
  "1206x2622": "6.3",
108
- // 6.1" — iPhone 16, 15, 15 Pro, 14, 14 Pro, 13, 13 Pro, 12, 12 Pro
109
- "1179x2556": "6.1",
108
+ "1179x2556": "6.3",
109
+ // 6.1" — iPhone 14, 13, 13 Pro, 12, 12 Pro, X, XS, 11 Pro, 12 mini, 13 mini
110
110
  "1170x2532": "6.1",
111
- // 5.8" — iPhone X, XS, 11 Pro
112
- "1125x2436": "5.8",
111
+ "1125x2436": "6.1",
112
+ "1080x2340": "6.1",
113
113
  // 5.5" — iPhone 8 Plus, 7 Plus, 6s Plus
114
114
  "1242x2208": "5.5",
115
115
  // 4.7" — iPhone SE (3rd/2nd), iPhone 8, 7, 6s
116
116
  "750x1334": "4.7",
117
- // iPad 13" — iPad Pro 13" (M4), iPad Pro 12.9" (older)
117
+ // 4.0" — iPhone SE (1st), iPhone 5/5s/5c
118
+ "640x1136": "4.0",
119
+ "640x1096": "4.0",
120
+ // iPad 13" — iPad Pro 13" (M4/M3/M2/M1), iPad Air 13", iPad Pro 12.9" (older)
118
121
  "2064x2752": "13",
119
122
  "2048x2732": "13",
120
- // iPad 11" — iPad Pro 11", iPad Air
123
+ // iPad 11" — iPad Pro 11", iPad Air 11", iPad 10th gen, iPad mini 6th gen
124
+ "1488x2266": "11",
125
+ "1668x2420": "11",
121
126
  "1668x2388": "11",
122
- "1668x2224": "11",
123
127
  "1640x2360": "11",
124
- // iPad 10.9" — iPad Air (5th), iPad (10th)
125
- "2360x1640": "11",
126
- // iPad mini
127
- "1488x2266": "8.3"
128
+ // iPad 10.5" — iPad Pro 10.5", iPad Air 3rd gen, iPad 7th-9th gen
129
+ "1668x2224": "10.5",
130
+ // iPad 9.7" — iPad Pro 9.7", iPad Air 1-2, older iPad mini
131
+ "1536x2048": "9.7",
132
+ "1536x2008": "9.7"
128
133
  };
129
134
  function getIosScreenSize(width, height) {
130
135
  const w = Math.min(width, height);
@@ -730,7 +735,7 @@ async function frameCommand(dir, options) {
730
735
  var program = new Command();
731
736
  program.name("device-shots").description(
732
737
  "Capture and frame mobile app screenshots from iOS simulators and Android emulators"
733
- ).version("0.2.0");
738
+ ).version("0.2.1");
734
739
  program.command("capture").description("Capture screenshots from running devices").argument("[name]", "Screenshot name").option("-b, --bundle-id <id>", "App bundle ID").option("-o, --output <dir>", "Output directory").option("-p, --platform <platform>", "ios, android, or both").option("--no-frame", "Skip framing after capture").option("--time <time>", "Status bar time", "9:41").action(async (name, opts) => {
735
740
  await captureCommand({ name, ...opts });
736
741
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "device-shots",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Capture and frame mobile app screenshots from iOS simulators and Android emulators",
5
5
  "type": "module",
6
6
  "bin": {