@uipath/apollo-react 4.13.1-pr581.30f7035 → 4.14.0

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 (154) hide show
  1. package/dist/canvas/components/AddNodePanel/AddNodeManager.cjs +7 -26
  2. package/dist/canvas/components/AddNodePanel/AddNodeManager.d.ts.map +1 -1
  3. package/dist/canvas/components/AddNodePanel/AddNodeManager.js +7 -26
  4. package/dist/canvas/components/AddNodePanel/AddNodePanel.types.d.ts +1 -1
  5. package/dist/canvas/components/AddNodePanel/AddNodePanel.types.d.ts.map +1 -1
  6. package/dist/canvas/components/AddNodePanel/createAddNodePreview.cjs +41 -0
  7. package/dist/canvas/components/AddNodePanel/createAddNodePreview.d.ts +3 -0
  8. package/dist/canvas/components/AddNodePanel/createAddNodePreview.d.ts.map +1 -0
  9. package/dist/canvas/components/AddNodePanel/createAddNodePreview.js +7 -0
  10. package/dist/canvas/components/AddNodePanel/index.cjs +6 -2
  11. package/dist/canvas/components/AddNodePanel/index.d.ts +1 -0
  12. package/dist/canvas/components/AddNodePanel/index.d.ts.map +1 -1
  13. package/dist/canvas/components/AddNodePanel/index.js +2 -1
  14. package/dist/canvas/components/AgentCanvas/agent-flow.manifest.d.ts +0 -1
  15. package/dist/canvas/components/AgentCanvas/agent-flow.manifest.d.ts.map +1 -1
  16. package/dist/canvas/components/BaseNode/BaseNode.cjs +3 -8
  17. package/dist/canvas/components/BaseNode/BaseNode.d.ts +1 -2
  18. package/dist/canvas/components/BaseNode/BaseNode.d.ts.map +1 -1
  19. package/dist/canvas/components/BaseNode/BaseNode.js +3 -5
  20. package/dist/canvas/components/BaseNode/BaseNode.types.d.ts +0 -2
  21. package/dist/canvas/components/BaseNode/BaseNode.types.d.ts.map +1 -1
  22. package/dist/canvas/components/ButtonHandle/ButtonHandle.cjs +34 -115
  23. package/dist/canvas/components/ButtonHandle/ButtonHandle.d.ts +2 -4
  24. package/dist/canvas/components/ButtonHandle/ButtonHandle.d.ts.map +1 -1
  25. package/dist/canvas/components/ButtonHandle/ButtonHandle.js +36 -117
  26. package/dist/canvas/components/ButtonHandle/ButtonHandleStyleUtils.cjs +1 -48
  27. package/dist/canvas/components/ButtonHandle/ButtonHandleStyleUtils.d.ts +0 -4
  28. package/dist/canvas/components/ButtonHandle/ButtonHandleStyleUtils.d.ts.map +1 -1
  29. package/dist/canvas/components/ButtonHandle/ButtonHandleStyleUtils.js +1 -36
  30. package/dist/canvas/components/ButtonHandle/SmartHandle.cjs +1 -1
  31. package/dist/canvas/components/ButtonHandle/SmartHandle.js +1 -1
  32. package/dist/canvas/components/Edges/SequenceEdge.cjs +2 -3
  33. package/dist/canvas/components/Edges/SequenceEdge.d.ts +2 -11
  34. package/dist/canvas/components/Edges/SequenceEdge.d.ts.map +1 -1
  35. package/dist/canvas/components/Edges/SequenceEdge.js +3 -4
  36. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.cjs +15 -23
  37. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.d.ts +0 -2
  38. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.d.ts.map +1 -1
  39. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.js +16 -24
  40. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.cjs +8 -11
  41. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.d.ts.map +1 -1
  42. package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.js +8 -11
  43. package/dist/canvas/components/Toolbar/EdgeToolbar/useEdgeToolbarState.cjs +25 -34
  44. package/dist/canvas/components/Toolbar/EdgeToolbar/useEdgeToolbarState.d.ts +1 -2
  45. package/dist/canvas/components/Toolbar/EdgeToolbar/useEdgeToolbarState.d.ts.map +1 -1
  46. package/dist/canvas/components/Toolbar/EdgeToolbar/useEdgeToolbarState.js +26 -35
  47. package/dist/canvas/components/index.cjs +20 -27
  48. package/dist/canvas/components/index.d.ts +0 -1
  49. package/dist/canvas/components/index.d.ts.map +1 -1
  50. package/dist/canvas/components/index.js +0 -1
  51. package/dist/canvas/constants.cjs +0 -8
  52. package/dist/canvas/constants.d.ts +0 -2
  53. package/dist/canvas/constants.d.ts.map +1 -1
  54. package/dist/canvas/constants.js +1 -3
  55. package/dist/canvas/core/CategoryTreeAdapter.cjs +1 -1
  56. package/dist/canvas/core/CategoryTreeAdapter.js +1 -1
  57. package/dist/canvas/core/NodeTypeRegistry.cjs +24 -40
  58. package/dist/canvas/core/NodeTypeRegistry.d.ts +4 -8
  59. package/dist/canvas/core/NodeTypeRegistry.d.ts.map +1 -1
  60. package/dist/canvas/core/NodeTypeRegistry.js +24 -40
  61. package/dist/canvas/core/useNodeTypeRegistry.cjs +3 -4
  62. package/dist/canvas/core/useNodeTypeRegistry.d.ts +1 -1
  63. package/dist/canvas/core/useNodeTypeRegistry.d.ts.map +1 -1
  64. package/dist/canvas/core/useNodeTypeRegistry.js +3 -4
  65. package/dist/canvas/hooks/useAddNodeOnConnectEnd.cjs +3 -10
  66. package/dist/canvas/hooks/useAddNodeOnConnectEnd.d.ts.map +1 -1
  67. package/dist/canvas/hooks/useAddNodeOnConnectEnd.js +3 -10
  68. package/dist/canvas/hooks/usePreviewNode.cjs +2 -4
  69. package/dist/canvas/hooks/usePreviewNode.d.ts.map +1 -1
  70. package/dist/canvas/hooks/usePreviewNode.js +2 -4
  71. package/dist/canvas/schema/node-definition/handle.cjs +2 -10
  72. package/dist/canvas/schema/node-definition/handle.d.ts +0 -9
  73. package/dist/canvas/schema/node-definition/handle.d.ts.map +1 -1
  74. package/dist/canvas/schema/node-definition/handle.js +1 -6
  75. package/dist/canvas/schema/node-definition/index.cjs +1 -4
  76. package/dist/canvas/schema/node-definition/index.d.ts +3 -3
  77. package/dist/canvas/schema/node-definition/index.d.ts.map +1 -1
  78. package/dist/canvas/schema/node-definition/index.js +2 -2
  79. package/dist/canvas/schema/node-definition/node-manifest.d.ts +0 -4
  80. package/dist/canvas/schema/node-definition/node-manifest.d.ts.map +1 -1
  81. package/dist/canvas/storybook-utils/manifests/index.d.ts +0 -1
  82. package/dist/canvas/storybook-utils/manifests/index.d.ts.map +1 -1
  83. package/dist/canvas/storybook-utils/manifests/node-definitions.d.ts.map +1 -1
  84. package/dist/canvas/styles/reactflow-reset.css +0 -4
  85. package/dist/canvas/styles/tailwind.canvas.css +1 -1
  86. package/dist/canvas/utils/{createPreviewGraph.cjs → createPreviewNode.cjs} +41 -115
  87. package/dist/canvas/utils/createPreviewNode.d.ts +17 -0
  88. package/dist/canvas/utils/createPreviewNode.d.ts.map +1 -0
  89. package/dist/canvas/utils/{createPreviewGraph.js → createPreviewNode.js} +36 -95
  90. package/dist/canvas/utils/index.cjs +10 -10
  91. package/dist/canvas/utils/index.d.ts +2 -2
  92. package/dist/canvas/utils/index.d.ts.map +1 -1
  93. package/dist/canvas/utils/index.js +2 -2
  94. package/dist/material/components/ap-chat/components/common/action-button.cjs +7 -33
  95. package/dist/material/components/ap-chat/components/common/action-button.d.ts +3 -9
  96. package/dist/material/components/ap-chat/components/common/action-button.d.ts.map +1 -1
  97. package/dist/material/components/ap-chat/components/common/action-button.js +7 -33
  98. package/dist/material/components/ap-chat/components/input/always-on-voice-button.cjs +183 -0
  99. package/dist/material/components/ap-chat/components/input/always-on-voice-button.d.ts +10 -0
  100. package/dist/material/components/ap-chat/components/input/always-on-voice-button.d.ts.map +1 -0
  101. package/dist/material/components/ap-chat/components/input/always-on-voice-button.js +136 -0
  102. package/dist/material/components/ap-chat/components/input/chat-input-actions.cjs +46 -4
  103. package/dist/material/components/ap-chat/components/input/chat-input-actions.d.ts +4 -1
  104. package/dist/material/components/ap-chat/components/input/chat-input-actions.d.ts.map +1 -1
  105. package/dist/material/components/ap-chat/components/input/chat-input-actions.js +46 -4
  106. package/dist/material/components/ap-chat/components/input/chat-input.cjs +19 -5
  107. package/dist/material/components/ap-chat/components/input/chat-input.d.ts.map +1 -1
  108. package/dist/material/components/ap-chat/components/input/chat-input.js +19 -5
  109. package/dist/material/components/ap-chat/locales/en.cjs +1 -1
  110. package/dist/material/components/ap-chat/locales/en.d.ts.map +1 -1
  111. package/dist/material/components/ap-chat/locales/en.js +1 -1
  112. package/dist/material/components/ap-chat/service/ChatModel.cjs +2 -0
  113. package/dist/material/components/ap-chat/service/ChatModel.d.ts +4 -1
  114. package/dist/material/components/ap-chat/service/ChatModel.d.ts.map +1 -1
  115. package/dist/material/components/ap-chat/service/ChatModel.js +2 -0
  116. package/dist/material/components/ap-chat/service/ChatService.cjs +14 -0
  117. package/dist/material/components/ap-chat/service/ChatService.d.ts +4 -0
  118. package/dist/material/components/ap-chat/service/ChatService.d.ts.map +1 -1
  119. package/dist/material/components/ap-chat/service/ChatService.js +14 -0
  120. package/package.json +3 -3
  121. package/dist/canvas/components/LoopNode/LoopCanvasNode.cjs +0 -112
  122. package/dist/canvas/components/LoopNode/LoopCanvasNode.d.ts +0 -6
  123. package/dist/canvas/components/LoopNode/LoopCanvasNode.d.ts.map +0 -1
  124. package/dist/canvas/components/LoopNode/LoopCanvasNode.js +0 -78
  125. package/dist/canvas/components/LoopNode/LoopNode.cjs +0 -435
  126. package/dist/canvas/components/LoopNode/LoopNode.constants.cjs +0 -77
  127. package/dist/canvas/components/LoopNode/LoopNode.constants.d.ts +0 -12
  128. package/dist/canvas/components/LoopNode/LoopNode.constants.d.ts.map +0 -1
  129. package/dist/canvas/components/LoopNode/LoopNode.constants.js +0 -13
  130. package/dist/canvas/components/LoopNode/LoopNode.d.ts +0 -5
  131. package/dist/canvas/components/LoopNode/LoopNode.d.ts.map +0 -1
  132. package/dist/canvas/components/LoopNode/LoopNode.helpers.cjs +0 -137
  133. package/dist/canvas/components/LoopNode/LoopNode.helpers.d.ts +0 -26
  134. package/dist/canvas/components/LoopNode/LoopNode.helpers.d.ts.map +0 -1
  135. package/dist/canvas/components/LoopNode/LoopNode.helpers.js +0 -94
  136. package/dist/canvas/components/LoopNode/LoopNode.js +0 -401
  137. package/dist/canvas/components/LoopNode/LoopNode.types.cjs +0 -18
  138. package/dist/canvas/components/LoopNode/LoopNode.types.d.ts +0 -11
  139. package/dist/canvas/components/LoopNode/LoopNode.types.d.ts.map +0 -1
  140. package/dist/canvas/components/LoopNode/LoopNode.types.js +0 -0
  141. package/dist/canvas/components/LoopNode/LoopNodePreview.cjs +0 -61
  142. package/dist/canvas/components/LoopNode/LoopNodePreview.d.ts +0 -9
  143. package/dist/canvas/components/LoopNode/LoopNodePreview.d.ts.map +0 -1
  144. package/dist/canvas/components/LoopNode/LoopNodePreview.js +0 -27
  145. package/dist/canvas/components/LoopNode/index.cjs +0 -72
  146. package/dist/canvas/components/LoopNode/index.d.ts +0 -4
  147. package/dist/canvas/components/LoopNode/index.d.ts.map +0 -1
  148. package/dist/canvas/components/LoopNode/index.js +0 -3
  149. package/dist/canvas/utils/createPreviewGraph.d.ts +0 -43
  150. package/dist/canvas/utils/createPreviewGraph.d.ts.map +0 -1
  151. package/dist/material/components/ap-chat/components/audio/chat-audio.cjs +0 -334
  152. package/dist/material/components/ap-chat/components/audio/chat-audio.d.ts +0 -10
  153. package/dist/material/components/ap-chat/components/audio/chat-audio.d.ts.map +0 -1
  154. package/dist/material/components/ap-chat/components/audio/chat-audio.js +0 -290
@@ -146,6 +146,7 @@ function AutopilotChatInputComponent() {
146
146
  ]);
147
147
  const handleSubmit = external_react_default().useCallback(()=>{
148
148
  if (waitingResponse || streaming) return void chatService.stopResponse();
149
+ if (chatService.isSpeechToTextActive) chatService.publishSpeechToTextToggle();
149
150
  const serializedContent = editorRef.current?.getSerializedContent() ?? message;
150
151
  chatService.sendRequest({
151
152
  content: serializedContent,
@@ -215,22 +216,32 @@ function AutopilotChatInputComponent() {
215
216
  handlePaste
216
217
  ]);
217
218
  const hasLoadingAttachments = attachmentsLoading.filter((attachment)=>attachment.loading).length > 0;
219
+ const isInputEmpty = 0 === message.trim().length && 0 === attachments.length;
218
220
  const handleResourceTriggerClick = external_react_default().useCallback(()=>{
219
221
  editorRef.current?.openResourcePicker();
220
222
  }, []);
223
+ const [isVoiceInteractionActive, setIsVoiceInteractionActive] = external_react_default().useState(false);
221
224
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
222
225
  children: [
223
- /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_chat_input_error_cjs_namespaceObject.AutopilotChatInputError, {}),
226
+ !isVoiceInteractionActive && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_chat_input_error_cjs_namespaceObject.AutopilotChatInputError, {}),
224
227
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(InputContainer, {
225
228
  primaryFontToken: spacing.primaryFontToken,
226
- onClick: ()=>editorRef?.current?.focus(),
229
+ onClick: isVoiceInteractionActive ? void 0 : ()=>editorRef?.current?.focus(),
227
230
  ref: inputContainerRef,
231
+ sx: isVoiceInteractionActive ? {
232
+ borderColor: 'transparent',
233
+ boxShadow: 'none',
234
+ background: 'transparent'
235
+ } : void 0,
228
236
  children: [
229
237
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_chat_input_attachments_cjs_namespaceObject.AutopilotChatInputAttachments, {}),
230
238
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(material_namespaceObject.Box, {
231
239
  className: "autopilot-chat-input",
232
240
  sx: {
233
- padding: `${apollo_core_default().Spacing.SpacingS} 0 0 !important`
241
+ padding: `${apollo_core_default().Spacing.SpacingS} 0 0 !important`,
242
+ ...isVoiceInteractionActive && {
243
+ visibility: 'hidden'
244
+ }
234
245
  },
235
246
  children: [
236
247
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
@@ -252,10 +263,13 @@ function AutopilotChatInputComponent() {
252
263
  ]
253
264
  }),
254
265
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_chat_input_actions_cjs_namespaceObject.AutopilotChatInputActions, {
255
- disableSubmit: 0 === message.trim().length && 0 === attachments.length && !waitingResponse && !streaming || skeletonLoader && !waitingResponse && !streaming || hasLoadingAttachments,
266
+ disableSubmit: isInputEmpty && !waitingResponse && !streaming || skeletonLoader && !waitingResponse && !streaming || hasLoadingAttachments,
267
+ isInputEmpty: isInputEmpty,
256
268
  waitingResponse: waitingResponse || streaming,
257
269
  handleSubmit: handleSubmit,
258
- onResourceTriggerClick: hasResources ? handleResourceTriggerClick : void 0
270
+ onResourceTriggerClick: hasResources ? handleResourceTriggerClick : void 0,
271
+ onVoiceInteractionChange: setIsVoiceInteractionActive,
272
+ isVoiceInteractionActive: isVoiceInteractionActive
259
273
  })
260
274
  ]
261
275
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"chat-input.d.ts","sourceRoot":"","sources":["../../../../../../src/material/components/ap-chat/components/input/chat-input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgF1B,iBAAS,2BAA2B,4CAsNnC;AAED,eAAO,MAAM,kBAAkB,+DAA0C,CAAC"}
1
+ {"version":3,"file":"chat-input.d.ts","sourceRoot":"","sources":["../../../../../../src/material/components/ap-chat/components/input/chat-input.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgF1B,iBAAS,2BAA2B,4CAqPnC;AAED,eAAO,MAAM,kBAAkB,+DAA0C,CAAC"}
@@ -107,6 +107,7 @@ function AutopilotChatInputComponent() {
107
107
  ]);
108
108
  const handleSubmit = react.useCallback(()=>{
109
109
  if (waitingResponse || streaming) return void chatService.stopResponse();
110
+ if (chatService.isSpeechToTextActive) chatService.publishSpeechToTextToggle();
110
111
  const serializedContent = editorRef.current?.getSerializedContent() ?? message;
111
112
  chatService.sendRequest({
112
113
  content: serializedContent,
@@ -176,22 +177,32 @@ function AutopilotChatInputComponent() {
176
177
  handlePaste
177
178
  ]);
178
179
  const hasLoadingAttachments = attachmentsLoading.filter((attachment)=>attachment.loading).length > 0;
180
+ const isInputEmpty = 0 === message.trim().length && 0 === attachments.length;
179
181
  const handleResourceTriggerClick = react.useCallback(()=>{
180
182
  editorRef.current?.openResourcePicker();
181
183
  }, []);
184
+ const [isVoiceInteractionActive, setIsVoiceInteractionActive] = react.useState(false);
182
185
  return /*#__PURE__*/ jsxs(Fragment, {
183
186
  children: [
184
- /*#__PURE__*/ jsx(AutopilotChatInputError, {}),
187
+ !isVoiceInteractionActive && /*#__PURE__*/ jsx(AutopilotChatInputError, {}),
185
188
  /*#__PURE__*/ jsxs(InputContainer, {
186
189
  primaryFontToken: spacing.primaryFontToken,
187
- onClick: ()=>editorRef?.current?.focus(),
190
+ onClick: isVoiceInteractionActive ? void 0 : ()=>editorRef?.current?.focus(),
188
191
  ref: inputContainerRef,
192
+ sx: isVoiceInteractionActive ? {
193
+ borderColor: 'transparent',
194
+ boxShadow: 'none',
195
+ background: 'transparent'
196
+ } : void 0,
189
197
  children: [
190
198
  /*#__PURE__*/ jsx(AutopilotChatInputAttachments, {}),
191
199
  /*#__PURE__*/ jsxs(Box, {
192
200
  className: "autopilot-chat-input",
193
201
  sx: {
194
- padding: `${apollo_core.Spacing.SpacingS} 0 0 !important`
202
+ padding: `${apollo_core.Spacing.SpacingS} 0 0 !important`,
203
+ ...isVoiceInteractionActive && {
204
+ visibility: 'hidden'
205
+ }
195
206
  },
196
207
  children: [
197
208
  /*#__PURE__*/ jsx("div", {
@@ -213,10 +224,13 @@ function AutopilotChatInputComponent() {
213
224
  ]
214
225
  }),
215
226
  /*#__PURE__*/ jsx(AutopilotChatInputActions, {
216
- disableSubmit: 0 === message.trim().length && 0 === attachments.length && !waitingResponse && !streaming || skeletonLoader && !waitingResponse && !streaming || hasLoadingAttachments,
227
+ disableSubmit: isInputEmpty && !waitingResponse && !streaming || skeletonLoader && !waitingResponse && !streaming || hasLoadingAttachments,
228
+ isInputEmpty: isInputEmpty,
217
229
  waitingResponse: waitingResponse || streaming,
218
230
  handleSubmit: handleSubmit,
219
- onResourceTriggerClick: hasResources ? handleResourceTriggerClick : void 0
231
+ onResourceTriggerClick: hasResources ? handleResourceTriggerClick : void 0,
232
+ onVoiceInteractionChange: setIsVoiceInteractionActive,
233
+ isVoiceInteractionActive: isVoiceInteractionActive
220
234
  })
221
235
  ]
222
236
  }),
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  messages: ()=>messages
28
28
  });
29
- const messages = JSON.parse('{"autopilot-chat.common.attachments.remove-file":["Remove"],"autopilot-chat.common.attachments.remove-file-name":["Remove ",["name"]],"autopilot-chat.common.mode-selector":["Mode selector"],"autopilot-chat.common.model-selector":["Model selector"],"autopilot-chat.dropzone.allowed-file-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.dropzone.overlay-max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.dropzone.overlay-max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.dropzone.overlay-title":["Drop your files here to add them to your prompt"],"autopilot-chat.error.file-invalid-type":["Unsupported file: ",["fileName"]],"autopilot-chat.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.error.multiple-files":["Only one file can be attached per message"],"autopilot-chat.error.too-many-files":["Too many files. ",["maxCount"]," files are allowed per message"],"autopilot-chat.header.actions.close":["Close chat"],"autopilot-chat.header.actions.collapse":["Collapse"],"autopilot-chat.header.actions.custom-actions":["More actions"],"autopilot-chat.header.actions.expand":["Expand"],"autopilot-chat.header.actions.history":["Chat history"],"autopilot-chat.header.actions.new-chat":["New chat"],"autopilot-chat.header.actions.settings":["Settings"],"autopilot-chat.header.preview":["Preview"],"autopilot-chat.header.title":["Autopilot"],"autopilot-chat.history.delete":["Delete"],"autopilot-chat.history.empty":["There are no conversations yet."],"autopilot-chat.history.group.last-30-days":["Previous 30 days"],"autopilot-chat.history.group.last-week":["Last week"],"autopilot-chat.history.group.months-ago":[["count"]," months ago"],"autopilot-chat.history.group.today":["Today"],"autopilot-chat.history.group.yesterday":["Yesterday"],"autopilot-chat.history.no-results":["No results found."],"autopilot-chat.history.search-placeholder":["Search"],"autopilot-chat.input.actions.attach-file":["Attach file(s)"],"autopilot-chat.input.actions.attachments.allowed-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.input.actions.attachments.max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.input.actions.attachments.max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.input.actions.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.input.actions.send":["Send"],"autopilot-chat.input.actions.stop":["Stop"],"autopilot-chat.input.agent-mode-selection-label":["Agent mode selection"],"autopilot-chat.input.footer":["Autopilot can make mistakes. Please double check the responses."],"autopilot-chat.input.model-selection-label":["Model selection"],"autopilot-chat.input.placeholder":["What would you like me to do?"],"autopilot-chat.input.resource-chip.remove":["Remove"],"autopilot-chat.input.resource-chip.remove-name":["Remove ",["label"]],"autopilot-chat.message.actions.bad":["Needs improvement"],"autopilot-chat.message.actions.copy":["Copy"],"autopilot-chat.message.actions.good":["Love this"],"autopilot-chat.message.actions.label":["Message actions"],"autopilot-chat.message.actions.more":["More actions"],"autopilot-chat.message.citation-aria-label":["Citation ",["id"],": ",["title"]],"autopilot-chat.message.close":["Close chat"],"autopilot-chat.message.code-block-code":["Code"],"autopilot-chat.message.code-block-copy":["Copy"],"autopilot-chat.message.code-block-language":["Text"],"autopilot-chat.message.code-block-preview":["Preview"],"autopilot-chat.message.expand":["Expand"],"autopilot-chat.message.footnote-label":["Sources"],"autopilot-chat.message.generating-response":["Generating..."],"autopilot-chat.message.page-number":["Page ",["page_number"]],"autopilot-chat.message.scroll-to-bottom":["Scroll to bottom"],"autopilot-chat.message.show-less":["Show less"],"autopilot-chat.message.show-more":["Show more"],"autopilot-chat.message.sources":["Sources"],"autopilot-chat.message.suggestions-title":["Suggestions"],"autopilot-chat.resource-picker.back":["Go back"],"autopilot-chat.resource-picker.empty":["No resources available"],"autopilot-chat.resource-picker.error":["Failed to load resources"],"autopilot-chat.resource-picker.label":["Resource picker"],"autopilot-chat.resource-picker.load-more-error":["Failed to load more"],"autopilot-chat.resource-picker.no-results":["No matching resources"],"autopilot-chat.resource-picker.retry":["Retry"],"autopilot-chat.resource-picker.search-error":["Search failed"],"autopilot-chat.resource-trigger.label":["Add resource reference"],"autopilot-chat.resource-trigger.tooltip":["Add resource"],"autopilot-chat.settings.heading-description":["heading level 2"],"autopilot-chat.settings.hide":["Hide settings"],"autopilot-chat.settings.title":["Chat settings"],"autopilot-chat.tree.no-description":["No description"],"autopilot-chat.tree.no-items":["No items"],"autopilot-chat.tree.unknown":["Unknown"]}');
29
+ const messages = JSON.parse('{"autopilot-chat.common.attachments.remove-file":["Remove"],"autopilot-chat.common.attachments.remove-file-name":["Remove ",["name"]],"autopilot-chat.common.mode-selector":["Mode selector"],"autopilot-chat.common.model-selector":["Model selector"],"autopilot-chat.dropzone.allowed-file-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.dropzone.overlay-max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.dropzone.overlay-max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.dropzone.overlay-title":["Drop your files here to add them to your prompt"],"autopilot-chat.error.file-invalid-type":["Unsupported file: ",["fileName"]],"autopilot-chat.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.error.multiple-files":["Only one file can be attached per message"],"autopilot-chat.error.too-many-files":["Too many files. ",["maxCount"]," files are allowed per message"],"autopilot-chat.header.actions.close":["Close chat"],"autopilot-chat.header.actions.collapse":["Collapse"],"autopilot-chat.header.actions.custom-actions":["More actions"],"autopilot-chat.header.actions.expand":["Expand"],"autopilot-chat.header.actions.history":["Chat history"],"autopilot-chat.header.actions.new-chat":["New chat"],"autopilot-chat.header.actions.settings":["Settings"],"autopilot-chat.header.preview":["Preview"],"autopilot-chat.header.title":["Autopilot"],"autopilot-chat.history.delete":["Delete"],"autopilot-chat.history.empty":["There are no conversations yet."],"autopilot-chat.history.group.last-30-days":["Previous 30 days"],"autopilot-chat.history.group.last-week":["Last week"],"autopilot-chat.history.group.months-ago":[["count"]," months ago"],"autopilot-chat.history.group.today":["Today"],"autopilot-chat.history.group.yesterday":["Yesterday"],"autopilot-chat.history.no-results":["No results found."],"autopilot-chat.history.search-placeholder":["Search"],"autopilot-chat.input.actions.attach-file":["Attach file(s)"],"autopilot-chat.input.actions.attachments.allowed-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.input.actions.attachments.max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.input.actions.attachments.max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.input.actions.dictate":["Dictate"],"autopilot-chat.input.actions.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.input.actions.send":["Send"],"autopilot-chat.input.actions.stop":["Stop"],"autopilot-chat.input.actions.voice-interaction":["Voice interaction"],"autopilot-chat.input.agent-mode-selection-label":["Agent mode selection"],"autopilot-chat.input.footer":["Autopilot can make mistakes. Please double check the responses."],"autopilot-chat.input.model-selection-label":["Model selection"],"autopilot-chat.input.placeholder":["What would you like me to do?"],"autopilot-chat.input.resource-chip.remove":["Remove"],"autopilot-chat.input.resource-chip.remove-name":["Remove ",["label"]],"autopilot-chat.message.actions.bad":["Needs improvement"],"autopilot-chat.message.actions.copy":["Copy"],"autopilot-chat.message.actions.good":["Love this"],"autopilot-chat.message.actions.label":["Message actions"],"autopilot-chat.message.actions.more":["More actions"],"autopilot-chat.message.citation-aria-label":["Citation ",["id"],": ",["title"]],"autopilot-chat.message.close":["Close chat"],"autopilot-chat.message.code-block-code":["Code"],"autopilot-chat.message.code-block-copy":["Copy"],"autopilot-chat.message.code-block-language":["Text"],"autopilot-chat.message.code-block-preview":["Preview"],"autopilot-chat.message.expand":["Expand"],"autopilot-chat.message.footnote-label":["Sources"],"autopilot-chat.message.generating-response":["Generating..."],"autopilot-chat.message.page-number":["Page ",["page_number"]],"autopilot-chat.message.scroll-to-bottom":["Scroll to bottom"],"autopilot-chat.message.show-less":["Show less"],"autopilot-chat.message.show-more":["Show more"],"autopilot-chat.message.sources":["Sources"],"autopilot-chat.message.suggestions-title":["Suggestions"],"autopilot-chat.resource-picker.back":["Go back"],"autopilot-chat.resource-picker.empty":["No resources available"],"autopilot-chat.resource-picker.error":["Failed to load resources"],"autopilot-chat.resource-picker.label":["Resource picker"],"autopilot-chat.resource-picker.load-more-error":["Failed to load more"],"autopilot-chat.resource-picker.no-results":["No matching resources"],"autopilot-chat.resource-picker.retry":["Retry"],"autopilot-chat.resource-picker.search-error":["Search failed"],"autopilot-chat.resource-trigger.label":["Add resource reference"],"autopilot-chat.resource-trigger.tooltip":["Add resource"],"autopilot-chat.settings.heading-description":["heading level 2"],"autopilot-chat.settings.hide":["Hide settings"],"autopilot-chat.settings.title":["Chat settings"],"autopilot-chat.tree.no-description":["No description"],"autopilot-chat.tree.no-items":["No items"],"autopilot-chat.tree.unknown":["Unknown"]}');
30
30
  exports.messages = __webpack_exports__.messages;
31
31
  for(var __rspack_i in __webpack_exports__)if (-1 === [
32
32
  "messages"
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../../src/material/components/ap-chat/locales/en.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA6vK,QAAQ,CAAC"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../../../src/material/components/ap-chat/locales/en.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA+3K,QAAQ,CAAC"}
@@ -1,2 +1,2 @@
1
- const messages = JSON.parse('{"autopilot-chat.common.attachments.remove-file":["Remove"],"autopilot-chat.common.attachments.remove-file-name":["Remove ",["name"]],"autopilot-chat.common.mode-selector":["Mode selector"],"autopilot-chat.common.model-selector":["Model selector"],"autopilot-chat.dropzone.allowed-file-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.dropzone.overlay-max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.dropzone.overlay-max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.dropzone.overlay-title":["Drop your files here to add them to your prompt"],"autopilot-chat.error.file-invalid-type":["Unsupported file: ",["fileName"]],"autopilot-chat.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.error.multiple-files":["Only one file can be attached per message"],"autopilot-chat.error.too-many-files":["Too many files. ",["maxCount"]," files are allowed per message"],"autopilot-chat.header.actions.close":["Close chat"],"autopilot-chat.header.actions.collapse":["Collapse"],"autopilot-chat.header.actions.custom-actions":["More actions"],"autopilot-chat.header.actions.expand":["Expand"],"autopilot-chat.header.actions.history":["Chat history"],"autopilot-chat.header.actions.new-chat":["New chat"],"autopilot-chat.header.actions.settings":["Settings"],"autopilot-chat.header.preview":["Preview"],"autopilot-chat.header.title":["Autopilot"],"autopilot-chat.history.delete":["Delete"],"autopilot-chat.history.empty":["There are no conversations yet."],"autopilot-chat.history.group.last-30-days":["Previous 30 days"],"autopilot-chat.history.group.last-week":["Last week"],"autopilot-chat.history.group.months-ago":[["count"]," months ago"],"autopilot-chat.history.group.today":["Today"],"autopilot-chat.history.group.yesterday":["Yesterday"],"autopilot-chat.history.no-results":["No results found."],"autopilot-chat.history.search-placeholder":["Search"],"autopilot-chat.input.actions.attach-file":["Attach file(s)"],"autopilot-chat.input.actions.attachments.allowed-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.input.actions.attachments.max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.input.actions.attachments.max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.input.actions.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.input.actions.send":["Send"],"autopilot-chat.input.actions.stop":["Stop"],"autopilot-chat.input.agent-mode-selection-label":["Agent mode selection"],"autopilot-chat.input.footer":["Autopilot can make mistakes. Please double check the responses."],"autopilot-chat.input.model-selection-label":["Model selection"],"autopilot-chat.input.placeholder":["What would you like me to do?"],"autopilot-chat.input.resource-chip.remove":["Remove"],"autopilot-chat.input.resource-chip.remove-name":["Remove ",["label"]],"autopilot-chat.message.actions.bad":["Needs improvement"],"autopilot-chat.message.actions.copy":["Copy"],"autopilot-chat.message.actions.good":["Love this"],"autopilot-chat.message.actions.label":["Message actions"],"autopilot-chat.message.actions.more":["More actions"],"autopilot-chat.message.citation-aria-label":["Citation ",["id"],": ",["title"]],"autopilot-chat.message.close":["Close chat"],"autopilot-chat.message.code-block-code":["Code"],"autopilot-chat.message.code-block-copy":["Copy"],"autopilot-chat.message.code-block-language":["Text"],"autopilot-chat.message.code-block-preview":["Preview"],"autopilot-chat.message.expand":["Expand"],"autopilot-chat.message.footnote-label":["Sources"],"autopilot-chat.message.generating-response":["Generating..."],"autopilot-chat.message.page-number":["Page ",["page_number"]],"autopilot-chat.message.scroll-to-bottom":["Scroll to bottom"],"autopilot-chat.message.show-less":["Show less"],"autopilot-chat.message.show-more":["Show more"],"autopilot-chat.message.sources":["Sources"],"autopilot-chat.message.suggestions-title":["Suggestions"],"autopilot-chat.resource-picker.back":["Go back"],"autopilot-chat.resource-picker.empty":["No resources available"],"autopilot-chat.resource-picker.error":["Failed to load resources"],"autopilot-chat.resource-picker.label":["Resource picker"],"autopilot-chat.resource-picker.load-more-error":["Failed to load more"],"autopilot-chat.resource-picker.no-results":["No matching resources"],"autopilot-chat.resource-picker.retry":["Retry"],"autopilot-chat.resource-picker.search-error":["Search failed"],"autopilot-chat.resource-trigger.label":["Add resource reference"],"autopilot-chat.resource-trigger.tooltip":["Add resource"],"autopilot-chat.settings.heading-description":["heading level 2"],"autopilot-chat.settings.hide":["Hide settings"],"autopilot-chat.settings.title":["Chat settings"],"autopilot-chat.tree.no-description":["No description"],"autopilot-chat.tree.no-items":["No items"],"autopilot-chat.tree.unknown":["Unknown"]}');
1
+ const messages = JSON.parse('{"autopilot-chat.common.attachments.remove-file":["Remove"],"autopilot-chat.common.attachments.remove-file-name":["Remove ",["name"]],"autopilot-chat.common.mode-selector":["Mode selector"],"autopilot-chat.common.model-selector":["Model selector"],"autopilot-chat.dropzone.allowed-file-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.dropzone.overlay-max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.dropzone.overlay-max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.dropzone.overlay-title":["Drop your files here to add them to your prompt"],"autopilot-chat.error.file-invalid-type":["Unsupported file: ",["fileName"]],"autopilot-chat.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.error.multiple-files":["Only one file can be attached per message"],"autopilot-chat.error.too-many-files":["Too many files. ",["maxCount"]," files are allowed per message"],"autopilot-chat.header.actions.close":["Close chat"],"autopilot-chat.header.actions.collapse":["Collapse"],"autopilot-chat.header.actions.custom-actions":["More actions"],"autopilot-chat.header.actions.expand":["Expand"],"autopilot-chat.header.actions.history":["Chat history"],"autopilot-chat.header.actions.new-chat":["New chat"],"autopilot-chat.header.actions.settings":["Settings"],"autopilot-chat.header.preview":["Preview"],"autopilot-chat.header.title":["Autopilot"],"autopilot-chat.history.delete":["Delete"],"autopilot-chat.history.empty":["There are no conversations yet."],"autopilot-chat.history.group.last-30-days":["Previous 30 days"],"autopilot-chat.history.group.last-week":["Last week"],"autopilot-chat.history.group.months-ago":[["count"]," months ago"],"autopilot-chat.history.group.today":["Today"],"autopilot-chat.history.group.yesterday":["Yesterday"],"autopilot-chat.history.no-results":["No results found."],"autopilot-chat.history.search-placeholder":["Search"],"autopilot-chat.input.actions.attach-file":["Attach file(s)"],"autopilot-chat.input.actions.attachments.allowed-types":["Allowed file types: ",["fileTypes"]],"autopilot-chat.input.actions.attachments.max-count":["Maximum files allowed: ",["maxCount"]],"autopilot-chat.input.actions.attachments.max-size":["Maximum file size: ",["maxSize"],"MB"],"autopilot-chat.input.actions.dictate":["Dictate"],"autopilot-chat.input.actions.error.file-too-large":["File too large: ",["fileName"]," ",["fileSize"],"MB/",["maxSize"],"MB"],"autopilot-chat.input.actions.send":["Send"],"autopilot-chat.input.actions.stop":["Stop"],"autopilot-chat.input.actions.voice-interaction":["Voice interaction"],"autopilot-chat.input.agent-mode-selection-label":["Agent mode selection"],"autopilot-chat.input.footer":["Autopilot can make mistakes. Please double check the responses."],"autopilot-chat.input.model-selection-label":["Model selection"],"autopilot-chat.input.placeholder":["What would you like me to do?"],"autopilot-chat.input.resource-chip.remove":["Remove"],"autopilot-chat.input.resource-chip.remove-name":["Remove ",["label"]],"autopilot-chat.message.actions.bad":["Needs improvement"],"autopilot-chat.message.actions.copy":["Copy"],"autopilot-chat.message.actions.good":["Love this"],"autopilot-chat.message.actions.label":["Message actions"],"autopilot-chat.message.actions.more":["More actions"],"autopilot-chat.message.citation-aria-label":["Citation ",["id"],": ",["title"]],"autopilot-chat.message.close":["Close chat"],"autopilot-chat.message.code-block-code":["Code"],"autopilot-chat.message.code-block-copy":["Copy"],"autopilot-chat.message.code-block-language":["Text"],"autopilot-chat.message.code-block-preview":["Preview"],"autopilot-chat.message.expand":["Expand"],"autopilot-chat.message.footnote-label":["Sources"],"autopilot-chat.message.generating-response":["Generating..."],"autopilot-chat.message.page-number":["Page ",["page_number"]],"autopilot-chat.message.scroll-to-bottom":["Scroll to bottom"],"autopilot-chat.message.show-less":["Show less"],"autopilot-chat.message.show-more":["Show more"],"autopilot-chat.message.sources":["Sources"],"autopilot-chat.message.suggestions-title":["Suggestions"],"autopilot-chat.resource-picker.back":["Go back"],"autopilot-chat.resource-picker.empty":["No resources available"],"autopilot-chat.resource-picker.error":["Failed to load resources"],"autopilot-chat.resource-picker.label":["Resource picker"],"autopilot-chat.resource-picker.load-more-error":["Failed to load more"],"autopilot-chat.resource-picker.no-results":["No matching resources"],"autopilot-chat.resource-picker.retry":["Retry"],"autopilot-chat.resource-picker.search-error":["Search failed"],"autopilot-chat.resource-trigger.label":["Add resource reference"],"autopilot-chat.resource-trigger.tooltip":["Add resource"],"autopilot-chat.settings.heading-description":["heading level 2"],"autopilot-chat.settings.hide":["Hide settings"],"autopilot-chat.settings.title":["Chat settings"],"autopilot-chat.tree.no-description":["No description"],"autopilot-chat.tree.no-items":["No items"],"autopilot-chat.tree.unknown":["Unknown"]}');
2
2
  export { messages };
@@ -88,6 +88,8 @@ let AutopilotChatEvent = /*#__PURE__*/ function(AutopilotChatEvent) {
88
88
  AutopilotChatEvent["SetReadOnly"] = "setReadOnly";
89
89
  AutopilotChatEvent["SetResourceManager"] = "setResourceManager";
90
90
  AutopilotChatEvent["ResourceItemSelected"] = "resourceItemSelected";
91
+ AutopilotChatEvent["SpeechToTextToggle"] = "speechToTextToggle";
92
+ AutopilotChatEvent["SetSpeechToTextState"] = "setSpeechToTextState";
91
93
  return AutopilotChatEvent;
92
94
  }({});
93
95
  let AutopilotChatInterceptableEvent = /*#__PURE__*/ function(AutopilotChatInterceptableEvent) {
@@ -118,7 +118,9 @@ export declare enum AutopilotChatEvent {
118
118
  CustomHeaderActionClicked = "customHeaderActionClicked",
119
119
  SetReadOnly = "setReadOnly",
120
120
  SetResourceManager = "setResourceManager",
121
- ResourceItemSelected = "resourceItemSelected"
121
+ ResourceItemSelected = "resourceItemSelected",
122
+ SpeechToTextToggle = "speechToTextToggle",
123
+ SetSpeechToTextState = "setSpeechToTextState"
122
124
  }
123
125
  export declare enum AutopilotChatInterceptableEvent {
124
126
  Request = "request"
@@ -191,6 +193,7 @@ export interface AutopilotChatDisabledFeatures {
191
193
  fullHeight?: boolean;
192
194
  copy?: boolean;
193
195
  htmlPreview?: boolean;
196
+ audioStreaming?: boolean;
194
197
  }
195
198
  export interface AutopilotChatOverrideLabels {
196
199
  inputPlaceholder?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ChatModel.d.ts","sourceRoot":"","sources":["../../../../../src/material/components/ap-chat/service/ChatModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAC;AAEpE,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,UAAU,iBAAiB;IAC3B,UAAU,gBAAgB;IAC1B,QAAQ,aAAa;CACtB;AAED,oBAAY,qBAAqB;IAC/B,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,IAAI,SAAS;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;QACpB,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;QAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;KACvB,CAAC;IACF,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAUD,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAUD,MAAM,WAAW,0BAA0B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAaD,MAAM,WAAW,+BAA+B;IAC9C,EAAE,EA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AE,MAAM,CAAC;CACd;AAOD,MAAM,WAAW,iCAAiC;IAChD,UAAU,EAAE,MAAM,CAAC;CACpB;AAWD,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAQD,MAAM,WAAW,iCAAkC,SAAQ,yBAAyB;IAClF,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AAQD,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,yBAAyB,EAAE,CAAC;IACnC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAQD,MAAM,WAAW,kCAAkC;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAMD,MAAM,WAAW,4BAA4B;IAI3C,oBAAoB,IAAI,iCAAiC,EAAE,CAAC;IAQ5D,kBAAkB,CAChB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAOxC,YAAY,CAAC,OAAO,EAAE,kCAAkC,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAOhG,kBAAkB,CAAC,CAAC,IAAI,EAAE,yBAAyB,GAAG,IAAI,CAAC;CAC5D"}
@@ -54,6 +54,8 @@ let ChatModel_AutopilotChatEvent = /*#__PURE__*/ function(AutopilotChatEvent) {
54
54
  AutopilotChatEvent["SetReadOnly"] = "setReadOnly";
55
55
  AutopilotChatEvent["SetResourceManager"] = "setResourceManager";
56
56
  AutopilotChatEvent["ResourceItemSelected"] = "resourceItemSelected";
57
+ AutopilotChatEvent["SpeechToTextToggle"] = "speechToTextToggle";
58
+ AutopilotChatEvent["SetSpeechToTextState"] = "setSpeechToTextState";
57
59
  return AutopilotChatEvent;
58
60
  }({});
59
61
  let ChatModel_AutopilotChatInterceptableEvent = /*#__PURE__*/ function(AutopilotChatInterceptableEvent) {
@@ -49,6 +49,7 @@ class AutopilotChatService {
49
49
  settings: true,
50
50
  headerSeparator: true,
51
51
  audio: true,
52
+ audioStreaming: true,
52
53
  fullHeight: true,
53
54
  htmlPreview: true
54
55
  },
@@ -84,6 +85,7 @@ class AutopilotChatService {
84
85
  _locale = 'en';
85
86
  _theme = 'light';
86
87
  _resourceManager;
88
+ _isSpeechToTextActive = false;
87
89
  constructor(instanceName){
88
90
  this._instanceName = instanceName;
89
91
  this._eventBus = new external_EventBus_cjs_namespaceObject.EventBus();
@@ -555,6 +557,18 @@ class AutopilotChatService {
555
557
  sendOutputStreamEvent(event) {
556
558
  this._eventBus.publish(external_ChatModel_cjs_namespaceObject.AutopilotChatEvent.OutputStream, event);
557
559
  }
560
+ publishSpeechToTextToggle() {
561
+ this._isSpeechToTextActive = !this._isSpeechToTextActive;
562
+ this._eventBus.publish(external_ChatModel_cjs_namespaceObject.AutopilotChatEvent.SetSpeechToTextState, this._isSpeechToTextActive);
563
+ this._eventBus.publish(external_ChatModel_cjs_namespaceObject.AutopilotChatEvent.SpeechToTextToggle, this._isSpeechToTextActive);
564
+ }
565
+ setSpeechToTextState(isActive) {
566
+ this._isSpeechToTextActive = isActive;
567
+ this._eventBus.publish(external_ChatModel_cjs_namespaceObject.AutopilotChatEvent.SetSpeechToTextState, isActive);
568
+ }
569
+ get isSpeechToTextActive() {
570
+ return this._isSpeechToTextActive;
571
+ }
558
572
  setAttachmentsLoading(attachments) {
559
573
  this._internalService.publish(external_ChatModel_cjs_namespaceObject.AutopilotChatInternalEvent.SetAttachmentsLoading, attachments);
560
574
  }
@@ -27,6 +27,7 @@ export declare class AutopilotChatService {
27
27
  private _locale;
28
28
  private _theme;
29
29
  private _resourceManager;
30
+ private _isSpeechToTextActive;
30
31
  private constructor();
31
32
  static Instantiate({ instanceName, config, messageRenderers, }: {
32
33
  instanceName?: string;
@@ -112,6 +113,9 @@ export declare class AutopilotChatService {
112
113
  getPreHook(action: AutopilotChatPreHookAction): (data?: any) => Promise<boolean>;
113
114
  sendInputStreamEvent(event: AutopilotChatInputStreamEvent): void;
114
115
  sendOutputStreamEvent(event: AutopilotChatOutputStreamEvent): void;
116
+ publishSpeechToTextToggle(): void;
117
+ setSpeechToTextState(isActive: boolean): void;
118
+ get isSpeechToTextActive(): boolean;
115
119
  setAttachmentsLoading(attachments: AutopilotChatFileInfo[]): void;
116
120
  private _accumulateContentPart;
117
121
  private _getAccumulatedContent;
@@ -1 +1 @@
1
- {"version":3,"file":"ChatService.d.ts","sourceRoot":"","sources":["../../../../../src/material/components/ap-chat/service/ChatService.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,KAAK,EACV,0BAA0B,EAC1B,+BAA+B,EAC/B,0BAA0B,EAC1B,+BAA+B,EAC/B,6BAA6B,EAC7B,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,6BAA6B,EAC7B,qBAAqB,EACrB,oBAAoB,EACpB,6BAA6B,EAC7B,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,EACtB,8BAA8B,EAC9B,2BAA2B,EAC3B,0BAA0B,EAC1B,mBAAmB,EACnB,4BAA4B,EAC5B,uBAAuB,EAEvB,gBAAgB,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,kBAAkB,EAClB,+BAA+B,EAE/B,iBAAiB,EAElB,MAAM,aAAa,CAAC;AAMrB,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,MAAM,CAAC,UAAU,CAA4C;IACrE,OAAO,CAAC,cAAc,CA6BpB;IACF,OAAO,CAAC,OAAO,CAA0D;IACzE,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,iBAAiB,CAAsC;IAC/D,OAAO,CAAC,mBAAmB,CAAyB;IACpD,OAAO,CAAC,aAAa,CAA8B;IACnD,OAAO,CAA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gB,CAAC,OAAO,EAAE,MAAM;IAqBhC,gBAAgB;IAShB,aAAa,CAAC,UAAU,EAAE,0BAA0B,EAAE;IAgBtD,aAAa;IASb,YAAY,CAAC,MAAM,EAAE,MAAM;IAqB3B,YAAY;IASZ,sBAAsB,CAAC,OAAO,EAAE,+BAA+B,EAAE;IAUjE,sBAAsB;IAStB,SAAS,CAAC,MAAM,EAAE,MAAM;IAUxB,SAAS;IAST,QAAQ,CAAC,KAAK,EAAE,MAAM;IAUtB,QAAQ;IAUR,kBAAkB,CAAC,eAAe,EAAE,4BAA4B;IAUhE,kBAAkB;IAUlB,WAAW,CAAC,QAAQ,EAAE,OAAO;IAW7B,WAAW;IASX,IAAI,mBAAmB,iCAEtB;IAQD,kBAAkB,CAAC,OAAO,EAAE,MAAM;IAUlC,UAAU,CAAC,MAAM,EAAE,0BAA0B,EAAE,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,OAAO,CAAC;IAcrF,UAAU,CAAC,MAAM,EAAE,0BAA0B;IAQ7C,oBAAoB,CAAC,KAAK,EAAE,6BAA6B;IAQzD,qBAAqB,CAAC,KAAK,EAAE,8BAA8B;IAS3D,yBAAyB;IAWzB,oBAAoB,CAAC,QAAQ,EAAE,OAAO;IAStC,IAAI,oBAAoB,IAAI,OAAO,CAElC;IAOD,qBAAqB,CAAC,WAAW,EAAE,qBAAqB,EAAE;IAQ1D,OAAO,CAAC,sBAAsB;IAa9B,OAAO,CAAC,sBAAsB;IAc9B,OAAO,CAAC,wBAAwB;IAQhC,OAAO,CAAC,wBAAwB;CA0CjC"}
@@ -21,6 +21,7 @@ class AutopilotChatService {
21
21
  settings: true,
22
22
  headerSeparator: true,
23
23
  audio: true,
24
+ audioStreaming: true,
24
25
  fullHeight: true,
25
26
  htmlPreview: true
26
27
  },
@@ -56,6 +57,7 @@ class AutopilotChatService {
56
57
  _locale = 'en';
57
58
  _theme = 'light';
58
59
  _resourceManager;
60
+ _isSpeechToTextActive = false;
59
61
  constructor(instanceName){
60
62
  this._instanceName = instanceName;
61
63
  this._eventBus = new EventBus();
@@ -527,6 +529,18 @@ class AutopilotChatService {
527
529
  sendOutputStreamEvent(event) {
528
530
  this._eventBus.publish(AutopilotChatEvent.OutputStream, event);
529
531
  }
532
+ publishSpeechToTextToggle() {
533
+ this._isSpeechToTextActive = !this._isSpeechToTextActive;
534
+ this._eventBus.publish(AutopilotChatEvent.SetSpeechToTextState, this._isSpeechToTextActive);
535
+ this._eventBus.publish(AutopilotChatEvent.SpeechToTextToggle, this._isSpeechToTextActive);
536
+ }
537
+ setSpeechToTextState(isActive) {
538
+ this._isSpeechToTextActive = isActive;
539
+ this._eventBus.publish(AutopilotChatEvent.SetSpeechToTextState, isActive);
540
+ }
541
+ get isSpeechToTextActive() {
542
+ return this._isSpeechToTextActive;
543
+ }
530
544
  setAttachmentsLoading(attachments) {
531
545
  this._internalService.publish(AutopilotChatInternalEvent.SetAttachmentsLoading, attachments);
532
546
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "4.13.1-pr581.30f7035",
3
+ "version": "4.14.0",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",
@@ -201,8 +201,8 @@
201
201
  "use-sync-external-store": "^1.2.0",
202
202
  "zod": "^4.3.5",
203
203
  "zustand": "^5.0.9",
204
- "@uipath/apollo-wind": "2.7.0",
205
- "@uipath/apollo-core": "5.9.0"
204
+ "@uipath/apollo-core": "5.9.0",
205
+ "@uipath/apollo-wind": "2.7.0"
206
206
  },
207
207
  "devDependencies": {
208
208
  "@lingui/cli": "^5.6.1",
@@ -1,112 +0,0 @@
1
- "use strict";
2
- var __webpack_require__ = {};
3
- (()=>{
4
- __webpack_require__.d = (exports1, definition)=>{
5
- for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
- enumerable: true,
7
- get: definition[key]
8
- });
9
- };
10
- })();
11
- (()=>{
12
- __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
- })();
14
- (()=>{
15
- __webpack_require__.r = (exports1)=>{
16
- if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
- value: 'Module'
18
- });
19
- Object.defineProperty(exports1, '__esModule', {
20
- value: true
21
- });
22
- };
23
- })();
24
- var __webpack_exports__ = {};
25
- __webpack_require__.r(__webpack_exports__);
26
- __webpack_require__.d(__webpack_exports__, {
27
- LoopCanvasNode: ()=>LoopCanvasNode
28
- });
29
- const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
- const react_cjs_namespaceObject = require("../../xyflow/react.cjs");
31
- const external_react_namespaceObject = require("react");
32
- const index_cjs_namespaceObject = require("../../core/index.cjs");
33
- const canvasStore_cjs_namespaceObject = require("../../stores/canvasStore.cjs");
34
- const NodeUtils_cjs_namespaceObject = require("../../utils/NodeUtils.cjs");
35
- const external_BaseNode_index_cjs_namespaceObject = require("../BaseNode/index.cjs");
36
- const external_LoopNode_cjs_namespaceObject = require("./LoopNode.cjs");
37
- const external_LoopNode_constants_cjs_namespaceObject = require("./LoopNode.constants.cjs");
38
- const external_LoopNode_helpers_cjs_namespaceObject = require("./LoopNode.helpers.cjs");
39
- const external_LoopNodePreview_cjs_namespaceObject = require("./LoopNodePreview.cjs");
40
- function shouldRenderLoopContainer(manifest) {
41
- return manifest?.handleConfiguration.some((group)=>'inner' === group.boundary) ?? false;
42
- }
43
- function LoopCanvasNodeComponent(props) {
44
- const reactFlow = (0, react_cjs_namespaceObject.useReactFlow)();
45
- const nodeTypeRegistry = (0, index_cjs_namespaceObject.useOptionalNodeTypeRegistry)();
46
- const updateNodes = (0, canvasStore_cjs_namespaceObject.useCanvasStore)(canvasStore_cjs_namespaceObject.selectUpdateNodes);
47
- const nodeVersion = 'string' == typeof props.data?.version ? props.data.version : void 0;
48
- const loopManifest = (0, external_react_namespaceObject.useMemo)(()=>nodeTypeRegistry?.getManifest(props.type ?? external_LoopNode_constants_cjs_namespaceObject.DEFAULT_LOOP_NODE_TYPE, nodeVersion), [
49
- nodeTypeRegistry,
50
- props.type,
51
- nodeVersion
52
- ]);
53
- const shouldUseLoopContainer = (0, external_react_namespaceObject.useMemo)(()=>shouldRenderLoopContainer(loopManifest), [
54
- loopManifest
55
- ]);
56
- const loopPreviewHandles = (0, external_react_namespaceObject.useMemo)(()=>shouldUseLoopContainer ? (0, external_LoopNode_helpers_cjs_namespaceObject.resolveLoopPreviewConnectionHandles)(loopManifest, {
57
- ...props.data ?? {},
58
- nodeId: props.id
59
- }) : null, [
60
- shouldUseLoopContainer,
61
- loopManifest,
62
- props.data,
63
- props.id
64
- ]);
65
- const handleAddFirstChild = (0, external_react_namespaceObject.useCallback)(()=>{
66
- if (!loopPreviewHandles) return;
67
- (0, external_LoopNodePreview_cjs_namespaceObject.showCenteredContainerPreview)({
68
- containerId: props.id,
69
- reactFlowInstance: reactFlow,
70
- previewHandles: loopPreviewHandles
71
- });
72
- }, [
73
- loopPreviewHandles,
74
- props.id,
75
- reactFlow
76
- ]);
77
- const handleResize = (0, external_react_namespaceObject.useCallback)(({ width, height })=>{
78
- const currentCanvas = (0, canvasStore_cjs_namespaceObject.selectCurrentCanvas)(canvasStore_cjs_namespaceObject.useCanvasStore.getState());
79
- if (!currentCanvas) return;
80
- const nextWidth = (0, NodeUtils_cjs_namespaceObject.snapToGrid)(width);
81
- const nextHeight = (0, NodeUtils_cjs_namespaceObject.snapToGrid)(height);
82
- updateNodes(currentCanvas.nodes.map((node)=>node.id !== props.id ? node : {
83
- ...node,
84
- width: nextWidth,
85
- height: nextHeight,
86
- style: {
87
- ...node.style ?? {},
88
- width: nextWidth,
89
- height: nextHeight
90
- }
91
- }));
92
- }, [
93
- props.id,
94
- updateNodes
95
- ]);
96
- if (loopManifest && !shouldUseLoopContainer) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_BaseNode_index_cjs_namespaceObject.BaseNode, {
97
- ...props
98
- });
99
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_LoopNode_cjs_namespaceObject.LoopNode, {
100
- ...props,
101
- onAddFirstChild: loopPreviewHandles ? handleAddFirstChild : void 0,
102
- onResize: handleResize
103
- });
104
- }
105
- const LoopCanvasNode = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(LoopCanvasNodeComponent);
106
- exports.LoopCanvasNode = __webpack_exports__.LoopCanvasNode;
107
- for(var __rspack_i in __webpack_exports__)if (-1 === [
108
- "LoopCanvasNode"
109
- ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
110
- Object.defineProperty(exports, '__esModule', {
111
- value: true
112
- });
@@ -1,6 +0,0 @@
1
- import type { Node, NodeProps } from '../../xyflow/react.ts';
2
- import type { LoopNodeData } from './LoopNode.types';
3
- declare function LoopCanvasNodeComponent(props: NodeProps<Node<LoopNodeData>>): import("react/jsx-runtime").JSX.Element;
4
- export declare const LoopCanvasNode: import("react").MemoExoticComponent<typeof LoopCanvasNodeComponent>;
5
- export {};
6
- //# sourceMappingURL=LoopCanvasNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"LoopCanvasNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/LoopNode/LoopCanvasNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAWhF,OAAO,KAAK,EAAE,YAAY,EAAiB,MAAM,kBAAkB,CAAC;AAQpE,iBAAS,uBAAuB,CAAC,KAAK,EAAE,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,2CA4EpE;AAED,eAAO,MAAM,cAAc,qEAAgC,CAAC"}
@@ -1,78 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useReactFlow } from "../../xyflow/react.js";
3
- import { memo, useCallback, useMemo } from "react";
4
- import { useOptionalNodeTypeRegistry } from "../../core/index.js";
5
- import { selectCurrentCanvas, selectUpdateNodes, useCanvasStore } from "../../stores/canvasStore.js";
6
- import { snapToGrid } from "../../utils/NodeUtils.js";
7
- import { BaseNode } from "../BaseNode/index.js";
8
- import { LoopNode } from "./LoopNode.js";
9
- import { DEFAULT_LOOP_NODE_TYPE } from "./LoopNode.constants.js";
10
- import { resolveLoopPreviewConnectionHandles } from "./LoopNode.helpers.js";
11
- import { showCenteredContainerPreview } from "./LoopNodePreview.js";
12
- function shouldRenderLoopContainer(manifest) {
13
- return manifest?.handleConfiguration.some((group)=>'inner' === group.boundary) ?? false;
14
- }
15
- function LoopCanvasNodeComponent(props) {
16
- const reactFlow = useReactFlow();
17
- const nodeTypeRegistry = useOptionalNodeTypeRegistry();
18
- const updateNodes = useCanvasStore(selectUpdateNodes);
19
- const nodeVersion = 'string' == typeof props.data?.version ? props.data.version : void 0;
20
- const loopManifest = useMemo(()=>nodeTypeRegistry?.getManifest(props.type ?? DEFAULT_LOOP_NODE_TYPE, nodeVersion), [
21
- nodeTypeRegistry,
22
- props.type,
23
- nodeVersion
24
- ]);
25
- const shouldUseLoopContainer = useMemo(()=>shouldRenderLoopContainer(loopManifest), [
26
- loopManifest
27
- ]);
28
- const loopPreviewHandles = useMemo(()=>shouldUseLoopContainer ? resolveLoopPreviewConnectionHandles(loopManifest, {
29
- ...props.data ?? {},
30
- nodeId: props.id
31
- }) : null, [
32
- shouldUseLoopContainer,
33
- loopManifest,
34
- props.data,
35
- props.id
36
- ]);
37
- const handleAddFirstChild = useCallback(()=>{
38
- if (!loopPreviewHandles) return;
39
- showCenteredContainerPreview({
40
- containerId: props.id,
41
- reactFlowInstance: reactFlow,
42
- previewHandles: loopPreviewHandles
43
- });
44
- }, [
45
- loopPreviewHandles,
46
- props.id,
47
- reactFlow
48
- ]);
49
- const handleResize = useCallback(({ width, height })=>{
50
- const currentCanvas = selectCurrentCanvas(useCanvasStore.getState());
51
- if (!currentCanvas) return;
52
- const nextWidth = snapToGrid(width);
53
- const nextHeight = snapToGrid(height);
54
- updateNodes(currentCanvas.nodes.map((node)=>node.id !== props.id ? node : {
55
- ...node,
56
- width: nextWidth,
57
- height: nextHeight,
58
- style: {
59
- ...node.style ?? {},
60
- width: nextWidth,
61
- height: nextHeight
62
- }
63
- }));
64
- }, [
65
- props.id,
66
- updateNodes
67
- ]);
68
- if (loopManifest && !shouldUseLoopContainer) return /*#__PURE__*/ jsx(BaseNode, {
69
- ...props
70
- });
71
- return /*#__PURE__*/ jsx(LoopNode, {
72
- ...props,
73
- onAddFirstChild: loopPreviewHandles ? handleAddFirstChild : void 0,
74
- onResize: handleResize
75
- });
76
- }
77
- const LoopCanvasNode = /*#__PURE__*/ memo(LoopCanvasNodeComponent);
78
- export { LoopCanvasNode };