@retrivora-ai/rag-engine 2.6.4 → 2.6.6
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/{ILLMProvider-CzXcTA6d.d.mts → ILLMProvider-BQXlVWNn.d.mts} +19 -0
- package/dist/{ILLMProvider-CzXcTA6d.d.ts → ILLMProvider-BQXlVWNn.d.ts} +19 -0
- package/dist/{PineconeProvider-3PXQFHSO.mjs → PineconeProvider-S7AV7FKC.mjs} +3 -3
- package/dist/{chunk-OMQM7AN6.mjs → chunk-2GDW6W5C.mjs} +1 -1
- package/dist/{chunk-6ZZOZFK6.mjs → chunk-557UWRCG.mjs} +1 -1
- package/dist/{chunk-T7XSD76K.mjs → chunk-F656WHWF.mjs} +546 -81
- package/dist/{chunk-BPIATXJ4.mjs → chunk-JNPVVOIF.mjs} +1 -1
- package/dist/{chunk-FMQN2K2D.mjs → chunk-Q4MVJ7NW.mjs} +1 -1
- package/dist/handlers/index.d.mts +2 -2
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.js +532 -80
- package/dist/handlers/index.mjs +2 -2
- package/dist/{index-BZ_rR6V8.d.ts → index-BVNd1Ii7.d.ts} +1 -1
- package/dist/{index-BST9Gzsv.d.mts → index-BmbFZGyv.d.mts} +7 -1
- package/dist/{index-BBbt5A2y.d.mts → index-C2ONv-uf.d.mts} +1 -1
- package/dist/{index-qLvtMUr-.d.ts → index-CBlH1Kvs.d.ts} +7 -1
- package/dist/index.css +209 -0
- package/dist/index.d.mts +7 -6
- package/dist/index.d.ts +7 -6
- package/dist/index.js +1291 -732
- package/dist/index.min.css +1 -1
- package/dist/index.mjs +1240 -681
- package/dist/server.d.mts +184 -35
- package/dist/server.d.ts +184 -35
- package/dist/server.js +560 -82
- package/dist/server.mjs +33 -7
- package/package.json +1 -1
package/dist/handlers/index.mjs
CHANGED
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
sseObservabilityFrame,
|
|
17
17
|
sseTextFrame,
|
|
18
18
|
sseUIFrame
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-F656WHWF.mjs";
|
|
20
20
|
import "../chunk-XYBKDJDW.mjs";
|
|
21
21
|
import "../chunk-SG6XYLQE.mjs";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-Q4MVJ7NW.mjs";
|
|
23
23
|
import "../chunk-BEPLYQBS.mjs";
|
|
24
24
|
import "../chunk-UT6SZZEC.mjs";
|
|
25
25
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextRequest } from 'next/server';
|
|
2
|
-
import { b as RagConfig, I as ILLMProvider, C as ChatMessage, d as ChatResponse, c as IngestDocument } from './ILLMProvider-
|
|
2
|
+
import { b as RagConfig, I as ILLMProvider, C as ChatMessage, d as ChatResponse, c as IngestDocument } from './ILLMProvider-BQXlVWNn.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Shared options accepted by every handler factory.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
|
|
2
|
-
import { W as WidgetPosition, P as Product, U as UIConfig, a as ProjectChatSettings, R as RagMessage, V as VectorMatch, b as RagConfig, I as ILLMProvider, c as IngestDocument, C as ChatMessage, d as ChatResponse, e as RetrievalResult, f as UniversalRagConfig, g as UITransformationResponse, L as LLMConfig, E as EmbeddingConfig, h as VectorDBConfig } from './ILLMProvider-
|
|
2
|
+
import { W as WidgetPosition, P as Product, U as UIConfig, a as ProjectChatSettings, R as RagMessage, V as VectorMatch, b as RagConfig, I as ILLMProvider, c as IngestDocument, C as ChatMessage, d as ChatResponse, e as RetrievalResult, f as UniversalRagConfig, g as UITransformationResponse, L as LLMConfig, E as EmbeddingConfig, h as VectorDBConfig } from './ILLMProvider-BQXlVWNn.mjs';
|
|
3
3
|
|
|
4
4
|
interface ArchitectureCardProps {
|
|
5
5
|
icon: ReactNode;
|
|
@@ -115,6 +115,10 @@ interface MessageBubbleProps {
|
|
|
115
115
|
isSpeaking?: boolean;
|
|
116
116
|
/** Called when the user clicks the speaker icon to play or stop voice readout */
|
|
117
117
|
onToggleSpeak?: (text: string, messageId: string) => void;
|
|
118
|
+
/** Called when the user clicks Regenerate on the latest assistant message */
|
|
119
|
+
onRegenerate?: () => void;
|
|
120
|
+
/** Called when the user edits and resubmits a user message */
|
|
121
|
+
onEditMessage?: (messageId: string, newContent: string) => void;
|
|
118
122
|
}
|
|
119
123
|
interface ProductCardProps {
|
|
120
124
|
product: Product;
|
|
@@ -396,6 +400,8 @@ declare class Pipeline {
|
|
|
396
400
|
private initialised;
|
|
397
401
|
/** Namespace-specific static cold context cache for CAG */
|
|
398
402
|
private coldContexts;
|
|
403
|
+
private semanticCache;
|
|
404
|
+
private docChunkHashes;
|
|
399
405
|
constructor(config: RagConfig);
|
|
400
406
|
/**
|
|
401
407
|
* Expose the underlying LLM provider (set after initialize()).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextRequest } from 'next/server';
|
|
2
|
-
import { b as RagConfig, I as ILLMProvider, C as ChatMessage, d as ChatResponse, c as IngestDocument } from './ILLMProvider-
|
|
2
|
+
import { b as RagConfig, I as ILLMProvider, C as ChatMessage, d as ChatResponse, c as IngestDocument } from './ILLMProvider-BQXlVWNn.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Shared options accepted by every handler factory.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
|
|
2
|
-
import { W as WidgetPosition, P as Product, U as UIConfig, a as ProjectChatSettings, R as RagMessage, V as VectorMatch, b as RagConfig, I as ILLMProvider, c as IngestDocument, C as ChatMessage, d as ChatResponse, e as RetrievalResult, f as UniversalRagConfig, g as UITransformationResponse, L as LLMConfig, E as EmbeddingConfig, h as VectorDBConfig } from './ILLMProvider-
|
|
2
|
+
import { W as WidgetPosition, P as Product, U as UIConfig, a as ProjectChatSettings, R as RagMessage, V as VectorMatch, b as RagConfig, I as ILLMProvider, c as IngestDocument, C as ChatMessage, d as ChatResponse, e as RetrievalResult, f as UniversalRagConfig, g as UITransformationResponse, L as LLMConfig, E as EmbeddingConfig, h as VectorDBConfig } from './ILLMProvider-BQXlVWNn.js';
|
|
3
3
|
|
|
4
4
|
interface ArchitectureCardProps {
|
|
5
5
|
icon: ReactNode;
|
|
@@ -115,6 +115,10 @@ interface MessageBubbleProps {
|
|
|
115
115
|
isSpeaking?: boolean;
|
|
116
116
|
/** Called when the user clicks the speaker icon to play or stop voice readout */
|
|
117
117
|
onToggleSpeak?: (text: string, messageId: string) => void;
|
|
118
|
+
/** Called when the user clicks Regenerate on the latest assistant message */
|
|
119
|
+
onRegenerate?: () => void;
|
|
120
|
+
/** Called when the user edits and resubmits a user message */
|
|
121
|
+
onEditMessage?: (messageId: string, newContent: string) => void;
|
|
118
122
|
}
|
|
119
123
|
interface ProductCardProps {
|
|
120
124
|
product: Product;
|
|
@@ -396,6 +400,8 @@ declare class Pipeline {
|
|
|
396
400
|
private initialised;
|
|
397
401
|
/** Namespace-specific static cold context cache for CAG */
|
|
398
402
|
private coldContexts;
|
|
403
|
+
private semanticCache;
|
|
404
|
+
private docChunkHashes;
|
|
399
405
|
constructor(config: RagConfig);
|
|
400
406
|
/**
|
|
401
407
|
* Expose the underlying LLM provider (set after initialize()).
|
package/dist/index.css
CHANGED
|
@@ -393,6 +393,9 @@
|
|
|
393
393
|
.bottom-20 {
|
|
394
394
|
bottom: calc(var(--spacing) * 20);
|
|
395
395
|
}
|
|
396
|
+
.bottom-full {
|
|
397
|
+
bottom: 100%;
|
|
398
|
+
}
|
|
396
399
|
.-left-4 {
|
|
397
400
|
left: calc(var(--spacing) * -4);
|
|
398
401
|
}
|
|
@@ -405,6 +408,9 @@
|
|
|
405
408
|
.left-2 {
|
|
406
409
|
left: calc(var(--spacing) * 2);
|
|
407
410
|
}
|
|
411
|
+
.left-2\.5 {
|
|
412
|
+
left: calc(var(--spacing) * 2.5);
|
|
413
|
+
}
|
|
408
414
|
.left-5 {
|
|
409
415
|
left: calc(var(--spacing) * 5);
|
|
410
416
|
}
|
|
@@ -420,6 +426,9 @@
|
|
|
420
426
|
.z-20 {
|
|
421
427
|
z-index: 20;
|
|
422
428
|
}
|
|
429
|
+
.z-40 {
|
|
430
|
+
z-index: 40;
|
|
431
|
+
}
|
|
423
432
|
.z-50 {
|
|
424
433
|
z-index: 50;
|
|
425
434
|
}
|
|
@@ -450,6 +459,9 @@
|
|
|
450
459
|
max-width: 96rem;
|
|
451
460
|
}
|
|
452
461
|
}
|
|
462
|
+
.mx-0\.5 {
|
|
463
|
+
margin-inline: calc(var(--spacing) * 0.5);
|
|
464
|
+
}
|
|
453
465
|
.mx-1 {
|
|
454
466
|
margin-inline: var(--spacing);
|
|
455
467
|
}
|
|
@@ -558,6 +570,12 @@
|
|
|
558
570
|
-webkit-box-orient: vertical;
|
|
559
571
|
-webkit-line-clamp: 2;
|
|
560
572
|
}
|
|
573
|
+
.line-clamp-3 {
|
|
574
|
+
overflow: hidden;
|
|
575
|
+
display: -webkit-box;
|
|
576
|
+
-webkit-box-orient: vertical;
|
|
577
|
+
-webkit-line-clamp: 3;
|
|
578
|
+
}
|
|
561
579
|
.\!table {
|
|
562
580
|
display: table !important;
|
|
563
581
|
}
|
|
@@ -831,9 +849,18 @@
|
|
|
831
849
|
.min-w-0 {
|
|
832
850
|
min-width: 0px;
|
|
833
851
|
}
|
|
852
|
+
.min-w-\[1\.25rem\] {
|
|
853
|
+
min-width: 1.25rem;
|
|
854
|
+
}
|
|
834
855
|
.min-w-\[11rem\] {
|
|
835
856
|
min-width: 11rem;
|
|
836
857
|
}
|
|
858
|
+
.min-w-\[140px\] {
|
|
859
|
+
min-width: 140px;
|
|
860
|
+
}
|
|
861
|
+
.min-w-\[220px\] {
|
|
862
|
+
min-width: 220px;
|
|
863
|
+
}
|
|
837
864
|
.min-w-\[400px\] {
|
|
838
865
|
min-width: 400px;
|
|
839
866
|
}
|
|
@@ -990,6 +1017,9 @@
|
|
|
990
1017
|
.justify-center {
|
|
991
1018
|
justify-content: center;
|
|
992
1019
|
}
|
|
1020
|
+
.justify-end {
|
|
1021
|
+
justify-content: flex-end;
|
|
1022
|
+
}
|
|
993
1023
|
.justify-start {
|
|
994
1024
|
justify-content: flex-start;
|
|
995
1025
|
}
|
|
@@ -1286,6 +1316,12 @@
|
|
|
1286
1316
|
border-color: color-mix(in oklab, var(--color-white) 8%, transparent);
|
|
1287
1317
|
}
|
|
1288
1318
|
}
|
|
1319
|
+
.border-white\/25 {
|
|
1320
|
+
border-color: color-mix(in srgb, #fff 25%, transparent);
|
|
1321
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1322
|
+
border-color: color-mix(in oklab, var(--color-white) 25%, transparent);
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1289
1325
|
.border-t-transparent {
|
|
1290
1326
|
border-top-color: transparent;
|
|
1291
1327
|
}
|
|
@@ -1301,6 +1337,12 @@
|
|
|
1301
1337
|
.bg-amber-50 {
|
|
1302
1338
|
background-color: var(--color-amber-50);
|
|
1303
1339
|
}
|
|
1340
|
+
.bg-amber-50\/70 {
|
|
1341
|
+
background-color: color-mix(in srgb, oklch(98.7% 0.022 95.277) 70%, transparent);
|
|
1342
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1343
|
+
background-color: color-mix(in oklab, var(--color-amber-50) 70%, transparent);
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1304
1346
|
.bg-amber-100 {
|
|
1305
1347
|
background-color: var(--color-amber-100);
|
|
1306
1348
|
}
|
|
@@ -1463,6 +1505,12 @@
|
|
|
1463
1505
|
background-color: color-mix(in oklab, var(--color-slate-50) 50%, transparent);
|
|
1464
1506
|
}
|
|
1465
1507
|
}
|
|
1508
|
+
.bg-slate-50\/80 {
|
|
1509
|
+
background-color: color-mix(in srgb, oklch(98.4% 0.003 247.858) 80%, transparent);
|
|
1510
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1511
|
+
background-color: color-mix(in oklab, var(--color-slate-50) 80%, transparent);
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1466
1514
|
.bg-slate-100 {
|
|
1467
1515
|
background-color: var(--color-slate-100);
|
|
1468
1516
|
}
|
|
@@ -1520,6 +1568,12 @@
|
|
|
1520
1568
|
.bg-white {
|
|
1521
1569
|
background-color: var(--color-white);
|
|
1522
1570
|
}
|
|
1571
|
+
.bg-white\/15 {
|
|
1572
|
+
background-color: color-mix(in srgb, #fff 15%, transparent);
|
|
1573
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1574
|
+
background-color: color-mix(in oklab, var(--color-white) 15%, transparent);
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1523
1577
|
.bg-white\/60 {
|
|
1524
1578
|
background-color: color-mix(in srgb, #fff 60%, transparent);
|
|
1525
1579
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1616,6 +1670,9 @@
|
|
|
1616
1670
|
.px-3 {
|
|
1617
1671
|
padding-inline: calc(var(--spacing) * 3);
|
|
1618
1672
|
}
|
|
1673
|
+
.px-3\.5 {
|
|
1674
|
+
padding-inline: calc(var(--spacing) * 3.5);
|
|
1675
|
+
}
|
|
1619
1676
|
.px-4 {
|
|
1620
1677
|
padding-inline: calc(var(--spacing) * 4);
|
|
1621
1678
|
}
|
|
@@ -1646,6 +1703,9 @@
|
|
|
1646
1703
|
.py-4 {
|
|
1647
1704
|
padding-block: calc(var(--spacing) * 4);
|
|
1648
1705
|
}
|
|
1706
|
+
.py-6 {
|
|
1707
|
+
padding-block: calc(var(--spacing) * 6);
|
|
1708
|
+
}
|
|
1649
1709
|
.py-8 {
|
|
1650
1710
|
padding-block: calc(var(--spacing) * 8);
|
|
1651
1711
|
}
|
|
@@ -1658,6 +1718,9 @@
|
|
|
1658
1718
|
.pr-1 {
|
|
1659
1719
|
padding-right: var(--spacing);
|
|
1660
1720
|
}
|
|
1721
|
+
.pr-2\.5 {
|
|
1722
|
+
padding-right: calc(var(--spacing) * 2.5);
|
|
1723
|
+
}
|
|
1661
1724
|
.pr-6 {
|
|
1662
1725
|
padding-right: calc(var(--spacing) * 6);
|
|
1663
1726
|
}
|
|
@@ -1670,15 +1733,24 @@
|
|
|
1670
1733
|
.pb-6 {
|
|
1671
1734
|
padding-bottom: calc(var(--spacing) * 6);
|
|
1672
1735
|
}
|
|
1736
|
+
.pl-8 {
|
|
1737
|
+
padding-left: calc(var(--spacing) * 8);
|
|
1738
|
+
}
|
|
1673
1739
|
.text-center {
|
|
1674
1740
|
text-align: center;
|
|
1675
1741
|
}
|
|
1676
1742
|
.text-left {
|
|
1677
1743
|
text-align: left;
|
|
1678
1744
|
}
|
|
1745
|
+
.align-baseline {
|
|
1746
|
+
vertical-align: baseline;
|
|
1747
|
+
}
|
|
1679
1748
|
.align-middle {
|
|
1680
1749
|
vertical-align: middle;
|
|
1681
1750
|
}
|
|
1751
|
+
.align-super {
|
|
1752
|
+
vertical-align: super;
|
|
1753
|
+
}
|
|
1682
1754
|
.font-mono {
|
|
1683
1755
|
font-family: var(--font-mono);
|
|
1684
1756
|
}
|
|
@@ -1970,6 +2042,15 @@
|
|
|
1970
2042
|
--tw-numeric-spacing: tabular-nums;
|
|
1971
2043
|
font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
|
|
1972
2044
|
}
|
|
2045
|
+
.underline {
|
|
2046
|
+
text-decoration-line: underline;
|
|
2047
|
+
}
|
|
2048
|
+
.decoration-dotted {
|
|
2049
|
+
text-decoration-style: dotted;
|
|
2050
|
+
}
|
|
2051
|
+
.underline-offset-2 {
|
|
2052
|
+
text-underline-offset: 2px;
|
|
2053
|
+
}
|
|
1973
2054
|
.antialiased {
|
|
1974
2055
|
-webkit-font-smoothing: antialiased;
|
|
1975
2056
|
-moz-osx-font-smoothing: grayscale;
|
|
@@ -1977,6 +2058,12 @@
|
|
|
1977
2058
|
.placeholder-slate-400::placeholder {
|
|
1978
2059
|
color: var(--color-slate-400);
|
|
1979
2060
|
}
|
|
2061
|
+
.placeholder-white\/60::placeholder {
|
|
2062
|
+
color: color-mix(in srgb, #fff 60%, transparent);
|
|
2063
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2064
|
+
color: color-mix(in oklab, var(--color-white) 60%, transparent);
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
1980
2067
|
.opacity-0 {
|
|
1981
2068
|
opacity: 0%;
|
|
1982
2069
|
}
|
|
@@ -1992,6 +2079,9 @@
|
|
|
1992
2079
|
.opacity-60 {
|
|
1993
2080
|
opacity: 60%;
|
|
1994
2081
|
}
|
|
2082
|
+
.opacity-70 {
|
|
2083
|
+
opacity: 70%;
|
|
2084
|
+
}
|
|
1995
2085
|
.opacity-100 {
|
|
1996
2086
|
opacity: 100%;
|
|
1997
2087
|
}
|
|
@@ -2015,6 +2105,10 @@
|
|
|
2015
2105
|
--tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
2016
2106
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2017
2107
|
}
|
|
2108
|
+
.shadow-xs {
|
|
2109
|
+
--tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.05));
|
|
2110
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2111
|
+
}
|
|
2018
2112
|
.ring {
|
|
2019
2113
|
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2020
2114
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
@@ -2231,6 +2325,9 @@
|
|
|
2231
2325
|
.hover\:border-slate-800:hover {
|
|
2232
2326
|
border-color: var(--color-slate-800);
|
|
2233
2327
|
}
|
|
2328
|
+
.hover\:bg-amber-200:hover {
|
|
2329
|
+
background-color: var(--color-amber-200);
|
|
2330
|
+
}
|
|
2234
2331
|
.hover\:bg-emerald-50:hover {
|
|
2235
2332
|
background-color: var(--color-emerald-50);
|
|
2236
2333
|
}
|
|
@@ -2243,9 +2340,15 @@
|
|
|
2243
2340
|
.hover\:bg-rose-100:hover {
|
|
2244
2341
|
background-color: var(--color-rose-100);
|
|
2245
2342
|
}
|
|
2343
|
+
.hover\:bg-rose-200:hover {
|
|
2344
|
+
background-color: var(--color-rose-200);
|
|
2345
|
+
}
|
|
2246
2346
|
.hover\:bg-rose-600:hover {
|
|
2247
2347
|
background-color: var(--color-rose-600);
|
|
2248
2348
|
}
|
|
2349
|
+
.hover\:bg-slate-50:hover {
|
|
2350
|
+
background-color: var(--color-slate-50);
|
|
2351
|
+
}
|
|
2249
2352
|
.hover\:bg-slate-50\/60:hover {
|
|
2250
2353
|
background-color: color-mix(in srgb, oklch(98.4% 0.003 247.858) 60%, transparent);
|
|
2251
2354
|
}
|
|
@@ -2265,6 +2368,14 @@
|
|
|
2265
2368
|
.hover\:bg-slate-100:hover {
|
|
2266
2369
|
background-color: var(--color-slate-100);
|
|
2267
2370
|
}
|
|
2371
|
+
.hover\:bg-slate-100\/80:hover {
|
|
2372
|
+
background-color: color-mix(in srgb, oklch(96.8% 0.007 247.896) 80%, transparent);
|
|
2373
|
+
}
|
|
2374
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2375
|
+
.hover\:bg-slate-100\/80:hover {
|
|
2376
|
+
background-color: color-mix(in oklab, var(--color-slate-100) 80%, transparent);
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2268
2379
|
.hover\:bg-slate-200:hover {
|
|
2269
2380
|
background-color: var(--color-slate-200);
|
|
2270
2381
|
}
|
|
@@ -2290,6 +2401,22 @@
|
|
|
2290
2401
|
background-color: color-mix(in oklab, var(--color-white) 5%, transparent);
|
|
2291
2402
|
}
|
|
2292
2403
|
}
|
|
2404
|
+
.hover\:bg-white\/25:hover {
|
|
2405
|
+
background-color: color-mix(in srgb, #fff 25%, transparent);
|
|
2406
|
+
}
|
|
2407
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2408
|
+
.hover\:bg-white\/25:hover {
|
|
2409
|
+
background-color: color-mix(in oklab, var(--color-white) 25%, transparent);
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
.hover\:bg-white\/90:hover {
|
|
2413
|
+
background-color: color-mix(in srgb, #fff 90%, transparent);
|
|
2414
|
+
}
|
|
2415
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2416
|
+
.hover\:bg-white\/90:hover {
|
|
2417
|
+
background-color: color-mix(in oklab, var(--color-white) 90%, transparent);
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2293
2420
|
.hover\:text-blue-500:hover {
|
|
2294
2421
|
color: var(--color-blue-500);
|
|
2295
2422
|
}
|
|
@@ -2311,6 +2438,9 @@
|
|
|
2311
2438
|
.hover\:text-rose-500:hover {
|
|
2312
2439
|
color: var(--color-rose-500);
|
|
2313
2440
|
}
|
|
2441
|
+
.hover\:text-slate-200:hover {
|
|
2442
|
+
color: var(--color-slate-200);
|
|
2443
|
+
}
|
|
2314
2444
|
.hover\:text-slate-600:hover {
|
|
2315
2445
|
color: var(--color-slate-600);
|
|
2316
2446
|
}
|
|
@@ -2328,6 +2458,12 @@
|
|
|
2328
2458
|
color: color-mix(in oklab, var(--color-white) 80%, transparent);
|
|
2329
2459
|
}
|
|
2330
2460
|
}
|
|
2461
|
+
.hover\:underline:hover {
|
|
2462
|
+
text-decoration-line: underline;
|
|
2463
|
+
}
|
|
2464
|
+
.hover\:opacity-80:hover {
|
|
2465
|
+
opacity: 80%;
|
|
2466
|
+
}
|
|
2331
2467
|
.hover\:opacity-90:hover {
|
|
2332
2468
|
opacity: 90%;
|
|
2333
2469
|
}
|
|
@@ -2356,6 +2492,12 @@
|
|
|
2356
2492
|
.focus\:ring-indigo-500:focus {
|
|
2357
2493
|
--tw-ring-color: var(--color-indigo-500);
|
|
2358
2494
|
}
|
|
2495
|
+
.focus\:ring-white\/60:focus {
|
|
2496
|
+
--tw-ring-color: color-mix(in srgb, #fff 60%, transparent);
|
|
2497
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2498
|
+
--tw-ring-color: color-mix(in oklab, var(--color-white) 60%, transparent);
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2359
2501
|
.focus\:outline-none:focus {
|
|
2360
2502
|
--tw-outline-style: none;
|
|
2361
2503
|
outline-style: none;
|
|
@@ -2456,6 +2598,14 @@
|
|
|
2456
2598
|
border-color: color-mix(in oklab, var(--color-amber-500) 20%, transparent);
|
|
2457
2599
|
}
|
|
2458
2600
|
}
|
|
2601
|
+
.dark\:border-amber-500\/30 {
|
|
2602
|
+
border-color: color-mix(in srgb, oklch(76.9% 0.188 70.08) 30%, transparent);
|
|
2603
|
+
}
|
|
2604
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2605
|
+
.dark\:border-amber-500\/30 {
|
|
2606
|
+
border-color: color-mix(in oklab, var(--color-amber-500) 30%, transparent);
|
|
2607
|
+
}
|
|
2608
|
+
}
|
|
2459
2609
|
.dark\:border-emerald-400\/20 {
|
|
2460
2610
|
border-color: color-mix(in srgb, oklch(76.5% 0.177 163.223) 20%, transparent);
|
|
2461
2611
|
}
|
|
@@ -2590,6 +2740,14 @@
|
|
|
2590
2740
|
border-color: color-mix(in oklab, var(--color-white) 10%, transparent);
|
|
2591
2741
|
}
|
|
2592
2742
|
}
|
|
2743
|
+
.dark\:border-white\/15 {
|
|
2744
|
+
border-color: color-mix(in srgb, #fff 15%, transparent);
|
|
2745
|
+
}
|
|
2746
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2747
|
+
.dark\:border-white\/15 {
|
|
2748
|
+
border-color: color-mix(in oklab, var(--color-white) 15%, transparent);
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2593
2751
|
.dark\:border-white\/20 {
|
|
2594
2752
|
border-color: color-mix(in srgb, #fff 20%, transparent);
|
|
2595
2753
|
}
|
|
@@ -2653,6 +2811,22 @@
|
|
|
2653
2811
|
background-color: color-mix(in oklab, var(--color-amber-900) 20%, transparent);
|
|
2654
2812
|
}
|
|
2655
2813
|
}
|
|
2814
|
+
.dark\:bg-amber-900\/40 {
|
|
2815
|
+
background-color: color-mix(in srgb, oklch(41.4% 0.112 45.904) 40%, transparent);
|
|
2816
|
+
}
|
|
2817
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2818
|
+
.dark\:bg-amber-900\/40 {
|
|
2819
|
+
background-color: color-mix(in oklab, var(--color-amber-900) 40%, transparent);
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
.dark\:bg-amber-950\/20 {
|
|
2823
|
+
background-color: color-mix(in srgb, oklch(27.9% 0.077 45.635) 20%, transparent);
|
|
2824
|
+
}
|
|
2825
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
2826
|
+
.dark\:bg-amber-950\/20 {
|
|
2827
|
+
background-color: color-mix(in oklab, var(--color-amber-950) 20%, transparent);
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2656
2830
|
.dark\:bg-amber-950\/40 {
|
|
2657
2831
|
background-color: color-mix(in srgb, oklch(27.9% 0.077 45.635) 40%, transparent);
|
|
2658
2832
|
}
|
|
@@ -2939,6 +3113,14 @@
|
|
|
2939
3113
|
background-color: color-mix(in oklab, var(--color-rose-500) 10%, transparent);
|
|
2940
3114
|
}
|
|
2941
3115
|
}
|
|
3116
|
+
.dark\:bg-rose-500\/20 {
|
|
3117
|
+
background-color: color-mix(in srgb, oklch(64.5% 0.246 16.439) 20%, transparent);
|
|
3118
|
+
}
|
|
3119
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3120
|
+
.dark\:bg-rose-500\/20 {
|
|
3121
|
+
background-color: color-mix(in oklab, var(--color-rose-500) 20%, transparent);
|
|
3122
|
+
}
|
|
3123
|
+
}
|
|
2942
3124
|
.dark\:bg-rose-900\/40 {
|
|
2943
3125
|
background-color: color-mix(in srgb, oklch(41% 0.159 10.272) 40%, transparent);
|
|
2944
3126
|
}
|
|
@@ -3177,6 +3359,9 @@
|
|
|
3177
3359
|
.dark\:text-slate-100 {
|
|
3178
3360
|
color: var(--color-slate-100);
|
|
3179
3361
|
}
|
|
3362
|
+
.dark\:text-slate-200 {
|
|
3363
|
+
color: var(--color-slate-200);
|
|
3364
|
+
}
|
|
3180
3365
|
.dark\:text-slate-300 {
|
|
3181
3366
|
color: var(--color-slate-300);
|
|
3182
3367
|
}
|
|
@@ -3321,6 +3506,14 @@
|
|
|
3321
3506
|
border-color: color-mix(in oklab, var(--color-white) 20%, transparent);
|
|
3322
3507
|
}
|
|
3323
3508
|
}
|
|
3509
|
+
.dark\:hover\:bg-amber-900\/60:hover {
|
|
3510
|
+
background-color: color-mix(in srgb, oklch(41.4% 0.112 45.904) 60%, transparent);
|
|
3511
|
+
}
|
|
3512
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3513
|
+
.dark\:hover\:bg-amber-900\/60:hover {
|
|
3514
|
+
background-color: color-mix(in oklab, var(--color-amber-900) 60%, transparent);
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3324
3517
|
.dark\:hover\:bg-emerald-500\/10:hover {
|
|
3325
3518
|
background-color: color-mix(in srgb, oklch(69.6% 0.17 162.48) 10%, transparent);
|
|
3326
3519
|
}
|
|
@@ -3345,6 +3538,22 @@
|
|
|
3345
3538
|
background-color: color-mix(in oklab, var(--color-rose-500) 10%, transparent);
|
|
3346
3539
|
}
|
|
3347
3540
|
}
|
|
3541
|
+
.dark\:hover\:bg-rose-500\/20:hover {
|
|
3542
|
+
background-color: color-mix(in srgb, oklch(64.5% 0.246 16.439) 20%, transparent);
|
|
3543
|
+
}
|
|
3544
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3545
|
+
.dark\:hover\:bg-rose-500\/20:hover {
|
|
3546
|
+
background-color: color-mix(in oklab, var(--color-rose-500) 20%, transparent);
|
|
3547
|
+
}
|
|
3548
|
+
}
|
|
3549
|
+
.dark\:hover\:bg-rose-500\/30:hover {
|
|
3550
|
+
background-color: color-mix(in srgb, oklch(64.5% 0.246 16.439) 30%, transparent);
|
|
3551
|
+
}
|
|
3552
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
3553
|
+
.dark\:hover\:bg-rose-500\/30:hover {
|
|
3554
|
+
background-color: color-mix(in oklab, var(--color-rose-500) 30%, transparent);
|
|
3555
|
+
}
|
|
3556
|
+
}
|
|
3348
3557
|
.dark\:hover\:bg-rose-900\/40:hover {
|
|
3349
3558
|
background-color: color-mix(in srgb, oklch(41% 0.159 10.272) 40%, transparent);
|
|
3350
3559
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
|
-
import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps, e as ChatViewportSize, R as RemoteConfig } from './index-
|
|
3
|
-
export { A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, i as Chunk, j as ChunkOptions, k as CircuitBreaker, l as CircuitBreakerOptions, m as ConfigFetcher, n as ConfigurationException, o as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, p as IRendererStrategy, q as IntentCategory, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, v as ProviderCredentials, w as ProviderNotFoundException, x as RateLimitException, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, G as RenderDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, U as isTransientError } from './index-
|
|
4
|
-
import { O as ObservabilityTrace, P as Product, g as UITransformationResponse, i as UseRagChatOptions, j as UseRagChatReturn, a as ProjectChatSettings } from './ILLMProvider-
|
|
5
|
-
export { A as AuthMode, C as ChatMessage, k as ChatOptions, d as ChatResponse, l as EmbedOptions, E as EmbeddingConfig, m as EmbeddingProvider, I as ILLMProvider, c as IngestDocument, L as LLMConfig, n as LLMProvider, o as LatencyBreakdown, p as ProjectAiSettings, q as ProjectAuthSettings, r as ProjectBrandingSettings, s as ProjectTelemetrySettings, t as ProjectWidgetSettings, u as RAGConfig, b as RagConfig, R as RagMessage, v as RetrievalConfig, w as RetrievedChunk, T as ThemeMode, x as TokenUsage, U as UIConfig, f as UniversalRagConfig, y as UpsertDocument, h as VectorDBConfig, z as VectorDBProvider, V as VectorMatch, W as WidgetPosition, B as WorkflowConfig, D as createDefaultProjectSettings, F as normalizeProjectSettings, G as projectSettingsToUiConfig } from './ILLMProvider-
|
|
2
|
+
import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps, e as ChatViewportSize, R as RemoteConfig } from './index-BmbFZGyv.mjs';
|
|
3
|
+
export { A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, i as Chunk, j as ChunkOptions, k as CircuitBreaker, l as CircuitBreakerOptions, m as ConfigFetcher, n as ConfigurationException, o as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, p as IRendererStrategy, q as IntentCategory, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, v as ProviderCredentials, w as ProviderNotFoundException, x as RateLimitException, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, G as RenderDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, U as isTransientError } from './index-BmbFZGyv.mjs';
|
|
4
|
+
import { O as ObservabilityTrace, P as Product, g as UITransformationResponse, i as UseRagChatOptions, j as UseRagChatReturn, a as ProjectChatSettings } from './ILLMProvider-BQXlVWNn.mjs';
|
|
5
|
+
export { A as AuthMode, C as ChatMessage, k as ChatOptions, d as ChatResponse, l as EmbedOptions, E as EmbeddingConfig, m as EmbeddingProvider, I as ILLMProvider, c as IngestDocument, L as LLMConfig, n as LLMProvider, o as LatencyBreakdown, p as ProjectAiSettings, q as ProjectAuthSettings, r as ProjectBrandingSettings, s as ProjectTelemetrySettings, t as ProjectWidgetSettings, u as RAGConfig, b as RagConfig, R as RagMessage, v as RetrievalConfig, w as RetrievedChunk, T as ThemeMode, x as TokenUsage, U as UIConfig, f as UniversalRagConfig, y as UpsertDocument, h as VectorDBConfig, z as VectorDBProvider, V as VectorMatch, W as WidgetPosition, B as WorkflowConfig, D as createDefaultProjectSettings, F as normalizeProjectSettings, G as projectSettingsToUiConfig } from './ILLMProvider-BQXlVWNn.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* ChatWidget — Floating Action Button (FAB) that toggles the chat window.
|
|
@@ -54,7 +54,7 @@ declare function ChatWindow({ className, style, onClose, showClose, onResizeStar
|
|
|
54
54
|
|
|
55
55
|
declare function DocumentUpload({ namespace, uploadUrl, retrivoraApiBase, onUploadComplete, className }: DocumentUploadProps): React$1.JSX.Element;
|
|
56
56
|
|
|
57
|
-
declare function MessageBubble({ message, sources, isStreaming, primaryColor, accentColor, onAddToCart, viewportSize, showSources: showSourcesProp, onFeedback, isSpeaking, onToggleSpeak, }: MessageBubbleProps): React$1.JSX.Element;
|
|
57
|
+
declare function MessageBubble({ message, sources, isStreaming, primaryColor, accentColor, onAddToCart, viewportSize, showSources: showSourcesProp, onFeedback, isSpeaking, onToggleSpeak, onRegenerate, onEditMessage, }: MessageBubbleProps): React$1.JSX.Element;
|
|
58
58
|
|
|
59
59
|
declare function SourceCard({ source, index }: SourceCardProps): React$1.JSX.Element;
|
|
60
60
|
|
|
@@ -100,7 +100,7 @@ declare function ProductCard({ product, primaryColor, onAddToCart }: ProductCard
|
|
|
100
100
|
|
|
101
101
|
declare function ProductCarousel({ products, primaryColor, onAddToCart }: ProductCarouselProps): React$1.JSX.Element | null;
|
|
102
102
|
|
|
103
|
-
declare function
|
|
103
|
+
declare function UIDispatcherInner({ rawContent, primaryColor, accentColor, isStreaming, onAddToCart, viewportSize }: {
|
|
104
104
|
rawContent: string;
|
|
105
105
|
primaryColor?: string;
|
|
106
106
|
accentColor?: string;
|
|
@@ -108,6 +108,7 @@ declare function UIDispatcher({ rawContent, primaryColor, accentColor, isStreami
|
|
|
108
108
|
onAddToCart?: (product: Product) => void;
|
|
109
109
|
viewportSize?: ChatViewportSize;
|
|
110
110
|
}): React$1.JSX.Element | null;
|
|
111
|
+
declare function UIDispatcher(props: React$1.ComponentProps<typeof UIDispatcherInner>): React$1.JSX.Element;
|
|
111
112
|
|
|
112
113
|
interface VisualizationRendererProps {
|
|
113
114
|
data: UITransformationResponse;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
|
-
import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps, e as ChatViewportSize, R as RemoteConfig } from './index-
|
|
3
|
-
export { A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, i as Chunk, j as ChunkOptions, k as CircuitBreaker, l as CircuitBreakerOptions, m as ConfigFetcher, n as ConfigurationException, o as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, p as IRendererStrategy, q as IntentCategory, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, v as ProviderCredentials, w as ProviderNotFoundException, x as RateLimitException, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, G as RenderDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, U as isTransientError } from './index-
|
|
4
|
-
import { O as ObservabilityTrace, P as Product, g as UITransformationResponse, i as UseRagChatOptions, j as UseRagChatReturn, a as ProjectChatSettings } from './ILLMProvider-
|
|
5
|
-
export { A as AuthMode, C as ChatMessage, k as ChatOptions, d as ChatResponse, l as EmbedOptions, E as EmbeddingConfig, m as EmbeddingProvider, I as ILLMProvider, c as IngestDocument, L as LLMConfig, n as LLMProvider, o as LatencyBreakdown, p as ProjectAiSettings, q as ProjectAuthSettings, r as ProjectBrandingSettings, s as ProjectTelemetrySettings, t as ProjectWidgetSettings, u as RAGConfig, b as RagConfig, R as RagMessage, v as RetrievalConfig, w as RetrievedChunk, T as ThemeMode, x as TokenUsage, U as UIConfig, f as UniversalRagConfig, y as UpsertDocument, h as VectorDBConfig, z as VectorDBProvider, V as VectorMatch, W as WidgetPosition, B as WorkflowConfig, D as createDefaultProjectSettings, F as normalizeProjectSettings, G as projectSettingsToUiConfig } from './ILLMProvider-
|
|
2
|
+
import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps, e as ChatViewportSize, R as RemoteConfig } from './index-CBlH1Kvs.js';
|
|
3
|
+
export { A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, i as Chunk, j as ChunkOptions, k as CircuitBreaker, l as CircuitBreakerOptions, m as ConfigFetcher, n as ConfigurationException, o as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, p as IRendererStrategy, q as IntentCategory, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, v as ProviderCredentials, w as ProviderNotFoundException, x as RateLimitException, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, G as RenderDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, U as isTransientError } from './index-CBlH1Kvs.js';
|
|
4
|
+
import { O as ObservabilityTrace, P as Product, g as UITransformationResponse, i as UseRagChatOptions, j as UseRagChatReturn, a as ProjectChatSettings } from './ILLMProvider-BQXlVWNn.js';
|
|
5
|
+
export { A as AuthMode, C as ChatMessage, k as ChatOptions, d as ChatResponse, l as EmbedOptions, E as EmbeddingConfig, m as EmbeddingProvider, I as ILLMProvider, c as IngestDocument, L as LLMConfig, n as LLMProvider, o as LatencyBreakdown, p as ProjectAiSettings, q as ProjectAuthSettings, r as ProjectBrandingSettings, s as ProjectTelemetrySettings, t as ProjectWidgetSettings, u as RAGConfig, b as RagConfig, R as RagMessage, v as RetrievalConfig, w as RetrievedChunk, T as ThemeMode, x as TokenUsage, U as UIConfig, f as UniversalRagConfig, y as UpsertDocument, h as VectorDBConfig, z as VectorDBProvider, V as VectorMatch, W as WidgetPosition, B as WorkflowConfig, D as createDefaultProjectSettings, F as normalizeProjectSettings, G as projectSettingsToUiConfig } from './ILLMProvider-BQXlVWNn.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* ChatWidget — Floating Action Button (FAB) that toggles the chat window.
|
|
@@ -54,7 +54,7 @@ declare function ChatWindow({ className, style, onClose, showClose, onResizeStar
|
|
|
54
54
|
|
|
55
55
|
declare function DocumentUpload({ namespace, uploadUrl, retrivoraApiBase, onUploadComplete, className }: DocumentUploadProps): React$1.JSX.Element;
|
|
56
56
|
|
|
57
|
-
declare function MessageBubble({ message, sources, isStreaming, primaryColor, accentColor, onAddToCart, viewportSize, showSources: showSourcesProp, onFeedback, isSpeaking, onToggleSpeak, }: MessageBubbleProps): React$1.JSX.Element;
|
|
57
|
+
declare function MessageBubble({ message, sources, isStreaming, primaryColor, accentColor, onAddToCart, viewportSize, showSources: showSourcesProp, onFeedback, isSpeaking, onToggleSpeak, onRegenerate, onEditMessage, }: MessageBubbleProps): React$1.JSX.Element;
|
|
58
58
|
|
|
59
59
|
declare function SourceCard({ source, index }: SourceCardProps): React$1.JSX.Element;
|
|
60
60
|
|
|
@@ -100,7 +100,7 @@ declare function ProductCard({ product, primaryColor, onAddToCart }: ProductCard
|
|
|
100
100
|
|
|
101
101
|
declare function ProductCarousel({ products, primaryColor, onAddToCart }: ProductCarouselProps): React$1.JSX.Element | null;
|
|
102
102
|
|
|
103
|
-
declare function
|
|
103
|
+
declare function UIDispatcherInner({ rawContent, primaryColor, accentColor, isStreaming, onAddToCart, viewportSize }: {
|
|
104
104
|
rawContent: string;
|
|
105
105
|
primaryColor?: string;
|
|
106
106
|
accentColor?: string;
|
|
@@ -108,6 +108,7 @@ declare function UIDispatcher({ rawContent, primaryColor, accentColor, isStreami
|
|
|
108
108
|
onAddToCart?: (product: Product) => void;
|
|
109
109
|
viewportSize?: ChatViewportSize;
|
|
110
110
|
}): React$1.JSX.Element | null;
|
|
111
|
+
declare function UIDispatcher(props: React$1.ComponentProps<typeof UIDispatcherInner>): React$1.JSX.Element;
|
|
111
112
|
|
|
112
113
|
interface VisualizationRendererProps {
|
|
113
114
|
data: UITransformationResponse;
|