@uipath/apollo-react 6.29.0 → 6.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas/components/index.cjs +55 -48
- package/dist/canvas/components/index.d.ts +1 -0
- package/dist/canvas/components/index.d.ts.map +1 -1
- package/dist/canvas/components/index.js +1 -0
- package/dist/canvas/icons/FileSparklesCornerIcon.cjs +80 -0
- package/dist/canvas/icons/FileSparklesCornerIcon.d.ts +6 -0
- package/dist/canvas/icons/FileSparklesCornerIcon.d.ts.map +1 -0
- package/dist/canvas/icons/FileSparklesCornerIcon.js +46 -0
- package/dist/canvas/icons/index.cjs +4 -0
- package/dist/canvas/icons/index.d.ts +1 -0
- package/dist/canvas/icons/index.d.ts.map +1 -1
- package/dist/canvas/icons/index.js +2 -1
- package/dist/canvas/locales/de.cjs +1 -1
- package/dist/canvas/locales/de.d.ts.map +1 -1
- package/dist/canvas/locales/de.js +1 -1
- package/dist/canvas/locales/es-MX.cjs +1 -1
- package/dist/canvas/locales/es-MX.d.ts.map +1 -1
- package/dist/canvas/locales/es-MX.js +1 -1
- package/dist/canvas/locales/es.cjs +1 -1
- package/dist/canvas/locales/es.d.ts.map +1 -1
- package/dist/canvas/locales/es.js +1 -1
- package/dist/canvas/locales/fr.cjs +1 -1
- package/dist/canvas/locales/fr.d.ts.map +1 -1
- package/dist/canvas/locales/fr.js +1 -1
- package/dist/canvas/locales/ja.cjs +1 -1
- package/dist/canvas/locales/ja.d.ts.map +1 -1
- package/dist/canvas/locales/ja.js +1 -1
- package/dist/canvas/locales/ko.cjs +1 -1
- package/dist/canvas/locales/ko.d.ts.map +1 -1
- package/dist/canvas/locales/ko.js +1 -1
- package/dist/canvas/locales/pt-BR.cjs +1 -1
- package/dist/canvas/locales/pt-BR.d.ts.map +1 -1
- package/dist/canvas/locales/pt-BR.js +1 -1
- package/dist/canvas/locales/pt.cjs +1 -1
- package/dist/canvas/locales/pt.d.ts.map +1 -1
- package/dist/canvas/locales/pt.js +1 -1
- package/dist/canvas/locales/ro.cjs +1 -1
- package/dist/canvas/locales/ro.d.ts.map +1 -1
- package/dist/canvas/locales/ro.js +1 -1
- package/dist/canvas/locales/tr.cjs +1 -1
- package/dist/canvas/locales/tr.d.ts.map +1 -1
- package/dist/canvas/locales/tr.js +1 -1
- package/dist/canvas/locales/zh-CN.cjs +1 -1
- package/dist/canvas/locales/zh-CN.d.ts.map +1 -1
- package/dist/canvas/locales/zh-CN.js +1 -1
- package/dist/canvas/locales/zh-TW.cjs +1 -1
- package/dist/canvas/locales/zh-TW.d.ts.map +1 -1
- package/dist/canvas/locales/zh-TW.js +1 -1
- package/dist/canvas/types/execution.d.ts.map +1 -1
- package/dist/canvas/utils/adornment-resolver.cjs +1 -18
- package/dist/canvas/utils/adornment-resolver.d.ts.map +1 -1
- package/dist/canvas/utils/adornment-resolver.js +1 -18
- package/dist/canvas/utils/icon-registry.cjs +5 -0
- package/dist/canvas/utils/icon-registry.d.ts.map +1 -1
- package/dist/canvas/utils/icon-registry.js +6 -1
- package/dist/material/components/ap-chat/components/history/chat-history-item.cjs +174 -46
- package/dist/material/components/ap-chat/components/history/chat-history-item.d.ts.map +1 -1
- package/dist/material/components/ap-chat/components/history/chat-history-item.js +174 -46
- package/dist/material/components/ap-chat/locales/en.cjs +1 -1
- package/dist/material/components/ap-chat/locales/en.d.ts.map +1 -1
- package/dist/material/components/ap-chat/locales/en.js +1 -1
- package/dist/material/components/ap-chat/service/ChatModel.cjs +2 -0
- package/dist/material/components/ap-chat/service/ChatModel.d.ts +8 -1
- package/dist/material/components/ap-chat/service/ChatModel.d.ts.map +1 -1
- package/dist/material/components/ap-chat/service/ChatModel.js +2 -0
- package/dist/material/components/ap-chat/service/ChatService.cjs +9 -1
- package/dist/material/components/ap-chat/service/ChatService.d.ts +1 -0
- package/dist/material/components/ap-chat/service/ChatService.d.ts.map +1 -1
- package/dist/material/components/ap-chat/service/ChatService.js +9 -1
- package/dist/material/components/ap-chat/service/LocalHistory.cjs +22 -0
- package/dist/material/components/ap-chat/service/LocalHistory.d.ts +1 -0
- package/dist/material/components/ap-chat/service/LocalHistory.d.ts.map +1 -1
- package/dist/material/components/ap-chat/service/LocalHistory.js +22 -0
- package/dist/material/stories/chat-story-support.cjs +20 -3
- package/dist/material/stories/chat-story-support.d.ts.map +1 -1
- package/dist/material/stories/chat-story-support.js +20 -3
- package/package.json +2 -2
|
@@ -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.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"]}');
|
|
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.rename":["Rename chat"],"autopilot-chat.history.rename-input":["Chat name"],"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 };
|
|
@@ -69,6 +69,7 @@ let AutopilotChatEvent = /*#__PURE__*/ function(AutopilotChatEvent) {
|
|
|
69
69
|
AutopilotChatEvent["SetConversation"] = "setConversation";
|
|
70
70
|
AutopilotChatEvent["SetHistory"] = "setHistory";
|
|
71
71
|
AutopilotChatEvent["DeleteConversation"] = "deleteConversation";
|
|
72
|
+
AutopilotChatEvent["RenameConversation"] = "renameConversation";
|
|
72
73
|
AutopilotChatEvent["OpenConversation"] = "openConversation";
|
|
73
74
|
AutopilotChatEvent["Feedback"] = "feedback";
|
|
74
75
|
AutopilotChatEvent["Copy"] = "copy";
|
|
@@ -131,6 +132,7 @@ let AutopilotChatPreHookAction = /*#__PURE__*/ function(AutopilotChatPreHookActi
|
|
|
131
132
|
AutopilotChatPreHookAction["CitationClick"] = "citation-click";
|
|
132
133
|
AutopilotChatPreHookAction["Feedback"] = "feedback";
|
|
133
134
|
AutopilotChatPreHookAction["DeleteConversation"] = "delete-conversation";
|
|
135
|
+
AutopilotChatPreHookAction["RenameConversation"] = "rename-conversation";
|
|
134
136
|
return AutopilotChatPreHookAction;
|
|
135
137
|
}({});
|
|
136
138
|
exports.AutopilotChatEvent = __webpack_exports__.AutopilotChatEvent;
|
|
@@ -100,6 +100,7 @@ export declare enum AutopilotChatEvent {
|
|
|
100
100
|
SetConversation = "setConversation",
|
|
101
101
|
SetHistory = "setHistory",
|
|
102
102
|
DeleteConversation = "deleteConversation",
|
|
103
|
+
RenameConversation = "renameConversation",
|
|
103
104
|
OpenConversation = "openConversation",
|
|
104
105
|
Feedback = "feedback",
|
|
105
106
|
Copy = "copy",
|
|
@@ -194,6 +195,7 @@ export interface AutopilotChatDisabledFeatures {
|
|
|
194
195
|
copy?: boolean;
|
|
195
196
|
htmlPreview?: boolean;
|
|
196
197
|
audioStreaming?: boolean;
|
|
198
|
+
renameChat?: boolean;
|
|
197
199
|
}
|
|
198
200
|
export interface AutopilotChatOverrideLabels {
|
|
199
201
|
inputPlaceholder?: string;
|
|
@@ -208,7 +210,8 @@ export declare enum AutopilotChatPreHookAction {
|
|
|
208
210
|
CloseChat = "close-chat",
|
|
209
211
|
CitationClick = "citation-click",
|
|
210
212
|
Feedback = "feedback",
|
|
211
|
-
DeleteConversation = "delete-conversation"
|
|
213
|
+
DeleteConversation = "delete-conversation",
|
|
214
|
+
RenameConversation = "rename-conversation"
|
|
212
215
|
}
|
|
213
216
|
export interface AutopilotChatConfiguration {
|
|
214
217
|
mode: AutopilotChatMode;
|
|
@@ -285,6 +288,10 @@ export interface AutopilotChatHistory {
|
|
|
285
288
|
name: string;
|
|
286
289
|
timestamp: string;
|
|
287
290
|
}
|
|
291
|
+
export interface AutopilotChatRenameConversationPayload {
|
|
292
|
+
conversationId: string;
|
|
293
|
+
name: string;
|
|
294
|
+
}
|
|
288
295
|
export interface AutopilotChatMessageActionDetails {
|
|
289
296
|
preHookAction?: AutopilotChatPreHookAction;
|
|
290
297
|
isPositive?: boolean;
|
|
@@ -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;CAC5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,WAAW,mBACf,SAAQ,IAAI,CAAC,oBAAoB,EAAE,SAAS,GAAG,aAAa,CAAC;CAAG;AAUlE,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,oBAAoB,KAAK,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;CACxF;AAKD,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,MAAM,CAAC;AAQvD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,uBAAuB,CAAC;CAChC;
|
|
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;C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AC;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"}
|
|
@@ -35,6 +35,7 @@ let ChatModel_AutopilotChatEvent = /*#__PURE__*/ function(AutopilotChatEvent) {
|
|
|
35
35
|
AutopilotChatEvent["SetConversation"] = "setConversation";
|
|
36
36
|
AutopilotChatEvent["SetHistory"] = "setHistory";
|
|
37
37
|
AutopilotChatEvent["DeleteConversation"] = "deleteConversation";
|
|
38
|
+
AutopilotChatEvent["RenameConversation"] = "renameConversation";
|
|
38
39
|
AutopilotChatEvent["OpenConversation"] = "openConversation";
|
|
39
40
|
AutopilotChatEvent["Feedback"] = "feedback";
|
|
40
41
|
AutopilotChatEvent["Copy"] = "copy";
|
|
@@ -97,6 +98,7 @@ let ChatModel_AutopilotChatPreHookAction = /*#__PURE__*/ function(AutopilotChatP
|
|
|
97
98
|
AutopilotChatPreHookAction["CitationClick"] = "citation-click";
|
|
98
99
|
AutopilotChatPreHookAction["Feedback"] = "feedback";
|
|
99
100
|
AutopilotChatPreHookAction["DeleteConversation"] = "delete-conversation";
|
|
101
|
+
AutopilotChatPreHookAction["RenameConversation"] = "rename-conversation";
|
|
100
102
|
return AutopilotChatPreHookAction;
|
|
101
103
|
}({});
|
|
102
104
|
export { ChatModel_AutopilotChatEvent as AutopilotChatEvent, ChatModel_AutopilotChatFileType as AutopilotChatFileType, ChatModel_AutopilotChatInterceptableEvent as AutopilotChatInterceptableEvent, ChatModel_AutopilotChatInternalEvent as AutopilotChatInternalEvent, ChatModel_AutopilotChatMode as AutopilotChatMode, ChatModel_AutopilotChatPreHookAction as AutopilotChatPreHookAction, ChatModel_AutopilotChatRole as AutopilotChatRole };
|
|
@@ -51,7 +51,8 @@ class AutopilotChatService {
|
|
|
51
51
|
audio: true,
|
|
52
52
|
audioStreaming: true,
|
|
53
53
|
fullHeight: true,
|
|
54
|
-
htmlPreview: true
|
|
54
|
+
htmlPreview: true,
|
|
55
|
+
renameChat: true
|
|
55
56
|
},
|
|
56
57
|
settingsRenderer: ()=>{},
|
|
57
58
|
models: void 0,
|
|
@@ -121,6 +122,7 @@ class AutopilotChatService {
|
|
|
121
122
|
this.toggleHistory = this.toggleHistory.bind(this);
|
|
122
123
|
this.toggleSettings = this.toggleSettings.bind(this);
|
|
123
124
|
this.deleteConversation = this.deleteConversation.bind(this);
|
|
125
|
+
this.renameConversation = this.renameConversation.bind(this);
|
|
124
126
|
this.openConversation = this.openConversation.bind(this);
|
|
125
127
|
this.setAllowedAttachments = this.setAllowedAttachments.bind(this);
|
|
126
128
|
this.toggleAutoScroll = this.toggleAutoScroll.bind(this);
|
|
@@ -455,6 +457,12 @@ class AutopilotChatService {
|
|
|
455
457
|
}
|
|
456
458
|
this._eventBus.publish(external_ChatModel_cjs_namespaceObject.AutopilotChatEvent.DeleteConversation, conversationId);
|
|
457
459
|
}
|
|
460
|
+
renameConversation(conversationId, name) {
|
|
461
|
+
this._eventBus.publish(external_ChatModel_cjs_namespaceObject.AutopilotChatEvent.RenameConversation, {
|
|
462
|
+
conversationId,
|
|
463
|
+
name
|
|
464
|
+
});
|
|
465
|
+
}
|
|
458
466
|
openConversation(conversationId, showLoadingState = true) {
|
|
459
467
|
this._activeConversationId = conversationId;
|
|
460
468
|
this._eventBus.publish(external_ChatModel_cjs_namespaceObject.AutopilotChatEvent.OpenConversation, conversationId);
|
|
@@ -86,6 +86,7 @@ export declare class AutopilotChatService {
|
|
|
86
86
|
toggleHistory(open?: boolean): void;
|
|
87
87
|
toggleSettings(open?: boolean): void;
|
|
88
88
|
deleteConversation(conversationId: string): void;
|
|
89
|
+
renameConversation(conversationId: string, name: string): void;
|
|
89
90
|
openConversation(conversationId: string | null, showLoadingState?: boolean): void;
|
|
90
91
|
setAllowedAttachments(allowedAttachments: AutopilotChatAllowedAttachments): void;
|
|
91
92
|
toggleAutoScroll(autoScroll: boolean): void;
|
|
@@ -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,
|
|
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,0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AWzB,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"}
|
|
@@ -23,7 +23,8 @@ class AutopilotChatService {
|
|
|
23
23
|
audio: true,
|
|
24
24
|
audioStreaming: true,
|
|
25
25
|
fullHeight: true,
|
|
26
|
-
htmlPreview: true
|
|
26
|
+
htmlPreview: true,
|
|
27
|
+
renameChat: true
|
|
27
28
|
},
|
|
28
29
|
settingsRenderer: ()=>{},
|
|
29
30
|
models: void 0,
|
|
@@ -93,6 +94,7 @@ class AutopilotChatService {
|
|
|
93
94
|
this.toggleHistory = this.toggleHistory.bind(this);
|
|
94
95
|
this.toggleSettings = this.toggleSettings.bind(this);
|
|
95
96
|
this.deleteConversation = this.deleteConversation.bind(this);
|
|
97
|
+
this.renameConversation = this.renameConversation.bind(this);
|
|
96
98
|
this.openConversation = this.openConversation.bind(this);
|
|
97
99
|
this.setAllowedAttachments = this.setAllowedAttachments.bind(this);
|
|
98
100
|
this.toggleAutoScroll = this.toggleAutoScroll.bind(this);
|
|
@@ -427,6 +429,12 @@ class AutopilotChatService {
|
|
|
427
429
|
}
|
|
428
430
|
this._eventBus.publish(AutopilotChatEvent.DeleteConversation, conversationId);
|
|
429
431
|
}
|
|
432
|
+
renameConversation(conversationId, name) {
|
|
433
|
+
this._eventBus.publish(AutopilotChatEvent.RenameConversation, {
|
|
434
|
+
conversationId,
|
|
435
|
+
name
|
|
436
|
+
});
|
|
437
|
+
}
|
|
430
438
|
openConversation(conversationId, showLoadingState = true) {
|
|
431
439
|
this._activeConversationId = conversationId;
|
|
432
440
|
this._eventBus.publish(AutopilotChatEvent.OpenConversation, conversationId);
|
|
@@ -152,6 +152,23 @@ class LocalHistoryService {
|
|
|
152
152
|
};
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
+
static async renameConversation(conversationId, name) {
|
|
156
|
+
const db = await LocalHistoryService.getConversationsDb();
|
|
157
|
+
const existing = await LocalHistoryService.getConversation(conversationId);
|
|
158
|
+
if (!existing) return;
|
|
159
|
+
const data = {
|
|
160
|
+
...existing,
|
|
161
|
+
name,
|
|
162
|
+
lastUpdated: Date.now()
|
|
163
|
+
};
|
|
164
|
+
return new Promise((resolve, reject)=>{
|
|
165
|
+
const transaction = db.transaction('conversations', 'readwrite');
|
|
166
|
+
const store = transaction.objectStore('conversations');
|
|
167
|
+
const request = store.put(data, conversationId);
|
|
168
|
+
request.onerror = ()=>reject(request.error);
|
|
169
|
+
request.onsuccess = ()=>resolve();
|
|
170
|
+
});
|
|
171
|
+
}
|
|
155
172
|
static async deleteConversation(conversationId) {
|
|
156
173
|
const conversationsDb = await LocalHistoryService.getConversationsDb();
|
|
157
174
|
const messagesDb = await LocalHistoryService.getMessagesDb();
|
|
@@ -234,10 +251,15 @@ class LocalHistoryService {
|
|
|
234
251
|
}
|
|
235
252
|
chatService.setHistory(await LocalHistoryService.getAllConversations());
|
|
236
253
|
});
|
|
254
|
+
const unsubscribeRenameConversation = chatService.on(external_ChatModel_cjs_namespaceObject.AutopilotChatEvent.RenameConversation, async (payload)=>{
|
|
255
|
+
await LocalHistoryService.renameConversation(payload.conversationId, payload.name);
|
|
256
|
+
chatService.setHistory(await LocalHistoryService.getAllConversations());
|
|
257
|
+
});
|
|
237
258
|
cleanup();
|
|
238
259
|
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('setHistory', unsubscribeSetHistory);
|
|
239
260
|
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('openConversation', unsubscribeOpenConversation);
|
|
240
261
|
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('deleteConversation', unsubscribeDeleteConversation);
|
|
262
|
+
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('renameConversation', unsubscribeRenameConversation);
|
|
241
263
|
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('request', unsubscribeRequest);
|
|
242
264
|
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('response', unsubscribeResponse);
|
|
243
265
|
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('sendChunk', unsubscribeSendChunk);
|
|
@@ -26,6 +26,7 @@ export declare class LocalHistoryService {
|
|
|
26
26
|
static saveMessage(conversationId: string, message: AutopilotChatMessage): Promise<string>;
|
|
27
27
|
static patchMessage(conversationId: string, message: AutopilotChatMessage): Promise<string | null>;
|
|
28
28
|
static getConversationMessages(conversationId: string): Promise<AutopilotChatMessage[]>;
|
|
29
|
+
static renameConversation(conversationId: string, name: string): Promise<void>;
|
|
29
30
|
static deleteConversation(conversationId: string): Promise<void>;
|
|
30
31
|
static Initialize(instanceName: string, chatService: AutopilotChatService): Promise<void>;
|
|
31
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalHistory.d.ts","sourceRoot":"","sources":["../../../../../src/material/components/ap-chat/service/LocalHistory.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAMxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAG1D,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAMD,qBAAa,mBAAmB;IAE9B,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAgC;IAEzE,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAA2B;IAE/D,OAAO,CAAC,MAAM,CAAC,UAAU,CAAK;IAE9B,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAuB;IAE5D,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAc;IAElD,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAc;IAE7C,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAsC;mBAKrD,kBAAkB;mBAsBlB,aAAa;WAsBd,kBAAkB,CACpC,cAAc,EAAE,MAAM,EACtB,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC;WA4BE,mBAAmB,IAAI,OAAO,CAChD,KAAK,CAAC;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC,CACH;WAgBmB,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;WAgBrE,WAAW,CAC7B,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,MAAM,CAAC;WAqBE,YAAY,CAC9B,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;WAuCL,uBAAuB,CACzC,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,oBAAoB,EAAE,CAAC;WA2Bd,kBAAkB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;WAgDzD,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,oBAAoB;
|
|
1
|
+
{"version":3,"file":"LocalHistory.d.ts","sourceRoot":"","sources":["../../../../../src/material/components/ap-chat/service/LocalHistory.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAMxD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAG1D,UAAU,YAAY;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAMD,qBAAa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124,23 @@ class LocalHistoryService {
|
|
|
124
124
|
};
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
+
static async renameConversation(conversationId, name) {
|
|
128
|
+
const db = await LocalHistoryService.getConversationsDb();
|
|
129
|
+
const existing = await LocalHistoryService.getConversation(conversationId);
|
|
130
|
+
if (!existing) return;
|
|
131
|
+
const data = {
|
|
132
|
+
...existing,
|
|
133
|
+
name,
|
|
134
|
+
lastUpdated: Date.now()
|
|
135
|
+
};
|
|
136
|
+
return new Promise((resolve, reject)=>{
|
|
137
|
+
const transaction = db.transaction('conversations', 'readwrite');
|
|
138
|
+
const store = transaction.objectStore('conversations');
|
|
139
|
+
const request = store.put(data, conversationId);
|
|
140
|
+
request.onerror = ()=>reject(request.error);
|
|
141
|
+
request.onsuccess = ()=>resolve();
|
|
142
|
+
});
|
|
143
|
+
}
|
|
127
144
|
static async deleteConversation(conversationId) {
|
|
128
145
|
const conversationsDb = await LocalHistoryService.getConversationsDb();
|
|
129
146
|
const messagesDb = await LocalHistoryService.getMessagesDb();
|
|
@@ -206,10 +223,15 @@ class LocalHistoryService {
|
|
|
206
223
|
}
|
|
207
224
|
chatService.setHistory(await LocalHistoryService.getAllConversations());
|
|
208
225
|
});
|
|
226
|
+
const unsubscribeRenameConversation = chatService.on(AutopilotChatEvent.RenameConversation, async (payload)=>{
|
|
227
|
+
await LocalHistoryService.renameConversation(payload.conversationId, payload.name);
|
|
228
|
+
chatService.setHistory(await LocalHistoryService.getAllConversations());
|
|
229
|
+
});
|
|
209
230
|
cleanup();
|
|
210
231
|
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('setHistory', unsubscribeSetHistory);
|
|
211
232
|
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('openConversation', unsubscribeOpenConversation);
|
|
212
233
|
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('deleteConversation', unsubscribeDeleteConversation);
|
|
234
|
+
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('renameConversation', unsubscribeRenameConversation);
|
|
213
235
|
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('request', unsubscribeRequest);
|
|
214
236
|
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('response', unsubscribeResponse);
|
|
215
237
|
LocalHistoryService.UNSUBSCRIBE_CALLBACKS.set('sendChunk', unsubscribeSendChunk);
|
|
@@ -231,6 +231,7 @@ function ChatShowcaseDemo({ theme, instanceName, initialMode = external_componen
|
|
|
231
231
|
audio: false,
|
|
232
232
|
audioStreaming: false,
|
|
233
233
|
htmlPreview: true,
|
|
234
|
+
renameChat: true,
|
|
234
235
|
headerSeparator: false,
|
|
235
236
|
fullHeight: true,
|
|
236
237
|
resize: true,
|
|
@@ -498,7 +499,8 @@ function ChatShowcaseDemo({ theme, instanceName, initialMode = external_componen
|
|
|
498
499
|
resize: !features.resize,
|
|
499
500
|
close: !features.close,
|
|
500
501
|
feedback: !features.feedback,
|
|
501
|
-
copy: !features.copy
|
|
502
|
+
copy: !features.copy,
|
|
503
|
+
renameChat: !features.renameChat
|
|
502
504
|
},
|
|
503
505
|
settingsRenderer: createSettingsRenderer()
|
|
504
506
|
}
|
|
@@ -608,6 +610,10 @@ function ChatShowcaseDemo({ theme, instanceName, initialMode = external_componen
|
|
|
608
610
|
unsubscribes.push(service.on('stopResponse', ()=>{
|
|
609
611
|
console.log('Stop response event');
|
|
610
612
|
}));
|
|
613
|
+
unsubscribes.push(service.on(external_components_index_cjs_namespaceObject.AutopilotChatEvent.RenameConversation, (payload)=>{
|
|
614
|
+
const { conversationId, name } = payload;
|
|
615
|
+
console.log(`[Rename] conversation ${conversationId} renamed to "${name}"`);
|
|
616
|
+
}));
|
|
611
617
|
const fakeSttPhrases = [
|
|
612
618
|
'How do I schedule an unattended robot to run every weekday at 9 AM',
|
|
613
619
|
'Show me the last ten failed jobs and group them by process name',
|
|
@@ -794,6 +800,7 @@ function ChatShowcaseDemo({ theme, instanceName, initialMode = external_componen
|
|
|
794
800
|
features.headerSeparator,
|
|
795
801
|
features.history,
|
|
796
802
|
features.htmlPreview,
|
|
803
|
+
features.renameChat,
|
|
797
804
|
features.resize,
|
|
798
805
|
features.settings,
|
|
799
806
|
features.readOnly
|
|
@@ -824,7 +831,8 @@ function ChatShowcaseDemo({ theme, instanceName, initialMode = external_componen
|
|
|
824
831
|
resize: !features.resize,
|
|
825
832
|
close: !features.close,
|
|
826
833
|
feedback: !features.feedback,
|
|
827
|
-
copy: !features.copy
|
|
834
|
+
copy: !features.copy,
|
|
835
|
+
renameChat: !features.renameChat
|
|
828
836
|
},
|
|
829
837
|
settingsRenderer: createSettingsRenderer(),
|
|
830
838
|
...chatMode === external_components_index_cjs_namespaceObject.AutopilotChatMode.Embedded && embeddedContainerRef.current && {
|
|
@@ -1330,7 +1338,8 @@ console.log(processUserData(exampleUser, { source: 'web', ipAddress: '192.168.1.
|
|
|
1330
1338
|
'toggle-history',
|
|
1331
1339
|
'toggle-chat',
|
|
1332
1340
|
'close-chat',
|
|
1333
|
-
'feedback'
|
|
1341
|
+
'feedback',
|
|
1342
|
+
'rename-conversation'
|
|
1334
1343
|
];
|
|
1335
1344
|
actions.forEach((action)=>{
|
|
1336
1345
|
chatService?.setPreHook(action, async ()=>window.confirm(`${action} pre hook. Continue?`));
|
|
@@ -2301,6 +2310,14 @@ console.log(processUserData(exampleUser, { source: 'web', ipAddress: '192.168.1.
|
|
|
2301
2310
|
}),
|
|
2302
2311
|
label: "History"
|
|
2303
2312
|
}),
|
|
2313
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(FormControlLabel_default(), {
|
|
2314
|
+
control: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Checkbox_default(), {
|
|
2315
|
+
size: "small",
|
|
2316
|
+
checked: features.renameChat,
|
|
2317
|
+
onChange: ()=>toggleFeature('renameChat')
|
|
2318
|
+
}),
|
|
2319
|
+
label: "Rename Chat"
|
|
2320
|
+
}),
|
|
2304
2321
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(FormControlLabel_default(), {
|
|
2305
2322
|
control: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Checkbox_default(), {
|
|
2306
2323
|
size: "small",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-story-support.d.ts","sourceRoot":"","sources":["../../../src/material/stories/chat-story-support.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,KAAK,WAAW,EAGhB,iBAAiB,EAMjB,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAoCvB,wBAAgB,eAAe,CAAC,YAAY,EAAE,OAAO,GAAG,eAAe,CAItE;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,WAAW,CAiBhE;AAsID,MAAM,WAAW,qBAAqB;IAEpC,KAAK,EAAE,WAAW,CAAC;IAMnB,YAAY,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAEhC,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,YAAY,EACZ,WAA0C,EAC1C,MAAa,GACd,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"chat-story-support.d.ts","sourceRoot":"","sources":["../../../src/material/stories/chat-story-support.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,KAAK,WAAW,EAGhB,iBAAiB,EAMjB,KAAK,eAAe,EACrB,MAAM,eAAe,CAAC;AAoCvB,wBAAgB,eAAe,CAAC,YAAY,EAAE,OAAO,GAAG,eAAe,CAItE;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,WAAW,CAiBhE;AAsID,MAAM,WAAW,qBAAqB;IAEpC,KAAK,EAAE,WAAW,CAAC;IAMnB,YAAY,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAEhC,MAAM,CAAC,EAAE,eAAe,CAAC;CAC1B;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,YAAY,EACZ,WAA0C,EAC1C,MAAa,GACd,EAAE,qBAAqB,2CA0pEvB"}
|
|
@@ -185,6 +185,7 @@ function ChatShowcaseDemo({ theme, instanceName, initialMode = AutopilotChatMode
|
|
|
185
185
|
audio: false,
|
|
186
186
|
audioStreaming: false,
|
|
187
187
|
htmlPreview: true,
|
|
188
|
+
renameChat: true,
|
|
188
189
|
headerSeparator: false,
|
|
189
190
|
fullHeight: true,
|
|
190
191
|
resize: true,
|
|
@@ -452,7 +453,8 @@ function ChatShowcaseDemo({ theme, instanceName, initialMode = AutopilotChatMode
|
|
|
452
453
|
resize: !features.resize,
|
|
453
454
|
close: !features.close,
|
|
454
455
|
feedback: !features.feedback,
|
|
455
|
-
copy: !features.copy
|
|
456
|
+
copy: !features.copy,
|
|
457
|
+
renameChat: !features.renameChat
|
|
456
458
|
},
|
|
457
459
|
settingsRenderer: createSettingsRenderer()
|
|
458
460
|
}
|
|
@@ -562,6 +564,10 @@ function ChatShowcaseDemo({ theme, instanceName, initialMode = AutopilotChatMode
|
|
|
562
564
|
unsubscribes.push(service.on('stopResponse', ()=>{
|
|
563
565
|
console.log('Stop response event');
|
|
564
566
|
}));
|
|
567
|
+
unsubscribes.push(service.on(AutopilotChatEvent.RenameConversation, (payload)=>{
|
|
568
|
+
const { conversationId, name } = payload;
|
|
569
|
+
console.log(`[Rename] conversation ${conversationId} renamed to "${name}"`);
|
|
570
|
+
}));
|
|
565
571
|
const fakeSttPhrases = [
|
|
566
572
|
'How do I schedule an unattended robot to run every weekday at 9 AM',
|
|
567
573
|
'Show me the last ten failed jobs and group them by process name',
|
|
@@ -748,6 +754,7 @@ function ChatShowcaseDemo({ theme, instanceName, initialMode = AutopilotChatMode
|
|
|
748
754
|
features.headerSeparator,
|
|
749
755
|
features.history,
|
|
750
756
|
features.htmlPreview,
|
|
757
|
+
features.renameChat,
|
|
751
758
|
features.resize,
|
|
752
759
|
features.settings,
|
|
753
760
|
features.readOnly
|
|
@@ -778,7 +785,8 @@ function ChatShowcaseDemo({ theme, instanceName, initialMode = AutopilotChatMode
|
|
|
778
785
|
resize: !features.resize,
|
|
779
786
|
close: !features.close,
|
|
780
787
|
feedback: !features.feedback,
|
|
781
|
-
copy: !features.copy
|
|
788
|
+
copy: !features.copy,
|
|
789
|
+
renameChat: !features.renameChat
|
|
782
790
|
},
|
|
783
791
|
settingsRenderer: createSettingsRenderer(),
|
|
784
792
|
...chatMode === AutopilotChatMode.Embedded && embeddedContainerRef.current && {
|
|
@@ -1284,7 +1292,8 @@ console.log(processUserData(exampleUser, { source: 'web', ipAddress: '192.168.1.
|
|
|
1284
1292
|
'toggle-history',
|
|
1285
1293
|
'toggle-chat',
|
|
1286
1294
|
'close-chat',
|
|
1287
|
-
'feedback'
|
|
1295
|
+
'feedback',
|
|
1296
|
+
'rename-conversation'
|
|
1288
1297
|
];
|
|
1289
1298
|
actions.forEach((action)=>{
|
|
1290
1299
|
chatService?.setPreHook(action, async ()=>window.confirm(`${action} pre hook. Continue?`));
|
|
@@ -2255,6 +2264,14 @@ console.log(processUserData(exampleUser, { source: 'web', ipAddress: '192.168.1.
|
|
|
2255
2264
|
}),
|
|
2256
2265
|
label: "History"
|
|
2257
2266
|
}),
|
|
2267
|
+
/*#__PURE__*/ jsx(FormControlLabel, {
|
|
2268
|
+
control: /*#__PURE__*/ jsx(Checkbox, {
|
|
2269
|
+
size: "small",
|
|
2270
|
+
checked: features.renameChat,
|
|
2271
|
+
onChange: ()=>toggleFeature('renameChat')
|
|
2272
|
+
}),
|
|
2273
|
+
label: "Rename Chat"
|
|
2274
|
+
}),
|
|
2258
2275
|
/*#__PURE__*/ jsx(FormControlLabel, {
|
|
2259
2276
|
control: /*#__PURE__*/ jsx(Checkbox, {
|
|
2260
2277
|
size: "small",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.30.1",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
"zustand": "^5.0.9",
|
|
223
223
|
"@uipath/apollo-core": "5.13.0",
|
|
224
224
|
"@uipath/apollo-ui-icons": "1.0.0",
|
|
225
|
-
"@uipath/apollo-wind": "2.
|
|
225
|
+
"@uipath/apollo-wind": "2.36.0"
|
|
226
226
|
},
|
|
227
227
|
"devDependencies": {
|
|
228
228
|
"@lingui/cli": "^5.6.1",
|