@uipath/ui-widgets-conversational-agent-chat 1.1.0 → 1.1.2
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/ConversationalAgentChat.css +3591 -828
- package/dist/ConversationalAgentChat.d.ts +1 -1
- package/dist/ConversationalAgentChat.d.ts.map +1 -1
- package/dist/ConversationalAgentChat.js +309 -115
- package/dist/ConversationalAgentChat.js.map +1 -1
- package/dist/ConversationalAgentChat.stories.d.ts +2 -0
- package/dist/ConversationalAgentChat.stories.d.ts.map +1 -1
- package/dist/components/AgentSchemaForm/AgentSchemaField.d.ts.map +1 -1
- package/dist/components/AgentSchemaForm/AgentSchemaField.js +15 -7
- package/dist/components/AgentSchemaForm/AgentSchemaField.js.map +1 -1
- package/dist/components/AgentSchemaForm/AgentSchemaForm.js +2 -2
- package/dist/components/AgentSchemaForm/AgentSchemaForm.js.map +1 -1
- package/dist/components/AgentSchemaForm/inputs/ArrayField.d.ts.map +1 -1
- package/dist/components/AgentSchemaForm/inputs/ArrayField.js +3 -3
- package/dist/components/AgentSchemaForm/inputs/ArrayField.js.map +1 -1
- package/dist/components/AgentSchemaForm/inputs/ObjectField.js +2 -2
- package/dist/components/AgentSchemaForm/inputs/ObjectField.js.map +1 -1
- package/dist/components/ClientSideTool.d.ts +15 -0
- package/dist/components/ClientSideTool.d.ts.map +1 -0
- package/dist/components/ClientSideTool.js +20 -0
- package/dist/components/ClientSideTool.js.map +1 -0
- package/dist/components/ClientSideToolRenderer.d.ts +10 -0
- package/dist/components/ClientSideToolRenderer.d.ts.map +1 -0
- package/dist/components/ClientSideToolRenderer.js +56 -0
- package/dist/components/ClientSideToolRenderer.js.map +1 -0
- package/dist/components/FeedbackDialog.js +2 -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.js +3 -3
- package/dist/components/InputsPage.js.map +1 -1
- 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.js +2 -2
- package/dist/components/SettingsDialog/InputsSection.js.map +1 -1
- package/dist/components/SettingsDialog/ProfileSection.d.ts.map +1 -1
- package/dist/components/SettingsDialog/ProfileSection.js +3 -3
- package/dist/components/SettingsDialog/ProfileSection.js.map +1 -1
- package/dist/components/SettingsDialog/SettingsDialog.js +2 -2
- package/dist/components/SettingsDialog/SettingsDialog.js.map +1 -1
- package/dist/components/ToolConfirmationRenderer.d.ts.map +1 -1
- package/dist/components/ToolConfirmationRenderer.js +11 -10
- package/dist/components/ToolConfirmationRenderer.js.map +1 -1
- 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/hooks/useResolvedAgent.d.ts.map +1 -1
- package/dist/hooks/useResolvedAgent.js +8 -9
- package/dist/hooks/useResolvedAgent.js.map +1 -1
- package/dist/i18n/i18n.config.d.ts +17 -0
- package/dist/i18n/i18n.config.d.ts.map +1 -1
- package/dist/i18n/i18n.config.js +26 -7
- package/dist/i18n/i18n.config.js.map +1 -1
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/index.js.map +1 -1
- package/dist/i18n/locales/en/index.json +13 -0
- package/dist/i18n/locales/keys/index.json +13 -0
- package/dist/i18n/useWidgetTranslation.d.ts +14 -0
- package/dist/i18n/useWidgetTranslation.d.ts.map +1 -0
- package/dist/i18n/useWidgetTranslation.js +16 -0
- package/dist/i18n/useWidgetTranslation.js.map +1 -0
- package/dist/types.d.ts +17 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -1
- package/dist/utils.d.ts +12 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +25 -1
- package/dist/utils.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolConfirmationRenderer.d.ts","sourceRoot":"","sources":["../../src/components/ToolConfirmationRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolConfirmationRenderer.d.ts","sourceRoot":"","sources":["../../src/components/ToolConfirmationRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAErF,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,oBAAoB,CAAC;AAQ5B,0JAA0J;AAC1J,wBAAgB,6BAA6B,CAC3C,SAAS,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAC1C,sBAAsB,CAWxB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,CACJ,SAAS,EAAE,WAAW,EACtB,OAAO,EAAE,oBAAoB,EAC7B,cAAc,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,GAC/C,IAAI,CAAC;IACR,UAAU,IAAI,IAAI,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,IAAI,wBAAwB,CAwCzE"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createRoot } from "react-dom/client";
|
|
3
|
-
import
|
|
4
|
-
import { initI18n } from "../i18n";
|
|
3
|
+
import { getI18n } from "../i18n";
|
|
5
4
|
import { ToolConfirmation, } from "./ToolConfirmation";
|
|
6
|
-
|
|
7
|
-
//
|
|
8
|
-
|
|
5
|
+
import { PortalContainerProvider } from "@uipath/apollo-wind";
|
|
6
|
+
// The widget's own instance, created on first use — never the shared default
|
|
7
|
+
// one, which a host may already own. Safe when this module is imported directly
|
|
8
|
+
// (i.e. without first importing ConversationalAgentChat).
|
|
9
|
+
const i18n = getI18n();
|
|
9
10
|
/** Resolves labels for a separate React root (tool confirmation widget). Prefer passing overrides from the chat component where `useTranslation` runs. */
|
|
10
11
|
export function resolveToolConfirmationLabels(overrides) {
|
|
11
12
|
return {
|
|
12
|
-
cancel: overrides?.cancel ??
|
|
13
|
-
confirm: overrides?.confirm ??
|
|
13
|
+
cancel: overrides?.cancel ?? i18n.t("cancel"),
|
|
14
|
+
confirm: overrides?.confirm ?? i18n.t("tool_confirmation_confirm"),
|
|
14
15
|
statusCancelled: overrides?.statusCancelled ??
|
|
15
|
-
|
|
16
|
+
i18n.t("tool_confirmation_status_cancelled"),
|
|
16
17
|
statusConfirmed: overrides?.statusConfirmed ??
|
|
17
|
-
|
|
18
|
+
i18n.t("tool_confirmation_status_confirmed"),
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
@@ -39,7 +40,7 @@ export function createToolConfirmationRenderer() {
|
|
|
39
40
|
roots.set(container, root);
|
|
40
41
|
}
|
|
41
42
|
const labels = resolveToolConfirmationLabels(labelOverrides);
|
|
42
|
-
root.render(_jsx(ToolConfirmation, { confirmationData: meta.confirmationData, isCompleted: meta.isCompleted, wasRejected: meta.wasRejected, labels: labels, onApprove: meta.onApprove, onCancel: meta.onCancel }));
|
|
43
|
+
root.render(_jsx(PortalContainerProvider, { children: _jsx(ToolConfirmation, { confirmationData: meta.confirmationData, isCompleted: meta.isCompleted, wasRejected: meta.wasRejected, labels: labels, onApprove: meta.onApprove, onCancel: meta.onCancel }) }));
|
|
43
44
|
},
|
|
44
45
|
unmountAll() {
|
|
45
46
|
for (const root of roots.values()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolConfirmationRenderer.js","sourceRoot":"","sources":["../../src/components/ToolConfirmationRenderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,kBAAkB,CAAC;AAEzD,OAAO,OAAO,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ToolConfirmationRenderer.js","sourceRoot":"","sources":["../../src/components/ToolConfirmationRenderer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,kBAAkB,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EACL,gBAAgB,GAEjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,6EAA6E;AAC7E,gFAAgF;AAChF,0DAA0D;AAC1D,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;AAEvB,0JAA0J;AAC1J,MAAM,UAAU,6BAA6B,CAC3C,SAA2C;IAE3C,OAAO;QACL,MAAM,EAAE,SAAS,EAAE,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC7C,OAAO,EAAE,SAAS,EAAE,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,2BAA2B,CAAC;QAClE,eAAe,EACb,SAAS,EAAE,eAAe;YAC1B,IAAI,CAAC,CAAC,CAAC,oCAAoC,CAAC;QAC9C,eAAe,EACb,SAAS,EAAE,eAAe;YAC1B,IAAI,CAAC,CAAC,CAAC,oCAAoC,CAAC;KAC/C,CAAC;AACJ,CAAC;AAWD;;;;GAIG;AACH,MAAM,UAAU,8BAA8B;IAC5C,2EAA2E;IAC3E,yEAAyE;IACzE,0EAA0E;IAC1E,6BAA6B;IAC7B,MAAM,KAAK,GAAG,IAAI,GAAG,EAAqB,CAAC;IAE3C,OAAO;QACL,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,cAAc;YACvC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YAC1B,IAAI,CAAC,IAAI,EAAE,gBAAgB;gBAAE,OAAO;YAEpC,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YAChC,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,IAAI,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;gBAC7B,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;YAC7B,CAAC;YAED,MAAM,MAAM,GAAG,6BAA6B,CAAC,cAAc,CAAC,CAAC;YAE7D,IAAI,CAAC,MAAM,CACT,KAAC,uBAAuB,cACtB,KAAC,gBAAgB,IACf,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACvB,GACsB,CAC3B,CAAC;QACJ,CAAC;QACD,UAAU;YACR,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;gBAClC,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,CAAC;YACD,KAAK,CAAC,KAAK,EAAE,CAAC;QAChB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Allowed attachment types and size constraints for the chat file upload.
|
|
3
|
+
* Superset of all provider-supported formats from the Analyze Files tool.
|
|
4
|
+
* @see https://docs.uipath.com/agents/automation-cloud/latest/user-guide/analyze-files
|
|
5
|
+
*/
|
|
6
|
+
export declare const ALLOWED_ATTACHMENTS: {
|
|
7
|
+
multiple: boolean;
|
|
8
|
+
types: {
|
|
9
|
+
"application/pdf": string[];
|
|
10
|
+
"text/csv": string[];
|
|
11
|
+
"application/msword": string[];
|
|
12
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": string[];
|
|
13
|
+
"application/vnd.ms-excel": string[];
|
|
14
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": string[];
|
|
15
|
+
"text/html": string[];
|
|
16
|
+
"text/plain": string[];
|
|
17
|
+
"text/markdown": string[];
|
|
18
|
+
"image/gif": string[];
|
|
19
|
+
"image/jpeg": string[];
|
|
20
|
+
"image/png": string[];
|
|
21
|
+
"image/tiff": string[];
|
|
22
|
+
"image/webp": string[];
|
|
23
|
+
};
|
|
24
|
+
maxSize: number;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=attachments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../../src/constants/attachments.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;CAuB/B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Allowed attachment types and size constraints for the chat file upload.
|
|
3
|
+
* Superset of all provider-supported formats from the Analyze Files tool.
|
|
4
|
+
* @see https://docs.uipath.com/agents/automation-cloud/latest/user-guide/analyze-files
|
|
5
|
+
*/
|
|
6
|
+
export const ALLOWED_ATTACHMENTS = {
|
|
7
|
+
multiple: true,
|
|
8
|
+
types: {
|
|
9
|
+
"application/pdf": [".pdf"],
|
|
10
|
+
"text/csv": [".csv"],
|
|
11
|
+
"application/msword": [".doc"],
|
|
12
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document": [
|
|
13
|
+
".docx",
|
|
14
|
+
],
|
|
15
|
+
"application/vnd.ms-excel": [".xls"],
|
|
16
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [
|
|
17
|
+
".xlsx",
|
|
18
|
+
],
|
|
19
|
+
"text/html": [".html"],
|
|
20
|
+
"text/plain": [".txt"],
|
|
21
|
+
"text/markdown": [".md"],
|
|
22
|
+
"image/gif": [".gif"],
|
|
23
|
+
"image/jpeg": [".jpe", ".jpeg", ".jpg"],
|
|
24
|
+
"image/png": [".png"],
|
|
25
|
+
"image/tiff": [".tiff"],
|
|
26
|
+
"image/webp": [".webp"],
|
|
27
|
+
},
|
|
28
|
+
maxSize: 30 * 1024 * 1024,
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=attachments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attachments.js","sourceRoot":"","sources":["../../src/constants/attachments.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACL,iBAAiB,EAAE,CAAC,MAAM,CAAC;QAC3B,UAAU,EAAE,CAAC,MAAM,CAAC;QACpB,oBAAoB,EAAE,CAAC,MAAM,CAAC;QAC9B,yEAAyE,EAAE;YACzE,OAAO;SACR;QACD,0BAA0B,EAAE,CAAC,MAAM,CAAC;QACpC,mEAAmE,EAAE;YACnE,OAAO;SACR;QACD,WAAW,EAAE,CAAC,OAAO,CAAC;QACtB,YAAY,EAAE,CAAC,MAAM,CAAC;QACtB,eAAe,EAAE,CAAC,KAAK,CAAC;QACxB,WAAW,EAAE,CAAC,MAAM,CAAC;QACrB,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC;QACvC,WAAW,EAAE,CAAC,MAAM,CAAC;QACrB,YAAY,EAAE,CAAC,OAAO,CAAC;QACvB,YAAY,EAAE,CAAC,OAAO,CAAC;KACxB;IACD,OAAO,EAAE,EAAE,GAAG,IAAI,GAAG,IAAI;CAC1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResolvedAgent.d.ts","sourceRoot":"","sources":["../../src/hooks/useResolvedAgent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useResolvedAgent.d.ts","sourceRoot":"","sources":["../../src/hooks/useResolvedAgent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAwBrD,MAAM,WAAW,uBAAuB;IACtC;iCAC6B;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;2EACuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;oDACgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB;;;sEAGkE;IAClE,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,GAC3B,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,EAC9B,SAAS,MAAM,GAAG,SAAS,EAC3B,WAAW,MAAM,EACjB,UAAS,uBAA4B,KACpC,sBAwEF,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
|
-
import
|
|
3
|
-
import { useTranslation } from "react-i18next";
|
|
2
|
+
import { useWidgetTranslation } from "../i18n/useWidgetTranslation";
|
|
4
3
|
import { resolveAgent } from "../utils/resolveAgent";
|
|
5
|
-
import {
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
|
|
4
|
+
import { getI18n } from "../i18n";
|
|
5
|
+
// The widget's own instance, created on first use — never the shared default
|
|
6
|
+
// one, which a host may already own.
|
|
7
|
+
const i18n = getI18n();
|
|
9
8
|
// Stable per-instance id for an sdk so a *different* sdk instance changes
|
|
10
9
|
// `inputsKey` (and fires the reset block). A truthy/falsy flag would collapse
|
|
11
10
|
// every instance to "sdk", leaving stale agent state on the screen after a
|
|
@@ -33,10 +32,10 @@ const sdkKey = (sdk) => {
|
|
|
33
32
|
export const useResolvedAgent = (sdk, agentId, folderId, options = {}) => {
|
|
34
33
|
const { externalUserId, locale, surfaceName, surfaceVersion } = options;
|
|
35
34
|
// Match locale before useTranslation runs to avoid a stale render.
|
|
36
|
-
if (locale &&
|
|
37
|
-
|
|
35
|
+
if (locale && i18n.language !== locale) {
|
|
36
|
+
i18n.changeLanguage(locale);
|
|
38
37
|
}
|
|
39
|
-
const { t } =
|
|
38
|
+
const { t } = useWidgetTranslation();
|
|
40
39
|
const shouldFetch = !!sdk && agentId != null;
|
|
41
40
|
const inputsKey = `${sdkKey(sdk)}|${agentId ?? "_"}|${folderId ?? "_"}|${externalUserId ?? "_"}|${surfaceName ?? "_"}|${surfaceVersion ?? "_"}`;
|
|
42
41
|
// Reset on input change via the "storing information from previous renders"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResolvedAgent.js","sourceRoot":"","sources":["../../src/hooks/useResolvedAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"useResolvedAgent.js","sourceRoot":"","sources":["../../src/hooks/useResolvedAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGpE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,6EAA6E;AAC7E,qCAAqC;AACrC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;AAEvB,0EAA0E;AAC1E,8EAA8E;AAC9E,2EAA2E;AAC3E,0DAA0D;AAC1D,MAAM,MAAM,GAAG,IAAI,OAAO,EAAkB,CAAC;AAC7C,IAAI,SAA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AAC,KAAK,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QAEL,OAAO,GAAG,EAAE;YACV,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC,CAAC;IACJ,CAAC,EAAE;QACD,WAAW;QACX,GAAG;QACH,OAAO;QACP,QAAQ;QACR,cAAc;QACd,WAAW;QACX,cAAc;KACf,CAAC,CAAC;IAEH,MAAM,WAAW,GAAG,KAAK,EAAE,IAAI,IAAI,CAAC,CAAC,qBAAqB,CAAC,CAAC;IAE5D,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;AAClD,CAAC,CAAC"}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
+
import { type i18n as I18nInstance } from "i18next";
|
|
2
|
+
/**
|
|
3
|
+
* The widget owns a private i18next instance instead of initializing the shared
|
|
4
|
+
* default one.
|
|
5
|
+
*
|
|
6
|
+
* A host that owns i18next (Studio Web, flow-workbench) initializes the default
|
|
7
|
+
* instance before this module loads. Initializing it ourselves would either be
|
|
8
|
+
* skipped — leaving every string rendering as its raw key — or clobber the
|
|
9
|
+
* host's configuration, depending on who won the race.
|
|
10
|
+
*
|
|
11
|
+
* Deliberately no `.use(initReactI18next)`: that plugin sets react-i18next's
|
|
12
|
+
* global default instance, which would hijack the host's. Components read this
|
|
13
|
+
* instance explicitly (`useTranslation(ns, { i18n })`) or through the
|
|
14
|
+
* `<I18nextProvider>` the widget renders around its subtrees.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getI18n: () => I18nInstance;
|
|
17
|
+
/** Back-compat: eagerly create the instance at module load. */
|
|
1
18
|
export declare const initI18n: () => void;
|
|
2
19
|
//# sourceMappingURL=i18n.config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.config.d.ts","sourceRoot":"","sources":["../../src/i18n/i18n.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"i18n.config.d.ts","sourceRoot":"","sources":["../../src/i18n/i18n.config.ts"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AAO7D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO,QAAO,YAsB1B,CAAC;AAEF,+DAA+D;AAC/D,eAAO,MAAM,QAAQ,YAEpB,CAAC"}
|
package/dist/i18n/i18n.config.js
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
import i18next from "i18next";
|
|
2
|
-
import { initReactI18next } from "react-i18next";
|
|
3
2
|
import en from "./locales/en/index.json";
|
|
4
3
|
import keys from "./locales/keys/index.json";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
let instance;
|
|
5
|
+
/**
|
|
6
|
+
* The widget owns a private i18next instance instead of initializing the shared
|
|
7
|
+
* default one.
|
|
8
|
+
*
|
|
9
|
+
* A host that owns i18next (Studio Web, flow-workbench) initializes the default
|
|
10
|
+
* instance before this module loads. Initializing it ourselves would either be
|
|
11
|
+
* skipped — leaving every string rendering as its raw key — or clobber the
|
|
12
|
+
* host's configuration, depending on who won the race.
|
|
13
|
+
*
|
|
14
|
+
* Deliberately no `.use(initReactI18next)`: that plugin sets react-i18next's
|
|
15
|
+
* global default instance, which would hijack the host's. Components read this
|
|
16
|
+
* instance explicitly (`useTranslation(ns, { i18n })`) or through the
|
|
17
|
+
* `<I18nextProvider>` the widget renders around its subtrees.
|
|
18
|
+
*/
|
|
19
|
+
export const getI18n = () => {
|
|
20
|
+
if (instance)
|
|
21
|
+
return instance;
|
|
22
|
+
const created = i18next.createInstance();
|
|
23
|
+
created.init({
|
|
11
24
|
lng: "en",
|
|
12
25
|
fallbackLng: "en",
|
|
13
26
|
interpolation: {
|
|
@@ -20,5 +33,11 @@ export const initI18n = () => {
|
|
|
20
33
|
},
|
|
21
34
|
// Callback forces synchronous init when resources are bundled
|
|
22
35
|
() => { });
|
|
36
|
+
instance = created;
|
|
37
|
+
return created;
|
|
38
|
+
};
|
|
39
|
+
/** Back-compat: eagerly create the instance at module load. */
|
|
40
|
+
export const initI18n = () => {
|
|
41
|
+
getI18n();
|
|
23
42
|
};
|
|
24
43
|
//# sourceMappingURL=i18n.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.config.js","sourceRoot":"","sources":["../../src/i18n/i18n.config.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"i18n.config.js","sourceRoot":"","sources":["../../src/i18n/i18n.config.ts"],"names":[],"mappings":"AAAA,OAAO,OAAsC,MAAM,SAAS,CAAC;AAE7D,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACzC,OAAO,IAAI,MAAM,2BAA2B,CAAC;AAE7C,IAAI,QAAkC,CAAC;AAEvC;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,GAAiB,EAAE;IACxC,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAE9B,MAAM,OAAO,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IACzC,OAAO,CAAC,IAAI,CACV;QACE,GAAG,EAAE,IAAI;QACT,WAAW,EAAE,IAAI;QACjB,aAAa,EAAE;YACb,WAAW,EAAE,KAAK;SACnB;QACD,SAAS,EAAE;YACT,EAAE,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE;YACvB,IAAI,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;SAC5B;KACF;IACD,8DAA8D;IAC9D,GAAG,EAAE,GAAE,CAAC,CACT,CAAC;IACF,QAAQ,GAAG,OAAO,CAAC;IAEnB,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,+DAA+D;AAC/D,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"}
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { initI18n } from "./i18n.config";
|
|
1
|
+
export { initI18n, getI18n } from "./i18n.config";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/i18n/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/i18n/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { initI18n } from "./i18n.config";
|
|
1
|
+
export { initI18n, getI18n } from "./i18n.config";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/i18n/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"error_open_conversation": "Failed to open conversation: {{errorMessage}}",
|
|
3
3
|
"error_generic": "Something went wrong. Please try again.",
|
|
4
4
|
"error_send_message": "Failed to send message: {{errorMessage}}",
|
|
5
|
+
"error_session_start_timeout": "Timed out starting a session for the conversation. Please try again.",
|
|
5
6
|
"error_upload_attachments": "Failed to upload attachments. Please try again.",
|
|
6
7
|
"error_missing_conversation_params": "Either conversationId or agentId and folderId must be provided.",
|
|
7
8
|
"error_initialize_chat": "Failed to initialize chat",
|
|
@@ -13,6 +14,12 @@
|
|
|
13
14
|
"feedback_placeholder": "Share your experience or offer suggestions",
|
|
14
15
|
"cancel": "Cancel",
|
|
15
16
|
"submit": "Submit",
|
|
17
|
+
"download_file_button_text": "Download",
|
|
18
|
+
"copy_link_button_text": "Copy link to open in new tab",
|
|
19
|
+
"preview_not_supported_message": "Preview is not supported for this file type.",
|
|
20
|
+
"file_content_title": "File content",
|
|
21
|
+
"file_preview_error": "Failed to load file preview.",
|
|
22
|
+
"file_preview_alt_text": "File preview",
|
|
16
23
|
"chat_input_placeholder": "Talk with your agent...",
|
|
17
24
|
"disclaimer_message": "Agents can make mistakes. Please double check the responses.",
|
|
18
25
|
"welcome_to_agent": "Welcome to {{agentName}}!",
|
|
@@ -21,6 +28,8 @@
|
|
|
21
28
|
"tool_confirmation_confirm": "Confirm",
|
|
22
29
|
"tool_confirmation_status_cancelled": "Cancelled",
|
|
23
30
|
"tool_confirmation_status_confirmed": "Confirmed",
|
|
31
|
+
"client_side_tool_submit": "Submit",
|
|
32
|
+
"client_side_tool_description": "Fill in the fields below and submit to continue.",
|
|
24
33
|
"inputs_page_submit_error": "Failed to start the conversation. Please try again.",
|
|
25
34
|
"inputs_page_intro": "Before we get started, I need a few details.",
|
|
26
35
|
"inputs_page_starting": "Starting...",
|
|
@@ -35,6 +44,7 @@
|
|
|
35
44
|
"agent_schema_select_placeholder": "Select an option...",
|
|
36
45
|
"agent_schema_number_placeholder": "Enter a number...",
|
|
37
46
|
"agent_schema_text_placeholder": "Enter a value...",
|
|
47
|
+
"agent_schema_array_placeholder": "Type and press Enter to add",
|
|
38
48
|
"feedback_title_required": "Provide additional feedback",
|
|
39
49
|
"feedback_title_optional": "Provide additional feedback (optional)",
|
|
40
50
|
"add_to_evaluation_set": "Add to Evaluation Set",
|
|
@@ -51,6 +61,9 @@
|
|
|
51
61
|
"company_label": "Company",
|
|
52
62
|
"country_label": "Country",
|
|
53
63
|
"timezone_label": "Timezone",
|
|
64
|
+
"combobox_placeholder": "Select an option...",
|
|
65
|
+
"combobox_search_placeholder": "Search...",
|
|
66
|
+
"combobox_empty": "No results found.",
|
|
54
67
|
"error_load_profile": "Failed to load profile: {{errorMessage}}",
|
|
55
68
|
"error_save_profile": "Failed to save: {{errorMessage}}",
|
|
56
69
|
"error_invalid_email": "Enter a valid email address",
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
+
"download_file_button_text": "download_file_button_text",
|
|
3
|
+
"copy_link_button_text": "copy_link_button_text",
|
|
4
|
+
"preview_not_supported_message": "preview_not_supported_message",
|
|
5
|
+
"file_content_title": "file_content_title",
|
|
6
|
+
"file_preview_error": "file_preview_error",
|
|
7
|
+
"file_preview_alt_text": "file_preview_alt_text",
|
|
2
8
|
"chat_input_placeholder": "chat_input_placeholder",
|
|
3
9
|
"disclaimer_message": "disclaimer_message",
|
|
4
10
|
"performing_action_message": "performing_action_message",
|
|
@@ -8,6 +14,8 @@
|
|
|
8
14
|
"tool_confirmation_confirm": "tool_confirmation_confirm",
|
|
9
15
|
"tool_confirmation_status_cancelled": "tool_confirmation_status_cancelled",
|
|
10
16
|
"tool_confirmation_status_confirmed": "tool_confirmation_status_confirmed",
|
|
17
|
+
"client_side_tool_submit": "client_side_tool_submit",
|
|
18
|
+
"client_side_tool_description": "client_side_tool_description",
|
|
11
19
|
"inputs_page_submit_error": "inputs_page_submit_error",
|
|
12
20
|
"inputs_page_intro": "inputs_page_intro",
|
|
13
21
|
"inputs_page_starting": "inputs_page_starting",
|
|
@@ -22,10 +30,12 @@
|
|
|
22
30
|
"agent_schema_select_placeholder": "agent_schema_select_placeholder",
|
|
23
31
|
"agent_schema_number_placeholder": "agent_schema_number_placeholder",
|
|
24
32
|
"agent_schema_text_placeholder": "agent_schema_text_placeholder",
|
|
33
|
+
"agent_schema_array_placeholder": "agent_schema_array_placeholder",
|
|
25
34
|
"error_missing_conversation_params": "error_missing_conversation_params",
|
|
26
35
|
"error_open_conversation": "error_open_conversation",
|
|
27
36
|
"error_generic": "error_generic",
|
|
28
37
|
"error_send_message": "error_send_message",
|
|
38
|
+
"error_session_start_timeout": "error_session_start_timeout",
|
|
29
39
|
"error_upload_attachments": "error_upload_attachments",
|
|
30
40
|
"error_initialize_chat": "error_initialize_chat",
|
|
31
41
|
"error_load_history": "error_load_history",
|
|
@@ -51,6 +61,9 @@
|
|
|
51
61
|
"company_label": "company_label",
|
|
52
62
|
"country_label": "country_label",
|
|
53
63
|
"timezone_label": "timezone_label",
|
|
64
|
+
"combobox_placeholder": "combobox_placeholder",
|
|
65
|
+
"combobox_search_placeholder": "combobox_search_placeholder",
|
|
66
|
+
"combobox_empty": "combobox_empty",
|
|
54
67
|
"error_load_profile": "error_load_profile",
|
|
55
68
|
"error_save_profile": "error_save_profile",
|
|
56
69
|
"error_invalid_email": "error_invalid_email",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `useTranslation` bound to the widget's own i18next instance.
|
|
3
|
+
*
|
|
4
|
+
* Use this instead of a bare `useTranslation()` anywhere in the widget. A bare
|
|
5
|
+
* call resolves against react-i18next's global default instance, which belongs
|
|
6
|
+
* to the host when the host owns i18next (Studio Web) — and the widget's
|
|
7
|
+
* catalog isn't registered there, so every string renders as its raw key.
|
|
8
|
+
*
|
|
9
|
+
* Binding the instance here rather than relying on an `<I18nextProvider>` also
|
|
10
|
+
* keeps the widget's separate React roots (settings dialog, tool confirmation)
|
|
11
|
+
* working, since those inherit no context from the tree above them.
|
|
12
|
+
*/
|
|
13
|
+
export declare const useWidgetTranslation: () => import("react-i18next").UseTranslationResponse<"translation", undefined>;
|
|
14
|
+
//# sourceMappingURL=useWidgetTranslation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWidgetTranslation.d.ts","sourceRoot":"","sources":["../../src/i18n/useWidgetTranslation.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,gFACe,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useTranslation } from "react-i18next";
|
|
2
|
+
import { getI18n } from "./i18n.config";
|
|
3
|
+
/**
|
|
4
|
+
* `useTranslation` bound to the widget's own i18next instance.
|
|
5
|
+
*
|
|
6
|
+
* Use this instead of a bare `useTranslation()` anywhere in the widget. A bare
|
|
7
|
+
* call resolves against react-i18next's global default instance, which belongs
|
|
8
|
+
* to the host when the host owns i18next (Studio Web) — and the widget's
|
|
9
|
+
* catalog isn't registered there, so every string renders as its raw key.
|
|
10
|
+
*
|
|
11
|
+
* Binding the instance here rather than relying on an `<I18nextProvider>` also
|
|
12
|
+
* keeps the widget's separate React roots (settings dialog, tool confirmation)
|
|
13
|
+
* working, since those inherit no context from the tree above them.
|
|
14
|
+
*/
|
|
15
|
+
export const useWidgetTranslation = () => useTranslation(undefined, { i18n: getI18n() });
|
|
16
|
+
//# sourceMappingURL=useWidgetTranslation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useWidgetTranslation.js","sourceRoot":"","sources":["../../src/i18n/useWidgetTranslation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE,CACvC,cAAc,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -66,14 +66,25 @@ export interface ConversationalAgentChatProps {
|
|
|
66
66
|
readOnly?: boolean;
|
|
67
67
|
overrideLabels?: OverrideLabels;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* is rendered.
|
|
69
|
+
* Host-provided first-run experience (welcome title/description and starting
|
|
70
|
+
* prompts). Takes precedence over the agent's own appearance, which is used as
|
|
71
|
+
* a fallback. Precedence is whole-object.
|
|
73
72
|
*/
|
|
74
73
|
firstRunExperience?: FirstRunExperience;
|
|
75
74
|
/** Override which features are disabled. Merged with defaults (fullScreen, preview, close are always disabled). */
|
|
76
75
|
disabledFeatures?: DisabledFeatures;
|
|
76
|
+
/**
|
|
77
|
+
* Whether clicking a context-grounding citation opens a preview dialog for its
|
|
78
|
+
* source document. When false, citations fall through to Apollo's default
|
|
79
|
+
* handling. Defaults to true.
|
|
80
|
+
*/
|
|
81
|
+
citationPreview?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* PDF/text citation preview mode. `true` (default) renders via pdfjs to a
|
|
84
|
+
* <canvas> — safe inside sandboxed iframes; `false` uses the browser's native
|
|
85
|
+
* viewer in an <iframe>. Images are unaffected.
|
|
86
|
+
*/
|
|
87
|
+
usePdfJsViewer?: boolean;
|
|
77
88
|
/** Optional configuration for job start behavior */
|
|
78
89
|
jobStartOverrides?: ConversationJobStartOverrides;
|
|
79
90
|
/** @internal */
|
|
@@ -136,7 +147,8 @@ export declare enum MessageWidget {
|
|
|
136
147
|
AI = "ai",
|
|
137
148
|
Human = "human",
|
|
138
149
|
ApolloAgentsToolCall = "apollo-agents-tool-call",
|
|
139
|
-
ToolConfirmation = "apollo-cas-tool-confirmation"
|
|
150
|
+
ToolConfirmation = "apollo-cas-tool-confirmation",
|
|
151
|
+
ClientSideToolInput = "apollo-cas-client-side-tool-input"
|
|
140
152
|
}
|
|
141
153
|
export interface AttachFileOutput {
|
|
142
154
|
uri: string;
|
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;AACxD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,KAAK,EAAE,WAAW,E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B;IACzC,YAAY,qBAAqB;IACjC,QAAQ,iBAAiB;IACzB,UAAU,mBAAmB;IAC7B,WAAW,oBAAoB;CAChC;AAED,oBAAY,eAAe;IACzB,OAAO,gBAAgB;IACvB,KAAK,cAAc;CACpB"}
|
package/dist/types.js
CHANGED
|
@@ -4,6 +4,7 @@ export var MessageWidget;
|
|
|
4
4
|
MessageWidget["Human"] = "human";
|
|
5
5
|
MessageWidget["ApolloAgentsToolCall"] = "apollo-agents-tool-call";
|
|
6
6
|
MessageWidget["ToolConfirmation"] = "apollo-cas-tool-confirmation";
|
|
7
|
+
MessageWidget["ClientSideToolInput"] = "apollo-cas-client-side-tool-input";
|
|
7
8
|
})(MessageWidget || (MessageWidget = {}));
|
|
8
9
|
export var TelemetryEvent;
|
|
9
10
|
(function (TelemetryEvent) {
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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":"AAuJA,MAAM,CAAN,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,0BAAS,CAAA;IACT,gCAAe,CAAA;IACf,iEAAgD,CAAA;IAChD,kEAAiD,CAAA;IACjD,0EAAyD,CAAA;AAC3D,CAAC,EANW,aAAa,KAAb,aAAa,QAMxB;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"}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
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";
|
|
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;
|
|
4
14
|
export declare const createFileKey: (attachment: AutopilotChatFileInfo) => string;
|
|
5
15
|
export declare const normalizeInput: (obj: any) => any;
|
|
6
16
|
export declare const convertAttachmentToFile: (attachment: AutopilotChatFileInfo) => File;
|
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,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;
|
|
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
|
@@ -2,6 +2,28 @@
|
|
|
2
2
|
import { AutopilotChatRole, } from "@uipath/apollo-react/ap-chat";
|
|
3
3
|
import { isCitationSourceUrl, } from "@uipath/uipath-typescript/conversational-agent";
|
|
4
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
|
+
};
|
|
5
27
|
export const createFileKey = (attachment) => {
|
|
6
28
|
const name = attachment.name;
|
|
7
29
|
const size = attachment.content.binary?.length || attachment.content.text?.length || 0;
|
|
@@ -164,7 +186,9 @@ export const mapExchangesToChatMessages = (exchanges) => exchanges.flatMap((exch
|
|
|
164
186
|
meta: {
|
|
165
187
|
toolName: toolCall.name,
|
|
166
188
|
input: toolCall.input,
|
|
167
|
-
|
|
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,
|
|
168
192
|
output: toolCall.result?.output,
|
|
169
193
|
endTime: toolCall.result?.timestamp,
|
|
170
194
|
isError: toolCall.result?.isError,
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot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AO,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.
|
|
1
|
+
export declare const version = "1.1.2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED