@hellobetterdigitalnz/selwynui 0.0.1-128 → 0.0.1-129

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellobetterdigitalnz/selwynui",
3
- "version": "0.0.1-128",
3
+ "version": "0.0.1-129",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -34,9 +34,12 @@ const ChatItineraryBlock = (props: ChatItineraryBlockProps) => {
34
34
 
35
35
  const handleSend = () => {
36
36
  if (!text.trim()) return;
37
+ console.log(isStreaming);
37
38
  if (isStreaming) {
39
+ console.log('ON HOLD');
38
40
  onStopStream?.();
39
41
  } else {
42
+ console.log('SHOULD PASS');
40
43
  setShowChat(true);
41
44
  onSend?.(text?.trim());
42
45
  setText("");
@@ -83,7 +86,7 @@ const ChatItineraryBlock = (props: ChatItineraryBlockProps) => {
83
86
  onKeyDown={handleKeyDown}
84
87
  />
85
88
  <button className={styles.sendBtn} onClick={handleSend}>
86
- <span>plan my trip</span>
89
+ <span>Plan my trip</span>
87
90
  <PaperPlaneTilt type="fill"/>
88
91
  </button>
89
92
  </div>
@@ -113,7 +116,6 @@ const ChatItineraryBlock = (props: ChatItineraryBlockProps) => {
113
116
  onClick={handleSend}>
114
117
  {!!isStreaming && <Stop type="fill"/>}
115
118
  {!isStreaming && <PaperPlaneTilt type="fill"/>}
116
-
117
119
  </button>
118
120
  </div>
119
121
  </div>