subos-frontend 1.0.46 → 1.0.47

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
@@ -197,7 +197,6 @@ var subscriptionApi = {
197
197
  if (billableMetricCode) {
198
198
  endpoint += `?billableMetricCode=${encodeURIComponent(billableMetricCode)}`;
199
199
  }
200
- console.log("\u{1F680} checkoutInfo: Starting fetch with:", { endpoint });
201
200
  return apiRequest(endpoint, "GET", void 0, { projectId: getDefaultProjectId() });
202
201
  }
203
202
  };
@@ -1465,7 +1464,6 @@ var PaymentSuccessView = ({
1465
1464
  dashboardUrl = "/dashboard",
1466
1465
  supportUrl = "/support"
1467
1466
  }) => {
1468
- console.log("invoiceDownloadUrl", invoiceDownloadUrl);
1469
1467
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-md mx-auto bg-white rounded-lg shadow-md overflow-hidden", children: [
1470
1468
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "bg-gradient-to-r from-green-500 to-green-600 text-white p-6 text-center", children: [
1471
1469
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-4xl mb-2", children: "\u2705" }),
@@ -1597,11 +1595,8 @@ var PaymentSuccessPage = ({
1597
1595
  supportUrl
1598
1596
  }) => {
1599
1597
  const paymentDetails = usePaymentParams();
1600
- console.log("paymentDetails", paymentDetails);
1601
1598
  const urlParams = new URLSearchParams(window.location.search);
1602
- console.log("urlParams", urlParams);
1603
1599
  const externalId = propExternalId || urlParams.get("externalId") || "";
1604
- console.log("externalId", externalId);
1605
1600
  const {
1606
1601
  transactions,
1607
1602
  loading: transactionsLoading,
@@ -1611,14 +1606,12 @@ var PaymentSuccessPage = ({
1611
1606
  initialFilters: { page: 1, limit: 100 },
1612
1607
  autoFetch: !!externalId
1613
1608
  });
1614
- console.log("transactions", transactions);
1615
1609
  const invoiceDownloadUrl = React9.useMemo(() => {
1616
1610
  if (propInvoiceDownloadUrl) return propInvoiceDownloadUrl;
1617
1611
  if (!transactions || transactions.length === 0) return void 0;
1618
1612
  const withOrder = transactions.filter((t) => typeof t.order === "number");
1619
1613
  if (withOrder.length === 0) return void 0;
1620
1614
  const top = withOrder.reduce((max, cur) => cur.order > (max.order ?? -Infinity) ? cur : max, withOrder[0]);
1621
- console.log("top", top);
1622
1615
  return top.invoice_pdf || void 0;
1623
1616
  }, [transactions, propInvoiceDownloadUrl]);
1624
1617
  if (transactionsLoading) {
@@ -2783,7 +2776,6 @@ var UpgradeSummary = ({
2783
2776
  const fetchCheckoutInfo = async () => {
2784
2777
  setLoading(true);
2785
2778
  try {
2786
- console.log("\u{1F680} fetchCheckoutInfo: Starting fetch with:", { billableMetricCode });
2787
2779
  const response = await subscriptionApi.checkoutInfo(selectedPlan.code, externalId, billableMetricCode);
2788
2780
  const dataWrapper = response == null ? void 0 : response.data;
2789
2781
  if ((dataWrapper == null ? void 0 : dataWrapper.success) && (dataWrapper == null ? void 0 : dataWrapper.data)) {