@copilotz/chat-ui 0.9.11 → 0.9.13
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/index.cjs +9 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +10 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -161,7 +161,7 @@ var defaultChatConfig = {
|
|
|
161
161
|
showActivity: true,
|
|
162
162
|
showActivityDetails: true,
|
|
163
163
|
threadTags: {
|
|
164
|
-
enabled:
|
|
164
|
+
enabled: true,
|
|
165
165
|
groupingEnabled: true,
|
|
166
166
|
defaultGroupBy: "date",
|
|
167
167
|
allowCreate: true,
|
|
@@ -215,7 +215,11 @@ function mergeConfig(_baseConfig, userConfig) {
|
|
|
215
215
|
},
|
|
216
216
|
features: {
|
|
217
217
|
...defaultChatConfig.features,
|
|
218
|
-
...userConfig.features
|
|
218
|
+
...userConfig.features,
|
|
219
|
+
threadTags: {
|
|
220
|
+
...defaultChatConfig.features.threadTags,
|
|
221
|
+
...userConfig.features?.threadTags
|
|
222
|
+
}
|
|
219
223
|
},
|
|
220
224
|
ui: {
|
|
221
225
|
...defaultChatConfig.ui,
|
|
@@ -2830,9 +2834,9 @@ var Sidebar2 = ({
|
|
|
2830
2834
|
setEditingThreadId(null);
|
|
2831
2835
|
};
|
|
2832
2836
|
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Sidebar, { collapsible: "icon", ...props, children: [
|
|
2833
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(SidebarHeader, { className: "gap-3 p-3", children: [
|
|
2834
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-3 px-2 py-3", children: [
|
|
2835
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex items-center justify-center
|
|
2837
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(SidebarHeader, { className: "gap-3 p-3 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:px-0", children: [
|
|
2838
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-3 px-2 py-3 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0", children: [
|
|
2839
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center", children: config.branding?.logo || /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Avatar, { className: "h-8 w-8", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(AvatarFallback, { className: "bg-primary text-primary-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react8.Bot, { className: "h-4 w-4" }) }) }) }),
|
|
2836
2840
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col min-w-0 group-data-[collapsible=icon]:hidden", children: [
|
|
2837
2841
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-sm font-semibold truncate", children: config.branding?.title || "Chat" }),
|
|
2838
2842
|
config.branding?.subtitle && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-xs text-muted-foreground truncate", children: config.branding.subtitle })
|