pcm-agents 0.3.2 → 0.3.3

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 (104) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{index-BFPEnLbS.js → index-RmBfqEV7.js} +4 -3
  3. package/dist/cjs/index-RmBfqEV7.js.map +1 -0
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/my-component.cjs.entry.js +2 -2
  7. package/dist/cjs/my-component.cjs.entry.js.map +1 -1
  8. package/dist/cjs/my-component.entry.cjs.js.map +1 -1
  9. package/dist/cjs/pcm-agents.cjs.js +1 -1
  10. package/dist/cjs/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpp-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.cjs.js.map +1 -0
  11. package/dist/cjs/pcm-app-chat-modal_7.cjs.entry.js +56 -53
  12. package/dist/cjs/pcm-app-chat-modal_7.cjs.entry.js.map +1 -1
  13. package/dist/cjs/pcm-chat-modal.cjs.entry.js +1 -1
  14. package/dist/collection/collection-manifest.json +1 -1
  15. package/dist/collection/components/my-component/my-component.css +3 -3
  16. package/dist/collection/components/my-component/my-component.js +1 -1
  17. package/dist/collection/components/my-component/my-component.js.map +1 -1
  18. package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js +3 -4
  19. package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js.map +1 -1
  20. package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js +2 -2
  21. package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js.map +1 -1
  22. package/dist/collection/components/{pcm-jlpx-modal/pcm-jlpx-modal.js → pcm-jlpp-modal/pcm-jlpp-modal.js} +21 -21
  23. package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js.map +1 -0
  24. package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js +16 -16
  25. package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js.map +1 -1
  26. package/dist/collection/components/pcm-video-chat-modal/pcm-video-chat-modal.js +2 -2
  27. package/dist/collection/components/pcm-video-chat-modal/pcm-video-chat-modal.js.map +1 -1
  28. package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js +22 -18
  29. package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js.map +1 -1
  30. package/dist/collection/global/global.css +31 -0
  31. package/dist/collection/index.js.map +1 -1
  32. package/dist/collection/utils/utils.js +2 -1
  33. package/dist/collection/utils/utils.js.map +1 -1
  34. package/dist/components/index.js +2 -1
  35. package/dist/components/index.js.map +1 -1
  36. package/dist/components/my-component.js +1 -1
  37. package/dist/components/my-component.js.map +1 -1
  38. package/dist/components/{p-BctfuDvG.js → p-BG-UIl44.js} +4 -5
  39. package/dist/components/p-BG-UIl44.js.map +1 -0
  40. package/dist/components/pcm-app-chat-modal.js +1 -1
  41. package/dist/components/pcm-hr-chat-modal.js +1 -1
  42. package/dist/components/pcm-hr-chat-modal.js.map +1 -1
  43. package/dist/components/{pcm-jlpx-modal.d.ts → pcm-jlpp-modal.d.ts} +4 -4
  44. package/dist/components/{pcm-jlpx-modal.js → pcm-jlpp-modal.js} +26 -26
  45. package/dist/components/pcm-jlpp-modal.js.map +1 -0
  46. package/dist/components/pcm-mnms-modal.js +15 -15
  47. package/dist/components/pcm-mnms-modal.js.map +1 -1
  48. package/dist/components/pcm-video-chat-modal.js +1 -1
  49. package/dist/components/pcm-video-chat-modal.js.map +1 -1
  50. package/dist/components/pcm-zygh-modal.js +19 -15
  51. package/dist/components/pcm-zygh-modal.js.map +1 -1
  52. package/dist/esm/{index-nVjZGfA8.js → index-CDtyzi83.js} +4 -3
  53. package/dist/esm/index-CDtyzi83.js.map +1 -0
  54. package/dist/esm/index.js +1 -1
  55. package/dist/esm/loader.js +1 -1
  56. package/dist/esm/my-component.entry.js +2 -2
  57. package/dist/esm/my-component.entry.js.map +1 -1
  58. package/dist/esm/pcm-agents.js +1 -1
  59. package/dist/esm/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpp-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.js.map +1 -0
  60. package/dist/esm/pcm-app-chat-modal_7.entry.js +56 -53
  61. package/dist/esm/pcm-app-chat-modal_7.entry.js.map +1 -1
  62. package/dist/esm/pcm-chat-modal.entry.js +1 -1
  63. package/dist/pcm-agents/app-globals-DQuL1Twl.js.map +1 -0
  64. package/dist/pcm-agents/index-Csq0E9fM.js.map +1 -0
  65. package/dist/pcm-agents/index.esm.js +1 -1
  66. package/dist/pcm-agents/index.esm.js.map +1 -1
  67. package/dist/pcm-agents/my-component.entry.esm.js.map +1 -1
  68. package/dist/pcm-agents/p-11c829b3.entry.js +2 -0
  69. package/dist/pcm-agents/p-11c829b3.entry.js.map +1 -0
  70. package/dist/pcm-agents/{p-f3ca99b4.entry.js → p-430f9a9f.entry.js} +2 -2
  71. package/dist/pcm-agents/p-CDtyzi83.js +2 -0
  72. package/dist/pcm-agents/p-CDtyzi83.js.map +1 -0
  73. package/dist/pcm-agents/p-e7221181.entry.js +2 -0
  74. package/dist/pcm-agents/p-e7221181.entry.js.map +1 -0
  75. package/dist/pcm-agents/pcm-agents.esm.js +1 -1
  76. package/dist/pcm-agents/pcm-agents.esm.js.map +1 -1
  77. package/dist/pcm-agents/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpp-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.esm.js.map +1 -0
  78. package/dist/pcm-agents/utils-CfkrvVlp.js.map +1 -0
  79. package/dist/types/components/pcm-app-chat-modal/pcm-app-chat-modal.d.ts +1 -1
  80. package/dist/types/components/pcm-hr-chat-modal/pcm-hr-chat-modal.d.ts +1 -1
  81. package/dist/types/components/{pcm-jlpx-modal/pcm-jlpx-modal.d.ts → pcm-jlpp-modal/pcm-jlpp-modal.d.ts} +4 -4
  82. package/dist/types/components/pcm-mnms-modal/pcm-mnms-modal.d.ts +3 -3
  83. package/dist/types/components/pcm-video-chat-modal/pcm-video-chat-modal.d.ts +1 -1
  84. package/dist/types/components/pcm-zygh-modal/pcm-zygh-modal.d.ts +8 -4
  85. package/dist/types/components.d.ts +48 -48
  86. package/dist/types/utils/utils.d.ts +1 -1
  87. package/package.json +1 -1
  88. package/readme.md +307 -307
  89. package/dist/cjs/index-BFPEnLbS.js.map +0 -1
  90. package/dist/cjs/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpx-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.cjs.js.map +0 -1
  91. package/dist/collection/components/pcm-jlpx-modal/pcm-jlpx-modal.js.map +0 -1
  92. package/dist/components/p-BctfuDvG.js.map +0 -1
  93. package/dist/components/pcm-jlpx-modal.js.map +0 -1
  94. package/dist/esm/index-nVjZGfA8.js.map +0 -1
  95. package/dist/esm/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpx-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.js.map +0 -1
  96. package/dist/pcm-agents/p-55417392.entry.js +0 -2
  97. package/dist/pcm-agents/p-55417392.entry.js.map +0 -1
  98. package/dist/pcm-agents/p-a698b59f.entry.js +0 -2
  99. package/dist/pcm-agents/p-a698b59f.entry.js.map +0 -1
  100. package/dist/pcm-agents/p-nVjZGfA8.js +0 -2
  101. package/dist/pcm-agents/p-nVjZGfA8.js.map +0 -1
  102. package/dist/pcm-agents/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-jlpx-modal.pcm-mnms-modal.pcm-video-chat-modal.pcm-zygh-modal.entry.esm.js.map +0 -1
  103. /package/dist/collection/components/{pcm-jlpx-modal/pcm-jlpx-modal.css → pcm-jlpp-modal/pcm-jlpp-modal.css} +0 -0
  104. /package/dist/pcm-agents/{p-f3ca99b4.entry.js.map → p-430f9a9f.entry.js.map} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, g as getElement, h } from './index-DaMwkrv5.js';
2
- import { s as sendHttpRequest, u as uploadFileToBackend, a as sendSSERequest } from './index-nVjZGfA8.js';
2
+ import { s as sendHttpRequest, u as uploadFileToBackend, a as sendSSERequest } from './index-CDtyzi83.js';
3
3
 
4
4
  const pcmChatModalCss = ":host{display:block}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center;overflow-y:auto;padding:20px;z-index:1000}.fullscreen-overlay{padding:0}.modal-container{background:white;border-radius:8px;width:100%;max-width:800px;height:80vh;min-height:600px;display:flex;flex-direction:column;position:relative;margin:auto}.modal-container.fullscreen{width:100vw;max-width:none;height:100vh;min-height:100vh;border-radius:0;margin:0}@media screen and (max-width: 768px){.modal-overlay{padding:0}.modal-container{width:95%;height:70vh;min-height:400px}.chat-history{min-height:200px;max-height:50vh}.modal-container.fullscreen{height:-webkit-fill-available;max-height:-webkit-fill-available;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}.modal-container.fullscreen .chat-history{max-height:unset}.modal-container.fullscreen .modal-header{padding:0px 16px;padding-top:max(30px, env(safe-area-inset-top))}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:4px 16px;height:50px;border-bottom:1px solid #e8e8e8}.header-left{display:flex;align-items:center;gap:8px}.header-icon{width:24px;height:24px}.close-button{background:transparent;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:4px}.close-button:hover{background-color:rgba(0, 0, 0, 0.04)}.close-button span{font-size:24px;line-height:1;color:#999}.close-button:hover span{color:#666}.chat-history{position:relative;flex:1;overflow-y:auto;padding:16px;scroll-behavior:smooth;min-height:400px;}@media screen and (max-width: 480px){.chat-history{min-height:200px;max-height:50vh}}.message-input{padding:16px;border-top:1px solid #eee;display:flex;gap:8px;align-items:center}.message-input input{flex:1;padding:8px 12px;border:1px solid #ddd;border-radius:4px;outline:none;transition:border-color 0.2s ease}.message-input input:focus{border-color:#bbb}.message{margin-bottom:16px;opacity:1;transition:opacity 0.3s ease}.message-content{max-width:70%;padding:8px 12px;border-radius:8px;word-break:break-word}.message-content p{margin:0;word-break:break-word}.user-message{display:flex;justify-content:flex-end}.agent-message{display:flex;justify-content:flex-start}.user-message .message-content{background-color:#007bff;color:white}.agent-message .message-content{background-color:#f1f1f1}.message-time{font-size:12px;color:#999;margin-top:4px;display:block}.send-button{background-color:#1890ff;color:white;border:none;border-radius:4px;padding:8px 16px;cursor:pointer;font-weight:500}.send-button:disabled{background-color:#ccc;cursor:not-allowed}.empty-state{display:flex;justify-content:center;align-items:center;height:100%;color:#999;text-align:center}.loading-container{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:rgba(255, 255, 255, 0.98);z-index:1;opacity:1;transition:opacity 0.3s ease}.loading-container p{margin-top:16px;color:#666;font-size:14px}.loading-spinner{width:40px;height:40px;border:3px solid #f3f3f3;border-top:3px solid #1890ff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.messages-wrapper{width:100%;min-height:100%;display:flex;flex-direction:column;justify-content:flex-end}.messages-wrapper.has-overflow{justify-content:flex-start}.suggested-questions{display:flex;flex-direction:column;gap:8px;padding:16px}.suggested-question{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background-color:#f3f4f6;border-radius:4px;cursor:pointer;font-size:14px;color:#374151;transition:background-color 0.2s}.suggested-question:hover{background-color:#e5e7eb}.arrow-right{margin-left:8px}.loading-suggestions{display:flex;justify-content:center;padding:16px}.loading-spinner-small{width:20px;height:20px;border:2px solid #e5e7eb;border-top-color:#6b7280;border-radius:50%;animation:spin 1s linear infinite}.upload-button{background:transparent;border:none;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;color:#666;border-radius:4px;transition:background-color 0.2s}.upload-button:hover{background-color:rgba(0, 0, 0, 0.04)}.upload-button svg{width:20px;height:20px}.file-input{display:none}.selected-file{font-size:12px;color:#666;margin-left:8px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-wrapper{flex:1;display:flex;align-items:center;border:1px solid #ddd;border-radius:4px;padding:0 4px;background:white}.input-wrapper input{border:none;flex:1;padding:8px;outline:none}.input-wrapper:focus-within{border-color:#bbb}.file-preview{padding:8px 16px;border-top:1px solid #eee;background-color:#f9f9f9}.file-info{display:flex;align-items:center;justify-content:space-between;padding:8px;background:white;border:1px solid #e8e8e8;border-radius:4px}.file-name{font-size:13px;color:#333;margin-right:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 30px)}.remove-file{background:transparent;border:none;color:#999;cursor:pointer;padding:4px 8px;font-size:16px;line-height:1;border-radius:4px;transition:all 0.2s}.remove-file:hover{background-color:#f0f0f0;color:#666}";
5
5
 
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-globals-DQuL1Twl.js","sources":["@stencil/core/internal/app-globals"],"sourcesContent":["export const globalScripts = () => {};\n"],"names":[],"mappings":"AAAY,MAAC,aAAa,GAAG,MAAM;;;;"}