dsh-model-allowance 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/client.js +4 -5
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -1501,11 +1501,10 @@ function BalanceBadge(props) {
1501
1501
  style: { width: `${String(filled)}%` }
1502
1502
  })
1503
1503
  ),
1504
- // A window the account has not started spending yet has no
1505
- // reset to report, and saying so would be a line of noise.
1506
- // Otherwise the countdown holds the left edge and the
1507
- // target instant the right, so the eye can compare them.
1508
- typeof window.resetAt === "number" ? (0, import_react3.createElement)(
1504
+ // A window with zero usage has not started its rolling timer
1505
+ // yet, so the countdown would be misleading. Hide it until
1506
+ // consumption begins.
1507
+ typeof window.resetAt === "number" && (typeof window.remainingPercent !== "number" || window.remainingPercent < 100) ? (0, import_react3.createElement)(
1509
1508
  "div",
1510
1509
  { className: "dsh-model-allowance-foot" },
1511
1510
  (0, import_react3.createElement)(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-model-allowance",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "description": "Shows the current conversation model's provider balance or remaining allowance in the composer.",
6
6
  "license": "MIT",