@dbx-tools/ui-mastra 0.9.179 → 0.9.181

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 CHANGED
@@ -3,4 +3,4 @@
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.179";
6
+ export const PACKAGE_VERSION = "0.9.181";
package/package.json CHANGED
@@ -32,12 +32,12 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@databricks/appkit-ui": "0.81.0",
35
- "@dbx-tools/shared-auth": "^0.9.179",
36
- "@dbx-tools/shared-core": "^0.9.179",
37
- "@dbx-tools/shared-genie": "^0.9.179",
38
- "@dbx-tools/shared-mastra": "^0.9.179",
39
- "@dbx-tools/shared-model": "^0.9.179",
40
- "@dbx-tools/ui": "^0.9.179",
35
+ "@dbx-tools/shared-auth": "^0.9.181",
36
+ "@dbx-tools/shared-core": "^0.9.181",
37
+ "@dbx-tools/shared-genie": "^0.9.181",
38
+ "@dbx-tools/shared-mastra": "^0.9.181",
39
+ "@dbx-tools/shared-model": "^0.9.181",
40
+ "@dbx-tools/ui": "^0.9.181",
41
41
  "@mastra/client-js": "1.50.0",
42
42
  "@mastra/core": "1.71.0",
43
43
  "@tanstack/react-table": "^8.21.3",
@@ -55,7 +55,7 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "version": "0.9.179",
58
+ "version": "0.9.181",
59
59
  "types": "index.ts",
60
60
  "dbxToolsConfig": {
61
61
  "tags": [
@@ -150,6 +150,17 @@ export const ChatThreadLayout = ({
150
150
  ...(onCancelThread ? { onCancel: onCancelThread } : {}),
151
151
  ...(threadSidebarHeaderActions ? { headerActions: threadSidebarHeaderActions } : {}),
152
152
  };
153
+ const threadTabListProps: Omit<ThreadSidebarProps, "onHide" | "side" | "className"> = {
154
+ threads: threadListProps.threads,
155
+ ...(threadListProps.activeThreadId ? { activeThreadId: threadListProps.activeThreadId } : {}),
156
+ streamingThreadIds: threadListProps.streamingThreadIds,
157
+ isLoading: threadListProps.isLoading,
158
+ onSelect: threadListProps.onSelect,
159
+ ...(threadListProps.onNew ? { onNew: threadListProps.onNew } : {}),
160
+ ...(threadListProps.onDelete ? { onDelete: threadListProps.onDelete } : {}),
161
+ ...(threadListProps.onRename ? { onRename: threadListProps.onRename } : {}),
162
+ ...(threadListProps.onCancel ? { onCancel: threadListProps.onCancel } : {}),
163
+ };
153
164
 
154
165
  const [openTabIds, setOpenTabIds] = useState<string[]>([]);
155
166
  const tabsSeededRef = useRef(false);
@@ -200,7 +211,7 @@ export const ChatThreadLayout = ({
200
211
  <div className="flex h-full min-w-0 flex-1 flex-col">
201
212
  {tabbedThreads && (
202
213
  <ThreadTabs
203
- {...threadListProps}
214
+ {...threadTabListProps}
204
215
  openThreadIds={openTabIds}
205
216
  onCloseTab={closeTab}
206
217
  actions={threadBarActions}
@@ -113,11 +113,13 @@ export const FeedbackControls = ({
113
113
  </Button>
114
114
  </DialogTrigger>
115
115
  </TooltipTrigger>
116
- <TooltipContent>
117
- {canComment ? "Leave written feedback" : "Rate the response first"}
118
- </TooltipContent>
116
+ {!open && (
117
+ <TooltipContent>
118
+ {canComment ? "Leave written feedback" : "Rate the response first"}
119
+ </TooltipContent>
120
+ )}
119
121
  </Tooltip>
120
- <DialogContent className="sm:max-w-md">
122
+ <DialogContent className="max-h-[calc(100dvh-1rem)] w-[calc(100vw-1rem)] overflow-y-auto sm:max-w-md">
121
123
  <DialogHeader>
122
124
  <DialogTitle>Share feedback</DialogTitle>
123
125
  </DialogHeader>
@@ -109,7 +109,7 @@ export const ThreadActions = ({
109
109
  <PopoverContent
110
110
  align="end"
111
111
  aria-label="Conversation history"
112
- className="w-72 p-0"
112
+ className="max-h-[calc(100dvh-1rem)] w-72 max-w-[calc(100vw-1rem)] overflow-hidden p-0"
113
113
  onOpenAutoFocus={(event) => event.preventDefault()}
114
114
  onCloseAutoFocus={(event) => event.preventDefault()}
115
115
  onFocusOutside={(event) => event.preventDefault()}
@@ -137,7 +137,7 @@ export const ThreadActions = ({
137
137
  },
138
138
  }
139
139
  : {})}
140
- className="h-96 w-full border-none"
140
+ className="h-96 max-h-[calc(100dvh-1rem)] w-full border-none"
141
141
  />
142
142
  </PopoverContent>
143
143
  </Popover>