@protobase/ui 0.3.2 → 0.3.4
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.
|
@@ -5,12 +5,17 @@ import { useAssistantClient } from "../assistant-dock/use-assistant-client.js";
|
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { Sparkles } from "lucide-react";
|
|
7
7
|
//#region src/app/assistant-shell.tsx
|
|
8
|
+
/** Below `md`, where search is a button too, only the icon shows; the hidden text still names it. */
|
|
8
9
|
const AssistantButton = ({ open, onToggle }) => /* @__PURE__ */ jsxs(Button, {
|
|
9
10
|
size: "sm",
|
|
10
11
|
variant: open ? "primary" : "secondary",
|
|
11
12
|
"aria-pressed": open,
|
|
12
13
|
onClick: onToggle,
|
|
13
|
-
|
|
14
|
+
className: "max-md:size-9 max-md:p-0",
|
|
15
|
+
children: [/* @__PURE__ */ jsx(Sparkles, { className: "size-3.5" }), /* @__PURE__ */ jsx("span", {
|
|
16
|
+
className: "max-md:sr-only",
|
|
17
|
+
children: "Assistant"
|
|
18
|
+
})]
|
|
14
19
|
});
|
|
15
20
|
const ConnectedDock = ({ client, page, onClose }) => {
|
|
16
21
|
const { state, offline, error, send, act } = useAssistant(client);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "The Protobase admin app and the React hooks and components for custom UI.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"react-dom": "^19.3.0",
|
|
39
39
|
"recharts": "^3.10.1",
|
|
40
40
|
"tailwindcss": "^4.3.3",
|
|
41
|
-
"@protobase/client": "0.3.
|
|
42
|
-
"@protobase/
|
|
43
|
-
"@protobase/
|
|
41
|
+
"@protobase/client": "0.3.4",
|
|
42
|
+
"@protobase/layout": "0.3.4",
|
|
43
|
+
"@protobase/schema": "0.3.4"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "tsdown"
|