diff --git a/web/package-lock.json b/web/package-lock.json index 7cdc0b513..0df1d78dd 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -74,6 +74,7 @@ "rc-tween-one": "^3.0.6", "react": "^18.2.0", "react-copy-to-clipboard": "^5.1.0", + "react-day-picker": "^9.8.0", "react-dom": "^18.2.0", "react-dropzone": "^14.3.5", "react-error-boundary": "^4.0.13", @@ -1728,6 +1729,12 @@ "node": ">=10" } }, + "node_modules/@date-fns/tz": { + "version": "1.2.0", + "resolved": "https://registry.npmmirror.com/@date-fns/tz/-/tz-1.2.0.tgz", + "integrity": "sha512-LBrd7MiJZ9McsOgxqWX7AaxrDjcFVjWH/tIKJd7pnR7McaslGYOP1QmmiBXdJH/H/yLCT+rcQ7FaPBUxRGUtrg==", + "license": "MIT" + }, "node_modules/@dnd-kit/accessibility": { "version": "3.1.0", "resolved": "https://registry.npmmirror.com/@dnd-kit/accessibility/-/accessibility-3.1.0.tgz", @@ -14864,6 +14871,22 @@ "node": ">= 0.4" } }, + "node_modules/date-fns": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/date-fns/-/date-fns-4.1.0.tgz", + "integrity": "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" + } + }, + "node_modules/date-fns-jalali": { + "version": "4.1.0-0", + "resolved": "https://registry.npmmirror.com/date-fns-jalali/-/date-fns-jalali-4.1.0-0.tgz", + "integrity": "sha512-hTIP/z+t+qKwBDcmmsnmjWTduxCg+5KfdqWQvb2X/8C9+knYY6epN/pfxdDuyVlSVeFz0sM5eEfwIUQ70U4ckg==", + "license": "MIT" + }, "node_modules/dayjs": { "version": "1.11.10", "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.10.tgz", @@ -27306,6 +27329,27 @@ "react": "^15.3.0 || 16 || 17 || 18" } }, + "node_modules/react-day-picker": { + "version": "9.8.0", + "resolved": "https://registry.npmmirror.com/react-day-picker/-/react-day-picker-9.8.0.tgz", + "integrity": "sha512-E0yhhg7R+pdgbl/2toTb0xBhsEAtmAx1l7qjIWYfcxOy8w4rTSVfbtBoSzVVhPwKP/5E9iL38LivzoE3AQDhCQ==", + "license": "MIT", + "dependencies": { + "@date-fns/tz": "1.2.0", + "date-fns": "4.1.0", + "date-fns-jalali": "4.1.0-0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/gpbl" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, "node_modules/react-dev-inspector": { "version": "2.0.1", "resolved": "https://registry.npmmirror.com/react-dev-inspector/-/react-dev-inspector-2.0.1.tgz", diff --git a/web/src/components/message-input/next.tsx b/web/src/components/message-input/next.tsx index 787a0ed8d..189033678 100644 --- a/web/src/components/message-input/next.tsx +++ b/web/src/components/message-input/next.tsx @@ -103,7 +103,7 @@ export function NextMessageInput({
+ ); } diff --git a/web/src/pages/agent/form/user-fill-up-form/use-watch-change.ts b/web/src/pages/agent/form/user-fill-up-form/use-watch-change.ts index f6c95d157..bdf4b9a91 100644 --- a/web/src/pages/agent/form/user-fill-up-form/use-watch-change.ts +++ b/web/src/pages/agent/form/user-fill-up-form/use-watch-change.ts @@ -21,9 +21,12 @@ export function useWatchFormChange(id?: string, form?: UseFormReturn) { if (id) { values = form?.getValues() || {}; + const inputs = transferInputsArrayToObject(values.inputs); + const nextValues = { ...values, - inputs: transferInputsArrayToObject(values.inputs), + inputs, + outputs: inputs, }; updateNodeForm(id, nextValues);