@stevederico/skateboard-ui 0.8.7 → 0.8.8

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/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # CHANGELOG
2
+ 0.8.8
3
+
4
+ Update Utilities component
5
+
2
6
  0.8.7
3
7
 
4
8
  Update UpgradeSheet component again
package/Utilities.js CHANGED
@@ -232,7 +232,13 @@ export function trackUsage(action) {
232
232
  localStorage.setItem(usageKey, JSON.stringify(usage));
233
233
  }
234
234
 
235
- export function showUpgradeSheet() {
235
+ export async function showUpgradeSheet() {
236
+ // Check if user is already a subscriber
237
+ const subscriber = await isSubscriber();
238
+ if (subscriber) {
239
+ return; // Don't show upgrade sheet for subscribers
240
+ }
241
+
236
242
  // Navigate to subscription page
237
243
  window.location.href = '/app/stripe';
238
244
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stevederico/skateboard-ui",
3
3
  "private": false,
4
- "version": "0.8.7",
4
+ "version": "0.8.8",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./AppSidebar": {