@uipath/ui-widgets-conversational-agent-chat 1.0.3 → 1.1.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/README.md +10 -6
- package/dist/ConversationalAgentChat.css +6406 -3113
- package/dist/ConversationalAgentChat.d.ts +1 -1
- package/dist/ConversationalAgentChat.d.ts.map +1 -1
- package/dist/ConversationalAgentChat.js +746 -181
- package/dist/ConversationalAgentChat.js.map +1 -1
- package/dist/ConversationalAgentChat.stories.d.ts +16 -1
- package/dist/ConversationalAgentChat.stories.d.ts.map +1 -1
- package/dist/ConversationalAgentChat.stories.js +5 -12
- package/dist/ConversationalAgentChat.stories.js.map +1 -1
- package/dist/components/AgentList.d.ts.map +1 -1
- package/dist/components/AgentList.js.map +1 -1
- package/dist/components/AgentSchemaForm/AgentSchemaField.d.ts +26 -0
- package/dist/components/AgentSchemaForm/AgentSchemaField.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/AgentSchemaField.js +104 -0
- package/dist/components/AgentSchemaForm/AgentSchemaField.js.map +1 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.d.ts +38 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.js +105 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.js.map +1 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.stories.d.ts +30 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.stories.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.stories.js +236 -0
- package/dist/components/AgentSchemaForm/AgentSchemaForm.stories.js.map +1 -0
- package/dist/components/AgentSchemaForm/FieldShell.d.ts +12 -0
- package/dist/components/AgentSchemaForm/FieldShell.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/FieldShell.js +4 -0
- package/dist/components/AgentSchemaForm/FieldShell.js.map +1 -0
- package/dist/components/AgentSchemaForm/index.d.ts +5 -0
- package/dist/components/AgentSchemaForm/index.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/index.js +2 -0
- package/dist/components/AgentSchemaForm/index.js.map +1 -0
- package/dist/components/AgentSchemaForm/inputs/ArrayField.d.ts +7 -0
- package/dist/components/AgentSchemaForm/inputs/ArrayField.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/inputs/ArrayField.js +28 -0
- package/dist/components/AgentSchemaForm/inputs/ArrayField.js.map +1 -0
- package/dist/components/AgentSchemaForm/inputs/ObjectField.d.ts +8 -0
- package/dist/components/AgentSchemaForm/inputs/ObjectField.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/inputs/ObjectField.js +75 -0
- package/dist/components/AgentSchemaForm/inputs/ObjectField.js.map +1 -0
- package/dist/components/AgentSchemaForm/inputs/validation.d.ts +10 -0
- package/dist/components/AgentSchemaForm/inputs/validation.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/inputs/validation.js +41 -0
- package/dist/components/AgentSchemaForm/inputs/validation.js.map +1 -0
- package/dist/components/AgentSchemaForm/resolveSchema.d.ts +7 -0
- package/dist/components/AgentSchemaForm/resolveSchema.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/resolveSchema.js +162 -0
- package/dist/components/AgentSchemaForm/resolveSchema.js.map +1 -0
- package/dist/components/AgentSchemaForm/types.d.ts +34 -0
- package/dist/components/AgentSchemaForm/types.d.ts.map +1 -0
- package/dist/components/AgentSchemaForm/types.js +8 -0
- package/dist/components/AgentSchemaForm/types.js.map +1 -0
- package/dist/components/FeedbackDialog.d.ts +2 -1
- package/dist/components/FeedbackDialog.d.ts.map +1 -1
- package/dist/components/FeedbackDialog.js +6 -2
- package/dist/components/FeedbackDialog.js.map +1 -1
- package/dist/components/FilePreviewer.d.ts +16 -0
- package/dist/components/FilePreviewer.d.ts.map +1 -0
- package/dist/components/FilePreviewer.js +161 -0
- package/dist/components/FilePreviewer.js.map +1 -0
- package/dist/components/InputsPage.d.ts +18 -0
- package/dist/components/InputsPage.d.ts.map +1 -0
- package/dist/components/InputsPage.js +32 -0
- package/dist/components/InputsPage.js.map +1 -0
- package/dist/components/Loader.d.ts +6 -0
- package/dist/components/Loader.d.ts.map +1 -0
- package/dist/components/Loader.js +6 -0
- package/dist/components/Loader.js.map +1 -0
- package/dist/components/PdfJsViewer.d.ts +7 -0
- package/dist/components/PdfJsViewer.d.ts.map +1 -0
- package/dist/components/PdfJsViewer.js +220 -0
- package/dist/components/PdfJsViewer.js.map +1 -0
- package/dist/components/SettingsDialog/InputsSection.d.ts +15 -0
- package/dist/components/SettingsDialog/InputsSection.d.ts.map +1 -0
- package/dist/components/SettingsDialog/InputsSection.js +29 -0
- package/dist/components/SettingsDialog/InputsSection.js.map +1 -0
- package/dist/components/SettingsDialog/ProfileSection.d.ts +7 -0
- package/dist/components/SettingsDialog/ProfileSection.d.ts.map +1 -0
- package/dist/components/SettingsDialog/ProfileSection.js +146 -0
- package/dist/components/SettingsDialog/ProfileSection.js.map +1 -0
- package/dist/components/SettingsDialog/SettingsDialog.d.ts +33 -0
- package/dist/components/SettingsDialog/SettingsDialog.d.ts.map +1 -0
- package/dist/components/SettingsDialog/SettingsDialog.js +18 -0
- package/dist/components/SettingsDialog/SettingsDialog.js.map +1 -0
- package/dist/components/SettingsDialog/index.d.ts +3 -0
- package/dist/components/SettingsDialog/index.d.ts.map +1 -0
- package/dist/components/SettingsDialog/index.js +2 -0
- package/dist/components/SettingsDialog/index.js.map +1 -0
- package/dist/components/ToolConfirmation.d.ts +20 -0
- package/dist/components/ToolConfirmation.d.ts.map +1 -0
- package/dist/components/ToolConfirmation.js +20 -0
- package/dist/components/ToolConfirmation.js.map +1 -0
- package/dist/components/ToolConfirmationRenderer.d.ts +15 -0
- package/dist/components/ToolConfirmationRenderer.d.ts.map +1 -0
- package/dist/components/ToolConfirmationRenderer.js +53 -0
- package/dist/components/ToolConfirmationRenderer.js.map +1 -0
- package/dist/constants/attachments.d.ts +26 -0
- package/dist/constants/attachments.d.ts.map +1 -0
- package/dist/constants/attachments.js +30 -0
- package/dist/constants/attachments.js.map +1 -0
- package/dist/constants/countries.d.ts +251 -0
- package/dist/constants/countries.d.ts.map +1 -0
- package/dist/constants/countries.js +250 -0
- package/dist/constants/countries.js.map +1 -0
- package/dist/hooks/useResolvedAgent.d.ts +34 -0
- package/dist/hooks/useResolvedAgent.d.ts.map +1 -0
- package/dist/hooks/useResolvedAgent.js +99 -0
- package/dist/hooks/useResolvedAgent.js.map +1 -0
- package/dist/i18n/i18n.config.d.ts +2 -0
- package/dist/i18n/i18n.config.d.ts.map +1 -0
- package/dist/i18n/i18n.config.js +24 -0
- package/dist/i18n/i18n.config.js.map +1 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +2 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/i18n/locales/en/index.json +317 -0
- package/dist/i18n/locales/keys/index.json +317 -0
- package/dist/icons/ConversationalAgentIcon.d.ts +7 -0
- package/dist/icons/ConversationalAgentIcon.d.ts.map +1 -0
- package/dist/icons/ConversationalAgentIcon.js +8 -0
- package/dist/icons/ConversationalAgentIcon.js.map +1 -0
- package/dist/icons/TimeIcon.d.ts +2 -0
- package/dist/icons/TimeIcon.d.ts.map +1 -0
- package/dist/icons/TimeIcon.js +3 -0
- package/dist/icons/TimeIcon.js.map +1 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +84 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/normalizeValue.d.ts +7 -0
- package/dist/utils/normalizeValue.d.ts.map +1 -0
- package/dist/utils/normalizeValue.js +31 -0
- package/dist/utils/normalizeValue.js.map +1 -0
- package/dist/utils/resolveAgent.d.ts +17 -0
- package/dist/utils/resolveAgent.d.ts.map +1 -0
- package/dist/utils/resolveAgent.js +25 -0
- package/dist/utils/resolveAgent.js.map +1 -0
- package/dist/utils/telemetryUtils.d.ts +1 -1
- package/dist/utils/telemetryUtils.d.ts.map +1 -1
- package/dist/utils/telemetryUtils.js +2 -2
- package/dist/utils/telemetryUtils.js.map +1 -1
- package/dist/utils.d.ts +21 -3
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +61 -10
- package/dist/utils.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +11 -5
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ConversationalAgent, } from "@uipath/uipath-typescript/conversational-agent";
|
|
2
|
+
export const resolveAgent = (sdk, agentId, folderId, options = {}) => {
|
|
3
|
+
const ctorOptions = {
|
|
4
|
+
...(options.externalUserId
|
|
5
|
+
? { externalUserId: options.externalUserId }
|
|
6
|
+
: {}),
|
|
7
|
+
...(options.surfaceName !== undefined
|
|
8
|
+
? { surfaceName: options.surfaceName }
|
|
9
|
+
: {}),
|
|
10
|
+
...(options.surfaceVersion !== undefined
|
|
11
|
+
? { surfaceVersion: options.surfaceVersion }
|
|
12
|
+
: {}),
|
|
13
|
+
};
|
|
14
|
+
const service = new ConversationalAgent(sdk, Object.keys(ctorOptions).length > 0 ? ctorOptions : undefined);
|
|
15
|
+
if (folderId != null) {
|
|
16
|
+
return service.getById(agentId, folderId);
|
|
17
|
+
}
|
|
18
|
+
return (async () => {
|
|
19
|
+
const found = (await service.getAll()).find((a) => a.id === agentId);
|
|
20
|
+
if (!found)
|
|
21
|
+
return null;
|
|
22
|
+
return service.getById(found.id, found.folderId);
|
|
23
|
+
})();
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=resolveAgent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveAgent.js","sourceRoot":"","sources":["../../src/utils/resolveAgent.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,mBAAmB,GACpB,MAAM,gDAAgD,CAAC;AAgBxD,MAAM,CAAC,MA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
1
|
import { TelemetryEvent, TelemetryStatus } from "../types";
|
|
2
|
-
export declare const trackTelemetry: (event: TelemetryEvent, status: TelemetryStatus, properties?: Record<string,
|
|
2
|
+
export declare const trackTelemetry: (event: TelemetryEvent, status: TelemetryStatus, properties?: Record<string, string | number | boolean>) => void;
|
|
3
3
|
//# sourceMappingURL=telemetryUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetryUtils.d.ts","sourceRoot":"","sources":["../../src/utils/telemetryUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3D,eAAO,MAAM,cAAc,GACzB,OAAO,cAAc,EACrB,QAAQ,eAAe,EACvB,aAAa,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"telemetryUtils.d.ts","sourceRoot":"","sources":["../../src/utils/telemetryUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3D,eAAO,MAAM,cAAc,GACzB,OAAO,cAAc,EACrB,QAAQ,eAAe,EACvB,aAAa,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,SAOvD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { trackEvent } from "@uipath/uipath-typescript/core";
|
|
2
2
|
import { version } from "../version";
|
|
3
3
|
export const trackTelemetry = (event, status, properties) => {
|
|
4
|
-
|
|
4
|
+
trackEvent(event, status, {
|
|
5
5
|
ApplicationName: "Widget.ConversationalAgentChat",
|
|
6
6
|
WidgetVersion: version,
|
|
7
7
|
...properties,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetryUtils.js","sourceRoot":"","sources":["../../src/utils/telemetryUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"telemetryUtils.js","sourceRoot":"","sources":["../../src/utils/telemetryUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,KAAqB,EACrB,MAAuB,EACvB,UAAsD,EACtD,EAAE;IACF,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE;QACxB,eAAe,EAAE,gCAAgC;QACjD,aAAa,EAAE,OAAO;QACtB,GAAG,UAAU;KACd,CAAC,CAAC;AACL,CAAC,CAAC"}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
|
-
import { AutopilotChatFileInfo, AutopilotChatMessage } from "@uipath/apollo-react/ap-chat";
|
|
2
|
-
import { ExchangeGetResponse, RawConversationGetResponse } from "@uipath/uipath-typescript/conversational-agent";
|
|
1
|
+
import { AutopilotChatFileInfo, AutopilotChatMessage, PdfCitation as AutopilotPdfCitation, UrlCitation as AutopilotUrlCitation } from "@uipath/apollo-react/ap-chat";
|
|
2
|
+
import { AgentGetByIdResponse, CitationSource, ExchangeGetResponse, RawConversationGetResponse } from "@uipath/uipath-typescript/conversational-agent";
|
|
3
|
+
import { EvaluationSet, FirstRunExperience } from "./types";
|
|
4
|
+
/**
|
|
5
|
+
* Resolves the first-run experience shown before the first message, reconciling
|
|
6
|
+
* the host-provided config against the agent's own appearance.
|
|
7
|
+
*
|
|
8
|
+
* The widget is always a chat dedicated to a single agent, so the host config
|
|
9
|
+
* takes precedence — callers can override the welcome copy and starting prompts,
|
|
10
|
+
* and the agent's appearance is the fallback. Precedence is whole-object:
|
|
11
|
+
* whichever source is used supplies every field.
|
|
12
|
+
*/
|
|
13
|
+
export declare const getFirstRunExperience: (config: FirstRunExperience | undefined, appearance: AgentGetByIdResponse["appearance"]) => FirstRunExperience | undefined;
|
|
3
14
|
export declare const createFileKey: (attachment: AutopilotChatFileInfo) => string;
|
|
4
15
|
export declare const normalizeInput: (obj: any) => any;
|
|
5
16
|
export declare const convertAttachmentToFile: (attachment: AutopilotChatFileInfo) => File;
|
|
6
|
-
export declare const getConversationHistoryDisplayItems: (conversations: RawConversationGetResponse[]) => {
|
|
17
|
+
export declare const getConversationHistoryDisplayItems: (conversations: RawConversationGetResponse[], newChatLabel: string) => {
|
|
7
18
|
id: string;
|
|
8
19
|
name: string;
|
|
9
20
|
timestamp: string;
|
|
10
21
|
}[];
|
|
22
|
+
export declare const mapCitationSource: (source: CitationSource) => AutopilotUrlCitation | AutopilotPdfCitation;
|
|
11
23
|
export declare const mapExchangesToChatMessages: (exchanges: ExchangeGetResponse[]) => AutopilotChatMessage[];
|
|
24
|
+
/**
|
|
25
|
+
* Sorts evaluation sets: non-disabled first (default first within non-disabled),
|
|
26
|
+
* then disabled sets in their original order.
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const sortEvaluationSets: (evaluationSets: EvaluationSet[]) => EvaluationSet[];
|
|
12
30
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EAGpB,WAAW,IAAI,oBAAoB,EACnC,WAAW,IAAI,oBAAoB,EACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,oBAAoB,EACpB,cAAc,EAGd,mBAAmB,EAEnB,0BAA0B,EAC3B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAiB,MAAM,SAAS,CAAC;AAE3E;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAChC,QAAQ,kBAAkB,GAAG,SAAS,EACtC,YAAY,oBAAoB,CAAC,YAAY,CAAC,KAC7C,kBAAkB,GAAG,SAavB,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,YAAY,qBAAqB,WAM9D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,KAAK,GAAG,KAAG,GAUzC,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,YAAY,qBAAqB,KAChC,IAuBF,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAC7C,eAAe,0BAA0B,EAAE,EAC3C,cAAc,MAAM;;;;GASrB,CAAC;AA+BF,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,cAAc,KACrB,oBAAoB,GAAG,oBAWzB,CAAC;AA+EF,eAAO,MAAM,0BAA0B,GACrC,WAAW,mBAAmB,EAAE,KAC/B,oBAAoB,EAmDpB,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,gBAAgB,aAAa,EAAE,KAC9B,aAAa,EASZ,CAAC"}
|
package/dist/utils.js
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
import { AutopilotChatRole, } from "@uipath/apollo-react/ap-chat";
|
|
3
|
+
import { isCitationSourceUrl, } from "@uipath/uipath-typescript/conversational-agent";
|
|
3
4
|
import { MessageWidget } from "./types";
|
|
5
|
+
/**
|
|
6
|
+
* Resolves the first-run experience shown before the first message, reconciling
|
|
7
|
+
* the host-provided config against the agent's own appearance.
|
|
8
|
+
*
|
|
9
|
+
* The widget is always a chat dedicated to a single agent, so the host config
|
|
10
|
+
* takes precedence — callers can override the welcome copy and starting prompts,
|
|
11
|
+
* and the agent's appearance is the fallback. Precedence is whole-object:
|
|
12
|
+
* whichever source is used supplies every field.
|
|
13
|
+
*/
|
|
14
|
+
export const getFirstRunExperience = (config, appearance) => {
|
|
15
|
+
const mappedAppearance = appearance
|
|
16
|
+
? {
|
|
17
|
+
title: appearance.welcomeTitle ?? "",
|
|
18
|
+
description: appearance.welcomeDescription ?? "",
|
|
19
|
+
suggestions: appearance.startingPrompts?.map((prompt) => ({
|
|
20
|
+
label: prompt.displayPrompt,
|
|
21
|
+
prompt: prompt.actualPrompt,
|
|
22
|
+
})),
|
|
23
|
+
}
|
|
24
|
+
: undefined;
|
|
25
|
+
return config ?? mappedAppearance;
|
|
26
|
+
};
|
|
4
27
|
export const createFileKey = (attachment) => {
|
|
5
28
|
const name = attachment.name;
|
|
6
29
|
const size = attachment.content.binary?.length || attachment.content.text?.length || 0;
|
|
@@ -43,11 +66,11 @@ export const convertAttachmentToFile = (attachment) => {
|
|
|
43
66
|
}
|
|
44
67
|
return new File([blob], attachment.name, { type: attachment.type });
|
|
45
68
|
};
|
|
46
|
-
export const getConversationHistoryDisplayItems = (conversations) => {
|
|
69
|
+
export const getConversationHistoryDisplayItems = (conversations, newChatLabel) => {
|
|
47
70
|
return conversations.map((conversation) => {
|
|
48
71
|
return {
|
|
49
72
|
id: conversation.id,
|
|
50
|
-
name: conversation.label ||
|
|
73
|
+
name: conversation.label || newChatLabel,
|
|
51
74
|
timestamp: new Date(conversation.lastActivityTime).toISOString(),
|
|
52
75
|
};
|
|
53
76
|
});
|
|
@@ -64,13 +87,21 @@ const getContentPartData = (cp) => {
|
|
|
64
87
|
throw new Error(`Expected inline value but got external. (ContentPartId: ${cp.contentPartId})`);
|
|
65
88
|
return cp.data?.inline || "";
|
|
66
89
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
90
|
+
// Apollo discriminates PDF citations by `'download_url' in source` (property
|
|
91
|
+
// presence, not value). Returning a merged shape misrenders URL citations as
|
|
92
|
+
// broken PDFs, so we emit a discriminated UrlCitation | PdfCitation.
|
|
93
|
+
export const mapCitationSource = (source) => {
|
|
94
|
+
if (isCitationSourceUrl(source)) {
|
|
95
|
+
return { id: source.number, title: source.title, url: source.url };
|
|
96
|
+
}
|
|
97
|
+
const parsed = source.pageNumber ? parseInt(source.pageNumber, 10) : 0;
|
|
98
|
+
return {
|
|
99
|
+
id: source.number,
|
|
100
|
+
title: source.title,
|
|
101
|
+
download_url: source.downloadUrl ?? "",
|
|
102
|
+
page_number: Number.isNaN(parsed) ? 0 : parsed,
|
|
103
|
+
};
|
|
104
|
+
};
|
|
74
105
|
const mapTextContentPartToChatContentParts = (cp) => {
|
|
75
106
|
const data = getContentPartData(cp);
|
|
76
107
|
const citations = [...(cp.citations || [])].sort((a, b) => a.offset - b.offset);
|
|
@@ -155,7 +186,9 @@ export const mapExchangesToChatMessages = (exchanges) => exchanges.flatMap((exch
|
|
|
155
186
|
meta: {
|
|
156
187
|
toolName: toolCall.name,
|
|
157
188
|
input: toolCall.input,
|
|
158
|
-
|
|
189
|
+
// `timestamp` (when the call was initiated) is the true start time;
|
|
190
|
+
// fall back to `createdTime` for legacy conversations that only set that.
|
|
191
|
+
startTime: toolCall.timestamp ?? toolCall.createdTime,
|
|
159
192
|
output: toolCall.result?.output,
|
|
160
193
|
endTime: toolCall.result?.timestamp,
|
|
161
194
|
isError: toolCall.result?.isError,
|
|
@@ -164,4 +197,22 @@ export const mapExchangesToChatMessages = (exchanges) => exchanges.flatMap((exch
|
|
|
164
197
|
}));
|
|
165
198
|
return [mainMessage, ...toolCallMessages];
|
|
166
199
|
}));
|
|
200
|
+
/**
|
|
201
|
+
* Sorts evaluation sets: non-disabled first (default first within non-disabled),
|
|
202
|
+
* then disabled sets in their original order.
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
205
|
+
export const sortEvaluationSets = (evaluationSets) => [...evaluationSets].sort((a, b) => {
|
|
206
|
+
if (!a.isDisabled && b.isDisabled)
|
|
207
|
+
return -1;
|
|
208
|
+
if (a.isDisabled && !b.isDisabled)
|
|
209
|
+
return 1;
|
|
210
|
+
if (!a.isDisabled && !b.isDisabled) {
|
|
211
|
+
if (a.isDefault && !b.isDefault)
|
|
212
|
+
return -1;
|
|
213
|
+
if (!a.isDefault && b.isDefault)
|
|
214
|
+
return 1;
|
|
215
|
+
}
|
|
216
|
+
return 0;
|
|
217
|
+
});
|
|
167
218
|
//# sourceMappingURL=utils.js.map
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAGL,iBAAiB,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAGL,iBAAiB,GAIlB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAML,mBAAmB,GAEpB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAqC,aAAa,EAAE,MAAM,SAAS,CAAC;AAE3E;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACnC,MAAsC,EACtC,UAA8C,EACd,EAAE;IAClC,MAAM,gBAAgB,GAAmC,UAAU;QACjE,CAAC,CAAC;YACE,KAAK,EAAE,UAAU,CAAC,YAAY,IAAI,EAAE;YACpC,WAAW,EAAE,UAAU,CAAC,kBAAkB,IAAI,EAAE;YAChD,WAAW,EAAE,UAAU,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBACxD,KAAK,EAAE,MAAM,CAAC,aAAa;gBAC3B,MAAM,EAAE,MAAM,CAAC,YAAY;aAC5B,CAAC,CAAC;SACJ;QACH,CAAC,CAAC,SAAS,CAAC;IAEd,OAAO,MAAM,IAAI,gBAAgB,CAAC;AACpC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,UAAiC,EAAE,EAAE;IACjE,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAC7B,MAAM,IAAI,GACR,UAAU,CA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C,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;IAChC,IAAI,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,UAAU;QAAE,OAAO,CAAC,CAAC,CAAC;IAC7C,IAAI,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC,UAAU;QAAE,OAAO,CAAC,CAAC;IAC5C,IAAI,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;QACnC,IAAI,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,SAAS;YAAE,OAAO,CAAC,CAAC,CAAC;QAC3C,IAAI,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,SAAS;YAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC,CAAC,CAAC"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.
|
|
1
|
+
export declare const version = "1.1.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/ui-widgets-conversational-agent-chat",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "A React conversational agent chat component",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -45,10 +45,9 @@
|
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^19.2.0",
|
|
47
47
|
"react-dom": "^19.2.0",
|
|
48
|
-
"@uipath/uipath-typescript": "^1.
|
|
48
|
+
"@uipath/uipath-typescript": "^1.5.5"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"rimraf": "^6.0.1",
|
|
52
51
|
"@testing-library/dom": "^10.4.0",
|
|
53
52
|
"@testing-library/jest-dom": "^6.6.3",
|
|
54
53
|
"@testing-library/react": "^16.1.0",
|
|
@@ -59,14 +58,21 @@
|
|
|
59
58
|
"@vitest/coverage-v8": "^4.0.18",
|
|
60
59
|
"@vitest/ui": "^4.0.18",
|
|
61
60
|
"jsdom": "^25.0.1",
|
|
61
|
+
"postcss": "^8.5.6",
|
|
62
|
+
"postcss-cli": "^11.0.1",
|
|
63
|
+
"rimraf": "^6.0.1",
|
|
62
64
|
"sass": "^1.83.4",
|
|
65
|
+
"sass-embedded": "^1.93.3",
|
|
63
66
|
"typescript": "~5.9.3",
|
|
64
67
|
"vite": "^6.0.3",
|
|
65
68
|
"vitest": "^4.0.18"
|
|
66
69
|
},
|
|
67
70
|
"dependencies": {
|
|
68
|
-
"@uipath/apollo-react": "^3.51.1",
|
|
69
71
|
"@uipath/apollo-core": "^5.7.0",
|
|
70
|
-
"@uipath/apollo-
|
|
72
|
+
"@uipath/apollo-react": "^3.51.1",
|
|
73
|
+
"@uipath/apollo-wind": "^2.30.0",
|
|
74
|
+
"i18next": "^26.0.4",
|
|
75
|
+
"pdfjs-dist": "^5.7.284",
|
|
76
|
+
"react-i18next": "^17.0.2"
|
|
71
77
|
}
|
|
72
78
|
}
|