@wopr-network/platform-ui-core 1.27.7 → 1.27.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wopr-network/platform-ui-core",
3
- "version": "1.27.7",
3
+ "version": "1.27.8",
4
4
  "description": "Brand-agnostic AI agent platform UI — deploy as any brand via env vars",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,6 +8,7 @@ import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
8
8
  import { Skeleton } from "@/components/ui/skeleton";
9
9
  import type { CreditOption } from "@/lib/api";
10
10
  import { createCreditCheckout, getCreditOptions } from "@/lib/api";
11
+ import { getBrandConfig } from "@/lib/brand-config";
11
12
  import { logger } from "@/lib/logger";
12
13
  import { cn } from "@/lib/utils";
13
14
  import { isAllowedRedirectUrl } from "@/lib/validate-redirect-url";
@@ -84,7 +85,9 @@ export function BuyCreditsPanel() {
84
85
  <CardHeader>
85
86
  <CardTitle>Buy Credits</CardTitle>
86
87
  <p className="text-xs text-muted-foreground">
87
- Every purchase resets your 7-day dividend window
88
+ {getBrandConfig().dividendsEnabled
89
+ ? "Every purchase resets your 7-day dividend window"
90
+ : "Top up your credit balance"}
88
91
  </p>
89
92
  </CardHeader>
90
93
  <CardContent>
@@ -104,7 +107,9 @@ export function BuyCreditsPanel() {
104
107
  <CardHeader>
105
108
  <CardTitle>Buy Credits</CardTitle>
106
109
  <p className="text-xs text-muted-foreground">
107
- Every purchase resets your 7-day dividend window
110
+ {getBrandConfig().dividendsEnabled
111
+ ? "Every purchase resets your 7-day dividend window"
112
+ : "Top up your credit balance"}
108
113
  </p>
109
114
  </CardHeader>
110
115
  <CardContent className="space-y-3">
@@ -123,7 +128,9 @@ export function BuyCreditsPanel() {
123
128
  <CardHeader>
124
129
  <CardTitle>Buy Credits</CardTitle>
125
130
  <p className="text-xs text-muted-foreground">
126
- Every purchase resets your 7-day dividend window
131
+ {getBrandConfig().dividendsEnabled
132
+ ? "Every purchase resets your 7-day dividend window"
133
+ : "Top up your credit balance"}
127
134
  </p>
128
135
  </CardHeader>
129
136
  <CardContent>