@superwall/cli 2.1.0 → 2.1.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.
- package/README.md +3 -2
- package/dist/{apple-CSzNTGHM.js → apple-BHbX0jbn.js} +13 -13
- package/dist/auth.js +3 -3
- package/dist/{billing-C3Q8DBU2.js → billing-4zhIBFRQ.js} +3 -3
- package/dist/{bind-BumHTi9O.js → bind-CHLHmxgA.js} +4 -4
- package/dist/{build-Bpviiclc.js → build-5PQeSnNN.js} +6 -6
- package/dist/{client-BL0f_yGf.js → client-BIvOmWPC.js} +7 -3
- package/dist/{create-CfK3PeKA.js → create-BSNIFsnN.js} +6 -6
- package/dist/{create-BUcVG4Ab.js → create-VK-pNfN7.js} +22 -22
- package/dist/create-oj3zXvHZ.js +19 -0
- package/dist/{doctor-BWqIYcMn.js → doctor-9JS96QkX.js} +6 -6
- package/dist/{drivers-CPhdPkW5.js → drivers-BamBJ10Y.js} +3 -3
- package/dist/entry.js +19 -19
- package/dist/{environment-eBXjELoN.js → environment-eV7LEnSN.js} +15 -2
- package/dist/{existing-BltvQiX5.js → existing-C8dSYHGk.js} +2 -2
- package/dist/{held-DgnTFMl3.js → held-BMisHn8F.js} +6 -6
- package/dist/held-DeJW2gUk.js +16 -0
- package/dist/{integrate-BRsqoe01.js → integrate-VWtTNPCr.js} +21 -21
- package/dist/login-2JHCG6c1.js +16 -0
- package/dist/{login-BbTIrCFT.js → login-BimbukE5.js} +5 -5
- package/dist/{login-BCEH5q0U.js → login-BmwG14LC.js} +1 -1
- package/dist/{lookup-rr1AkCJA.js → lookup-k9EeOiZr.js} +2 -2
- package/dist/{migrate-C9X2Vz81.js → migrate-C86h6jeF.js} +21 -21
- package/dist/{notification-url-CV86qiKP.js → notification-url-BVaTgWZ5.js} +2 -2
- package/dist/{open-CcpXotHG.js → open-0tDCQOXC.js} +10 -10
- package/dist/{org-BQQDo7wm.js → org-DUwdrKPV.js} +2 -2
- package/dist/{paths-CRlU72cq.js → paths-BCbjCLP5.js} +1 -1
- package/dist/{playbook-DVMXN7fh.js → playbook-oov9yV0q.js} +10 -10
- package/dist/{promote-Da8xctzy.js → promote-DPGPamkE.js} +16 -16
- package/dist/push-Chp21y3a.js +22 -0
- package/dist/{push-D6R9icWN.js → push-Cz4lJ8Qd.js} +4 -4
- package/dist/{registry-BYVD-_h6.js → registry-CTczUigi.js} +365 -176
- package/dist/{resources-DLON3-61.js → resources-B1qKDVXd.js} +1 -1
- package/dist/{run-Co-BwhOg.js → run-DTPsVmFw.js} +2 -2
- package/dist/scan-B1SkkUi7.js +4 -0
- package/dist/{scan-CKuk-_6W.js → scan-Bb48xZqB.js} +1 -1
- package/dist/{scope-DV22_Ufm.js → scope-B6UYGuwn.js} +4 -4
- package/dist/{selection-C2_KbLuo.js → selection-BbNk9r1q.js} +3 -3
- package/dist/server-CwrZ-I1r.js +22 -0
- package/dist/{server-D0d2oP-5.js → server-EYBMKAG1.js} +6 -6
- package/dist/{session-C4rbE3VS.js → session-Crg9X-FI.js} +7 -7
- package/dist/session-DItGa4z0.js +6 -0
- package/dist/{session-B-Uz0cQ7.js → session-xG9E8J2N.js} +1 -1
- package/dist/skills/superwall-framework/SKILL.md +36 -4
- package/dist/skills/superwall-framework/references/examples.md +1 -0
- package/dist/skills/superwall-framework/references/migrate-from-editor.md +16 -3
- package/dist/{skills-CZcpnEnG.js → skills-BdMKE2uO.js} +4 -4
- package/dist/{skills-CLGJuMnF.js → skills-Dg3k6TRC.js} +8 -8
- package/dist/{spinner-C2U6QBJ9.js → spinner-Ba3XhlMb.js} +3 -3
- package/dist/{storage-6h9vyiAz.js → storage-DIkYajce.js} +1 -1
- package/dist/{storekit-CinJra3V.js → storekit-C2UzIIMs.js} +3 -3
- package/dist/storekit-DHNxDDpA.js +16 -0
- package/dist/{telemetry-DKyDhURo.js → telemetry-CVP8O6Y3.js} +1 -1
- package/dist/{token-DaxQgQkv.js → token-IWv2httm.js} +1 -1
- package/dist/tools.d.ts +3 -1
- package/dist/tools.js +378 -160
- package/dist/{upgrade-DPo0a4Es.js → upgrade-1t3aQUxh.js} +1 -1
- package/dist/{upgrade-ffseQDMx.js → upgrade-DLf0LJDh.js} +2 -2
- package/package.json +2 -2
- package/dist/create-BSfvpWoD.js +0 -19
- package/dist/held-CPve03KJ.js +0 -16
- package/dist/login-BPOONe7n.js +0 -16
- package/dist/push-BV-grvQg.js +0 -22
- package/dist/scan-B88OlWOt.js +0 -4
- package/dist/server-C4f6ccUr.js +0 -22
- package/dist/session-BuvArt1j.js +0 -6
- package/dist/storekit-CK9JmM2D.js +0 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ApiUnreachableError, t as ApiError } from "./client-
|
|
1
|
+
import { n as ApiUnreachableError, t as ApiError } from "./client-BIvOmWPC.js";
|
|
2
2
|
import { o as readOpenedOrgs, p as writeOpenedOrgs } from "./config-BO1Y87kV.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/api/orgs.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as DASHBOARD_URL } from "./environment-
|
|
2
|
-
import { i as packagedDir } from "./paths-
|
|
1
|
+
import { c as DASHBOARD_URL } from "./environment-eV7LEnSN.js";
|
|
2
|
+
import { i as packagedDir } from "./paths-BCbjCLP5.js";
|
|
3
3
|
import { spawn } from "node:child_process";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
import { join } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as Integration } from "./environment-
|
|
1
|
+
import { f as Integration } from "./environment-eV7LEnSN.js";
|
|
2
2
|
import { existsSync, readFileSync } from "node:fs";
|
|
3
3
|
import { basename, dirname, join, relative, sep } from "node:path";
|
|
4
4
|
import fg from "fast-glob";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as readDefaultApp, u as writeDefaultApp } from "./config-BO1Y87kV.js";
|
|
2
|
-
import { t as apiCall, u as currentHost } from "./spinner-
|
|
3
|
-
import { I as organizationOf, M as listOrgGroups, P as orgIdOf, c as findPaywall, p as listProjects, v as platformLabel } from "./resources-
|
|
4
|
-
import { t as chooseOrgOfApps } from "./org-
|
|
5
|
-
import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-
|
|
2
|
+
import { t as apiCall, u as currentHost } from "./spinner-Ba3XhlMb.js";
|
|
3
|
+
import { I as organizationOf, M as listOrgGroups, P as orgIdOf, c as findPaywall, p as listProjects, v as platformLabel } from "./resources-B1qKDVXd.js";
|
|
4
|
+
import { t as chooseOrgOfApps } from "./org-DUwdrKPV.js";
|
|
5
|
+
import { n as findApplication, r as findProject, t as appNotFound } from "./lookup-k9EeOiZr.js";
|
|
6
6
|
|
|
7
7
|
//#region src/core/account/scope.ts
|
|
8
8
|
function moveFirst(items, match) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as ASSET_HOST } from "./environment-
|
|
2
|
-
import { t as ApiError } from "./client-
|
|
3
|
-
import { x as pushPaywallAssets } from "./resources-
|
|
1
|
+
import { r as ASSET_HOST } from "./environment-eV7LEnSN.js";
|
|
2
|
+
import { t as ApiError } from "./client-BIvOmWPC.js";
|
|
3
|
+
import { x as pushPaywallAssets } from "./resources-B1qKDVXd.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import * as fs from "node:fs";
|
|
6
6
|
import { globSync, readFileSync, statSync } from "node:fs";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import "./token-IWv2httm.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-eV7LEnSN.js";
|
|
4
|
+
import "./storage-DIkYajce.js";
|
|
5
|
+
import "./client-BIvOmWPC.js";
|
|
6
|
+
import "./config-BO1Y87kV.js";
|
|
7
|
+
import "./telemetry-CVP8O6Y3.js";
|
|
8
|
+
import "./spawn-DmmmHIP-.js";
|
|
9
|
+
import "./spinner-Ba3XhlMb.js";
|
|
10
|
+
import "./ui-D_qf3Gvw.js";
|
|
11
|
+
import "./scan-Bb48xZqB.js";
|
|
12
|
+
import "./paths-BCbjCLP5.js";
|
|
13
|
+
import "./resources-B1qKDVXd.js";
|
|
14
|
+
import "./lookup-k9EeOiZr.js";
|
|
15
|
+
import "./login-BimbukE5.js";
|
|
16
|
+
import "./skills-BdMKE2uO.js";
|
|
17
|
+
import "./selection-BbNk9r1q.js";
|
|
18
|
+
import "./session-Crg9X-FI.js";
|
|
19
|
+
import "./login-BmwG14LC.js";
|
|
20
|
+
import { t as runStudio } from "./server-EYBMKAG1.js";
|
|
21
|
+
|
|
22
|
+
export { runStudio };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as ApiError } from "./client-
|
|
1
|
+
import { v as VERSION } from "./environment-eV7LEnSN.js";
|
|
2
|
+
import { t as ApiError } from "./client-BIvOmWPC.js";
|
|
3
3
|
import { n as ui } from "./ui-D_qf3Gvw.js";
|
|
4
|
-
import { E as versionProducts, S as pushPaywallVersion, b as promotePaywallVersion, f as listApplications } from "./resources-
|
|
5
|
-
import { i as openBrowser } from "./login-
|
|
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-
|
|
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-
|
|
4
|
+
import { E as versionProducts, S as pushPaywallVersion, b as promotePaywallVersion, f as listApplications } from "./resources-B1qKDVXd.js";
|
|
5
|
+
import { i as openBrowser } from "./login-BimbukE5.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-BbNk9r1q.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-Crg9X-FI.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";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { l as ENV_API_KEY, t as API_HOST,
|
|
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, y as apiKeyFromEnv } from "./environment-eV7LEnSN.js";
|
|
2
|
+
import { t as readSession } from "./storage-DIkYajce.js";
|
|
3
|
+
import { n as ApiUnreachableError, r as createSuperwallApi, t as ApiError } from "./client-BIvOmWPC.js";
|
|
4
4
|
import { n as ui } from "./ui-D_qf3Gvw.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-
|
|
6
|
-
import { n as findApplication } from "./lookup-
|
|
7
|
-
import { C as parseSources, D as writeBinding, E as writeApp, j as writeSources, w as readLock, x as formatSharedLock } from "./selection-
|
|
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-B1qKDVXd.js";
|
|
6
|
+
import { n as findApplication } from "./lookup-k9EeOiZr.js";
|
|
7
|
+
import { C as parseSources, D as writeBinding, E as writeApp, j as writeSources, w as readLock, x as formatSharedLock } from "./selection-BbNk9r1q.js";
|
|
8
|
+
import { n as performLoginWithUi } from "./login-BmwG14LC.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";
|
|
@@ -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-DIkYajce.js";
|
|
2
2
|
|
|
3
3
|
//#region src/core/account/session.ts
|
|
4
4
|
function runWhoami(ctx) {
|
|
@@ -89,7 +89,9 @@ curl -sL https://superwall.com/docs/framework/{page}.md # one page
|
|
|
89
89
|
| Declaring products, reading variables, the three price rules | `products` |
|
|
90
90
|
| `purchase()` outcomes, restore, the two channels | `purchases` |
|
|
91
91
|
| Introductory-offer eligibility forking (`useIntroductoryOffer`), reminder notifications | `trials` |
|
|
92
|
-
| Selling on the web — modes, prefetch, the Stripe sheet, hosted checkout, promotion codes (`useDiscount`), the shopper's email, after the purchase (`postPurchase`, `useCheckoutRedemption`), `stripeMetadata`, managed payments | `web-checkout` |
|
|
92
|
+
| Selling on the web — modes, prefetch, the Stripe sheet, hosted checkout, promotion codes (`useDiscount`), the shopper's email, after the purchase (`postPurchase`, `useCheckoutRedemption`), `stripeMetadata`, managed payments; a Stripe product inside an iOS app (app to web: always hosted checkout, priced from the dashboard at push) | `web-checkout`, `products` |
|
|
93
|
+
| Custom store products (external purchase controller, custom-store Stripe products) — declared by identifier, pushed with the dashboard's store | `products` |
|
|
94
|
+
| Continuing a flow on the web (teleport: `teleport: true` or `{ route, fallbacks, completion, … }`, `router.push(route, { teleport: true })`, prefetch, the teleport screen, `useTeleport`'s typed status, returning to the app) | `teleport` |
|
|
93
95
|
| Web funnels — answers in the URL (`useQueryState`), resume after a browser hand-off, `shift` | `web-funnels` |
|
|
94
96
|
| Multi-page flows, router, cross-page state, shared chrome | `navigation` |
|
|
95
97
|
| Built-in + custom transitions, bottom sheets | `transitions` |
|
|
@@ -128,7 +130,9 @@ Docs beyond the framework (dashboard, SDKs, web checkout setup):
|
|
|
128
130
|
`postPurchase` in config (or per call): `"dismiss"` (default), `"stay"`
|
|
129
131
|
to keep the paywall up, and on the web `"redeem"` / `{ redirect }`;
|
|
130
132
|
`"stay"` on the web is finished with `useCheckoutRedemption()`. Pass
|
|
131
|
-
`stripeMetadata` to `purchase()` for key/values on the Stripe subscription
|
|
133
|
+
`stripeMetadata` to `purchase()` for key/values on the Stripe subscription,
|
|
134
|
+
and `checkout` to override the config's mode for one button (never past
|
|
135
|
+
the iOS rule: in an iOS app a Stripe purchase always opens hosted checkout).
|
|
132
136
|
The shape every buy button has, all three outcomes handled:
|
|
133
137
|
|
|
134
138
|
```tsx
|
|
@@ -257,11 +261,39 @@ Docs beyond the framework (dashboard, SDKs, web checkout setup):
|
|
|
257
261
|
(restore, sign-out, an App Store exit offer) branches on
|
|
258
262
|
`useDevice().hostPlatform` — `"ios" | "android" | "web" | undefined`,
|
|
259
263
|
normalized and known from the first render — never on the raw
|
|
260
|
-
`platform` string; show neither variant while it is `undefined`.
|
|
264
|
+
`platform` string; show neither variant while it is `undefined`. UI
|
|
265
|
+
that depends on the surface rather than the platform (the Web SDK on the
|
|
266
|
+
merchant's site vs Superwall's hosted web paywall page, the teleport
|
|
267
|
+
page, the studio) branches on `useDevice().host` — `"ios-sdk" |
|
|
268
|
+
"android-sdk" | "web-sdk" | "web-paywall" | "web-teleport" | "studio" |
|
|
269
|
+
"browser"`, never `undefined` — never on the URL or `window`. A
|
|
261
270
|
`"web"` paywall runs inside the Web SDK on the merchant's page, which
|
|
262
271
|
hosts it as the web paywall app hosts editor paywalls: the SDK prices
|
|
263
272
|
the Stripe products, reports the events and finishes the checkout, so
|
|
264
|
-
`register()` resolves `purchased`, with no redemption step.
|
|
273
|
+
`register()` resolves `purchased`, with no redemption step. Inside an
|
|
274
|
+
iOS app a Stripe product is app to web: switch the slot on
|
|
275
|
+
`useVariables().device.storeFrontCountryCode`, read its price from
|
|
276
|
+
`useProducts()` as for any product (push bakes the dashboard's data in,
|
|
277
|
+
because the SDK prices only store products), and `purchase()` it — it
|
|
278
|
+
always opens hosted checkout in the browser, whatever `checkout` says,
|
|
279
|
+
and needs no `checkout` key at all. Never hardcode the price or route a
|
|
280
|
+
Stripe product to the App Store. When the user wants the rest of a flow
|
|
281
|
+
(checkout, or the second half of an onboarding) to run in the browser,
|
|
282
|
+
that is teleport — never a hand-built link or `openExternalUrl`:
|
|
283
|
+
`teleport: true` in `config.ts` plus `router.push(route, { teleport:
|
|
284
|
+
true })`, or `teleport: { route }` so a push to it and a Stripe purchase
|
|
285
|
+
teleport on their own and it is prepared when the paywall opens (call
|
|
286
|
+
`useTeleport().prefetch(route)` for a route only the router teleports).
|
|
287
|
+
The route opens on the web with every `useQueryState` value carried
|
|
288
|
+
along, and the app is credited when the shopper pays. Keep answers the
|
|
289
|
+
web half needs in `useQueryState`, not component state. A custom teleport
|
|
290
|
+
screen renders while `useTeleport().status === "waiting"` and not
|
|
291
|
+
`returned`, reopens with `open()`, and buys the fallback with plain
|
|
292
|
+
`purchase()`; count cancels and returns with `useTeleport({ onCancel,
|
|
293
|
+
onReturn })`, never with your own timers (`onCancel` is the Cancel
|
|
294
|
+
button only; an unpaid return shows as `purchase()` resolving
|
|
295
|
+
`abandoned`). Fetch `teleport`; the
|
|
296
|
+
`teleport` example is the complete flow to start from.
|
|
265
297
|
13. **Shipping includes the dashboard.** A push that fails on missing
|
|
266
298
|
products is not a blocker to report — create them with
|
|
267
299
|
`superwall products create` ([references/cli.md](references/cli.md)).
|
|
@@ -60,6 +60,7 @@ number.
|
|
|
60
60
|
| `abandonment-offer` | `purchase()` resolving `abandoned` is a signal only this paywall can act on — push a last-chance offer (a second product, not a second design) with a custom `sheet` transition |
|
|
61
61
|
| `trial-reminders` | A local notification declared in config, scheduled by the SDK when the trial starts — the paywall needn't be open when it fires |
|
|
62
62
|
| `web-funnel` | Selling on the web: steps as routes on `shift`, the answer kept in the URL with `useQueryState` (the rule for every web-funnel answer), then `checkout: "sheet"` — `purchase()` unchanged; `prefetch(reference)` on selection so the sheet opens instantly |
|
|
63
|
+
| `teleport` | Finishing an app flow on the web: `teleport: { route: "plan" }` makes `router.push("plan")` open the plan in the browser with the app's `useQueryState` answer carried along; `fallbacks: { monthly: "annual" }` offers the App Store plan on the teleport screen; the plan page reads `useTeleport().status === "arrived"` |
|
|
63
64
|
|
|
64
65
|
`purchase-states` is the only example showing the full haptic vocabulary
|
|
65
66
|
(`success()` / `error()` keyed to outcomes). `abandonment-offer` contains
|
|
@@ -74,7 +74,7 @@ is whichever slot the selection state points at.
|
|
|
74
74
|
| `redeem-purchase` | `useCheckoutRedemption()` (web) |
|
|
75
75
|
| `select-choice` / `select-indicator` | React state on the choice group |
|
|
76
76
|
| `focus-input` / `scroll-to-element` | a `ref` and `focus()` / `scrollIntoView()` |
|
|
77
|
-
| `teleport-to-web` |
|
|
77
|
+
| `teleport-to-web` | nothing: a deprecated no-op in the editor itself |
|
|
78
78
|
|
|
79
79
|
Fetch `curl -sL superwall.com/docs/framework/actions.md` for the exact hook
|
|
80
80
|
signatures before writing them.
|
|
@@ -126,12 +126,25 @@ signatures before writing them.
|
|
|
126
126
|
7. **Delete `MIGRATION.md`** when the user is satisfied. The `origins`
|
|
127
127
|
entry in the lock stays, so Compare › Original keeps working.
|
|
128
128
|
|
|
129
|
+
## The checkout page becomes teleport
|
|
130
|
+
|
|
131
|
+
An editor paywall with a **checkout page** (a page marked as one, on a
|
|
132
|
+
paywall with a Stripe product) maps to `teleport` in `config.ts`: the page
|
|
133
|
+
becomes the route, `checkoutPage.fallbacks` becomes `teleport.fallbacks`
|
|
134
|
+
(Stripe reference → store reference), `returnStyle: "screen"` becomes
|
|
135
|
+
`completion: "confirmation"` and `"alert"`/`"universal"` become
|
|
136
|
+
`"direct"`, `trialEligibility: "ALWAYS"` becomes
|
|
137
|
+
`introductoryOfferEligibility: "eligible"`, and `waitingScreen: false`
|
|
138
|
+
becomes `overlay: false`. `appLink` has no equivalent: the framework always
|
|
139
|
+
tries the universal link, then the URL scheme. Fetch
|
|
140
|
+
`curl -sL superwall.com/docs/framework/teleport.md`.
|
|
141
|
+
|
|
129
142
|
## What does not migrate, and must be said
|
|
130
143
|
|
|
131
144
|
- **The original cannot be converted in place.** A framework paywall is a
|
|
132
145
|
new dashboard paywall; the switch is a campaign change the user makes.
|
|
133
146
|
- **Editor-only behavior with no framework equivalent**: surveys attached
|
|
134
|
-
to the paywall,
|
|
147
|
+
to the paywall, and anything the editor computes
|
|
135
148
|
from states the store carries but the pages never render. Name each one
|
|
136
149
|
in the hand-off as "not carried over" rather than approximating it.
|
|
137
150
|
- **Example prices.** The editor stores example `productVariables` per
|
|
@@ -204,5 +217,5 @@ curl -sL https://superwall.com/docs/framework/{page}.md # one page
|
|
|
204
217
|
identifier the user has named. Never invent a product or a price.
|
|
205
218
|
- Never paste the editor's generated HTML or CSS. Rebuild the design with
|
|
206
219
|
clean components; the Compare pane decides when it matches.
|
|
207
|
-
- Anything with no framework equivalent (surveys
|
|
220
|
+
- Anything with no framework equivalent (surveys) is
|
|
208
221
|
listed in your final note as not carried over, never approximated.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as CHANNEL, o as CHANNELS, v as VERSION } from "./environment-eV7LEnSN.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-CVP8O6Y3.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-Ba3XhlMb.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-BCbjCLP5.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";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./token-
|
|
1
|
+
import "./token-IWv2httm.js";
|
|
2
2
|
import "./output-Ggzq5_-t.js";
|
|
3
|
-
import "./environment-
|
|
4
|
-
import "./storage-
|
|
5
|
-
import "./client-
|
|
3
|
+
import "./environment-eV7LEnSN.js";
|
|
4
|
+
import "./storage-DIkYajce.js";
|
|
5
|
+
import "./client-BIvOmWPC.js";
|
|
6
6
|
import "./config-BO1Y87kV.js";
|
|
7
|
-
import "./telemetry-
|
|
7
|
+
import "./telemetry-CVP8O6Y3.js";
|
|
8
8
|
import "./spawn-DmmmHIP-.js";
|
|
9
|
-
import "./spinner-
|
|
9
|
+
import "./spinner-Ba3XhlMb.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-BCbjCLP5.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-BdMKE2uO.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,7 +1,7 @@
|
|
|
1
|
-
import { r as NotLoggedInError } from "./token-
|
|
1
|
+
import { r as NotLoggedInError } from "./token-IWv2httm.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-eV7LEnSN.js";
|
|
4
|
+
import { t as ApiError } from "./client-BIvOmWPC.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-eV7LEnSN.js";
|
|
3
3
|
|
|
4
4
|
//#region src/core/account/storage.ts
|
|
5
5
|
const sessionOrgName = (session) => {
|
|
@@ -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-Ba3XhlMb.js";
|
|
3
|
+
import { m as listResource } from "./resources-B1qKDVXd.js";
|
|
4
|
+
import { a as pickScope } from "./scope-B6UYGuwn.js";
|
|
5
5
|
import { r as textOf } from "./input-vi0bou04.js";
|
|
6
6
|
import { writeFileSync } from "node:fs";
|
|
7
7
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "./token-IWv2httm.js";
|
|
2
|
+
import "./output-Ggzq5_-t.js";
|
|
3
|
+
import "./environment-eV7LEnSN.js";
|
|
4
|
+
import "./storage-DIkYajce.js";
|
|
5
|
+
import "./client-BIvOmWPC.js";
|
|
6
|
+
import "./config-BO1Y87kV.js";
|
|
7
|
+
import "./spinner-Ba3XhlMb.js";
|
|
8
|
+
import "./ui-D_qf3Gvw.js";
|
|
9
|
+
import "./resources-B1qKDVXd.js";
|
|
10
|
+
import "./org-DUwdrKPV.js";
|
|
11
|
+
import "./lookup-k9EeOiZr.js";
|
|
12
|
+
import "./scope-B6UYGuwn.js";
|
|
13
|
+
import "./input-vi0bou04.js";
|
|
14
|
+
import { n as writeStoreKit, t as generateStoreKit } from "./storekit-C2UzIIMs.js";
|
|
15
|
+
|
|
16
|
+
export { generateStoreKit, writeStoreKit };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as isNonInteractive, g as TELEMETRY_KEY, h as TELEMETRY_HOST, v as VERSION } from "./environment-eV7LEnSN.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
|
package/dist/tools.d.ts
CHANGED
|
@@ -68,10 +68,12 @@ interface Tool {
|
|
|
68
68
|
}
|
|
69
69
|
declare function apiFor({
|
|
70
70
|
token,
|
|
71
|
-
host
|
|
71
|
+
host,
|
|
72
|
+
userAgent
|
|
72
73
|
}: {
|
|
73
74
|
token: string;
|
|
74
75
|
host: string;
|
|
76
|
+
userAgent?: string;
|
|
75
77
|
}): SuperwallApi;
|
|
76
78
|
declare function useToolCache(store: Store): void;
|
|
77
79
|
interface SkillFile {
|