pcm-agents 0.6.13 → 0.6.14

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.
Files changed (63) hide show
  1. package/dist/cjs/pcm-1zhanshi-mnms-modal_21.cjs.entry.js +7 -7
  2. package/dist/cjs/pcm-1zhanshi-mnms-modal_21.cjs.entry.js.map +1 -1
  3. package/dist/cjs/pcm-message.cjs.entry.js +2 -2
  4. package/dist/collection/collection-manifest.json +1 -1
  5. package/dist/collection/components/pcm-button/pcm-button.js +1 -1
  6. package/dist/collection/components/pcm-card/pcm-card.js +1 -1
  7. package/dist/collection/components/pcm-chat-message/pcm-chat-message.js +1 -1
  8. package/dist/collection/components/pcm-drawer/pcm-drawer.js +1 -1
  9. package/dist/collection/components/pcm-message/pcm-message.js +2 -2
  10. package/dist/collection/components/pcm-time-count-down/pcm-time-count-down.js +1 -1
  11. package/dist/collection/components/pcm-upload/pcm-upload.js +5 -4
  12. package/dist/collection/components/pcm-upload/pcm-upload.js.map +1 -1
  13. package/dist/components/{p-CuIvbaWY.js → p-BhwR2cJZ.js} +3 -3
  14. package/dist/components/{p-CuIvbaWY.js.map → p-BhwR2cJZ.js.map} +1 -1
  15. package/dist/components/{p-BywzltXy.js → p-Bo3oMYxm.js} +4 -4
  16. package/dist/components/{p-BywzltXy.js.map → p-Bo3oMYxm.js.map} +1 -1
  17. package/dist/components/{p-D0ZMoyH8.js → p-C4Jn_5ku.js} +3 -3
  18. package/dist/components/{p-D0ZMoyH8.js.map → p-C4Jn_5ku.js.map} +1 -1
  19. package/dist/components/{p-njngFX_n.js → p-CNH7m-is.js} +3 -3
  20. package/dist/components/{p-njngFX_n.js.map → p-CNH7m-is.js.map} +1 -1
  21. package/dist/components/{p-De3VHEUn.js → p-Cuuhw6Vs.js} +3 -3
  22. package/dist/components/{p-De3VHEUn.js.map → p-Cuuhw6Vs.js.map} +1 -1
  23. package/dist/components/{p-C2OsjtRx.js → p-DmiYlAP4.js} +6 -6
  24. package/dist/components/p-DmiYlAP4.js.map +1 -0
  25. package/dist/components/{p-RD3mwuBX.js → p-ct3wnlBQ.js} +3 -3
  26. package/dist/components/{p-RD3mwuBX.js.map → p-ct3wnlBQ.js.map} +1 -1
  27. package/dist/components/pcm-1zhanshi-mnms-modal.js +3 -3
  28. package/dist/components/pcm-app-chat-modal.js +1 -1
  29. package/dist/components/pcm-button.js +1 -1
  30. package/dist/components/pcm-card.js +1 -1
  31. package/dist/components/pcm-chat-message.js +1 -1
  32. package/dist/components/pcm-drawer.js +1 -1
  33. package/dist/components/pcm-hr-chat-modal.js +1 -1
  34. package/dist/components/pcm-htws-modal.js +3 -3
  35. package/dist/components/pcm-hyzj-modal.js +3 -3
  36. package/dist/components/pcm-jd-modal.js +3 -3
  37. package/dist/components/pcm-jlpp-modal.js +3 -3
  38. package/dist/components/pcm-message.js +2 -2
  39. package/dist/components/pcm-mnct-modal.js +3 -3
  40. package/dist/components/pcm-mnms-modal.js +7 -7
  41. package/dist/components/pcm-mnms-video-modal.js +3 -3
  42. package/dist/components/pcm-mnms-zp-modal.js +7 -7
  43. package/dist/components/pcm-mobile-input-btn.js +1 -1
  44. package/dist/components/pcm-mobile-upload-btn.js +1 -1
  45. package/dist/components/pcm-msbg-modal.js +3 -3
  46. package/dist/components/pcm-qgqjl-modal.js +3 -3
  47. package/dist/components/pcm-time-count-down.js +1 -1
  48. package/dist/components/pcm-upload.js +1 -1
  49. package/dist/components/pcm-zsk-chat-modal.js +1 -1
  50. package/dist/components/pcm-zygh-modal.js +3 -3
  51. package/dist/esm/pcm-1zhanshi-mnms-modal_21.entry.js +7 -7
  52. package/dist/esm/pcm-1zhanshi-mnms-modal_21.entry.js.map +1 -1
  53. package/dist/esm/pcm-message.entry.js +2 -2
  54. package/dist/pcm-agents/{p-f5f96853.entry.js → p-a622bd17.entry.js} +3 -3
  55. package/dist/pcm-agents/{p-f5f96853.entry.js.map → p-a622bd17.entry.js.map} +1 -1
  56. package/dist/pcm-agents/{p-7a582f00.entry.js → p-e4126a60.entry.js} +2 -2
  57. package/dist/pcm-agents/pcm-agents.esm.js +1 -1
  58. package/dist/types/components/pcm-upload/pcm-upload.d.ts +4 -0
  59. package/dist/types/components.d.ts +2 -0
  60. package/package.json +1 -1
  61. package/dist/components/p-C2OsjtRx.js.map +0 -1
  62. package/dist/types/components/pcm-upload/type.d.ts +0 -4
  63. /package/dist/pcm-agents/{p-7a582f00.entry.js.map → p-e4126a60.entry.js.map} +0 -0
@@ -4307,7 +4307,7 @@ const PcmButton = class {
4307
4307
  if (this.borderStyle) {
4308
4308
  customStyle['borderStyle'] = this.borderStyle;
4309
4309
  }
4310
- return (index.h("button", { key: '370d4d7a0676a5d6abdeec7c14b3d15ba3ce9410', class: Object.keys(classes).filter(key => classes[key]).join(' '), style: customStyle, disabled: this.disabled, type: "button" }, this.loading && (index.h("span", { key: 'c9624a3e95ffb9a325fd3b606689b9176e82930c', class: "loading-icon" })), this.icon && !this.loading && (index.h("span", { key: 'd2061865c930901f83b0ffc2adc535c13a8c6220', class: "button-icon" }, index.h("img", { key: '63a726785f5ffe74283915bd69b26a8552c1a593', src: this.icon, alt: "" }))), index.h("slot", { key: 'e57fecba739bce61f48ffc18c052a5b5923e63d5' })));
4310
+ return (index.h("button", { key: '4b096e3c2d0d09d094fb278588cda42d7d8a687c', class: Object.keys(classes).filter(key => classes[key]).join(' '), style: customStyle, disabled: this.disabled, type: "button" }, this.loading && (index.h("span", { key: 'c572d8bdcb6dccc1804ff4ca3e368b5ff96fe373', class: "loading-icon" })), this.icon && !this.loading && (index.h("span", { key: '9ed5314d2aa0a2e795f737faeced991fdd26745b', class: "button-icon" }, index.h("img", { key: 'aac2c4c79a966dbcf05952cd8e71f7f47a791e0a', src: this.icon, alt: "" }))), index.h("slot", { key: '04b9d066882055258d1d023cb12e6ac279bdc9a2' })));
4311
4311
  }
4312
4312
  };
4313
4313
  PcmButton.style = pcmButtonCss;
@@ -4452,7 +4452,7 @@ const PcmCard = class {
4452
4452
  const starsCount = this.botData?.follow_count || 0;
4453
4453
  const usageCount = this.botData?.view_count || 0;
4454
4454
 
4455
- return (index.h("div", { key: '97827af60487bae41aeb80fcea46d8e2dd4b072a', class: "card-container" }, this.loading ? (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("div", null, "\u52A0\u8F7D\u4E2D..."))) : this.error ? (index.h("div", { class: "error-container" }, index.h("div", { class: "error-icon" }, "!"), index.h("div", { class: "error-message" }, this.error))) : (index.h("div", null, index.h("div", { class: "card-header" }, icon && (index.h("div", { class: "card-icon" }, index.h("img", { src: icon, alt: title }))), index.h("div", { class: "card-info" }, index.h("div", { class: "title-row" }, index.h("div", { class: "title-wrapper" }, index.h("div", { class: "card-title" }, title)), this.showChatTag && hasChatTag && index.h("div", { class: "chat-tag" }, hasChatTag)), authorName && (index.h("div", { class: "author-row" }, authorAvatar && (index.h("img", { class: "author-avatar", src: authorAvatar, alt: authorName })), index.h("div", { class: "author-name" }, authorName))), desc && (index.h("div", { class: "card-description" }, desc)))), index.h("div", { class: "card-footer" }, index.h("div", { class: "stats-container" }, index.h("div", { class: "stat-item" }, index.h("span", { class: "stat-icon user-icon" }), index.h("div", { class: "stat-value" }, usersCount)), index.h("div", { class: "stat-item" }, index.h("span", { class: "stat-icon star-icon" }), index.h("div", { class: "stat-value" }, starsCount)), index.h("div", { class: "stat-item" }, index.h("span", { class: "stat-icon video-icon" }), index.h("div", { class: "stat-value" }, usageCount))), index.h("div", { class: "use-button" }, this.useButtonText || '立即使用'))))));
4455
+ return (index.h("div", { key: '194c26432df88b23674d3666b61669299b26646a', class: "card-container" }, this.loading ? (index.h("div", { class: "loading-container" }, index.h("div", { class: "loading-spinner" }), index.h("div", null, "\u52A0\u8F7D\u4E2D..."))) : this.error ? (index.h("div", { class: "error-container" }, index.h("div", { class: "error-icon" }, "!"), index.h("div", { class: "error-message" }, this.error))) : (index.h("div", null, index.h("div", { class: "card-header" }, icon && (index.h("div", { class: "card-icon" }, index.h("img", { src: icon, alt: title }))), index.h("div", { class: "card-info" }, index.h("div", { class: "title-row" }, index.h("div", { class: "title-wrapper" }, index.h("div", { class: "card-title" }, title)), this.showChatTag && hasChatTag && index.h("div", { class: "chat-tag" }, hasChatTag)), authorName && (index.h("div", { class: "author-row" }, authorAvatar && (index.h("img", { class: "author-avatar", src: authorAvatar, alt: authorName })), index.h("div", { class: "author-name" }, authorName))), desc && (index.h("div", { class: "card-description" }, desc)))), index.h("div", { class: "card-footer" }, index.h("div", { class: "stats-container" }, index.h("div", { class: "stat-item" }, index.h("span", { class: "stat-icon user-icon" }), index.h("div", { class: "stat-value" }, usersCount)), index.h("div", { class: "stat-item" }, index.h("span", { class: "stat-icon star-icon" }), index.h("div", { class: "stat-value" }, starsCount)), index.h("div", { class: "stat-item" }, index.h("span", { class: "stat-icon video-icon" }), index.h("div", { class: "stat-value" }, usageCount))), index.h("div", { class: "use-button" }, this.useButtonText || '立即使用'))))));
4456
4456
  }
4457
4457
  static get watchers() { return {
4458
4458
  "botId": ["watchBotIdHandler"],
@@ -5015,7 +5015,7 @@ const ChatMessageComponent = class {
5015
5015
  }
5016
5016
  }
5017
5017
  render() {
5018
- return (index.h("div", { key: 'c337dbb59e5236ac112554ec34da6355e63d806f', class: "message-round" }, this.renderUserMessage(), this.renderAssistantMessage()));
5018
+ return (index.h("div", { key: '553b744ac1b04d25638c4019142fe41c34d472e0', class: "message-round" }, this.renderUserMessage(), this.renderAssistantMessage()));
5019
5019
  }
5020
5020
  };
5021
5021
  ChatMessageComponent.style = markdownCss + pcmChatMessageCss;
@@ -5147,7 +5147,7 @@ const PcmDrawer = class {
5147
5147
  const maskStyle = {
5148
5148
  zIndex: `${this.zIndex}`,
5149
5149
  };
5150
- return (index.h("div", { key: '5ca0630697aaf594d75095a631163a19ed8e4a9b', class: { 'drawer-container': true, 'drawer-open': this.isOpen } }, this.mask && (index.h("div", { key: '59e9f9f1d48dca079d76ff3ac4f3d4e2f7132bae', class: { 'drawer-mask': true, 'mask-visible': this.isOpen }, style: maskStyle, onClick: this.handleMaskClick })), index.h("div", { key: 'c9138ac3ff9139d2a199abba971481842eb78ee3', class: { 'drawer-content': true, 'drawer-content-visible': this.isOpen }, style: drawerStyle }, index.h("div", { key: 'fbcffe58c697b95b188609733afafc1531a87e5f', class: "drawer-header" }, this.drawerTitle && index.h("div", { key: '7f57ebafc446670961a05c0714a25f2650183e32', class: "drawer-title" }, this.drawerTitle), this.closable && (index.h("button", { key: '9d6ec03e600639be9c44fd87da0687b1777d0d92', class: "drawer-close", onClick: this.handleClose }, index.h("svg", { key: '8960f8ce5325339ed8c06b40043f19e17c45aa52', viewBox: "64 64 896 896", focusable: "false", "data-icon": "close", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true" }, index.h("path", { key: '0dede2ac0608601edde40bee26720ee938a8f7d9', d: "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" }))))), index.h("div", { key: '28d0ee3ededd2b7ee4b00747acc820227629f91d', class: "drawer-body" }, index.h("slot", { key: 'bbbd99d68c216d10afa4458fe9e4f384f17cb563' })))));
5150
+ return (index.h("div", { key: '56a610d12fcf6f348ebdfe377e2d644c3dfa03ca', class: { 'drawer-container': true, 'drawer-open': this.isOpen } }, this.mask && (index.h("div", { key: '225f4f95092ac2384d66844bd403067f2736da5c', class: { 'drawer-mask': true, 'mask-visible': this.isOpen }, style: maskStyle, onClick: this.handleMaskClick })), index.h("div", { key: 'ffd236bd8f68c0915606d82b5b533d23575485c5', class: { 'drawer-content': true, 'drawer-content-visible': this.isOpen }, style: drawerStyle }, index.h("div", { key: '7408e377e401a8de90e4c10ff0ac17c59241d695', class: "drawer-header" }, this.drawerTitle && index.h("div", { key: 'b250696e26e119af9dd9f01e740e70805225759f', class: "drawer-title" }, this.drawerTitle), this.closable && (index.h("button", { key: 'ca1af408e8b7dc4e73389afe02082d10912912f8', class: "drawer-close", onClick: this.handleClose }, index.h("svg", { key: '67b3d4507c82c364c78a62b4c6364ce46182a32a', viewBox: "64 64 896 896", focusable: "false", "data-icon": "close", width: "1em", height: "1em", fill: "currentColor", "aria-hidden": "true" }, index.h("path", { key: '0d7841fc5efb204f9a7c26946d475956e1801520', d: "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" }))))), index.h("div", { key: '49fcc8d76c1c4b183d355ecefe79b4929d8abbbf', class: "drawer-body" }, index.h("slot", { key: 'f2505a1d81de02b858e43152384e19f0497a5dff' })))));
5151
5151
  }
5152
5152
  static get watchers() { return {
5153
5153
  "isOpen": ["visibleChanged"]
@@ -11867,7 +11867,7 @@ const TimeCountDown = class {
11867
11867
  }
11868
11868
  }
11869
11869
  render() {
11870
- return index.h("span", { key: '88065e0a7955b893f71110ae8389ee1d1d37bdf6' }, timeToHMS(this.currentTime));
11870
+ return index.h("span", { key: '6d2d0c0f8b921ec6cbe24cf1dbe832c3522b12ff' }, timeToHMS(this.currentTime));
11871
11871
  }
11872
11872
  static get watchers() { return {
11873
11873
  "currentTime": ["watchStateHandler"]
@@ -12025,12 +12025,12 @@ const PcmUpload = class {
12025
12025
  } }), index.h("div", { class: "upload-placeholder", onClick: this.handleUploadClick }, index.h("img", { src: 'https://pub.pincaimao.com/static/web/images/home/i_upload.png' }), index.h("p", { class: 'upload-text' }, "\u70B9\u51FB\u4E0A\u4F20\u7B80\u5386"), index.h("p", { class: "upload-hint" }, !!this.acceptFileSuffixList?.length && index.h("p", null, "\u652F\u6301 ", this.acceptFileSuffixList.join('、'), " \u683C\u5F0F\u3002"), !!this.maxFileSize && this.maxFileSize !== Infinity && index.h("p", null, "\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ", index$1.formatFileSize(this.maxFileSize) ?? '', "\u3002"), !!this.maxFileCount && this.maxFileCount !== Infinity && index.h("p", null, "\u6700\u591A\u4E0A\u4F20 ", this.maxFileCount, " \u4E2A\u6587\u4EF6\u3002"))));
12026
12026
  }
12027
12027
  render() {
12028
- return (index.h("div", { key: 'faec753d60f8c6bfb1e3996b67552f8a12155c07' }, index.h("div", { key: '55e1e83f962dc17c033885869d8cb7e73b65bb95', class: "resume-upload-section" }, index.h("label", { key: '80cb959d043a015267bfb55c20bae44afd509ebd' }, this.labelText), index.h("div", { key: 'e7aa8c65761f945287de858ea7b3ad036fb4cb6d', class: "upload-area" }, index.h("div", { key: '48bef805f845bdd6e6a542bccbc1d2b8d30b4a02' }, this.selectedFiles?.map?.((item, index$2) => {
12028
+ return (index.h("div", { key: '14f85b7a2346b5c508b89db986fc22fac70d9771' }, index.h("div", { key: '320abac149e334939d8e4dcf2caf8abe56fbdbcd', class: "resume-upload-section" }, index.h("label", { key: '1c2a24d7c0cc5dbaacb40d9485e39266de9a0dc1' }, this.labelText), index.h("div", { key: 'd1f916d4c5475b74df1108e7075b0ba782fe0566', class: "upload-area" }, index.h("div", { key: 'b87a94d0d6e6297deadbee1cea1c75fdd0714076' }, this.selectedFiles?.map?.((item, index$2) => {
12029
12029
  return index.h("div", { class: "file-item" }, index.h("div", { class: "file-item-content" }, index.h("span", { class: "file-icon" }, "\uD83D\uDCDD"), index.h("span", { class: "file-name", style: item.state === index$1.FileUploadState.Failed ? { color: 'red', textDecoration: 'line-through' } : undefined }, item?.file_name), item.state === index$1.FileUploadState.Failed && index.h("span", { style: { color: 'red', marginLeft: '4px' } }, "(", item.error?.message ?? '上传失败', ")")), index.h("button", { class: "remove-file", onClick: (e) => {
12030
12030
  e.stopPropagation();
12031
12031
  this.selectedFiles = this.selectedFiles?.filter((_, itemIndex) => index$2 !== itemIndex);
12032
12032
  } }, "\u00D7"));
12033
- })), this.multiple ? index.h("div", null, (this.selectedFiles?.length ?? 0) < this.maxFileCount && this.uploadBtn()) : index.h("div", null, !this.selectedFiles?.length && this.uploadBtn()))), index.h("input", { key: '480b2f35655d4cdb5a99c058e4b894baf0e4c6a8', type: "file", class: "file-input", onChange: this.handleFileChange })));
12033
+ })), this.multiple ? index.h("div", null, (this.selectedFiles?.length ?? 0) < this.maxFileCount && this.uploadBtn()) : index.h("div", null, !this.selectedFiles?.length && this.uploadBtn()))), index.h("input", { key: '072e157f1b0e3cf35d7d57d1fdc926d4a3224e33', type: "file", class: "file-input", onChange: this.handleFileChange })));
12034
12034
  }
12035
12035
  };
12036
12036
  PcmUpload.style = pcmUploadCss + globalCss$1;