@superwall/studio 2.6.1 → 2.7.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/dist/index.html
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<style>
|
|
15
15
|
body { margin: 0; background: #0c0d0f; }
|
|
16
16
|
</style>
|
|
17
|
-
<script type="module" crossorigin src="/__studio/assets/index-
|
|
17
|
+
<script type="module" crossorigin src="/__studio/assets/index-BW5uExP0.js"></script>
|
|
18
18
|
<link rel="stylesheet" crossorigin href="/__studio/assets/index-OoJfE40v.css">
|
|
19
19
|
</head>
|
|
20
20
|
<body>
|
package/dist/lib/index.js
CHANGED
|
@@ -1532,7 +1532,7 @@ const Ro = (e, t) => {
|
|
|
1532
1532
|
right: c?.right ?? 0
|
|
1533
1533
|
};
|
|
1534
1534
|
}
|
|
1535
|
-
return o === "desktop" ? { kind: o, top: He.desktop, bottom: 0, statusBar: 0, right: 0 } : t ? { kind: o, top: 0, bottom: 0, statusBar: a, right: 0 } :
|
|
1535
|
+
return o === "desktop" ? { kind: o, top: He.desktop, bottom: 0, statusBar: 0, right: 0 } : r ? t ? { kind: o, top: 0, bottom: 0, statusBar: a, right: 0 } : void 0 : { kind: o, top: a, bottom: He.phone, statusBar: a, right: 0 };
|
|
1536
1536
|
}, ii = (e) => {
|
|
1537
1537
|
const t = tt(e, { teleported: !1 }), r = t === void 0 ? (e.chrome?.statusBarHeight ?? 0) + oi[or(e) ? "tablet" : "phone"] : t.top + t.bottom;
|
|
1538
1538
|
return { width: e.width, height: e.height - r };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superwall/studio",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"description": "The Superwall studio: paywall browsing, device preview, and editing surfaces. Shared between `superwall dev` (local studio) and the hosted dashboard.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paywall",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"clean": "rm -rf dist coverage"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@superwall/host": "2.
|
|
59
|
+
"@superwall/host": "2.7.0",
|
|
60
60
|
"qrcode.react": "^4.2.0",
|
|
61
61
|
"sonner": "^2.0.7"
|
|
62
62
|
},
|
package/src/lib/devices.ts
CHANGED
|
@@ -200,10 +200,8 @@ export const browserLayoutFor = (
|
|
|
200
200
|
}
|
|
201
201
|
if (kind === "desktop")
|
|
202
202
|
return { kind, top: BROWSER_BAR.desktop, bottom: 0, statusBar: 0, right: 0 };
|
|
203
|
-
if (
|
|
204
|
-
return
|
|
205
|
-
? undefined
|
|
206
|
-
: { kind, top: statusBar, bottom: BROWSER_BAR.phone, statusBar, right: 0 };
|
|
203
|
+
if (!landscape) return { kind, top: statusBar, bottom: BROWSER_BAR.phone, statusBar, right: 0 };
|
|
204
|
+
return teleported ? { kind, top: 0, bottom: 0, statusBar, right: 0 } : undefined;
|
|
207
205
|
};
|
|
208
206
|
|
|
209
207
|
export const webViewportFor = (device: StudioDevice): { width: number; height: number } => {
|