pcm-agents 0.6.18 → 0.6.19
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/cjs/pcm-1zhanshi-mnms-modal_24.cjs.entry.js +1 -1
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js +1 -1
- package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js.map +1 -1
- package/dist/components/{p-CoIi_GSu.js → p-WT2uDlV1.js} +3 -3
- package/dist/components/{p-CoIi_GSu.js.map → p-WT2uDlV1.js.map} +1 -1
- package/dist/components/pcm-1zhanshi-mnms-modal.js +1 -1
- package/dist/components/pcm-app-chat-modal.js +1 -1
- package/dist/components/pcm-htws-modal.js +1 -1
- package/dist/components/pcm-hyzj-modal.js +1 -1
- package/dist/components/pcm-jd-modal.js +1 -1
- package/dist/components/pcm-jlpp-modal.js +1 -1
- package/dist/components/pcm-mnct-modal.js +1 -1
- package/dist/components/pcm-mnms-modal.js +1 -1
- package/dist/components/pcm-mnms-video-modal.js +1 -1
- package/dist/components/pcm-mnms-zp-modal.js +1 -1
- package/dist/components/pcm-msbg-modal.js +1 -1
- package/dist/components/pcm-qgqjl-modal.js +1 -1
- package/dist/components/pcm-zygh-modal.js +1 -1
- package/dist/esm/pcm-1zhanshi-mnms-modal_24.entry.js +1 -1
- package/dist/pcm-agents/{p-d45482d1.entry.js → p-ce24043c.entry.js} +2 -2
- package/dist/pcm-agents/{p-d45482d1.entry.js.map → p-ce24043c.entry.js.map} +1 -1
- package/dist/pcm-agents/pcm-agents.esm.js +1 -1
- package/package.json +1 -1
|
@@ -4222,7 +4222,7 @@ const ChatAPPModal = class {
|
|
|
4222
4222
|
return (index.h("div", { class: overlayClass, style: modalStyle }, index.h("div", { class: containerClass }, this.isShowHeader && (index.h("div", { class: "modal-header" }, index.h("div", { class: "header-left" }, this.icon && index.h("img", { src: this.icon, class: "header-icon", alt: "\u5E94\u7528\u56FE\u6807" }), index.h("div", null, this.modalTitle)), this.isNeedClose && (index.h("button", { class: "close-button", onClick: this.handleClose }, index.h("span", null, "\u00D7"))))), index.h("div", { class: "chat-container" }, index.h("div", { class: "chat-history", onScroll: this.handleScroll, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd, onWheel: this.handleWheel }, this.isLoadingHistory ? (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("p", null, "\u52A0\u8F7D\u5386\u53F2\u6D88\u606F\u4E2D..."))) : (index.h("div", null, this.messages.map((message) => (index.h("div", { id: `message_${message.id}`, key: message.id }, index.h("pcm-chat-message", { botId: this.botId, message: message, userAvatar: this.userAvatar, assistantAvatar: effectiveAssistantAvatar, showCopyButton: this.showCopyButton, showFeedbackButtons: this.showFeedbackButtons, filePreviewMode: this.filePreviewMode, onFilePreviewRequest: this.handleFilePreviewRequest, onMessageChange: (event) => {
|
|
4223
4223
|
const updatedMessages = this.messages.map(msg => msg.id === message.id ? { ...msg, ...event.detail } : msg);
|
|
4224
4224
|
this.messages = updatedMessages;
|
|
4225
|
-
} })))), this.currentStreamingMessage && (index.h("div", { id: `message_${this.currentStreamingMessage.id}` }, index.h("pcm-chat-message", { botId: this.botId, message: this.currentStreamingMessage, userAvatar: this.userAvatar, assistantAvatar: effectiveAssistantAvatar, showCopyButton: this.showCopyButton, showFeedbackButtons: this.showFeedbackButtons, filePreviewMode: this.filePreviewMode, onFilePreviewRequest: this.handleFilePreviewRequest }))), this.messages.length === 0 && !this.currentStreamingMessage && (index.h("div", { class: "empty-state" }, index.h("p", null, "\
|
|
4225
|
+
} })))), this.currentStreamingMessage && (index.h("div", { id: `message_${this.currentStreamingMessage.id}` }, index.h("pcm-chat-message", { botId: this.botId, message: this.currentStreamingMessage, userAvatar: this.userAvatar, assistantAvatar: effectiveAssistantAvatar, showCopyButton: this.showCopyButton, showFeedbackButtons: this.showFeedbackButtons, filePreviewMode: this.filePreviewMode, onFilePreviewRequest: this.handleFilePreviewRequest }))), this.messages.length === 0 && !this.currentStreamingMessage && (index.h("div", { class: "empty-state" }, index.h("p", null, "\u4F60\u597D\uFF0C\u6211\u662F\u8058\u624D\u732B\uFF0C\u4E00\u4E2AAI\u52A9\u624B\uFF0C\u5F88\u9AD8\u5174\u8BA4\u8BC6\u4F60...")))))), index.h("div", { class: "recording-section" }, index.h("div", { class: "recording-container" }, this.showWorkspaceHistory && (index.h("div", { class: "workspace-section" }, index.h("div", { class: "workspace-toolbar" }, index.h("button", { class: "workspace-button history-button", onClick: () => this.handleHistoryClick() }, index.h("span", null, "\u5386\u53F2\u4F1A\u8BDD"))))), this.interviewMode === 'text' && (renderTextInputArea()), this.interviewMode === 'video' && (index.h("div", { class: "video-container" }, index.h("div", { class: "video-area" }, this.showRecordingUI ? (renderVideoPreview()) : (index.h("div", { class: "video-preview placeholder" }, renderPlaceholderStatus()))), index.h("div", { class: "recording-controls" }, this.showRecordingUI ? (index.h("button", { class: "stop-recording-button", onClick: () => this.handleStopRecording() }, "\u5B8C\u6210\u672C\u9898\u56DE\u7B54")) : (index.h("div", { class: "waiting-message" }, (() => {
|
|
4226
4226
|
// 显示播放按钮(当不自动播放且有音频URL时)
|
|
4227
4227
|
if (!this.enableVoice && this.audioUrl && !this.isPlayingAudio) {
|
|
4228
4228
|
return (index.h("div", { class: "play-audio-container", onClick: this.handlePlayAudio }, index.h("p", null, index.h("svg", { viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor", style: { verticalAlign: 'middle', marginRight: '8px' } }, index.h("path", { d: "M8 5v14l11-7z" })), index.h("span", { style: { verticalAlign: 'middle' } }, "\u64AD\u653E\u9898\u76EE"))));
|
|
@@ -1647,7 +1647,7 @@ export class ChatAPPModal {
|
|
|
1647
1647
|
return (h("div", { class: overlayClass, style: modalStyle }, h("div", { class: containerClass }, this.isShowHeader && (h("div", { class: "modal-header" }, h("div", { class: "header-left" }, this.icon && h("img", { src: this.icon, class: "header-icon", alt: "\u5E94\u7528\u56FE\u6807" }), h("div", null, this.modalTitle)), this.isNeedClose && (h("button", { class: "close-button", onClick: this.handleClose }, h("span", null, "\u00D7"))))), h("div", { class: "chat-container" }, h("div", { class: "chat-history", onScroll: this.handleScroll, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd, onWheel: this.handleWheel }, this.isLoadingHistory ? (h("div", { class: "loading-container" }, h("div", { class: "loading-spinner" }), h("p", null, "\u52A0\u8F7D\u5386\u53F2\u6D88\u606F\u4E2D..."))) : (h("div", null, this.messages.map((message) => (h("div", { id: `message_${message.id}`, key: message.id }, h("pcm-chat-message", { botId: this.botId, message: message, userAvatar: this.userAvatar, assistantAvatar: effectiveAssistantAvatar, showCopyButton: this.showCopyButton, showFeedbackButtons: this.showFeedbackButtons, filePreviewMode: this.filePreviewMode, onFilePreviewRequest: this.handleFilePreviewRequest, onMessageChange: (event) => {
|
|
1648
1648
|
const updatedMessages = this.messages.map(msg => msg.id === message.id ? { ...msg, ...event.detail } : msg);
|
|
1649
1649
|
this.messages = updatedMessages;
|
|
1650
|
-
} })))), this.currentStreamingMessage && (h("div", { id: `message_${this.currentStreamingMessage.id}` }, h("pcm-chat-message", { botId: this.botId, message: this.currentStreamingMessage, userAvatar: this.userAvatar, assistantAvatar: effectiveAssistantAvatar, showCopyButton: this.showCopyButton, showFeedbackButtons: this.showFeedbackButtons, filePreviewMode: this.filePreviewMode, onFilePreviewRequest: this.handleFilePreviewRequest }))), this.messages.length === 0 && !this.currentStreamingMessage && (h("div", { class: "empty-state" }, h("p", null, "\
|
|
1650
|
+
} })))), this.currentStreamingMessage && (h("div", { id: `message_${this.currentStreamingMessage.id}` }, h("pcm-chat-message", { botId: this.botId, message: this.currentStreamingMessage, userAvatar: this.userAvatar, assistantAvatar: effectiveAssistantAvatar, showCopyButton: this.showCopyButton, showFeedbackButtons: this.showFeedbackButtons, filePreviewMode: this.filePreviewMode, onFilePreviewRequest: this.handleFilePreviewRequest }))), this.messages.length === 0 && !this.currentStreamingMessage && (h("div", { class: "empty-state" }, h("p", null, "\u4F60\u597D\uFF0C\u6211\u662F\u8058\u624D\u732B\uFF0C\u4E00\u4E2AAI\u52A9\u624B\uFF0C\u5F88\u9AD8\u5174\u8BA4\u8BC6\u4F60...")))))), h("div", { class: "recording-section" }, h("div", { class: "recording-container" }, this.showWorkspaceHistory && (h("div", { class: "workspace-section" }, h("div", { class: "workspace-toolbar" }, h("button", { class: "workspace-button history-button", onClick: () => this.handleHistoryClick() }, h("span", null, "\u5386\u53F2\u4F1A\u8BDD"))))), this.interviewMode === 'text' && (renderTextInputArea()), this.interviewMode === 'video' && (h("div", { class: "video-container" }, h("div", { class: "video-area" }, this.showRecordingUI ? (renderVideoPreview()) : (h("div", { class: "video-preview placeholder" }, renderPlaceholderStatus()))), h("div", { class: "recording-controls" }, this.showRecordingUI ? (h("button", { class: "stop-recording-button", onClick: () => this.handleStopRecording() }, "\u5B8C\u6210\u672C\u9898\u56DE\u7B54")) : (h("div", { class: "waiting-message" }, (() => {
|
|
1651
1651
|
// 显示播放按钮(当不自动播放且有音频URL时)
|
|
1652
1652
|
if (!this.enableVoice && this.audioUrl && !this.isPlayingAudio) {
|
|
1653
1653
|
return (h("div", { class: "play-audio-container", onClick: this.handlePlayAudio }, h("p", null, h("svg", { viewBox: "0 0 24 24", width: "24", height: "24", fill: "currentColor", style: { verticalAlign: 'middle', marginRight: '8px' } }, h("path", { d: "M8 5v14l11-7z" })), h("span", { style: { verticalAlign: 'middle' } }, "\u64AD\u653E\u9898\u76EE"))));
|