@streamoid/chat-components 0.2.3 → 0.2.5
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 +0 -3
- package/dist/index.js +5 -3
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -57,10 +57,7 @@ declare const dynamicFormManifest: {
|
|
|
57
57
|
readonly service: "common";
|
|
58
58
|
readonly description: "Server-driven dynamic form supporting text, textarea, number, select, multiselect, checkbox, radio, approval, todo_list, and file upload fields";
|
|
59
59
|
readonly containerStyle: {
|
|
60
|
-
readonly overflow: "auto";
|
|
61
60
|
readonly display: "flex";
|
|
62
|
-
readonly marginTop: "8px";
|
|
63
|
-
readonly paddingBottom: "16px";
|
|
64
61
|
readonly position: "relative";
|
|
65
62
|
readonly width: "100%";
|
|
66
63
|
};
|
package/dist/index.js
CHANGED
|
@@ -472,6 +472,11 @@ function DynamicForm(props) {
|
|
|
472
472
|
mo.disconnect();
|
|
473
473
|
};
|
|
474
474
|
}, [checkScroll, isSubmitted, isLoading]);
|
|
475
|
+
useEffect(() => {
|
|
476
|
+
if (error && scrollRef.current) {
|
|
477
|
+
scrollRef.current.scrollTo({ top: scrollRef.current.scrollHeight, behavior: "smooth" });
|
|
478
|
+
}
|
|
479
|
+
}, [error]);
|
|
475
480
|
const handleFieldChange = (fieldId, value) => {
|
|
476
481
|
setFormValues((prev) => ({ ...prev, [fieldId]: value }));
|
|
477
482
|
setError(null);
|
|
@@ -1092,10 +1097,7 @@ var dynamicFormManifest = {
|
|
|
1092
1097
|
service: "common",
|
|
1093
1098
|
description: "Server-driven dynamic form supporting text, textarea, number, select, multiselect, checkbox, radio, approval, todo_list, and file upload fields",
|
|
1094
1099
|
containerStyle: {
|
|
1095
|
-
overflow: "auto",
|
|
1096
1100
|
display: "flex",
|
|
1097
|
-
marginTop: "8px",
|
|
1098
|
-
paddingBottom: "16px",
|
|
1099
1101
|
position: "relative",
|
|
1100
1102
|
width: "100%"
|
|
1101
1103
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamoid/chat-components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Shared chat UI components for the Streamoid chat host — DynamicForm and other cross-service components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"lucide-react": ">=0.200.0",
|
|
36
|
-
"react": "^18.0.0",
|
|
37
|
-
"react-dom": "^18.0.0"
|
|
36
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
37
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@streamoid/chat-component-types": "^0.1.0",
|