@tylertech/forge-ai-react 0.3.0 → 0.4.1

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.
@@ -31,7 +31,16 @@ export interface ForgeAiChatHeaderProps
31
31
  /** Indicates the current expanded state for displaying the appropriate expand/collapse icon */
32
32
  expanded?: boolean;
33
33
 
34
- /** Controls which minimize icon to display */
34
+ /** Controls whether the dropdown menu is visible (default: true) */
35
+ showDropdownMenu?: boolean;
36
+
37
+ /** Controls whether the clear chat menu item is visible (default: true) */
38
+ showClearChat?: boolean;
39
+
40
+ /** Controls whether the info menu item is visible (default: true) */
41
+ showInfo?: boolean;
42
+
43
+ /** Controls which minimize icon to display ('default' | 'panel') */
35
44
  minimizeIcon?: ForgeAiChatHeaderElement["minimizeIcon"];
36
45
 
37
46
  /** A space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the class selectors or functions like the method `Document.getElementsByClassName()`. */
@@ -80,6 +89,7 @@ export interface ForgeAiChatHeaderProps
80
89
  * - **forge-ai-chat-header-minimize** - Fired when the minimize button is clicked
81
90
  *
82
91
  * ### **Slots:**
83
- * - **title** - Slot for custom title text (default: "AI Assistant")
92
+ * - **icon** - Slot for custom icon (default: forge-ai-icon)
93
+ * - **title** - Slot for custom title text (default: "AI Assistant")
84
94
  */
85
95
  export const ForgeAiChatHeader: React.ForwardRefExoticComponent<ForgeAiChatHeaderProps>;
@@ -8,6 +8,9 @@ export const ForgeAiChatHeader = forwardRef((props, forwardedRef) => {
8
8
  showExpandButton,
9
9
  showMinimizeButton,
10
10
  expanded,
11
+ showDropdownMenu,
12
+ showClearChat,
13
+ showInfo,
11
14
  minimizeIcon,
12
15
  ...filteredProps
13
16
  } = props;
@@ -55,6 +58,9 @@ export const ForgeAiChatHeader = forwardRef((props, forwardedRef) => {
55
58
  "show-expand-button": props.showExpandButton ? true : undefined,
56
59
  "show-minimize-button": props.showMinimizeButton ? true : undefined,
57
60
  expanded: props.expanded ? true : undefined,
61
+ "show-dropdown-menu": props.showDropdownMenu ? true : undefined,
62
+ "show-clear-chat": props.showClearChat ? true : undefined,
63
+ "show-info": props.showInfo ? true : undefined,
58
64
  style: { ...props.style },
59
65
  },
60
66
  props.children,
@@ -47,7 +47,8 @@ export interface ForgeAiEmptyStateProps
47
47
  *
48
48
  *
49
49
  * ### **Slots:**
50
- * - _default_ - The custom welcome message content.
50
+ * - _default_ - The welcome message content (default: "Welcome to AI Assistant! Start a conversation by asking a question or describing what you'd like help with.").
51
+ * - **icon** - The custom icon to display instead of the default books graphic.
51
52
  * - **actions** - The actions or suggestions to display below the message.
52
53
  */
53
54
  export const ForgeAiEmptyState: React.ForwardRefExoticComponent<ForgeAiEmptyStateProps>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./ForgeAiActionsToolbar.js";
2
1
  export * from "./ForgeAiArtifact.js";
2
+ export * from "./ForgeAiActionsToolbar.js";
3
3
  export * from "./ForgeAiButton.js";
4
4
  export * from "./ForgeAiChatHeader.js";
5
5
  export * from "./ForgeAiChainOfThought.js";
@@ -25,8 +25,8 @@ export * from "./ForgeAiSidebar.js";
25
25
  export * from "./ForgeAiSidebarChat.js";
26
26
  export * from "./ForgeAiSuggestions.js";
27
27
  export * from "./ForgeAiThinkingIndicator.js";
28
- export * from "./ForgeAiUserMessage.js";
29
28
  export * from "./ForgeAiThreads.js";
29
+ export * from "./ForgeAiUserMessage.js";
30
30
  export * from "./ForgeAiVoiceInput.js";
31
31
  export * from "./ForgeAiThoughtBase.js";
32
32
  export * from "./ForgeAiThoughtDetail.js";
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./ForgeAiActionsToolbar.js";
2
1
  export * from "./ForgeAiArtifact.js";
2
+ export * from "./ForgeAiActionsToolbar.js";
3
3
  export * from "./ForgeAiButton.js";
4
4
  export * from "./ForgeAiChatHeader.js";
5
5
  export * from "./ForgeAiChainOfThought.js";
@@ -25,8 +25,8 @@ export * from "./ForgeAiSidebar.js";
25
25
  export * from "./ForgeAiSidebarChat.js";
26
26
  export * from "./ForgeAiSuggestions.js";
27
27
  export * from "./ForgeAiThinkingIndicator.js";
28
- export * from "./ForgeAiUserMessage.js";
29
28
  export * from "./ForgeAiThreads.js";
29
+ export * from "./ForgeAiUserMessage.js";
30
30
  export * from "./ForgeAiVoiceInput.js";
31
31
  export * from "./ForgeAiThoughtBase.js";
32
32
  export * from "./ForgeAiThoughtDetail.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tylertech/forge-ai-react",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "A React adapter for Tyler Forge™ AI Web Components.",
5
5
  "repository": "tyler-technologies-oss/forge-ai",
6
6
  "author": "Tyler Technologies, Inc.",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "peerDependencies": {
18
18
  "react": ">=17.0.0",
19
- "@tylertech/forge-ai": "^0.3.0"
19
+ "@tylertech/forge-ai": "^0.4.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@repo/prettier-config": "",
@@ -44,7 +44,7 @@
44
44
  "typescript": "~5.8.3",
45
45
  "vite": "7.1.10",
46
46
  "vite-tsconfig-paths": "5.1.4",
47
- "@tylertech/forge-ai": "^0.3.0"
47
+ "@tylertech/forge-ai": "^0.4.1"
48
48
  },
49
49
  "scripts": {
50
50
  "predev": "pnpm run build",