@uipath/ui-widgets-conversational-agent-chat 1.0.3 → 1.1.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.
- package/README.md +10 -6
- package/dist/ConversationalAgentChat.css +3542 -3258
- package/dist/ConversationalAgentChat.d.ts +1 -1
- package/dist/ConversationalAgentChat.d.ts.map +1 -1
- package/dist/ConversationalAgentChat.js +612 -164
- package/dist/ConversationalAgentChat.js.map +1 -1
- package/dist/ConversationalAgentChat.stories.d.ts +14 -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 +96 -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/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/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 +52 -0
- package/dist/components/ToolConfirmationRenderer.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 +306 -0
- package/dist/i18n/locales/keys/index.json +306 -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 +73 -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 +11 -3
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +36 -9
- package/dist/utils.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +10 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeIcon.d.ts","sourceRoot":"","sources":["../../src/icons/TimeIcon.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,+CAepB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export const TimeIcon = () => (_jsx("svg", { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12 3C7.029 3 3 7.029 3 12C3 16.971 7.029 21 12 21C16.971 21 21 16.971 21 12C21 7.029 16.971 3 12 3ZM5 12C5 8.134 8.134 5 12 5C15.866 5 19 8.134 19 12C19 15.866 15.866 19 12 19C8.134 19 5 15.866 5 12ZM13 8V11.685L15.182 13.867L13.867 15.182L11 12.315V8H13Z", fill: "currentColor" }) }));
|
|
3
|
+
//# sourceMappingURL=TimeIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeIcon.js","sourceRoot":"","sources":["../../src/icons/TimeIcon.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CAC5B,cACE,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,YAElC,eACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,kQAAkQ,EACpQ,IAAI,EAAC,cAAc,GACnB,GACE,CACP,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export { ConversationalAgentChat } from "./ConversationalAgentChat";
|
|
2
2
|
export { ConversationalAgentPickerChat } from "./ConversationalAgentPickerChat";
|
|
3
|
-
export type { AgentSummary, ConversationalAgentChatProps, DisabledFeatures, FirstRunExperience, ConversationalAgentPickerChatProps, Locale, OverrideLabels, } from "./types";
|
|
3
|
+
export type { AgentSummary, ConversationalAgentChatProps, DisabledFeatures, EvaluationSet, FirstRunExperience, ConversationalAgentPickerChatProps, Locale, OverrideLabels, } from "./types";
|
|
4
|
+
export type { ConversationJobStartOverrides } from "@uipath/uipath-typescript/conversational-agent";
|
|
5
|
+
export { AgentSchemaForm } from "./components/AgentSchemaForm";
|
|
6
|
+
export { createToolConfirmationRenderer, resolveToolConfirmationLabels, } from "./components/ToolConfirmationRenderer";
|
|
7
|
+
export type { ToolConfirmationRenderer } from "./components/ToolConfirmationRenderer";
|
|
8
|
+
export type { ToolConfirmationLabels } from "./components/ToolConfirmation";
|
|
9
|
+
export type { AgentSchemaFormProps, AgentSchemaFormHandle, InputSchema, InputSchemaProperty, } from "./components/AgentSchemaForm";
|
|
10
|
+
export { useResolvedAgent } from "./hooks/useResolvedAgent";
|
|
11
|
+
export type { UseResolvedAgentOptions, UseResolvedAgentResult, } from "./hooks/useResolvedAgent";
|
|
4
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,YAAY,EACV,YAAY,EACZ,4BAA4B,EAC5B,gBAAgB,EAChB,kBAAkB,EAClB,kCAAkC,EAClC,MAAM,EACN,cAAc,GACf,MAAM,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,YAAY,EACV,YAAY,EACZ,4BAA4B,EAC5B,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,kCAAkC,EAClC,MAAM,EACN,cAAc,GACf,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtF,YAAY,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAC5E,YAAY,EACV,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,EACX,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EACV,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export { ConversationalAgentChat } from "./ConversationalAgentChat";
|
|
2
2
|
export { ConversationalAgentPickerChat } from "./ConversationalAgentPickerChat";
|
|
3
|
+
export { AgentSchemaForm } from "./components/AgentSchemaForm";
|
|
4
|
+
export { createToolConfirmationRenderer, resolveToolConfirmationLabels, } from "./components/ToolConfirmationRenderer";
|
|
5
|
+
export { useResolvedAgent } from "./hooks/useResolvedAgent";
|
|
3
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAYhF,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,uCAAuC,CAAC;AAS/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { UiPath } from "@uipath/uipath-typescript/core";
|
|
2
|
-
|
|
2
|
+
import type { ConversationJobStartOverrides } from "@uipath/uipath-typescript/conversational-agent";
|
|
3
|
+
import type { InputSchema } from "./components/AgentSchemaForm/types";
|
|
4
|
+
export type Locale = "en" | "keys";
|
|
3
5
|
export interface OverrideLabels {
|
|
4
6
|
title?: string;
|
|
5
7
|
footerDisclaimer?: string;
|
|
@@ -24,20 +26,64 @@ export interface DisabledFeatures {
|
|
|
24
26
|
newChat?: boolean;
|
|
25
27
|
htmlPreview?: boolean;
|
|
26
28
|
}
|
|
29
|
+
/** @internal */
|
|
30
|
+
export interface EvaluationSet {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
isDefault?: boolean;
|
|
34
|
+
isDisabled?: boolean;
|
|
35
|
+
}
|
|
27
36
|
export interface ConversationalAgentChatProps {
|
|
28
37
|
sdk: UiPath;
|
|
38
|
+
/** ID of the agent release to chat with. Required unless `existingConversationId` is provided. */
|
|
29
39
|
agentId?: number;
|
|
40
|
+
/**
|
|
41
|
+
* ID of the folder the agent lives in. Optional — when omitted, the widget resolves it by
|
|
42
|
+
* listing agents and matching on `agentId`. Prefer passing this when known, since the fallback
|
|
43
|
+
* lists all agents accessible to the SDK's scope.
|
|
44
|
+
*/
|
|
30
45
|
folderId?: number;
|
|
31
46
|
/** Allow for loading an existing conversation by ID instead of creating a new one on first message */
|
|
32
47
|
existingConversationId?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* Debug-only override for the agent input schema. Only honored when
|
|
51
|
+
* `isDebugMode` is true — the debug flow opens an empty conversation up front,
|
|
52
|
+
* where the agent (and its derived schema) may not be resolvable. Passing it
|
|
53
|
+
* while `isDebugMode` is false throws. In normal usage the schema is resolved
|
|
54
|
+
* automatically from the agent release.
|
|
55
|
+
*/
|
|
56
|
+
inputSchema?: InputSchema;
|
|
57
|
+
/**
|
|
58
|
+
* External User ID to associate with conversational agent requests.
|
|
59
|
+
* Required when authenticating via an app-scoped external app (client credential grant);
|
|
60
|
+
* omit for standard user tokens. Sent as the `x-uipath-external-user-id` header on HTTP
|
|
61
|
+
* requests and as a query parameter on the WebSocket connection.
|
|
62
|
+
*/
|
|
63
|
+
externalUserId?: string;
|
|
33
64
|
locale?: Locale;
|
|
34
65
|
theme?: "light" | "dark" | "light-hc" | "dark-hc";
|
|
35
66
|
readOnly?: boolean;
|
|
36
67
|
overrideLabels?: OverrideLabels;
|
|
37
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Fallback first-run experience. Used only when the agent's appearance
|
|
70
|
+
* provides no welcome title, description, or starting prompts. When the
|
|
71
|
+
* agent has any FRE data, this prop is ignored and only the agent's data
|
|
72
|
+
* is rendered.
|
|
73
|
+
*/
|
|
38
74
|
firstRunExperience?: FirstRunExperience;
|
|
39
75
|
/** Override which features are disabled. Merged with defaults (fullScreen, preview, close are always disabled). */
|
|
40
76
|
disabledFeatures?: DisabledFeatures;
|
|
77
|
+
/** Optional configuration for job start behavior */
|
|
78
|
+
jobStartOverrides?: ConversationJobStartOverrides;
|
|
79
|
+
/** @internal */
|
|
80
|
+
isDebugMode?: boolean;
|
|
81
|
+
/** @internal */
|
|
82
|
+
evaluationSets?: EvaluationSet[];
|
|
83
|
+
/** @internal */
|
|
84
|
+
addToEvalButtonLabel?: string;
|
|
85
|
+
/** @internal */
|
|
86
|
+
onEvaluationSetClicked?: (id: string) => void;
|
|
41
87
|
/**
|
|
42
88
|
* Called when the user sends a message. Used by debug-mode consumers that need to gate agent execution on the
|
|
43
89
|
* first user message.
|
|
@@ -46,12 +92,29 @@ export interface ConversationalAgentChatProps {
|
|
|
46
92
|
onUserMessageSent?: (message: {
|
|
47
93
|
content: string;
|
|
48
94
|
}) => void;
|
|
95
|
+
/**
|
|
96
|
+
* Optional identifier used in UiPath logs to identify the implementing service
|
|
97
|
+
* of requests. External consumers do not need to set it; the server logs
|
|
98
|
+
* missing values as "unknown".
|
|
99
|
+
*
|
|
100
|
+
* @internal Intended for UiPath first-party surfaces.
|
|
101
|
+
*/
|
|
102
|
+
surfaceName?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Optional version of the implementing service of requests. Paired with
|
|
105
|
+
* `surfaceName` for internal telemetry.
|
|
106
|
+
*
|
|
107
|
+
* @internal Intended for UiPath first-party surfaces.
|
|
108
|
+
*/
|
|
109
|
+
surfaceVersion?: string;
|
|
49
110
|
}
|
|
50
111
|
export interface AgentSummary {
|
|
51
112
|
id: number;
|
|
52
113
|
name: string;
|
|
53
114
|
description: string;
|
|
54
115
|
folderId: number;
|
|
116
|
+
/** Version of the deployed agent (e.g. "1.0.7"). Absent on draft agents. */
|
|
117
|
+
processVersion?: string;
|
|
55
118
|
}
|
|
56
119
|
export interface ConversationalAgentPickerChatProps {
|
|
57
120
|
sdk: UiPath;
|
|
@@ -61,6 +124,14 @@ export interface ConversationalAgentPickerChatProps {
|
|
|
61
124
|
overrideLabels?: OverrideLabels;
|
|
62
125
|
onAgentSelected?: (agent: AgentSummary) => void;
|
|
63
126
|
}
|
|
127
|
+
export interface AgentSummary {
|
|
128
|
+
id: number;
|
|
129
|
+
name: string;
|
|
130
|
+
description: string;
|
|
131
|
+
folderId: number;
|
|
132
|
+
/** Version of the deployed agent (e.g. "1.0.7"). Absent on draft agents. */
|
|
133
|
+
processVersion?: string;
|
|
134
|
+
}
|
|
64
135
|
export declare enum MessageWidget {
|
|
65
136
|
AI = "ai",
|
|
66
137
|
Human = "human",
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAItE,MAAM,MAAM,MAAM,GAAG,IAAI,GAAG,MAAM,CAAC;AAEnC,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACnD;AAED,MAAM,WAAW,gBAAgB;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,gBAAgB;AAChB,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;I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
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AA4IA,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,0BAAS,CAAA;IACT,gCAAe,CAAA;IACf,iEAAgD,CAAA;IAChD,kEAAiD,CAAA;AACnD,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAQD,MAAM,CAAN,IAAY,cAQX;AARD,WAAY,cAAc;IACxB,yCAAuB,CAAA;IACvB,iDAA+B,CAAA;IAC/B,2DAAyC,CAAA;IACzC,mDAAiC,CAAA;IACjC,2CAAyB,CAAA;IACzB,+CAA6B,CAAA;IAC7B,iDAA+B,CAAA;AACjC,CAAC,EARW,cAAc,KAAd,cAAc,QAQzB;AAED,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAAuB,CAAA;IACvB,sCAAmB,CAAA;AACrB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalizes values so the downstream form fields (which expect strings)
|
|
3
|
+
* render them. Date instances — which callers may pass through `inputValue`
|
|
4
|
+
* from earlier form state — become `datetime-local`-compatible strings.
|
|
5
|
+
*/
|
|
6
|
+
export declare function normalizeValue(value: unknown): unknown;
|
|
7
|
+
//# sourceMappingURL=normalizeValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeValue.d.ts","sourceRoot":"","sources":["../../src/utils/normalizeValue.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAWtD"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const pad = (n) => String(n).padStart(2, "0");
|
|
2
|
+
/**
|
|
3
|
+
* Formats a Date as a `datetime-local`-compatible local timestamp
|
|
4
|
+
* (`YYYY-MM-DDTHH:mm`). `toISOString()` would emit a UTC string with a
|
|
5
|
+
* trailing `Z`, which native `<input type="datetime-local">` rejects and
|
|
6
|
+
* renders blank.
|
|
7
|
+
*/
|
|
8
|
+
function toDateTimeLocal(date) {
|
|
9
|
+
return (`${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}` +
|
|
10
|
+
`T${pad(date.getHours())}:${pad(date.getMinutes())}`);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Normalizes values so the downstream form fields (which expect strings)
|
|
14
|
+
* render them. Date instances — which callers may pass through `inputValue`
|
|
15
|
+
* from earlier form state — become `datetime-local`-compatible strings.
|
|
16
|
+
*/
|
|
17
|
+
export function normalizeValue(value) {
|
|
18
|
+
if (value instanceof Date)
|
|
19
|
+
return toDateTimeLocal(value);
|
|
20
|
+
if (Array.isArray(value))
|
|
21
|
+
return value.map(normalizeValue);
|
|
22
|
+
if (value && typeof value === "object") {
|
|
23
|
+
const normalized = {};
|
|
24
|
+
for (const [key, val] of Object.entries(value)) {
|
|
25
|
+
normalized[key] = normalizeValue(val);
|
|
26
|
+
}
|
|
27
|
+
return normalized;
|
|
28
|
+
}
|
|
29
|
+
return value;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=normalizeValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeValue.js","sourceRoot":"","sources":["../../src/utils/normalizeValue.ts"],"names":[],"mappings":"AAAA,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAEtD;;;;;GAKG;AACH,SAAS,eAAe,CAAC,IAAU;IACjC,OAAO,CACL,GAAG,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE;QAC1E,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,EAAE,CACrD,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,IAAI,KAAK,YAAY,IAAI;QAAE,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;IACzD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAC3D,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvC,MAAM,UAAU,GAA4B,EAAE,CAAC;QAC/C,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YAC/C,UAAU,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UiPath } from "@uipath/uipath-typescript/core";
|
|
2
|
+
import { type AgentGetByIdResponse } from "@uipath/uipath-typescript/conversational-agent";
|
|
3
|
+
/**
|
|
4
|
+
* Resolves a deployed agent release by id. When `folderId` is omitted, falls
|
|
5
|
+
* back to listing agents and matching on id.
|
|
6
|
+
*
|
|
7
|
+
* The service is constructed with the given externalUserId/surface options so
|
|
8
|
+
* the returned agent's `conversations` methods carry the matching
|
|
9
|
+
* externalUserId/surface telemetry headers.
|
|
10
|
+
*/
|
|
11
|
+
export interface ResolveAgentOptions {
|
|
12
|
+
externalUserId?: string;
|
|
13
|
+
surfaceName?: string;
|
|
14
|
+
surfaceVersion?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const resolveAgent: (sdk: UiPath, agentId: number, folderId: number | undefined, options?: ResolveAgentOptions) => Promise<AgentGetByIdResponse | null>;
|
|
17
|
+
//# sourceMappingURL=resolveAgent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveAgent.d.ts","sourceRoot":"","sources":["../../src/utils/resolveAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,gDAAgD,CAAC;AAExD;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,YAAY,GACvB,KAAK,MAAM,EACX,SAAS,MAAM,EACf,UAAU,MAAM,GAAG,SAAS,EAC5B,UAAS,mBAAwB,KAChC,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAwBrC,CAAC"}
|
|
@@ -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,MAAM,YAAY,GAAG,CAC1B,GAAW,EACX,OAAe,EACf,QAA4B,EAC5B,UAA+B,EAAE,EACK,EAAE;IACxC,MAAM,WAAW,GAAG;QAClB,GAAG,CAAC,OAAO,CAAC,cAAc;YACxB,CAAC,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,cAAc,EAAE;YAC5C,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,OAAO,CAAC,WAAW,KAAK,SAAS;YACnC,CAAC,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE;YACtC,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,CAAC,OAAO,CAAC,cAAc,KAAK,SAAS;YACtC,CAAC,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,cAAc,EAAE;YAC5C,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;IACF,MAAM,OAAO,GAAG,IAAI,mBAAmB,CACrC,GAAG,EACH,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAC9D,CAAC;IACF,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;QACrB,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC5C,CAAC;IACD,OAAO,CAAC,KAAK,IAAI,EAAE;QACjB,MAAM,KAAK,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,CAAC;QACrE,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,CAAC;QACxB,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACnD,CAAC,CAAC,EAAE,CAAC;AACP,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
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,20 @@
|
|
|
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 { CitationSource, ExchangeGetResponse, RawConversationGetResponse } from "@uipath/uipath-typescript/conversational-agent";
|
|
3
|
+
import { EvaluationSet } from "./types";
|
|
3
4
|
export declare const createFileKey: (attachment: AutopilotChatFileInfo) => string;
|
|
4
5
|
export declare const normalizeInput: (obj: any) => any;
|
|
5
6
|
export declare const convertAttachmentToFile: (attachment: AutopilotChatFileInfo) => File;
|
|
6
|
-
export declare const getConversationHistoryDisplayItems: (conversations: RawConversationGetResponse[]) => {
|
|
7
|
+
export declare const getConversationHistoryDisplayItems: (conversations: RawConversationGetResponse[], newChatLabel: string) => {
|
|
7
8
|
id: string;
|
|
8
9
|
name: string;
|
|
9
10
|
timestamp: string;
|
|
10
11
|
}[];
|
|
12
|
+
export declare const mapCitationSource: (source: CitationSource) => AutopilotUrlCitation | AutopilotPdfCitation;
|
|
11
13
|
export declare const mapExchangesToChatMessages: (exchanges: ExchangeGetResponse[]) => AutopilotChatMessage[];
|
|
14
|
+
/**
|
|
15
|
+
* Sorts evaluation sets: non-disabled first (default first within non-disabled),
|
|
16
|
+
* then disabled sets in their original order.
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export declare const sortEvaluationSets: (evaluationSets: EvaluationSet[]) => EvaluationSet[];
|
|
12
20
|
//# 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,cAAc,EAGd,mBAAmB,EAEnB,0BAA0B,EAC3B,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,aAAa,EAAiB,MAAM,SAAS,CAAC;AAEvD,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,EAiDpB,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,gBAAgB,aAAa,EAAE,KAC9B,aAAa,EASZ,CAAC"}
|
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
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";
|
|
4
5
|
export const createFileKey = (attachment) => {
|
|
5
6
|
const name = attachment.name;
|
|
@@ -43,11 +44,11 @@ export const convertAttachmentToFile = (attachment) => {
|
|
|
43
44
|
}
|
|
44
45
|
return new File([blob], attachment.name, { type: attachment.type });
|
|
45
46
|
};
|
|
46
|
-
export const getConversationHistoryDisplayItems = (conversations) => {
|
|
47
|
+
export const getConversationHistoryDisplayItems = (conversations, newChatLabel) => {
|
|
47
48
|
return conversations.map((conversation) => {
|
|
48
49
|
return {
|
|
49
50
|
id: conversation.id,
|
|
50
|
-
name: conversation.label ||
|
|
51
|
+
name: conversation.label || newChatLabel,
|
|
51
52
|
timestamp: new Date(conversation.lastActivityTime).toISOString(),
|
|
52
53
|
};
|
|
53
54
|
});
|
|
@@ -64,13 +65,21 @@ const getContentPartData = (cp) => {
|
|
|
64
65
|
throw new Error(`Expected inline value but got external. (ContentPartId: ${cp.contentPartId})`);
|
|
65
66
|
return cp.data?.inline || "";
|
|
66
67
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
68
|
+
// Apollo discriminates PDF citations by `'download_url' in source` (property
|
|
69
|
+
// presence, not value). Returning a merged shape misrenders URL citations as
|
|
70
|
+
// broken PDFs, so we emit a discriminated UrlCitation | PdfCitation.
|
|
71
|
+
export const mapCitationSource = (source) => {
|
|
72
|
+
if (isCitationSourceUrl(source)) {
|
|
73
|
+
return { id: source.number, title: source.title, url: source.url };
|
|
74
|
+
}
|
|
75
|
+
const parsed = source.pageNumber ? parseInt(source.pageNumber, 10) : 0;
|
|
76
|
+
return {
|
|
77
|
+
id: source.number,
|
|
78
|
+
title: source.title,
|
|
79
|
+
download_url: source.downloadUrl ?? "",
|
|
80
|
+
page_number: Number.isNaN(parsed) ? 0 : parsed,
|
|
81
|
+
};
|
|
82
|
+
};
|
|
74
83
|
const mapTextContentPartToChatContentParts = (cp) => {
|
|
75
84
|
const data = getContentPartData(cp);
|
|
76
85
|
const citations = [...(cp.citations || [])].sort((a, b) => a.offset - b.offset);
|
|
@@ -164,4 +173,22 @@ export const mapExchangesToChatMessages = (exchanges) => exchanges.flatMap((exch
|
|
|
164
173
|
}));
|
|
165
174
|
return [mainMessage, ...toolCallMessages];
|
|
166
175
|
}));
|
|
176
|
+
/**
|
|
177
|
+
* Sorts evaluation sets: non-disabled first (default first within non-disabled),
|
|
178
|
+
* then disabled sets in their original order.
|
|
179
|
+
* @internal
|
|
180
|
+
*/
|
|
181
|
+
export const sortEvaluationSets = (evaluationSets) => [...evaluationSets].sort((a, b) => {
|
|
182
|
+
if (!a.isDisabled && b.isDisabled)
|
|
183
|
+
return -1;
|
|
184
|
+
if (a.isDisabled && !b.isDisabled)
|
|
185
|
+
return 1;
|
|
186
|
+
if (!a.isDisabled && !b.isDisabled) {
|
|
187
|
+
if (a.isDefault && !b.isDefault)
|
|
188
|
+
return -1;
|
|
189
|
+
if (!a.isDefault && b.isDefault)
|
|
190
|
+
return 1;
|
|
191
|
+
}
|
|
192
|
+
return 0;
|
|
193
|
+
});
|
|
167
194
|
//# 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,EAKL,mBAAmB,GAEpB,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAiB,aAAa,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,UAAiC,EAAE,EAAE;IACjE,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAC7B,MAAM,IAAI,GACR,UAAU,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC,CAAC;IAC5E,MAAM,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;IAC7B,OAAO,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;AACnC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,GAAQ,EAAO,EAAE;IAC9C,IAAI,CAAC,GAAG;QAAE,OAAO,GAAG,CAAC;IACrB,IAAI,GAAG,YAAY,IAAI;QAAE,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC;IAClD,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,GAAG,CAAC;IACxC,IAAI,KAAK,CAAC,OAAO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ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.0
|
|
1
|
+
export declare const version = "1.1.0";
|
|
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.0
|
|
3
|
+
"version": "1.1.0",
|
|
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.3.10"
|
|
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,20 @@
|
|
|
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": "^0.10.0",
|
|
74
|
+
"i18next": "^26.0.4",
|
|
75
|
+
"react-i18next": "^17.0.2"
|
|
71
76
|
}
|
|
72
77
|
}
|