pcm-agents 0.3.2 → 0.3.4

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 (107) 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 +68 -61
  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 +5 -6
  19. package/dist/collection/components/pcm-app-chat-modal/pcm-app-chat-modal.js.map +1 -1
  20. package/dist/collection/components/pcm-chat-message/pcm-chat-message.js +26 -2
  21. package/dist/collection/components/pcm-chat-message/pcm-chat-message.js.map +1 -1
  22. package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js +4 -4
  23. package/dist/collection/components/pcm-hr-chat-modal/pcm-hr-chat-modal.js.map +1 -1
  24. package/dist/collection/components/{pcm-jlpx-modal/pcm-jlpx-modal.js → pcm-jlpp-modal/pcm-jlpp-modal.js} +21 -21
  25. package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js.map +1 -0
  26. package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js +16 -16
  27. package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js.map +1 -1
  28. package/dist/collection/components/pcm-video-chat-modal/pcm-video-chat-modal.js +4 -4
  29. package/dist/collection/components/pcm-video-chat-modal/pcm-video-chat-modal.js.map +1 -1
  30. package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js +22 -18
  31. package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js.map +1 -1
  32. package/dist/collection/global/global.css +31 -0
  33. package/dist/collection/index.js.map +1 -1
  34. package/dist/collection/utils/utils.js +2 -1
  35. package/dist/collection/utils/utils.js.map +1 -1
  36. package/dist/components/index.js +2 -1
  37. package/dist/components/index.js.map +1 -1
  38. package/dist/components/my-component.js +1 -1
  39. package/dist/components/my-component.js.map +1 -1
  40. package/dist/components/{p-LkDC0SN2.js → p-CBMLAbWp.js} +10 -5
  41. package/dist/components/p-CBMLAbWp.js.map +1 -0
  42. package/dist/components/{p-BctfuDvG.js → p-VU0niiMk.js} +7 -8
  43. package/dist/components/p-VU0niiMk.js.map +1 -0
  44. package/dist/components/pcm-app-chat-modal.js +1 -1
  45. package/dist/components/pcm-chat-message.js +1 -1
  46. package/dist/components/pcm-chat-modal.js +1 -1
  47. package/dist/components/pcm-hr-chat-modal.js +4 -4
  48. package/dist/components/pcm-hr-chat-modal.js.map +1 -1
  49. package/dist/components/{pcm-jlpx-modal.d.ts → pcm-jlpp-modal.d.ts} +4 -4
  50. package/dist/components/{pcm-jlpx-modal.js → pcm-jlpp-modal.js} +27 -27
  51. package/dist/components/pcm-jlpp-modal.js.map +1 -0
  52. package/dist/components/pcm-mnms-modal.js +16 -16
  53. package/dist/components/pcm-mnms-modal.js.map +1 -1
  54. package/dist/components/pcm-video-chat-modal.js +4 -4
  55. package/dist/components/pcm-video-chat-modal.js.map +1 -1
  56. package/dist/components/pcm-zygh-modal.js +20 -16
  57. package/dist/components/pcm-zygh-modal.js.map +1 -1
  58. package/dist/esm/{index-nVjZGfA8.js → index-CDtyzi83.js} +4 -3
  59. package/dist/esm/index-CDtyzi83.js.map +1 -0
  60. package/dist/esm/index.js +1 -1
  61. package/dist/esm/loader.js +1 -1
  62. package/dist/esm/my-component.entry.js +2 -2
  63. package/dist/esm/my-component.entry.js.map +1 -1
  64. package/dist/esm/pcm-agents.js +1 -1
  65. 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
  66. package/dist/esm/pcm-app-chat-modal_7.entry.js +68 -61
  67. package/dist/esm/pcm-app-chat-modal_7.entry.js.map +1 -1
  68. package/dist/esm/pcm-chat-modal.entry.js +1 -1
  69. package/dist/pcm-agents/index.esm.js +1 -1
  70. package/dist/pcm-agents/my-component.entry.esm.js.map +1 -1
  71. package/dist/pcm-agents/p-11c829b3.entry.js +2 -0
  72. package/dist/pcm-agents/p-11c829b3.entry.js.map +1 -0
  73. package/dist/pcm-agents/{p-f3ca99b4.entry.js → p-430f9a9f.entry.js} +2 -2
  74. package/dist/pcm-agents/p-CDtyzi83.js +2 -0
  75. package/dist/pcm-agents/p-CDtyzi83.js.map +1 -0
  76. package/dist/pcm-agents/p-a0826602.entry.js +2 -0
  77. package/dist/pcm-agents/p-a0826602.entry.js.map +1 -0
  78. package/dist/pcm-agents/pcm-agents.esm.js +1 -1
  79. 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
  80. package/dist/types/components/pcm-app-chat-modal/pcm-app-chat-modal.d.ts +1 -1
  81. package/dist/types/components/pcm-chat-message/pcm-chat-message.d.ts +4 -0
  82. package/dist/types/components/pcm-hr-chat-modal/pcm-hr-chat-modal.d.ts +1 -1
  83. package/dist/types/components/{pcm-jlpx-modal/pcm-jlpx-modal.d.ts → pcm-jlpp-modal/pcm-jlpp-modal.d.ts} +4 -4
  84. package/dist/types/components/pcm-mnms-modal/pcm-mnms-modal.d.ts +3 -3
  85. package/dist/types/components/pcm-video-chat-modal/pcm-video-chat-modal.d.ts +1 -1
  86. package/dist/types/components/pcm-zygh-modal/pcm-zygh-modal.d.ts +8 -4
  87. package/dist/types/components.d.ts +56 -48
  88. package/dist/types/utils/utils.d.ts +1 -1
  89. package/package.json +62 -61
  90. package/readme.md +307 -307
  91. package/dist/cjs/index-BFPEnLbS.js.map +0 -1
  92. 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
  93. package/dist/collection/components/pcm-jlpx-modal/pcm-jlpx-modal.js.map +0 -1
  94. package/dist/components/p-BctfuDvG.js.map +0 -1
  95. package/dist/components/p-LkDC0SN2.js.map +0 -1
  96. package/dist/components/pcm-jlpx-modal.js.map +0 -1
  97. package/dist/esm/index-nVjZGfA8.js.map +0 -1
  98. 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
  99. package/dist/pcm-agents/p-55417392.entry.js +0 -2
  100. package/dist/pcm-agents/p-55417392.entry.js.map +0 -1
  101. package/dist/pcm-agents/p-a698b59f.entry.js +0 -2
  102. package/dist/pcm-agents/p-a698b59f.entry.js.map +0 -1
  103. package/dist/pcm-agents/p-nVjZGfA8.js +0 -2
  104. package/dist/pcm-agents/p-nVjZGfA8.js.map +0 -1
  105. 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
  106. /package/dist/collection/components/{pcm-jlpx-modal/pcm-jlpx-modal.css → pcm-jlpp-modal/pcm-jlpp-modal.css} +0 -0
  107. /package/dist/pcm-agents/{p-f3ca99b4.entry.js.map → p-430f9a9f.entry.js.map} +0 -0
@@ -24,7 +24,7 @@ const MyComponent$1 = /*@__PURE__*/ proxyCustomElement(class MyComponent extends
24
24
  return format(this.first, this.middle, this.last);
25
25
  }
26
26
  render() {
27
- return h("div", { key: '4cf44ed05360697e1aa7fbb8a80f14e1e129e13c' }, "Hello, World! I'm ", this.getText());
27
+ return h("div", { key: '70654fc83039b5f659efe99cc990e9b86d20dbe0' }, "Hello, World! I'm ", this.getText());
28
28
  }
29
29
  static get style() { return myComponentCss; }
30
30
  }, [1, "my-component", {
@@ -1 +1 @@
1
- {"file":"my-component.js","mappings":";;AAAA,MAAM,cAAc,GAAG,sBAAsB;;MCQhCA,aAAW,iBAAAC,kBAAA,CAAA,MAAA,WAAA,SAAAC,CAAA,CAAA;;;;;;AACtB;;AAEG;AACK,IAAA,KAAK;AAEb;;AAEG;AACK,IAAA,MAAM;AAEd;;AAEG;AACK,IAAA,IAAI;IAEJ,OAAO,GAAA;AACb,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC;;IAGnD,MAAM,GAAA;AACJ,QAAA,OAAO,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,wBAAwB,IAAI,CAAC,OAAO,EAAE,CAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["MyComponent","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/my-component/my-component.css?tag=my-component&encapsulation=shadow","src/components/my-component/my-component.tsx"],"sourcesContent":[":host {\r\n display: block;\r\n}\r\n","import { Component, Prop, h } from '@stencil/core';\r\nimport { format } from '../../utils/utils';\r\n\r\n@Component({\r\n tag: 'my-component',\r\n styleUrl: 'my-component.css',\r\n shadow: true,\r\n})\r\nexport class MyComponent {\r\n /**\r\n * The first name\r\n */\r\n @Prop() first: string;\r\n\r\n /**\r\n * The middle name\r\n */\r\n @Prop() middle: string;\r\n\r\n /**\r\n * The last name\r\n */\r\n @Prop() last: string;\r\n\r\n private getText(): string {\r\n return format(this.first, this.middle, this.last);\r\n }\r\n\r\n render() {\r\n return <div>Hello, World! I'm {this.getText()}</div>;\r\n }\r\n}\r\n"],"version":3}
1
+ {"file":"my-component.js","mappings":";;AAAA,MAAM,cAAc,GAAG,sBAAsB;;MCQhCA,aAAW,iBAAAC,kBAAA,CAAA,MAAA,WAAA,SAAAC,CAAA,CAAA;;;;;;AACtB;;AAEG;AACK,IAAA,KAAK;AAEb;;AAEG;AACK,IAAA,MAAM;AAEd;;AAEG;AACK,IAAA,IAAI;IAEJ,OAAO,GAAA;AACb,QAAA,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC;;IAGnD,MAAM,GAAA;AACJ,QAAA,OAAO,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,wBAAwB,IAAI,CAAC,OAAO,EAAE,CAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["MyComponent","__stencil_proxyCustomElement","HTMLElement"],"sources":["src/components/my-component/my-component.css?tag=my-component&encapsulation=shadow","src/components/my-component/my-component.tsx"],"sourcesContent":[":host {\n display: block;\n}\n","import { Component, Prop, h } from '@stencil/core';\nimport { format } from '../../utils/utils';\n\n@Component({\n tag: 'my-component',\n styleUrl: 'my-component.css',\n shadow: true,\n})\nexport class MyComponent {\n /**\n * The first name\n */\n @Prop() first: string;\n\n /**\n * The middle name\n */\n @Prop() middle: string;\n\n /**\n * The last name\n */\n @Prop() last: string;\n\n private getText(): string {\n return format(this.first, this.middle, this.last);\n }\n\n render() {\n return <div>Hello, World! I'm {this.getText()}</div>;\n }\n}\n"],"version":3}
@@ -2625,6 +2625,10 @@ const ChatMessageComponent = /*@__PURE__*/ proxyCustomElement(class ChatMessageC
2625
2625
  */
2626
2626
  message;
2627
2627
  /**
2628
+ * SDK鉴权密钥
2629
+ */
2630
+ token = '';
2631
+ /**
2628
2632
  * 消息变更事件
2629
2633
  */
2630
2634
  messageChange;
@@ -2727,7 +2731,7 @@ const ChatMessageComponent = /*@__PURE__*/ proxyCustomElement(class ChatMessageC
2727
2731
  url: '/sdk/v1/files/presigned-url',
2728
2732
  method: 'GET',
2729
2733
  headers: {
2730
- 'authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuaWNrbmFtZSI6Ilx1NTMzYlx1ODA1OFx1NzMyYjgxMDMiLCJ1aWQiOjcsImNoYXRfdXNlciI6bnVsbCwiYm90X2lkIjoiMSIsInNlY3JldF9pZCI6Mzg5OTk1ODAyNTUxOTEwNDAsImV4cCI6MTc0NTA0OTAxM30.56OoTrp16avgl48YfWBKOHywAKHJ5qPGypqRCGCyVt0'
2734
+ 'authorization': `Bearer ${this.token}`
2731
2735
  },
2732
2736
  params: {
2733
2737
  cos_key: cosKey
@@ -2789,11 +2793,12 @@ const ChatMessageComponent = /*@__PURE__*/ proxyCustomElement(class ChatMessageC
2789
2793
  })));
2790
2794
  }
2791
2795
  render() {
2792
- return (h("div", { key: '3d9014ffaf4a18e08e6cea97abce67d918512720', class: "message-round" }, this.renderUserMessage(), this.renderAssistantMessage()));
2796
+ return (h("div", { key: 'fd26d8b6c4f13847c987badee00a8add00486f84', class: "message-round" }, this.renderUserMessage(), this.renderAssistantMessage()));
2793
2797
  }
2794
2798
  static get style() { return pcmChatMessageCss; }
2795
2799
  }, [1, "pcm-chat-message", {
2796
- "message": [16]
2800
+ "message": [16],
2801
+ "token": [1]
2797
2802
  }]);
2798
2803
  function defineCustomElement() {
2799
2804
  if (typeof customElements === "undefined") {
@@ -2811,6 +2816,6 @@ function defineCustomElement() {
2811
2816
  defineCustomElement();
2812
2817
 
2813
2818
  export { ChatMessageComponent as C, defineCustomElement as d };
2814
- //# sourceMappingURL=p-LkDC0SN2.js.map
2819
+ //# sourceMappingURL=p-CBMLAbWp.js.map
2815
2820
 
2816
- //# sourceMappingURL=p-LkDC0SN2.js.map
2821
+ //# sourceMappingURL=p-CBMLAbWp.js.map