@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.
Files changed (139) hide show
  1. package/dist/{apple-CkKlHBZ9.js → apple-CSzNTGHM.js} +13 -13
  2. package/dist/auth.d.ts +1 -1
  3. package/dist/auth.js +3 -3
  4. package/dist/{billing-XCZU_T46.js → billing-C3Q8DBU2.js} +3 -3
  5. package/dist/{bind-drne__Ys.js → bind-BumHTi9O.js} +4 -4
  6. package/dist/{build-Gpdq5QXP.js → build-Bpviiclc.js} +6 -6
  7. package/dist/{client-DP6Rc0t_.js → client-BL0f_yGf.js} +2 -2
  8. package/dist/create-BSfvpWoD.js +19 -0
  9. package/dist/{create-Cwc3SRWJ.js → create-BUcVG4Ab.js} +23 -23
  10. package/dist/{create-BBrtgUgS.js → create-CfK3PeKA.js} +6 -6
  11. package/dist/{doctor-C9ldpPFC.js → doctor-BWqIYcMn.js} +6 -6
  12. package/dist/{drivers-DNrx4LWA.js → drivers-CPhdPkW5.js} +3 -3
  13. package/dist/entry.js +20 -21
  14. package/dist/{environment-DF1qKlny.js → environment-eBXjELoN.js} +1 -1
  15. package/dist/{existing-78LWSsqS.js → existing-BltvQiX5.js} +2 -2
  16. package/dist/held-CPve03KJ.js +16 -0
  17. package/dist/{held-Cy8Wl4D1.js → held-DgnTFMl3.js} +6 -6
  18. package/dist/{integrate-DcJhpXy8.js → integrate-BRsqoe01.js} +22 -22
  19. package/dist/{login-B2TsCE2H.js → login-BCEH5q0U.js} +1 -1
  20. package/dist/login-BPOONe7n.js +16 -0
  21. package/dist/{login-D0lh3_JI.js → login-BbTIrCFT.js} +5 -5
  22. package/dist/{lookup-D-nmmAbw.js → lookup-rr1AkCJA.js} +2 -2
  23. package/dist/{migrate-Cfec564E.js → migrate-C9X2Vz81.js} +22 -22
  24. package/dist/{notification-url-YDbq6FMA.js → notification-url-CV86qiKP.js} +2 -2
  25. package/dist/{open-Ba2vBl1_.js → open-CcpXotHG.js} +10 -10
  26. package/dist/{org-D0g_q3mv.js → org-BQQDo7wm.js} +2 -2
  27. package/dist/{paths-DxSLdpOI.js → paths-CRlU72cq.js} +1 -1
  28. package/dist/{playbook-DIeb7hne.js → playbook-DVMXN7fh.js} +10 -10
  29. package/dist/{promote-COD4fYdz.js → promote-Da8xctzy.js} +16 -16
  30. package/dist/push-BV-grvQg.js +22 -0
  31. package/dist/{push-CncywhkQ.js → push-D6R9icWN.js} +27 -14
  32. package/dist/{registry-DSrosOYs.js → registry-BYVD-_h6.js} +206 -49
  33. package/dist/{resources-Dqr01Dep.js → resources-DLON3-61.js} +18 -6
  34. package/dist/{run-C9qg_QlC.js → run-Co-BwhOg.js} +2 -2
  35. package/dist/scan-B88OlWOt.js +4 -0
  36. package/dist/{scan-DLrsrFS9.js → scan-CKuk-_6W.js} +1 -1
  37. package/dist/{scope-V336uz8j.js → scope-DV22_Ufm.js} +4 -4
  38. package/dist/{selection-Rdw-ZUoG.js → selection-C2_KbLuo.js} +10 -4
  39. package/dist/server-C4f6ccUr.js +22 -0
  40. package/dist/{server-D0tGG8C4.js → server-D0d2oP-5.js} +10 -8
  41. package/dist/{session-CFAmMhem.js → session-B-Uz0cQ7.js} +1 -1
  42. package/dist/session-BuvArt1j.js +6 -0
  43. package/dist/{session-D_nEWKXT.js → session-C4rbE3VS.js} +41 -13
  44. package/dist/skills/superwall-framework/SKILL.md +7 -3
  45. package/dist/skills/superwall-framework/references/cli.md +1 -0
  46. package/dist/skills/superwall-framework/references/layout.md +34 -1
  47. package/dist/{skills-DMG4bpKk.js → skills-CLGJuMnF.js} +8 -8
  48. package/dist/{skills-BvFOa4y6.js → skills-CZcpnEnG.js} +5 -4
  49. package/dist/{spinner-CneRK5rk.js → spinner-C2U6QBJ9.js} +3 -3
  50. package/dist/{storage-s2Dnz-yl.js → storage-6h9vyiAz.js} +1 -1
  51. package/dist/storekit-CK9JmM2D.js +16 -0
  52. package/dist/{storekit-yY_kS2iR.js → storekit-CinJra3V.js} +3 -3
  53. package/dist/{telemetry-DtG92m5O.js → telemetry-DKyDhURo.js} +1 -1
  54. package/dist/{token-DzRh7dI1.js → token-DaxQgQkv.js} +1 -1
  55. package/dist/tools-skills/animate-onboarding/SKILL.md +467 -0
  56. package/dist/tools-skills/animate-onboarding/references/engine.md +494 -0
  57. package/dist/tools-skills/animate-onboarding/references/framework/Question.tsx +71 -0
  58. package/dist/tools-skills/animate-onboarding/references/framework/README.md +40 -0
  59. package/dist/tools-skills/animate-onboarding/references/framework/answers.ts +19 -0
  60. package/dist/tools-skills/animate-onboarding/references/framework/flow.ts +80 -0
  61. package/dist/tools-skills/animate-onboarding/references/framework/handoffs.ts +869 -0
  62. package/dist/tools-skills/animate-onboarding/references/framework/layout.tsx +113 -0
  63. package/dist/tools-skills/animate-onboarding/references/framework/motion.css +559 -0
  64. package/dist/tools-skills/animate-onboarding/references/framework/useStoryRouter.ts +48 -0
  65. package/dist/tools-skills/animate-onboarding/references/handoffs.md +375 -0
  66. package/dist/tools-skills/animate-onboarding/references/imageReady.ts +92 -0
  67. package/dist/tools-skills/animate-onboarding/references/morphFrame.ts +356 -0
  68. package/dist/tools-skills/animate-onboarding/references/performance.md +41 -0
  69. package/dist/tools-skills/animate-onboarding/references/web-runtime/README.md +17 -0
  70. package/dist/tools-skills/animate-onboarding/references/web-runtime/handoffs.ts +858 -0
  71. package/dist/tools-skills/animate-onboarding/references/web-runtime/story-motion.css +301 -0
  72. package/dist/tools-skills/mobile-design/SKILL.md +447 -0
  73. package/dist/tools-skills/mobile-design/references/responsive.md +162 -0
  74. package/dist/tools-skills/onboarding-questions/SKILL.md +231 -0
  75. package/dist/tools-skills/onboarding-questions/references/arpu-questions.md +139 -0
  76. package/dist/tools-skills/onboarding-questions/references/craft.md +142 -0
  77. package/dist/tools-skills/onboarding-questions/references/example-reflective.md +117 -0
  78. package/dist/tools-skills/superwall/SKILL.md +263 -0
  79. package/dist/tools-skills/superwall/references/api.md +303 -0
  80. package/dist/tools-skills/superwall/references/asa.md +166 -0
  81. package/dist/tools-skills/superwall/references/asc.md +95 -0
  82. package/dist/tools-skills/superwall/references/dashboard-links.md +57 -0
  83. package/dist/tools-skills/superwall/references/data-analytics.md +896 -0
  84. package/dist/tools-skills/superwall/references/docs.md +51 -0
  85. package/dist/tools-skills/superwall/references/sdk-integration.md +104 -0
  86. package/dist/tools-skills/superwall/references/sdk-source.md +18 -0
  87. package/dist/tools-skills/superwall/workflows/dashboard/playbook.md +76 -0
  88. package/dist/tools-skills/superwall/workflows/dashboard/setup.md +100 -0
  89. package/dist/tools-skills/superwall/workflows/integrate/android.md +292 -0
  90. package/dist/tools-skills/superwall/workflows/integrate/expo.md +272 -0
  91. package/dist/tools-skills/superwall/workflows/integrate/flutter.md +285 -0
  92. package/dist/tools-skills/superwall/workflows/integrate/ios.md +314 -0
  93. package/dist/tools-skills/superwall/workflows/integrate/playbook.md +83 -0
  94. package/dist/tools-skills/superwall/workflows/integrate/react-native.md +246 -0
  95. package/dist/tools-skills/superwall/workflows/migrate/adapty.md +229 -0
  96. package/dist/tools-skills/superwall/workflows/migrate/playbook.md +78 -0
  97. package/dist/tools-skills/superwall/workflows/migrate/qonversion.md +227 -0
  98. package/dist/tools-skills/superwall/workflows/migrate/revenuecat.md +414 -0
  99. package/dist/tools-skills/superwall/workflows/placements/android.md +175 -0
  100. package/dist/tools-skills/superwall/workflows/placements/expo.md +161 -0
  101. package/dist/tools-skills/superwall/workflows/placements/flutter.md +139 -0
  102. package/dist/tools-skills/superwall/workflows/placements/ios.md +165 -0
  103. package/dist/tools-skills/superwall/workflows/placements/playbook.md +69 -0
  104. package/dist/tools-skills/superwall/workflows/placements/react-native.md +145 -0
  105. package/dist/tools-skills/superwall/workflows/placements/strategy.md +222 -0
  106. package/dist/tools-skills/superwall/workflows/review/android.md +120 -0
  107. package/dist/tools-skills/superwall/workflows/review/expo.md +100 -0
  108. package/dist/tools-skills/superwall/workflows/review/flutter.md +99 -0
  109. package/dist/tools-skills/superwall/workflows/review/ios.md +108 -0
  110. package/dist/tools-skills/superwall/workflows/review/playbook.md +70 -0
  111. package/dist/tools-skills/superwall/workflows/review/react-native.md +100 -0
  112. package/dist/tools-skills/superwall-editor/SKILL.md +113 -0
  113. package/dist/tools-skills/superwall-editor/references/cli.md +135 -0
  114. package/dist/tools-skills/superwall-editor/references/design.md +51 -0
  115. package/dist/tools-skills/superwall-editor/references/native-elements.md +171 -0
  116. package/dist/tools-skills/superwall-editor/references/workflow.md +65 -0
  117. package/dist/tools-skills/superwall-editor/scripts/sw-editor.sh +662 -0
  118. package/dist/tools-skills/wwdc/SKILL.md +22 -0
  119. package/dist/tools-skills/wwdc/references/docs.md +52 -0
  120. package/dist/tools-skills/wwdc/scripts/wwdc.sh +266 -0
  121. package/dist/tools.d.ts +1 -1
  122. package/dist/tools.js +200 -18
  123. package/dist/{upgrade-Bt4Ouw1y.js → upgrade-DPo0a4Es.js} +1 -1
  124. package/dist/{upgrade-Cqy5orjb.js → upgrade-ffseQDMx.js} +2 -2
  125. package/package.json +2 -2
  126. package/dist/create-Yvf2gStM.js +0 -19
  127. package/dist/held-Ddw1XSsr.js +0 -16
  128. package/dist/kinds-GFXB3sYu.js +0 -11
  129. package/dist/login-BoBe8Psl.js +0 -16
  130. package/dist/push-CtD4FZQV.js +0 -22
  131. package/dist/scan-Cv5uOwVY.js +0 -4
  132. package/dist/send-BxD9yf6F.js +0 -150
  133. package/dist/server-z1LH94R_.js +0 -22
  134. package/dist/session-1AV_Bs_d.js +0 -6
  135. package/dist/storekit-DafAnGkM.js +0 -16
  136. /package/dist/{devtools-ByZ6XYnn.js → devtools-pBl_vt03.js} +0 -0
  137. /package/dist/{reports-DdPq4blM.js → reports-D_qbl7_u.js} +0 -0
  138. /package/dist/{screenshot-file-0UETadF8.js → screenshot-file-tVBfUEIi.js} +0 -0
  139. /package/dist/{storage-DYvmIOHa.d.ts → storage-CerJ5KLP.d.ts} +0 -0
@@ -1,10 +1,10 @@
1
- import { _ as VERSION } from "./environment-DF1qKlny.js";
2
- import { t as ApiError } from "./client-DP6Rc0t_.js";
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 { f as listApplications, w as versionProducts, x as pushPaywallVersion, y as promotePaywallVersion } from "./resources-Dqr01Dep.js";
5
- import { i as openBrowser } from "./login-D0lh3_JI.js";
6
- import { C as readLock, F as syncAssets, M as resolveFramework, N as assetBaseUrl, P as requireAssets, _ as collectProjectDeclarations, i as requireProject, j as frameworkVersion, l as LAYOUT_HINT, o as resolveProjectDirs, v as writeProjectTypes } from "./selection-Rdw-ZUoG.js";
7
- import { _ as resolveBinding, d as projectForApplication, g as wantedPlatforms, i as pushSource, l as writeProjectScaffold, m as planTargets, n as requireApi, o as collectSourceFiles, s as warnNotPortable, u as listProjectProducts, y as resolveApps } from "./session-D_nEWKXT.js";
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-s2Dnz-yl.js";
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) {
@@ -0,0 +1,6 @@
1
+ import "./output-Ggzq5_-t.js";
2
+ import "./environment-eBXjELoN.js";
3
+ import "./storage-6h9vyiAz.js";
4
+ import { n as runWhoami, t as runLogout } from "./session-B-Uz0cQ7.js";
5
+
6
+ export { runLogout, runWhoami };
@@ -1,11 +1,11 @@
1
- import { l as ENV_API_KEY, t as API_HOST, v as apiKeyFromEnv } from "./environment-DF1qKlny.js";
2
- import { t as readSession } from "./storage-s2Dnz-yl.js";
3
- import { n as ApiUnreachableError, r as createSuperwallApi, t as ApiError } from "./client-DP6Rc0t_.js";
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 { E as isRecord, _ as mintSourceAccess, a as createHeadlessPaywall, d as listAppPaywalls, f as listApplications, u as linkSourceCommit, v as platformLabel } from "./resources-Dqr01Dep.js";
6
- import { n as findApplication } from "./lookup-D-nmmAbw.js";
7
- import { A as writeSources, C as readLock, E as writeBinding, S as parseSources, T as writeApp, b as formatSharedLock } from "./selection-Rdw-ZUoG.js";
8
- import { n as performLoginWithUi } from "./login-B2TsCE2H.js";
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
- async function listProjectProducts(api, projectId) {
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 catalogue = {};
202
- for (const row of rows) if (row.identifier) catalogue[row.identifier] = productVariables(row);
203
- return catalogue;
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[identifier] === void 0).map(([reference, identifier]) => ` ${surface.id}: ${reference} → ${identifier}`));
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 { resolveBinding as _, gitAvailable as a, projectPackageName as c, projectForApplication as d, requireProducts as f, wantedPlatforms as g, targetLabel as h, pushSource as i, writeProjectScaffold as l, planTargets as m, requireApi as n, collectSourceFiles as o, parsePlatformFlags as p, assertGit as r, warnNotPortable as s, LoginRequiredError as t, listProjectProducts as u, requirePlatform as v, resolveApps as y };
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, iPad, Android's status bar, a
278
- modal's zero top, landscape sides) and live on device; its content
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); right: 16px; }
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-DzRh7dI1.js";
1
+ import "./token-DaxQgQkv.js";
2
2
  import "./output-Ggzq5_-t.js";
3
- import "./environment-DF1qKlny.js";
4
- import "./storage-s2Dnz-yl.js";
5
- import "./client-DP6Rc0t_.js";
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-DtG92m5O.js";
7
+ import "./telemetry-DKyDhURo.js";
8
8
  import "./spawn-DmmmHIP-.js";
9
- import "./spinner-CneRK5rk.js";
9
+ import "./spinner-C2U6QBJ9.js";
10
10
  import "./ui-D_qf3Gvw.js";
11
- import "./paths-DxSLdpOI.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-BvFOa4y6.js";
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-DF1qKlny.js";
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-DtG92m5O.js";
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-CneRK5rk.js";
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-DxSLdpOI.js";
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-DzRh7dI1.js";
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-DF1qKlny.js";
4
- import { t as ApiError } from "./client-DP6Rc0t_.js";
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-DF1qKlny.js";
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-CneRK5rk.js";
3
- import { m as listResource } from "./resources-Dqr01Dep.js";
4
- import { a as pickScope } from "./scope-V336uz8j.js";
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-DF1qKlny.js";
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
@@ -1,4 +1,4 @@
1
- import { o as writeSession, t as readSession } from "./storage-s2Dnz-yl.js";
1
+ import { o as writeSession, t as readSession } from "./storage-6h9vyiAz.js";
2
2
 
3
3
  //#region src/core/account/errors.ts
4
4
  var NotLoggedInError = class extends Error {