@tylertech/forge-ai-react 0.1.0 → 0.2.0

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.
@@ -19,18 +19,6 @@ export interface ForgeAiChatInterfaceProps
19
19
  | "onFocus"
20
20
  | "onBlur"
21
21
  > {
22
- /** Controls whether the expand button is visible in the header */
23
- showExpandButton?: boolean;
24
-
25
- /** Controls whether the minimize button is visible in the header */
26
- showMinimizeButton?: boolean;
27
-
28
- /** Indicates the current expanded state for displaying the appropriate expand/collapse icon */
29
- expanded?: boolean;
30
-
31
- /** Controls which minimize icon to display in the header */
32
- minimizeIcon?: ForgeAiChatInterfaceElement["minimizeIcon"];
33
-
34
22
  /** 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()`. */
35
23
  className?: string;
36
24
 
@@ -58,8 +46,12 @@ export interface ForgeAiChatInterfaceProps
58
46
  * ---
59
47
  *
60
48
  *
49
+ * ### **Methods:**
50
+ * - **scrollMessagesToBottom(): _void_** - Scrolls the messages container to the bottom only if user hasn't scrolled up
51
+ *
61
52
  * ### **Slots:**
62
53
  * - _default_ - Default slot for messages
54
+ * - **header** - Slot for AI chat header component
63
55
  * - **suggestions** - Slot for AI suggestions component
64
56
  * - **prompt** - Slot for AI prompt component
65
57
  */
@@ -2,27 +2,15 @@ import React, { forwardRef } from "react";
2
2
  import "@tylertech/forge-ai/ai-chat-interface";
3
3
 
4
4
  export const ForgeAiChatInterface = forwardRef((props, forwardedRef) => {
5
- const {
6
- showExpandButton,
7
- showMinimizeButton,
8
- expanded,
9
- minimizeIcon,
10
- ...filteredProps
11
- } = props;
12
-
13
5
  return React.createElement(
14
6
  "forge-ai-chat-interface",
15
7
  {
16
- ...filteredProps,
17
- "minimize-icon": props.minimizeIcon || props["minimize-icon"],
8
+ ...props,
18
9
  class: props.className,
19
10
  exportparts: props.exportparts,
20
11
  for: props.htmlFor,
21
12
  part: props.part,
22
13
  tabindex: props.tabIndex,
23
- "show-expand-button": props.showExpandButton ? true : undefined,
24
- "show-minimize-button": props.showMinimizeButton ? true : undefined,
25
- expanded: props.expanded ? true : undefined,
26
14
  style: { ...props.style },
27
15
  },
28
16
  props.children,
@@ -64,6 +64,6 @@ export interface ForgeAiPromptProps
64
64
  * - **forge-ai-prompt-send** - Fired when the send button is clicked or Enter is pressed.
65
65
  *
66
66
  * ### **Slots:**
67
- * - **actions** - Slot for action components like dropdown menus, voice input, buttons, etc.
67
+ * - **actions** - Slot for action components that are hidden in inline mode (voice input, file picker, model selectors, web search, etc.)
68
68
  */
69
69
  export const ForgeAiPrompt: React.ForwardRefExoticComponent<ForgeAiPromptProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tylertech/forge-ai-react",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
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.1.0"
19
+ "@tylertech/forge-ai": "^0.2.0"
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.1.0"
47
+ "@tylertech/forge-ai": "^0.2.0"
48
48
  },
49
49
  "scripts": {
50
50
  "predev": "pnpm run build",