@dbx-tools/ui-mastra 0.9.122 → 0.9.123
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/index.ts +1 -1
- package/package.json +6 -6
- package/src/react/markdown.tsx +16 -1
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
4
|
|
|
5
5
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/ui-mastra";
|
|
6
|
-
export const PACKAGE_VERSION = "0.9.
|
|
6
|
+
export const PACKAGE_VERSION = "0.9.123";
|
|
7
7
|
export * as reactBubbles from "./src/react/bubbles.tsx";
|
|
8
8
|
export * as reactChatApprovals from "./src/react/chat-approvals.ts";
|
|
9
9
|
export * as reactChatComposer from "./src/react/chat-composer.tsx";
|
package/package.json
CHANGED
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"react-dom": "~19.2.4"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@dbx-tools/shared-core": "^0.9.
|
|
33
|
-
"@dbx-tools/shared-genie": "^0.9.
|
|
34
|
-
"@dbx-tools/shared-mastra": "^0.9.
|
|
35
|
-
"@dbx-tools/shared-model": "^0.9.
|
|
36
|
-
"@dbx-tools/ui": "^0.9.
|
|
32
|
+
"@dbx-tools/shared-core": "^0.9.123",
|
|
33
|
+
"@dbx-tools/shared-genie": "^0.9.123",
|
|
34
|
+
"@dbx-tools/shared-mastra": "^0.9.123",
|
|
35
|
+
"@dbx-tools/shared-model": "^0.9.123",
|
|
36
|
+
"@dbx-tools/ui": "^0.9.123",
|
|
37
37
|
"@mastra/client-js": "1.50.0",
|
|
38
38
|
"@mastra/core": "1.71.0",
|
|
39
39
|
"@tanstack/react-table": "^8.21.3",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"version": "0.9.
|
|
53
|
+
"version": "0.9.123",
|
|
54
54
|
"dbxToolsConfig": {
|
|
55
55
|
"tags": [
|
|
56
56
|
"ui"
|
package/src/react/markdown.tsx
CHANGED
|
@@ -136,6 +136,20 @@ const MARKDOWN_TABLE_PARTS = {
|
|
|
136
136
|
},
|
|
137
137
|
};
|
|
138
138
|
|
|
139
|
+
/** Chat links use a dedicated high-contrast blue instead of the darker brand primary. */
|
|
140
|
+
const MarkdownLink = ({ className, ...props }: React.AnchorHTMLAttributes<HTMLAnchorElement>) => (
|
|
141
|
+
<a
|
|
142
|
+
{...props}
|
|
143
|
+
className={cn(
|
|
144
|
+
"font-normal text-blue-700 underline decoration-blue-700/40 decoration-1 underline-offset-2",
|
|
145
|
+
"transition-colors hover:text-blue-800 hover:decoration-current",
|
|
146
|
+
"focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
147
|
+
"visited:text-blue-800 dark:text-blue-300 dark:decoration-blue-300/40 dark:visited:text-blue-300 dark:hover:text-blue-200",
|
|
148
|
+
className,
|
|
149
|
+
)}
|
|
150
|
+
/>
|
|
151
|
+
);
|
|
152
|
+
|
|
139
153
|
/**
|
|
140
154
|
* Markdown component map for the main assistant reply. Tables are
|
|
141
155
|
* lifted out of the parsed `node` and rendered through the interactive
|
|
@@ -145,6 +159,7 @@ const MARKDOWN_TABLE_PARTS = {
|
|
|
145
159
|
*/
|
|
146
160
|
const MARKDOWN_COMPONENTS = {
|
|
147
161
|
...MARKDOWN_TABLE_PARTS,
|
|
162
|
+
a: MarkdownLink,
|
|
148
163
|
table: ({
|
|
149
164
|
node,
|
|
150
165
|
children,
|
|
@@ -173,6 +188,7 @@ const MARKDOWN_COMPONENTS = {
|
|
|
173
188
|
*/
|
|
174
189
|
const TOOL_MARKDOWN_COMPONENTS = {
|
|
175
190
|
...MARKDOWN_TABLE_PARTS,
|
|
191
|
+
a: MarkdownLink,
|
|
176
192
|
table: plainMarkdownTable,
|
|
177
193
|
};
|
|
178
194
|
|
|
@@ -253,7 +269,6 @@ export const AssistantMarkdown = ({
|
|
|
253
269
|
"leading-snug prose-p:my-1.5 prose-p:leading-snug sm:leading-relaxed sm:prose-p:leading-relaxed",
|
|
254
270
|
"prose-ul:my-1.5 prose-ol:my-1.5 prose-li:my-0.5",
|
|
255
271
|
"prose-headings:font-semibold prose-headings:tracking-tight",
|
|
256
|
-
"prose-a:font-medium prose-a:text-primary prose-a:underline prose-a:decoration-primary/50 prose-a:underline-offset-4 hover:prose-a:decoration-primary",
|
|
257
272
|
"prose-h1:text-lg prose-h1:mt-4 prose-h1:mb-2",
|
|
258
273
|
"prose-h2:text-base prose-h2:mt-4 prose-h2:mb-2",
|
|
259
274
|
"prose-h3:text-sm prose-h3:mt-3 prose-h3:mb-1.5 prose-h3:text-muted-foreground prose-h3:uppercase prose-h3:tracking-wider",
|