From 8d8878037c9d1aaee18b10bd744f993cb4d3e7c1 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Wed, 6 Dec 2023 17:17:17 -0500
Subject: got rid of some unused packages.  switche to react-type-animation
 from react-typist for gpt.

---
 src/client/views/pdf/GPTPopup/GPTPopup.tsx | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

(limited to 'src/client/views/pdf/GPTPopup/GPTPopup.tsx')

diff --git a/src/client/views/pdf/GPTPopup/GPTPopup.tsx b/src/client/views/pdf/GPTPopup/GPTPopup.tsx
index cce67fed2..0cda36509 100644
--- a/src/client/views/pdf/GPTPopup/GPTPopup.tsx
+++ b/src/client/views/pdf/GPTPopup/GPTPopup.tsx
@@ -4,7 +4,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
 import { action, observable } from 'mobx';
 import { observer } from 'mobx-react';
 import ReactLoading from 'react-loading';
-import Typist from 'react-typist';
+import { TypeAnimation } from 'react-type-animation';
 import { Doc } from '../../../../fields/Doc';
 import { DocUtils, Docs } from '../../../documents/Documents';
 import { Button, IconButton, Type } from 'browndash-components';
@@ -218,17 +218,18 @@ export class GPTPopup extends React.Component<GPTPopupProps> {
                 <div className="content-wrapper">
                     {!this.loading &&
                         (!this.done ? (
-                            <Typist
-                                key={this.text}
-                                avgTypingDelay={15}
-                                cursor={{ hideWhenDone: true }}
-                                onTypingDone={() => {
-                                    setTimeout(() => {
-                                        this.setDone(true);
-                                    }, 500);
-                                }}>
-                                {this.text}
-                            </Typist>
+                            <TypeAnimation
+                                speed={50}
+                                sequence={[
+                                    this.text,
+                                    () => {
+                                        setTimeout(() => {
+                                            this.setDone(true);
+                                        }, 500);
+                                    },
+                                ]}
+                                //cursor={{ hideWhenDone: true }}
+                            />
                         ) : (
                             this.text
                         ))}
-- 
cgit v1.2.3-70-g09d2

