@hivegpt/hiveai-angular 0.0.233 → 0.0.234
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/bundles/hivegpt-hiveai-angular.umd.js +26 -17
- package/bundles/hivegpt-hiveai-angular.umd.js.map +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js +1 -1
- package/bundles/hivegpt-hiveai-angular.umd.min.js.map +1 -1
- package/environments/environment.d.ts.map +1 -1
- package/esm2015/environments/environment.js +1 -1
- package/esm2015/hivegpt-hiveai-angular.js +1 -1
- package/esm2015/lib/components/NotificationSocket.js +1 -1
- package/esm2015/lib/components/chat-drawer/chat-drawer.component.js +27 -18
- package/esm2015/lib/components/chatbot/chatbot.component.js +1 -1
- package/esm2015/lib/components/conversation.service.js +1 -1
- package/esm2015/lib/components/socket-service.service.js +1 -1
- package/esm2015/lib/components/video-player/video-player.component.js +1 -1
- package/esm2015/lib/hivegpt.module.js +1 -1
- package/esm2015/lib/models/video.js +1 -1
- package/esm2015/lib/pipes/safe-html.pipe.js +1 -1
- package/esm2015/lib/utils/utils.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/hivegpt-hiveai-angular.js +26 -17
- package/fesm2015/hivegpt-hiveai-angular.js.map +1 -1
- package/hivegpt-hiveai-angular.d.ts.map +1 -1
- package/lib/components/NotificationSocket.d.ts.map +1 -1
- package/lib/components/chat-drawer/chat-drawer.component.d.ts.map +1 -1
- package/lib/components/chatbot/chatbot.component.d.ts.map +1 -1
- package/lib/components/conversation.service.d.ts.map +1 -1
- package/lib/components/socket-service.service.d.ts.map +1 -1
- package/lib/components/video-player/video-player.component.d.ts.map +1 -1
- package/lib/hivegpt.module.d.ts.map +1 -1
- package/lib/models/video.d.ts.map +1 -1
- package/lib/pipes/safe-html.pipe.d.ts.map +1 -1
- package/lib/utils/utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts.map +1 -1
|
@@ -1485,25 +1485,34 @@
|
|
|
1485
1485
|
// }
|
|
1486
1486
|
ChatDrawerComponent.prototype.handleCopyClick = function (index) {
|
|
1487
1487
|
var _this = this;
|
|
1488
|
-
//
|
|
1488
|
+
// Copy the message to the clipboard
|
|
1489
1489
|
var contentToCopy = this.chatLog[index].message;
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
//
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1490
|
+
var textArea = document.createElement('textarea');
|
|
1491
|
+
textArea.style.position = 'fixed';
|
|
1492
|
+
textArea.style.opacity = '0';
|
|
1493
|
+
textArea.value = contentToCopy;
|
|
1494
|
+
// Append the textarea to the body
|
|
1495
|
+
document.body.appendChild(textArea);
|
|
1496
|
+
// Select the content and copy it to the clipboard
|
|
1497
|
+
textArea.select();
|
|
1498
|
+
document.execCommand('copy');
|
|
1499
|
+
this.chatLog[index].copied = true;
|
|
1500
|
+
this.cdr.detectChanges();
|
|
1501
|
+
// Reset the copied state after a delay
|
|
1502
|
+
setTimeout(function () {
|
|
1503
|
+
_this.chatLog[index].copied = false;
|
|
1500
1504
|
_this.cdr.detectChanges();
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1505
|
+
}, 2000); // Reset after 2 seconds
|
|
1506
|
+
// navigator.clipboard.writeText(contentToCopy).then(() => {
|
|
1507
|
+
// // Indicate that the message was copied
|
|
1508
|
+
// this.chatLog[index].copied = true;
|
|
1509
|
+
// this.cdr.detectChanges();
|
|
1510
|
+
// // Reset the copied state after a delay
|
|
1511
|
+
// setTimeout(() => {
|
|
1512
|
+
// this.chatLog[index].copied = false;
|
|
1513
|
+
// this.cdr.detectChanges();
|
|
1514
|
+
// }, 2000); // Reset after 2 seconds
|
|
1515
|
+
// });
|
|
1507
1516
|
};
|
|
1508
1517
|
ChatDrawerComponent.prototype.scrollToBottom = function () {
|
|
1509
1518
|
var _this = this;
|