@proappstore/sdk 1.16.35 → 1.16.37
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 +1 -1
- package/dist/shell.d.ts +2 -2
- package/dist/ui-pro-components.js +1 -1
- package/dist/ui-profile-page.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -282,7 +282,7 @@ await app.storage.delete('docs/resume.pdf')
|
|
|
282
282
|
|
|
283
283
|
### Usage tracking (auto-on; drives creator payouts)
|
|
284
284
|
|
|
285
|
-
ProAppStore is a single $
|
|
285
|
+
ProAppStore is a single $5/mo subscription that unlocks every Pro app. Creators are paid monthly from the pool (minus the 10% platform fee) in proportion to their app's share of total usage. To compute that, the SDK heartbeats `POST /v1/usage/ping` every 60 seconds while the tab is visible and the user is signed in.
|
|
286
286
|
|
|
287
287
|
**Auto-started by `initPro()`** — you don't need to do anything for your app's usage to count toward your payout. Hidden tabs don't accrue time; closed tabs flush a final ping via `navigator.sendBeacon`.
|
|
288
288
|
|
package/dist/shell.d.ts
CHANGED
|
@@ -32,8 +32,8 @@ export interface ProShellProps {
|
|
|
32
32
|
/**
|
|
33
33
|
* If true, allow free users to see the app (no subscription gate).
|
|
34
34
|
*
|
|
35
|
-
* Default: true
|
|
36
|
-
*
|
|
35
|
+
* Default: true preserves backwards compatibility for existing apps. Apps that
|
|
36
|
+
* should require a paid PAS subscription must pass allowFree={false}.
|
|
37
37
|
*/
|
|
38
38
|
allowFree?: boolean;
|
|
39
39
|
/** Show theme toggle in the profile menu. Default: true. */
|
|
@@ -68,7 +68,7 @@ export function SubscriptionStatus({ app, showUpgrade = true }) {
|
|
|
68
68
|
}, children: "Upgrade" }))] }));
|
|
69
69
|
}
|
|
70
70
|
/** Styled card prompting the user to upgrade to Pro. */
|
|
71
|
-
export function UpgradeCard({ app, title = 'Upgrade to Pro', description = 'Unlock all premium features with a Pro subscription.', priceLabel = '$
|
|
71
|
+
export function UpgradeCard({ app, title = 'Upgrade to Pro', description = 'Unlock all premium features with a Pro subscription.', priceLabel = '$5/month', features = ['Cloud sync across devices', 'AI-powered features', 'Unlimited storage', 'Priority support'], }) {
|
|
72
72
|
const { upgrade } = useSubscription(app);
|
|
73
73
|
return (_jsxs("div", { style: {
|
|
74
74
|
background: 'var(--surface, #ffffff)',
|
package/dist/ui-profile-page.js
CHANGED
|
@@ -33,7 +33,7 @@ export function ProProfilePage({ app, showThemeToggle = true }) {
|
|
|
33
33
|
background: 'var(--accent, #7c3aed)', color: '#fff', border: 'none',
|
|
34
34
|
padding: '0.6rem 1.25rem', borderRadius: 'var(--radius, 0.75rem)',
|
|
35
35
|
fontSize: '0.85rem', fontWeight: 700, cursor: 'pointer', fontFamily: 'inherit',
|
|
36
|
-
}, children: "Upgrade to Pro \u2014 $
|
|
36
|
+
}, children: "Upgrade to Pro \u2014 $5/mo" })] })) }), showThemeToggle && (_jsx(Section, { title: "Appearance", children: _jsx("div", { style: { display: 'flex', gap: '0.5rem' }, children: themeOptions.map((opt) => (_jsx("button", { onClick: () => setPreference(opt.value), style: {
|
|
37
37
|
flex: 1, padding: '0.5rem',
|
|
38
38
|
borderRadius: 'var(--radius-sm, 0.5rem)',
|
|
39
39
|
border: preference === opt.value ? '2px solid var(--accent, #7c3aed)' : '1px solid var(--border, #e2e8f0)',
|