@lukoweb/apitogo-plugin-dev-portal-billing 0.1.74 → 0.1.75
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.mjs +3 -3
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -609,7 +609,7 @@ const ApiKeysPanel = ({ plan, header, readOnly = false }) => {
|
|
|
609
609
|
const [pendingRevokeId, setPendingRevokeId] = useState(null);
|
|
610
610
|
const activeKeys = plan.keys.filter((key) => key.status === "active");
|
|
611
611
|
const planActiveCount = activeKeys.length;
|
|
612
|
-
const capLabel = plan.maxKeys == null ? `${plan.activeCount} active
|
|
612
|
+
const capLabel = plan.maxKeys == null ? `${plan.activeCount} active` : `${plan.activeCount} of ${plan.maxKeys} used`;
|
|
613
613
|
const canCreate = !readOnly && plan.canCreate;
|
|
614
614
|
const handleCreate = () => {
|
|
615
615
|
const trimmed = name.trim();
|
|
@@ -649,7 +649,7 @@ const ApiKeysPanel = ({ plan, header, readOnly = false }) => {
|
|
|
649
649
|
children: header
|
|
650
650
|
}),
|
|
651
651
|
" ",
|
|
652
|
-
"header when calling this plan's endpoints. Keys share
|
|
652
|
+
"header when calling this plan's endpoints. Keys share this plan's rate limit and key cap."
|
|
653
653
|
]
|
|
654
654
|
})]
|
|
655
655
|
}), /* @__PURE__ */ jsx("span", {
|
|
@@ -763,7 +763,7 @@ const ApiKeysPanel = ({ plan, header, readOnly = false }) => {
|
|
|
763
763
|
}),
|
|
764
764
|
plan && !plan.canCreate && !readOnly ? /* @__PURE__ */ jsx("p", {
|
|
765
765
|
className: "text-sm text-muted-foreground",
|
|
766
|
-
children: plan.maxKeys == null ? "API key creation is currently disabled for this API." : `You have reached
|
|
766
|
+
children: plan.maxKeys == null ? "API key creation is currently disabled for this API." : `You have reached this plan's limit of ${plan.maxKeys} API keys. Revoke a key to create a new one.`
|
|
767
767
|
}) : null
|
|
768
768
|
]
|
|
769
769
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lukoweb/apitogo-plugin-dev-portal-billing",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.75",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/zuplo/zudoku",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react": "19.2.4",
|
|
47
47
|
"react-dom": "19.2.4",
|
|
48
48
|
"tsdown": "0.20.3",
|
|
49
|
-
"@lukoweb/apitogo": "0.1.
|
|
49
|
+
"@lukoweb/apitogo": "0.1.75"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"react": ">=19.2.0",
|