@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/dist/dev-host/assets/index-B0yO0ie2.css +1 -0
- package/dist/dev-host/assets/index-zhOD0ia6.js +13 -0
- package/dist/dev-host/index.html +2 -2
- package/dist/dev-host/manifest.json +2 -2
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/dev-host/components/DispatchForm.tsx +7 -14
- package/src/dev-host/components/FlowList.tsx +18 -4
- package/src/dev-host/components/MessageDetailsPane.tsx +9 -11
- package/src/dev-host/components/MessageLogPane.tsx +5 -6
- package/src/dev-host/styles.css +2 -2
- package/dist/dev-host/assets/index-BgAxGQdD.js +0 -13
- package/dist/dev-host/assets/index-ClIYIppU.css +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rozenite/vite-plugin",
|
|
3
|
-
"version": "2.
|
|
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.
|
|
50
|
+
"@rozenite/ui": "2.2.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/ejs": "^3.1.5",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
<
|
|
111
|
+
<IconButton
|
|
112
|
+
tone="neutral"
|
|
112
113
|
variant="outline"
|
|
113
|
-
size="icon"
|
|
114
114
|
onClick={onReset}
|
|
115
|
-
|
|
116
|
-
title="Reset dispatcher"
|
|
115
|
+
label="Reset dispatcher"
|
|
117
116
|
>
|
|
118
117
|
<RotateCcw />
|
|
119
|
-
</
|
|
120
|
-
<
|
|
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
|
-
</
|
|
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
|
-
|
|
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 ?
|
|
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 ?
|
|
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
|
|
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 {
|
|
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
|
-
<
|
|
22
|
+
<IconButton
|
|
23
|
+
tone="neutral"
|
|
23
24
|
variant="ghost"
|
|
24
|
-
size="icon"
|
|
25
25
|
onClick={() => onUseMessage(selectedMessage)}
|
|
26
|
-
|
|
27
|
-
title="Use message in dispatcher"
|
|
26
|
+
label="Use message in dispatcher"
|
|
28
27
|
>
|
|
29
28
|
<Send />
|
|
30
|
-
</
|
|
31
|
-
<
|
|
29
|
+
</IconButton>
|
|
30
|
+
<IconButton
|
|
31
|
+
tone="neutral"
|
|
32
32
|
variant="ghost"
|
|
33
|
-
size="icon"
|
|
34
33
|
onClick={onClose}
|
|
35
|
-
|
|
36
|
-
title="Close message details"
|
|
34
|
+
label="Close message details"
|
|
37
35
|
>
|
|
38
36
|
<X />
|
|
39
|
-
</
|
|
37
|
+
</IconButton>
|
|
40
38
|
</div>
|
|
41
39
|
</header>
|
|
42
40
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
<
|
|
69
|
+
<IconButton
|
|
70
|
+
tone="neutral"
|
|
70
71
|
variant="ghost"
|
|
71
|
-
size="icon"
|
|
72
72
|
onClick={onClearMessages}
|
|
73
73
|
disabled={messages.length === 0}
|
|
74
|
-
|
|
75
|
-
title="Clear message log"
|
|
74
|
+
label="Clear message log"
|
|
76
75
|
>
|
|
77
76
|
<Trash2 />
|
|
78
|
-
</
|
|
77
|
+
</IconButton>
|
|
79
78
|
</header>
|
|
80
79
|
|
|
81
80
|
<ScrollArea className="dev-host-scroll" viewportClassName="dev-host-scroll-viewport">
|
package/src/dev-host/styles.css
CHANGED
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.dev-host-flow-state[data-status='failed'] {
|
|
222
|
-
border-color: var(--
|
|
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(--
|
|
249
|
+
color: var(--danger);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.dev-host-detail-section {
|