@smartspace/chat-ui 1.13.1-pr.393.e0707fc → 1.13.1-pr.395.3d2664f
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 +8 -1
- 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
|
@@ -20104,7 +20104,14 @@ function pushContent(items, value) {
|
|
|
20104
20104
|
return;
|
|
20105
20105
|
}
|
|
20106
20106
|
if (Array.isArray(value)) {
|
|
20107
|
-
|
|
20107
|
+
const looksLikeContent = value.every(
|
|
20108
|
+
(it) => it != null && typeof it === "object" && ("text" in it || "image" in it)
|
|
20109
|
+
);
|
|
20110
|
+
if (looksLikeContent) {
|
|
20111
|
+
items.push(...value);
|
|
20112
|
+
} else {
|
|
20113
|
+
items.push({ text: "```json\n" + JSON.stringify(value, null, 2) + "\n```" });
|
|
20114
|
+
}
|
|
20108
20115
|
return;
|
|
20109
20116
|
}
|
|
20110
20117
|
if (typeof value === "object") {
|