mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
purge unused deps, comments
This commit is contained in:
14
extensions/react-widget/package-lock.json
generated
14
extensions/react-widget/package-lock.json
generated
@@ -16,7 +16,6 @@
|
||||
"@parcel/transformer-typescript-tsc": "^2.12.0",
|
||||
"@parcel/validator-typescript": "^2.12.0",
|
||||
"@radix-ui/react-icons": "^1.3.0",
|
||||
"@sundersb/markdown-mini": "^1.0.1",
|
||||
"@types/react": "^18.2.61",
|
||||
"@types/react-dom": "^18.2.19",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
@@ -5152,19 +5151,6 @@
|
||||
"react": "^16.x || ^17.x || ^18.x"
|
||||
}
|
||||
},
|
||||
"node_modules/@sundersb/markdown-mini": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@sundersb/markdown-mini/-/markdown-mini-1.0.1.tgz",
|
||||
"integrity": "sha512-uhpAgeTYQl51+Cv5DboJT2TjPFqj1Ezgq9Bv9mfQGEs8QZ3jIGsSZ6qOaYl39FqA17pYySP8X6U2sSm713+wcw==",
|
||||
"dependencies": {
|
||||
"@sundersb/parser-mini": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sundersb/parser-mini": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@sundersb/parser-mini/-/parser-mini-1.0.1.tgz",
|
||||
"integrity": "sha512-Ih6muq5bF1prFjW6jIasv+0VnBPUFZVFVADDjxhqz2bWVu3/I7aQHsByfxlCfwF+JcEp9K4gvLzVkA+jZR8DTw=="
|
||||
},
|
||||
"node_modules/@svgr/babel-plugin-add-jsx-attribute": {
|
||||
"version": "6.5.1",
|
||||
"resolved": "https://registry.npmjs.org/@svgr/babel-plugin-add-jsx-attribute/-/babel-plugin-add-jsx-attribute-6.5.1.tgz",
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
"@parcel/transformer-typescript-tsc": "^2.12.0",
|
||||
"@parcel/validator-typescript": "^2.12.0",
|
||||
"@radix-ui/react-icons": "^1.3.0",
|
||||
"@sundersb/markdown-mini": "^1.0.1",
|
||||
"@types/react": "^18.2.61",
|
||||
"@types/react-dom": "^18.2.19",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
|
||||
@@ -316,12 +316,11 @@ export const DocsGPTWidget = ({
|
||||
const lastChild = element?.children?.[element.children.length - 1]
|
||||
lastChild && scrollToBottom(lastChild)
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
!eventInterrupt && scrollToBottom(endMessageRef.current);
|
||||
}, [queries.length, queries[queries.length - 1]?.response]);
|
||||
/* useEffect(()=>{
|
||||
setEventInterrupt(false)
|
||||
},[status]) */
|
||||
|
||||
async function stream(question: string) {
|
||||
setStatus('loading')
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user