@lukoweb/apitogo-plugin-dev-portal-billing 0.1.91 → 0.1.92

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.d.mts CHANGED
@@ -23,7 +23,8 @@ type DevPortalBillingConfig = {
23
23
  subtitle?: string;
24
24
  compareRows?: DevPortalPricingCompareRow[];
25
25
  faqs?: DevPortalPricingFaq[];
26
- }; /** Local preview plan catalog (from `apitogo.config.json` `plans`). */
26
+ }; /** Live gateway URL (publish bake or explicit plugin option). */
27
+ gatewayBaseUrl?: string | null; /** Local preview plan catalog (from `apitogo.config.json` `plans`). */
27
28
  previewPlans?: Array<{
28
29
  sku: string;
29
30
  displayName: string;
package/dist/index.mjs CHANGED
@@ -1421,7 +1421,8 @@ const CredentialsPage = () => {
1421
1421
  const isDemoSession = useIsDemoSession();
1422
1422
  const { data: credentials, isLoading, error } = useCredentials();
1423
1423
  const { data: apiKeys, isLoading: keysLoading, error: keysError } = useApiKeys();
1424
- const gatewayBaseUrl = credentials?.gatewayBaseUrl ?? apiKeys?.gatewayBaseUrl ?? null;
1424
+ const { gatewayBaseUrl: configuredGatewayBaseUrl } = useDevPortalBillingConfig();
1425
+ const gatewayBaseUrl = credentials?.gatewayBaseUrl?.trim() || apiKeys?.gatewayBaseUrl?.trim() || configuredGatewayBaseUrl?.trim() || zudokuConfig.__meta?.gatewayBaseUrl?.trim() || null;
1425
1426
  const header = apiKeys?.header ?? "Ocp-Apim-Subscription-Key";
1426
1427
  const plans = apiKeys?.plans ?? [];
1427
1428
  return /* @__PURE__ */ jsxs("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukoweb/apitogo-plugin-dev-portal-billing",
3
- "version": "0.1.91",
3
+ "version": "0.1.92",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/zuplo/zudoku",
@@ -46,8 +46,8 @@
46
46
  "react": "19.2.4",
47
47
  "react-dom": "19.2.4",
48
48
  "tsdown": "0.20.3",
49
- "@lukoweb/apitogo": "0.1.91",
50
- "@lukoweb/apitogo-module-user-panel": "0.1.91"
49
+ "@lukoweb/apitogo": "0.1.92",
50
+ "@lukoweb/apitogo-module-user-panel": "0.1.92"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": ">=19.2.0",