subos-frontend 1.0.83 → 1.0.85

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/dist/index.js CHANGED
@@ -79,7 +79,6 @@ function validateSubOSConfig() {
79
79
  }
80
80
  function ensureSubOSConfig() {
81
81
  const validation = validateSubOSConfig();
82
- console.log("validation", validation);
83
82
  if (!validation.isValid) {
84
83
  throw new Error(
85
84
  `SubOS configuration is incomplete. Missing required fields: ${validation.missingFields.join(", ")}. Please call configureSubOS() with the required configuration before using SubOS components.`
@@ -547,7 +546,6 @@ var CurrencyProvider = ({
547
546
  setCountry(detectedCountry);
548
547
  const detectedCurrency = mapCountryToCurrency(detectedCountry);
549
548
  setCurrencyState(detectedCurrency);
550
- console.log("Currency detected:", { country: detectedCountry, currency: detectedCurrency });
551
549
  } catch (err) {
552
550
  console.error("Error fetching location:", err);
553
551
  setError(err instanceof Error ? err.message : "Unknown error");
@@ -2485,32 +2483,35 @@ var SubscriptionInfoGrid = ({
2485
2483
  return "grid-cols-1 md:grid-cols-3";
2486
2484
  }
2487
2485
  };
2488
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `grid ${getGridClass()} gap-4 ${className}`, children: displayFields.map((field) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `p-4 border border-gray-200 rounded-lg bg-white ${field.className || ""}`, children: [
2489
- /* @__PURE__ */ jsxRuntime.jsx(
2490
- "p",
2491
- {
2492
- className: "text-sm text-gray-500",
2493
- style: {
2494
- fontSize: "var(--subos-font-size-subscription-label, 0.875rem)",
2495
- fontWeight: "var(--subos-font-weight-subscription-label, 400)",
2496
- color: "var(--subos-color-subscription-label, #6c757d)"
2497
- },
2498
- children: field.label
2499
- }
2500
- ),
2501
- /* @__PURE__ */ jsxRuntime.jsx(
2502
- "div",
2503
- {
2504
- className: "font-medium",
2505
- style: {
2506
- fontSize: "var(--subos-font-size-subscription-value, 1rem)",
2507
- fontWeight: "var(--subos-font-weight-subscription-value, 500)",
2508
- color: "var(--subos-color-subscription-value, inherit)"
2509
- },
2510
- children: field.getValue(subscription)
2511
- }
2512
- )
2513
- ] }, field.key)) });
2486
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `grid ${getGridClass()} gap-4 ${className}`, children: displayFields.map((field) => {
2487
+ var _a, _b;
2488
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `p-4 border border-gray-200 rounded-lg bg-white ${field.className || ""}`, children: [
2489
+ /* @__PURE__ */ jsxRuntime.jsx(
2490
+ "p",
2491
+ {
2492
+ className: "text-sm text-gray-500",
2493
+ style: {
2494
+ fontSize: "var(--subos-font-size-subscription-label, 0.875rem)",
2495
+ fontWeight: "var(--subos-font-weight-subscription-label, 400)",
2496
+ color: "var(--subos-color-subscription-label, #6c757d)"
2497
+ },
2498
+ children: field.key === "expiryDate" && (((_a = subscription == null ? void 0 : subscription.plan) == null ? void 0 : _a.canceledOn) || ((_b = subscription == null ? void 0 : subscription.plan) == null ? void 0 : _b.name) === "Trial") ? "Subscription Expires on" : field.label
2499
+ }
2500
+ ),
2501
+ /* @__PURE__ */ jsxRuntime.jsx(
2502
+ "div",
2503
+ {
2504
+ className: "font-medium",
2505
+ style: {
2506
+ fontSize: "var(--subos-font-size-subscription-value, 1rem)",
2507
+ fontWeight: "var(--subos-font-weight-subscription-value, 500)",
2508
+ color: "var(--subos-color-subscription-value, inherit)"
2509
+ },
2510
+ children: field.getValue(subscription)
2511
+ }
2512
+ )
2513
+ ] }, field.key);
2514
+ }) });
2514
2515
  };
2515
2516
  var SubscriptionUsageDisplay = ({
2516
2517
  subscription,