@smartspace/chat-ui 1.13.1-pr.394.e869835 → 1.13.1-pr.396.8a17333
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/index.d.ts +10 -0
- package/dist/index.js +26 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -515,6 +515,11 @@ declare function mapThreadsResponseDtoToModel(dto: ThreadsResponseDto): ThreadsR
|
|
|
515
515
|
declare function mapSignalRThreadSummaryToModel(summary: SignalR.MessageThreadSummary): MessageThread;
|
|
516
516
|
|
|
517
517
|
declare const workspaceResponseSchema: z.ZodObject<{
|
|
518
|
+
connectors: z.ZodArray<z.ZodObject<{
|
|
519
|
+
id: z.ZodString;
|
|
520
|
+
kind: z.ZodString;
|
|
521
|
+
name: z.ZodString;
|
|
522
|
+
}, z.core.$strip>>;
|
|
518
523
|
createdAt: z.ZodISODateTime;
|
|
519
524
|
createdByUserId: z.ZodString;
|
|
520
525
|
dataSpaces: z.ZodArray<z.ZodObject<{
|
|
@@ -751,6 +756,11 @@ declare const workspaceUsersResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
751
756
|
}, z.core.$strip>>;
|
|
752
757
|
declare const workspacesListResponseSchema: z.ZodObject<{
|
|
753
758
|
data: z.ZodArray<z.ZodObject<{
|
|
759
|
+
connectors: z.ZodArray<z.ZodObject<{
|
|
760
|
+
id: z.ZodString;
|
|
761
|
+
kind: z.ZodString;
|
|
762
|
+
name: z.ZodString;
|
|
763
|
+
}, z.core.$strip>>;
|
|
754
764
|
createdAt: z.ZodISODateTime;
|
|
755
765
|
createdByUserId: z.ZodString;
|
|
756
766
|
dataSpaces: z.ZodArray<z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -20186,25 +20186,28 @@ var MessageItem = ({
|
|
|
20186
20186
|
let groupOpen = false;
|
|
20187
20187
|
let keyCounter = 0;
|
|
20188
20188
|
let lastStatusNode = null;
|
|
20189
|
+
const groupHasAnything = () => groupContent.length > 0 || groupFiles.length > 0 || groupSources.length > 0;
|
|
20189
20190
|
const flush = (nextType) => {
|
|
20190
|
-
|
|
20191
|
-
|
|
20192
|
-
|
|
20193
|
-
|
|
20194
|
-
|
|
20195
|
-
|
|
20196
|
-
|
|
20197
|
-
|
|
20198
|
-
|
|
20199
|
-
|
|
20200
|
-
|
|
20201
|
-
|
|
20202
|
-
|
|
20203
|
-
|
|
20204
|
-
|
|
20205
|
-
|
|
20206
|
-
|
|
20207
|
-
|
|
20191
|
+
if (groupHasAnything()) {
|
|
20192
|
+
bubbles.push(
|
|
20193
|
+
/* @__PURE__ */ jsx(
|
|
20194
|
+
MessageBubble,
|
|
20195
|
+
{
|
|
20196
|
+
createdBy: lastCreatedBy,
|
|
20197
|
+
createdByUserId: lastCreatedByUserId,
|
|
20198
|
+
createdAt: lastCreatedAt,
|
|
20199
|
+
type: groupType,
|
|
20200
|
+
content: groupContent,
|
|
20201
|
+
files: groupFiles,
|
|
20202
|
+
sources: groupSources,
|
|
20203
|
+
chatbotName,
|
|
20204
|
+
userOutput: null,
|
|
20205
|
+
userInput: null
|
|
20206
|
+
},
|
|
20207
|
+
`bubble-${message.id ?? "msg"}-${keyCounter++}`
|
|
20208
|
+
)
|
|
20209
|
+
);
|
|
20210
|
+
}
|
|
20208
20211
|
groupContent = [];
|
|
20209
20212
|
groupFiles = [];
|
|
20210
20213
|
groupSources = [];
|
|
@@ -20236,6 +20239,9 @@ var MessageItem = ({
|
|
|
20236
20239
|
case "prompt":
|
|
20237
20240
|
case "response":
|
|
20238
20241
|
case "content": {
|
|
20242
|
+
if (v.value === "") {
|
|
20243
|
+
continue;
|
|
20244
|
+
}
|
|
20239
20245
|
lastStatusNode = null;
|
|
20240
20246
|
if (groupContent.length > 0) flush(v.type);
|
|
20241
20247
|
if (v.value == null) {
|
|
@@ -20290,7 +20296,7 @@ var MessageItem = ({
|
|
|
20290
20296
|
}
|
|
20291
20297
|
case "sources": {
|
|
20292
20298
|
groupSources = coerceSources(v.value);
|
|
20293
|
-
groupOpen = true;
|
|
20299
|
+
if (groupSources.length > 0) groupOpen = true;
|
|
20294
20300
|
break;
|
|
20295
20301
|
}
|
|
20296
20302
|
default: {
|
|
@@ -20304,7 +20310,7 @@ var MessageItem = ({
|
|
|
20304
20310
|
lastCreatedBy = v.createdBy;
|
|
20305
20311
|
lastCreatedByUserId = v.createdByUserId;
|
|
20306
20312
|
}
|
|
20307
|
-
if (groupOpen) {
|
|
20313
|
+
if (groupOpen && groupHasAnything()) {
|
|
20308
20314
|
bubbles.push(
|
|
20309
20315
|
/* @__PURE__ */ jsx(
|
|
20310
20316
|
MessageBubble,
|