@rozenite/controls-plugin 1.13.0 → 2.1.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/CHANGELOG.md +25 -0
- package/dist/devtools/assets/panel-BvIa5kqW.css +1 -0
- package/dist/devtools/assets/panel-H7O6Qof-.js +18 -0
- package/dist/devtools/panel.html +2 -2
- package/dist/react-native/chunks/useRozeniteControlsPlugin.require.js +12 -36
- package/dist/react-native/index.d.ts +2 -2
- package/dist/rozenite.json +1 -1
- package/package.json +28 -31
- package/sdk.ts +2 -8
- package/src/__tests__/serialization.test.ts +7 -7
- package/src/react-native/__tests__/controlsRegistry.test.ts +3 -11
- package/src/react-native/__tests__/useRozeniteControlsPlugin.test.tsx +4 -14
- package/src/react-native/controlsRegistry.ts +2 -6
- package/src/react-native/useControlsAgentTools.ts +8 -28
- package/src/react-native/useRozeniteControlsPlugin.ts +8 -24
- package/src/shared/agent-tools.ts +6 -22
- package/src/shared/serialization.ts +3 -6
- package/src/shared/types.ts +6 -18
- package/src/ui/panel.tsx +155 -189
- package/dist/devtools/assets/panel-B5zz0XK3.css +0 -1
- package/dist/devtools/assets/panel-BoQwJa2M.js +0 -17
- package/postcss.config.js +0 -6
- package/src/ui/globals.css +0 -86
- package/tailwind.config.ts +0 -53
package/postcss.config.js
DELETED
package/src/ui/globals.css
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
@tailwind base;
|
|
2
|
-
@tailwind components;
|
|
3
|
-
@tailwind utilities;
|
|
4
|
-
|
|
5
|
-
@layer base {
|
|
6
|
-
:root {
|
|
7
|
-
--background: 0 0% 100%;
|
|
8
|
-
--foreground: 0 0% 3.9%;
|
|
9
|
-
--card: 0 0% 100%;
|
|
10
|
-
--card-foreground: 0 0% 3.9%;
|
|
11
|
-
--popover: 0 0% 100%;
|
|
12
|
-
--popover-foreground: 0 0% 3.9%;
|
|
13
|
-
--primary: 0 0% 9%;
|
|
14
|
-
--primary-foreground: 0 0% 98%;
|
|
15
|
-
--secondary: 0 0% 96.1%;
|
|
16
|
-
--secondary-foreground: 0 0% 9%;
|
|
17
|
-
--muted: 0 0% 96.1%;
|
|
18
|
-
--muted-foreground: 0 0% 45.1%;
|
|
19
|
-
--accent: 0 0% 96.1%;
|
|
20
|
-
--accent-foreground: 0 0% 9%;
|
|
21
|
-
--destructive: 0 84.2% 60.2%;
|
|
22
|
-
--destructive-foreground: 0 0% 98%;
|
|
23
|
-
--border: 0 0% 14.9%;
|
|
24
|
-
--input: 0 0% 14.9%;
|
|
25
|
-
--ring: 0 0% 83.1%;
|
|
26
|
-
--radius: 0.5rem;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.dark {
|
|
30
|
-
--background: 0 0% 3.9%;
|
|
31
|
-
--foreground: 0 0% 98%;
|
|
32
|
-
--card: 0 0% 3.9%;
|
|
33
|
-
--card-foreground: 0 0% 98%;
|
|
34
|
-
--popover: 0 0% 3.9%;
|
|
35
|
-
--popover-foreground: 0 0% 98%;
|
|
36
|
-
--primary: 0 0% 98%;
|
|
37
|
-
--primary-foreground: 0 0% 9%;
|
|
38
|
-
--secondary: 0 0% 14.9%;
|
|
39
|
-
--secondary-foreground: 0 0% 98%;
|
|
40
|
-
--muted: 0 0% 14.9%;
|
|
41
|
-
--muted-foreground: 0 0% 63.9%;
|
|
42
|
-
--accent: 0 0% 14.9%;
|
|
43
|
-
--accent-foreground: 0 0% 98%;
|
|
44
|
-
--destructive: 0 62.8% 30.6%;
|
|
45
|
-
--destructive-foreground: 0 0% 98%;
|
|
46
|
-
--border: 0 0% 14.9%;
|
|
47
|
-
--input: 0 0% 14.9%;
|
|
48
|
-
--ring: 0 0% 83.1%;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
* {
|
|
52
|
-
@apply border-border;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
body {
|
|
56
|
-
@apply bg-background text-foreground;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
::-webkit-scrollbar {
|
|
61
|
-
width: 8px;
|
|
62
|
-
height: 8px;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
::-webkit-scrollbar-track {
|
|
66
|
-
background: #1f2937;
|
|
67
|
-
border-radius: 4px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
::-webkit-scrollbar-thumb {
|
|
71
|
-
background: #374151;
|
|
72
|
-
border-radius: 4px;
|
|
73
|
-
border: 1px solid #1f2937;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
::-webkit-scrollbar-thumb:hover {
|
|
77
|
-
background: #4b5563;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
::-webkit-scrollbar-thumb:active {
|
|
81
|
-
background: #6b7280;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
::-webkit-scrollbar-corner {
|
|
85
|
-
background: #1f2937;
|
|
86
|
-
}
|
package/tailwind.config.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { Config } from 'tailwindcss';
|
|
2
|
-
|
|
3
|
-
const config: Config = {
|
|
4
|
-
darkMode: ['class'],
|
|
5
|
-
content: ['./src/ui/**/*.{js,ts,jsx,tsx,mdx}'],
|
|
6
|
-
theme: {
|
|
7
|
-
extend: {
|
|
8
|
-
colors: {
|
|
9
|
-
background: 'hsl(var(--background))',
|
|
10
|
-
foreground: 'hsl(var(--foreground))',
|
|
11
|
-
card: {
|
|
12
|
-
DEFAULT: 'hsl(var(--card))',
|
|
13
|
-
foreground: 'hsl(var(--card-foreground))',
|
|
14
|
-
},
|
|
15
|
-
popover: {
|
|
16
|
-
DEFAULT: 'hsl(var(--popover))',
|
|
17
|
-
foreground: 'hsl(var(--popover-foreground))',
|
|
18
|
-
},
|
|
19
|
-
primary: {
|
|
20
|
-
DEFAULT: 'hsl(var(--primary))',
|
|
21
|
-
foreground: 'hsl(var(--primary-foreground))',
|
|
22
|
-
},
|
|
23
|
-
secondary: {
|
|
24
|
-
DEFAULT: 'hsl(var(--secondary))',
|
|
25
|
-
foreground: 'hsl(var(--secondary-foreground))',
|
|
26
|
-
},
|
|
27
|
-
muted: {
|
|
28
|
-
DEFAULT: 'hsl(var(--muted))',
|
|
29
|
-
foreground: 'hsl(var(--muted-foreground))',
|
|
30
|
-
},
|
|
31
|
-
accent: {
|
|
32
|
-
DEFAULT: 'hsl(var(--accent))',
|
|
33
|
-
foreground: 'hsl(var(--accent-foreground))',
|
|
34
|
-
},
|
|
35
|
-
destructive: {
|
|
36
|
-
DEFAULT: 'hsl(var(--destructive))',
|
|
37
|
-
foreground: 'hsl(var(--destructive-foreground))',
|
|
38
|
-
},
|
|
39
|
-
border: 'hsl(var(--border))',
|
|
40
|
-
input: 'hsl(var(--input))',
|
|
41
|
-
ring: 'hsl(var(--ring))',
|
|
42
|
-
},
|
|
43
|
-
borderRadius: {
|
|
44
|
-
lg: 'var(--radius)',
|
|
45
|
-
md: 'calc(var(--radius) - 2px)',
|
|
46
|
-
sm: 'calc(var(--radius) - 4px)',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
plugins: [require('tailwindcss-animate')],
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export default config;
|