@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.js CHANGED
@@ -122,7 +122,7 @@ var defaultChatConfig = {
122
122
  showActivity: true,
123
123
  showActivityDetails: true,
124
124
  threadTags: {
125
- enabled: false,
125
+ enabled: true,
126
126
  groupingEnabled: true,
127
127
  defaultGroupBy: "date",
128
128
  allowCreate: true,
@@ -176,7 +176,11 @@ function mergeConfig(_baseConfig, userConfig) {
176
176
  },
177
177
  features: {
178
178
  ...defaultChatConfig.features,
179
- ...userConfig.features
179
+ ...userConfig.features,
180
+ threadTags: {
181
+ ...defaultChatConfig.features.threadTags,
182
+ ...userConfig.features?.threadTags
183
+ }
180
184
  },
181
185
  ui: {
182
186
  ...defaultChatConfig.ui,
@@ -2824,9 +2828,9 @@ var Sidebar2 = ({
2824
2828
  setEditingThreadId(null);
2825
2829
  };
2826
2830
  return /* @__PURE__ */ jsxs11(Sidebar, { collapsible: "icon", ...props, children: [
2827
- /* @__PURE__ */ jsxs11(SidebarHeader, { className: "gap-3 p-3", children: [
2828
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-3 px-2 py-3", children: [
2829
- /* @__PURE__ */ jsx18("div", { className: "flex items-center justify-center shrink-0", children: config.branding?.logo || /* @__PURE__ */ jsx18(Avatar, { className: "h-8 w-8", children: /* @__PURE__ */ jsx18(AvatarFallback, { className: "bg-primary text-primary-foreground", children: /* @__PURE__ */ jsx18(Bot, { className: "h-4 w-4" }) }) }) }),
2831
+ /* @__PURE__ */ jsxs11(SidebarHeader, { className: "gap-3 p-3 group-data-[collapsible=icon]:items-center group-data-[collapsible=icon]:px-0", children: [
2832
+ /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-3 px-2 py-3 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0", children: [
2833
+ /* @__PURE__ */ jsx18("div", { className: "flex h-8 w-8 shrink-0 items-center justify-center", children: config.branding?.logo || /* @__PURE__ */ jsx18(Avatar, { className: "h-8 w-8", children: /* @__PURE__ */ jsx18(AvatarFallback, { className: "bg-primary text-primary-foreground", children: /* @__PURE__ */ jsx18(Bot, { className: "h-4 w-4" }) }) }) }),
2830
2834
  /* @__PURE__ */ jsxs11("div", { className: "flex flex-col min-w-0 group-data-[collapsible=icon]:hidden", children: [
2831
2835
  /* @__PURE__ */ jsx18("span", { className: "text-sm font-semibold truncate", children: config.branding?.title || "Chat" }),
2832
2836
  config.branding?.subtitle && /* @__PURE__ */ jsx18("span", { className: "text-xs text-muted-foreground truncate", children: config.branding.subtitle })