@superwall/cli 1.7.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/README.md +192 -52
- package/dist/{setup-Bxj22rYi.js → apple-CSzNTGHM.js} +82 -76
- package/dist/auth.d.ts +4 -19
- package/dist/auth.js +4 -2
- package/dist/{actions-B7ym3oVS.js → billing-C3Q8DBU2.js} +98 -28
- package/dist/{bind-YrJvuRF9.js → bind-BumHTi9O.js} +38 -33
- package/dist/{build-DLoCW5Ri.js → build-Bpviiclc.js} +20 -26
- package/dist/client-BL0f_yGf.js +176 -0
- package/dist/{asc-Bf7zBbyS.js → client-BZ1UbpXz.js} +16 -15
- package/dist/config-BO1Y87kV.js +105 -0
- package/dist/create-BSfvpWoD.js +19 -0
- package/dist/{create-pkANt1Gs.js → create-BUcVG4Ab.js} +195 -169
- package/dist/{notification-url-DuKF2659.js → create-CfK3PeKA.js} +235 -539
- package/dist/doctor-BWqIYcMn.js +83 -0
- package/dist/{drivers-Qx9LxmRN.js → drivers-CPhdPkW5.js} +185 -172
- package/dist/entry.d.ts +0 -5
- package/dist/entry.js +28072 -1134
- package/dist/environment-eBXjELoN.js +58 -0
- package/dist/{existing-AVEfZu2A.js → existing-BltvQiX5.js} +12 -6
- package/dist/held-CPve03KJ.js +16 -0
- package/dist/held-DgnTFMl3.js +1112 -0
- package/dist/input-vi0bou04.js +42 -0
- package/dist/{integrate-brmhPG-S.js → integrate-BRsqoe01.js} +277 -254
- package/dist/log-NVhVe_oe.js +62 -0
- package/dist/login-BCEH5q0U.js +53 -0
- package/dist/login-BPOONe7n.js +16 -0
- package/dist/{login-Do4wFuLv.js → login-BbTIrCFT.js} +118 -55
- package/dist/lookup-rr1AkCJA.js +71 -0
- package/dist/migrate-C9X2Vz81.js +274 -0
- package/dist/notification-url-CV86qiKP.js +100 -0
- package/dist/{open-studio-DOw-6ydc.js → open-CcpXotHG.js} +34 -43
- package/dist/org-BQQDo7wm.js +35 -0
- package/dist/output-Ggzq5_-t.js +122 -0
- package/dist/paths-CRlU72cq.js +29 -0
- package/dist/playbook-DVMXN7fh.js +53 -0
- package/dist/{asc-products-9JXtDxI4.js → products-DH_fK9tY.js} +6 -6
- package/dist/promote-Da8xctzy.js +91 -0
- package/dist/push-BV-grvQg.js +22 -0
- package/dist/push-D6R9icWN.js +495 -0
- package/dist/registry-BYVD-_h6.js +10385 -0
- package/dist/{reports-CfJqoava.js → reports-D_qbl7_u.js} +7 -6
- package/dist/{resources-Bf9O1JNM.js → resources-DLON3-61.js} +162 -55
- package/dist/{run-DsVZ5snL.js → run-Co-BwhOg.js} +16 -22
- package/dist/scan-B88OlWOt.js +4 -0
- package/dist/{scan-zKsddO72.js → scan-CKuk-_6W.js} +48 -37
- package/dist/scope-DV22_Ufm.js +198 -0
- package/dist/screenshot-file-tVBfUEIi.js +16 -0
- package/dist/{selection-CxZoX4NT.js → selection-C2_KbLuo.js} +100 -51
- package/dist/server-C4f6ccUr.js +22 -0
- package/dist/{dev-DmB3XqaJ.js → server-D0d2oP-5.js} +86 -94
- package/dist/session-B-Uz0cQ7.js +40 -0
- package/dist/session-BuvArt1j.js +6 -0
- package/dist/session-C4rbE3VS.js +796 -0
- package/dist/skills/animate-onboarding/SKILL.md +467 -0
- package/dist/skills/animate-onboarding/references/engine.md +494 -0
- package/dist/skills/animate-onboarding/references/framework/Question.tsx +71 -0
- package/dist/skills/animate-onboarding/references/framework/README.md +40 -0
- package/dist/skills/animate-onboarding/references/framework/answers.ts +19 -0
- package/dist/skills/animate-onboarding/references/framework/flow.ts +80 -0
- package/dist/skills/animate-onboarding/references/framework/handoffs.ts +869 -0
- package/dist/skills/animate-onboarding/references/framework/layout.tsx +113 -0
- package/dist/skills/animate-onboarding/references/framework/motion.css +559 -0
- package/dist/skills/animate-onboarding/references/framework/useStoryRouter.ts +48 -0
- package/dist/skills/animate-onboarding/references/handoffs.md +375 -0
- package/dist/skills/animate-onboarding/references/imageReady.ts +92 -0
- package/dist/skills/animate-onboarding/references/morphFrame.ts +356 -0
- package/dist/skills/animate-onboarding/references/performance.md +41 -0
- package/dist/skills/animate-onboarding/references/web-runtime/README.md +17 -0
- package/dist/skills/animate-onboarding/references/web-runtime/handoffs.ts +858 -0
- package/dist/skills/animate-onboarding/references/web-runtime/story-motion.css +301 -0
- package/dist/skills/index.json +37 -0
- package/dist/skills/mobile-design/SKILL.md +447 -0
- package/dist/skills/mobile-design/references/responsive.md +162 -0
- package/dist/skills/onboarding-questions/SKILL.md +231 -0
- package/dist/skills/onboarding-questions/references/arpu-questions.md +139 -0
- package/dist/skills/onboarding-questions/references/craft.md +142 -0
- package/dist/skills/onboarding-questions/references/example-reflective.md +117 -0
- package/dist/skills/superwall/SKILL.md +82 -9
- package/dist/skills/superwall/references/api.md +153 -37
- package/dist/skills/superwall/references/apple-setup.md +316 -0
- package/dist/skills/superwall/references/asc.md +74 -38
- package/dist/skills/superwall/references/data-analytics.md +55 -21
- package/dist/skills/superwall/workflows/dashboard/playbook.md +3 -3
- package/dist/skills/superwall/workflows/dashboard/setup.md +8 -8
- package/dist/skills/superwall/workflows/migrate/adapty.md +6 -6
- package/dist/skills/superwall/workflows/migrate/playbook.md +4 -4
- package/dist/skills/superwall/workflows/migrate/qonversion.md +5 -5
- package/dist/skills/superwall/workflows/migrate/revenuecat.md +6 -6
- package/dist/skills/superwall/workflows/placements/android.md +2 -2
- package/dist/skills/superwall/workflows/placements/expo.md +2 -2
- package/dist/skills/superwall/workflows/placements/flutter.md +2 -2
- package/dist/skills/superwall/workflows/placements/ios.md +2 -2
- package/dist/skills/superwall/workflows/placements/playbook.md +2 -2
- package/dist/skills/superwall/workflows/placements/react-native.md +2 -2
- package/dist/skills/superwall/workflows/placements/strategy.md +2 -2
- package/dist/skills/superwall/workflows/review/playbook.md +1 -1
- package/dist/skills/superwall-editor/SKILL.md +61 -0
- package/dist/skills/superwall-editor/references/cli.md +135 -0
- package/dist/skills/superwall-editor/references/design.md +51 -0
- package/dist/skills/superwall-editor/references/native-elements.md +171 -0
- package/dist/skills/superwall-editor/references/workflow.md +65 -0
- package/dist/skills/superwall-editor/scripts/sw-editor.sh +662 -0
- package/dist/skills/superwall-framework/SKILL.md +85 -31
- package/dist/skills/superwall-framework/references/cli.md +58 -27
- package/dist/skills/superwall-framework/references/examples.md +4 -3
- package/dist/skills/superwall-framework/references/layout.md +64 -9
- package/dist/skills/superwall-framework/references/migrate-from-editor.md +1 -1
- package/dist/skills/superwall-framework/references/onboarding-state.md +245 -0
- package/dist/skills/wwdc/SKILL.md +22 -0
- package/dist/skills/wwdc/references/docs.md +52 -0
- package/dist/skills/wwdc/scripts/wwdc.sh +266 -0
- package/dist/skills-CLGJuMnF.js +14 -0
- package/dist/{skills-DPzlnfCK.js → skills-CZcpnEnG.js} +100 -122
- package/dist/{spawn-DSoTXy_j.js → spawn-DmmmHIP-.js} +14 -12
- package/dist/spinner-C2U6QBJ9.js +294 -0
- package/dist/storage-6h9vyiAz.js +31 -0
- package/dist/storage-CerJ5KLP.d.ts +16 -0
- package/dist/storekit-CK9JmM2D.js +16 -0
- package/dist/storekit-CinJra3V.js +47 -0
- package/dist/telemetry-DKyDhURo.js +56 -0
- package/dist/theme-DUsCh-Vd.js +25 -0
- package/dist/timing-BVxPrYq3.js +5 -0
- package/dist/{token-C0it-Xh7.js → token-DaxQgQkv.js} +6 -38
- 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 +96 -0
- package/dist/tools.js +11360 -0
- package/dist/ui-D_qf3Gvw.js +53 -0
- package/dist/upgrade-DPo0a4Es.js +117 -0
- package/dist/upgrade-ffseQDMx.js +7 -0
- package/package.json +10 -5
- package/dist/api-CZzirVMj.js +0 -151
- package/dist/api-output-aJNw7Syy.js +0 -20
- package/dist/app-DH6U8yuI.js +0 -190
- package/dist/asa-C-sQzPPn.js +0 -1194
- package/dist/asc-1ZBJ6DwS.js +0 -778
- package/dist/auth-YRhlV3DE.js +0 -140
- package/dist/billing-CCYHdApx.js +0 -80
- package/dist/bundle-id-CKxl_026.js +0 -121
- package/dist/command-CMIz81Da.js +0 -301
- package/dist/dev-DZy6pOnB.js +0 -22
- package/dist/doctor-H-hf-Yww.js +0 -88
- package/dist/feedback-CKf-rpBW.js +0 -152
- package/dist/hosted-CXe9TrWx.js +0 -32
- package/dist/migrate-C9ERDR6y.js +0 -284
- package/dist/org-sj7uyvp-.js +0 -40
- package/dist/output-C4o2gJ1K.js +0 -146
- package/dist/params-l3CrvRtR.js +0 -51
- package/dist/pipeline-BqzqZhX1.js +0 -977
- package/dist/print-skill-ZojRSybs.js +0 -74
- package/dist/promote-BG8X4Nv_.js +0 -88
- package/dist/publish-sxLh-G4G.js +0 -35
- package/dist/push-bQ6Vxtg8.js +0 -35
- package/dist/query-_FbybaH-.js +0 -53
- package/dist/resource-CGIwSd29.js +0 -323
- package/dist/revenue-provider-ebsRINY8.js +0 -100
- package/dist/scope-BvzD-kO4.js +0 -223
- package/dist/skills-D_R-lEsK.js +0 -64
- package/dist/spinner-TWa0hia6.js +0 -18
- package/dist/storekit-Cj9Cpjcz.js +0 -29
- package/dist/telemetry-DeA1mvnT.js +0 -169
- package/dist/ui-Dy0b-9L8.js +0 -27738
- package/dist/update-B2fWIc4q.js +0 -59
- package/dist/upgrade-BmzkTKrh.js +0 -72
- /package/dist/{devtools-8EgLo86w.js → devtools-pBl_vt03.js} +0 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Reference implementation: the entrance half of each hand-off, as shipped
|
|
3
|
+
* alongside references/handoffs.ts. Colour tokens (--color-ui-*) are the
|
|
4
|
+
* app's own; swap in yours.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Story motion entrances — the incoming half of each hand-off in
|
|
9
|
+
* runtime/handoffs.ts. The runtime section carries:
|
|
10
|
+
* data-motion="story" flow opted in
|
|
11
|
+
* data-flow-transition flow-next | flow-back | flow-idle
|
|
12
|
+
* data-handoff the pair's hand-off name, "default", or "plain"
|
|
13
|
+
* Every part rises in on one keyframe driven by variables, so a hand-off is
|
|
14
|
+
* just a set of variable overrides. Only transform and opacity animate: blur
|
|
15
|
+
* and backdrop blur re-rasterise every frame and made the flow drop to ~15fps.
|
|
16
|
+
* Entrances use fill-mode backwards so press and selection styles own the
|
|
17
|
+
* element once it has landed.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
[data-motion="story"] {
|
|
21
|
+
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
|
|
22
|
+
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
|
|
23
|
+
--in-ms: 420ms;
|
|
24
|
+
/* A beat after the old page starts leaving, so the two barely overlap. */
|
|
25
|
+
--in-delay: 70ms;
|
|
26
|
+
--in-y: 14px;
|
|
27
|
+
--in-scale: 1;
|
|
28
|
+
--line-gap: 60ms;
|
|
29
|
+
--opt-lead: 100ms;
|
|
30
|
+
--stagger: 40ms;
|
|
31
|
+
--img-lead: 120ms;
|
|
32
|
+
--btn-lead: 180ms;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[data-motion="story"][data-flow-transition="flow-idle"] {
|
|
36
|
+
--in-delay: 0ms;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@keyframes story-in {
|
|
40
|
+
from {
|
|
41
|
+
opacity: 0;
|
|
42
|
+
transform: translate3d(0, var(--in-y), 0) scale(var(--in-scale));
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[data-motion="story"] [data-flow-page] :is([data-flow-line], [data-flow-option], [data-flow-image], [data-next-button]) {
|
|
47
|
+
animation: story-in var(--in-ms) var(--ease-out) backwards;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Title, then subtitle: line by line. */
|
|
51
|
+
[data-motion="story"] [data-flow-page] [data-flow-line] {
|
|
52
|
+
animation-delay: var(--in-delay);
|
|
53
|
+
}
|
|
54
|
+
[data-motion="story"] [data-flow-page] [data-flow-line]:nth-child(2) {
|
|
55
|
+
animation-delay: calc(var(--in-delay) + var(--line-gap));
|
|
56
|
+
}
|
|
57
|
+
[data-motion="story"] [data-flow-page] [data-flow-line]:nth-child(3) {
|
|
58
|
+
animation-delay: calc(var(--in-delay) + var(--line-gap) * 2);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Answers after the question, 40ms apart. They're tappable from the first frame. */
|
|
62
|
+
[data-motion="story"] [data-flow-page] [data-flow-option] {
|
|
63
|
+
animation-delay: calc(var(--in-delay) + var(--opt-lead));
|
|
64
|
+
}
|
|
65
|
+
[data-motion="story"] [data-flow-page] [data-flow-option]:nth-child(2) {
|
|
66
|
+
animation-delay: calc(var(--in-delay) + var(--opt-lead) + var(--stagger));
|
|
67
|
+
}
|
|
68
|
+
[data-motion="story"] [data-flow-page] [data-flow-option]:nth-child(3) {
|
|
69
|
+
animation-delay: calc(var(--in-delay) + var(--opt-lead) + var(--stagger) * 2);
|
|
70
|
+
}
|
|
71
|
+
[data-motion="story"] [data-flow-page] [data-flow-option]:nth-child(4) {
|
|
72
|
+
animation-delay: calc(var(--in-delay) + var(--opt-lead) + var(--stagger) * 3);
|
|
73
|
+
}
|
|
74
|
+
[data-motion="story"] [data-flow-page] [data-flow-option]:nth-child(5) {
|
|
75
|
+
animation-delay: calc(var(--in-delay) + var(--opt-lead) + var(--stagger) * 4);
|
|
76
|
+
}
|
|
77
|
+
[data-motion="story"] [data-flow-page] [data-flow-option]:nth-child(6) {
|
|
78
|
+
animation-delay: calc(var(--in-delay) + var(--opt-lead) + var(--stagger) * 5);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[data-motion="story"] [data-flow-page] [data-flow-image] {
|
|
82
|
+
animation-delay: calc(var(--in-delay) + var(--img-lead));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-motion="story"] [data-flow-page] [data-next-button] {
|
|
86
|
+
animation-delay: calc(var(--in-delay) + var(--btn-lead));
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* A shared element carried in by the hand-off script: that motion is its entrance. */
|
|
90
|
+
[data-motion="story"] [data-flow-page] [data-morph] {
|
|
91
|
+
animation: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/*
|
|
95
|
+
* Backdrop blur on the answer capsules is recomputed every frame they move;
|
|
96
|
+
* over this soft gradient it's nearly invisible, so story motion drops it.
|
|
97
|
+
*/
|
|
98
|
+
[data-motion="story"] [data-flow-option],
|
|
99
|
+
[data-handoff-clone] [data-flow-option] {
|
|
100
|
+
-webkit-backdrop-filter: none;
|
|
101
|
+
backdrop-filter: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* The tap was heard: the chosen answer stays lit while the others step back (the leaving copy keeps it). */
|
|
105
|
+
[data-motion="story"] [data-flow-option][data-committing]:not([data-selected]),
|
|
106
|
+
[data-handoff-clone] [data-flow-option][data-committing]:not([data-selected]) {
|
|
107
|
+
opacity: 0.4;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Progress moves on a long ease-out, close to a critically damped spring. */
|
|
111
|
+
[data-motion="story"] [data-progress-fill] {
|
|
112
|
+
transition: transform 520ms var(--ease-out);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/* ------------------------------------------------------------------ */
|
|
116
|
+
/* Hand-offs (arriving forward) */
|
|
117
|
+
/* ------------------------------------------------------------------ */
|
|
118
|
+
|
|
119
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="begin"] {
|
|
120
|
+
--in-delay: 140ms;
|
|
121
|
+
--in-ms: 520ms;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="picture"] {
|
|
125
|
+
--in-delay: 120ms;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="inward"] {
|
|
129
|
+
--in-delay: 160ms;
|
|
130
|
+
--in-ms: 600ms;
|
|
131
|
+
--in-y: 24px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* Arrives in place, softly, after the old page drifted off. */
|
|
135
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="slip"] {
|
|
136
|
+
--in-delay: 180ms;
|
|
137
|
+
--in-ms: 560ms;
|
|
138
|
+
--in-y: 0px;
|
|
139
|
+
--in-scale: 0.98;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="fade"] {
|
|
143
|
+
--in-delay: 260ms;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* Fade to nothing, a beat of emptiness, then the image settles in. */
|
|
147
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="gone"] {
|
|
148
|
+
--in-delay: 420ms;
|
|
149
|
+
--in-ms: 600ms;
|
|
150
|
+
--in-y: 0px;
|
|
151
|
+
--in-scale: 1.03;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="blank"] {
|
|
155
|
+
--in-delay: 160ms;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* Re-explaining: back over the same ground, so it comes from above. */
|
|
159
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="again"] {
|
|
160
|
+
--in-delay: 100ms;
|
|
161
|
+
--in-y: -16px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="jolt"] {
|
|
165
|
+
--in-delay: 40ms;
|
|
166
|
+
--in-ms: 240ms;
|
|
167
|
+
--in-y: 0px;
|
|
168
|
+
--in-scale: 0.96;
|
|
169
|
+
--line-gap: 30ms;
|
|
170
|
+
--opt-lead: 40ms;
|
|
171
|
+
--stagger: 25ms;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* Answers arrive on an even beat. */
|
|
175
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="cadence"] {
|
|
176
|
+
--in-delay: 140ms;
|
|
177
|
+
--stagger: 70ms;
|
|
178
|
+
}
|
|
179
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="cadence"] [data-flow-option] {
|
|
180
|
+
--in-y: 0px;
|
|
181
|
+
--in-scale: 0.94;
|
|
182
|
+
animation-timing-function: var(--ease-in-out);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/*
|
|
186
|
+
* Transform destinations, declared up front from the element map: each arrives as the transform
|
|
187
|
+
* of something on the previous page, so its standard entrance is off from the first frame (the
|
|
188
|
+
* script also marks them data-morph).
|
|
189
|
+
* forward, picture/connect: the chosen answer becomes the photo;
|
|
190
|
+
* back, picture: only the chosen answer comes out of the photo (the others left on their own
|
|
191
|
+
* going forward, so they return with the standard entrance);
|
|
192
|
+
* back, connect: every answer went into the photo, so every answer comes back out of it.
|
|
193
|
+
*/
|
|
194
|
+
[data-motion="story"][data-flow-transition="flow-next"]:is([data-handoff="picture"], [data-handoff="connect"]) [data-flow-page] [data-flow-image],
|
|
195
|
+
[data-motion="story"][data-flow-transition="flow-back"][data-handoff="picture"] [data-flow-page] [data-flow-option][data-selected],
|
|
196
|
+
[data-motion="story"][data-flow-transition="flow-back"][data-handoff="connect"] [data-flow-page] [data-flow-option] {
|
|
197
|
+
animation: none;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="settle"] {
|
|
201
|
+
--in-delay: 200ms;
|
|
202
|
+
--in-ms: 680ms;
|
|
203
|
+
--in-y: 10px;
|
|
204
|
+
--stagger: 70ms;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* The bar fills its last stretch, then gives way to "You're all set". */
|
|
208
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="finish"] {
|
|
209
|
+
--in-delay: 380ms;
|
|
210
|
+
--img-lead: 180ms;
|
|
211
|
+
--btn-lead: 320ms;
|
|
212
|
+
}
|
|
213
|
+
/* Hold the full bar for a beat after the last answer has grown it to the end (~504ms), then let it go. */
|
|
214
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="finish"] [data-progress] {
|
|
215
|
+
transition-delay: 700ms;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/*
|
|
219
|
+
* Statement screens ("Did you know…"): the answer colour fills the screen (the runtime's backdrop
|
|
220
|
+
* layer), so the header and button invert onto it. Arriving by a hand-off, the colour comes in with
|
|
221
|
+
* the morph, so the header waits for it before switching (it's covered until then anyway).
|
|
222
|
+
*/
|
|
223
|
+
[data-tone="inverse"] h2,
|
|
224
|
+
[data-tone="inverse"] [data-back-button],
|
|
225
|
+
[data-tone="inverse"] [data-skip-button] {
|
|
226
|
+
color: rgb(var(--color-ui-bg));
|
|
227
|
+
}
|
|
228
|
+
[data-tone="inverse"] [data-progress] > div {
|
|
229
|
+
background-color: rgb(var(--color-ui-bg) / 0.3);
|
|
230
|
+
}
|
|
231
|
+
[data-tone="inverse"] [data-progress-fill] {
|
|
232
|
+
background-color: rgb(var(--color-ui-bg));
|
|
233
|
+
}
|
|
234
|
+
[data-tone="inverse"] [data-next-button] {
|
|
235
|
+
background-color: rgb(var(--color-ui-bg));
|
|
236
|
+
color: rgb(var(--color-ui-primary));
|
|
237
|
+
}
|
|
238
|
+
[data-motion="story"][data-tone="inverse"] :is(h2, [data-back-button], [data-progress] > div) {
|
|
239
|
+
transition: color 160ms var(--ease-out) 504ms, background-color 160ms var(--ease-out) 504ms;
|
|
240
|
+
}
|
|
241
|
+
[data-motion="story"][data-tone="inverse"] [data-progress-fill] {
|
|
242
|
+
transition: transform 520ms var(--ease-out), background-color 160ms var(--ease-out) 504ms;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/*
|
|
246
|
+
* The statement's words arrive once its colour has filled the screen (flood forward, absorb back),
|
|
247
|
+
* after the morph frame has handed over (504ms). The frame covers the whole page until then, so
|
|
248
|
+
* an entrance that started under it would play unseen and pop in mid-fade when it went.
|
|
249
|
+
*/
|
|
250
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="flood"],
|
|
251
|
+
[data-motion="story"][data-flow-transition="flow-back"][data-handoff="absorb"] {
|
|
252
|
+
--in-delay: 540ms;
|
|
253
|
+
--in-y: 10px;
|
|
254
|
+
}
|
|
255
|
+
/* After a statement collapses into the bar, the next question rises as the colour clears. */
|
|
256
|
+
[data-motion="story"][data-flow-transition="flow-next"][data-handoff="absorb"] {
|
|
257
|
+
--in-delay: 200ms;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* Back: the reverse path, quicker. Re-explaining came from above, so going back it rises from below. */
|
|
261
|
+
[data-motion="story"][data-flow-transition="flow-back"] {
|
|
262
|
+
--in-delay: 60ms;
|
|
263
|
+
--in-ms: 300ms;
|
|
264
|
+
--in-y: -10px;
|
|
265
|
+
--line-gap: 40ms;
|
|
266
|
+
--opt-lead: 60ms;
|
|
267
|
+
--stagger: 25ms;
|
|
268
|
+
--img-lead: 60ms;
|
|
269
|
+
--btn-lead: 100ms;
|
|
270
|
+
}
|
|
271
|
+
[data-motion="story"][data-flow-transition="flow-back"][data-handoff="again"] {
|
|
272
|
+
--in-y: 10px;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* Keyboard and browser navigation: a plain fade. */
|
|
276
|
+
[data-motion="story"][data-handoff="plain"] {
|
|
277
|
+
--in-ms: 200ms;
|
|
278
|
+
--in-delay: 0ms;
|
|
279
|
+
--in-y: 0px;
|
|
280
|
+
--in-scale: 1;
|
|
281
|
+
--line-gap: 0ms;
|
|
282
|
+
--opt-lead: 0ms;
|
|
283
|
+
--stagger: 0ms;
|
|
284
|
+
--img-lead: 0ms;
|
|
285
|
+
--btn-lead: 0ms;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* Reduced motion: opacity only, nothing moves (the script also skips its exits). */
|
|
289
|
+
@media (prefers-reduced-motion: reduce) {
|
|
290
|
+
[data-motion="story"][data-handoff] {
|
|
291
|
+
--in-ms: 200ms !important;
|
|
292
|
+
--in-delay: 0ms !important;
|
|
293
|
+
--in-y: 0px !important;
|
|
294
|
+
--in-scale: 1 !important;
|
|
295
|
+
--line-gap: 0ms !important;
|
|
296
|
+
--opt-lead: 0ms !important;
|
|
297
|
+
--stagger: 0ms !important;
|
|
298
|
+
--img-lead: 0ms !important;
|
|
299
|
+
--btn-lead: 0ms !important;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "superwall",
|
|
4
|
+
"channel": "latest",
|
|
5
|
+
"summary": "Use local files, Superwall docs, and the `superwall` CLI in a..."
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": "superwall-editor",
|
|
9
|
+
"channel": "latest",
|
|
10
|
+
"summary": "Build, edit, or review Superwall paywall, onboarding, and web..."
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "wwdc",
|
|
14
|
+
"channel": "latest",
|
|
15
|
+
"summary": "Use this skill whenever the user asks about WWDC sessions, Ap..."
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "animate-onboarding",
|
|
19
|
+
"channel": "next",
|
|
20
|
+
"summary": "Animate a tap-through onboarding or web funnel (quiz, survey,..."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "mobile-design",
|
|
24
|
+
"channel": "next",
|
|
25
|
+
"summary": "Make a web screen feel native inside a phone app — a paywall,..."
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "onboarding-questions",
|
|
29
|
+
"channel": "next",
|
|
30
|
+
"summary": "Write the brains of an app's onboarding or web2app funnel — e..."
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "superwall-framework",
|
|
34
|
+
"channel": "next",
|
|
35
|
+
"summary": "Author any screen an app should be able to change without a r..."
|
|
36
|
+
}
|
|
37
|
+
]
|