subos-frontend 1.0.48 → 1.0.50

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/LIBRARY_USAGE.md CHANGED
@@ -43,7 +43,6 @@ Set these environment variables in your project:
43
43
  # .env or .env.local
44
44
  VITE_API_ENDPOINT=https://your-api.com/api/v1
45
45
  VITE_PROJECT_ID=your-project-id
46
- VITE_STRIPE_PUBLISHABLE_KEY=pk_test_your_stripe_key
47
46
  VITE_APP_NAME=Your App Name
48
47
  VITE_APP_ENVIRONMENT=production
49
48
  ```
@@ -123,7 +122,6 @@ import 'subos-frontend/style.css';
123
122
  configureSubOS({
124
123
  apiEndpoint: import.meta.env.VITE_API_ENDPOINT,
125
124
  projectId: import.meta.env.VITE_PROJECT_ID,
126
- stripePublishableKey: import.meta.env.VITE_STRIPE_PUBLISHABLE_KEY,
127
125
  });
128
126
  ```
129
127
 
@@ -734,7 +734,6 @@ export default SubscriptionApp;
734
734
  ```bash
735
735
  VITE_API_ENDPOINT=https://your-api.com/api/v1
736
736
  VITE_PROJECT_ID=your-project-id
737
- VITE_STRIPE_PUBLISHABLE_KEY=pk_test_your_stripe_key
738
737
  VITE_APP_NAME=Your App Name
739
738
  VITE_APP_ENVIRONMENT=production
740
739
  ```
package/README.md CHANGED
@@ -58,7 +58,6 @@ Create a `.env` file in your project root (copy from `.env.example` included in
58
58
  ```env
59
59
  VITE_API_ENDPOINT=https://your-api.com/api/v1
60
60
  VITE_PROJECT_ID=your-project-id
61
- VITE_STRIPE_PUBLISHABLE_KEY=pk_live_xxx
62
61
  VITE_APP_NAME=Your App Name
63
62
  VITE_APP_ENVIRONMENT=production
64
63
  ```
@@ -208,7 +207,6 @@ import { Layout, LogoInline, CheckIcon, Pagination } from 'subos-frontend';
208
207
  |----------|-------------|----------|---------|
209
208
  | `VITE_API_ENDPOINT` | Your SubOS backend API URL | ✅ | `http://localhost:3002/api/v1` |
210
209
  | `VITE_PROJECT_ID` | Your project ID from SubOS backend | ✅ | - |
211
- | `VITE_STRIPE_PUBLISHABLE_KEY` | Stripe publishable key for payments | ⚠️ | - |
212
210
  | `VITE_APP_NAME` | Your application name | ❌ | `SubOS Frontend` |
213
211
  | `VITE_APP_VERSION` | Your application version | ❌ | `1.0.0` |
214
212
  | `VITE_APP_ENVIRONMENT` | Environment (development/production) | ❌ | `development` |
package/dist/index.js CHANGED
@@ -50,8 +50,6 @@ var envDefaults = {
50
50
  NEXT_PUBLIC_API_END_POINT: getEnvVar("VITE_NEXT_PUBLIC_API_END_POINT", ""),
51
51
  // Project configuration for backend header - This MUST be configured by the consuming app
52
52
  PROJECT_ID: getEnvVar("VITE_PROJECT_ID", ""),
53
- // Third-party keys - This MUST be configured by the consuming app
54
- STRIPE_PUBLISHABLE_KEY: getEnvVar("VITE_STRIPE_PUBLISHABLE_KEY", ""),
55
53
  // App Configuration
56
54
  APP_NAME: getEnvVar("VITE_APP_NAME", "SubOS Frontend"),
57
55
  APP_VERSION: getEnvVar("VITE_APP_VERSION", "1.0.0"),
@@ -67,7 +65,6 @@ var runtimeOverrides = {};
67
65
  function configureSubOS(input = {}) {
68
66
  if (input.apiEndpoint !== void 0) runtimeOverrides.API_ENDPOINT = input.apiEndpoint;
69
67
  if (input.projectId !== void 0) runtimeOverrides.PROJECT_ID = input.projectId;
70
- if (input.stripePublishableKey !== void 0) runtimeOverrides.STRIPE_PUBLISHABLE_KEY = input.stripePublishableKey;
71
68
  if (input.appName !== void 0) runtimeOverrides.APP_NAME = input.appName;
72
69
  if (input.appVersion !== void 0) runtimeOverrides.APP_VERSION = input.appVersion;
73
70
  if (input.appEnvironment !== void 0) runtimeOverrides.APP_ENVIRONMENT = input.appEnvironment;
@@ -77,7 +74,6 @@ function validateSubOSConfig() {
77
74
  const missingFields = [];
78
75
  if (!getApiBaseUrl()) missingFields.push("apiEndpoint");
79
76
  if (!getProjectId()) missingFields.push("projectId");
80
- if (!getStripePublishableKey()) missingFields.push("stripePublishableKey");
81
77
  return {
82
78
  isValid: missingFields.length === 0,
83
79
  missingFields
@@ -93,7 +89,6 @@ function ensureSubOSConfig() {
93
89
  }
94
90
  var getApiBaseUrl = () => runtimeOverrides.API_ENDPOINT ?? envDefaults.API_ENDPOINT;
95
91
  var getProjectId = () => runtimeOverrides.PROJECT_ID ?? envDefaults.PROJECT_ID;
96
- var getStripePublishableKey = () => runtimeOverrides.STRIPE_PUBLISHABLE_KEY ?? envDefaults.STRIPE_PUBLISHABLE_KEY;
97
92
  var getDefaultProjectId = () => envDefaults.PROJECT_ID;
98
93
 
99
94
  // src/api/config.ts
@@ -3272,7 +3267,6 @@ exports.getDropdownOptions = getDropdownOptions;
3272
3267
  exports.getPlanDescription = getPlanDescription;
3273
3268
  exports.getPlanFeatures = getPlanFeatures;
3274
3269
  exports.getProjectId = getProjectId;
3275
- exports.getStripePublishableKey = getStripePublishableKey;
3276
3270
  exports.getUniqueCandidateUnits = getUniqueCandidateUnits;
3277
3271
  exports.isPlanPopular = isPlanPopular;
3278
3272
  exports.plansApi = plansApi;