@superwall/cli 2.0.0 → 2.1.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/{apple-CkKlHBZ9.js → apple-CSzNTGHM.js} +13 -13
- package/dist/auth.d.ts +1 -1
- package/dist/auth.js +3 -3
- package/dist/{billing-XCZU_T46.js → billing-C3Q8DBU2.js} +3 -3
- package/dist/{bind-drne__Ys.js → bind-BumHTi9O.js} +4 -4
- package/dist/{build-Gpdq5QXP.js → build-Bpviiclc.js} +6 -6
- package/dist/{client-DP6Rc0t_.js → client-BL0f_yGf.js} +2 -2
- package/dist/create-BSfvpWoD.js +19 -0
- package/dist/{create-Cwc3SRWJ.js → create-BUcVG4Ab.js} +23 -23
- package/dist/{create-BBrtgUgS.js → create-CfK3PeKA.js} +6 -6
- package/dist/{doctor-C9ldpPFC.js → doctor-BWqIYcMn.js} +6 -6
- package/dist/{drivers-DNrx4LWA.js → drivers-CPhdPkW5.js} +3 -3
- package/dist/entry.js +20 -21
- package/dist/{environment-DF1qKlny.js → environment-eBXjELoN.js} +1 -1
- package/dist/{existing-78LWSsqS.js → existing-BltvQiX5.js} +2 -2
- package/dist/held-CPve03KJ.js +16 -0
- package/dist/{held-Cy8Wl4D1.js → held-DgnTFMl3.js} +6 -6
- package/dist/{integrate-DcJhpXy8.js → integrate-BRsqoe01.js} +22 -22
- package/dist/{login-B2TsCE2H.js → login-BCEH5q0U.js} +1 -1
- package/dist/login-BPOONe7n.js +16 -0
- package/dist/{login-D0lh3_JI.js → login-BbTIrCFT.js} +5 -5
- package/dist/{lookup-D-nmmAbw.js → lookup-rr1AkCJA.js} +2 -2
- package/dist/{migrate-Cfec564E.js → migrate-C9X2Vz81.js} +22 -22
- package/dist/{notification-url-YDbq6FMA.js → notification-url-CV86qiKP.js} +2 -2
- package/dist/{open-Ba2vBl1_.js → open-CcpXotHG.js} +10 -10
- package/dist/{org-D0g_q3mv.js → org-BQQDo7wm.js} +2 -2
- package/dist/{paths-DxSLdpOI.js → paths-CRlU72cq.js} +1 -1
- package/dist/{playbook-DIeb7hne.js → playbook-DVMXN7fh.js} +10 -10
- package/dist/{promote-COD4fYdz.js → promote-Da8xctzy.js} +16 -16
- package/dist/push-BV-grvQg.js +22 -0
- package/dist/{push-CncywhkQ.js → push-D6R9icWN.js} +27 -14
- package/dist/{registry-DSrosOYs.js → registry-BYVD-_h6.js} +206 -49
- package/dist/{resources-Dqr01Dep.js → resources-DLON3-61.js} +18 -6
- package/dist/{run-C9qg_QlC.js → run-Co-BwhOg.js} +2 -2
- package/dist/scan-B88OlWOt.js +4 -0
- package/dist/{scan-DLrsrFS9.js → scan-CKuk-_6W.js} +1 -1
- package/dist/{scope-V336uz8j.js → scope-DV22_Ufm.js} +4 -4
- package/dist/{selection-Rdw-ZUoG.js → selection-C2_KbLuo.js} +10 -4
- package/dist/server-C4f6ccUr.js +22 -0
- package/dist/{server-D0tGG8C4.js → server-D0d2oP-5.js} +10 -8
- package/dist/{session-CFAmMhem.js → session-B-Uz0cQ7.js} +1 -1
- package/dist/session-BuvArt1j.js +6 -0
- package/dist/{session-D_nEWKXT.js → session-C4rbE3VS.js} +41 -13
- package/dist/skills/superwall-framework/SKILL.md +7 -3
- package/dist/skills/superwall-framework/references/cli.md +1 -0
- package/dist/skills/superwall-framework/references/layout.md +34 -1
- package/dist/{skills-DMG4bpKk.js → skills-CLGJuMnF.js} +8 -8
- package/dist/{skills-BvFOa4y6.js → skills-CZcpnEnG.js} +5 -4
- package/dist/{spinner-CneRK5rk.js → spinner-C2U6QBJ9.js} +3 -3
- package/dist/{storage-s2Dnz-yl.js → storage-6h9vyiAz.js} +1 -1
- package/dist/storekit-CK9JmM2D.js +16 -0
- package/dist/{storekit-yY_kS2iR.js → storekit-CinJra3V.js} +3 -3
- package/dist/{telemetry-DtG92m5O.js → telemetry-DKyDhURo.js} +1 -1
- package/dist/{token-DzRh7dI1.js → token-DaxQgQkv.js} +1 -1
- package/dist/tools-skills/animate-onboarding/SKILL.md +467 -0
- package/dist/tools-skills/animate-onboarding/references/engine.md +494 -0
- package/dist/tools-skills/animate-onboarding/references/framework/Question.tsx +71 -0
- package/dist/tools-skills/animate-onboarding/references/framework/README.md +40 -0
- package/dist/tools-skills/animate-onboarding/references/framework/answers.ts +19 -0
- package/dist/tools-skills/animate-onboarding/references/framework/flow.ts +80 -0
- package/dist/tools-skills/animate-onboarding/references/framework/handoffs.ts +869 -0
- package/dist/tools-skills/animate-onboarding/references/framework/layout.tsx +113 -0
- package/dist/tools-skills/animate-onboarding/references/framework/motion.css +559 -0
- package/dist/tools-skills/animate-onboarding/references/framework/useStoryRouter.ts +48 -0
- package/dist/tools-skills/animate-onboarding/references/handoffs.md +375 -0
- package/dist/tools-skills/animate-onboarding/references/imageReady.ts +92 -0
- package/dist/tools-skills/animate-onboarding/references/morphFrame.ts +356 -0
- package/dist/tools-skills/animate-onboarding/references/performance.md +41 -0
- package/dist/tools-skills/animate-onboarding/references/web-runtime/README.md +17 -0
- package/dist/tools-skills/animate-onboarding/references/web-runtime/handoffs.ts +858 -0
- package/dist/tools-skills/animate-onboarding/references/web-runtime/story-motion.css +301 -0
- package/dist/tools-skills/mobile-design/SKILL.md +447 -0
- package/dist/tools-skills/mobile-design/references/responsive.md +162 -0
- package/dist/tools-skills/onboarding-questions/SKILL.md +231 -0
- package/dist/tools-skills/onboarding-questions/references/arpu-questions.md +139 -0
- package/dist/tools-skills/onboarding-questions/references/craft.md +142 -0
- package/dist/tools-skills/onboarding-questions/references/example-reflective.md +117 -0
- package/dist/tools-skills/superwall/SKILL.md +263 -0
- package/dist/tools-skills/superwall/references/api.md +303 -0
- package/dist/tools-skills/superwall/references/asa.md +166 -0
- package/dist/tools-skills/superwall/references/asc.md +95 -0
- package/dist/tools-skills/superwall/references/dashboard-links.md +57 -0
- package/dist/tools-skills/superwall/references/data-analytics.md +896 -0
- package/dist/tools-skills/superwall/references/docs.md +51 -0
- package/dist/tools-skills/superwall/references/sdk-integration.md +104 -0
- package/dist/tools-skills/superwall/references/sdk-source.md +18 -0
- package/dist/tools-skills/superwall/workflows/dashboard/playbook.md +76 -0
- package/dist/tools-skills/superwall/workflows/dashboard/setup.md +100 -0
- package/dist/tools-skills/superwall/workflows/integrate/android.md +292 -0
- package/dist/tools-skills/superwall/workflows/integrate/expo.md +272 -0
- package/dist/tools-skills/superwall/workflows/integrate/flutter.md +285 -0
- package/dist/tools-skills/superwall/workflows/integrate/ios.md +314 -0
- package/dist/tools-skills/superwall/workflows/integrate/playbook.md +83 -0
- package/dist/tools-skills/superwall/workflows/integrate/react-native.md +246 -0
- package/dist/tools-skills/superwall/workflows/migrate/adapty.md +229 -0
- package/dist/tools-skills/superwall/workflows/migrate/playbook.md +78 -0
- package/dist/tools-skills/superwall/workflows/migrate/qonversion.md +227 -0
- package/dist/tools-skills/superwall/workflows/migrate/revenuecat.md +414 -0
- package/dist/tools-skills/superwall/workflows/placements/android.md +175 -0
- package/dist/tools-skills/superwall/workflows/placements/expo.md +161 -0
- package/dist/tools-skills/superwall/workflows/placements/flutter.md +139 -0
- package/dist/tools-skills/superwall/workflows/placements/ios.md +165 -0
- package/dist/tools-skills/superwall/workflows/placements/playbook.md +69 -0
- package/dist/tools-skills/superwall/workflows/placements/react-native.md +145 -0
- package/dist/tools-skills/superwall/workflows/placements/strategy.md +222 -0
- package/dist/tools-skills/superwall/workflows/review/android.md +120 -0
- package/dist/tools-skills/superwall/workflows/review/expo.md +100 -0
- package/dist/tools-skills/superwall/workflows/review/flutter.md +99 -0
- package/dist/tools-skills/superwall/workflows/review/ios.md +108 -0
- package/dist/tools-skills/superwall/workflows/review/playbook.md +70 -0
- package/dist/tools-skills/superwall/workflows/review/react-native.md +100 -0
- package/dist/tools-skills/superwall-editor/SKILL.md +113 -0
- package/dist/tools-skills/superwall-editor/references/cli.md +135 -0
- package/dist/tools-skills/superwall-editor/references/design.md +51 -0
- package/dist/tools-skills/superwall-editor/references/native-elements.md +171 -0
- package/dist/tools-skills/superwall-editor/references/workflow.md +65 -0
- package/dist/tools-skills/superwall-editor/scripts/sw-editor.sh +662 -0
- package/dist/tools-skills/wwdc/SKILL.md +22 -0
- package/dist/tools-skills/wwdc/references/docs.md +52 -0
- package/dist/tools-skills/wwdc/scripts/wwdc.sh +266 -0
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +200 -18
- package/dist/{upgrade-Bt4Ouw1y.js → upgrade-DPo0a4Es.js} +1 -1
- package/dist/{upgrade-Cqy5orjb.js → upgrade-ffseQDMx.js} +2 -2
- package/package.json +2 -2
- package/dist/create-Yvf2gStM.js +0 -19
- package/dist/held-Ddw1XSsr.js +0 -16
- package/dist/kinds-GFXB3sYu.js +0 -11
- package/dist/login-BoBe8Psl.js +0 -16
- package/dist/push-CtD4FZQV.js +0 -22
- package/dist/scan-Cv5uOwVY.js +0 -4
- package/dist/send-BxD9yf6F.js +0 -150
- package/dist/server-z1LH94R_.js +0 -22
- package/dist/session-1AV_Bs_d.js +0 -6
- package/dist/storekit-DafAnGkM.js +0 -16
- /package/dist/{devtools-ByZ6XYnn.js → devtools-pBl_vt03.js} +0 -0
- /package/dist/{reports-DdPq4blM.js → reports-D_qbl7_u.js} +0 -0
- /package/dist/{screenshot-file-0UETadF8.js → screenshot-file-tVBfUEIi.js} +0 -0
- /package/dist/{storage-DYvmIOHa.d.ts → storage-CerJ5KLP.d.ts} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as VERSION } from "./environment-
|
|
2
|
-
import { t as ApiError } from "./client-
|
|
1
|
+
import { _ as VERSION } from "./environment-eBXjELoN.js";
|
|
2
|
+
import { t as ApiError } from "./client-BL0f_yGf.js";
|
|
3
3
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as openBrowser } from "./login-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { E as versionProducts, S as pushPaywallVersion, b as promotePaywallVersion, f as listApplications } from "./resources-DLON3-61.js";
|
|
5
|
+
import { i as openBrowser } from "./login-BbTIrCFT.js";
|
|
6
|
+
import { F as requireAssets, I as syncAssets, M as frameworkVersion, N as resolveFramework, P as assetBaseUrl, i as requireProject, o as resolveProjectDirs, u as LAYOUT_HINT, v as collectProjectDeclarations, w as readLock, y as writeProjectTypes } from "./selection-C2_KbLuo.js";
|
|
7
|
+
import { f as listProjectProducts, g as planTargets, i as pushSource, l as writeProjectScaffold, n as requireApi, o as collectSourceFiles, p as projectForApplication, s as warnNotPortable, u as listApplicationCatalogue, v as wantedPlatforms, x as resolveApps, y as resolveBinding } from "./session-C4rbE3VS.js";
|
|
8
8
|
import { execFile } from "node:child_process";
|
|
9
9
|
import * as fs from "node:fs";
|
|
10
10
|
import * as path from "node:path";
|
|
@@ -292,9 +292,11 @@ function createStudioActions(framework, project) {
|
|
|
292
292
|
let version = 0;
|
|
293
293
|
const external = /* @__PURE__ */ new Set();
|
|
294
294
|
for (const target of targets) {
|
|
295
|
+
const catalogue = await listApplicationCatalogue(client, target.applicationId);
|
|
295
296
|
const built = await step("build", () => framework.buildSnapshot(project, surface, {
|
|
296
297
|
assetBaseUrl: assetBaseUrl(target.applicationId),
|
|
297
|
-
platform: target.platform
|
|
298
|
+
platform: target.platform,
|
|
299
|
+
catalogue: catalogue.variables
|
|
298
300
|
}));
|
|
299
301
|
const binding = await resolveBinding({
|
|
300
302
|
api: client,
|
|
@@ -314,7 +316,7 @@ function createStudioActions(framework, project) {
|
|
|
314
316
|
html: built.html,
|
|
315
317
|
surface: surface.id,
|
|
316
318
|
assets: synced.assets,
|
|
317
|
-
products: versionProducts(built.products, target.platform),
|
|
319
|
+
products: versionProducts(built.products, target.platform, catalogue.stores),
|
|
318
320
|
settings: built.settings
|
|
319
321
|
}));
|
|
320
322
|
await step("source", async () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as sessionOrgName, i as serializeSession, n as removeSession, r as resolveApiHost, t as readSession } from "./storage-
|
|
1
|
+
import { a as sessionOrgName, i as serializeSession, n as removeSession, r as resolveApiHost, t as readSession } from "./storage-6h9vyiAz.js";
|
|
2
2
|
|
|
3
3
|
//#region src/core/account/session.ts
|
|
4
4
|
function runWhoami(ctx) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { l as ENV_API_KEY, t as API_HOST, v as apiKeyFromEnv } from "./environment-
|
|
2
|
-
import { t as readSession } from "./storage-
|
|
3
|
-
import { n as ApiUnreachableError, r as createSuperwallApi, t as ApiError } from "./client-
|
|
1
|
+
import { l as ENV_API_KEY, t as API_HOST, v as apiKeyFromEnv } from "./environment-eBXjELoN.js";
|
|
2
|
+
import { t as readSession } from "./storage-6h9vyiAz.js";
|
|
3
|
+
import { n as ApiUnreachableError, r as createSuperwallApi, t as ApiError } from "./client-BL0f_yGf.js";
|
|
4
4
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
5
|
-
import {
|
|
6
|
-
import { n as findApplication } from "./lookup-
|
|
7
|
-
import {
|
|
8
|
-
import { n as performLoginWithUi } from "./login-
|
|
5
|
+
import { O as isRecord, _ as mintSourceAccess, a as createHeadlessPaywall, d as listAppPaywalls, f as listApplications, u as linkSourceCommit, v as platformLabel } from "./resources-DLON3-61.js";
|
|
6
|
+
import { n as findApplication } from "./lookup-rr1AkCJA.js";
|
|
7
|
+
import { C as parseSources, D as writeBinding, E as writeApp, j as writeSources, w as readLock, x as formatSharedLock } from "./selection-C2_KbLuo.js";
|
|
8
|
+
import { n as performLoginWithUi } from "./login-BCEH5q0U.js";
|
|
9
9
|
import { execFile } from "node:child_process";
|
|
10
10
|
import * as fs from "node:fs";
|
|
11
11
|
import * as path from "node:path";
|
|
@@ -196,11 +196,39 @@ function planTargets(input) {
|
|
|
196
196
|
|
|
197
197
|
//#endregion
|
|
198
198
|
//#region src/core/paywalls/products.ts
|
|
199
|
-
|
|
199
|
+
function storeOf(row) {
|
|
200
|
+
if (row.platform === "stripe") return "stripe";
|
|
201
|
+
if (row.store === "custom" || row.platform === "custom") return "custom";
|
|
202
|
+
if (row.store === "app_store") return "app-store";
|
|
203
|
+
if (row.store === "play_store") return "play-store";
|
|
204
|
+
}
|
|
205
|
+
async function listProjectCatalogue(api, projectId) {
|
|
200
206
|
const rows = await api.list(`/v2/products?project_id=${encodeURIComponent(projectId)}`);
|
|
201
|
-
const
|
|
202
|
-
|
|
203
|
-
|
|
207
|
+
const variables = /* @__PURE__ */ new Map();
|
|
208
|
+
const stores = /* @__PURE__ */ new Map();
|
|
209
|
+
for (const row of rows) {
|
|
210
|
+
if (!row.identifier) continue;
|
|
211
|
+
variables.set(row.identifier, productVariables(row));
|
|
212
|
+
const store = storeOf(row);
|
|
213
|
+
if (store === void 0) continue;
|
|
214
|
+
const known = stores.get(row.identifier) ?? [];
|
|
215
|
+
if (!known.includes(store)) stores.set(row.identifier, [...known, store]);
|
|
216
|
+
}
|
|
217
|
+
return {
|
|
218
|
+
variables: Object.fromEntries(variables),
|
|
219
|
+
stores: Object.fromEntries(stores)
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
async function listProjectProducts(api, projectId) {
|
|
223
|
+
return (await listProjectCatalogue(api, projectId)).variables;
|
|
224
|
+
}
|
|
225
|
+
async function listApplicationCatalogue(api, applicationId) {
|
|
226
|
+
const projectId = await projectForApplication(api, applicationId);
|
|
227
|
+
if (projectId === void 0) return {
|
|
228
|
+
variables: {},
|
|
229
|
+
stores: {}
|
|
230
|
+
};
|
|
231
|
+
return listProjectCatalogue(api, projectId);
|
|
204
232
|
}
|
|
205
233
|
async function projectForApplication(api, applicationId) {
|
|
206
234
|
const found = await findApplication(api, applicationId).catch(() => void 0);
|
|
@@ -208,7 +236,7 @@ async function projectForApplication(api, applicationId) {
|
|
|
208
236
|
}
|
|
209
237
|
var MissingProductError = class extends Error {};
|
|
210
238
|
function requireProducts(catalogue, surfaces) {
|
|
211
|
-
const gaps = surfaces.flatMap((surface) => Object.entries(surface.products ?? {}).filter(([, identifier]) => catalogue
|
|
239
|
+
const gaps = surfaces.flatMap((surface) => Object.entries(surface.products ?? {}).filter(([, identifier]) => !Object.hasOwn(catalogue, identifier)).map(([reference, identifier]) => ` ${surface.id}: ${reference} → ${identifier}`));
|
|
212
240
|
if (gaps.length === 0) return;
|
|
213
241
|
throw new MissingProductError([
|
|
214
242
|
gaps.length === 1 ? "This product does not exist on Superwall:" : `These ${gaps.length} products do not exist on Superwall:`,
|
|
@@ -765,4 +793,4 @@ async function requireApi(interactive, login = performLoginWithUi) {
|
|
|
765
793
|
}
|
|
766
794
|
|
|
767
795
|
//#endregion
|
|
768
|
-
export {
|
|
796
|
+
export { targetLabel as _, gitAvailable as a, requirePlatform as b, projectPackageName as c, listProjectCatalogue as d, listProjectProducts as f, planTargets as g, parsePlatformFlags as h, pushSource as i, writeProjectScaffold as l, requireProducts as m, requireApi as n, collectSourceFiles as o, projectForApplication as p, assertGit as r, warnNotPortable as s, LoginRequiredError as t, listApplicationCatalogue as u, wantedPlatforms as v, resolveApps as x, resolveBinding as y };
|
|
@@ -141,7 +141,10 @@ Docs beyond the framework (dashboard, SDKs, web checkout setup):
|
|
|
141
141
|
preloads paywalls hidden. Gate on
|
|
142
142
|
`useSuperwallSnapshot().paywall !== undefined`. That includes CSS:
|
|
143
143
|
`@starting-style` and an animation on a class present at render both
|
|
144
|
-
finish during the preload.
|
|
144
|
+
finish during the preload. When iOS kills the web process, the SDK
|
|
145
|
+
reloads the page; from SuperwallKit 4.18.0 the reloaded page gets
|
|
146
|
+
`paywall_open` again, so the gate recovers with no code in the
|
|
147
|
+
paywall. Older iOS SDKs leave a gated reloaded page blank.
|
|
145
148
|
4. **Dark mode is the `:root.dark` class the SDK stamps**, not
|
|
146
149
|
`prefers-color-scheme`.
|
|
147
150
|
5. **Routes are names on a stack** — no params, no order. Closing the
|
|
@@ -274,8 +277,9 @@ Docs beyond the framework (dashboard, SDKs, web checkout setup):
|
|
|
274
277
|
16. **The paywall is inset by default; never write `env()` and never
|
|
275
278
|
`position: fixed`.** The framework's root box pads the whole paywall
|
|
276
279
|
by the safe area, resolved per platform, screen and presentation
|
|
277
|
-
(iPhone island/notch/home button,
|
|
278
|
-
modal's zero top, landscape sides) and live
|
|
280
|
+
(iPhone island/notch/home button, iPhone Duo's camera strip, iPad,
|
|
281
|
+
Android's status bar, a modal's zero top, landscape sides) and live
|
|
282
|
+
on device; its content
|
|
279
283
|
box is what layout chrome positions against. So layouts and pages
|
|
280
284
|
write ordinary padding, a layout's shell is `flex: 1 1 auto` (never
|
|
281
285
|
`100dvh`), chrome is absolute in `layout.tsx`, a pinned CTA is sticky
|
|
@@ -394,6 +394,7 @@ than listing none.
|
|
|
394
394
|
| `…package.json is named "superwall"` | Rename the package — that name shadows the framework |
|
|
395
395
|
| `No superwall framework found` | `bun add superwall` (or npm) inside the project |
|
|
396
396
|
| `These N products do not exist on Superwall` | Create them with `superwall products create` (above) — don't just report it — or fix the identifiers in `config.ts` |
|
|
397
|
+
| `Superwall for Agents is in private beta and isn't enabled for this app yet` | Enabled per app on Superwall's side; contact support@superwall.com. Nothing in the CLI can set it |
|
|
397
398
|
| `You can open N projects - pass --app <id\|dashboard link> or --project <id>` | Add `--app <id\|dashboard link>` to the resource command |
|
|
398
399
|
| `App <id> already has a paywall … that superwall.lock doesn't bind` | Ask the user whether it's this project's; if so add the printed line under `paywalls`, if not rename the directory |
|
|
399
400
|
| Diagnostics block the push | The message names each stray file and where it belongs |
|
|
@@ -207,6 +207,35 @@ there moves the insets. The value on an actual iPhone is `env()`, so a
|
|
|
207
207
|
16 Pro shows 62 on device and 59 in the studio — that 3px is why chrome
|
|
208
208
|
sits at inset *plus* spacing.
|
|
209
209
|
|
|
210
|
+
### iPhone Duo in practice
|
|
211
|
+
|
|
212
|
+
Measured insets, by posture:
|
|
213
|
+
|
|
214
|
+
| State | Viewport | Safe area T / R / B / L |
|
|
215
|
+
| --- | --- | --- |
|
|
216
|
+
| Closed (outer screen), portrait or landscape | 466×678 / 678×466 | 0 / 84 / 34 / 0 |
|
|
217
|
+
| Open (inner screen), landscape | 951×669 | 0 / 84 / 34 / 0 |
|
|
218
|
+
| Open (inner screen), portrait | 669×951 | 82 / 0 / 34 / 0 |
|
|
219
|
+
|
|
220
|
+
Folding the phone doesn't change the safe area.
|
|
221
|
+
|
|
222
|
+
What this means for a paywall:
|
|
223
|
+
|
|
224
|
+
- **The close button.** Most paywalls put it top-right, which is exactly
|
|
225
|
+
where the strip is when the phone is closed. Inside the inset root it is
|
|
226
|
+
already clear. Over a bleed, inset it from **both** edges:
|
|
227
|
+
`top: calc(var(--sw-safe-area-inset-top) + 8px); right: calc(var(--sw-safe-area-inset-right) + 16px)`.
|
|
228
|
+
Never `right: 16px` alone over a bleed.
|
|
229
|
+
- **Never assume left equals right.** The insets are asymmetric. Write each
|
|
230
|
+
edge with its own variable, never `padding: 0 var(--sw-safe-area-inset-right)`.
|
|
231
|
+
- **The fold.** In book posture (open, portrait, folded) a 40px hinge band
|
|
232
|
+
runs across the inner screen at y 456–496; in tabletop (open, landscape,
|
|
233
|
+
folded) it runs down it at x 456–496. Web pages cannot detect whether the
|
|
234
|
+
phone is folded, so keep the primary CTA and the close button out of that
|
|
235
|
+
band on the inner screen (`min-width: 600px` on an iPhone).
|
|
236
|
+
- Detect it with `useDevice().cutout === "strip"` only for a design choice
|
|
237
|
+
the insets cannot make; layout itself needs nothing.
|
|
238
|
+
|
|
210
239
|
## Recipes
|
|
211
240
|
|
|
212
241
|
**Close button** (`layout.tsx`):
|
|
@@ -215,6 +244,9 @@ sits at inset *plus* spacing.
|
|
|
215
244
|
.close { position: absolute; top: 4px; right: 16px; }
|
|
216
245
|
```
|
|
217
246
|
|
|
247
|
+
The root is already inset, so this clears the island, the notch and the
|
|
248
|
+
iPhone Duo's camera strip without any variable.
|
|
249
|
+
|
|
218
250
|
**Pinned CTA that content scrolls under** (last child of the page):
|
|
219
251
|
|
|
220
252
|
```css
|
|
@@ -251,7 +283,8 @@ insets: { top: "none" }
|
|
|
251
283
|
```
|
|
252
284
|
|
|
253
285
|
```css
|
|
254
|
-
.close { position: absolute; top: calc(var(--sw-safe-area-inset-top) + 8px);
|
|
286
|
+
.close { position: absolute; top: calc(var(--sw-safe-area-inset-top) + 8px);
|
|
287
|
+
right: calc(var(--sw-safe-area-inset-right) + 16px); }
|
|
255
288
|
.hero::after { /* scrim so the bar's clock stays legible in both schemes */ }
|
|
256
289
|
```
|
|
257
290
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-DaxQgQkv.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import "./client-
|
|
3
|
+
import "./environment-eBXjELoN.js";
|
|
4
|
+
import "./storage-6h9vyiAz.js";
|
|
5
|
+
import "./client-BL0f_yGf.js";
|
|
6
6
|
import "./config-BO1Y87kV.js";
|
|
7
|
-
import "./telemetry-
|
|
7
|
+
import "./telemetry-DKyDhURo.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import "./spinner-
|
|
9
|
+
import "./spinner-C2U6QBJ9.js";
|
|
10
10
|
import "./ui-D_qf3Gvw.js";
|
|
11
|
-
import "./paths-
|
|
12
|
-
import { a as bundledSkills, c as knownSkills, d as readBundledSkill, f as runSkills, i as SUPERWALL_SKILLS_SOURCE, l as normalizeSkillFrontmatter, m as skillsRefFor, n as SKILLS_INSTALL_SOURCE, o as checkSkillsSync, p as skillSummary, r as SKILLS_REF, s as ensureSkillsCurrent, t as PLAYBOOKS, u as normalizeSkillsDir } from "./skills-
|
|
11
|
+
import "./paths-CRlU72cq.js";
|
|
12
|
+
import { a as bundledSkills, c as knownSkills, d as readBundledSkill, f as runSkills, i as SUPERWALL_SKILLS_SOURCE, l as normalizeSkillFrontmatter, m as skillsRefFor, n as SKILLS_INSTALL_SOURCE, o as checkSkillsSync, p as skillSummary, r as SKILLS_REF, s as ensureSkillsCurrent, t as PLAYBOOKS, u as normalizeSkillsDir } from "./skills-CZcpnEnG.js";
|
|
13
13
|
|
|
14
14
|
export { PLAYBOOKS, SKILLS_INSTALL_SOURCE, SKILLS_REF, SUPERWALL_SKILLS_SOURCE, bundledSkills, checkSkillsSync, ensureSkillsCurrent, knownSkills, normalizeSkillFrontmatter, normalizeSkillsDir, readBundledSkill, runSkills, skillSummary, skillsRefFor };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { _ as VERSION, a as CHANNEL, o as CHANNELS } from "./environment-
|
|
1
|
+
import { _ as VERSION, a as CHANNEL, o as CHANNELS } from "./environment-eBXjELoN.js";
|
|
2
2
|
import { m as writeSkillsSync, s as readSkillsSync } from "./config-BO1Y87kV.js";
|
|
3
|
-
import { r as track } from "./telemetry-
|
|
3
|
+
import { r as track } from "./telemetry-DKyDhURo.js";
|
|
4
4
|
import { r as spawnStream } from "./spawn-DmmmHIP-.js";
|
|
5
|
-
import { n as withSpinner } from "./spinner-
|
|
5
|
+
import { n as withSpinner } from "./spinner-C2U6QBJ9.js";
|
|
6
6
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
7
|
-
import { i as packagedDir, t as AGENT_SKILLS_DIR } from "./paths-
|
|
7
|
+
import { i as packagedDir, t as AGENT_SKILLS_DIR } from "./paths-CRlU72cq.js";
|
|
8
8
|
import { existsSync, mkdtempSync, readFileSync, readdirSync, rmSync, writeFileSync } from "node:fs";
|
|
9
9
|
import { join } from "node:path";
|
|
10
10
|
import { tmpdir } from "node:os";
|
|
@@ -15,6 +15,7 @@ const skillsRefFor = (channel) => CHANNELS[channel].skillsRef;
|
|
|
15
15
|
const SKILLS_REF = () => skillsRefFor(CHANNEL());
|
|
16
16
|
const skillsInstallSourceFor = (channel) => channel === "latest" ? SUPERWALL_SKILLS_SOURCE : `https://github.com/${SUPERWALL_SKILLS_SOURCE}/tree/${skillsRefFor(channel)}`;
|
|
17
17
|
const SKILLS_INSTALL_SOURCE = () => skillsInstallSourceFor(CHANNEL());
|
|
18
|
+
const TOOLS_SKILLS_REF = CHANNELS.next.skillsRef;
|
|
18
19
|
const onChannel = (channel) => channel === "latest" || channel === CHANNEL();
|
|
19
20
|
function skillSummary(md) {
|
|
20
21
|
const firstSentence = (md.match(/^description:\s*(.+)$/m)?.[1] ?? "").trim().replace(/^["']|["'`]+$/g, "").replace(/(?<=\.)\s[\s\S]*$/, "");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as NotLoggedInError } from "./token-
|
|
1
|
+
import { r as NotLoggedInError } from "./token-DaxQgQkv.js";
|
|
2
2
|
import { i as writeJson, n as createCommandOutput } from "./output-Ggzq5_-t.js";
|
|
3
|
-
import { a as CHANNEL } from "./environment-
|
|
4
|
-
import { t as ApiError } from "./client-
|
|
3
|
+
import { a as CHANNEL } from "./environment-eBXjELoN.js";
|
|
4
|
+
import { t as ApiError } from "./client-BL0f_yGf.js";
|
|
5
5
|
import { n as ui, r as useRenderer } from "./ui-D_qf3Gvw.js";
|
|
6
6
|
import pc from "picocolors";
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as readJson, r as formatJson, u as state } from "./output-Ggzq5_-t.js";
|
|
2
|
-
import { n as API_HOST_OVERRIDE, t as API_HOST } from "./environment-
|
|
2
|
+
import { n as API_HOST_OVERRIDE, t as API_HOST } from "./environment-eBXjELoN.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/account/storage.ts
|
|
5
5
|
const sessionOrgName = (session) => {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./token-DaxQgQkv.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-eBXjELoN.js";
|
|
4
|
+
import "./storage-6h9vyiAz.js";
|
|
5
|
+
import "./client-BL0f_yGf.js";
|
|
6
|
+
import "./config-BO1Y87kV.js";
|
|
7
|
+
import "./spinner-C2U6QBJ9.js";
|
|
8
|
+
import "./ui-D_qf3Gvw.js";
|
|
9
|
+
import "./resources-DLON3-61.js";
|
|
10
|
+
import "./org-BQQDo7wm.js";
|
|
11
|
+
import "./lookup-rr1AkCJA.js";
|
|
12
|
+
import "./scope-DV22_Ufm.js";
|
|
13
|
+
import "./input-vi0bou04.js";
|
|
14
|
+
import { n as writeStoreKit, t as generateStoreKit } from "./storekit-CinJra3V.js";
|
|
15
|
+
|
|
16
|
+
export { generateStoreKit, writeStoreKit };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as formatJson } from "./output-Ggzq5_-t.js";
|
|
2
|
-
import { t as apiCall } from "./spinner-
|
|
3
|
-
import { m as listResource } from "./resources-
|
|
4
|
-
import { a as pickScope } from "./scope-
|
|
2
|
+
import { t as apiCall } from "./spinner-C2U6QBJ9.js";
|
|
3
|
+
import { m as listResource } from "./resources-DLON3-61.js";
|
|
4
|
+
import { a as pickScope } from "./scope-DV22_Ufm.js";
|
|
5
5
|
import { r as textOf } from "./input-vi0bou04.js";
|
|
6
6
|
import { writeFileSync } from "node:fs";
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as VERSION, b as isNonInteractive, g as TELEMETRY_KEY, h as TELEMETRY_HOST } from "./environment-
|
|
1
|
+
import { _ as VERSION, b as isNonInteractive, g as TELEMETRY_KEY, h as TELEMETRY_HOST } from "./environment-eBXjELoN.js";
|
|
2
2
|
import { h as writeTelemetryNoticeShown, l as telemetryNoticeShown, t as readAnonymousId } from "./config-BO1Y87kV.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/support/telemetry.ts
|