@retrivora-ai/rag-engine 2.2.5 → 2.2.7

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.
@@ -509,7 +509,7 @@ declare class Retrivora {
509
509
  /**
510
510
  * Named SDK exceptions make failures machine-readable for host applications.
511
511
  */
512
- type RetrivoraErrorCode = 'PROVIDER_NOT_FOUND' | 'EMBEDDING_FAILED' | 'RETRIEVAL_FAILED' | 'RATE_LIMITED' | 'CONFIGURATION_ERROR' | 'AUTHENTICATION_ERROR';
512
+ type RetrivoraErrorCode = 'PROVIDER_NOT_FOUND' | 'EMBEDDING_FAILED' | 'RETRIEVAL_FAILED' | 'RATE_LIMITED' | 'CONFIGURATION_ERROR' | 'AUTHENTICATION_ERROR' | 'SDK_VERSION_UNSUPPORTED' | 'LICENSE_VALIDATION_ERROR';
513
513
  declare class RetrivoraError extends Error {
514
514
  readonly code: RetrivoraErrorCode;
515
515
  readonly details?: unknown;
@@ -533,9 +533,49 @@ declare class ConfigurationException extends RetrivoraError {
533
533
  declare class AuthenticationException extends RetrivoraError {
534
534
  constructor(message?: string, details?: unknown);
535
535
  }
536
+ declare class SDKVersionUnsupportedError extends RetrivoraError {
537
+ constructor(message?: string, details?: unknown);
538
+ }
539
+ declare class LicenseValidationError extends RetrivoraError {
540
+ constructor(message?: string, details?: unknown);
541
+ }
536
542
  /**
537
543
  * Wraps any unknown error into an appropriate RetrivoraError subclass.
538
544
  */
539
545
  declare function wrapError(err: unknown, defaultCode: RetrivoraErrorCode, defaultMessage?: string): RetrivoraError;
540
546
 
541
- export { AuthenticationException as A, type ChatViewportSize as B, type ChatWidgetProps as C, type DocumentUploadProps as D, EmbeddingFailedException as E, DocumentChunker as F, MixedRendererStrategy as G, Pipeline as H, type IRenderRule as I, type PipelineStep as J, type ProviderPill as K, type RenderSectionDecision as L, type MessageBubbleProps as M, type Snippet as N, TextRendererStrategy as O, type ProductCardProps as P, wrapError as Q, RateLimitException as R, type SourceCardProps as S, TableRendererStrategy as T, VisualizationDecisionEngine as V, type ChatWindowProps as a, type ConfigProviderProps as b, type ClientConfig as c, type ProductCarouselProps as d, type ChartType as e, type Chunk as f, type ChunkOptions as g, ConfigurationException as h, type DecisionContext as i, type IRendererStrategy as j, type IntentCategory as k, IntentClassifier as l, ProviderNotFoundException as m, type RenderDecision as n, type RenderType as o, RendererRegistry as p, RetrievalException as q, Retrivora as r, RetrivoraError as s, type RetrivoraErrorCode as t, RuleEngine as u, SDK_VERSION as v, decideVisualization as w, type ArchitectureCardProps as x, CarouselRendererStrategy as y, ChartRendererStrategy as z };
547
+ interface LicenseValidationRequest {
548
+ licenseKey: string;
549
+ projectId?: string;
550
+ sdkVersion?: string;
551
+ sdk?: string;
552
+ platform?: string;
553
+ retrivoraApiBase?: string;
554
+ headers?: Record<string, string>;
555
+ }
556
+ interface LicenseValidationResponse {
557
+ valid: boolean;
558
+ licenseStatus: 'ACTIVE' | 'SUSPENDED' | 'TERMINATED' | 'EXPIRED' | 'REVOKED';
559
+ minimumSupportedVersion: string;
560
+ latestVersion: string;
561
+ forceUpgrade: boolean;
562
+ expiresAt: string | null;
563
+ message: string;
564
+ }
565
+ declare class LicenseValidator {
566
+ private static instance;
567
+ private cache;
568
+ private static readonly SUCCESS_CACHE_TTL_MS;
569
+ private constructor();
570
+ static getInstance(): LicenseValidator;
571
+ /**
572
+ * Invalidate local validation cache for a license key
573
+ */
574
+ purgeCache(licenseKey?: string): void;
575
+ /**
576
+ * Validate license status and SDK version against Retrivora License Service
577
+ */
578
+ validate(request: LicenseValidationRequest): Promise<LicenseValidationResponse>;
579
+ }
580
+
581
+ export { AuthenticationException as A, decideVisualization as B, type ChatWidgetProps as C, type DocumentUploadProps as D, EmbeddingFailedException as E, type ArchitectureCardProps as F, CarouselRendererStrategy as G, ChartRendererStrategy as H, type IRenderRule as I, type ChatViewportSize as J, DocumentChunker as K, LicenseValidationError as L, type MessageBubbleProps as M, MixedRendererStrategy as N, Pipeline as O, type ProductCardProps as P, type PipelineStep as Q, RateLimitException as R, type SourceCardProps as S, type ProviderPill as T, type RenderSectionDecision as U, VisualizationDecisionEngine as V, type Snippet as W, TableRendererStrategy as X, TextRendererStrategy as Y, wrapError as Z, type ChatWindowProps as a, type ConfigProviderProps as b, type ClientConfig as c, type ProductCarouselProps as d, type ChartType as e, type Chunk as f, type ChunkOptions as g, ConfigurationException as h, type DecisionContext as i, type IRendererStrategy as j, type IntentCategory as k, IntentClassifier as l, type LicenseValidationRequest as m, type LicenseValidationResponse as n, LicenseValidator as o, ProviderNotFoundException as p, type RenderDecision as q, type RenderType as r, RendererRegistry as s, RetrievalException as t, Retrivora as u, RetrivoraError as v, type RetrivoraErrorCode as w, RuleEngine as x, SDKVersionUnsupportedError as y, SDK_VERSION as z };
@@ -509,7 +509,7 @@ declare class Retrivora {
509
509
  /**
510
510
  * Named SDK exceptions make failures machine-readable for host applications.
511
511
  */
512
- type RetrivoraErrorCode = 'PROVIDER_NOT_FOUND' | 'EMBEDDING_FAILED' | 'RETRIEVAL_FAILED' | 'RATE_LIMITED' | 'CONFIGURATION_ERROR' | 'AUTHENTICATION_ERROR';
512
+ type RetrivoraErrorCode = 'PROVIDER_NOT_FOUND' | 'EMBEDDING_FAILED' | 'RETRIEVAL_FAILED' | 'RATE_LIMITED' | 'CONFIGURATION_ERROR' | 'AUTHENTICATION_ERROR' | 'SDK_VERSION_UNSUPPORTED' | 'LICENSE_VALIDATION_ERROR';
513
513
  declare class RetrivoraError extends Error {
514
514
  readonly code: RetrivoraErrorCode;
515
515
  readonly details?: unknown;
@@ -533,9 +533,49 @@ declare class ConfigurationException extends RetrivoraError {
533
533
  declare class AuthenticationException extends RetrivoraError {
534
534
  constructor(message?: string, details?: unknown);
535
535
  }
536
+ declare class SDKVersionUnsupportedError extends RetrivoraError {
537
+ constructor(message?: string, details?: unknown);
538
+ }
539
+ declare class LicenseValidationError extends RetrivoraError {
540
+ constructor(message?: string, details?: unknown);
541
+ }
536
542
  /**
537
543
  * Wraps any unknown error into an appropriate RetrivoraError subclass.
538
544
  */
539
545
  declare function wrapError(err: unknown, defaultCode: RetrivoraErrorCode, defaultMessage?: string): RetrivoraError;
540
546
 
541
- export { AuthenticationException as A, type ChatViewportSize as B, type ChatWidgetProps as C, type DocumentUploadProps as D, EmbeddingFailedException as E, DocumentChunker as F, MixedRendererStrategy as G, Pipeline as H, type IRenderRule as I, type PipelineStep as J, type ProviderPill as K, type RenderSectionDecision as L, type MessageBubbleProps as M, type Snippet as N, TextRendererStrategy as O, type ProductCardProps as P, wrapError as Q, RateLimitException as R, type SourceCardProps as S, TableRendererStrategy as T, VisualizationDecisionEngine as V, type ChatWindowProps as a, type ConfigProviderProps as b, type ClientConfig as c, type ProductCarouselProps as d, type ChartType as e, type Chunk as f, type ChunkOptions as g, ConfigurationException as h, type DecisionContext as i, type IRendererStrategy as j, type IntentCategory as k, IntentClassifier as l, ProviderNotFoundException as m, type RenderDecision as n, type RenderType as o, RendererRegistry as p, RetrievalException as q, Retrivora as r, RetrivoraError as s, type RetrivoraErrorCode as t, RuleEngine as u, SDK_VERSION as v, decideVisualization as w, type ArchitectureCardProps as x, CarouselRendererStrategy as y, ChartRendererStrategy as z };
547
+ interface LicenseValidationRequest {
548
+ licenseKey: string;
549
+ projectId?: string;
550
+ sdkVersion?: string;
551
+ sdk?: string;
552
+ platform?: string;
553
+ retrivoraApiBase?: string;
554
+ headers?: Record<string, string>;
555
+ }
556
+ interface LicenseValidationResponse {
557
+ valid: boolean;
558
+ licenseStatus: 'ACTIVE' | 'SUSPENDED' | 'TERMINATED' | 'EXPIRED' | 'REVOKED';
559
+ minimumSupportedVersion: string;
560
+ latestVersion: string;
561
+ forceUpgrade: boolean;
562
+ expiresAt: string | null;
563
+ message: string;
564
+ }
565
+ declare class LicenseValidator {
566
+ private static instance;
567
+ private cache;
568
+ private static readonly SUCCESS_CACHE_TTL_MS;
569
+ private constructor();
570
+ static getInstance(): LicenseValidator;
571
+ /**
572
+ * Invalidate local validation cache for a license key
573
+ */
574
+ purgeCache(licenseKey?: string): void;
575
+ /**
576
+ * Validate license status and SDK version against Retrivora License Service
577
+ */
578
+ validate(request: LicenseValidationRequest): Promise<LicenseValidationResponse>;
579
+ }
580
+
581
+ export { AuthenticationException as A, decideVisualization as B, type ChatWidgetProps as C, type DocumentUploadProps as D, EmbeddingFailedException as E, type ArchitectureCardProps as F, CarouselRendererStrategy as G, ChartRendererStrategy as H, type IRenderRule as I, type ChatViewportSize as J, DocumentChunker as K, LicenseValidationError as L, type MessageBubbleProps as M, MixedRendererStrategy as N, Pipeline as O, type ProductCardProps as P, type PipelineStep as Q, RateLimitException as R, type SourceCardProps as S, type ProviderPill as T, type RenderSectionDecision as U, VisualizationDecisionEngine as V, type Snippet as W, TableRendererStrategy as X, TextRendererStrategy as Y, wrapError as Z, type ChatWindowProps as a, type ConfigProviderProps as b, type ClientConfig as c, type ProductCarouselProps as d, type ChartType as e, type Chunk as f, type ChunkOptions as g, ConfigurationException as h, type DecisionContext as i, type IRendererStrategy as j, type IntentCategory as k, IntentClassifier as l, type LicenseValidationRequest as m, type LicenseValidationResponse as n, LicenseValidator as o, ProviderNotFoundException as p, type RenderDecision as q, type RenderType as r, RendererRegistry as s, RetrievalException as t, Retrivora as u, RetrivoraError as v, type RetrivoraErrorCode as w, RuleEngine as x, SDKVersionUnsupportedError as y, SDK_VERSION as z };
@@ -2281,8 +2281,10 @@ function wrapError(err, defaultCode, defaultMessage) {
2281
2281
  if (status === 429 || /rate[- ]?limit/i.test(message) || code === "RATE_LIMIT_EXCEEDED") {
2282
2282
  return new RateLimitException(message, err);
2283
2283
  }
2284
- if (status === 401 || status === 403 || /unauthorized|auth|api[- ]?key/i.test(message) || code === "INVALID_API_KEY") {
2285
- return new AuthenticationException(message, err);
2284
+ if (status === 401 || status === 403 || /unauthorized|auth|license|revoked|terminated|api[- ]?key/i.test(message) || code === "INVALID_API_KEY" || code === "LICENSE_DELETED" || code === "LICENSE_INACTIVE") {
2285
+ const isLicenseError = /403|license|revoked|terminated/i.test(message) || status === 403;
2286
+ const cleanMsg = isLicenseError ? "Your Retrivora license key has been terminated, suspended, or revoked. Access denied." : message;
2287
+ return new AuthenticationException(cleanMsg, err);
2286
2288
  }
2287
2289
  switch (defaultCode) {
2288
2290
  case "PROVIDER_NOT_FOUND":
@@ -4707,7 +4709,7 @@ var ConfigValidator = class {
4707
4709
  // package.json
4708
4710
  var package_default = {
4709
4711
  name: "@retrivora-ai/rag-engine",
4710
- version: "2.2.5",
4712
+ version: "2.2.7",
4711
4713
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
4712
4714
  author: "Abhinav Alkuchi",
4713
4715
  license: "UNLICENSED",
@@ -10510,7 +10512,10 @@ function createStreamHandler(configOrPlugin, options) {
10510
10512
  }
10511
10513
  } catch (streamError) {
10512
10514
  if (isActive) {
10513
- const errorMessage = streamError instanceof Error ? streamError.message : String(streamError);
10515
+ let errorMessage = streamError instanceof Error ? streamError.message : String(streamError);
10516
+ if (errorMessage.includes("403") || errorMessage.toLowerCase().includes("license") || errorMessage.toLowerCase().includes("revoked") || errorMessage.toLowerCase().includes("terminated")) {
10517
+ errorMessage = "Your Retrivora license key has been terminated, suspended, or revoked. Access denied.";
10518
+ }
10514
10519
  console.error("[createStreamHandler] Stream error:", streamError);
10515
10520
  reportTelemetry(req, plugin, "QUERY_GENERATION", "error", errorMessage);
10516
10521
  try {
@@ -2246,8 +2246,10 @@ function wrapError(err, defaultCode, defaultMessage) {
2246
2246
  if (status === 429 || /rate[- ]?limit/i.test(message) || code === "RATE_LIMIT_EXCEEDED") {
2247
2247
  return new RateLimitException(message, err);
2248
2248
  }
2249
- if (status === 401 || status === 403 || /unauthorized|auth|api[- ]?key/i.test(message) || code === "INVALID_API_KEY") {
2250
- return new AuthenticationException(message, err);
2249
+ if (status === 401 || status === 403 || /unauthorized|auth|license|revoked|terminated|api[- ]?key/i.test(message) || code === "INVALID_API_KEY" || code === "LICENSE_DELETED" || code === "LICENSE_INACTIVE") {
2250
+ const isLicenseError = /403|license|revoked|terminated/i.test(message) || status === 403;
2251
+ const cleanMsg = isLicenseError ? "Your Retrivora license key has been terminated, suspended, or revoked. Access denied." : message;
2252
+ return new AuthenticationException(cleanMsg, err);
2251
2253
  }
2252
2254
  switch (defaultCode) {
2253
2255
  case "PROVIDER_NOT_FOUND":
@@ -4672,7 +4674,7 @@ var ConfigValidator = class {
4672
4674
  // package.json
4673
4675
  var package_default = {
4674
4676
  name: "@retrivora-ai/rag-engine",
4675
- version: "2.2.5",
4677
+ version: "2.2.7",
4676
4678
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
4677
4679
  author: "Abhinav Alkuchi",
4678
4680
  license: "UNLICENSED",
@@ -10475,7 +10477,10 @@ function createStreamHandler(configOrPlugin, options) {
10475
10477
  }
10476
10478
  } catch (streamError) {
10477
10479
  if (isActive) {
10478
- const errorMessage = streamError instanceof Error ? streamError.message : String(streamError);
10480
+ let errorMessage = streamError instanceof Error ? streamError.message : String(streamError);
10481
+ if (errorMessage.includes("403") || errorMessage.toLowerCase().includes("license") || errorMessage.toLowerCase().includes("revoked") || errorMessage.toLowerCase().includes("terminated")) {
10482
+ errorMessage = "Your Retrivora license key has been terminated, suspended, or revoked. Access denied.";
10483
+ }
10479
10484
  console.error("[createStreamHandler] Stream error:", streamError);
10480
10485
  reportTelemetry(req, plugin, "QUERY_GENERATION", "error", errorMessage);
10481
10486
  try {
package/dist/index.css CHANGED
@@ -96,6 +96,9 @@
96
96
  --color-rose-400: oklch(71.2% 0.194 13.428);
97
97
  --color-rose-500: oklch(64.5% 0.246 16.439);
98
98
  --color-rose-600: oklch(58.6% 0.253 17.585);
99
+ --color-rose-800: oklch(45.5% 0.188 13.697);
100
+ --color-rose-900: oklch(41% 0.159 10.272);
101
+ --color-rose-950: oklch(27.1% 0.105 12.094);
99
102
  --color-slate-50: oklch(98.4% 0.003 247.858);
100
103
  --color-slate-100: oklch(96.8% 0.007 247.896);
101
104
  --color-slate-200: oklch(92.9% 0.013 255.508);
@@ -370,6 +373,9 @@
370
373
  .bottom-20 {
371
374
  bottom: calc(var(--spacing) * 20);
372
375
  }
376
+ .bottom-24 {
377
+ bottom: calc(var(--spacing) * 24);
378
+ }
373
379
  .-left-4 {
374
380
  left: calc(var(--spacing) * -4);
375
381
  }
@@ -451,6 +457,9 @@
451
457
  .my-6 {
452
458
  margin-block: calc(var(--spacing) * 6);
453
459
  }
460
+ .my-auto {
461
+ margin-block: auto;
462
+ }
454
463
  .mt-0\.5 {
455
464
  margin-top: calc(var(--spacing) * 0.5);
456
465
  }
@@ -1121,6 +1130,12 @@
1121
1130
  .border-amber-200 {
1122
1131
  border-color: var(--color-amber-200);
1123
1132
  }
1133
+ .border-amber-200\/80 {
1134
+ border-color: color-mix(in srgb, oklch(92.4% 0.12 95.746) 80%, transparent);
1135
+ @supports (color: color-mix(in lab, red, red)) {
1136
+ border-color: color-mix(in oklab, var(--color-amber-200) 80%, transparent);
1137
+ }
1138
+ }
1124
1139
  .border-emerald-100 {
1125
1140
  border-color: var(--color-emerald-100);
1126
1141
  }
@@ -1157,6 +1172,12 @@
1157
1172
  .border-rose-200 {
1158
1173
  border-color: var(--color-rose-200);
1159
1174
  }
1175
+ .border-rose-200\/60 {
1176
+ border-color: color-mix(in srgb, oklch(89.2% 0.058 10.001) 60%, transparent);
1177
+ @supports (color: color-mix(in lab, red, red)) {
1178
+ border-color: color-mix(in oklab, var(--color-rose-200) 60%, transparent);
1179
+ }
1180
+ }
1160
1181
  .border-slate-100 {
1161
1182
  border-color: var(--color-slate-100);
1162
1183
  }
@@ -1217,6 +1238,12 @@
1217
1238
  .bg-amber-50 {
1218
1239
  background-color: var(--color-amber-50);
1219
1240
  }
1241
+ .bg-amber-50\/70 {
1242
+ background-color: color-mix(in srgb, oklch(98.7% 0.022 95.277) 70%, transparent);
1243
+ @supports (color: color-mix(in lab, red, red)) {
1244
+ background-color: color-mix(in oklab, var(--color-amber-50) 70%, transparent);
1245
+ }
1246
+ }
1220
1247
  .bg-amber-100 {
1221
1248
  background-color: var(--color-amber-100);
1222
1249
  }
@@ -1322,6 +1349,15 @@
1322
1349
  .bg-rose-50 {
1323
1350
  background-color: var(--color-rose-50);
1324
1351
  }
1352
+ .bg-rose-50\/50 {
1353
+ background-color: color-mix(in srgb, oklch(96.9% 0.015 12.422) 50%, transparent);
1354
+ @supports (color: color-mix(in lab, red, red)) {
1355
+ background-color: color-mix(in oklab, var(--color-rose-50) 50%, transparent);
1356
+ }
1357
+ }
1358
+ .bg-rose-100 {
1359
+ background-color: var(--color-rose-100);
1360
+ }
1325
1361
  .bg-rose-500 {
1326
1362
  background-color: var(--color-rose-500);
1327
1363
  }
@@ -1409,6 +1445,12 @@
1409
1445
  background-color: color-mix(in oklab, var(--color-white) 90%, transparent);
1410
1446
  }
1411
1447
  }
1448
+ .bg-white\/95 {
1449
+ background-color: color-mix(in srgb, #fff 95%, transparent);
1450
+ @supports (color: color-mix(in lab, red, red)) {
1451
+ background-color: color-mix(in oklab, var(--color-white) 95%, transparent);
1452
+ }
1453
+ }
1412
1454
  .bg-gradient-to-br {
1413
1455
  --tw-gradient-position: to bottom right in oklab;
1414
1456
  background-image: linear-gradient(var(--tw-gradient-stops));
@@ -1619,6 +1661,9 @@
1619
1661
  .whitespace-pre-wrap {
1620
1662
  white-space: pre-wrap;
1621
1663
  }
1664
+ .text-amber-300 {
1665
+ color: var(--color-amber-300);
1666
+ }
1622
1667
  .text-amber-400 {
1623
1668
  color: var(--color-amber-400);
1624
1669
  }
@@ -1950,6 +1995,10 @@
1950
1995
  --tw-outline-style: none;
1951
1996
  outline-style: none;
1952
1997
  }
1998
+ .select-all {
1999
+ -webkit-user-select: all;
2000
+ user-select: all;
2001
+ }
1953
2002
  .select-none {
1954
2003
  -webkit-user-select: none;
1955
2004
  user-select: none;
@@ -2391,6 +2440,14 @@
2391
2440
  }
2392
2441
  }
2393
2442
  }
2443
+ .dark\:border-amber-800\/40 {
2444
+ @media (prefers-color-scheme: dark) {
2445
+ border-color: color-mix(in srgb, oklch(47.3% 0.137 46.201) 40%, transparent);
2446
+ @supports (color: color-mix(in lab, red, red)) {
2447
+ border-color: color-mix(in oklab, var(--color-amber-800) 40%, transparent);
2448
+ }
2449
+ }
2450
+ }
2394
2451
  .dark\:border-emerald-400\/20 {
2395
2452
  @media (prefers-color-scheme: dark) {
2396
2453
  border-color: color-mix(in srgb, oklch(76.5% 0.177 163.223) 20%, transparent);
@@ -2463,6 +2520,22 @@
2463
2520
  }
2464
2521
  }
2465
2522
  }
2523
+ .dark\:border-rose-800\/40 {
2524
+ @media (prefers-color-scheme: dark) {
2525
+ border-color: color-mix(in srgb, oklch(45.5% 0.188 13.697) 40%, transparent);
2526
+ @supports (color: color-mix(in lab, red, red)) {
2527
+ border-color: color-mix(in oklab, var(--color-rose-800) 40%, transparent);
2528
+ }
2529
+ }
2530
+ }
2531
+ .dark\:border-rose-900\/60 {
2532
+ @media (prefers-color-scheme: dark) {
2533
+ border-color: color-mix(in srgb, oklch(41% 0.159 10.272) 60%, transparent);
2534
+ @supports (color: color-mix(in lab, red, red)) {
2535
+ border-color: color-mix(in oklab, var(--color-rose-900) 60%, transparent);
2536
+ }
2537
+ }
2538
+ }
2466
2539
  .dark\:border-slate-700 {
2467
2540
  @media (prefers-color-scheme: dark) {
2468
2541
  border-color: var(--color-slate-700);
@@ -2515,6 +2588,11 @@
2515
2588
  background-color: color-mix(in oklab, #0f0f1a 90%, transparent);
2516
2589
  }
2517
2590
  }
2591
+ .dark\:bg-\[\#0f0f1a\]\/95 {
2592
+ @media (prefers-color-scheme: dark) {
2593
+ background-color: color-mix(in oklab, #0f0f1a 95%, transparent);
2594
+ }
2595
+ }
2518
2596
  .dark\:bg-\[\#080811\] {
2519
2597
  @media (prefers-color-scheme: dark) {
2520
2598
  background-color: #080811;
@@ -2560,6 +2638,22 @@
2560
2638
  }
2561
2639
  }
2562
2640
  }
2641
+ .dark\:bg-amber-900\/40 {
2642
+ @media (prefers-color-scheme: dark) {
2643
+ background-color: color-mix(in srgb, oklch(41.4% 0.112 45.904) 40%, transparent);
2644
+ @supports (color: color-mix(in lab, red, red)) {
2645
+ background-color: color-mix(in oklab, var(--color-amber-900) 40%, transparent);
2646
+ }
2647
+ }
2648
+ }
2649
+ .dark\:bg-amber-950\/20 {
2650
+ @media (prefers-color-scheme: dark) {
2651
+ background-color: color-mix(in srgb, oklch(27.9% 0.077 45.635) 20%, transparent);
2652
+ @supports (color: color-mix(in lab, red, red)) {
2653
+ background-color: color-mix(in oklab, var(--color-amber-950) 20%, transparent);
2654
+ }
2655
+ }
2656
+ }
2563
2657
  .dark\:bg-amber-950\/40 {
2564
2658
  @media (prefers-color-scheme: dark) {
2565
2659
  background-color: color-mix(in srgb, oklch(27.9% 0.077 45.635) 40%, transparent);
@@ -2826,6 +2920,22 @@
2826
2920
  }
2827
2921
  }
2828
2922
  }
2923
+ .dark\:bg-rose-900\/40 {
2924
+ @media (prefers-color-scheme: dark) {
2925
+ background-color: color-mix(in srgb, oklch(41% 0.159 10.272) 40%, transparent);
2926
+ @supports (color: color-mix(in lab, red, red)) {
2927
+ background-color: color-mix(in oklab, var(--color-rose-900) 40%, transparent);
2928
+ }
2929
+ }
2930
+ }
2931
+ .dark\:bg-rose-950\/20 {
2932
+ @media (prefers-color-scheme: dark) {
2933
+ background-color: color-mix(in srgb, oklch(27.1% 0.105 12.094) 20%, transparent);
2934
+ @supports (color: color-mix(in lab, red, red)) {
2935
+ background-color: color-mix(in oklab, var(--color-rose-950) 20%, transparent);
2936
+ }
2937
+ }
2938
+ }
2829
2939
  .dark\:bg-slate-700 {
2830
2940
  @media (prefers-color-scheme: dark) {
2831
2941
  background-color: var(--color-slate-700);
@@ -3372,6 +3482,15 @@
3372
3482
  }
3373
3483
  }
3374
3484
  }
3485
+ .dark\:hover\:text-white {
3486
+ @media (prefers-color-scheme: dark) {
3487
+ &:hover {
3488
+ @media (hover: hover) {
3489
+ color: var(--color-white);
3490
+ }
3491
+ }
3492
+ }
3493
+ }
3375
3494
  .dark\:hover\:text-white\/60 {
3376
3495
  @media (prefers-color-scheme: dark) {
3377
3496
  &:hover {
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
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 } from './index-BbJGyNmW.mjs';
3
- export { A as AuthenticationException, e as ChartType, f as Chunk, g as ChunkOptions, h as ConfigurationException, i as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, j as IRendererStrategy, k as IntentCategory, l as IntentClassifier, m as ProviderNotFoundException, R as RateLimitException, n as RenderDecision, o as RenderType, p as RendererRegistry, q as RetrievalException, r as Retrivora, s as RetrivoraError, t as RetrivoraErrorCode, u as RuleEngine, v as SDK_VERSION, V as VisualizationDecisionEngine, w as decideVisualization } from './index-BbJGyNmW.mjs';
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 } from './LicenseValidator-B3xpJaVf.mjs';
3
+ export { A as AuthenticationException, e as ChartType, f as Chunk, g as ChunkOptions, h as ConfigurationException, i as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, j as IRendererStrategy, k as IntentCategory, l as IntentClassifier, L as LicenseValidationError, m as LicenseValidationRequest, n as LicenseValidationResponse, o as LicenseValidator, p as ProviderNotFoundException, R as RateLimitException, q as RenderDecision, r as RenderType, s as RendererRegistry, t as RetrievalException, u as Retrivora, v as RetrivoraError, w as RetrivoraErrorCode, x as RuleEngine, y as SDKVersionUnsupportedError, z as SDK_VERSION, V as VisualizationDecisionEngine, B as decideVisualization } from './LicenseValidator-B3xpJaVf.mjs';
4
4
  import { O as ObservabilityTrace, U as UseRagChatOptions, a as UseRagChatReturn } from './ILLMProvider-BWa68XX5.mjs';
5
5
  export { C as ChatMessage, b as ChatOptions, c as ChatResponse, E as EmbedOptions, d as EmbeddingConfig, e as EmbeddingProvider, I as ILLMProvider, f as IngestDocument, L as LLMConfig, g as LLMProvider, h as LatencyBreakdown, R as RAGConfig, i as RagConfig, j as RagMessage, k as RetrievalConfig, l as RetrievedChunk, T as TokenUsage, m as UIConfig, n as UniversalRagConfig, o as UpsertDocument, V as VectorDBConfig, p as VectorDBProvider, q as VectorMatch, W as WorkflowConfig } from './ILLMProvider-BWa68XX5.mjs';
6
6
  import 'react';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
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 } from './index-BCbeeh74.js';
3
- export { A as AuthenticationException, e as ChartType, f as Chunk, g as ChunkOptions, h as ConfigurationException, i as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, j as IRendererStrategy, k as IntentCategory, l as IntentClassifier, m as ProviderNotFoundException, R as RateLimitException, n as RenderDecision, o as RenderType, p as RendererRegistry, q as RetrievalException, r as Retrivora, s as RetrivoraError, t as RetrivoraErrorCode, u as RuleEngine, v as SDK_VERSION, V as VisualizationDecisionEngine, w as decideVisualization } from './index-BCbeeh74.js';
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 } from './LicenseValidator-D4I4pbSL.js';
3
+ export { A as AuthenticationException, e as ChartType, f as Chunk, g as ChunkOptions, h as ConfigurationException, i as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, j as IRendererStrategy, k as IntentCategory, l as IntentClassifier, L as LicenseValidationError, m as LicenseValidationRequest, n as LicenseValidationResponse, o as LicenseValidator, p as ProviderNotFoundException, R as RateLimitException, q as RenderDecision, r as RenderType, s as RendererRegistry, t as RetrievalException, u as Retrivora, v as RetrivoraError, w as RetrivoraErrorCode, x as RuleEngine, y as SDKVersionUnsupportedError, z as SDK_VERSION, V as VisualizationDecisionEngine, B as decideVisualization } from './LicenseValidator-D4I4pbSL.js';
4
4
  import { O as ObservabilityTrace, U as UseRagChatOptions, a as UseRagChatReturn } from './ILLMProvider-BWa68XX5.js';
5
5
  export { C as ChatMessage, b as ChatOptions, c as ChatResponse, E as EmbedOptions, d as EmbeddingConfig, e as EmbeddingProvider, I as ILLMProvider, f as IngestDocument, L as LLMConfig, g as LLMProvider, h as LatencyBreakdown, R as RAGConfig, i as RagConfig, j as RagMessage, k as RetrievalConfig, l as RetrievedChunk, T as TokenUsage, m as UIConfig, n as UniversalRagConfig, o as UpsertDocument, V as VectorDBConfig, p as VectorDBProvider, q as VectorMatch, W as WorkflowConfig } from './ILLMProvider-BWa68XX5.js';
6
6
  import 'react';