@icanbwell/baileyai-chat-ui 1.0.11 → 1.0.12

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.d.ts CHANGED
@@ -56,14 +56,22 @@ export declare interface BaileyChatInputMessage {
56
56
  export declare function BaileyChatPanel({ chat, placeholder, replyPlaceholder, emptyPlaceholder, suggestions, onHistoryClick, privacyNote, resolveActivityIcon, className, height, width, hideDeveloperDetails, renderMessageActions, renderTable, renderChart, labels: labelsProp, formatMessageTime: formatMessageTimeProp, }: BaileyChatPanelProps): JSX_2.Element;
57
57
 
58
58
  export declare interface BaileyChatPanelLabels {
59
- /** Visible text on the header's reset control. */
59
+ /** Visible text of the "new chat" item in the "..." menu. */
60
60
  newChatButtonText: string;
61
- /** Accessible name for the reset control — lowercase to match this component's other
62
- * aria-labels (send/stop/dismiss), which are also lowercase by existing convention. */
61
+ /** @deprecated No longer applied -- the "New chat" menu item is named by its visible text
62
+ * (`newChatButtonText`). Kept in the type so existing hosts still compile; will be removed
63
+ * in the next major version. */
63
64
  newChatAriaLabel: string;
64
- /** Accessible name for the history control — only rendered when `onHistoryClick` is
65
- * supplied (see BaileyChatPanelProps). Lowercase, same convention as newChatAriaLabel. */
65
+ /** @deprecated No longer applied -- the history menu item is named by its visible text
66
+ * (`historyMenuItemText`). Kept in the type so existing hosts still compile; will be
67
+ * removed in the next major version. */
66
68
  historyAriaLabel: string;
69
+ /** Visible text of the history item in the "..." menu — only rendered when
70
+ * `onHistoryClick` is supplied (see BaileyChatPanelProps). */
71
+ historyMenuItemText: string;
72
+ /** Accessible name for the "..." menu trigger beside the input row. Lowercase, same
73
+ * convention as the other aria-labels. */
74
+ menuAriaLabel: string;
67
75
  /** Heading above the suggestion cards in the empty state. */
68
76
  suggestionsTitle: string;
69
77
  /** Shown in the empty state when no `suggestions` prop is supplied. */
@@ -106,12 +114,12 @@ export declare interface BaileyChatPanelProps extends BaileyMarkdownRenderers {
106
114
  * been sent. Clicking one calls chat.send(value ?? label). Omit to keep the plain
107
115
  * "Ask Bailey a question to get started." empty state. */
108
116
  suggestions?: BaileySuggestion[];
109
- /** Renders a history-icon control in the toolbar row, next to "New chat" — a host's entry
110
- * point into its own conversation-history UI (this package has no opinion on how history
111
- * is stored/listed; it only renders the trigger). Rendered regardless of `isEmpty`, unlike
112
- * "New chat" (which only appears once a conversation has started) — history should stay
113
- * reachable even before the first message. Omit entirely to keep today's toolbar row
114
- * (just "New chat", nothing when empty). */
117
+ /** Adds a history item to the "..." menu beside the input row, beneath "New chat" — a host's
118
+ * entry point into its own conversation-history UI (this package has no opinion on how
119
+ * history is stored/listed; it only renders the trigger). Rendered regardless of `isEmpty`,
120
+ * unlike "New chat" (which only appears once a conversation has started) — history should
121
+ * stay reachable even before the first message. Omit entirely to keep the menu to just
122
+ * "New chat" (and no menu at all while the conversation is empty). */
115
123
  onHistoryClick?: () => void;
116
124
  /** A short privacy/compliance note rendered below the input row, as the panel's bottom-most
117
125
  * element — empty state only by default, or every state if `privacyNote.alwaysVisible` is
@@ -561,7 +569,7 @@ export declare interface UseBaileyChatResult {
561
569
  /** Aborts any in-flight turn and resets the conversation to empty, so a host can offer a
562
570
  * "start over" control without remounting the component.
563
571
  *
564
- * `BaileyChatPanel`'s own "New chat" button calls whatever `newChat` sits on the `chat`
572
+ * `BaileyChatPanel`'s own "New chat" menu item calls whatever `newChat` sits on the `chat`
565
573
  * object it was given (read off `props.chat`, not this hook directly) — so a host that
566
574
  * needs to react to a reset (e.g. to also clear its own persisted conversation identity)
567
575
  * wraps this function before handing `chat` to the panel:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icanbwell/baileyai-chat-ui",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Shared React chat UI and streaming logic for Bailey, the icanbwell AI assistant",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -88,6 +88,7 @@
88
88
  }
89
89
  },
90
90
  "dependencies": {
91
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
91
92
  "@radix-ui/react-tooltip": "^1.1.8",
92
93
  "react-markdown": "^10.1.0",
93
94
  "remark-gfm": "^4.0.1"
@@ -112,7 +113,7 @@
112
113
  "eslint": "^9.39.1",
113
114
  "eslint-plugin-react-hooks": "^7.1.1",
114
115
  "eslint-plugin-react-refresh": "^0.5.4",
115
- "jsdom": "^29.1.1",
116
+ "jsdom": "^30.1.1",
116
117
  "postcss": "^8.5.23",
117
118
  "react": "^18.3.1",
118
119
  "react-chartjs-2": "^5.3.1",
@@ -123,5 +124,9 @@
123
124
  "vite": "^8.0.16",
124
125
  "vite-plugin-dts": "^4.5.4",
125
126
  "vitest": "^4.1.10"
127
+ },
128
+ "resolutions": {
129
+ "minimatch/brace-expansion": "2.1.4-aikido.2",
130
+ "node-gyp/undici": "8.10.2"
126
131
  }
127
132
  }