@wopr-network/platform-ui-core 1.27.0 → 1.27.1

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.0",
3
+ "version": "1.27.1",
4
4
  "description": "Brand-agnostic AI agent platform UI — deploy as any brand via env vars",
5
5
  "repository": {
6
6
  "type": "git",
@@ -311,7 +311,7 @@ export default function HostedUsageDetailPage() {
311
311
  </TableRow>
312
312
  </TableHeader>
313
313
  <TableBody>
314
- {filteredEvents.map((event, index) => (
314
+ {filteredEvents.map((event, _index) => (
315
315
  <tr
316
316
  key={event.id}
317
317
  className="border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted"
@@ -261,114 +261,114 @@
261
261
 
262
262
  /* ── Sonner toast — match platform theme ─────────────────────────── */
263
263
  [data-sonner-toaster] {
264
- font-family: var(--font-mono), ui-monospace, monospace !important;
265
- --width: 320px !important;
266
- position: fixed !important;
267
- bottom: 20px !important;
268
- right: 20px !important;
269
- left: auto !important;
270
- top: auto !important;
271
- z-index: 99999 !important;
272
- transform: none !important;
264
+ font-family: var(--font-mono), ui-monospace, monospace;
265
+ --width: 320px;
266
+ position: fixed;
267
+ bottom: 20px;
268
+ right: 20px;
269
+ left: auto;
270
+ top: auto;
271
+ z-index: 99999;
272
+ transform: none;
273
273
  }
274
274
 
275
275
  [data-sonner-toast] {
276
- background: var(--card) !important;
277
- border: 1px solid var(--border) !important;
278
- border-radius: var(--radius-md) !important;
279
- color: var(--foreground) !important;
280
- font-family: var(--font-mono), ui-monospace, monospace !important;
281
- padding: 10px 14px !important;
282
- gap: 6px !important;
283
- text-align: center !important;
284
- justify-content: center !important;
276
+ background: var(--card);
277
+ border: 1px solid var(--border);
278
+ border-radius: var(--radius-md);
279
+ color: var(--foreground);
280
+ font-family: var(--font-mono), ui-monospace, monospace;
281
+ padding: 10px 14px;
282
+ gap: 6px;
283
+ text-align: center;
284
+ justify-content: center;
285
285
  }
286
286
 
287
287
  .dark [data-sonner-toast] {
288
288
  box-shadow:
289
289
  0 4px 16px rgba(0, 0, 0, 0.5),
290
- inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
290
+ inset 0 0 0 1px rgba(255, 255, 255, 0.03);
291
291
  }
292
292
 
293
293
  [data-sonner-toast] [data-title] {
294
- color: var(--foreground) !important;
295
- font-weight: 600 !important;
296
- font-size: 12px !important;
297
- line-height: 1.4 !important;
294
+ color: var(--foreground);
295
+ font-weight: 600;
296
+ font-size: 12px;
297
+ line-height: 1.4;
298
298
  }
299
299
 
300
300
  [data-sonner-toast] [data-description] {
301
- color: var(--muted-foreground) !important;
302
- font-size: 11px !important;
301
+ color: var(--muted-foreground);
302
+ font-size: 11px;
303
303
  }
304
304
 
305
305
  [data-sonner-toast] [data-close-button] {
306
- background: var(--muted) !important;
307
- border-color: var(--border) !important;
308
- color: var(--muted-foreground) !important;
306
+ background: var(--muted);
307
+ border-color: var(--border);
308
+ color: var(--muted-foreground);
309
309
  }
310
310
 
311
311
  [data-sonner-toast] [data-close-button]:hover {
312
- background: var(--accent) !important;
313
- color: var(--foreground) !important;
312
+ background: var(--accent);
313
+ color: var(--foreground);
314
314
  }
315
315
 
316
316
  /* Success — subtle terminal-color tint */
317
317
  .dark [data-sonner-toast][data-type="success"] {
318
- background: color-mix(in srgb, var(--terminal) 6%, var(--card)) !important;
319
- border-color: color-mix(in srgb, var(--terminal) 30%, transparent) !important;
318
+ background: color-mix(in srgb, var(--terminal) 6%, var(--card));
319
+ border-color: color-mix(in srgb, var(--terminal) 30%, transparent);
320
320
  }
321
321
  [data-sonner-toast][data-type="success"] [data-icon] {
322
- color: var(--terminal) !important;
322
+ color: var(--terminal);
323
323
  }
324
324
 
325
325
  /* Error — subtle red tint */
326
326
  .dark [data-sonner-toast][data-type="error"] {
327
- background: color-mix(in srgb, var(--destructive) 6%, var(--card)) !important;
328
- border-color: color-mix(in srgb, var(--destructive) 30%, transparent) !important;
327
+ background: color-mix(in srgb, var(--destructive) 6%, var(--card));
328
+ border-color: color-mix(in srgb, var(--destructive) 30%, transparent);
329
329
  }
330
330
  [data-sonner-toast][data-type="error"] [data-icon] {
331
- color: var(--destructive) !important;
331
+ color: var(--destructive);
332
332
  }
333
333
 
334
334
  /* Warning — subtle amber tint */
335
335
  .dark [data-sonner-toast][data-type="warning"] {
336
- background: color-mix(in srgb, #f59e0b 6%, var(--card)) !important;
337
- border-color: color-mix(in srgb, #f59e0b 30%, transparent) !important;
336
+ background: color-mix(in srgb, #f59e0b 6%, var(--card));
337
+ border-color: color-mix(in srgb, #f59e0b 30%, transparent);
338
338
  }
339
339
  [data-sonner-toast][data-type="warning"] [data-icon] {
340
- color: #f59e0b !important;
340
+ color: #f59e0b;
341
341
  }
342
342
 
343
343
  /* Info */
344
344
  .dark [data-sonner-toast][data-type="info"] {
345
- background: color-mix(in srgb, #3b82f6 6%, var(--card)) !important;
346
- border-color: color-mix(in srgb, #3b82f6 30%, transparent) !important;
345
+ background: color-mix(in srgb, #3b82f6 6%, var(--card));
346
+ border-color: color-mix(in srgb, #3b82f6 30%, transparent);
347
347
  }
348
348
  [data-sonner-toast][data-type="info"] [data-icon] {
349
- color: #3b82f6 !important;
349
+ color: #3b82f6;
350
350
  }
351
351
 
352
352
  /* Loading — faint terminal pulse */
353
353
  .dark [data-sonner-toast][data-type="loading"] {
354
- border-color: color-mix(in srgb, var(--terminal) 20%, transparent) !important;
354
+ border-color: color-mix(in srgb, var(--terminal) 20%, transparent);
355
355
  }
356
356
  [data-sonner-toast][data-type="loading"] [data-icon] {
357
- color: var(--muted-foreground) !important;
357
+ color: var(--muted-foreground);
358
358
  }
359
359
 
360
360
  /* Action & cancel buttons inside toasts */
361
361
  [data-sonner-toast] button[data-button] {
362
- background: var(--primary) !important;
363
- color: var(--primary-foreground) !important;
364
- border-radius: var(--radius-sm) !important;
365
- font-size: 12px !important;
366
- font-weight: 600 !important;
362
+ background: var(--primary);
363
+ color: var(--primary-foreground);
364
+ border-radius: var(--radius-sm);
365
+ font-size: 12px;
366
+ font-weight: 600;
367
367
  }
368
368
 
369
369
  [data-sonner-toast] button[data-cancel] {
370
- background: var(--muted) !important;
371
- color: var(--muted-foreground) !important;
372
- border-radius: var(--radius-sm) !important;
373
- font-size: 12px !important;
370
+ background: var(--muted);
371
+ color: var(--muted-foreground);
372
+ border-radius: var(--radius-sm);
373
+ font-size: 12px;
374
374
  }
@@ -20,7 +20,6 @@ import { Separator } from "@/components/ui/separator";
20
20
  import { usePluginRegistry } from "@/hooks/use-plugin-registry";
21
21
  import { createInstance } from "@/lib/api";
22
22
  import { productName } from "@/lib/brand-config";
23
- import { toUserMessage } from "@/lib/errors";
24
23
  import { cn } from "@/lib/utils";
25
24
 
26
25
  const PRESET_ACCENT_COLORS: Record<string, string> = {
@@ -33,7 +33,7 @@ export function CryptoCheckout() {
33
33
  getSupportedPaymentMethods()
34
34
  .then(setMethods)
35
35
  .catch(() => {
36
- // silently fall back to empty methods list
36
+ // Silently fail payment methods are non-critical on mount
37
37
  });
38
38
  }, []);
39
39
 
@@ -20,7 +20,7 @@ function parseHexToRgb(hex: string): [number, number, number] {
20
20
  function getTerminalColor(): [number, number, number] {
21
21
  if (typeof document === "undefined") return [0, 255, 65];
22
22
  const val = getComputedStyle(document.documentElement).getPropertyValue("--terminal").trim();
23
- if (val && val.startsWith("#") && val.length >= 4) return parseHexToRgb(val);
23
+ if (val?.startsWith("#") && val.length >= 4) return parseHexToRgb(val);
24
24
  return [0, 255, 65];
25
25
  }
26
26
 
@@ -117,7 +117,7 @@ export function SidebarContent({ onNavigate }: { onNavigate?: () => void }) {
117
117
  }
118
118
 
119
119
  return (
120
- <div className="flex h-full flex-col">
120
+ <div data-slot="sidebar" className="flex h-full flex-col">
121
121
  <div className="flex h-14 items-center border-b border-sidebar-border px-6">
122
122
  <span
123
123
  className="text-lg font-semibold tracking-tight text-terminal"
@@ -226,7 +226,10 @@ export function SidebarContent({ onNavigate }: { onNavigate?: () => void }) {
226
226
 
227
227
  export function Sidebar() {
228
228
  return (
229
- <aside className="flex h-screen w-64 flex-col border-r border-sidebar-border bg-sidebar text-sidebar-foreground">
229
+ <aside
230
+ data-slot="sidebar"
231
+ className="flex h-screen w-64 flex-col border-r border-sidebar-border bg-sidebar text-sidebar-foreground"
232
+ >
230
233
  <SidebarContent />
231
234
  </aside>
232
235
  );