@uipath/ui-widgets-conversational-agent-chat 1.2.0-beta.1 → 1.2.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 +7 -9
- package/dist/ConversationalAgentChat.css +67 -4
- package/dist/ConversationalAgentChat.d.ts +1 -1
- package/dist/ConversationalAgentChat.d.ts.map +1 -1
- package/dist/ConversationalAgentChat.js +384 -170
- package/dist/ConversationalAgentChat.js.map +1 -1
- package/dist/ConversationalAgentChat.stories.d.ts +6 -0
- package/dist/ConversationalAgentChat.stories.d.ts.map +1 -1
- package/dist/ConversationalAgentChat.stories.js +5 -0
- package/dist/ConversationalAgentChat.stories.js.map +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -66,15 +66,13 @@ function App() {
|
|
|
66
66
|
|
|
67
67
|
## Props
|
|
68
68
|
|
|
69
|
-
| Prop | Type
|
|
70
|
-
| ------------------------ |
|
|
71
|
-
| `sdk` | `UiPath`
|
|
72
|
-
| `agentId` | `number`
|
|
73
|
-
| `folderId` | `number`
|
|
74
|
-
| `existingConversationId` | `string`
|
|
75
|
-
| `
|
|
76
|
-
| `isDebugMode` | `boolean` | No | Debug flow: opens an empty conversation up front so inputs are collected in the widget, and submits update the existing conversation instead of creating a new one |
|
|
77
|
-
| `externalUserId` | `string` | No | External user identifier sent as `x-uipath-external-user-id` (HTTP header / WebSocket query param). Required when authenticating via an app-scoped external app; omit for standard user tokens |
|
|
69
|
+
| Prop | Type | Required | Description |
|
|
70
|
+
| ------------------------ | -------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
71
|
+
| `sdk` | `UiPath` | Yes | UiPath SDK instance for API communication |
|
|
72
|
+
| `agentId` | `number` | No | The ID of the conversational agent release. Required unless `existingConversationId` is provided |
|
|
73
|
+
| `folderId` | `number` | No | The folder ID the agent lives in. When omitted, the widget resolves it by listing agents and matching on `agentId` — prefer passing it when known |
|
|
74
|
+
| `existingConversationId` | `string` | No | Load an existing conversation by ID instead of creating a new one on the first message |
|
|
75
|
+
| `externalUserId` | `string` | No | External user identifier sent as `x-uipath-external-user-id` (HTTP header / WebSocket query param). Required when authenticating via an app-scoped external app; omit for standard user tokens |
|
|
78
76
|
|
|
79
77
|
## Agent picker + chat
|
|
80
78
|
|
|
@@ -3864,6 +3864,9 @@
|
|
|
3864
3864
|
.uipath-conversational-agent-chat .-mb-7 {
|
|
3865
3865
|
margin-bottom: calc(var(--spacing) * -7);
|
|
3866
3866
|
}
|
|
3867
|
+
.uipath-conversational-agent-chat .mb-1 {
|
|
3868
|
+
margin-bottom: calc(var(--spacing) * 1);
|
|
3869
|
+
}
|
|
3867
3870
|
.uipath-conversational-agent-chat .mb-1\.5 {
|
|
3868
3871
|
margin-bottom: calc(var(--spacing) * 1.5);
|
|
3869
3872
|
}
|
|
@@ -4002,6 +4005,9 @@
|
|
|
4002
4005
|
.uipath-conversational-agent-chat .h-\(--citation-size\,1\.125rem\) {
|
|
4003
4006
|
height: var(--citation-size,1.125rem);
|
|
4004
4007
|
}
|
|
4008
|
+
.uipath-conversational-agent-chat .h-\(--hero-image-height\) {
|
|
4009
|
+
height: var(--hero-image-height);
|
|
4010
|
+
}
|
|
4005
4011
|
.uipath-conversational-agent-chat .h-2 {
|
|
4006
4012
|
height: calc(var(--spacing) * 2);
|
|
4007
4013
|
}
|
|
@@ -4083,12 +4089,21 @@
|
|
|
4083
4089
|
.uipath-conversational-agent-chat .max-h-9 {
|
|
4084
4090
|
max-height: calc(var(--spacing) * 9);
|
|
4085
4091
|
}
|
|
4092
|
+
.uipath-conversational-agent-chat .max-h-30 {
|
|
4093
|
+
max-height: calc(var(--spacing) * 30);
|
|
4094
|
+
}
|
|
4095
|
+
.uipath-conversational-agent-chat .max-h-40 {
|
|
4096
|
+
max-height: calc(var(--spacing) * 40);
|
|
4097
|
+
}
|
|
4086
4098
|
.uipath-conversational-agent-chat .max-h-45 {
|
|
4087
4099
|
max-height: calc(var(--spacing) * 45);
|
|
4088
4100
|
}
|
|
4089
4101
|
.uipath-conversational-agent-chat .max-h-48 {
|
|
4090
4102
|
max-height: calc(var(--spacing) * 48);
|
|
4091
4103
|
}
|
|
4104
|
+
.uipath-conversational-agent-chat .max-h-60 {
|
|
4105
|
+
max-height: calc(var(--spacing) * 60);
|
|
4106
|
+
}
|
|
4092
4107
|
.uipath-conversational-agent-chat .max-h-75 {
|
|
4093
4108
|
max-height: calc(var(--spacing) * 75);
|
|
4094
4109
|
}
|
|
@@ -4236,6 +4251,9 @@
|
|
|
4236
4251
|
.uipath-conversational-agent-chat .w-\[var\(--chat-width\)\] {
|
|
4237
4252
|
width: var(--chat-width);
|
|
4238
4253
|
}
|
|
4254
|
+
.uipath-conversational-agent-chat .w-auto {
|
|
4255
|
+
width: auto;
|
|
4256
|
+
}
|
|
4239
4257
|
.uipath-conversational-agent-chat .w-fit {
|
|
4240
4258
|
width: -moz-fit-content;
|
|
4241
4259
|
width: fit-content;
|
|
@@ -4660,6 +4678,10 @@
|
|
|
4660
4678
|
margin-block-end: calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)));
|
|
4661
4679
|
}
|
|
4662
4680
|
}
|
|
4681
|
+
.uipath-conversational-agent-chat .gap-x-3 {
|
|
4682
|
+
-moz-column-gap: calc(var(--spacing) * 3);
|
|
4683
|
+
column-gap: calc(var(--spacing) * 3);
|
|
4684
|
+
}
|
|
4663
4685
|
.uipath-conversational-agent-chat .self-end {
|
|
4664
4686
|
align-self: flex-end;
|
|
4665
4687
|
}
|
|
@@ -4875,8 +4897,8 @@
|
|
|
4875
4897
|
background-color: color-mix(in oklab, var(--background) 85%, transparent);
|
|
4876
4898
|
}
|
|
4877
4899
|
}
|
|
4878
|
-
.uipath-conversational-agent-chat .bg-border {
|
|
4879
|
-
background-color: var(--
|
|
4900
|
+
.uipath-conversational-agent-chat .bg-border-subtle {
|
|
4901
|
+
background-color: var(--border-subtle);
|
|
4880
4902
|
}
|
|
4881
4903
|
.uipath-conversational-agent-chat .bg-card {
|
|
4882
4904
|
background-color: var(--card);
|
|
@@ -4987,6 +5009,10 @@
|
|
|
4987
5009
|
-o-object-fit: contain;
|
|
4988
5010
|
object-fit: contain;
|
|
4989
5011
|
}
|
|
5012
|
+
.uipath-conversational-agent-chat .object-left {
|
|
5013
|
+
-o-object-position: left;
|
|
5014
|
+
object-position: left;
|
|
5015
|
+
}
|
|
4990
5016
|
.uipath-conversational-agent-chat .p-\(--tool-call-padding\,0\.75rem\) {
|
|
4991
5017
|
padding: var(--tool-call-padding,0.75rem);
|
|
4992
5018
|
}
|
|
@@ -5185,6 +5211,9 @@
|
|
|
5185
5211
|
.uipath-conversational-agent-chat .text-center {
|
|
5186
5212
|
text-align: center;
|
|
5187
5213
|
}
|
|
5214
|
+
.uipath-conversational-agent-chat .text-end {
|
|
5215
|
+
text-align: end;
|
|
5216
|
+
}
|
|
5188
5217
|
.uipath-conversational-agent-chat .text-left {
|
|
5189
5218
|
text-align: left;
|
|
5190
5219
|
}
|
|
@@ -7290,6 +7319,16 @@
|
|
|
7290
7319
|
--tw-enter-scale: calc(95 / 100);
|
|
7291
7320
|
}
|
|
7292
7321
|
}
|
|
7322
|
+
.uipath-conversational-agent-chat .supports-\[justify-content\:safe_center\]\:justify-center-safe {
|
|
7323
|
+
@supports (justify-content:safe center) {
|
|
7324
|
+
justify-content: safe center;
|
|
7325
|
+
}
|
|
7326
|
+
}
|
|
7327
|
+
.uipath-conversational-agent-chat .supports-\[justify-content\:safe_flex-end\]\:justify-end-safe {
|
|
7328
|
+
@supports (justify-content:safe flex-end) {
|
|
7329
|
+
justify-content: safe flex-end;
|
|
7330
|
+
}
|
|
7331
|
+
}
|
|
7293
7332
|
.uipath-conversational-agent-chat .motion-reduce\:animate-none {
|
|
7294
7333
|
@media (prefers-reduced-motion: reduce) {
|
|
7295
7334
|
animation: none;
|
|
@@ -9157,7 +9196,7 @@
|
|
|
9157
9196
|
--color-success-foreground-inverse-dark-hc: #6eb84a;
|
|
9158
9197
|
--color-success-foreground-inverse-future-dark: #007a55;
|
|
9159
9198
|
--color-success-foreground-inverse-future-light: #00d492;
|
|
9160
|
-
--color-warning-icon-light: #
|
|
9199
|
+
--color-warning-icon-light: #9e6100;
|
|
9161
9200
|
--color-warning-icon-light-hc: #805a07;
|
|
9162
9201
|
--color-warning-icon-dark: #ffbb27;
|
|
9163
9202
|
--color-warning-icon-dark-hc: #ffbb27;
|
|
@@ -9890,7 +9929,7 @@ body.light .uipath-conversational-agent-chat, .uipath-conversational-agent-chat
|
|
|
9890
9929
|
--color-success-text: #038108;
|
|
9891
9930
|
--color-success-background: #eeffe5;
|
|
9892
9931
|
--color-success-foreground-inverse: #74c94b;
|
|
9893
|
-
--color-warning-icon: #
|
|
9932
|
+
--color-warning-icon: #9e6100;
|
|
9894
9933
|
--color-warning-icon-inverse: #ffbb27;
|
|
9895
9934
|
--color-warning-text: #9e6100;
|
|
9896
9935
|
--color-warning-background: #fff3db;
|
|
@@ -11253,6 +11292,30 @@ html[dir='rtl'] .uipath-conversational-agent-chat, .uipath-conversational-agent-
|
|
|
11253
11292
|
box-shadow: 0 0 0 5px var(--_glow-shadow, currentColor);
|
|
11254
11293
|
}
|
|
11255
11294
|
}
|
|
11295
|
+
@keyframes apollo-glow-ring {
|
|
11296
|
+
0% {
|
|
11297
|
+
opacity: 0;
|
|
11298
|
+
}
|
|
11299
|
+
20% {
|
|
11300
|
+
opacity: 0.6;
|
|
11301
|
+
}
|
|
11302
|
+
70% {
|
|
11303
|
+
opacity: 0;
|
|
11304
|
+
}
|
|
11305
|
+
100% {
|
|
11306
|
+
opacity: 0;
|
|
11307
|
+
}
|
|
11308
|
+
}
|
|
11309
|
+
@media (prefers-reduced-motion: reduce) {
|
|
11310
|
+
.uipath-conversational-agent-chat .animate-glow-ring::after {
|
|
11311
|
+
animation: none;
|
|
11312
|
+
opacity: 1;
|
|
11313
|
+
box-shadow: 0 0 0 5px var(--glow-color, var(--brand, currentColor));
|
|
11314
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
11315
|
+
box-shadow: 0 0 0 5px color-mix( in srgb, var(--glow-color, var(--brand, currentColor)) var(--glow-strength, 40%), transparent );
|
|
11316
|
+
}
|
|
11317
|
+
}
|
|
11318
|
+
}
|
|
11256
11319
|
@keyframes apollo-fade-in {
|
|
11257
11320
|
from {
|
|
11258
11321
|
opacity: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./ConversationalAgentChat.css";
|
|
2
2
|
import { ConversationalAgentChatProps } from "./types";
|
|
3
|
-
export declare const ConversationalAgentChat: ({ sdk, agentId, folderId, existingConversationId, externalUserId, inputSchema: inputSchemaProp, locale, theme: themeProp, mode, renderer, readOnly, overrideLabels, firstRunExperience, disabledFeatures, citationPreview, usePdfJsViewer, jobStartOverrides, isDebugMode, evaluationSets, addToEvalButtonLabel, onEvaluationSetClicked, onUserMessageSent, surfaceName, surfaceVersion, }: ConversationalAgentChatProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ConversationalAgentChat: ({ sdk, agentId, folderId, existingConversationId, externalUserId, inputSchema: inputSchemaProp, locale, theme: themeProp, mode, renderer, compactMode, readOnly, overrideLabels, firstRunExperience, disabledFeatures, citationPreview, usePdfJsViewer, jobStartOverrides, isDebugMode, evaluationSets, addToEvalButtonLabel, onEvaluationSetClicked, onUserMessageSent, surfaceName, surfaceVersion, }: ConversationalAgentChatProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=ConversationalAgentChat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConversationalAgentChat.d.ts","sourceRoot":"","sources":["../src/ConversationalAgentChat.tsx"],"names":[],"mappings":"AAiFA,OAAO,+BAA+B,CAAC;AACvC,OAAO,EAEL,4BAA4B,EAK7B,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"ConversationalAgentChat.d.ts","sourceRoot":"","sources":["../src/ConversationalAgentChat.tsx"],"names":[],"mappings":"AAiFA,OAAO,+BAA+B,CAAC;AACvC,OAAO,EAEL,4BAA4B,EAK7B,MAAM,SAAS,CAAC;AA8FjB,eAAO,MAAM,uBAAuB,GAAI,yYA0BrC,4BAA4B,4CAyrE9B,CAAC"}
|