llmasaservice-ui 0.9.5 → 0.9.6
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.js +18 -16
- package/dist/index.mjs +18 -16
- package/package.json +1 -1
- package/src/ChatPanel.tsx +18 -16
package/dist/index.js
CHANGED
|
@@ -500,22 +500,24 @@ var ChatPanel = ({
|
|
|
500
500
|
}
|
|
501
501
|
if (needsUpdate) {
|
|
502
502
|
ensureConversation().then((convId) => {
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
503
|
+
if (convId && convId !== "") {
|
|
504
|
+
console.log(
|
|
505
|
+
"updating conversation with customer id and email",
|
|
506
|
+
convId,
|
|
507
|
+
currentCustomer
|
|
508
|
+
);
|
|
509
|
+
const r = fetch(`${publicAPIUrl}/conversations/${convId}`, {
|
|
510
|
+
method: "POST",
|
|
511
|
+
headers: {
|
|
512
|
+
"Content-Type": "application/json"
|
|
513
|
+
},
|
|
514
|
+
body: JSON.stringify({
|
|
515
|
+
project_id: project_id != null ? project_id : "",
|
|
516
|
+
customerId: updatedValues.customer_id,
|
|
517
|
+
customerEmail: updatedValues.customer_user_email
|
|
518
|
+
})
|
|
519
|
+
});
|
|
520
|
+
}
|
|
519
521
|
});
|
|
520
522
|
setCurrentCustomer(updatedValues);
|
|
521
523
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -466,22 +466,24 @@ var ChatPanel = ({
|
|
|
466
466
|
}
|
|
467
467
|
if (needsUpdate) {
|
|
468
468
|
ensureConversation().then((convId) => {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
469
|
+
if (convId && convId !== "") {
|
|
470
|
+
console.log(
|
|
471
|
+
"updating conversation with customer id and email",
|
|
472
|
+
convId,
|
|
473
|
+
currentCustomer
|
|
474
|
+
);
|
|
475
|
+
const r = fetch(`${publicAPIUrl}/conversations/${convId}`, {
|
|
476
|
+
method: "POST",
|
|
477
|
+
headers: {
|
|
478
|
+
"Content-Type": "application/json"
|
|
479
|
+
},
|
|
480
|
+
body: JSON.stringify({
|
|
481
|
+
project_id: project_id != null ? project_id : "",
|
|
482
|
+
customerId: updatedValues.customer_id,
|
|
483
|
+
customerEmail: updatedValues.customer_user_email
|
|
484
|
+
})
|
|
485
|
+
});
|
|
486
|
+
}
|
|
485
487
|
});
|
|
486
488
|
setCurrentCustomer(updatedValues);
|
|
487
489
|
}
|
package/package.json
CHANGED
package/src/ChatPanel.tsx
CHANGED
|
@@ -510,23 +510,25 @@ const ChatPanel: React.FC<ChatPanelProps & ExtraProps> = ({
|
|
|
510
510
|
if (needsUpdate) {
|
|
511
511
|
// update the customer id and email in the conversation
|
|
512
512
|
ensureConversation().then((convId) => {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
513
|
+
if (convId && convId !== "") {
|
|
514
|
+
console.log(
|
|
515
|
+
"updating conversation with customer id and email",
|
|
516
|
+
convId,
|
|
517
|
+
currentCustomer
|
|
518
|
+
);
|
|
518
519
|
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
520
|
+
const r = fetch(`${publicAPIUrl}/conversations/${convId}`, {
|
|
521
|
+
method: "POST",
|
|
522
|
+
headers: {
|
|
523
|
+
"Content-Type": "application/json",
|
|
524
|
+
},
|
|
525
|
+
body: JSON.stringify({
|
|
526
|
+
project_id: project_id ?? "",
|
|
527
|
+
customerId: updatedValues.customer_id,
|
|
528
|
+
customerEmail: updatedValues.customer_user_email,
|
|
529
|
+
}),
|
|
530
|
+
});
|
|
531
|
+
}
|
|
530
532
|
});
|
|
531
533
|
|
|
532
534
|
setCurrentCustomer(updatedValues);
|