@rozenite/vite-plugin 2.1.0 → 2.2.0

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": "@rozenite/vite-plugin",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Vite plugin for developing React Native DevTools plugins with hot reload and development tools",
5
5
  "keywords": [
6
6
  "devtools",
@@ -47,7 +47,7 @@
47
47
  "lucide-react": "^0.263.1",
48
48
  "vite-plugin-dts": "~4.5.0",
49
49
  "vite-plugin-react-native-web": "^2.1.1",
50
- "@rozenite/ui": "2.1.0"
50
+ "@rozenite/ui": "2.2.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/ejs": "^3.1.5",
@@ -1,4 +1,4 @@
1
- import { Button, Input, Select, Tabs, Textarea } from '@rozenite/ui';
1
+ import { IconButton, Input, Select, Tabs, Textarea } from '@rozenite/ui';
2
2
  import { RotateCcw, Send } from 'lucide-react';
3
3
  import { useState, type FormEvent } from 'react';
4
4
  import type { DevHostFlowEntry, DevHostFlowRunState, DevHostPresetEntry } from '../types.js';
@@ -108,24 +108,17 @@ export const DispatchForm = ({
108
108
  </label>
109
109
 
110
110
  <div className="dev-host-actions">
111
- <Button
111
+ <IconButton
112
+ tone="neutral"
112
113
  variant="outline"
113
- size="icon"
114
114
  onClick={onReset}
115
- aria-label="Reset dispatcher"
116
- title="Reset dispatcher"
115
+ label="Reset dispatcher"
117
116
  >
118
117
  <RotateCcw />
119
- </Button>
120
- <Button
121
- type="submit"
122
- size="icon"
123
- disabled={!canDispatch}
124
- aria-label="Dispatch message"
125
- title="Dispatch message"
126
- >
118
+ </IconButton>
119
+ <IconButton type="submit" disabled={!canDispatch} label="Dispatch message">
127
120
  <Send />
128
- </Button>
121
+ </IconButton>
129
122
  </div>
130
123
  </form>
131
124
  </Tabs.Panel>
@@ -52,7 +52,8 @@ export const FlowList = ({
52
52
  return (
53
53
  <Button
54
54
  key={flow.name}
55
- variant={isRunning ? 'secondary' : 'outline'}
55
+ tone="neutral"
56
+ variant={isRunning ? 'solid' : 'outline'}
56
57
  className="dev-host-flow-button"
57
58
  onClick={() => onRunFlow(flow)}
58
59
  aria-label={`Run ${flow.displayName}`}
@@ -60,7 +61,11 @@ export const FlowList = ({
60
61
  <span className="dev-host-flow-name">
61
62
  <Play />
62
63
  {flow.displayName}
63
- {flow.autoRun ? <Badge variant="outline">Auto</Badge> : null}
64
+ {flow.autoRun ? (
65
+ <Badge tone="neutral" variant="outline">
66
+ Auto
67
+ </Badge>
68
+ ) : null}
64
69
  </span>
65
70
  <span className="text-xs text-muted-foreground">
66
71
  {isRunning ? 'Running' : 'Run'}
@@ -80,10 +85,19 @@ export const FlowList = ({
80
85
  <div className="dev-host-flow-state-header">
81
86
  <span className="dev-host-flow-title">
82
87
  {flowRun.flowDisplayName}
83
- {flowRun.autoRun ? <Badge variant="outline">Auto</Badge> : null}
88
+ {flowRun.autoRun ? (
89
+ <Badge tone="neutral" variant="outline">
90
+ Auto
91
+ </Badge>
92
+ ) : null}
84
93
  </span>
85
94
  {flowRun.status === 'running' ? (
86
- <Button variant="ghost" size="compact" onClick={() => onStopFlow(flowRun.id)}>
95
+ <Button
96
+ tone="neutral"
97
+ variant="ghost"
98
+ size="sm"
99
+ onClick={() => onStopFlow(flowRun.id)}
100
+ >
87
101
  <Square />
88
102
  Stop
89
103
  </Button>
@@ -1,4 +1,4 @@
1
- import { Button, JsonInspector, ScrollArea } from '@rozenite/ui';
1
+ import { IconButton, JsonInspector, ScrollArea } from '@rozenite/ui';
2
2
  import { Send, X } from 'lucide-react';
3
3
  import type { MessageEntry } from '../types.js';
4
4
  import { formatMessageDate, formatPayloadForCommandInput } from '../utils.js';
@@ -19,24 +19,22 @@ export const MessageDetailsPane = ({
19
19
  <header className="dev-host-pane-header">
20
20
  <h2 className="dev-host-pane-title">Message Details</h2>
21
21
  <div className="dev-host-pane-actions">
22
- <Button
22
+ <IconButton
23
+ tone="neutral"
23
24
  variant="ghost"
24
- size="icon"
25
25
  onClick={() => onUseMessage(selectedMessage)}
26
- aria-label="Use message in dispatcher"
27
- title="Use message in dispatcher"
26
+ label="Use message in dispatcher"
28
27
  >
29
28
  <Send />
30
- </Button>
31
- <Button
29
+ </IconButton>
30
+ <IconButton
31
+ tone="neutral"
32
32
  variant="ghost"
33
- size="icon"
34
33
  onClick={onClose}
35
- aria-label="Close message details"
36
- title="Close message details"
34
+ label="Close message details"
37
35
  >
38
36
  <X />
39
- </Button>
37
+ </IconButton>
40
38
  </div>
41
39
  </header>
42
40
 
@@ -1,4 +1,4 @@
1
- import { Button, DataTable, ScrollArea } from '@rozenite/ui';
1
+ import { DataTable, IconButton, ScrollArea } from '@rozenite/ui';
2
2
  import { Trash2 } from 'lucide-react';
3
3
  import { useMemo } from 'react';
4
4
  import type { DataTableColumn } from '@rozenite/ui';
@@ -66,16 +66,15 @@ export const MessageLogPane = ({
66
66
  <section className="dev-host-pane">
67
67
  <header className="dev-host-pane-header">
68
68
  <h2 className="dev-host-pane-title">Message Log</h2>
69
- <Button
69
+ <IconButton
70
+ tone="neutral"
70
71
  variant="ghost"
71
- size="icon"
72
72
  onClick={onClearMessages}
73
73
  disabled={messages.length === 0}
74
- aria-label="Clear message log"
75
- title="Clear message log"
74
+ label="Clear message log"
76
75
  >
77
76
  <Trash2 />
78
- </Button>
77
+ </IconButton>
79
78
  </header>
80
79
 
81
80
  <ScrollArea className="dev-host-scroll" viewportClassName="dev-host-scroll-viewport">
@@ -219,7 +219,7 @@
219
219
  }
220
220
 
221
221
  .dev-host-flow-state[data-status='failed'] {
222
- border-color: var(--destructive);
222
+ border-color: var(--danger);
223
223
  }
224
224
 
225
225
  .dev-host-flow-state-header {
@@ -246,7 +246,7 @@
246
246
  }
247
247
 
248
248
  .dev-host-flow-state-error {
249
- color: var(--destructive);
249
+ color: var(--danger);
250
250
  }
251
251
 
252
252
  .dev-host-detail-section {